@opexa/portal-components 0.0.425 → 0.0.427
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/DigitainLauncher/Loading.js +1 -1
- package/dist/components/Disclaimer/ResponsibleGaming.d.ts +10 -0
- package/dist/components/Disclaimer/ResponsibleGaming.js +13 -0
- package/dist/components/Disclaimer/TermsOfUse.d.ts +11 -0
- package/dist/components/Disclaimer/TermsOfUse.js +13 -0
- package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
- package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
- package/dist/components/FeatureFlag/index.d.ts +1 -0
- package/dist/components/FeatureFlag/index.js +1 -0
- package/dist/components/Jackpots/Jackpots.module.css +184 -184
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
- package/dist/components/KYC/AutoOpen.d.ts +1 -0
- package/dist/components/KYC/AutoOpen.js +40 -0
- package/dist/components/KYC/BasicInformation.js +1 -1
- package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/KYC/CaptureIdDocument.js +219 -0
- package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/KYC/CaptureSelfie.js +285 -0
- package/dist/components/KYC/DisplayImage.d.ts +5 -0
- package/dist/components/KYC/DisplayImage.js +8 -0
- package/dist/components/KYC/FileUpload.d.ts +10 -0
- package/dist/components/KYC/FileUpload.js +72 -0
- package/dist/components/KYC/IdentityVerification.js +1 -1
- package/dist/components/KYC/KYC.lazy.js +1 -1
- package/dist/components/KYC/NoCameraError.d.ts +7 -0
- package/dist/components/KYC/NoCameraError.js +6 -0
- package/dist/components/KYC/PersonOverlayDesktop.d.ts +7 -0
- package/dist/components/KYC/PersonOverlayDesktop.js +9 -0
- package/dist/components/KYC/PersonalInformation.js +1 -1
- package/dist/components/KYC/backup/Header.d.ts +1 -0
- package/dist/components/KYC/backup/Header.js +8 -0
- package/dist/components/KYC/backup/Indicator.d.ts +1 -0
- package/dist/components/KYC/backup/Indicator.js +9 -0
- package/dist/components/KYC/backup/KYC.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.js +14 -0
- package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
- package/dist/components/KYC/backup/KYC.lazy.js +26 -0
- package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
- package/dist/components/KYC/backup/KYCContext.js +2 -0
- package/dist/components/KYC/backup/Step1.d.ts +1 -0
- package/dist/components/KYC/backup/Step1.js +13 -0
- package/dist/components/KYC/backup/Step2.d.ts +1 -0
- package/dist/components/KYC/backup/Step2.js +13 -0
- package/dist/components/KYC/backup/Step3.d.ts +1 -0
- package/dist/components/KYC/backup/Step3.js +13 -0
- package/dist/components/KYC/backup/Step4.d.ts +1 -0
- package/dist/components/KYC/backup/Step4.js +7 -0
- package/dist/components/KYC/backup/useKYC.d.ts +10 -0
- package/dist/components/KYC/backup/useKYC.js +8 -0
- package/dist/components/KYC/loadModels.d.ts +1 -0
- package/dist/components/KYC/loadModels.js +9 -0
- package/dist/components/KYC/utils.d.ts +9 -0
- package/dist/components/KYC/utils.js +79 -0
- package/dist/components/Messages/Message.d.ts +1 -0
- package/dist/components/Messages/Message.js +35 -0
- package/dist/components/Messages/MessageContext.d.ts +6 -0
- package/dist/components/Messages/MessageContext.js +2 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +20 -0
- package/dist/components/Messages/MessageTrigger.d.ts +8 -0
- package/dist/components/Messages/MessageTrigger.js +19 -0
- package/dist/components/Quests/CountdownTimer.d.ts +15 -0
- package/dist/components/Quests/CountdownTimer.js +33 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
- package/dist/components/Quests/DailyCheckInQuest.js +1 -1
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
- package/dist/components/SignIn/utils.d.ts +8 -0
- package/dist/components/SignIn/utils.js +26 -0
- package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
- package/dist/components/SignUp/SignUp.lazy.js +18 -0
- package/dist/components/SignUp/SignUpContext.d.ts +6 -0
- package/dist/components/SignUp/SignUpContext.js +2 -0
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.d.ts +17 -0
- package/dist/components/SignUp/SignUpDefault/SignUp.lazy.js +18 -0
- package/dist/components/SignUp/SignUpDefault/SignUpContext.d.ts +6 -0
- package/dist/components/SignUp/SignUpDefault/SignUpContext.js +2 -0
- package/dist/components/SignUp/SignUpDefault/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpDefault/SignUpForm.js +310 -0
- package/dist/components/SignUp/SignUpForm.d.ts +1 -0
- package/dist/components/SignUp/SignUpForm.js +284 -0
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/CaptureIdDocument.js +198 -0
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/CaptureSelfie.js +251 -0
- package/dist/components/SignUp/SignUpKYC/ImageUploader.d.ts +10 -0
- package/dist/components/SignUp/SignUpKYC/ImageUploader.js +42 -0
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.d.ts +7 -0
- package/dist/components/SignUp/SignUpKYC/PersonOverlayDesktop.js +9 -0
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.d.ts +1 -0
- package/dist/components/SignUp/SignUpKYC/SignUpFormKYC.js +464 -0
- package/dist/components/SignUp/SignUpKYC/useImageUploader.d.ts +11 -0
- package/dist/components/SignUp/SignUpKYC/useImageUploader.js +20 -0
- package/dist/components/SignUp/SignUpKYC/utils.d.ts +9 -0
- package/dist/components/SignUp/SignUpKYC/utils.js +79 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureIdDocument.js +198 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/CaptureSelfie.js +251 -0
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.d.ts +10 -0
- package/dist/components/SignUp/SignUpPagcor/ImageUploader.js +41 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.d.ts +1 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpFormPagcor.js +429 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.d.ts +13 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcor.lazy.js +26 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.d.ts +7 -0
- package/dist/components/SignUp/SignUpPagcor/SignUpPagcorContext.js +2 -0
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.d.ts +11 -0
- package/dist/components/SignUp/SignUpPagcor/useImageUploader.js +20 -0
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
- package/dist/components/shared/IdDocumentField.client.js +204 -0
- package/dist/components/shared/IdDocumentField.d.ts +2 -0
- package/dist/components/shared/IdDocumentField.js +11 -0
- package/dist/components/shared/SelfieField.client.d.ts +20 -0
- package/dist/components/shared/SelfieField.client.js +327 -0
- package/dist/components/shared/SelfieField.d.ts +2 -0
- package/dist/components/shared/SelfieField.js +11 -0
- package/dist/constants/BranchCode.d.ts +4 -0
- package/dist/constants/BranchCode.js +42 -0
- package/dist/constants/Branches.d.ts +2 -0
- package/dist/constants/Branches.js +42 -0
- package/dist/constants/EnvVar.d.ts +1 -1
- package/dist/constants/PisoPayBanks.js +360 -43
- package/dist/handlers/postTransformIdFrontImage.d.ts +3 -0
- package/dist/handlers/postTransformIdFrontImage.js +67 -0
- package/dist/handlers/postTransformSelfieImage.d.ts +3 -0
- package/dist/handlers/postTransformSelfieImage.js +71 -0
- package/dist/handlers.d.ts +43 -0
- package/dist/handlers.js +297 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +4 -0
- package/dist/services/queries.js +2687 -2687
- package/dist/styles/theme.css +719 -719
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +4 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +4 -0
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +1 -0
- package/dist/third-parties/FacebookPixel/index.d.ts +1 -0
- package/dist/third-parties/FacebookPixel/index.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +4 -0
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +4 -0
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +1 -0
- package/dist/third-parties/GoogleRecaptcha/index.js +1 -0
- package/dist/third-parties/index.d.ts +2 -0
- package/dist/third-parties/index.js +2 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +88 -88
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +8 -8
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +99 -99
- package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
- 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/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 +88 -88
- package/dist/ui/Dialog/dialog.recipe.d.ts +8 -8
- 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 +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- 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/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.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/dist/utils/dataUrlToBlob.d.ts +1 -0
- package/dist/utils/dataUrlToBlob.js +11 -0
- package/dist/utils/gamesAvailable3pmTo3am.d.ts +1 -0
- package/dist/utils/gamesAvailable3pmTo3am.js +1 -0
- package/dist/utils/getGameName.d.ts +1 -0
- package/dist/utils/getGameName.js +6 -0
- package/dist/utils/isBetween3amAnd3pm.d.ts +1 -0
- package/dist/utils/isBetween3amAnd3pm.js +5 -0
- package/dist/utils/resizeImageSize.d.ts +2 -0
- package/dist/utils/resizeImageSize.js +11 -0
- package/package.json +161 -161
- package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
- package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
- package/dist/icons/LinkBrokenIcon.d.ts +0 -2
- package/dist/icons/LinkBrokenIcon.js +0 -4
|
@@ -1,45 +1,362 @@
|
|
|
1
1
|
export const PISO_PAY_BANKS = [
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
2
|
+
{
|
|
3
|
+
code: "BLC20240621143201WZWIMGUKJ5TIG9LS7KUR",
|
|
4
|
+
name: "UNION BANK"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
code: "BLC20240621143201UBMISTIKV5HOT5CJKM5G",
|
|
8
|
+
name: "BDO"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
code: "BLC20240621143201VUYDENRGDAHGEGFHDH25",
|
|
12
|
+
name: "STERLING BANK"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
code: "BLC20240621143201MB8ZI12NDXY1WZXEGNHQ",
|
|
16
|
+
name: "MAYBANK"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
code: "BLC20240621143201RPZFXLSCUE3W3UUCKWZR",
|
|
20
|
+
name: "DBP"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
code: "BLC20240621143201LJB5EVCCF1SMOIXYYCQE",
|
|
24
|
+
name: "ISLA BANK"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
code: "BLC20240621143201LUM2BFUR0RDSUMALRCUD",
|
|
28
|
+
name: "BANGKO MABUHAY"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
code: "BLC202406211432017NYE4UKQ08GXHQSNSOBB",
|
|
32
|
+
name: "CHINABANK"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
code: "BLC20240621143201NSMKUTNO3HQ2ECPS5NYN",
|
|
36
|
+
name: "CHINA BANK SAVINGS INC."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
code: "BLC20240621143201J1AREMMSHVPUQWQ6ZMSG",
|
|
40
|
+
name: "CTBC BANK (PHILIPPINES) CORP."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
code: "BLC202406211432019WRZRBZKSO1AHTRORUMF",
|
|
44
|
+
name: "EASTWEST BANK"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
code: "BLC20240621143201S7PBGLD2P5FLMPB1SWTQ",
|
|
48
|
+
name: "EQUICOM SAVINGS"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
code: "BLC20240621143201B6HDX9QD2XALWDQBT0EK",
|
|
52
|
+
name: "MALAYAN BANK"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
code: "BLC20240621143201MKZDHHTZDUHXDW7JJDAI",
|
|
56
|
+
name: "PNB"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
code: "BLC20240621143201BI6XQXUH2WQ7WVPZTDHR",
|
|
60
|
+
name: "DUNGGANON BANK (A MICROFINANCE RURAL BANK), INC."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: "BLC202406211432014359H8BHCOKPTB9UQLIW",
|
|
64
|
+
name: "MAYA PHILIPPINES, INC./ MAYA WALLET"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
code: "BLC20240621143201M4B7SUPMBAJOAXRLZBZ6",
|
|
68
|
+
name: "PBCOM"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
code: "BLC202406211432012ZO3PYT3B1SEXFVRS8YT",
|
|
72
|
+
name: "PS BANK"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
code: "BLC20240621143201KG5NJTCLTN58WKILGZ9J",
|
|
76
|
+
name: "ROBINSONS BANK"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
code: "BLC202406211432011QYHPZNQPRBUKKNQFXSF",
|
|
80
|
+
name: "SECURITY BANK"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
code: "BLC2024062114320165IAZNOHL11RJP92D78E",
|
|
84
|
+
name: "UCPB"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
code: "BLC20240621143201V3GZGITRCEUUAXPOKSFO",
|
|
88
|
+
name: "UCPB SAVINGS"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
code: "BLC20240621143201TYFI9QWBYR296KDJ3J1Y",
|
|
92
|
+
name: "WEALTH DEVELOPMENT BANK"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
code: "BLC20240621143201FUHCRM2FWQMQLWYFJ28U",
|
|
96
|
+
name: "PHILTRUST"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
code: "BLC20240621143201VGVZLYCSX9E4VRRWKEIK",
|
|
100
|
+
name: "RCBC/DISKARTECH"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: "BLC20240621143201EHIQRAS1PZL35KZAYPK6",
|
|
104
|
+
name: "ASIA UNITED BANK"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
code: "BLC20240621143201DINK1Y3AXRWYB3TWRXTY",
|
|
108
|
+
name: "LANDBANK /OFBANK"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
code: "BLC20240621143201JVCAJCGU4ZCNLLDNZQ4M",
|
|
112
|
+
name: "METROBANK"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
code: "BLC202406211432013KDXPEMITNTM8PK0EUQ2",
|
|
116
|
+
name: "OMNIPAY"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
code: "BLC20240621143201JZGCMIDJ8K0AC568Y1IZ",
|
|
120
|
+
name: "PVB"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: "BLC20240621143201WVKCQCZK9ELPSEJYFPJO",
|
|
124
|
+
name: "BPI GLOBE BANKO"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
code: "BLC20240621143201EGROTAGTO2E7XABSZDDI",
|
|
128
|
+
name: "QCRB"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
code: "BLC20240621143201ZTUEWYVVKPZDBESCRQSW",
|
|
132
|
+
name: "SUN SAVINGS BANK"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
code: "BLC202406211432014DITIMEGDN2OC1OXHEBN",
|
|
136
|
+
name: "GCASH"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
code: "BLC2024062114320132GUT1T5UTYV0QVS3EW9",
|
|
140
|
+
name: "PARTNER RURAL BANK"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
code: "BLC20240621143201HRATGDPBUOWVRMEZQHYB",
|
|
144
|
+
name: "BANK OF COMMERCE"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
code: "BLC20240621143201S3N1MI3LYGYXXE393WTV",
|
|
148
|
+
name: "BPI"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
code: "BLC20240621143201PSO1R4Q9PFKO7WFMEIUQ",
|
|
152
|
+
name: "PBB"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
code: "BLC20240621143201W4VRDUKSCGXNZ4OGF1QT",
|
|
156
|
+
name: "ING BANK N.V."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
code: "BLC202406211432012SHT0EJFKAZVJ8KYZ1LR",
|
|
160
|
+
name: "ALLBANK"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
code: "BLC202406211432015B6QG5GZOBALY9OKACJ9",
|
|
164
|
+
name: "BDO NETWORK BANK"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
code: "BLC20240621143201XZN8VHPUY56GDHE8SW1L",
|
|
168
|
+
name: "GRABPAY"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
code: "BLC20240621143201FDDUR1YXQQT7O1IQSEF0",
|
|
172
|
+
name: "EASTWEST RURAL BANK / KOMO"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
code: "BLC20240621143201710LKNGOPTWSO1PXJYNB",
|
|
176
|
+
name: "CEBUANA LHUILLIER BANK / CEBUANA XPRESS"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
code: "BLC20240621143201TADUIUXREFKEQAJ5V9SO",
|
|
180
|
+
name: "DCPAY / COINS.PH"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
code: "BLC20240621143201VYQHLMEJ7UKXZYUDX9ZW",
|
|
184
|
+
name: "CAMALIG BANK, INC. (A RURAL BANK)"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
code: "BLC20240621143201TMNQDESGY92W7TRRXSIY",
|
|
188
|
+
name: "STARPAY"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
code: "BLC20240621143201VK0S5FWPU1KQTUZS5FZS",
|
|
192
|
+
name: "BINANGONAN RURAL BANK / BRBDIGITAL"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
code: "BLC20240621143201ZNAE9WQALGHJDBYIJHPH",
|
|
196
|
+
name: "PRODUCERS SAVINGS BANK CORPORATION"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
code: "BLC20240621143201X4WVGUJPLCVVHH9N7HHF",
|
|
200
|
+
name: "QUEEN CITY DEVELOPMENT BANK, INC."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
code: "BLC20240621143201QXWAWB62CGAACUFY0TGO",
|
|
204
|
+
name: "CARD BANK INC."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
code: "BLC20240621143201HM37S5MHOSQUVTTKMEVE",
|
|
208
|
+
name: "MINDANAO CONSOLIDATED COOPBANK"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
code: "BLC20240621143201U5V9D3KPMFTOUBBHRT8P",
|
|
212
|
+
name: "DUMAGUETE CITY DEVELOPMENT BANK"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
code: "BLC20240621143201FUK94HIBQL0GXSS6IW6B",
|
|
216
|
+
name: "ZYBI TECH / JUANCASH"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
code: "BLC20240621143201I5QROTHOYNTNJE9ING4E",
|
|
220
|
+
name: "SHOPEEPAY"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
code: "BLC20240621143201YMZ00DUHWQK7DI8POQFQ",
|
|
224
|
+
name: "CIS BAYAD CENTER / BAYAD"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
code: "BLC20240621143201WAHWFC5BQHMD01OHOR9I",
|
|
228
|
+
name: "STANDARD CHARTERED BANK"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
code: "BLC20240621143201PGCLXTCDPKFQJ5P2L8Q6",
|
|
232
|
+
name: "TAYOCASH,INC."
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
code: "BLC20240621143201UAW0F4WKJWHPDKD64SHK",
|
|
236
|
+
name: "NETBANK"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
code: "BLC20240621143201QPCK2CZG6VG0EBQGRMD9",
|
|
240
|
+
name: "LEGAZPI SAVINGS BANK, INC."
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
code: "BLC20240621143201KWHFR9VYJX6KORTS3TJI",
|
|
244
|
+
name: "LULU MONEY"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
code: "BLC20240621143201GROXHS8RFW0J311W4QFG",
|
|
248
|
+
name: "SEABANK"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
code: "BLC20240621143201AWQ6F8GU3EM2QWHWBOPA",
|
|
252
|
+
name: "USSC MONEY SERVICES"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
code: "BLC202406211432015BNHIBPQRRIAOWAQTPNL",
|
|
256
|
+
name: "CIMB PHILIPPINES, INC."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
code: "BLC20240621143201XQO5Z8P2SSMCUWYUJLVF",
|
|
260
|
+
name: "PALAWANPAY"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
code: "BLC20240621143201LRMPP6HQ1WAO2VWDQVRR",
|
|
264
|
+
name: "ALIPAY / LAZADA WALLET"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
code: "BLC20240621143201YPFQTKAKYB3ZYOYN7P0P",
|
|
268
|
+
name: "CARD SME BANK"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
code: "BLC20240621143201OJGINCE9MMWOPHHACAQR",
|
|
272
|
+
name: "TONIK BANK"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
code: "BLC20240621143201DV19HKQ3VZT91WOWWZZH",
|
|
276
|
+
name: "UNIONDIGITAL BANK"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
code: "BLC20240621143201IDXYLQMNHXOVNK58IJ0K",
|
|
280
|
+
name: "MAYA BANK, INC."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
code: "BLC20240621143201KPFUV013FPIPR4CYVTJB",
|
|
284
|
+
name: "BANK OF CHINA"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
code: "BLC20240621143201MHZON1JPUZCMOO5WDETQ",
|
|
288
|
+
name: "INFOSERVE / NATIONLINK"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
code: "BLC20240621143201PFSOLKLQPTPVW89HNIM1",
|
|
292
|
+
name: "GOTYME BANK"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
code: "BLC20240621143201E0EDGMZPGRFH7ZIJWREY",
|
|
296
|
+
name: "PACIFIC ACE SAVINGS BANK"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
code: "BLC2024062114320189WNYJZFWN6VYTRE6TIV",
|
|
300
|
+
name: "TRAXIONPAY/DIGICOOP/COOPNET"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
code: "BLC202406211432015SMSGACPA9XOXAIF124C",
|
|
304
|
+
name: "ENTREPRENEUR RURAL BANK, INC./ENTRP"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
code: "BLC20240621143201TXTDJOVVLY3METGCF2FT",
|
|
308
|
+
name: "I-REMIT/ICASH"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
code: "BLC20240621143201NRXHSAM4C2OPKPJVHY56",
|
|
312
|
+
name: "UNOBANK"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
code: "BLC20240621143201ZBX86IMELVTLMI6OQ61X",
|
|
316
|
+
name: "CARD MRI"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
code: "BLC202406211432012HIEIZFRUQFFPTKEW9MR",
|
|
320
|
+
name: "BANANA FINTECH / BANANAPAY"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
code: "BLC20240621143201KVZBSTBOIFX4GY77T8WK",
|
|
324
|
+
name: "OWN BANK"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
code: "BLC20240621143201G5MCLNWYQMSAQQCP2WS3",
|
|
328
|
+
name: "SPEEDYPAY/EMANGO PAY"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
code: "BLC20240621143201F9BAXCNSA5RI9SCK5EZI",
|
|
332
|
+
name: "PHILIPPINE DIGITAL ASSET EXCHANGE, INC. / PDAX"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
code: "BLC20240621143201SC2RXSMFXF2Y2QDCWTVW",
|
|
336
|
+
name: "CITY SAVINGS BANK"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
code: "BLC20240621143201JSTSZ0RHFCUQARFCCZGE",
|
|
340
|
+
name: "MARCOPAY"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
code: "BLC20240621143201JSTSZ0RHFCUQARFCCZGG",
|
|
344
|
+
name: "LUZON DEVELOPMENT BANK"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
code: "BLC20240621143201JSTSZ0RHFCUQARFCCZGI",
|
|
348
|
+
name: "PAY MONGO"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
code: "BLC20240621143201JSTSZ0RHFCUQARFCCZGL",
|
|
352
|
+
name: "PHILIPPINE SAVINGS BANK"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
code: "BLC20240621143201JSTSZ0RHFCUQARFCCZGN",
|
|
356
|
+
name: "RURAL BANK OF GUINOBATAN / ASENSO"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
code: "BLC20240621143201WZWIMGUKJ5TIG9LS7KUA",
|
|
360
|
+
name: "TOKTOKWALLET"
|
|
361
|
+
}
|
|
45
362
|
];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { NextResponse } from 'next/server';
|
|
2
|
+
import sharp from 'sharp';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { validateFile } from '../utils/validateFile.js';
|
|
5
|
+
const TransformIdFrontImageDefinition = z.object({
|
|
6
|
+
image: z.instanceof(File).superRefine((file, context) => {
|
|
7
|
+
const error = validateFile(file);
|
|
8
|
+
if (error) {
|
|
9
|
+
context.addIssue({
|
|
10
|
+
code: z.ZodIssueCode.custom,
|
|
11
|
+
message: error.message,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}),
|
|
15
|
+
cropTop: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
16
|
+
cropLeft: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
17
|
+
cropWidth: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
18
|
+
cropHeight: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
19
|
+
});
|
|
20
|
+
export async function postTransformIdFrontImage(request) {
|
|
21
|
+
const form = await request.formData();
|
|
22
|
+
const parsed = TransformIdFrontImageDefinition.safeParse({
|
|
23
|
+
image: form.get('image'),
|
|
24
|
+
cropTop: form.get('cropTop'),
|
|
25
|
+
cropLeft: form.get('cropLeft'),
|
|
26
|
+
cropWidth: form.get('cropWidth'),
|
|
27
|
+
cropHeight: form.get('cropHeight'),
|
|
28
|
+
});
|
|
29
|
+
if (!parsed.success) {
|
|
30
|
+
return NextResponse.json({
|
|
31
|
+
ok: false,
|
|
32
|
+
message: parsed.error.issues[0].message,
|
|
33
|
+
__error: parsed.error,
|
|
34
|
+
}, { status: 400 });
|
|
35
|
+
}
|
|
36
|
+
const file = parsed.data.image;
|
|
37
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
38
|
+
const buffer = Buffer.from(arrayBuffer);
|
|
39
|
+
const cropped = await sharp(buffer)
|
|
40
|
+
.extract({
|
|
41
|
+
top: parsed.data.cropTop,
|
|
42
|
+
left: parsed.data.cropLeft,
|
|
43
|
+
width: parsed.data.cropWidth,
|
|
44
|
+
height: parsed.data.cropHeight,
|
|
45
|
+
})
|
|
46
|
+
.resize({
|
|
47
|
+
width: 1200,
|
|
48
|
+
height: 757,
|
|
49
|
+
kernel: sharp.kernel.lanczos3,
|
|
50
|
+
withoutEnlargement: true,
|
|
51
|
+
})
|
|
52
|
+
.modulate({
|
|
53
|
+
brightness: 1.025,
|
|
54
|
+
saturation: 1.025,
|
|
55
|
+
})
|
|
56
|
+
.median(3)
|
|
57
|
+
.blur()
|
|
58
|
+
.sharpen()
|
|
59
|
+
.webp()
|
|
60
|
+
.toBuffer();
|
|
61
|
+
return new NextResponse(cropped, {
|
|
62
|
+
headers: {
|
|
63
|
+
'Content-Type': 'image/webp',
|
|
64
|
+
'Content-Disposition': `inline; filename="id-front-${Date.now()}.webp"`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { NextResponse } from 'next/server';
|
|
2
|
+
import sharp from 'sharp';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { validateFile } from '../utils/validateFile.js';
|
|
5
|
+
const TransformSelfieImageDefinition = z.object({
|
|
6
|
+
image: z.instanceof(File).superRefine((file, context) => {
|
|
7
|
+
const error = validateFile(file);
|
|
8
|
+
if (error) {
|
|
9
|
+
context.addIssue({
|
|
10
|
+
code: z.ZodIssueCode.custom,
|
|
11
|
+
message: error.message,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}),
|
|
15
|
+
cropTop: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
16
|
+
cropLeft: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
17
|
+
cropWidth: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
18
|
+
cropHeight: z.number().or(z.string().transform((v) => Math.round(Number(v)))),
|
|
19
|
+
});
|
|
20
|
+
export async function postTransformSelfieImage(request) {
|
|
21
|
+
const form = await request.formData();
|
|
22
|
+
const parsed = TransformSelfieImageDefinition.safeParse({
|
|
23
|
+
image: form.get('image'),
|
|
24
|
+
cropTop: form.get('cropTop'),
|
|
25
|
+
cropLeft: form.get('cropLeft'),
|
|
26
|
+
cropWidth: form.get('cropWidth'),
|
|
27
|
+
cropHeight: form.get('cropHeight'),
|
|
28
|
+
});
|
|
29
|
+
if (!parsed.success) {
|
|
30
|
+
return NextResponse.json({
|
|
31
|
+
ok: false,
|
|
32
|
+
message: parsed.error.issues[0].message,
|
|
33
|
+
__error: parsed.error,
|
|
34
|
+
}, { status: 400 });
|
|
35
|
+
}
|
|
36
|
+
const file = parsed.data.image;
|
|
37
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
38
|
+
const buffer = Buffer.from(arrayBuffer);
|
|
39
|
+
const cropped = await sharp(buffer)
|
|
40
|
+
.extract({
|
|
41
|
+
top: parsed.data.cropTop,
|
|
42
|
+
left: parsed.data.cropLeft,
|
|
43
|
+
width: parsed.data.cropWidth,
|
|
44
|
+
height: parsed.data.cropHeight,
|
|
45
|
+
})
|
|
46
|
+
.resize({
|
|
47
|
+
width: 1200,
|
|
48
|
+
height: 1200,
|
|
49
|
+
kernel: sharp.kernel.lanczos3,
|
|
50
|
+
withoutEnlargement: true,
|
|
51
|
+
})
|
|
52
|
+
.sharpen({
|
|
53
|
+
sigma: 1.15,
|
|
54
|
+
m1: 2.0,
|
|
55
|
+
m2: 5.0,
|
|
56
|
+
})
|
|
57
|
+
.modulate({
|
|
58
|
+
brightness: 1.025,
|
|
59
|
+
saturation: 1.025,
|
|
60
|
+
})
|
|
61
|
+
.median(3)
|
|
62
|
+
.blur()
|
|
63
|
+
.webp()
|
|
64
|
+
.toBuffer();
|
|
65
|
+
return new NextResponse(cropped, {
|
|
66
|
+
headers: {
|
|
67
|
+
'Content-Type': 'image/webp',
|
|
68
|
+
'Content-Disposition': `inline; filename="selfie-${Date.now()}.webp"`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NextResponse, type NextRequest } from 'next/server';
|
|
2
|
+
import type { Session } from './types';
|
|
3
|
+
export declare const GET: (request: NextRequest, { params }: {
|
|
4
|
+
params: Promise<{
|
|
5
|
+
auth: string[];
|
|
6
|
+
}>;
|
|
7
|
+
}) => Promise<NextResponse<{
|
|
8
|
+
ok: true;
|
|
9
|
+
data?: never;
|
|
10
|
+
} | {
|
|
11
|
+
ok: false;
|
|
12
|
+
message: string;
|
|
13
|
+
__error?: unknown;
|
|
14
|
+
}> | NextResponse<{
|
|
15
|
+
ok: false;
|
|
16
|
+
message: string;
|
|
17
|
+
__error?: unknown;
|
|
18
|
+
} | {
|
|
19
|
+
ok: true;
|
|
20
|
+
data: Session;
|
|
21
|
+
}>>;
|
|
22
|
+
export declare const DELETE: (request: NextRequest, { params }: {
|
|
23
|
+
params: Promise<{
|
|
24
|
+
auth: string[];
|
|
25
|
+
}>;
|
|
26
|
+
}) => Promise<NextResponse<{
|
|
27
|
+
ok: true;
|
|
28
|
+
data?: never;
|
|
29
|
+
} | {
|
|
30
|
+
ok: false;
|
|
31
|
+
message: string;
|
|
32
|
+
__error?: unknown;
|
|
33
|
+
}>>;
|
|
34
|
+
export declare const POST: (request: NextRequest, { params }: {
|
|
35
|
+
params: Promise<{
|
|
36
|
+
auth: string[];
|
|
37
|
+
}>;
|
|
38
|
+
}) => Promise<NextResponse>;
|
|
39
|
+
export declare const PATCH: (request: NextRequest, { params }: {
|
|
40
|
+
params: Promise<{
|
|
41
|
+
auth: string[];
|
|
42
|
+
}>;
|
|
43
|
+
}) => Promise<NextResponse>;
|