@opexa/portal-components 0.0.379 → 0.0.380

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 (200) hide show
  1. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  2. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  3. package/dist/components/DigitainLauncher/Loading.js +1 -1
  4. package/dist/components/Jackpots/Jackpots.module.css +184 -0
  5. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.d.ts +12 -1
  6. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +1 -1
  7. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.d.ts +2 -1
  8. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +20 -18
  9. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  10. package/dist/components/Jackpots/JackpotsList/JackpotsList.d.ts +15 -1
  11. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +1 -1
  12. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  13. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.d.ts +3 -2
  14. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +46 -42
  15. package/dist/components/Jackpots/JackpotsList/JackpotsListItemGameProviders.js +1 -1
  16. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.d.ts +3 -2
  17. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +52 -48
  18. package/dist/components/Jackpots/JackpotsList/useJackpotsListItemData.js +15 -15
  19. package/dist/components/KYC/BasicInformation.js +1 -1
  20. package/dist/components/KYC/IdentityVerification.js +1 -1
  21. package/dist/components/KYC/KYC.lazy.js +1 -1
  22. package/dist/components/KYC/PersonalInformation.js +1 -1
  23. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  24. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  25. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  26. package/dist/icons/LinkBrokenIcon.js +4 -0
  27. package/dist/services/queries.js +2674 -2674
  28. package/dist/styles/theme.css +716 -709
  29. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  30. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  31. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  32. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  33. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  34. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  35. package/dist/ui/Menu/Menu.d.ts +90 -90
  36. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  37. package/dist/ui/Progress/Progress.d.ts +27 -27
  38. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  39. package/dist/ui/QrCode/QrCode.d.ts +40 -40
  40. package/dist/ui/QrCode/qrCode.recipe.d.ts +8 -8
  41. package/dist/ui/Select/Select.d.ts +45 -45
  42. package/dist/ui/Select/select.recipe.d.ts +3 -3
  43. package/dist/ui/Table/Table.d.ts +21 -21
  44. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  45. package/dist/ui/Table/table.recipe.d.ts +3 -3
  46. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  47. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  48. package/package.json +161 -161
  49. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  50. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  51. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  52. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  53. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  54. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  55. package/dist/components/FeatureFlag/index.d.ts +0 -1
  56. package/dist/components/FeatureFlag/index.js +0 -1
  57. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  58. package/dist/components/KYC/AutoOpen.js +0 -40
  59. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  60. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  61. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  62. package/dist/components/KYC/CaptureSelfie.js +0 -285
  63. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  64. package/dist/components/KYC/DisplayImage.js +0 -8
  65. package/dist/components/KYC/FileUpload.d.ts +0 -10
  66. package/dist/components/KYC/FileUpload.js +0 -72
  67. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  68. package/dist/components/KYC/NoCameraError.js +0 -6
  69. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  70. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  71. package/dist/components/KYC/backup/Header.d.ts +0 -1
  72. package/dist/components/KYC/backup/Header.js +0 -8
  73. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  74. package/dist/components/KYC/backup/Indicator.js +0 -9
  75. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  76. package/dist/components/KYC/backup/KYC.js +0 -14
  77. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  78. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  79. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  80. package/dist/components/KYC/backup/KYCContext.js +0 -2
  81. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  82. package/dist/components/KYC/backup/Step1.js +0 -13
  83. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  84. package/dist/components/KYC/backup/Step2.js +0 -13
  85. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  86. package/dist/components/KYC/backup/Step3.js +0 -13
  87. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  88. package/dist/components/KYC/backup/Step4.js +0 -7
  89. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  90. package/dist/components/KYC/backup/useKYC.js +0 -8
  91. package/dist/components/KYC/loadModels.d.ts +0 -1
  92. package/dist/components/KYC/loadModels.js +0 -9
  93. package/dist/components/KYC/utils.d.ts +0 -9
  94. package/dist/components/KYC/utils.js +0 -79
  95. package/dist/components/Messages/Message.d.ts +0 -1
  96. package/dist/components/Messages/Message.js +0 -35
  97. package/dist/components/Messages/MessageContext.d.ts +0 -6
  98. package/dist/components/Messages/MessageContext.js +0 -2
  99. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  100. package/dist/components/Messages/MessagePopup.js +0 -20
  101. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  102. package/dist/components/Messages/MessageTrigger.js +0 -19
  103. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  104. package/dist/components/Quests/CountdownTimer.js +0 -33
  105. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  106. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  107. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  108. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  109. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  110. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  111. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  112. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  113. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  114. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  115. package/dist/components/SignIn/utils.d.ts +0 -8
  116. package/dist/components/SignIn/utils.js +0 -26
  117. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  118. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  119. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  120. package/dist/components/SignUp/SignUpContext.js +0 -2
  121. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  122. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  123. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  124. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  125. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  126. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  127. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  128. package/dist/components/SignUp/SignUpForm.js +0 -284
  129. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  130. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  131. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  132. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  133. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  134. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  135. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  136. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  137. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  138. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  139. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  140. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  141. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  142. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  143. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  144. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  145. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  146. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  147. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  148. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  149. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  150. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  151. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  152. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  153. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  154. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  155. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  156. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  157. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  158. package/dist/components/shared/IdDocumentField.client.js +0 -204
  159. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  160. package/dist/components/shared/IdDocumentField.js +0 -11
  161. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  162. package/dist/components/shared/SelfieField.client.js +0 -327
  163. package/dist/components/shared/SelfieField.d.ts +0 -2
  164. package/dist/components/shared/SelfieField.js +0 -11
  165. package/dist/constants/BranchCode.d.ts +0 -4
  166. package/dist/constants/BranchCode.js +0 -42
  167. package/dist/constants/Branches.d.ts +0 -2
  168. package/dist/constants/Branches.js +0 -42
  169. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  170. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  171. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  172. package/dist/handlers/postTransformSelfieImage.js +0 -71
  173. package/dist/handlers.d.ts +0 -43
  174. package/dist/handlers.js +0 -297
  175. package/dist/icons/BellRingIcon.d.ts +0 -2
  176. package/dist/icons/BellRingIcon.js +0 -4
  177. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  178. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  179. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  180. package/dist/third-parties/FacebookPixel/api.js +0 -1
  181. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  182. package/dist/third-parties/FacebookPixel/index.js +0 -1
  183. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  184. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  185. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  186. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  187. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  188. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  189. package/dist/third-parties/index.d.ts +0 -2
  190. package/dist/third-parties/index.js +0 -2
  191. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  192. package/dist/utils/dataUrlToBlob.js +0 -11
  193. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  194. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  195. package/dist/utils/getGameName.d.ts +0 -1
  196. package/dist/utils/getGameName.js +0 -6
  197. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  198. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  199. package/dist/utils/resizeImageSize.d.ts +0 -2
  200. package/dist/utils/resizeImageSize.js +0 -11
@@ -0,0 +1,7 @@
1
+ import { type UseDisclosureReturn } from '../../client/hooks/useDisclosure';
2
+ interface GoogleDisconnectProps {
3
+ onConfirmAction?: (ctx: UseDisclosureReturn) => React.ReactNode;
4
+ children?: (ctx: UseDisclosureReturn) => React.ReactNode;
5
+ }
6
+ export declare function GoogleDisconnect(props: GoogleDisconnectProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useDisclosure, } from '../../client/hooks/useDisclosure.js';
4
+ import { LinkBrokenIcon } from '../../icons/LinkBrokenIcon.js';
5
+ import { XIcon } from '../../icons/XIcon.js';
6
+ import { Dialog } from '../../ui/Dialog/index.js';
7
+ import { Portal } from '../../ui/Portal/index.js';
8
+ export function GoogleDisconnect(props) {
9
+ const disclosure = useDisclosure();
10
+ return (_jsxs(_Fragment, { children: [props.children?.(disclosure), _jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: disclosure.open, onOpenChange: (details) => disclosure.setOpen(details.open), closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto min-h-auto max-w-[25rem] overflow-y-auto rounded-xl p-6", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col ", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(LinkBrokenIcon, {}) }), _jsx("h2", { className: "mb-1 text-center font-semibold text-lg xl:mt-xl", children: "Disconnect Google Account" }), _jsx("p", { className: "text-center text-sm text-text-tertiary-600 leading-2xl", children: "Are you sure you want to disconnect your Google account? This may affect your ability to log in or sync data." })] }), _jsx("div", { className: "pt-6", children: props.onConfirmAction?.(disclosure) })] }) })] }) })] }));
11
+ }
@@ -1,5 +1,5 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  export function Loading() {
4
- return (_jsx("div", { className: "flex h-[calc(100vh-400px)] w-full items-center justify-center px-4", children: _jsxs("div", { className: "flex flex-col items-center space-y-4", children: [_jsx("div", { className: "border-blue-500 h-10 w-10 animate-spin rounded-full border-4 border-t-transparent" }), _jsx("p", { className: "text-gray-700 text-lg font-medium", children: "Loading Sports Book\u2026" })] }) }));
4
+ return (_jsx("div", { className: "flex h-[calc(100vh-400px)] w-full items-center justify-center px-4", children: _jsxs("div", { className: "flex flex-col items-center space-y-4", children: [_jsx("div", { className: "h-10 w-10 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }), _jsx("p", { className: "font-medium text-gray-700 text-lg", children: "Loading Sports Book\u2026" })] }) }));
5
5
  }
@@ -0,0 +1,184 @@
1
+ @keyframes arrow-green-flash {
2
+ 0% {
3
+ color: #abefc6;
4
+ }
5
+ 100% {
6
+ color: #079455;
7
+ }
8
+ }
9
+
10
+ .animate-arrow-green-flash-1 {
11
+ animation: arrow-green-flash 0.4s infinite;
12
+ animation-delay: -0.2s;
13
+ }
14
+
15
+ .animate-arrow-green-flash-2 {
16
+ animation: arrow-green-flash 0.4s infinite;
17
+ animation-delay: -0.1s;
18
+ }
19
+
20
+ .animate-arrow-green-flash-3 {
21
+ animation: arrow-green-flash 0.4s infinite;
22
+ }
23
+
24
+ @keyframes arrow-red-flash {
25
+ 0%,
26
+ 100% {
27
+ color: #f97066;
28
+ }
29
+ 50% {
30
+ color: #fecdca;
31
+ }
32
+ }
33
+
34
+ .animate-arrow-red-flash-1 {
35
+ animation: arrow-red-flash 0.4s infinite;
36
+ }
37
+
38
+ .animate-arrow-red-flash-2 {
39
+ animation: arrow-red-flash 0.4s infinite;
40
+ animation-delay: -0.1s;
41
+ }
42
+
43
+ .animate-arrow-red-flash-3 {
44
+ animation: arrow-red-flash 0.4s infinite;
45
+ animation-delay: -0.2s;
46
+ }
47
+
48
+ /* Animated BG */
49
+ @keyframes rotate {
50
+ to {
51
+ transform: rotate(1turn);
52
+ }
53
+ }
54
+
55
+ .light-rays {
56
+ position: absolute;
57
+ top: 0;
58
+ left: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ overflow: hidden;
62
+
63
+ --first: var(--color-jackpot-rays-primary);
64
+ --second: var(--color-jackpot-rays-secondary);
65
+ }
66
+
67
+ .light-rays::before,
68
+ .light-rays::after {
69
+ content: '';
70
+ position: absolute;
71
+ top: var(--light-rays-top, 150px);
72
+ left: calc(50% - 90px);
73
+ margin: -100vmax;
74
+ width: 200vmax;
75
+ height: 200vmax;
76
+ opacity: 0.6;
77
+ transform-origin: center;
78
+ }
79
+
80
+ .light-rays::before {
81
+ background: conic-gradient(
82
+ var(--first) 0deg 7.2deg,
83
+ var(--second) 7.2deg 14.4deg,
84
+ var(--first) 14.4deg 21.6deg,
85
+ var(--second) 21.6deg 28.8deg,
86
+ var(--first) 28.8deg 36deg,
87
+ var(--second) 36deg 43.2deg,
88
+ var(--first) 43.2deg 50.4deg,
89
+ var(--second) 50.4deg 57.6deg,
90
+ var(--first) 57.6deg 64.8deg,
91
+ var(--second) 64.8deg 72deg,
92
+ var(--first) 72deg 79.2deg,
93
+ var(--second) 79.2deg 86.4deg,
94
+ var(--first) 86.4deg 93.6deg,
95
+ var(--second) 93.6deg 100.8deg,
96
+ var(--first) 100.8deg 108deg,
97
+ var(--second) 108deg 115.2deg,
98
+ var(--first) 115.2deg 122.4deg,
99
+ var(--second) 122.4deg 129.6deg,
100
+ var(--first) 129.6deg 136.8deg,
101
+ var(--second) 136.8deg 144deg,
102
+ var(--first) 144deg 151.2deg,
103
+ var(--second) 151.2deg 158.4deg,
104
+ var(--first) 158.4deg 165.6deg,
105
+ var(--second) 165.6deg 172.8deg,
106
+ var(--first) 172.8deg 180deg,
107
+ var(--second) 180deg 187.2deg,
108
+ var(--first) 187.2deg 194.4deg,
109
+ var(--second) 194.4deg 201.6deg,
110
+ var(--first) 201.6deg 208.8deg,
111
+ var(--second) 208.8deg 216deg,
112
+ var(--first) 216deg 223.2deg,
113
+ var(--second) 223.2deg 230.4deg,
114
+ var(--first) 230.4deg 237.6deg,
115
+ var(--second) 237.6deg 244.8deg,
116
+ var(--first) 244.8deg 252deg,
117
+ var(--second) 252deg 259.2deg,
118
+ var(--first) 259.2deg 266.4deg,
119
+ var(--second) 266.4deg 273.6deg,
120
+ var(--first) 273.6deg 280.8deg,
121
+ var(--second) 280.8deg 288deg,
122
+ var(--first) 288deg 295.2deg,
123
+ var(--second) 295.2deg 302.4deg,
124
+ var(--first) 302.4deg 309.6deg,
125
+ var(--second) 309.6deg 316.8deg,
126
+ var(--first) 316.8deg 324deg,
127
+ var(--second) 324deg 331.2deg,
128
+ var(--first) 331.2deg 338.4deg,
129
+ var(--second) 338.4deg 345.6deg,
130
+ var(--first) 345.6deg 352.8deg,
131
+ var(--second) 352.8deg 360deg
132
+ );
133
+ animation: rotate 20s linear infinite;
134
+ }
135
+
136
+ @media (max-width: 1024px) {
137
+ .light-rays::before,
138
+ .light-rays::after {
139
+ left: auto;
140
+ right: 11%;
141
+ }
142
+ }
143
+
144
+ /* ScrollArea.module.css */
145
+ .scrollArea {
146
+ overflow-y: scroll;
147
+ padding-right: 4px;
148
+ }
149
+
150
+ /* WebKit-based browsers */
151
+ .scrollArea::-webkit-scrollbar {
152
+ width: 8px;
153
+ }
154
+
155
+ .scrollArea::-webkit-scrollbar-track {
156
+ background: var(--color-jackpot-table-scrollbar-track);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-jackpot-table-scrollbar-thumb);
162
+ border-radius: 9999px;
163
+ }
164
+
165
+ @keyframes waveColor {
166
+ 0%,
167
+ 2.5% {
168
+ color: var(--wave-highlight-color);
169
+ }
170
+ 2.51%,
171
+ 100% {
172
+ color: var(--color-brand-300);
173
+ }
174
+ }
175
+
176
+ .animate-wave-color-success {
177
+ --wave-highlight-color: var(--color-success-800);
178
+ animation: waveColor 4s ease-in-out infinite;
179
+ }
180
+
181
+ .animate-wave-color-error {
182
+ --wave-highlight-color: var(--color-error-600);
183
+ animation: waveColor 4s ease-in-out infinite;
184
+ }
@@ -1,7 +1,18 @@
1
1
  import { type CSSProperties } from 'react';
2
- interface ClassNameEntries {
2
+ export interface ClassNameEntries {
3
3
  root?: string;
4
4
  itemRoot?: string;
5
+ jackpotAmountRoot?: string;
6
+ latestPayoutRoot?: string;
7
+ latestPayoutBadgeRoot?: string;
8
+ latestPayoutBadgeIcon?: string;
9
+ latestPayoutAmount?: string;
10
+ progressBarRoot?: string;
11
+ progressBarTrack?: string;
12
+ recentPayoutsRoot?: string;
13
+ recentPayoutsTableRoot?: string;
14
+ recentPayoutsTableHeadRow?: string;
15
+ recentPayoutsTableBodyRow?: string;
5
16
  }
6
17
  interface StyleEntries {
7
18
  root?: CSSProperties;
@@ -64,5 +64,5 @@ export function JackpotsCarousel({ style, className, ...props }) {
64
64
  const classNames = isString(className)
65
65
  ? { root: className }
66
66
  : (className ?? {});
67
- return (_jsxs("div", { style: styles.root, className: classNames.root, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "font-semibold text-lg", children: props.heading ?? 'Jackpots' }), _jsxs("div", { className: "flex items-center md:gap-3xl", children: [_jsxs(Link, { href: props.viewAllUrl ?? '/jackpots', className: "flex gap-sm font-semibold text-button-tertiary-fg text-sm", children: ["See All", _jsx(ChevronRightIcon, { className: "size-5 lg:hidden" })] }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: "rounded-l-none", "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] })] }), _jsx("div", { className: "relative mt-lg lg:overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-2.5", children: jackpots.map((jackpot) => (_jsx(JackpotsCarouselItemContext, { value: jackpot, children: _jsx(JackpotsCarouselItem, { style: styles.itemRoot, className: classNames.itemRoot, viewAllUrl: props.viewAllUrl, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) }) })] }));
67
+ return (_jsxs("div", { style: styles.root, className: classNames.root, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "font-semibold text-lg", children: props.heading ?? 'Jackpots' }), _jsxs("div", { className: "flex items-center md:gap-3xl", children: [_jsxs(Link, { href: props.viewAllUrl ?? '/jackpots', className: "flex gap-sm font-semibold text-button-tertiary-fg text-sm", children: ["See All", _jsx(ChevronRightIcon, { className: "size-5 lg:hidden" })] }), _jsxs("div", { className: "hidden lg:flex", children: [_jsx(Button, { disabled: !canScrollPrev, onClick: scrollPrev, variant: "outline", colorScheme: "gray", className: "rounded-r-none border-r-0", "aria-label": "Previous", children: _jsx(ArrowLeftIcon, { className: "size-5" }) }), _jsxs(Button, { disabled: !canScrollNext, onClick: scrollNext, variant: "outline", colorScheme: "gray", className: "rounded-l-none", "aria-label": "Next", children: [_jsx("span", { className: "sr-only", children: "Next" }), _jsx(ArrowRightIcon, { className: "size-5" })] })] })] })] }), _jsx("div", { className: "relative mt-lg lg:overflow-hidden", ref: emblaRef, children: _jsx("div", { className: "flex gap-2.5", children: jackpots.map((jackpot) => (_jsx(JackpotsCarouselItemContext, { value: jackpot, children: _jsx(JackpotsCarouselItem, { style: styles.itemRoot, className: classNames, viewAllUrl: props.viewAllUrl, animate: props.animate, customJackpotChestImage: props.customJackpotChestImage, jackpotProfileShape: props.jackpotProfileShape }) }, jackpot.id))) }) })] }));
68
68
  }
@@ -1,7 +1,8 @@
1
1
  import { type CSSProperties } from 'react';
2
+ import type { ClassNameEntries } from './JackpotsCarousel';
2
3
  export interface JackpotsCarouselItemProps {
3
4
  style?: CSSProperties;
4
- className?: string;
5
+ className?: ClassNameEntries;
5
6
  /** @default "/jackpots" */
6
7
  viewAllUrl?: string;
7
8
  customJackpotChestImage?: {
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { Progress } from '@ark-ui/react/progress';
4
4
  import { format } from 'date-fns';
5
5
  import isMobile from 'is-mobile';
@@ -24,8 +24,8 @@ import { capitalize } from '../../../utils/capitalize.js';
24
24
  import { formatNumber } from '../../../utils/formatNumber.js';
25
25
  import { mask } from '../../../utils/mask.js';
26
26
  import { parseDecimal } from '../../../utils/parseDecimal.js';
27
+ import styles from '../Jackpots.module.css';
27
28
  import { useJackpotsCarouselItemContext } from './JackpotsCarouselContext.js';
28
- import styles from './JackpotsCarouselItem.module.css';
29
29
  export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = true, customJackpotChestImage, jackpotProfileShape = 'oval', }) {
30
30
  const jackpot = useJackpotsCarouselItemContext();
31
31
  const jackpotPayoutsQuery = useJackpotPayoutsQuery({
@@ -72,18 +72,20 @@ export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = t
72
72
  }
73
73
  }, [isMobileDevice]);
74
74
  useEffect(() => {
75
- if (isMobile() && mainTooltipOpen) {
75
+ if (isMobileDevice && mainTooltipOpen) {
76
76
  const timeout = setTimeout(() => setMainTooltipOpen(false), 3000);
77
77
  return () => clearTimeout(timeout);
78
78
  }
79
- }, [mainTooltipOpen]);
79
+ }, [mainTooltipOpen, isMobileDevice]);
80
80
  useEffect(() => {
81
- if (isMobile() && minLimitTooltipOpen) {
81
+ if (isMobileDevice && minLimitTooltipOpen) {
82
82
  const timeout = setTimeout(() => setMinLimitTooltipOpen(false), 3000);
83
83
  return () => clearTimeout(timeout);
84
84
  }
85
- }, [minLimitTooltipOpen]);
86
- return (_jsxs("div", { className: twMerge('relative flex w-full shrink-0 rounded-2xl border border-border-primary bg-bg-tertiary p-3 text-center lg:gap-4 lg:p-5', className), style: style, children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [isPayingOut ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx("span", { className: "full size-1.5 animate-pulse rounded bg-utility-success-500" }), "Paying Out"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "Accumulating"] })), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: "mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl", children: formatNumber(jackpotAmount, {
85
+ }, [minLimitTooltipOpen, isMobileDevice]);
86
+ const ProfileIcon = () => jackpotProfileShape === 'oval' ? (_jsxs("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: [_jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }), _jsxs("div", { className: "absolute right-0 bottom-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 font-bold text-brand-950 text-xs", children: [latestJackpotPayout?.multiplier, "x"] })] })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" }), _jsxs("div", { className: "-right-0 absolute bottom-0 z-20 flex h-7 w-7 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 text-center font-bold text-brand-950 text-xs", children: [latestJackpotPayout?.multiplier, "x"] })] }));
87
+ const PayoutBadge = () => (_jsxs("div", { className: twMerge('flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs', className?.latestPayoutBadgeRoot), children: [_jsx(Trophy01Icon, { className: twMerge('size-3.5 text-utility-brand-600', className?.latestPayoutBadgeIcon) }), "Latest Payout"] }));
88
+ return (_jsxs("div", { className: twMerge('relative flex w-full shrink-0 rounded-2xl border border-border-primary bg-bg-tertiary p-3 text-center lg:gap-4 lg:p-5', className?.itemRoot), style: style, children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [isPayingOut ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx("span", { className: "full size-1.5 animate-pulse rounded bg-utility-success-500" }), "Paying Out"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "Accumulating"] })), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
87
89
  currency: localeInfo.currency.code,
88
90
  minDecimalPlaces: 2,
89
91
  maxDecimalPlaces: 2,
@@ -93,19 +95,19 @@ export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = t
93
95
  : customJackpotChestImage.image.closed
94
96
  : isPayingOut
95
97
  ? openChest
96
- : closeChest, alt: "closeChest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', customJackpotChestImage?.style?.image) }) })] }), latestJackpotPayout.amount ? (_jsx("div", { children: _jsxs("div", { className: "relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex", children: [jackpotProfileShape === 'oval' ? (_jsxs("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: [_jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }), _jsxs("div", { className: "absolute right-0 bottom-0 flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 font-bold text-brand-950 text-xs", children: [latestJackpotPayout.multiplier, "x"] })] })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" }), _jsxs("div", { className: "-right-0 absolute bottom-0 z-20 flex h-7 w-7 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 text-center font-bold text-brand-950 text-xs", children: [latestJackpotPayout.multiplier, "x"] })] })), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs", children: [_jsx(Trophy01Icon, { className: "size-3.5 text-utility-brand-600" }), "Recent Payout"] }), _jsx("div", { className: "font-semibold", children: mask(latestJackpotPayout.member.name, {
98
+ : closeChest, alt: "closeChest", className: twMerge('size-full h-25 w-25 p-2 lg:h-37.5 lg:w-37.5', customJackpotChestImage?.style?.image) }) })] }), _jsx("div", { className: twMerge('relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex', className?.latestPayoutRoot), children: latestJackpotPayout?.amount ? (_jsxs(_Fragment, { children: [_jsx(ProfileIcon, {}), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: mask(latestJackpotPayout.member.name, {
97
99
  totalCharsCount: 6,
98
- }) }), _jsx("div", { className: "text-2xl text-brand-400", children: formatNumber(latestJackpotPayout.amount, {
100
+ }) }), _jsx("div", { className: twMerge('text-2xl text-brand-400', className?.latestPayoutAmount), children: formatNumber(latestJackpotPayout.amount, {
99
101
  currency: localeInfo.currency.code,
100
102
  minDecimalPlaces: 2,
101
103
  maxDecimalPlaces: 2,
102
- }) })] })] }) })) : (_jsxs("div", { className: "relative mt-4 hidden w-full gap-4 rounded-lg bg-bg-primary p-4 lg:flex", children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "firstPlace", className: "size-full h-auto w-[4.125rem] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsxs("div", { className: "flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs", children: [_jsx(Trophy01Icon, { className: "size-3.5 text-utility-brand-600" }), "Recent Payout"] }), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] }))] }) }) }), _jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-1 flex justify-between", children: [_jsx("div", { className: "font-semibold text-text-primary-900 text-xs", "aria-live": "polite", children: formatNumber(0, {
104
+ }) })] })] })) : (_jsxs(_Fragment, { children: [_jsx(Image, { width: 66, height: 87, src: firstPlace, alt: "firstPlace", className: "size-full h-auto w-[4.125rem] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the tournament!" })] })] })) })] }) }) }), _jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-1 flex justify-between", children: [_jsx("div", { className: "font-semibold text-text-primary-900 text-xs", "aria-live": "polite", children: formatNumber(0, {
103
105
  currency: localeInfo.currency.code,
104
106
  compact: true,
105
- }) }), _jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [isPayingOut ? (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-red-flash-1']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-red-flash-2']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-red-flash-3']), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) })] })) : (_jsxs("div", { className: "flex w-6 items-center", children: [_jsx("div", { className: twMerge('absolute left-0', styles['animate-arrow-green-flash-1']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-1.5', styles['animate-arrow-green-flash-2']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }), _jsx("div", { className: twMerge('absolute left-3', styles['animate-arrow-green-flash-3']), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) })] })), _jsx("div", { className: "font-semibold text-text-primary-900 text-xs", children: formatNumber(jackpot?.maximumJackpotPoolLimit, {
107
+ }) }), _jsxs("div", { className: "relative flex items-center justify-end gap-1.5", children: [isPayingOut ? (_jsx("div", { className: "flex w-6 items-center", children: [0, 1.5, 3].map((left, i) => (_jsx("div", { className: twMerge(`absolute left-${left}`, styles[`animate-arrow-red-flash-${i + 1}`]), children: _jsx(ChevronLeftIcon, { className: "size-4.5" }) }, i))) })) : (_jsx("div", { className: "flex w-6 items-center", children: [0, 1.5, 3].map((left, i) => (_jsx("div", { className: twMerge(`absolute left-${left}`, styles[`animate-arrow-green-flash-${i + 1}`]), children: _jsx(ChevronRightIcon, { className: "size-4.5" }) }, i))) })), _jsx("div", { className: "font-semibold text-text-primary-900 text-xs", children: formatNumber(jackpot?.maximumJackpotPoolLimit, {
106
108
  currency: localeInfo.currency.code,
107
109
  compact: true,
108
- }) })] })] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: getPercentage(jackpot.pool, jackpot.maximumJackpotPoolLimit), "aria-valuenow": getPercentage(jackpot.pool, jackpot.maximumJackpotPoolLimit), "aria-valuemax": 100, "aria-label": "Jackpot progress", children: _jsx(Progress.Track, { className: "h-full overflow-hidden rounded-full bg-bg-primary", children: _jsxs(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: [_jsxs(Tooltip.Root, { ...(isMobileDevice
110
+ }) })] })] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: getPercentage(jackpot.pool, jackpot.maximumJackpotPoolLimit), "aria-valuenow": getPercentage(jackpot.pool, jackpot.maximumJackpotPoolLimit), "aria-valuemax": 100, "aria-label": "Jackpot progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsxs(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: [_jsxs(Tooltip.Root, { ...(isMobileDevice
109
111
  ? {
110
112
  open: mainTooltipOpen,
111
113
  onOpenChange: (details) => setMainTooltipOpen(details.open),
@@ -125,23 +127,23 @@ export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = t
125
127
  currency: localeInfo.currency.code,
126
128
  compact: true,
127
129
  })} Play now for your chance to win big! 🔥`
128
- : getAccumulatingJackpotDescription(Number(jackpot?.pool) ?? 0, Number(jackpot?.maximumJackpotPoolLimit) ?? 0) })] })] }), _jsxs("div", { className: "z-1 hidden flex-1 space-y-4 lg:block", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "font-semibold text-lg text-text-primary-900", children: jackpotPayouts.length ? 'Recent payouts' : 'Starting soon!' })] }), _jsxs(Link, { className: "flex font-semibold text-button-tertiary-fg text-sm", href: viewAllUrl ?? '/jackpots', children: ["See details", _jsx(ChevronRightIcon, { className: "size-5" })] })] }), _jsx("div", { className: twMerge('max-h-[17rem] overflow-y-scroll', styles.scrollArea), children: _jsx("div", { className: "overflow-hidden rounded-xl border-gray-200", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsx("tr", { className: "h-8 whitespace-nowrap bg-bg-secondary text-left font-medium text-text-tertiary-600 text-xs", children: [
130
+ : getAccumulatingJackpotDescription(Number(jackpot?.pool) ?? 0, Number(jackpot?.maximumJackpotPoolLimit) ?? 0) })] })] }), _jsxs("div", { className: twMerge('z-1 hidden flex-1 space-y-4 lg:block', className?.recentPayoutsRoot), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "font-semibold text-lg text-text-primary-900", children: jackpotPayouts.length ? 'Recent payouts' : 'Starting soon!' })] }), _jsxs(Link, { className: "flex font-semibold text-button-tertiary-fg text-sm", href: viewAllUrl ?? '/jackpots', children: ["See details", _jsx(ChevronRightIcon, { className: "size-5" })] })] }), _jsx("div", { className: twMerge('max-h-[17rem] overflow-y-scroll', styles.scrollArea), children: _jsx("div", { className: "overflow-hidden rounded-xl border-gray-200", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsx("tr", { className: twMerge('h-8 whitespace-nowrap bg-bg-secondary text-left font-medium text-text-tertiary-600 text-xs', className?.recentPayoutsTableHeadRow), children: [
129
131
  'Player',
130
132
  'Game Provider',
131
133
  'Multiplier',
132
134
  'Prize',
133
135
  'Timestamp',
134
136
  ].map((header) => (_jsx("th", { className: "px-4", children: header }, header))) }) }), _jsx("tbody", { children: jackpotPayouts.length
135
- ? jackpotPayouts.map((jackpotPayout, i) => (_jsxs("tr", { className: "whitespace-nowrap bg-bg-primary text-left text-sm text-text-secondary-700", children: [_jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: mask(jackpotPayout.member.name, {
137
+ ? jackpotPayouts.map((jp, i) => (_jsxs("tr", { className: twMerge('whitespace-nowrap bg-bg-primary text-left text-sm text-text-secondary-700', className?.recentPayoutsTableBodyRow), children: [_jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: mask(jp.member.name, {
136
138
  totalCharsCount: 6,
137
- }) }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: capitalize(jackpotPayout.game?.provider ?? '-', {
139
+ }) }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: capitalize(jp.game?.provider ?? '-', {
138
140
  delimiter: capitalize.delimiters.UNDERSCORE,
139
- }) }), _jsxs("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: [jackpotPayout.multiplier, "x"] }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4 text-brand-400", children: formatNumber(jackpotPayout.amount, {
141
+ }) }), _jsxs("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: [jp.multiplier, "x"] }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4 text-brand-400", children: formatNumber(jp.amount, {
140
142
  currency: localeInfo.currency.code,
141
143
  minDecimalPlaces: 2,
142
144
  maxDecimalPlaces: 2,
143
- }) }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: format(new Date(jackpotPayout.dateTimeCreated), 'dd MMM yyyy h:mm a') })] }, i)))
144
- : Array.from({ length: 10 }).map((_, i) => (_jsxs("tr", { className: "bg-bg-primary text-sm text-text-secondary-700", children: [_jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" }), _jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" }), _jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" }), _jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" }), _jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" })] }, i))) })] }) }) })] }), isPayingOut && animate && (_jsx("div", { className: twMerge(styles['light-rays'], 'absolute top-0 right-0 rounded-2xl [--light-rays-top:25%] lg:[--light-rays-top:9.375rem]') }))] }));
145
+ }) }), _jsx("td", { className: "h-12 border-border-secondary border-t-2 px-4", children: format(new Date(jp.dateTimeCreated), 'dd MMM yyyy h:mm a') })] }, i)))
146
+ : Array.from({ length: 10 }).map((_, i) => (_jsx("tr", { className: twMerge('bg-bg-primary text-sm text-text-secondary-700', className?.recentPayoutsTableBodyRow), children: Array.from({ length: 5 }).map((_, j) => (_jsx("td", { className: "h-12 border-border-secondary border-t-2", children: "-" }, j))) }, i))) })] }) }) })] }), isPayingOut && animate && (_jsx("div", { className: twMerge(styles['light-rays'], 'absolute top-0 right-0 rounded-2xl [--light-rays-top:25%] lg:[--light-rays-top:9.375rem]') }))] }));
145
147
  }
146
148
  const getAccumulatingJackpotDescription = (part, total) => {
147
149
  const percentage = total === 0 ? 0 : (part / total) * 100;