@opexa/portal-components 0.0.456 → 0.0.458

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 (72) hide show
  1. package/dist/client/hooks/useIsMayaSessionValidQuery.js +3 -3
  2. package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
  3. package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
  4. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +3 -3
  5. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +3 -3
  6. package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
  7. package/dist/components/Quests/MultiWageringQuest.js +16 -16
  8. package/dist/components/Quests/Quests.client.js +4 -1
  9. package/dist/icons/LinkBrokenIcon.d.ts +2 -0
  10. package/dist/icons/LinkBrokenIcon.js +4 -0
  11. package/dist/styles/theme.css +5 -0
  12. package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
  13. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
  14. package/dist/ui/Badge/Badge.d.ts +12 -12
  15. package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
  16. package/dist/ui/Badge/badge.recipe.d.ts +3 -3
  17. package/dist/ui/Carousel/Carousel.d.ts +45 -45
  18. package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
  19. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  20. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  21. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  22. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  23. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  24. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  25. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  26. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  27. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  28. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  29. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  30. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  31. package/dist/ui/Field/Field.d.ts +21 -21
  32. package/dist/ui/Field/field.recipe.d.ts +3 -3
  33. package/dist/ui/Menu/Menu.d.ts +252 -252
  34. package/dist/ui/Menu/menu.recipe.d.ts +14 -14
  35. package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
  36. package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
  37. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  38. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  39. package/dist/ui/PinInput/PinInput.d.ts +12 -12
  40. package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
  41. package/dist/ui/Popover/Popover.d.ts +55 -55
  42. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  43. package/dist/ui/Progress/Progress.d.ts +27 -27
  44. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  45. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  46. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  47. package/dist/ui/Select/Select.d.ts +45 -45
  48. package/dist/ui/Select/select.recipe.d.ts +3 -3
  49. package/dist/ui/Table/Table.d.ts +21 -21
  50. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  51. package/dist/ui/Table/table.recipe.d.ts +3 -3
  52. package/package.json +1 -1
  53. package/dist/components/Banner/Banner.client.d.ts +0 -12
  54. package/dist/components/Banner/Banner.client.js +0 -49
  55. package/dist/components/SignIn/utils.d.ts +0 -8
  56. package/dist/components/SignIn/utils.js +0 -26
  57. package/dist/constants/Branches.d.ts +0 -2
  58. package/dist/constants/Branches.js +0 -42
  59. package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
  60. package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
  61. package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
  62. package/dist/third-parties/FacebookPixel/api.js +0 -1
  63. package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
  64. package/dist/third-parties/FacebookPixel/index.js +0 -1
  65. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
  66. package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
  67. package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
  68. package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
  69. package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
  70. package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
  71. package/dist/third-parties/index.d.ts +0 -2
  72. package/dist/third-parties/index.js +0 -2
@@ -4,10 +4,10 @@ import { validateMayaSession } from '../../services/wallet.js';
4
4
  import { getQueryClient } from '../../utils/getQueryClient.js';
5
5
  import { getIsMayaSessionValidQueryKey, getSessionQueryKey, } from '../../utils/queryKeys.js';
6
6
  import { getSession } from '../services/getSession.js';
7
- import { useOnMMA } from './useOnMMA.js';
7
+ import { useMayaAuth } from './useMayaAuth.js';
8
8
  import { useSessionQuery } from './useSessionQuery.js';
9
9
  export const useIsMayaSessionValidQuery = (config) => {
10
- const [onMMA] = useOnMMA();
10
+ const { onMaya } = useMayaAuth();
11
11
  const sessionQuery = useSessionQuery();
12
12
  const query = useQuery({
13
13
  gcTime: 1000 * 2,
@@ -18,7 +18,7 @@ export const useIsMayaSessionValidQuery = (config) => {
18
18
  ...config,
19
19
  enabled: config?.enabled === false
20
20
  ? false
21
- : !onMMA
21
+ : !onMaya
22
22
  ? false
23
23
  : sessionQuery.data?.status === 'authenticated',
24
24
  queryKey: getIsMayaSessionValidQueryKey(),
@@ -0,0 +1,7 @@
1
+ import { type UseDisclosureReturn } from '../../client/hooks/useDisclosure';
2
+ interface GoogleDisconnectProps {
3
+ onConfirmAction?: (ctx: UseDisclosureReturn) => React.ReactNode;
4
+ children?: (ctx: UseDisclosureReturn) => React.ReactNode;
5
+ }
6
+ export declare function GoogleDisconnect(props: GoogleDisconnectProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useDisclosure, } from '../../client/hooks/useDisclosure.js';
4
+ import { LinkBrokenIcon } from '../../icons/LinkBrokenIcon.js';
5
+ import { XIcon } from '../../icons/XIcon.js';
6
+ import { Dialog } from '../../ui/Dialog/index.js';
7
+ import { Portal } from '../../ui/Portal/index.js';
8
+ export function GoogleDisconnect(props) {
9
+ const disclosure = useDisclosure();
10
+ return (_jsxs(_Fragment, { children: [props.children?.(disclosure), _jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: disclosure.open, onOpenChange: (details) => disclosure.setOpen(details.open), closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto min-h-auto max-w-[25rem] overflow-y-auto rounded-xl p-6", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "flex flex-col ", children: [_jsx("div", { className: "mx-auto flex size-12 items-center justify-center rounded-full bg-bg-brand-secondary text-text-brand", children: _jsx(LinkBrokenIcon, {}) }), _jsx("h2", { className: "mb-1 text-center font-semibold text-lg xl:mt-xl", children: "Disconnect Google Account" }), _jsx("p", { className: "text-center text-sm text-text-tertiary-600 leading-2xl", children: "Are you sure you want to disconnect your Google account? This may affect your ability to log in or sync data." })] }), _jsx("div", { className: "pt-6", children: props.onConfirmAction?.(disclosure) })] }) })] }) })] }));
11
+ }
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useEffect, useState } from 'react';
3
3
  import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
4
4
  import { useIsMayaSessionValidQuery } from '../../../client/hooks/useIsMayaSessionValidQuery.js';
5
- import { useOnMMA } from '../../../client/hooks/useOnMMA.js';
5
+ import { useMayaAuth } from '../../../client/hooks/useMayaAuth.js';
6
6
  import { usePaymentSettingsQuery } from '../../../client/hooks/usePaymentSettingsQuery.js';
7
7
  import { AlertCircleIcon } from '../../../icons/AlertCircleIcon.js';
8
8
  import { SpinnerIcon } from '../../../icons/SpinnerIcon.js';
@@ -16,13 +16,13 @@ import { OnlineBankDeposit } from './OnlineBankDeposit/OnlineBankDeposit.js';
16
16
  import { PisoPayDeposit } from './PisoPayDeposit/PisoPayDeposit.js';
17
17
  import { QRPHDeposit } from './QRPHDeposit/QRPHDeposit.js';
18
18
  export function Deposit() {
19
- const [onMMA] = useOnMMA();
19
+ const { onMaya } = useMayaAuth();
20
20
  const { enabled } = useFeatureFlag();
21
21
  const paymentSettingsQuery = usePaymentSettingsQuery();
22
22
  const paymentSettings = paymentSettingsQuery.data;
23
23
  const enabledPaymentMethods = (() => {
24
24
  const l = [];
25
- if (onMMA) {
25
+ if (onMaya) {
26
26
  l.push('MAYA_APP');
27
27
  return l;
28
28
  }
@@ -4,8 +4,8 @@ import { useShallow } from 'zustand/shallow';
4
4
  import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
5
5
  import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
6
  import { useIsMayaSessionValidQuery } from '../../../client/hooks/useIsMayaSessionValidQuery.js';
7
+ import { useMayaAuth } from '../../../client/hooks/useMayaAuth.js';
7
8
  import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
8
- import { useOnMMA } from '../../../client/hooks/useOnMMA.js';
9
9
  import { usePaymentSettingsQuery } from '../../../client/hooks/usePaymentSettingsQuery.js';
10
10
  import { useWalletQuery } from '../../../client/hooks/useWalletQuery.js';
11
11
  import { AlertCircleIcon } from '../../../icons/AlertCircleIcon.js';
@@ -22,7 +22,7 @@ import { MayaWithdrawal } from './MayaWithdrawal/MayaWithdrawal.js';
22
22
  import { PisoPayWithdrawal } from './PisoPayWithdrawal/PisoPayWithdrawal.js';
23
23
  import { VentajaWithdrawal } from './VentajaWithdrawal/VentajaWithdrawal.js';
24
24
  export function Withdrawal() {
25
- const [onMMA] = useOnMMA();
25
+ const { onMaya } = useMayaAuth();
26
26
  const { allowUnverifiedAccounts } = useDepositWithdrawalPropsContext();
27
27
  const { enabled } = useFeatureFlag();
28
28
  const walletQuery = useWalletQuery();
@@ -35,7 +35,7 @@ export function Withdrawal() {
35
35
  const memberVerification = memberVerificationQuery.data;
36
36
  const enabledPaymentMethods = (() => {
37
37
  const l = [];
38
- if (onMMA) {
38
+ if (onMaya) {
39
39
  l.push('MAYA_APP');
40
40
  return l;
41
41
  }
@@ -1,30 +1,30 @@
1
1
  'use client';
2
2
  import { addHours } from 'date-fns';
3
3
  import { clamp } from 'lodash-es';
4
+ import { useSearchParams } from 'next/navigation';
4
5
  import { useLocalStorage, useTimeout } from 'usehooks-ts';
5
6
  import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
6
7
  export function CXDTokenObserver() {
7
- const { data: account } = useAccountQuery();
8
- const accountCxd = {
9
- cxd: account?.cellxpertDetails?.cxd,
10
- };
11
- const [cxd, setCxd, removeCxd] = useLocalStorage('cxd', null);
8
+ const searchParams = useSearchParams();
9
+ const cxdToken = searchParams.get('cxd');
10
+ const accountQuery = useAccountQuery();
11
+ const account = accountQuery.data;
12
+ const [cxd, setCxd, removeCxd] = useLocalStorage('WebPortalCellxpertCxd', null);
12
13
  const now = new Date();
14
+ const shouldTimeoutRun = cxdToken && account;
13
15
  const removeCxdUntilInMs = cxd?.timestamp
14
16
  ? clamp(cxd.timestamp - now.getTime(), 0, Infinity)
15
17
  : 0;
16
18
  useTimeout(() => {
17
- const isSame = cxd?.cxd === accountCxd.cxd;
19
+ const isSame = cxd?.cxd === cxdToken;
18
20
  if (!isSame) {
19
21
  const extendedTimestamp = addHours(new Date(), 6).getTime();
20
22
  setCxd({
21
- cxd: accountCxd.cxd,
23
+ cxd: cxdToken,
22
24
  timestamp: extendedTimestamp,
23
25
  });
24
26
  }
25
- }, account ? 100 : null);
26
- useTimeout(() => {
27
- removeCxd();
28
- }, account ? removeCxdUntilInMs : null);
27
+ }, shouldTimeoutRun ? 100 : null);
28
+ useTimeout(() => removeCxd(), shouldTimeoutRun ? removeCxdUntilInMs : null);
29
29
  return null;
30
30
  }
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useRouter, useSearchParams } from 'next/navigation';
2
3
  import { useCallback, useMemo } from 'react';
3
4
  import { useControllableState } from '../../client/hooks/useControllableState.js';
4
5
  import { useDisclosure } from '../../client/hooks/useDisclosure.js';
@@ -26,17 +27,9 @@ export function MultiWageringQuest() {
26
27
  progressPercentage: 0,
27
28
  };
28
29
  }
29
- const transformedStages = quest.stages.map((stage) => ({
30
- bonusAmount: stage.bonusAmount,
31
- bonusTurnoverRequirementMultiplier: stage.bonusTurnoverRequirementMultiplier,
32
- cleared: stage.cleared,
33
- dateTimeCleared: stage.dateTimeCleared,
34
- targetTurnover: stage.targetTurnover,
35
- }));
36
- const total = quest.stages.length;
37
30
  return {
38
- stages: transformedStages,
39
- totalStage: total,
31
+ stages: quest.stages,
32
+ totalStage: quest.stages.length,
40
33
  currentStage: currentStage === 0 ? 1 : currentStage,
41
34
  progressPercentage: +quest.progressPercentage,
42
35
  };
@@ -45,18 +38,25 @@ export function MultiWageringQuest() {
45
38
  disclosure.setOpen(true);
46
39
  }, [disclosure]);
47
40
  const localeInfo = useLocaleInfo();
48
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsxs("div", { className: "flex max-h-7.5 items-center justify-between", children: [_jsx(RemainingTime, { endOfDay: true }), quest.status === 'COMPLETED' && (_jsx(Badge.Root, { colorScheme: "success", size: "lg", round: false, children: _jsxs(Badge.Label, { children: ["Final Bonus:", ' ', formatNumber(quest.bonus, {
49
- currency: localeInfo.currency.code,
50
- })] }) }))] }), _jsx("p", { className: "font-semibold text-xl", children: quest?.name || 'Journey Quest' }), _jsx("div", { className: "text-sm", dangerouslySetInnerHTML: {
41
+ const params = useSearchParams();
42
+ const questId = params.get('id');
43
+ const isOpen = useMemo(() => {
44
+ return questId === quest.id;
45
+ }, [questId, quest.id]);
46
+ const router = useRouter();
47
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex h-full w-full flex-col space-y-6 rounded-2xl border border-border-primary bg-bg-tertiary px-4 pt-5 pb-6", children: [_jsxs("div", { className: "flex flex-col space-y-2", children: [_jsx("div", { className: "flex max-h-7.5 items-center justify-between", children: _jsx(RemainingTime, { endOfDay: true }) }), _jsx("p", { className: "font-semibold text-xl", children: quest?.name || 'Multi Stage Wagering Quest' }), _jsx("div", { className: "text-[#CECFD2] text-sm", dangerouslySetInnerHTML: {
51
48
  __html: quest?.description ||
52
49
  'Ready for a challenge? Complete them all and get amazing rewards!',
53
- } }), _jsxs("div", { className: "flex items-center justify-between pt-5", children: [_jsxs("p", { className: "text-sm", children: ["Progress: ", quest.progressPercentage, "%"] }), _jsxs("p", { className: "text-sm", children: [quest.turnover, _jsxs("span", { className: "text-[#667085]", children: ["/", quest.targetTurnover, " PHP"] })] })] }), _jsx(Progress.Root, { max: 100, className: "h-2 rounded-full bg-bg-primary", value: progressPercentage, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, { className: "bg-utility-brand-600" }) }) }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("p", { className: "text-sm text-text-quarterary-brand", children: ["Stage ", currentStage, " of ", totalStage] }), _jsx(Badge.Root, { size: "lg", colorScheme: "brand", round: false, children: _jsxs(Badge.Label, { className: "flex items-center justify-center text-xs", children: [_jsx("p", { className: "flex h-[10px] items-center justify-center", children: "+" }), ' ', formatNumber(quest.stages?.reduce((curr, prev) => {
50
+ } }), _jsxs("div", { className: "flex items-center justify-between pt-5", children: [_jsxs("p", { className: "text-[#F5F5F6] text-sm", children: ["Progress: ", quest.progressPercentage, "%"] }), _jsxs("p", { className: "text-[#F5F5F6] text-sm", children: [quest.turnover, _jsxs("span", { className: "text-[#94969C]", children: ["/", quest.targetTurnover, " PHP"] })] })] }), _jsx(Progress.Root, { max: 100, className: "h-2 rounded-full bg-bg-primary", value: progressPercentage, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, { className: "bg-utility-brand-600" }) }) }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("p", { className: "text-[#F5F5F6] text-sm", children: ["Stage ", currentStage, " of ", totalStage] }), _jsx(Badge.Root, { size: "lg", className: "border border-border-badge bg-bg-badge", round: false, children: _jsxs(Badge.Label, { className: "!text-text-badge flex items-center justify-center text-xs", children: [_jsx("p", { className: "flex h-[10px] items-center justify-center", children: "+" }), ' ', formatNumber(quest.stages?.reduce((curr, prev) => {
54
51
  return curr + Number(prev.bonusAmount || 0);
55
52
  }, 0), {
56
53
  currency: localeInfo.currency.code,
57
54
  maxDecimalPlaces: 0,
58
55
  minDecimalPlaces: 0,
59
- }), ' ', "Bonus"] }) })] })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx(Button, { size: "sm", onClick: handleViewDetails, "aria-label": "View Details", disabled: false, className: "disabled:bg-bg-primary disabled:text-text-disabled", children: "View Details" }) })] }), _jsx(Stages, { open: disclosure.open, onOpenChange: disclosure.setOpen, quest: quest, stages: stages })] }));
56
+ }), ' ', "Bonus"] }) })] })] }), _jsx("div", { className: "flex h-full items-end", children: _jsx(Button, { size: "sm", onClick: handleViewDetails, "aria-label": "View Details", disabled: false, className: "disabled:bg-bg-primary disabled:text-text-disabled", children: "View Details" }) })] }), _jsx(Stages, { open: disclosure.open || isOpen, onOpenChange: (open) => {
57
+ disclosure.setOpen(open);
58
+ router.push('/quests');
59
+ }, quest: quest, stages: stages })] }));
60
60
  }
61
61
  function Stages(props) {
62
62
  const [open, setOpen] = useControllableState({
@@ -82,7 +82,7 @@ function Stages(props) {
82
82
  }
83
83
  function QuestWageringStageUnlocked({ bonus, stage, data, isCompleted = false, }) {
84
84
  const localeInfo = useLocaleInfo();
85
- return (_jsxs("div", { className: "mb-4 flex flex-col justify-between rounded-xl bg-bg-secondary p-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("p", { className: "font-medium", children: ["Stage ", stage + 1] }), _jsx(Badge.Root, { colorScheme: isCompleted ? 'success' : 'blue', size: "md", round: true, children: _jsx(Badge.Label, { children: data.cleared ? 'Completed' : 'Ongoing' }) })] }), _jsxs("div", { className: "mt-2.5 flex items-center justify-between", children: [_jsxs("p", { children: ["Progress ", data.cleared ? 100 : 0, "%"] }), _jsx("div", { className: "rounded-[6px] border border-border-secondary bg-bg-secondary-alt px-1.5 py-0.5", children: _jsxs("p", { className: "font-medium text-xs leading-tight", children: ["+", formatNumber(bonus, {
85
+ return (_jsxs("div", { className: "mb-4 flex flex-col justify-between rounded-xl bg-bg-secondary p-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("p", { className: "font-medium", children: ["Stage ", stage + 1] }), _jsx(Badge.Root, { colorScheme: isCompleted ? 'success' : 'blue', size: "md", round: true, children: _jsx(Badge.Label, { children: data.cleared ? 'Completed' : 'Ongoing' }) })] }), _jsxs("div", { className: "mt-2.5 flex items-center justify-between", children: [_jsxs("p", { children: ["Progress ", data.cleared ? 100 : 0, "%"] }), _jsx(Badge.Root, { size: "md", className: "border border-border-badge bg-bg-badge", round: false, children: _jsxs(Badge.Label, { className: "!text-text-badge", children: ["+", formatNumber(bonus, {
86
86
  currency: localeInfo.currency.code,
87
87
  }), ' ', "Bonus"] }) })] }), _jsx(Progress.Root, { max: 100, className: "mt-2 h-2 rounded-full bg-bg-primary", value: data.cleared ? 100 : 0, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, { className: "bg-utility-brand-600" }) }) })] }));
88
88
  }
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { isString } from 'lodash-es';
4
+ import dynamic from 'next/dynamic';
4
5
  import Image from 'next/image';
5
6
  import { useState, } from 'react';
6
7
  import { twMerge } from 'tailwind-merge';
@@ -12,10 +13,12 @@ import closeChest from '../../images/close-chest.png';
12
13
  import { SegmentGroup } from '../../ui/SegmentGroup/index.js';
13
14
  import { DailyCheckInQuest, } from './DailyCheckInQuest.js';
14
15
  import { JourneyQuest } from './JourneyQuest.js';
15
- import { MultiWageringQuest } from './MultiWageringQuest.js';
16
16
  import { OnboardingQuest } from './OnboardingQuest.js';
17
17
  import { QuestContext } from './QuestsContext.js';
18
18
  import { WageringQuest, } from './WageringQuest.js';
19
+ const MultiWageringQuest = dynamic(() => import('./MultiWageringQuest.js').then((mod) => mod.MultiWageringQuest), {
20
+ ssr: false,
21
+ });
19
22
  const QUEST_COMPONENT_MAP = {
20
23
  DAILY_CHECKIN: DailyCheckInQuest,
21
24
  ONBOARDING: OnboardingQuest,
@@ -0,0 +1,2 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ export declare function LinkBrokenIcon(props: ComponentPropsWithRef<'svg'>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function LinkBrokenIcon(props) {
3
+ return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", ...props, children: _jsx("path", { d: "M8.5 15.5L15.5 8.49998M9 4V2M15 20V22M4 9H2M20 15H22M4.91421 4.91421L3.5 3.5M19.0858 19.0857L20.5 20.4999M12 17.6568L9.87871 19.7781C8.31662 21.3402 5.78396 21.3402 4.22186 19.7781C2.65976 18.216 2.65976 15.6833 4.22186 14.1212L6.34318 11.9999M17.6569 11.9999L19.7782 9.87859C21.3403 8.31649 21.3403 5.78383 19.7782 4.22174C18.2161 2.65964 15.6835 2.65964 14.1214 4.22174L12 6.34306", stroke: "#FEDF89", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
4
+ }
@@ -274,10 +274,15 @@
274
274
 
275
275
  --color-border-checkbox-primary: #373a41;
276
276
  --color-bg-progress-bar-primary: var(--color-bg-primary);
277
+
277
278
  --color-bg-lock: #161B26;
278
279
  --color-border-lock: #333741;
279
280
  --color-text-lock: #85888E;
280
281
 
282
+ --color-border-badge: #373A41;
283
+ --color-bg-badge: #13161B;
284
+ --color-text-badge: #CECFD2;
285
+
281
286
 
282
287
  --font-sans: var(--font-sans);
283
288
  --font-mono: var(--font-mono);