@opexa/portal-components 0.0.29 → 0.0.31

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 (622) hide show
  1. package/dist/client/hooks/useAccountQuery.d.ts +1 -1
  2. package/dist/client/hooks/useAuthenticateMutation.d.ts +1 -1
  3. package/dist/client/hooks/useAvailablePromosQuery.d.ts +1 -1
  4. package/dist/client/hooks/useBetRecordsQuery.d.ts +1 -1
  5. package/dist/client/hooks/useBonusesQuery.d.ts +1 -1
  6. package/dist/client/hooks/useCashbacksQuery.d.ts +1 -1
  7. package/dist/client/hooks/useCreateGCashDepositMutation.d.ts +1 -1
  8. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +1 -1
  9. package/dist/client/hooks/useCreateGameSessionMutation.d.ts +1 -1
  10. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +1 -1
  11. package/dist/client/hooks/useCreateMayaAppDepositMutation.d.ts +1 -1
  12. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +1 -1
  13. package/dist/client/hooks/useCreateMayaDepositMutation.d.ts +1 -1
  14. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +1 -1
  15. package/dist/client/hooks/useCreateOnlineBankDepositMutation.d.ts +1 -1
  16. package/dist/client/hooks/useCreateQRPHDepositMutation.d.ts +1 -1
  17. package/dist/client/hooks/useDepositQuery.d.ts +1 -1
  18. package/dist/client/hooks/useDepositRecordsQuery.d.ts +1 -1
  19. package/dist/client/hooks/useDepositsCountQuery.d.ts +1 -1
  20. package/dist/client/hooks/useEndGameSessionMutation.d.ts +1 -1
  21. package/dist/client/hooks/useFavoriteGamesQuery.d.ts +1 -1
  22. package/dist/client/hooks/useGamesQuery.d.ts +1 -1
  23. package/dist/client/hooks/useInfiniteQueryHelper.d.ts +1 -1
  24. package/dist/client/hooks/useInstapayBankListQuery.d.ts +1 -1
  25. package/dist/client/hooks/useIsMayaSessionValidQuery.d.ts +1 -1
  26. package/dist/client/hooks/useJackpotPayoutsQuery.d.ts +1 -1
  27. package/dist/client/hooks/useJackpotsQuery.d.ts +1 -1
  28. package/dist/client/hooks/useLocaleInfo.d.ts +1 -1
  29. package/dist/client/hooks/useMarkGameAsFavoriteMutation.d.ts +1 -1
  30. package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +1 -1
  31. package/dist/client/hooks/useMemberVerificationQuery.d.ts +1 -1
  32. package/dist/client/hooks/useMessagesQuery.d.ts +1 -1
  33. package/dist/client/hooks/usePaymentSettingsQuery.d.ts +1 -1
  34. package/dist/client/hooks/usePlatformQuery.d.ts +1 -1
  35. package/dist/client/hooks/useProfileCompletionQuery.d.ts +1 -1
  36. package/dist/client/hooks/usePromoQuery.d.ts +1 -1
  37. package/dist/client/hooks/usePromosQuery.d.ts +1 -1
  38. package/dist/client/hooks/useSendVerificationCodeMutation.d.ts +1 -1
  39. package/dist/client/hooks/useSessionQuery.d.ts +1 -1
  40. package/dist/client/hooks/useSignInMutation.d.ts +1 -1
  41. package/dist/client/hooks/useSignOutMutation.d.ts +1 -1
  42. package/dist/client/hooks/useSignUpMutation.d.ts +1 -1
  43. package/dist/client/hooks/useTopWinsQuery.d.ts +1 -1
  44. package/dist/client/hooks/useTournamentsQuery.d.ts +1 -1
  45. package/dist/client/hooks/useTransactionRecordsQuery.d.ts +1 -1
  46. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.d.ts +1 -1
  47. package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +1 -1
  48. package/dist/client/hooks/useWalletQuery.d.ts +1 -1
  49. package/dist/client/hooks/useWithdrawalRecordsQuery.d.ts +1 -1
  50. package/dist/client/services/getSession.d.ts +1 -1
  51. package/dist/client/utils/{createRecipeContext.jsx → createRecipeContext.js} +4 -7
  52. package/dist/client/utils/index.js +1 -1
  53. package/dist/components/Account/Account.d.ts +1 -1
  54. package/dist/components/Account/Account.js +127 -0
  55. package/dist/components/Account/index.js +1 -1
  56. package/dist/components/AccountInfo/AccountInfo.d.ts +1 -1
  57. package/dist/components/AccountInfo/AccountInfo.js +18 -0
  58. package/dist/components/AccountInfo/index.js +1 -1
  59. package/dist/components/AccountPaymentMethods/index.js +1 -1
  60. package/dist/components/AccountSecurity/AccountSecurity.d.ts +1 -1
  61. package/dist/components/AccountSecurity/AccountSecurity.js +47 -0
  62. package/dist/components/AccountSecurity/index.js +1 -1
  63. package/dist/components/AccountVerification/index.js +1 -1
  64. package/dist/components/Banner/Banner.d.ts +1 -1
  65. package/dist/components/Banner/Banner.js +38 -0
  66. package/dist/components/Banner/index.js +1 -1
  67. package/dist/components/BetRecords/BetRecords.d.ts +1 -1
  68. package/dist/components/BetRecords/BetRecords.js +192 -0
  69. package/dist/components/BetRecords/index.js +1 -1
  70. package/dist/components/Bonus/Bonus.client.d.ts +1 -1
  71. package/dist/components/Bonus/Bonus.client.js +9 -0
  72. package/dist/components/Bonus/Bonus.d.ts +1 -1
  73. package/dist/components/Bonus/Bonus.js +5 -0
  74. package/dist/components/Bonus/index.js +1 -1
  75. package/dist/components/Bonuses/Bonuses.d.ts +1 -1
  76. package/dist/components/Bonuses/Bonuses.js +15 -0
  77. package/dist/components/Bonuses/index.js +1 -1
  78. package/dist/components/DepositWithdrawal/AmountChoices.d.ts +1 -1
  79. package/dist/components/DepositWithdrawal/{AmountChoices.jsx → AmountChoices.js} +4 -7
  80. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.d.ts +1 -1
  81. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +26 -0
  82. package/dist/components/DepositWithdrawal/Deposit/Deposit.d.ts +1 -1
  83. package/dist/components/DepositWithdrawal/Deposit/{Deposit.jsx → Deposit.js} +10 -20
  84. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.d.ts +1 -1
  85. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/{GCashDeposit.jsx → GCashDeposit.js} +32 -104
  86. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.d.ts +1 -1
  87. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/{MayaAppDeposit.jsx → MayaAppDeposit.js} +34 -106
  88. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.d.ts +1 -1
  89. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/{MayaDeposit.jsx → MayaDeposit.js} +32 -104
  90. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.d.ts +1 -1
  91. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.js +11 -0
  92. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.d.ts +1 -1
  93. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +129 -0
  94. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.d.ts +1 -1
  95. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.js +5 -0
  96. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.d.ts +1 -1
  97. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.js +5 -0
  98. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.d.ts +1 -1
  99. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +14 -0
  100. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.d.ts +1 -1
  101. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.js +11 -0
  102. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.d.ts +1 -1
  103. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +128 -0
  104. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.d.ts +1 -1
  105. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.js +5 -0
  106. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.d.ts +1 -1
  107. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +18 -0
  108. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.d.ts +1 -1
  109. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +8 -0
  110. package/dist/components/DepositWithdrawal/DepositWithdrawal.d.ts +1 -1
  111. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +39 -0
  112. package/dist/components/DepositWithdrawal/DepositWithdrawalTrigger.d.ts +1 -1
  113. package/dist/components/DepositWithdrawal/{DepositWithdrawalTrigger.jsx → DepositWithdrawalTrigger.js} +3 -2
  114. package/dist/components/DepositWithdrawal/MayaSessionExpired.d.ts +1 -1
  115. package/dist/components/DepositWithdrawal/MayaSessionExpired.js +5 -0
  116. package/dist/components/DepositWithdrawal/PaymentMethods.d.ts +1 -1
  117. package/dist/components/DepositWithdrawal/{PaymentMethods.jsx → PaymentMethods.js} +7 -23
  118. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.d.ts +1 -1
  119. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/{GCashWithdrawal.jsx → GCashWithdrawal.js} +14 -78
  120. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.d.ts +1 -1
  121. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +128 -0
  122. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts +1 -1
  123. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/{MayaAppWithdrawal.jsx → MayaAppWithdrawal.js} +16 -69
  124. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.d.ts +1 -1
  125. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/{MayaWithdrawal.jsx → MayaWithdrawal.js} +14 -78
  126. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -1
  127. package/dist/components/DepositWithdrawal/Withdrawal/{Withdrawal.jsx → Withdrawal.js} +14 -37
  128. package/dist/components/DepositWithdrawal/index.js +1 -1
  129. package/dist/components/Disclaimer/Disclaimer.d.ts +1 -1
  130. package/dist/components/Disclaimer/Disclaimer.js +14 -0
  131. package/dist/components/Disclaimer/index.js +1 -1
  132. package/dist/components/Empty.d.ts +1 -1
  133. package/dist/components/Empty.js +7 -0
  134. package/dist/components/FavoriteGames/FavoriteGames.client.d.ts +1 -1
  135. package/dist/components/FavoriteGames/FavoriteGames.client.js +31 -0
  136. package/dist/components/FavoriteGames/FavoriteGames.d.ts +1 -1
  137. package/dist/components/FavoriteGames/FavoriteGames.js +7 -0
  138. package/dist/components/FavoriteGames/index.js +1 -1
  139. package/dist/components/GameLaunch/GameLaunch.d.ts +1 -1
  140. package/dist/components/GameLaunch/GameLaunch.js +99 -0
  141. package/dist/components/GameLaunch/GameLaunchTrigger.d.ts +1 -1
  142. package/dist/components/GameLaunch/{GameLaunchTrigger.jsx → GameLaunchTrigger.js} +4 -3
  143. package/dist/components/GameLaunch/index.js +2 -2
  144. package/dist/components/GameProviders/GameProviders.d.ts +2 -2
  145. package/dist/components/GameProviders/GameProviders.js +32 -0
  146. package/dist/components/GameProviders/index.js +1 -1
  147. package/dist/components/Games/Games.client.d.ts +1 -1
  148. package/dist/components/Games/Games.client.js +84 -0
  149. package/dist/components/Games/Games.d.ts +1 -1
  150. package/dist/components/Games/{Games.jsx → Games.js} +3 -2
  151. package/dist/components/Games/index.js +1 -1
  152. package/dist/components/GamesSearch/GamesSearch.d.ts +1 -1
  153. package/dist/components/GamesSearch/GamesSearch.js +38 -0
  154. package/dist/components/GamesSearch/GamesSearchTrigger.d.ts +1 -1
  155. package/dist/components/GamesSearch/{GamesSearchTrigger.jsx → GamesSearchTrigger.js} +3 -2
  156. package/dist/components/GamesSearch/index.js +2 -2
  157. package/dist/components/InfiniteScroll.d.ts +1 -1
  158. package/dist/components/{InfiniteScroll.jsx → InfiniteScroll.js} +2 -7
  159. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +1 -1
  160. package/dist/components/JackpotCounter/{JackpotCounter.client.jsx → JackpotCounter.client.js} +3 -30
  161. package/dist/components/JackpotCounter/JackpotCounter.d.ts +1 -1
  162. package/dist/components/JackpotCounter/{JackpotCounter.jsx → JackpotCounter.js} +3 -2
  163. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +1 -1
  164. package/dist/components/JackpotCounter/JackpotCounterItem.js +114 -0
  165. package/dist/components/JackpotCounter/index.js +1 -1
  166. package/dist/components/Jackpots/JackpotGameProviders.d.ts +2 -2
  167. package/dist/components/Jackpots/JackpotGameProviders.js +38 -0
  168. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +2 -2
  169. package/dist/components/Jackpots/JackpotItemDesktop.js +44 -0
  170. package/dist/components/Jackpots/JackpotItemMobile.d.ts +2 -2
  171. package/dist/components/Jackpots/JackpotItemMobile.js +48 -0
  172. package/dist/components/Jackpots/JackpotRules.d.ts +1 -1
  173. package/dist/components/Jackpots/JackpotRules.js +9 -0
  174. package/dist/components/Jackpots/Jackpots.d.ts +2 -2
  175. package/dist/components/Jackpots/Jackpots.js +26 -0
  176. package/dist/components/Jackpots/index.js +1 -1
  177. package/dist/components/Jackpots/useJackpotItemData.d.ts +2 -2
  178. package/dist/components/Jackpots/{useJackpotItemData.jsx → useJackpotItemData.js} +5 -4
  179. package/dist/components/KYC/KYC.d.ts +1 -1
  180. package/dist/components/KYC/KYC.js +19 -0
  181. package/dist/components/KYC/KYCTrigger.d.ts +1 -1
  182. package/dist/components/KYC/{KYCTrigger.jsx → KYCTrigger.js} +3 -2
  183. package/dist/components/KYC/Step1.d.ts +1 -1
  184. package/dist/components/KYC/Step1.js +10 -0
  185. package/dist/components/KYC/Step2.d.ts +1 -1
  186. package/dist/components/KYC/Step2.js +15 -0
  187. package/dist/components/KYC/Step3.d.ts +1 -1
  188. package/dist/components/KYC/Step3.js +11 -0
  189. package/dist/components/KYC/StepIndicator.d.ts +1 -1
  190. package/dist/components/KYC/StepIndicator.js +13 -0
  191. package/dist/components/KYC/UploadDocument.d.ts +1 -1
  192. package/dist/components/KYC/UploadDocument.js +8 -0
  193. package/dist/components/KYC/UploadSelfie.d.ts +1 -1
  194. package/dist/components/KYC/UploadSelfie.js +8 -0
  195. package/dist/components/KYC/index.js +2 -2
  196. package/dist/components/Marquee/Marquee.d.ts +1 -1
  197. package/dist/components/Marquee/Marquee.js +5 -0
  198. package/dist/components/Marquee/index.js +1 -1
  199. package/dist/components/Messages/MessageItem.d.ts +1 -1
  200. package/dist/components/Messages/MessageItem.js +28 -0
  201. package/dist/components/Messages/MessagePopup.d.ts +1 -1
  202. package/dist/components/Messages/MessagePopup.js +18 -0
  203. package/dist/components/Messages/Messages.d.ts +1 -1
  204. package/dist/components/Messages/Messages.js +31 -0
  205. package/dist/components/Messages/MessagesTrigger.d.ts +1 -1
  206. package/dist/components/Messages/{MessagesTrigger.jsx → MessagesTrigger.js} +3 -2
  207. package/dist/components/Messages/index.js +2 -2
  208. package/dist/components/Messages/utils.d.ts +1 -1
  209. package/dist/components/PortalProvider/PortalProvider.client.d.ts +1 -1
  210. package/dist/components/PortalProvider/PortalProvider.client.js +26 -0
  211. package/dist/components/PortalProvider/PortalProvider.d.ts +1 -1
  212. package/dist/components/PortalProvider/{PortalProvider.jsx → PortalProvider.js} +3 -6
  213. package/dist/components/PortalProvider/index.js +1 -1
  214. package/dist/components/Promo/Promo.d.ts +1 -1
  215. package/dist/components/Promo/Promo.js +8 -0
  216. package/dist/components/Promo/PromoContent.d.ts +1 -1
  217. package/dist/components/Promo/PromoContent.js +9 -0
  218. package/dist/components/Promo/index.js +1 -1
  219. package/dist/components/Promos/PromoCarousel.d.ts +1 -1
  220. package/dist/components/Promos/PromoCarousel.js +41 -0
  221. package/dist/components/Promos/PromoGrid.d.ts +1 -1
  222. package/dist/components/Promos/PromoGrid.js +12 -0
  223. package/dist/components/Promos/PromoItem.d.ts +1 -1
  224. package/dist/components/Promos/PromoItem.js +10 -0
  225. package/dist/components/Promos/Promos.d.ts +1 -1
  226. package/dist/components/Promos/Promos.js +11 -0
  227. package/dist/components/Promos/index.js +1 -1
  228. package/dist/components/Protected/index.js +1 -1
  229. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -1
  230. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +58 -0
  231. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +1 -1
  232. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +8 -0
  233. package/dist/components/Quests/Quests.d.ts +1 -1
  234. package/dist/components/Quests/Quests.js +6 -0
  235. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -1
  236. package/dist/components/Quests/WageringQuest/WageringQuest.js +16 -0
  237. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +1 -1
  238. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +8 -0
  239. package/dist/components/Quests/index.js +1 -1
  240. package/dist/components/SignIn/SignIn.d.ts +1 -1
  241. package/dist/components/SignIn/SignIn.js +15 -0
  242. package/dist/components/SignIn/SignInForm.d.ts +1 -1
  243. package/dist/components/SignIn/SignInForm.js +118 -0
  244. package/dist/components/SignIn/SignInTrigger.d.ts +1 -1
  245. package/dist/components/SignIn/{SignInTrigger.jsx → SignInTrigger.js} +3 -2
  246. package/dist/components/SignIn/index.js +2 -2
  247. package/dist/components/SignUp/SignUp.d.ts +1 -1
  248. package/dist/components/SignUp/SignUp.js +16 -0
  249. package/dist/components/SignUp/SignUpForm.d.ts +1 -1
  250. package/dist/components/SignUp/SignUpForm.js +133 -0
  251. package/dist/components/SignUp/SignUpTrigger.d.ts +1 -1
  252. package/dist/components/SignUp/{SignUpTrigger.jsx → SignUpTrigger.js} +3 -2
  253. package/dist/components/SignUp/index.js +2 -2
  254. package/dist/components/TopWins/TopWins.client.d.ts +1 -1
  255. package/dist/components/TopWins/TopWins.client.js +23 -0
  256. package/dist/components/TopWins/TopWins.d.ts +1 -1
  257. package/dist/components/TopWins/TopWins.js +7 -0
  258. package/dist/components/TopWins/index.js +1 -1
  259. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +1 -1
  260. package/dist/components/TournamentCounter/{TournamentCounter.client.jsx → TournamentCounter.client.js} +3 -30
  261. package/dist/components/TournamentCounter/TournamentCounter.d.ts +1 -1
  262. package/dist/components/TournamentCounter/{TournamentCounter.jsx → TournamentCounter.js} +3 -2
  263. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +1 -2
  264. package/dist/components/TournamentCounter/TournamentCounterItem.js +96 -0
  265. package/dist/components/TournamentCounter/index.js +1 -1
  266. package/dist/components/Tournaments/TournamentGameProviders.d.ts +1 -1
  267. package/dist/components/Tournaments/{TournamentGameProviders.jsx → TournamentGameProviders.js} +2 -23
  268. package/dist/components/Tournaments/TournamentItem.d.ts +1 -2
  269. package/dist/components/Tournaments/TournamentItem.js +97 -0
  270. package/dist/components/Tournaments/TournamentItemMobile.d.ts +1 -2
  271. package/dist/components/Tournaments/TournamentItemMobile.js +99 -0
  272. package/dist/components/Tournaments/TournamentRules.d.ts +1 -1
  273. package/dist/components/Tournaments/TournamentRules.js +9 -0
  274. package/dist/components/Tournaments/Tournaments.d.ts +1 -1
  275. package/dist/components/Tournaments/Tournaments.js +26 -0
  276. package/dist/components/Tournaments/index.js +1 -1
  277. package/dist/components/TransactionRecords/DepositRecordsTable.d.ts +1 -1
  278. package/dist/components/TransactionRecords/DepositRecordsTable.js +87 -0
  279. package/dist/components/TransactionRecords/TableFilters.d.ts +2 -2
  280. package/dist/components/TransactionRecords/TableFilters.js +212 -0
  281. package/dist/components/TransactionRecords/TransactionRecords.d.ts +1 -1
  282. package/dist/components/TransactionRecords/TransactionRecords.js +10 -0
  283. package/dist/components/TransactionRecords/TransactionRecordsTable.d.ts +1 -1
  284. package/dist/components/TransactionRecords/TransactionRecordsTable.js +62 -0
  285. package/dist/components/TransactionRecords/WithdrawalRecordsTable.d.ts +1 -1
  286. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +81 -0
  287. package/dist/components/TransactionRecords/index.js +1 -1
  288. package/dist/icons/AlertCircleIcon.d.ts +1 -1
  289. package/dist/icons/AlertCircleIcon.js +4 -0
  290. package/dist/icons/AlertTriangle.d.ts +1 -1
  291. package/dist/icons/AlertTriangle.js +4 -0
  292. package/dist/icons/Announcement01Icon.d.ts +1 -1
  293. package/dist/icons/Announcement01Icon.js +4 -0
  294. package/dist/icons/ArrowLeftIcon.d.ts +1 -1
  295. package/dist/icons/ArrowLeftIcon.js +4 -0
  296. package/dist/icons/ArrowNarrowDownIcon.d.ts +1 -1
  297. package/dist/icons/ArrowNarrowDownIcon.js +4 -0
  298. package/dist/icons/ArrowNarrowUpIcon.d.ts +1 -1
  299. package/dist/icons/ArrowNarrowUpIcon.js +4 -0
  300. package/dist/icons/ArrowNarrowUpRightIcon.d.ts +1 -1
  301. package/dist/icons/ArrowNarrowUpRightIcon.js +4 -0
  302. package/dist/icons/ArrowRightIcon.d.ts +1 -1
  303. package/dist/icons/ArrowRightIcon.js +4 -0
  304. package/dist/icons/Award01Icon.d.ts +1 -1
  305. package/dist/icons/Award01Icon.js +4 -0
  306. package/dist/icons/Award02Icon.d.ts +1 -1
  307. package/dist/icons/Award02Icon.js +4 -0
  308. package/dist/icons/BankIcon.d.ts +1 -1
  309. package/dist/icons/BankIcon.js +4 -0
  310. package/dist/icons/Bell01Icon.d.ts +1 -1
  311. package/dist/icons/Bell01Icon.js +4 -0
  312. package/dist/icons/BellRingIcon.d.ts +1 -1
  313. package/dist/icons/BellRingIcon.js +4 -0
  314. package/dist/icons/CalendarIcon.d.ts +1 -1
  315. package/dist/icons/CalendarIcon.js +4 -0
  316. package/dist/icons/Camera01Icon.d.ts +1 -1
  317. package/dist/icons/Camera01Icon.js +4 -0
  318. package/dist/icons/CheckCircleBrokenIcon.d.ts +1 -1
  319. package/dist/icons/CheckCircleBrokenIcon.js +4 -0
  320. package/dist/icons/CheckCircleIcon.d.ts +1 -1
  321. package/dist/icons/CheckCircleIcon.js +4 -0
  322. package/dist/icons/CheckIcon.d.ts +1 -1
  323. package/dist/icons/CheckIcon.js +4 -0
  324. package/dist/icons/CheckVerified02Icon.d.ts +1 -1
  325. package/dist/icons/CheckVerified02Icon.js +4 -0
  326. package/dist/icons/ChevronDownIcon.d.ts +1 -1
  327. package/dist/icons/ChevronDownIcon.js +4 -0
  328. package/dist/icons/ChevronLeftIcon.d.ts +1 -1
  329. package/dist/icons/ChevronLeftIcon.js +4 -0
  330. package/dist/icons/ChevronRightIcon.d.ts +1 -1
  331. package/dist/icons/ChevronRightIcon.js +4 -0
  332. package/dist/icons/ChevronUpIcon.d.ts +1 -1
  333. package/dist/icons/ChevronUpIcon.js +4 -0
  334. package/dist/icons/ClockStopWatchIcon.d.ts +1 -1
  335. package/dist/icons/ClockStopWatchIcon.js +4 -0
  336. package/dist/icons/CoinsHandIcon.d.ts +1 -1
  337. package/dist/icons/CoinsHandIcon.js +4 -0
  338. package/dist/icons/CoinsStacked02Icon.d.ts +1 -1
  339. package/dist/icons/CoinsStacked02Icon.js +4 -0
  340. package/dist/icons/CoinsSwap02Icon.d.ts +1 -1
  341. package/dist/icons/CoinsSwap02Icon.js +4 -0
  342. package/dist/icons/CreditCard02Icon.d.ts +1 -1
  343. package/dist/icons/CreditCard02Icon.js +4 -0
  344. package/dist/icons/Diamond01Icon.d.ts +1 -1
  345. package/dist/icons/Diamond01Icon.js +4 -0
  346. package/dist/icons/Expand03Icon.d.ts +1 -1
  347. package/dist/icons/Expand03Icon.js +4 -0
  348. package/dist/icons/EyeIcon.d.ts +1 -1
  349. package/dist/icons/EyeIcon.js +4 -0
  350. package/dist/icons/EyeOffIcon.d.ts +1 -1
  351. package/dist/icons/EyeOffIcon.js +4 -0
  352. package/dist/icons/FacebookIcon.d.ts +1 -1
  353. package/dist/icons/FacebookIcon.js +4 -0
  354. package/dist/icons/File02Icon.d.ts +1 -1
  355. package/dist/icons/File02Icon.js +4 -0
  356. package/dist/icons/FileCheck02Icon.d.ts +1 -1
  357. package/dist/icons/FileCheck02Icon.js +4 -0
  358. package/dist/icons/Flag06Icon.d.ts +1 -1
  359. package/dist/icons/Flag06Icon.js +4 -0
  360. package/dist/icons/Gift01Icon.d.ts +1 -1
  361. package/dist/icons/Gift01Icon.js +4 -0
  362. package/dist/icons/GoogleIcon.d.ts +1 -1
  363. package/dist/icons/GoogleIcon.js +4 -0
  364. package/dist/icons/HelpCircleIcon.d.ts +1 -1
  365. package/dist/icons/HelpCircleIcon.js +4 -0
  366. package/dist/icons/InfoCircleIcon.d.ts +1 -1
  367. package/dist/icons/InfoCircleIcon.js +4 -0
  368. package/dist/icons/Lock01Icon.d.ts +1 -1
  369. package/dist/icons/Lock01Icon.js +4 -0
  370. package/dist/icons/Logout01Icon.d.ts +1 -1
  371. package/dist/icons/Logout01Icon.js +4 -0
  372. package/dist/icons/MarkerPin06Icon.d.ts +1 -1
  373. package/dist/icons/MarkerPin06Icon.js +4 -0
  374. package/dist/icons/Menu01Icon.d.ts +1 -1
  375. package/dist/icons/Menu01Icon.js +4 -0
  376. package/dist/icons/Menu03Icon.d.ts +1 -1
  377. package/dist/icons/Menu03Icon.js +4 -0
  378. package/dist/icons/PiggyBank02Icon.d.ts +1 -1
  379. package/dist/icons/PiggyBank02Icon.js +4 -0
  380. package/dist/icons/QrCode02Icon.d.ts +1 -1
  381. package/dist/icons/QrCode02Icon.js +4 -0
  382. package/dist/icons/SearchLgIcon.d.ts +1 -1
  383. package/dist/icons/SearchLgIcon.js +4 -0
  384. package/dist/icons/SearchRefractionIcon.d.ts +1 -1
  385. package/dist/icons/SearchRefractionIcon.js +4 -0
  386. package/dist/icons/Settings02Icon.d.ts +1 -1
  387. package/dist/icons/Settings02Icon.js +4 -0
  388. package/dist/icons/SpinnerIcon.d.ts +1 -1
  389. package/dist/icons/SpinnerIcon.js +5 -0
  390. package/dist/icons/Star01Icon.d.ts +1 -1
  391. package/dist/icons/Star01Icon.js +4 -0
  392. package/dist/icons/StarIcon.d.ts +1 -1
  393. package/dist/icons/StarIcon.js +4 -0
  394. package/dist/icons/StopWatchIcon.d.ts +1 -1
  395. package/dist/icons/StopWatchIcon.js +4 -0
  396. package/dist/icons/Target04Icon.d.ts +1 -1
  397. package/dist/icons/Target04Icon.js +4 -0
  398. package/dist/icons/Trophy01Icon.d.ts +1 -1
  399. package/dist/icons/Trophy01Icon.js +4 -0
  400. package/dist/icons/UploadCloud02Icon.d.ts +1 -1
  401. package/dist/icons/UploadCloud02Icon.js +4 -0
  402. package/dist/icons/User01Icon.d.ts +1 -1
  403. package/dist/icons/User01Icon.js +4 -0
  404. package/dist/icons/Wallet02Icon.d.ts +1 -1
  405. package/dist/icons/Wallet02Icon.js +4 -0
  406. package/dist/icons/XIcon.d.ts +1 -1
  407. package/dist/icons/XIcon.js +4 -0
  408. package/dist/icons/index.js +56 -56
  409. package/dist/middleware.d.ts +1 -0
  410. package/dist/middleware.js +1 -11
  411. package/dist/server/services/getSession.d.ts +1 -1
  412. package/dist/third-parties/FacebookPixel/index.js +1 -1
  413. package/dist/third-parties/GoogleRecaptcha/index.js +1 -1
  414. package/dist/tsconfig.build.tsbuildinfo +1 -1
  415. package/dist/ui/AlertDialog/index.js +1 -1
  416. package/dist/ui/Avatar/index.js +1 -1
  417. package/dist/ui/Badge/Badge.js +12 -0
  418. package/dist/ui/Badge/index.js +1 -1
  419. package/dist/ui/Button/Button.d.ts +1 -1
  420. package/dist/ui/Button/{Button.jsx → Button.js} +3 -2
  421. package/dist/ui/Button/index.js +1 -1
  422. package/dist/ui/Checkbox/index.js +1 -1
  423. package/dist/ui/Clipboard/index.js +1 -1
  424. package/dist/ui/Collapsible/index.js +1 -1
  425. package/dist/ui/Combobox/index.js +1 -1
  426. package/dist/ui/DatePicker/index.js +1 -1
  427. package/dist/ui/Dialog/index.js +1 -1
  428. package/dist/ui/Drawer/index.js +1 -1
  429. package/dist/ui/Field/index.js +1 -1
  430. package/dist/ui/IconButton/IconButton.d.ts +1 -1
  431. package/dist/ui/IconButton/{IconButton.jsx → IconButton.js} +3 -2
  432. package/dist/ui/IconButton/index.js +1 -1
  433. package/dist/ui/Menu/index.js +1 -1
  434. package/dist/ui/NumberInput/index.js +1 -1
  435. package/dist/ui/PasswordInput/index.js +1 -1
  436. package/dist/ui/PinInput/index.js +1 -1
  437. package/dist/ui/Popover/index.js +1 -1
  438. package/dist/ui/Presence.d.ts +1 -1
  439. package/dist/ui/Presence.js +7 -0
  440. package/dist/ui/Progress/index.js +1 -1
  441. package/dist/ui/Prose.d.ts +1 -1
  442. package/dist/ui/Prose.js +5 -0
  443. package/dist/ui/SegmentGroup/index.js +1 -1
  444. package/dist/ui/Select/index.js +1 -1
  445. package/dist/ui/Table/index.js +1 -1
  446. package/dist/ui/Tabs/index.js +1 -1
  447. package/dist/ui/Tooltip/index.js +1 -1
  448. package/dist/ui/index.js +2 -2
  449. package/dist/utils/getLocaleInfo.js +175 -0
  450. package/dist/utils/index.js +1 -1
  451. package/package.json +3 -10
  452. package/dist/components/Account/Account.jsx +0 -313
  453. package/dist/components/AccountInfo/AccountInfo.jsx +0 -113
  454. package/dist/components/AccountSecurity/AccountSecurity.jsx +0 -142
  455. package/dist/components/Banner/Banner.jsx +0 -51
  456. package/dist/components/BetRecords/BetRecords.jsx +0 -470
  457. package/dist/components/Bonus/Bonus.client.jsx +0 -144
  458. package/dist/components/Bonus/Bonus.jsx +0 -4
  459. package/dist/components/Bonuses/Bonuses.jsx +0 -87
  460. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.jsx +0 -73
  461. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDeposit.jsx +0 -15
  462. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.jsx +0 -203
  463. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositLoading.jsx +0 -15
  464. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositSuccess.jsx +0 -13
  465. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.jsx +0 -90
  466. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDeposit.jsx +0 -15
  467. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.jsx +0 -197
  468. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositLoading.jsx +0 -14
  469. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.jsx +0 -104
  470. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.jsx +0 -19
  471. package/dist/components/DepositWithdrawal/DepositWithdrawal.jsx +0 -95
  472. package/dist/components/DepositWithdrawal/MayaSessionExpired.jsx +0 -13
  473. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.jsx +0 -218
  474. package/dist/components/Disclaimer/Disclaimer.jsx +0 -45
  475. package/dist/components/Empty.jsx +0 -62
  476. package/dist/components/FavoriteGames/FavoriteGames.client.jsx +0 -63
  477. package/dist/components/FavoriteGames/FavoriteGames.jsx +0 -6
  478. package/dist/components/GameLaunch/GameLaunch.jsx +0 -188
  479. package/dist/components/GameProviders/GameProviders.jsx +0 -60
  480. package/dist/components/Games/Games.client.jsx +0 -118
  481. package/dist/components/GamesSearch/GamesSearch.jsx +0 -110
  482. package/dist/components/JackpotCounter/JackpotCounterItem.jsx +0 -317
  483. package/dist/components/Jackpots/JackpotGameProviders.jsx +0 -59
  484. package/dist/components/Jackpots/JackpotItemDesktop.jsx +0 -251
  485. package/dist/components/Jackpots/JackpotItemMobile.jsx +0 -271
  486. package/dist/components/Jackpots/JackpotRules.jsx +0 -43
  487. package/dist/components/Jackpots/Jackpots.jsx +0 -37
  488. package/dist/components/KYC/KYC.jsx +0 -39
  489. package/dist/components/KYC/Step1.jsx +0 -37
  490. package/dist/components/KYC/Step2.jsx +0 -86
  491. package/dist/components/KYC/Step3.jsx +0 -68
  492. package/dist/components/KYC/StepIndicator.jsx +0 -22
  493. package/dist/components/KYC/UploadDocument.jsx +0 -30
  494. package/dist/components/KYC/UploadSelfie.jsx +0 -28
  495. package/dist/components/Marquee/Marquee.jsx +0 -20
  496. package/dist/components/Messages/MessageItem.jsx +0 -47
  497. package/dist/components/Messages/MessagePopup.jsx +0 -43
  498. package/dist/components/Messages/Messages.jsx +0 -87
  499. package/dist/components/PortalProvider/PortalProvider.client.jsx +0 -54
  500. package/dist/components/Promo/Promo.jsx +0 -7
  501. package/dist/components/Promo/PromoContent.jsx +0 -104
  502. package/dist/components/Promos/PromoCarousel.jsx +0 -69
  503. package/dist/components/Promos/PromoGrid.jsx +0 -24
  504. package/dist/components/Promos/PromoItem.jsx +0 -24
  505. package/dist/components/Promos/Promos.jsx +0 -10
  506. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.jsx +0 -104
  507. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.jsx +0 -46
  508. package/dist/components/Quests/Quests.jsx +0 -12
  509. package/dist/components/Quests/WageringQuest/WageringQuest.jsx +0 -58
  510. package/dist/components/Quests/WageringQuest/WageringQuestModal.jsx +0 -38
  511. package/dist/components/SignIn/SignIn.jsx +0 -29
  512. package/dist/components/SignIn/SignInForm.jsx +0 -233
  513. package/dist/components/SignUp/SignUp.jsx +0 -32
  514. package/dist/components/SignUp/SignUpForm.jsx +0 -230
  515. package/dist/components/TopWins/TopWins.client.jsx +0 -48
  516. package/dist/components/TopWins/TopWins.jsx +0 -6
  517. package/dist/components/TournamentCounter/TournamentCounterItem.jsx +0 -233
  518. package/dist/components/Tournaments/TournamentItem.jsx +0 -224
  519. package/dist/components/Tournaments/TournamentItemMobile.jsx +0 -242
  520. package/dist/components/Tournaments/TournamentRules.jsx +0 -43
  521. package/dist/components/Tournaments/Tournaments.jsx +0 -37
  522. package/dist/components/TransactionRecords/DepositRecordsTable.jsx +0 -193
  523. package/dist/components/TransactionRecords/TableFilters.jsx +0 -446
  524. package/dist/components/TransactionRecords/TransactionRecords.jsx +0 -39
  525. package/dist/components/TransactionRecords/TransactionRecordsTable.jsx +0 -147
  526. package/dist/components/TransactionRecords/WithdrawalRecordsTable.jsx +0 -182
  527. package/dist/icons/AlertCircleIcon.jsx +0 -5
  528. package/dist/icons/AlertTriangle.jsx +0 -5
  529. package/dist/icons/Announcement01Icon.jsx +0 -5
  530. package/dist/icons/ArrowLeftIcon.jsx +0 -5
  531. package/dist/icons/ArrowNarrowDownIcon.jsx +0 -5
  532. package/dist/icons/ArrowNarrowUpIcon.jsx +0 -5
  533. package/dist/icons/ArrowNarrowUpRightIcon.jsx +0 -5
  534. package/dist/icons/ArrowRightIcon.jsx +0 -5
  535. package/dist/icons/Award01Icon.jsx +0 -5
  536. package/dist/icons/Award02Icon.jsx +0 -5
  537. package/dist/icons/BankIcon.jsx +0 -5
  538. package/dist/icons/Bell01Icon.jsx +0 -5
  539. package/dist/icons/BellRingIcon.jsx +0 -5
  540. package/dist/icons/CalendarIcon.jsx +0 -5
  541. package/dist/icons/Camera01Icon.jsx +0 -6
  542. package/dist/icons/CheckCircleBrokenIcon.jsx +0 -5
  543. package/dist/icons/CheckCircleIcon.jsx +0 -5
  544. package/dist/icons/CheckIcon.jsx +0 -5
  545. package/dist/icons/CheckVerified02Icon.jsx +0 -5
  546. package/dist/icons/ChevronDownIcon.jsx +0 -5
  547. package/dist/icons/ChevronLeftIcon.jsx +0 -5
  548. package/dist/icons/ChevronRightIcon.jsx +0 -5
  549. package/dist/icons/ChevronUpIcon.jsx +0 -5
  550. package/dist/icons/ClockStopWatchIcon.jsx +0 -5
  551. package/dist/icons/CoinsHandIcon.jsx +0 -5
  552. package/dist/icons/CoinsStacked02Icon.jsx +0 -5
  553. package/dist/icons/CoinsSwap02Icon.jsx +0 -5
  554. package/dist/icons/CreditCard02Icon.jsx +0 -5
  555. package/dist/icons/Diamond01Icon.jsx +0 -5
  556. package/dist/icons/Expand03Icon.jsx +0 -5
  557. package/dist/icons/EyeIcon.jsx +0 -6
  558. package/dist/icons/EyeOffIcon.jsx +0 -5
  559. package/dist/icons/FacebookIcon.jsx +0 -6
  560. package/dist/icons/File02Icon.jsx +0 -5
  561. package/dist/icons/FileCheck02Icon.jsx +0 -5
  562. package/dist/icons/Flag06Icon.jsx +0 -5
  563. package/dist/icons/Gift01Icon.jsx +0 -5
  564. package/dist/icons/GoogleIcon.jsx +0 -9
  565. package/dist/icons/HelpCircleIcon.jsx +0 -5
  566. package/dist/icons/InfoCircleIcon.jsx +0 -5
  567. package/dist/icons/Lock01Icon.jsx +0 -5
  568. package/dist/icons/Logout01Icon.jsx +0 -5
  569. package/dist/icons/MarkerPin06Icon.jsx +0 -5
  570. package/dist/icons/Menu01Icon.jsx +0 -5
  571. package/dist/icons/Menu03Icon.jsx +0 -5
  572. package/dist/icons/PiggyBank02Icon.jsx +0 -5
  573. package/dist/icons/QrCode02Icon.jsx +0 -5
  574. package/dist/icons/SearchLgIcon.jsx +0 -5
  575. package/dist/icons/SearchRefractionIcon.jsx +0 -5
  576. package/dist/icons/Settings02Icon.jsx +0 -6
  577. package/dist/icons/SpinnerIcon.jsx +0 -9
  578. package/dist/icons/Star01Icon.jsx +0 -5
  579. package/dist/icons/StarIcon.jsx +0 -5
  580. package/dist/icons/StopWatchIcon.jsx +0 -5
  581. package/dist/icons/Target04Icon.jsx +0 -5
  582. package/dist/icons/Trophy01Icon.jsx +0 -5
  583. package/dist/icons/UploadCloud02Icon.jsx +0 -5
  584. package/dist/icons/User01Icon.jsx +0 -5
  585. package/dist/icons/Wallet02Icon.jsx +0 -5
  586. package/dist/icons/XIcon.jsx +0 -5
  587. package/dist/ui/Badge/Badge.jsx +0 -11
  588. package/dist/ui/Presence.jsx +0 -6
  589. package/dist/ui/Prose.jsx +0 -4
  590. package/dist/utils/getLocaleInfo.jsx +0 -237
  591. /package/dist/components/AccountPaymentMethods/{AccountPaymentMethods.jsx → AccountPaymentMethods.js} +0 -0
  592. /package/dist/components/AccountVerification/{AccountVerification.jsx → AccountVerification.js} +0 -0
  593. /package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{OnlineBankDepositContext.jsx → OnlineBankDepositContext.js} +0 -0
  594. /package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/{useOnlineBankDeposit.jsx → useOnlineBankDeposit.js} +0 -0
  595. /package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{QRPHDepositContext.jsx → QRPHDepositContext.js} +0 -0
  596. /package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/{useQRPHDeposit.jsx → useQRPHDeposit.js} +0 -0
  597. /package/dist/components/Disclaimer/{useDisclaimer.jsx → useDisclaimer.js} +0 -0
  598. /package/dist/components/KYC/{KYCContext.jsx → KYCContext.js} +0 -0
  599. /package/dist/components/Protected/{Protected.jsx → Protected.js} +0 -0
  600. /package/dist/third-parties/FacebookPixel/{FacebookPixel.jsx → FacebookPixel.js} +0 -0
  601. /package/dist/third-parties/GoogleRecaptcha/{GoogleRecaptcha.jsx → GoogleRecaptcha.js} +0 -0
  602. /package/dist/ui/AlertDialog/{AlertDialog.jsx → AlertDialog.js} +0 -0
  603. /package/dist/ui/Avatar/{Avatar.jsx → Avatar.js} +0 -0
  604. /package/dist/ui/Checkbox/{Checkbox.jsx → Checkbox.js} +0 -0
  605. /package/dist/ui/Clipboard/{Clipboard.jsx → Clipboard.js} +0 -0
  606. /package/dist/ui/Collapsible/{Collapsible.jsx → Collapsible.js} +0 -0
  607. /package/dist/ui/Combobox/{Combobox.jsx → Combobox.js} +0 -0
  608. /package/dist/ui/DatePicker/{DatePicker.jsx → DatePicker.js} +0 -0
  609. /package/dist/ui/Dialog/{Dialog.jsx → Dialog.js} +0 -0
  610. /package/dist/ui/Drawer/{Drawer.jsx → Drawer.js} +0 -0
  611. /package/dist/ui/Field/{Field.jsx → Field.js} +0 -0
  612. /package/dist/ui/Menu/{Menu.jsx → Menu.js} +0 -0
  613. /package/dist/ui/NumberInput/{NumberInput.jsx → NumberInput.js} +0 -0
  614. /package/dist/ui/PasswordInput/{PasswordInput.jsx → PasswordInput.js} +0 -0
  615. /package/dist/ui/PinInput/{PinInput.jsx → PinInput.js} +0 -0
  616. /package/dist/ui/Popover/{Popover.jsx → Popover.js} +0 -0
  617. /package/dist/ui/Progress/{Progress.jsx → Progress.js} +0 -0
  618. /package/dist/ui/SegmentGroup/{SegmentGroup.jsx → SegmentGroup.js} +0 -0
  619. /package/dist/ui/Select/{Select.jsx → Select.js} +0 -0
  620. /package/dist/ui/Table/{Table.jsx → Table.js} +0 -0
  621. /package/dist/ui/Tabs/{Tabs.jsx → Tabs.js} +0 -0
  622. /package/dist/ui/Tooltip/{Tooltip.jsx → Tooltip.js} +0 -0
@@ -1,45 +0,0 @@
1
- 'use client';
2
- import { Portal } from '@ark-ui/react';
3
- import Image from 'next/image';
4
- import { useRef } from 'react';
5
- import pagcorLogo from '../../images/pagcor.png';
6
- import responsibleGamingLogo from '../../images/responsible-gaming.png';
7
- import { Button, Dialog } from '../../ui/index.js';
8
- import { useDisclaimer } from './useDisclaimer';
9
- export function Disclaimer(props) {
10
- const disclaimer = useDisclaimer();
11
- const acceptTriggerRef = useRef(null);
12
- return (<Dialog.Root open={disclaimer.open} lazyMount unmountOnExit closeOnEscape={false} closeOnInteractOutside={false} initialFocusEl={() => acceptTriggerRef.current}>
13
- <Portal>
14
- <Dialog.Backdrop />
15
- <Dialog.Positioner>
16
- <Dialog.Content className="flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl">
17
- <Image src={props.logo} alt="" width={200} height={100} className="mx-auto h-auto w-[120px]" draggable={false}/>
18
-
19
- <div className="w-full grow">
20
- <Dialog.Title className="mt-3xl text-center text-lg font-semibold">
21
- Age Verification
22
- </Dialog.Title>
23
- <Dialog.Description className="text-text-tertiary-600 mt-xs text-center text-sm">
24
- By entering this website I acknowledge and confirmI am 21 years
25
- of age and I agree with the{' '}
26
- <button type="button" className="text-brand-400 underline underline-offset-2">
27
- Terms and Conditions.
28
- </button>
29
- </Dialog.Description>
30
-
31
- <div className="mt-5 flex items-center justify-center gap-3xl">
32
- <Image src={pagcorLogo} alt="" height={75} width={88} className="h-[88px] w-auto shrink-0" draggable={false}/>
33
-
34
- <Image src={responsibleGamingLogo} alt="" height={62} width={186} className="h-[62px] w-auto shrink-0" draggable={false}/>
35
- </div>
36
- </div>
37
-
38
- <Button ref={acceptTriggerRef} type="button" className="mt-4xl" onClick={disclaimer.close}>
39
- Accept
40
- </Button>
41
- </Dialog.Content>
42
- </Dialog.Positioner>
43
- </Portal>
44
- </Dialog.Root>);
45
- }
@@ -1,62 +0,0 @@
1
- export function Empty(props) {
2
- return (<div role="alert" aria-live="polite" className={props.className}>
3
- <div className="relative mx-auto w-[9.5rem] pt-4">
4
- <div className="bg-utility-gray-200 absolute left-1/2 top-0 size-[6.5rem] -translate-x-1/2 rounded-full"/>
5
- <CloudIcon className="relative h-auto w-full shrink-0"/>
6
- <div className="bg-utility-gray-200/40 absolute bottom-2 left-1/2 flex size-12 -translate-x-1/2 items-center justify-center rounded-full backdrop-blur-sm">
7
- <props.icon className="size-6 text-white"/>
8
- </div>
9
-
10
- <div className="bg-utility-gray-200 absolute left-4 top-3.5 size-2.5 rounded-full"></div>
11
- <div className="bg-utility-gray-200 absolute bottom-0.5 left-3 size-3.5 rounded-full"></div>
12
- <div className="bg-utility-gray-200 absolute right-3.5 top-1 size-2 rounded-full"></div>
13
- <div className="bg-utility-gray-200 absolute right-0 top-6.5 size-3.5 rounded-full"></div>
14
- </div>
15
- <h2 className="mt-xl text-center font-semibold">{props.title}</h2>
16
- <p className="text-text-tertiary-600 mx-auto mt-xs max-w-[25rem] text-center text-sm">
17
- {props.message}
18
- </p>
19
- </div>);
20
- }
21
- function CloudIcon(props) {
22
- return (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152 104" fill="none" {...props}>
23
- <g filter="url(#filter0_dd_2719_19242)">
24
- <path d="M77.6 0C66.8273 0 57.2978 5.32329 51.4987 13.4829C49.605 13.0363 47.6301 12.8 45.6 12.8C31.4615 12.8 20 24.2615 20 38.4C20 52.5385 31.4615 64 45.6 64L109.6 64C121.971 64 132 53.9712 132 41.6C132 29.2288 121.971 19.2 109.6 19.2C108.721 19.2 107.854 19.2506 107.002 19.349C102.098 7.9677 90.7797 0 77.6 0Z" fill="#F9FAFB"/>
25
- <ellipse cx="45.6" cy="38.4008" rx="25.6" ry="25.6" fill="url(#paint0_linear_2719_19242)"/>
26
- <circle cx="77.6" cy="32" r="32" fill="url(#paint1_linear_2719_19242)"/>
27
- <ellipse cx="109.6" cy="41.5992" rx="22.4" ry="22.4" fill="url(#paint2_linear_2719_19242)"/>
28
- </g>
29
- <defs>
30
- <filter id="filter0_dd_2719_19242" x="0" y="0" width="152" height="104" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
31
- <feFlood floodOpacity="0" result="BackgroundImageFix"/>
32
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
33
- <feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect1_dropShadow_2719_19242"/>
34
- <feOffset dy="8"/>
35
- <feGaussianBlur stdDeviation="4"/>
36
- <feComposite in2="hardAlpha" operator="out"/>
37
- <feColorMatrix type="matrix" values="0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0"/>
38
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2719_19242"/>
39
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
40
- <feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow_2719_19242"/>
41
- <feOffset dy="20"/>
42
- <feGaussianBlur stdDeviation="12"/>
43
- <feComposite in2="hardAlpha" operator="out"/>
44
- <feColorMatrix type="matrix" values="0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0"/>
45
- <feBlend mode="normal" in2="effect1_dropShadow_2719_19242" result="effect2_dropShadow_2719_19242"/>
46
- <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2719_19242" result="shape"/>
47
- </filter>
48
- <linearGradient id="paint0_linear_2719_19242" x1="25.9429" y1="21.4865" x2="71.2" y2="64.0007" gradientUnits="userSpaceOnUse">
49
- <stop stopColor="#D0D5DD"/>
50
- <stop offset="0.350715" stopColor="white" stopOpacity="0"/>
51
- </linearGradient>
52
- <linearGradient id="paint1_linear_2719_19242" x1="53.0286" y1="10.8571" x2="109.6" y2="64" gradientUnits="userSpaceOnUse">
53
- <stop stopColor="#D0D5DD"/>
54
- <stop offset="0.350715" stopColor="white" stopOpacity="0"/>
55
- </linearGradient>
56
- <linearGradient id="paint2_linear_2719_19242" x1="92.4" y1="26.7992" x2="132" y2="63.9992" gradientUnits="userSpaceOnUse">
57
- <stop stopColor="#D0D5DD"/>
58
- <stop offset="0.350715" stopColor="white" stopOpacity="0"/>
59
- </linearGradient>
60
- </defs>
61
- </svg>);
62
- }
@@ -1,63 +0,0 @@
1
- 'use client';
2
- import Image from 'next/image';
3
- import { twMerge } from 'tailwind-merge';
4
- import { useFavoriteGamesQuery, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
5
- import { ArrowLeftIcon, ArrowRightIcon, Star01Icon } from '../../icons/index.js';
6
- import { Button } from '../../ui/index.js';
7
- import { getGameImageUrl } from '../../utils/index.js';
8
- import { GameLaunchTrigger } from '../GameLaunch/index.js';
9
- export function FavoriteGames__client(props) {
10
- const gamesQuery = useFavoriteGamesQuery();
11
- const games = gamesQuery.data ?? [];
12
- if (games.length <= 0)
13
- return null;
14
- return (<div className={props.className}>
15
- <div className="flex items-center">
16
- <h2 className="text-lg font-semibold">
17
- {props.heading ?? 'Favorite Games'}
18
- </h2>
19
- <div className="grow"/>
20
- <div className="flex items-center justify-center gap-xl">
21
- <div className="hidden lg:flex">
22
- <Button variant="outline" colorScheme="gray" className="rounded-r-none border-r-0" aria-label="Previous">
23
- <ArrowLeftIcon className="size-5"/>
24
- </Button>
25
- <Button variant="outline" colorScheme="gray" className="rounded-l-none">
26
- <ArrowRightIcon className="size-5"/>
27
- </Button>
28
- </div>
29
- </div>
30
- </div>
31
-
32
- <div className="relative mt-lg lg:overflow-hidden">
33
- <div className={twMerge('grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col grid-rows-1 gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md')}>
34
- {games.map((game) => (<Item key={game.id} game={game}/>))}
35
- </div>
36
- </div>
37
- </div>);
38
- }
39
- function Item({ game }) {
40
- const sessionQuery = useSessionQuery();
41
- const session = sessionQuery.data;
42
- const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation();
43
- return (<GameLaunchTrigger game={game} className="relative block w-full shadow-sm">
44
- {session?.status === 'authenticated' && (<div role="button" onClick={(e) => {
45
- e.preventDefault();
46
- e.stopPropagation();
47
- if (unmarkGameAsFavoriteMutation.isPending)
48
- return;
49
- unmarkGameAsFavoriteMutation.mutate(game.id);
50
- }} aria-disabled={unmarkGameAsFavoriteMutation.isPending} className="rounded-xs absolute right-2 top-2 flex size-9 items-center justify-center bg-black/65 blur-[0.5px]">
51
- <Star01Icon className="fill-yellow-400 text-yellow-400 size-5"/>
52
- </div>)}
53
-
54
- <Image src={getGameImageUrl({
55
- id: game.id,
56
- provider: game.provider,
57
- })} alt="" width={200} height={200} priority className="aspect-square w-full rounded-t-md object-cover"/>
58
-
59
- <span className="bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold">
60
- {game.name}
61
- </span>
62
- </GameLaunchTrigger>);
63
- }
@@ -1,6 +0,0 @@
1
- import { prefetchFavoriteGamesQuery } from '../../server/utils/index.js';
2
- import { FavoriteGames__client } from './FavoriteGames.client';
3
- export async function FavoriteGames(props) {
4
- await prefetchFavoriteGamesQuery();
5
- return <FavoriteGames__client {...props}/>;
6
- }
@@ -1,188 +0,0 @@
1
- 'use client';
2
- import { Dialog, Portal, Presence } from '@ark-ui/react';
3
- import { useRef } from 'react';
4
- import { twMerge } from 'tailwind-merge';
5
- import { useShallow } from 'zustand/shallow';
6
- import { useDisclosure, useEndGameSessionMutation, useFavoriteGamesQuery, useGlobalStore, useMarkGameAsFavoriteMutation, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
7
- import { AlertCircleIcon, ChevronLeftIcon, CoinsHandIcon, Expand03Icon, SpinnerIcon, Star01Icon, XIcon, } from '../../icons/index.js';
8
- import { AlertDialog, Button, IconButton } from '../../ui/index.js';
9
- export function GameLaunch() {
10
- const ref = useRef(null);
11
- const maximizeDisclosure = useDisclosure({
12
- defaultOpen: true,
13
- onOpenChange(open) {
14
- if (!open) {
15
- setTimeout(() => {
16
- ref.current?.scrollIntoView({
17
- behavior: 'smooth',
18
- block: 'start',
19
- inline: 'start',
20
- });
21
- }, 25);
22
- }
23
- },
24
- });
25
- const cancelDisclosure = useDisclosure();
26
- const endGameSessionMutation = useEndGameSessionMutation();
27
- const globalStore = useGlobalStore(useShallow((ctx) => ({
28
- gameLaunch: ctx.gameLaunch,
29
- depositWithdrawal: ctx.depositWithdrawal,
30
- })));
31
- async function endGameSession() {
32
- if (globalStore.gameLaunch.details.status === 'PLAYING') {
33
- await endGameSessionMutation.mutateAsync({
34
- game: globalStore.gameLaunch.details.game,
35
- session: globalStore.gameLaunch.details.session,
36
- });
37
- }
38
- maximizeDisclosure.setOpen(true);
39
- globalStore.gameLaunch.setDetails({
40
- status: 'WAITING',
41
- session: null,
42
- game: null,
43
- });
44
- }
45
- const favoriteGamesQuery = useFavoriteGamesQuery();
46
- const favoriteGames = favoriteGamesQuery.data ?? [];
47
- const markGameAsFavoriteMutation = useMarkGameAsFavoriteMutation();
48
- const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation();
49
- const markedAsFavorite = favoriteGames.some((favoriteGame) => {
50
- return !globalStore.gameLaunch.details.game
51
- ? false
52
- : 'reference' in globalStore.gameLaunch.details.game
53
- ? favoriteGame.id === globalStore.gameLaunch.details.game.reference
54
- : favoriteGame.id === globalStore.gameLaunch.details.game.id;
55
- });
56
- return (<>
57
- <Presence ref={ref} present={globalStore.gameLaunch.details.status !== 'WAITING' &&
58
- !maximizeDisclosure.open} lazyMount unmountOnExit={globalStore.gameLaunch.details.status === 'WAITING'} className="border-border-primary bg-bg-primary-alt w-full overflow-hidden rounded-lg border ui-open:animate-fade-in ui-closed:animate-fade-out">
59
- <section className="aspect-[960/540] w-full">
60
- {globalStore.gameLaunch.details.status === 'LOADING' && (<div className="flex size-full items-center justify-center">
61
- <SpinnerIcon className="size-8"/>
62
- </div>)}
63
-
64
- {globalStore.gameLaunch.details.status === 'FAILED' && (<div>{/* TODO */}</div>)}
65
-
66
- {globalStore.gameLaunch.details.status === 'PLAYING' && (<iframe src={globalStore.gameLaunch.details.session?.launchUrl ?? ''} className="size-full"/>)}
67
- </section>
68
- <section className="border-border-primary flex justify-end gap-2 border-t p-2">
69
- <IconButton size="xs" variant="outline" colorScheme="gray" onClick={() => {
70
- if (globalStore.gameLaunch.details.status !== 'PLAYING') {
71
- endGameSession();
72
- return;
73
- }
74
- cancelDisclosure.setOpen(true);
75
- }} disabled={globalStore.gameLaunch.details.status === 'LOADING'} aria-label="Quit Game">
76
- <XIcon className="size-5"/>
77
- </IconButton>
78
- <IconButton size="xs" variant="outline" colorScheme="gray" disabled={globalStore.gameLaunch.details.status === 'LOADING'} aria-label={markedAsFavorite ? 'Remove from Favorites' : 'Add to Favorites'} onClick={() => {
79
- if (!globalStore.gameLaunch.details.game)
80
- return;
81
- if (markedAsFavorite) {
82
- unmarkGameAsFavoriteMutation.mutate('reference' in globalStore.gameLaunch.details.game
83
- ? globalStore.gameLaunch.details.game.reference
84
- : globalStore.gameLaunch.details.game.id);
85
- }
86
- else {
87
- markGameAsFavoriteMutation.mutate('reference' in globalStore.gameLaunch.details.game
88
- ? globalStore.gameLaunch.details.game.reference
89
- : globalStore.gameLaunch.details.game.id);
90
- }
91
- }}>
92
- <Star01Icon className={twMerge('size-5', markedAsFavorite
93
- ? 'text-yellow-400 fill-yellow-400'
94
- : 'text-inherit')}/>
95
- </IconButton>
96
- <IconButton size="xs" variant="outline" colorScheme="gray" onClick={() => maximizeDisclosure.setOpen(true)} title="Maximize" aria-label="Maximize">
97
- <Expand03Icon className="size-5"/>
98
- </IconButton>
99
- </section>
100
- </Presence>
101
-
102
- <Dialog.Root open={globalStore.gameLaunch.details.status !== 'WAITING' &&
103
- maximizeDisclosure.open &&
104
- !cancelDisclosure.open} lazyMount closeOnEscape={false} closeOnInteractOutside={false}>
105
- <Portal>
106
- <Dialog.Positioner className="z-dialog fixed inset-0">
107
- <Dialog.Content className="ui-open:animate-dialog-in ui-closed:animate-dialog-out bg-bg-primary-alt flex size-full flex-col">
108
- <section className="flex items-center gap-2 px-4 py-2">
109
- <IconButton size="xs" variant="outline" onClick={() => {
110
- if (globalStore.gameLaunch.details.status !== 'PLAYING') {
111
- endGameSession();
112
- return;
113
- }
114
- cancelDisclosure.setOpen(true);
115
- }} disabled={globalStore.gameLaunch.details.status === 'LOADING'} title="Quit" aria-label="Quit Game">
116
- <ChevronLeftIcon className="size-5"/>
117
- </IconButton>
118
- <div className="grow"/>
119
- <IconButton size="xs" variant="outline">
120
- <Star01Icon className={twMerge('size-5', markedAsFavorite
121
- ? 'text-yellow-400 fill-yellow-400'
122
- : 'text-inherit')}/>
123
- </IconButton>
124
- <IconButton size="xs" variant="outline" onClick={() => maximizeDisclosure.setOpen(false)} title="Minimize" aria-label="Minimize">
125
- <Expand03Icon className="size-5"/>
126
- </IconButton>
127
- <IconButton size="xs" fullWidth={false} onClick={() => {
128
- globalStore.depositWithdrawal.setOpen(true);
129
- }}>
130
- <CoinsHandIcon className="size-5"/>
131
- </IconButton>
132
- </section>
133
- <section className="grow">
134
- {globalStore.gameLaunch.details.status === 'LOADING' && (<div className="flex size-full items-center justify-center">
135
- <SpinnerIcon className="size-8"/>
136
- </div>)}
137
-
138
- {globalStore.gameLaunch.details.status === 'FAILED' && (<div>{/* TODO: Error */}</div>)}
139
-
140
- {globalStore.gameLaunch.details.status === 'PLAYING' && (<iframe src={globalStore.gameLaunch.details.session.launchUrl ?? ''} className="size-full"/>)}
141
- </section>
142
- </Dialog.Content>
143
- </Dialog.Positioner>
144
- </Portal>
145
- </Dialog.Root>
146
-
147
- <AlertDialog.Root role="alertdialog" open={cancelDisclosure.open} onOpenChange={(details) => {
148
- cancelDisclosure.setOpen(details.open);
149
- }} lazyMount closeOnEscape={false} closeOnInteractOutside={false}>
150
- <Portal>
151
- <AlertDialog.Backdrop />
152
- <AlertDialog.Positioner>
153
- <AlertDialog.Content>
154
- <AlertDialog.Header>
155
- <div className="bg-error-700/25 text-error-200 flex size-12 items-center justify-center rounded-full">
156
- <AlertCircleIcon />
157
- </div>
158
- <AlertDialog.CloseTrigger>
159
- <XIcon />
160
- </AlertDialog.CloseTrigger>
161
- </AlertDialog.Header>
162
- <AlertDialog.Body>
163
- <AlertDialog.Title>Quit Game</AlertDialog.Title>
164
- <AlertDialog.Description>
165
- Are you sure you want to quit?
166
- </AlertDialog.Description>
167
- </AlertDialog.Body>
168
- <AlertDialog.Context>
169
- {(api) => (<AlertDialog.Footer>
170
- <Button variant="outline" colorScheme="gray" disabled={endGameSessionMutation.isPending} onClick={() => {
171
- api.setOpen(false);
172
- }}>
173
- Cancel
174
- </Button>
175
- <Button colorScheme="danger" disabled={endGameSessionMutation.isPending} onClick={async () => {
176
- await endGameSession();
177
- api.setOpen(false);
178
- }}>
179
- Proceed
180
- </Button>
181
- </AlertDialog.Footer>)}
182
- </AlertDialog.Context>
183
- </AlertDialog.Content>
184
- </AlertDialog.Positioner>
185
- </Portal>
186
- </AlertDialog.Root>
187
- </>);
188
- }
@@ -1,60 +0,0 @@
1
- 'use client';
2
- import useEmblaCarousel from 'embla-carousel-react';
3
- import Image from 'next/image';
4
- import Link from 'next/link';
5
- import { useCallback, useEffect, useState } from 'react';
6
- import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon } from '../../icons/index.js';
7
- import { Button } from '../../ui/index.js';
8
- export function GameProviders(props) {
9
- const [emblaRef, emblaApi] = useEmblaCarousel({
10
- align: 'start',
11
- slidesToScroll: 1,
12
- });
13
- const [prevBtnDisabled, setPrevBtnDisabled] = useState(true);
14
- const [nextBtnDisabled, setNextBtnDisabled] = useState(true);
15
- const onPrevButtonClick = useCallback(() => emblaApi?.scrollPrev(), [emblaApi]);
16
- const onNextButtonClick = useCallback(async () => {
17
- emblaApi?.scrollNext();
18
- }, [emblaApi]);
19
- const onSelect = useCallback((emblaApi) => {
20
- setPrevBtnDisabled(!emblaApi?.canScrollPrev());
21
- setNextBtnDisabled(!emblaApi?.canScrollNext());
22
- }, []);
23
- useEffect(() => {
24
- if (!emblaApi)
25
- return;
26
- onSelect(emblaApi);
27
- emblaApi.on('reInit', onSelect).on('select', onSelect);
28
- }, [emblaApi, onSelect]);
29
- const viewAllUrl = props.viewAllUrl ?? '/games/providers';
30
- return (<div className={props.className}>
31
- <div className="flex items-center">
32
- <h2 className="text-lg font-semibold">
33
- {props.heading ?? 'Providers'}
34
- </h2>
35
- <div className="grow"/>
36
- <div className="flex items-center justify-center gap-xl">
37
- <Link href={viewAllUrl} className="text-button-tertiary-fg flex gap-sm text-sm font-semibold">
38
- See All
39
- <ChevronRightIcon className="size-5 lg:hidden"/>
40
- </Link>
41
- <div className="hidden lg:flex">
42
- <Button variant="outline" colorScheme="gray" className="rounded-r-none border-r-0" onClick={onPrevButtonClick} disabled={prevBtnDisabled} aria-label="Previous">
43
- <ArrowLeftIcon className="size-5"/>
44
- </Button>
45
- <Button variant="outline" colorScheme="gray" className="rounded-l-none" onClick={onNextButtonClick} disabled={nextBtnDisabled} aria-label="Next">
46
- <ArrowRightIcon className="size-5"/>
47
- </Button>
48
- </div>
49
- </div>
50
- </div>
51
-
52
- <div ref={emblaRef} className="relative mt-lg lg:overflow-hidden">
53
- <div className="grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col grid-rows-1 gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md">
54
- {props.gameProviders.map((provider) => (<Link key={provider.id} href={`${viewAllUrl}/${provider.slug}`} className="bg-gray-800 flex w-full items-center rounded-md px-md py-sm lg:h-[5.75rem]">
55
- <Image src={provider.logo} alt="" width={300} height={150} className="mx-auto h-auto w-full"/>
56
- </Link>))}
57
- </div>
58
- </div>
59
- </div>);
60
- }
@@ -1,118 +0,0 @@
1
- 'use client';
2
- import useEmblaCarousel, {} from 'embla-carousel-react';
3
- import Image from 'next/image';
4
- import Link from 'next/link';
5
- import { useCallback, useEffect, useState } from 'react';
6
- import { twMerge } from 'tailwind-merge';
7
- import { useFavoriteGamesQuery, useGamesQuery, useMarkGameAsFavoriteMutation, useSessionQuery, useUnmarkGameAsFavoriteMutation, } from '../../client/hooks/index.js';
8
- import { ArrowLeftIcon, ArrowRightIcon, ChevronRightIcon, SpinnerIcon, Star01Icon, } from '../../icons/index.js';
9
- import { Button } from '../../ui/index.js';
10
- import { GameLaunchTrigger } from '../GameLaunch/index.js';
11
- export function Games__client(props) {
12
- const numOfRows = props.numOfRows ?? 1;
13
- const gamesQuery = useGamesQuery({
14
- first: (numOfRows + 1) * 6,
15
- filter: props.filter,
16
- });
17
- const games = gamesQuery.data?.pages
18
- .map((page) => page.edges.map((edge) => edge.node))
19
- .flat() ?? [];
20
- const [emblaRef, emblaApi] = useEmblaCarousel({
21
- align: 'start',
22
- slidesToScroll: 3,
23
- breakpoints: {
24
- '(min-width: 1024px)': {
25
- slidesToScroll: 6,
26
- },
27
- },
28
- });
29
- const [prevBtnDisabled, setPrevBtnDisabled] = useState(true);
30
- const [nextBtnDisabled, setNextBtnDisabled] = useState(true);
31
- const onPrevButtonClick = useCallback(() => emblaApi?.scrollPrev(), [emblaApi]);
32
- const onNextButtonClick = useCallback(async () => {
33
- if (!emblaApi?.canScrollNext() && gamesQuery.hasNextPage) {
34
- await gamesQuery.fetchNextPage();
35
- emblaApi?.reInit();
36
- await new Promise((resolve) => setTimeout(resolve, 1));
37
- }
38
- emblaApi?.scrollNext();
39
- }, [emblaApi, gamesQuery]);
40
- const onSelect = useCallback((emblaApi) => {
41
- setPrevBtnDisabled(!emblaApi?.canScrollPrev());
42
- setNextBtnDisabled(!emblaApi?.canScrollNext());
43
- }, []);
44
- useEffect(() => {
45
- if (!emblaApi)
46
- return;
47
- onSelect(emblaApi);
48
- emblaApi.on('reInit', onSelect).on('select', onSelect);
49
- }, [emblaApi, onSelect]);
50
- return (<div className={props.className}>
51
- <div className="flex items-center">
52
- <h2 className="text-lg font-semibold">{props.heading ?? 'Games'}</h2>
53
- <div className="grow"/>
54
- <div className="flex items-center justify-center gap-xl">
55
- <Link href={props.viewAllUrl ?? '/games'} className="text-button-tertiary-fg flex gap-sm text-sm font-semibold">
56
- See All
57
- <ChevronRightIcon className="size-5 lg:hidden"/>
58
- </Link>
59
- <div className="hidden lg:flex">
60
- <Button variant="outline" colorScheme="gray" className="rounded-r-none border-r-0" onClick={onPrevButtonClick} disabled={prevBtnDisabled} aria-label="Previous">
61
- <ArrowLeftIcon className="size-5"/>
62
- </Button>
63
- <Button variant="outline" colorScheme="gray" className="rounded-l-none" onClick={onNextButtonClick} disabled={nextBtnDisabled && !gamesQuery.hasNextPage
64
- ? true
65
- : gamesQuery.isFetchingNextPage} aria-label="Next">
66
- {gamesQuery.isFetchingNextPage ? (<SpinnerIcon className="size-5"/>) : (<ArrowRightIcon className="size-5"/>)}
67
- </Button>
68
- </div>
69
- </div>
70
- </div>
71
-
72
- <div ref={emblaRef} className="relative mt-lg lg:overflow-hidden">
73
- <div className={twMerge('grid auto-cols-[calc((100%-(0.375rem*2))/3)] grid-flow-col gap-sm lg:auto-cols-[calc((100%-(0.5rem*5))/6)] lg:gap-md', numOfRows === 3
74
- ? 'grid-rows-3'
75
- : numOfRows === 2
76
- ? 'grid-rows-2'
77
- : 'grid-rows-1')}>
78
- {games.map((game) => (<Item key={game.id} game={game}/>))}
79
- </div>
80
- </div>
81
- </div>);
82
- }
83
- function Item({ game }) {
84
- const sessionQuery = useSessionQuery();
85
- const session = sessionQuery.data;
86
- const favoriteGamesQuery = useFavoriteGamesQuery();
87
- const favoriteGames = favoriteGamesQuery.data ?? [];
88
- const markGameAsFavoriteMutation = useMarkGameAsFavoriteMutation();
89
- const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation();
90
- const markedAsFavorite = favoriteGames.some((favoriteGame) => favoriteGame.id === game.id);
91
- return (<GameLaunchTrigger game={game} className="relative block w-full shadow-sm">
92
- {session?.status === 'authenticated' && (<div role="button" onClick={(e) => {
93
- e.preventDefault();
94
- e.stopPropagation();
95
- if (markGameAsFavoriteMutation.isPending)
96
- return;
97
- if (unmarkGameAsFavoriteMutation.isPending)
98
- return;
99
- if (markedAsFavorite) {
100
- unmarkGameAsFavoriteMutation.mutate(game.reference);
101
- }
102
- else {
103
- markGameAsFavoriteMutation.mutate(game.reference);
104
- }
105
- }} aria-disabled={markGameAsFavoriteMutation.isPending ||
106
- unmarkGameAsFavoriteMutation.isPending} className="rounded-xs absolute right-2 top-2 flex size-9 items-center justify-center bg-black/65 blur-[0.5px]">
107
- <Star01Icon className={twMerge('size-5', markedAsFavorite
108
- ? 'fill-yellow-400 text-yellow-400'
109
- : 'text-white')}/>
110
- </div>)}
111
-
112
- <Image src={game.image} alt="" width={200} height={200} priority className="aspect-square w-full rounded-t-md object-cover"/>
113
-
114
- <span className="bg-bg-tertiary text-text-primary-brand block w-full truncate rounded-b-md px-2 py-2.5 text-center text-xs font-semibold">
115
- {game.name}
116
- </span>
117
- </GameLaunchTrigger>);
118
- }