@opexa/portal-components 0.0.17 → 0.0.19

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 (542) hide show
  1. package/dist/client/hooks/index.d.ts +7 -1
  2. package/dist/client/hooks/useAuthenticateMutation.js +1 -1
  3. package/dist/client/hooks/useAuthenticateMutation.mjs +5 -4
  4. package/dist/client/hooks/useBonusesQuery.d.ts +3 -0
  5. package/dist/client/hooks/useBonusesQuery.js +1 -0
  6. package/dist/client/hooks/useBonusesQuery.mjs +38 -0
  7. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +2 -2
  8. package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
  9. package/dist/client/hooks/useCreateGameSessionMutation.mjs +22 -22
  10. package/dist/client/hooks/useEndGameSessionMutation.d.ts +2 -2
  11. package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
  12. package/dist/client/hooks/useEndGameSessionMutation.mjs +18 -18
  13. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +3 -0
  14. package/dist/client/hooks/useFavoriteGamesQuery.js +1 -0
  15. package/dist/client/hooks/useFavoriteGamesQuery.mjs +38 -0
  16. package/dist/client/hooks/useGlobalStore.d.ts +34 -14
  17. package/dist/client/hooks/useGlobalStore.js +1 -1
  18. package/dist/client/hooks/useGlobalStore.mjs +113 -34
  19. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +3 -0
  20. package/dist/client/hooks/useJackpotPayoutsQuery.js +1 -0
  21. package/dist/client/hooks/useJackpotPayoutsQuery.mjs +31 -0
  22. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +2 -0
  23. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +1 -0
  24. package/dist/client/hooks/useMarkGameAsFavoriteMutation.mjs +37 -0
  25. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +2 -0
  26. package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
  27. package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
  28. package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
  29. package/dist/client/hooks/useMessagesQuery.js +1 -0
  30. package/dist/client/hooks/useMessagesQuery.mjs +47 -0
  31. package/dist/client/hooks/useSignInMutation.js +1 -1
  32. package/dist/client/hooks/useSignInMutation.mjs +3 -2
  33. package/dist/client/hooks/useSignOutMutation.js +1 -1
  34. package/dist/client/hooks/useSignOutMutation.mjs +11 -10
  35. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +2 -0
  36. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -0
  37. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.mjs +37 -0
  38. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
  39. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  40. package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
  41. package/dist/client/services/getSession.d.ts +1 -1
  42. package/dist/client/services/getSession.js +1 -1
  43. package/dist/client/services/getSession.mjs +4 -3
  44. package/dist/client-hooks.js +1 -1
  45. package/dist/client-hooks.mjs +92 -80
  46. package/dist/components/Account/Account.d.ts +17 -8
  47. package/dist/components/Account/Account.js +1 -1
  48. package/dist/components/Account/Account.mjs +253 -130
  49. package/dist/components/Account/account.recipe.d.ts +61 -0
  50. package/dist/components/Account/account.recipe.js +1 -0
  51. package/dist/components/Account/account.recipe.mjs +35 -0
  52. package/dist/components/Banner/Banner.js +1 -1
  53. package/dist/components/Banner/Banner.mjs +6 -6
  54. package/dist/components/BetRecords/BetRecords.js +1 -1
  55. package/dist/components/BetRecords/BetRecords.mjs +375 -319
  56. package/dist/components/Bonus/Bonus.client.d.ts +2 -0
  57. package/dist/components/Bonus/Bonus.client.js +1 -0
  58. package/dist/components/Bonus/Bonus.client.mjs +143 -0
  59. package/dist/components/Bonus/Bonus.d.ts +10 -0
  60. package/dist/components/Bonus/Bonus.js +1 -0
  61. package/dist/components/Bonus/Bonus.mjs +8 -0
  62. package/dist/components/Bonus/index.d.ts +1 -0
  63. package/dist/components/Bonuses/Bonuses.d.ts +15 -0
  64. package/dist/components/Bonuses/Bonuses.js +1 -0
  65. package/dist/components/Bonuses/Bonuses.mjs +126 -0
  66. package/dist/components/Bonuses/index.d.ts +1 -0
  67. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  68. package/dist/components/DepositWithdrawal/AmountChoices.mjs +11 -6
  69. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
  70. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +32 -27
  71. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  72. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +3 -2
  73. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  74. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +18 -13
  75. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  76. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +7 -2
  77. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  78. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +18 -13
  79. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  80. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +7 -2
  81. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
  82. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +10 -6
  83. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  84. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +9 -8
  85. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  86. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +43 -38
  87. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
  88. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +10 -6
  89. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
  90. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +12 -8
  91. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  92. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +9 -8
  93. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  94. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +50 -48
  95. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  96. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +28 -23
  97. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
  98. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -74
  99. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
  100. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +120 -108
  101. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
  102. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +77 -65
  103. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
  104. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -84
  105. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  106. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +3 -2
  107. package/dist/components/Disclaimer/Disclaimer.js +1 -1
  108. package/dist/components/Disclaimer/Disclaimer.mjs +16 -12
  109. package/dist/components/Empty.js +1 -0
  110. package/dist/components/{Empty/CloudIcon.mjs → Empty.mjs} +26 -11
  111. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +2 -0
  112. package/dist/components/FavoriteGames/FavoriteGames.client.js +1 -0
  113. package/dist/components/FavoriteGames/FavoriteGames.client.mjs +132 -0
  114. package/dist/components/FavoriteGames/FavoriteGames.d.ts +6 -0
  115. package/dist/components/FavoriteGames/FavoriteGames.js +1 -0
  116. package/dist/components/FavoriteGames/FavoriteGames.mjs +17 -0
  117. package/dist/components/FavoriteGames/index.d.ts +1 -0
  118. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -5
  119. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  120. package/dist/components/GameLaunch/GameLaunch.mjs +151 -124
  121. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +2 -2
  122. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  123. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +7 -6
  124. package/dist/components/GameProviders/GameProviders.d.ts +7 -10
  125. package/dist/components/GameProviders/GameProviders.js +1 -0
  126. package/dist/components/GameProviders/GameProviders.mjs +122 -0
  127. package/dist/components/GameProviders/index.d.ts +1 -0
  128. package/dist/components/Games/Games.client.js +1 -1
  129. package/dist/components/Games/Games.client.mjs +96 -68
  130. package/dist/components/Games/Games.d.ts +7 -2
  131. package/dist/components/Games/Games.js +1 -1
  132. package/dist/components/Games/Games.mjs +4 -2
  133. package/dist/components/GamesSearch/GamesSearch.d.ts +6 -0
  134. package/dist/components/GamesSearch/GamesSearch.js +1 -0
  135. package/dist/components/GamesSearch/GamesSearch.mjs +199 -0
  136. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +4 -0
  137. package/dist/components/GamesSearch/GamesSearchTrigger.js +1 -0
  138. package/dist/components/GamesSearch/GamesSearchTrigger.mjs +50 -0
  139. package/dist/components/GamesSearch/index.d.ts +2 -0
  140. package/dist/components/InfiniteScroll.d.ts +10 -0
  141. package/dist/components/InfiniteScroll.js +1 -0
  142. package/dist/components/InfiniteScroll.mjs +30 -0
  143. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
  144. package/dist/components/JackpotCounter/JackpotCounter.client.js +1 -0
  145. package/dist/components/JackpotCounter/JackpotCounter.client.mjs +139 -0
  146. package/dist/components/JackpotCounter/JackpotCounter.d.ts +5 -3
  147. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  148. package/dist/components/JackpotCounter/JackpotCounter.mjs +10 -110
  149. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +4 -1
  150. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  151. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +370 -125
  152. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
  153. package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +13 -8
  154. package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
  155. package/dist/components/Jackpots/JackpotGameProviders.js +1 -0
  156. package/dist/components/Jackpots/JackpotGameProviders.mjs +105 -0
  157. package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
  158. package/dist/components/Jackpots/JackpotItem.js +1 -0
  159. package/dist/components/Jackpots/JackpotItem.mjs +408 -0
  160. package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
  161. package/dist/components/Jackpots/JackpotItemMobile.js +1 -0
  162. package/dist/components/Jackpots/JackpotItemMobile.mjs +427 -0
  163. package/dist/components/Jackpots/JackpotRules.d.ts +6 -0
  164. package/dist/components/Jackpots/JackpotRules.js +1 -0
  165. package/dist/components/Jackpots/JackpotRules.mjs +78 -0
  166. package/dist/components/Jackpots/Jackpots.d.ts +8 -0
  167. package/dist/components/Jackpots/Jackpots.js +1 -0
  168. package/dist/components/Jackpots/Jackpots.mjs +61 -0
  169. package/dist/components/Jackpots/index.d.ts +1 -0
  170. package/dist/components/KYC/KYC.d.ts +5 -0
  171. package/dist/components/KYC/KYC.js +1 -0
  172. package/dist/components/KYC/KYC.mjs +84 -0
  173. package/dist/components/KYC/KYCContext.d.ts +3 -0
  174. package/dist/components/KYC/KYCContext.js +1 -0
  175. package/dist/components/KYC/KYCContext.mjs +11 -0
  176. package/dist/components/KYC/KYCTrigger.d.ts +5 -0
  177. package/dist/components/KYC/KYCTrigger.js +1 -0
  178. package/dist/components/KYC/KYCTrigger.mjs +42 -0
  179. package/dist/components/KYC/Step1.d.ts +1 -0
  180. package/dist/components/KYC/Step1.js +1 -0
  181. package/dist/components/KYC/Step1.mjs +67 -0
  182. package/dist/components/KYC/Step2.d.ts +1 -0
  183. package/dist/components/KYC/Step2.js +1 -0
  184. package/dist/components/KYC/Step2.mjs +126 -0
  185. package/dist/components/KYC/Step3.d.ts +1 -0
  186. package/dist/components/KYC/Step3.js +1 -0
  187. package/dist/components/KYC/Step3.mjs +98 -0
  188. package/dist/components/KYC/StepIndicator.d.ts +1 -0
  189. package/dist/components/KYC/StepIndicator.js +1 -0
  190. package/dist/components/KYC/StepIndicator.mjs +42 -0
  191. package/dist/components/KYC/UploadDocument.d.ts +1 -0
  192. package/dist/components/KYC/UploadDocument.js +1 -0
  193. package/dist/components/KYC/UploadDocument.mjs +69 -0
  194. package/dist/components/KYC/UploadSelfie.d.ts +1 -0
  195. package/dist/components/KYC/UploadSelfie.js +1 -0
  196. package/dist/components/KYC/UploadSelfie.mjs +65 -0
  197. package/dist/components/KYC/index.d.ts +2 -0
  198. package/dist/components/KYC/useKYC.d.ts +14 -0
  199. package/dist/components/KYC/useKYC.js +1 -0
  200. package/dist/components/KYC/useKYC.mjs +43 -0
  201. package/dist/components/KYC/utils.d.ts +1 -0
  202. package/dist/components/Marquee/Marquee.js +1 -1
  203. package/dist/components/Marquee/Marquee.mjs +7 -7
  204. package/dist/components/Messages/MessageItem.d.ts +4 -0
  205. package/dist/components/Messages/MessageItem.js +1 -0
  206. package/dist/components/Messages/MessageItem.mjs +75 -0
  207. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  208. package/dist/components/Messages/MessagePopup.js +1 -0
  209. package/dist/components/Messages/MessagePopup.mjs +95 -0
  210. package/dist/components/Messages/Messages.d.ts +1 -0
  211. package/dist/components/Messages/Messages.js +1 -0
  212. package/dist/components/Messages/Messages.mjs +166 -0
  213. package/dist/components/Messages/index.d.ts +1 -0
  214. package/dist/components/Messages/utils.d.ts +3 -0
  215. package/dist/components/Messages/utils.js +1 -0
  216. package/dist/components/Messages/utils.mjs +16 -0
  217. package/dist/components/PortalProvider/PortalProvider.client.d.ts +2 -0
  218. package/dist/components/PortalProvider/{Providers.js → PortalProvider.client.js} +1 -1
  219. package/dist/components/PortalProvider/{Providers.mjs → PortalProvider.client.mjs} +28 -15
  220. package/dist/components/PortalProvider/PortalProvider.d.ts +9 -2
  221. package/dist/components/PortalProvider/PortalProvider.js +1 -1
  222. package/dist/components/PortalProvider/PortalProvider.mjs +17 -11
  223. package/dist/components/Promo/Promo.d.ts +4 -1
  224. package/dist/components/Promo/Promo.js +1 -1
  225. package/dist/components/Promo/Promo.mjs +2 -2
  226. package/dist/components/Promo/PromoContent.js +1 -1
  227. package/dist/components/Promo/PromoContent.mjs +75 -22
  228. package/dist/components/Promos/PromoCarousel.js +1 -1
  229. package/dist/components/Promos/PromoCarousel.mjs +30 -25
  230. package/dist/components/Promos/PromoGrid.js +1 -1
  231. package/dist/components/Promos/PromoGrid.mjs +14 -13
  232. package/dist/components/Promos/PromoItem.js +1 -1
  233. package/dist/components/Promos/PromoItem.mjs +11 -7
  234. package/dist/components/Promos/Promos.d.ts +4 -2
  235. package/dist/components/Protected/Protected.js +1 -1
  236. package/dist/components/Protected/Protected.mjs +3 -2
  237. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -0
  238. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +1 -0
  239. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.mjs +154 -0
  240. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  241. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +1 -0
  242. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.mjs +66 -0
  243. package/dist/components/Quests/Quests.d.ts +1 -0
  244. package/dist/components/Quests/Quests.js +1 -0
  245. package/dist/components/Quests/Quests.mjs +15 -0
  246. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -0
  247. package/dist/components/Quests/WageringQuest/WageringQuest.js +1 -0
  248. package/dist/components/Quests/WageringQuest/WageringQuest.mjs +109 -0
  249. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +8 -0
  250. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +1 -0
  251. package/dist/components/Quests/WageringQuest/WageringQuestModal.mjs +63 -0
  252. package/dist/components/Quests/index.d.ts +1 -0
  253. package/dist/components/SignIn/SignIn.d.ts +0 -1
  254. package/dist/components/SignIn/SignIn.js +1 -1
  255. package/dist/components/SignIn/SignIn.mjs +34 -41
  256. package/dist/components/SignIn/SignInForm.js +1 -1
  257. package/dist/components/SignIn/SignInForm.mjs +169 -160
  258. package/dist/components/SignUp/SignUp.d.ts +0 -1
  259. package/dist/components/SignUp/SignUp.js +1 -1
  260. package/dist/components/SignUp/SignUp.mjs +34 -41
  261. package/dist/components/SignUp/SignUpForm.js +1 -1
  262. package/dist/components/SignUp/SignUpForm.mjs +125 -116
  263. package/dist/components/TopWins/TopWins.client.js +1 -1
  264. package/dist/components/TopWins/TopWins.client.mjs +15 -14
  265. package/dist/components/TopWins/TopWins.d.ts +2 -1
  266. package/dist/components/TopWins/TopWins.js +1 -1
  267. package/dist/components/TopWins/TopWins.mjs +4 -2
  268. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
  269. package/dist/components/TournamentCounter/TournamentCounter.client.js +1 -0
  270. package/dist/components/TournamentCounter/TournamentCounter.client.mjs +139 -0
  271. package/dist/components/TournamentCounter/TournamentCounter.d.ts +5 -3
  272. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  273. package/dist/components/TournamentCounter/TournamentCounter.mjs +17 -108
  274. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +7 -5
  275. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  276. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +225 -86
  277. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -0
  278. package/dist/components/Tournaments/TournamentGameProviders.js +1 -0
  279. package/dist/components/Tournaments/TournamentGameProviders.mjs +105 -0
  280. package/dist/components/Tournaments/TournamentItem.d.ts +6 -0
  281. package/dist/components/Tournaments/TournamentItem.js +2 -0
  282. package/dist/components/Tournaments/TournamentItem.mjs +262 -0
  283. package/dist/components/Tournaments/TournamentItemMobile.d.ts +8 -0
  284. package/dist/components/Tournaments/TournamentItemMobile.js +2 -0
  285. package/dist/components/Tournaments/TournamentItemMobile.mjs +285 -0
  286. package/dist/components/Tournaments/TournamentRules.d.ts +6 -0
  287. package/dist/components/Tournaments/TournamentRules.js +1 -0
  288. package/dist/components/Tournaments/TournamentRules.mjs +78 -0
  289. package/dist/components/Tournaments/Tournaments.d.ts +8 -0
  290. package/dist/components/Tournaments/Tournaments.js +1 -0
  291. package/dist/components/Tournaments/Tournaments.mjs +47 -0
  292. package/dist/components/Tournaments/index.d.ts +1 -0
  293. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  294. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +123 -100
  295. package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
  296. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  297. package/dist/components/TransactionRecords/TableFilters.mjs +282 -179
  298. package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
  299. package/dist/components/TransactionRecords/TransactionRecords.mjs +22 -17
  300. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  301. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +118 -97
  302. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  303. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +120 -102
  304. package/dist/components/index.d.ts +10 -0
  305. package/dist/components.js +1 -1
  306. package/dist/components.mjs +56 -32
  307. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
  308. package/dist/icons/ArrowNarrowDownIcon.js +1 -0
  309. package/dist/icons/ArrowNarrowDownIcon.mjs +22 -0
  310. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
  311. package/dist/icons/ArrowNarrowUpIcon.js +1 -0
  312. package/dist/icons/ArrowNarrowUpIcon.mjs +22 -0
  313. package/dist/icons/Award01Icon.d.ts +2 -0
  314. package/dist/icons/Award01Icon.js +1 -0
  315. package/dist/icons/Award01Icon.mjs +22 -0
  316. package/dist/icons/Bell01Icon.d.ts +2 -0
  317. package/dist/icons/Bell01Icon.js +1 -0
  318. package/dist/icons/Bell01Icon.mjs +27 -0
  319. package/dist/icons/BellRingIcon.d.ts +2 -0
  320. package/dist/icons/BellRingIcon.js +1 -0
  321. package/dist/icons/BellRingIcon.mjs +27 -0
  322. package/dist/icons/CalendarIcon.d.ts +2 -0
  323. package/dist/icons/CalendarIcon.js +1 -0
  324. package/dist/icons/CalendarIcon.mjs +26 -0
  325. package/dist/icons/Camera01Icon.d.ts +2 -0
  326. package/dist/icons/Camera01Icon.js +1 -0
  327. package/dist/icons/Camera01Icon.mjs +25 -0
  328. package/dist/icons/CheckCircleIcon.d.ts +2 -0
  329. package/dist/icons/CheckCircleIcon.js +1 -0
  330. package/dist/icons/CheckCircleIcon.mjs +22 -0
  331. package/dist/icons/ClockStopWatchIcon.d.ts +2 -0
  332. package/dist/icons/ClockStopWatchIcon.js +1 -0
  333. package/dist/icons/ClockStopWatchIcon.mjs +26 -0
  334. package/dist/icons/CoinsHandIcon.d.ts +2 -0
  335. package/dist/icons/CoinsHandIcon.js +1 -0
  336. package/dist/icons/CoinsHandIcon.mjs +22 -0
  337. package/dist/icons/CoinsStacked02Icon.d.ts +2 -0
  338. package/dist/icons/CoinsStacked02Icon.js +1 -0
  339. package/dist/icons/CoinsStacked02Icon.mjs +22 -0
  340. package/dist/icons/CoinsSwap02Icon.d.ts +2 -0
  341. package/dist/icons/CoinsSwap02Icon.js +1 -0
  342. package/dist/icons/CoinsSwap02Icon.mjs +22 -0
  343. package/dist/icons/EyeIcon.d.ts +2 -0
  344. package/dist/icons/EyeIcon.js +1 -0
  345. package/dist/icons/EyeIcon.mjs +25 -0
  346. package/dist/icons/EyeOffIcon.d.ts +2 -0
  347. package/dist/icons/EyeOffIcon.js +1 -0
  348. package/dist/icons/EyeOffIcon.mjs +22 -0
  349. package/dist/icons/Flag06Icon.d.ts +2 -0
  350. package/dist/icons/Flag06Icon.js +1 -0
  351. package/dist/icons/Flag06Icon.mjs +22 -0
  352. package/dist/icons/HelpCircleIcon.d.ts +2 -0
  353. package/dist/icons/HelpCircleIcon.js +1 -0
  354. package/dist/icons/HelpCircleIcon.mjs +22 -0
  355. package/dist/icons/InfoCircleIcon.d.ts +2 -0
  356. package/dist/icons/InfoCircleIcon.js +1 -0
  357. package/dist/icons/InfoCircleIcon.mjs +27 -0
  358. package/dist/icons/Menu01Icon.d.ts +2 -0
  359. package/dist/icons/Menu01Icon.js +1 -0
  360. package/dist/icons/Menu01Icon.mjs +22 -0
  361. package/dist/icons/Menu03Icon.d.ts +2 -0
  362. package/dist/icons/Menu03Icon.js +1 -0
  363. package/dist/icons/Menu03Icon.mjs +22 -0
  364. package/dist/icons/SearchLgIcon.d.ts +2 -0
  365. package/dist/icons/SearchLgIcon.js +1 -0
  366. package/dist/icons/SearchLgIcon.mjs +22 -0
  367. package/dist/icons/Settings02Icon.d.ts +2 -0
  368. package/dist/icons/Settings02Icon.js +1 -0
  369. package/dist/icons/Settings02Icon.mjs +25 -0
  370. package/dist/icons/Star01Icon.d.ts +2 -0
  371. package/dist/icons/Star01Icon.js +1 -0
  372. package/dist/icons/Star01Icon.mjs +22 -0
  373. package/dist/icons/StarIcon.d.ts +2 -0
  374. package/dist/icons/StarIcon.js +1 -0
  375. package/dist/icons/StarIcon.mjs +18 -0
  376. package/dist/icons/StopWatchIcon.d.ts +2 -0
  377. package/dist/icons/StopWatchIcon.js +1 -0
  378. package/dist/icons/StopWatchIcon.mjs +22 -0
  379. package/dist/icons/Trophy01Icon.d.ts +2 -0
  380. package/dist/icons/Trophy01Icon.js +1 -0
  381. package/dist/icons/Trophy01Icon.mjs +22 -0
  382. package/dist/icons/UploadCloud02Icon.d.ts +2 -0
  383. package/dist/icons/UploadCloud02Icon.js +1 -0
  384. package/dist/icons/UploadCloud02Icon.mjs +22 -0
  385. package/dist/icons/index.d.ts +22 -0
  386. package/dist/icons.d.ts +2 -0
  387. package/dist/icons.js +1 -0
  388. package/dist/icons.mjs +94 -0
  389. package/dist/images/fantasma-games.png.js +1 -0
  390. package/dist/images/fantasma-games.png.mjs +4 -0
  391. package/dist/images/first-place.png.js +1 -0
  392. package/dist/images/first-place.png.mjs +4 -0
  393. package/dist/images/hacksaw-gaming.png.js +1 -0
  394. package/dist/images/hacksaw-gaming.png.mjs +4 -0
  395. package/dist/images/leaderboard.png.js +1 -0
  396. package/dist/images/leaderboard.png.mjs +4 -0
  397. package/dist/images/placeholder-avatar.png.js +1 -0
  398. package/dist/images/placeholder-avatar.png.mjs +4 -0
  399. package/dist/images/responsible-gaming.png.js +1 -1
  400. package/dist/images/responsible-gaming.png.mjs +2 -2
  401. package/dist/images/trophy-two.png.js +1 -0
  402. package/dist/images/trophy-two.png.mjs +4 -0
  403. package/dist/portal-components.css +1 -1
  404. package/dist/server/services/getSession.d.ts +1 -1
  405. package/dist/server/services/getSession.js +1 -1
  406. package/dist/server/services/getSession.mjs +6 -5
  407. package/dist/server/utils/index.d.ts +2 -1
  408. package/dist/server/utils/prefetchBonusesQuery.d.ts +1 -0
  409. package/dist/server/utils/prefetchBonusesQuery.js +1 -0
  410. package/dist/server/utils/prefetchBonusesQuery.mjs +26 -0
  411. package/dist/server/utils/prefetchFavoriteGamesQuery.d.ts +1 -0
  412. package/dist/server/utils/prefetchFavoriteGamesQuery.js +1 -0
  413. package/dist/server/utils/prefetchFavoriteGamesQuery.mjs +28 -0
  414. package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
  415. package/dist/server-utils.js +1 -1
  416. package/dist/server-utils.mjs +38 -36
  417. package/dist/theme.css +131 -5
  418. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  419. package/dist/third-parties/FacebookPixel/FacebookPixel.js +1 -0
  420. package/dist/third-parties/FacebookPixel/FacebookPixel.mjs +6 -0
  421. package/dist/third-parties/FacebookPixel/api.d.ts +1 -0
  422. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  423. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  424. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +1 -0
  425. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.mjs +6 -0
  426. package/dist/third-parties/GoogleRecaptcha/api.d.ts +1 -0
  427. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  428. package/dist/third-parties/index.d.ts +2 -0
  429. package/dist/types/index.d.ts +8 -0
  430. package/dist/types.d.ts +1 -0
  431. package/dist/types.js +1 -0
  432. package/dist/types.mjs +1 -0
  433. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  434. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  435. package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
  436. package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
  437. package/dist/ui/Badge/Badge.d.ts +274 -27
  438. package/dist/ui/Badge/Badge.js +1 -1
  439. package/dist/ui/Badge/Badge.mjs +14 -10
  440. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  441. package/dist/ui/Badge/badge.anatomy.js +1 -1
  442. package/dist/ui/Badge/badge.anatomy.mjs +1 -0
  443. package/dist/ui/Badge/badge.recipe.d.ts +57 -9
  444. package/dist/ui/Badge/badge.recipe.js +1 -1
  445. package/dist/ui/Badge/badge.recipe.mjs +57 -21
  446. package/dist/ui/Button/button.recipe.d.ts +2 -2
  447. package/dist/ui/Button/button.recipe.js +1 -1
  448. package/dist/ui/Button/button.recipe.mjs +17 -7
  449. package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
  450. package/dist/ui/Checkbox/checkbox.recipe.mjs +8 -8
  451. package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
  452. package/dist/ui/Collapsible/Collapsible.js +1 -0
  453. package/dist/ui/Collapsible/Collapsible.mjs +13 -0
  454. package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
  455. package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
  456. package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
  457. package/dist/ui/Collapsible/index.d.ts +1 -0
  458. package/dist/ui/Combobox/Combobox.d.ts +815 -1
  459. package/dist/ui/Combobox/Combobox.js +1 -1
  460. package/dist/ui/Combobox/Combobox.mjs +27 -2
  461. package/dist/ui/Combobox/combobox.recipe.d.ts +58 -1
  462. package/dist/ui/Combobox/combobox.recipe.js +1 -0
  463. package/dist/ui/Combobox/combobox.recipe.mjs +15 -0
  464. package/dist/ui/DatePicker/DatePicker.d.ts +192 -192
  465. package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
  466. package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
  467. package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
  468. package/dist/ui/Dialog/Dialog.d.ts +88 -88
  469. package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
  470. package/dist/ui/Dialog/dialog.recipe.js +1 -1
  471. package/dist/ui/Dialog/dialog.recipe.mjs +5 -5
  472. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  473. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  474. package/dist/ui/Drawer/drawer.recipe.js +1 -1
  475. package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
  476. package/dist/ui/Field/field.recipe.js +1 -1
  477. package/dist/ui/Field/field.recipe.mjs +10 -12
  478. package/dist/ui/IconButton/iconButton.recipe.d.ts +3 -2
  479. package/dist/ui/IconButton/iconButton.recipe.js +1 -1
  480. package/dist/ui/IconButton/iconButton.recipe.mjs +7 -6
  481. package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
  482. package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
  483. package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
  484. package/dist/ui/PasswordInput/PasswordInput.js +1 -0
  485. package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
  486. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
  487. package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
  488. package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
  489. package/dist/ui/PinInput/pinInput.recipe.js +1 -1
  490. package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
  491. package/dist/ui/Popover/Popover.d.ts +55 -55
  492. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  493. package/dist/ui/Popover/popover.recipe.js +1 -1
  494. package/dist/ui/Popover/popover.recipe.mjs +1 -1
  495. package/dist/ui/Progress/Progress.d.ts +335 -1
  496. package/dist/ui/Progress/Progress.js +1 -1
  497. package/dist/ui/Progress/Progress.mjs +15 -2
  498. package/dist/ui/Progress/progress.recipe.d.ts +37 -1
  499. package/dist/ui/Progress/progress.recipe.js +1 -0
  500. package/dist/ui/Progress/progress.recipe.mjs +41 -0
  501. package/dist/ui/Prose.d.ts +2 -0
  502. package/dist/ui/Prose.js +1 -0
  503. package/dist/ui/Prose.mjs +47 -0
  504. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  505. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  506. package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
  507. package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
  508. package/dist/ui/Select/Select.d.ts +45 -45
  509. package/dist/ui/Select/select.recipe.d.ts +3 -3
  510. package/dist/ui/Select/select.recipe.js +1 -1
  511. package/dist/ui/Select/select.recipe.mjs +7 -6
  512. package/dist/ui/Table/table.recipe.js +1 -1
  513. package/dist/ui/Table/table.recipe.mjs +4 -4
  514. package/dist/ui/Tabs/tabs.recipe.js +1 -1
  515. package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
  516. package/dist/ui/index.d.ts +3 -0
  517. package/dist/ui.js +1 -1
  518. package/dist/ui.mjs +36 -30
  519. package/dist/utils/queryKeys.d.ts +9 -2
  520. package/dist/utils/queryKeys.js +1 -1
  521. package/dist/utils/queryKeys.mjs +56 -38
  522. package/dist/utils.js +1 -1
  523. package/dist/utils.mjs +48 -41
  524. package/package.json +24 -12
  525. package/dist/client/hooks/useSiteQuery.d.ts +0 -3
  526. package/dist/client/hooks/useSiteQuery.js +0 -1
  527. package/dist/client/hooks/useSiteQuery.mjs +0 -23
  528. package/dist/components/Empty/CloudIcon.d.ts +0 -2
  529. package/dist/components/Empty/CloudIcon.js +0 -1
  530. package/dist/components/Empty/Empty.js +0 -1
  531. package/dist/components/Empty/Empty.mjs +0 -16
  532. package/dist/components/Empty/index.d.ts +0 -1
  533. package/dist/components/PortalProvider/Providers.d.ts +0 -2
  534. package/dist/components/Promos/PromosContent.d.ts +0 -2
  535. package/dist/images/ball.png.js +0 -1
  536. package/dist/images/ball.png.mjs +0 -4
  537. package/dist/images/card.png.js +0 -1
  538. package/dist/images/card.png.mjs +0 -4
  539. package/dist/server/utils/prefetchSiteQuery.d.ts +0 -1
  540. package/dist/server/utils/prefetchSiteQuery.js +0 -1
  541. package/dist/server/utils/prefetchSiteQuery.mjs +0 -23
  542. /package/dist/components/{Empty/Empty.d.ts → Empty.d.ts} +0 -0
@@ -1,12 +1,21 @@
1
- import { ComponentProps, ComponentType, ReactNode } from 'react';
2
- interface AccountLink {
3
- icon: ComponentType<ComponentProps<'svg'>>;
4
- href: string;
5
- label: string;
6
- }
1
+ import { ReactNode } from 'react';
7
2
  export interface AccountProps {
8
- links?: AccountLink[];
9
3
  children?: ReactNode;
4
+ /**
5
+ * @default '0px'
6
+ * @example
7
+ * ```tsx
8
+ * offsetTop="1em"
9
+ * offsetTop="1rem"
10
+ * offsetTop="16px"
11
+ * ```
12
+ */
13
+ offsetTop?: string;
14
+ /** @default '/rewards' */
15
+ rewardsUrl?: string;
16
+ /** @default '/bet-records' */
17
+ betRecordsUrl?: string;
18
+ /** @default '/transactions' */
19
+ transactionsUrl?: string;
10
20
  }
11
21
  export declare function Account(props: AccountProps): import("react").JSX.Element;
12
- export {};
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("@ark-ui/react"),g=require("next/link"),u=require("zustand/shallow"),q=require("../../client/hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../utils/capitalize.js");const y=require("../../utils/formatNumber.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("../../utils/parseDecimal.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const d=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const N=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const w=require("../../client/hooks/useSignOutMutation.js"),O=require("../../client/hooks/useWalletQuery.js"),m=require("../../icons/ChevronRightIcon.js"),P=require("../../icons/Logout01Icon.js"),c=require("../../icons/User01Icon.js");require("../../ui/AlertDialog/AlertDialog.js");const o=require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const h=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");const n=require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");const a=require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function v(s){const i=d.useGlobalStore(u.useShallow(r=>({profile:r.profile,mobileProfile:r.mobileProfile})));return e.jsxs(e.Fragment,{children:[e.jsxs(n.Root,{open:i.profile.open,onOpenChange:r=>{i.profile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,children:[e.jsx(n.Trigger,{asChild:!0,className:"lg:hidden",children:s.children??e.jsx("button",{type:"button",children:e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})})})}),e.jsxs(x.Portal,{children:[e.jsx(n.Backdrop,{}),e.jsx(n.Positioner,{children:e.jsxs(n.Content,{className:"bg-gray-50 flex w-[316px] flex-col px-xl py-6",children:[e.jsx(f,{}),e.jsx(j,{}),e.jsx(b,{links:s.links??[]}),e.jsx("div",{className:"grow"}),e.jsx(p,{})]})})]})]}),e.jsxs(a.Root,{open:i.mobileProfile.open,onOpenChange:r=>{i.mobileProfile.setOpen(r.open)},lazyMount:!0,unmountOnExit:!0,positioning:{placement:"bottom"},children:[e.jsx(a.Trigger,{className:"hidden lg:flex",asChild:!0,children:s.children??e.jsx("button",{type:"button",children:e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})})})}),e.jsx(x.Portal,{children:e.jsx(a.Positioner,{children:e.jsxs(a.Content,{className:"border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsx(f,{}),e.jsx(j,{}),e.jsx(b,{links:s.links??[]}),e.jsx(p,{})]})})})]})]})}function p(){return e.jsx("div",{className:"text-gray-400 mt-xl text-center text-2xs",children:"© 2025 HappyBingo All rights reserved"})}function f(){var i,r,l,t;const s=q.useAccountQuery();return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(o.Root,{children:e.jsx(o.Fallback,{children:e.jsx(c.User01Icon,{})})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:(i=s.data)==null?void 0:i.name}),e.jsx("p",{className:"text-gray-400 text-xs",children:((r=s.data)==null?void 0:r.nickName)??((l=s.data)==null?void 0:l.emailAddress)??((t=s.data)==null?void 0:t.realName)})]})]})}function b(s){const i=w.useSignOutMutation(),r=d.useGlobalStore(u.useShallow(l=>({profile:l.profile,mobileProfile:l.mobileProfile})));return e.jsxs("nav",{className:"mt-xl space-y-xl",children:[e.jsx("ul",{children:s.links.map((l,t)=>e.jsx("li",{className:"border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",children:e.jsxs(g,{href:l.href,onClick:()=>{r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",children:[e.jsx(l.icon,{className:"size-5"}),e.jsx("span",{className:"grow",children:l.label}),e.jsx(m.ChevronRightIcon,{className:"text-gray-400 size-5"})]})},l.href+t))}),e.jsx("ul",{children:e.jsx("li",{className:"border-gray-200 block rounded-xl border bg-white",children:e.jsxs("button",{type:"button",className:"flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",disabled:i.isPending,onClick:()=>{i.mutate(),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:[e.jsx(P.Logout01Icon,{className:"size-5"}),e.jsx("span",{className:"grow",children:"Log Out"}),e.jsx(m.ChevronRightIcon,{className:"text-gray-400 size-5"})]})})})]})}function j(){var l;const s=N.useLocaleInfo(),i=O.useWalletQuery({refetchInterval:1e3}),r=d.useGlobalStore(u.useShallow(t=>({profile:t.profile,mobileProfile:t.mobileProfile,depositWithdrawal:t.depositWithdrawal})));return e.jsxs("div",{className:"border-gray-200 mt-3 rounded-lg border bg-white p-xl",children:[e.jsx("div",{className:"border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium",children:"Available Balance"}),e.jsx("div",{className:"mt-2 text-3xl font-semibold",children:y.formatNumber((l=i.data)==null?void 0:l.balance,{currency:s==null?void 0:s.currency.code,minDecimalPlaces:2})}),e.jsxs("div",{className:"mt-3 flex gap-lg",children:[e.jsx(h.Button,{size:"xs",variant:"outline",colorScheme:"gray",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("WITHDRAWAL"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Withdraw"}),e.jsx(h.Button,{size:"xs",onClick:()=>{r.depositWithdrawal.setOpen(!0),r.depositWithdrawal.setTab("DEPOSIT"),r.profile.setOpen(!1),r.mobileProfile.setOpen(!1)},children:"Deposit"})]})]})}exports.Account=v;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("@ark-ui/react"),p=require("next/image"),m=require("next/link"),C=require("zustand/shallow"),w=require("../../client/hooks/useAccountQuery.js");require("@tanstack/react-query");require("../../utils/capitalize.js");const x=require("../../utils/formatNumber.js");require("../../constants/index.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const v=require("../../utils/parseDecimal.js");require("../../client/services/getSession.js");require("@opexa/portal-sdk-core");require("tiny-invariant");require("react");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const P=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");const R=require("../../client/hooks/useLocaleInfo.js");require("usehooks-ts");const S=require("../../client/hooks/useSignOutMutation.js"),L=require("../../client/hooks/useUnreadMessagesCountQuery.js"),k=require("../../client/hooks/useWalletQuery.js"),B=require("../../icons/AlertCircleIcon.js"),i=require("../../icons/ChevronRightIcon.js"),W=require("../../icons/CoinsStacked02Icon.js"),D=require("../../icons/CoinsSwap02Icon.js"),z=require("../../icons/Gift01Icon.js"),b=require("../../icons/Logout01Icon.js"),A=require("../../icons/Settings02Icon.js"),Q=require("../../icons/XIcon.js"),j=require("../../images/placeholder-avatar.png.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");const h=require("../../ui/Badge/Badge.js"),N=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/Combobox/Combobox.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");const c=require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const q=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");const d=require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const T=require("./account.recipe.js"),r=T.accountRecipe();function M(n){const s=P.useGlobalStore(C.useShallow(a=>({profile:a.profile,mobileProfile:a.mobileProfile,messages:a.messages}))),t=S.useSignOutMutation(),o=L.useUnreadMessagesCountQuery({},{refetchInterval:5e3}),l=e.jsxs("nav",{className:r.nav(),children:[e.jsxs("ul",{children:[e.jsx("li",{className:r.navItemRoot(),children:e.jsxs("button",{type:"button",className:r.navItemLink(),onClick:()=>{s.profile.setOpen(!1),s.mobileProfile.setOpen(!1),s.messages.setOpen(!0)},children:[e.jsx(b.Logout01Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Notifications"}),e.jsx("span",{className:r.navItemBadge(),"data-type":"warning",children:o.data??0}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})}),e.jsx("li",{className:r.navItemRoot(),children:e.jsxs(m,{href:n.rewardsUrl??"/rewards",className:r.navItemLink(),onClick:()=>{s.profile.setOpen(!1),s.mobileProfile.setOpen(!1)},children:[e.jsx(z.Gift01Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Rewards"}),e.jsx("span",{className:r.navItemBadge(),"data-type":"warning",children:"0"}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})})]}),e.jsx("ul",{children:e.jsx("li",{className:r.navItemRoot(),children:e.jsxs("button",{type:"button",className:r.navItemLink(),onClick:()=>{s.profile.setOpen(!1),s.mobileProfile.setOpen(!1)},children:[e.jsx(A.Settings02Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Settings"}),e.jsx("span",{className:r.navItemBadge(),"data-type":"error",children:e.jsx(B.AlertCircleIcon,{})}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})})}),e.jsxs("ul",{children:[e.jsx("li",{className:r.navItemRoot(),children:e.jsxs(m,{href:n.betRecordsUrl??"/bet-records",className:r.navItemLink(),onClick:()=>{s.profile.setOpen(!1),s.mobileProfile.setOpen(!1)},children:[e.jsx(W.CoinsStacked02Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Bet Records"}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})}),e.jsx("li",{className:r.navItemRoot(),children:e.jsxs(m,{href:n.transactionsUrl??"/transactions",className:r.navItemLink(),onClick:()=>{s.profile.setOpen(!1),s.mobileProfile.setOpen(!1)},children:[e.jsx(D.CoinsSwap02Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Transactions"}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})})]}),e.jsx("ul",{children:e.jsx("li",{className:r.navItemRoot(),children:e.jsxs("button",{type:"button",className:r.navItemLink(),disabled:t.isPending,onClick:()=>{t.mutate(),s.profile.setOpen(!1),s.mobileProfile.setOpen(!1)},children:[e.jsx(b.Logout01Icon,{className:r.navItemIcon()}),e.jsx("span",{className:r.navItemLabel(),children:"Log Out"}),e.jsx(i.ChevronRightIcon,{className:r.navItemIndicator()})]})})})]});return e.jsxs(e.Fragment,{children:[e.jsxs(c.Root,{open:s.mobileProfile.open,onOpenChange:a=>{s.mobileProfile.setOpen(a.open)},lazyMount:!0,unmountOnExit:!0,children:[e.jsx(c.Trigger,{asChild:!0,className:"lg:hidden",children:n.children??e.jsx(q.IconButton,{size:"sm",colorScheme:"gray",children:s.mobileProfile.open?e.jsx(Q.XIcon,{}):e.jsx(p,{src:j,alt:"",width:100,height:100,className:"size-10"})})}),e.jsx(g.Portal,{children:e.jsx(c.Positioner,{children:e.jsxs(c.Content,{className:"top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6",style:{"--top":n.offsetTop??"0px"},children:[e.jsx(y,{}),e.jsx(O,{}),l]})})})]}),e.jsxs(d.Root,{open:s.profile.open,onOpenChange:a=>{s.profile.setOpen(a.open)},lazyMount:!0,unmountOnExit:!0,positioning:{placement:"bottom",strategy:"fixed"},children:[e.jsx(d.Trigger,{className:"hidden lg:flex",asChild:!0,children:n.children??e.jsx(q.IconButton,{size:"sm",colorScheme:"gray",children:e.jsx(p,{src:j,alt:"",width:48,height:48,className:"size-10"})})}),e.jsx(g.Portal,{children:e.jsx(d.Positioner,{children:e.jsxs(d.Content,{className:"border-border-primary bg-bg-primary z-popover w-[23.438rem] rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out",children:[e.jsx(y,{}),e.jsx(O,{}),l]})})})]})]})}function y(){const s=w.useAccountQuery().data;return e.jsxs("div",{className:"flex shrink-0 items-center gap-lg",children:[e.jsx(p,{src:j,alt:"",width:48,height:48,className:"size-12"}),e.jsxs("div",{className:"grow",children:[e.jsx("p",{className:"text-text-secondary-700 font-semibold leading-tight",children:s==null?void 0:s.name}),e.jsx("p",{className:"text-text-tertiary-600 leading-tight",children:(s==null?void 0:s.nickName)??(s==null?void 0:s.emailAddress)??(s==null?void 0:s.realName)})]}),e.jsxs(h.Root,{colorScheme:s!=null&&s.verified?"success":"danger",className:"self-start",children:[e.jsx(h.Indicator,{}),e.jsx(h.Label,{children:s!=null&&s.verified?"Verified":"Unverified"})]})]})}function O(){var f,I;const n=R.useLocaleInfo(),s=k.useWalletQuery({refetchInterval:1e3}),t=P.useGlobalStore(C.useShallow(u=>({profile:u.profile,mobileProfile:u.mobileProfile,depositWithdrawal:u.depositWithdrawal}))),o=v.parseDecimal((f=s.data)==null?void 0:f.balance,0),l=v.parseDecimal((I=s.data)==null?void 0:I.bonus,0),a=o+l;return e.jsxs("div",{className:"border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl",children:[e.jsx("div",{className:"text-text-secondary-700 text-sm",children:"Total Balance"}),e.jsx("div",{className:"text-3xl font-bold",children:x.formatNumber(a,{currency:n==null?void 0:n.currency.code,minDecimalPlaces:2})}),e.jsxs("div",{className:"mt-1.5 flex gap-7xl",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-secondary-700 text-2xs",children:"Deposit Balance"}),e.jsx("p",{className:"text-medium text-text-primary-brand",children:x.formatNumber(o,{currency:n==null?void 0:n.currency.code,minDecimalPlaces:2})})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-secondary-700 text-2xs",children:"Bonus Balance"}),e.jsx("p",{className:"text-medium text-text-primary-brand",children:x.formatNumber(l,{currency:n==null?void 0:n.currency.code,minDecimalPlaces:2})})]})]}),e.jsxs("div",{className:"mt-3 flex gap-lg",children:[e.jsx(N.Button,{size:"xs",variant:"outline",onClick:()=>{t.depositWithdrawal.setOpen(!0),t.depositWithdrawal.setTab("WITHDRAWAL"),t.profile.setOpen(!1),t.mobileProfile.setOpen(!1)},children:"Withdraw"}),e.jsx(N.Button,{size:"xs",onClick:()=>{t.depositWithdrawal.setOpen(!0),t.depositWithdrawal.setTab("DEPOSIT"),t.profile.setOpen(!1),t.mobileProfile.setOpen(!1)},children:"Deposit"})]})]})}exports.Account=M;
@@ -1,205 +1,328 @@
1
1
  "use client";
2
- import { jsxs as i, Fragment as y, jsx as e } from "react/jsx-runtime";
3
- import { Portal as p } from "@ark-ui/react";
4
- import N from "next/link";
5
- import { useShallow as d } from "zustand/shallow";
6
- import { useAccountQuery as w } from "../../client/hooks/useAccountQuery.mjs";
2
+ import { jsxs as a, jsx as e, Fragment as C } from "react/jsx-runtime";
3
+ import { Portal as I } from "@ark-ui/react";
4
+ import f from "next/image";
5
+ import d from "next/link";
6
+ import { useShallow as P } from "zustand/shallow";
7
+ import { useAccountQuery as k } from "../../client/hooks/useAccountQuery.mjs";
7
8
  import "@tanstack/react-query";
8
9
  import "../../utils/capitalize.mjs";
9
- import { formatNumber as O } from "../../utils/formatNumber.mjs";
10
+ import { formatNumber as p } from "../../utils/formatNumber.mjs";
10
11
  import "../../constants/index.mjs";
11
12
  import "../../utils/getLocaleInfo.mjs";
12
13
  import "../../utils/getQueryClient.mjs";
13
14
  import "../../utils/isMobile.mjs";
14
- import "../../utils/parseDecimal.mjs";
15
+ import { parseDecimal as b } from "../../utils/parseDecimal.mjs";
16
+ import "../../client/services/getSession.mjs";
15
17
  import "@opexa/portal-sdk-core";
16
18
  import "tiny-invariant";
17
19
  import "react";
18
20
  import "lodash-es";
19
21
  import "@opexa/portal-sdk-core/object-id";
20
- import { useGlobalStore as c } from "../../client/hooks/useGlobalStore.mjs";
22
+ import { useGlobalStore as w } from "../../client/hooks/useGlobalStore.mjs";
21
23
  import "../../client/hooks/useInfiniteQueryHelper.mjs";
22
- import { useLocaleInfo as P } from "../../client/hooks/useLocaleInfo.mjs";
24
+ import { useLocaleInfo as L } from "../../client/hooks/useLocaleInfo.mjs";
23
25
  import "usehooks-ts";
24
- import { useSignOutMutation as v } from "../../client/hooks/useSignOutMutation.mjs";
25
- import { useWalletQuery as k } from "../../client/hooks/useWalletQuery.mjs";
26
- import { ChevronRightIcon as f } from "../../icons/ChevronRightIcon.mjs";
27
- import { Logout01Icon as C } from "../../icons/Logout01Icon.mjs";
28
- import { User01Icon as a } from "../../icons/User01Icon.mjs";
26
+ import { useSignOutMutation as R } from "../../client/hooks/useSignOutMutation.mjs";
27
+ import { useUnreadMessagesCountQuery as B } from "../../client/hooks/useUnreadMessagesCountQuery.mjs";
28
+ import { useWalletQuery as S } from "../../client/hooks/useWalletQuery.mjs";
29
+ import { AlertCircleIcon as W } from "../../icons/AlertCircleIcon.mjs";
30
+ import { ChevronRightIcon as l } from "../../icons/ChevronRightIcon.mjs";
31
+ import { CoinsStacked02Icon as z } from "../../icons/CoinsStacked02Icon.mjs";
32
+ import { CoinsSwap02Icon as T } from "../../icons/CoinsSwap02Icon.mjs";
33
+ import { Gift01Icon as D } from "../../icons/Gift01Icon.mjs";
34
+ import { Logout01Icon as v } from "../../icons/Logout01Icon.mjs";
35
+ import { Settings02Icon as Q } from "../../icons/Settings02Icon.mjs";
36
+ import { XIcon as A } from "../../icons/XIcon.mjs";
37
+ import h from "../../images/placeholder-avatar.png.mjs";
29
38
  import "../../ui/AlertDialog/AlertDialog.mjs";
30
- import { Root as s, Fallback as m } from "../../ui/Avatar/Avatar.mjs";
31
- import "../../ui/Badge/Badge.mjs";
32
- import { Button as u } from "../../ui/Button/Button.mjs";
39
+ import "../../ui/Avatar/Avatar.mjs";
40
+ import { Root as M, Indicator as U, Label as $ } from "../../ui/Badge/Badge.mjs";
41
+ import { Button as g } from "../../ui/Button/Button.mjs";
33
42
  import "../../ui/Checkbox/Checkbox.mjs";
34
43
  import "../../ui/Clipboard/Clipboard.mjs";
44
+ import "../../ui/Collapsible/Collapsible.mjs";
45
+ import "../../ui/Combobox/Combobox.mjs";
35
46
  import "../../ui/DatePicker/DatePicker.mjs";
36
47
  import "../../ui/Dialog/Dialog.mjs";
37
- import { Root as W, Trigger as z, Backdrop as S, Positioner as T, Content as A } from "../../ui/Drawer/Drawer.mjs";
48
+ import { Root as E, Trigger as j, Positioner as G, Content as F } from "../../ui/Drawer/Drawer.mjs";
38
49
  import "../../ui/Field/Field.mjs";
39
- import "../../ui/IconButton/iconButton.recipe.mjs";
50
+ import { IconButton as x } from "../../ui/IconButton/IconButton.mjs";
40
51
  import "../../ui/NumberInput/NumberInput.mjs";
52
+ import "../../ui/PasswordInput/PasswordInput.mjs";
41
53
  import "../../ui/PinInput/PinInput.mjs";
42
- import { Root as R, Trigger as I, Positioner as L, Content as M } from "../../ui/Popover/Popover.mjs";
54
+ import { Root as H, Trigger as V, Positioner as X, Content as q } from "../../ui/Popover/Popover.mjs";
43
55
  import "tailwind-merge";
56
+ import "../../ui/Progress/Progress.mjs";
44
57
  import "../../ui/SegmentGroup/SegmentGroup.mjs";
45
58
  import "../../ui/Select/Select.mjs";
46
59
  import "../../ui/Table/Table.mjs";
47
60
  import "../../ui/Tabs/Tabs.mjs";
48
- function ze(t) {
49
- const l = c(
50
- d((r) => ({
51
- profile: r.profile,
52
- mobileProfile: r.mobileProfile
61
+ import { accountRecipe as J } from "./account.recipe.mjs";
62
+ const r = J();
63
+ function rt(i) {
64
+ const t = w(
65
+ P((n) => ({
66
+ profile: n.profile,
67
+ mobileProfile: n.mobileProfile,
68
+ messages: n.messages
53
69
  }))
54
- );
55
- return /* @__PURE__ */ i(y, { children: [
56
- /* @__PURE__ */ i(
57
- W,
70
+ ), o = R(), m = B(
71
+ {},
72
+ { refetchInterval: 5e3 }
73
+ ), s = /* @__PURE__ */ a("nav", { className: r.nav(), children: [
74
+ /* @__PURE__ */ a("ul", { children: [
75
+ /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
76
+ "button",
77
+ {
78
+ type: "button",
79
+ className: r.navItemLink(),
80
+ onClick: () => {
81
+ t.profile.setOpen(!1), t.mobileProfile.setOpen(!1), t.messages.setOpen(!0);
82
+ },
83
+ children: [
84
+ /* @__PURE__ */ e(v, { className: r.navItemIcon() }),
85
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Notifications" }),
86
+ /* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "warning", children: m.data ?? 0 }),
87
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
88
+ ]
89
+ }
90
+ ) }),
91
+ /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
92
+ d,
93
+ {
94
+ href: i.rewardsUrl ?? "/rewards",
95
+ className: r.navItemLink(),
96
+ onClick: () => {
97
+ t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
98
+ },
99
+ children: [
100
+ /* @__PURE__ */ e(D, { className: r.navItemIcon() }),
101
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Rewards" }),
102
+ /* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "warning", children: "0" }),
103
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
104
+ ]
105
+ }
106
+ ) })
107
+ ] }),
108
+ /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
109
+ "button",
58
110
  {
59
- open: l.profile.open,
60
- onOpenChange: (r) => {
61
- l.profile.setOpen(r.open);
111
+ type: "button",
112
+ className: r.navItemLink(),
113
+ onClick: () => {
114
+ t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
115
+ },
116
+ children: [
117
+ /* @__PURE__ */ e(Q, { className: r.navItemIcon() }),
118
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Settings" }),
119
+ /* @__PURE__ */ e("span", { className: r.navItemBadge(), "data-type": "error", children: /* @__PURE__ */ e(W, {}) }),
120
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
121
+ ]
122
+ }
123
+ ) }) }),
124
+ /* @__PURE__ */ a("ul", { children: [
125
+ /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
126
+ d,
127
+ {
128
+ href: i.betRecordsUrl ?? "/bet-records",
129
+ className: r.navItemLink(),
130
+ onClick: () => {
131
+ t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
132
+ },
133
+ children: [
134
+ /* @__PURE__ */ e(z, { className: r.navItemIcon() }),
135
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Bet Records" }),
136
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
137
+ ]
138
+ }
139
+ ) }),
140
+ /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
141
+ d,
142
+ {
143
+ href: i.transactionsUrl ?? "/transactions",
144
+ className: r.navItemLink(),
145
+ onClick: () => {
146
+ t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
147
+ },
148
+ children: [
149
+ /* @__PURE__ */ e(T, { className: r.navItemIcon() }),
150
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Transactions" }),
151
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
152
+ ]
153
+ }
154
+ ) })
155
+ ] }),
156
+ /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: r.navItemRoot(), children: /* @__PURE__ */ a(
157
+ "button",
158
+ {
159
+ type: "button",
160
+ className: r.navItemLink(),
161
+ disabled: o.isPending,
162
+ onClick: () => {
163
+ o.mutate(), t.profile.setOpen(!1), t.mobileProfile.setOpen(!1);
164
+ },
165
+ children: [
166
+ /* @__PURE__ */ e(v, { className: r.navItemIcon() }),
167
+ /* @__PURE__ */ e("span", { className: r.navItemLabel(), children: "Log Out" }),
168
+ /* @__PURE__ */ e(l, { className: r.navItemIndicator() })
169
+ ]
170
+ }
171
+ ) }) })
172
+ ] });
173
+ return /* @__PURE__ */ a(C, { children: [
174
+ /* @__PURE__ */ a(
175
+ E,
176
+ {
177
+ open: t.mobileProfile.open,
178
+ onOpenChange: (n) => {
179
+ t.mobileProfile.setOpen(n.open);
62
180
  },
63
181
  lazyMount: !0,
64
182
  unmountOnExit: !0,
65
183
  children: [
66
- /* @__PURE__ */ e(z, { asChild: !0, className: "lg:hidden", children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
67
- /* @__PURE__ */ i(p, { children: [
68
- /* @__PURE__ */ e(S, {}),
69
- /* @__PURE__ */ e(T, { children: /* @__PURE__ */ i(A, { className: "bg-gray-50 flex w-[316px] flex-col px-xl py-6", children: [
70
- /* @__PURE__ */ e(b, {}),
71
- /* @__PURE__ */ e(x, {}),
72
- /* @__PURE__ */ e(g, { links: t.links ?? [] }),
73
- /* @__PURE__ */ e("div", { className: "grow" }),
74
- /* @__PURE__ */ e(h, {})
75
- ] }) })
76
- ] })
184
+ /* @__PURE__ */ e(j, { asChild: !0, className: "lg:hidden", children: i.children ?? /* @__PURE__ */ e(x, { size: "sm", colorScheme: "gray", children: t.mobileProfile.open ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ e(
185
+ f,
186
+ {
187
+ src: h,
188
+ alt: "",
189
+ width: 100,
190
+ height: 100,
191
+ className: "size-10"
192
+ }
193
+ ) }) }),
194
+ /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(G, { children: /* @__PURE__ */ a(
195
+ F,
196
+ {
197
+ className: "top-[var(--top,0px)] flex h-[calc(100%-var(--top,0px))] w-full flex-col px-xl py-6",
198
+ style: {
199
+ "--top": i.offsetTop ?? "0px"
200
+ },
201
+ children: [
202
+ /* @__PURE__ */ e(y, {}),
203
+ /* @__PURE__ */ e(O, {}),
204
+ s
205
+ ]
206
+ }
207
+ ) }) })
77
208
  ]
78
209
  }
79
210
  ),
80
- /* @__PURE__ */ i(
81
- R,
211
+ /* @__PURE__ */ a(
212
+ H,
82
213
  {
83
- open: l.mobileProfile.open,
84
- onOpenChange: (r) => {
85
- l.mobileProfile.setOpen(r.open);
214
+ open: t.profile.open,
215
+ onOpenChange: (n) => {
216
+ t.profile.setOpen(n.open);
86
217
  },
87
218
  lazyMount: !0,
88
219
  unmountOnExit: !0,
89
220
  positioning: {
90
- placement: "bottom"
221
+ placement: "bottom",
222
+ strategy: "fixed"
91
223
  },
92
224
  children: [
93
- /* @__PURE__ */ e(I, { className: "hidden lg:flex", asChild: !0, children: t.children ?? /* @__PURE__ */ e("button", { type: "button", children: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }) }) }),
94
- /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ i(M, { className: "border-gray-200 z-popover w-[316px] rounded-xl border bg-white p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
95
- /* @__PURE__ */ e(b, {}),
96
- /* @__PURE__ */ e(x, {}),
97
- /* @__PURE__ */ e(g, { links: t.links ?? [] }),
98
- /* @__PURE__ */ e(h, {})
225
+ /* @__PURE__ */ e(V, { className: "hidden lg:flex", asChild: !0, children: i.children ?? /* @__PURE__ */ e(x, { size: "sm", colorScheme: "gray", children: /* @__PURE__ */ e(
226
+ f,
227
+ {
228
+ src: h,
229
+ alt: "",
230
+ width: 48,
231
+ height: 48,
232
+ className: "size-10"
233
+ }
234
+ ) }) }),
235
+ /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ a(q, { className: "border-border-primary bg-bg-primary z-popover w-[23.438rem] rounded-xl border p-xl ui-open:animate-fade-in ui-closed:animate-fade-out", children: [
236
+ /* @__PURE__ */ e(y, {}),
237
+ /* @__PURE__ */ e(O, {}),
238
+ s
99
239
  ] }) }) })
100
240
  ]
101
241
  }
102
242
  )
103
243
  ] });
104
244
  }
105
- function h() {
106
- return /* @__PURE__ */ e("div", { className: "text-gray-400 mt-xl text-center text-2xs", children: "© 2025 HappyBingo All rights reserved" });
107
- }
108
- function b() {
109
- var l, r, o, n;
110
- const t = w();
111
- return /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
112
- /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, {}) }) }),
113
- /* @__PURE__ */ i("div", { children: [
114
- /* @__PURE__ */ e("p", { className: "text-sm font-semibold", children: (l = t.data) == null ? void 0 : l.name }),
115
- /* @__PURE__ */ e("p", { className: "text-gray-400 text-xs", children: ((r = t.data) == null ? void 0 : r.nickName) ?? ((o = t.data) == null ? void 0 : o.emailAddress) ?? ((n = t.data) == null ? void 0 : n.realName) })
116
- ] })
117
- ] });
118
- }
119
- function g(t) {
120
- const l = v(), r = c(
121
- d((o) => ({
122
- profile: o.profile,
123
- mobileProfile: o.mobileProfile
124
- }))
125
- );
126
- return /* @__PURE__ */ i("nav", { className: "mt-xl space-y-xl", children: [
127
- /* @__PURE__ */ e("ul", { children: t.links.map((o, n) => /* @__PURE__ */ e(
128
- "li",
245
+ function y() {
246
+ const t = k().data;
247
+ return /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-lg", children: [
248
+ /* @__PURE__ */ e(
249
+ f,
129
250
  {
130
- className: "border-gray-200 block border-x border-b bg-white first:rounded-t-xl first:border-t last:rounded-b-xl",
131
- children: /* @__PURE__ */ i(
132
- N,
133
- {
134
- href: o.href,
135
- onClick: () => {
136
- r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
137
- },
138
- className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
139
- children: [
140
- /* @__PURE__ */ e(o.icon, { className: "size-5" }),
141
- /* @__PURE__ */ e("span", { className: "grow", children: o.label }),
142
- /* @__PURE__ */ e(f, { className: "text-gray-400 size-5" })
143
- ]
144
- }
145
- )
146
- },
147
- o.href + n
148
- )) }),
149
- /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { className: "border-gray-200 block rounded-xl border bg-white", children: /* @__PURE__ */ i(
150
- "button",
251
+ src: h,
252
+ alt: "",
253
+ width: 48,
254
+ height: 48,
255
+ className: "size-12"
256
+ }
257
+ ),
258
+ /* @__PURE__ */ a("div", { className: "grow", children: [
259
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 font-semibold leading-tight", children: t == null ? void 0 : t.name }),
260
+ /* @__PURE__ */ e("p", { className: "text-text-tertiary-600 leading-tight", children: (t == null ? void 0 : t.nickName) ?? (t == null ? void 0 : t.emailAddress) ?? (t == null ? void 0 : t.realName) })
261
+ ] }),
262
+ /* @__PURE__ */ a(
263
+ M,
151
264
  {
152
- type: "button",
153
- className: "flex w-full items-center gap-lg px-xl py-xl text-left text-sm font-semibold",
154
- disabled: l.isPending,
155
- onClick: () => {
156
- l.mutate(), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
157
- },
265
+ colorScheme: t != null && t.verified ? "success" : "danger",
266
+ className: "self-start",
158
267
  children: [
159
- /* @__PURE__ */ e(C, { className: "size-5" }),
160
- /* @__PURE__ */ e("span", { className: "grow", children: "Log Out" }),
161
- /* @__PURE__ */ e(f, { className: "text-gray-400 size-5" })
268
+ /* @__PURE__ */ e(U, {}),
269
+ /* @__PURE__ */ e($, { children: t != null && t.verified ? "Verified" : "Unverified" })
162
270
  ]
163
271
  }
164
- ) }) })
272
+ )
165
273
  ] });
166
274
  }
167
- function x() {
168
- var o;
169
- const t = P(), l = k({
275
+ function O() {
276
+ var u, N;
277
+ const i = L(), t = S({
170
278
  refetchInterval: 1e3
171
- }), r = c(
172
- d((n) => ({
173
- profile: n.profile,
174
- mobileProfile: n.mobileProfile,
175
- depositWithdrawal: n.depositWithdrawal
279
+ }), o = w(
280
+ P((c) => ({
281
+ profile: c.profile,
282
+ mobileProfile: c.mobileProfile,
283
+ depositWithdrawal: c.depositWithdrawal
176
284
  }))
177
- );
178
- return /* @__PURE__ */ i("div", { className: "border-gray-200 mt-3 rounded-lg border bg-white p-xl", children: [
179
- /* @__PURE__ */ e("div", { className: "border-gray-200 bg-gray-50 text-gray-600 w-fit rounded-sm border px-1.5 py-0.5 text-xs font-medium", children: "Available Balance" }),
180
- /* @__PURE__ */ e("div", { className: "mt-2 text-3xl font-semibold", children: O((o = l.data) == null ? void 0 : o.balance, {
181
- currency: t == null ? void 0 : t.currency.code,
285
+ ), m = b((u = t.data) == null ? void 0 : u.balance, 0), s = b((N = t.data) == null ? void 0 : N.bonus, 0), n = m + s;
286
+ return /* @__PURE__ */ a("div", { className: "border-border-primary bg-bg-tertiary mt-3 rounded-xl border p-xl", children: [
287
+ /* @__PURE__ */ e("div", { className: "text-text-secondary-700 text-sm", children: "Total Balance" }),
288
+ /* @__PURE__ */ e("div", { className: "text-3xl font-bold", children: p(n, {
289
+ currency: i == null ? void 0 : i.currency.code,
182
290
  minDecimalPlaces: 2
183
291
  }) }),
184
- /* @__PURE__ */ i("div", { className: "mt-3 flex gap-lg", children: [
292
+ /* @__PURE__ */ a("div", { className: "mt-1.5 flex gap-7xl", children: [
293
+ /* @__PURE__ */ a("div", { children: [
294
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Deposit Balance" }),
295
+ /* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: p(m, {
296
+ currency: i == null ? void 0 : i.currency.code,
297
+ minDecimalPlaces: 2
298
+ }) })
299
+ ] }),
300
+ /* @__PURE__ */ a("div", { children: [
301
+ /* @__PURE__ */ e("p", { className: "text-text-secondary-700 text-2xs", children: "Bonus Balance" }),
302
+ /* @__PURE__ */ e("p", { className: "text-medium text-text-primary-brand", children: p(s, {
303
+ currency: i == null ? void 0 : i.currency.code,
304
+ minDecimalPlaces: 2
305
+ }) })
306
+ ] })
307
+ ] }),
308
+ /* @__PURE__ */ a("div", { className: "mt-3 flex gap-lg", children: [
185
309
  /* @__PURE__ */ e(
186
- u,
310
+ g,
187
311
  {
188
312
  size: "xs",
189
313
  variant: "outline",
190
- colorScheme: "gray",
191
314
  onClick: () => {
192
- r.depositWithdrawal.setOpen(!0), r.depositWithdrawal.setTab("WITHDRAWAL"), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
315
+ o.depositWithdrawal.setOpen(!0), o.depositWithdrawal.setTab("WITHDRAWAL"), o.profile.setOpen(!1), o.mobileProfile.setOpen(!1);
193
316
  },
194
317
  children: "Withdraw"
195
318
  }
196
319
  ),
197
320
  /* @__PURE__ */ e(
198
- u,
321
+ g,
199
322
  {
200
323
  size: "xs",
201
324
  onClick: () => {
202
- r.depositWithdrawal.setOpen(!0), r.depositWithdrawal.setTab("DEPOSIT"), r.profile.setOpen(!1), r.mobileProfile.setOpen(!1);
325
+ o.depositWithdrawal.setOpen(!0), o.depositWithdrawal.setTab("DEPOSIT"), o.profile.setOpen(!1), o.mobileProfile.setOpen(!1);
203
326
  },
204
327
  children: "Deposit"
205
328
  }
@@ -208,5 +331,5 @@ function x() {
208
331
  ] });
209
332
  }
210
333
  export {
211
- ze as Account
334
+ rt as Account
212
335
  };
@@ -0,0 +1,61 @@
1
+ export declare const accountRecipe: import('tailwind-variants').TVReturnType<{
2
+ [key: string]: {
3
+ [key: string]: import('tailwind-variants').ClassValue | {
4
+ nav?: import('tailwind-variants').ClassValue;
5
+ navItemRoot?: import('tailwind-variants').ClassValue;
6
+ navItemLink?: import('tailwind-variants').ClassValue;
7
+ navItemIcon?: import('tailwind-variants').ClassValue;
8
+ navItemLabel?: import('tailwind-variants').ClassValue;
9
+ navItemIndicator?: import('tailwind-variants').ClassValue;
10
+ navItemBadge?: import('tailwind-variants').ClassValue;
11
+ };
12
+ };
13
+ } | {
14
+ [x: string]: {
15
+ [x: string]: import('tailwind-variants').ClassValue | {
16
+ nav?: import('tailwind-variants').ClassValue;
17
+ navItemRoot?: import('tailwind-variants').ClassValue;
18
+ navItemLink?: import('tailwind-variants').ClassValue;
19
+ navItemIcon?: import('tailwind-variants').ClassValue;
20
+ navItemLabel?: import('tailwind-variants').ClassValue;
21
+ navItemIndicator?: import('tailwind-variants').ClassValue;
22
+ navItemBadge?: import('tailwind-variants').ClassValue;
23
+ };
24
+ };
25
+ } | {}, {
26
+ nav: string;
27
+ navItemRoot: string;
28
+ navItemLink: string;
29
+ navItemIcon: string;
30
+ navItemLabel: string;
31
+ navItemIndicator: string;
32
+ navItemBadge: string[];
33
+ }, undefined, {
34
+ [key: string]: {
35
+ [key: string]: import('tailwind-variants').ClassValue | {
36
+ nav?: import('tailwind-variants').ClassValue;
37
+ navItemRoot?: import('tailwind-variants').ClassValue;
38
+ navItemLink?: import('tailwind-variants').ClassValue;
39
+ navItemIcon?: import('tailwind-variants').ClassValue;
40
+ navItemLabel?: import('tailwind-variants').ClassValue;
41
+ navItemIndicator?: import('tailwind-variants').ClassValue;
42
+ navItemBadge?: import('tailwind-variants').ClassValue;
43
+ };
44
+ };
45
+ } | {}, {
46
+ nav: string;
47
+ navItemRoot: string;
48
+ navItemLink: string;
49
+ navItemIcon: string;
50
+ navItemLabel: string;
51
+ navItemIndicator: string;
52
+ navItemBadge: string[];
53
+ }, import('tailwind-variants').TVReturnType<unknown, {
54
+ nav: string;
55
+ navItemRoot: string;
56
+ navItemLink: string;
57
+ navItemIcon: string;
58
+ navItemLabel: string;
59
+ navItemIndicator: string;
60
+ navItemBadge: string[];
61
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("tailwind-variants"),e=t.tv({slots:{nav:"mt-xl space-y-xl",navItemRoot:"bg-bg-primary-alt block first:rounded-t-xl last:rounded-b-xl",navItemLink:"flex w-full items-center px-xl py-xl text-left text-sm font-semibold",navItemIcon:"text-text-quarterary-500 size-5",navItemLabel:"ml-lg grow",navItemIndicator:"text-gray-400 text-text-quarterary-500 size-5",navItemBadge:["mr-md","flex","items-center","justify-center","border","rounded-full","h-5.5","ui-type-[warning]:min-w-6","ui-type-[warning]:text-xs","ui-type-[warning]:font-medium","ui-type-[warning]:leading-tight","ui-type-[warning]:border-utility-brand-200","ui-type-[warning]:bg-utility-brand-50","ui-type-[warning]:text-utility-brand-700","ui-type-[error]:w-5.5","ui-type-[error]:icon:size-3","ui-type-[error]:border-utility-warning-200","ui-type-[error]:bg-utility-warning-50","ui-type-[error]:text-utility-warning-500"]}});exports.accountRecipe=e;