@opexa/portal-components 0.0.99 → 0.0.101

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 (499) hide show
  1. package/dist/client/hooks/index.d.ts +0 -5
  2. package/dist/client/hooks/index.js +0 -5
  3. package/dist/client/hooks/useAccountQuery.js +3 -3
  4. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  5. package/dist/client/hooks/useAuthenticateMutation.js +3 -2
  6. package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
  7. package/dist/client/hooks/useAvailablePromosQuery.js +3 -3
  8. package/dist/client/hooks/useAvailableQuestsCountQuery.js +3 -3
  9. package/dist/client/hooks/useAvailableQuestsQuery.js +3 -3
  10. package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
  11. package/dist/client/hooks/useBetRecordsQuery.js +3 -3
  12. package/dist/client/hooks/useBonusQuery.js +3 -3
  13. package/dist/client/hooks/useBonusesCountQuery.js +3 -3
  14. package/dist/client/hooks/useBonusesQuery.js +3 -3
  15. package/dist/client/hooks/useCashbackBonusQuery.js +3 -3
  16. package/dist/client/hooks/useCashbackBonusesCountQuery.js +3 -3
  17. package/dist/client/hooks/useCashbackBonusesQuery.js +3 -3
  18. package/dist/client/hooks/useCashbackQuery.js +2 -2
  19. package/dist/client/hooks/useCashbacksQuery.js +2 -2
  20. package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +3 -3
  21. package/dist/client/hooks/useClaimCashbackBonusMutation.js +4 -3
  22. package/dist/client/hooks/useClaimSpotBonusMutation.js +4 -3
  23. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
  24. package/dist/client/hooks/useCreateGCashDepositMutation.js +5 -3
  25. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  26. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +3 -3
  27. package/dist/client/hooks/useCreateGameSessionMutation.js +5 -3
  28. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  29. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +3 -3
  30. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
  31. package/dist/client/hooks/useCreateMayaAppDepositMutation.js +5 -3
  32. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  33. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +3 -3
  34. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
  35. package/dist/client/hooks/useCreateMayaDepositMutation.js +5 -3
  36. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  37. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +3 -3
  38. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
  39. package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +5 -3
  40. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
  41. package/dist/client/hooks/useCreateQRPHDepositMutation.js +5 -3
  42. package/dist/client/hooks/useDepositQuery.js +3 -3
  43. package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
  44. package/dist/client/hooks/useDepositRecordsQuery.js +3 -3
  45. package/dist/client/hooks/useDepositsCountQuery.js +3 -3
  46. package/dist/client/hooks/useEndGameSessionMutation.js +4 -3
  47. package/dist/client/hooks/useFavoriteGamesQuery.js +3 -3
  48. package/dist/client/hooks/useGamesQuery.d.ts +1 -1
  49. package/dist/client/hooks/useGamesQuery.js +2 -2
  50. package/dist/client/hooks/useGlobalStore.d.ts +3 -0
  51. package/dist/client/hooks/useGlobalStore.js +41 -1
  52. package/dist/client/hooks/useInstapayBankListQuery.js +3 -3
  53. package/dist/client/hooks/useIsMayaSessionValidQuery.js +5 -5
  54. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
  55. package/dist/client/hooks/useJackpotPayoutsQuery.js +2 -2
  56. package/dist/client/hooks/useJackpotsCountQuery.d.ts +1 -1
  57. package/dist/client/hooks/useJackpotsCountQuery.js +2 -2
  58. package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
  59. package/dist/client/hooks/useJackpotsQuery.js +2 -2
  60. package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
  61. package/dist/client/hooks/useLocaleInfo.js +1 -1
  62. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +4 -3
  63. package/dist/client/hooks/useMarkMessageAsReadMutation.js +4 -3
  64. package/dist/client/hooks/useMemberVerificationQuery.js +3 -3
  65. package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
  66. package/dist/client/hooks/useMessagesQuery.js +3 -3
  67. package/dist/client/hooks/usePaymentSettingsQuery.js +3 -3
  68. package/dist/client/hooks/usePlatformQuery.js +2 -2
  69. package/dist/client/hooks/useProfileCompletionQuery.js +3 -3
  70. package/dist/client/hooks/usePromoQuery.js +2 -2
  71. package/dist/client/hooks/usePromosQuery.js +2 -2
  72. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  73. package/dist/client/hooks/useSendVerificationCodeMutation.js +2 -2
  74. package/dist/client/hooks/useSessionQuery.js +4 -4
  75. package/dist/client/hooks/useSignInMutation.d.ts +1 -1
  76. package/dist/client/hooks/useSignInMutation.js +3 -2
  77. package/dist/client/hooks/useSignOutMutation.js +3 -2
  78. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  79. package/dist/client/hooks/useSignUpMutation.js +2 -2
  80. package/dist/client/hooks/useTopWinsQuery.js +2 -2
  81. package/dist/client/hooks/useTournamentsCountQuery.d.ts +1 -1
  82. package/dist/client/hooks/useTournamentsCountQuery.js +2 -2
  83. package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
  84. package/dist/client/hooks/useTournamentsQuery.js +2 -2
  85. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
  86. package/dist/client/hooks/useTransactionRecordsQuery.js +3 -3
  87. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +4 -3
  88. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  89. package/dist/client/hooks/useUnreadMessagesCountQuery.js +3 -3
  90. package/dist/client/hooks/useUpdateAccountMutation.d.ts +1 -1
  91. package/dist/client/hooks/useUpdateAccountMutation.js +4 -3
  92. package/dist/client/hooks/useWalletQuery.js +3 -3
  93. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
  94. package/dist/client/hooks/useWithdrawalRecordsQuery.js +3 -3
  95. package/dist/client/services/authenticate.d.ts +1 -1
  96. package/dist/client/services/signIn.d.ts +1 -1
  97. package/dist/client/utils/createRecipeContext.js +1 -1
  98. package/dist/client/utils/toaster.d.ts +1 -1
  99. package/dist/client/utils/toaster.js +1 -1
  100. package/dist/components/Account/Account.d.ts +3 -23
  101. package/dist/components/Account/Account.js +10 -115
  102. package/dist/components/Account/Account.lazy.d.ts +23 -0
  103. package/dist/components/Account/Account.lazy.js +138 -0
  104. package/dist/components/Account/AccountTrigger.js +2 -2
  105. package/dist/components/AccountInfo/AccountInfo.js +10 -4
  106. package/dist/components/AccountSecurity/AccountSecurity.js +13 -4
  107. package/dist/components/AccountVerification/AccountVerification.js +12 -3
  108. package/dist/components/Banner/Banner.d.ts +2 -2
  109. package/dist/components/Banner/Banner.js +2 -2
  110. package/dist/components/BetRecords/BetRecords.client.d.ts +7 -0
  111. package/dist/components/BetRecords/BetRecords.client.js +189 -0
  112. package/dist/components/BetRecords/BetRecords.d.ts +3 -7
  113. package/dist/components/BetRecords/BetRecords.js +8 -174
  114. package/dist/components/Bonus/Bonus.client.d.ts +9 -1
  115. package/dist/components/Bonus/Bonus.client.js +13 -4
  116. package/dist/components/Bonus/Bonus.d.ts +2 -9
  117. package/dist/components/Bonus/Bonus.js +22 -6
  118. package/dist/components/Bonuses/Bonuses.client.d.ts +9 -1
  119. package/dist/components/Bonuses/Bonuses.client.js +14 -4
  120. package/dist/components/Bonuses/Bonuses.d.ts +2 -9
  121. package/dist/components/Bonuses/Bonuses.js +3 -2
  122. package/dist/components/Bonuses/BonusesTrigger.js +7 -6
  123. package/dist/components/Cashback/Cashback.client.d.ts +6 -1
  124. package/dist/components/Cashback/Cashback.client.js +7 -3
  125. package/dist/components/Cashback/Cashback.d.ts +2 -6
  126. package/dist/components/Cashback/Cashback.js +11 -6
  127. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +2 -0
  128. package/dist/components/CashbackBonus/CashbackBonus.client.js +9 -0
  129. package/dist/components/CashbackBonus/CashbackBonus.d.ts +10 -0
  130. package/dist/components/CashbackBonus/CashbackBonus.js +5 -0
  131. package/dist/components/CashbackBonus/index.d.ts +1 -0
  132. package/dist/components/CashbackBonus/index.js +1 -0
  133. package/dist/components/DepositWithdrawal/AmountChoices.js +5 -3
  134. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +5 -3
  135. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +6 -3
  136. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +15 -4
  137. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +15 -4
  138. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +15 -4
  139. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositAlert.js +5 -2
  140. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  141. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.js +1 -1
  142. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositDetails.js +5 -2
  143. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +10 -4
  144. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  145. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +2 -1
  146. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositAlert.js +5 -2
  147. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  148. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.js +1 -1
  149. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositDetails.js +4 -2
  150. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +10 -4
  151. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  152. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +2 -1
  153. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
  154. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +10 -27
  155. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.d.ts +1 -0
  156. package/dist/components/DepositWithdrawal/DepositWithdrawal.lazy.js +36 -0
  157. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.js +5 -2
  158. package/dist/components/DepositWithdrawal/PaymentMethods.js +4 -3
  159. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +17 -4
  160. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +18 -4
  161. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +15 -4
  162. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +17 -4
  163. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +11 -4
  164. package/dist/components/Disclaimer/DisclaimerV1.js +2 -1
  165. package/dist/components/Disclaimer/DisclaimerV2.js +2 -1
  166. package/dist/components/Disclaimer/ResponsibleGaming.js +2 -1
  167. package/dist/components/Disclaimer/TermsOfUse.js +3 -2
  168. package/dist/components/Empty.d.ts +1 -2
  169. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +5 -1
  170. package/dist/components/FavoriteGames/FavoriteGames.client.js +8 -4
  171. package/dist/components/FavoriteGames/FavoriteGames.d.ts +2 -5
  172. package/dist/components/FavoriteGames/FavoriteGames.js +2 -2
  173. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
  174. package/dist/components/GameLaunch/GameLaunch.js +10 -71
  175. package/dist/components/GameLaunch/GameLaunch.lazy.d.ts +1 -0
  176. package/dist/components/GameLaunch/GameLaunch.lazy.js +90 -0
  177. package/dist/components/GameLaunch/GameLaunchTrigger.js +4 -2
  178. package/dist/components/GameProviders/GameProvidersCarousel.js +5 -3
  179. package/dist/components/GameProviders/GameProvidersList.js +4 -3
  180. package/dist/components/Games/Game.js +14 -5
  181. package/dist/components/Games/GameContext.d.ts +2 -0
  182. package/dist/components/Games/GameContext.js +2 -0
  183. package/dist/components/Games/GamesCarousel.client.d.ts +24 -1
  184. package/dist/components/Games/GamesCarousel.client.js +7 -3
  185. package/dist/components/Games/GamesCarousel.d.ts +2 -23
  186. package/dist/components/Games/GamesCarousel.js +2 -2
  187. package/dist/components/Games/GamesContext.js +1 -1
  188. package/dist/components/Games/GamesList.client.d.ts +19 -1
  189. package/dist/components/Games/GamesList.client.js +6 -3
  190. package/dist/components/Games/GamesList.d.ts +2 -18
  191. package/dist/components/Games/GamesList.js +1 -1
  192. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  193. package/dist/components/GamesSearch/GamesSearch.js +10 -4
  194. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
  195. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -184
  196. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
  197. package/dist/components/Jackpots/JackpotItemDesktop.js +43 -0
  198. package/dist/components/Jackpots/JackpotItemMobile.d.ts +9 -0
  199. package/dist/components/Jackpots/JackpotItemMobile.js +44 -0
  200. package/dist/components/Jackpots/Jackpots.js +1 -1
  201. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +6 -4
  202. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselContext.js +1 -1
  203. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +14 -9
  204. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  205. package/dist/components/Jackpots/JackpotsContext.d.ts +1 -1
  206. package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +3 -1
  207. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +9 -9
  208. package/dist/components/Jackpots/JackpotsList/JackpotsListContext.js +1 -1
  209. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  210. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +14 -9
  211. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +11 -4
  212. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +15 -7
  213. package/dist/components/Jackpots/JackpotsList/JackpotsListItemRules.js +2 -2
  214. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.d.ts +1 -5
  215. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +3 -25
  216. package/dist/components/Jackpots/useJackpotData.d.ts +2 -2
  217. package/dist/components/Jackpots/useJackpotData.js +1 -0
  218. package/dist/components/Jackpots/useJackpotItemData.d.ts +20 -0
  219. package/dist/components/Jackpots/useJackpotItemData.js +87 -0
  220. package/dist/components/KYC/Header.js +4 -2
  221. package/dist/components/KYC/Indicator.js +2 -2
  222. package/dist/components/KYC/KYC.d.ts +1 -1
  223. package/dist/components/KYC/KYC.js +10 -22
  224. package/dist/components/KYC/KYC.lazy.d.ts +1 -0
  225. package/dist/components/KYC/KYC.lazy.js +26 -0
  226. package/dist/components/KYC/KYCContext.js +1 -1
  227. package/dist/components/KYC/KYCTrigger.js +1 -1
  228. package/dist/components/KYC/Step1.js +3 -2
  229. package/dist/components/KYC/Step2.js +3 -2
  230. package/dist/components/KYC/Step3.js +4 -2
  231. package/dist/components/KYC/Step4.js +3 -2
  232. package/dist/components/Messages/Message.js +3 -1
  233. package/dist/components/Messages/MessageContext.js +1 -1
  234. package/dist/components/Messages/MessageItem.d.ts +4 -0
  235. package/dist/components/Messages/MessageItem.js +34 -0
  236. package/dist/components/Messages/MessagePopup.js +3 -3
  237. package/dist/components/Messages/MessageTrigger.js +2 -1
  238. package/dist/components/Messages/Messages.d.ts +3 -13
  239. package/dist/components/Messages/Messages.js +10 -35
  240. package/dist/components/Messages/Messages.lazy.d.ts +13 -0
  241. package/dist/components/Messages/Messages.lazy.js +48 -0
  242. package/dist/components/Messages/MessagesTrigger.js +7 -4
  243. package/dist/components/Messages/utils.d.ts +1 -1
  244. package/dist/components/Messages/utils.js +1 -1
  245. package/dist/components/PortalProvider/PortalProvider.js +8 -5
  246. package/dist/components/PortalProvider/Providers.js +1 -1
  247. package/dist/components/PortalProvider/Snackbar.js +4 -3
  248. package/dist/components/Promo/Promo.client.d.ts +6 -1
  249. package/dist/components/Promo/Promo.client.js +7 -3
  250. package/dist/components/Promo/Promo.d.ts +2 -6
  251. package/dist/components/Promo/Promo.js +11 -6
  252. package/dist/components/Promo/PromoContent.d.ts +2 -0
  253. package/dist/components/Promo/PromoContent.js +9 -0
  254. package/dist/components/Promos/Cashback.js +3 -2
  255. package/dist/components/Promos/Promo.js +3 -2
  256. package/dist/components/Promos/PromoCarousel.d.ts +2 -0
  257. package/dist/components/Promos/PromoCarousel.js +41 -0
  258. package/dist/components/Promos/PromoGrid.d.ts +2 -0
  259. package/dist/components/Promos/PromoGrid.js +12 -0
  260. package/dist/components/Promos/PromoItem.d.ts +7 -0
  261. package/dist/components/Promos/PromoItem.js +10 -0
  262. package/dist/components/Promos/Promos.js +3 -2
  263. package/dist/components/Promos/PromosCarousel.js +7 -3
  264. package/dist/components/Promos/PromosGrid.js +2 -1
  265. package/dist/components/Protected/Protected.d.ts +1 -2
  266. package/dist/components/Protected/Protected.js +1 -1
  267. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +10 -5
  268. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +3 -2
  269. package/dist/components/Quests/Quests.client.d.ts +5 -1
  270. package/dist/components/Quests/Quests.client.js +2 -2
  271. package/dist/components/Quests/Quests.d.ts +2 -5
  272. package/dist/components/Quests/Quests.js +1 -1
  273. package/dist/components/Quests/WageringQuest/WageringQuest.js +3 -2
  274. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +3 -2
  275. package/dist/components/Search/Search.d.ts +3 -21
  276. package/dist/components/Search/Search.js +10 -64
  277. package/dist/components/Search/Search.lazy.d.ts +20 -0
  278. package/dist/components/Search/Search.lazy.js +78 -0
  279. package/dist/components/Search/SearchTrigger.js +1 -1
  280. package/dist/components/SignIn/MobileNumberSignIn.js +16 -5
  281. package/dist/components/SignIn/NameAndPasswordSignIn.js +16 -7
  282. package/dist/components/SignIn/SignIn.d.ts +3 -7
  283. package/dist/components/SignIn/SignIn.js +10 -14
  284. package/dist/components/SignIn/SignIn.lazy.d.ts +7 -0
  285. package/dist/components/SignIn/SignIn.lazy.js +18 -0
  286. package/dist/components/SignIn/SignInContext.js +1 -1
  287. package/dist/components/SignIn/SignInMethod.js +1 -1
  288. package/dist/components/SignIn/SignInTrigger.js +1 -1
  289. package/dist/components/SignUp/SignUp.d.ts +3 -7
  290. package/dist/components/SignUp/SignUp.js +10 -12
  291. package/dist/components/SignUp/SignUp.lazy.d.ts +7 -0
  292. package/dist/components/SignUp/SignUp.lazy.js +16 -0
  293. package/dist/components/SignUp/SignUpForm.js +15 -5
  294. package/dist/components/SignUp/SignUpTrigger.js +1 -1
  295. package/dist/components/TopWins/TopWins.client.d.ts +5 -1
  296. package/dist/components/TopWins/TopWins.client.js +8 -3
  297. package/dist/components/TopWins/TopWins.d.ts +2 -5
  298. package/dist/components/TopWins/TopWins.js +1 -1
  299. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -1
  300. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
  301. package/dist/components/Tournaments/TournamentItemDesktop.js +56 -0
  302. package/dist/components/Tournaments/TournamentItemMobile.d.ts +7 -0
  303. package/dist/components/Tournaments/TournamentItemMobile.js +54 -0
  304. package/dist/components/Tournaments/Tournaments.js +1 -1
  305. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarousel.js +6 -4
  306. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselContext.js +1 -1
  307. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.js +8 -3
  308. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  309. package/dist/components/Tournaments/TournamentsContext.d.ts +1 -1
  310. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  311. package/dist/components/Tournaments/TournamentsList/TournamentsList.js +2 -2
  312. package/dist/components/Tournaments/TournamentsList/TournamentsListContext.js +1 -1
  313. package/dist/components/Tournaments/TournamentsList/TournamentsListItemDesktop.js +7 -2
  314. package/dist/components/Tournaments/TournamentsList/TournamentsListItemGameProviders.js +3 -2
  315. package/dist/components/Tournaments/TournamentsList/TournamentsListItemMobile.js +10 -3
  316. package/dist/components/Tournaments/TournamentsList/TournamentsListItemRules.js +3 -2
  317. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.d.ts +1 -1
  318. package/dist/components/Tournaments/TournamentsList/useTournamentListItemData.js +1 -1
  319. package/dist/components/Tournaments/useTournamentData.js +1 -0
  320. package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
  321. package/dist/components/Tournaments/useTournamentItemData.js +64 -0
  322. package/dist/components/TransactionRecords/DepositRecordsTable.js +12 -4
  323. package/dist/components/TransactionRecords/TableFilters.js +9 -4
  324. package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
  325. package/dist/components/TransactionRecords/TransactionRecords.js +7 -2
  326. package/dist/components/TransactionRecords/TransactionRecordsTable.js +11 -4
  327. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +12 -4
  328. package/dist/components/index.d.ts +2 -0
  329. package/dist/components/index.js +2 -0
  330. package/dist/constants/endpoints.js +2 -2
  331. package/dist/handlers.js +1 -1
  332. package/dist/icons/index.d.ts +0 -1
  333. package/dist/icons/index.js +0 -1
  334. package/dist/images/hacksaw-gaming.png +0 -0
  335. package/dist/middleware.js +1 -1
  336. package/dist/next.config.js +4 -0
  337. package/dist/server/services/authenticate.d.ts +1 -1
  338. package/dist/server/services/authenticate.js +1 -1
  339. package/dist/server/services/signIn.d.ts +1 -1
  340. package/dist/server/services/signIn.js +1 -1
  341. package/dist/server/services/signOut.js +1 -1
  342. package/dist/server/utils/index.d.ts +0 -5
  343. package/dist/server/utils/index.js +0 -5
  344. package/dist/server/utils/prefetchAccountQuery.js +3 -2
  345. package/dist/server/utils/prefetchAvailablePromosQuery.d.ts +1 -1
  346. package/dist/server/utils/prefetchAvailablePromosQuery.js +3 -2
  347. package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +3 -2
  348. package/dist/server/utils/prefetchAvailableQuestsQuery.js +3 -2
  349. package/dist/server/utils/prefetchBetRecordsQuery.d.ts +1 -1
  350. package/dist/server/utils/prefetchBetRecordsQuery.js +3 -2
  351. package/dist/server/utils/prefetchBonusQuery.js +3 -2
  352. package/dist/server/utils/prefetchBonusesCountQuery.js +3 -2
  353. package/dist/server/utils/prefetchBonusesQuery.js +3 -2
  354. package/dist/server/utils/prefetchCashbackBonusQuery.js +3 -2
  355. package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +4 -3
  356. package/dist/server/utils/prefetchCashbackBonusesQuery.js +4 -3
  357. package/dist/server/utils/prefetchCashbackQuery.js +3 -2
  358. package/dist/server/utils/prefetchCashbacksQuery.js +3 -2
  359. package/dist/server/utils/prefetchDepositQuery.js +3 -2
  360. package/dist/server/utils/prefetchDepositRecordsQuery.d.ts +1 -1
  361. package/dist/server/utils/prefetchDepositRecordsQuery.js +3 -2
  362. package/dist/server/utils/prefetchDepositsCountQuery.js +3 -2
  363. package/dist/server/utils/prefetchFavoriteGamesQuery.js +4 -3
  364. package/dist/server/utils/prefetchGamesQuery.d.ts +1 -1
  365. package/dist/server/utils/prefetchGamesQuery.js +3 -2
  366. package/dist/server/utils/prefetchInstapayBankListQuery.js +3 -2
  367. package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +3 -2
  368. package/dist/server/utils/prefetchJackpotsCountQuery.d.ts +1 -1
  369. package/dist/server/utils/prefetchJackpotsCountQuery.js +3 -2
  370. package/dist/server/utils/prefetchJackpotsQuery.d.ts +1 -1
  371. package/dist/server/utils/prefetchJackpotsQuery.js +3 -2
  372. package/dist/server/utils/prefetchMemberVerificationQuery.js +3 -2
  373. package/dist/server/utils/prefetchPaymentSettingsQuery.js +3 -2
  374. package/dist/server/utils/prefetchPlatformQuery.js +3 -2
  375. package/dist/server/utils/prefetchProfileCompletionQuery.js +3 -2
  376. package/dist/server/utils/prefetchPromoQuery.js +3 -2
  377. package/dist/server/utils/prefetchPromosQuery.js +3 -2
  378. package/dist/server/utils/prefetchSessionQuery.js +2 -1
  379. package/dist/server/utils/prefetchTopWinsQuery.js +3 -2
  380. package/dist/server/utils/prefetchTournamentsCountQuery.d.ts +1 -1
  381. package/dist/server/utils/prefetchTournamentsCountQuery.js +3 -2
  382. package/dist/server/utils/prefetchTournamentsQuery.d.ts +1 -1
  383. package/dist/server/utils/prefetchTournamentsQuery.js +3 -2
  384. package/dist/server/utils/prefetchTransactionRecordsQuery.d.ts +1 -1
  385. package/dist/server/utils/prefetchTransactionRecordsQuery.js +3 -2
  386. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +1 -1
  387. package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +3 -2
  388. package/dist/server/utils/prefetchWalletQuery.js +3 -2
  389. package/dist/server/utils/prefetchWithdrawalRecordsQuery.d.ts +1 -1
  390. package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +3 -2
  391. package/dist/services/queries.js +2351 -2351
  392. package/dist/styles/theme.css +697 -697
  393. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  394. package/dist/ui/AlertDialog/AlertDialog.js +1 -1
  395. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  396. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  397. package/dist/ui/Avatar/Avatar.js +1 -1
  398. package/dist/ui/Avatar/avatar.recipe.js +1 -1
  399. package/dist/ui/Badge/Badge.d.ts +12 -12
  400. package/dist/ui/Badge/Badge.js +1 -1
  401. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  402. package/dist/ui/Badge/badge.recipe.js +1 -1
  403. package/dist/ui/Button/Button.js +2 -1
  404. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  405. package/dist/ui/Checkbox/Checkbox.js +1 -1
  406. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  407. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  408. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  409. package/dist/ui/Clipboard/Clipboard.js +1 -1
  410. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  411. package/dist/ui/Clipboard/clipboard.recipe.js +1 -1
  412. package/dist/ui/Collapsible/Collapsible.d.ts +32 -32
  413. package/dist/ui/Collapsible/Collapsible.js +1 -1
  414. package/dist/ui/Collapsible/collapsible.recipe.d.ts +8 -8
  415. package/dist/ui/Collapsible/collapsible.recipe.js +1 -1
  416. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  417. package/dist/ui/Combobox/Combobox.js +1 -1
  418. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  419. package/dist/ui/Combobox/combobox.recipe.js +1 -1
  420. package/dist/ui/DatePicker/DatePicker.d.ts +336 -336
  421. package/dist/ui/DatePicker/DatePicker.js +1 -1
  422. package/dist/ui/DatePicker/datePicker.recipe.d.ts +14 -14
  423. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  424. package/dist/ui/Dialog/Dialog.d.ts +154 -154
  425. package/dist/ui/Dialog/Dialog.js +1 -1
  426. package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
  427. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  428. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  429. package/dist/ui/Drawer/Drawer.js +1 -1
  430. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  431. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  432. package/dist/ui/Field/Field.d.ts +21 -21
  433. package/dist/ui/Field/Field.js +1 -1
  434. package/dist/ui/Field/field.recipe.d.ts +3 -3
  435. package/dist/ui/Field/field.recipe.js +1 -1
  436. package/dist/ui/IconButton/IconButton.js +2 -1
  437. package/dist/ui/NumberInput/NumberInput.js +1 -1
  438. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  439. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  440. package/dist/ui/PasswordInput/PasswordInput.js +1 -1
  441. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  442. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -1
  443. package/dist/ui/PinInput/PinInput.js +1 -1
  444. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  445. package/dist/ui/Popover/Popover.d.ts +121 -121
  446. package/dist/ui/Popover/Popover.js +1 -1
  447. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  448. package/dist/ui/Popover/popover.recipe.js +1 -1
  449. package/dist/ui/Presence.d.ts +1 -1
  450. package/dist/ui/Presence.js +1 -1
  451. package/dist/ui/Progress/Progress.d.ts +27 -27
  452. package/dist/ui/Progress/Progress.js +1 -1
  453. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  454. package/dist/ui/Progress/progress.recipe.js +1 -1
  455. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  456. package/dist/ui/SegmentGroup/SegmentGroup.js +1 -1
  457. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  458. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  459. package/dist/ui/Select/Select.d.ts +45 -45
  460. package/dist/ui/Select/Select.js +1 -1
  461. package/dist/ui/Select/select.recipe.d.ts +3 -3
  462. package/dist/ui/Select/select.recipe.js +1 -1
  463. package/dist/ui/Table/Table.d.ts +21 -21
  464. package/dist/ui/Table/Table.js +1 -1
  465. package/dist/ui/Table/table.recipe.d.ts +3 -3
  466. package/dist/ui/Table/table.recipe.js +1 -1
  467. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  468. package/dist/ui/Tabs/Tabs.js +1 -1
  469. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  470. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  471. package/dist/utils/getQueryClient.js +2 -2
  472. package/dist/utils/index.d.ts +0 -1
  473. package/dist/utils/index.js +0 -1
  474. package/dist/utils/onMobileDevice.d.ts +5 -0
  475. package/dist/utils/onMobileDevice.js +9 -0
  476. package/dist/utils/queryKeys.d.ts +4 -1
  477. package/package.json +162 -163
  478. package/dist/services/ObjectId.d.ts +0 -10
  479. package/dist/services/ObjectId.js +0 -72
  480. package/dist/services/index.d.ts +0 -13
  481. package/dist/services/index.js +0 -13
  482. /package/dist/services/{account.service.d.ts → account.d.ts} +0 -0
  483. /package/dist/services/{account.service.js → account.js} +0 -0
  484. /package/dist/services/{auth.service.d.ts → auth.d.ts} +0 -0
  485. /package/dist/services/{auth.service.js → auth.js} +0 -0
  486. /package/dist/services/{cmsPortal.service.d.ts → cmsPortal.d.ts} +0 -0
  487. /package/dist/services/{cmsPortal.service.js → cmsPortal.js} +0 -0
  488. /package/dist/services/{file.service.d.ts → file.d.ts} +0 -0
  489. /package/dist/services/{file.service.js → file.js} +0 -0
  490. /package/dist/services/{game.service.d.ts → game.d.ts} +0 -0
  491. /package/dist/services/{game.service.js → game.js} +0 -0
  492. /package/dist/services/{portal.service.d.ts → portal.d.ts} +0 -0
  493. /package/dist/services/{portal.service.js → portal.js} +0 -0
  494. /package/dist/services/{report.service.d.ts → report.d.ts} +0 -0
  495. /package/dist/services/{report.service.js → report.js} +0 -0
  496. /package/dist/services/{trigger.service.d.ts → trigger.d.ts} +0 -0
  497. /package/dist/services/{trigger.service.js → trigger.js} +0 -0
  498. /package/dist/services/{wallet.service.d.ts → wallet.d.ts} +0 -0
  499. /package/dist/services/{wallet.service.js → wallet.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  import { useMutation } from '@tanstack/react-query';
2
2
  import invariant from 'tiny-invariant';
3
- import { updateMemberAccount, } from '../../services/index.js';
4
- import { getAccountQueryKey, getProfileCompletionQueryKey, getQueryClient, getUpdateAccountMutationKey, } from '../../utils/index.js';
5
- import { getSession } from '../services/index.js';
3
+ import { updateMemberAccount, } from '../../services/account.js';
4
+ import { getQueryClient } from '../../utils/getQueryClient.js';
5
+ import { getAccountQueryKey, getProfileCompletionQueryKey, getUpdateAccountMutationKey, } from '../../utils/queryKeys.js';
6
+ import { getSession } from '../services/getSession.js';
6
7
  import { useAccountQuery } from './useAccountQuery.js';
7
8
  export const useUpdateAccountMutation = (config) => {
8
9
  const queryClient = getQueryClient();
@@ -1,8 +1,8 @@
1
1
  import { useQuery } from '@tanstack/react-query';
2
2
  import invariant from 'tiny-invariant';
3
- import { getWallet } from '../../services/index.js';
4
- import { getWalletQueryKey } from '../../utils/index.js';
5
- import { getSession } from '../services/index.js';
3
+ import { getWallet } from '../../services/wallet.js';
4
+ import { getWalletQueryKey } from '../../utils/queryKeys.js';
5
+ import { getSession } from '../services/getSession.js';
6
6
  import { useSessionQuery } from './useSessionQuery.js';
7
7
  export const useWalletQuery = (config) => {
8
8
  const sessionQuery = useSessionQuery();
@@ -1,3 +1,3 @@
1
- import { type WithdrawalRecordsInput } from '../../services';
1
+ import { type WithdrawalRecordsInput } from '../../services/report';
2
2
  import type { InfiniteQuery, PaginatedQueryResult, WithdrawalRecord } from '../../types';
3
3
  export declare const useWithdrawalRecordsQuery: InfiniteQuery<PaginatedQueryResult<WithdrawalRecord>, WithdrawalRecordsInput>;
@@ -1,8 +1,8 @@
1
1
  import { useInfiniteQuery } from '@tanstack/react-query';
2
2
  import invariant from 'tiny-invariant';
3
- import { getWithdrawalRecords, } from '../../services/index.js';
4
- import { getWithdrawalRecordsQueryKey } from '../../utils/index.js';
5
- import { getSession } from '../services/index.js';
3
+ import { getWithdrawalRecords, } from '../../services/report.js';
4
+ import { getWithdrawalRecordsQueryKey } from '../../utils/queryKeys.js';
5
+ import { getSession } from '../services/getSession.js';
6
6
  import { useSessionQuery } from './useSessionQuery.js';
7
7
  export const useWithdrawalRecordsQuery = (input, config) => {
8
8
  const sessionQuery = useSessionQuery();
@@ -1,3 +1,3 @@
1
- import type { AuthenticateInput } from '../../services';
1
+ import type { AuthenticateInput } from '../../services/auth';
2
2
  import { type HttpRequestOptions } from '../../services/httpRequest';
3
3
  export declare function authenticate(input: AuthenticateInput, options?: HttpRequestOptions): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { CreateSessionInput } from '../../services';
1
+ import type { CreateSessionInput } from '../../services/auth';
2
2
  import { type HttpRequestOptions } from '../../services/httpRequest';
3
3
  import type { Authenticator } from '../../types';
4
4
  export type SignInInput = CreateSessionInput;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import { createSplitProps } from '../../utils/index.js';
3
+ import { createSplitProps } from '../../utils/createSplitProps.js';
4
4
  export function createRecipeContext(recipe) {
5
5
  const RecipeContext = React.createContext(null);
6
6
  function useContext() {
@@ -1,2 +1,2 @@
1
- import { type CreateToasterReturn } from '@ark-ui/react';
1
+ import { type CreateToasterReturn } from '@ark-ui/react/toast';
2
2
  export declare const toaster: CreateToasterReturn;
@@ -1,4 +1,4 @@
1
- import { createToaster } from '@ark-ui/react';
1
+ import { createToaster } from '@ark-ui/react/toast';
2
2
  export const toaster = createToaster({
3
3
  placement: 'top',
4
4
  duration: 5000,
@@ -1,23 +1,3 @@
1
- export interface AccountProps {
2
- /**
3
- * @default '0px'
4
- * @example
5
- * ```tsx
6
- * offsetTop="1em"
7
- * offsetTop="1rem"
8
- * offsetTop="16px"
9
- * ```
10
- */
11
- offsetTop?: string;
12
- /** @default true */
13
- shouldShowSettings?: boolean;
14
- /** @default '/rewards' */
15
- rewardsUrl?: string;
16
- /** @default '/bet-records' */
17
- betRecordsUrl?: string;
18
- /** @default '/transactions' */
19
- transactionsUrl?: string;
20
- /** @default '/account' */
21
- accountSettingsUrl?: string;
22
- }
23
- export declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element;
1
+ import type { AccountProps } from './Account.lazy';
2
+ export declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element | undefined;
3
+ export type { AccountProps };
@@ -1,119 +1,14 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { Portal } from '@ark-ui/react';
4
- import Image from 'next/image';
5
- import Link from 'next/link';
6
- import { twMerge } from 'tailwind-merge';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import dynamic from 'next/dynamic';
7
4
  import { useShallow } from 'zustand/shallow';
8
- import { useAccountQuery, useBonusesCountQuery, useCashbackBonusesCountQuery, useGlobalStore, useLocaleInfo, useProfileCompletionQuery, useSignOutMutation, useUnreadMessagesCountQuery, useWalletQuery, } from '../../client/hooks/index.js';
9
- import { AlertCircleIcon, Bell01Icon, ChevronRightIcon, CoinsStacked02Icon, CoinsSwap02Icon, Gift01Icon, Logout01Icon, Settings02Icon, } from '../../icons/index.js';
10
- import avatarPlaceholder from '../../images/placeholder-avatar.png';
11
- import { Badge, Button, Drawer, Popover } from '../../ui/index.js';
12
- import { formatNumber, parseDecimal } from '../../utils/index.js';
13
- import { accountRecipe } from './account.recipe.js';
14
- const recipe = accountRecipe();
5
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
+ const Component = dynamic(() => import('./Account.lazy.js').then((m) => m.Account), {
7
+ ssr: false,
8
+ loading: () => null,
9
+ });
15
10
  export function Account(props) {
16
- const globalStore = useGlobalStore(useShallow((ctx) => ({
17
- account: ctx.account,
18
- account__mobile: ctx.account__mobile,
19
- })));
20
- const rewardsUrl = props.rewardsUrl ?? '/rewards';
21
- const betRecordsUrl = props.betRecordsUrl ?? '/bet-records';
22
- const transactionsUrl = props.transactionsUrl ?? '/transactions';
23
- const accountSettingsUrl = props.accountSettingsUrl ?? '/account';
24
- const shouldShowSettings = props.shouldShowSettings ?? true;
25
- const [mobileOffsetTop, desktopOffsetTop] = Array.isArray(props.offsetTop)
26
- ? props.offsetTop
27
- : [props.offsetTop ?? '0px', props.offsetTop ?? '0px'];
28
- return (_jsxs(_Fragment, { children: [_jsx(Drawer.Root, { open: globalStore.account__mobile.open, onOpenChange: (details) => {
29
- globalStore.account__mobile.setOpen(details.open);
30
- }, lazyMount: true, unmountOnExit: true, children: _jsx(Portal, { children: _jsx(Drawer.Positioner, { children: _jsxs(Drawer.Content, { className: twMerge('relative', 'flex', 'flex-col', 'top-[var(--offset-top-mobile)]', 'h-[calc(100%-var(--offset-top-mobile))]', 'w-full', 'px-xl', 'py-6', 'lg:top-[var(--offset-top-desktop)]', 'lg:h-[calc(100%-var(--offset-top-desktop))]'), style: {
31
- ['--offset-top-mobile']: mobileOffsetTop,
32
- ['--offset-top-desktop']: desktopOffsetTop,
33
- }, children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: rewardsUrl, betRecordsUrl: betRecordsUrl, transactionsUrl: transactionsUrl, accountSettingsUrl: accountSettingsUrl, shouldShowSettings: shouldShowSettings })] }) }) }) }), _jsx(Popover.Root, { open: globalStore.account.open, onOpenChange: (details) => {
34
- globalStore.account.setOpen(details.open);
35
- }, lazyMount: true, unmountOnExit: true, positioning: {
36
- placement: 'bottom',
37
- strategy: 'fixed',
38
- }, ids: {
39
- trigger: 'opexa-portal-components:account-trigger',
40
- }, children: _jsx(Portal, { children: _jsx(Popover.Positioner, { children: _jsxs(Popover.Content, { className: "border-border-primary bg-bg-primary relative z-popover w-[23.438rem] overflow-hidden rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: rewardsUrl, betRecordsUrl: betRecordsUrl, transactionsUrl: transactionsUrl, accountSettingsUrl: accountSettingsUrl, shouldShowSettings: shouldShowSettings })] }) }) }) })] }));
41
- }
42
- function Profile() {
43
- const accountQuery = useAccountQuery();
44
- const account = accountQuery.data;
45
- return (_jsxs("div", { className: "flex shrink-0 items-center gap-lg", children: [_jsx(Image, { src: avatarPlaceholder, alt: "", width: 48, height: 48, className: "size-12" }), _jsxs("div", { className: "grow", children: [_jsx("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: account?.name }), _jsxs("div", { className: "flex", children: [_jsx("p", { className: "text-text-tertiary-600 grow items-center leading-tight", children: account?.id }), _jsxs(Badge.Root, { colorScheme: account?.verified ? 'success' : 'danger', className: "self-start", children: [_jsx(Badge.Indicator, {}), _jsx(Badge.Label, { children: account?.verified ? 'Verified' : 'Unverified' })] })] })] })] }));
46
- }
47
- function Wallet() {
48
- const localeInfo = useLocaleInfo();
49
- const walletQuery = useWalletQuery({
50
- refetchInterval: 1000,
51
- });
52
- const globalStore = useGlobalStore(useShallow((ctx) => ({
53
- profile: ctx.account,
54
- mobileProfile: ctx.account__mobile,
55
- depositWithdrawal: ctx.depositWithdrawal,
56
- })));
57
- const depositBalance = parseDecimal(walletQuery.data?.balance, 0);
58
- const bonusBalance = parseDecimal(walletQuery.data?.bonus, 0);
59
- const totalBalance = depositBalance + bonusBalance;
60
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [_jsx("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }), _jsx("div", { className: "text-3xl font-bold", children: formatNumber(totalBalance, {
61
- currency: localeInfo?.currency.code,
62
- minDecimalPlaces: 2,
63
- }) }), _jsxs("div", { className: "mt-1.5 flex gap-7xl", children: [_jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(depositBalance, {
64
- currency: localeInfo?.currency.code,
65
- minDecimalPlaces: 2,
66
- }) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Bonus Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(bonusBalance, {
67
- currency: localeInfo?.currency.code,
68
- minDecimalPlaces: 2,
69
- }) })] })] })] }), ' ', _jsxs("div", { className: "mt-3 flex gap-lg", children: [_jsx(Button, { size: "xs", variant: "outline", onClick: () => {
70
- globalStore.depositWithdrawal.setOpen(true);
71
- globalStore.depositWithdrawal.setTab('WITHDRAWAL');
72
- globalStore.profile.setOpen(false);
73
- globalStore.mobileProfile.setOpen(false);
74
- }, children: "Withdraw" }), _jsx(Button, { size: "xs", onClick: () => {
75
- globalStore.depositWithdrawal.setOpen(true);
76
- globalStore.depositWithdrawal.setTab('DEPOSIT');
77
- globalStore.profile.setOpen(false);
78
- globalStore.mobileProfile.setOpen(false);
79
- }, children: "Deposit" })] })] }));
80
- }
81
- function Links(props) {
82
- const signOutMutation = useSignOutMutation();
83
- const globalStore = useGlobalStore(useShallow((ctx) => ({
84
- account: ctx.account,
85
- account__mobile: ctx.account__mobile,
86
- messages: ctx.messages,
87
- })));
88
- const unreadMessagesCountQuery = useUnreadMessagesCountQuery({}, { refetchInterval: 5000 });
89
- const unreadMessagesCount = unreadMessagesCountQuery.data ?? 0;
90
- const profileCompletionQuery = useProfileCompletionQuery();
91
- const profileCompletion = profileCompletionQuery.data;
92
- const profileCompletionPercentage = parseDecimal(profileCompletion?.completionPercentage, 0);
93
- const bonusesCountQuery = useBonusesCountQuery();
94
- const bonusesCount = bonusesCountQuery.data ?? 0;
95
- const cashbackBonusesCountQuery = useCashbackBonusesCountQuery();
96
- const cashbackBonusesCount = cashbackBonusesCountQuery.data ?? 0;
97
- const rewardsCount = bonusesCount + cashbackBonusesCount;
98
- return (_jsxs("nav", { className: recipe.nav({ className: 'mt-xl' }), children: [_jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), onClick: () => {
99
- globalStore.account.setOpen(false);
100
- globalStore.account__mobile.setOpen(false);
101
- globalStore.messages.setOpen(true);
102
- }, children: [_jsx(Bell01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Notifications" }), unreadMessagesCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: unreadMessagesCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.rewardsUrl, className: recipe.navItemLink(), onClick: () => {
103
- globalStore.account.setOpen(false);
104
- globalStore.account__mobile.setOpen(false);
105
- }, children: [_jsx(Gift01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Rewards" }), rewardsCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: rewardsCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), props.shouldShowSettings && (_jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountSettingsUrl, className: recipe.navItemLink(), onClick: () => {
106
- globalStore.account.setOpen(false);
107
- globalStore.account__mobile.setOpen(false);
108
- }, children: [_jsx(Settings02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Settings" }), profileCompletionPercentage < 100 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "error", children: _jsx(AlertCircleIcon, {}) })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })), _jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.betRecordsUrl, className: recipe.navItemLink(), onClick: () => {
109
- globalStore.account.setOpen(false);
110
- globalStore.account__mobile.setOpen(false);
111
- }, children: [_jsx(CoinsStacked02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.transactionsUrl, className: recipe.navItemLink(), onClick: () => {
112
- globalStore.account.setOpen(false);
113
- globalStore.account__mobile.setOpen(false);
114
- }, children: [_jsx(CoinsSwap02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Transactions" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), disabled: signOutMutation.isPending, onClick: () => {
115
- signOutMutation.mutate();
116
- globalStore.account.setOpen(false);
117
- globalStore.account__mobile.setOpen(false);
118
- }, children: [_jsx(Logout01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Log Out" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })] }));
11
+ const touched = useGlobalStore(useShallow((ctx) => ctx.account['~touched']));
12
+ if (touched)
13
+ return _jsx(Component, { ...props });
119
14
  }
@@ -0,0 +1,23 @@
1
+ export interface AccountProps {
2
+ /**
3
+ * @default '0px'
4
+ * @example
5
+ * ```tsx
6
+ * offsetTop="1em"
7
+ * offsetTop="1rem"
8
+ * offsetTop="16px"
9
+ * ```
10
+ */
11
+ offsetTop?: string;
12
+ /** @default true */
13
+ shouldShowSettings?: boolean;
14
+ /** @default '/rewards' */
15
+ rewardsUrl?: string;
16
+ /** @default '/bet-records' */
17
+ betRecordsUrl?: string;
18
+ /** @default '/transactions' */
19
+ transactionsUrl?: string;
20
+ /** @default '/account' */
21
+ accountSettingsUrl?: string;
22
+ }
23
+ export declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,138 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Portal } from '@ark-ui/react';
4
+ import Image from 'next/image';
5
+ import Link from 'next/link';
6
+ import { twMerge } from 'tailwind-merge';
7
+ import { useShallow } from 'zustand/shallow';
8
+ import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
9
+ import { useBonusesCountQuery } from '../../client/hooks/useBonusesCountQuery.js';
10
+ import { useCashbackBonusesCountQuery } from '../../client/hooks/useCashbackBonusesCountQuery.js';
11
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
12
+ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
13
+ import { useProfileCompletionQuery } from '../../client/hooks/useProfileCompletionQuery.js';
14
+ import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
15
+ import { useUnreadMessagesCountQuery } from '../../client/hooks/useUnreadMessagesCountQuery.js';
16
+ import { useWalletQuery } from '../../client/hooks/useWalletQuery.js';
17
+ import { AlertCircleIcon } from '../../icons/AlertCircleIcon.js';
18
+ import { Bell01Icon } from '../../icons/Bell01Icon.js';
19
+ import { ChevronRightIcon } from '../../icons/ChevronRightIcon.js';
20
+ import { CoinsStacked02Icon } from '../../icons/CoinsStacked02Icon.js';
21
+ import { CoinsSwap02Icon } from '../../icons/CoinsSwap02Icon.js';
22
+ import { Gift01Icon } from '../../icons/Gift01Icon.js';
23
+ import { Logout01Icon } from '../../icons/Logout01Icon.js';
24
+ import { Settings02Icon } from '../../icons/Settings02Icon.js';
25
+ import avatarPlaceholder from '../../images/placeholder-avatar.png';
26
+ import { Badge } from '../../ui/Badge/index.js';
27
+ import { Button } from '../../ui/Button/index.js';
28
+ import { Drawer } from '../../ui/Drawer/index.js';
29
+ import { Popover } from '../../ui/Popover/index.js';
30
+ import { formatNumber } from '../../utils/formatNumber.js';
31
+ import { parseDecimal } from '../../utils/parseDecimal.js';
32
+ import { accountRecipe } from './account.recipe.js';
33
+ const recipe = accountRecipe();
34
+ export function Account(props) {
35
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
36
+ account: ctx.account,
37
+ account__mobile: ctx.account__mobile,
38
+ })));
39
+ const rewardsUrl = props.rewardsUrl ?? '/rewards';
40
+ const betRecordsUrl = props.betRecordsUrl ?? '/bet-records';
41
+ const transactionsUrl = props.transactionsUrl ?? '/transactions';
42
+ const accountSettingsUrl = props.accountSettingsUrl ?? '/account';
43
+ const shouldShowSettings = props.shouldShowSettings ?? true;
44
+ const [mobileOffsetTop, desktopOffsetTop] = Array.isArray(props.offsetTop)
45
+ ? props.offsetTop
46
+ : [props.offsetTop ?? '0px', props.offsetTop ?? '0px'];
47
+ return (_jsxs(_Fragment, { children: [_jsx(Drawer.Root, { open: globalStore.account__mobile.open, onOpenChange: (details) => {
48
+ globalStore.account__mobile.setOpen(details.open);
49
+ }, lazyMount: true, unmountOnExit: true, children: _jsx(Portal, { children: _jsx(Drawer.Positioner, { children: _jsxs(Drawer.Content, { className: twMerge('relative', 'flex', 'flex-col', 'top-[var(--offset-top-mobile)]', 'h-[calc(100%-var(--offset-top-mobile))]', 'w-full', 'px-xl', 'py-6', 'lg:top-[var(--offset-top-desktop)]', 'lg:h-[calc(100%-var(--offset-top-desktop))]'), style: {
50
+ ['--offset-top-mobile']: mobileOffsetTop,
51
+ ['--offset-top-desktop']: desktopOffsetTop,
52
+ }, children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: rewardsUrl, betRecordsUrl: betRecordsUrl, transactionsUrl: transactionsUrl, accountSettingsUrl: accountSettingsUrl, shouldShowSettings: shouldShowSettings })] }) }) }) }), _jsx(Popover.Root, { open: globalStore.account.open, onOpenChange: (details) => {
53
+ globalStore.account.setOpen(details.open);
54
+ }, lazyMount: true, unmountOnExit: true, positioning: {
55
+ placement: 'bottom',
56
+ strategy: 'fixed',
57
+ }, ids: {
58
+ trigger: 'opexa-portal-components:account-trigger',
59
+ }, children: _jsx(Portal, { children: _jsx(Popover.Positioner, { children: _jsxs(Popover.Content, { className: "border-border-primary bg-bg-primary relative z-popover w-[23.438rem] overflow-hidden rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [_jsx(Profile, {}), _jsx(Wallet, {}), _jsx(Links, { rewardsUrl: rewardsUrl, betRecordsUrl: betRecordsUrl, transactionsUrl: transactionsUrl, accountSettingsUrl: accountSettingsUrl, shouldShowSettings: shouldShowSettings })] }) }) }) })] }));
60
+ }
61
+ function Profile() {
62
+ const accountQuery = useAccountQuery();
63
+ const account = accountQuery.data;
64
+ return (_jsxs("div", { className: "flex shrink-0 items-center gap-lg", children: [_jsx(Image, { src: avatarPlaceholder, alt: "", width: 48, height: 48, className: "size-12" }), _jsxs("div", { className: "grow", children: [_jsx("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: account?.name }), _jsxs("div", { className: "flex", children: [_jsx("p", { className: "text-text-tertiary-600 grow items-center leading-tight", children: account?.id }), _jsxs(Badge.Root, { colorScheme: account?.verified ? 'success' : 'danger', className: "self-start", children: [_jsx(Badge.Indicator, {}), _jsx(Badge.Label, { children: account?.verified ? 'Verified' : 'Unverified' })] })] })] })] }));
65
+ }
66
+ function Wallet() {
67
+ const localeInfo = useLocaleInfo();
68
+ const walletQuery = useWalletQuery({
69
+ refetchInterval: 1000,
70
+ });
71
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
72
+ profile: ctx.account,
73
+ mobileProfile: ctx.account__mobile,
74
+ depositWithdrawal: ctx.depositWithdrawal,
75
+ })));
76
+ const depositBalance = parseDecimal(walletQuery.data?.balance, 0);
77
+ const bonusBalance = parseDecimal(walletQuery.data?.bonus, 0);
78
+ const totalBalance = depositBalance + bonusBalance;
79
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [_jsx("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }), _jsx("div", { className: "text-3xl font-bold", children: formatNumber(totalBalance, {
80
+ currency: localeInfo?.currency.code,
81
+ minDecimalPlaces: 2,
82
+ }) }), _jsxs("div", { className: "mt-1.5 flex gap-7xl", children: [_jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(depositBalance, {
83
+ currency: localeInfo?.currency.code,
84
+ minDecimalPlaces: 2,
85
+ }) })] }), _jsxs("div", { children: [_jsx("p", { className: "text-text-secondary-700 text-2xs", children: "Bonus Balance" }), _jsx("p", { className: "text-medium text-text-primary-brand", children: formatNumber(bonusBalance, {
86
+ currency: localeInfo?.currency.code,
87
+ minDecimalPlaces: 2,
88
+ }) })] })] })] }), ' ', _jsxs("div", { className: "mt-3 flex gap-lg", children: [_jsx(Button, { size: "xs", variant: "outline", onClick: () => {
89
+ globalStore.depositWithdrawal.setOpen(true);
90
+ globalStore.depositWithdrawal.setTab('WITHDRAWAL');
91
+ globalStore.profile.setOpen(false);
92
+ globalStore.mobileProfile.setOpen(false);
93
+ }, children: "Withdraw" }), _jsx(Button, { size: "xs", onClick: () => {
94
+ globalStore.depositWithdrawal.setOpen(true);
95
+ globalStore.depositWithdrawal.setTab('DEPOSIT');
96
+ globalStore.profile.setOpen(false);
97
+ globalStore.mobileProfile.setOpen(false);
98
+ }, children: "Deposit" })] })] }));
99
+ }
100
+ function Links(props) {
101
+ const signOutMutation = useSignOutMutation();
102
+ const globalStore = useGlobalStore(useShallow((ctx) => ({
103
+ account: ctx.account,
104
+ account__mobile: ctx.account__mobile,
105
+ messages: ctx.messages,
106
+ })));
107
+ const unreadMessagesCountQuery = useUnreadMessagesCountQuery({}, { refetchInterval: 5000 });
108
+ const unreadMessagesCount = unreadMessagesCountQuery.data ?? 0;
109
+ const profileCompletionQuery = useProfileCompletionQuery();
110
+ const profileCompletion = profileCompletionQuery.data;
111
+ const profileCompletionPercentage = parseDecimal(profileCompletion?.completionPercentage, 0);
112
+ const bonusesCountQuery = useBonusesCountQuery();
113
+ const bonusesCount = bonusesCountQuery.data ?? 0;
114
+ const cashbackBonusesCountQuery = useCashbackBonusesCountQuery();
115
+ const cashbackBonusesCount = cashbackBonusesCountQuery.data ?? 0;
116
+ const rewardsCount = bonusesCount + cashbackBonusesCount;
117
+ return (_jsxs("nav", { className: recipe.nav({ className: 'mt-xl' }), children: [_jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), onClick: () => {
118
+ globalStore.account.setOpen(false);
119
+ globalStore.account__mobile.setOpen(false);
120
+ globalStore.messages.setOpen(true);
121
+ }, children: [_jsx(Bell01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Notifications" }), unreadMessagesCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: unreadMessagesCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.rewardsUrl, className: recipe.navItemLink(), onClick: () => {
122
+ globalStore.account.setOpen(false);
123
+ globalStore.account__mobile.setOpen(false);
124
+ }, children: [_jsx(Gift01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Rewards" }), rewardsCount > 0 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "warning", children: rewardsCount })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), props.shouldShowSettings && (_jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.accountSettingsUrl, className: recipe.navItemLink(), onClick: () => {
125
+ globalStore.account.setOpen(false);
126
+ globalStore.account__mobile.setOpen(false);
127
+ }, children: [_jsx(Settings02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Settings" }), profileCompletionPercentage < 100 && (_jsx("span", { className: recipe.navItemBadge(), "data-type": "error", children: _jsx(AlertCircleIcon, {}) })), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })), _jsxs("ul", { children: [_jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.betRecordsUrl, className: recipe.navItemLink(), onClick: () => {
128
+ globalStore.account.setOpen(false);
129
+ globalStore.account__mobile.setOpen(false);
130
+ }, children: [_jsx(CoinsStacked02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }), _jsx("li", { className: recipe.navItemRoot(), children: _jsxs(Link, { href: props.transactionsUrl, className: recipe.navItemLink(), onClick: () => {
131
+ globalStore.account.setOpen(false);
132
+ globalStore.account__mobile.setOpen(false);
133
+ }, children: [_jsx(CoinsSwap02Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Transactions" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) })] }), _jsx("ul", { children: _jsx("li", { className: recipe.navItemRoot(), children: _jsxs("button", { type: "button", className: recipe.navItemLink(), disabled: signOutMutation.isPending, onClick: () => {
134
+ signOutMutation.mutate();
135
+ globalStore.account.setOpen(false);
136
+ globalStore.account__mobile.setOpen(false);
137
+ }, children: [_jsx(Logout01Icon, { className: recipe.navItemIcon() }), _jsx("span", { className: recipe.navItemLabel(), children: "Log Out" }), _jsx(ChevronRightIcon, { className: recipe.navItemIndicator() })] }) }) })] }));
138
+ }
@@ -4,9 +4,9 @@ import { ark } from '@ark-ui/react';
4
4
  import Image from 'next/image';
5
5
  import { useMediaQuery } from 'usehooks-ts';
6
6
  import { useShallow } from 'zustand/shallow';
7
- import { useGlobalStore } from '../../client/hooks/index.js';
7
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
8
8
  import avatarPlaceholder from '../../images/placeholder-avatar.png';
9
- import { IconButton } from '../../ui/index.js';
9
+ import { IconButton } from '../../ui/IconButton/index.js';
10
10
  export function AccountTrigger({ asChild, children, ...props }) {
11
11
  const desktop = useMediaQuery('(min-width: 1024px)', {
12
12
  defaultValue: true,
@@ -7,11 +7,17 @@ import { useEffect } from 'react';
7
7
  import { useForm } from 'react-hook-form';
8
8
  import { twMerge } from 'tailwind-merge';
9
9
  import { z } from 'zod';
10
- import { useAccountQuery, useLocaleInfo, useMobileNumberParser, useUpdateAccountMutation, } from '../../client/hooks/index.js';
11
- import { toaster } from '../../client/utils/index.js';
12
- import { FacebookIcon, GoogleIcon } from '../../icons/index.js';
10
+ import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
11
+ import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
12
+ import { useMobileNumberParser } from '../../client/hooks/useMobileNumberParser.js';
13
+ import { useUpdateAccountMutation } from '../../client/hooks/useUpdateAccountMutation.js';
14
+ import { toaster } from '../../client/utils/toaster.js';
15
+ import { FacebookIcon } from '../../icons/FacebookIcon.js';
16
+ import { GoogleIcon } from '../../icons/GoogleIcon.js';
13
17
  import avatar from '../../images/placeholder-avatar.png';
14
- import { Button, Field, IconButton } from '../../ui/index.js';
18
+ import { Button } from '../../ui/Button/index.js';
19
+ import { Field } from '../../ui/Field/index.js';
20
+ import { IconButton } from '../../ui/IconButton/index.js';
15
21
  export function AccountInfo(props) {
16
22
  return (_jsxs("div", { className: twMerge('space-y-3xl', props.className), children: [_jsx(ProfileInfo, {}), _jsx(ContactInfo, {}), _jsx(PersonalInfo, {}), _jsx(SSO, {})] }));
17
23
  }
@@ -5,11 +5,20 @@ import { zodResolver } from '@hookform/resolvers/zod';
5
5
  import { useForm } from 'react-hook-form';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
  import { z } from 'zod';
8
- import { useProfileCompletionQuery, useUpdateAccountMutation, } from '../../client/hooks/index.js';
9
- import { toaster } from '../../client/utils/index.js';
8
+ import { useProfileCompletionQuery } from '../../client/hooks/useProfileCompletionQuery.js';
9
+ import { useUpdateAccountMutation } from '../../client/hooks/useUpdateAccountMutation.js';
10
+ import { toaster } from '../../client/utils/toaster.js';
10
11
  import { SECRET_QUESTIONS, SECRET_QUESTIONS_MAP } from '../../constants/index.js';
11
- import { AlertCircleIcon, CheckIcon, CheckVerified02Icon, ChevronDownIcon, EyeIcon, EyeOffIcon, } from '../../icons/index.js';
12
- import { Button, Field, PasswordInput, Select } from '../../ui/index.js';
12
+ import { AlertCircleIcon } from '../../icons/AlertCircleIcon.js';
13
+ import { CheckIcon } from '../../icons/CheckIcon.js';
14
+ import { CheckVerified02Icon } from '../../icons/CheckVerified02Icon.js';
15
+ import { ChevronDownIcon } from '../../icons/ChevronDownIcon.js';
16
+ import { EyeIcon } from '../../icons/EyeIcon.js';
17
+ import { EyeOffIcon } from '../../icons/EyeOffIcon.js';
18
+ import { Button } from '../../ui/Button/index.js';
19
+ import { Field } from '../../ui/Field/index.js';
20
+ import { PasswordInput } from '../../ui/PasswordInput/index.js';
21
+ import { Select } from '../../ui/Select/index.js';
13
22
  export function AccountSecurity(props) {
14
23
  return (_jsxs("div", { className: twMerge('space-y-3xl', props.className), children: [_jsx(LoginPassword, {}), _jsx(TransactionPassword, {})] }));
15
24
  }
@@ -3,9 +3,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { ark } from '@ark-ui/react';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { useShallow } from 'zustand/shallow';
6
- import { useGlobalStore, useMemberVerificationQuery, useProfileCompletionQuery, } from '../../client/hooks/index.js';
7
- import { AlertCircleIcon, CheckVerified02Icon, CreditCard02Icon, FaceIdIcon, FileCheck02Icon, FileSearch02Icon, FileX02Icon, Globe05Icon, } from '../../icons/index.js';
8
- import { Button } from '../../ui/index.js';
6
+ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
7
+ import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
8
+ import { useProfileCompletionQuery } from '../../client/hooks/useProfileCompletionQuery.js';
9
+ import { AlertCircleIcon } from '../../icons/AlertCircleIcon.js';
10
+ import { CheckVerified02Icon } from '../../icons/CheckVerified02Icon.js';
11
+ import { CreditCard02Icon } from '../../icons/CreditCard02Icon.js';
12
+ import { FaceIdIcon } from '../../icons/FaceIdIcon.js';
13
+ import { FileCheck02Icon } from '../../icons/FileCheck02Icon.js';
14
+ import { FileSearch02Icon } from '../../icons/FileSearch02Icon.js';
15
+ import { FileX02Icon } from '../../icons/FileX02Icon.js';
16
+ import { Globe05Icon } from '../../icons/Globe05Icon.js';
17
+ import { Button } from '../../ui/Button/index.js';
9
18
  export function AccountVerification(props) {
10
19
  const globalStore = useGlobalStore(useShallow((ctx) => ({
11
20
  kyc: ctx.kyc,
@@ -1,10 +1,10 @@
1
1
  import type { ImageProps } from 'next/image';
2
- interface Banner {
2
+ interface BannerEntry {
3
3
  src: ImageProps['src'];
4
4
  redirectUrl?: string;
5
5
  }
6
6
  export interface BannerProps {
7
- banners: Banner[];
7
+ banners: BannerEntry[];
8
8
  className?: string;
9
9
  }
10
10
  export declare function Banner(props: BannerProps): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ import Image from 'next/image';
6
6
  import Link from 'next/link';
7
7
  import { Fragment, useEffect, useState } from 'react';
8
8
  import { twMerge } from 'tailwind-merge';
9
- import { dataAttr } from '../../utils/index.js';
9
+ import { dataAttr } from '../../utils/dataAttr.js';
10
10
  export function Banner(props) {
11
11
  const [emblaRef, emblaApi] = useEmblaCarousel({
12
12
  loop: true,
@@ -31,7 +31,7 @@ export function Banner(props) {
31
31
  }, [emblaApi]);
32
32
  return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
33
33
  const img = (_jsx(Image, { src: banner.src, alt: "", width: 1200, height: 300, className: "block h-auto w-full rounded-xl", priority: index === 0 }));
34
- return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", children: img })) }, index));
34
+ return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", "aria-label": `Open ${banner.redirectUrl}`, children: img })) }, index));
35
35
  }) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
36
36
  emblaApi?.scrollTo(index);
37
37
  }, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
@@ -0,0 +1,7 @@
1
+ import type { GameProvider, GameType } from '../../types';
2
+ export interface BetRecordsProps {
3
+ gameTypes: GameType[];
4
+ gameProviders: GameProvider[];
5
+ className?: string;
6
+ }
7
+ export declare function BetRecords__client(props: BetRecordsProps): import("react/jsx-runtime").JSX.Element;