@opexa/portal-components 0.1.74 → 0.1.79

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 (89) hide show
  1. package/README.md +238 -0
  2. package/dist/client/hooks/useGlobalStore.d.ts +2 -8
  3. package/dist/client/hooks/useGlobalStore.js +1 -27
  4. package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +9 -1
  5. package/dist/client/hooks/useSignInMutation.js +2 -7
  6. package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +1 -1
  7. package/dist/client/hooks/useUpdateSessionMutation.js +1 -0
  8. package/dist/components/ForgotPassword/Crazywin/ForgotPassword.module.css +42 -42
  9. package/dist/components/Jackpots/Jackpots.module.css +288 -288
  10. package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
  11. package/dist/components/KYC/KYCNonPagCor/KYCVerificationStatus.lazy.js +2 -2
  12. package/dist/components/PortalProvider/SessionWatcher.js +19 -22
  13. package/dist/components/Promos/PromoCardClassNames.d.ts +11 -0
  14. package/dist/components/Promos/PromoCardClassNames.js +6 -0
  15. package/dist/components/SignIn/CrazyWin/MobileNumberSignIn.js +1 -0
  16. package/dist/components/SignIn/CrazyWin/NameAndPasswordSignIn.js +1 -0
  17. package/dist/components/SignIn/HappyBingo/MobileNumberSignIn.js +1 -0
  18. package/dist/components/SignIn/HappyBingo/NameAndPasswordSignIn.js +1 -0
  19. package/dist/components/SignIn/MobileNumberSignIn.js +2 -5
  20. package/dist/components/SignIn/SignIn.js +5 -1
  21. package/dist/components/SignIn/SignIn.lazy.d.ts +1 -1
  22. package/dist/components/SignIn/SignIn.lazy.js +16 -12
  23. package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +13 -26
  24. package/dist/components/SignUp/SignUpDefault/SignUpDefaultFormInternational.js +4 -11
  25. package/dist/components/TermsOfUse/TermsOfUseV2.lazy.js +4 -1
  26. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  27. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  28. package/dist/constants/StorageKey.d.ts +1 -0
  29. package/dist/constants/StorageKey.js +1 -0
  30. package/dist/handlers/deleteSession.js +2 -1
  31. package/dist/handlers/getSession.js +17 -1
  32. package/dist/images/phone-icon.svg +10 -10
  33. package/dist/middleware.js +11 -2
  34. package/dist/schemas/forgotPasswordSchema.d.ts +4 -4
  35. package/dist/server/services/signOut.js +2 -1
  36. package/dist/services/account.d.ts +2 -6
  37. package/dist/services/account.js +0 -1
  38. package/dist/services/queries.d.ts +1 -1
  39. package/dist/services/queries.js +3613 -3617
  40. package/dist/styles/theme.css +776 -776
  41. package/dist/types/index.d.ts +3 -0
  42. package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
  43. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
  44. package/dist/ui/Badge/Badge.d.ts +12 -12
  45. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  46. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  47. package/dist/ui/Carousel/Carousel.d.ts +99 -99
  48. package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
  49. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  50. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  51. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  52. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  53. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  54. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  55. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  56. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  57. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  58. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  59. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  60. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  61. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  62. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  63. package/dist/ui/Menu/Menu.d.ts +144 -144
  64. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  65. package/dist/ui/Popover/Popover.d.ts +121 -121
  66. package/dist/ui/Popover/popover.recipe.d.ts +11 -11
  67. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  68. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  69. package/dist/ui/Select/Select.d.ts +45 -45
  70. package/dist/ui/Select/select.recipe.d.ts +3 -3
  71. package/dist/ui/Table/Table.d.ts +21 -21
  72. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  73. package/dist/ui/Table/table.recipe.d.ts +3 -3
  74. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  75. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  76. package/dist/utils/session-invalid-reason.d.ts +3 -0
  77. package/dist/utils/session-invalid-reason.js +19 -0
  78. package/package.json +1 -1
  79. package/dist/components/BetDepositLimit/betDepositLimitStore.d.ts +0 -24
  80. package/dist/components/BetDepositLimit/betDepositLimitStore.js +0 -51
  81. package/dist/components/ResponsibleGamingLimits/ResponsibleGamingLimits.lazy.d.ts +0 -1
  82. package/dist/components/ResponsibleGamingLimits/ResponsibleGamingLimits.lazy.js +0 -117
  83. package/dist/components/UpdateMobilePhoneNumber/hooks/useAutoOpenWhenUnverified.d.ts +0 -6
  84. package/dist/components/UpdateMobilePhoneNumber/hooks/useAutoOpenWhenUnverified.js +0 -31
  85. package/dist/handlers/v4Cookies.d.ts +0 -9
  86. package/dist/handlers/v4Cookies.js +0 -49
  87. package/dist/images/game-providers/SEXYCASINO.webp +0 -0
  88. package/dist/utils/get-fingerprint.d.ts +0 -8
  89. package/dist/utils/get-fingerprint.js +0 -37
@@ -45,6 +45,7 @@ export function MobileNumberSignIn() {
45
45
  disclaimer: ctx.disclaimer,
46
46
  })));
47
47
  const signInMutation = useSignInMutation({
48
+ authApiBaseUrl: signInProps.authApiBaseUrl,
48
49
  versionSession: signInProps.versionSession,
49
50
  version: signInProps.version,
50
51
  onSuccess: async () => {
@@ -45,6 +45,7 @@ export function NameAndPasswordSignIn() {
45
45
  disclaimer: ctx.disclaimer,
46
46
  })));
47
47
  const signInMutation = useSignInMutation({
48
+ authApiBaseUrl: signInProps.authApiBaseUrl,
48
49
  versionSession: signInProps.versionSession,
49
50
  version: signInProps.version,
50
51
  onSuccess: async (authenticator) => {
@@ -46,6 +46,7 @@ export function MobileNumberSignIn() {
46
46
  disclaimer: ctx.disclaimer,
47
47
  })));
48
48
  const signInMutation = useSignInMutation({
49
+ authApiBaseUrl: signInProps.authApiBaseUrl,
49
50
  versionSession: signInProps.versionSession,
50
51
  version: signInProps.version,
51
52
  onSuccess: async () => {
@@ -42,6 +42,7 @@ export function NameAndPasswordSignIn() {
42
42
  disclaimer: ctx.disclaimer,
43
43
  })));
44
44
  const signInMutation = useSignInMutation({
45
+ authApiBaseUrl: signInProps.authApiBaseUrl,
45
46
  versionSession: signInProps.versionSession,
46
47
  version: signInProps.version,
47
48
  onSuccess: async (authenticator) => {
@@ -53,7 +53,7 @@ export function MobileNumberSignIn() {
53
53
  termsOfUse: ctx.termsOfUse,
54
54
  })));
55
55
  const signInMutation = useSignInMutation({
56
- versionSession: signInProps.versionSession,
56
+ authApiBaseUrl: signInProps.authApiBaseUrl,
57
57
  version: signInProps.version,
58
58
  onSuccess: async () => {
59
59
  step1Form.reset();
@@ -183,7 +183,7 @@ export function MobileNumberSignIn() {
183
183
  const step1Form = useForm({
184
184
  resolver: zodResolver(Step1Definition),
185
185
  defaultValues: {
186
- mobileNumber: globalStore.signIn.prefillMobileNumber ?? '',
186
+ mobileNumber: '',
187
187
  termsAccepted: globalStore.responsibleGaming.accepted &&
188
188
  globalStore.termsAndConditions.accepted
189
189
  ? true
@@ -201,9 +201,6 @@ export function MobileNumberSignIn() {
201
201
  globalStore.responsibleGaming.accepted,
202
202
  step1Form,
203
203
  ]);
204
- useEffect(() => {
205
- globalStore.signIn.setPrefillMobileNumber(null);
206
- }, [globalStore.signIn.setPrefillMobileNumber]);
207
204
  const step2Form = useForm({
208
205
  resolver: zodResolver(Step2Definition),
209
206
  defaultValues: {
@@ -3,12 +3,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import dynamic from 'next/dynamic';
4
4
  import { useShallow } from 'zustand/shallow';
5
5
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
+ import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
6
7
  const Component = dynamic(() => import('./SignIn.lazy.js').then((m) => m.SignIn), {
7
8
  ssr: false,
8
9
  loading: () => null,
9
10
  });
10
11
  export function SignIn(props) {
11
12
  const touched = useGlobalStore(useShallow((ctx) => ctx.signIn['~touched']));
12
- if (touched)
13
+ const sessionQuery = useSessionQuery();
14
+ const invalidSession = sessionQuery.data?.status === 'unauthenticated' &&
15
+ sessionQuery.data.reason === 'INVALID_SESSION';
16
+ if (touched || invalidSession)
13
17
  return _jsx(Component, { ...props });
14
18
  }
@@ -1,5 +1,5 @@
1
1
  import { type ImageProps } from 'next/image';
2
- import { type ReactNode } from 'react';
2
+ import type { ReactNode } from 'react';
3
3
  import type { ApiVersion, VersionSession } from '../../services/auth';
4
4
  import type { CountryCode } from '../../utils/countries/types';
5
5
  import { type UseSignInProps } from './useSignIn';
@@ -2,11 +2,15 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useIsMutating } from '@tanstack/react-query';
4
4
  import Image, {} from 'next/image';
5
- import { useEffect } from 'react';
5
+ import { useRouter } from 'next/navigation';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
  import { useShallow } from 'zustand/shallow';
8
8
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
9
+ import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
10
+ import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
9
11
  import { XIcon } from '../../icons/XIcon.js';
12
+ import { AlertDialog } from '../../ui/AlertDialog/index.js';
13
+ import { Button } from '../../ui/Button/index.js';
10
14
  import { Dialog } from '../../ui/Dialog/index.js';
11
15
  import { Portal } from '../../ui/Portal/index.js';
12
16
  import { getSignInMutationKey } from '../../utils/mutationKeys.js';
@@ -17,7 +21,10 @@ import { SignInPropsProvider, SignInProvider } from './SignInContext.js';
17
21
  import { SignInForm } from './SignInForm.js';
18
22
  import { useSignIn } from './useSignIn.js';
19
23
  export function SignIn(props) {
24
+ const router = useRouter();
20
25
  const signIn = useSignIn(props);
26
+ const sessionQuery = useSessionQuery();
27
+ const signOutMutation = useSignOutMutation();
21
28
  const signInStore = useGlobalStore(useShallow((ctx) => ctx.signIn));
22
29
  const globalStore = useGlobalStore(useShallow((ctx) => ({
23
30
  termsAndConditions: ctx.termsAndConditions,
@@ -27,17 +34,14 @@ export function SignIn(props) {
27
34
  const showLoader = mutating &&
28
35
  props.versionSession === 'Inplay' &&
29
36
  (signIn.type === 'NAME_AND_PASSWORD' || signIn.type === 'MOBILE_NUMBER');
30
- useEffect(() => {
31
- if (signInStore.open && signInStore.pendingType) {
32
- signIn.setType(signInStore.pendingType);
33
- signInStore.setPendingType(null);
34
- }
35
- }, [
36
- signInStore.open,
37
- signInStore.pendingType,
38
- signInStore.setPendingType,
39
- signIn,
40
- ]);
37
+ if (sessionQuery.data?.status === 'unauthenticated' &&
38
+ sessionQuery.data.reason === 'INVALID_SESSION') {
39
+ return (_jsx(AlertDialog.Root, { role: "alertdialog", open: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(AlertDialog.Backdrop, {}), _jsx(AlertDialog.Positioner, { children: _jsxs(AlertDialog.Content, { children: [_jsxs(AlertDialog.Body, { children: [_jsx(AlertDialog.Title, { children: "Invalid Session" }), _jsx(AlertDialog.Description, { children: "Your session is no longer valid. Please login again." })] }), _jsx(AlertDialog.Footer, { children: _jsx(Button, { disabled: signOutMutation.isPending, onClick: async () => {
40
+ await signOutMutation.mutateAsync();
41
+ router.refresh();
42
+ router.push('/');
43
+ }, children: "OK" }) })] }) })] }) }));
44
+ }
41
45
  return (_jsx(SignInPropsProvider, { value: props, children: _jsx(SignInProvider, { value: signIn, children: _jsx(Dialog.Root, { open: signInStore.open, onOpenChange: (details) => {
42
46
  signInStore.setOpen(details.open);
43
47
  }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, onExitComplete: () => {
@@ -64,8 +64,6 @@ export function SignUpDefaultForm() {
64
64
  kyc: ctx.kyc,
65
65
  termsOfUse: ctx.termsOfUse,
66
66
  setFirstTimeSignUp: ctx.setFirstTimeSignUp,
67
- setPrefillMobileNumber: ctx.signIn.setPrefillMobileNumber,
68
- setPendingType: ctx.signIn.setPendingType,
69
67
  })));
70
68
  const search = useSearchParams();
71
69
  const signUpMutation = useSignUpMutation();
@@ -350,6 +348,12 @@ export function SignUpDefaultForm() {
350
348
  featureFlag.enabled) {
351
349
  await inplaySignUpMutation.mutateAsync({
352
350
  ...signUpInput,
351
+ ...(step1Form.getValues('firstName') && {
352
+ firstName: step1Form.getValues('firstName'),
353
+ }),
354
+ ...(step1Form.getValues('lastName') && {
355
+ lastName: step1Form.getValues('lastName'),
356
+ }),
353
357
  mobileNumberVerificationCode: verificationCode.join(''),
354
358
  });
355
359
  const name = mobileNumberParser.format(mobileNumber);
@@ -362,12 +366,9 @@ export function SignUpDefaultForm() {
362
366
  });
363
367
  }
364
368
  catch {
365
- globalStore.setPrefillMobileNumber(name);
366
- globalStore.setPendingType('MOBILE_NUMBER');
367
- globalStore.signUp.setOpen(false);
368
- globalStore.signIn.setOpen(true);
369
- step1Form.reset();
370
- step2Form.reset();
369
+ toaster.error({
370
+ description: 'Account created successfully, but automatic sign in failed. Please use Log In below to continue.',
371
+ });
371
372
  setStep(1);
372
373
  return;
373
374
  }
@@ -405,7 +406,10 @@ export function SignUpDefaultForm() {
405
406
  });
406
407
  const ok = await pollLogin();
407
408
  if (!ok) {
408
- globalStore.signIn.setOpen(true);
409
+ toaster.error({
410
+ description: 'Account created successfully, but automatic sign in failed. Please use Log In below to continue.',
411
+ });
412
+ setStep(1);
409
413
  return;
410
414
  }
411
415
  globalStore.signUp.setOpen(false);
@@ -415,23 +419,6 @@ export function SignUpDefaultForm() {
415
419
  setStep(1);
416
420
  }
417
421
  catch (error) {
418
- if (error instanceof Error &&
419
- (error.name === 'MemberAccountAlreadyExistsError' ||
420
- (signUpProps.versionSession === 'Inplay' &&
421
- featureFlag.enabled &&
422
- error.name === 'MobileNumberNotAvailableError'))) {
423
- toaster.warning({
424
- description: 'This mobile number is already registered. Please try to log in.',
425
- });
426
- globalStore.setPrefillMobileNumber(mobileNumber);
427
- globalStore.setPendingType('MOBILE_NUMBER');
428
- globalStore.signUp.setOpen(false);
429
- globalStore.signIn.setOpen(true);
430
- step1Form.reset();
431
- step2Form.reset();
432
- setStep(1);
433
- return;
434
- }
435
422
  toaster.error({
436
423
  description: error instanceof Error
437
424
  ? error.message
@@ -25,8 +25,8 @@ import { ChevronDownIcon } from '../../../icons/ChevronDownIcon.js';
25
25
  import { HelpCircleIcon } from '../../../icons/HelpCircleIcon.js';
26
26
  import pagcorLogo from '../../../images/pagcor-round-icon.png';
27
27
  import responsibleGamingLogo from '../../../images/responsible-gaming-gold.png';
28
- import { ObjectType } from '../../../services/ObjectType.js';
29
28
  import { checkInplayMemberExists } from '../../../services/auth.js';
29
+ import { ObjectType } from '../../../services/ObjectType.js';
30
30
  import { Button } from '../../../ui/Button/index.js';
31
31
  import { Checkbox } from '../../../ui/Checkbox/index.js';
32
32
  import { Field } from '../../../ui/Field/index.js';
@@ -63,8 +63,6 @@ export function SignUpDefaultFormInternational() {
63
63
  termsAndConditions: ctx.termsAndConditions,
64
64
  responsibleGaming: ctx.responsibleGaming,
65
65
  kyc: ctx.kyc,
66
- setPrefillMobileNumber: ctx.signIn.setPrefillMobileNumber,
67
- setPendingType: ctx.signIn.setPendingType,
68
66
  })));
69
67
  const search = useSearchParams();
70
68
  const signUpMutation = useSignUpMutation();
@@ -187,11 +185,6 @@ export function SignUpDefaultFormInternational() {
187
185
  toaster.warning({
188
186
  description: 'This mobile number is already registered. Please try to log in.',
189
187
  });
190
- globalStore.setPrefillMobileNumber(countryCodeParser(areaCode, data.mobileNumber));
191
- globalStore.setPendingType('MOBILE_NUMBER');
192
- globalStore.signUp.setOpen(false);
193
- globalStore.signIn.setOpen(true);
194
- step1Form.reset();
195
188
  return;
196
189
  }
197
190
  }
@@ -302,10 +295,10 @@ export function SignUpDefaultFormInternational() {
302
295
  });
303
296
  const ok = await pollLogin();
304
297
  if (!ok) {
305
- toaster.success({
306
- description: 'Account created successfully. Please log in to continue.',
298
+ toaster.error({
299
+ description: 'Account created successfully, but automatic sign in failed. Please use Log In below to continue.',
307
300
  });
308
- globalStore.signIn.setOpen(true);
301
+ setStep(1);
309
302
  return;
310
303
  }
311
304
  globalStore.signUp.setOpen(false);
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState } from 'react';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { useShallow } from 'zustand/shallow';
6
6
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
7
+ import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
7
8
  import { TERMS_OF_USE_PENDING_STORAGE_KEY } from '../../constants/index.js';
8
9
  import { ScrollToBottomIcon } from '../../icons/ScrollToBottomIcon.js';
9
10
  import { ScrollToTopIcon } from '../../icons/ScrollToTopIcon.js';
@@ -13,6 +14,7 @@ import { Portal } from '../../ui/Portal/index.js';
13
14
  import { openDisclaimerIfAllowed } from '../../utils/disclaimer-cooldown.js';
14
15
  export function TermsOfUseV2({ logo, content }) {
15
16
  const scrollableContentRef = useRef(null);
17
+ const sessionQuery = useSessionQuery();
16
18
  const [hasReachedBottom, setHasReachedBottom] = useState(false);
17
19
  const [isAtBottom, setIsAtBottom] = useState(false);
18
20
  const globalStore = useGlobalStore(useShallow((ctx) => ({
@@ -40,7 +42,8 @@ export function TermsOfUseV2({ logo, content }) {
40
42
  setHasReachedBottom(false);
41
43
  }
42
44
  }, [isOpen]);
43
- return (_jsx(Dialog.Root, { open: isOpen, onOpenChange: (details) => {
45
+ return (_jsx(Dialog.Root, { open: isOpen &&
46
+ sessionQuery.data?.status !== 'unauthenticated', onOpenChange: (details) => {
44
47
  globalStore.termsOfUse.setOpen(details.open);
45
48
  if (!details.open) {
46
49
  globalStore.termsOfUse.setAccepted(true);
@@ -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-bg-tertiary);
64
- --second: var(--color-bg-quaternary);
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-bg-primary-alt);
157
- border-radius: 9999px;
158
- }
159
-
160
- .scrollArea::-webkit-scrollbar-thumb {
161
- background-color: var(--color-bg-quaternary);
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-bg-tertiary);
64
+ --second: var(--color-bg-quaternary);
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-bg-primary-alt);
157
+ border-radius: 9999px;
158
+ }
159
+
160
+ .scrollArea::-webkit-scrollbar-thumb {
161
+ background-color: var(--color-bg-quaternary);
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
+ }