@opexa/portal-components 0.0.628 → 0.0.629
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.
|
@@ -46,15 +46,13 @@ export function KYCReminder(props) {
|
|
|
46
46
|
const isAccountReady = !accountLoading;
|
|
47
47
|
const isSessionReady = !sessionLoading && session?.status === 'authenticated';
|
|
48
48
|
const isKYCReminderOpen = globalStore.kycReminder.open && !globalStore.kyc.open;
|
|
49
|
-
const isResponsibleGamingReminderClosed = !globalStore.responsibleGamingReminder.open || true;
|
|
50
49
|
const isKYCStateRelevant = isNotVerified ||
|
|
51
50
|
(isPending && isVerificationLocked) ||
|
|
52
51
|
(isNotVerified && isVerificationLocked);
|
|
53
52
|
return (_jsx(Dialog.Root, { open: isSessionReady &&
|
|
54
53
|
isAccountReady &&
|
|
55
54
|
isKYCReminderOpen &&
|
|
56
|
-
isKYCStateRelevant
|
|
57
|
-
isResponsibleGamingReminderClosed, onOpenChange: (details) => {
|
|
55
|
+
isKYCStateRelevant, onOpenChange: (details) => {
|
|
58
56
|
globalStore.kycReminder.setOpen(details.open);
|
|
59
57
|
}, 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) => (_jsx("div", { className: "mt-6 space-y-lg", children: _jsx(Button, { onClick: () => {
|
|
60
58
|
api.setOpen(false);
|