@vechain/vechain-kit 1.3.1 → 1.4.0
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/README.md +47 -10
- package/dist/{Constants-7pfsJgOl.d.cts → Constants-DQeyU9X7.d.cts} +1 -0
- package/dist/{Constants-7pfsJgOl.d.ts → Constants-DQeyU9X7.d.ts} +1 -0
- package/dist/index.cjs +465 -226
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -18
- package/dist/index.d.ts +39 -18
- package/dist/index.js +464 -228
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import { z } from 'zod';
|
|
|
22
22
|
import { useAccount, createConfig, http, WagmiProvider, useConnect, useSignTypedData, useSignMessage, useDisconnect } from 'wagmi';
|
|
23
23
|
import { toPrivyWalletConnector } from '@privy-io/cross-app-connect/rainbow-kit';
|
|
24
24
|
import { isSafari } from 'react-device-detect';
|
|
25
|
-
import { createMultiStyleConfigHelpers, defineStyle, defineStyleConfig, extendTheme, createStandaloneToast, IconButton, VStack, Text, HStack, Icon, Link, Box, useMediaQuery, Modal, ModalOverlay, ModalContent, Button, Image, Skeleton, useDisclosure, GridItem, Divider, InputGroup, InputLeftElement, Input, ModalHeader, ModalCloseButton, ModalBody, Stack, Grid, ModalFooter, useColorModeValue, Card, CardBody, Tag,
|
|
25
|
+
import { createMultiStyleConfigHelpers, defineStyle, defineStyleConfig, extendTheme, createStandaloneToast, IconButton, VStack, Text, HStack, Icon, Link, Box, useMediaQuery, Modal, ModalOverlay, ModalContent, Button, Image, Skeleton, Spinner, useDisclosure, GridItem, Divider, InputGroup, InputLeftElement, Input, ModalHeader, ModalCloseButton, ModalBody, Stack, Grid, ModalFooter, useColorModeValue, Card, CardBody, Tag, Alert, AlertIcon, useColorMode, Heading, Tabs, TabList, Tab, TabPanels, TabPanel, Center, Container, InputRightElement, Select, Progress, PinInput, PinInputField, Accordion, AccordionItem, AccordionButton, AccordionPanel, List, ListItem, ChakraProvider, Flex, AlertDescription, Circle } from '@chakra-ui/react';
|
|
26
26
|
import { motion } from 'framer-motion';
|
|
27
27
|
import { IoChevronBack, IoCheckmarkOutline, IoCopyOutline, IoPlanet, IoCloseCircle, IoOpenOutline, IoChevronUp, IoChevronDown } from 'react-icons/io5';
|
|
28
28
|
import { BsQuestionCircle, BsBookmarkFill, BsBookmark } from 'react-icons/bs';
|
|
@@ -3587,12 +3587,15 @@ var usePrivyCrossAppSdk = () => {
|
|
|
3587
3587
|
|
|
3588
3588
|
// src/hooks/api/wallet/useWalletMetadata.ts
|
|
3589
3589
|
var useWalletMetadata = (address, networkType) => {
|
|
3590
|
-
const { data: domain } = useVechainDomain(address ?? "");
|
|
3591
|
-
const { data: avatar } = useGetAvatar(
|
|
3590
|
+
const { data: domain, isLoading: isLoadingVechainDomain } = useVechainDomain(address ?? "");
|
|
3591
|
+
const { data: avatar, isLoading: isLoadingAvatar } = useGetAvatar(
|
|
3592
|
+
domain?.domain
|
|
3593
|
+
);
|
|
3592
3594
|
const avatarUrl = convertUriToUrl(avatar ?? "", networkType);
|
|
3593
3595
|
return {
|
|
3594
3596
|
domain: domain?.domain,
|
|
3595
|
-
image: avatarUrl ?? getPicassoImage(address ?? "")
|
|
3597
|
+
image: avatarUrl ?? getPicassoImage(address ?? ""),
|
|
3598
|
+
isLoading: isLoadingVechainDomain || isLoadingAvatar
|
|
3596
3599
|
};
|
|
3597
3600
|
};
|
|
3598
3601
|
|
|
@@ -3661,12 +3664,14 @@ var useWallet = () => {
|
|
|
3661
3664
|
const account = activeAddress ? {
|
|
3662
3665
|
address: activeAddress,
|
|
3663
3666
|
domain: activeMetadata.domain,
|
|
3664
|
-
image: activeMetadata.image
|
|
3667
|
+
image: activeMetadata.image,
|
|
3668
|
+
isLoadingAvatar: activeMetadata.isLoading
|
|
3665
3669
|
} : null;
|
|
3666
3670
|
const connectedWallet = connectedWalletAddress ? {
|
|
3667
3671
|
address: connectedWalletAddress,
|
|
3668
3672
|
domain: connectedMetadata.domain,
|
|
3669
|
-
image: connectedMetadata.image
|
|
3673
|
+
image: connectedMetadata.image,
|
|
3674
|
+
isLoadingAvatar: connectedMetadata.isLoading
|
|
3670
3675
|
} : null;
|
|
3671
3676
|
const { data: smartAccountVersion } = useContractVersion(
|
|
3672
3677
|
smartAccount?.address ?? ""
|
|
@@ -3704,7 +3709,8 @@ var useWallet = () => {
|
|
|
3704
3709
|
image: smartAccountMetadata.image,
|
|
3705
3710
|
isDeployed: smartAccount?.isDeployed ?? false,
|
|
3706
3711
|
isActive: hasActiveSmartAccount,
|
|
3707
|
-
version: smartAccountVersion ?? null
|
|
3712
|
+
version: smartAccountVersion ?? null,
|
|
3713
|
+
isLoadingAvatar: smartAccountMetadata.isLoading
|
|
3708
3714
|
},
|
|
3709
3715
|
connectedWallet,
|
|
3710
3716
|
privyUser: user,
|
|
@@ -4151,6 +4157,52 @@ var useReceiveModal = () => {
|
|
|
4151
4157
|
};
|
|
4152
4158
|
};
|
|
4153
4159
|
var ReceiveModalProvider = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
4160
|
+
var useLoginModalContent = () => {
|
|
4161
|
+
const { privy, loginMethods } = useVeChainKitConfig();
|
|
4162
|
+
const isVeChainApp = privy?.appId === VECHAIN_PRIVY_APP_ID;
|
|
4163
|
+
const showEcosystemLogin = useMemo(() => {
|
|
4164
|
+
if (!loginMethods) return true;
|
|
4165
|
+
if (loginMethods.length > 0 && !loginMethods?.find((method35) => method35.method === "ecosystem")) {
|
|
4166
|
+
return false;
|
|
4167
|
+
}
|
|
4168
|
+
return true;
|
|
4169
|
+
}, [loginMethods]);
|
|
4170
|
+
if (!privy) {
|
|
4171
|
+
return {
|
|
4172
|
+
showSocialLogin: false,
|
|
4173
|
+
showPasskey: false,
|
|
4174
|
+
showVeChainLogin: true,
|
|
4175
|
+
showDappKit: true,
|
|
4176
|
+
showEcosystem: showEcosystemLogin,
|
|
4177
|
+
showMoreLogin: false,
|
|
4178
|
+
isOfficialVeChainApp: false
|
|
4179
|
+
};
|
|
4180
|
+
}
|
|
4181
|
+
if (isVeChainApp) {
|
|
4182
|
+
return {
|
|
4183
|
+
showSocialLogin: false,
|
|
4184
|
+
showPasskey: false,
|
|
4185
|
+
showVeChainLogin: true,
|
|
4186
|
+
showDappKit: true,
|
|
4187
|
+
showEcosystem: showEcosystemLogin,
|
|
4188
|
+
showMoreLogin: false,
|
|
4189
|
+
isOfficialVeChainApp: true
|
|
4190
|
+
};
|
|
4191
|
+
}
|
|
4192
|
+
const showMoreLogin = useMemo(() => {
|
|
4193
|
+
if (!loginMethods) return true;
|
|
4194
|
+
return loginMethods.some((method35) => method35.method === "more");
|
|
4195
|
+
}, [loginMethods]);
|
|
4196
|
+
return {
|
|
4197
|
+
showSocialLogin: true,
|
|
4198
|
+
showPasskey: true,
|
|
4199
|
+
showVeChainLogin: true,
|
|
4200
|
+
showDappKit: true,
|
|
4201
|
+
showEcosystem: showEcosystemLogin,
|
|
4202
|
+
showMoreLogin,
|
|
4203
|
+
isOfficialVeChainApp: false
|
|
4204
|
+
};
|
|
4205
|
+
};
|
|
4154
4206
|
var ERC20Interface2 = ERC20__factory.createInterface();
|
|
4155
4207
|
var useTransferERC20 = ({
|
|
4156
4208
|
fromAddress,
|
|
@@ -5229,7 +5281,7 @@ var AddressDisplay = ({ wallet, label, size = "lg" }) => {
|
|
|
5229
5281
|
// package.json
|
|
5230
5282
|
var package_default = {
|
|
5231
5283
|
name: "@vechain/vechain-kit",
|
|
5232
|
-
version: "1.
|
|
5284
|
+
version: "1.4.0",
|
|
5233
5285
|
private: false,
|
|
5234
5286
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
5235
5287
|
repository: "github:vechain/vechain-kit",
|
|
@@ -5255,8 +5307,8 @@ var package_default = {
|
|
|
5255
5307
|
dependencies: {
|
|
5256
5308
|
"@chakra-ui/react": "^2.8.2",
|
|
5257
5309
|
"@choc-ui/chakra-autocomplete": "^5.3.0",
|
|
5258
|
-
"@privy-io/cross-app-connect": "^0.1.
|
|
5259
|
-
"@privy-io/react-auth": "2.0
|
|
5310
|
+
"@privy-io/cross-app-connect": "^0.1.6",
|
|
5311
|
+
"@privy-io/react-auth": "2.3.0",
|
|
5260
5312
|
"@rainbow-me/rainbowkit": "^2.1.5",
|
|
5261
5313
|
"@tanstack/react-query": "^5.64.2",
|
|
5262
5314
|
"@tanstack/react-query-devtools": "^5.64.1",
|
|
@@ -5591,7 +5643,8 @@ var AddressDisplayCard = ({
|
|
|
5591
5643
|
src: imageSrc,
|
|
5592
5644
|
alt: imageAlt,
|
|
5593
5645
|
boxSize: "40px",
|
|
5594
|
-
borderRadius: "xl"
|
|
5646
|
+
borderRadius: "xl",
|
|
5647
|
+
objectFit: "cover"
|
|
5595
5648
|
}
|
|
5596
5649
|
),
|
|
5597
5650
|
/* @__PURE__ */ jsx(VStack, { align: "start", spacing: 0, children: domain ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -5641,6 +5694,22 @@ var ScrollToTopWrapper = ({ children, ...props }) => {
|
|
|
5641
5694
|
useScrollToTop();
|
|
5642
5695
|
return /* @__PURE__ */ jsx(VStack, { ...props, children });
|
|
5643
5696
|
};
|
|
5697
|
+
var AccountAvatar = ({ wallet, props }) => {
|
|
5698
|
+
if (wallet?.isLoadingAvatar) {
|
|
5699
|
+
return /* @__PURE__ */ jsx(Spinner, { size: "sm" });
|
|
5700
|
+
}
|
|
5701
|
+
return /* @__PURE__ */ jsx(
|
|
5702
|
+
Image,
|
|
5703
|
+
{
|
|
5704
|
+
src: props?.src ?? wallet?.image,
|
|
5705
|
+
alt: props?.alt ?? wallet?.domain,
|
|
5706
|
+
fallbackSrc: notFoundImage,
|
|
5707
|
+
objectFit: "cover",
|
|
5708
|
+
rounded: "full",
|
|
5709
|
+
...props
|
|
5710
|
+
}
|
|
5711
|
+
);
|
|
5712
|
+
};
|
|
5644
5713
|
var VeChainLoginButton = ({ isDark, gridColumn }) => {
|
|
5645
5714
|
const { t } = useTranslation();
|
|
5646
5715
|
const { login: loginWithVeChain } = useLoginWithVeChain();
|
|
@@ -5686,12 +5755,19 @@ var VeChainLoginButton = ({ isDark, gridColumn }) => {
|
|
|
5686
5755
|
)
|
|
5687
5756
|
] });
|
|
5688
5757
|
};
|
|
5689
|
-
var SocialLoginButtons = ({
|
|
5758
|
+
var SocialLoginButtons = ({
|
|
5759
|
+
isDark,
|
|
5760
|
+
loginMethods,
|
|
5761
|
+
gridColumn
|
|
5762
|
+
}) => {
|
|
5690
5763
|
const { t } = useTranslation();
|
|
5691
5764
|
const { initOAuth } = useLoginWithOAuth2();
|
|
5692
|
-
|
|
5693
|
-
method35 === "email"
|
|
5694
|
-
|
|
5765
|
+
const selfHostedPrivyLoginMethods = loginMethods?.filter(
|
|
5766
|
+
(method35) => method35.method === "email" || method35.method === "google"
|
|
5767
|
+
);
|
|
5768
|
+
return /* @__PURE__ */ jsx(GridItem, { colSpan: gridColumn, w: "full", children: selfHostedPrivyLoginMethods?.map((loginMethod, index) => /* @__PURE__ */ jsxs(React9.Fragment, { children: [
|
|
5769
|
+
loginMethod.method === "email" && /* @__PURE__ */ jsx(GridItem, { colSpan: 4, w: "full", children: /* @__PURE__ */ jsx(EmailLoginButton, {}) }),
|
|
5770
|
+
loginMethod.method === "google" && /* @__PURE__ */ jsx(GridItem, { colSpan: 4, w: "full", children: /* @__PURE__ */ jsx(
|
|
5695
5771
|
ConnectionButton,
|
|
5696
5772
|
{
|
|
5697
5773
|
isDark,
|
|
@@ -5702,14 +5778,14 @@ var SocialLoginButtons = ({ isDark, loginModalUI }) => {
|
|
|
5702
5778
|
text: t("Continue with Google")
|
|
5703
5779
|
}
|
|
5704
5780
|
) }),
|
|
5705
|
-
index !== (
|
|
5781
|
+
index !== (selfHostedPrivyLoginMethods?.length ?? 0) - 1 && /* @__PURE__ */ jsx(GridItem, { colSpan: 4, w: "full", children: /* @__PURE__ */ jsxs(HStack, { children: [
|
|
5706
5782
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
5707
5783
|
/* @__PURE__ */ jsx(Text, { fontSize: "xs", children: "or" }),
|
|
5708
5784
|
/* @__PURE__ */ jsx(Divider, {})
|
|
5709
5785
|
] }) })
|
|
5710
|
-
] },
|
|
5786
|
+
] }, loginMethod.method)) });
|
|
5711
5787
|
};
|
|
5712
|
-
var PasskeyLoginButton = ({ isDark, gridColumn
|
|
5788
|
+
var PasskeyLoginButton = ({ isDark, gridColumn }) => {
|
|
5713
5789
|
const { t } = useTranslation();
|
|
5714
5790
|
const { loginWithPasskey } = useLoginWithPasskey();
|
|
5715
5791
|
const [loginError, setLoginError] = useState();
|
|
@@ -5733,7 +5809,8 @@ var PasskeyLoginButton = ({ isDark, gridColumn = 1 }) => {
|
|
|
5733
5809
|
{
|
|
5734
5810
|
isDark,
|
|
5735
5811
|
onClick: handleLoginWithPasskey,
|
|
5736
|
-
icon: IoIosFingerPrint
|
|
5812
|
+
icon: IoIosFingerPrint,
|
|
5813
|
+
text: gridColumn && gridColumn >= 2 ? t("Passkey") : void 0
|
|
5737
5814
|
}
|
|
5738
5815
|
) }),
|
|
5739
5816
|
/* @__PURE__ */ jsx(
|
|
@@ -5766,20 +5843,20 @@ var DappKitButton = ({ isDark, gridColumn = 2 }) => {
|
|
|
5766
5843
|
};
|
|
5767
5844
|
var EcosystemButton = ({
|
|
5768
5845
|
isDark,
|
|
5769
|
-
privySocialLoginEnabled,
|
|
5770
5846
|
appsInfo,
|
|
5771
|
-
isLoading
|
|
5847
|
+
isLoading,
|
|
5848
|
+
gridColumn
|
|
5772
5849
|
}) => {
|
|
5773
5850
|
const { t } = useTranslation();
|
|
5774
5851
|
const ecosystemModal = useDisclosure();
|
|
5775
5852
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5776
|
-
/* @__PURE__ */ jsx(GridItem, { colSpan:
|
|
5853
|
+
/* @__PURE__ */ jsx(GridItem, { colSpan: gridColumn, w: "full", children: /* @__PURE__ */ jsx(
|
|
5777
5854
|
ConnectionButton,
|
|
5778
5855
|
{
|
|
5779
5856
|
isDark,
|
|
5780
5857
|
onClick: ecosystemModal.onOpen,
|
|
5781
5858
|
icon: IoPlanet,
|
|
5782
|
-
text:
|
|
5859
|
+
text: gridColumn && gridColumn >= 2 ? t("Ecosystem") : void 0
|
|
5783
5860
|
}
|
|
5784
5861
|
) }),
|
|
5785
5862
|
/* @__PURE__ */ jsx(
|
|
@@ -5793,11 +5870,7 @@ var EcosystemButton = ({
|
|
|
5793
5870
|
)
|
|
5794
5871
|
] });
|
|
5795
5872
|
};
|
|
5796
|
-
var PrivyButton = ({
|
|
5797
|
-
isDark,
|
|
5798
|
-
onViewMoreLogin,
|
|
5799
|
-
gridColumn = 1
|
|
5800
|
-
}) => {
|
|
5873
|
+
var PrivyButton = ({ isDark, onViewMoreLogin, gridColumn }) => {
|
|
5801
5874
|
const { t } = useTranslation();
|
|
5802
5875
|
return /* @__PURE__ */ jsx(GridItem, { colSpan: gridColumn, w: "full", children: /* @__PURE__ */ jsx(
|
|
5803
5876
|
ConnectionButton,
|
|
@@ -5805,7 +5878,7 @@ var PrivyButton = ({
|
|
|
5805
5878
|
isDark,
|
|
5806
5879
|
onClick: onViewMoreLogin,
|
|
5807
5880
|
icon: CiCircleMore,
|
|
5808
|
-
text: gridColumn >= 2 ? t("More") : void 0
|
|
5881
|
+
text: gridColumn && gridColumn >= 2 ? t("More") : void 0
|
|
5809
5882
|
}
|
|
5810
5883
|
) });
|
|
5811
5884
|
};
|
|
@@ -6131,51 +6204,99 @@ var VeChainWithPrivyLoginButton = ({ isDark, gridColumn }) => {
|
|
|
6131
6204
|
}
|
|
6132
6205
|
) });
|
|
6133
6206
|
};
|
|
6134
|
-
var MainContent = ({
|
|
6135
|
-
setCurrentContent,
|
|
6136
|
-
onClose,
|
|
6137
|
-
variant = "vechain-wallet-ecosystem"
|
|
6138
|
-
}) => {
|
|
6207
|
+
var MainContent = ({ setCurrentContent, onClose }) => {
|
|
6139
6208
|
const { t } = useTranslation();
|
|
6140
6209
|
const { darkMode: isDark } = useVeChainKitConfig();
|
|
6141
6210
|
const { connection } = useWallet();
|
|
6142
|
-
const { loginModalUI,
|
|
6211
|
+
const { loginModalUI, privyEcosystemAppIDS, loginMethods } = useVeChainKitConfig();
|
|
6143
6212
|
const { login: viewMoreLogin } = usePrivy();
|
|
6213
|
+
const {
|
|
6214
|
+
showSocialLogin,
|
|
6215
|
+
showPasskey,
|
|
6216
|
+
showVeChainLogin,
|
|
6217
|
+
showDappKit,
|
|
6218
|
+
showEcosystem,
|
|
6219
|
+
showMoreLogin,
|
|
6220
|
+
isOfficialVeChainApp
|
|
6221
|
+
} = useLoginModalContent();
|
|
6144
6222
|
const { data: appsInfo, isLoading: isEcosystemAppsLoading } = useFetchAppInfo(privyEcosystemAppIDS);
|
|
6145
6223
|
useEffect(() => {
|
|
6146
6224
|
if (connection.isConnected) {
|
|
6147
6225
|
onClose();
|
|
6148
6226
|
}
|
|
6149
6227
|
}, [connection.isConnected, onClose]);
|
|
6150
|
-
const
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6228
|
+
const gridLayout = useMemo(() => {
|
|
6229
|
+
if (loginMethods?.length) {
|
|
6230
|
+
const layout = {};
|
|
6231
|
+
loginMethods.forEach(({ method: method35, gridColumn }) => {
|
|
6232
|
+
switch (method35) {
|
|
6233
|
+
case "email":
|
|
6234
|
+
case "google":
|
|
6235
|
+
layout.socialLoginColumn = gridColumn || 4;
|
|
6236
|
+
break;
|
|
6237
|
+
case "vechain":
|
|
6238
|
+
layout.veChainColumn = gridColumn || 4;
|
|
6239
|
+
break;
|
|
6240
|
+
case "passkey":
|
|
6241
|
+
layout.passkeyColumn = gridColumn || 1;
|
|
6242
|
+
break;
|
|
6243
|
+
case "dappkit":
|
|
6244
|
+
layout.dappKitColumn = gridColumn || 2;
|
|
6245
|
+
break;
|
|
6246
|
+
case "ecosystem":
|
|
6247
|
+
layout.ecosystemColumn = gridColumn || 2;
|
|
6248
|
+
break;
|
|
6249
|
+
case "more":
|
|
6250
|
+
layout.moreLoginColumn = gridColumn || 1;
|
|
6251
|
+
break;
|
|
6159
6252
|
}
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6253
|
+
});
|
|
6254
|
+
return layout;
|
|
6255
|
+
}
|
|
6256
|
+
const visibleButtons = {
|
|
6257
|
+
socialLogin: showSocialLogin,
|
|
6258
|
+
veChainLogin: showVeChainLogin,
|
|
6259
|
+
dappKit: showDappKit,
|
|
6260
|
+
ecosystem: showEcosystem,
|
|
6261
|
+
moreLogin: showMoreLogin,
|
|
6262
|
+
passkey: showPasskey
|
|
6263
|
+
};
|
|
6264
|
+
if (visibleButtons.veChainLogin && visibleButtons.dappKit && visibleButtons.ecosystem && !visibleButtons.socialLogin) {
|
|
6265
|
+
return {
|
|
6266
|
+
veChainColumn: 4,
|
|
6267
|
+
// Full width
|
|
6268
|
+
dappKitColumn: 2,
|
|
6269
|
+
// Half width
|
|
6270
|
+
ecosystemColumn: 2
|
|
6271
|
+
// Half width
|
|
6272
|
+
};
|
|
6273
|
+
}
|
|
6274
|
+
if (visibleButtons.socialLogin) {
|
|
6275
|
+
return {
|
|
6276
|
+
socialLoginColumn: 4,
|
|
6277
|
+
veChainColumn: 4,
|
|
6278
|
+
dappKitColumn: 1,
|
|
6279
|
+
ecosystemColumn: 1,
|
|
6280
|
+
moreLoginColumn: 1,
|
|
6281
|
+
passkeyColumn: 1
|
|
6282
|
+
};
|
|
6177
6283
|
}
|
|
6178
|
-
|
|
6284
|
+
const totalButtons = Object.values(visibleButtons).filter(Boolean).length;
|
|
6285
|
+
const defaultColumn = Math.min(4, totalButtons);
|
|
6286
|
+
return {
|
|
6287
|
+
veChainColumn: 4,
|
|
6288
|
+
dappKitColumn: defaultColumn,
|
|
6289
|
+
ecosystemColumn: defaultColumn
|
|
6290
|
+
};
|
|
6291
|
+
}, [
|
|
6292
|
+
loginMethods,
|
|
6293
|
+
showSocialLogin,
|
|
6294
|
+
showVeChainLogin,
|
|
6295
|
+
showDappKit,
|
|
6296
|
+
showEcosystem,
|
|
6297
|
+
showMoreLogin,
|
|
6298
|
+
showPasskey
|
|
6299
|
+
]);
|
|
6179
6300
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6180
6301
|
/* @__PURE__ */ jsxs(StickyHeaderContainer, { children: [
|
|
6181
6302
|
/* @__PURE__ */ jsx(ModalFAQButton, { onClick: () => setCurrentContent("faq") }),
|
|
@@ -6222,53 +6343,56 @@ var MainContent = ({
|
|
|
6222
6343
|
}
|
|
6223
6344
|
),
|
|
6224
6345
|
/* @__PURE__ */ jsx(Stack, { spacing: 4, w: "full", align: "center", children: /* @__PURE__ */ jsxs(Grid, { templateColumns: "repeat(4, 1fr)", gap: 2, w: "full", children: [
|
|
6225
|
-
|
|
6346
|
+
showSocialLogin && /* @__PURE__ */ jsx(
|
|
6226
6347
|
SocialLoginButtons,
|
|
6227
6348
|
{
|
|
6228
6349
|
isDark,
|
|
6229
|
-
|
|
6350
|
+
loginMethods,
|
|
6351
|
+
gridColumn: gridLayout.socialLoginColumn
|
|
6230
6352
|
}
|
|
6231
6353
|
),
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
isDark,
|
|
6239
|
-
gridColumn: 4
|
|
6240
|
-
}
|
|
6241
|
-
)
|
|
6354
|
+
showVeChainLogin && (isOfficialVeChainApp ? /* @__PURE__ */ jsx(
|
|
6355
|
+
VeChainWithPrivyLoginButton,
|
|
6356
|
+
{
|
|
6357
|
+
isDark,
|
|
6358
|
+
gridColumn: gridLayout.veChainColumn
|
|
6359
|
+
}
|
|
6242
6360
|
) : /* @__PURE__ */ jsx(
|
|
6243
6361
|
VeChainLoginButton,
|
|
6244
6362
|
{
|
|
6245
6363
|
isDark,
|
|
6246
|
-
gridColumn:
|
|
6364
|
+
gridColumn: gridLayout.veChainColumn
|
|
6365
|
+
}
|
|
6366
|
+
)),
|
|
6367
|
+
showPasskey && /* @__PURE__ */ jsx(
|
|
6368
|
+
PasskeyLoginButton,
|
|
6369
|
+
{
|
|
6370
|
+
isDark,
|
|
6371
|
+
gridColumn: gridLayout.passkeyColumn
|
|
6247
6372
|
}
|
|
6248
6373
|
),
|
|
6249
|
-
|
|
6250
|
-
/* @__PURE__ */ jsx(
|
|
6374
|
+
showDappKit && /* @__PURE__ */ jsx(
|
|
6251
6375
|
DappKitButton,
|
|
6252
6376
|
{
|
|
6253
6377
|
isDark,
|
|
6254
|
-
gridColumn:
|
|
6378
|
+
gridColumn: gridLayout.dappKitColumn
|
|
6255
6379
|
}
|
|
6256
6380
|
),
|
|
6257
|
-
|
|
6381
|
+
showEcosystem && /* @__PURE__ */ jsx(
|
|
6258
6382
|
EcosystemButton,
|
|
6259
6383
|
{
|
|
6260
6384
|
isDark,
|
|
6261
|
-
privySocialLoginEnabled: variant === "full" && privySocialLoginEnabled,
|
|
6262
6385
|
appsInfo: Object.values(appsInfo || {}),
|
|
6263
|
-
isLoading: isEcosystemAppsLoading
|
|
6386
|
+
isLoading: isEcosystemAppsLoading,
|
|
6387
|
+
gridColumn: gridLayout.ecosystemColumn
|
|
6264
6388
|
}
|
|
6265
6389
|
),
|
|
6266
|
-
|
|
6390
|
+
showMoreLogin && /* @__PURE__ */ jsx(
|
|
6267
6391
|
PrivyButton,
|
|
6268
6392
|
{
|
|
6269
6393
|
isDark,
|
|
6270
6394
|
onViewMoreLogin: viewMoreLogin,
|
|
6271
|
-
gridColumn:
|
|
6395
|
+
gridColumn: gridLayout.moreLoginColumn
|
|
6272
6396
|
}
|
|
6273
6397
|
)
|
|
6274
6398
|
] }) })
|
|
@@ -6333,6 +6457,31 @@ var FeatureAnnouncementCard = ({
|
|
|
6333
6457
|
}
|
|
6334
6458
|
);
|
|
6335
6459
|
};
|
|
6460
|
+
var ExchangeWarningAlert = () => {
|
|
6461
|
+
const { t } = useTranslation();
|
|
6462
|
+
const [showFullText, setShowFullText] = useState(false);
|
|
6463
|
+
return /* @__PURE__ */ jsx(Alert, { status: "warning", fontSize: "xs", borderRadius: "xl", p: 2, children: /* @__PURE__ */ jsx(VStack, { spacing: 1, align: "stretch", w: "full", children: /* @__PURE__ */ jsxs(HStack, { spacing: 2, align: "flex-start", children: [
|
|
6464
|
+
/* @__PURE__ */ jsx(AlertIcon, { boxSize: 4 }),
|
|
6465
|
+
/* @__PURE__ */ jsxs(Text, { w: "full", children: [
|
|
6466
|
+
t(
|
|
6467
|
+
"Sending to OceanX or other exchanges may result in loss of funds."
|
|
6468
|
+
),
|
|
6469
|
+
showFullText && t("Send the tokens to your VeWorld wallet first."),
|
|
6470
|
+
/* @__PURE__ */ jsx(
|
|
6471
|
+
Button,
|
|
6472
|
+
{
|
|
6473
|
+
variant: "link",
|
|
6474
|
+
size: "xs",
|
|
6475
|
+
onClick: () => setShowFullText(!showFullText),
|
|
6476
|
+
color: "inherit",
|
|
6477
|
+
pl: 6,
|
|
6478
|
+
mt: 0,
|
|
6479
|
+
children: t(showFullText ? "Show Less" : "Read More")
|
|
6480
|
+
}
|
|
6481
|
+
)
|
|
6482
|
+
] })
|
|
6483
|
+
] }) }) });
|
|
6484
|
+
};
|
|
6336
6485
|
var AccountMainContent = ({
|
|
6337
6486
|
setCurrentContent,
|
|
6338
6487
|
wallet,
|
|
@@ -6550,7 +6699,8 @@ var ActionButton = ({
|
|
|
6550
6699
|
h: "35px",
|
|
6551
6700
|
borderRadius: "full",
|
|
6552
6701
|
alt: "left-image",
|
|
6553
|
-
alignSelf: "end"
|
|
6702
|
+
alignSelf: "end",
|
|
6703
|
+
objectFit: "cover"
|
|
6554
6704
|
}
|
|
6555
6705
|
) : /* @__PURE__ */ jsx(Icon, { as: leftIcon, fontSize: "25px" }) }),
|
|
6556
6706
|
/* @__PURE__ */ jsxs(
|
|
@@ -6606,13 +6756,10 @@ var AccountSelector = ({
|
|
|
6606
6756
|
variant: "vechainKitSelector",
|
|
6607
6757
|
children: /* @__PURE__ */ jsxs(HStack, { spacing: 2, align: "center", children: [
|
|
6608
6758
|
/* @__PURE__ */ jsx(
|
|
6609
|
-
|
|
6759
|
+
AccountAvatar,
|
|
6610
6760
|
{
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
width: 5,
|
|
6614
|
-
height: 5,
|
|
6615
|
-
rounded: "full"
|
|
6761
|
+
wallet,
|
|
6762
|
+
props: { width: 5, height: 5 }
|
|
6616
6763
|
}
|
|
6617
6764
|
),
|
|
6618
6765
|
/* @__PURE__ */ jsx(Text, { fontSize: size, fontWeight: "500", children: humanDomain(wallet?.domain ?? "", 6, 4) || humanAddress(wallet?.address ?? "", 6, 4) }),
|
|
@@ -7330,14 +7477,7 @@ var WalletSettingsContent = ({
|
|
|
7330
7477
|
] }),
|
|
7331
7478
|
/* @__PURE__ */ jsxs(ModalBody, { w: "full", children: [
|
|
7332
7479
|
/* @__PURE__ */ jsxs(VStack, { justify: "center", children: [
|
|
7333
|
-
/* @__PURE__ */ jsx(
|
|
7334
|
-
Image,
|
|
7335
|
-
{
|
|
7336
|
-
src: account?.image,
|
|
7337
|
-
maxW: "100px",
|
|
7338
|
-
borderRadius: "50%"
|
|
7339
|
-
}
|
|
7340
|
-
),
|
|
7480
|
+
/* @__PURE__ */ jsx(AccountAvatar, { wallet: account, props: { maxW: "100px" } }),
|
|
7341
7481
|
/* @__PURE__ */ jsx(AddressDisplay, { wallet: account }),
|
|
7342
7482
|
network.type !== "main" && /* @__PURE__ */ jsx(
|
|
7343
7483
|
Tag,
|
|
@@ -8055,6 +8195,14 @@ var SendTokenSummaryContent = ({
|
|
|
8055
8195
|
const { darkMode: isDark } = useVeChainKitConfig();
|
|
8056
8196
|
const { account, connection } = useWallet();
|
|
8057
8197
|
const transactionModal = useDisclosure();
|
|
8198
|
+
const { data: avatar } = useGetAvatar(resolvedDomain);
|
|
8199
|
+
const { network } = useVeChainKitConfig();
|
|
8200
|
+
const toImageSrc = useMemo(() => {
|
|
8201
|
+
if (avatar) {
|
|
8202
|
+
return convertUriToUrl(avatar, network.type);
|
|
8203
|
+
}
|
|
8204
|
+
return getPicassoImage(resolvedAddress || toAddressOrDomain);
|
|
8205
|
+
}, [avatar, network.type, resolvedAddress, toAddressOrDomain]);
|
|
8058
8206
|
const transferERC20 = useTransferERC20({
|
|
8059
8207
|
fromAddress: account?.address ?? "",
|
|
8060
8208
|
receiverAddress: resolvedAddress || toAddressOrDomain,
|
|
@@ -8106,20 +8254,7 @@ var SendTokenSummaryContent = ({
|
|
|
8106
8254
|
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
8107
8255
|
] }),
|
|
8108
8256
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 6, align: "stretch", w: "full", children: [
|
|
8109
|
-
connection.isConnectedWithPrivy && /* @__PURE__ */
|
|
8110
|
-
Alert,
|
|
8111
|
-
{
|
|
8112
|
-
status: "warning",
|
|
8113
|
-
fontSize: "xs",
|
|
8114
|
-
borderRadius: "xl",
|
|
8115
|
-
children: [
|
|
8116
|
-
/* @__PURE__ */ jsx(AlertIcon, {}),
|
|
8117
|
-
t(
|
|
8118
|
-
"Sending to OceanX or other exchanges may result in loss of funds. Send the tokens to your VeWorld wallet first."
|
|
8119
|
-
)
|
|
8120
|
-
]
|
|
8121
|
-
}
|
|
8122
|
-
),
|
|
8257
|
+
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(ExchangeWarningAlert, {}),
|
|
8123
8258
|
/* @__PURE__ */ jsxs(VStack, { spacing: 4, w: "full", children: [
|
|
8124
8259
|
/* @__PURE__ */ jsx(
|
|
8125
8260
|
AddressDisplayCard,
|
|
@@ -8139,9 +8274,7 @@ var SendTokenSummaryContent = ({
|
|
|
8139
8274
|
label: t("To"),
|
|
8140
8275
|
address: resolvedAddress || toAddressOrDomain,
|
|
8141
8276
|
domain: resolvedDomain,
|
|
8142
|
-
imageSrc:
|
|
8143
|
-
resolvedAddress || toAddressOrDomain
|
|
8144
|
-
),
|
|
8277
|
+
imageSrc: toImageSrc ?? "",
|
|
8145
8278
|
imageAlt: "To account",
|
|
8146
8279
|
symbol: selectedToken.symbol
|
|
8147
8280
|
}
|
|
@@ -8385,6 +8518,123 @@ var ChooseNameContent = ({
|
|
|
8385
8518
|
] }) })
|
|
8386
8519
|
] });
|
|
8387
8520
|
};
|
|
8521
|
+
var ExistingDomainsList = ({
|
|
8522
|
+
domains,
|
|
8523
|
+
onDomainSelect,
|
|
8524
|
+
isLoading
|
|
8525
|
+
}) => {
|
|
8526
|
+
const { t } = useTranslation();
|
|
8527
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
8528
|
+
const { account, connection } = useWallet();
|
|
8529
|
+
if (domains.length === 0 || isLoading) {
|
|
8530
|
+
return null;
|
|
8531
|
+
}
|
|
8532
|
+
return /* @__PURE__ */ jsx(Accordion, { allowToggle: true, children: /* @__PURE__ */ jsx(AccordionItem, { border: "none", children: ({ isExpanded }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8533
|
+
/* @__PURE__ */ jsxs(
|
|
8534
|
+
AccordionButton,
|
|
8535
|
+
{
|
|
8536
|
+
bg: isDark ? "whiteAlpha.50" : "gray.50",
|
|
8537
|
+
borderRadius: "xl",
|
|
8538
|
+
_hover: {
|
|
8539
|
+
bg: isDark ? "whiteAlpha.100" : "gray.100"
|
|
8540
|
+
},
|
|
8541
|
+
opacity: isLoading ? 0.7 : 1,
|
|
8542
|
+
transition: "all 0.2s",
|
|
8543
|
+
disabled: isLoading,
|
|
8544
|
+
children: [
|
|
8545
|
+
/* @__PURE__ */ jsx(Box, { flex: "1", textAlign: "left", py: 2, children: /* @__PURE__ */ jsx(Text, { fontWeight: "500", children: isLoading ? t("Loading your domains...") : `${t("Your existing domains")} (${domains.length})` }) }),
|
|
8546
|
+
/* @__PURE__ */ jsx(
|
|
8547
|
+
Icon,
|
|
8548
|
+
{
|
|
8549
|
+
as: isExpanded ? IoChevronUp : IoChevronDown,
|
|
8550
|
+
fontSize: "20px",
|
|
8551
|
+
opacity: 0.5
|
|
8552
|
+
}
|
|
8553
|
+
)
|
|
8554
|
+
]
|
|
8555
|
+
}
|
|
8556
|
+
),
|
|
8557
|
+
/* @__PURE__ */ jsx(AccordionPanel, { pb: 4, pt: 2, children: /* @__PURE__ */ jsx(List, { spacing: 2, children: domains.map((domain) => {
|
|
8558
|
+
const isCurrentDomain = domain.name === account?.domain;
|
|
8559
|
+
const metadata = useWalletMetadata(
|
|
8560
|
+
domain.name,
|
|
8561
|
+
connection.network
|
|
8562
|
+
);
|
|
8563
|
+
return /* @__PURE__ */ jsx(
|
|
8564
|
+
ListItem,
|
|
8565
|
+
{
|
|
8566
|
+
p: 4,
|
|
8567
|
+
bg: isDark ? "#1f1f1e" : "white",
|
|
8568
|
+
borderRadius: "xl",
|
|
8569
|
+
cursor: isCurrentDomain ? "default" : "pointer",
|
|
8570
|
+
opacity: isCurrentDomain ? 0.7 : 1,
|
|
8571
|
+
border: `1px solid ${isDark ? "#2d2d2d" : "#eaeaea"}`,
|
|
8572
|
+
_hover: {
|
|
8573
|
+
bg: isCurrentDomain ? isDark ? "#1f1f1e" : "white" : isDark ? "#252525" : "gray.50",
|
|
8574
|
+
borderColor: isDark ? "#3d3d3d" : "#dedede"
|
|
8575
|
+
},
|
|
8576
|
+
onClick: () => !isCurrentDomain && onDomainSelect(domain.name),
|
|
8577
|
+
transition: "all 0.2s",
|
|
8578
|
+
children: /* @__PURE__ */ jsxs(HStack, { spacing: 3, align: "center", children: [
|
|
8579
|
+
/* @__PURE__ */ jsx(
|
|
8580
|
+
AccountAvatar,
|
|
8581
|
+
{
|
|
8582
|
+
props: {
|
|
8583
|
+
width: "40px",
|
|
8584
|
+
height: "40px",
|
|
8585
|
+
src: metadata.image,
|
|
8586
|
+
alt: domain.name
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
),
|
|
8590
|
+
/* @__PURE__ */ jsxs(
|
|
8591
|
+
VStack,
|
|
8592
|
+
{
|
|
8593
|
+
align: "start",
|
|
8594
|
+
spacing: 0,
|
|
8595
|
+
flex: 1,
|
|
8596
|
+
children: [
|
|
8597
|
+
/* @__PURE__ */ jsx(
|
|
8598
|
+
Text,
|
|
8599
|
+
{
|
|
8600
|
+
color: isDark ? "whiteAlpha.900" : "gray.700",
|
|
8601
|
+
fontSize: "md",
|
|
8602
|
+
fontWeight: "500",
|
|
8603
|
+
children: domain.name
|
|
8604
|
+
}
|
|
8605
|
+
),
|
|
8606
|
+
isCurrentDomain && /* @__PURE__ */ jsx(
|
|
8607
|
+
Text,
|
|
8608
|
+
{
|
|
8609
|
+
fontSize: "sm",
|
|
8610
|
+
color: isDark ? "whiteAlpha.600" : "gray.500",
|
|
8611
|
+
children: t(
|
|
8612
|
+
"Current domain"
|
|
8613
|
+
)
|
|
8614
|
+
}
|
|
8615
|
+
)
|
|
8616
|
+
]
|
|
8617
|
+
}
|
|
8618
|
+
),
|
|
8619
|
+
isCurrentDomain && /* @__PURE__ */ jsx(
|
|
8620
|
+
Tag,
|
|
8621
|
+
{
|
|
8622
|
+
size: "sm",
|
|
8623
|
+
bg: isDark ? "whiteAlpha.200" : "gray.100",
|
|
8624
|
+
color: isDark ? "whiteAlpha.800" : "gray.600",
|
|
8625
|
+
px: 3,
|
|
8626
|
+
py: 1,
|
|
8627
|
+
borderRadius: "full",
|
|
8628
|
+
children: t("Current")
|
|
8629
|
+
}
|
|
8630
|
+
)
|
|
8631
|
+
] })
|
|
8632
|
+
},
|
|
8633
|
+
domain.name
|
|
8634
|
+
);
|
|
8635
|
+
}) }) })
|
|
8636
|
+
] }) }) });
|
|
8637
|
+
};
|
|
8388
8638
|
var ChooseNameSearchContent = ({
|
|
8389
8639
|
name: initialName,
|
|
8390
8640
|
setCurrentContent
|
|
@@ -8495,104 +8745,69 @@ var ChooseNameSearchContent = ({
|
|
|
8495
8745
|
),
|
|
8496
8746
|
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
8497
8747
|
] }),
|
|
8498
|
-
/* @__PURE__ */
|
|
8499
|
-
|
|
8748
|
+
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 4, align: "stretch", children: [
|
|
8749
|
+
/* @__PURE__ */ jsx(
|
|
8750
|
+
ExistingDomainsList,
|
|
8751
|
+
{
|
|
8752
|
+
domains: allUserDomains,
|
|
8753
|
+
onDomainSelect: handleDomainSelect,
|
|
8754
|
+
isLoading: isLoadingOwnedDomains
|
|
8755
|
+
}
|
|
8756
|
+
),
|
|
8757
|
+
/* @__PURE__ */ jsxs(InputGroup, { size: "lg", children: [
|
|
8500
8758
|
/* @__PURE__ */ jsx(
|
|
8501
|
-
|
|
8759
|
+
Input,
|
|
8502
8760
|
{
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8761
|
+
placeholder: t("Enter your name"),
|
|
8762
|
+
value: name,
|
|
8763
|
+
onChange: (e) => {
|
|
8764
|
+
setName(e.target.value);
|
|
8765
|
+
if (!hasInteracted) setHasInteracted(true);
|
|
8766
|
+
},
|
|
8767
|
+
paddingRight: "120px",
|
|
8768
|
+
fontSize: "lg",
|
|
8769
|
+
height: "60px",
|
|
8770
|
+
bg: isDark ? "#1a1a1a" : "white",
|
|
8771
|
+
border: `1px solid ${isDark ? "#ffffff29" : "#ebebeb"}`,
|
|
8772
|
+
_hover: {
|
|
8773
|
+
border: `1px solid ${isDark ? "#ffffff40" : "#e0e0e0"}`
|
|
8774
|
+
},
|
|
8775
|
+
_focus: {
|
|
8776
|
+
border: `1px solid ${isDark ? "#ffffff60" : "#d0d0d0"}`,
|
|
8777
|
+
boxShadow: "none"
|
|
8778
|
+
},
|
|
8779
|
+
isInvalid: !!error
|
|
8507
8780
|
}
|
|
8508
8781
|
),
|
|
8509
|
-
/* @__PURE__ */ jsx(
|
|
8510
|
-
|
|
8511
|
-
return /* @__PURE__ */ jsx(
|
|
8512
|
-
ListItem,
|
|
8513
|
-
{
|
|
8514
|
-
p: 3,
|
|
8515
|
-
bg: isDark ? "#1a1a1a" : "gray.50",
|
|
8516
|
-
borderRadius: "md",
|
|
8517
|
-
cursor: isCurrentDomain ? "default" : "pointer",
|
|
8518
|
-
opacity: isCurrentDomain ? 0.7 : 1,
|
|
8519
|
-
_hover: {
|
|
8520
|
-
bg: isCurrentDomain ? isDark ? "#1a1a1a" : "gray.50" : isDark ? "#252525" : "gray.100"
|
|
8521
|
-
},
|
|
8522
|
-
onClick: () => !isCurrentDomain && handleDomainSelect(domain.name),
|
|
8523
|
-
children: /* @__PURE__ */ jsxs(HStack, { justify: "space-between", children: [
|
|
8524
|
-
/* @__PURE__ */ jsx(Text, { children: domain.name }),
|
|
8525
|
-
isCurrentDomain && /* @__PURE__ */ jsx(
|
|
8526
|
-
Tag,
|
|
8527
|
-
{
|
|
8528
|
-
size: "sm",
|
|
8529
|
-
colorScheme: "green",
|
|
8530
|
-
variant: "subtle",
|
|
8531
|
-
children: t("Current")
|
|
8532
|
-
}
|
|
8533
|
-
)
|
|
8534
|
-
] })
|
|
8535
|
-
},
|
|
8536
|
-
domain.name
|
|
8537
|
-
);
|
|
8538
|
-
}) })
|
|
8539
|
-
] }) : null,
|
|
8540
|
-
/* @__PURE__ */ jsxs(VStack, { spacing: 4, align: "stretch", children: [
|
|
8541
|
-
/* @__PURE__ */ jsxs(InputGroup, { size: "lg", children: [
|
|
8542
|
-
/* @__PURE__ */ jsx(
|
|
8543
|
-
Input,
|
|
8544
|
-
{
|
|
8545
|
-
placeholder: t("Enter your name"),
|
|
8546
|
-
value: name,
|
|
8547
|
-
onChange: (e) => {
|
|
8548
|
-
setName(e.target.value);
|
|
8549
|
-
if (!hasInteracted) setHasInteracted(true);
|
|
8550
|
-
},
|
|
8551
|
-
paddingRight: "120px",
|
|
8552
|
-
fontSize: "lg",
|
|
8553
|
-
height: "60px",
|
|
8554
|
-
bg: isDark ? "#1a1a1a" : "white",
|
|
8555
|
-
border: `1px solid ${isDark ? "#ffffff29" : "#ebebeb"}`,
|
|
8556
|
-
_hover: {
|
|
8557
|
-
border: `1px solid ${isDark ? "#ffffff40" : "#e0e0e0"}`
|
|
8558
|
-
},
|
|
8559
|
-
_focus: {
|
|
8560
|
-
border: `1px solid ${isDark ? "#ffffff60" : "#d0d0d0"}`,
|
|
8561
|
-
boxShadow: "none"
|
|
8562
|
-
},
|
|
8563
|
-
isInvalid: !!error
|
|
8564
|
-
}
|
|
8565
|
-
),
|
|
8566
|
-
/* @__PURE__ */ jsx(
|
|
8567
|
-
InputRightElement,
|
|
8568
|
-
{
|
|
8569
|
-
width: "auto",
|
|
8570
|
-
paddingRight: "12px",
|
|
8571
|
-
h: "full",
|
|
8572
|
-
children: /* @__PURE__ */ jsx(
|
|
8573
|
-
Box,
|
|
8574
|
-
{
|
|
8575
|
-
mr: 4,
|
|
8576
|
-
fontSize: "sm",
|
|
8577
|
-
color: isDark ? "whiteAlpha.800" : "gray.500",
|
|
8578
|
-
children: ".veworld.vet"
|
|
8579
|
-
}
|
|
8580
|
-
)
|
|
8581
|
-
}
|
|
8582
|
-
)
|
|
8583
|
-
] }),
|
|
8584
|
-
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "red.500", fontSize: "sm", children: error }),
|
|
8585
|
-
!error && hasInteracted && name.length >= 3 && /* @__PURE__ */ jsx(
|
|
8586
|
-
Text,
|
|
8782
|
+
/* @__PURE__ */ jsx(
|
|
8783
|
+
InputRightElement,
|
|
8587
8784
|
{
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
children:
|
|
8785
|
+
width: "auto",
|
|
8786
|
+
paddingRight: "12px",
|
|
8787
|
+
h: "full",
|
|
8788
|
+
children: /* @__PURE__ */ jsx(
|
|
8789
|
+
Box,
|
|
8790
|
+
{
|
|
8791
|
+
mr: 4,
|
|
8792
|
+
fontSize: "sm",
|
|
8793
|
+
color: isDark ? "whiteAlpha.800" : "gray.500",
|
|
8794
|
+
children: ".veworld.vet"
|
|
8795
|
+
}
|
|
8796
|
+
)
|
|
8592
8797
|
}
|
|
8593
8798
|
)
|
|
8594
|
-
] })
|
|
8595
|
-
|
|
8799
|
+
] }),
|
|
8800
|
+
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "red.500", fontSize: "sm", children: error }),
|
|
8801
|
+
!error && hasInteracted && name.length >= 3 && /* @__PURE__ */ jsx(
|
|
8802
|
+
Text,
|
|
8803
|
+
{
|
|
8804
|
+
fontSize: "sm",
|
|
8805
|
+
color: isAvailable ? "green.500" : "red.500",
|
|
8806
|
+
fontWeight: "500",
|
|
8807
|
+
children: isOwnDomain ? t("YOU OWN THIS") : isAvailable ? t("AVAILABLE") : t("UNAVAILABLE")
|
|
8808
|
+
}
|
|
8809
|
+
)
|
|
8810
|
+
] }) }),
|
|
8596
8811
|
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx(
|
|
8597
8812
|
Button,
|
|
8598
8813
|
{
|
|
@@ -9434,6 +9649,7 @@ var en_default = {
|
|
|
9434
9649
|
"Continue with Google": "Continue with Google",
|
|
9435
9650
|
"Copy your address or scan this QR code": "Copy your address or scan this QR code",
|
|
9436
9651
|
Current: "Current",
|
|
9652
|
+
"Current domain": "Current domain",
|
|
9437
9653
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.",
|
|
9438
9654
|
"Customize Account": "Customize Account",
|
|
9439
9655
|
"Customize account": "Customize account",
|
|
@@ -9532,6 +9748,7 @@ var en_default = {
|
|
|
9532
9748
|
Passkey: "Passkey",
|
|
9533
9749
|
"Phone Number": "Phone Number",
|
|
9534
9750
|
"Please approve the request in the connection request window...": "Please approve the request in the connection request window...",
|
|
9751
|
+
"Please be sure to keep this wallet safe and backed up.": "Please be sure to keep this wallet safe and backed up.",
|
|
9535
9752
|
"Please check {{email}} for an email from privy.io and enter your code below.": "Please check {{email}} for an email from privy.io and enter your code below.",
|
|
9536
9753
|
"Please click 'Try again' to open the login window.": "Please click 'Try again' to open the login window.",
|
|
9537
9754
|
"Please complete the passkey authentication...": "Please complete the passkey authentication...",
|
|
@@ -9596,6 +9813,7 @@ var en_default = {
|
|
|
9596
9813
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.",
|
|
9597
9814
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.",
|
|
9598
9815
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.",
|
|
9816
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "This is your main wallet, created by {{element}} and secured by Privy.",
|
|
9599
9817
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.",
|
|
9600
9818
|
"This may take a few seconds. You can close this window and check the status later.": "This may take a few seconds. You can close this window and check the status later.",
|
|
9601
9819
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.",
|
|
@@ -9684,8 +9902,8 @@ var en_default = {
|
|
|
9684
9902
|
"your@email.com": "your@email.com",
|
|
9685
9903
|
"{{element}} website": "{{element}} website",
|
|
9686
9904
|
"{{name}}": "{{name}}",
|
|
9687
|
-
"
|
|
9688
|
-
"
|
|
9905
|
+
"Sending to OceanX or other exchanges may result in loss of funds.": "Sending to OceanX or other exchanges may result in loss of funds.",
|
|
9906
|
+
"Send the tokens to your VeWorld wallet first.": "Send the tokens to your VeWorld wallet first."
|
|
9689
9907
|
};
|
|
9690
9908
|
|
|
9691
9909
|
// src/languages/de.json
|
|
@@ -9774,6 +9992,7 @@ var de_default = {
|
|
|
9774
9992
|
"Continue with Google": "Mit Google fortfahren",
|
|
9775
9993
|
"Copy your address or scan this QR code": "Kopieren Sie Ihre Adresse oder scannen Sie diesen QR-Code",
|
|
9776
9994
|
Current: "Aktuell",
|
|
9995
|
+
"Current domain": "Aktuelle Domain",
|
|
9777
9996
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "Derzeit werden Multiclauses-Transaktionen f\xFCr Smart-Konten nicht unterst\xFCtzt. Ihre Multiclause-Transaktion wird in mehrere Transaktionen aufgeteilt.",
|
|
9778
9997
|
"Customize Account": "Konto anpassen",
|
|
9779
9998
|
"Customize account": "Konto anpassen",
|
|
@@ -9872,6 +10091,7 @@ var de_default = {
|
|
|
9872
10091
|
Passkey: "Passwort",
|
|
9873
10092
|
"Phone Number": "Telefonnummer",
|
|
9874
10093
|
"Please approve the request in the connection request window...": "Bitte genehmigen Sie die Anfrage im Verbindungsanfragefenster...",
|
|
10094
|
+
"Please be sure to keep this wallet safe and backed up.": "Bitte stellen Sie sicher, dass diese Brieftasche sicher und gesichert aufbewahrt wird.",
|
|
9875
10095
|
"Please check {{email}} for an email from privy.io and enter your code below.": "Bitte \xFCberpr\xFCfen Sie {{email}} auf eine E-Mail von privy.io und geben Sie Ihren Code unten ein.",
|
|
9876
10096
|
"Please click 'Try again' to open the login window.": "Bitte klicken Sie auf 'Erneut versuchen', um das Anmeldefenster zu \xF6ffnen.",
|
|
9877
10097
|
"Please complete the passkey authentication...": "Bitte schlie\xDFen Sie die Passworthauthentifizierung ab...",
|
|
@@ -9936,6 +10156,7 @@ var de_default = {
|
|
|
9936
10156
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "Dies ist Ihr Hauptwallet und Ihre Identit\xE4t. Bitte stellen Sie sicher, dass es sicher und gesichert ist. Gehen Sie zur {{element}} App oder Erweiterung, um Ihr Wallet und Ihre Sicherheitseinstellungen zu verwalten.",
|
|
9937
10157
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "Dies ist Ihr Hauptwallet und Ihre Identit\xE4t. Bitte achten Sie darauf, es sicher zu verwahren und ein Backup zu erstellen. Gehen Sie auf die {{element}} Website, um Ihre Anmeldemethoden und Sicherheitseinstellungen zu verwalten.",
|
|
9938
10158
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "Dies ist Ihre Hauptgeldb\xF6rse und Identit\xE4t. Bitte achten Sie darauf, sie sicher und abgesichert zu halten. Besuchen Sie die Website von {{element}}, um Ihre Geldb\xF6rse und Sicherheitseinstellungen zu verwalten.",
|
|
10159
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "Dies ist Ihre Hauptbrieftasche, erstellt von {{element}} und gesichert durch Privy.",
|
|
9939
10160
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "Dies ist Ihr Haupt-Wallet, erstellt von {{element}} und gesichert von Privy. Dieses Wallet ist der Besitzer Ihres Smart-Accounts, der als Ihre Identit\xE4t und als Tor f\xFCr Ihre Blockchain-Interaktionen verwendet wird. Bitte stellen Sie sicher, dass es sicher und gesichert ist.",
|
|
9940
10161
|
"This may take a few seconds. You can close this window and check the status later.": "Dies kann einige Sekunden dauern. Sie k\xF6nnen dieses Fenster schlie\xDFen und den Status sp\xE4ter \xFCberpr\xFCfen.",
|
|
9941
10162
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "Dieses Wallet ist der Besitzer Ihres Smart-Accounts, der als Ihre Identit\xE4t und als Tor f\xFCr Ihre Blockchain-Interaktionen verwendet wird.",
|
|
@@ -10112,6 +10333,7 @@ var it_default = {
|
|
|
10112
10333
|
"Continue with Google": "Continua con Google",
|
|
10113
10334
|
"Copy your address or scan this QR code": "Copia il tuo indirizzo o scansiona questo codice QR",
|
|
10114
10335
|
Current: "Attuale",
|
|
10336
|
+
"Current domain": "Dominio attuale",
|
|
10115
10337
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "Attualmente, le transazioni multiclausole non sono supportate per gli account smart. La tua transazione multiclausola sar\xE0 divisa in pi\xF9 transazioni.",
|
|
10116
10338
|
"Customize Account": "Personalizza Account",
|
|
10117
10339
|
"Customize account": "Personalizza account",
|
|
@@ -10210,6 +10432,7 @@ var it_default = {
|
|
|
10210
10432
|
Passkey: "Chiave di accesso",
|
|
10211
10433
|
"Phone Number": "Numero di telefono",
|
|
10212
10434
|
"Please approve the request in the connection request window...": "Si prega di approvare la richiesta nella finestra della richiesta di connessione...",
|
|
10435
|
+
"Please be sure to keep this wallet safe and backed up.": "Si prega di assicurarsi che questo portafoglio sia al sicuro e con un backup.",
|
|
10213
10436
|
"Please check {{email}} for an email from privy.io and enter your code below.": "Controlla {{email}} per un'email da privy.io e inserisci il tuo codice qui sotto.",
|
|
10214
10437
|
"Please click 'Try again' to open the login window.": "Fai clic su 'Riprova' per aprire la finestra di accesso.",
|
|
10215
10438
|
"Please complete the passkey authentication...": "Si prega di completare l'autenticazione con chiave di accesso...",
|
|
@@ -10274,6 +10497,7 @@ var it_default = {
|
|
|
10274
10497
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "Questo \xE8 il tuo portafoglio principale e la tua identit\xE0. Assicurati di tenerlo al sicuro e di eseguire il backup. Vai all'app o all'estensione {{element}} per gestire il tuo portafoglio e le impostazioni di sicurezza.",
|
|
10275
10498
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "Questo \xE8 il tuo portafoglio principale e la tua identit\xE0. Assicurati di tenerlo al sicuro e di fare un backup. Vai al sito web {{element}} per gestire i metodi di accesso e le impostazioni di sicurezza.",
|
|
10276
10499
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "Questo \xE8 il tuo portafoglio e identit\xE0 principale. Assicurati di tenerlo al sicuro e di averne una copia di backup. Vai al sito web di {{element}} per gestire le impostazioni del tuo portafoglio e della sicurezza.",
|
|
10500
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "Questo \xE8 il tuo portafoglio principale, creato da {{element}} e protetto da Privy.",
|
|
10277
10501
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "Questo \xE8 il tuo portafoglio principale, creato da {{element}} e protetto da Privy. Questo portafoglio \xE8 il proprietario del tuo account smart, che \xE8 utilizzato come la tua identit\xE0 e come un gateway per le tue interazioni con la blockchain. Assicurati di tenerlo al sicuro e di eseguirne il backup.",
|
|
10278
10502
|
"This may take a few seconds. You can close this window and check the status later.": "Potrebbe richiedere alcuni secondi. Puoi chiudere questa finestra e controllare lo stato pi\xF9 tardi.",
|
|
10279
10503
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "Questo portafoglio \xE8 il proprietario del tuo account smart, che \xE8 utilizzato come la tua identit\xE0 e come un gateway per le tue interazioni con la blockchain.",
|
|
@@ -10450,6 +10674,7 @@ var fr_default = {
|
|
|
10450
10674
|
"Continue with Google": "Continuer avec Google",
|
|
10451
10675
|
"Copy your address or scan this QR code": "Copiez votre adresse ou scannez ce code QR",
|
|
10452
10676
|
Current: "Actuel",
|
|
10677
|
+
"Current domain": "Domaine actuel",
|
|
10453
10678
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "Actuellement, les transactions \xE0 clauses multiples ne sont pas prises en charge pour les comptes intelligents. Votre transaction \xE0 clauses multiples sera divis\xE9e en plusieurs transactions.",
|
|
10454
10679
|
"Customize Account": "Personnaliser le compte",
|
|
10455
10680
|
"Customize account": "Personnaliser le compte",
|
|
@@ -10548,6 +10773,7 @@ var fr_default = {
|
|
|
10548
10773
|
Passkey: "Cl\xE9 de passe",
|
|
10549
10774
|
"Phone Number": "Num\xE9ro de t\xE9l\xE9phone",
|
|
10550
10775
|
"Please approve the request in the connection request window...": "Veuillez approuver la demande dans la fen\xEAtre de demande de connexion...",
|
|
10776
|
+
"Please be sure to keep this wallet safe and backed up.": "Veuillez vous assurer que ce portefeuille est en s\xE9curit\xE9 et sauvegard\xE9.",
|
|
10551
10777
|
"Please check {{email}} for an email from privy.io and enter your code below.": "Veuillez v\xE9rifier {{email}} pour un email de privy.io et entrez votre code ci-dessous.",
|
|
10552
10778
|
"Please click 'Try again' to open the login window.": "Veuillez cliquer sur 'R\xE9essayer' pour ouvrir la fen\xEAtre de connexion.",
|
|
10553
10779
|
"Please complete the passkey authentication...": "Veuillez compl\xE9ter l'authentification par cl\xE9 de passe...",
|
|
@@ -10612,6 +10838,7 @@ var fr_default = {
|
|
|
10612
10838
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "Ceci est votre portefeuille principal et votre identit\xE9. Veuillez vous assurer de le garder en s\xE9curit\xE9 et sauvegard\xE9. Allez dans l'application ou l'extension {{element}} pour g\xE9rer votre portefeuille et vos param\xE8tres de s\xE9curit\xE9.",
|
|
10613
10839
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "Ceci est votre portefeuille et identit\xE9 principaux. Veuillez vous assurer de les garder en s\xE9curit\xE9 et sauvegard\xE9s. Allez sur le site {{element}} pour g\xE9rer vos m\xE9thodes de connexion et vos param\xE8tres de s\xE9curit\xE9.",
|
|
10614
10840
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "Ceci est votre portefeuille principal et votre identit\xE9. Veuillez vous assurer de le garder en s\xE9curit\xE9 et sauvegard\xE9. Allez sur le site {{element}} pour g\xE9rer votre portefeuille et vos param\xE8tres de s\xE9curit\xE9.",
|
|
10841
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "Ceci est votre portefeuille principal, cr\xE9\xE9 par {{element}} et s\xE9curis\xE9 par Privy.",
|
|
10615
10842
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "Ceci est votre portefeuille principal, cr\xE9\xE9 par {{element}} et s\xE9curis\xE9 par Privy. Ce portefeuille est le propri\xE9taire de votre compte intelligent, qui est utilis\xE9 comme votre identit\xE9 et comme une passerelle pour vos interactions blockchain. Veuillez vous assurer de le garder en s\xE9curit\xE9 et sauvegard\xE9.",
|
|
10616
10843
|
"This may take a few seconds. You can close this window and check the status later.": "Cela peut prendre quelques secondes. Vous pouvez fermer cette fen\xEAtre et v\xE9rifier le statut plus tard.",
|
|
10617
10844
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "Ce portefeuille est le propri\xE9taire de votre compte intelligent, qui est utilis\xE9 comme votre identit\xE9 et comme une passerelle pour vos interactions blockchain.",
|
|
@@ -10788,6 +11015,7 @@ var es_default = {
|
|
|
10788
11015
|
"Continue with Google": "Continuar con Google",
|
|
10789
11016
|
"Copy your address or scan this QR code": "Copia tu direcci\xF3n o escanea este c\xF3digo QR",
|
|
10790
11017
|
Current: "Actual",
|
|
11018
|
+
"Current domain": "Dominio actual",
|
|
10791
11019
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "Actualmente, las transacciones con m\xFAltiples cl\xE1usulas no son compatibles con las cuentas inteligentes. Su transacci\xF3n con m\xFAltiples cl\xE1usulas se dividir\xE1 en varias transacciones.",
|
|
10792
11020
|
"Customize Account": "Personalizar Cuenta",
|
|
10793
11021
|
"Customize account": "Personalizar cuenta",
|
|
@@ -10886,6 +11114,7 @@ var es_default = {
|
|
|
10886
11114
|
Passkey: "Clave de acceso",
|
|
10887
11115
|
"Phone Number": "N\xFAmero de tel\xE9fono",
|
|
10888
11116
|
"Please approve the request in the connection request window...": "Por favor, aprueba la solicitud en la ventana de solicitud de conexi\xF3n...",
|
|
11117
|
+
"Please be sure to keep this wallet safe and backed up.": "Por favor, aseg\xFArese de mantener esta billetera segura y respaldada.",
|
|
10889
11118
|
"Please check {{email}} for an email from privy.io and enter your code below.": "Por favor, revisa {{email}} para un correo electr\xF3nico de privy.io e ingresa tu c\xF3digo a continuaci\xF3n.",
|
|
10890
11119
|
"Please click 'Try again' to open the login window.": "Por favor, haz clic en 'Intentar de nuevo' para abrir la ventana de inicio de sesi\xF3n.",
|
|
10891
11120
|
"Please complete the passkey authentication...": "Por favor, completa la autenticaci\xF3n de clave de acceso...",
|
|
@@ -10950,6 +11179,7 @@ var es_default = {
|
|
|
10950
11179
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "Este es tu monedero principal e identidad. Aseg\xFArate de mantenerlo seguro y respaldado. Ve a la aplicaci\xF3n o extensi\xF3n de {{element}} para gestionar tu monedero y la configuraci\xF3n de seguridad.",
|
|
10951
11180
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "Esta es tu billetera e identidad principal. Aseg\xFArate de mantenerla segura y respaldada. Ve al sitio web de {{element}} para gestionar tus m\xE9todos de inicio de sesi\xF3n y configuraciones de seguridad.",
|
|
10952
11181
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "Esta es su billetera principal e identidad. Aseg\xFArese de mantenerla segura y respaldada. Vaya al sitio web de {{element}} para administrar su billetera y la configuraci\xF3n de seguridad.",
|
|
11182
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "Esta es su billetera principal, creada por {{element}} y asegurada por Privy.",
|
|
10953
11183
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "Esta es tu billetera principal, creada por {{element}} y asegurada por Privy. Esta billetera es la propietaria de tu cuenta inteligente, la cual se utiliza como tu identidad y como puerta de entrada para tus interacciones con la blockchain. Por favor, aseg\xFArate de mantenerla segura y respaldada.",
|
|
10954
11184
|
"This may take a few seconds. You can close this window and check the status later.": "Esto puede tardar unos segundos. Puede cerrar esta ventana y comprobar el estado m\xE1s tarde.",
|
|
10955
11185
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "Esta billetera es la propietaria de tu cuenta inteligente, la cual se utiliza como tu identidad y como puerta de entrada para tus interacciones con la blockchain.",
|
|
@@ -11126,6 +11356,7 @@ var zh_default = {
|
|
|
11126
11356
|
"Continue with Google": "\u901A\u8FC7Google\u7EE7\u7EED",
|
|
11127
11357
|
"Copy your address or scan this QR code": "\u590D\u5236\u60A8\u7684\u5730\u5740\u6216\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801",
|
|
11128
11358
|
Current: "\u5F53\u524D",
|
|
11359
|
+
"Current domain": "\u5F53\u524D\u57DF\u540D",
|
|
11129
11360
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "\u5F53\u524D\uFF0C\u4E0D\u652F\u6301\u667A\u80FD\u8D26\u6237\u7684\u591A\u6761\u6B3E\u4EA4\u6613\u3002\u60A8\u7684\u591A\u6761\u6B3E\u4EA4\u6613\u5C06\u88AB\u62C6\u5206\u4E3A\u591A\u7B14\u4EA4\u6613\u3002",
|
|
11130
11361
|
"Customize Account": "\u81EA\u5B9A\u4E49\u5E10\u6237",
|
|
11131
11362
|
"Customize account": "\u81EA\u5B9A\u4E49\u5E10\u6237",
|
|
@@ -11224,6 +11455,7 @@ var zh_default = {
|
|
|
11224
11455
|
Passkey: "\u901A\u884C\u5BC6\u94A5",
|
|
11225
11456
|
"Phone Number": "\u7535\u8BDD\u53F7\u7801",
|
|
11226
11457
|
"Please approve the request in the connection request window...": "\u8BF7\u5728\u8FDE\u63A5\u8BF7\u6C42\u7A97\u53E3\u4E2D\u6279\u51C6\u8BF7\u6C42...",
|
|
11458
|
+
"Please be sure to keep this wallet safe and backed up.": "\u8BF7\u52A1\u5FC5\u4FDD\u8BC1\u6B64\u94B1\u5305\u7684\u5B89\u5168\u5E76\u8FDB\u884C\u5907\u4EFD\u3002",
|
|
11227
11459
|
"Please check {{email}} for an email from privy.io and enter your code below.": "\u8BF7\u67E5\u770B {{email}} \u662F\u5426\u6709\u6765\u81EA privy.io \u7684\u7535\u5B50\u90AE\u4EF6\uFF0C\u5E76\u5728\u4E0B\u65B9\u8F93\u5165\u60A8\u7684\u4EE3\u7801\u3002",
|
|
11228
11460
|
"Please click 'Try again' to open the login window.": "\u8BF7\u70B9\u51FB\u201C\u91CD\u8BD5\u201D\u4EE5\u6253\u5F00\u767B\u5F55\u7A97\u53E3\u3002",
|
|
11229
11461
|
"Please complete the passkey authentication...": "\u8BF7\u5B8C\u6210\u901A\u884C\u5BC6\u94A5\u8BA4\u8BC1...",
|
|
@@ -11288,6 +11520,7 @@ var zh_default = {
|
|
|
11288
11520
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "\u8FD9\u662F\u60A8\u7684\u4E3B\u8981\u94B1\u5305\u548C\u8EAB\u4EFD\u3002\u8BF7\u52A1\u5FC5\u59A5\u5584\u4FDD\u7BA1\u5E76\u5907\u4EFD\u3002\u8BF7\u524D\u5F80{{element}}\u5E94\u7528\u7A0B\u5E8F\u6216\u6269\u5C55\u7BA1\u7406\u60A8\u7684\u94B1\u5305\u548C\u5B89\u5168\u8BBE\u7F6E\u3002",
|
|
11289
11521
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "\u8FD9\u662F\u60A8\u7684\u4E3B\u94B1\u5305\u548C\u8EAB\u4EFD\u3002\u8BF7\u52A1\u5FC5\u786E\u4FDD\u5176\u5B89\u5168\u5E76\u5907\u4EFD\u3002\u524D\u5F80 {{element}} \u7F51\u7AD9\u7BA1\u7406\u60A8\u7684\u767B\u5F55\u65B9\u5F0F\u548C\u5B89\u5168\u8BBE\u7F6E\u3002",
|
|
11290
11522
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "\u8FD9\u662F\u60A8\u7684\u4E3B\u8981\u94B1\u5305\u548C\u8EAB\u4EFD\u3002\u8BF7\u786E\u4FDD\u5176\u5B89\u5168\u5E76\u8FDB\u884C\u5907\u4EFD\u3002\u8BBF\u95EE{{element}}\u7F51\u7AD9\u4EE5\u7BA1\u7406\u60A8\u7684\u94B1\u5305\u548C\u5B89\u5168\u8BBE\u7F6E\u3002",
|
|
11523
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "\u8FD9\u662F\u60A8\u7684\u4E3B\u94B1\u5305\uFF0C\u7531{{element}}\u521B\u5EFA\uFF0C\u5E76\u7531Privy\u4FDD\u62A4\u3002",
|
|
11291
11524
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "\u8FD9\u662F\u60A8\u7684\u4E3B\u94B1\u5305\uFF0C\u7531{{element}}\u521B\u5EFA\u5E76\u901A\u8FC7Privy\u4FDD\u62A4\u3002\u6B64\u94B1\u5305\u662F\u60A8\u7684\u667A\u80FD\u8D26\u6237\u6240\u6709\u8005\uFF0C\u7528\u4F5C\u60A8\u7684\u8EAB\u4EFD\u6807\u8BC6\u4EE5\u53CA\u533A\u5757\u94FE\u4EA4\u4E92\u7684\u7F51\u5173\u3002\u8BF7\u52A1\u5FC5\u786E\u4FDD\u94B1\u5305\u7684\u5B89\u5168\u6027\u5E76\u8FDB\u884C\u5907\u4EFD\u3002",
|
|
11292
11525
|
"This may take a few seconds. You can close this window and check the status later.": "\u8FD9\u53EF\u80FD\u9700\u8981\u51E0\u79D2\u949F\u3002\u60A8\u53EF\u4EE5\u5173\u95ED\u6B64\u7A97\u53E3\uFF0C\u7A0D\u540E\u67E5\u770B\u72B6\u6001\u3002",
|
|
11293
11526
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "\u6B64\u94B1\u5305\u662F\u60A8\u7684\u667A\u80FD\u8D26\u6237\u6240\u6709\u8005\uFF0C\u7528\u4F5C\u60A8\u7684\u8EAB\u4EFD\u6807\u8BC6\u4EE5\u53CA\u533A\u5757\u94FE\u4EA4\u4E92\u7684\u7F51\u5173\u3002",
|
|
@@ -11464,6 +11697,7 @@ var ja_default = {
|
|
|
11464
11697
|
"Continue with Google": "Google\u3067\u7D9A\u884C",
|
|
11465
11698
|
"Copy your address or scan this QR code": "\u30A2\u30C9\u30EC\u30B9\u3092\u30B3\u30D4\u30FC\u3059\u308B\u304B\u3001\u3053\u306EQR\u30B3\u30FC\u30C9\u3092\u30B9\u30AD\u30E3\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
11466
11699
|
Current: "\u73FE\u5728",
|
|
11700
|
+
"Current domain": "\u73FE\u5728\u306E\u30C9\u30E1\u30A4\u30F3",
|
|
11467
11701
|
"Currently, multiclause transactions are not supported for smart accounts. Your multiclause transaction will be split into multiple transactions.": "\u73FE\u5728\u3001\u30B9\u30DE\u30FC\u30C8\u30A2\u30AB\u30A6\u30F3\u30C8\u3067\u306F\u8907\u6570\u6761\u9805\u306E\u30C8\u30E9\u30F3\u30B6\u30AF\u30B7\u30E7\u30F3\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u3042\u306A\u305F\u306E\u8907\u6570\u6761\u9805\u306E\u30C8\u30E9\u30F3\u30B6\u30AF\u30B7\u30E7\u30F3\u306F\u8907\u6570\u306E\u30C8\u30E9\u30F3\u30B6\u30AF\u30B7\u30E7\u30F3\u306B\u5206\u5272\u3055\u308C\u307E\u3059\u3002",
|
|
11468
11702
|
"Customize Account": "\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",
|
|
11469
11703
|
"Customize account": "\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",
|
|
@@ -11562,6 +11796,7 @@ var ja_default = {
|
|
|
11562
11796
|
Passkey: "\u30D1\u30B9\u30AD\u30FC",
|
|
11563
11797
|
"Phone Number": "\u96FB\u8A71\u756A\u53F7",
|
|
11564
11798
|
"Please approve the request in the connection request window...": "\u63A5\u7D9A\u30EA\u30AF\u30A8\u30B9\u30C8\u30A6\u30A3\u30F3\u30C9\u30A6\u3067\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u627F\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044...",
|
|
11799
|
+
"Please be sure to keep this wallet safe and backed up.": "\u3053\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u5B89\u5168\u306B\u4FDD\u7BA1\u3057\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u53D6\u308B\u3088\u3046\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11565
11800
|
"Please check {{email}} for an email from privy.io and enter your code below.": "{{email}} \u306B privy.io \u304B\u3089\u306E\u30E1\u30FC\u30EB\u304C\u5C4A\u3044\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3001\u4EE5\u4E0B\u306B\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11566
11801
|
"Please click 'Try again' to open the login window.": "\u300C\u518D\u8A66\u884C\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30ED\u30B0\u30A4\u30F3\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11567
11802
|
"Please complete the passkey authentication...": "\u30D1\u30B9\u30AD\u30FC\u8A8D\u8A3C\u3092\u5B8C\u4E86\u3057\u3066\u304F\u3060\u3055\u3044...",
|
|
@@ -11626,6 +11861,7 @@ var ja_default = {
|
|
|
11626
11861
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} app or extension to manage your wallet and security settings.": "\u3053\u308C\u306F\u3042\u306A\u305F\u306E\u30E1\u30A4\u30F3\u30A6\u30A9\u30EC\u30C3\u30C8\u3068\u30A2\u30A4\u30C7\u30F3\u30C6\u30A3\u30C6\u30A3\u3067\u3059\u3002\u5B89\u5168\u306B\u4FDD\u7BA1\u3057\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u53D6\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30A6\u30A9\u30EC\u30C3\u30C8\u3068\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u7BA1\u7406\u3059\u308B\u306B\u306F\u3001{{element}} \u30A2\u30D7\u30EA\u307E\u305F\u306F\u62E1\u5F35\u6A5F\u80FD\u306B\u79FB\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11627
11862
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your login methods and security settings.": "\u3053\u308C\u304C\u3042\u306A\u305F\u306E\u4E3B\u8981\u306A\u30A6\u30A9\u30EC\u30C3\u30C8\u3068ID\u3067\u3059\u3002\u5FC5\u305A\u5B89\u5168\u306B\u4FDD\u7BA1\u3057\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30ED\u30B0\u30A4\u30F3\u65B9\u6CD5\u3068\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u7BA1\u7406\u3059\u308B\u305F\u3081\u306B{{element}}\u306E\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u306B\u79FB\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11628
11863
|
"This is your main wallet and identity. Please be sure to keep it safe and backed up. Go to {{element}} website to manage your wallet and security settings.": "\u3053\u308C\u304C\u3042\u306A\u305F\u306E\u30E1\u30A4\u30F3\u30A6\u30A9\u30EC\u30C3\u30C8\u3068\u30A2\u30A4\u30C7\u30F3\u30C6\u30A3\u30C6\u30A3\u3067\u3059\u3002\u5B89\u5168\u306B\u4FDD\u7BA1\u3057\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u53D6\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30A6\u30A9\u30EC\u30C3\u30C8\u3068\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u3092\u7BA1\u7406\u3059\u308B\u306B\u306F{{element}}\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u306B\u30A2\u30AF\u30BB\u30B9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11864
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "\u3053\u308C\u306F\u3001{{element}}\u306B\u3088\u3063\u3066\u4F5C\u6210\u3055\u308C\u3001Privy\u306B\u3088\u3063\u3066\u4FDD\u8B77\u3055\u308C\u305F\u3042\u306A\u305F\u306E\u30E1\u30A4\u30F3\u30A6\u30A9\u30EC\u30C3\u30C8\u3067\u3059\u3002",
|
|
11629
11865
|
"This is your main wallet, created by {{element}} and secured by Privy. This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions. Please be sure to keep it safe and backed up.": "{{element}}\u306B\u3088\u3063\u3066\u4F5C\u6210\u3055\u308C\u3001Privy\u306B\u3088\u3063\u3066\u4FDD\u8B77\u3055\u308C\u305F\u30E1\u30A4\u30F3\u30A6\u30A9\u30EC\u30C3\u30C8\u3067\u3059\u3002\u3053\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306F\u3001\u30A2\u30A4\u30C7\u30F3\u30C6\u30A3\u30C6\u30A3\u3068\u3057\u3066\u4F7F\u7528\u3055\u308C\u308B\u30B9\u30DE\u30FC\u30C8\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u6240\u6709\u8005\u3067\u3042\u308A\u3001\u30D6\u30ED\u30C3\u30AF\u30C1\u30A7\u30FC\u30F3\u3068\u306E\u3084\u308A\u53D6\u308A\u306E\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002\u5B89\u5168\u306B\u4FDD\u7BA1\u3057\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u78BA\u5B9F\u306B\u53D6\u3063\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11630
11866
|
"This may take a few seconds. You can close this window and check the status later.": "\u6570\u79D2\u304B\u304B\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u306E\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u3066\u5F8C\u3067\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u78BA\u8A8D\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002",
|
|
11631
11867
|
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions.": "\u3053\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306F\u3001\u30A2\u30A4\u30C7\u30F3\u30C6\u30A3\u30C6\u30A3\u3068\u3057\u3066\u4F7F\u7528\u3055\u308C\u308B\u30B9\u30DE\u30FC\u30C8\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u6240\u6709\u8005\u3067\u3042\u308A\u3001\u30D6\u30ED\u30C3\u30AF\u30C1\u30A7\u30FC\u30F3\u3068\u306E\u3084\u308A\u53D6\u308A\u306E\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002",
|
|
@@ -13174,7 +13410,6 @@ var AccountModal = ({
|
|
|
13174
13410
|
);
|
|
13175
13411
|
};
|
|
13176
13412
|
var ConnectModal = ({ isOpen, onClose }) => {
|
|
13177
|
-
const { loginModalUI } = useVeChainKitConfig();
|
|
13178
13413
|
const [currentContent, setCurrentContent] = useState("main");
|
|
13179
13414
|
useEffect(() => {
|
|
13180
13415
|
if (isOpen) {
|
|
@@ -13188,8 +13423,7 @@ var ConnectModal = ({ isOpen, onClose }) => {
|
|
|
13188
13423
|
MainContent,
|
|
13189
13424
|
{
|
|
13190
13425
|
setCurrentContent,
|
|
13191
|
-
onClose
|
|
13192
|
-
variant: loginModalUI?.variant
|
|
13426
|
+
onClose
|
|
13193
13427
|
}
|
|
13194
13428
|
);
|
|
13195
13429
|
case "faq":
|
|
@@ -13347,13 +13581,10 @@ var ConnectedWallet = ({
|
|
|
13347
13581
|
const [isDesktop] = useMediaQuery("(min-width: 768px)");
|
|
13348
13582
|
return /* @__PURE__ */ jsx(Button, { ...buttonStyle, onClick: onOpen, p: "0px 13px", minH: "45px", children: /* @__PURE__ */ jsxs(HStack, { children: [
|
|
13349
13583
|
/* @__PURE__ */ jsx(
|
|
13350
|
-
|
|
13584
|
+
AccountAvatar,
|
|
13351
13585
|
{
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
width: 30,
|
|
13355
|
-
height: 30,
|
|
13356
|
-
borderRadius: "50%"
|
|
13586
|
+
wallet: account,
|
|
13587
|
+
props: { width: 30, height: 30 }
|
|
13357
13588
|
}
|
|
13358
13589
|
),
|
|
13359
13590
|
!isDesktop && /* @__PURE__ */ jsx(WalletDisplay, { variant: mobileVariant }),
|
|
@@ -13943,14 +14174,13 @@ var VeChainKitProvider = ({
|
|
|
13943
14174
|
feeDelegation,
|
|
13944
14175
|
dappKit,
|
|
13945
14176
|
loginModalUI = {
|
|
13946
|
-
variant: "vechain-and-wallet",
|
|
13947
14177
|
description: "Choose between social login through VeChain or by connecting your wallet."
|
|
13948
14178
|
},
|
|
14179
|
+
loginMethods,
|
|
13949
14180
|
darkMode = false,
|
|
13950
14181
|
i18n: i18nConfig,
|
|
13951
14182
|
language = "en",
|
|
13952
|
-
network
|
|
13953
|
-
privyEcosystemAppIDS = DEFAULT_PRIVY_ECOSYSTEM_APP_IDS
|
|
14183
|
+
network
|
|
13954
14184
|
}) => {
|
|
13955
14185
|
const [isConnectModalOpen, setIsConnectModalOpen] = useState(false);
|
|
13956
14186
|
const openConnectModal = useCallback(() => setIsConnectModalOpen(true), []);
|
|
@@ -13983,9 +14213,15 @@ var VeChainKitProvider = ({
|
|
|
13983
14213
|
[]
|
|
13984
14214
|
);
|
|
13985
14215
|
const [accountModalContent, setAccountModalContent] = useState("main");
|
|
13986
|
-
const
|
|
14216
|
+
const allowedEcosystemApps = useMemo(() => {
|
|
14217
|
+
const userEcosystemMethods = loginMethods?.find(
|
|
14218
|
+
(method35) => method35.method === "ecosystem"
|
|
14219
|
+
);
|
|
14220
|
+
return userEcosystemMethods?.allowedApps ?? DEFAULT_PRIVY_ECOSYSTEM_APP_IDS;
|
|
14221
|
+
}, [loginMethods]);
|
|
14222
|
+
const privyLoginMethods = [
|
|
13987
14223
|
...privy?.loginMethods ?? [],
|
|
13988
|
-
...
|
|
14224
|
+
...allowedEcosystemApps.map((appID) => `privy:${appID}`)
|
|
13989
14225
|
];
|
|
13990
14226
|
let privyAppId, privyClientId;
|
|
13991
14227
|
if (!privy) {
|
|
@@ -14014,20 +14250,20 @@ var VeChainKitProvider = ({
|
|
|
14014
14250
|
}, [language, i18nConfig]);
|
|
14015
14251
|
return /* @__PURE__ */ jsxs(EnsureQueryClient, { children: [
|
|
14016
14252
|
/* @__PURE__ */ jsx(ReactQueryDevtools, { initialIsOpen: false }),
|
|
14017
|
-
/* @__PURE__ */ jsx(PrivyCrossAppProvider, { privyEcosystemAppIDS, children: /* @__PURE__ */ jsx(
|
|
14253
|
+
/* @__PURE__ */ jsx(PrivyCrossAppProvider, { privyEcosystemAppIDS: allowedEcosystemApps, children: /* @__PURE__ */ jsx(
|
|
14018
14254
|
VeChainKitContext.Provider,
|
|
14019
14255
|
{
|
|
14020
14256
|
value: {
|
|
14021
14257
|
privy,
|
|
14022
|
-
privyEcosystemAppIDS,
|
|
14258
|
+
privyEcosystemAppIDS: allowedEcosystemApps,
|
|
14023
14259
|
feeDelegation,
|
|
14024
14260
|
dappKit,
|
|
14025
14261
|
loginModalUI,
|
|
14262
|
+
loginMethods,
|
|
14026
14263
|
darkMode,
|
|
14027
14264
|
i18n: i18nConfig,
|
|
14028
14265
|
language,
|
|
14029
14266
|
network,
|
|
14030
|
-
privySocialLoginEnabled: privy !== void 0,
|
|
14031
14267
|
openConnectModal,
|
|
14032
14268
|
closeConnectModal,
|
|
14033
14269
|
isConnectModalOpen,
|
|
@@ -14050,7 +14286,7 @@ var VeChainKitProvider = ({
|
|
|
14050
14286
|
config: {
|
|
14051
14287
|
loginMethodsAndOrder: {
|
|
14052
14288
|
// @ts-ignore
|
|
14053
|
-
primary:
|
|
14289
|
+
primary: privyLoginMethods
|
|
14054
14290
|
},
|
|
14055
14291
|
appearance: {
|
|
14056
14292
|
theme: darkMode ? "dark" : "light",
|
|
@@ -14140,7 +14376,7 @@ var variants = {
|
|
|
14140
14376
|
scrollbarWidth: "none",
|
|
14141
14377
|
overflow: "scroll",
|
|
14142
14378
|
overflowX: "hidden",
|
|
14143
|
-
maxHeight: "
|
|
14379
|
+
maxHeight: "540px",
|
|
14144
14380
|
borderRadius: "24px",
|
|
14145
14381
|
backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white"
|
|
14146
14382
|
},
|
|
@@ -14355,6 +14591,6 @@ var VechainKitThemeProvider = ({
|
|
|
14355
14591
|
] });
|
|
14356
14592
|
};
|
|
14357
14593
|
|
|
14358
|
-
export { APP_SECURITY_LEVELS, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectionButton, DappKitButton, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionModal, TransactionModalProvider, TransactionToast, TransactionToastProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, WalletSettingsContent, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccountBalance, useAccountCustomizationModal, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetAvatar, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useReceiveModal, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateAvatarRecord, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|
|
14594
|
+
export { APP_SECURITY_LEVELS, AccountAvatar, AccountCustomizationContent, AccountCustomizationModalProvider, AccountDetailsButton, AccountMainContent, AccountModal, AccountModalProvider, AccountSelector, ActionButton, AddressDisplay, AddressDisplayCard, AssetButton, AssetsSection, BalanceSection, BaseModal, ChooseNameContent, ChooseNameModalProvider, ChooseNameSearchContent, ChooseNameSummaryContent, ConnectModal, ConnectModalProvider, ConnectionButton, DappKitButton, EcosystemButton, EcosystemModal, EmailLoginButton, EmbeddedWalletContent, EmbeddedWalletSettingsModalProvider, ExchangeWarningAlert, ExploreEcosystemModalProvider, FAQContent, FAQModalProvider, FadeInView, FadeInViewFromBottom, FadeInViewFromLeft, FadeInViewFromRight, FeatureAnnouncementCard, LoginLoadingModal, MAX_IMAGE_SIZE, MainContent, ModalBackButton, ModalFAQButton, NFTMediaType, NotificationsModalProvider, PRICE_FEED_IDS, PasskeyLoginButton, PrivyButton, PrivyWalletProvider, QuickActionsSection, ReceiveModalProvider, ReceiveTokenContent, RoundState, ScrollToTopWrapper, SecurityLevel, SelectTokenContent, SendTokenContent, SendTokenModalProvider, SendTokenSummaryContent, SocialLoginButtons, StickyFooterContainer, StickyHeaderContainer, SwapTokenContent, TransactionModal, TransactionModalProvider, TransactionToast, TransactionToastProvider, VeChainKitContext, VeChainKitProvider, VeChainLoginButton, VeChainWithPrivyLoginButton, VePassportUserStatus, VechainKitThemeProvider, VersionFooter, WalletButton, WalletModalProvider, WalletSettingsContent, buildClaimRewardsTx, buildClaimRoundReward, compressImages, currentBlockQueryKey, fetchPrivyAppInfo, fetchVechainDomain, getAccountBalance, getAccountBalanceQueryKey, getAllEvents, getAllocationAmount, getAllocationAmountQueryKey, getAllocationsRoundState, getAllocationsRoundStateQueryKey, getAllocationsRoundsEvents, getAllocationsRoundsEventsQueryKey, getAppAdmin, getAppAdminQueryKey, getAppBalance, getAppBalanceQueryKey, getAppExistsQueryKey, getAppSecurityLevelQueryKey, getAppsEligibleInNextRound, getAppsEligibleInNextRoundQueryKey, getAppsShareClauses, getAvatar, getAvatarQueryKey, getB3trBalance, getB3trBalanceQueryKey, getB3trDonatedQueryKey, getB3trToUpgradeQueryKey, getBalanceOf, getCallKey, getChainId, getChainIdQueryKey, getCurrentAllocationsRoundId, getCurrentAllocationsRoundIdQueryKey, getDelegateeQueryKey, getDelegatorQueryKey, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getEntitiesLinkedToPassportQueryKey, getEvents, getGMBaseUriQueryKey, getGMLevel, getGMbalanceQueryKey, getGetCumulativeScoreWithDecayQueryKey, getHasVotedInRound, getHasVotedInRoundQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsBlacklistedQueryKey, getIsDomainProtectedQueryKey, getIsEntityQueryKey, getIsNodeHolder, getIsNodeHolderQueryKey, getIsPassportQueryKey, getIsPersonAtTimepointQueryKey, getIsPersonQueryKey, getIsWhitelistedQueryKey, getLevelGradient, getLevelMultiplierQueryKey, getLevelOfTokenQueryKey, getNFTMetadataUri, getNFTMetadataUriQueryKey, getNodeCheckCooldownQueryKey, getNodeManagerQueryKey, getParticipatedInGovernance, getParticipatedInGovernanceQueryKey, getParticipationScoreThresholdQueryKey, getPassportForEntityQueryKey, getPassportToggleQueryKey, getPendingDelegationsQueryKeyDelegateePOV, getPendingDelegationsQueryKeyDelegatorPOV, getPendingLinkingsQueryKey, getPrivyAppInfoQueryKey, getRoundReward, getRoundRewardQueryKey, getRoundXApps, getRoundXAppsQueryKey, getSecurityMultiplierQueryKey, getSmartAccount, getSmartAccountQueryKey, getThresholdParticipationScoreAtTimepointQueryKey, getThresholdParticipationScoreQueryKey, getTokenIdByAccount, getTokenIdByAccountQueryKey, getTokenUsdPrice, getTokenUsdPriceQueryKey, getTokensInfoByOwnerQueryKey, getUserBotSignalsQueryKey, getUserNodesQueryKey, getUserRoundScoreQueryKey, getUserVotesInRound, getUserVotesInRoundQueryKey, getUserXNodes, getUserXNodesQueryKey, getVeDelegateBalance, getVeDelegateBalanceQueryKey, getVechainDomainQueryKey, getVersion, getVersionQueryKey, getVot3Balance, getVot3BalanceQueryKey, getVotesInRoundQueryKey, getXAppMetadata, getXAppMetadataQueryKey, getXAppRoundEarnings, getXAppRoundEarningsQueryKey, getXAppTotalEarningsClauses, getXAppTotalEarningsQueryKey, getXAppVotes, getXAppVotesQf, getXAppVotesQfQueryKey, getXAppVotesQueryKey, getXApps, getXAppsMetadataBaseUri, getXAppsMetadataBaseUriQueryKey, getXAppsQueryKey, getXAppsSharesQueryKey, imageCompressionOptions, pollForReceipt, useAccountBalance, useAccountCustomizationModal, useAccountLinking, useAccountModal, useAllocationAmount, useAllocationsRound, useAllocationsRoundState, useAllocationsRoundsEvents, useAppAdmin, useAppBalance, useAppExists, useAppSecurityLevel, useAppsEligibleInNextRound, useB3trDonated, useB3trToUpgrade, useBalances, useCall, useChooseNameModal, useClaimVeWorldSubdomain, useConnectModal, useContractVersion, useCrossAppConnectionCache, useCurrentAllocationsRound, useCurrentAllocationsRoundId, useCurrentBlock, useEcosystemShortcuts, useEmbeddedWalletSettingsModal, useEnsRecordExists, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useGMBaseUri, useGMbalance, useGetAvatar, useGetB3trBalance, useGetChainId, useGetCumulativeScoreWithDecay, useGetDelegatee, useGetDelegator, useGetDomainsOfAddress, useGetEntitiesLinkedToPassport, useGetNodeManager, useGetNodeUrl, useGetPassportForEntity, useGetPendingDelegationsDelegateePOV, useGetPendingDelegationsDelegatorPOV, useGetPendingLinkings, useGetTokenUsdPrice, useGetTokensInfoByOwner, useGetUserEntitiesLinkedToPassport, useGetUserNode, useGetUserNodes, useGetUserPassportForEntity, useGetUserPendingLinkings, useGetVeDelegateBalance, useGetVot3Balance, useHasVotedInRound, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsBlacklisted, useIsDomainProtected, useIsEntity, useIsGMclaimable, useIsNodeHolder, useIsPWA, useIsPassport, useIsPassportCheckEnabled, useIsPerson, useIsPersonAtTimepoint, useIsUserEntity, useIsUserPassport, useIsUserPerson, useIsWhitelisted, useLevelMultiplier, useLevelOfToken, useLocalStorage, useLoginModalContent, useLoginWithOAuth2 as useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMostVotedAppsInRound, useMultipleXAppRoundEarnings, useNFTImage, useNFTMetadataUri, useNotificationAlerts, useNotifications, useNotificationsModal, useParticipatedInGovernance, useParticipationScoreThreshold, usePassportChecks, usePrivyWalletProvider, useReceiveModal, useRefreshBalances, useRoundEarnings, useRoundReward, useRoundXApps, useScrollToTop, useSecurityMultiplier, useSelectedGmNft, useSendTokenModal, useSendTransaction, useSignMessage2 as useSignMessage, useSignTypedData2 as useSignTypedData, useSingleImageUpload, useSmartAccount, useThresholdParticipationScore, useThresholdParticipationScoreAtTimepoint, useTokenIdByAccount, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUpdateAvatarRecord, useUploadImages, useUserBotSignals, useUserDelegation, useUserRoundScore, useUserStatus, useUserTopVotedApps, useUserVotesInAllRounds, useUserVotesInRound, useVeChainKitConfig, useVechainDomain, useVotesInRound, useVotingRewards, useWallet, useWalletModal, useXApp, useXAppMetadata, useXAppRoundEarnings, useXAppTotalEarnings, useXAppVotes, useXAppVotesQf, useXApps, useXAppsMetadataBaseUri, useXAppsShares, useXNode, useXNodeCheckCooldown, useXNodes };
|
|
14359
14595
|
//# sourceMappingURL=index.js.map
|
|
14360
14596
|
//# sourceMappingURL=index.js.map
|