@opexa/portal-components 0.0.16 → 0.0.18
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/client/hooks/index.d.ts +3 -0
- package/dist/client/hooks/useGlobalStore.d.ts +11 -1
- package/dist/client/hooks/useGlobalStore.js +1 -1
- package/dist/client/hooks/useGlobalStore.mjs +81 -35
- package/dist/client/hooks/useMarkMessageAsReadMutation.d.ts +6 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +1 -0
- package/dist/client/hooks/useMarkMessageAsReadMutation.mjs +39 -0
- package/dist/client/hooks/useMessagesQuery.d.ts +3 -0
- package/dist/client/hooks/useMessagesQuery.js +1 -0
- package/dist/client/hooks/useMessagesQuery.mjs +47 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.d.ts +3 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
- package/dist/client/hooks/useUnreadMessagesCountQuery.mjs +38 -0
- package/dist/client-hooks.js +1 -1
- package/dist/client-hooks.mjs +38 -32
- package/dist/components/Account/Account.d.ts +3 -1
- package/dist/components/Account/Account.js +1 -1
- package/dist/components/Account/Account.mjs +163 -96
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Banner/Banner.mjs +6 -6
- package/dist/components/BetRecords/BetRecords.js +1 -1
- package/dist/components/BetRecords/BetRecords.mjs +357 -325
- package/dist/components/Bonus/Bonus.client.d.ts +2 -0
- package/dist/components/Bonus/Bonus.d.ts +10 -0
- package/dist/components/Bonus/index.d.ts +1 -0
- package/dist/components/Bonuses/Bonuses.d.ts +15 -0
- package/dist/components/Bonuses/Bonuses.js +1 -0
- package/dist/components/Bonuses/Bonuses.mjs +125 -0
- package/dist/components/Bonuses/index.d.ts +1 -0
- package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
- package/dist/components/DepositWithdrawal/AmountChoices.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.mjs +11 -8
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +16 -13
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +5 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositVCA.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +18 -15
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositQrCode.mjs +9 -6
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositSuccess.mjs +9 -6
- package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +46 -46
- package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
- package/dist/components/DepositWithdrawal/PaymentMethods.mjs +26 -23
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +86 -76
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +118 -108
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +75 -65
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -1
- package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +96 -86
- package/dist/components/Disclaimer/Disclaimer.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.mjs +11 -8
- package/dist/components/Empty/Empty.js +1 -1
- package/dist/components/Empty/Empty.mjs +14 -10
- package/dist/components/GameLaunch/GameLaunch.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.mjs +42 -39
- package/dist/components/Games/Games.client.js +1 -1
- package/dist/components/Games/Games.client.mjs +47 -44
- package/dist/components/Games/Games.d.ts +7 -2
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +4 -2
- package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounter.mjs +38 -34
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +3 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.mjs +282 -124
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.js +1 -1
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css.mjs +11 -8
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +1 -0
- package/dist/components/Jackpots/JackpotItem.d.ts +7 -0
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +7 -0
- package/dist/components/Jackpots/Jackpots.d.ts +8 -0
- package/dist/components/Jackpots/index.d.ts +1 -0
- package/dist/components/Marquee/Marquee.js +1 -1
- package/dist/components/Marquee/Marquee.mjs +12 -14
- package/dist/components/Messages/MessageItem.d.ts +4 -0
- package/dist/components/Messages/MessageItem.js +1 -0
- package/dist/components/Messages/MessageItem.mjs +66 -0
- package/dist/components/Messages/MessagePopup.d.ts +1 -0
- package/dist/components/Messages/MessagePopup.js +1 -0
- package/dist/components/Messages/MessagePopup.mjs +89 -0
- package/dist/components/Messages/Messages.d.ts +1 -0
- package/dist/components/Messages/Messages.js +1 -0
- package/dist/components/Messages/Messages.mjs +147 -0
- package/dist/components/Messages/index.d.ts +1 -0
- package/dist/components/Messages/utils.d.ts +3 -0
- package/dist/components/Messages/utils.js +1 -0
- package/dist/components/Messages/utils.mjs +16 -0
- package/dist/components/Promos/PromoCarousel.js +1 -1
- package/dist/components/Promos/PromoCarousel.mjs +27 -24
- package/dist/components/Promos/PromoGrid.js +1 -1
- package/dist/components/Promos/PromoGrid.mjs +7 -7
- package/dist/components/Promos/PromoItem.js +1 -1
- package/dist/components/Promos/PromoItem.mjs +10 -7
- package/dist/components/Promos/Promos.d.ts +4 -2
- package/dist/components/SignIn/SignIn.d.ts +0 -1
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignIn.mjs +32 -41
- package/dist/components/SignIn/SignInForm.js +1 -1
- package/dist/components/SignIn/SignInForm.mjs +167 -160
- package/dist/components/SignUp/SignUp.d.ts +0 -1
- package/dist/components/SignUp/SignUp.js +1 -1
- package/dist/components/SignUp/SignUp.mjs +32 -41
- package/dist/components/SignUp/SignUpForm.js +1 -1
- package/dist/components/SignUp/SignUpForm.mjs +123 -116
- package/dist/components/TopWins/TopWins.client.js +1 -1
- package/dist/components/TopWins/TopWins.client.mjs +14 -14
- package/dist/components/TopWins/TopWins.d.ts +2 -1
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +4 -2
- package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
- package/dist/components/TournamentCounter/TournamentCounter.mjs +27 -24
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/DepositRecordsTable.mjs +113 -99
- package/dist/components/TransactionRecords/TableFilters.d.ts +3 -1
- package/dist/components/TransactionRecords/TableFilters.js +1 -1
- package/dist/components/TransactionRecords/TableFilters.mjs +193 -132
- package/dist/components/TransactionRecords/TransactionRecords.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecords.mjs +21 -17
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +89 -77
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +105 -96
- package/dist/components/index.d.ts +2 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +36 -32
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -0
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -0
- package/dist/icons/Bell01Icon.d.ts +2 -0
- package/dist/icons/Bell01Icon.js +1 -0
- package/dist/icons/Bell01Icon.mjs +27 -0
- package/dist/icons/BellRingIcon.d.ts +2 -0
- package/dist/icons/BellRingIcon.js +1 -0
- package/dist/icons/BellRingIcon.mjs +27 -0
- package/dist/icons/EyeIcon.d.ts +2 -0
- package/dist/icons/EyeIcon.js +1 -0
- package/dist/icons/EyeIcon.mjs +25 -0
- package/dist/icons/EyeOffIcon.d.ts +2 -0
- package/dist/icons/EyeOffIcon.js +1 -0
- package/dist/icons/EyeOffIcon.mjs +22 -0
- package/dist/icons/StarIcon.d.ts +2 -0
- package/dist/icons/StarIcon.js +1 -0
- package/dist/icons/StarIcon.mjs +19 -0
- package/dist/icons/StopWatchIcon.d.ts +2 -0
- package/dist/icons/StopWatchIcon.js +1 -0
- package/dist/icons/StopWatchIcon.mjs +22 -0
- package/dist/icons/Trophy01Icon.d.ts +2 -0
- package/dist/icons/Trophy01Icon.js +1 -0
- package/dist/icons/Trophy01Icon.mjs +22 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +62 -0
- package/dist/images/first-place.png.js +1 -0
- package/dist/images/first-place.png.mjs +4 -0
- package/dist/images/leaderboard.png.js +1 -0
- package/dist/images/leaderboard.png.mjs +4 -0
- package/dist/images/placeholder-avatar.png.js +1 -0
- package/dist/images/placeholder-avatar.png.mjs +4 -0
- package/dist/images/responsible-gaming.png.js +1 -1
- package/dist/images/responsible-gaming.png.mjs +2 -2
- package/dist/portal-components.css +1 -1
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.d.ts +2 -0
- package/dist/theme.css +130 -4
- package/dist/ui/AlertDialog/alertDialog.recipe.js +1 -1
- package/dist/ui/AlertDialog/alertDialog.recipe.mjs +6 -6
- package/dist/ui/Badge/Badge.d.ts +274 -27
- package/dist/ui/Badge/Badge.js +1 -1
- package/dist/ui/Badge/Badge.mjs +14 -10
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.anatomy.mjs +1 -0
- package/dist/ui/Badge/badge.recipe.d.ts +57 -9
- package/dist/ui/Badge/badge.recipe.js +1 -1
- package/dist/ui/Badge/badge.recipe.mjs +57 -21
- package/dist/ui/Button/button.recipe.d.ts +2 -2
- package/dist/ui/Button/button.recipe.js +1 -1
- package/dist/ui/Button/button.recipe.mjs +17 -7
- package/dist/ui/Checkbox/checkbox.recipe.js +1 -1
- package/dist/ui/Checkbox/checkbox.recipe.mjs +6 -6
- package/dist/ui/Collapsible/Collapsible.d.ts +114 -0
- package/dist/ui/Collapsible/Collapsible.js +1 -0
- package/dist/ui/Collapsible/Collapsible.mjs +13 -0
- package/dist/ui/Collapsible/collapsible.recipe.d.ts +28 -0
- package/dist/ui/Collapsible/collapsible.recipe.js +1 -0
- package/dist/ui/Collapsible/collapsible.recipe.mjs +18 -0
- package/dist/ui/Collapsible/index.d.ts +1 -0
- package/dist/ui/DatePicker/datePicker.recipe.js +1 -1
- package/dist/ui/DatePicker/datePicker.recipe.mjs +37 -6
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Dialog/dialog.recipe.mjs +3 -3
- package/dist/ui/Drawer/drawer.recipe.js +1 -1
- package/dist/ui/Drawer/drawer.recipe.mjs +6 -6
- package/dist/ui/Field/field.recipe.js +1 -1
- package/dist/ui/Field/field.recipe.mjs +10 -12
- package/dist/ui/IconButton/iconButton.recipe.d.ts +2 -2
- package/dist/ui/IconButton/iconButton.recipe.js +1 -1
- package/dist/ui/IconButton/iconButton.recipe.mjs +6 -6
- package/dist/ui/NumberInput/numberInput.recipe.js +1 -1
- package/dist/ui/NumberInput/numberInput.recipe.mjs +8 -8
- package/dist/ui/PasswordInput/PasswordInput.d.ts +242 -1
- package/dist/ui/PasswordInput/PasswordInput.js +1 -0
- package/dist/ui/PasswordInput/PasswordInput.mjs +18 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +6 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.js +1 -0
- package/dist/ui/PasswordInput/passwordInput.recipe.mjs +48 -0
- package/dist/ui/PinInput/pinInput.recipe.js +1 -1
- package/dist/ui/PinInput/pinInput.recipe.mjs +3 -3
- package/dist/ui/Popover/popover.recipe.js +1 -1
- package/dist/ui/Popover/popover.recipe.mjs +1 -1
- package/dist/ui/Progress/Progress.d.ts +335 -1
- package/dist/ui/Progress/Progress.js +1 -1
- package/dist/ui/Progress/Progress.mjs +15 -2
- package/dist/ui/Progress/progress.recipe.d.ts +37 -1
- package/dist/ui/Progress/progress.recipe.js +1 -0
- package/dist/ui/Progress/progress.recipe.mjs +41 -0
- package/dist/ui/Prose.d.ts +2 -0
- package/dist/ui/Prose.js +1 -0
- package/dist/ui/Prose.mjs +47 -0
- package/dist/ui/SegmentGroup/segmentGroup.recipe.js +1 -1
- package/dist/ui/SegmentGroup/segmentGroup.recipe.mjs +3 -3
- package/dist/ui/Select/select.recipe.js +1 -1
- package/dist/ui/Select/select.recipe.mjs +6 -6
- package/dist/ui/Table/table.recipe.js +1 -1
- package/dist/ui/Table/table.recipe.mjs +4 -4
- package/dist/ui/Tabs/tabs.recipe.js +1 -1
- package/dist/ui/Tabs/tabs.recipe.mjs +3 -3
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +36 -30
- package/dist/utils/queryKeys.d.ts +4 -1
- package/dist/utils/queryKeys.js +1 -1
- package/dist/utils/queryKeys.mjs +34 -26
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +35 -32
- package/package.json +11 -5
- package/dist/components/Promos/PromosContent.d.ts +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as t, Fragment as
|
|
2
|
+
import { jsxs as t, Fragment as f, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useDialogContext as k } from "@ark-ui/react";
|
|
4
|
-
import { zodResolver as
|
|
4
|
+
import { zodResolver as g } from "@hookform/resolvers/zod";
|
|
5
5
|
import { useState as R } from "react";
|
|
6
|
-
import { useForm as N, Controller as
|
|
6
|
+
import { useForm as N, Controller as y } from "react-hook-form";
|
|
7
7
|
import { z as n } from "zod";
|
|
8
|
-
import { useShallow as
|
|
8
|
+
import { useShallow as M } from "zustand/shallow";
|
|
9
9
|
import "@opexa/portal-sdk-core";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "tiny-invariant";
|
|
@@ -15,187 +15,193 @@ import "../../utils/parseDecimal.mjs";
|
|
|
15
15
|
import "../../utils/getLocaleInfo.mjs";
|
|
16
16
|
import "../../utils/getQueryClient.mjs";
|
|
17
17
|
import "../../utils/isMobile.mjs";
|
|
18
|
-
import { useCooldown as
|
|
18
|
+
import { useCooldown as V } from "../../client/hooks/useCooldown.mjs";
|
|
19
19
|
import "@opexa/portal-sdk-core/object-id";
|
|
20
|
-
import { useGlobalStore as
|
|
20
|
+
import { useGlobalStore as L } from "../../client/hooks/useGlobalStore.mjs";
|
|
21
21
|
import "../../client/hooks/useInfiniteQueryHelper.mjs";
|
|
22
|
-
import { useLocaleInfo as
|
|
23
|
-
import { useMobileNumberParser as
|
|
22
|
+
import { useLocaleInfo as $ } from "../../client/hooks/useLocaleInfo.mjs";
|
|
23
|
+
import { useMobileNumberParser as A } from "../../client/hooks/useMobileNumberParser.mjs";
|
|
24
24
|
import "usehooks-ts";
|
|
25
|
-
import { useSendVerificationCodeMutation as
|
|
26
|
-
import { useSignInMutation as
|
|
27
|
-
import { toaster as
|
|
28
|
-
import { ArrowLeftIcon as
|
|
29
|
-
import { CheckIcon as
|
|
30
|
-
import { FacebookIcon as
|
|
25
|
+
import { useSendVerificationCodeMutation as F } from "../../client/hooks/useSendVerificationCodeMutation.mjs";
|
|
26
|
+
import { useSignInMutation as j } from "../../client/hooks/useSignInMutation.mjs";
|
|
27
|
+
import { toaster as v } from "../../client/utils/toaster.mjs";
|
|
28
|
+
import { ArrowLeftIcon as _ } from "../../icons/ArrowLeftIcon.mjs";
|
|
29
|
+
import { CheckIcon as z } from "../../icons/CheckIcon.mjs";
|
|
30
|
+
import { FacebookIcon as O } from "../../icons/FacebookIcon.mjs";
|
|
31
31
|
import { GoogleIcon as D } from "../../icons/GoogleIcon.mjs";
|
|
32
32
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
33
33
|
import "../../ui/Avatar/Avatar.mjs";
|
|
34
34
|
import "../../ui/Badge/Badge.mjs";
|
|
35
35
|
import { Button as d } from "../../ui/Button/Button.mjs";
|
|
36
|
-
import { Root as
|
|
36
|
+
import { Root as B, Control as E, Indicator as P, Label as G, HiddenInput as H } from "../../ui/Checkbox/Checkbox.mjs";
|
|
37
37
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
38
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
38
39
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
39
40
|
import "../../ui/Dialog/Dialog.mjs";
|
|
40
41
|
import "../../ui/Drawer/Drawer.mjs";
|
|
41
|
-
import { Root as
|
|
42
|
+
import { Root as U, Label as T, Input as W, ErrorText as Z } from "../../ui/Field/Field.mjs";
|
|
42
43
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
43
44
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
44
|
-
import
|
|
45
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
46
|
+
import { Root as Y, Control as q, Input as s, HiddenInput as J } from "../../ui/PinInput/PinInput.mjs";
|
|
45
47
|
import "../../ui/Popover/Popover.mjs";
|
|
46
48
|
import "tailwind-merge";
|
|
49
|
+
import "../../ui/Progress/Progress.mjs";
|
|
47
50
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
48
51
|
import "../../ui/Select/Select.mjs";
|
|
49
52
|
import "../../ui/Table/Table.mjs";
|
|
50
53
|
import "../../ui/Tabs/Tabs.mjs";
|
|
51
|
-
function
|
|
52
|
-
var
|
|
53
|
-
const [
|
|
54
|
-
mobileNumber: n.string().superRefine((o,
|
|
55
|
-
|
|
54
|
+
function qe() {
|
|
55
|
+
var x;
|
|
56
|
+
const [b, p] = R(1), c = k(), C = L(M((o) => o.signUp)), S = j(), h = F(), u = $(), m = A(), I = n.object({
|
|
57
|
+
mobileNumber: n.string().superRefine((o, r) => {
|
|
58
|
+
m.validate(o) || r.addIssue({
|
|
56
59
|
code: n.ZodIssueCode.custom,
|
|
57
60
|
message: "Invalid mobile number"
|
|
58
61
|
});
|
|
59
62
|
}),
|
|
60
|
-
termsAccepted: n.boolean().superRefine((o,
|
|
61
|
-
o ||
|
|
63
|
+
termsAccepted: n.boolean().superRefine((o, r) => {
|
|
64
|
+
o || r.addIssue({
|
|
62
65
|
code: n.ZodIssueCode.custom,
|
|
63
66
|
message: "You must accept the terms and conditions"
|
|
64
67
|
});
|
|
65
68
|
})
|
|
66
69
|
}), w = n.object({
|
|
67
70
|
verificationCode: n.array(n.string().min(1).max(1).trim()).min(6).max(6)
|
|
68
|
-
}),
|
|
69
|
-
resolver:
|
|
71
|
+
}), i = N({
|
|
72
|
+
resolver: g(I),
|
|
70
73
|
defaultValues: {
|
|
71
74
|
mobileNumber: "",
|
|
72
75
|
termsAccepted: !1
|
|
73
76
|
}
|
|
74
|
-
}),
|
|
75
|
-
resolver:
|
|
77
|
+
}), l = N({
|
|
78
|
+
resolver: g(w),
|
|
76
79
|
defaultValues: {
|
|
77
80
|
verificationCode: Array.from({ length: 6 }).fill("")
|
|
78
81
|
}
|
|
79
|
-
}), a =
|
|
82
|
+
}), a = V({
|
|
80
83
|
max: 60,
|
|
81
84
|
duration: 1e3 * 60
|
|
82
85
|
});
|
|
83
|
-
return /* @__PURE__ */ t(
|
|
84
|
-
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
return /* @__PURE__ */ t(f, { children: [
|
|
87
|
+
b === 1 && /* @__PURE__ */ t(f, { children: [
|
|
88
|
+
/* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Log in to your account" }),
|
|
89
|
+
/* @__PURE__ */ e("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: "Welcome back! Please enter your details." }),
|
|
90
|
+
/* @__PURE__ */ t(
|
|
91
|
+
"form",
|
|
92
|
+
{
|
|
93
|
+
className: "mt-3xl",
|
|
94
|
+
onSubmit: i.handleSubmit(async (o) => {
|
|
95
|
+
try {
|
|
96
|
+
await h.mutateAsync({
|
|
97
|
+
channel: "SMS",
|
|
98
|
+
recipient: m.format(o.mobileNumber),
|
|
99
|
+
strict: !0
|
|
100
|
+
}), p(2), a.start();
|
|
101
|
+
} catch (r) {
|
|
102
|
+
v.error({
|
|
103
|
+
description: r instanceof Error ? r.message : "Failed to send verification code"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ t(U, { invalid: !!i.formState.errors.mobileNumber, children: [
|
|
109
|
+
/* @__PURE__ */ e(T, { children: "Mobile Number" }),
|
|
110
|
+
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
111
|
+
/* @__PURE__ */ e(u.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
|
|
112
|
+
/* @__PURE__ */ e(
|
|
113
|
+
W,
|
|
114
|
+
{
|
|
115
|
+
className: "pl-11",
|
|
116
|
+
placeholder: `${u.mobileNumber.areaCode}${u.mobileNumber.example}`,
|
|
117
|
+
...i.register("mobileNumber")
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ e(Z, { children: (x = i.formState.errors.mobileNumber) == null ? void 0 : x.message })
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ e(
|
|
124
|
+
d,
|
|
125
|
+
{
|
|
126
|
+
type: "submit",
|
|
127
|
+
className: "mt-3xl",
|
|
128
|
+
disabled: i.formState.isSubmitting,
|
|
129
|
+
children: "Log In"
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
/* @__PURE__ */ e(
|
|
133
|
+
y,
|
|
134
|
+
{
|
|
135
|
+
control: i.control,
|
|
136
|
+
name: "termsAccepted",
|
|
137
|
+
render: (o) => /* @__PURE__ */ t(
|
|
138
|
+
B,
|
|
139
|
+
{
|
|
140
|
+
className: "mt-xl",
|
|
141
|
+
invalid: o.fieldState.invalid,
|
|
142
|
+
checked: o.field.value,
|
|
143
|
+
onCheckedChange: (r) => {
|
|
144
|
+
o.field.onChange(r.checked);
|
|
145
|
+
},
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(z, {}) }) }),
|
|
148
|
+
/* @__PURE__ */ t(G, { children: [
|
|
149
|
+
"I am at least 21 years of age and I accept the",
|
|
150
|
+
" ",
|
|
151
|
+
/* @__PURE__ */ e("span", { className: "text-brand-400 whitespace-nowrap underline underline-offset-2", children: "Terms and Conditions." })
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ e(H, {})
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ t("div", { className: "relative mt-6 text-center", children: [
|
|
163
|
+
/* @__PURE__ */ e("hr", { className: "-translte-y-1/2 text-text-tertiary-600/50 absolute top-1/2 w-full" }),
|
|
164
|
+
/* @__PURE__ */ e("span", { className: "text-text-tertiary-600 bg-bg-primary-alt relative px-md text-center text-sm font-semibold", children: "Log in directly with" })
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ t("div", { className: "mt-6", children: [
|
|
88
167
|
/* @__PURE__ */ t(
|
|
89
|
-
|
|
168
|
+
d,
|
|
90
169
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
strict: !0
|
|
98
|
-
}), u(2), a.start();
|
|
99
|
-
} catch (i) {
|
|
100
|
-
y.error({
|
|
101
|
-
description: i instanceof Error ? i.message : "Failed to send verification code"
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
170
|
+
variant: "outline",
|
|
171
|
+
colorScheme: "gray",
|
|
172
|
+
onClick: () => {
|
|
173
|
+
c.setOpen(!1);
|
|
174
|
+
},
|
|
175
|
+
className: "border-border-primary bg-bg-primary text-text-secondary-700",
|
|
105
176
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
|
|
108
|
-
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
109
|
-
/* @__PURE__ */ e(p.country.flag, { className: "absolute left-3.5 top-1/2 size-5 shrink-0 -translate-y-1/2" }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
-
Z,
|
|
112
|
-
{
|
|
113
|
-
className: "pl-11",
|
|
114
|
-
placeholder: `${p.mobileNumber.areaCode}${p.mobileNumber.example}`,
|
|
115
|
-
...r.register("mobileNumber")
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ e(Y, { children: (b = r.formState.errors.mobileNumber) == null ? void 0 : b.message })
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
d,
|
|
123
|
-
{
|
|
124
|
-
type: "submit",
|
|
125
|
-
className: "mt-xl",
|
|
126
|
-
disabled: r.formState.isSubmitting,
|
|
127
|
-
children: "Log In"
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
v,
|
|
132
|
-
{
|
|
133
|
-
control: r.control,
|
|
134
|
-
name: "termsAccepted",
|
|
135
|
-
render: (o) => /* @__PURE__ */ t(
|
|
136
|
-
E,
|
|
137
|
-
{
|
|
138
|
-
className: "mt-xl",
|
|
139
|
-
invalid: o.fieldState.invalid,
|
|
140
|
-
checked: o.field.value,
|
|
141
|
-
onCheckedChange: (i) => {
|
|
142
|
-
o.field.onChange(i.checked);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(j, {}) }) }),
|
|
146
|
-
/* @__PURE__ */ e(U, { children: "I confirm that I am at least 21 years old, not listed in the PAGCOR NDRP, not a GEL license holder, government employee, or member of the Armed Forces of the Philippines. I am not playing in a public space and agree to the Terms of Use and Privacy Policy. Ineligible accounts will have their funds forfeited to the government." }),
|
|
147
|
-
/* @__PURE__ */ e(H, {})
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
)
|
|
177
|
+
/* @__PURE__ */ e(D, { className: "size-6" }),
|
|
178
|
+
"Continue with Google"
|
|
153
179
|
]
|
|
154
180
|
}
|
|
155
181
|
),
|
|
156
|
-
/* @__PURE__ */ t(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"Continue with Google"
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
/* @__PURE__ */ t(
|
|
176
|
-
d,
|
|
177
|
-
{
|
|
178
|
-
variant: "outline",
|
|
179
|
-
colorScheme: "gray",
|
|
180
|
-
className: "mt-lg",
|
|
181
|
-
onClick: () => {
|
|
182
|
-
c.setOpen(!1);
|
|
183
|
-
},
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ e(z, { className: "size-6" }),
|
|
186
|
-
"Continue with Facebook"
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] })
|
|
182
|
+
/* @__PURE__ */ t(
|
|
183
|
+
d,
|
|
184
|
+
{
|
|
185
|
+
variant: "outline",
|
|
186
|
+
colorScheme: "gray",
|
|
187
|
+
onClick: () => {
|
|
188
|
+
c.setOpen(!1);
|
|
189
|
+
},
|
|
190
|
+
className: "border-border-primary bg-bg-primary text-text-secondary-700 mt-lg",
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ e(O, { className: "size-6" }),
|
|
193
|
+
"Continue with Facebook"
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
191
197
|
] }),
|
|
192
|
-
/* @__PURE__ */ t("div", { className: "flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
193
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
198
|
+
/* @__PURE__ */ t("div", { className: "mt-6 flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
199
|
+
/* @__PURE__ */ e("span", { className: "text-text-tertiary-600", children: "Don't have an account?" }),
|
|
194
200
|
/* @__PURE__ */ e(
|
|
195
201
|
"button",
|
|
196
202
|
{
|
|
197
203
|
type: "submit",
|
|
198
|
-
className: "text-
|
|
204
|
+
className: "text-button-tertiary-fg font-semibold",
|
|
199
205
|
onClick: () => {
|
|
200
206
|
c.setOpen(!1), C.setOpen(!0);
|
|
201
207
|
},
|
|
@@ -204,12 +210,12 @@ function Ze() {
|
|
|
204
210
|
)
|
|
205
211
|
] })
|
|
206
212
|
] }),
|
|
207
|
-
|
|
213
|
+
b === 2 && /* @__PURE__ */ t(f, { children: [
|
|
208
214
|
/* @__PURE__ */ e("h2", { className: "mt-xl text-center text-lg font-semibold", children: "Check your Phone" }),
|
|
209
|
-
/* @__PURE__ */ t("p", { className: "text-
|
|
215
|
+
/* @__PURE__ */ t("p", { className: "text-text-secondary-700 mt-xs text-center text-sm", children: [
|
|
210
216
|
"We’ve sent a verification code to your mobile number",
|
|
211
217
|
" ",
|
|
212
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children:
|
|
218
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: m.format(i.getValues("mobileNumber")) }),
|
|
213
219
|
" ",
|
|
214
220
|
"via text"
|
|
215
221
|
] }),
|
|
@@ -217,40 +223,41 @@ function Ze() {
|
|
|
217
223
|
"form",
|
|
218
224
|
{
|
|
219
225
|
className: "mt-5",
|
|
220
|
-
onSubmit:
|
|
221
|
-
const { mobileNumber:
|
|
226
|
+
onSubmit: l.handleSubmit(async ({ verificationCode: o }) => {
|
|
227
|
+
const { mobileNumber: r } = i.getValues();
|
|
222
228
|
try {
|
|
223
229
|
await S.mutateAsync({
|
|
224
230
|
type: "MOBILE_NUMBER",
|
|
225
|
-
mobileNumber:
|
|
231
|
+
mobileNumber: m.format(r),
|
|
226
232
|
verificationCode: o.join("")
|
|
227
|
-
}), c.setOpen(!1),
|
|
233
|
+
}), c.setOpen(!1), i.reset(), l.reset(), p(1);
|
|
228
234
|
} catch {
|
|
229
|
-
|
|
235
|
+
v.error({
|
|
230
236
|
description: "Invalid Verification Code"
|
|
231
237
|
});
|
|
232
238
|
}
|
|
233
239
|
}),
|
|
234
240
|
children: [
|
|
235
241
|
/* @__PURE__ */ e(
|
|
236
|
-
|
|
242
|
+
y,
|
|
237
243
|
{
|
|
238
244
|
name: "verificationCode",
|
|
239
|
-
control:
|
|
245
|
+
control: l.control,
|
|
240
246
|
render: (o) => /* @__PURE__ */ t(
|
|
241
|
-
|
|
247
|
+
Y,
|
|
242
248
|
{
|
|
243
249
|
placeholder: "0",
|
|
244
250
|
invalid: o.fieldState.invalid,
|
|
245
251
|
value: o.field.value,
|
|
246
|
-
onValueChange: (
|
|
247
|
-
o.field.onChange(
|
|
252
|
+
onValueChange: (r) => {
|
|
253
|
+
o.field.onChange(r.value);
|
|
248
254
|
},
|
|
249
255
|
children: [
|
|
250
|
-
/* @__PURE__ */ t(q, { children: [
|
|
256
|
+
/* @__PURE__ */ t(q, { className: "grid-cols-[1fr_1fr_1fr_auto_1fr_1fr_1fr] items-center gap-md", children: [
|
|
251
257
|
/* @__PURE__ */ e(s, { index: 0 }),
|
|
252
258
|
/* @__PURE__ */ e(s, { index: 1 }),
|
|
253
259
|
/* @__PURE__ */ e(s, { index: 2 }),
|
|
260
|
+
/* @__PURE__ */ e("span", { className: "text-text-placeholder-subtle text-2xl font-medium", children: "–" }),
|
|
254
261
|
/* @__PURE__ */ e(s, { index: 3 }),
|
|
255
262
|
/* @__PURE__ */ e(s, { index: 4 }),
|
|
256
263
|
/* @__PURE__ */ e(s, { index: 5 })
|
|
@@ -265,24 +272,24 @@ function Ze() {
|
|
|
265
272
|
d,
|
|
266
273
|
{
|
|
267
274
|
type: "submit",
|
|
268
|
-
className: "mt-
|
|
269
|
-
disabled:
|
|
270
|
-
children: "Verify
|
|
275
|
+
className: "mt-4xl",
|
|
276
|
+
disabled: l.formState.isSubmitting,
|
|
277
|
+
children: "Verify"
|
|
271
278
|
}
|
|
272
279
|
),
|
|
273
|
-
/* @__PURE__ */ t("div", { className: "mt-
|
|
274
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
280
|
+
/* @__PURE__ */ t("div", { className: "mt-3 flex w-full items-center justify-center gap-xs text-sm", children: [
|
|
281
|
+
/* @__PURE__ */ e("span", { className: "text-text-secondary-700", children: "Didn't recieve the code?" }),
|
|
275
282
|
/* @__PURE__ */ e(
|
|
276
283
|
"button",
|
|
277
284
|
{
|
|
278
285
|
type: "button",
|
|
279
|
-
className: "text-
|
|
286
|
+
className: "text-button-secondary-fg font-semibold",
|
|
280
287
|
disabled: a.cooling,
|
|
281
288
|
onClick: async () => {
|
|
282
289
|
await h.mutateAsync({
|
|
283
290
|
channel: "SMS",
|
|
284
|
-
recipient:
|
|
285
|
-
|
|
291
|
+
recipient: m.format(
|
|
292
|
+
i.getValues("mobileNumber")
|
|
286
293
|
)
|
|
287
294
|
}), a.start();
|
|
288
295
|
},
|
|
@@ -294,12 +301,12 @@ function Ze() {
|
|
|
294
301
|
"button",
|
|
295
302
|
{
|
|
296
303
|
type: "button",
|
|
297
|
-
className: "text-
|
|
304
|
+
className: "text-text-tertiary-600 mx-auto mt-3xl flex w-fit items-center gap-1 text-sm font-semibold",
|
|
298
305
|
onClick: () => {
|
|
299
|
-
|
|
306
|
+
p(1), l.reset(), a.stop();
|
|
300
307
|
},
|
|
301
308
|
children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
309
|
+
/* @__PURE__ */ e(_, { className: "size-5" }),
|
|
303
310
|
"Back"
|
|
304
311
|
]
|
|
305
312
|
}
|
|
@@ -311,5 +318,5 @@ function Ze() {
|
|
|
311
318
|
] });
|
|
312
319
|
}
|
|
313
320
|
export {
|
|
314
|
-
|
|
321
|
+
qe as SignInForm
|
|
315
322
|
};
|
|
@@ -2,7 +2,6 @@ import { ImageProps } from 'next/image';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export interface SignUpProps {
|
|
4
4
|
logo: ImageProps['src'];
|
|
5
|
-
banner: ImageProps['src'];
|
|
6
5
|
children?: ReactNode;
|
|
7
6
|
}
|
|
8
7
|
export declare function SignUp(props: SignUpProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@ark-ui/react"),s=require("next/image"),o=require("react"),l=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("lodash-es");require("@opexa/portal-sdk-core/object-id");const q=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const c=require("../../icons/XIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");const a=require("../../ui/Button/Button.js");require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/Collapsible/Collapsible.js");require("../../ui/DatePicker/DatePicker.js");const r=require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");require("../../ui/IconButton/iconButton.recipe.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PasswordInput/PasswordInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("tailwind-merge");require("../../ui/Progress/Progress.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");const g=require("./SignUpForm.js");function x(u){const n=q.useGlobalStore(l.useShallow(i=>i.signUp));return e.jsxs(r.Root,{open:n.open,onOpenChange:i=>{n.setOpen(i.open)},lazyMount:!0,unmountOnExit:!0,closeOnEscape:!1,closeOnInteractOutside:!1,children:[e.jsx(r.Trigger,{asChild:!0,children:u.children??e.jsx(a.Button,{children:"Sign up"})}),e.jsxs(t.Portal,{children:[e.jsx(r.Backdrop,{}),e.jsx(r.Positioner,{children:e.jsxs(r.Content,{className:"bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl",children:[e.jsx(r.CloseTrigger,{children:e.jsx(c.XIcon,{})}),e.jsx(s,{src:u.logo,alt:"",width:200,height:100,className:"mx-auto h-auto w-[120px]",draggable:!1}),e.jsx(o.Suspense,{children:e.jsx(g.SignUpForm,{})})]})})]})]})}exports.SignUp=x;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as t, jsx as
|
|
3
|
-
import { Portal as
|
|
4
|
-
import
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { useShallow as
|
|
2
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Portal as p } from "@ark-ui/react";
|
|
4
|
+
import e from "next/image";
|
|
5
|
+
import { Suspense as n } from "react";
|
|
6
|
+
import { useShallow as l } from "zustand/shallow";
|
|
7
7
|
import "@opexa/portal-sdk-core";
|
|
8
8
|
import "@tanstack/react-query";
|
|
9
9
|
import "tiny-invariant";
|
|
@@ -22,66 +22,57 @@ import { XIcon as a } from "../../icons/XIcon.mjs";
|
|
|
22
22
|
import "../../ui/AlertDialog/AlertDialog.mjs";
|
|
23
23
|
import "../../ui/Avatar/Avatar.mjs";
|
|
24
24
|
import "../../ui/Badge/Badge.mjs";
|
|
25
|
-
import { Button as
|
|
25
|
+
import { Button as u } from "../../ui/Button/Button.mjs";
|
|
26
26
|
import "../../ui/Checkbox/Checkbox.mjs";
|
|
27
27
|
import "../../ui/Clipboard/Clipboard.mjs";
|
|
28
|
+
import "../../ui/Collapsible/Collapsible.mjs";
|
|
28
29
|
import "../../ui/DatePicker/DatePicker.mjs";
|
|
29
|
-
import { Root as
|
|
30
|
+
import { Root as c, Trigger as g, Backdrop as h, Positioner as d, Content as f, CloseTrigger as x } from "../../ui/Dialog/Dialog.mjs";
|
|
30
31
|
import "../../ui/Drawer/Drawer.mjs";
|
|
31
32
|
import "../../ui/Field/Field.mjs";
|
|
32
33
|
import "../../ui/IconButton/iconButton.recipe.mjs";
|
|
33
34
|
import "../../ui/NumberInput/NumberInput.mjs";
|
|
35
|
+
import "../../ui/PasswordInput/PasswordInput.mjs";
|
|
34
36
|
import "../../ui/PinInput/PinInput.mjs";
|
|
35
37
|
import "../../ui/Popover/Popover.mjs";
|
|
36
38
|
import "tailwind-merge";
|
|
39
|
+
import "../../ui/Progress/Progress.mjs";
|
|
37
40
|
import "../../ui/SegmentGroup/SegmentGroup.mjs";
|
|
38
41
|
import "../../ui/Select/Select.mjs";
|
|
39
42
|
import "../../ui/Table/Table.mjs";
|
|
40
43
|
import "../../ui/Tabs/Tabs.mjs";
|
|
41
|
-
import { SignUpForm as
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
+
import { SignUpForm as S } from "./SignUpForm.mjs";
|
|
45
|
+
function lo(i) {
|
|
46
|
+
const m = s(l((r) => r.signUp));
|
|
44
47
|
return /* @__PURE__ */ t(
|
|
45
|
-
|
|
48
|
+
c,
|
|
46
49
|
{
|
|
47
|
-
open:
|
|
48
|
-
onOpenChange: (
|
|
49
|
-
|
|
50
|
+
open: m.open,
|
|
51
|
+
onOpenChange: (r) => {
|
|
52
|
+
m.setOpen(r.open);
|
|
50
53
|
},
|
|
51
54
|
lazyMount: !0,
|
|
52
55
|
unmountOnExit: !0,
|
|
53
56
|
closeOnEscape: !1,
|
|
54
57
|
closeOnInteractOutside: !1,
|
|
55
58
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ t(
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
59
|
+
/* @__PURE__ */ o(g, { asChild: !0, children: i.children ?? /* @__PURE__ */ o(u, { children: "Sign up" }) }),
|
|
60
|
+
/* @__PURE__ */ t(p, { children: [
|
|
61
|
+
/* @__PURE__ */ o(h, {}),
|
|
62
|
+
/* @__PURE__ */ o(d, { children: /* @__PURE__ */ t(f, { className: "bg-bg-primary-alt mx-auto h-full w-full items-start p-3xl pb-4xl lg:h-auto lg:w-[400px] lg:rounded-xl", children: [
|
|
63
|
+
/* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(a, {}) }),
|
|
64
|
+
/* @__PURE__ */ o(
|
|
65
|
+
e,
|
|
62
66
|
{
|
|
63
|
-
src:
|
|
64
|
-
alt: "
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
className: "
|
|
67
|
+
src: i.logo,
|
|
68
|
+
alt: "",
|
|
69
|
+
width: 200,
|
|
70
|
+
height: 100,
|
|
71
|
+
className: "mx-auto h-auto w-[120px]",
|
|
72
|
+
draggable: !1
|
|
68
73
|
}
|
|
69
74
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(a, {}) }),
|
|
72
|
-
/* @__PURE__ */ r(
|
|
73
|
-
m,
|
|
74
|
-
{
|
|
75
|
-
src: o.logo,
|
|
76
|
-
alt: "",
|
|
77
|
-
width: 200,
|
|
78
|
-
height: 100,
|
|
79
|
-
className: "mx-auto h-auto w-[120px]",
|
|
80
|
-
draggable: !1
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(w, {}) })
|
|
84
|
-
] })
|
|
75
|
+
/* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(S, {}) })
|
|
85
76
|
] }) })
|
|
86
77
|
] })
|
|
87
78
|
]
|
|
@@ -89,5 +80,5 @@ function mr(o) {
|
|
|
89
80
|
);
|
|
90
81
|
}
|
|
91
82
|
export {
|
|
92
|
-
|
|
83
|
+
lo as SignUp
|
|
93
84
|
};
|