@zezosoft/zezo-ott-react-native-ui-kit 1.1.0 → 1.1.2

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 (512) hide show
  1. package/lib/module/Styles/globalStyles.js +0 -5
  2. package/lib/module/Styles/globalStyles.js.map +1 -1
  3. package/lib/module/components/Auth/AuthProvider/AuthProvider.js +64 -40
  4. package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
  5. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +5 -2
  6. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
  7. package/lib/module/components/Auth/Login/LoginWithEmail.js +17 -11
  8. package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
  9. package/lib/module/components/Auth/Login/LoginWithPhone.js +12 -6
  10. package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
  11. package/lib/module/components/Auth/OTP/OTP.js +7 -4
  12. package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
  13. package/lib/module/components/Auth/QrLogin/QrLogin.js +133 -86
  14. package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
  15. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +174 -109
  16. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
  17. package/lib/module/components/Auth/SignUp/SignUp.js +19 -13
  18. package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
  19. package/lib/module/components/Auth/SplashScreen/SplashScreen.js +54 -36
  20. package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
  21. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +29 -11
  22. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
  23. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +13 -7
  24. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
  25. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +33 -21
  26. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
  27. package/lib/module/components/BackgroundLayout/BackgroundLayout.js +26 -20
  28. package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
  29. package/lib/module/components/BlogView/BlogView.js +36 -20
  30. package/lib/module/components/BlogView/BlogView.js.map +1 -1
  31. package/lib/module/components/BottomSheet/BottomSheet.js +152 -0
  32. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
  33. package/lib/module/components/BottomSheet/index.js +4 -0
  34. package/lib/module/components/BottomSheet/index.js.map +1 -0
  35. package/lib/module/components/Button/BackBtn.js +46 -16
  36. package/lib/module/components/Button/BackBtn.js.map +1 -1
  37. package/lib/module/components/Button/PrimaryBtn.js +19 -13
  38. package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
  39. package/lib/module/components/Button/SecondaryBtn.js +19 -13
  40. package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
  41. package/lib/module/components/Button/TextButton.js +19 -13
  42. package/lib/module/components/Button/TextButton.js.map +1 -1
  43. package/lib/module/components/Content/Card/Category/Category.js +70 -37
  44. package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
  45. package/lib/module/components/Content/Card/Sliders/Styles/One.js +40 -32
  46. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  47. package/lib/module/components/Content/Card/Sliders/Styles/Two.js +109 -48
  48. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  49. package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -11
  50. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  51. package/lib/module/components/Content/Card/components/CardPoster.js +105 -43
  52. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  53. package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +18 -17
  54. package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
  55. package/lib/module/components/Content/Card/components/ThumbnailCard.js +78 -28
  56. package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
  57. package/lib/module/components/Content/Content.js +44 -25
  58. package/lib/module/components/Content/Content.js.map +1 -1
  59. package/lib/module/components/Content/Sections.js +37 -29
  60. package/lib/module/components/Content/Sections.js.map +1 -1
  61. package/lib/module/components/ContentView/ContentView.js +70 -41
  62. package/lib/module/components/ContentView/ContentView.js.map +1 -1
  63. package/lib/module/components/ContentView/MoreContentList.js +74 -40
  64. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  65. package/lib/module/components/ContentView/components/AboutSection.js +40 -19
  66. package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
  67. package/lib/module/components/ContentView/components/CastCard.js +6 -7
  68. package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
  69. package/lib/module/components/ContentView/components/EpisodeCard.js +2 -2
  70. package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
  71. package/lib/module/components/ContentView/components/GenreTags.js +25 -13
  72. package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
  73. package/lib/module/components/ContentView/components/HeroBanner.js +39 -11
  74. package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
  75. package/lib/module/components/ContentView/components/MiniInfo.js +84 -77
  76. package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
  77. package/lib/module/components/ContentView/components/PlayButton.js +11 -7
  78. package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
  79. package/lib/module/components/ContentView/components/Title.js +12 -12
  80. package/lib/module/components/ContentView/components/Title.js.map +1 -1
  81. package/lib/module/components/ContentView/components/TrailerButton.js +12 -7
  82. package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
  83. package/lib/module/components/Fallbacks/NoContentFallback.js +27 -22
  84. package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -1
  85. package/lib/module/components/Fallbacks/NotFoundFallback.js +6 -4
  86. package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -1
  87. package/lib/module/components/Headers/AppHeader.js +22 -13
  88. package/lib/module/components/Headers/AppHeader.js.map +1 -1
  89. package/lib/module/components/Headers/Three.js +6 -5
  90. package/lib/module/components/Headers/Three.js.map +1 -1
  91. package/lib/module/components/Headers/Two.js +19 -14
  92. package/lib/module/components/Headers/Two.js.map +1 -1
  93. package/lib/module/components/Input/InputOne.js +46 -31
  94. package/lib/module/components/Input/InputOne.js.map +1 -1
  95. package/lib/module/components/Loader/Loader.js +2 -2
  96. package/lib/module/components/Loader/Loader.js.map +1 -1
  97. package/lib/module/components/Logo/Logo.js +17 -14
  98. package/lib/module/components/Logo/Logo.js.map +1 -1
  99. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +134 -0
  100. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -0
  101. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +154 -0
  102. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -0
  103. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js +173 -0
  104. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js.map +1 -0
  105. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +77 -0
  106. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -0
  107. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js +132 -0
  108. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js.map +1 -0
  109. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js +165 -0
  110. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js.map +1 -0
  111. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +106 -0
  112. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -0
  113. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js +124 -0
  114. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js.map +1 -0
  115. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +102 -64
  116. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
  117. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +241 -232
  118. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
  119. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js +153 -0
  120. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js.map +1 -0
  121. package/lib/module/components/Reels/ReelsSeries/{Model → components}/Episodes.js +46 -36
  122. package/lib/module/components/Reels/ReelsSeries/components/Episodes.js.map +1 -0
  123. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js +35 -0
  124. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js.map +1 -0
  125. package/lib/module/components/Reels/ReelsSeries/components/Like.js +37 -0
  126. package/lib/module/components/Reels/ReelsSeries/components/Like.js.map +1 -0
  127. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js +55 -0
  128. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js.map +1 -0
  129. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js +268 -0
  130. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js.map +1 -0
  131. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +143 -0
  132. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -0
  133. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js +56 -0
  134. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js.map +1 -0
  135. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js +5 -0
  136. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js.map +1 -0
  137. package/lib/module/components/Reels/utils/Controls/gestureUtils.js +30 -0
  138. package/lib/module/components/Reels/utils/Controls/gestureUtils.js.map +1 -0
  139. package/lib/module/components/Reels/utils/Controls/index.js +7 -0
  140. package/lib/module/components/Reels/utils/Controls/index.js.map +1 -0
  141. package/lib/module/components/Reels/utils/Controls/overlayUtils.js +28 -0
  142. package/lib/module/components/Reels/utils/Controls/overlayUtils.js.map +1 -0
  143. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js +27 -0
  144. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js.map +1 -0
  145. package/lib/module/components/Reels/utils/Controls/videoRef.js +5 -0
  146. package/lib/module/components/Reels/utils/Controls/videoRef.js.map +1 -0
  147. package/lib/module/components/Reels/utils/index.js +4 -0
  148. package/lib/module/components/Reels/utils/index.js.map +1 -0
  149. package/lib/module/components/Reels/utils/timeoutUtils.js +24 -0
  150. package/lib/module/components/Reels/utils/timeoutUtils.js.map +1 -0
  151. package/lib/module/components/Search/One.js +2 -1
  152. package/lib/module/components/Search/One.js.map +1 -1
  153. package/lib/module/components/Search/components/SearchCard.js +15 -19
  154. package/lib/module/components/Search/components/SearchCard.js.map +1 -1
  155. package/lib/module/components/Settings/AppSettings.js +97 -62
  156. package/lib/module/components/Settings/AppSettings.js.map +1 -1
  157. package/lib/module/components/Subscription/SubOne.js +313 -254
  158. package/lib/module/components/Subscription/SubOne.js.map +1 -1
  159. package/lib/module/components/Text/Text.js +15 -12
  160. package/lib/module/components/Text/Text.js.map +1 -1
  161. package/lib/module/components/User/DeviceSessions/DeviceSessions.js +25 -23
  162. package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
  163. package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +23 -18
  164. package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
  165. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +38 -24
  166. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
  167. package/lib/module/components/User/WatchHistory/WatchHistory.js +21 -14
  168. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  169. package/lib/module/components/User/WatchLater/WatchLater.js +30 -21
  170. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  171. package/lib/module/components/User/components/UserAvatar.js +38 -19
  172. package/lib/module/components/User/components/UserAvatar.js.map +1 -1
  173. package/lib/module/components/User/components/UserSection.js +37 -17
  174. package/lib/module/components/User/components/UserSection.js.map +1 -1
  175. package/lib/module/components/View/View.js +7 -4
  176. package/lib/module/components/View/View.js.map +1 -1
  177. package/lib/module/components/index.js +1 -1
  178. package/lib/module/components/index.js.map +1 -1
  179. package/lib/module/hooks/index.js +17 -0
  180. package/lib/module/hooks/index.js.map +1 -0
  181. package/lib/module/hooks/useDebounce.js +25 -6
  182. package/lib/module/hooks/useDebounce.js.map +1 -1
  183. package/lib/module/hooks/useKeyboard.js +7 -4
  184. package/lib/module/hooks/useKeyboard.js.map +1 -1
  185. package/lib/module/hooks/useNavigationMode.js +10 -4
  186. package/lib/module/hooks/useNavigationMode.js.map +1 -1
  187. package/lib/module/hooks/usePaginatedSection.js +1 -1
  188. package/lib/module/hooks/usePaginatedSection.js.map +1 -1
  189. package/lib/module/hooks/usePrevious.js +30 -0
  190. package/lib/module/hooks/usePrevious.js.map +1 -0
  191. package/lib/module/hooks/useSafeCallback.js +33 -0
  192. package/lib/module/hooks/useSafeCallback.js.map +1 -0
  193. package/lib/module/hooks/useSkeletonItems.js +33 -0
  194. package/lib/module/hooks/useSkeletonItems.js.map +1 -0
  195. package/lib/module/hooks/useSplashCache.js +2 -1
  196. package/lib/module/hooks/useSplashCache.js.map +1 -1
  197. package/lib/module/hooks/useThemeColors.js +33 -0
  198. package/lib/module/hooks/useThemeColors.js.map +1 -0
  199. package/lib/module/theme/ThemeProvider.js +24 -15
  200. package/lib/module/theme/ThemeProvider.js.map +1 -1
  201. package/lib/module/theme/hook/useInternalTheme.js +18 -11
  202. package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
  203. package/lib/module/theme/hook/useThemeStatusBar.js +10 -4
  204. package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -1
  205. package/lib/module/theme/themes.js +3 -3
  206. package/lib/typescript/src/Styles/globalStyles.d.ts +0 -5
  207. package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -1
  208. package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
  209. package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
  210. package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
  211. package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
  212. package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
  213. package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +0 -15
  214. package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
  215. package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +0 -1
  216. package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
  217. package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
  218. package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
  219. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
  220. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -1
  221. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
  222. package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
  223. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +1 -1
  224. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
  225. package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -1
  226. package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
  227. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +18 -0
  228. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
  229. package/lib/typescript/src/components/BottomSheet/index.d.ts +3 -0
  230. package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Button/BackBtn.d.ts +5 -3
  232. package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
  233. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -1
  234. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
  235. package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -1
  236. package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
  237. package/lib/typescript/src/components/Button/TextButton.d.ts +2 -2
  238. package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
  239. package/lib/typescript/src/components/Button/index.d.ts +4 -2
  240. package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
  241. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
  242. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  243. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  244. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  245. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  246. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +2 -2
  247. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
  248. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +2 -0
  249. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
  250. package/lib/typescript/src/components/Content/Content.d.ts +2 -0
  251. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  252. package/lib/typescript/src/components/Content/Sections.d.ts +2 -2
  253. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  254. package/lib/typescript/src/components/ContentView/ContentView.d.ts +6 -1
  255. package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
  256. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
  257. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +2 -1
  258. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
  259. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +6 -1
  260. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
  261. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +2 -1
  262. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
  263. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
  264. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
  265. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +2 -1
  266. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
  267. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
  268. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
  269. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +2 -1
  270. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
  271. package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
  272. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
  273. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -1
  274. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
  275. package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +2 -1
  276. package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -1
  277. package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +1 -1
  278. package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts.map +1 -1
  279. package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
  280. package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
  281. package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
  282. package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
  283. package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
  284. package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
  285. package/lib/typescript/src/components/Headers/index.d.ts +2 -2
  286. package/lib/typescript/src/components/Input/Input.d.ts +1 -1
  287. package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
  288. package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
  289. package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
  290. package/lib/typescript/src/components/Logo/Logo.d.ts +2 -1
  291. package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
  292. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +14 -0
  293. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -0
  294. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +60 -0
  295. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -0
  296. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts +14 -0
  297. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts.map +1 -0
  298. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts +14 -0
  299. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -0
  300. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts +12 -0
  301. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts.map +1 -0
  302. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts +16 -0
  303. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts.map +1 -0
  304. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +15 -0
  305. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -0
  306. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts +14 -0
  307. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts.map +1 -0
  308. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +8 -2
  309. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
  310. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +8 -2
  311. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
  312. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts +13 -0
  313. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts.map +1 -0
  314. package/lib/typescript/src/components/Reels/ReelsSeries/{Model → components}/Episodes.d.ts +3 -2
  315. package/lib/typescript/src/components/Reels/ReelsSeries/components/Episodes.d.ts.map +1 -0
  316. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts +7 -0
  317. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts.map +1 -0
  318. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts +7 -0
  319. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts.map +1 -0
  320. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts +12 -0
  321. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts.map +1 -0
  322. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts +12 -0
  323. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts.map +1 -0
  324. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
  325. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -0
  326. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts +10 -0
  327. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts.map +1 -0
  328. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts +3 -0
  329. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts.map +1 -0
  330. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +13 -0
  331. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
  332. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts +10 -0
  333. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts.map +1 -0
  334. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts +5 -0
  335. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts.map +1 -0
  336. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts +12 -0
  337. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts.map +1 -0
  338. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts +24 -0
  339. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts.map +1 -0
  340. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts +3 -0
  341. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts.map +1 -0
  342. package/lib/typescript/src/components/Reels/utils/index.d.ts +2 -0
  343. package/lib/typescript/src/components/Reels/utils/index.d.ts.map +1 -0
  344. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts +14 -0
  345. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts.map +1 -0
  346. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  347. package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -5
  348. package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
  349. package/lib/typescript/src/components/Search/index.d.ts +1 -1
  350. package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
  351. package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
  352. package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
  353. package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
  354. package/lib/typescript/src/components/Text/Text.d.ts +2 -2
  355. package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
  356. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
  357. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
  358. package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +1 -1
  359. package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
  360. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
  361. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
  362. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
  363. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  364. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
  365. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  366. package/lib/typescript/src/components/User/components/UserAvatar.d.ts +1 -1
  367. package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
  368. package/lib/typescript/src/components/User/components/UserSection.d.ts +1 -1
  369. package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
  370. package/lib/typescript/src/components/View/View.d.ts +2 -0
  371. package/lib/typescript/src/components/View/View.d.ts.map +1 -1
  372. package/lib/typescript/src/components/index.d.ts +1 -1
  373. package/lib/typescript/src/components/index.d.ts.map +1 -1
  374. package/lib/typescript/src/hooks/index.d.ts +14 -0
  375. package/lib/typescript/src/hooks/index.d.ts.map +1 -0
  376. package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
  377. package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
  378. package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -1
  379. package/lib/typescript/src/hooks/usePrevious.d.ts +12 -0
  380. package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -0
  381. package/lib/typescript/src/hooks/useSafeCallback.d.ts +15 -0
  382. package/lib/typescript/src/hooks/useSafeCallback.d.ts.map +1 -0
  383. package/lib/typescript/src/hooks/useSkeletonItems.d.ts +11 -0
  384. package/lib/typescript/src/hooks/useSkeletonItems.d.ts.map +1 -0
  385. package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
  386. package/lib/typescript/src/hooks/useThemeColors.d.ts +27 -0
  387. package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
  388. package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
  389. package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
  390. package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -1
  391. package/package.json +2 -2
  392. package/src/Styles/globalStyles.ts +0 -5
  393. package/src/components/Auth/AuthProvider/AuthProvider.tsx +288 -212
  394. package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +11 -4
  395. package/src/components/Auth/Login/LoginWithEmail.tsx +266 -238
  396. package/src/components/Auth/Login/LoginWithPhone.tsx +18 -6
  397. package/src/components/Auth/OTP/OTP.tsx +21 -5
  398. package/src/components/Auth/QrLogin/QrLogin.tsx +225 -185
  399. package/src/components/Auth/QrLogin/components/QrViewArea.tsx +282 -166
  400. package/src/components/Auth/SignUp/SignUp.tsx +312 -293
  401. package/src/components/Auth/SplashScreen/SplashScreen.tsx +186 -131
  402. package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +32 -15
  403. package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +11 -5
  404. package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +34 -18
  405. package/src/components/BackgroundLayout/BackgroundLayout.tsx +43 -37
  406. package/src/components/BlogView/BlogView.tsx +66 -30
  407. package/src/components/BottomSheet/BottomSheet.tsx +195 -0
  408. package/src/components/BottomSheet/index.ts +2 -0
  409. package/src/components/Button/BackBtn.tsx +87 -24
  410. package/src/components/Button/PrimaryBtn.tsx +42 -25
  411. package/src/components/Button/SecondaryBtn.tsx +41 -25
  412. package/src/components/Button/TextButton.tsx +54 -32
  413. package/src/components/Content/Card/Category/Category.tsx +94 -56
  414. package/src/components/Content/Card/Sliders/Styles/One.tsx +63 -47
  415. package/src/components/Content/Card/Sliders/Styles/Two.tsx +131 -51
  416. package/src/components/Content/Card/Styles/RotateInOut.tsx +7 -9
  417. package/src/components/Content/Card/components/CardPoster.tsx +136 -55
  418. package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
  419. package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
  420. package/src/components/Content/Content.tsx +164 -97
  421. package/src/components/Content/Sections.tsx +99 -43
  422. package/src/components/ContentView/ContentView.tsx +194 -128
  423. package/src/components/ContentView/MoreContentList.tsx +215 -151
  424. package/src/components/ContentView/components/AboutSection.tsx +132 -93
  425. package/src/components/ContentView/components/CastCard.tsx +148 -138
  426. package/src/components/ContentView/components/EpisodeCard.tsx +160 -155
  427. package/src/components/ContentView/components/GenreTags.tsx +68 -53
  428. package/src/components/ContentView/components/HeroBanner.tsx +326 -284
  429. package/src/components/ContentView/components/MiniInfo.tsx +181 -159
  430. package/src/components/ContentView/components/PlayButton.tsx +27 -16
  431. package/src/components/ContentView/components/Title.tsx +89 -72
  432. package/src/components/ContentView/components/TrailerButton.tsx +35 -22
  433. package/src/components/Fallbacks/NoContentFallback.tsx +107 -103
  434. package/src/components/Fallbacks/NotFoundFallback.tsx +12 -4
  435. package/src/components/Headers/AppHeader.tsx +42 -26
  436. package/src/components/Headers/Three.tsx +12 -8
  437. package/src/components/Headers/Two.tsx +31 -10
  438. package/src/components/Input/InputOne.tsx +136 -108
  439. package/src/components/Loader/Loader.tsx +2 -2
  440. package/src/components/Logo/Logo.tsx +43 -27
  441. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +156 -0
  442. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +234 -0
  443. package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +196 -0
  444. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +92 -0
  445. package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +163 -0
  446. package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +210 -0
  447. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +143 -0
  448. package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +154 -0
  449. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +142 -74
  450. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +349 -250
  451. package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +184 -0
  452. package/src/components/Reels/ReelsSeries/{Model → components}/Episodes.tsx +54 -33
  453. package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +41 -0
  454. package/src/components/Reels/ReelsSeries/components/Like.tsx +40 -0
  455. package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +79 -0
  456. package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +332 -0
  457. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +190 -0
  458. package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +80 -0
  459. package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +2 -0
  460. package/src/components/Reels/ReelsSeries/types.ts +13 -2
  461. package/src/components/Reels/utils/Controls/gestureUtils.ts +42 -0
  462. package/src/components/Reels/utils/Controls/index.ts +4 -0
  463. package/src/components/Reels/utils/Controls/overlayUtils.ts +35 -0
  464. package/src/components/Reels/utils/Controls/videoControlsConstants.ts +25 -0
  465. package/src/components/Reels/utils/Controls/videoRef.ts +4 -0
  466. package/src/components/Reels/utils/index.ts +1 -0
  467. package/src/components/Reels/utils/timeoutUtils.ts +29 -0
  468. package/src/components/Search/One.tsx +2 -4
  469. package/src/components/Search/components/SearchCard.tsx +19 -13
  470. package/src/components/Settings/AppSettings.tsx +217 -128
  471. package/src/components/Subscription/SubOne.tsx +394 -317
  472. package/src/components/Text/Text.tsx +33 -22
  473. package/src/components/User/DeviceSessions/DeviceSessions.tsx +129 -102
  474. package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +36 -17
  475. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +194 -140
  476. package/src/components/User/WatchHistory/WatchHistory.tsx +63 -36
  477. package/src/components/User/WatchLater/WatchLater.tsx +119 -81
  478. package/src/components/User/components/UserAvatar.tsx +49 -15
  479. package/src/components/User/components/UserSection.tsx +71 -37
  480. package/src/components/View/View.tsx +10 -2
  481. package/src/components/index.ts +1 -1
  482. package/src/hooks/index.ts +14 -0
  483. package/src/hooks/useDebounce.ts +25 -6
  484. package/src/hooks/useKeyboard.ts +12 -5
  485. package/src/hooks/useNavigationMode.ts +16 -5
  486. package/src/hooks/usePaginatedSection.ts +1 -1
  487. package/src/hooks/usePrevious.ts +28 -0
  488. package/src/hooks/useSafeCallback.ts +43 -0
  489. package/src/hooks/useSkeletonItems.ts +30 -0
  490. package/src/hooks/useSplashCache.ts +2 -1
  491. package/src/hooks/useThemeColors.ts +51 -0
  492. package/src/theme/ThemeProvider.tsx +33 -11
  493. package/src/theme/hook/useInternalTheme.ts +19 -13
  494. package/src/theme/hook/useThemeStatusBar.ts +14 -5
  495. package/src/theme/themes.ts +3 -3
  496. package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +0 -1
  497. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -212
  498. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +0 -1
  499. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +0 -182
  500. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +0 -1
  501. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +0 -203
  502. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +0 -1
  503. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +0 -1
  504. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +0 -9
  505. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +0 -1
  506. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +0 -13
  507. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +0 -1
  508. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +0 -18
  509. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +0 -1
  510. package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +0 -242
  511. package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +0 -209
  512. package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +0 -185
@@ -15,7 +15,11 @@ import { AppStatusBar } from "../../common/AppStatusBar.js";
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const DEFAULT_IMAGE_TIMEOUT = 5;
17
17
  const FALLBACK_TIMEOUT = 0.5;
18
- export const SplashScreen = ({
18
+
19
+ // Move extension arrays outside component to prevent recreation
20
+ const VIDEO_EXTENSIONS = ['.mp4', '.mov', '.mkv', '.webm', '.avi', '.3gp'];
21
+ const LOTTIE_EXTENSIONS = ['.json', '.lottie'];
22
+ export const SplashScreen = /*#__PURE__*/React.memo(({
19
23
  splashScreenConfig,
20
24
  innerContainerStyle,
21
25
  backgroundImage = {
@@ -36,16 +40,18 @@ export const SplashScreen = ({
36
40
  resizeMode = 'contain',
37
41
  backgroundColor: splashBgColor
38
42
  } = splashScreenConfig;
39
- const isRemote = splashSource.startsWith('http');
40
- const isImageSplash = splashType === 'image';
41
- const backgroundImageUrl = isImageSplash && backgroundImage.source?.startsWith('http') ? backgroundImage.source : undefined;
43
+
44
+ // Memoize computed values
45
+ const isRemote = useMemo(() => splashSource.startsWith('http'), [splashSource]);
46
+ const isImageSplash = useMemo(() => splashType === 'image', [splashType]);
47
+ const backgroundImageUrl = useMemo(() => isImageSplash && backgroundImage.source?.startsWith('http') ? backgroundImage.source : undefined, [isImageSplash, backgroundImage.source]);
42
48
  const {
43
49
  data
44
50
  } = useSplashCache({
45
51
  logoUrl: isRemote ? splashSource : undefined,
46
52
  backgroundUrl: backgroundImageUrl
47
53
  });
48
- const resolvedSplashUri = isRemote && data.logoPath ? data.logoPath : splashSource;
54
+ const resolvedSplashUri = useMemo(() => isRemote && data.logoPath ? data.logoPath : splashSource, [isRemote, data.logoPath, splashSource]);
49
55
  const displayTimeout = useMemo(() => {
50
56
  if (typeof screenTime === 'number' && screenTime > 0) return screenTime;
51
57
  if (isImageSplash || isStatic) return DEFAULT_IMAGE_TIMEOUT;
@@ -70,52 +76,64 @@ export const SplashScreen = ({
70
76
  fullscreen,
71
77
  resizeMode: resizeMode
72
78
  }), [resolvedSplashUri, width, height, fullscreen, resizeMode]);
79
+
80
+ // Memoize file type checks
81
+ const isVideoFile = useMemo(() => VIDEO_EXTENSIONS.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext)), [resolvedSplashUri]);
82
+ const isLottieFile = useMemo(() => LOTTIE_EXTENSIONS.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext)), [resolvedSplashUri]);
83
+
84
+ // Memoize video onEnd handler
85
+ const videoOnEnd = useMemo(() => displayTimeout ? undefined : handleRedirect, [displayTimeout, handleRedirect]);
86
+
87
+ // Memoize lottie onAnimationFinish handler
88
+ const lottieOnAnimationFinish = useMemo(() => displayTimeout ? undefined : handleRedirect, [displayTimeout, handleRedirect]);
89
+
90
+ // Memoize BackgroundLayout props
91
+ const backgroundLayoutProps = useMemo(() => ({
92
+ backgroundImage: isImageSplash ? backgroundImage.source : undefined,
93
+ backgroundColor: splashBgColor,
94
+ resizeMode: backgroundImage.resizeMode ?? 'cover',
95
+ innerContainerStyle,
96
+ onImageError: backgroundImage.onImageError,
97
+ theme: overrideTheme,
98
+ gradientSplitBackground: backgroundImage.gradientSplitBackground ?? 0.4
99
+ }), [isImageSplash, backgroundImage.source, backgroundImage.resizeMode, backgroundImage.onImageError, backgroundImage.gradientSplitBackground, splashBgColor, innerContainerStyle, overrideTheme]);
100
+
101
+ // Memoize AppStatusBar theme
102
+ const appStatusBarTheme = useMemo(() => ({
103
+ ...overrideTheme,
104
+ dark: {
105
+ ...overrideTheme?.dark,
106
+ background: splashBgColor
107
+ },
108
+ light: {
109
+ ...overrideTheme?.light,
110
+ background: splashBgColor
111
+ }
112
+ }), [overrideTheme, splashBgColor]);
73
113
  const renderSplashContent = useCallback(() => {
74
- const videoExtensions = ['.mp4', '.mov', '.mkv', '.webm', '.avi', '.3gp'];
75
- const LOTTIE_EXTENSIONS = ['.json', '.lottie'];
76
114
  switch (splashType) {
77
115
  case 'video':
78
- const isVideoFile = videoExtensions.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext));
79
116
  return isVideoFile ? /*#__PURE__*/_jsx(SplashVideo, {
80
117
  ...splashProps,
81
- onEnd: displayTimeout ? undefined : handleRedirect
118
+ onEnd: videoOnEnd
82
119
  }) : null;
83
120
  case 'lottie-animation':
84
- {
85
- const isLottieFile = LOTTIE_EXTENSIONS.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext));
86
- return isLottieFile ? /*#__PURE__*/_jsx(SplashLottie, {
87
- ...splashProps,
88
- onAnimationFinish: displayTimeout ? undefined : handleRedirect
89
- }) : null;
90
- }
121
+ return isLottieFile ? /*#__PURE__*/_jsx(SplashLottie, {
122
+ ...splashProps,
123
+ onAnimationFinish: lottieOnAnimationFinish
124
+ }) : null;
91
125
  case 'image':
92
126
  default:
93
127
  return /*#__PURE__*/_jsx(SplashImage, {
94
128
  ...splashProps
95
129
  });
96
130
  }
97
- }, [splashType, resolvedSplashUri, splashProps, displayTimeout, handleRedirect]);
131
+ }, [splashType, isVideoFile, isLottieFile, splashProps, videoOnEnd, lottieOnAnimationFinish]);
98
132
  return /*#__PURE__*/_jsxs(BackgroundLayout, {
99
- backgroundImage: isImageSplash ? backgroundImage.source : undefined,
100
- backgroundColor: splashBgColor,
101
- resizeMode: backgroundImage.resizeMode ?? 'cover',
102
- innerContainerStyle: innerContainerStyle,
103
- onImageError: backgroundImage.onImageError,
104
- theme: overrideTheme,
105
- gradientSplitBackground: backgroundImage.gradientSplitBackground ?? 0.4,
133
+ ...backgroundLayoutProps,
106
134
  children: [/*#__PURE__*/_jsx(AppStatusBar, {
107
- theme: {
108
- ...overrideTheme,
109
- dark: {
110
- ...overrideTheme?.dark,
111
- background: splashBgColor
112
- },
113
- light: {
114
- ...overrideTheme?.light,
115
- background: splashBgColor
116
- }
117
- }
135
+ theme: appStatusBarTheme
118
136
  }), renderSplashContent()]
119
137
  });
120
- };
138
+ });
121
139
  //# sourceMappingURL=SplashScreen.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useMemo","useCallback","SplashImage","SplashVideo","SplashLottie","BackgroundLayout","useSplashCache","AppStatusBar","jsx","_jsx","jsxs","_jsxs","DEFAULT_IMAGE_TIMEOUT","FALLBACK_TIMEOUT","SplashScreen","splashScreenConfig","innerContainerStyle","backgroundImage","gradientSplitBackground","resizeMode","onRedirect","theme","overrideTheme","source","splashSource","type","splashType","width","height","isStatic","screenTime","fullscreen","backgroundColor","splashBgColor","isRemote","startsWith","isImageSplash","backgroundImageUrl","undefined","data","logoUrl","backgroundUrl","resolvedSplashUri","logoPath","displayTimeout","handleRedirect","err","console","error","timeoutSec","timer","setTimeout","clearTimeout","splashProps","renderSplashContent","videoExtensions","LOTTIE_EXTENSIONS","isVideoFile","some","ext","toLowerCase","endsWith","onEnd","isLottieFile","onAnimationFinish","onImageError","children","dark","background","light"],"sourceRoot":"../../../../../src","sources":["components/Auth/SplashScreen/SplashScreen.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAE9D,OAAOC,WAAW,MAAM,yCAAsC;AAC9D,OAAOC,WAAW,MAAM,yCAAsC;AAC9D,OAAOC,YAAY,MAAM,2CAAwC;AAIjE,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,cAAc,QAAQ,kCAA+B;AAC9D,SAASC,YAAY,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8BzD,MAAMC,qBAAqB,GAAG,CAAC;AAC/B,MAAMC,gBAAgB,GAAG,GAAG;AAE5B,OAAO,MAAMC,YAAyC,GAAGA,CAAC;EACxDC,kBAAkB;EAClBC,mBAAmB;EACnBC,eAAe,GAAG;IAChBC,uBAAuB,EAAE,GAAG;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDC,UAAU;EACVC,KAAK,EAAEC;AACT,CAAC,KAAK;EACJ,MAAM;IACJC,MAAM,EAAEC,YAAY;IACpBC,IAAI,EAAEC,UAAU,GAAG,OAAO;IAC1BC,KAAK;IACLC,MAAM;IACNC,QAAQ,GAAG,KAAK;IAChBC,UAAU;IACVC,UAAU,GAAG,KAAK;IAClBZ,UAAU,GAAG,SAAS;IACtBa,eAAe,EAAEC;EACnB,CAAC,GAAGlB,kBAAkB;EAEtB,MAAMmB,QAAQ,GAAGV,YAAY,CAACW,UAAU,CAAC,MAAM,CAAC;EAChD,MAAMC,aAAa,GAAGV,UAAU,KAAK,OAAO;EAE5C,MAAMW,kBAAkB,GACtBD,aAAa,IAAInB,eAAe,CAACM,MAAM,EAAEY,UAAU,CAAC,MAAM,CAAC,GACvDlB,eAAe,CAACM,MAAM,GACtBe,SAAS;EAEf,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eAAe,CAACE,UAAU,IAAI,OAAQ;IAClDH,mBAAmB,EAAEA,mBAAoB;IACzCiD,YAAY,EAAEhD,eAAe,CAACgD,YAAa;IAC3C5C,KAAK,EAAEC,aAAc;IACrBJ,uBAAuB,EAAED,eAAe,CAACC,uBAAuB,IAAI,GAAI;IAAAgD,QAAA,gBAExEzD,IAAA,CAACF,YAAY;MACXc,KAAK,EAAE;QACL,GAAGC,aAAa;QAChB6C,IAAI,EAAE;UACJ,GAAG7C,aAAa,EAAE6C,IAAI;UACtBC,UAAU,EAAEnC;QACd,CAAC;QACDoC,KAAK,EAAE;UACL,GAAG/C,aAAa,EAAE+C,KAAK;UACvBD,UAAU,EAAEnC;QACd;MACF;IAAE,CACH,CAAC,EACDqB,mBAAmB,CAAC,CAAC;EAAA,CACN,CAAC;AAEvB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","useCallback","SplashImage","SplashVideo","SplashLottie","BackgroundLayout","useSplashCache","AppStatusBar","jsx","_jsx","jsxs","_jsxs","DEFAULT_IMAGE_TIMEOUT","FALLBACK_TIMEOUT","VIDEO_EXTENSIONS","LOTTIE_EXTENSIONS","SplashScreen","memo","splashScreenConfig","innerContainerStyle","backgroundImage","gradientSplitBackground","resizeMode","onRedirect","theme","overrideTheme","source","splashSource","type","splashType","width","height","isStatic","screenTime","fullscreen","backgroundColor","splashBgColor","isRemote","startsWith","isImageSplash","backgroundImageUrl","undefined","data","logoUrl","backgroundUrl","resolvedSplashUri","logoPath","displayTimeout","handleRedirect","err","console","error","timeoutSec","timer","setTimeout","clearTimeout","splashProps","isVideoFile","some","ext","toLowerCase","endsWith","isLottieFile","videoOnEnd","lottieOnAnimationFinish","backgroundLayoutProps","onImageError","appStatusBarTheme","dark","background","light","renderSplashContent","onEnd","onAnimationFinish","children"],"sourceRoot":"../../../../../src","sources":["components/Auth/SplashScreen/SplashScreen.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC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AS,QAAA,gBACzCjE,IAAA,CAACF,YAAY;MAACiB,KAAK,EAAE2C;IAAkB,CAAE,CAAC,EACzCI,mBAAmB,CAAC,CAAC;EAAA,CACN,CAAC;AAEvB,CACF,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import React, { useState, useMemo } from 'react';
3
+ import React, { useState, useMemo, useCallback, useEffect } from 'react';
4
4
  import FastImage from 'react-native-fast-image';
5
5
  import { ActivityIndicator, View, StyleSheet } from 'react-native';
6
6
  import Display from "../../../../../utils/Display.js";
@@ -13,30 +13,48 @@ const SplashImage = ({
13
13
  width
14
14
  }) => {
15
15
  const [isLoading, setIsLoading] = useState(!!source);
16
+
17
+ // Reset loading state when source changes
18
+ useEffect(() => {
19
+ if (source) {
20
+ setIsLoading(true);
21
+ }
22
+ }, [source]);
16
23
  const imageStyles = useMemo(() => ({
17
24
  width: fullscreen ? Display.fullWidth : width,
18
25
  height: fullscreen ? Display.fullHeight : height,
19
26
  flex: 1
20
27
  }), [fullscreen, width, height]);
21
- const handleLoadEnd = useMemo(() => source ? () => setIsLoading(false) : undefined, [source]);
22
- const resolveUri = src => {
23
- if (!src) return '';
24
- if (src.startsWith('http') || src.startsWith('https') || src.startsWith('file://')) return src;
25
- return `file://${src}`;
26
- };
28
+ const handleLoadEnd = useCallback(() => {
29
+ setIsLoading(false);
30
+ }, []);
31
+ const handleError = useCallback(() => {
32
+ setIsLoading(false);
33
+ }, []);
34
+
35
+ // Memoize URI resolution
36
+ const resolvedUri = useMemo(() => {
37
+ if (!source) return '';
38
+ if (source.startsWith('http') || source.startsWith('https') || source.startsWith('file://')) return source;
39
+ return `file://${source}`;
40
+ }, [source]);
41
+
42
+ // Memoize image source
43
+ const imageSource = useMemo(() => ({
44
+ uri: resolvedUri
45
+ }), [resolvedUri]);
46
+ if (!source) return null;
27
47
  return /*#__PURE__*/_jsxs(View, {
28
48
  style: styles.container,
29
49
  children: [isLoading && /*#__PURE__*/_jsx(ActivityIndicator, {
30
50
  size: "large",
31
51
  style: styles.loader
32
52
  }), /*#__PURE__*/_jsx(FastImage, {
33
- source: {
34
- uri: resolveUri(source)
35
- },
53
+ source: imageSource,
36
54
  onLoadEnd: handleLoadEnd,
37
55
  style: imageStyles,
38
56
  resizeMode: resizeMode,
39
- onError: () => setIsLoading(false)
57
+ onError: handleError
40
58
  })]
41
59
  });
42
60
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","useMemo","FastImage","ActivityIndicator","View","StyleSheet","Display","jsx","_jsx","jsxs","_jsxs","SplashImage","fullscreen","height","resizeMode","source","width","isLoading","setIsLoading","imageStyles","fullWidth","fullHeight","flex","handleLoadEnd","undefined","resolveUri","src","startsWith","style","styles","container","children","size","loader","uri","onLoadEnd","onError","create","justifyContent","alignItems","position","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AAChD,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,iBAAiB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAClE,OAAOC,OAAO,MAAM,iCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWnD,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,UAAU;EACVC,MAAM;EACNC,UAAU,GAAG,SAAS;EACtBC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGlB,QAAQ,CAAC,CAAC,CAACe,MAAM,CAAC;EAEpD,MAAMI,WAAW,GAAGlB,OAAO,CACzB,OAAO;IACLe,KAAK,EAAEJ,UAAU,GAAGN,OAAO,CAACc,SAAS,GAAGJ,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGN,OAAO,CAACe,UAAU,GAAGR,MAAM;IAChDS,IAAI,EAAE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AE;EACZ;AACF,CAAC,CAAC;AAEF,4BAAezC,KAAK,CAAC0C,IAAI,CAAC9B,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","useMemo","useCallback","useEffect","FastImage","ActivityIndicator","View","StyleSheet","Display","jsx","_jsx","jsxs","_jsxs","SplashImage","fullscreen","height","resizeMode","source","width","isLoading","setIsLoading","imageStyles","fullWidth","fullHeight","flex","handleLoadEnd","handleError","resolvedUri","startsWith","imageSource","uri","style","styles","container","children","size","loader","onLoadEnd","onError","create","justifyContent","alignItems","position","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AACxE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,iBAAiB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAClE,OAAOC,OAAO,MAAM,iCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWnD,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,UAAU;EACVC,MAAM;EACNC,UAAU,GAAG,SAAS;EACtBC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGpB,QAAQ,CAAC,CAAC,CAACiB,MAAM,CAAC;;EAEpD;EACAd,SAAS,CAAC,MAAM;IACd,IAAIc,MAAM,EAAE;MACVG,YAAY,CAAC,IAAI,CAAC;IACpB;EACF,CAAC,EAAE,CAACH,MAAM,CAAC,CAAC;EAEZ,MAAMI,WAAW,GAAGpB,OAAO,CACzB,OAAO;IACLiB,KAAK,EAAEJ,UAAU,GAAGN,OAAO,CAACc,SAAS,GAAGJ,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGN,OAAO,CAACe,UAAU,GAAGR,MAAM;IAChDS,I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ACgC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTT,IAAI,EAAE,CAAC;IACPN,KAAK,EAAEV,OAAO,CAACc,SAAS;IACxBP,MAAM,EAAEP,OAAO,CAACe,UAAU;IAC1BiB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDL,MAAM,EAAE;IACNM,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,4BAAe3C,KAAK,CAAC4C,IAAI,CAAC9B,WAAW,CAAC","ignoreList":[]}
@@ -4,7 +4,7 @@
4
4
  * @author Naresh Dhamu
5
5
  * @lastModified Thu 12 Jun 2025 at 09:22 AM
6
6
  */
7
- import React, { useMemo } from 'react';
7
+ import React, { useMemo, useCallback } from 'react';
8
8
  import LottieView from 'lottie-react-native';
9
9
  import { StyleSheet } from 'react-native';
10
10
  import Display from "../../../../../utils/Display.js";
@@ -25,22 +25,28 @@ const SplashLottie = ({
25
25
  ...(fullscreen ? styles.fullscreen : {})
26
26
  }), [fullscreen, width, height]);
27
27
 
28
+ // Memoize Lottie source
29
+ const lottieSource = useMemo(() => ({
30
+ uri: source
31
+ }), [source]);
32
+
33
+ // Memoize error handler
34
+ const handleAnimationFailure = useCallback(error => {
35
+ console.error('Lottie animation failed to load:', error);
36
+ }, []);
37
+
28
38
  // Early return if invalid source
29
39
  if (!source) {
30
40
  return null;
31
41
  }
32
42
  return /*#__PURE__*/_jsx(LottieView, {
33
- source: {
34
- uri: source
35
- },
43
+ source: lottieSource,
36
44
  autoPlay: true,
37
45
  loop: false,
38
46
  onAnimationFinish: onAnimationFinish,
39
47
  style: lottieStyle,
40
48
  resizeMode: resizeMode,
41
- onAnimationFailure: error => {
42
- console.error('Lottie animation failed to load:', error);
43
- },
49
+ onAnimationFailure: handleAnimationFailure,
44
50
  hardwareAccelerationAndroid: true,
45
51
  cacheComposition: true
46
52
  });
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","LottieView","StyleSheet","Display","jsx","_jsx","SplashLottie","fullscreen","height","source","resizeMode","width","onAnimationFinish","lottieStyle","styles","base","fullWidth","fullHeight","uri","autoPlay","loop","style","onAnimationFailure","error","console","hardwareAccelerationAndroid","cacheComposition","create","alignSelf","flex","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,OAAO,MAAM,iCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAanD,MAAMC,YAA8B,GAAGA,CAAC;EACtCC,UAAU;EACVC,MAAM;EACNC,MAAM;EACNC,UAAU,GAAG,SAAS;EACtBC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ;EACA,MAAMC,WAAW,GAAGb,OAAO,CACzB,OAAO;IACL,GAAGc,MAAM,CAACC,IAAI;IACdJ,KAAK,EAAEJ,UAAU,GAAGJ,OAAO,CAACa,SAAS,GAAGL,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGJ,OAAO,CAACc,UAAU,GAAGT,MAAM;IAChD,IAAID,UAAU,GAAGO,MAAM,CAACP,UAAU,GAAG,CAAC,CAAC;EACzC,CAAC,CAAC,EACF,CAACA,UAAU,EAAEI,KAAK,EAAEH,MAAM,CAC5B,CAAC;;EAED;EACA,IAAI,CAACC,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EAEA,oBACEJ,IAAA,CAACJ,UAAU;IACTQ,MAAM,EAAE;MAAES,GAAG,EAAET;IAAO,CAAE;IACxBU,QAAQ;IACRC,IAAI,EAAE,KAAM;IACZR,iBAAiB,EAAEA,iBAAkB;IACrCS,KAAK,EAAER,WAAY;IACnBH,UAAU,EAAEA,UAAW;IACvBY,kBAAkB,EAAGC,KAAK,IAAK;MAC7BC,OAAO,CAACD,KAAK,CAAC,kCAAkC,EAAEA,KAAK,CAAC;IAC1D,CAAE;IACFE,2BAA2B;IAC3BC,gBAAgB;EAAA,CACjB,CAAC;AAEN,CAAC;AAED,MAAMZ,MAAM,GAAGZ,UAAU,CAACyB,MAAM,CAAC;EAC/BZ,IAAI,EAAE;IACJa,SAAS,EAAE;EACb,CAAC;EACDrB,UAAU,EAAE;IACVsB,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,4BAAe9B,KAAK,CAAC+B,IAAI,CAACxB,YAAY,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","useCallback","LottieView","StyleSheet","Display","jsx","_jsx","SplashLottie","fullscreen","height","source","resizeMode","width","onAnimationFinish","lottieStyle","styles","base","fullWidth","fullHeight","lottieSource","uri","handleAnimationFailure","error","console","autoPlay","loop","style","onAnimationFailure","hardwareAccelerationAndroid","cacheComposition","create","alignSelf","flex","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACnD,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,OAAO,MAAM,iCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAanD,MAAMC,YAA8B,GAAGA,CAAC;EACtCC,UAAU;EACVC,MAAM;EACNC,MAAM;EACNC,UAAU,GAAG,SAAS;EACtBC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ;EACA,MAAMC,WAAW,GAAGd,OAAO,CACzB,OAAO;IACL,GAAGe,MAAM,CAACC,IAAI;IACdJ,KAAK,EAAEJ,UAAU,GAAGJ,OAAO,CAACa,SAAS,GAAGL,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGJ,OAAO,CAACc,UAAU,GAAGT,MAAM;IAChD,IAAID,UAAU,GAAGO,MAAM,CAACP,UAAU,GAAG,CAAC,CAAC;EACzC,CAAC,CAAC,EACF,CAACA,UAAU,EAAEI,KAAK,EAAEH,MAAM,CAC5B,CAAC;;EAED;EACA,MAAMU,YAAY,GAAGnB,OAAO,CAAC,OAAO;IAAEoB,GAAG,EAAEV;EAAO,CAAC,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;;EAE/D;EACA,MAAMW,sBAAsB,GAAGpB,WAAW,CAAEqB,KAAU,IAAK;IACzDC,OAAO,CAACD,KAAK,CAAC,kCAAkC,EAAEA,KAAK,CAAC;EAC1D,CAAC,EAAE,EAAE,CAAC;;EAEN;EACA,IAAI,CAACZ,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EAEA,oBACEJ,IAAA,CAACJ,UAAU;IACTQ,MAAM,EAAES,YAAa;IACrBK,QAAQ;IACRC,IAAI,EAAE,KAAM;IACZZ,iBAAiB,EAAEA,iBAAkB;IACrCa,KAAK,EAAEZ,WAAY;IACnBH,UAAU,EAAEA,UAAW;IACvBgB,kBAAkB,EAAEN,sBAAuB;IAC3CO,2BAA2B;IAC3BC,gBAAgB;EAAA,CACjB,CAAC;AAEN,CAAC;AAED,MAAMd,MAAM,GAAGZ,UAAU,CAAC2B,MAAM,CAAC;EAC/Bd,IAAI,EAAE;IACJe,SAAS,EAAE;EACb,CAAC;EACDvB,UAAU,EAAE;IACVwB,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,4BAAejC,KAAK,CAACkC,IAAI,CAAC1B,YAAY,CAAC","ignoreList":[]}
@@ -65,18 +65,43 @@ const SplashVideo = ({
65
65
  return () => fadeAnim.stopAnimation();
66
66
  }, [fadeAnim]);
67
67
 
68
+ // Memoize resolved URI
69
+ const resolvedUri = useMemo(() => resolveUri(source), [source, resolveUri]);
70
+
71
+ // Memoize video source
72
+ const videoSource = useMemo(() => ({
73
+ uri: resolvedUri
74
+ }), [resolvedUri]);
75
+
76
+ // Memoize controls styles
77
+ const controlsStyles = useMemo(() => ({
78
+ hideForward: true,
79
+ hideDuration: true,
80
+ hideFullscreen: true,
81
+ hidePlayPause: true,
82
+ hideNavigationBarOnFullScreenMode: true,
83
+ hideNotificationBarOnFullScreenMode: true,
84
+ hideNext: true,
85
+ hidePosition: true,
86
+ hidePrevious: true,
87
+ hideRewind: true,
88
+ hideSeekBar: true,
89
+ hideSettingButton: true
90
+ }), []);
91
+
92
+ // Memoize animated view style
93
+ const animatedViewStyle = useMemo(() => [videoStyle, {
94
+ opacity: fadeAnim,
95
+ position: 'absolute'
96
+ }], [videoStyle, fadeAnim]);
97
+
68
98
  /** 🧱 Render */
69
99
  return /*#__PURE__*/_jsx(View, {
70
100
  style: styles.container,
71
101
  children: /*#__PURE__*/_jsx(Animated.View, {
72
- style: [videoStyle, {
73
- opacity: fadeAnim,
74
- position: 'absolute'
75
- }],
102
+ style: animatedViewStyle,
76
103
  children: /*#__PURE__*/_jsx(Video, {
77
- source: {
78
- uri: resolveUri(source)
79
- },
104
+ source: videoSource,
80
105
  style: videoStyle,
81
106
  resizeMode: resizeMode,
82
107
  paused: false,
@@ -84,20 +109,7 @@ const SplashVideo = ({
84
109
  onLoad: handleLoad,
85
110
  onError: handleError,
86
111
  onEnd: onEnd,
87
- controlsStyles: {
88
- hideForward: true,
89
- hideDuration: true,
90
- hideFullscreen: true,
91
- hidePlayPause: true,
92
- hideNavigationBarOnFullScreenMode: true,
93
- hideNotificationBarOnFullScreenMode: true,
94
- hideNext: true,
95
- hidePosition: true,
96
- hidePrevious: true,
97
- hideRewind: true,
98
- hideSeekBar: true,
99
- hideSettingButton: true
100
- },
112
+ controlsStyles: controlsStyles,
101
113
  ignoreSilentSwitch: "obey",
102
114
  playInBackground: false,
103
115
  playWhenInactive: false,
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","useCallback","useRef","useEffect","StyleSheet","Animated","Video","Display","View","jsx","_jsx","SplashVideo","fullscreen","width","fullWidth","height","fullHeight","source","resizeMode","onEnd","onLoadStart","onLoaded","onError","fadeAnim","Value","current","videoStyle","animateIn","timing","toValue","duration","useNativeDriver","start","resolveUri","src","test","handleLoadStart","setValue","handleLoad","data","handleError","err","errorMsg","error","message","JSON","stringify","stopAnimation","style","styles","container","children","opacity","position","uri","paused","onLoad","controlsStyles","hideForward","hideDuration","hideFullscreen","hidePlayPause","hideNavigationBarOnFullScreenMode","hideNotificationBarOnFullScreenMode","hideNext","hidePosition","hidePrevious","hideRewind","hideSeekBar","hideSettingButton","ignoreSilentSwitch","playInBackground","playWhenInactive","allowsExternalPlayback","automaticallyWaitsToMinimizeStalling","controls","repeat","create","flex","justifyContent","alignItems","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACtE,SAASC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACnD,OAAOC,KAAK,MAGL,oBAAoB;AAC3B,OAAOC,OAAO,MAAM,iCAA8B;AAClD,SAASC,IAAI,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAcxC,MAAMC,WAA6B,GAAGA,CAAC;EACrCC,UAAU,GAAG,KAAK;EAClBC,KAAK,GAAGN,OAAO,CAACO,SAAS;EACzBC,MAAM,GAAGR,OAAO,CAACS,UAAU;EAC3BC,MAAM;EACNC,UAAU,GAAG,OAAO;EACpBC,KAAK;EACLC,WAAW;EACXC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGrB,MAAM,CAAC,IAAIG,QAAQ,CAACmB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;;EAEtD;EACA,MAAMC,UAAU,GAAG1B,OAAO,CACxB,OAAO;IACLa,KAAK,EAAED,UAAU,GAAGL,OAAO,CAACO,SAAS,GAAGD,KAAK;IAC7CE,MAAM,EAAEH,UAAU,GAAGL,OAAO,CAACS,UAAU,GAA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,CAACyE,MAAM,CAAC;EAC/B3B,SAAS,EAAE;IACT4B,IAAI,EAAE,CAAC;IACPzB,QAAQ,EAAE,UAAU;IACpB0B,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,4BAAejF,KAAK,CAACkF,IAAI,CAACtE,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","useCallback","useRef","useEffect","StyleSheet","Animated","Video","Display","View","jsx","_jsx","SplashVideo","fullscreen","width","fullWidth","height","fullHeight","source","resizeMode","onEnd","onLoadStart","onLoaded","onError","fadeAnim","Value","current","videoStyle","animateIn","timing","toValue","duration","useNativeDriver","start","resolveUri","src","test","handleLoadStart","setValue","handleLoad","data","handleError","err","errorMsg","error","message","JSON","stringify","stopAnimation","resolvedUri","videoSource","uri","controlsStyles","hideForward","hideDuration","hideFullscreen","hidePlayPause","hideNavigationBarOnFullScreenMode","hideNotificationBarOnFullScreenMode","hideNext","hidePosition","hidePrevious","hideRewind","hideSeekBar","hideSettingButton","animatedViewStyle","opacity","position","style","styles","container","children","paused","onLoad","ignoreSilentSwitch","playInBackground","playWhenInactive","allowsExternalPlayback","automaticallyWaitsToMinimizeStalling","controls","repeat","create","flex","justifyContent","alignItems","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACtE,SAASC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACnD,OAAOC,KAAK,MAGL,oBAAoB;AAC3B,OAAOC,OAAO,MAAM,iCAA8B;AAClD,SAASC,IAAI,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAcxC,MAAMC,WAA6B,GAAGA,CAAC;EACrCC,UAAU,GAAG,KAAK;EAClBC,KAAK,GAAGN,O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U,EAAE;IAAEuC,OAAO,EAAE1C,QAAQ;IAAE2C,QAAQ,EAAE;EAAoB,CAAC,CAAC,EACxE,CAACxC,UAAU,EAAEH,QAAQ,CACvB,CAAC;;EAED;EACA,oBACEb,IAAA,CAACF,IAAI;IAAC2D,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAE5B5D,IAAA,CAACL,QAAQ,CAACG,IAAI;MAAC2D,KAAK,EAAEH,iBAAkB;MAAAM,QAAA,eACtC5D,IAAA,CAACJ,KAAK;QACJW,MAAM,EAAEgC,WAAY;QACpBkB,KAAK,EAAEzC,UAAW;QAClBR,UAAU,EAAEA,UAAW;QACvBqD,MAAM,EAAE,KAAM;QACdnD,WAAW,EAAEgB,eAAgB;QAC7BoC,MAAM,EAAElC,UAAW;QACnBhB,OAAO,EAAEkB,WAAY;QACrBrB,KAAK,EAAEA,KAAM;QACbgC,cAAc,EAAEA,cAAe;QAC/BsB,kBAAkB,EAAC,MAAM;QACzBC,gBAAgB,EAAE,KAAM;QACxBC,gBAAgB,EAAE,KAAM;QACxBC,sBAAsB,EAAE,KAAM;QAC9BC,oCAAoC;QACpCC,QAAQ,EAAE,KAAM;QAChBC,MAAM,EAAE;MAAM,CACf;IAAC,CACW;EAAC,CACZ,CAAC;AAEX,CAAC;AAED,MAAMX,MAAM,GAAGhE,UAAU,CAAC4E,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,IAAI,EAAE,CAAC;IACPf,QAAQ,EAAE,UAAU;IACpBgB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,4BAAepF,KAAK,CAACqF,IAAI,CAACzE,WAAW,CAAC","ignoreList":[]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- import React, { useMemo, useCallback } from 'react';
3
+ import React, { useMemo, useCallback, memo } from 'react';
4
4
  import { View, StyleSheet, ImageBackground } from 'react-native';
5
5
  import LinearGradient from 'react-native-linear-gradient';
6
6
  import { useSplashCache } from "../../hooks/useSplashCache.js";
7
7
  import { useInternalTheme } from "../../theme/hook/index.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- export const BackgroundLayout = props => {
9
+ const BackgroundLayoutComponent = props => {
10
10
  const {
11
11
  children,
12
12
  backgroundImage: backgroundImageUri,
@@ -33,9 +33,10 @@ export const BackgroundLayout = props => {
33
33
  const isRemoteUrl = rawPath.startsWith('http://') || rawPath.startsWith('https://');
34
34
  return isRemoteUrl ? rawPath : `file://${rawPath}`;
35
35
  }, [backgroundImageUri, localPathBackground]);
36
+ const backgroundColor = useMemo(() => bgColor ?? theme.colors.background, [bgColor, theme.colors.background]);
36
37
  const containerStyle = useMemo(() => [styles.container, {
37
- backgroundColor: bgColor ?? theme.colors.background
38
- }], [bgColor, theme.colors.background]);
38
+ backgroundColor
39
+ }], [backgroundColor]);
39
40
  const handleImageLoadError = useCallback(e => {
40
41
  console.warn('[BackgroundLayout] Image load failed:', e?.nativeEvent?.error);
41
42
  onImageError?.(new Error('Background image failed to load'));
@@ -54,14 +55,16 @@ export const BackgroundLayout = props => {
54
55
  }
55
56
  return locations;
56
57
  }, [theme.colors.backgroundLayoutGradient, gradientSplitBackground]);
57
- const renderChildren = /*#__PURE__*/_jsx(View, {
58
- style: [styles.innerContainer, innerContainerStyle, bgColor ? {
59
- backgroundColor: bgColor
60
- } : null],
61
- children: children
62
- });
58
+ const imageContainerStyle = useMemo(() => [styles.imageContainer, {
59
+ backgroundColor: theme.colors.background
60
+ }], [theme.colors.background]);
61
+ const imageStyle = useMemo(() => [styles.imageStyle, {
62
+ backgroundColor: theme.colors.background
63
+ }], [theme.colors.background]);
64
+ const innerContainerStyleMemo = useMemo(() => [styles.innerContainer, innerContainerStyle, bgColor ? {
65
+ backgroundColor: bgColor
66
+ } : null], [innerContainerStyle, bgColor]);
63
67
  const showBackground = Boolean(backgroundImageUri && resolvedImageUri);
64
- const showGradient = showBackground;
65
68
  if (showBackground) {
66
69
  return /*#__PURE__*/_jsx(View, {
67
70
  style: containerStyle,
@@ -70,14 +73,10 @@ export const BackgroundLayout = props => {
70
73
  uri: resolvedImageUri
71
74
  },
72
75
  resizeMode: resizeMode,
73
- style: [styles.imageContainer, {
74
- backgroundColor: theme.colors.background
75
- }],
76
- imageStyle: [styles.imageStyle, {
77
- backgroundColor: theme.colors.background
78
- }],
76
+ style: imageContainerStyle,
77
+ imageStyle: imageStyle,
79
78
  onError: handleImageLoadError,
80
- children: [showGradient && /*#__PURE__*/_jsx(LinearGradient, {
79
+ children: [/*#__PURE__*/_jsx(LinearGradient, {
81
80
  colors: theme.colors.backgroundLayoutGradient,
82
81
  locations: gradientLocations,
83
82
  start: {
@@ -89,15 +88,22 @@ export const BackgroundLayout = props => {
89
88
  y: 1
90
89
  },
91
90
  style: styles.gradientOverlay
92
- }), renderChildren]
91
+ }), /*#__PURE__*/_jsx(View, {
92
+ style: innerContainerStyleMemo,
93
+ children: children
94
+ })]
93
95
  })
94
96
  });
95
97
  }
96
98
  return /*#__PURE__*/_jsx(View, {
97
99
  style: containerStyle,
98
- children: renderChildren
100
+ children: /*#__PURE__*/_jsx(View, {
101
+ style: innerContainerStyleMemo,
102
+ children: children
103
+ })
99
104
  });
100
105
  };
106
+ export const BackgroundLayout = /*#__PURE__*/memo(BackgroundLayoutComponent);
101
107
  const styles = StyleSheet.create({
102
108
  container: {
103
109
  flex: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","useCallback","View","StyleSheet","ImageBackground","LinearGradient","useSplashCache","useInternalTheme","jsx","_jsx","jsxs","_jsxs","BackgroundLayout","props","children","backgroundImage","backgroundImageUri","backgroundColor","bgColor","gradientSplitBackground","resizeMode","innerContainerStyle","onImageError","theme","themeOverride","data","backgroundPath","localPathBackground","backgroundUrl","undefined","resolvedImageUri","rawPath","isRemoteUrl","startsWith","containerStyle","styles","container","colors","background","handleImageLoadError","e","console","warn","nativeEvent","error","Error","gradientLocations","gradientColors","backgroundLayoutGradient","count","length","baseSteps","locations","map","step","Math","min","slice","last","Array","fill","renderChildren","style","innerContainer","showBackground","Boolean","showGradient","source","uri","imageContainer","imageStyle","onError","start","x","y","end","gradientOverlay","create","flex","width","height","alignSelf","absoluteFillObject","pointerEvents","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["components/BackgroundLayout/BackgroundLayout.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACnD,SACEC,IAAI,EACJC,UAAU,EACVC,eAAe,QAGV,cAAc;AACrB,OAAOC,cAAc,MAAM,8BAA8B;AAEzD,SAASC,cAAc,QAAQ,+BAA4B;AAC3D,SAASC,gBAAgB,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAapD,OAAO,MAAMC,gBAAiD,GAAIC,KAAK,IAAK;EAC1E,MAAM;IACJC,QAAQ;IACRC,eAAe,EAAEC,kBAAkB;IACnCC,eAAe,EAAEC,OAAO;IACxBC,uBAAuB,GAAG,GAAG;IAC7BC,UAAU,GAAG,OAAO;IACpBC,mBAAmB;IACnBC,YAAY;IACZC,KAAK,EAAEC;EACT,CAAC,GAAGX,KAAK;EAET,MAAM;IAAEU;EAAM,CAAC,GAAGhB,gBAAgB,CAACiB,aAAa,CAAC;EACjD,MAAM;IACJC,IAAI,EAAE;MAAEC,cAAc,EAAEC;IAAoB;EAC9C,CAAC,GAAGrB,cAAc,CAAC;IACjBsB,aAAa,EAAEZ,kBAAkB,IAAIa;EACvC,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAG9B,OAAO,CAAC,MAAM;IACrC,IAAI,CAACgB,kBAAkB,EAAE,OAAOa,SAAS;IACzC,MAAME,OAAO,GAAGJ,mBAAmB,IAAIX,kBAAkB;IACzD,MAAMgB,WAAW,GACfD,OAAO,CAACE,UAAU,CAAC,SAAS,CAAC,IAAIF,OAAO,CAACE,UAAU,CAAC,UAAU,CAA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AE;YAAEC,CAAC,EAAE,GAAG;YAAEC,CAAC,EAAE;UAAE,CAAE;UACxBC,GAAG,EAAE;YAAEF,CAAC,EAAE,GAAG;YAAEC,CAAC,EAAE;UAAE,CAAE;UACtBZ,KAAK,EAAE3B,MAAM,CAACyC;QAAgB,CAC/B,CACF,EACAf,cAAc;MAAA,CACA;IAAC,CACd,CAAC;EAEX;EAEA,oBAAOpD,IAAA,CAACP,IAAI;IAAC4D,KAAK,EAAE5B,cAAe;IAAApB,QAAA,EAAE+C;EAAc,CAAO,CAAC;AAC7D,CAAC;AAED,MAAM1B,MAAM,GAAGhC,UAAU,CAAC0E,MAAM,CAAC;EAC/BzC,SAAS,EAAE;IACT0C,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDX,cAAc,EAAE;IACdS,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDV,UAAU,EAAE;IACVU,MAAM,EAAE,KAAK;IACbD,KAAK,EAAE,MAAM;IACbE,SAAS,EAAE;EACb,CAAe;EACfL,eAAe,EAAE;IACf,GAAGzE,UAAU,CAAC+E,kBAAkB;IAChCC,aAAa,EAAE;EACjB,CAAC;EACDpB,cAAc,EAAE;IACde,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbK,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","useCallback","memo","View","StyleSheet","ImageBackground","LinearGradient","useSplashCache","useInternalTheme","jsx","_jsx","jsxs","_jsxs","BackgroundLayoutComponent","props","children","backgroundImage","backgroundImageUri","backgroundColor","bgColor","gradientSplitBackground","resizeMode","innerContainerStyle","onImageError","theme","themeOverride","data","backgroundPath","localPathBackground","backgroundUrl","undefined","resolvedImageUri","rawPath","isRemoteUrl","startsWith","colors","background","containerStyle","styles","container","handleImageLoadError","e","console","warn","nativeEvent","error","Error","gradientLocations","gradientColors","backgroundLayoutGradient","count","length","baseSteps","locations","map","step","Math","min","slice","last","Array","fill","imageContainerStyle","imageContainer","imageStyle","innerContainerStyleMemo","innerContainer","showBackground","Boolean","style","source","uri","onError","start","x","y","end","gradientOverlay","BackgroundLayout","create","flex","width","height","alignSelf","absoluteFillObject","pointerEvents","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["components/BackgroundLayout/BackgroundLayout.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,EAAEC,IAAI,QAAQ,OAAO;AACzD,SACEC,IAAI,EACJC,UAAU,EACVC,eAAe,QAGV,cAAc;AACrB,OAAOC,cAAc,MAAM,8BAA8B;AAEzD,SAASC,cAAc,QAAQ,+BAA4B;AAC3D,SAASC,gBAAgB,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAapD,MAAMC,yBAA0D,GAAIC,KAAK,IAAK;EAC5E,MAAM;IACJC,QAAQ;IACRC,eAAe,EAAEC,kBAAkB;IACnCC,eAAe,EAAEC,OAAO;IACxBC,uBAAuB,GAAG,GAAG;IAC7BC,UAAU,GAAG,OAAO;IACpBC,mBAAmB;IACnBC,YAAY;IACZC,KAAK,EAAEC;EACT,CAAC,GAAGX,KAAK;EAET,MAAM;IAAEU;EAAM,CAAC,GAAGhB,gBAAgB,CAACiB,aAAa,CAAC;EACjD,MAAM;IACJC,IAAI,EAAE;MAAEC,cAAc,EAAEC;IAAoB;EAC9C,CAAC,GAAGrB,cAAc,CAAC;IACjBsB,aAAa,EAAEZ,kBAAkB,IAAIa;EACvC,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAG/B,OAAO,CAAC,MAAM;IACrC,IAAI,CAACiB,kBAAkB,EAAE,OAAOa,SAAS;IACzC,MAAME,OAAO,GAAGJ,mBAAmB,IAAIX,kBAAkB;IACzD,MAAMgB,WAAW,GACfD,OA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