@opexa/portal-components 0.0.785 → 0.0.787
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.
|
@@ -72,9 +72,7 @@ export function KYCReminder(props) {
|
|
|
72
72
|
isKYCReminderOpen &&
|
|
73
73
|
isKYCStateRelevant &&
|
|
74
74
|
isResponsibleGamingReminderClosed, onOpenChange: (details) => {
|
|
75
|
-
|
|
76
|
-
globalStore.kycReminder.setOpen(false);
|
|
77
|
-
}
|
|
75
|
+
globalStore.kycReminder.setOpen(details.open);
|
|
78
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: () => {
|
|
79
77
|
api.setOpen(false);
|
|
80
78
|
globalStore.kyc.setOpen(true);
|
|
@@ -24,13 +24,8 @@ export function KycOpenOnHomeMount(props) {
|
|
|
24
24
|
const shouldShowReminder = Boolean(props.isSkippable);
|
|
25
25
|
const hasSeenKycModal = sessionStorage.getItem('hasSeenKycModal');
|
|
26
26
|
const isFirstVisit = !hasSeenKycModal;
|
|
27
|
-
// Handle pending case with feature flag
|
|
28
|
-
if (isPending) {
|
|
29
|
-
setkycOpen(false);
|
|
30
|
-
setkycReminderOpen(true);
|
|
31
|
-
}
|
|
32
27
|
// Handle rejected verification status
|
|
33
|
-
|
|
28
|
+
if (isRejected) {
|
|
34
29
|
if (isFirstVisit) {
|
|
35
30
|
setkycReminderOpen(false);
|
|
36
31
|
setkycOpen(true);
|
|
@@ -70,7 +65,6 @@ export function KycOpenOnHomeMount(props) {
|
|
|
70
65
|
verificationLoading,
|
|
71
66
|
accountLoading,
|
|
72
67
|
isVerificationLocked,
|
|
73
|
-
isPending,
|
|
74
68
|
isRejected,
|
|
75
69
|
isUnverified,
|
|
76
70
|
isKycCompleted,
|
|
@@ -34,6 +34,7 @@ export function MessagesPopup() {
|
|
|
34
34
|
gameLaunch: ctx.gameLaunch,
|
|
35
35
|
depositWithdrawal: ctx.depositWithdrawal,
|
|
36
36
|
kycReminder: ctx.kycReminder,
|
|
37
|
+
responsibleGamingReminder: ctx.responsibleGamingReminder,
|
|
37
38
|
signIn: ctx.signIn,
|
|
38
39
|
signUp: ctx.signUp,
|
|
39
40
|
})));
|
|
@@ -80,7 +81,8 @@ export function MessagesPopup() {
|
|
|
80
81
|
!globalStore.account.open &&
|
|
81
82
|
!globalStore.account__mobile.open &&
|
|
82
83
|
!globalStore.kyc.open &&
|
|
83
|
-
!globalStore.kycReminder.open
|
|
84
|
+
!globalStore.kycReminder.open &&
|
|
85
|
+
!globalStore.responsibleGamingReminder.open,
|
|
84
86
|
refetchInterval: disclosure.open ? undefined : 1000 * 10,
|
|
85
87
|
});
|
|
86
88
|
const messages = messagesQuery.data?.pages.flatMap((page) => page.edges
|
|
@@ -120,7 +122,11 @@ export function MessagesPopup() {
|
|
|
120
122
|
const sessionQuery = useSessionQuery();
|
|
121
123
|
const session = sessionQuery.data;
|
|
122
124
|
const isKycClosed = !globalStore.kyc.open && !globalStore.kycReminder.open;
|
|
123
|
-
|
|
125
|
+
const isResponsibleGamingReminderClosed = !globalStore.responsibleGamingReminder.open;
|
|
126
|
+
return (_jsx(Dialog.Root, { open: disclosure.open &&
|
|
127
|
+
!paused &&
|
|
128
|
+
isKycClosed &&
|
|
129
|
+
isResponsibleGamingReminderClosed, onOpenChange: (details) => {
|
|
124
130
|
disclosure.setOpen(details.open);
|
|
125
131
|
}, 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 max-h-[80vh] min-w-[21.438rem] max-w-[21.438rem] overflow-y-auto rounded-xl p-3xl lg:min-w-[25rem] lg:max-w-[25rem]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs(Carousel.Root, { page: index, onPageChange: (details) => {
|
|
126
132
|
setIndex(details.page);
|