@opexa/portal-components 0.0.444 → 0.0.446

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 (204) hide show
  1. package/dist/client/hooks/useAvailableQuestsQuery.js +1 -0
  2. package/dist/components/Banner/Banner.client.d.ts +12 -0
  3. package/dist/components/Banner/Banner.client.js +49 -0
  4. package/dist/components/DigitainLauncher/Loading.js +1 -1
  5. package/dist/components/Jackpots/Jackpots.d.ts +1 -1
  6. package/dist/components/Jackpots/Jackpots.js +0 -3
  7. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  8. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarousel.js +1 -4
  9. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.d.ts +1 -1
  10. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.js +4 -1
  11. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  12. package/dist/components/Jackpots/JackpotsList/JackpotsList.js +0 -3
  13. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  14. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.d.ts +1 -1
  15. package/dist/components/Jackpots/JackpotsList/JackpotsListItemDesktop.js +3 -0
  16. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.d.ts +1 -1
  17. package/dist/components/Jackpots/JackpotsList/JackpotsListItemMobile.js +3 -0
  18. package/dist/components/KYC/BasicInformation.js +1 -1
  19. package/dist/components/KYC/IdentityVerification.js +1 -1
  20. package/dist/components/KYC/KYC.lazy.js +1 -1
  21. package/dist/components/KYC/PersonalInformation.js +1 -1
  22. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  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/constants/EnvVar.d.ts +1 -1
  26. package/dist/services/queries.js +2702 -2702
  27. package/dist/styles/theme.css +719 -719
  28. package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
  29. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
  30. package/dist/ui/Badge/Badge.d.ts +12 -12
  31. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  32. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  33. package/dist/ui/Carousel/Carousel.d.ts +99 -99
  34. package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
  35. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  36. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  37. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  38. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  39. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  40. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  41. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  42. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  43. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  44. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  45. package/dist/ui/Field/Field.d.ts +21 -21
  46. package/dist/ui/Field/field.recipe.d.ts +3 -3
  47. package/dist/ui/Menu/Menu.d.ts +90 -90
  48. package/dist/ui/Menu/menu.recipe.d.ts +5 -5
  49. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  50. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  51. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  52. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  53. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  54. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  55. package/dist/ui/Popover/Popover.d.ts +55 -55
  56. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  57. package/dist/ui/Progress/Progress.d.ts +27 -27
  58. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  59. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  60. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  61. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  62. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  63. package/dist/ui/Select/Select.d.ts +45 -45
  64. package/dist/ui/Select/select.recipe.d.ts +3 -3
  65. package/dist/ui/Table/Table.d.ts +21 -21
  66. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  67. package/dist/ui/Table/table.recipe.d.ts +3 -3
  68. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  69. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  70. package/package.json +162 -162
  71. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
  72. package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
  73. package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
  74. package/dist/components/Disclaimer/TermsOfUse.js +0 -13
  75. package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
  76. package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
  77. package/dist/components/FeatureFlag/index.d.ts +0 -1
  78. package/dist/components/FeatureFlag/index.js +0 -1
  79. package/dist/components/KYC/AutoOpen.d.ts +0 -1
  80. package/dist/components/KYC/AutoOpen.js +0 -40
  81. package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
  82. package/dist/components/KYC/CaptureIdDocument.js +0 -219
  83. package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
  84. package/dist/components/KYC/CaptureSelfie.js +0 -285
  85. package/dist/components/KYC/DisplayImage.d.ts +0 -5
  86. package/dist/components/KYC/DisplayImage.js +0 -8
  87. package/dist/components/KYC/FileUpload.d.ts +0 -10
  88. package/dist/components/KYC/FileUpload.js +0 -72
  89. package/dist/components/KYC/NoCameraError.d.ts +0 -7
  90. package/dist/components/KYC/NoCameraError.js +0 -6
  91. package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
  92. package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
  93. package/dist/components/KYC/backup/Header.d.ts +0 -1
  94. package/dist/components/KYC/backup/Header.js +0 -8
  95. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  96. package/dist/components/KYC/backup/Indicator.js +0 -9
  97. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  98. package/dist/components/KYC/backup/KYC.js +0 -14
  99. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  100. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  101. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  102. package/dist/components/KYC/backup/KYCContext.js +0 -2
  103. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  104. package/dist/components/KYC/backup/Step1.js +0 -13
  105. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  106. package/dist/components/KYC/backup/Step2.js +0 -13
  107. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  108. package/dist/components/KYC/backup/Step3.js +0 -13
  109. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  110. package/dist/components/KYC/backup/Step4.js +0 -7
  111. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  112. package/dist/components/KYC/backup/useKYC.js +0 -8
  113. package/dist/components/KYC/loadModels.d.ts +0 -1
  114. package/dist/components/KYC/loadModels.js +0 -9
  115. package/dist/components/KYC/utils.d.ts +0 -9
  116. package/dist/components/KYC/utils.js +0 -79
  117. package/dist/components/Messages/Message.d.ts +0 -1
  118. package/dist/components/Messages/Message.js +0 -35
  119. package/dist/components/Messages/MessageContext.d.ts +0 -6
  120. package/dist/components/Messages/MessageContext.js +0 -2
  121. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  122. package/dist/components/Messages/MessagePopup.js +0 -20
  123. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  124. package/dist/components/Messages/MessageTrigger.js +0 -19
  125. package/dist/components/Quests/CountdownTimer.d.ts +0 -15
  126. package/dist/components/Quests/CountdownTimer.js +0 -33
  127. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
  128. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
  129. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
  130. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
  131. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
  132. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
  133. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
  134. package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
  135. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
  136. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
  137. package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
  138. package/dist/components/SignUp/SignUp.lazy.js +0 -18
  139. package/dist/components/SignUp/SignUpContext.d.ts +0 -6
  140. package/dist/components/SignUp/SignUpContext.js +0 -2
  141. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
  142. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
  143. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
  144. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
  145. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
  146. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
  147. package/dist/components/SignUp/SignUpForm.d.ts +0 -1
  148. package/dist/components/SignUp/SignUpForm.js +0 -284
  149. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
  150. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
  151. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
  152. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
  153. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
  154. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
  155. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
  156. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
  157. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
  158. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
  159. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
  160. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
  161. package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
  162. package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
  163. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
  164. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
  165. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
  166. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
  167. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
  168. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
  169. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
  170. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
  171. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
  172. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
  173. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
  174. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
  175. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
  176. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
  177. package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
  178. package/dist/components/shared/IdDocumentField.client.js +0 -204
  179. package/dist/components/shared/IdDocumentField.d.ts +0 -2
  180. package/dist/components/shared/IdDocumentField.js +0 -11
  181. package/dist/components/shared/SelfieField.client.d.ts +0 -20
  182. package/dist/components/shared/SelfieField.client.js +0 -327
  183. package/dist/components/shared/SelfieField.d.ts +0 -2
  184. package/dist/components/shared/SelfieField.js +0 -11
  185. package/dist/constants/BranchCode.d.ts +0 -4
  186. package/dist/constants/BranchCode.js +0 -42
  187. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  188. package/dist/handlers/postTransformIdFrontImage.js +0 -67
  189. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  190. package/dist/handlers/postTransformSelfieImage.js +0 -71
  191. package/dist/handlers.d.ts +0 -43
  192. package/dist/handlers.js +0 -297
  193. package/dist/icons/BellRingIcon.d.ts +0 -2
  194. package/dist/icons/BellRingIcon.js +0 -4
  195. package/dist/utils/dataUrlToBlob.d.ts +0 -1
  196. package/dist/utils/dataUrlToBlob.js +0 -11
  197. package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
  198. package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
  199. package/dist/utils/getGameName.d.ts +0 -1
  200. package/dist/utils/getGameName.js +0 -6
  201. package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
  202. package/dist/utils/isBetween3amAnd3pm.js +0 -5
  203. package/dist/utils/resizeImageSize.d.ts +0 -2
  204. package/dist/utils/resizeImageSize.js +0 -11
@@ -14,6 +14,7 @@ export const useAvailableQuestsQuery = (config) => {
14
14
  ? false
15
15
  : sessionQuery.data?.status === 'authenticated',
16
16
  queryKey: getAvailableQuestsQueryKey(),
17
+ refetchInterval: 5000,
17
18
  queryFn: async ({ signal }) => {
18
19
  const session = await queryClient.fetchQuery({
19
20
  queryKey: getSessionQueryKey(),
@@ -0,0 +1,12 @@
1
+ import type { ImageProps } from 'next/image';
2
+ export interface BannerEntry {
3
+ src: ImageProps['src'];
4
+ redirectUrl?: string;
5
+ }
6
+ export interface BannerProps {
7
+ banners: BannerEntry[];
8
+ imageWidth?: number | [mobile: number, desktop: number];
9
+ imageHeight?: number | [mobile: number, desktop: number];
10
+ className?: string;
11
+ }
12
+ export declare function Banner__client(props: BannerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import emblaCarouselAutoplay from 'embla-carousel-autoplay';
4
+ import useEmblaCarousel, {} from 'embla-carousel-react';
5
+ import isMobile from 'is-mobile';
6
+ import Image from 'next/image';
7
+ import Link from 'next/link';
8
+ import { Fragment, useEffect, useState } from 'react';
9
+ import { twMerge } from 'tailwind-merge';
10
+ import { dataAttr } from '../../utils/dataAttr.js';
11
+ export function Banner__client(props) {
12
+ const [emblaRef, emblaApi] = useEmblaCarousel({
13
+ loop: true,
14
+ align: 'start',
15
+ }, [
16
+ emblaCarouselAutoplay({
17
+ playOnInit: true,
18
+ delay: 5000,
19
+ }),
20
+ ]);
21
+ const [currentIndex, setCurrentIndex] = useState(0);
22
+ useEffect(() => {
23
+ function handler(detail) {
24
+ setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
25
+ }
26
+ emblaApi?.on('scroll', handler);
27
+ emblaApi?.on('init', handler);
28
+ return () => {
29
+ emblaApi?.on('init', handler);
30
+ emblaApi?.off('scroll', handler);
31
+ };
32
+ }, [emblaApi]);
33
+ const imageWidth = !props.imageWidth
34
+ ? [400, 1200]
35
+ : Array.isArray(props.imageWidth)
36
+ ? props.imageWidth
37
+ : [props.imageWidth, props.imageWidth];
38
+ const imageHeight = !props.imageHeight
39
+ ? [225, 300]
40
+ : Array.isArray(props.imageHeight)
41
+ ? props.imageHeight
42
+ : [props.imageHeight, props.imageHeight];
43
+ return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
44
+ const img = (_jsx(Image, { src: banner.src, alt: "", width: isMobile() ? imageWidth[0] : imageWidth[1], height: isMobile() ? imageHeight[0] : imageHeight[1], className: "block h-auto w-full", priority: index === 0 }));
45
+ return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", "aria-label": `Open ${banner.redirectUrl}`, children: img })) }, index));
46
+ }) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
47
+ emblaApi?.scrollTo(index);
48
+ }, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
49
+ }
@@ -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
  }
@@ -1,4 +1,4 @@
1
1
  import { type JackpotsCarouselProps } from './JackpotsCarousel/JackpotsCarousel';
2
2
  import { type JackpotsListProps } from './JackpotsList/JackpotsList';
3
- export type JackpotsProps = (JackpotsCarouselProps | JackpotsListProps);
3
+ export type JackpotsProps = JackpotsCarouselProps | JackpotsListProps;
4
4
  export declare function Jackpots(props: JackpotsProps): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -6,9 +6,6 @@ export async function Jackpots(props) {
6
6
  await prefetchJackpotsQuery({
7
7
  first: 100,
8
8
  filter: {
9
- status: {
10
- equal: 'ACTIVE',
11
- },
12
9
  deleted: {
13
10
  equal: false,
14
11
  },
@@ -1,184 +1,184 @@
1
- @keyframes arrow-green-flash {
2
- 0% {
3
- color: #abefc6;
4
- }
5
- 100% {
6
- color: #079455;
7
- }
8
- }
9
-
10
- .animate-arrow-green-flash-1 {
11
- animation: arrow-green-flash 0.4s infinite;
12
- animation-delay: -0.2s;
13
- }
14
-
15
- .animate-arrow-green-flash-2 {
16
- animation: arrow-green-flash 0.4s infinite;
17
- animation-delay: -0.1s;
18
- }
19
-
20
- .animate-arrow-green-flash-3 {
21
- animation: arrow-green-flash 0.4s infinite;
22
- }
23
-
24
- @keyframes arrow-red-flash {
25
- 0%,
26
- 100% {
27
- color: #f97066;
28
- }
29
- 50% {
30
- color: #fecdca;
31
- }
32
- }
33
-
34
- .animate-arrow-red-flash-1 {
35
- animation: arrow-red-flash 0.4s infinite;
36
- }
37
-
38
- .animate-arrow-red-flash-2 {
39
- animation: arrow-red-flash 0.4s infinite;
40
- animation-delay: -0.1s;
41
- }
42
-
43
- .animate-arrow-red-flash-3 {
44
- animation: arrow-red-flash 0.4s infinite;
45
- animation-delay: -0.2s;
46
- }
47
-
48
- /* Animated BG */
49
- @keyframes rotate {
50
- to {
51
- transform: rotate(1turn);
52
- }
53
- }
54
-
55
- .light-rays {
56
- position: absolute;
57
- top: 0;
58
- left: 0;
59
- right: 0;
60
- bottom: 0;
61
- overflow: hidden;
62
-
63
- --first: var(--color-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
+ @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
+ }
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import useEmblaCarousel from 'embla-carousel-react';
4
4
  import { isString } from 'lodash-es';
5
5
  import Link from 'next/link';
6
- import { useCallback, useEffect, useState } from 'react';
6
+ import { useCallback, useEffect, useState, } from 'react';
7
7
  import { useJackpotsQuery } from '../../../client/hooks/useJackpotsQuery.js';
8
8
  import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
9
9
  import { ArrowRightIcon } from '../../../icons/ArrowRightIcon.js';
@@ -43,9 +43,6 @@ export function JackpotsCarousel({ style, className, ...props }) {
43
43
  const jackpotsQuery = useJackpotsQuery({
44
44
  first: 100,
45
45
  filter: {
46
- status: {
47
- equal: 'ACTIVE',
48
- },
49
46
  deleted: {
50
47
  equal: false,
51
48
  },
@@ -18,4 +18,4 @@ export interface JackpotsCarouselItemProps {
18
18
  animate?: boolean;
19
19
  jackpotProfileShape?: 'oval' | 'star';
20
20
  }
21
- export declare function JackpotsCarouselItem({ style, className, viewAllUrl, animate, customJackpotChestImage, jackpotProfileShape, }: JackpotsCarouselItemProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function JackpotsCarouselItem({ style, className, viewAllUrl, animate, customJackpotChestImage, jackpotProfileShape, }: JackpotsCarouselItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -85,6 +85,9 @@ export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = t
85
85
  }, [minLimitTooltipOpen, isMobileDevice]);
86
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" }), _jsx("div", { className: twMerge('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', className?.latestPayoutRankRoot), children: "1st" })] })) : (_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" }), _jsx("div", { className: twMerge('-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', className?.latestPayoutRankRoot), children: "1st" })] }));
87
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
+ if (jackpot.status === 'DISABLED' && jackpot.drawing !== true) {
89
+ return null;
90
+ }
88
91
  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, {
89
92
  currency: localeInfo.currency.code,
90
93
  minDecimalPlaces: 2,
@@ -143,7 +146,7 @@ export function JackpotsCarouselItem({ style, className, viewAllUrl, animate = t
143
146
  minDecimalPlaces: 2,
144
147
  maxDecimalPlaces: 2,
145
148
  }) }), _jsx("td", { className: twMerge('h-12 border-border-secondary border-t-2 px-4', className?.recentPayoutsTableBodyData), 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: twMerge("h-12 border-border-secondary border-t-2", className?.recentPayoutsTableBodyData), 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]') }))] }));
149
+ : 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: twMerge('h-12 border-border-secondary border-t-2', className?.recentPayoutsTableBodyData), 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]') }))] }));
147
150
  }
148
151
  const getAccumulatingJackpotDescription = (part, total) => {
149
152
  const percentage = total === 0 ? 0 : (part / total) * 100;