@opexa/portal-components 0.0.862 → 0.0.863
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.
- package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
- package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .d.ts +1 -0
- package/dist/components/DepositWithdrawal/Deposit/GCashWebpayDeposit /GCashWebpayDeposit .js +191 -0
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__legacy/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit__next/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit__legacy/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/DigitainLauncher/Loading.js +1 -1
- package/dist/components/Jackpots/Jackpots.module.css +221 -221
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
- package/dist/components/KYC/BasicInformation.js +1 -1
- package/dist/components/KYC/IdentityVerification.js +1 -1
- package/dist/components/KYC/KYC.lazy.js +1 -1
- package/dist/components/KYC/KYCDefault/KYCVerificationStatus.lazy.js +2 -2
- package/dist/components/KYC/KYCVerificationStatus.lazy.js +7 -13
- package/dist/components/KYC/PersonalInformation.js +1 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +4 -1
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/icons/LinkBrokenIcon.d.ts +2 -0
- package/dist/icons/LinkBrokenIcon.js +4 -0
- package/dist/services/queries.js +3153 -3153
- package/dist/styles/theme.css +776 -776
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- package/dist/ui/Carousel/Carousel.d.ts +72 -72
- package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +90 -90
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/NumberInput/NumberInput.d.ts +24 -24
- package/dist/ui/NumberInput/numberInput.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/PinInput/PinInput.d.ts +12 -12
- package/dist/ui/PinInput/pinInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.recipe.d.ts +8 -8
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/package.json +177 -177
- package/dist/components/Disclaimer/ResponsibleGaming.d.ts +0 -10
- package/dist/components/Disclaimer/ResponsibleGaming.js +0 -13
- package/dist/components/Disclaimer/TermsOfUse.d.ts +0 -11
- package/dist/components/Disclaimer/TermsOfUse.js +0 -13
- package/dist/components/FeatureFlag/FeatureFlag.d.ts +0 -1
- package/dist/components/FeatureFlag/FeatureFlag.js +0 -29
- package/dist/components/FeatureFlag/index.d.ts +0 -1
- package/dist/components/FeatureFlag/index.js +0 -1
- package/dist/components/KYC/AutoOpen.d.ts +0 -1
- package/dist/components/KYC/AutoOpen.js +0 -40
- package/dist/components/KYC/CaptureIdDocument.d.ts +0 -1
- package/dist/components/KYC/CaptureIdDocument.js +0 -219
- package/dist/components/KYC/CaptureSelfie.d.ts +0 -1
- package/dist/components/KYC/CaptureSelfie.js +0 -285
- package/dist/components/KYC/DisplayImage.d.ts +0 -5
- package/dist/components/KYC/DisplayImage.js +0 -8
- package/dist/components/KYC/FileUpload.d.ts +0 -10
- package/dist/components/KYC/FileUpload.js +0 -72
- package/dist/components/KYC/NoCameraError.d.ts +0 -7
- package/dist/components/KYC/NoCameraError.js +0 -6
- package/dist/components/KYC/PersonOverlayDesktop.d.ts +0 -7
- package/dist/components/KYC/PersonOverlayDesktop.js +0 -9
- package/dist/components/KYC/backup/Header.d.ts +0 -1
- package/dist/components/KYC/backup/Header.js +0 -8
- package/dist/components/KYC/backup/Indicator.d.ts +0 -1
- package/dist/components/KYC/backup/Indicator.js +0 -9
- package/dist/components/KYC/backup/KYC.d.ts +0 -1
- package/dist/components/KYC/backup/KYC.js +0 -14
- package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
- package/dist/components/KYC/backup/KYC.lazy.js +0 -26
- package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
- package/dist/components/KYC/backup/KYCContext.js +0 -2
- package/dist/components/KYC/backup/Step1.d.ts +0 -1
- package/dist/components/KYC/backup/Step1.js +0 -13
- package/dist/components/KYC/backup/Step2.d.ts +0 -1
- package/dist/components/KYC/backup/Step2.js +0 -13
- package/dist/components/KYC/backup/Step3.d.ts +0 -1
- package/dist/components/KYC/backup/Step3.js +0 -13
- package/dist/components/KYC/backup/Step4.d.ts +0 -1
- package/dist/components/KYC/backup/Step4.js +0 -7
- package/dist/components/KYC/backup/useKYC.d.ts +0 -10
- package/dist/components/KYC/backup/useKYC.js +0 -8
- package/dist/components/KYC/loadModels.d.ts +0 -1
- package/dist/components/KYC/loadModels.js +0 -9
- package/dist/components/KYC/utils.d.ts +0 -9
- package/dist/components/KYC/utils.js +0 -79
- package/dist/components/Messages/Message.d.ts +0 -1
- package/dist/components/Messages/Message.js +0 -35
- package/dist/components/Messages/MessageContext.d.ts +0 -6
- package/dist/components/Messages/MessageContext.js +0 -2
- package/dist/components/Messages/MessagePopup.d.ts +0 -1
- package/dist/components/Messages/MessagePopup.js +0 -20
- package/dist/components/Messages/MessageTrigger.d.ts +0 -8
- package/dist/components/Messages/MessageTrigger.js +0 -19
- package/dist/components/Quests/CountdownTimer.d.ts +0 -15
- package/dist/components/Quests/CountdownTimer.js +0 -33
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +0 -4
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +0 -78
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +0 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +0 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +0 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.js +0 -20
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
- package/dist/components/SignIn/utils.d.ts +0 -8
- package/dist/components/SignIn/utils.js +0 -26
- package/dist/components/SignUp/SignUp.lazy.d.ts +0 -12
- package/dist/components/SignUp/SignUp.lazy.js +0 -18
- package/dist/components/SignUp/SignUpContext.d.ts +0 -6
- package/dist/components/SignUp/SignUpContext.js +0 -2
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +0 -17
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +0 -18
- package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +0 -6
- package/dist/components/SignUp/SignUpDefault/SignUpContext.js +0 -2
- package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +0 -1
- package/dist/components/SignUp/SignUpDefault/SignUpForm.js +0 -310
- package/dist/components/SignUp/SignUpForm.d.ts +0 -1
- package/dist/components/SignUp/SignUpForm.js +0 -284
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +0 -198
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +0 -251
- package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +0 -10
- package/dist/components/SignUp/SignUpKYC/ImageUploader.js +0 -42
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +0 -7
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +0 -9
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +0 -1
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +0 -464
- package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +0 -11
- package/dist/components/SignUp/SignUpKYC/useImageUploader.js +0 -20
- package/dist/components/SignUp/SignUpKYC/utils.d.ts +0 -9
- package/dist/components/SignUp/SignUpKYC/utils.js +0 -79
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +0 -198
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +0 -251
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +0 -10
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +0 -41
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +0 -1
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +0 -429
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +0 -13
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +0 -26
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +0 -7
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +0 -2
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +0 -11
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +0 -20
- package/dist/components/shared/IdDocumentField.client.d.ts +0 -25
- package/dist/components/shared/IdDocumentField.client.js +0 -204
- package/dist/components/shared/IdDocumentField.d.ts +0 -2
- package/dist/components/shared/IdDocumentField.js +0 -11
- package/dist/components/shared/SelfieField.client.d.ts +0 -20
- package/dist/components/shared/SelfieField.client.js +0 -327
- package/dist/components/shared/SelfieField.d.ts +0 -2
- package/dist/components/shared/SelfieField.js +0 -11
- package/dist/constants/BranchCode.d.ts +0 -4
- package/dist/constants/BranchCode.js +0 -42
- package/dist/constants/Branches.d.ts +0 -2
- package/dist/constants/Branches.js +0 -42
- package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
- package/dist/handlers/postTransformIdFrontImage.js +0 -67
- package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
- package/dist/handlers/postTransformSelfieImage.js +0 -71
- package/dist/handlers.d.ts +0 -43
- package/dist/handlers.js +0 -297
- package/dist/icons/BellRingIcon.d.ts +0 -2
- package/dist/icons/BellRingIcon.js +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
- package/dist/utils/dataUrlToBlob.d.ts +0 -1
- package/dist/utils/dataUrlToBlob.js +0 -11
- package/dist/utils/gamesAvailable3pmTo3am.d.ts +0 -1
- package/dist/utils/gamesAvailable3pmTo3am.js +0 -1
- package/dist/utils/getGameName.d.ts +0 -1
- package/dist/utils/getGameName.js +0 -6
- package/dist/utils/isBetween3amAnd3pm.d.ts +0 -1
- package/dist/utils/isBetween3amAnd3pm.js +0 -5
- package/dist/utils/resizeImageSize.d.ts +0 -2
- package/dist/utils/resizeImageSize.js +0 -11
|
@@ -10,7 +10,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
trigger: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
}, Record<"content" | "
|
|
13
|
+
}, Record<"content" | "root" | "indicator" | "list" | "trigger", string | string[]>, undefined, {
|
|
14
14
|
size: {
|
|
15
15
|
md: {};
|
|
16
16
|
};
|
|
@@ -22,7 +22,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
trigger: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
}, Record<"content" | "
|
|
25
|
+
}, Record<"content" | "root" | "indicator" | "list" | "trigger", string | string[]>, import("tailwind-variants").TVReturnType<{
|
|
26
26
|
size: {
|
|
27
27
|
md: {};
|
|
28
28
|
};
|
|
@@ -34,4 +34,4 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
34
34
|
trigger: string;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
}, Record<"content" | "
|
|
37
|
+
}, Record<"content" | "root" | "indicator" | "list" | "trigger", string | string[]>, undefined, unknown, unknown, undefined>>;
|
package/package.json
CHANGED
|
@@ -1,177 +1,177 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opexa/portal-components",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"exports": {
|
|
5
|
-
"./ui/*": {
|
|
6
|
-
"types": "./dist/ui/*/index.d.ts",
|
|
7
|
-
"default": "./dist/ui/*/index.js"
|
|
8
|
-
},
|
|
9
|
-
"./utils/*": {
|
|
10
|
-
"types": "./dist/utils/*.d.ts",
|
|
11
|
-
"import": "./dist/utils/*.js"
|
|
12
|
-
},
|
|
13
|
-
"./types": {
|
|
14
|
-
"types": "./dist/types/index.d.ts",
|
|
15
|
-
"import": "./dist/types/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./handlers": {
|
|
18
|
-
"types": "./dist/handlers/index.d.ts",
|
|
19
|
-
"default": "./dist/handlers/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./middleware": {
|
|
22
|
-
"types": "./dist/middleware.d.ts",
|
|
23
|
-
"default": "./dist/middleware.js"
|
|
24
|
-
},
|
|
25
|
-
"./constants": {
|
|
26
|
-
"types": "./dist/constants/index.d.ts",
|
|
27
|
-
"default": "./dist/constants/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./services/*": {
|
|
30
|
-
"types": "./dist/services/*.d.ts",
|
|
31
|
-
"default": "./dist/services/*.js"
|
|
32
|
-
},
|
|
33
|
-
"./client-utils/*": {
|
|
34
|
-
"types": "./dist/client/utils/*.d.ts",
|
|
35
|
-
"default": "./dist/client/utils/*.js"
|
|
36
|
-
},
|
|
37
|
-
"./client-hooks/*": {
|
|
38
|
-
"types": "./dist/client/hooks/*.d.ts",
|
|
39
|
-
"default": "./dist/client/hooks/*.js"
|
|
40
|
-
},
|
|
41
|
-
"./client-services/*": {
|
|
42
|
-
"types": "./dist/client/services/*.d.ts",
|
|
43
|
-
"default": "./dist/client/services/*.js"
|
|
44
|
-
},
|
|
45
|
-
"./server-utils/*": {
|
|
46
|
-
"types": "./dist/server/utils/*.d.ts",
|
|
47
|
-
"default": "./dist/server/utils/*.js"
|
|
48
|
-
},
|
|
49
|
-
"./server-services/*": {
|
|
50
|
-
"types": "./dist/server/services/*.d.ts",
|
|
51
|
-
"default": "./dist/server/services/*.js"
|
|
52
|
-
},
|
|
53
|
-
"./next.config": {
|
|
54
|
-
"types": "./dist/next.config.d.ts",
|
|
55
|
-
"default": "./dist/next.config.js"
|
|
56
|
-
},
|
|
57
|
-
"./theme.css": "./dist/styles/theme.css",
|
|
58
|
-
"./*": {
|
|
59
|
-
"types": "./dist/components/*/index.d.ts",
|
|
60
|
-
"default": "./dist/components/*/index.js"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"files": [
|
|
64
|
-
"dist",
|
|
65
|
-
"!dist/tsconfig.tsbuildinfo",
|
|
66
|
-
"!dist/tsconfig.build.tsbuildinfo"
|
|
67
|
-
],
|
|
68
|
-
"publishConfig": {
|
|
69
|
-
"access": "public"
|
|
70
|
-
},
|
|
71
|
-
"scripts": {
|
|
72
|
-
"dev": "next dev --port 4000",
|
|
73
|
-
"build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
|
|
74
|
-
"build:app": "next build",
|
|
75
|
-
"start": "next start",
|
|
76
|
-
"release": "release-it"
|
|
77
|
-
},
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@ark-ui/react": "^5.16.0",
|
|
80
|
-
"@capacitor/android": "^7.4.3",
|
|
81
|
-
"@capacitor/app": "^7.0.2",
|
|
82
|
-
"@capacitor/camera": "^7.0.2",
|
|
83
|
-
"@capacitor/cli": "^7.4.3",
|
|
84
|
-
"@capacitor/core": "^7.4.3",
|
|
85
|
-
"@capacitor/file-transfer": "^1.0.5",
|
|
86
|
-
"@capacitor/filesystem": "^7.1.4",
|
|
87
|
-
"@capacitor/push-notifications": "^7.0.2",
|
|
88
|
-
"@capacitor/splash-screen": "^7.0.2",
|
|
89
|
-
"@date-fns/tz": "^1.2.0",
|
|
90
|
-
"@greatsumini/react-facebook-login": "^3.4.0",
|
|
91
|
-
"@mediapipe/tasks-vision": "0.10.22-rc.20250304",
|
|
92
|
-
"@next/third-parties": "^15.4.1",
|
|
93
|
-
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
94
|
-
"@react-oauth/google": "^0.12.2",
|
|
95
|
-
"@sumsub/websdk": "^2.3.18",
|
|
96
|
-
"@sumsub/websdk-react": "^2.3.18",
|
|
97
|
-
"@tailwindcss/typography": "^0.5.16",
|
|
98
|
-
"capacitor-native-biometric": "^4.2.2",
|
|
99
|
-
"capacitor-plugin-safe-area": "^4.0.0",
|
|
100
|
-
"date-fns": "^4.1.0",
|
|
101
|
-
"embla-carousel-autoplay": "^8.6.0",
|
|
102
|
-
"embla-carousel-react": "^8.6.0",
|
|
103
|
-
"is-mobile": "^5.0.0",
|
|
104
|
-
"latest": "^0.2.0",
|
|
105
|
-
"lodash-es": "^4.17.21",
|
|
106
|
-
"mixpanel-browser": "^2.71.0",
|
|
107
|
-
"next-recaptcha-v3": "^1.5.2",
|
|
108
|
-
"qrcode": "^1.5.4",
|
|
109
|
-
"tailwind-merge": "^3.3.1",
|
|
110
|
-
"tailwind-variants": "^1.0.0",
|
|
111
|
-
"tailwind-zag": "^1.0.2",
|
|
112
|
-
"tiny-invariant": "^1.3.3",
|
|
113
|
-
"type-fest": "^4.41.0",
|
|
114
|
-
"usehooks-ts": "^3.1.1",
|
|
115
|
-
"zustand": "^5.0.6"
|
|
116
|
-
},
|
|
117
|
-
"devDependencies": {
|
|
118
|
-
"@hookform/resolvers": "5.1.1",
|
|
119
|
-
"@opexa/object-id": "0.1.6",
|
|
120
|
-
"@tailwindcss/postcss": "4",
|
|
121
|
-
"@tanstack/react-query": "5.83.0",
|
|
122
|
-
"@tanstack/react-query-devtools": "5.83.0",
|
|
123
|
-
"@total-typescript/ts-reset": "0.6.1",
|
|
124
|
-
"@types/lodash-es": "4.17.12",
|
|
125
|
-
"@types/node": "24",
|
|
126
|
-
"@types/qrcode": "^1.5.5",
|
|
127
|
-
"@types/react": "19.1.8",
|
|
128
|
-
"@types/react-dom": "19.1.6",
|
|
129
|
-
"copy-files-from-to": "3.12.1",
|
|
130
|
-
"next": "15.4.2-canary.0",
|
|
131
|
-
"react": "19.1.0",
|
|
132
|
-
"react-dom": "19.1.0",
|
|
133
|
-
"react-hook-form": "7.60.0",
|
|
134
|
-
"release-it": "19.0.3",
|
|
135
|
-
"tailwindcss": "4.1.11",
|
|
136
|
-
"tsc-alias": "1.8.16",
|
|
137
|
-
"typescript": "5",
|
|
138
|
-
"zod": "4.0.5"
|
|
139
|
-
},
|
|
140
|
-
"peerDependencies": {
|
|
141
|
-
"@hookform/resolvers": "^4.0.0 || ^5.0.0",
|
|
142
|
-
"@opexa/object-id": "^0.1.0",
|
|
143
|
-
"@tanstack/react-query": "^5.0.0",
|
|
144
|
-
"next": "^15.4.0-canary.1",
|
|
145
|
-
"react": "^19.0.0",
|
|
146
|
-
"react-dom": "^19.0.0",
|
|
147
|
-
"react-hook-form": "^7.0.0",
|
|
148
|
-
"tailwindcss": "^4.0.0",
|
|
149
|
-
"zod": "^3.0.0"
|
|
150
|
-
},
|
|
151
|
-
"release-it": {
|
|
152
|
-
"git": {
|
|
153
|
-
"commitMessage": "chore: release ${npm.name} v${version}",
|
|
154
|
-
"tagName": "${npm.name}@${version}"
|
|
155
|
-
},
|
|
156
|
-
"github": {
|
|
157
|
-
"release": false
|
|
158
|
-
},
|
|
159
|
-
"hooks": {
|
|
160
|
-
"after:bump": [
|
|
161
|
-
"pnpm build"
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"copyFiles": [
|
|
166
|
-
{
|
|
167
|
-
"from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
|
|
168
|
-
"to": "dist/",
|
|
169
|
-
"toFlat": false
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"copyFilesSettings": {
|
|
173
|
-
"whenFileExists": "overwrite",
|
|
174
|
-
"removeSourceMappingURL": true,
|
|
175
|
-
"ignoreDotFilesAndFolders": false
|
|
176
|
-
}
|
|
177
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@opexa/portal-components",
|
|
3
|
+
"version": "0.0.863",
|
|
4
|
+
"exports": {
|
|
5
|
+
"./ui/*": {
|
|
6
|
+
"types": "./dist/ui/*/index.d.ts",
|
|
7
|
+
"default": "./dist/ui/*/index.js"
|
|
8
|
+
},
|
|
9
|
+
"./utils/*": {
|
|
10
|
+
"types": "./dist/utils/*.d.ts",
|
|
11
|
+
"import": "./dist/utils/*.js"
|
|
12
|
+
},
|
|
13
|
+
"./types": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"import": "./dist/types/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./handlers": {
|
|
18
|
+
"types": "./dist/handlers/index.d.ts",
|
|
19
|
+
"default": "./dist/handlers/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./middleware": {
|
|
22
|
+
"types": "./dist/middleware.d.ts",
|
|
23
|
+
"default": "./dist/middleware.js"
|
|
24
|
+
},
|
|
25
|
+
"./constants": {
|
|
26
|
+
"types": "./dist/constants/index.d.ts",
|
|
27
|
+
"default": "./dist/constants/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./services/*": {
|
|
30
|
+
"types": "./dist/services/*.d.ts",
|
|
31
|
+
"default": "./dist/services/*.js"
|
|
32
|
+
},
|
|
33
|
+
"./client-utils/*": {
|
|
34
|
+
"types": "./dist/client/utils/*.d.ts",
|
|
35
|
+
"default": "./dist/client/utils/*.js"
|
|
36
|
+
},
|
|
37
|
+
"./client-hooks/*": {
|
|
38
|
+
"types": "./dist/client/hooks/*.d.ts",
|
|
39
|
+
"default": "./dist/client/hooks/*.js"
|
|
40
|
+
},
|
|
41
|
+
"./client-services/*": {
|
|
42
|
+
"types": "./dist/client/services/*.d.ts",
|
|
43
|
+
"default": "./dist/client/services/*.js"
|
|
44
|
+
},
|
|
45
|
+
"./server-utils/*": {
|
|
46
|
+
"types": "./dist/server/utils/*.d.ts",
|
|
47
|
+
"default": "./dist/server/utils/*.js"
|
|
48
|
+
},
|
|
49
|
+
"./server-services/*": {
|
|
50
|
+
"types": "./dist/server/services/*.d.ts",
|
|
51
|
+
"default": "./dist/server/services/*.js"
|
|
52
|
+
},
|
|
53
|
+
"./next.config": {
|
|
54
|
+
"types": "./dist/next.config.d.ts",
|
|
55
|
+
"default": "./dist/next.config.js"
|
|
56
|
+
},
|
|
57
|
+
"./theme.css": "./dist/styles/theme.css",
|
|
58
|
+
"./*": {
|
|
59
|
+
"types": "./dist/components/*/index.d.ts",
|
|
60
|
+
"default": "./dist/components/*/index.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"!dist/tsconfig.tsbuildinfo",
|
|
66
|
+
"!dist/tsconfig.build.tsbuildinfo"
|
|
67
|
+
],
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"dev": "next dev --port 4000",
|
|
73
|
+
"build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json && copy-files-from-to",
|
|
74
|
+
"build:app": "next build",
|
|
75
|
+
"start": "next start",
|
|
76
|
+
"release": "release-it"
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@ark-ui/react": "^5.16.0",
|
|
80
|
+
"@capacitor/android": "^7.4.3",
|
|
81
|
+
"@capacitor/app": "^7.0.2",
|
|
82
|
+
"@capacitor/camera": "^7.0.2",
|
|
83
|
+
"@capacitor/cli": "^7.4.3",
|
|
84
|
+
"@capacitor/core": "^7.4.3",
|
|
85
|
+
"@capacitor/file-transfer": "^1.0.5",
|
|
86
|
+
"@capacitor/filesystem": "^7.1.4",
|
|
87
|
+
"@capacitor/push-notifications": "^7.0.2",
|
|
88
|
+
"@capacitor/splash-screen": "^7.0.2",
|
|
89
|
+
"@date-fns/tz": "^1.2.0",
|
|
90
|
+
"@greatsumini/react-facebook-login": "^3.4.0",
|
|
91
|
+
"@mediapipe/tasks-vision": "0.10.22-rc.20250304",
|
|
92
|
+
"@next/third-parties": "^15.4.1",
|
|
93
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
94
|
+
"@react-oauth/google": "^0.12.2",
|
|
95
|
+
"@sumsub/websdk": "^2.3.18",
|
|
96
|
+
"@sumsub/websdk-react": "^2.3.18",
|
|
97
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
98
|
+
"capacitor-native-biometric": "^4.2.2",
|
|
99
|
+
"capacitor-plugin-safe-area": "^4.0.0",
|
|
100
|
+
"date-fns": "^4.1.0",
|
|
101
|
+
"embla-carousel-autoplay": "^8.6.0",
|
|
102
|
+
"embla-carousel-react": "^8.6.0",
|
|
103
|
+
"is-mobile": "^5.0.0",
|
|
104
|
+
"latest": "^0.2.0",
|
|
105
|
+
"lodash-es": "^4.17.21",
|
|
106
|
+
"mixpanel-browser": "^2.71.0",
|
|
107
|
+
"next-recaptcha-v3": "^1.5.2",
|
|
108
|
+
"qrcode": "^1.5.4",
|
|
109
|
+
"tailwind-merge": "^3.3.1",
|
|
110
|
+
"tailwind-variants": "^1.0.0",
|
|
111
|
+
"tailwind-zag": "^1.0.2",
|
|
112
|
+
"tiny-invariant": "^1.3.3",
|
|
113
|
+
"type-fest": "^4.41.0",
|
|
114
|
+
"usehooks-ts": "^3.1.1",
|
|
115
|
+
"zustand": "^5.0.6"
|
|
116
|
+
},
|
|
117
|
+
"devDependencies": {
|
|
118
|
+
"@hookform/resolvers": "5.1.1",
|
|
119
|
+
"@opexa/object-id": "0.1.6",
|
|
120
|
+
"@tailwindcss/postcss": "4",
|
|
121
|
+
"@tanstack/react-query": "5.83.0",
|
|
122
|
+
"@tanstack/react-query-devtools": "5.83.0",
|
|
123
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
124
|
+
"@types/lodash-es": "4.17.12",
|
|
125
|
+
"@types/node": "24",
|
|
126
|
+
"@types/qrcode": "^1.5.5",
|
|
127
|
+
"@types/react": "19.1.8",
|
|
128
|
+
"@types/react-dom": "19.1.6",
|
|
129
|
+
"copy-files-from-to": "3.12.1",
|
|
130
|
+
"next": "15.4.2-canary.0",
|
|
131
|
+
"react": "19.1.0",
|
|
132
|
+
"react-dom": "19.1.0",
|
|
133
|
+
"react-hook-form": "7.60.0",
|
|
134
|
+
"release-it": "19.0.3",
|
|
135
|
+
"tailwindcss": "4.1.11",
|
|
136
|
+
"tsc-alias": "1.8.16",
|
|
137
|
+
"typescript": "5",
|
|
138
|
+
"zod": "4.0.5"
|
|
139
|
+
},
|
|
140
|
+
"peerDependencies": {
|
|
141
|
+
"@hookform/resolvers": "^4.0.0 || ^5.0.0",
|
|
142
|
+
"@opexa/object-id": "^0.1.0",
|
|
143
|
+
"@tanstack/react-query": "^5.0.0",
|
|
144
|
+
"next": "^15.4.0-canary.1",
|
|
145
|
+
"react": "^19.0.0",
|
|
146
|
+
"react-dom": "^19.0.0",
|
|
147
|
+
"react-hook-form": "^7.0.0",
|
|
148
|
+
"tailwindcss": "^4.0.0",
|
|
149
|
+
"zod": "^3.0.0"
|
|
150
|
+
},
|
|
151
|
+
"release-it": {
|
|
152
|
+
"git": {
|
|
153
|
+
"commitMessage": "chore: release ${npm.name} v${version}",
|
|
154
|
+
"tagName": "${npm.name}@${version}"
|
|
155
|
+
},
|
|
156
|
+
"github": {
|
|
157
|
+
"release": false
|
|
158
|
+
},
|
|
159
|
+
"hooks": {
|
|
160
|
+
"after:bump": [
|
|
161
|
+
"pnpm build"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"copyFiles": [
|
|
166
|
+
{
|
|
167
|
+
"from": "src/lib/**/*.{png,jpg,jpeg,gif,svg,css,json}",
|
|
168
|
+
"to": "dist/",
|
|
169
|
+
"toFlat": false
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"copyFilesSettings": {
|
|
173
|
+
"whenFileExists": "overwrite",
|
|
174
|
+
"removeSourceMappingURL": true,
|
|
175
|
+
"ignoreDotFilesAndFolders": false
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ImageProps } from 'next/image';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export interface ResponsibleGamingProps {
|
|
4
|
-
responsibleGamingContent: string | ReactNode;
|
|
5
|
-
logo: ImageProps['src'];
|
|
6
|
-
open: boolean;
|
|
7
|
-
onCloseAction: () => void;
|
|
8
|
-
responsibleGamingLogo?: ImageProps['src'];
|
|
9
|
-
}
|
|
10
|
-
export declare function ResponsibleGaming({ logo, open, responsibleGamingContent, onCloseAction, ...props }: ResponsibleGamingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Image, {} from 'next/image';
|
|
4
|
-
import pagcorLogo from '../../images/pagcor.png';
|
|
5
|
-
import responsibleGamingLogo from '../../images/responsible-gaming.png';
|
|
6
|
-
import { Button } from '../../ui/Button/index.js';
|
|
7
|
-
import { Dialog } from '../../ui/Dialog/index.js';
|
|
8
|
-
import { Portal } from '../../ui/Portal/index.js';
|
|
9
|
-
export function ResponsibleGaming({ logo, open, responsibleGamingContent, onCloseAction, ...props }) {
|
|
10
|
-
return (_jsx(Dialog.Root, { open: open, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "z-popover" }), _jsx(Dialog.Positioner, { className: "z-popover", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsx(Dialog.Title, { className: "text-brand-400 mt-3xl text-center text-lg font-semibold", children: "Responsible Gaming" }), _jsx(Dialog.Description, { className: "leading-2xl mt-xs text-sm", children: responsibleGamingContent }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx("div", { className: "w-full", children: _jsx(Button, { type: "button", className: "mt-3", onClick: () => {
|
|
11
|
-
onCloseAction();
|
|
12
|
-
}, children: "I Agree" }) })] }) })] }) }));
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ImageProps } from 'next/image';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export interface TermsOfUseProps {
|
|
4
|
-
logo: ImageProps['src'];
|
|
5
|
-
open: boolean;
|
|
6
|
-
onCloseAction: () => void;
|
|
7
|
-
termsOfUseContent: string | ReactNode;
|
|
8
|
-
siteName: string;
|
|
9
|
-
responsibleGamingLogo?: ImageProps['src'];
|
|
10
|
-
}
|
|
11
|
-
export declare function TermsOfUse({ logo, open, onCloseAction, siteName, termsOfUseContent, ...props }: TermsOfUseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Image, {} from 'next/image';
|
|
4
|
-
import pagcorLogo from '../../images/pagcor.png';
|
|
5
|
-
import responsibleGamingLogo from '../../images/responsible-gaming.png';
|
|
6
|
-
import { Button } from '../../ui/Button/index.js';
|
|
7
|
-
import { Dialog } from '../../ui/Dialog/index.js';
|
|
8
|
-
import { Portal } from '../../ui/Portal/index.js';
|
|
9
|
-
export function TermsOfUse({ logo, open, onCloseAction, siteName, termsOfUseContent, ...props }) {
|
|
10
|
-
return (_jsx(Dialog.Root, { open: open, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "z-popover" }), _jsx(Dialog.Positioner, { className: "z-popover", children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start overflow-y-auto p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsxs(Dialog.Title, { className: "text-brand-400 mt-3xl text-center text-lg font-semibold", children: [siteName, " Terms of Use"] }), _jsx(Dialog.Description, { className: "leading-2xl mt-xs text-sm", children: termsOfUseContent }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: props.responsibleGamingLogo ?? responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx("div", { className: "w-full", children: _jsx(Button, { type: "button", className: "mt-3", onClick: () => {
|
|
11
|
-
onCloseAction();
|
|
12
|
-
}, children: "I Agree" }) })] }) })] }) }));
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function FeatureFlag(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useRouter, useSearchParams } from 'next/navigation';
|
|
4
|
-
import { useEffect } from 'react';
|
|
5
|
-
import { FEATURE_FLAG_KEY, useFeatureFlag, } from '../../client/hooks/useFeatureFlag.js';
|
|
6
|
-
export function FeatureFlag() {
|
|
7
|
-
const { featureFlagEnabled, setFeatureFlagEnabled } = useFeatureFlag();
|
|
8
|
-
const searchParams = useSearchParams();
|
|
9
|
-
const router = useRouter();
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const futureFlagParam = searchParams.get('future');
|
|
12
|
-
if (futureFlagParam !== null) {
|
|
13
|
-
const isEnabled = futureFlagParam === 'true';
|
|
14
|
-
setFeatureFlagEnabled(isEnabled);
|
|
15
|
-
localStorage.setItem(FEATURE_FLAG_KEY, isEnabled.toString());
|
|
16
|
-
}
|
|
17
|
-
}, [searchParams, setFeatureFlagEnabled]);
|
|
18
|
-
function disableFeatureFlag() {
|
|
19
|
-
setFeatureFlagEnabled(false);
|
|
20
|
-
localStorage.removeItem(FEATURE_FLAG_KEY);
|
|
21
|
-
const params = new URLSearchParams(searchParams.toString());
|
|
22
|
-
params.delete('future');
|
|
23
|
-
router.replace(`?${params.toString()}`, { scroll: false });
|
|
24
|
-
}
|
|
25
|
-
if (!featureFlagEnabled) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return (_jsx("div", { className: "fixed bottom-3 flex w-full flex-col items-center justify-center", children: _jsxs("div", { className: "bg-black/70 p-1", children: ["Experimental features are enabled.", ' ', _jsxs("button", { onClick: () => disableFeatureFlag(), className: "cursor-pointer underline", children: [' ', "Disable"] })] }) }));
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FeatureFlag';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FeatureFlag.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function AutoOpen(): null;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import { useShallow } from 'zustand/shallow';
|
|
3
|
-
import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
|
|
4
|
-
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
5
|
-
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
6
|
-
import { useSessionQuery } from '../../client/hooks/useSessionQuery.js';
|
|
7
|
-
import { KYC_PROMPT_LOCALSTORAGE_KEY } from '../../constants/index.js';
|
|
8
|
-
export function AutoOpen() {
|
|
9
|
-
const kycStore = useGlobalStore(useShallow((ctx) => ctx.kyc));
|
|
10
|
-
const { data: session } = useSessionQuery();
|
|
11
|
-
const { data: account } = useAccountQuery();
|
|
12
|
-
const { data: verification } = useMemberVerificationQuery();
|
|
13
|
-
const isBasicInfoCompleted = account?.realName !== null && account?.birthDay !== null;
|
|
14
|
-
const isUploadCompleted = verification &&
|
|
15
|
-
verification.idFrontImage !== null &&
|
|
16
|
-
verification.selfieImage !== null;
|
|
17
|
-
const isRejected = Boolean(verification?.status === 'REJECTED');
|
|
18
|
-
const step = !isBasicInfoCompleted
|
|
19
|
-
? 1
|
|
20
|
-
: isRejected
|
|
21
|
-
? 2
|
|
22
|
-
: isUploadCompleted
|
|
23
|
-
? 3
|
|
24
|
-
: 2;
|
|
25
|
-
const shouldOpen = !isBasicInfoCompleted || !isUploadCompleted || isRejected;
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (session?.status == 'authenticated' &&
|
|
28
|
-
shouldOpen &&
|
|
29
|
-
localStorage.getItem(KYC_PROMPT_LOCALSTORAGE_KEY) === null) {
|
|
30
|
-
kycStore.setKycReminder(true);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}, [kycStore, session?.status, shouldOpen]);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (step) {
|
|
36
|
-
kycStore.setStep(step);
|
|
37
|
-
}
|
|
38
|
-
}, [kycStore, step]);
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CaptureIdDocument(): import("react/jsx-runtime").JSX.Element;
|