@opexa/portal-components 0.0.428 → 0.0.430

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 (228) hide show
  1. package/dist/components/BetRecords/BetRecords.client.js +3 -2
  2. package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
  3. package/dist/components/DigitainLauncher/Loading.js +5 -0
  4. package/dist/components/Disclaimer/DisclaimerV1.js +9 -9
  5. package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
  6. package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
  7. package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
  8. package/dist/components/Disclaimer/TermsOfUse.js +13 -0
  9. package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
  10. package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
  11. package/dist/components/FeatureFlag/index.d.ts +1 -0
  12. package/dist/components/FeatureFlag/index.js +1 -0
  13. package/dist/components/Jackpots/Jackpots.module.css +184 -184
  14. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  15. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  16. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  17. package/dist/components/KYC/AutoOpen.js +40 -0
  18. package/dist/components/KYC/BasicInformation.d.ts +1 -0
  19. package/dist/components/KYC/BasicInformation.js +101 -0
  20. package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
  21. package/dist/components/KYC/CaptureIdDocument.js +219 -0
  22. package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
  23. package/dist/components/KYC/CaptureSelfie.js +285 -0
  24. package/dist/components/KYC/DisplayImage.d.ts +5 -0
  25. package/dist/components/KYC/DisplayImage.js +8 -0
  26. package/dist/components/KYC/FileUpload.d.ts +10 -0
  27. package/dist/components/KYC/FileUpload.js +72 -0
  28. package/dist/components/KYC/IdentityVerification.d.ts +1 -0
  29. package/dist/components/KYC/IdentityVerification.js +120 -0
  30. package/dist/components/KYC/Indicator.d.ts +1 -0
  31. package/dist/components/KYC/Indicator.js +8 -0
  32. package/dist/components/KYC/KYC.lazy.d.ts +6 -0
  33. package/dist/components/KYC/KYC.lazy.js +45 -0
  34. package/dist/components/KYC/KYCContext.d.ts +6 -0
  35. package/dist/components/KYC/KYCContext.js +2 -0
  36. package/dist/components/KYC/NoCameraError.d.ts +7 -0
  37. package/dist/components/KYC/NoCameraError.js +6 -0
  38. package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
  39. package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
  40. package/dist/components/KYC/PersonalInformation.d.ts +1 -0
  41. package/dist/components/KYC/PersonalInformation.js +122 -0
  42. package/dist/components/KYC/backup/Header.d.ts +1 -0
  43. package/dist/components/KYC/backup/Header.js +8 -0
  44. package/dist/components/KYC/backup/Indicator.d.ts +1 -0
  45. package/dist/components/KYC/backup/Indicator.js +9 -0
  46. package/dist/components/KYC/backup/KYC.d.ts +1 -0
  47. package/dist/components/KYC/backup/KYC.js +14 -0
  48. package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
  49. package/dist/components/KYC/backup/KYC.lazy.js +26 -0
  50. package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
  51. package/dist/components/KYC/backup/KYCContext.js +2 -0
  52. package/dist/components/KYC/backup/Step1.d.ts +1 -0
  53. package/dist/components/KYC/backup/Step1.js +13 -0
  54. package/dist/components/KYC/backup/Step2.d.ts +1 -0
  55. package/dist/components/KYC/backup/Step2.js +13 -0
  56. package/dist/components/KYC/backup/Step3.d.ts +1 -0
  57. package/dist/components/KYC/backup/Step3.js +13 -0
  58. package/dist/components/KYC/backup/Step4.d.ts +1 -0
  59. package/dist/components/KYC/backup/Step4.js +7 -0
  60. package/dist/components/KYC/backup/useKYC.d.ts +10 -0
  61. package/dist/components/KYC/backup/useKYC.js +8 -0
  62. package/dist/components/KYC/loadModels.d.ts +1 -0
  63. package/dist/components/KYC/loadModels.js +9 -0
  64. package/dist/components/KYC/useKYC.d.ts +25 -0
  65. package/dist/components/KYC/useKYC.js +38 -0
  66. package/dist/components/KYC/utils.d.ts +9 -0
  67. package/dist/components/KYC/utils.js +79 -0
  68. package/dist/components/Messages/Message.d.ts +1 -0
  69. package/dist/components/Messages/Message.js +35 -0
  70. package/dist/components/Messages/MessageContext.d.ts +6 -0
  71. package/dist/components/Messages/MessageContext.js +2 -0
  72. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  73. package/dist/components/Messages/MessagePopup.js +20 -0
  74. package/dist/components/Messages/MessageTrigger.d.ts +8 -0
  75. package/dist/components/Messages/MessageTrigger.js +19 -0
  76. package/dist/components/PortalProvider/CXDTokenObserver.d.ts +1 -0
  77. package/dist/components/PortalProvider/CXDTokenObserver.js +30 -0
  78. package/dist/components/Quests/CountdownTimer.d.ts +15 -0
  79. package/dist/components/Quests/CountdownTimer.js +33 -0
  80. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
  81. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
  82. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  83. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
  84. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
  85. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
  86. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
  87. package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
  88. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
  89. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
  90. package/dist/components/SignIn/SignIn.lazy.js +1 -1
  91. package/dist/components/SignIn/utils.d.ts +8 -0
  92. package/dist/components/SignIn/utils.js +26 -0
  93. package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
  94. package/dist/components/SignUp/SignUp.lazy.js +18 -0
  95. package/dist/components/SignUp/SignUpContext.d.ts +6 -0
  96. package/dist/components/SignUp/SignUpContext.js +2 -0
  97. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
  98. package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
  99. package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
  100. package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
  101. package/dist/components/SignUp/SignUpDefault/SignUpDefault.lazy.js +1 -1
  102. package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
  103. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
  104. package/dist/components/SignUp/SignUpForm.d.ts +1 -0
  105. package/dist/components/SignUp/SignUpForm.js +284 -0
  106. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
  107. package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
  108. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
  109. package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
  110. package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
  111. package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
  112. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
  113. package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
  114. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
  115. package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
  116. package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
  117. package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
  118. package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
  119. package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
  120. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
  121. package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
  122. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
  123. package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
  124. package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
  125. package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
  126. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
  127. package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
  128. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
  129. package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
  130. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
  131. package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
  132. package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
  133. package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
  134. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  135. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  136. package/dist/components/TransactionRecords/TransactionRecordsTable.js +5 -2
  137. package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
  138. package/dist/components/shared/IdDocumentField.client.js +204 -0
  139. package/dist/components/shared/IdDocumentField.d.ts +2 -0
  140. package/dist/components/shared/IdDocumentField.js +11 -0
  141. package/dist/components/shared/SelfieField.client.d.ts +20 -0
  142. package/dist/components/shared/SelfieField.client.js +327 -0
  143. package/dist/components/shared/SelfieField.d.ts +2 -0
  144. package/dist/components/shared/SelfieField.js +11 -0
  145. package/dist/constants/BranchCode.d.ts +4 -0
  146. package/dist/constants/BranchCode.js +42 -0
  147. package/dist/constants/Branches.d.ts +2 -0
  148. package/dist/constants/Branches.js +42 -0
  149. package/dist/handlers/index.d.ts +7 -7
  150. package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
  151. package/dist/handlers/postTransformIdFrontImage.js +67 -0
  152. package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
  153. package/dist/handlers/postTransformSelfieImage.js +71 -0
  154. package/dist/handlers.d.ts +43 -0
  155. package/dist/handlers.js +297 -0
  156. package/dist/icons/BellRingIcon.d.ts +2 -0
  157. package/dist/icons/BellRingIcon.js +4 -0
  158. package/dist/images/responsible-gaming-yellow.png +0 -0
  159. package/dist/services/queries.js +2687 -2687
  160. package/dist/styles/theme.css +719 -719
  161. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
  162. package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
  163. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  164. package/dist/third-parties/FacebookPixel/api.js +1 -0
  165. package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
  166. package/dist/third-parties/FacebookPixel/index.js +1 -0
  167. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
  168. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
  169. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  170. package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
  171. package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
  172. package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
  173. package/dist/third-parties/index.d.ts +2 -0
  174. package/dist/third-parties/index.js +2 -0
  175. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  176. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  177. package/dist/ui/Badge/Badge.d.ts +12 -12
  178. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  179. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  180. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  181. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  182. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  183. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  184. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  185. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  186. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  187. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  188. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  189. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  190. package/dist/ui/Dialog/Dialog.d.ts +231 -495
  191. package/dist/ui/Dialog/dialog.recipe.d.ts +15 -39
  192. package/dist/ui/Dialog/dialog.recipe.js +9 -1
  193. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  194. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  195. package/dist/ui/Field/Field.d.ts +21 -21
  196. package/dist/ui/Field/field.recipe.d.ts +3 -3
  197. package/dist/ui/Menu/Menu.d.ts +198 -198
  198. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  199. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  200. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  201. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  202. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  203. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  204. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  205. package/dist/ui/Popover/Popover.d.ts +55 -55
  206. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  207. package/dist/ui/Progress/Progress.d.ts +27 -27
  208. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  209. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  210. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  211. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  212. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  213. package/dist/ui/Select/Select.d.ts +45 -45
  214. package/dist/ui/Select/select.recipe.d.ts +3 -3
  215. package/dist/ui/Table/Table.d.ts +21 -21
  216. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  217. package/dist/ui/Table/table.recipe.d.ts +3 -3
  218. package/dist/utils/dataUrlToBlob.d.ts +1 -0
  219. package/dist/utils/dataUrlToBlob.js +11 -0
  220. package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
  221. package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
  222. package/dist/utils/getGameName.d.ts +1 -0
  223. package/dist/utils/getGameName.js +6 -0
  224. package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
  225. package/dist/utils/isBetween3amAnd3pm.js +5 -0
  226. package/dist/utils/resizeImageSize.d.ts +2 -0
  227. package/dist/utils/resizeImageSize.js +11 -0
  228. package/package.json +161 -161
@@ -140,7 +140,7 @@ export function BetRecords__client(props) {
140
140
  e.stopPropagation();
141
141
  }, children: "Clear" }) })) : (_jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })) })) })] }), _jsx(Portal, { children: _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: providerCollection.items.map((provider) => (_jsxs(Select.Item, { item: provider, children: [_jsx(Select.ItemText, { children: provider.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, provider.id))) }) }) }) })] }), _jsxs(Select.Root, { collection: statusCollection, value: state.status ? [state.status] : [], onValueChange: (details) => {
142
142
  const value = z
143
- .enum(['STARTED', 'SETTLED', 'CANCELLED'])
143
+ .enum(STATUSES)
144
144
  .safeParse(details.value.at(0)).data;
145
145
  firstPage();
146
146
  setState({
@@ -185,8 +185,9 @@ export function BetRecords__client(props) {
185
185
  delimiter: capitalize.delimiters.UNDERSCORE,
186
186
  }) }) }) }), _jsx(Table.Cell, { className: "!py-1", children: data.game.name }), _jsx(Table.Cell, { className: "!py-1", children: data.vendorRoundId })] }, data.id))) })] }) }), _jsxs("div", { className: "flex items-center justify-between gap-lg px-4 py-3", children: [_jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasPrevPage || loading, onClick: () => prev(), children: _jsx(ChevronLeftIcon, { className: "size-5" }) }), _jsxs("p", { className: "font-medium text-sm text-text-secondary-700", children: ["Page ", page, " of ", totalPages] }), _jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasNextPage || loading, onClick: () => next(), children: _jsx(ChevronRightIcon, { className: "size-5" }) })] })] }))] }));
187
187
  }
188
+ const STATUSES = ['CANCELLED', 'SETTLED', 'STARTED'];
188
189
  const statusCollection = createListCollection({
189
- items: ['STARTED', 'SETTLED', 'CANCELLED'],
190
+ items: STATUSES,
190
191
  itemToValue: (item) => item,
191
192
  itemToString: (item) => capitalize(item, {
192
193
  delimiter: capitalize.delimiters.UNDERSCORE,
@@ -0,0 +1 @@
1
+ export declare function Loading(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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" })] }) }));
5
+ }
@@ -24,21 +24,21 @@ export function DisclaimerV1(props) {
24
24
  })));
25
25
  const checked = globalStore.termsOfUse.accepted;
26
26
  const [warn, setWarn] = useState(false);
27
- return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, initialFocusEl: () => acceptTriggerRef.current, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 142, height: 30, className: "mx-auto h-auto w-[8.875rem]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 74, width: 88, className: "h-[5.5rem] w-auto shrink-0", draggable: false }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 185, className: "h-[3.875rem] w-auto shrink-0", draggable: false })] }), _jsx("p", { className: "mt-4 text-center text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "mt-5", children: _jsx("ul", { className: "space-y-1", children: items.map((item, index) => (_jsxs("li", { className: "flex items-start gap-md text-sm text-text-secondary-700", children: [_jsx("div", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-bg-brand-solid", children: _jsx("div", { className: "size-1.5 rounded-full bg-cyan-950" }) }), item] }, index))) }) }), _jsxs(Field.Root, { invalid: warn, className: "mt-2xl", children: [_jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
27
+ return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, initialFocusEl: () => acceptTriggerRef.current, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:min-h-[80vh] lg:w-[400px] lg:rounded-xl", style: { msOverflowStyle: 'none', scrollbarWidth: 'none' }, children: [_jsx(Image, { src: props.logo, alt: "", width: 142, height: 30, className: "mx-auto h-auto w-[8.875rem]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 74, width: 88, className: "h-[5.5rem] w-auto shrink-0", draggable: false }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 185, className: "h-[3.875rem] w-auto shrink-0", draggable: false })] }), _jsx("p", { className: "mt-4 text-center text-sm", children: "The following individuals are prohibited from registering or participating in this online gaming platform." }), _jsx("div", { className: "mt-5", children: _jsx("ul", { className: "space-y-1", children: items.map((item, index) => (_jsxs("li", { className: "flex items-start gap-md text-sm text-text-secondary-700", children: [_jsx("div", { className: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-bg-brand-solid", children: _jsx("div", { className: "size-1.5 rounded-full bg-cyan-950" }) }), item] }, index))) }) }), _jsxs(Field.Root, { invalid: warn, className: "mt-2xl", children: [_jsxs(Checkbox.Root, { checked: checked, onCheckedChange: (e) => {
28
28
  if (e.checked === 'indeterminate')
29
29
  return;
30
30
  globalStore.termsOfUse.setAccepted(e.checked);
31
31
  setWarn(!e.checked);
32
32
  }, children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsxs(Checkbox.Label, { className: "text-sm", children: ["I am at least 21 years of age, I accept the", ' ', _jsx(Link, { href: props.termsOfUseUrl ?? '/terms-of-use', className: "text-brand-400 underline underline-offset-2", onClick: () => {
33
33
  globalStore.termsOfUse.setOpen(false);
34
- }, children: "Terms of Use" }), ' ', "and I am not playing in open or public space."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.ErrorText, { className: "!mt-2xl flex items-center justify-center gap-2 text-error-600 text-sm", children: [_jsx(AlertCircleIcon, { className: "size-4 shrink-0 text-error-600" }), "Please agree to ", props.siteName, "\u2019s Terms of Use to proceed."] })] }), _jsx("p", { className: "mt-2xl text-sm", children: "Funds or credits in the account of any individual found ineligible to participate will be forfeited and turned over to the government as required by law." })] }), _jsx(Button, { ref: acceptTriggerRef, type: "button", className: "mt-4xl", onClick: disclaimer.close, disabled: !checked, children: "Accept" }), _jsx(Button, { variant: "outline", type: "button", className: "mt-lg", onClick: () => {
35
- if (!checked) {
36
- setWarn(true);
37
- }
38
- else {
39
- disclaimer.close();
40
- }
41
- }, children: "Exit" })] }) })] }) }));
34
+ }, children: "Terms of Use" }), ' ', "and I am not playing in open or public space."] }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.ErrorText, { className: "!mt-2xl flex items-center justify-center gap-2 text-error-600 text-sm", children: [_jsx(AlertCircleIcon, { className: "size-4 shrink-0 text-error-600" }), "Please agree to ", props.siteName, "\u2019s Terms of Use to proceed."] })] }), _jsx("p", { className: "mt-2xl text-sm", children: "Funds or credits in the account of any individual found ineligible to participate will be forfeited and turned over to the government as required by law." })] }), _jsxs("div", { className: 'flex w-full flex-col gap-lg', children: [_jsx(Button, { ref: acceptTriggerRef, type: "button", className: "mt-4xl", onClick: disclaimer.close, disabled: !checked, children: "Accept" }), _jsx(Button, { variant: "outline", type: "button", className: "mt-lg", onClick: () => {
35
+ if (!checked) {
36
+ setWarn(true);
37
+ }
38
+ else {
39
+ disclaimer.close();
40
+ }
41
+ }, children: "Exit" })] })] }) })] }) }));
42
42
  }
43
43
  const items = [
44
44
  'Persons below the legal gambling age of 21.',
@@ -0,0 +1,10 @@
1
+ import { type ImageProps } from 'next/image';
2
+ import type { ReactNode } from 'react';
3
+ export interface ResponsibleGamingProps {
4
+ responsibleGamingContent: string | ReactNode;
5
+ logo: ImageProps['src'];
6
+ open: boolean;
7
+ onCloseAction: () => void;
8
+ responsibleGamingLogo?: ImageProps['src'];
9
+ }
10
+ export declare function ResponsibleGaming({ logo, open, responsibleGamingContent, onCloseAction, ...props }: ResponsibleGamingProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Image, {} from 'next/image';
4
+ import pagcorLogo from '../../images/pagcor.png';
5
+ import responsibleGamingLogo from '../../images/responsible-gaming.png';
6
+ import { Button } from '../../ui/Button/index.js';
7
+ import { Dialog } from '../../ui/Dialog/index.js';
8
+ import { Portal } from '../../ui/Portal/index.js';
9
+ export function ResponsibleGaming({ logo, open, responsibleGamingContent, onCloseAction, ...props }) {
10
+ return (_jsx(Dialog.Root, { open: open, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "z-popover" }), _jsx(Dialog.Positioner, { className: "z-popover", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsx(Dialog.Title, { className: "text-brand-400 mt-3xl text-center text-lg font-semibold", children: "Responsible Gaming" }), _jsx(Dialog.Description, { className: "leading-2xl mt-xs text-sm", children: responsibleGamingContent }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx("div", { className: "w-full", children: _jsx(Button, { type: "button", className: "mt-3", onClick: () => {
11
+ onCloseAction();
12
+ }, children: "I Agree" }) })] }) })] }) }));
13
+ }
@@ -0,0 +1,11 @@
1
+ import { type ImageProps } from 'next/image';
2
+ import type { ReactNode } from 'react';
3
+ export interface TermsOfUseProps {
4
+ logo: ImageProps['src'];
5
+ open: boolean;
6
+ onCloseAction: () => void;
7
+ termsOfUseContent: string | ReactNode;
8
+ siteName: string;
9
+ responsibleGamingLogo?: ImageProps['src'];
10
+ }
11
+ export declare function TermsOfUse({ logo, open, onCloseAction, siteName, termsOfUseContent, ...props }: TermsOfUseProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Image, {} from 'next/image';
4
+ import pagcorLogo from '../../images/pagcor.png';
5
+ import responsibleGamingLogo from '../../images/responsible-gaming.png';
6
+ import { Button } from '../../ui/Button/index.js';
7
+ import { Dialog } from '../../ui/Dialog/index.js';
8
+ import { Portal } from '../../ui/Portal/index.js';
9
+ export function TermsOfUse({ logo, open, onCloseAction, siteName, termsOfUseContent, ...props }) {
10
+ return (_jsx(Dialog.Root, { open: open, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "z-popover" }), _jsx(Dialog.Positioner, { className: "z-popover", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsxs(Dialog.Title, { className: "text-brand-400 mt-3xl text-center text-lg font-semibold", children: [siteName, " Terms of Use"] }), _jsx(Dialog.Description, { className: "leading-2xl mt-xs text-sm", children: termsOfUseContent }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx("div", { className: "w-full", children: _jsx(Button, { type: "button", className: "mt-3", onClick: () => {
11
+ onCloseAction();
12
+ }, children: "I Agree" }) })] }) })] }) }));
13
+ }
@@ -0,0 +1 @@
1
+ export declare function FeatureFlag(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
+ import { useRouter, useSearchParams } from 'next/navigation';
4
+ import { useEffect } from 'react';
5
+ import { FEATURE_FLAG_KEY, useFeatureFlag, } from '../../client/hooks/useFeatureFlag.js';
6
+ export function FeatureFlag() {
7
+ const { featureFlagEnabled, setFeatureFlagEnabled } = useFeatureFlag();
8
+ const searchParams = useSearchParams();
9
+ const router = useRouter();
10
+ useEffect(() => {
11
+ const futureFlagParam = searchParams.get('future');
12
+ if (futureFlagParam !== null) {
13
+ const isEnabled = futureFlagParam === 'true';
14
+ setFeatureFlagEnabled(isEnabled);
15
+ localStorage.setItem(FEATURE_FLAG_KEY, isEnabled.toString());
16
+ }
17
+ }, [searchParams, setFeatureFlagEnabled]);
18
+ function disableFeatureFlag() {
19
+ setFeatureFlagEnabled(false);
20
+ localStorage.removeItem(FEATURE_FLAG_KEY);
21
+ const params = new URLSearchParams(searchParams.toString());
22
+ params.delete('future');
23
+ router.replace(`?${params.toString()}`, { scroll: false });
24
+ }
25
+ if (!featureFlagEnabled) {
26
+ return null;
27
+ }
28
+ return (_jsx("div", { className: "fixed bottom-3 flex w-full flex-col items-center justify-center", children: _jsxs("div", { className: "bg-black/70 p-1", children: ["Experimental features are enabled.", ' ', _jsxs("button", { onClick: () => disableFeatureFlag(), className: "cursor-pointer underline", children: [' ', "Disable"] })] }) }));
29
+ }
@@ -0,0 +1 @@
1
+ export * from './FeatureFlag';
@@ -0,0 +1 @@
1
+ export * from './FeatureFlag.js';
@@ -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
+ }