@opexa/portal-components 0.0.742 → 0.0.744

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 (45) hide show
  1. package/dist/components/Account/Account.lazy.js +15 -15
  2. package/dist/components/Disclaimer/DisclaimerV2.js +15 -15
  3. package/dist/components/Jackpots/JackpotsCarouselNext/JackpotsCarouselStageItem.js +2 -4
  4. package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageDesktop.js +2 -2
  5. package/dist/components/Jackpots/JackpotsListNext/JackpotMultiStageMobile.js +2 -2
  6. package/dist/components/KYC/KYCDefault/IdentityVerification.js +15 -15
  7. package/dist/components/KYC/KYCDefault/PersonalInformation.js +15 -15
  8. package/dist/components/KYC/KYCReminder.lazy.js +45 -17
  9. package/dist/components/Messages/MessagesPopup.js +11 -4
  10. package/dist/components/Quests/JourneyQuest.js +15 -14
  11. package/dist/components/TopProgress/TopProgressBar.js +4 -0
  12. package/dist/components/TopProgress/index.d.ts +1 -0
  13. package/dist/components/TopProgress/index.js +1 -0
  14. package/dist/constants/EnvVar.d.ts +1 -1
  15. package/dist/services/queries.d.ts +1 -1
  16. package/dist/services/queries.js +1 -0
  17. package/dist/types/index.d.ts +2 -1
  18. package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
  19. package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
  20. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  21. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  22. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  23. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  24. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  25. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  26. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  27. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  28. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  29. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  30. package/dist/ui/Dialog/Dialog.d.ts +33 -33
  31. package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
  32. package/dist/ui/Drawer/Drawer.d.ts +33 -33
  33. package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
  34. package/dist/ui/Menu/Menu.d.ts +144 -144
  35. package/dist/ui/Menu/menu.recipe.d.ts +8 -8
  36. package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
  37. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
  38. package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
  39. package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
  40. package/dist/ui/Select/Select.d.ts +45 -45
  41. package/dist/ui/Select/select.recipe.d.ts +3 -3
  42. package/dist/ui/Table/Table.d.ts +21 -21
  43. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  44. package/dist/ui/Table/table.recipe.d.ts +3 -3
  45. package/package.json +1 -1
@@ -122,20 +122,6 @@ function Links({ router, classNames, }) {
122
122
  i++;
123
123
  }
124
124
  }
125
- if (Capacitor.isNativePlatform()) {
126
- const session = await getQueryClient().fetchQuery({
127
- queryKey: getSessionQueryKey(),
128
- queryFn: async () => getSession(),
129
- });
130
- invariant(session.status === 'authenticated');
131
- await unregisterFCMDevice({
132
- type: ['IOS', 'ANDROID'],
133
- }, {
134
- headers: {
135
- Authorization: `Bearer ${session.token}`,
136
- },
137
- });
138
- }
139
125
  sessionStorage.clear();
140
126
  router.replace('/');
141
127
  },
@@ -167,7 +153,21 @@ function Links({ router, classNames, }) {
167
153
  }, children: [_jsx(CoinsStacked02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Bet Records" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) }), _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: !accountProps.transactionsEnabled, children: _jsxs(Link, { href: accountProps.transactionsUrl, className: twMerge(recipe.navItemLink(), classNames.navItemLink), onClick: () => {
168
154
  globalStore.account.setOpen(false);
169
155
  globalStore.account__mobile.setOpen(false);
170
- }, children: [_jsx(CoinsSwap02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Transactions" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) })] }), _jsx("ul", { children: _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: onMaya, children: _jsxs("button", { type: "button", className: twMerge(recipe.navItemLink(), classNames.navItemLink), disabled: signOutMutation.isPending, onClick: () => {
156
+ }, children: [_jsx(CoinsSwap02Icon, { className: twMerge(recipe.navItemIcon(), classNames.navItemIcon) }), _jsx("span", { className: twMerge(recipe.navItemLabel(), classNames.navItemLabel), children: "Transactions" }), _jsx(ChevronRightIcon, { className: twMerge(recipe.navItemIndicator(), classNames.navItemIndicator) })] }) })] }), _jsx("ul", { children: _jsx("li", { className: twMerge(recipe.navItemRoot(), classNames.navItemRoot), hidden: onMaya, children: _jsxs("button", { type: "button", className: twMerge(recipe.navItemLink(), classNames.navItemLink), disabled: signOutMutation.isPending, onClick: async () => {
157
+ if (Capacitor.isNativePlatform()) {
158
+ const session = await getQueryClient().fetchQuery({
159
+ queryKey: getSessionQueryKey(),
160
+ queryFn: async () => getSession(),
161
+ });
162
+ invariant(session.status === 'authenticated');
163
+ await unregisterFCMDevice({
164
+ type: ['IOS', 'ANDROID'],
165
+ }, {
166
+ headers: {
167
+ Authorization: `Bearer ${session.token}`,
168
+ },
169
+ });
170
+ }
171
171
  signOutMutation.mutate();
172
172
  globalStore.account.setOpen(false);
173
173
  globalStore.account__mobile.setOpen(false);
@@ -45,20 +45,6 @@ export function DisclaimerV2(props) {
45
45
  i++;
46
46
  }
47
47
  }
48
- if (Capacitor.isNativePlatform()) {
49
- const session = await getQueryClient().fetchQuery({
50
- queryKey: getSessionQueryKey(),
51
- queryFn: async () => getSession(),
52
- });
53
- invariant(session.status === 'authenticated');
54
- await unregisterFCMDevice({
55
- type: ['IOS', 'ANDROID'],
56
- }, {
57
- headers: {
58
- Authorization: `Bearer ${session.token}`,
59
- },
60
- });
61
- }
62
48
  sessionStorage.clear();
63
49
  },
64
50
  });
@@ -75,7 +61,21 @@ export function DisclaimerV2(props) {
75
61
  globalStore.responsibleGaming.setOpen(true);
76
62
  globalStore.responsibleGaming.setNext('DISCLAIMER');
77
63
  disclaimer.close();
78
- }, children: "Responsible Gaming" })] }), _jsx(Checkbox.HiddenInput, {})] }), showWarning && (_jsxs("div", { className: twMerge('mt-2 flex max-w-full items-center gap-2 break-words rounded-md text-text-error-primary text-xs'), role: "alert", "aria-live": "assertive", children: [_jsx(AlertCircleIcon, { className: "size-5 text-text-error-primary" }), "Please agree to ", props.siteName, "'s Terms of Use and Responsible Gaming to proceed."] })), _jsx("div", { 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: "mt-4 flex w-full gap-3", children: [_jsx(Button, { type: "button", onClick: () => {
64
+ }, children: "Responsible Gaming" })] }), _jsx(Checkbox.HiddenInput, {})] }), showWarning && (_jsxs("div", { className: twMerge('mt-2 flex max-w-full items-center gap-2 break-words rounded-md text-text-error-primary text-xs'), role: "alert", "aria-live": "assertive", children: [_jsx(AlertCircleIcon, { className: "size-5 text-text-error-primary" }), "Please agree to ", props.siteName, "'s Terms of Use and Responsible Gaming to proceed."] })), _jsx("div", { 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: "mt-4 flex w-full gap-3", children: [_jsx(Button, { type: "button", onClick: async () => {
65
+ if (Capacitor.isNativePlatform()) {
66
+ const session = await getQueryClient().fetchQuery({
67
+ queryKey: getSessionQueryKey(),
68
+ queryFn: async () => getSession(),
69
+ });
70
+ invariant(session.status === 'authenticated');
71
+ await unregisterFCMDevice({
72
+ type: ['IOS', 'ANDROID'],
73
+ }, {
74
+ headers: {
75
+ Authorization: `Bearer ${session.token}`,
76
+ },
77
+ });
78
+ }
79
79
  signOutMutation.mutate();
80
80
  if (props.redirectUrlOnNoConsent) {
81
81
  window.location.href = props.redirectUrlOnNoConsent;
@@ -115,9 +115,7 @@ export function JackpotsCarouselStageItem({ style, className, viewAllUrl, animat
115
115
  return null;
116
116
  }
117
117
  return (_jsxs("div", { ref: ref, className: twMerge('relative flex w-full shrink-0 rounded-2xl border border-border-primary bg-bg-tertiary p-3 text-center lg:gap-4 lg:p-5', className?.itemRoot, window.location.href.includes('blucky') &&
118
- styles['animate-multi-stage-gradient-blucky']), style: style, children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage", ' ', isCompleted
119
- ? (jackpot.stage ?? 1) - 1
120
- : jackpot.stage, ' '] }), !isCompleted ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
118
+ styles['animate-multi-stage-gradient-blucky']), style: style, children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage ", jackpot.stage, ' '] }), jackpot.status !== 'CLOSED' ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
121
119
  currency: localeInfo.currency.code,
122
120
  minDecimalPlaces: 2,
123
121
  maxDecimalPlaces: 2,
@@ -131,7 +129,7 @@ export function JackpotsCarouselStageItem({ style, className, viewAllUrl, animat
131
129
  currency: localeInfo.currency.code,
132
130
  minDecimalPlaces: 2,
133
131
  maxDecimalPlaces: 2,
134
- }) })] })] })) : (_jsxs("div", { className: twMerge('flex flex-row gap-[8.5px]', medalImage?.wrapper), children: [_jsx(Image, { width: 66, height: 87, src: medalImage?.image || firstPlace, alt: "firstPlace", className: "size-full h-auto w-[4.125rem] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the jackpot!" })] })] })) })] }) }) }), _jsxs("div", { className: "lg:mt-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-sm text-text-primary-900", children: ["Stage ", isCompleted ? (jackpot.stage ?? 1) - 1 : jackpot.stage, ' ', "Progress"] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, "aria-valuenow": currStageProgressPercentage, "aria-valuemax": 100, "aria-label": "Jackpot progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] })] }), _jsxs("div", { className: twMerge('z-1 hidden flex-1 space-y-4 lg:block', className?.recentPayoutsRoot), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "font-semibold text-lg text-text-primary-900", children: "Stages" })] }), _jsxs(Link, { className: "flex font-semibold text-button-tertiary-fg text-sm", href: viewAllUrl ?? '/jackpots', children: ["See details", _jsx(ChevronRightIcon, { className: "size-5" })] })] }), _jsx(OverallProgressBar, {}), _jsx("div", { className: twMerge('max-h-[17rem] overflow-y-scroll', styles.scrollArea), children: _jsx("div", { className: "overflow-hidden rounded-xl border-gray-200", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsx("tr", { className: twMerge('h-8 whitespace-nowrap bg-bg-secondary text-left font-medium text-text-tertiary-600 text-xs', className?.recentPayoutsTableHeadRow), children: [
132
+ }) })] })] })) : (_jsxs("div", { className: twMerge('flex flex-row gap-[8.5px]', medalImage?.wrapper), children: [_jsx(Image, { width: 66, height: 87, src: medalImage?.image || firstPlace, alt: "firstPlace", className: "size-full h-auto w-[4.125rem] mix-blend-luminosity" }), _jsxs("div", { className: "flex flex-col gap-1 text-left", children: [_jsx(PayoutBadge, {}), _jsx("div", { className: "font-semibold", children: "No winners yet" }), _jsx("div", { className: "text-text-secondary-700 text-xs", children: "You could be the first to win the jackpot!" })] })] })) })] }) }) }), _jsxs("div", { className: "lg:mt-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-sm text-text-primary-900", children: ["Stage ", jackpot.stage, " Progress"] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, "aria-valuenow": currStageProgressPercentage, "aria-valuemax": 100, "aria-label": "Jackpot progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] })] }), _jsxs("div", { className: twMerge('z-1 hidden flex-1 space-y-4 lg:block', className?.recentPayoutsRoot), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex gap-2", children: [_jsx(Image, { width: 24, height: 24, src: leaderboard, alt: "leaderboardIcon", className: "size-full h-auto w-6" }), _jsx("div", { className: "font-semibold text-lg text-text-primary-900", children: "Stages" })] }), _jsxs(Link, { className: "flex font-semibold text-button-tertiary-fg text-sm", href: viewAllUrl ?? '/jackpots', children: ["See details", _jsx(ChevronRightIcon, { className: "size-5" })] })] }), _jsx(OverallProgressBar, {}), _jsx("div", { className: twMerge('max-h-[17rem] overflow-y-scroll', styles.scrollArea), children: _jsx("div", { className: "overflow-hidden rounded-xl border-gray-200", children: _jsxs("table", { className: "w-full", children: [_jsx("thead", { children: _jsx("tr", { className: twMerge('h-8 whitespace-nowrap bg-bg-secondary text-left font-medium text-text-tertiary-600 text-xs', className?.recentPayoutsTableHeadRow), children: [
135
133
  'Stage',
136
134
  'Player',
137
135
  'Turnover Target',
@@ -58,7 +58,7 @@ export function JackpotMultiStageDesktop({ animate = true, customJackpotChestIma
58
58
  const isCompleted = overallPercentage >= 100;
59
59
  const ProfileIcon = () => jackpotProfileShape === 'oval' ? (_jsxs("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: [_jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }), _jsx("div", { className: twMerge('absolute right-0 bottom-safe-area-inset-bottom flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 font-bold text-brand-950 text-xs', className?.latestPayoutRankRoot), children: "1st" })] })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" }), _jsx("div", { className: twMerge('-right-0 absolute bottom-safe-area-inset-bottom z-20 flex h-7 w-7 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 text-center font-bold text-brand-950 text-xs', className?.latestPayoutRankRoot), children: "1st" })] }));
60
60
  const PayoutBadge = () => (_jsxs("div", { className: twMerge('flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs', className?.latestPayoutBadgeRoot), children: [_jsx(Trophy01Icon, { className: twMerge('size-3.5 text-utility-brand-600', className?.latestPayoutBadgeIcon) }), "Winner"] }));
61
- const ProgressBar = () => (_jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-sm text-text-primary-900", children: ["Stage ", isCompleted ? (jackpot.stage ?? 1) - 1 : jackpot.stage, ' ', "Progress"] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
61
+ const ProgressBar = () => (_jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-sm text-text-primary-900", children: ["Stage ", jackpot.stage, " Progress"] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
62
62
  const OverallProgressBar = () => {
63
63
  return (_jsxs("div", { className: "mt-3 lg:mt-4", children: [_jsxs("div", { className: "mb-[0.3125rem] flex items-center justify-between font-semibold text-sm text-text-primary-900", children: [_jsx("p", { children: "Overall Progress" }), overallPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: overallPercentage, children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
64
64
  };
@@ -83,7 +83,7 @@ export function JackpotMultiStageDesktop({ animate = true, customJackpotChestIma
83
83
  return null;
84
84
  }
85
85
  return (_jsxs("div", { ref: rootRef, className: twMerge('rounded-2xl border border-border-primary bg-bg-tertiary', className?.itemRoot), children: [_jsxs("div", { style: props.style, className: twMerge('relative flex shrink-0 rounded-2xl p-3 text-center lg:gap-4 lg:p-5', window.location.href.includes('blucky') &&
86
- styles['animate-multi-stage-gradient-blucky']), children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage", ' ', isCompleted ? (jackpot.stage ?? 1) - 1 : jackpot.stage] }), !isCompleted ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-semibold text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
86
+ styles['animate-multi-stage-gradient-blucky']), children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsxs("div", { className: "flex w-full flex-col", children: [_jsxs("div", { className: "relative flex w-full justify-between", children: [_jsxs("div", { children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage ", jackpot.stage] }), jackpot.status !== 'CLOSED' ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-semibold text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
87
87
  currency: localeInfo.currency.code,
88
88
  minDecimalPlaces: 2,
89
89
  maxDecimalPlaces: 2,
@@ -82,7 +82,7 @@ export function JackpotMultiStageMobile({ animate = true, customJackpotChestImag
82
82
  const isCompleted = overallPercentage >= 100;
83
83
  const ProfileIcon = () => jackpotProfileShape === 'oval' ? (_jsxs("div", { className: "relative flex h-18 w-18 items-center justify-center rounded-full bg-bg-tertiary", children: [_jsx(User01Icon, { className: "size-9 text-text-quarterary-500" }), _jsx("div", { className: twMerge('absolute right-0 bottom-safe-area-inset-bottom flex h-6 w-6 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 font-bold text-brand-950 text-xs', className?.latestPayoutRankRoot), children: "1st" })] })) : (_jsxs("div", { className: "relative grid h-18 w-18", children: [_jsx(StarIcon, { className: "col-start-1 row-start-1 h-full w-full" }), _jsx(User01Icon, { className: "z-10 col-start-1 row-start-1 size-9 place-self-center text-text-quarterary-500" }), _jsx("div", { className: twMerge('-right-0 absolute bottom-safe-area-inset-bottom z-20 flex h-7 w-7 items-center justify-center rounded-full border-[1.5px] border-bg-primary bg-yellow-400 text-center font-bold text-brand-950 text-xs', className?.latestPayoutRankRoot), children: "1st" })] }));
84
84
  const PayoutBadge = () => (_jsxs("div", { className: twMerge('flex h-fit w-fit items-center gap-1 rounded-sm border border-utility-brand-200 bg-utility-brand-50 px-2 py-0.5 font-medium text-utility-brand-700 text-xs', className?.latestPayoutBadgeRoot), children: [_jsx(Trophy01Icon, { className: twMerge('size-3.5 text-utility-brand-600', className?.latestPayoutBadgeIcon) }), "Winner"] }));
85
- const ProgressBar = () => (_jsxs("div", { className: "flex w-full flex-col items-center justify-between", children: [_jsxs("div", { className: "mb-[5px] flex w-full items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-text-primary-900 text-xs", children: ["Stage ", isCompleted ? (jackpot.stage ?? 1) - 1 : jackpot.stage, ' '] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, "aria-valuemax": 100, "aria-label": "Stage progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
85
+ const ProgressBar = () => (_jsxs("div", { className: "flex w-full flex-col items-center justify-between", children: [_jsxs("div", { className: "mb-[5px] flex w-full items-center justify-between", children: [_jsxs("div", { className: "font-semibold text-text-primary-900 text-xs", children: ["Stage ", jackpot.stage] }), isCompleted ? 100 : currStageProgressPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary", max: 100, value: isCompleted ? 100 : currStageProgressPercentage, "aria-valuemax": 100, "aria-label": "Stage progress", children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
86
86
  const OverallProgressBar = () => {
87
87
  return (_jsxs("div", { className: twMerge('mt-3 mb-[1rem] px-[0.75rem] lg:mt-4', className?.jackpotOverallProgressBarRoot), children: [_jsxs("div", { className: "mb-[5px] flex items-center justify-between font-semibold text-text-primary-900 text-xs", children: [_jsx("p", { children: "Overall Progress" }), overallPercentage, "%"] }), _jsx(Progress.Root, { className: "h-2 w-full rounded-full bg-bg-primary lg:h-4", max: 100, value: overallPercentage, children: _jsx(Progress.Track, { className: twMerge('h-full overflow-hidden rounded-full bg-bg-primary', className?.progressBarTrack), children: _jsx(Progress.Range, { className: "relative h-full overflow-hidden rounded-full bg-brand-500 pl-1.5", children: _jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-start pl-1.5", "aria-hidden": "true", children: arrowImages }) }) }) })] }));
88
88
  };
@@ -107,7 +107,7 @@ export function JackpotMultiStageMobile({ animate = true, customJackpotChestImag
107
107
  return null;
108
108
  }
109
109
  return (_jsxs("div", { ref: rootRef, className: twMerge('rounded-2xl border border-border-primary bg-bg-primary', className?.itemRoot), children: [_jsxs("div", { style: props.style, className: twMerge('relative flex shrink-0 rounded-2xl bg-bg-tertiary p-3 text-center lg:gap-4 lg:p-5', window.location.href.includes('blucky') &&
110
- styles['animate-multi-stage-gradient-blucky']), children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsx("div", { className: "flex w-full flex-col", children: _jsxs("div", { className: "relative flex w-full items-center justify-between", children: [_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage", ' ', isCompleted ? (jackpot.stage ?? 1) - 1 : jackpot.stage] }), !isCompleted ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
110
+ styles['animate-multi-stage-gradient-blucky']), children: [_jsxs("div", { className: "relative z-1 flex flex-1 flex-col", children: [_jsx("div", { className: "flex h-full flex-col justify-between", children: _jsx("div", { className: "flex w-full justify-between", children: _jsx("div", { className: "flex w-full flex-col", children: _jsxs("div", { className: "relative flex w-full items-center justify-between", children: [_jsxs("div", { className: "w-full", children: [_jsxs("div", { className: "flex gap-2.5", children: [_jsxs("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-[#3F100B] bg-[#CDA95B] px-2 py-0.5 font-medium text-[#1D0201] text-xs', className?.jackpotBadgeRoot), children: [_jsx(Flag05Icon, { className: "size-3.5 text-[inherit]" }), "Stage ", jackpot.stage] }), jackpot.status !== 'CLOSED' ? (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-blue-200 bg-utility-blue-50 px-2 py-0.5 font-medium text-utility-blue-700 text-xs", children: [_jsx(ArrowNarrowUpRightIcon, { className: "size-3.5 text-utility-blue-500" }), "In Progress"] })) : (_jsxs("div", { className: "flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs", children: [_jsx(CheckCircleBrokenIcon, { className: "size-3.5 text-utility-success-500" }), "Completed"] }))] }), _jsx("div", { className: "mt-1 text-left font-medium text-lg text-text-primary-900 lg:mt-5 lg:text-2xl", children: jackpot.name }), _jsx("div", { className: twMerge('mt-1.5 w-fit rounded-md bg-bg-primary px-2 py-1 font-bold text-2xl text-brand-400 lg:mt-2 lg:text-4xl', className?.jackpotAmountRoot), children: formatNumber(jackpotAmount, {
111
111
  currency: localeInfo.currency.code,
112
112
  minDecimalPlaces: 2,
113
113
  maxDecimalPlaces: 2,
@@ -36,20 +36,6 @@ export function IdentityVerification() {
36
36
  localStorage.clear();
37
37
  sessionStorage.clear();
38
38
  router.replace('/');
39
- if (Capacitor.isNativePlatform()) {
40
- const session = await getQueryClient().fetchQuery({
41
- queryKey: getSessionQueryKey(),
42
- queryFn: async () => getSession(),
43
- });
44
- invariant(session.status === 'authenticated');
45
- await unregisterFCMDevice({
46
- type: ['IOS', 'ANDROID'],
47
- }, {
48
- headers: {
49
- Authorization: `Bearer ${session.token}`,
50
- },
51
- });
52
- }
53
39
  },
54
40
  });
55
41
  const { mutate: createMemberVerification, isPending: createPending } = useCreateMemberVerificationMutation({
@@ -155,7 +141,21 @@ export function IdentityVerification() {
155
141
  } }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending, children: "Continue" }), kyc.isSkippable && (_jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", type: "button", onClick: () => {
156
142
  globalStore.kyc.setOpen(false);
157
143
  globalStore.kycReminder.setOpen(true);
158
- }, children: "Skip for now" })), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
144
+ }, children: "Skip for now" })), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
145
+ if (Capacitor.isNativePlatform()) {
146
+ const session = await getQueryClient().fetchQuery({
147
+ queryKey: getSessionQueryKey(),
148
+ queryFn: async () => getSession(),
149
+ });
150
+ invariant(session.status === 'authenticated');
151
+ await unregisterFCMDevice({
152
+ type: ['IOS', 'ANDROID'],
153
+ }, {
154
+ headers: {
155
+ Authorization: `Bearer ${session.token}`,
156
+ },
157
+ });
158
+ }
159
159
  signOutMutation.mutate();
160
160
  router.push('/');
161
161
  }, children: "Log Out" })] })] }));
@@ -53,20 +53,6 @@ export function PersonalInformation() {
53
53
  i++;
54
54
  }
55
55
  }
56
- if (Capacitor.isNativePlatform()) {
57
- const session = await getQueryClient().fetchQuery({
58
- queryKey: getSessionQueryKey(),
59
- queryFn: async () => getSession(),
60
- });
61
- invariant(session.status === 'authenticated');
62
- await unregisterFCMDevice({
63
- type: ['IOS', 'ANDROID'],
64
- }, {
65
- headers: {
66
- Authorization: `Bearer ${session.token}`,
67
- },
68
- });
69
- }
70
56
  sessionStorage.clear();
71
57
  router.replace('/');
72
58
  },
@@ -164,7 +150,21 @@ export function PersonalInformation() {
164
150
  globalStore.kyc.setOpen(false);
165
151
  globalStore.kycReminder.setOpen(true);
166
152
  }, disabled: updateMemberVerificationMutation.isPending ||
167
- createMemberVerificationMutation.isPending, children: "Skip for now" })), ' ', _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
153
+ createMemberVerificationMutation.isPending, children: "Skip for now" })), ' ', _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
154
+ if (Capacitor.isNativePlatform()) {
155
+ const session = await getQueryClient().fetchQuery({
156
+ queryKey: getSessionQueryKey(),
157
+ queryFn: async () => getSession(),
158
+ });
159
+ invariant(session.status === 'authenticated');
160
+ await unregisterFCMDevice({
161
+ type: ['IOS', 'ANDROID'],
162
+ }, {
163
+ headers: {
164
+ Authorization: `Bearer ${session.token}`,
165
+ },
166
+ });
167
+ }
168
168
  signOutMutation.mutate();
169
169
  router.push('/');
170
170
  }, children: "Log Out" })] })] }));
@@ -44,20 +44,6 @@ export function KYCReminder(props) {
44
44
  i++;
45
45
  }
46
46
  }
47
- if (Capacitor.isNativePlatform()) {
48
- const session = await getQueryClient().fetchQuery({
49
- queryKey: getSessionQueryKey(),
50
- queryFn: async () => getSession(),
51
- });
52
- invariant(session.status === 'authenticated');
53
- await unregisterFCMDevice({
54
- type: ['IOS', 'ANDROID'],
55
- }, {
56
- headers: {
57
- Authorization: `Bearer ${session.token}`,
58
- },
59
- });
60
- }
61
47
  sessionStorage.clear();
62
48
  router.replace('/');
63
49
  },
@@ -90,7 +76,21 @@ export function KYCReminder(props) {
90
76
  }, closeOnEscape: false, closeOnInteractOutside: false, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto h-fit max-w-[calc(100dvw-1rem)] overflow-y-auto rounded-lg bg-bg-primary lg:max-w-[400px]", children: [!isPending && isNotVerified && isVerificationLocked && (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Temporarily Locked" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account has been locked due to incomplete verification. Please complete your verification to restore full access." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo?.logo ?? pagcorLogo, alt: "PAGCOR logo", height: 88, width: 88, className: `h-[88px] w-auto shrink-0 ${props.pagcorLogo?.styles ?? ''}`, draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo?.logo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: `h-[50px] w-auto shrink-0 ${props.responsibleGamingLogo?.styles ?? ''}`, draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-6 space-y-lg", children: [_jsx(Button, { onClick: () => {
91
77
  api.setOpen(false);
92
78
  globalStore.kyc.setOpen(true);
93
- }, children: "Complete KYC" }), ' ', _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
79
+ }, children: "Complete KYC" }), ' ', _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
80
+ if (Capacitor.isNativePlatform()) {
81
+ const session = await getQueryClient().fetchQuery({
82
+ queryKey: getSessionQueryKey(),
83
+ queryFn: async () => getSession(),
84
+ });
85
+ invariant(session.status === 'authenticated');
86
+ await unregisterFCMDevice({
87
+ type: ['IOS', 'ANDROID'],
88
+ }, {
89
+ headers: {
90
+ Authorization: `Bearer ${session.token}`,
91
+ },
92
+ });
93
+ }
94
94
  signOutMutation.mutate();
95
95
  globalStore.account.setOpen(false);
96
96
  globalStore.account__mobile.setOpen(false);
@@ -102,7 +102,21 @@ export function KYCReminder(props) {
102
102
  responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: `h-[50px] w-auto shrink-0 ${props.responsibleGamingLogo?.styles ?? ''}`, draggable: false, unoptimized: true })] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-6 space-y-lg", children: [_jsx(Button, { onClick: () => {
103
103
  api.setOpen(false);
104
104
  globalStore.kyc.setOpen(true);
105
- }, children: "Complete KYC" }), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
105
+ }, children: "Complete KYC" }), _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
106
+ if (Capacitor.isNativePlatform()) {
107
+ const session = await getQueryClient().fetchQuery({
108
+ queryKey: getSessionQueryKey(),
109
+ queryFn: async () => getSession(),
110
+ });
111
+ invariant(session.status === 'authenticated');
112
+ await unregisterFCMDevice({
113
+ type: ['IOS', 'ANDROID'],
114
+ }, {
115
+ headers: {
116
+ Authorization: `Bearer ${session.token}`,
117
+ },
118
+ });
119
+ }
106
120
  signOutMutation.mutate();
107
121
  globalStore.account.setOpen(false);
108
122
  globalStore.account__mobile.setOpen(false);
@@ -112,7 +126,21 @@ export function KYCReminder(props) {
112
126
  !(daysFromCreationToNow <= 3 && daysFromCreationToNow > 1) && (_jsxs(_Fragment, { children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto w-fit rounded-full bg-bg-primary p-2", children: _jsx(FileCheck02Icon, { className: "text-[#FEDF89]" }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "Personal Verification" }), _jsxs("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: ["All new users are required to complete identity verification to access the full range of ", props.siteName, ' ', "services, including withdrawals."] }), _jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "mt-3xl space-y-lg", children: [_jsx(Button, { onClick: () => {
113
127
  api.setOpen(false);
114
128
  globalStore.kyc.setOpen(true);
115
- }, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] })), isPending && isVerificationLocked && (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full bg-bg-primary p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "VERIFICATION IN PROGRESS" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account is verification-locked. Please wait for approval to regain full access to this platform." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo?.logo ?? pagcorLogo, alt: "PAGCOR logo", height: 88, width: 88, className: `h-[88px] w-auto shrink-0 ${props.pagcorLogo?.styles ?? ''}`, draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo?.logo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: `h-[50px] w-auto shrink-0 ${props.responsibleGamingLogo?.styles ?? ''}`, draggable: false, unoptimized: true })] }), _jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: () => {
129
+ }, children: "Verify Now" }), _jsx(Button, { type: "button", variant: "outline", fullWidth: true, onClick: () => api.setOpen(false), children: "Do it later" })] })) })] })] })), isPending && isVerificationLocked && (_jsxs("div", { className: "p-3xl text-center", children: [_jsx("div", { className: "mx-auto mb-4 w-fit rounded-full bg-bg-primary p-2", children: _jsx(Image, { src: props.logo, alt: `${props.siteName} logo`, width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }) }), _jsx("h2", { className: `mt-4 font-semibold text-lg ${props.titleBgColor}`, children: "VERIFICATION IN PROGRESS" }), _jsx("p", { className: `mt-xs text-sm text-text-tertiary-600 ${props.descriptionBgColor}`, children: "Your account is verification-locked. Please wait for approval to regain full access to this platform." }), _jsxs("div", { className: "mt-6 flex w-full items-center justify-center gap-3xl", children: [_jsx(Image, { src: props.pagcorLogo?.logo ?? pagcorLogo, alt: "PAGCOR logo", height: 88, width: 88, className: `h-[88px] w-auto shrink-0 ${props.pagcorLogo?.styles ?? ''}`, draggable: false, unoptimized: true }), _jsx(Image, { src: props.responsibleGamingLogo?.logo ?? responsibleGamingLogo, alt: "Responsible Gaming logo", height: 50, width: 186, className: `h-[50px] w-auto shrink-0 ${props.responsibleGamingLogo?.styles ?? ''}`, draggable: false, unoptimized: true })] }), _jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { className: "bg-transparent text-text-brand-primary-600", onClick: async () => {
130
+ if (Capacitor.isNativePlatform()) {
131
+ const session = await getQueryClient().fetchQuery({
132
+ queryKey: getSessionQueryKey(),
133
+ queryFn: async () => getSession(),
134
+ });
135
+ invariant(session.status === 'authenticated');
136
+ await unregisterFCMDevice({
137
+ type: ['IOS', 'ANDROID'],
138
+ }, {
139
+ headers: {
140
+ Authorization: `Bearer ${session.token}`,
141
+ },
142
+ });
143
+ }
116
144
  signOutMutation.mutate();
117
145
  globalStore.account.setOpen(false);
118
146
  globalStore.account__mobile.setOpen(false);
@@ -5,6 +5,7 @@ import { useState } from 'react';
5
5
  import { useInterval } from 'usehooks-ts';
6
6
  import { useShallow } from 'zustand/shallow';
7
7
  import { useDisclosure } from '../../client/hooks/useDisclosure.js';
8
+ import { useFeatureFlag } from '../../client/hooks/useFeatureFlag.js';
8
9
  import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
9
10
  import { useMarkMessageAsReadMutation } from '../../client/hooks/useMarkMessageAsReadMutation.js';
10
11
  import { useMessagesQuery } from '../../client/hooks/useMessagesQuery.js';
@@ -38,7 +39,7 @@ export function MessagesPopup() {
38
39
  })));
39
40
  const markMessageAsReadMutation = useMarkMessageAsReadMutation();
40
41
  const [paused, setPaused] = useState(false);
41
- const [numbefOfUnreadMessages, setNumberOfUnreadMessages] = useState(0);
42
+ const [numberOfUnreadMessages, setNumberOfUnreadMessages] = useState(0);
42
43
  useInterval(() => {
43
44
  setPaused(false);
44
45
  }, paused ? PAUSE_TIME : null);
@@ -59,6 +60,8 @@ export function MessagesPopup() {
59
60
  }
60
61
  },
61
62
  });
63
+ const future = useFeatureFlag();
64
+ const isGameLaunchWaiting = globalStore.gameLaunch.details.status === 'WAITING' || future.enabled;
62
65
  const messagesQuery = useMessagesQuery({
63
66
  first: 20,
64
67
  filter: {
@@ -70,7 +73,7 @@ export function MessagesPopup() {
70
73
  },
71
74
  },
72
75
  }, {
73
- enabled: globalStore.gameLaunch.details.status === 'WAITING' &&
76
+ enabled: isGameLaunchWaiting &&
74
77
  !globalStore.depositWithdrawal.open &&
75
78
  !globalStore.messages.open &&
76
79
  !globalStore.message.open &&
@@ -80,7 +83,11 @@ export function MessagesPopup() {
80
83
  !globalStore.kycReminder.open,
81
84
  refetchInterval: disclosure.open ? undefined : 1000 * 10,
82
85
  });
83
- const messages = messagesQuery.data?.pages.flatMap((page) => page.edges.map((edge) => edge.node)) ?? [];
86
+ const messages = messagesQuery.data?.pages.flatMap((page) => page.edges
87
+ .filter((edge) => globalStore.gameLaunch.details.status === 'PLAYING' && future.enabled
88
+ ? edge.node.force && !edge.node.markedAsRead
89
+ : true)
90
+ .map((edge) => edge.node)) ?? [];
84
91
  const [index, setIndex_] = useState(0);
85
92
  const setIndex = (newIndex) => {
86
93
  setIndex_(newIndex);
@@ -97,7 +104,7 @@ export function MessagesPopup() {
97
104
  disclosure.setOpen(true);
98
105
  }, !disclosure.open && !paused ? 2500 : null);
99
106
  // Resume showing messages if the number of unread messages changes
100
- if (messages.length > numbefOfUnreadMessages && paused) {
107
+ if (messages.length > numberOfUnreadMessages && paused) {
101
108
  setPaused(false);
102
109
  }
103
110
  const transformContent = (content) => {
@@ -56,7 +56,7 @@ export function JourneyQuest(props) {
56
56
  return true;
57
57
  });
58
58
  const transformedMilestones = filteredMilestones.map((milestone) => ({
59
- key: milestone.type,
59
+ key: milestone.id,
60
60
  label: milestone.name,
61
61
  bonus: milestone.bonusAmount
62
62
  ? parseFloat(milestone.bonusAmount)
@@ -124,29 +124,30 @@ function Rules(props) {
124
124
  __html: quest.description,
125
125
  }, className: 'mb-3' })) : (_jsx("p", { children: "Ready for a challenge? Complete them all and get amazing rewards!" })) }), _jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-safe-area-inset-bottom h-8 bg-gradient-to-t from-bg-primary to-transparent" })] }), milestones.map((milestone) => (_jsxs("div", { className: twMerge('flex flex-col space-y-2.5 rounded-xl bg-bg-tertiary p-3', props.className?.milestone), children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("p", { className: twMerge('font-medium text-base text-text-primary-900', props.className?.milestoneName), children: milestone.label }), milestone.isCompleted && (_jsx("div", { className: twMerge('flex w-fit items-center gap-1 rounded-full border border-utility-success-200 bg-utility-success-50 px-2 py-0.5 font-medium text-utility-success-700 text-xs', props.className?.completeBadge), children: "Complete" }))] }), milestone.description ? (_jsx(Prose, { className: props.className?.milestoneDescription, dangerouslySetInnerHTML: {
126
126
  __html: milestone.description,
127
- } })) : milestone.bonus ? (_jsxs("p", { className: twMerge('ml-1', props.className?.milestoneDescription), children: [milestone.key === 'REGISTRATION' &&
128
- `Register and win Php ${milestone.bonus} Bonus`, milestone.key === 'ACCOUNT_VERIFICATION' &&
129
- `Verify your account and get Php ${milestone.bonus} Bonus`, milestone.key === 'FIRST_DEPOSIT' &&
130
- `Make your first deposit and get Php ${milestone.bonus} Bonus`, milestone.key === 'IOS_FIRST_LOGIN' &&
131
- `Login using iOS and get Php ${milestone.bonus} Bonus`, milestone.key === 'ANDROID_FIRST_LOGIN' &&
127
+ } })) : milestone.bonus ? (_jsxs("p", { className: twMerge('ml-1', props.className?.milestoneDescription), children: [quest?.milestones?.find(m => m.id === milestone.id)?.type === 'REGISTRATION' &&
128
+ `Register and win Php ${milestone.bonus} Bonus`, quest?.milestones?.find(m => m.id === milestone.id)?.type === 'ACCOUNT_VERIFICATION' &&
129
+ `Verify your account and get Php ${milestone.bonus} Bonus`, quest?.milestones?.find(m => m.id === milestone.id)?.type === 'FIRST_DEPOSIT' &&
130
+ `Make your first deposit and get Php ${milestone.bonus} Bonus`, quest?.milestones?.find(m => m.id === milestone.id)?.type === 'IOS_FIRST_LOGIN' &&
131
+ `Login using iOS and get Php ${milestone.bonus} Bonus`, quest?.milestones?.find(m => m.id === milestone.id)?.type === 'ANDROID_FIRST_LOGIN' &&
132
132
  `Login using Android and get Php ${milestone.bonus} Bonus`] })) : null, !milestone.isCompleted &&
133
- (milestone.key === 'ACCOUNT_VERIFICATION' ||
134
- milestone.key === 'FIRST_DEPOSIT') && (_jsxs(Button, { size: "sm", onClick: () => {
135
- if (milestone.key === 'ACCOUNT_VERIFICATION') {
133
+ (quest?.milestones?.find(m => m.id === milestone.id)?.type === 'ACCOUNT_VERIFICATION' ||
134
+ quest?.milestones?.find(m => m.id === milestone.id)?.type === 'FIRST_DEPOSIT') && (_jsxs(Button, { size: "sm", onClick: () => {
135
+ const milestoneType = quest?.milestones?.find(m => m.id === milestone.id)?.type;
136
+ if (milestoneType === 'ACCOUNT_VERIFICATION') {
136
137
  setOpen(false);
137
138
  globalStore.kyc.setOpen(true);
138
139
  }
139
- if (milestone.key === 'FIRST_DEPOSIT') {
140
+ if (milestoneType === 'FIRST_DEPOSIT') {
140
141
  setOpen(false);
141
142
  globalStore.depositWithdrawal.setOpen(true);
142
143
  globalStore.depositWithdrawal.setTab('DEPOSIT');
143
144
  }
144
- }, "aria-label": `Complete ${milestone.label}`, children: [milestone.key === 'ACCOUNT_VERIFICATION' ? (_jsx(FileCheck02Icon, { className: "size-5" })) : (_jsx(CoinsHandIcon, { className: "size-5" })), milestone.key === 'FIRST_DEPOSIT'
145
+ }, "aria-label": `Complete ${milestone.label}`, children: [quest?.milestones?.find(m => m.id === milestone.id)?.type === 'ACCOUNT_VERIFICATION' ? (_jsx(FileCheck02Icon, { className: "size-5" })) : (_jsx(CoinsHandIcon, { className: "size-5" })), quest?.milestones?.find(m => m.id === milestone.id)?.type === 'FIRST_DEPOSIT'
145
146
  ? 'Deposit'
146
147
  : 'Verify Account'] })), !milestone.isCompleted &&
147
- milestone.key === 'LINK_FACEBOOK_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Facebook Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(FacebookSignInTrigger, { text: "Link Facebook Account", className: "!mt-0 flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
148
- milestone.key === 'LINK_GOOGLE_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Google Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(GoogleSignInButton, { text: "Link Google Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
149
- milestone.key === 'CUSTOM_LINK' &&
148
+ quest?.milestones?.find(m => m.id === milestone.id)?.type === 'LINK_FACEBOOK_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Facebook Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(FacebookSignInTrigger, { text: "Link Facebook Account", className: "!mt-0 flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
149
+ quest?.milestones?.find(m => m.id === milestone.id)?.type === 'LINK_GOOGLE_ACCOUNT' && (_jsxs(_Fragment, { children: [milestone.bonus && (_jsxs("p", { className: "text-[#94969C] text-sm", children: ["Link your Google Account and get Php", ' ', milestone.bonus, " Bonus"] })), _jsx(GoogleSignInButton, { text: "Link Google Account", className: "flex h-10 w-full items-center justify-center gap-md rounded-md bg-button-primary-bg px-3 font-semibold text-button-primary-fg text-sm shadow-xs disabled:opacity-60 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:opacity-60 aria-disabled:shadow-none" })] })), !milestone.isCompleted &&
150
+ quest?.milestones?.find(m => m.id === milestone.id)?.type === 'CUSTOM_LINK' &&
150
151
  (() => {
151
152
  const baseUrl = process.env.NEXT_PUBLIC_ENVIRONMENT === 'development'
152
153
  ? 'https://api.trigger.development.opexa.io'
@@ -92,6 +92,10 @@ export const TopProgressBar = ({ preset = 'Gold', customPreset, }) => {
92
92
  const href = target.getAttribute('href');
93
93
  if (!href)
94
94
  return;
95
+ // Don't start progress for links that open in new tabs
96
+ const targetBlank = target.getAttribute('target') === '_blank';
97
+ if (targetBlank)
98
+ return;
95
99
  const targetUrl = new URL(href, window.location.origin);
96
100
  const current = new URL(window.location.href);
97
101
  const isDifferent = targetUrl.origin !== current.origin ||
@@ -1 +1,2 @@
1
1
  export * from './TopProgressBar';
2
+ export * from './TopProgressBar.client';
@@ -1 +1,2 @@
1
1
  export * from './TopProgressBar.js';
2
+ export * from './TopProgressBar.client.js';
@@ -1,5 +1,5 @@
1
1
  export declare const SITE_ID: string;
2
2
  export declare const PLATFORM_ID: string;
3
3
  export declare const PLATFORM_CODE: string;
4
- export declare const ENVIRONMENT: "production" | "development";
4
+ export declare const ENVIRONMENT: "development" | "production";
5
5
  export declare const INTERNALS__REPORT_WEB_VITALS: boolean;
@@ -103,7 +103,7 @@ export declare const UPLINES_BY_NAME = "\n query UplinesByName($search: String!
103
103
  export declare const DOWNLINES_BY_NAME = "\n query DownlinesByName($search: String!, $first: Int) {\n downlinesByName(search: $search, first: $first) {\n ...ReferralFragment\n }\n }\n\n \n fragment ReferralFragment on Referral {\n id\n upline {\n id\n name\n realName\n }\n downline {\n id\n name\n realName\n }\n level\n turnover\n commission\n dateTimeCreated\n }\n\n";
104
104
  export declare const REFERRAL_COMMISSION = "\n query ReferralCommission {\n member {\n referralCommission {\n id\n commission\n dateTimeCreated\n dateTimeLastUpdated\n level1Commission\n level1ReferralsCount\n level2Commission\n level2ReferralsCount\n level3Commission\n level3ReferralsCount\n referralCode\n referralsCount\n }\n }\n }\n";
105
105
  export declare const POINTS_CLUB_SETTINGS = "\n query PointsClubSettings {\n pointsClubSettings {\n multiplier\n }\n }\n";
106
- export declare const MESSAGES = "\n query Messages($first: Int, $after: Cursor, $filter: MessageFilterInput) {\n messages(first: $first, after: $after, filter: $filter) {\n edges {\n cursor\n node {\n ... on Message {\n id\n icon\n image\n title\n content\n popup\n actions {\n name\n url\n }\n markedAsRead\n dateTimeCreated\n type\n metadata {\n ... on TournamentPayoutMessageMetadata {\n tournament {\n id\n name\n }\n payout {\n id\n amount\n }\n }\n }\n }\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n";
106
+ export declare const MESSAGES = "\n query Messages($first: Int, $after: Cursor, $filter: MessageFilterInput) {\n messages(first: $first, after: $after, filter: $filter) {\n edges {\n cursor\n node {\n ... on Message {\n id\n icon\n image\n title\n content\n popup\n actions {\n name\n url\n }\n force\n markedAsRead\n dateTimeCreated\n type\n metadata {\n ... on TournamentPayoutMessageMetadata {\n tournament {\n id\n name\n }\n payout {\n id\n amount\n }\n }\n }\n }\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n";
107
107
  export declare const UNREAD_MESSAGES_COUNT = "\n query UnreadMessagesCount($filter: MessageFilterInput) {\n messages(filter: $filter) {\n totalCount\n }\n }\n";
108
108
  export declare const MARK_MESSAGE_AS_READ = "\n mutation MarkMessageAsRead($id: ObjectId!) {\n markMessageAsRead(id: $id)\n }\n";
109
109
  export declare const MARK_ALL_MESSAGES_AS_READ = "\n mutation MarkAllMessagesAsRead {\n markAllMessagesAsRead\n }\n";
@@ -2542,6 +2542,7 @@ export const MESSAGES = /* GraphQL */ `
2542
2542
  name
2543
2543
  url
2544
2544
  }
2545
+ force
2545
2546
  markedAsRead
2546
2547
  dateTimeCreated
2547
2548
  type
@@ -699,6 +699,7 @@ export interface Message {
699
699
  markedAsRead: boolean;
700
700
  dateTimeCreated: string;
701
701
  type: MessageType;
702
+ force: boolean;
702
703
  metadata: {
703
704
  tournament: {
704
705
  id: string;
@@ -782,7 +783,7 @@ export interface TopWin {
782
783
  multiplier: string;
783
784
  payout: string;
784
785
  }
785
- export type JackpotStatus = 'ACTIVE' | 'CLOSING' | 'DISABLED';
786
+ export type JackpotStatus = 'ACTIVE' | 'CLOSING' | 'DISABLED' | 'CLOSED';
786
787
  export type JackpotType = 'MULTIPLIER' | 'MULTI_STAGE';
787
788
  export type JackpotCursor = 'POOL';
788
789
  export type JackpotPayoutCursor = 'AMOUNT';