@opexa/portal-components 0.0.107 → 0.0.109

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 (331) hide show
  1. package/dist/client/hooks/useAuthenticateMutation.js +2 -1
  2. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.d.ts +1 -1
  3. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +20 -2
  4. package/dist/client/hooks/useClaimCashbackBonusMutation.js +2 -1
  5. package/dist/client/hooks/useClaimSpotBonusMutation.js +2 -1
  6. package/dist/client/hooks/useCompleteOnboardingMutation.d.ts +3 -0
  7. package/dist/client/hooks/useCompleteOnboardingMutation.js +25 -0
  8. package/dist/client/hooks/useCreateGCashDepositMutation.js +20 -1
  9. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +1 -1
  10. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  11. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +1 -1
  12. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +20 -1
  13. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +1 -1
  14. package/dist/client/hooks/useCreateMayaDepositMutation.js +20 -1
  15. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +1 -1
  16. package/dist/client/hooks/useCreateMemberVerificationMutation.d.ts +4 -0
  17. package/dist/client/hooks/useCreateMemberVerificationMutation.js +45 -0
  18. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +20 -1
  19. package/dist/client/hooks/useCreateQRPHDepositMutation.js +20 -1
  20. package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
  21. package/dist/client/hooks/useFileQuery.d.ts +2 -0
  22. package/dist/client/hooks/useFileQuery.js +30 -0
  23. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +24 -5
  24. package/dist/client/hooks/useMarkMessageAsReadMutation.js +16 -7
  25. package/dist/client/hooks/useOnboardingStatusQuery.d.ts +2 -0
  26. package/dist/client/hooks/useOnboardingStatusQuery.js +28 -0
  27. package/dist/client/hooks/useRecommendedGamesQuery.d.ts +2 -0
  28. package/dist/client/hooks/useRecommendedGamesQuery.js +27 -0
  29. package/dist/client/hooks/useRemainingTime.d.ts +12 -1
  30. package/dist/client/hooks/useRemainingTime.js +37 -6
  31. package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -1
  32. package/dist/client/hooks/useSignInMutation.js +2 -1
  33. package/dist/client/hooks/useSignOutMutation.js +2 -1
  34. package/dist/client/hooks/useSignUpMutation.js +1 -1
  35. package/dist/client/hooks/useSiteQuery.d.ts +2 -0
  36. package/dist/client/hooks/useSiteQuery.js +16 -0
  37. package/dist/client/hooks/useSkipOnboardingMutation.d.ts +2 -0
  38. package/dist/client/hooks/useSkipOnboardingMutation.js +25 -0
  39. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +5 -5
  40. package/dist/client/hooks/useUpdateAccountMutation.js +2 -1
  41. package/dist/client/hooks/useUpdateMemberVerificationMutation.d.ts +6 -0
  42. package/dist/client/hooks/useUpdateMemberVerificationMutation.js +38 -0
  43. package/dist/client/hooks/useUploadImageFileMutation.d.ts +4 -0
  44. package/dist/client/hooks/useUploadImageFileMutation.js +24 -0
  45. package/dist/client/utils/createContext.js +1 -1
  46. package/dist/client/utils/createRecipeContext.js +1 -1
  47. package/dist/components/BetRecords/BetRecords.client.js +1 -1
  48. package/dist/components/Bonus/Bonus.client.js +1 -1
  49. package/dist/components/Bonuses/Bonuses.client.js +1 -1
  50. package/dist/components/Cashback/Cashback.client.js +1 -1
  51. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  52. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  53. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  54. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  55. package/dist/components/Disclaimer/DisclaimerV1.js +1 -1
  56. package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
  57. package/dist/components/Games/Game.js +1 -1
  58. package/dist/components/Games/GamesCarousel.client.js +1 -1
  59. package/dist/components/Games/GamesList.client.js +1 -1
  60. package/dist/components/GamesSearch/GamesSearch.js +1 -1
  61. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  62. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  63. package/dist/components/KYC/BasicInformation.js +85 -4
  64. package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
  65. package/dist/components/KYC/CaptureIdDocument.js +11 -0
  66. package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
  67. package/dist/components/KYC/CaptureSelfie.js +11 -0
  68. package/dist/components/KYC/IdentityVerification.js +20 -4
  69. package/dist/components/KYC/Indicator.js +1 -1
  70. package/dist/components/KYC/KYC.lazy.js +7 -1
  71. package/dist/components/KYC/PersonalInformation.js +92 -5
  72. package/dist/components/KYC/useKYC.d.ts +15 -0
  73. package/dist/components/KYC/useKYC.js +18 -1
  74. package/dist/components/Messages/Messages.lazy.js +1 -1
  75. package/dist/components/News/News.d.ts +10 -0
  76. package/dist/components/News/News.js +10 -0
  77. package/dist/components/News/index.d.ts +1 -0
  78. package/dist/components/News/index.js +1 -0
  79. package/dist/components/NewsFeed/NewsFeed.d.ts +18 -0
  80. package/dist/components/NewsFeed/NewsFeed.js +11 -0
  81. package/dist/components/NewsFeed/index.d.ts +1 -0
  82. package/dist/components/NewsFeed/index.js +1 -0
  83. package/dist/components/Promo/Promo.client.js +1 -1
  84. package/dist/components/Promos/PromosCarousel.js +1 -1
  85. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -4
  86. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +28 -25
  87. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.d.ts +6 -0
  88. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.js +15 -0
  89. package/dist/components/Quests/DailyCheckInQuest.d.ts +1 -0
  90. package/dist/components/Quests/DailyCheckInQuest.js +96 -0
  91. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -4
  92. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +27 -3
  93. package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.d.ts +6 -0
  94. package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.js +15 -0
  95. package/dist/components/Quests/OnboardingQuest.d.ts +1 -0
  96. package/dist/components/Quests/OnboardingQuest.js +47 -0
  97. package/dist/components/Quests/Quests.client.d.ts +2 -0
  98. package/dist/components/Quests/Quests.client.js +25 -10
  99. package/dist/components/Quests/QuestsContext.d.ts +2 -0
  100. package/dist/components/Quests/QuestsContext.js +2 -0
  101. package/dist/components/Quests/RemainingTime.d.ts +1 -0
  102. package/dist/components/Quests/RemainingTime.js +19 -0
  103. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -4
  104. package/dist/components/Quests/WageringQuest/WageringQuest.js +12 -9
  105. package/dist/components/Quests/WageringQuest/WageringQuestRules.d.ts +7 -0
  106. package/dist/components/Quests/WageringQuest/WageringQuestRules.js +17 -0
  107. package/dist/components/Quests/WageringQuest.d.ts +1 -0
  108. package/dist/components/Quests/WageringQuest.js +36 -0
  109. package/dist/components/Search/Search.lazy.js +1 -1
  110. package/dist/components/SignIn/MobileNumberSignIn.js +7 -4
  111. package/dist/components/SignIn/NameAndPasswordSignIn.js +10 -5
  112. package/dist/components/SignUp/SignUpForm.js +13 -7
  113. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  114. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  115. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  116. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  117. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  118. package/dist/constants/{endpoints.js → Endpoint.js} +1 -1
  119. package/dist/constants/index.d.ts +7 -7
  120. package/dist/constants/index.js +7 -7
  121. package/dist/server/utils/prefetchAccountQuery.js +5 -2
  122. package/dist/server/utils/prefetchAvailablePromosQuery.js +5 -2
  123. package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +5 -2
  124. package/dist/server/utils/prefetchAvailableQuestsQuery.js +5 -2
  125. package/dist/server/utils/prefetchBetRecordsQuery.js +5 -2
  126. package/dist/server/utils/prefetchBonusQuery.js +5 -2
  127. package/dist/server/utils/prefetchBonusesCountQuery.js +5 -2
  128. package/dist/server/utils/prefetchBonusesQuery.js +5 -2
  129. package/dist/server/utils/prefetchCashbackBonusQuery.js +5 -2
  130. package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +5 -2
  131. package/dist/server/utils/prefetchCashbackBonusesQuery.js +5 -2
  132. package/dist/server/utils/prefetchCashbackQuery.js +5 -2
  133. package/dist/server/utils/prefetchCashbacksQuery.js +5 -2
  134. package/dist/server/utils/prefetchDepositQuery.js +5 -2
  135. package/dist/server/utils/prefetchDepositRecordsQuery.js +5 -2
  136. package/dist/server/utils/prefetchDepositsCountQuery.js +5 -2
  137. package/dist/server/utils/prefetchFavoriteGamesQuery.js +5 -2
  138. package/dist/server/utils/prefetchFileQuery.d.ts +1 -0
  139. package/dist/server/utils/prefetchFileQuery.js +23 -0
  140. package/dist/server/utils/prefetchGamesQuery.js +5 -2
  141. package/dist/server/utils/prefetchInstapayBankListQuery.js +5 -2
  142. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +5 -2
  143. package/dist/server/utils/prefetchJackpotsCountQuery.js +5 -2
  144. package/dist/server/utils/prefetchJackpotsQuery.js +5 -2
  145. package/dist/server/utils/prefetchMemberVerificationQuery.js +5 -2
  146. package/dist/server/utils/prefetchOnboardingStatusQuery.d.ts +1 -0
  147. package/dist/server/utils/prefetchOnboardingStatusQuery.js +24 -0
  148. package/dist/server/utils/prefetchPaymentSettingsQuery.js +5 -2
  149. package/dist/server/utils/prefetchPlatformQuery.js +5 -2
  150. package/dist/server/utils/prefetchProfileCompletionQuery.js +5 -2
  151. package/dist/server/utils/prefetchPromoQuery.js +5 -2
  152. package/dist/server/utils/prefetchPromosQuery.js +5 -2
  153. package/dist/server/utils/prefetchRecommendedGamesQuery.d.ts +1 -0
  154. package/dist/server/utils/prefetchRecommendedGamesQuery.js +23 -0
  155. package/dist/server/utils/prefetchSessionQuery.js +6 -3
  156. package/dist/server/utils/prefetchSiteQuery.d.ts +1 -0
  157. package/dist/server/utils/prefetchSiteQuery.js +17 -0
  158. package/dist/server/utils/prefetchTopWinsQuery.js +5 -2
  159. package/dist/server/utils/prefetchTournamentsCountQuery.js +5 -2
  160. package/dist/server/utils/prefetchTournamentsQuery.js +5 -2
  161. package/dist/server/utils/prefetchTransactionRecordsQuery.js +5 -2
  162. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +5 -2
  163. package/dist/server/utils/prefetchWalletQuery.js +5 -2
  164. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +5 -2
  165. package/dist/services/account.d.ts +1 -0
  166. package/dist/services/account.js +11 -1
  167. package/dist/services/queries.d.ts +2 -1
  168. package/dist/services/queries.js +2369 -2351
  169. package/dist/styles/theme.css +699 -698
  170. package/dist/types/index.d.ts +7 -0
  171. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  172. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  173. package/dist/ui/Checkbox/checkbox.recipe.js +2 -2
  174. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  175. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  176. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  177. package/dist/ui/Menu/Menu.d.ts +144 -144
  178. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  179. package/dist/ui/Select/Select.d.ts +45 -45
  180. package/dist/ui/Select/select.recipe.d.ts +3 -3
  181. package/dist/ui/Table/Table.d.ts +21 -21
  182. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  183. package/dist/ui/Table/table.recipe.d.ts +3 -3
  184. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  185. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  186. package/dist/utils/callIfFn.d.ts +8 -0
  187. package/dist/utils/callIfFn.js +8 -0
  188. package/dist/utils/createPoll.d.ts +1 -0
  189. package/dist/utils/createPoll.js +1 -0
  190. package/dist/utils/createSplitProps.d.ts +9 -0
  191. package/dist/utils/createSplitProps.js +9 -0
  192. package/dist/utils/log.d.ts +3 -0
  193. package/dist/utils/log.js +18 -0
  194. package/dist/utils/mutationKeys.d.ts +29 -0
  195. package/dist/utils/mutationKeys.js +104 -0
  196. package/dist/utils/queryKeys.d.ts +5 -24
  197. package/dist/utils/queryKeys.js +80 -97
  198. package/package.json +162 -162
  199. package/dist/client/hooks/index.d.ts +0 -65
  200. package/dist/client/hooks/index.js +0 -65
  201. package/dist/client/services/index.d.ts +0 -4
  202. package/dist/client/services/index.js +0 -4
  203. package/dist/client/utils/index.d.ts +0 -3
  204. package/dist/client/utils/index.js +0 -3
  205. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
  206. package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
  207. package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
  208. package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
  209. package/dist/components/CashbackBonus/index.d.ts +0 -1
  210. package/dist/components/CashbackBonus/index.js +0 -1
  211. package/dist/components/Games/GameContext.d.ts +0 -2
  212. package/dist/components/Games/GameContext.js +0 -2
  213. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
  214. package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
  215. package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
  216. package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
  217. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
  218. package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
  219. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
  220. package/dist/components/JackpotCounter/index.d.ts +0 -1
  221. package/dist/components/JackpotCounter/index.js +0 -1
  222. package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
  223. package/dist/components/Jackpots/JackpotDesktop.js +0 -45
  224. package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
  225. package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
  226. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
  227. package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
  228. package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
  229. package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
  230. package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
  231. package/dist/components/Jackpots/JackpotMobile.js +0 -46
  232. package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
  233. package/dist/components/Jackpots/JackpotRules.js +0 -11
  234. package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
  235. package/dist/components/Jackpots/Jackpots.client.js +0 -29
  236. package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
  237. package/dist/components/Jackpots/JackpotsContext.js +0 -3
  238. package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
  239. package/dist/components/Jackpots/useJackpotData.js +0 -93
  240. package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
  241. package/dist/components/Jackpots/useJackpotItemData.js +0 -87
  242. package/dist/components/KYC/Header.d.ts +0 -1
  243. package/dist/components/KYC/Header.js +0 -8
  244. package/dist/components/KYC/Step1.d.ts +0 -1
  245. package/dist/components/KYC/Step1.js +0 -13
  246. package/dist/components/KYC/Step2.d.ts +0 -1
  247. package/dist/components/KYC/Step2.js +0 -13
  248. package/dist/components/KYC/Step3.d.ts +0 -1
  249. package/dist/components/KYC/Step3.js +0 -13
  250. package/dist/components/KYC/Step4.d.ts +0 -1
  251. package/dist/components/KYC/Step4.js +0 -7
  252. package/dist/components/Messages/MessageItem.d.ts +0 -4
  253. package/dist/components/Messages/MessageItem.js +0 -34
  254. package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
  255. package/dist/components/PortalProvider/WebVitals.js +0 -8
  256. package/dist/components/Promo/PromoContent.d.ts +0 -2
  257. package/dist/components/Promo/PromoContent.js +0 -9
  258. package/dist/components/Promos/PromoCarousel.d.ts +0 -2
  259. package/dist/components/Promos/PromoCarousel.js +0 -41
  260. package/dist/components/Promos/PromoGrid.d.ts +0 -2
  261. package/dist/components/Promos/PromoGrid.js +0 -12
  262. package/dist/components/Promos/PromoItem.d.ts +0 -7
  263. package/dist/components/Promos/PromoItem.js +0 -10
  264. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  265. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  266. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  267. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  268. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
  269. package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
  270. package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
  271. package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
  272. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
  273. package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
  274. package/dist/components/TournamentCounter/index.d.ts +0 -1
  275. package/dist/components/TournamentCounter/index.js +0 -1
  276. package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
  277. package/dist/components/Tournaments/TournamentDesktop.js +0 -57
  278. package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
  279. package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
  280. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
  281. package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
  282. package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
  283. package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
  284. package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
  285. package/dist/components/Tournaments/TournamentMobile.js +0 -55
  286. package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
  287. package/dist/components/Tournaments/TournamentRules.js +0 -11
  288. package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
  289. package/dist/components/Tournaments/Tournaments.client.js +0 -20
  290. package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
  291. package/dist/components/Tournaments/TournamentsContext.js +0 -3
  292. package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
  293. package/dist/components/Tournaments/useTournamentData.js +0 -72
  294. package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
  295. package/dist/components/Tournaments/useTournamentItemData.js +0 -64
  296. package/dist/components/index.d.ts +0 -33
  297. package/dist/components/index.js +0 -33
  298. package/dist/icons/index.d.ts +0 -65
  299. package/dist/icons/index.js +0 -65
  300. package/dist/images/hacksaw-gaming.png +0 -0
  301. package/dist/server/services/index.d.ts +0 -4
  302. package/dist/server/services/index.js +0 -4
  303. package/dist/server/utils/index.d.ts +0 -29
  304. package/dist/server/utils/index.js +0 -29
  305. package/dist/ui/Presence.d.ts +0 -2
  306. package/dist/ui/Presence.js +0 -7
  307. package/dist/ui/Prose.d.ts +0 -2
  308. package/dist/ui/Prose.js +0 -5
  309. package/dist/ui/index.d.ts +0 -26
  310. package/dist/ui/index.js +0 -26
  311. package/dist/utils/index.d.ts +0 -17
  312. package/dist/utils/index.js +0 -17
  313. package/dist/utils/isMobile.d.ts +0 -5
  314. package/dist/utils/isMobile.js +0 -9
  315. /package/dist/components/{Empty.d.ts → shared/Empty.d.ts} +0 -0
  316. /package/dist/components/{Empty.js → shared/Empty.js} +0 -0
  317. /package/dist/components/{InfiniteScroll.d.ts → shared/InfiniteScroll.d.ts} +0 -0
  318. /package/dist/components/{InfiniteScroll.js → shared/InfiniteScroll.js} +0 -0
  319. /package/dist/constants/{endpoints.d.ts → Endpoint.d.ts} +0 -0
  320. /package/dist/constants/{envVars.d.ts → EnvVar.d.ts} +0 -0
  321. /package/dist/constants/{envVars.js → EnvVar.js} +0 -0
  322. /package/dist/constants/{gameProviders.d.ts → GameProvider.d.ts} +0 -0
  323. /package/dist/constants/{gameProviders.js → GameProvider.js} +0 -0
  324. /package/dist/constants/{gameTypes.d.ts → GameType.d.ts} +0 -0
  325. /package/dist/constants/{gameTypes.js → GameType.js} +0 -0
  326. /package/dist/constants/{headerKeys.d.ts → HeaderKey.d.ts} +0 -0
  327. /package/dist/constants/{headerKeys.js → HeaderKey.js} +0 -0
  328. /package/dist/constants/{secretQuestions.d.ts → SecretQuestion.d.ts} +0 -0
  329. /package/dist/constants/{secretQuestions.js → SecretQuestion.js} +0 -0
  330. /package/dist/constants/{storageKeys.d.ts → StorageKey.d.ts} +0 -0
  331. /package/dist/constants/{storageKeys.js → StorageKey.js} +0 -0
@@ -1,184 +1,184 @@
1
- @keyframes arrow-green-flash {
2
- 0% {
3
- color: #abefc6;
4
- }
5
- 100% {
6
- color: #079455;
7
- }
8
- }
9
-
10
- .animate-arrow-green-flash-1 {
11
- animation: arrow-green-flash 0.4s infinite;
12
- animation-delay: -0.2s;
13
- }
14
-
15
- .animate-arrow-green-flash-2 {
16
- animation: arrow-green-flash 0.4s infinite;
17
- animation-delay: -0.1s;
18
- }
19
-
20
- .animate-arrow-green-flash-3 {
21
- animation: arrow-green-flash 0.4s infinite;
22
- }
23
-
24
- @keyframes arrow-red-flash {
25
- 0%,
26
- 100% {
27
- color: #f97066;
28
- }
29
- 50% {
30
- color: #fecdca;
31
- }
32
- }
33
-
34
- .animate-arrow-red-flash-1 {
35
- animation: arrow-red-flash 0.4s infinite;
36
- }
37
-
38
- .animate-arrow-red-flash-2 {
39
- animation: arrow-red-flash 0.4s infinite;
40
- animation-delay: -0.1s;
41
- }
42
-
43
- .animate-arrow-red-flash-3 {
44
- animation: arrow-red-flash 0.4s infinite;
45
- animation-delay: -0.2s;
46
- }
47
-
48
- /* Animated BG */
49
- @keyframes rotate {
50
- to {
51
- transform: rotate(1turn);
52
- }
53
- }
54
-
55
- .light-rays {
56
- position: absolute;
57
- top: 0;
58
- left: 0;
59
- right: 0;
60
- bottom: 0;
61
- overflow: hidden;
62
-
63
- --first: var(--color-bg-tertiary);
64
- --second: var(--color-bg-quaternary);
65
- }
66
-
67
- .light-rays::before,
68
- .light-rays::after {
69
- content: '';
70
- position: absolute;
71
- top: var(--light-rays-top, 150px);
72
- left: calc(50% - 90px);
73
- margin: -100vmax;
74
- width: 200vmax;
75
- height: 200vmax;
76
- opacity: 0.6;
77
- transform-origin: center;
78
- }
79
-
80
- .light-rays::before {
81
- background: conic-gradient(
82
- var(--first) 0deg 7.2deg,
83
- var(--second) 7.2deg 14.4deg,
84
- var(--first) 14.4deg 21.6deg,
85
- var(--second) 21.6deg 28.8deg,
86
- var(--first) 28.8deg 36deg,
87
- var(--second) 36deg 43.2deg,
88
- var(--first) 43.2deg 50.4deg,
89
- var(--second) 50.4deg 57.6deg,
90
- var(--first) 57.6deg 64.8deg,
91
- var(--second) 64.8deg 72deg,
92
- var(--first) 72deg 79.2deg,
93
- var(--second) 79.2deg 86.4deg,
94
- var(--first) 86.4deg 93.6deg,
95
- var(--second) 93.6deg 100.8deg,
96
- var(--first) 100.8deg 108deg,
97
- var(--second) 108deg 115.2deg,
98
- var(--first) 115.2deg 122.4deg,
99
- var(--second) 122.4deg 129.6deg,
100
- var(--first) 129.6deg 136.8deg,
101
- var(--second) 136.8deg 144deg,
102
- var(--first) 144deg 151.2deg,
103
- var(--second) 151.2deg 158.4deg,
104
- var(--first) 158.4deg 165.6deg,
105
- var(--second) 165.6deg 172.8deg,
106
- var(--first) 172.8deg 180deg,
107
- var(--second) 180deg 187.2deg,
108
- var(--first) 187.2deg 194.4deg,
109
- var(--second) 194.4deg 201.6deg,
110
- var(--first) 201.6deg 208.8deg,
111
- var(--second) 208.8deg 216deg,
112
- var(--first) 216deg 223.2deg,
113
- var(--second) 223.2deg 230.4deg,
114
- var(--first) 230.4deg 237.6deg,
115
- var(--second) 237.6deg 244.8deg,
116
- var(--first) 244.8deg 252deg,
117
- var(--second) 252deg 259.2deg,
118
- var(--first) 259.2deg 266.4deg,
119
- var(--second) 266.4deg 273.6deg,
120
- var(--first) 273.6deg 280.8deg,
121
- var(--second) 280.8deg 288deg,
122
- var(--first) 288deg 295.2deg,
123
- var(--second) 295.2deg 302.4deg,
124
- var(--first) 302.4deg 309.6deg,
125
- var(--second) 309.6deg 316.8deg,
126
- var(--first) 316.8deg 324deg,
127
- var(--second) 324deg 331.2deg,
128
- var(--first) 331.2deg 338.4deg,
129
- var(--second) 338.4deg 345.6deg,
130
- var(--first) 345.6deg 352.8deg,
131
- var(--second) 352.8deg 360deg
132
- );
133
- animation: rotate 20s linear infinite;
134
- }
135
-
136
- @media (max-width: 1024px) {
137
- .light-rays::before,
138
- .light-rays::after {
139
- left: auto;
140
- right: 11%;
141
- }
142
- }
143
-
144
- /* ScrollArea.module.css */
145
- .scrollArea {
146
- overflow-y: scroll;
147
- padding-right: 4px;
148
- }
149
-
150
- /* WebKit-based browsers */
151
- .scrollArea::-webkit-scrollbar {
152
- width: 8px;
153
- }
154
-
155
- .scrollArea::-webkit-scrollbar-track {
156
- background: var(--color-bg-primary-alt);
157
- border-radius: 9999px;
158
- }
159
-
160
- .scrollArea::-webkit-scrollbar-thumb {
161
- background-color: var(--color-bg-quaternary);
162
- border-radius: 9999px;
163
- }
164
-
165
- @keyframes waveColor {
166
- 0%,
167
- 2.5% {
168
- color: var(--wave-highlight-color);
169
- }
170
- 2.51%,
171
- 100% {
172
- color: var(--color-brand-300);
173
- }
174
- }
175
-
176
- .animate-wave-color-success {
177
- --wave-highlight-color: var(--color-success-800);
178
- animation: waveColor 4s ease-in-out infinite;
179
- }
180
-
181
- .animate-wave-color-error {
182
- --wave-highlight-color: var(--color-error-600);
183
- animation: waveColor 4s ease-in-out infinite;
184
- }
1
+ @keyframes arrow-green-flash {
2
+ 0% {
3
+ color: #abefc6;
4
+ }
5
+ 100% {
6
+ color: #079455;
7
+ }
8
+ }
9
+
10
+ .animate-arrow-green-flash-1 {
11
+ animation: arrow-green-flash 0.4s infinite;
12
+ animation-delay: -0.2s;
13
+ }
14
+
15
+ .animate-arrow-green-flash-2 {
16
+ animation: arrow-green-flash 0.4s infinite;
17
+ animation-delay: -0.1s;
18
+ }
19
+
20
+ .animate-arrow-green-flash-3 {
21
+ animation: arrow-green-flash 0.4s infinite;
22
+ }
23
+
24
+ @keyframes arrow-red-flash {
25
+ 0%,
26
+ 100% {
27
+ color: #f97066;
28
+ }
29
+ 50% {
30
+ color: #fecdca;
31
+ }
32
+ }
33
+
34
+ .animate-arrow-red-flash-1 {
35
+ animation: arrow-red-flash 0.4s infinite;
36
+ }
37
+
38
+ .animate-arrow-red-flash-2 {
39
+ animation: arrow-red-flash 0.4s infinite;
40
+ animation-delay: -0.1s;
41
+ }
42
+
43
+ .animate-arrow-red-flash-3 {
44
+ animation: arrow-red-flash 0.4s infinite;
45
+ animation-delay: -0.2s;
46
+ }
47
+
48
+ /* Animated BG */
49
+ @keyframes rotate {
50
+ to {
51
+ transform: rotate(1turn);
52
+ }
53
+ }
54
+
55
+ .light-rays {
56
+ position: absolute;
57
+ top: 0;
58
+ left: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ overflow: hidden;
62
+
63
+ --first: var(--color-bg-tertiary);
64
+ --second: var(--color-bg-quaternary);
65
+ }
66
+
67
+ .light-rays::before,
68
+ .light-rays::after {
69
+ content: '';
70
+ position: absolute;
71
+ top: var(--light-rays-top, 150px);
72
+ left: calc(50% - 90px);
73
+ margin: -100vmax;
74
+ width: 200vmax;
75
+ height: 200vmax;
76
+ opacity: 0.6;
77
+ transform-origin: center;
78
+ }
79
+
80
+ .light-rays::before {
81
+ background: conic-gradient(
82
+ var(--first) 0deg 7.2deg,
83
+ var(--second) 7.2deg 14.4deg,
84
+ var(--first) 14.4deg 21.6deg,
85
+ var(--second) 21.6deg 28.8deg,
86
+ var(--first) 28.8deg 36deg,
87
+ var(--second) 36deg 43.2deg,
88
+ var(--first) 43.2deg 50.4deg,
89
+ var(--second) 50.4deg 57.6deg,
90
+ var(--first) 57.6deg 64.8deg,
91
+ var(--second) 64.8deg 72deg,
92
+ var(--first) 72deg 79.2deg,
93
+ var(--second) 79.2deg 86.4deg,
94
+ var(--first) 86.4deg 93.6deg,
95
+ var(--second) 93.6deg 100.8deg,
96
+ var(--first) 100.8deg 108deg,
97
+ var(--second) 108deg 115.2deg,
98
+ var(--first) 115.2deg 122.4deg,
99
+ var(--second) 122.4deg 129.6deg,
100
+ var(--first) 129.6deg 136.8deg,
101
+ var(--second) 136.8deg 144deg,
102
+ var(--first) 144deg 151.2deg,
103
+ var(--second) 151.2deg 158.4deg,
104
+ var(--first) 158.4deg 165.6deg,
105
+ var(--second) 165.6deg 172.8deg,
106
+ var(--first) 172.8deg 180deg,
107
+ var(--second) 180deg 187.2deg,
108
+ var(--first) 187.2deg 194.4deg,
109
+ var(--second) 194.4deg 201.6deg,
110
+ var(--first) 201.6deg 208.8deg,
111
+ var(--second) 208.8deg 216deg,
112
+ var(--first) 216deg 223.2deg,
113
+ var(--second) 223.2deg 230.4deg,
114
+ var(--first) 230.4deg 237.6deg,
115
+ var(--second) 237.6deg 244.8deg,
116
+ var(--first) 244.8deg 252deg,
117
+ var(--second) 252deg 259.2deg,
118
+ var(--first) 259.2deg 266.4deg,
119
+ var(--second) 266.4deg 273.6deg,
120
+ var(--first) 273.6deg 280.8deg,
121
+ var(--second) 280.8deg 288deg,
122
+ var(--first) 288deg 295.2deg,
123
+ var(--second) 295.2deg 302.4deg,
124
+ var(--first) 302.4deg 309.6deg,
125
+ var(--second) 309.6deg 316.8deg,
126
+ var(--first) 316.8deg 324deg,
127
+ var(--second) 324deg 331.2deg,
128
+ var(--first) 331.2deg 338.4deg,
129
+ var(--second) 338.4deg 345.6deg,
130
+ var(--first) 345.6deg 352.8deg,
131
+ var(--second) 352.8deg 360deg
132
+ );
133
+ animation: rotate 20s linear infinite;
134
+ }
135
+
136
+ @media (max-width: 1024px) {
137
+ .light-rays::before,
138
+ .light-rays::after {
139
+ left: auto;
140
+ right: 11%;
141
+ }
142
+ }
143
+
144
+ /* ScrollArea.module.css */
145
+ .scrollArea {
146
+ overflow-y: scroll;
147
+ padding-right: 4px;
148
+ }
149
+
150
+ /* WebKit-based browsers */
151
+ .scrollArea::-webkit-scrollbar {
152
+ width: 8px;
153
+ }
154
+
155
+ .scrollArea::-webkit-scrollbar-track {
156
+ background: var(--color-bg-primary-alt);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-bg-quaternary);
162
+ border-radius: 9999px;
163
+ }
164
+
165
+ @keyframes waveColor {
166
+ 0%,
167
+ 2.5% {
168
+ color: var(--wave-highlight-color);
169
+ }
170
+ 2.51%,
171
+ 100% {
172
+ color: var(--color-brand-300);
173
+ }
174
+ }
175
+
176
+ .animate-wave-color-success {
177
+ --wave-highlight-color: var(--color-success-800);
178
+ animation: waveColor 4s ease-in-out infinite;
179
+ }
180
+
181
+ .animate-wave-color-error {
182
+ --wave-highlight-color: var(--color-error-600);
183
+ animation: waveColor 4s ease-in-out infinite;
184
+ }
@@ -16,7 +16,7 @@ import { IconButton } from '../../ui/IconButton/index.js';
16
16
  import { Table } from '../../ui/Table/index.js';
17
17
  import { capitalize } from '../../utils/capitalize.js';
18
18
  import { formatNumber } from '../../utils/formatNumber.js';
19
- import { Empty } from '../Empty.js';
19
+ import { Empty } from '../shared/Empty.js';
20
20
  import { TableFilters } from './TableFilters.js';
21
21
  export function DepositRecordsTable() {
22
22
  const [timestamp, setTimestamp] = useState();
@@ -15,7 +15,7 @@ import { IconButton } from '../../ui/IconButton/index.js';
15
15
  import { Table } from '../../ui/Table/index.js';
16
16
  import { capitalize } from '../../utils/capitalize.js';
17
17
  import { formatNumber } from '../../utils/formatNumber.js';
18
- import { Empty } from '../Empty.js';
18
+ import { Empty } from '../shared/Empty.js';
19
19
  import { TableFilters } from './TableFilters.js';
20
20
  export function TransactionRecordsTable() {
21
21
  const [timestamp, setTimestamp] = useState();
@@ -16,7 +16,7 @@ import { IconButton } from '../../ui/IconButton/index.js';
16
16
  import { Table } from '../../ui/Table/index.js';
17
17
  import { capitalize } from '../../utils/capitalize.js';
18
18
  import { formatNumber } from '../../utils/formatNumber.js';
19
- import { Empty } from '../Empty.js';
19
+ import { Empty } from '../shared/Empty.js';
20
20
  import { TableFilters } from './TableFilters.js';
21
21
  export function WithdrawalRecordsTable() {
22
22
  const [timestamp, setTimestamp] = useState();
@@ -1,4 +1,4 @@
1
- import { ENVIRONMENT } from './envVars.js';
1
+ import { ENVIRONMENT } from './EnvVar.js';
2
2
  export const ACCOUNT_GRAPHQL_ENDPOINT = {
3
3
  development: 'https://account.development.opexa.io/graphql',
4
4
  production: 'https://account.opexa.io/graphql',
@@ -1,7 +1,7 @@
1
- export * from './endpoints';
2
- export * from './envVars';
3
- export * from './gameProviders';
4
- export * from './gameTypes';
5
- export * from './headerKeys';
6
- export * from './secretQuestions';
7
- export * from './storageKeys';
1
+ export * from './Endpoint';
2
+ export * from './EnvVar';
3
+ export * from './GameProvider';
4
+ export * from './GameType';
5
+ export * from './HeaderKey';
6
+ export * from './SecretQuestion';
7
+ export * from './StorageKey';
@@ -1,7 +1,7 @@
1
- export * from './endpoints.js';
2
- export * from './envVars.js';
3
- export * from './gameProviders.js';
4
- export * from './gameTypes.js';
5
- export * from './headerKeys.js';
6
- export * from './secretQuestions.js';
7
- export * from './storageKeys.js';
1
+ export * from './Endpoint.js';
2
+ export * from './EnvVar.js';
3
+ export * from './GameProvider.js';
4
+ export * from './GameType.js';
5
+ export * from './HeaderKey.js';
6
+ export * from './SecretQuestion.js';
7
+ export * from './StorageKey.js';
@@ -1,12 +1,14 @@
1
1
  import { getMemberAccount } from '../../services/account.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getAccountQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchAccountQuery = async () => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getAccountQueryKey(),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getMemberAccount({
@@ -16,5 +18,6 @@ export const prefetchAccountQuery = async () => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchAccountQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getAvailablePromos, } from '../../services/wallet.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getAvailablePromosQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchAvailablePromosQuery = async (input) => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getAvailablePromosQueryKey(input),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getAvailablePromos(input, {
@@ -16,5 +18,6 @@ export const prefetchAvailablePromosQuery = async (input) => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchAvailablePromosQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getAvailableQuestsCount } from '../../services/trigger.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getAvailableQuestsCountQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchAvailableQuestsCountQuery = async () => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getAvailableQuestsCountQueryKey(),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getAvailableQuestsCount({
@@ -16,5 +18,6 @@ export const prefetchAvailableQuestsCountQuery = async () => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchAvailableQuestsCountQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getAvailableQuests } from '../../services/trigger.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getAvailableQuestsQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchAvailableQuestsQuery = async () => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getAvailableQuestsQueryKey(),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getAvailableQuests({
@@ -16,5 +18,6 @@ export const prefetchAvailableQuestsQuery = async () => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchAvailableQuestsQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getBetRecords } from '../../services/report.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getBetRecordsQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchBetRecordsQuery = async (input) => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchInfiniteQuery({
10
+ await getQueryClient()
11
+ .prefetchInfiniteQuery({
10
12
  queryKey: getBetRecordsQueryKey(input),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getBetRecords(input, {
@@ -17,5 +19,6 @@ export const prefetchBetRecordsQuery = async (input) => {
17
19
  });
18
20
  },
19
21
  initialPageParam: undefined,
20
- });
22
+ })
23
+ .catch(() => log.text("'prefetchBetRecordsQuery' failed", 'error'));
21
24
  };
@@ -1,12 +1,14 @@
1
1
  import { getBonus } from '../../services/wallet.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getBonusQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchBonusQuery = async (id) => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getBonusQueryKey(id),
11
13
  queryFn: async ({ signal }) => {
12
14
  const bonus = await getBonus(id, {
@@ -17,5 +19,6 @@ export const prefetchBonusQuery = async (id) => {
17
19
  });
18
20
  return bonus ?? null;
19
21
  },
20
- });
22
+ })
23
+ .catch(() => log.text("'prefetchBonusQuery' failed", 'error'));
21
24
  };
@@ -1,12 +1,14 @@
1
1
  import { getBonusesCount } from '../../services/wallet.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getBonusesCountQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchBonusesCountQuery = async () => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getBonusesCountQueryKey(),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getBonusesCount({
@@ -16,5 +18,6 @@ export const prefetchBonusesCountQuery = async () => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchBonusesCountQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getBonuses } from '../../services/wallet.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getBonusesQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchBonusesQuery = async () => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getBonusesQueryKey(),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getBonuses({
@@ -16,5 +18,6 @@ export const prefetchBonusesQuery = async () => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchBonusesQuery' failed", 'error'));
20
23
  };
@@ -1,12 +1,14 @@
1
1
  import { getCashbackBonus } from '../../services/wallet.js';
2
2
  import { getQueryClient } from '../../utils/getQueryClient.js';
3
+ import { log } from '../../utils/log.js';
3
4
  import { getCashbackBonusQueryKey } from '../../utils/queryKeys.js';
4
5
  import { getSession } from '../services/getSession.js';
5
6
  export const prefetchCashbackBonusQuery = async (id) => {
6
7
  const session = await getSession();
7
8
  if (session.status === 'unauthenticated')
8
9
  return;
9
- await getQueryClient().prefetchQuery({
10
+ await getQueryClient()
11
+ .prefetchQuery({
10
12
  queryKey: getCashbackBonusQueryKey(id),
11
13
  queryFn: async ({ signal }) => {
12
14
  return await getCashbackBonus(id, {
@@ -16,5 +18,6 @@ export const prefetchCashbackBonusQuery = async (id) => {
16
18
  },
17
19
  });
18
20
  },
19
- });
21
+ })
22
+ .catch(() => log.text("'prefetchCashbackBonusQuery' failed", 'error'));
20
23
  };