@vechain/vechain-kit 2.4.2 → 3.0.0-rc.1

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.
Files changed (136) hide show
  1. package/dist/AccountModal-CK-qcPlQ.js +1 -0
  2. package/dist/AccountModal-ChuVFqPc.js +20 -0
  3. package/dist/AccountModal-ChuVFqPc.js.map +1 -0
  4. package/dist/AccountModal-DNK0IbiE.cjs +1 -0
  5. package/dist/AccountModal-DjAS4w6z.cjs +20 -0
  6. package/dist/AccountModal-DjAS4w6z.cjs.map +1 -0
  7. package/dist/BaseModal-CWAI9-Bi.js +2 -0
  8. package/dist/BaseModal-CWAI9-Bi.js.map +1 -0
  9. package/dist/BaseModal-yevRjczw.cjs +2 -0
  10. package/dist/BaseModal-yevRjczw.cjs.map +1 -0
  11. package/dist/ConnectModal-BXbiUwnz.js +1 -0
  12. package/dist/ConnectModal-C50EF9gE.js +2 -0
  13. package/dist/ConnectModal-C50EF9gE.js.map +1 -0
  14. package/dist/ConnectModal-CvkkVALe.cjs +1 -0
  15. package/dist/ConnectModal-DmIkWb1i.cjs +2 -0
  16. package/dist/ConnectModal-DmIkWb1i.cjs.map +1 -0
  17. package/dist/DisconnectConfirmContent-B4qahKqQ.cjs +2 -0
  18. package/dist/DisconnectConfirmContent-B4qahKqQ.cjs.map +1 -0
  19. package/dist/DisconnectConfirmContent-C9qLnI-m.js +2 -0
  20. package/dist/DisconnectConfirmContent-C9qLnI-m.js.map +1 -0
  21. package/dist/LegalDocumentsModal-5sNOrJI9.js +1 -0
  22. package/dist/LegalDocumentsModal-aWgfKwIL.js +2 -0
  23. package/dist/LegalDocumentsModal-aWgfKwIL.js.map +1 -0
  24. package/dist/LegalDocumentsModal-fnhM40y6.cjs +2 -0
  25. package/dist/LegalDocumentsModal-fnhM40y6.cjs.map +1 -0
  26. package/dist/LegalDocumentsModal-g54lP0U7.cjs +1 -0
  27. package/dist/PrivyCrossAppProvider-B6oIXeWL.js +2 -0
  28. package/dist/PrivyCrossAppProvider-B6oIXeWL.js.map +1 -0
  29. package/dist/PrivyCrossAppProvider-C6aL4Qor.cjs +1 -0
  30. package/dist/PrivyCrossAppProvider-Ccu2yH99.js +1 -0
  31. package/dist/PrivyCrossAppProvider-DSuzrbqs.cjs +2 -0
  32. package/dist/PrivyCrossAppProvider-DSuzrbqs.cjs.map +1 -0
  33. package/dist/PrivyWalletProvider-BkqWSj75.cjs +2 -0
  34. package/dist/PrivyWalletProvider-BkqWSj75.cjs.map +1 -0
  35. package/dist/PrivyWalletProvider-DToo_u0W.js +2 -0
  36. package/dist/PrivyWalletProvider-DToo_u0W.js.map +1 -0
  37. package/dist/ShareButtons-B92JZp47.js +2 -0
  38. package/dist/ShareButtons-B92JZp47.js.map +1 -0
  39. package/dist/ShareButtons-CRMNerbz.cjs +2 -0
  40. package/dist/ShareButtons-CRMNerbz.cjs.map +1 -0
  41. package/dist/UpgradeSmartAccountModal-BAzmVxeJ.js +2 -0
  42. package/dist/UpgradeSmartAccountModal-BAzmVxeJ.js.map +1 -0
  43. package/dist/UpgradeSmartAccountModal-BGjTzYAm.cjs +1 -0
  44. package/dist/UpgradeSmartAccountModal-CpZo27Uk.js +1 -0
  45. package/dist/UpgradeSmartAccountModal-IMcihO0d.cjs +2 -0
  46. package/dist/UpgradeSmartAccountModal-IMcihO0d.cjs.map +1 -0
  47. package/dist/VechainKitThemeProvider-BM5258oA.cjs +75 -0
  48. package/dist/VechainKitThemeProvider-BM5258oA.cjs.map +1 -0
  49. package/dist/VechainKitThemeProvider-Di9a04Es.js +75 -0
  50. package/dist/VechainKitThemeProvider-Di9a04Es.js.map +1 -0
  51. package/dist/assets/index.cjs +1 -1
  52. package/dist/assets/index.d.cts +1 -1
  53. package/dist/assets/{index.d.mts → index.d.ts} +1 -1
  54. package/dist/assets/index.js +1 -0
  55. package/dist/{assets-BL24r-Yp.mjs → assets-CXk1qRDd.js} +5 -5
  56. package/dist/assets-CXk1qRDd.js.map +1 -0
  57. package/dist/{assets-DNJsQD7_.cjs → assets-YPd7adzM.cjs} +7 -7
  58. package/dist/assets-YPd7adzM.cjs.map +1 -0
  59. package/dist/chunk-DjWAcSYV.cjs +1 -0
  60. package/dist/components/index.cjs +1 -0
  61. package/dist/components/index.d.cts +6 -0
  62. package/dist/components/index.d.ts +6 -0
  63. package/dist/components/index.js +1 -0
  64. package/dist/components-QKLypcU1.cjs +2 -0
  65. package/dist/components-QKLypcU1.cjs.map +1 -0
  66. package/dist/components-k36uDisW.js +2 -0
  67. package/dist/components-k36uDisW.js.map +1 -0
  68. package/dist/hooks/index.cjs +1 -0
  69. package/dist/hooks/index.d.cts +6 -0
  70. package/dist/hooks/index.d.ts +6 -0
  71. package/dist/hooks/index.js +1 -0
  72. package/dist/hooks-C8eXQYIN.cjs +8 -0
  73. package/dist/hooks-C8eXQYIN.cjs.map +1 -0
  74. package/dist/hooks-DuTew9oP.js +8 -0
  75. package/dist/hooks-DuTew9oP.js.map +1 -0
  76. package/dist/{index-CpRbZET6.d.mts → index-BGQS0a81.d.ts} +564 -1581
  77. package/dist/index-BGQS0a81.d.ts.map +1 -0
  78. package/dist/index-Bqw0Cz5n.d.cts +587 -0
  79. package/dist/index-Bqw0Cz5n.d.cts.map +1 -0
  80. package/dist/index-BugHmddr.d.ts +587 -0
  81. package/dist/index-BugHmddr.d.ts.map +1 -0
  82. package/dist/{index-D4rz985m.d.cts → index-C8wbz8af.d.cts} +561 -1578
  83. package/dist/index-C8wbz8af.d.cts.map +1 -0
  84. package/dist/{index-CWViOs1U.d.mts → index-COoeacay.d.ts} +5 -5
  85. package/dist/index-COoeacay.d.ts.map +1 -0
  86. package/dist/{index-u3CPquCV.d.cts → index-CmGg4iaS.d.cts} +4 -4
  87. package/dist/{index-CWViOs1U.d.mts.map → index-CmGg4iaS.d.cts.map} +1 -1
  88. package/dist/index-DI_IPiLX.d.ts +324 -0
  89. package/dist/index-DI_IPiLX.d.ts.map +1 -0
  90. package/dist/index-DVxlUr9t.d.cts +324 -0
  91. package/dist/index-DVxlUr9t.d.cts.map +1 -0
  92. package/dist/index.cjs +1 -221
  93. package/dist/index.d.cts +6 -3
  94. package/dist/index.d.ts +6 -0
  95. package/dist/index.js +1 -0
  96. package/dist/network-Cs9YqDJ1.d.cts +536 -0
  97. package/dist/network-Cs9YqDJ1.d.cts.map +1 -0
  98. package/dist/network-yA5VWcPq.d.ts +536 -0
  99. package/dist/network-yA5VWcPq.d.ts.map +1 -0
  100. package/dist/providers/index.cjs +1 -0
  101. package/dist/providers/index.d.cts +3 -0
  102. package/dist/providers/index.d.ts +3 -0
  103. package/dist/providers/index.js +1 -0
  104. package/dist/providers-DImdr6Kk.cjs +124 -0
  105. package/dist/providers-DImdr6Kk.cjs.map +1 -0
  106. package/dist/providers-kA0lotaM.js +124 -0
  107. package/dist/providers-kA0lotaM.js.map +1 -0
  108. package/dist/ssrUtils-C_5ZY26i.cjs +2 -0
  109. package/dist/ssrUtils-C_5ZY26i.cjs.map +1 -0
  110. package/dist/ssrUtils-DSwxhTtm.js +2 -0
  111. package/dist/ssrUtils-DSwxhTtm.js.map +1 -0
  112. package/dist/utils/index.cjs +1 -1
  113. package/dist/utils/index.d.cts +2 -2
  114. package/dist/utils/index.d.ts +3 -0
  115. package/dist/utils/index.js +1 -0
  116. package/dist/utils-B2Eg9TD3.js +2 -0
  117. package/dist/utils-B2Eg9TD3.js.map +1 -0
  118. package/dist/utils-jW13BhAb.cjs +2 -0
  119. package/dist/utils-jW13BhAb.cjs.map +1 -0
  120. package/package.json +46 -9
  121. package/dist/assets/index.mjs +0 -1
  122. package/dist/assets-BL24r-Yp.mjs.map +0 -1
  123. package/dist/assets-DNJsQD7_.cjs.map +0 -1
  124. package/dist/index-CpRbZET6.d.mts.map +0 -1
  125. package/dist/index-D4rz985m.d.cts.map +0 -1
  126. package/dist/index-u3CPquCV.d.cts.map +0 -1
  127. package/dist/index.cjs.map +0 -1
  128. package/dist/index.d.mts +0 -3
  129. package/dist/index.mjs +0 -221
  130. package/dist/index.mjs.map +0 -1
  131. package/dist/utils/index.d.mts +0 -3
  132. package/dist/utils/index.mjs +0 -1
  133. package/dist/utils-BQ9mZctf.cjs +0 -2
  134. package/dist/utils-BQ9mZctf.cjs.map +0 -1
  135. package/dist/utils-BxZj2QIg.mjs +0 -2
  136. package/dist/utils-BxZj2QIg.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-k36uDisW.js","names":["packageJson.version","theme","useWallet","useWallet","useWallet","theme"],"sources":["../src/components/common/VersionFooter.tsx","../src/components/common/StickyFooterContainer.tsx","../src/components/common/ModalNotificationButton.tsx","../src/components/AccountModal/Components/AccountDetailsButton.tsx","../src/components/AccountModal/Components/Alerts/ExchangeWarningAlert.tsx","../src/components/AccountModal/Components/CrossAppConnectionSecurityCard.tsx","../src/components/AccountModal/Contents/Bridge/BridgeContent.tsx","../src/components/TransactionModal/TransactionModalContent.tsx","../src/components/TransactionModal/TransactionModal.tsx","../src/components/WalletButton/WalletDisplay.tsx","../src/components/WalletButton/ConnectedWallet.tsx","../src/components/WalletButton/WalletButton.tsx","../src/components/TransactionToast/TransactionToastContent.tsx","../src/components/TransactionToast/TransactionToast.tsx"],"sourcesContent":["import { HStack, Link, StackProps } from '@chakra-ui/react';\nimport { VechainLogo } from '../../assets';\nimport packageJson from '../../../package.json';\n// Direct import to avoid circular dependency through barrel exports\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\n\ntype Props = {} & Omit<StackProps, 'dangerouslySetInnerHTML'>;\n\nexport const VersionFooter = ({ ...props }: Props) => {\n const { darkMode: isDark } = useVeChainKitConfig();\n\n return (\n <HStack\n w={'full'}\n justifyContent={'center'}\n alignItems={'center'}\n spacing={0}\n {...props}\n >\n <VechainLogo\n isDark={isDark}\n w={'70px'}\n h={'auto'}\n opacity={0.4}\n mr={1}\n ml={'-16px'}\n />\n <Link\n fontSize={'11px'}\n fontWeight={'500'}\n opacity={0.4}\n textAlign={'left'}\n href={`https://github.com/vechain/vechain-kit/releases/tag/${packageJson.version}`}\n isExternal\n pt={'1px'}\n >\n v{packageJson.version}\n </Link>\n </HStack>\n );\n};\n","import { Box, useToken } from '@chakra-ui/react';\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const StickyFooterContainer = ({ children }: Props) => {\n // Use semantic token for sticky footer background (same as modal)\n const footerBg = useToken('colors', 'vechain-kit-modal');\n\n return (\n <Box\n position=\"absolute\"\n bottom=\"0\"\n left=\"0\"\n right=\"0\"\n bg={footerBg}\n zIndex=\"1000\"\n p={4}\n w=\"full\"\n >\n {children}\n </Box>\n );\n};\n","import { IconButton, IconButtonProps, Box } from '@chakra-ui/react';\nimport { LuBell } from 'react-icons/lu';\n\ntype NotificationButtonProps = {\n onClick: () => void;\n hasUnreadNotifications?: boolean;\n} & Partial<IconButtonProps>;\n\nexport const ModalNotificationButton = ({\n onClick,\n hasUnreadNotifications,\n ...props\n}: NotificationButtonProps) => {\n return (\n <IconButton\n aria-label=\"Notifications\"\n size=\"sm\"\n variant=\"ghost\"\n position=\"absolute\"\n borderRadius={'50%'}\n left=\"10px\"\n top=\"10px\"\n onClick={onClick}\n icon={\n <Box position=\"relative\">\n <LuBell fontSize={'20px'} />\n {hasUnreadNotifications && (\n <Box\n position=\"absolute\"\n top=\"-1px\"\n right=\"-1px\"\n minWidth=\"8px\"\n height=\"8px\"\n bg=\"red.500\"\n borderRadius=\"full\"\n />\n )}\n </Box>\n }\n {...props}\n />\n );\n};\n","import {\n Button,\n Box,\n HStack,\n VStack,\n Text,\n Icon,\n Image,\n Tag,\n} from '@chakra-ui/react';\nimport { ElementType } from 'react';\nimport { humanAddress, humanDomain } from '../../../utils';\nimport { useTranslation } from 'react-i18next';\nimport type { Wallet } from '../../../types';\n// Direct import to avoid circular dependency with providers barrel\nimport { useVeChainKitConfig } from '../../../providers/VeChainKitContext';\n\ninterface AccountDetailsButtonProps {\n title: string;\n wallet: Wallet;\n onClick: () => void;\n leftIcon?: ElementType;\n rightIcon?: ElementType;\n leftImage?: string;\n backgroundColor?: string;\n border?: string;\n isActive?: boolean;\n}\n\nexport const AccountDetailsButton = ({\n leftIcon,\n rightIcon,\n title,\n wallet,\n onClick,\n leftImage,\n isActive = false,\n}: AccountDetailsButtonProps) => {\n const { t } = useTranslation();\n const { darkMode: isDark } = useVeChainKitConfig();\n\n return (\n <Button\n w={'full'}\n minH={'70px'}\n h={'fit-content'}\n py={4}\n onClick={onClick}\n backgroundColor={isDark ? 'transparent' : 'transparent'}\n border={`1px solid ${isDark ? '#ffffff29' : '#ebebeb'}`}\n >\n <HStack w={'full'} justify={'space-between'}>\n <Box minW={'40px'} justifyContent={'center'}>\n {leftImage ? (\n <Image\n justifySelf={'center'}\n src={leftImage}\n w={'28px'}\n alt=\"left-image\"\n />\n ) : (\n <Icon as={leftIcon} fontSize={'28px'} />\n )}\n </Box>\n <VStack textAlign={'left'} w={'full'} flex={1}>\n <HStack\n w={'full'}\n spacing={2}\n justifyContent={'flex-start'}\n >\n <Text fontSize={'sm'} fontWeight={'400'}>\n {title}\n </Text>\n </HStack>\n <Text\n fontSize={'sm'}\n fontWeight={'500'}\n opacity={0.5}\n overflowWrap={'break-word'}\n wordBreak={'break-word'}\n whiteSpace={'normal'}\n w={'full'}\n >\n {wallet?.domain\n ? humanDomain(wallet?.domain ?? '', 18, 0)\n : humanAddress(wallet?.address ?? '', 6, 4)}\n </Text>\n </VStack>\n <VStack minW={'40px'} justifyContent={'flex-end'}>\n <HStack justifyContent={'flex-end'} minW={'40px'}>\n {isActive && (\n <Tag size={'sm'} colorScheme={'green'}>\n {t('Active')}\n </Tag>\n )}\n <Icon as={rightIcon} fontSize={'20px'} opacity={0.5} />\n </HStack>\n </VStack>\n </HStack>\n </Button>\n );\n};\n","import { Alert, AlertIcon, Text, VStack, HStack } from '@chakra-ui/react';\nimport { useTranslation } from 'react-i18next';\n\nexport const ExchangeWarningAlert = () => {\n const { t } = useTranslation();\n\n return (\n <Alert status=\"warning\" fontSize={'xs'} borderRadius={'xl'} p={2}>\n <VStack spacing={1} align=\"stretch\" w=\"full\">\n <HStack spacing={2} align=\"flex-start\">\n <AlertIcon boxSize={4} mt={'10px'} />\n <Text w=\"full\">\n {t(\n 'Sending to OceanX or other exchanges may result in loss of funds.',\n )}\n </Text>\n </HStack>\n </VStack>\n </Alert>\n );\n};\n","import {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n HStack,\n Text,\n Icon,\n Button,\n VStack,\n Center,\n Box,\n} from '@chakra-ui/react';\nimport { LuExternalLink, LuUserCog, LuShieldCheck } from 'react-icons/lu';\nimport { useTranslation } from 'react-i18next';\nimport { useCrossAppConnectionCache } from '../../../hooks';\nimport { VEBETTERDAO_GOVERNANCE_BASE_URL } from '../../../constants';\n\nexport const CrossAppConnectionSecurityCard = () => {\n const { t } = useTranslation();\n\n const { getConnectionCache } = useCrossAppConnectionCache();\n\n const connectionCache = getConnectionCache();\n\n return (\n <Card variant=\"vechainKitBase\" w=\"full\">\n <CardHeader p={4} pl={6} borderBottomWidth=\"1px\">\n <Text fontWeight=\"medium\" opacity={0.8}>\n {t('Security preferences')}\n </Text>\n\n <Text fontSize=\"xs\" mt={1} opacity={0.7}>\n {t(\n 'For security reasons, you can manage your embedded wallet settings only on the {{appName}} platform.',\n {\n appName:\n connectionCache?.ecosystemApp.name ??\n 'origin app',\n },\n )}\n </Text>\n </CardHeader>\n\n <CardBody borderRadius={'none'}>\n <VStack spacing={3} align=\"stretch\">\n <HStack spacing={3} align=\"center\">\n <Center\n w={'fit-content'}\n h={'fit-content'}\n p={2}\n borderRadius=\"full\"\n bg=\"blackAlpha.100\"\n flexShrink={0}\n >\n <Icon as={LuUserCog} />\n </Center>\n <Box flex={1}>\n <Text\n fontSize=\"sm\"\n fontWeight=\"medium\"\n lineHeight=\"shorter\"\n >\n {t('Login methods')}\n </Text>\n <Text\n fontSize=\"xs\"\n opacity={0.7}\n lineHeight=\"shorter\"\n >\n {t('Manage your login methods and passkeys')}\n </Text>\n </Box>\n </HStack>\n\n <HStack spacing={3} align=\"center\">\n <Center\n w={'fit-content'}\n h={'fit-content'}\n p={2}\n borderRadius=\"full\"\n bg=\"blackAlpha.100\"\n flexShrink={0}\n >\n <Icon as={LuShieldCheck} />\n </Center>\n <Box flex={1}>\n <Text\n fontSize=\"sm\"\n fontWeight=\"medium\"\n lineHeight=\"shorter\"\n >\n {t('Security settings')}\n </Text>\n <Text\n fontSize=\"xs\"\n opacity={0.7}\n lineHeight=\"shorter\"\n >\n {t(\n 'Backup your wallet, configure MFA and set recovery options',\n )}\n </Text>\n </Box>\n </HStack>\n </VStack>\n </CardBody>\n\n <CardFooter>\n <Button\n variant=\"vechainKitSecondary\"\n w=\"full\"\n onClick={() => {\n window.open(\n connectionCache?.ecosystemApp.website ??\n VEBETTERDAO_GOVERNANCE_BASE_URL,\n '_blank',\n );\n }}\n >\n {t('Manage on {{appName}}', {\n appName:\n connectionCache?.ecosystemApp.name ?? 'origin app',\n })}\n <Icon as={LuExternalLink} ml={2} />\n </Button>\n </CardFooter>\n </Card>\n );\n};\n","import {\n Container,\n ModalBody,\n ModalCloseButton,\n ModalHeader,\n VStack,\n Text,\n ModalFooter,\n Button,\n Icon,\n} from '@chakra-ui/react';\nimport { ModalBackButton, StickyHeaderContainer } from '../../../common';\nimport { AccountModalContentTypes } from '../../Types';\nimport { LuExternalLink } from 'react-icons/lu';\nimport { useTranslation } from 'react-i18next';\n// Direct import to avoid circular dependency via providers barrel export\nimport { useVeChainKitConfig } from '../../../../providers/VeChainKitContext';\nimport { VechainEnergy } from '../../../../assets';\nimport { useAccountModalOptions } from '../../../../hooks/modals/useAccountModalOptions';\nimport { VECHAIN_ENERGY_SWAP_BASE_URL } from '../../../../constants';\n\ntype Props = {\n setCurrentContent: React.Dispatch<\n React.SetStateAction<AccountModalContentTypes>\n >;\n};\n\nexport const BridgeContent = ({ setCurrentContent }: Props) => {\n const { t } = useTranslation();\n const { darkMode: isDark } = useVeChainKitConfig();\n const { isolatedView } = useAccountModalOptions();\n\n const handleLaunchVeChainEnergy = () => {\n window.open(VECHAIN_ENERGY_SWAP_BASE_URL, '_blank');\n };\n\n return (\n <>\n <StickyHeaderContainer>\n <ModalHeader>{t('Bridge')}</ModalHeader>\n {!isolatedView && (\n <ModalBackButton onClick={() => setCurrentContent('main')} />\n )}\n <ModalCloseButton />\n </StickyHeaderContainer>\n\n <Container maxW={'container.lg'}>\n <ModalBody>\n <VStack spacing={6} align=\"center\" w=\"full\">\n <VechainEnergy isDark={isDark} borderRadius={'xl'} />\n\n <Text fontSize=\"sm\" textAlign=\"center\">\n {t(\n 'Exchange your digital assets between VeChain and other blockchain networks easily and securely. Swaps are executed through partners that leverage both decentralized and centralized exchanges to convert tokens.',\n )}\n </Text>\n </VStack>\n </ModalBody>\n </Container>\n\n <ModalFooter>\n <Button\n variant=\"vechainKitSecondary\"\n onClick={handleLaunchVeChainEnergy}\n >\n {t('Launch vechain.energy')}\n <Icon as={LuExternalLink} ml={2} />\n </Button>\n </ModalFooter>\n </>\n );\n};\n","import {\n ModalBody,\n ModalCloseButton,\n ModalHeader,\n VStack,\n Text,\n Button,\n ModalFooter,\n Icon,\n Link,\n HStack,\n Spinner,\n useToken,\n} from '@chakra-ui/react';\nimport { ReactNode, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\n// Direct import to avoid circular dependency through barrel exports\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\nimport { getConfig } from '../../config';\nimport {\n LuExternalLink,\n LuCircleCheck,\n LuCircleAlert,\n LuRefreshCw,\n} from 'react-icons/lu';\nimport { ShareButtons } from './Components/ShareButtons';\nimport { StickyHeaderContainer } from '../common';\n// Import from types.ts to avoid circular dependency with TransactionModal\nimport type { TransactionModalProps } from './types';\n\ntype StatusConfig = {\n title: ReactNode;\n icon: ReactNode;\n description: string;\n};\n\nexport const TransactionModalContent = ({\n status,\n uiConfig,\n onTryAgain,\n txReceipt,\n txError,\n onClose,\n}: Omit<TransactionModalProps, 'isOpen'>) => {\n const { t } = useTranslation();\n const { network } = useVeChainKitConfig();\n\n const errorColor = useToken('colors', 'vechain-kit-error');\n const successColor = useToken('colors', 'vechain-kit-success');\n const textPrimary = useToken('colors', 'vechain-kit-text-primary');\n const textSecondary = useToken('colors', 'vechain-kit-text-secondary');\n\n const errorMessage = useMemo(() => {\n if (!txError) return null;\n return (\n (txError as any).reason ||\n t('Something went wrong. Please try again.')\n );\n }, [txError, t]);\n\n const getStatusConfig = (): StatusConfig => {\n // overwrite status to avoid flickering\n const isSendingTransaction = status === 'waitingConfirmation';\n if (isSendingTransaction) {\n status = 'pending';\n }\n switch (status) {\n case 'pending':\n return {\n title:\n uiConfig?.title ??\n (isSendingTransaction\n ? t('Sending Transaction...')\n : t('Waiting for confirmation')),\n icon: uiConfig?.loadingIcon ?? (\n <Spinner\n size=\"xl\"\n data-testid=\"pending-spinner-modal\"\n />\n ),\n description: isSendingTransaction\n ? t(\n 'Transaction is being processed, it can take up to 15 seconds.',\n )\n : uiConfig?.description ??\n t('Please confirm the transaction in your wallet.'),\n };\n case 'error':\n return {\n title: t('Something went wrong'),\n icon: uiConfig?.errorIcon ?? (\n <Icon\n as={LuCircleAlert}\n color={errorColor}\n fontSize=\"100px\"\n data-testid=\"error-icon-modal\"\n />\n ),\n description:\n errorMessage ?? t('An unexpected error occurred.'),\n };\n case 'success':\n return {\n title: t('Transaction successful!'),\n icon: uiConfig?.successIcon ?? (\n <Icon\n as={LuCircleCheck}\n color={successColor}\n fontSize=\"100px\"\n data-testid=\"success-icon-modal\"\n />\n ),\n description: '',\n };\n case 'ready':\n return {\n title: uiConfig?.title ?? t('Confirm transaction'),\n icon: null,\n description:\n uiConfig?.description ??\n t(\n 'Confirm the transaction in your wallet to complete it.',\n ),\n };\n default:\n return {\n title: '',\n icon: null,\n description: '',\n };\n }\n };\n\n const statusConfig = getStatusConfig();\n const socialDescription = `${getConfig(network.type).explorerUrl}/${\n txReceipt?.meta.txID\n }`;\n\n return (\n <>\n <StickyHeaderContainer>\n <ModalHeader>{statusConfig.title}</ModalHeader>\n <ModalCloseButton\n isDisabled={status === 'pending' && !uiConfig?.isClosable}\n />\n </StickyHeaderContainer>\n\n <ModalBody>\n <VStack align=\"center\" p={6} spacing={3}>\n {statusConfig.icon}\n\n {status === 'success' && uiConfig?.showShareOnSocials && (\n <VStack mt={2} spacing={3}>\n <Text\n fontSize=\"sm\"\n fontWeight={'bold'}\n color={textSecondary}\n >\n {t('Share on')}\n </Text>\n <ShareButtons description={socialDescription} />\n </VStack>\n )}\n\n {statusConfig.description && (\n <Text\n fontSize={status === 'ready' ? 'md' : 'sm'}\n textAlign=\"center\"\n color={\n status === 'error' ? errorColor : textPrimary\n }\n mt={5}\n style={{\n lineBreak: 'anywhere',\n }}\n >\n {statusConfig.description}\n </Text>\n )}\n </VStack>\n </ModalBody>\n\n <ModalFooter justifyContent=\"center\">\n <VStack width=\"full\" spacing={4}>\n {status === 'error' && !!onTryAgain && (\n <Button\n variant=\"vechainKitPrimary\"\n onClick={onTryAgain}\n width=\"full\"\n >\n <Icon mr={2} as={LuRefreshCw} />\n {t('Try again')}\n </Button>\n )}\n\n {status === 'ready' && (\n <Button\n onClick={onTryAgain}\n variant=\"vechainKitPrimary\"\n width=\"full\"\n >\n {t('Confirm')}\n </Button>\n )}\n\n {(status === 'success' ||\n status === 'error' ||\n status === 'ready') && (\n <Button onClick={onClose} variant=\"ghost\" width=\"full\">\n {t('Close')}\n </Button>\n )}\n\n {uiConfig?.showExplorerButton && txReceipt?.meta.txID && (\n <Link\n href={`${getConfig(network.type).explorerUrl}/${\n txReceipt?.meta.txID\n }`}\n isExternal\n opacity={0.5}\n fontSize=\"14px\"\n textDecoration=\"underline\"\n >\n <HStack\n spacing={1}\n alignItems=\"center\"\n w=\"full\"\n justifyContent=\"center\"\n >\n <Text color={textSecondary}>\n {t('View transaction on the explorer')}\n </Text>\n <Icon\n size=\"sm\"\n as={LuExternalLink}\n color={textSecondary}\n />\n </HStack>\n </Link>\n )}\n </VStack>\n </ModalFooter>\n </>\n );\n};\n","import { BaseModal } from '../common/BaseModal';\nimport { TransactionModalContent } from './TransactionModalContent';\n// Direct imports to avoid circular dependency through barrel exports\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\nimport { VechainKitThemeProvider } from '../../providers/VechainKitThemeProvider';\n// Import from types.ts to avoid circular dependency with TransactionModalContent\nimport type { TransactionModalProps } from './types';\n\n// Re-export for backward compatibility\nexport type { TransactionModalProps } from './types';\n\nexport const TransactionModal = ({\n isOpen,\n onClose,\n status,\n uiConfig,\n txReceipt,\n txError,\n onTryAgain,\n}: TransactionModalProps) => {\n const { darkMode, theme } = useVeChainKitConfig();\n\n // avoid deep nesting and unnecessary rendering\n if (!isOpen) return null;\n\n return (\n <VechainKitThemeProvider darkMode={darkMode} theme={theme}>\n <BaseModal\n isOpen={isOpen}\n onClose={onClose}\n allowExternalFocus={true}\n blockScrollOnMount={true}\n closeOnOverlayClick={\n status !== 'pending' && uiConfig?.isClosable\n }\n >\n <TransactionModalContent\n status={status}\n onTryAgain={onTryAgain}\n uiConfig={uiConfig}\n txReceipt={txReceipt}\n onClose={onClose}\n txError={txError}\n />\n </BaseModal>\n </VechainKitThemeProvider>\n );\n};\n","import { useWallet } from '../../hooks';\nimport { humanAddress, humanDomain } from '../../utils';\nimport { HStack, Spinner, Text, VStack } from '@chakra-ui/react';\n\nimport { AssetIcons } from './AssetIcons';\nimport { WalletDisplayVariant } from './types';\n\ntype WalletDisplayProps = {\n variant: WalletDisplayVariant;\n};\n\nexport const WalletDisplay = ({ variant }: WalletDisplayProps) => {\n const { account } = useWallet();\n\n if (!account) return <Spinner />;\n\n if (variant === 'icon') {\n return null;\n }\n\n if (variant === 'iconAndDomain') {\n return account.domain ? (\n <Text fontSize=\"sm\">\n {humanDomain(account?.domain ?? '', 16, 0)}\n </Text>\n ) : (\n <Text fontSize=\"sm\">\n {humanAddress(account.address ?? '', 6, 4)}\n </Text>\n );\n }\n\n if (variant === 'iconDomainAndAssets') {\n return (\n <HStack spacing={4}>\n <VStack spacing={0} alignItems=\"flex-start\">\n {account.domain && (\n <Text fontSize=\"sm\" fontWeight=\"bold\">\n {humanDomain(account?.domain ?? '', 16, 0)}\n </Text>\n )}\n <Text\n fontSize={account.domain ? 'xs' : 'sm'}\n opacity={account.domain ? 0.5 : 1}\n data-testid=\"trimmed-address\"\n >\n {humanAddress(account.address ?? '', 4, 4)}\n </Text>\n </VStack>\n <AssetIcons address={account.address ?? ''} maxIcons={3} />\n </HStack>\n );\n }\n\n return (\n <VStack spacing={0} alignItems=\"flex-start\">\n {account.domain && (\n <Text fontSize=\"sm\" fontWeight=\"bold\">\n {humanDomain(account?.domain ?? '', 16, 0)}\n </Text>\n )}\n <Text\n fontSize={account.domain ? 'xs' : 'sm'}\n opacity={account.domain ? 0.5 : 1}\n >\n {humanAddress(account.address ?? '', 4, 4)}\n </Text>\n </VStack>\n );\n};\n","import { useWallet } from '../../hooks';\nimport { Button, HStack, useMediaQuery } from '@chakra-ui/react';\n\nimport { AccountAvatar } from '../common';\n// Import from types.ts to avoid circular dependency with WalletButton\nimport type { WalletButtonProps } from './types';\nimport { WalletDisplay } from './WalletDisplay';\n\ntype ConnectedWalletProps = WalletButtonProps & {\n onOpen: () => void;\n};\n\nexport const ConnectedWallet = ({\n mobileVariant = 'iconAndDomain',\n desktopVariant = 'iconAndDomain',\n onOpen,\n buttonStyle = {},\n}: ConnectedWalletProps) => {\n const { account } = useWallet();\n const [isDesktop] = useMediaQuery('(min-width: 768px)');\n\n return (\n <Button\n {...buttonStyle}\n onClick={onOpen}\n w=\"full\"\n minH={'45px'}\n maxW=\"fit-content\"\n data-testid='wallet-button'\n >\n <HStack w=\"full\" minW=\"fit-content\">\n <AccountAvatar\n wallet={account}\n props={{\n width: 30,\n height: 30,\n minWidth: 30,\n minHeight: 30,\n }}\n />\n\n <WalletDisplay\n variant={isDesktop ? desktopVariant : mobileVariant}\n />\n </HStack>\n </Button>\n );\n};\n","import { Button, useDisclosure, useMediaQuery } from '@chakra-ui/react';\nimport { useWallet } from '../../hooks';\n// Use optional hooks to handle missing providers gracefully\nimport { useOptionalDAppKitWallet } from '../../hooks/api/dappkit/useOptionalDAppKitWallet';\nimport { useOptionalDAppKitWalletModal } from '../../hooks/api/dappkit/useOptionalDAppKitWalletModal';\n// Import directly to avoid circular dependency with components barrel\nimport { ConnectModal } from '../ConnectModal/ConnectModal';\nimport { AccountModal } from '../AccountModal/AccountModal';\nimport { ConnectedWallet } from './ConnectedWallet';\n// Import type from types.ts to avoid circular dependency with ConnectedWallet\nimport type { WalletButtonProps } from './types';\n// Direct imports to avoid circular dependency through barrel exports\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\nimport { VechainKitThemeProvider } from '../../providers/VechainKitThemeProvider';\nimport { ConnectPopover } from '../ConnectModal';\n\n// Re-export for backward compatibility\nexport type { WalletButtonProps } from './types';\n\nexport const WalletButton = ({\n mobileVariant = 'iconAndDomain',\n desktopVariant = 'iconDomainAndAddress',\n buttonStyle,\n connectionVariant = 'modal',\n label = 'Login',\n}: WalletButtonProps) => {\n const { darkMode, loginMethods, theme } = useVeChainKitConfig();\n\n const hasOnlyDappKit =\n loginMethods?.length === 1 && loginMethods[0].method === 'dappkit';\n\n const { connection, account } = useWallet();\n const { setSource, connectV2 } = useOptionalDAppKitWallet();\n\n const [isMobile] = useMediaQuery('(max-width: 768px)');\n\n const connectModal = useDisclosure();\n const accountModal = useDisclosure();\n const { open: openDappKit } = useOptionalDAppKitWalletModal();\n\n const handleConnect = () => {\n if (connection.isInAppBrowser) {\n setSource('veworld');\n connectV2(null);\n } else if (hasOnlyDappKit) {\n openDappKit();\n } else {\n connectModal.onOpen();\n }\n };\n\n return (\n <VechainKitThemeProvider darkMode={darkMode} theme={theme}>\n {connection.isConnected && !!account ? (\n <ConnectedWallet\n mobileVariant={mobileVariant}\n desktopVariant={desktopVariant}\n onOpen={accountModal.onOpen}\n buttonStyle={buttonStyle}\n />\n ) : connectionVariant === 'popover' && !isMobile ? (\n <ConnectPopover\n isLoading={connection.isLoading}\n buttonStyle={buttonStyle}\n />\n ) : (\n <Button\n isLoading={connection.isLoading}\n onClick={handleConnect}\n {...buttonStyle}\n >\n {label}\n </Button>\n )}\n\n <ConnectModal\n isOpen={connectModal.isOpen}\n onClose={connectModal.onClose}\n />\n <AccountModal\n isOpen={accountModal.isOpen}\n onClose={accountModal.onClose}\n />\n </VechainKitThemeProvider>\n );\n};\n","import {\n VStack,\n Text,\n Link,\n Icon,\n HStack,\n Heading,\n Spinner,\n Button,\n IconButton,\n} from '@chakra-ui/react';\nimport React, { useMemo } from 'react';\nimport type { TransactionStatus, TransactionStatusErrorType } from '../../types';\nimport {\n LuX,\n LuExternalLink,\n LuCircleAlert,\n LuCircleCheck,\n LuRefreshCw,\n} from 'react-icons/lu';\n// Direct import to avoid circular dependency via providers barrel export\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\nimport { getConfig } from '../../config';\nimport { useTranslation } from 'react-i18next';\nimport { TransactionReceipt } from '@vechain/sdk-network';\n\ntype TransactionToastContentProps = {\n status: TransactionStatus;\n txReceipt: TransactionReceipt | null;\n onTryAgain: () => void;\n txError?: Error | TransactionStatusErrorType;\n description?: string;\n onClose: () => void;\n};\n\ntype StatusConfig = {\n icon: React.ReactElement | null;\n title: string;\n closeDisabled: boolean;\n description?: string;\n};\n\nexport const TransactionToastContent = ({\n status,\n txReceipt,\n txError,\n onTryAgain,\n description,\n onClose,\n}: TransactionToastContentProps) => {\n const { t } = useTranslation();\n const { network } = useVeChainKitConfig();\n const explorerUrl = getConfig(network.type).explorerUrl;\n\n const errorMessage = useMemo(() => {\n if (!txError) return null;\n return (\n (txError as any).reason ||\n t('Something went wrong. Please try again.')\n );\n }, [txError, t]);\n\n const getStatusConfig = (): StatusConfig => {\n // overwrite status to avoid flickering\n const isSendingTransaction = status === 'waitingConfirmation';\n if (isSendingTransaction) {\n status = 'pending';\n }\n\n switch (status) {\n case 'pending':\n return {\n icon: (\n <Spinner\n size=\"md\"\n data-testid=\"pending-spinner-toast\"\n />\n ),\n title: isSendingTransaction\n ? t('Processing transaction...')\n : t('Waiting for confirmation...'),\n closeDisabled: true,\n description: isSendingTransaction\n ? t(\n 'Transaction is being processed, it can take up to 15 seconds.',\n )\n : description ??\n t('Please confirm the transaction in your wallet.'),\n };\n case 'error':\n return {\n icon: (\n <Icon\n as={LuCircleAlert}\n color={'red.500'}\n fontSize={'40px'}\n data-testid=\"error-icon-toast\"\n />\n ),\n title: t('Transaction failed'),\n closeDisabled: false,\n description: errorMessage,\n };\n case 'success':\n return {\n icon: (\n <Icon\n as={LuCircleCheck}\n color={'green.500'}\n fontSize={'40px'}\n data-testid=\"success-icon-toast\"\n />\n ),\n title: t('Transaction successful!'),\n closeDisabled: false,\n description: undefined,\n };\n case 'ready':\n return {\n icon: null,\n title: t('Confirm transaction'),\n closeDisabled: false,\n description:\n description ??\n t(\n 'Confirm the transaction in your wallet to complete it.',\n ),\n };\n default:\n return {\n icon: null,\n title: '',\n closeDisabled: false,\n description: '',\n };\n }\n };\n\n const config = getStatusConfig();\n if (!config) return null;\n\n return (\n <HStack justify=\"space-between\" alignItems={'flex-start'} w=\"full\">\n <VStack spacing={4}>\n <HStack\n spacing={4}\n w={'full'}\n justifyContent={'flex-start'}\n alignItems={'flex-start'}\n >\n {config.icon}\n\n <VStack w={'full'} align={'flex-start'} spacing={2}>\n <VStack spacing={1} w={'full'}>\n <Heading w={'full'} size={'xs'}>\n {config.title}\n </Heading>\n {config.description && (\n <Text fontSize={'xs'}>\n {config.description}\n </Text>\n )}\n </VStack>\n\n {(status === 'error' || status === 'ready') && (\n <Button size=\"xs\" onClick={onTryAgain}>\n {status === 'error' ? (\n <>\n <Icon mr={2} as={LuRefreshCw} />\n {t('Try again')}\n </>\n ) : (\n t('Confirm')\n )}\n </Button>\n )}\n\n {txReceipt && status !== 'pending' && (\n <Link\n fontSize={'xs'}\n isExternal\n href={`${explorerUrl}/${txReceipt.meta.txID}`}\n >\n {t('View on explorer')}{' '}\n <Icon as={LuExternalLink} />\n </Link>\n )}\n </VStack>\n </HStack>\n </VStack>\n\n {!config.closeDisabled && (\n <IconButton\n onClick={onClose}\n size=\"sm\"\n borderRadius={'full'}\n aria-label=\"Close\"\n icon={<Icon as={LuX} boxSize={4} />}\n />\n )}\n </HStack>\n );\n};\n","import { Box } from '@chakra-ui/react';\nimport type { TransactionStatus, TransactionStatusErrorType } from '../../types';\n// Direct import to avoid circular dependency via providers barrel export\nimport { useVeChainKitConfig } from '../../providers/VeChainKitContext';\nimport { TransactionToastContent } from './TransactionToastContent';\nimport { TransactionReceipt } from '@vechain/sdk-network';\n\nexport type TransactionToastProps = {\n isOpen: boolean;\n onClose: () => void;\n status: TransactionStatus;\n txReceipt: TransactionReceipt | null;\n onTryAgain: () => void;\n txError?: Error | TransactionStatusErrorType;\n description?: string;\n};\n\nexport const TransactionToast = ({\n isOpen,\n onClose,\n status,\n txReceipt,\n txError,\n onTryAgain,\n description,\n}: TransactionToastProps) => {\n const { darkMode: isDark } = useVeChainKitConfig();\n\n if (!isOpen) return null;\n\n return (\n <Box\n position=\"fixed\"\n bottom=\"5\"\n left=\"5\"\n zIndex=\"11111\"\n bg={isDark ? '#1f1f1e' : 'white'}\n borderRadius={'md'}\n p={5}\n boxShadow=\"lg\"\n maxW=\"sm\"\n minW=\"300px\"\n >\n <TransactionToastContent\n status={status}\n txReceipt={txReceipt}\n txError={txError}\n onTryAgain={onTryAgain}\n description={description}\n onClose={onClose}\n />\n </Box>\n );\n};\n"],"mappings":"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"}
@@ -0,0 +1 @@
1
+ const e=require(`../chunk-DjWAcSYV.cjs`),t=require(`../VechainKitThemeProvider-BM5258oA.cjs`),n=require(`../utils-jW13BhAb.cjs`);require(`../assets-YPd7adzM.cjs`),require(`../ssrUtils-C_5ZY26i.cjs`);const r=require(`../PrivyWalletProvider-BkqWSj75.cjs`);require(`../PrivyCrossAppProvider-DSuzrbqs.cjs`);const i=require(`../hooks-C8eXQYIN.cjs`);let a=require(`@privy-io/react-auth`),o=require(`@vechain/sdk-network`),s=require(`@vechain/dapp-kit-react`);exports.AccountCustomizationModalProvider=i.st,exports.AccountModalProvider=i.Dt,exports.CURRENCY_SYMBOLS=n.C,exports.ChooseNameModalProvider=i.yt,exports.ConnectModalProvider=i.kt,exports.ExploreEcosystemModalProvider=i.pt,exports.FAQModalProvider=i.lt,exports.LocalStorageKey=r.v,exports.MAX_IMAGE_SIZE=i.zt,exports.NotificationsModalProvider=i.dt,exports.PRICE_FEED_IDS=i.fn,exports.ProfileModalProvider=i.et,exports.ReceiveModalProvider=i.at,exports.SendTokenModalProvider=i._t,exports.SettingsModalProvider=i.Z,exports.SwapTokenModalProvider=i.ht,Object.defineProperty(exports,`ThorClient`,{enumerable:!0,get:function(){return o.ThorClient}}),exports.TransactionModalProvider=i.Tt,exports.TransactionToastProvider=i.Ct,exports.UpgradeSmartAccountModalProvider=i.nt,exports.WalletModalProvider=i.xt,exports.buildBatchAuthorizationTypedData=r.m,exports.buildCallClauses=n.t,exports.buildClauses=i.Rn,exports.buildERC20Clauses=i.l,exports.buildSingleAuthorizationTypedData=r.h,exports.buildVETClauses=i.s,exports.buildVetDomainClauses=i.Hn,exports.compressImages=i.Ft,exports.currentBlockQueryKey=i.p,exports.decodeEventLog=i.r,exports.decodeRawTx=r.s,exports.delegateAuthorized=r.c,exports.estimateAndBuildTxBody=r.l,exports.estimateGas=r.u,exports.executeCallClause=n.n,exports.executeMultipleClausesCall=n.r,exports.fetchAppHubApps=i.R,exports.fetchPrivyAppInfo=i.ar,exports.fetchPrivyStatus=i.rr,exports.getAccountAddress=i.w,exports.getAccountAddressQueryKey=i.T,exports.getAccountBalance=i.kn,exports.getAccountBalanceQueryKey=i.An,exports.getAccountImplementationAddress=i.A,exports.getAccountImplementationAddressQueryKey=i.j,exports.getAccountVersionQueryKey=r.H,exports.getAllEventLogs=i.d,exports.getAppHubAppsQueryKey=i.z,exports.getAvatarLegacy=i.Nn,exports.getAvatarLegacyQueryKey=i.Pn,exports.getAvatarOfAddressQueryKey=r.O,exports.getAvatarQueryKey=i.Yn,exports.getB3trBalanceQueryKey=i.Dn,exports.getCallClauseQueryKey=r.W,exports.getCallClauseQueryKeyWithArgs=r.G,exports.getChainId=r.Y,exports.getChainIdQueryKey=r.X,exports.getCurrentAccountImplementationVersion=i.D,exports.getCurrentAccountImplementationVersionQueryKey=i.O,exports.getCurrentAllocationsRoundIdQueryKey=i.in,exports.getCustomTokenBalanceQueryKey=i._n,exports.getCustomTokenInfoQueryKey=i.bn,exports.getDepositAccount=r.d,exports.getDomainsOfAddress=i.Gn,exports.getDomainsOfAddressQueryKey=i.Kn,exports.getEnsRecordExistsQueryKey=i.tr,exports.getErc20BalanceQueryKey=i.Cn,exports.getEventLogs=i.f,exports.getEventsKey=i.i,exports.getHasV1SmartAccount=r.i,exports.getHasV1SmartAccountQueryKey=r.a,exports.getIpfsImage=i.Bt,exports.getIpfsImageQueryKey=i.Vt,exports.getIpfsMetadata=i.Wt,exports.getIpfsMetadataQueryKey=i.Gt,exports.getIsDeployed=i.x,exports.getIsDeployedQueryKey=i.S,exports.getIsDomainProtectedQueryKey=i.Bn,exports.getIsPersonQueryKey=i.nn,exports.getPrivyAppInfoQueryKey=i.or,exports.getResolverAddressQueryKey=i.In,exports.getRoundXAppsQueryKey=i.en,exports.getSmartAccount=r.z,exports.getSmartAccountQueryKey=r.B,exports.getTextRecords=r.A,exports.getTextRecordsQueryKey=r.j,exports.getTokenInfo=i.xn,exports.getTokenUsdPrice=i.pn,exports.getTokenUsdPriceQueryKey=i.mn,exports.getUpgradeRequired=i.v,exports.getUpgradeRequiredForAccount=i.q,exports.getUpgradeRequiredForAccountQueryKey=i.J,exports.getUpgradeRequiredQueryKey=i.y,exports.getVechainDomainQueryKey=r.N,exports.getVot3BalanceQueryKey=i.Tn,exports.getXAppMetadata=i.qt,exports.getXAppsSharesQueryKey=i.Qt,exports.imageCompressionOptions=i.It,exports.signVip191Transaction=r.f,exports.txReceiptQueryKey=i.$n,exports.useAccountBalance=i.jn,exports.useAccountCustomizationModal=i.ct,exports.useAccountImplementationAddress=i.M,exports.useAccountModal=i.Ot,exports.useAccountModalOptions=i.$,exports.useAppHubApps=i.B,exports.useBuildClauses=r.g,exports.useBuildTransaction=i.o,exports.useCallClause=r.K,exports.useChooseNameModal=i.bt,exports.useClaimVeWorldSubdomain=i.Wn,exports.useClaimVetDomain=i.Un,exports.useConnectModal=i.At,exports.useCrossAppConnectionCache=r.R,exports.useCurrency=i.cn,exports.useCurrentAccountImplementationVersion=i.k,exports.useCurrentAllocationsRoundId=i.an,exports.useCurrentBlock=i.m,exports.useCurrentCurrency=i.I,exports.useCurrentLanguage=i.L,exports.useCustomTokens=i.yn,Object.defineProperty(exports,`useDAppKitWallet`,{enumerable:!0,get:function(){return s.useWallet}}),Object.defineProperty(exports,`useDAppKitWalletModal`,{enumerable:!0,get:function(){return s.useWalletModal}}),exports.useEcosystemShortcuts=i.cr,exports.useEnsRecordExists=i.nr,exports.useEstimateAllTokens=i.t,exports.useEvents=i.a,exports.useExploreEcosystemModal=i.mt,exports.useFAQModal=i.ut,exports.useFeatureAnnouncement=i.F,exports.useFetchAppInfo=i.sr,exports.useFetchPrivyStatus=i.ir,exports.useGasEstimate=i.Qn,exports.useGasTokenSelection=r._,exports.useGenericDelegator=r.p,exports.useGenericDelegatorFeeEstimation=i.n,exports.useGetAccountAddress=i.E,exports.useGetAccountVersion=r.U,exports.useGetAvatar=i.Xn,exports.useGetAvatarLegacy=i.Fn,exports.useGetAvatarOfAddress=r.k,exports.useGetB3trBalance=i.On,exports.useGetChainId=r.Z,exports.useGetCustomTokenBalances=i.vn,exports.useGetCustomTokenInfo=i.Sn,exports.useGetDomainsOfAddress=i.qn,exports.useGetErc20Balance=i.wn,exports.useGetNodeUrl=r.J,exports.useGetResolverAddress=i.Ln,exports.useGetTextRecords=r.M,exports.useGetTokenUsdPrice=i.hn,exports.useGetVot3Balance=i.En,exports.useHasV1SmartAccount=r.o,exports.useIpfsImage=i.Ht,exports.useIpfsImageList=i.Ut,exports.useIpfsMetadata=i.Kt,exports.useIpfsMetadatas=i.Rt,exports.useIsDomainProtected=i.Vn,exports.useIsPWA=i.P,exports.useIsPerson=i.rn,exports.useIsSmartAccountDeployed=i.C,exports.useLegalDocuments=t.a,exports.useLocalStorage=r.y,exports.useLoginModalContent=i.it,exports.useLoginWithOAuth=i.H,exports.useLoginWithPasskey=i.U,exports.useLoginWithVeChain=i.V,Object.defineProperty(exports,`useMfaEnrollment`,{enumerable:!0,get:function(){return a.useMfaEnrollment}}),exports.useMostVotedAppsInRound=i.Zt,exports.useMultipleClausesCall=r.q,exports.useNotificationAlerts=i.K,exports.useNotifications=i.X,exports.useNotificationsModal=i.ft,exports.useOptionalDAppKitWallet=r.L,exports.useOptionalDAppKitWalletModal=i.jt,exports.useOptionalPrivy=r.tt,exports.useOptionalPrivyCrossAppSdk=r.F,exports.useOptionalThor=r.Q,exports.useOptionalWagmiAccount=r.I,Object.defineProperty(exports,`usePrivy`,{enumerable:!0,get:function(){return a.usePrivy}}),exports.useProfileModal=i.tt,exports.useReceiveModal=i.ot,exports.useRefreshBalances=i.Xt,exports.useRefreshFactoryQueries=i._,exports.useRefreshMetadata=i.Jn,exports.useRefreshSmartAccountQueries=i.g,exports.useRoundXApps=i.tn,exports.useScrollToTop=i.N,exports.useSendTokenModal=i.vt,exports.useSendTransaction=i.Zn,Object.defineProperty(exports,`useSetWalletRecovery`,{enumerable:!0,get:function(){return a.useSetWalletRecovery}}),exports.useSettingsModal=i.Q,exports.useSignMessage=i.G,exports.useSignTypedData=i.W,exports.useSingleImageUpload=i.Pt,exports.useSmartAccount=r.V,exports.useSwapQuotes=i.Mt,exports.useSwapTokenModal=i.gt,exports.useSwapTransaction=i.Nt,exports.useSwitchWallet=i.Yt,exports.useSyncableLocalStorage=r.w,Object.defineProperty(exports,`useThor`,{enumerable:!0,get:function(){return s.useThor}}),exports.useTokenBalances=i.gn,exports.useTokenPrices=i.dn,exports.useTokensWithValues=i.sn,exports.useTotalBalance=i.on,exports.useTransactionModal=i.Et,exports.useTransactionToast=i.wt,exports.useTransferERC20=i.u,exports.useTransferVET=i.c,exports.useTxReceipt=i.er,exports.useUnsetDomain=i.Mn,exports.useUpdateTextRecord=i.zn,exports.useUpgradeRequired=i.b,exports.useUpgradeRequiredForAccount=i.Y,exports.useUpgradeSmartAccount=i.h,exports.useUpgradeSmartAccountModal=i.rt,exports.useUploadImages=i.Lt,exports.useVechainDomain=r.P,exports.useWallet=r.T,exports.useWalletMetadata=r.D,exports.useWalletModal=i.St,exports.useWalletStorage=r.E,exports.useXAppMetadata=i.Jt,exports.useXAppsShares=i.$t;
@@ -0,0 +1,6 @@
1
+ import "../index-CmGg4iaS.cjs";
2
+ import { M as CURRENCY, N as CURRENCY_SYMBOLS } from "../network-Cs9YqDJ1.cjs";
3
+ import { $a as fetchPrivyAppInfo, $i as TokenWithBalance, $n as useCurrency, $r as UseOptionalThorReturnType, $t as getHasV1SmartAccount, Aa as DomainsResponse, Ai as UseWalletReturnType, An as useEcosystemShortcuts, Ar as useNotificationsModal, At as useTransferVET, Ba as useSendTransaction, Bi as useIsPerson, Bn as getSmartAccountQueryKey, Br as useWalletModal, Bt as useCurrentBlock, Ca as useUpdateTextRecord, Ci as getXAppMetadata, Cn as estimateAndBuildTxBody, Cr as ReceiveModalProvider, Ct as useThor, Da as getAvatarQueryKey, Di as StoredWallet, Dn as useGenericDelegator, Dr as FAQModalProvider, Dt as BuildTransactionProps, Ea as useGetTextRecords, Ei as useSwitchWallet, En as signVip191Transaction, Er as useAccountCustomizationModal, Et as useTxReceipt, Fa as useIsDomainProtected, Fi as useRefreshBalances, Fn as buildBatchAuthorizationTypedData, Fr as SendTokenModalProvider, Ft as getEventLogs, Ga as UseOptionalWagmiAccountReturnType, Gi as getTokenUsdPrice, Gn as getEventsKey, Gr as AccountModalProvider, Gt as getUpgradeRequired, Ha as useEnsRecordExists, Hi as useGetVot3Balance, Hn as GetEventsKeyParams, Hr as useTransactionToast, Ht as getUpgradeRequiredForAccount, Ia as buildVetDomainClauses, Ii as MostVotedAppsInRoundReturnType, In as buildSingleAuthorizationTypedData, Ir as useSendTokenModal, It as getChainId, Ja as useOptionalPrivyCrossAppSdk, Ji as getErc20BalanceQueryKey, Jn as useIsPWA, Jr as useConnectModal, Jt as useRefreshSmartAccountQueries, Ka as useOptionalWagmiAccount, Ki as getTokenUsdPriceQueryKey, Kn as useEvents, Kr as useAccountModal, Kt as getUpgradeRequiredQueryKey, La as useClaimVetDomain, Li as XApp, Ln as useBuildClauses, Lr as ChooseNameModalProvider, Lt as getChainIdQueryKey, Ma as getDomainsOfAddressQueryKey, Mi as getRoundXAppsQueryKey, Mn as LocalStorageKey, Mr as useExploreEcosystemModal, Mt as useTransferERC20, Na as useGetDomainsOfAddress, Ni as useRoundXApps, Nn as useLocalStorage, Nr as SwapTokenModalProvider, Nt as GetEventsProps, Oa as useGetAvatar, Oi as useWalletStorage, On as useCrossAppConnectionCache, Or as useFAQModal, Ot as useBuildTransaction, Pa as getIsDomainProtectedQueryKey, Pi as useRefreshMetadata, Pn as BuildClausesParams, Pr as useSwapTokenModal, Pt as getAllEventLogs, Qa as useFetchPrivyStatus, Qi as useGetCustomTokenInfo, Qn as useCurrentLanguage, Qr as useOptionalDAppKitWallet, Qt as useIsSmartAccountDeployed, Ra as useClaimVeWorldSubdomain, Ri as useMostVotedAppsInRound, Rn as SmartAccountReturnType, Rr as useChooseNameModal, Rt as useGetChainId, Sa as buildClauses, Si as XAppMetadata, Sn as delegateAuthorized, Sr as useLoginModalContent, St as useSetWalletRecovery, Ta as getTextRecordsQueryKey, Ti as UseSwitchWalletReturnType, Tn as getDepositAccount, Tr as AccountCustomizationModalProvider, Tt as txReceiptQueryKey, Ua as getVechainDomainQueryKey, Ui as PRICE_FEED_IDS, Un as UseEventsParams, Ur as TransactionModalProvider, Ut as getUpgradeRequiredForAccountQueryKey, Va as getEnsRecordExistsQueryKey, Vi as getVot3BalanceQueryKey, Vn as useSmartAccount, Vr as TransactionToastProvider, Vt as useUpgradeSmartAccount, Wa as useVechainDomain, Wi as SupportedToken, Wn as decodeEventLog, Wr as useTransactionModal, Wt as useUpgradeRequiredForAccount, Xa as useOptionalPrivy, Xi as getCustomTokenInfoQueryKey, Xn as useFeatureAnnouncement, Xr as useOptionalDAppKitWalletModal, Xt as getIsDeployed, Ya as UseOptionalPrivyReturnType, Yi as useGetErc20Balance, Yn as useGetNodeUrl, Yr as UseOptionalDAppKitWalletModalReturnType, Yt as useRefreshFactoryQueries, Za as fetchPrivyStatus, Zi as getTokenInfo, Zn as useCurrentCurrency, Zr as UseOptionalDAppKitWalletReturnType, Zt as getIsDeployedQueryKey, _a as useGetAvatarLegacy, _i as getIpfsMetadata, _n as useEstimateAllTokens, _r as useAccountModalOptions, _t as ThorClient, aa as getCurrentAllocationsRoundIdQueryKey, ai as useSingleImageUpload, an as getAccountAddressQueryKey, ar as fetchAppHubApps, ba as getResolverAddressQueryKey, bi as getXAppsSharesQueryKey, bn as useGasTokenSelection, br as UpgradeSmartAccountModalProvider, bt as useMfaEnrollment, ca as TokenWithValue, ci as imageCompressionOptions, cn as getCurrentAccountImplementationVersionQueryKey, cr as useLoginWithVeChain, da as useTokenPrices, di as IpfsImage, dn as getAccountImplementationAddressQueryKey, dr as useSignTypedData, ea as getCustomTokenBalanceQueryKey, ei as useOptionalThor, en as getHasV1SmartAccountQueryKey, eo as getPrivyAppInfoQueryKey, er as getCallClauseQueryKey, fa as WalletTokenBalance, fi as MAX_IMAGE_SIZE, fn as useAccountImplementationAddress, fr as useSignMessage, ga as getAvatarLegacyQueryKey, gi as useIpfsImageList, gn as UseEstimateAllTokensParams, gr as useSettingsModal, ha as getAvatarLegacy, hi as useIpfsImage, hn as useAccountBalance, hr as SettingsModalProvider, ia as useCustomTokens, in as getAccountAddress, ir as AppHubApp, ja as getDomainsOfAddress, ji as useWallet, jn as useSyncableLocalStorage, jr as ExploreEcosystemModalProvider, jt as buildERC20Clauses, ka as Domain, ki as useWalletMetadata, kn as EcosystemShortcut, kr as NotificationsModalProvider, kt as buildVETClauses, la as useTokensWithValues, li as useUploadImages, ln as useCurrentAccountImplementationVersion, lr as useLoginWithOAuth, ma as useUnsetDomain, mi as getIpfsImageQueryKey, mn as getAccountBalanceQueryKey, mr as useNotifications, na as getB3trBalanceQueryKey, ni as useSwapTransaction, nn as getAccountVersionQueryKey, nr as useCallClause, oa as useCurrentAllocationsRoundId, oi as UploadedImage, on as useGetAccountAddress, or as getAppHubAppsQueryKey, pa as useTokenBalances, pi as getIpfsImage, pn as getAccountBalance, pr as useNotificationAlerts, qa as UseOptionalPrivyCrossAppSdkReturnType, qi as useGetTokenUsdPrice, qn as useScrollToTop, qr as ConnectModalProvider, qt as useUpgradeRequired, ra as useGetB3trBalance, rn as useGetAccountVersion, rr as useMultipleClausesCall, sa as useTotalBalance, si as compressImages, sn as getCurrentAccountImplementationVersion, sr as useAppHubApps, ta as useGetCustomTokenBalances, ti as useSwapQuotes, tn as useHasV1SmartAccount, to as useFetchAppInfo, tr as getCallClauseQueryKeyWithArgs, ua as ExchangeRates, ui as useIpfsMetadatas, un as getAccountImplementationAddress, ur as useLoginWithPasskey, va as getAvatarOfAddressQueryKey, vi as getIpfsMetadataQueryKey, vn as useGenericDelegatorFeeEstimation, vr as ProfileModalProvider, vt as useDAppKitWallet, wa as getTextRecords, wi as useXAppMetadata, wn as estimateGas, wr as useReceiveModal, wt as useGasEstimate, xa as useGetResolverAddress, xi as useXAppsShares, xn as decodeRawTx, xr as useUpgradeSmartAccountModal, xt as usePrivy, ya as useGetAvatarOfAddress, yi as useIpfsMetadata, yn as useGenericDelegatorFeeEstimationParams, yr as useProfileModal, yt as useDAppKitWalletModal, za as UseSendTransactionReturnValue, zi as getIsPersonQueryKey, zn as getSmartAccount, zr as WalletModalProvider, zt as currentBlockQueryKey } from "../index-C8wbz8af.cjs";
4
+ import { p as useLegalDocuments } from "../index-Bqw0Cz5n.cjs";
5
+ import { _ as executeMultipleClausesCall, f as MultipleClausesCallParameters, g as executeCallClause, h as buildCallClauses, m as ViewFunctionResult, p as MultipleClausesCallReturnType } from "../index-DVxlUr9t.cjs";
6
+ export { AccountCustomizationModalProvider, AccountModalProvider, AppHubApp, BuildClausesParams, BuildTransactionProps, CURRENCY, CURRENCY_SYMBOLS, ChooseNameModalProvider, ConnectModalProvider, Domain, DomainsResponse, EcosystemShortcut, ExchangeRates, ExploreEcosystemModalProvider, FAQModalProvider, GetEventsKeyParams, GetEventsProps, IpfsImage, LocalStorageKey, MAX_IMAGE_SIZE, MostVotedAppsInRoundReturnType, MultipleClausesCallParameters, MultipleClausesCallReturnType, NotificationsModalProvider, PRICE_FEED_IDS, ProfileModalProvider, ReceiveModalProvider, SendTokenModalProvider, SettingsModalProvider, SmartAccountReturnType, StoredWallet, SupportedToken, SwapTokenModalProvider, ThorClient, TokenWithBalance, TokenWithValue, TransactionModalProvider, TransactionToastProvider, UpgradeSmartAccountModalProvider, UploadedImage, UseEstimateAllTokensParams, UseEventsParams, UseOptionalDAppKitWalletModalReturnType, UseOptionalDAppKitWalletReturnType, UseOptionalPrivyCrossAppSdkReturnType, UseOptionalPrivyReturnType, UseOptionalThorReturnType, UseOptionalWagmiAccountReturnType, UseSendTransactionReturnValue, UseSwitchWalletReturnType, UseWalletReturnType, ViewFunctionResult, WalletModalProvider, WalletTokenBalance, XApp, XAppMetadata, buildBatchAuthorizationTypedData, buildCallClauses, buildClauses, buildERC20Clauses, buildSingleAuthorizationTypedData, buildVETClauses, buildVetDomainClauses, compressImages, currentBlockQueryKey, decodeEventLog, decodeRawTx, delegateAuthorized, estimateAndBuildTxBody, estimateGas, executeCallClause, executeMultipleClausesCall, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalanceQueryKey, getCustomTokenInfoQueryKey, getDepositAccount, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20BalanceQueryKey, getEventLogs, getEventsKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, signVip191Transaction, txReceiptQueryKey, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAccountModalOptions, useAppHubApps, useBuildClauses, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCurrentCurrency, useCurrentLanguage, useCustomTokens, useDAppKitWallet, useDAppKitWalletModal, useEcosystemShortcuts, useEnsRecordExists, useEstimateAllTokens, useEvents, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGasEstimate, useGasTokenSelection, useGenericDelegator, useGenericDelegatorFeeEstimation, useGenericDelegatorFeeEstimationParams, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMfaEnrollment, useMostVotedAppsInRound, useMultipleClausesCall, useNotificationAlerts, useNotifications, useNotificationsModal, useOptionalDAppKitWallet, useOptionalDAppKitWalletModal, useOptionalPrivy, useOptionalPrivyCrossAppSdk, useOptionalThor, useOptionalWagmiAccount, usePrivy, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSetWalletRecovery, useSettingsModal, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSwapQuotes, useSwapTokenModal, useSwapTransaction, useSwitchWallet, useSyncableLocalStorage, useThor, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useWalletStorage, useXAppMetadata, useXAppsShares };
@@ -0,0 +1,6 @@
1
+ import "../index-COoeacay.js";
2
+ import { M as CURRENCY, N as CURRENCY_SYMBOLS } from "../network-yA5VWcPq.js";
3
+ import { $a as fetchPrivyAppInfo, $i as TokenWithBalance, $n as useCurrency, $r as UseOptionalThorReturnType, $t as getHasV1SmartAccount, Aa as DomainsResponse, Ai as UseWalletReturnType, An as useEcosystemShortcuts, Ar as useNotificationsModal, At as useTransferVET, Ba as useSendTransaction, Bi as useIsPerson, Bn as getSmartAccountQueryKey, Br as useWalletModal, Bt as useCurrentBlock, Ca as useUpdateTextRecord, Ci as getXAppMetadata, Cn as estimateAndBuildTxBody, Cr as ReceiveModalProvider, Ct as useThor, Da as getAvatarQueryKey, Di as StoredWallet, Dn as useGenericDelegator, Dr as FAQModalProvider, Dt as BuildTransactionProps, Ea as useGetTextRecords, Ei as useSwitchWallet, En as signVip191Transaction, Er as useAccountCustomizationModal, Et as useTxReceipt, Fa as useIsDomainProtected, Fi as useRefreshBalances, Fn as buildBatchAuthorizationTypedData, Fr as SendTokenModalProvider, Ft as getEventLogs, Ga as UseOptionalWagmiAccountReturnType, Gi as getTokenUsdPrice, Gn as getEventsKey, Gr as AccountModalProvider, Gt as getUpgradeRequired, Ha as useEnsRecordExists, Hi as useGetVot3Balance, Hn as GetEventsKeyParams, Hr as useTransactionToast, Ht as getUpgradeRequiredForAccount, Ia as buildVetDomainClauses, Ii as MostVotedAppsInRoundReturnType, In as buildSingleAuthorizationTypedData, Ir as useSendTokenModal, It as getChainId, Ja as useOptionalPrivyCrossAppSdk, Ji as getErc20BalanceQueryKey, Jn as useIsPWA, Jr as useConnectModal, Jt as useRefreshSmartAccountQueries, Ka as useOptionalWagmiAccount, Ki as getTokenUsdPriceQueryKey, Kn as useEvents, Kr as useAccountModal, Kt as getUpgradeRequiredQueryKey, La as useClaimVetDomain, Li as XApp, Ln as useBuildClauses, Lr as ChooseNameModalProvider, Lt as getChainIdQueryKey, Ma as getDomainsOfAddressQueryKey, Mi as getRoundXAppsQueryKey, Mn as LocalStorageKey, Mr as useExploreEcosystemModal, Mt as useTransferERC20, Na as useGetDomainsOfAddress, Ni as useRoundXApps, Nn as useLocalStorage, Nr as SwapTokenModalProvider, Nt as GetEventsProps, Oa as useGetAvatar, Oi as useWalletStorage, On as useCrossAppConnectionCache, Or as useFAQModal, Ot as useBuildTransaction, Pa as getIsDomainProtectedQueryKey, Pi as useRefreshMetadata, Pn as BuildClausesParams, Pr as useSwapTokenModal, Pt as getAllEventLogs, Qa as useFetchPrivyStatus, Qi as useGetCustomTokenInfo, Qn as useCurrentLanguage, Qr as useOptionalDAppKitWallet, Qt as useIsSmartAccountDeployed, Ra as useClaimVeWorldSubdomain, Ri as useMostVotedAppsInRound, Rn as SmartAccountReturnType, Rr as useChooseNameModal, Rt as useGetChainId, Sa as buildClauses, Si as XAppMetadata, Sn as delegateAuthorized, Sr as useLoginModalContent, St as useSetWalletRecovery, Ta as getTextRecordsQueryKey, Ti as UseSwitchWalletReturnType, Tn as getDepositAccount, Tr as AccountCustomizationModalProvider, Tt as txReceiptQueryKey, Ua as getVechainDomainQueryKey, Ui as PRICE_FEED_IDS, Un as UseEventsParams, Ur as TransactionModalProvider, Ut as getUpgradeRequiredForAccountQueryKey, Va as getEnsRecordExistsQueryKey, Vi as getVot3BalanceQueryKey, Vn as useSmartAccount, Vr as TransactionToastProvider, Vt as useUpgradeSmartAccount, Wa as useVechainDomain, Wi as SupportedToken, Wn as decodeEventLog, Wr as useTransactionModal, Wt as useUpgradeRequiredForAccount, Xa as useOptionalPrivy, Xi as getCustomTokenInfoQueryKey, Xn as useFeatureAnnouncement, Xr as useOptionalDAppKitWalletModal, Xt as getIsDeployed, Ya as UseOptionalPrivyReturnType, Yi as useGetErc20Balance, Yn as useGetNodeUrl, Yr as UseOptionalDAppKitWalletModalReturnType, Yt as useRefreshFactoryQueries, Za as fetchPrivyStatus, Zi as getTokenInfo, Zn as useCurrentCurrency, Zr as UseOptionalDAppKitWalletReturnType, Zt as getIsDeployedQueryKey, _a as useGetAvatarLegacy, _i as getIpfsMetadata, _n as useEstimateAllTokens, _r as useAccountModalOptions, _t as ThorClient, aa as getCurrentAllocationsRoundIdQueryKey, ai as useSingleImageUpload, an as getAccountAddressQueryKey, ar as fetchAppHubApps, ba as getResolverAddressQueryKey, bi as getXAppsSharesQueryKey, bn as useGasTokenSelection, br as UpgradeSmartAccountModalProvider, bt as useMfaEnrollment, ca as TokenWithValue, ci as imageCompressionOptions, cn as getCurrentAccountImplementationVersionQueryKey, cr as useLoginWithVeChain, da as useTokenPrices, di as IpfsImage, dn as getAccountImplementationAddressQueryKey, dr as useSignTypedData, ea as getCustomTokenBalanceQueryKey, ei as useOptionalThor, en as getHasV1SmartAccountQueryKey, eo as getPrivyAppInfoQueryKey, er as getCallClauseQueryKey, fa as WalletTokenBalance, fi as MAX_IMAGE_SIZE, fn as useAccountImplementationAddress, fr as useSignMessage, ga as getAvatarLegacyQueryKey, gi as useIpfsImageList, gn as UseEstimateAllTokensParams, gr as useSettingsModal, ha as getAvatarLegacy, hi as useIpfsImage, hn as useAccountBalance, hr as SettingsModalProvider, ia as useCustomTokens, in as getAccountAddress, ir as AppHubApp, ja as getDomainsOfAddress, ji as useWallet, jn as useSyncableLocalStorage, jr as ExploreEcosystemModalProvider, jt as buildERC20Clauses, ka as Domain, ki as useWalletMetadata, kn as EcosystemShortcut, kr as NotificationsModalProvider, kt as buildVETClauses, la as useTokensWithValues, li as useUploadImages, ln as useCurrentAccountImplementationVersion, lr as useLoginWithOAuth, ma as useUnsetDomain, mi as getIpfsImageQueryKey, mn as getAccountBalanceQueryKey, mr as useNotifications, na as getB3trBalanceQueryKey, ni as useSwapTransaction, nn as getAccountVersionQueryKey, nr as useCallClause, oa as useCurrentAllocationsRoundId, oi as UploadedImage, on as useGetAccountAddress, or as getAppHubAppsQueryKey, pa as useTokenBalances, pi as getIpfsImage, pn as getAccountBalance, pr as useNotificationAlerts, qa as UseOptionalPrivyCrossAppSdkReturnType, qi as useGetTokenUsdPrice, qn as useScrollToTop, qr as ConnectModalProvider, qt as useUpgradeRequired, ra as useGetB3trBalance, rn as useGetAccountVersion, rr as useMultipleClausesCall, sa as useTotalBalance, si as compressImages, sn as getCurrentAccountImplementationVersion, sr as useAppHubApps, ta as useGetCustomTokenBalances, ti as useSwapQuotes, tn as useHasV1SmartAccount, to as useFetchAppInfo, tr as getCallClauseQueryKeyWithArgs, ua as ExchangeRates, ui as useIpfsMetadatas, un as getAccountImplementationAddress, ur as useLoginWithPasskey, va as getAvatarOfAddressQueryKey, vi as getIpfsMetadataQueryKey, vn as useGenericDelegatorFeeEstimation, vr as ProfileModalProvider, vt as useDAppKitWallet, wa as getTextRecords, wi as useXAppMetadata, wn as estimateGas, wr as useReceiveModal, wt as useGasEstimate, xa as useGetResolverAddress, xi as useXAppsShares, xn as decodeRawTx, xr as useUpgradeSmartAccountModal, xt as usePrivy, ya as useGetAvatarOfAddress, yi as useIpfsMetadata, yn as useGenericDelegatorFeeEstimationParams, yr as useProfileModal, yt as useDAppKitWalletModal, za as UseSendTransactionReturnValue, zi as getIsPersonQueryKey, zn as getSmartAccount, zr as WalletModalProvider, zt as currentBlockQueryKey } from "../index-BGQS0a81.js";
4
+ import { p as useLegalDocuments } from "../index-BugHmddr.js";
5
+ import { _ as executeMultipleClausesCall, f as MultipleClausesCallParameters, g as executeCallClause, h as buildCallClauses, m as ViewFunctionResult, p as MultipleClausesCallReturnType } from "../index-DI_IPiLX.js";
6
+ export { AccountCustomizationModalProvider, AccountModalProvider, AppHubApp, BuildClausesParams, BuildTransactionProps, CURRENCY, CURRENCY_SYMBOLS, ChooseNameModalProvider, ConnectModalProvider, Domain, DomainsResponse, EcosystemShortcut, ExchangeRates, ExploreEcosystemModalProvider, FAQModalProvider, GetEventsKeyParams, GetEventsProps, IpfsImage, LocalStorageKey, MAX_IMAGE_SIZE, MostVotedAppsInRoundReturnType, MultipleClausesCallParameters, MultipleClausesCallReturnType, NotificationsModalProvider, PRICE_FEED_IDS, ProfileModalProvider, ReceiveModalProvider, SendTokenModalProvider, SettingsModalProvider, SmartAccountReturnType, StoredWallet, SupportedToken, SwapTokenModalProvider, ThorClient, TokenWithBalance, TokenWithValue, TransactionModalProvider, TransactionToastProvider, UpgradeSmartAccountModalProvider, UploadedImage, UseEstimateAllTokensParams, UseEventsParams, UseOptionalDAppKitWalletModalReturnType, UseOptionalDAppKitWalletReturnType, UseOptionalPrivyCrossAppSdkReturnType, UseOptionalPrivyReturnType, UseOptionalThorReturnType, UseOptionalWagmiAccountReturnType, UseSendTransactionReturnValue, UseSwitchWalletReturnType, UseWalletReturnType, ViewFunctionResult, WalletModalProvider, WalletTokenBalance, XApp, XAppMetadata, buildBatchAuthorizationTypedData, buildCallClauses, buildClauses, buildERC20Clauses, buildSingleAuthorizationTypedData, buildVETClauses, buildVetDomainClauses, compressImages, currentBlockQueryKey, decodeEventLog, decodeRawTx, delegateAuthorized, estimateAndBuildTxBody, estimateGas, executeCallClause, executeMultipleClausesCall, fetchAppHubApps, fetchPrivyAppInfo, fetchPrivyStatus, getAccountAddress, getAccountAddressQueryKey, getAccountBalance, getAccountBalanceQueryKey, getAccountImplementationAddress, getAccountImplementationAddressQueryKey, getAccountVersionQueryKey, getAllEventLogs, getAppHubAppsQueryKey, getAvatarLegacy, getAvatarLegacyQueryKey, getAvatarOfAddressQueryKey, getAvatarQueryKey, getB3trBalanceQueryKey, getCallClauseQueryKey, getCallClauseQueryKeyWithArgs, getChainId, getChainIdQueryKey, getCurrentAccountImplementationVersion, getCurrentAccountImplementationVersionQueryKey, getCurrentAllocationsRoundIdQueryKey, getCustomTokenBalanceQueryKey, getCustomTokenInfoQueryKey, getDepositAccount, getDomainsOfAddress, getDomainsOfAddressQueryKey, getEnsRecordExistsQueryKey, getErc20BalanceQueryKey, getEventLogs, getEventsKey, getHasV1SmartAccount, getHasV1SmartAccountQueryKey, getIpfsImage, getIpfsImageQueryKey, getIpfsMetadata, getIpfsMetadataQueryKey, getIsDeployed, getIsDeployedQueryKey, getIsDomainProtectedQueryKey, getIsPersonQueryKey, getPrivyAppInfoQueryKey, getResolverAddressQueryKey, getRoundXAppsQueryKey, getSmartAccount, getSmartAccountQueryKey, getTextRecords, getTextRecordsQueryKey, getTokenInfo, getTokenUsdPrice, getTokenUsdPriceQueryKey, getUpgradeRequired, getUpgradeRequiredForAccount, getUpgradeRequiredForAccountQueryKey, getUpgradeRequiredQueryKey, getVechainDomainQueryKey, getVot3BalanceQueryKey, getXAppMetadata, getXAppsSharesQueryKey, imageCompressionOptions, signVip191Transaction, txReceiptQueryKey, useAccountBalance, useAccountCustomizationModal, useAccountImplementationAddress, useAccountModal, useAccountModalOptions, useAppHubApps, useBuildClauses, useBuildTransaction, useCallClause, useChooseNameModal, useClaimVeWorldSubdomain, useClaimVetDomain, useConnectModal, useCrossAppConnectionCache, useCurrency, useCurrentAccountImplementationVersion, useCurrentAllocationsRoundId, useCurrentBlock, useCurrentCurrency, useCurrentLanguage, useCustomTokens, useDAppKitWallet, useDAppKitWalletModal, useEcosystemShortcuts, useEnsRecordExists, useEstimateAllTokens, useEvents, useExploreEcosystemModal, useFAQModal, useFeatureAnnouncement, useFetchAppInfo, useFetchPrivyStatus, useGasEstimate, useGasTokenSelection, useGenericDelegator, useGenericDelegatorFeeEstimation, useGenericDelegatorFeeEstimationParams, useGetAccountAddress, useGetAccountVersion, useGetAvatar, useGetAvatarLegacy, useGetAvatarOfAddress, useGetB3trBalance, useGetChainId, useGetCustomTokenBalances, useGetCustomTokenInfo, useGetDomainsOfAddress, useGetErc20Balance, useGetNodeUrl, useGetResolverAddress, useGetTextRecords, useGetTokenUsdPrice, useGetVot3Balance, useHasV1SmartAccount, useIpfsImage, useIpfsImageList, useIpfsMetadata, useIpfsMetadatas, useIsDomainProtected, useIsPWA, useIsPerson, useIsSmartAccountDeployed, useLegalDocuments, useLocalStorage, useLoginModalContent, useLoginWithOAuth, useLoginWithPasskey, useLoginWithVeChain, useMfaEnrollment, useMostVotedAppsInRound, useMultipleClausesCall, useNotificationAlerts, useNotifications, useNotificationsModal, useOptionalDAppKitWallet, useOptionalDAppKitWalletModal, useOptionalPrivy, useOptionalPrivyCrossAppSdk, useOptionalThor, useOptionalWagmiAccount, usePrivy, useProfileModal, useReceiveModal, useRefreshBalances, useRefreshFactoryQueries, useRefreshMetadata, useRefreshSmartAccountQueries, useRoundXApps, useScrollToTop, useSendTokenModal, useSendTransaction, useSetWalletRecovery, useSettingsModal, useSignMessage, useSignTypedData, useSingleImageUpload, useSmartAccount, useSwapQuotes, useSwapTokenModal, useSwapTransaction, useSwitchWallet, useSyncableLocalStorage, useThor, useTokenBalances, useTokenPrices, useTokensWithValues, useTotalBalance, useTransactionModal, useTransactionToast, useTransferERC20, useTransferVET, useTxReceipt, useUnsetDomain, useUpdateTextRecord, useUpgradeRequired, useUpgradeRequiredForAccount, useUpgradeSmartAccount, useUpgradeSmartAccountModal, useUploadImages, useVechainDomain, useWallet, useWalletMetadata, useWalletModal, useWalletStorage, useXAppMetadata, useXAppsShares };
@@ -0,0 +1 @@
1
+ import{a as e}from"../VechainKitThemeProvider-Di9a04Es.js";import{C as t,n,r,t as i}from"../utils-B2Eg9TD3.js";import"../assets-CXk1qRDd.js";import"../ssrUtils-DSwxhTtm.js";import{A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,T as S,U as C,V as w,W as T,X as E,Y as D,Z as O,_ as k,a as A,c as j,d as M,f as N,g as P,h as F,i as I,j as L,k as R,l as z,m as B,o as V,p as H,q as U,s as W,tt as G,u as K,v as q,w as J,y as Y,z as X}from"../PrivyWalletProvider-DToo_u0W.js";import"../PrivyCrossAppProvider-B6oIXeWL.js";import{$ as Z,$n as Q,$t as $,A as ee,An as te,At as ne,B as re,Bn as ie,Bt as ae,C as oe,Cn as se,Ct as ce,D as le,Dn as ue,Dt as de,E as fe,En as pe,Et as me,F as he,Fn as ge,Ft as _e,G as ve,Gn as ye,Gt as be,H as xe,Hn as Se,Ht as Ce,I as we,In as Te,It as Ee,J as De,Jn as Oe,Jt as ke,K as Ae,Kn as je,Kt as Me,L as Ne,Ln as Pe,Lt as Fe,M as Ie,Mn as Le,Mt as Re,N as ze,Nn as Be,Nt as Ve,O as He,On as Ue,Ot as We,P as Ge,Pn as Ke,Pt as qe,Q as Je,Qn as Ye,Qt as Xe,R as Ze,Rn as Qe,Rt as $e,S as et,Sn as tt,St as nt,T as rt,Tn as it,Tt as at,U as ot,Un as st,Ut as ct,V as lt,Vn as ut,Vt as dt,W as ft,Wn as pt,Wt as mt,X as ht,Xn as gt,Xt as _t,Y as vt,Yn as yt,Yt as bt,Z as xt,Zn as St,Zt as Ct,_ as wt,_t as Tt,a as Et,an as Dt,ar as Ot,at as kt,b as At,bn as jt,bt as Mt,c as Nt,cn as Pt,cr as Ft,ct as It,d as Lt,dn as Rt,dr as zt,dt as Bt,en as Vt,er as Ht,et as Ut,f as Wt,fn as Gt,fr as Kt,ft as qt,g as Jt,gt as Yt,h as Xt,hn as Zt,hr as Qt,ht as $t,i as en,in as tn,ir as nn,it as rn,j as an,jn as on,jt as sn,k as cn,kn as ln,kt as un,l as dn,ln as fn,lr as pn,lt as mn,m as hn,mn as gn,mr as _n,mt as vn,n as yn,nn as bn,nr as xn,nt as Sn,o as Cn,on as wn,or as Tn,ot as En,p as Dn,pn as On,pr as kn,pt as An,q as jn,qn as Mn,qt as Nn,r as Pn,rn as Fn,rr as In,rt as Ln,s as Rn,sn as zn,sr as Bn,st as Vn,t as Hn,tn as Un,tr as Wn,tt as Gn,u as Kn,un as qn,ur as Jn,ut as Yn,v as Xn,vn as Zn,vt as Qn,w as $n,wn as er,wt as tr,x as nr,xn as rr,xt as ir,y as ar,yn as or,yt as sr,z as cr,zn as lr,zt as ur}from"../hooks-DuTew9oP.js";export{vn as AccountCustomizationModalProvider,qe as AccountModalProvider,t as CURRENCY_SYMBOLS,me as ChooseNameModalProvider,Ee as ConnectModalProvider,Mt as ExploreEcosystemModalProvider,Yt as FAQModalProvider,q as LocalStorageKey,Me as MAX_IMAGE_SIZE,Qn as NotificationsModalProvider,or as PRICE_FEED_IDS,Vn as ProfileModalProvider,qt as ReceiveModalProvider,tr as SendTokenModalProvider,rn as SettingsModalProvider,nt as SwapTokenModalProvider,Hn as ThorClient,Re as TransactionModalProvider,ne as TransactionToastProvider,mn as UpgradeSmartAccountModalProvider,We as WalletModalProvider,B as buildBatchAuthorizationTypedData,i as buildCallClauses,ye as buildClauses,Jt as buildERC20Clauses,F as buildSingleAuthorizationTypedData,hn as buildVETClauses,yt as buildVetDomainClauses,Ce as compressImages,At as currentBlockQueryKey,Kn as decodeEventLog,W as decodeRawTx,j as delegateAuthorized,z as estimateAndBuildTxBody,K as estimateGas,n as executeCallClause,r as executeMultipleClausesCall,ve as fetchAppHubApps,Kt as fetchPrivyAppInfo,Jn as fetchPrivyStatus,an as getAccountAddress,Ie as getAccountAddressQueryKey,Te as getAccountBalance,Pe as getAccountBalanceQueryKey,Ne as getAccountImplementationAddress,Ze as getAccountImplementationAddressQueryKey,d as getAccountVersionQueryKey,Xn as getAllEventLogs,Ae as getAppHubAppsQueryKey,ie as getAvatarLegacy,ut as getAvatarLegacyQueryKey,v as getAvatarOfAddressQueryKey,xn as getAvatarQueryKey,Ke as getB3trBalanceQueryKey,T as getCallClauseQueryKey,u as getCallClauseQueryKeyWithArgs,D as getChainId,E as getChainIdQueryKey,Ge as getCurrentAccountImplementationVersion,he as getCurrentAccountImplementationVersionQueryKey,Rt as getCurrentAllocationsRoundIdQueryKey,er as getCustomTokenBalanceQueryKey,ue as getCustomTokenInfoQueryKey,M as getDepositAccount,Ye as getDomainsOfAddress,Q as getDomainsOfAddressQueryKey,Ft as getEnsRecordExistsQueryKey,te as getErc20BalanceQueryKey,ar as getEventLogs,Lt as getEventsKey,I as getHasV1SmartAccount,A as getHasV1SmartAccountQueryKey,Nn as getIpfsImage,ke as getIpfsImageQueryKey,Ct as getIpfsMetadata,Xe as getIpfsMetadataQueryKey,He as getIsDeployed,cn as getIsDeployedQueryKey,Mn as getIsDomainProtectedQueryKey,fn as getIsPersonQueryKey,kn as getPrivyAppInfoQueryKey,st as getResolverAddressQueryKey,zn as getRoundXAppsQueryKey,X as getSmartAccount,o as getSmartAccountQueryKey,a as getTextRecords,L as getTextRecordsQueryKey,Ue as getTokenInfo,jt as getTokenUsdPrice,rr as getTokenUsdPriceQueryKey,rt as getUpgradeRequired,Ut as getUpgradeRequiredForAccount,Gn as getUpgradeRequiredForAccountQueryKey,fe as getUpgradeRequiredQueryKey,_ as getVechainDomainQueryKey,Le as getVot3BalanceQueryKey,Vt as getXAppMetadata,Dt as getXAppsSharesQueryKey,ct as imageCompressionOptions,N as signVip191Transaction,Tn as txReceiptQueryKey,Qe as useAccountBalance,$t as useAccountCustomizationModal,cr as useAccountImplementationAddress,_e as useAccountModal,En as useAccountModalOptions,jn as useAppHubApps,P as useBuildClauses,Dn as useBuildTransaction,m as useCallClause,de as useChooseNameModal,St as useClaimVeWorldSubdomain,gt as useClaimVetDomain,Fe as useConnectModal,x as useCrossAppConnectionCache,Zt as useCurrency,we as useCurrentAccountImplementationVersion,Gt as useCurrentAllocationsRoundId,nr as useCurrentBlock,ot as useCurrentCurrency,ft as useCurrentLanguage,pe as useCustomTokens,yn as useDAppKitWallet,Pn as useDAppKitWalletModal,Qt as useEcosystemShortcuts,pn as useEnsRecordExists,Nt as useEstimateAllTokens,Wt as useEvents,ir as useExploreEcosystemModal,Tt as useFAQModal,xe as useFeatureAnnouncement,_n as useFetchAppInfo,zt as useFetchPrivyStatus,Ot as useGasEstimate,k as useGasTokenSelection,H as useGenericDelegator,dn as useGenericDelegatorFeeEstimation,ze as useGetAccountAddress,C as useGetAccountVersion,In as useGetAvatar,Se as useGetAvatarLegacy,R as useGetAvatarOfAddress,ge as useGetB3trBalance,O as useGetChainId,it as useGetCustomTokenBalances,ln as useGetCustomTokenInfo,Ht as useGetDomainsOfAddress,on as useGetErc20Balance,p as useGetNodeUrl,pt as useGetResolverAddress,g as useGetTextRecords,tt as useGetTokenUsdPrice,Be as useGetVot3Balance,V as useHasV1SmartAccount,bt as useIpfsImage,_t as useIpfsImageList,$ as useIpfsMetadata,be as useIpfsMetadatas,Oe as useIsDomainProtected,lt as useIsPWA,qn as useIsPerson,ee as useIsSmartAccountDeployed,e as useLegalDocuments,Y as useLocalStorage,Bt as useLoginModalContent,vt as useLoginWithOAuth,ht as useLoginWithPasskey,De as useLoginWithVeChain,en as useMfaEnrollment,tn as useMostVotedAppsInRound,U as useMultipleClausesCall,Z as useNotificationAlerts,Ln as useNotifications,sr as useNotificationsModal,h as useOptionalDAppKitWallet,$e as useOptionalDAppKitWalletModal,G as useOptionalPrivy,l as useOptionalPrivyCrossAppSdk,b as useOptionalThor,f as useOptionalWagmiAccount,Et as usePrivy,It as useProfileModal,An as useReceiveModal,Fn as useRefreshBalances,$n as useRefreshFactoryQueries,Wn as useRefreshMetadata,oe as useRefreshSmartAccountQueries,Pt as useRoundXApps,re as useScrollToTop,at as useSendTokenModal,nn as useSendTransaction,Cn as useSetWalletRecovery,kt as useSettingsModal,Je as useSignMessage,xt as useSignTypedData,dt as useSingleImageUpload,w as useSmartAccount,ur as useSwapQuotes,ce as useSwapTokenModal,ae as useSwapTransaction,bn as useSwitchWallet,J as useSyncableLocalStorage,Rn as useThor,se as useTokenBalances,Zn as useTokenPrices,gn as useTokensWithValues,On as useTotalBalance,Ve as useTransactionModal,sn as useTransactionToast,wt as useTransferERC20,Xt as useTransferVET,Bn as useTxReceipt,lr as useUnsetDomain,je as useUpdateTextRecord,le as useUpgradeRequired,Sn as useUpgradeRequiredForAccount,et as useUpgradeSmartAccount,Yn as useUpgradeSmartAccountModal,mt as useUploadImages,y as useVechainDomain,S as useWallet,s as useWalletMetadata,un as useWalletModal,c as useWalletStorage,Un as useXAppMetadata,wn as useXAppsShares};
@@ -0,0 +1,8 @@
1
+ const e=require(`./chunk-DjWAcSYV.cjs`),t=require(`./VechainKitThemeProvider-BM5258oA.cjs`),n=require(`./utils-jW13BhAb.cjs`),r=require(`./assets-YPd7adzM.cjs`),i=require(`./ssrUtils-C_5ZY26i.cjs`),a=require(`./PrivyWalletProvider-BkqWSj75.cjs`),o=require(`./PrivyCrossAppProvider-DSuzrbqs.cjs`);let s=require(`react`);s=e.t(s);let c=require(`react/jsx-runtime`),l=require(`bignumber.js`),u=require(`ethers`),d=require(`@vechain/sdk-core`),f=require(`react-i18next`),p=require(`@tanstack/react-query`),m=require(`@privy-io/react-auth`),h=require(`@vechain/sdk-network`),g=require(`@vechain/dapp-kit-react`),_=require(`@vechain/vechain-contract-types`),v=require(`viem`),y=require(`@vechain/contract-getters`),b=require(`zod`),x=require(`browser-image-compression`);x=e.t(x);const S=()=>{let[e,t]=a.y(a.v.ECOSYSTEM_SHORTCUTS,[]);return{shortcuts:e,addShortcut:n=>{e.some(e=>e.url===n.url)||t([...e,n])},removeShortcut:n=>{t(e.filter(e=>e.url!==n))},isShortcut:t=>e.some(e=>e.url===t)}},C=async e=>{let t=new URL(`/api/v1/apps/${e}`,r.h),n=await fetch(t,{headers:{"privy-app-id":e}});if(!n.ok)throw Error(`Failed to fetch Privy app info`);return n.json()},w=e=>[`VECHAIN_KIT_PRIVY_APP_INFO`,...Array.isArray(e)?e:[e]],T=e=>{let t=Array.isArray(e)?e:[e];return(0,p.useQuery)({queryKey:w(e),queryFn:async()=>{let e=await Promise.all(t.map(e=>C(e)));return Object.fromEntries(e.map((e,r)=>{let i=t[r],a=n.Y.find(e=>e.id===i);return[i,{...e,website:a?.website}]}))},enabled:t.length>0,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},E=async()=>{try{let e=new URL(`summary.json`,r.g),t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch Privy status`);return(await t.json()).page.status??`No data`}catch(e){return console.error(`Error fetching data:`,e),`Error fetching data`}},D=()=>(0,p.useQuery)({queryKey:[`PRIVY_STATUS`],queryFn:E,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60}),O=async(e,t,r)=>{let i=(0,v.keccak256)((0,v.concat)([`0x571e15b4bbf879cf28e5075190137be8e18500e3d38543bf0cbcdb54e00b02cc`,(0,v.keccak256)((0,v.toBytes)(r))])),a=await e.contracts.load(n.ct(t).vetDomainsContractAddress,_.VetDomainsRegistry__factory.abi).read.recordExists(i);if(!a)throw Error(`Failed to get ENS record exists for ${r}`);return a[0]},k=e=>[`VECHAIN_KIT_ENS_RECORD_VE_WORLD_EXISTS`,e],A=e=>{let n=a.Q(),{network:r}=t.u();return(0,p.useQuery)({queryKey:k(e),queryFn:()=>O(n,r.type,e),enabled:!!n&&!!e,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},j=10*n.s.SECOND,M=e=>[`VECHAIN_KIT`,`TX_RECEIPT`,e],ee=(e,t=5)=>{let n=a.Q();return(0,p.useQuery)({queryKey:M(e),queryFn:async()=>{if(!n)throw Error(`Thor client not available`);let r=await n.transactions.waitForTransaction(e,{timeoutMs:t*j,intervalMs:3e3});if(!r)throw Error(`Transaction receipt not found`);return r},enabled:!!n&&!!e})},te=async(e,t,n,r)=>{let i=await e.transactions.estimateGas(t,n,r);if(i.reverted)throw Error(`Failed to estimate gas`);let a=i?.totalGas??0;return(!a||Number.isNaN(a))&&(a=0),Math.ceil(a)},N=({signerAccountAddress:e,clauses:n,onTxConfirmed:r,onTxFailedOrCancelled:i,suggestedMaxGas:o,privyUIOptions:c,gasPadding:l,delegationUrl:u})=>{let f=a.Q(),{signer:p,requestTransaction:m}=a.L(),{connection:h}=a.T(),{feeDelegation:g}=t.u(),_=a.J(),v=a.n(),y=(0,s.useCallback)(async(t,n,r)=>{let i=typeof t==`function`?await t():t??[];if(h.isConnectedWithPrivy){if(!v)throw Error(`Privy is not configured. Please configure the privy prop in VeChainKitContext to use this feature.`);return await v.sendTransaction({txClauses:i,...r,delegationUrl:n})}if(!e)throw Error(`signerAccountAddress is required`);let a=0;try{f&&(a=await te(f,[...i],e,{revision:d.Revision.NEXT,...l?{gasPadding:l}:{}}))}catch(e){console.error(`Gas estimation failed`,e)}return(await m(i,{signer:h.isConnectedWithDappKit&&!h.isInAppBrowser&&e?e:p.address,gas:o??a,...g?.delegateAllTransactions||n?{delegator:{url:n??g?.delegatorUrl??``,signer:e}}:{}})).txid},[e,o,_,v,c,g,f,p,l,u,m,h.isConnectedWithDappKit,h.isInAppBrowser]),[b,x]=(0,s.useState)(null),[S,C]=(0,s.useState)(!1),[w,T]=(0,s.useState)(null),E=(0,s.useCallback)(async(e,t)=>{if(!e&&!n)throw Error(`clauses are required`);try{x(null),C(!0),T(null),M(void 0),x(await y(e??[],t,{...c}))}catch(e){T(e&&typeof e==`object`&&`message`in e?e.message:String(e)),i?.(e instanceof Error?e:Error(String(e)))}finally{C(!1)}},[y,n,c,u]),{data:D,isLoading:O,error:k}=ee(b??``),A=(0,s.useCallback)(async e=>{if(!(!e.reverted||!e.meta.txID||!f))return await f.transactions.getRevertReason(e.meta.txID)},[f]),[j,M]=(0,s.useState)(),N=(0,s.useMemo)(()=>{if(S)return`pending`;if(w)return`error`;if(b){if(O)return`waitingConfirmation`;if(k)return`error`;if(D)return D.reverted?`error`:`success`}return`ready`},[O,w,S,b,D,k]);(0,s.useEffect)(()=>{if(N===`success`||N===`error`){if(w&&!j){M({type:`UserRejectedError`,reason:w});return}if(D?.reverted&&!j?.type){(async()=>{let e=await A(D);M({type:`RevertReasonError`,reason:e?`Transaction reverted with: `+e:`Transaction reverted`})})();return}D&&!D.reverted&&r?.()}},[N,D,r,A,w]);let P=(0,s.useCallback)(()=>{x(null),C(!1),T(null),M(void 0)},[]);return{sendTransaction:E,isTransactionPending:(0,s.useMemo)(()=>S||O||N===`pending`||N===`waitingConfirmation`,[S,O,N]),isWaitingForWalletConfirmation:(0,s.useMemo)(()=>N===`pending`,[S,N]),txReceipt:D??null,status:N,resetStatus:P,error:j}},P=(e,t)=>[`VECHAIN_KIT`,`VET_DOMAINS`,`AVATAR`,e,t],ne=e=>{let{network:n}=t.u();return(0,p.useQuery)({queryKey:P(e??``,n.type),queryFn:async()=>e?(0,y.getAvatar)(e,{networkUrl:n.nodeUrl}):null,enabled:!!e&&!!n.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},re=(e,n)=>{let r=(0,p.useQueryClient)(),{network:i}=t.u();return{refresh:async()=>{await Promise.all([r.invalidateQueries({queryKey:P(e??``,i.type)}),r.invalidateQueries({queryKey:a.j(e,i.type)}),r.invalidateQueries({queryKey:a.O(n)})])}}},ie=b.z.object({name:b.z.string()}),ae=b.z.object({domains:b.z.array(ie)}),oe=async(e,t,r)=>{if(!t)throw Error(`Address is required`);let i=n.ct(e).graphQlIndexerUrl,a=`query Registrations {
2
+ domains(
3
+ where: ${r?`{owner: "${t.toLowerCase()}", parent_: {name: "${r}"}}`:`{owner: "${t.toLowerCase()}"}`}
4
+ ) {
5
+ name
6
+ }
7
+ }`,o=await fetch(i,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({operationName:`Registrations`,query:a,extensions:{}})});if(!o.ok)throw Error(`Failed to fetch domains`);let s=await o.json();return s.data&&s.data.domains&&(s.data.domains=s.data.domains.filter(e=>!e.name.endsWith(`addr.reverse`))),ae.parse(s.data)},F=(e,t)=>[`VECHAIN_KIT`,`VET_DOMAINS`,e,t],se=(e,n)=>{let{network:r}=t.u();return(0,p.useQuery)({queryKey:F(e,n),queryFn:()=>oe(r.type,e,n),enabled:!!e&&!!r.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`address is required`)return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},I=async(e,t,n,r,i,o)=>{await Promise.all([e.invalidateQueries({queryKey:a.N(t)}),e.invalidateQueries({queryKey:a.N(n)}),e.invalidateQueries({queryKey:k(r)}),e.invalidateQueries({queryKey:F(t,`.vet`)}),e.invalidateQueries({queryKey:F(t,`.veworld.vet`)}),e.invalidateQueries({queryKey:a.j(n)})]),await Promise.all([e.refetchQueries({queryKey:a.N(t)}),e.refetchQueries({queryKey:a.N(n)}),e.refetchQueries({queryKey:F(t,`.vet`)}),e.refetchQueries({queryKey:F(t,`.veworld.vet`)}),e.refetchQueries({queryKey:P(r+`.`+i,o)}),e.refetchQueries({queryKey:a.j(n)}),e.refetchQueries({queryKey:k(r)}),e.refetchQueries({queryKey:a.O(t)})])},ce=_.VeworldSubdomainClaimer__factory.createInterface(),L=_.VetDomainsReverseRegistrar__factory.createInterface(),le=(e,t,r,i,a)=>{let o=[];if(!e)throw Error(`Invalid subdomain`);let s=`${e}.${t}`;if(o.push({to:n.ct(a.type).vetDomainsReverseRegistrarAddress,value:`0x0`,data:L.encodeFunctionData(`setName`,[``]),comment:`Unsetting your current VeChain nickname of the account ${n.W(i?.address??``,4,4)}`,abi:L.getFunction(`setName`)}),r){o.push({to:n.ct(a.type).vetDomainsReverseRegistrarAddress,value:`0x0`,data:L.encodeFunctionData(`setName`,[s]),comment:`Setting your VeChain nickname to ${s}`,abi:L.getFunction(`setName`)});let e=new u.ethers.Interface([`function setAddr(bytes32 node, address addr)`]),t=u.ethers.namehash(s);o.push({to:n.ct(a.type).vetDomainsPublicResolverAddress,value:`0x0`,data:e.encodeFunctionData(`setAddr`,[t,i?.address||``]),comment:`Setting the address for ${s} to ${n.W(i?.address??``,4,4)}`,abi:e.getFunction(`setAddr`)})}else if(de(t))o.push({to:n.ct(a.type).veWorldSubdomainClaimerContractAddress,value:`0x0`,data:ce.encodeFunctionData(`claim`,[e,n.ct(a.type).vetDomainsPublicResolverAddress]),comment:`Claim VeChain subdomain: ${e}.${t}`,abi:ce.getFunction(`claim`)}),o.push({to:n.ct(a.type).vetDomainsReverseRegistrarAddress,value:`0x0`,data:L.encodeFunctionData(`setName`,[e+`.`+t]),comment:`Set ${e}.${t} as the VeChain nickname of the account ${n.W(i?.address??``,4,4)}`,abi:L.getFunction(`setName`)});else throw Error(`This hook only supports .veworld.vet subdomains`);return o},ue=({subdomain:e,domain:n,onSuccess:r,onError:i,alreadyOwned:o=!1})=>{let c=(0,p.useQueryClient)(),{account:l}=a.T(),{network:u}=t.u(),{refresh:d}=re(e+`.`+n,l?.address??``),f=(0,s.useCallback)(()=>le(e,n,o,l,u),[e,n,o,l,u]),m=(0,s.useCallback)(async()=>{let t=`${e}.${n}`;await I(c,l?.address??``,t,e,n,u.type),d(),r?.()},[r,e,n,c,l,u.type,d]),h=N({signerAccountAddress:l?.address??``,privyUIOptions:{title:`Sign to claim your VeChain nickname`,description:`Claim ${e}.${n} as your VeChain nickname`,buttonText:`Sign to continue`},onTxConfirmed:m,onTxFailedOrCancelled:()=>{i?.()}});return{...h,clauses:f,sendTransaction:async()=>h.sendTransaction(f())}},de=e=>e.endsWith(`veworld.vet`),fe=_.VetDomainsReverseRegistrar__factory.createInterface(),pe=(e,t,r,i)=>{let a=[];if(!e)throw Error(`Invalid domain`);if(t){a.push({to:n.ct(i.type).vetDomainsReverseRegistrarAddress,value:`0x0`,data:fe.encodeFunctionData(`setName`,[e]),comment:`Setting your VeChain nickname to ${e}`,abi:fe.getFunction(`setName`)});let t=new u.ethers.Interface([`function setAddr(bytes32 node, address addr)`]),o=u.ethers.namehash(e);a.push({to:n.ct(i.type).vetDomainsPublicResolverAddress,value:`0x0`,data:t.encodeFunctionData(`setAddr`,[o,r?.address||``]),comment:`Setting the address for ${e} to ${n.W(r?.address??``,4,4)}`,abi:t.getFunction(`setAddr`)})}else throw Error(`Primary .vet domains are not supported yet`);return a},me=({domain:e,onSuccess:n,onError:r,alreadyOwned:i=!1})=>{let{network:o}=t.u(),c=(0,p.useQueryClient)(),{account:l}=a.T(),{refresh:u}=re(e,l?.address??``),d=(0,s.useCallback)(()=>pe(e,i,l,o),[e,i,l,o]),f=(0,s.useCallback)(async()=>{await I(c,l?.address??``,e,``,e.endsWith(`.vet`)?e:`${e}.vet`,o.type),u(),n?.()},[n,e,c,l,o.type,u]),m=N({signerAccountAddress:l?.address??``,privyUIOptions:{title:`Sign to claim your VeChain nickname`,description:`Claim ${e} as your VeChain nickname`,buttonText:`Sign to continue`},onTxConfirmed:f,onTxFailedOrCancelled:r});return{...m,clauses:d,sendTransaction:async()=>m.sendTransaction(d())}},he=e=>[`VECHAIN_KIT_DOMAIN`,e,`IS_DOMAIN_PROTECTED`],ge=d.ABIContract.ofAbi(_.VeworldSubdomainClaimer__factory.abi),_e=async(e,t,r)=>{let i=n.ct(t).veWorldSubdomainClaimerContractAddress;return(await e.contracts.load(i,ge.abi).read.isDomainProtected(r))[0]},ve=(e,n=!0)=>{let r=a.Q(),{network:i}=t.u();return(0,p.useQuery)({queryKey:he(e),queryFn:()=>_e(r,i.type,e),enabled:!!r&&!!e&&n&&!!i.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},ye=new u.Interface([`function resolver(bytes32 node) returns (address resolverAddress)`,`function setText(bytes32 node, string key, string value) external`]),be=(e,t)=>{let n=[];for(let{domain:r,key:i,value:a}of t){if(!r)throw Error(`Domain is required`);if(!e)throw Error(`Resolver address is required`);let t=(0,u.namehash)(r);n.push({to:e,data:ye.encodeFunctionData(`setText`,[t,i,a]),value:`0`,comment:`Update ${i} record`})}return n},xe=({onSuccess:e,onError:t,signerAccountAddress:n,resolverAddress:r}={})=>{let i=(0,s.useCallback)(e=>{if(!r)throw Error(`Resolver address is required`);return be(r,e)},[r]),a=N({signerAccountAddress:n,onTxConfirmed:async()=>{await e?.()},onTxFailedOrCancelled:async()=>{await t?.()},privyUIOptions:{title:`Update Profile Information`,description:`Update the profile information associated with your domain`,buttonText:`Sign to continue`}});return{...a,clauses:i,sendTransaction:async e=>a.sendTransaction(i(e))}},Se=e=>[`VECHAIN_KIT`,`RESOLVER_ADDRESS`,e],Ce=e=>{let{network:r}=t.u();return a.K({address:n.ct(r.type).vetDomainsContractAddress,abi:_.VetDomainsRegistry__factory.abi,method:`resolver`,args:[e?(0,v.namehash)(e):`0x`],queryOptions:{select:e=>e[0],enabled:!!e}})},R=new u.Interface([`function resolver(bytes32 node) returns (address resolverAddress)`,`function text(bytes32 node, string key) returns (string avatar)`]),we=new u.Interface([`function tokenURI(uint256 tokenId) view returns (string)`,`function uri(uint256 id) view returns (string)`]),Te=async(e,t,r)=>{if(!r)throw Error(`Name is required`);let i=(0,u.namehash)(r);try{let r=new URL(`accounts/*`,t),[{data:a,reverted:o}]=await(await fetch(r,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({clauses:[{to:n.ct(e).vetDomainsContractAddress,data:R.encodeFunctionData(`resolver`,[i])}]})})).json();if(o)return null;let{resolverAddress:s}=R.decodeFunctionResult(`resolver`,a),[{data:c,reverted:l}]=await(await fetch(r,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({clauses:[{to:s,data:R.encodeFunctionData(`text`,[i,`avatar`])}]})})).json();if(l||c===`0x`)return null;try{let{avatar:n}=R.decodeFunctionResult(`text`,c),r=n===``?null:n;return r?De(r,e,t):null}catch(e){return console.error(`Failed to decode avatar data:`,e),null}}catch(e){throw console.error(`Error fetching avatar using legacy API:`,e),e}},Ee=(e,t)=>[`VECHAIN_KIT`,`VET_DOMAINS`,`AVATAR`,`LEGACY`,e,t];async function De(e,t,r){try{if(e.startsWith(`http`)||e.startsWith(`ipfs://`)||e.startsWith(`ar://`))return n.g(e,t)||null;let i=e.match(/eip155:(\d+)\/(?:erc721|erc1155):([^/]+)\/(\d+)/);if(i){let[,a,o,s]=i,c=e.includes(`erc1155`);if(!a||!o||s===void 0)return null;let l=[{to:o,data:we.encodeFunctionData(c?`uri`:`tokenURI`,[BigInt(s||0)])}],d=new URL(`accounts/*`,r),[{data:f,reverted:p}]=await fetch(d,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({clauses:l})}).then(e=>e.json());if(p)return console.error(`Failed to fetch tokenURI`),null;let m=``;try{m=we.decodeFunctionResult(c?`uri`:`tokenURI`,f)[0]}catch(e){console.error(`Failed to decode avatar data:`,e),m=(0,u.toUtf8String)(f)}m=n.g(m,t)||m,c&&(m=m.replace(`{id}`,(0,u.zeroPadValue)((0,u.toBeHex)(BigInt(s||0)),32).slice(2)));let h=await fetch(m);if(!h.ok)return console.error(`Failed to fetch metadata`),null;let g=await h.json(),_=g.image||g.image_url||g.image_data;return _?n.g(_,t)||_:(console.error(`No image URL in metadata`),null)}return null}catch(e){return console.error(`Error parsing avatar record:`,e),null}}const Oe=e=>{let{network:r}=t.u(),i=r.nodeUrl??n.ct(r.type).nodeUrl;return(0,p.useQuery)({queryKey:Ee(e??``,r.type),queryFn:async()=>e?Te(r.type,i,e):null,enabled:!!e&&!!i&&!!r.type})},ke=_.VetDomainsReverseRegistrar__factory.createInterface(),Ae=(e,t)=>{let r=[];return r.push({to:n.ct(t.type).vetDomainsReverseRegistrarAddress,value:`0x0`,data:ke.encodeFunctionData(`setName`,[``]),comment:`Unsetting your current VeChain nickname of the account ${n.W(e?.address??``,4,4)}`,abi:ke.getFunction(`setName`)}),r},je=({onSuccess:e,onError:n})=>{let r=(0,p.useQueryClient)(),{account:i}=a.T(),{network:o}=t.u(),c=(0,s.useCallback)(()=>Ae(i,o),[i,o]),l=(0,s.useCallback)(async()=>{await I(r,i?.address??``,``,``,``,o.type),e?.()},[e,r,i,o.type]),u=N({signerAccountAddress:i?.address??``,privyUIOptions:{title:`Sign to unset your VeChain nickname`,description:`Unset your current VeChain nickname`,buttonText:`Sign to continue`},onTxConfirmed:l,onTxFailedOrCancelled:n});return{...u,clauses:c,sendTransaction:async()=>u.sendTransaction(c())}},Me=async(e,t)=>{if(!t)throw Error(`Address is required`);let n=await e.accounts.getAccount(d.Address.of(t));return{balance:(0,v.formatEther)(BigInt(n.balance)).toString(),energy:(0,v.formatEther)(BigInt(n.energy)).toString()}},Ne=e=>[`VECHAIN_KIT_BALANCE`,e],Pe=e=>{let t=a.Q();return(0,p.useQuery)({queryKey:Ne(e),queryFn:()=>Me(t,e),enabled:!!t&&!!e&&d.Address.isValid(e),refetchInterval:1e4})},Fe=e=>[`VEBETTERDAO_BALANCE`,e,`B3TR`],Ie=e=>{let{network:r}=t.u();return(0,p.useQuery)({queryKey:Fe(e),queryFn:async()=>{if(!e)throw Error(`Address is required`);let t=await(0,y.getB3trBalance)(e,{networkUrl:r.nodeUrl});if(!t)throw Error(`Failed to get b3tr balance`);let i=t[0];return n.H(i)},enabled:!!e&&!!r.type})},Le=e=>[`VEBETTERDAO_BALANCE`,e,`VOT3`],Re=e=>{let{network:r}=t.u();return(0,p.useQuery)({queryKey:Le(e),queryFn:async()=>{if(!e)throw Error(`Address is required`);let t=await(0,y.getVot3Balance)(e,{networkUrl:r.nodeUrl});if(!t)throw Error(`Failed to get vot3 balance`);let i=t[0];return n.H(i)},enabled:!!e&&!!r.type})},ze=(e,t)=>[`VECHAIN_KIT`,`BALANCE`,`ERC20`,e,t],z=(e,r)=>{let{network:i}=t.u();return(0,p.useQuery)({queryKey:ze(e,r),queryFn:async()=>{if(!r)throw Error(`Address is required`);let t=await(0,y.getErc20Balance)(e,r,{networkUrl:i.nodeUrl});if(!t)throw Error(`Failed to get vot3 balance`);let a=t[0];return n.H(a)},enabled:!!r&&!!i.type})},B=async(e,t)=>(0,y.getTokenInfo)(e,{networkUrl:t}),Be=e=>[`VECHAIN_KIT_CUSTOM_TOKEN_INFO`,e],V=e=>{let{network:n}=t.u();return(0,p.useQuery)({queryKey:Be(e),queryFn:async()=>{if(!e)throw Error(`Token address is required`);if(!n.nodeUrl)throw Error(`Network node URL is required`);return B(e,n.nodeUrl)},enabled:!!n.type&&!!e,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`token address is required`||e===`network node url is required`)return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},Ve=()=>{let[e,r]=a.y(a.v.CUSTOM_TOKENS,[]),{network:i}=t.u(),o=async t=>{if(!c(t)&&!l(t)){if(!i.nodeUrl)throw Error(`Network node URL is required`);let n={...await B(t,i.nodeUrl),address:t};r([...e,n])}},s=t=>{r(e.filter(e=>e.address!==t))},c=t=>e.some(e=>n.k(e.address,t)),l=e=>{let t={vet:`0x`,vtho:n.ct(i.type).vthoContractAddress,b3tr:n.ct(i.type).b3trContractAddress,vot3:n.ct(i.type).vot3ContractAddress,veDelegate:n.ct(i.type).veDelegate};return Object.values(t).includes(e)};return{customTokens:e,addToken:o,removeToken:s,isTokenIncluded:c,isDefaultToken:l}},He=(e,t)=>[`VECHAIN_KIT_BALANCE`,t,`CUSTOM_TOKEN`,e],Ue=e=>{let{network:r}=t.u(),{customTokens:i}=Ve();return(0,p.useQueries)({queries:i.map(t=>({queryKey:He(t.address,e),queryFn:async()=>{if(!t.address)throw Error(`Token address is required`);if(!e)throw Error(`Address is required`);if(!r.nodeUrl)throw Error(`Network node URL is required`);let i=await(0,y.getErc20Balance)(t.address,e,{networkUrl:r.nodeUrl});if(!i)throw Error(`Failed to get token balance`);let a=n.H(i[0]);return{...t,...a}}}))})},H=e=>{let{network:r}=t.u(),i=n.ct(r.type),{data:a,isLoading:o}=Pe(e),{data:c,isLoading:l}=Ie(e),{data:u,isLoading:d}=Re(e),{data:f,isLoading:p}=z(i.veDelegateTokenContractAddress,e),{data:m,isLoading:h}=z(i.gloDollarContractAddress,e),g=Ue(e),_=g.map(e=>e.data).filter(Boolean),v=g.some(e=>e.isLoading);return{balances:(0,s.useMemo)(()=>{if(!e)return[];let t={vet:`0x`,vtho:i.vthoContractAddress,b3tr:i.b3trContractAddress,vot3:i.vot3ContractAddress,veDelegate:i.veDelegate,USDGLO:i.gloDollarContractAddress},n=[{address:t.vet,symbol:`VET`,balance:a?.balance||`0`},{address:t.vtho,symbol:`VTHO`,balance:a?.energy||`0`},{address:t.b3tr,symbol:`B3TR`,balance:c?.scaled??`0`},{address:t.vot3,symbol:`VOT3`,balance:u?.scaled??`0`},{address:t.veDelegate,symbol:`veDelegate`,balance:f?.scaled??`0`},{address:t.USDGLO,symbol:`USDGLO`,balance:m?.scaled??`0`}],r=_.map(e=>({address:e?.address||``,symbol:e?.symbol||``,balance:e?.scaled||`0`}));return[...n,...r]},[e,a,c,u,f,m,_,r.type]),isLoading:o||l||d||p||h||v}},We={B3TR:`0x623374722d757364000000000000000000000000000000000000000000000000`,VET:`0x7665742d75736400000000000000000000000000000000000000000000000000`,VTHO:`0x7674686f2d757364000000000000000000000000000000000000000000000000`,GBP:`0x6762702d75736400000000000000000000000000000000000000000000000000`,EUR:`0x657572742d757364000000000000000000000000000000000000000000000000`},Ge=async(e,t,r)=>{let i=await e.contracts.load(n.ct(r).oracleContractAddress,_.OracleVechainEnergy__factory.abi).read.getLatestValue(We[t]);if(!i)throw Error(`Failed to get price of ${t}`);return new l.BigNumber(i[0].toString()).div(0xe8d4a51000).toNumber()},Ke=e=>[`VECHAIN_KIT_PRICE`,e],U=e=>{let n=a.Q(),{network:r}=t.u();return(0,p.useQuery)({queryKey:Ke(e),queryFn:async()=>Ge(n,e,r.type),enabled:!!n&&!!r.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`))return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},qe=()=>{let{network:e}=t.u(),r=n.ct(e.type),{data:i,isLoading:a}=U(`VET`),{data:o,isLoading:c}=U(`VTHO`),{data:l,isLoading:u}=U(`B3TR`),{data:d,isLoading:f}=U(`EUR`),{data:p,isLoading:m}=U(`GBP`);return{prices:(0,s.useMemo)(()=>{let e={vet:`0x`,vtho:r.vthoContractAddress,b3tr:r.b3trContractAddress,vot3:r.vot3ContractAddress,veDelegate:r.veDelegate,USDGLO:r.gloDollarContractAddress};return{[e.vet]:i||0,[e.vtho]:o||0,[e.b3tr]:l||0,[e.vot3]:l||0,[e.veDelegate]:l||0,[e.USDGLO]:1}},[i,o,l,r.vthoContractAddress,r.b3trContractAddress,r.vot3ContractAddress,r.veDelegate,r.gloDollarContractAddress]),exchangeRates:(0,s.useMemo)(()=>({eurUsdPrice:d||1,gbpUsdPrice:p||1}),[d,p]),isLoading:a||c||u||f||m}},Je=(e,t,n)=>{switch(t){case`eur`:return e/n.eurUsdPrice;case`gbp`:return e/n.gbpUsdPrice;default:return e}},Ye=(e,t=`en`,n)=>{let r={style:`currency`,minimumFractionDigits:2,maximumFractionDigits:2,currency:n?.currency??`usd`,...n};return new Intl.NumberFormat(a.nt[t],r).format(e)},Xe=(e,t)=>Ye(e,a.rt.resolvedLanguage,{notation:`compact`,compactDisplay:`short`,currency:t?.currency??`usd`,...t}),Ze=`vechain_kit_currency`,Qe=[`usd`,`eur`,`gbp`],$e=()=>{let{currentCurrency:e,setCurrency:n}=t.u();return(0,s.useEffect)(()=>{i.d(`vechain_kit_currency`,e)},[e]),{currentCurrency:e,allCurrencies:Qe,changeCurrency:e=>{if(!Qe.includes(e)){console.error(`Invalid currency: ${e}`);return}n(e)}}},et=({address:e=``})=>{let{balances:t,isLoading:n}=H(e),{prices:r,exchangeRates:i,isLoading:a}=qe(),{currentCurrency:o}=$e(),c=(0,s.useMemo)(()=>t.map(e=>{let t=r[e.address]||0,n=Number(e.balance)*t,a=Je(n,o,i);return{...e,priceUsd:t,valueUsd:n,valueInCurrency:a}}),[t,r,o,i]),l=(0,s.useMemo)(()=>[...c].sort((e,t)=>t.valueInCurrency-e.valueInCurrency),[c]);return{tokens:c,sortedTokens:l,tokensWithBalance:(0,s.useMemo)(()=>l.filter(e=>Number(e.balance)>0),[l]),isLoading:n||a}},tt=({address:e=``})=>{let{tokensWithBalance:t,isLoading:n}=et({address:e}),{currentCurrency:r}=$e(),i=(0,s.useMemo)(()=>t.reduce((e,t)=>e+t.valueInCurrency,0),[t]);return{totalBalanceInCurrency:i,totalBalanceUsd:(0,s.useMemo)(()=>t.reduce((e,t)=>e+t.valueUsd,0),[t]),formattedBalance:(0,s.useMemo)(()=>Xe(i,{currency:r}),[i,r]),isLoading:n,hasAnyBalance:t.length>0}},nt=_.XAllocationVoting__factory.abi,rt=`currentRoundId`,it=e=>a.W({abi:nt,address:e,method:rt}),at=()=>{let{network:e}=t.u(),r=n.ct(e.type).xAllocationVotingContractAddress;return a.K({abi:nt,address:r,method:rt,args:[],queryOptions:{select:e=>e[0].toString()}})},ot=(e,t)=>[`VECHAIN_KIT`,`IS_PERSON`,e,t],st=e=>{let{network:n}=t.u();return(0,p.useQuery)({queryKey:ot(e??``,n.type),queryFn:async()=>{if(!e)throw Error(`User address is required`);return(0,y.getIsPerson)(e,{networkUrl:n.nodeUrl})},enabled:!!e&&!!n.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`user address is required`)return!1}return e<2},gcTime:1e3*60*5,staleTime:1e3*60})},ct=_.XAllocationVoting__factory.abi,lt=`getAppsOfRound`,ut=(e,t)=>a.G({abi:ct,address:n.ct(t).xAllocationVotingContractAddress,method:lt,args:[BigInt(e??0)]}),dt=e=>{let{network:r}=t.u(),i=n.ct(r.type).xAllocationVotingContractAddress;return a.K({abi:ct,address:i,method:lt,args:[BigInt(e??0)],queryOptions:{enabled:!!e,select:e=>e[0].map(e=>({id:e.id.toString(),teamWalletAddress:e.teamWalletAddress,name:e.name,metadataURI:e.metadataURI,createdAtTimestamp:e.createdAtTimestamp.toString()}))}})},ft=_.XAllocationPool__factory.abi,pt=`getAppShares`,mt=e=>[`VECHAIN_KIT`,`XApps`,`Shares`,e],ht=(e,r)=>{let i=a.Q(),{network:o}=t.u(),s=n.ct(o.type).xAllocationPoolContractAddress;return(0,p.useQuery)({queryKey:mt(r),queryFn:async()=>{if(!i)throw Error(`Thor client not available`);return(await n.r({thor:i,calls:e.map(e=>({abi:ft,functionName:`getAppShares`,address:s,args:[r,e]}))})).map((t,n)=>({app:e[n],share:Number(t[0]||0)/100,unallocatedShare:Number(t[1]||0)/100}))},enabled:!!i&&!!r&&!!e.length})},gt=e=>{let{data:t}=dt(e),n=ht(t?.map(e=>e.id)??[],e);return{data:(0,s.useMemo)(()=>n.data?.map(e=>({percentage:e.share+e.unallocatedShare,id:t?.find(t=>t.id===e.app)?.id??``,app:t?.find(t=>t.id===e.app)??{}})).sort((e,t)=>Number(t.percentage)-Number(e.percentage))??[],[n.data,t]),isLoading:n.isLoading}},_t=()=>{let e=(0,p.useQueryClient)(),{account:t}=a.T();return{refresh:async()=>{let n=t?.address??``;await Promise.all([e.invalidateQueries({queryKey:[`VECHAIN_KIT_BALANCE`,n]}),e.invalidateQueries({queryKey:[`VECHAIN_KIT_PRICE`]})])}}},vt=()=>{let{switchWallet:e}=a.L(),{connection:t}=a.T(),[n,r]=(0,s.useState)(!1),{getStoredWallets:o,setActiveWallet:c,removeWallet:l}=a.E(),u=t.isInAppBrowser;return{switchWallet:(0,s.useCallback)(async()=>{if(u){if(!e)return;r(!0);try{await e()}catch{}finally{r(!1)}}else return Promise.resolve()},[e,u]),isSwitching:n,getStoredWallets:o,setActiveWallet:(0,s.useCallback)(e=>{c(e),i.o()&&window.dispatchEvent(new CustomEvent(`wallet_switched`,{detail:{address:e}}))},[c]),removeWallet:l,isInAppBrowser:u}},yt=async(e,t)=>{let r=n.g(e,t)||``,i=await fetch(r,{signal:AbortSignal.timeout(2e4)});if(!i.ok)throw Error(`HTTP error! status: ${i.status}`);return await i.json()},bt=_.X2EarnApps__factory.abi,xt=e=>{let r=a.Q(),{network:i}=t.u();return(0,p.useQuery)({queryKey:[`xAppMetaData`,e],queryFn:async()=>{if(!r)throw Error(`Thor client not available`);let t=n.ct(i.type).x2EarnAppsContractAddress,a=r.contracts.load(t,bt),o=(await a.read.app(e))[0][3]?.toString()||``,[s]=await a.read.baseURI();return await yt(`${s}${o}`,i.type)},enabled:!!r&&!!e})},St=async(e,t,r=!1)=>{if(!t)throw Error(`No URI provided`);let i=n.g(t,e);if(!i)throw Error(`Invalid URI`);let a=await(await fetch(i,{headers:{"X-Project-Id":`vechain-kit`}})).text();return r?JSON.parse(a):a},Ct=(e,t)=>[`VECHAIN_KIT`,`IPFS_METADATA`,e,t],wt=(e,n=!1)=>{let{network:r}=t.u();return(0,p.useQuery)({queryKey:Ct(r.type,e),queryFn:()=>St(r.type,e,n),enabled:!!e&&!!r.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`no uri provided`||e===`invalid uri`)return!1}return e<2},staleTime:1/0})},Tt=1024*1024*10,W=async(e,t)=>{if(!t)throw Error(`IPFS URI is required`);let r=await fetch(n.g(t,e)??``,{headers:{"X-Project-Id":`vechain-kit`}});if(!r.ok)throw Error(`HTTP error! status: ${r.status}`);let i=await r.blob();if(![`image/jpeg`,`image/jpg`,`image/png`,`image/gif`,`image/bmp`,`image/tiff`,`image/webp`,`image/svg+xml`].includes(i.type))throw Error(`Unsupported MIME type: ${i.type}`);if(i.size>Tt)throw Error(`Image size exceeds maximum allowed size`);return new Promise((e,t)=>{let r=new FileReader;r.readAsDataURL(i),r.onloadend=()=>{e({image:r.result,mime:i.type,mediaType:n._(i.type)})},r.onerror=()=>{t(Error(`Error occurred while reading blob.`))}})},Et=(e,t)=>[`VECHAIN_KIT`,`IPFS_IMAGE`,e,t],Dt=e=>{let{network:n}=t.u();return(0,p.useQuery)({queryKey:Et(n.type,e),queryFn:()=>W(n.type,e),enabled:!!e&&!!n.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`ipfs uri is required`)return!1}return e<2},staleTime:1/0})},Ot=e=>{let{network:n}=t.u();return(0,p.useQueries)({queries:e.map(e=>({queryKey:Et(n.type,e),queryFn:()=>W(n.type,e),enabled:!!e&&!!n.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`ipfs uri is required`)return!1}return e<2},staleTime:1/0}))})},kt=(e,n=!1)=>{let{network:r}=t.u();return(0,p.useQueries)({queries:e.map(e=>({queryKey:Ct(r.type,e),queryFn:async()=>St(r.type,e,n),enabled:!!e&&!!r.type,retry:(e,t)=>{if(t instanceof Error){let e=t.message.toLowerCase();if(e.includes(`cancel`)||e.includes(`abort`)||e===`no uri provided`||e===`invalid uri`)return!1}return e<2},staleTime:1/0}))})},G={maxSizeMB:.4,maxWidthOrHeight:1920,useWebWorker:!0},At=async e=>{let t=[];try{for(let n of e){let e=await(0,x.default)(n.file,G);t.push(e)}return t}catch(e){throw console.error(`compress error`,e),e}},jt=({compressImages:e,defaultImages:t})=>{let[n,r]=(0,s.useState)(t??[]);(0,s.useEffect)(()=>{t&&r(t)},[t]);let[i,a]=(0,s.useState)([]),o=(0,s.useCallback)(e=>r(t=>t.filter((t,n)=>n!==e)),[]);return{uploadedImages:n,setUploadedImages:r,onUpload:(0,s.useCallback)(async(t,n=!0)=>{a([]);let i=[];for(let n of t){let t=n;e&&(t=await(0,x.default)(n,G));let r={file:t,image:URL.createObjectURL(n)};i.push(r)}r(e=>[...i,...n?e.filter(e=>!i.some(t=>t.file.name===e.file.name)):[]])},[e]),onRemove:o,invalidDateError:i}},Mt=({compressImage:e,defaultImage:t})=>{let[n,r]=(0,s.useState)(t);(0,s.useEffect)(()=>{t&&r(t)},[t]);let i=(0,s.useCallback)(()=>r(void 0),[]);return{uploadedImage:n,setUploadedImage:r,onUpload:(0,s.useCallback)(async t=>{let n=t;e&&(n=await(0,x.default)(n,G));let i={file:n,image:URL.createObjectURL(n)};return r(i),i},[e]),onRemove:i}},Nt=(e,t)=>{let{account:n}=a.T(),{t:r}=(0,f.useTranslation)(),{sendTransaction:i,isTransactionPending:o,isWaitingForWalletConfirmation:c,txReceipt:l,status:u,resetStatus:d,error:p}=N({signerAccountAddress:n?.address??``,privyUIOptions:{title:r(`ConfirmSwapTitle`,{defaultValue:`Confirm Swap`}),description:r(`ConfirmSwapDescription`,{defaultValue:`Please confirm the swap transaction in your wallet`}),buttonText:r(`Confirm`,{defaultValue:`Confirm`})}});return{executeSwap:(0,s.useCallback)(async()=>{if(!e||!t)throw Error(`Missing swap parameters or quote`);if(!t.aggregator)throw Error(`Aggregator not found for quote from ${t.aggregatorName}`);let n=await t.aggregator.buildSwapTransaction(e,t);if(n.length===0)throw Error(`Failed to build swap transaction`);await i(n)},[e,t,i]),isTransactionPending:o,isWaitingForWalletConfirmation:c,txReceipt:l,status:u,resetStatus:d,error:p}},Pt=e=>e===`0x`||e===v.zeroAddress,Ft=(e,t,n,r)=>{let i={},a=r.toLowerCase();for(let t of e)try{let e=(0,v.decodeEventLog)({abi:d.ERC20_ABI,eventName:`Transfer`,topics:t.topics,data:t.data}),n=e.args.from.toLowerCase(),r=e.args.to.toLowerCase(),o=e.args.value,s=typeof o==`bigint`?o:BigInt(o);if(n!==a&&r!==a)continue;let c=t.address.toLowerCase(),l=i[c]??{inflow:0n,outflow:0n};n===a&&(l.outflow+=s),r===a&&(l.inflow+=s),i[c]=l}catch{continue}if(n!==void 0){let e=BigInt(n);if(e>0n){let t=i[v.zeroAddress]??{inflow:0n,outflow:0n};t.outflow+=e,i[v.zeroAddress]=t}}for(let e of t){if(e.recipient.toLowerCase()!==a)continue;let t=BigInt(e.amount);if(t<=0n)continue;let n=i[v.zeroAddress]??{inflow:0n,outflow:0n};n.inflow+=t,i[v.zeroAddress]=n}return i},It=async(e,t,n,r)=>{try{if(n.length===0)return{gasCostVTHO:0,success:!1,error:`No clauses found for simulation`};let i=await r.transactions.simulateTransaction(n,{caller:e.userAddress}),a=!1,o,s=2e5,c={};for(let t=0;t<i.length;t++){let r=i[t];r.reverted&&(a=!0,o=r.vmError||`Transaction reverted`),s+=r.gasUsed;let l=n[t],u=Ft(r.events,r.transfers,l?.value,e.userAddress);for(let[e,t]of Object.entries(u)){let n=c[e]??{inflow:0n,outflow:0n};c[e]={inflow:n.inflow+t.inflow,outflow:n.outflow+t.outflow}}}if(a)return{gasCostVTHO:0,success:!1,error:o||`Transaction reverted`};let l=s/1e5,u=Pt(e.fromTokenAddress),d=Pt(e.toTokenAddress),f=BigInt(e.amountIn);if(u){let e=c[v.zeroAddress]??{inflow:0n,outflow:0n};if(e.outflow>f)return{gasCostVTHO:l,success:!1,error:`VET outflow mismatch: expected ${f.toString()}, got ${e.outflow.toString()}`};for(let[e,t]of Object.entries(c))if(e!==v.zeroAddress&&t.outflow>0n)return{gasCostVTHO:l,success:!1,error:`Unexpected token outflow: token ${e} has outflow ${t.outflow.toString()}, expected 0`}}else{let t=e.fromTokenAddress.toLowerCase(),n=c[t]??{inflow:0n,outflow:0n};if(n.outflow>f)return{gasCostVTHO:l,success:!1,error:`Token outflow mismatch: expected ${f.toString()}, got ${n.outflow.toString()}`};for(let[e,n]of Object.entries(c))if(e!==t&&n.outflow>0n)return{gasCostVTHO:l,success:!1,error:`Unexpected token outflow: ${e===v.zeroAddress?`VET`:e} has outflow ${n.outflow.toString()}, expected 0`}}if(t.minimumOutputAmount&&t.minimumOutputAmount>0n)if(d){let e=c[v.zeroAddress]??{inflow:0n,outflow:0n};if(e.inflow<t.minimumOutputAmount)return{gasCostVTHO:l,success:!1,error:`VET inflow mismatch: expected ${t.minimumOutputAmount.toString()}, got ${e.inflow.toString()}`}}else{let n=c[e.toTokenAddress.toLowerCase()]??{inflow:0n,outflow:0n};if(n.inflow<t.minimumOutputAmount)return{gasCostVTHO:l,success:!1,error:`Token inflow mismatch: expected ${t.minimumOutputAmount.toString()}, got ${n.inflow.toString()}`}}return{gasCostVTHO:l,success:!0}}catch(e){return{gasCostVTHO:0,success:!1,error:e instanceof Error?e.message:`Simulation failed`}}},Lt=e=>e.startsWith(`0x`)?BigInt(e).toString():e,Rt=(e,t)=>({name:e,type:`function`,inputs:t.map(e=>({name:e.name,type:e.type,internalType:e.internalType,components:e.components})),outputs:[],stateMutability:`nonpayable`}),zt=(e,t)=>{if(Array.isArray(e)&&e.length>0){let n=e[0];if(typeof n==`object`&&`name`in n&&`type`in n&&n.type===`function`)return e;if(typeof n==`object`&&`name`in n&&`type`in n&&!(`stateMutability`in n||`outputs`in n))return[Rt(t,e)]}return e},Bt=e=>{try{let t=e.functionName||e.name;if(!t)throw Error(`Function name is required (either functionName or name must be provided)`);return(0,v.encodeFunctionData)({abi:zt(e.abi,t),functionName:t,args:e.args})}catch(t){console.error(`Failed to encode function call:`,t);let n=e.functionName||e.name||`unknown`;throw Error(`Failed to encode function call ${n}: ${t instanceof Error?t.message:`Unknown error`}`)}},Vt=e=>{let t=Bt(e.functionCall);return{to:e.to,value:Lt(e.value),data:t,comment:e.comment||`Swap on aggregator`}},Ht=e=>{let t={name:e.name,getIcon:e.getIcon,async getQuote(n,r){try{let r=new URLSearchParams({fromAddress:n.fromTokenAddress,toAddress:n.toTokenAddress,amountIn:n.amountIn,recipient:n.userAddress,slippageBps:String((n.slippageTolerance||1)*100),network:e.network}),i=new URL(e.apiBaseUrl);i.search=r.toString();let a=await fetch(i);if(!a.ok)throw Error(`API request failed: ${a.status} ${a.statusText}`);let o=await a.json(),s=o.clauses.map(Vt),c=BigInt(o.amountOut),l=BigInt(o.amountOutMin);return{aggregatorName:e.name,aggregator:t,outputAmount:c,minimumOutputAmount:l,priceImpact:0,data:{clauses:s,path:o.path}}}catch(n){return console.error(`${e.name} getQuote failed:`,n),{aggregatorName:e.name,aggregator:t,outputAmount:0n,priceImpact:0,minimumOutputAmount:0n,data:{clauses:[],path:[]}}}},async simulateSwap(e,t,n){try{return It(e,t,await this.buildSwapTransaction(e,t),n)}catch(e){return{gasCostVTHO:0,success:!1,error:e instanceof Error?e.message:`Failed to build swap transaction for simulation`}}},async buildSwapTransaction(t,n){if(!n.data||typeof n.data!=`object`||!(`clauses`in n.data))throw Error(`Invalid quote data: clauses not found`);let r=n.data.clauses;if(r.length===0)throw Error(`No clauses found in quote`);if(e.supportedAddresses&&e.supportedAddresses.length>0){let t=e.supportedAddresses.map(e=>e.toLowerCase());if(r=r.filter(e=>e.to?t.includes(e.to.toLowerCase()):!1),r.length===0)throw Error(`No clauses found matching supported addresses`)}if(!n.minimumOutputAmount||n.minimumOutputAmount===0n)throw Error(`Invalid quote: minimumOutputAmount is missing or zero`);return r}};return t},Ut={main:{supportedAddresses:[`0xE5fA980a6EfE5B79C2150a529da06AeF455963b6`,`0x7C755EC0165fCD926cC6faB10E7BB16a72E9f34A`]},test:{supportedAddresses:[]},solo:{supportedAddresses:[]}},Wt=e=>e===`0x`||e===`0x0000000000000000000000000000000000000000`,Gt=e=>new URL(`api/quote/vck`,r.O).toString(),Kt=e=>{let t=Ut[e]??Ut.main,n=Ht({name:`VeTrade.vet`,apiBaseUrl:Gt(e),network:e,getIcon:(e=`20px`)=>s.default.createElement(r.t,{boxSize:e}),supportedAddresses:t.supportedAddresses});return{...n,async simulateSwap(e,t,n){try{return It(e,t,await this.buildSwapTransaction(e,t),n)}catch(e){return{gasCostVTHO:0,success:!1,error:e instanceof Error?e.message:`Simulation failed`}}},async buildSwapTransaction(e,r){let i=[],a=await n.buildSwapTransaction(e,r);if(!a||a.length===0)throw Error(`Failed to build swap transaction`);if(Wt(e.fromTokenAddress))a[0].value=e.amountIn;else{if(t.supportedAddresses.length===0)throw Error(`No supported addresses configured for VeTrade on this network`);let n=d.ABIContract.ofAbi(_.IERC20__factory.abi),o=d.Address.of(e.fromTokenAddress),s=BigInt(e.amountIn);i.push(d.Clause.callFunction(o,n.getFunction(`approve`),[a[0].to,s.toString()],d.VET.of(0n,d.Units.wei),{comment:`Approve ${r.aggregatorName} to access ${e.fromTokenAddress}`}))}return i.push(...a),i}}},K=e=>e===`0x`||e===`0x0000000000000000000000000000000000000000`,qt=()=>BigInt(Math.floor(Date.now()/1e3)+1200),Jt=e=>{let t={name:e.name,getIcon:e.getIcon,async getQuote(n,r){let i=[K(n.fromTokenAddress)?e.wrappedVET:n.fromTokenAddress,K(n.toTokenAddress)?e.wrappedVET:n.toTokenAddress],a=BigInt(n.amountIn);try{let[o]=await r.contracts.load(e.routerAddress,_.UniswapV2Router02__factory.abi).read.getAmountsOut(a,i),s=Array.isArray(o)?o:[o],c=s[s.length-1];if(!c||c===0n)throw Error(`Output amount is zero or invalid`);if(typeof c!=`bigint`)throw Error(`Output amount is not a valid bigint`);let l=n.slippageTolerance||1,u=c*BigInt(1e4-l*100)/BigInt(1e4);return{aggregatorName:e.name,aggregator:t,outputAmount:c,priceImpact:0,minimumOutputAmount:u,data:{path:i,routerAddress:e.routerAddress}}}catch(n){return console.error(`${e.name} getQuote failed:`,n),{aggregatorName:e.name,aggregator:t,outputAmount:0n,priceImpact:0,minimumOutputAmount:0n,data:{path:i,routerAddress:e.routerAddress}}}},async simulateSwap(e,t,n){return It(e,t,await this.buildSwapTransaction(e,t),n)},async buildSwapTransaction(t,n){if(!n.data||typeof n.data!=`object`||!(`path`in n.data))throw Error(`Invalid quote data`);let r=qt();if(!n.minimumOutputAmount||n.minimumOutputAmount===0n)throw Error(`Invalid quote: minimumOutputAmount is missing or zero`);let i=n.minimumOutputAmount,a=BigInt(t.amountIn);if(i===0n)throw Error(`Invalid quote: minimumOutputAmount is zero`);let o=K(t.fromTokenAddress),s=K(t.toTokenAddress),c=d.ABIContract.ofAbi(_.UniswapV2Router02__factory.abi),l=[];if(o)l.push(d.Clause.callFunction(d.Address.of(e.routerAddress),c.getFunction(`swapExactETHForTokens`),[i.toString(),n.data.path,t.userAddress,r.toString()],d.VET.of(a,d.Units.wei),{comment:`Swap on ${n.aggregatorName}`}));else{let o=d.ABIContract.ofAbi(_.IERC20__factory.abi),u=d.Address.of(t.fromTokenAddress),f=d.Address.of(e.routerAddress);l.push(d.Clause.callFunction(u,o.getFunction(`approve`),[f.toString(),a.toString()],d.VET.of(0n,d.Units.wei),{comment:`Swap on ${n.aggregatorName}`})),s?l.push(d.Clause.callFunction(f,c.getFunction(`swapExactTokensForETH`),[a.toString(),i.toString(),n.data.path,t.userAddress,r.toString()],d.VET.of(0n,d.Units.wei),{comment:`Swap on ${n.aggregatorName}`})):l.push(d.Clause.callFunction(f,c.getFunction(`swapExactTokensForTokens`),[a.toString(),i.toString(),n.data.path,t.userAddress,r.toString()],d.VET.of(0n,d.Units.wei),{comment:`Swap on ${n.aggregatorName}`}))}return l}};return t},Yt={main:{routerAddress:`0xf21Dd7108D93af56FaB07423EfB90F4a3604DA89`,wrappedVET:`0xf9b02b47694fd635A413F16dC7B38aF06Cc16fe5`},test:{routerAddress:v.zeroAddress,wrappedVET:v.zeroAddress},solo:{routerAddress:v.zeroAddress,wrappedVET:v.zeroAddress}},Xt=e=>{let t=Yt[e]??Yt.main;return Jt({name:`BetterSwap.io`,routerAddress:t.routerAddress,wrappedVET:t.wrappedVET,getIcon:(e=`20px`)=>s.default.createElement(r.n,{boxSize:e})})},Zt=e=>[Kt(e),Xt(e)],Qt=(e,t,n,r,i=1,o=!0)=>{let c=a.Q(),{connection:l}=a.T(),u=e?.address??null,d=t?.address??null,{data:f}=V(u===`0x`||u===v.zeroAddress||!u?``:u),{data:m}=V(d===`0x`||d===v.zeroAddress||!d?``:d),h=(0,s.useMemo)(()=>!u||u===`0x`||u===v.zeroAddress||!f?18:Number(f?.decimals??18),[u,f?.decimals]),g=(0,s.useMemo)(()=>!d||d===`0x`||d===v.zeroAddress||!m?18:Number(m?.decimals??18),[d,m?.decimals]),_=(0,s.useMemo)(()=>{if(!u||!d||!n||!r)return null;let e;try{e=(0,v.parseUnits)(n,h)}catch(e){return console.error(`Failed to parse amount:`,n,e),null}return e<=0n?null:{fromTokenAddress:u,toTokenAddress:d,amountIn:e.toString(),userAddress:r,slippageTolerance:i}},[u,d,n,r,i,h]),{data:y,isLoading:b,error:x}=(0,p.useQuery)({queryKey:[`unified-swap-quotes`,_,l.network],queryFn:async()=>{if(!_||!c||!l.network)return{quotes:[],best:null};let e=Zt(l.network).map(async e=>{try{let t=await e.getQuote(_,c);try{let n=await e.simulateSwap(_,t,c);return{...t,aggregator:e,reverted:!n.success,revertReason:n.error,gasCostVTHO:n.gasCostVTHO}}catch(n){return console.error(`Failed to simulate swap for ${e.name}:`,n),{...t,aggregator:e,reverted:!0,revertReason:n instanceof Error?n.message:`Simulation failed`,gasCostVTHO:0}}}catch(t){return console.error(`Failed to get quote from ${e.name}:`,t),null}}),t=(await Promise.all(e)).filter(e=>e!==null&&e.outputAmount!==0n),n=null;if(t.length>0){let e=t.filter(e=>!(e.reverted??!1));n=(e.length>0?e:t).reduce((e,t)=>{let n=BigInt(e.outputAmount||`0`);return BigInt(t.outputAmount||`0`)>n?t:e})}return{quotes:t,best:n}},enabled:o&&_!==null&&c!=null,refetchInterval:1e4});return{bestQuote:y?.best??null,quotes:y?.quotes??[],isLoading:b,error:x,from:e?{...e,address:u??``,decimals:h}:null,to:t?{...t,address:d??``,decimals:g}:null}},$t={open:()=>{console.warn(`DAppKit is not configured. Add dappKit prop to VeChainKitContext to enable wallet modal.`)},close:()=>{},onConnectionStatusChange:()=>{}},en=()=>{let e=!!t.u().dappKit,n=null;try{n=(0,g.useWalletModal)()}catch{}return!e||!n?$t:n},tn=()=>{let{loginMethods:e}=t.u(),n=e?.length===1&&e[0].method===`dappkit`,{openConnectModal:r,closeConnectModal:i,isConnectModalOpen:o}=a.S(),{open:s,close:c}=en();return{open:n?s:e=>r(e),close:n?c:i,isOpen:n?!1:o}},nn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),rn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:()=>e(),close:t,isOpen:n}},an=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),on=()=>{let{openTransactionModal:e,closeTransactionModal:t,isTransactionModalOpen:n}=a.S();return{open:e,close:t,isOpen:n}},sn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),cn=()=>{let{openTransactionToast:e,closeTransactionToast:t,isTransactionToastOpen:n}=a.S();return{open:e,close:t,isOpen:n}},ln=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),un=()=>{let{connection:e}=a.T(),{openConnectModal:t,closeConnectModal:n,isConnectModalOpen:r,openAccountModal:i,closeAccountModal:o,isAccountModalOpen:s}=a.S();return{open:n=>{e.isConnected?i(void 0,n):t()},close:()=>{s&&o(),r&&n()},isOpen:r||s}},dn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),fn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n,setAccountModalContent:r}=a.S();return{open:t=>{e({type:`choose-name`,props:{setCurrentContent:r,onBack:()=>r(`main`),initialContentSource:`main`}},t)},close:()=>{t()},isOpen:n}},pn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),mn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n,setAccountModalContent:r}=a.S();return{open:t=>{e({type:`send-token`,props:{setCurrentContent:r}},t)},close:()=>{t()},isOpen:n}},hn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),gn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n,setAccountModalContent:r}=a.S();return{open:t=>{e({type:`swap-token`,props:{setCurrentContent:r,fromTokenAddress:t?.fromTokenAddress,toTokenAddress:t?.toTokenAddress}},{isolatedView:t?.isolatedView})},close:()=>{t()},isOpen:n}},_n=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),vn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:t=>{e(`ecosystem`,t)},close:()=>{t()},isOpen:n}},yn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),bn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:t=>{e(`notifications`,t)},close:()=>{t()},isOpen:n}},xn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),Sn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n,setAccountModalContent:r}=a.S();return{open:t=>{e({type:`faq`,props:{onGoBack:()=>r(`main`),showLanguageSelector:!1}},t)},close:()=>{t()},isOpen:n}},Cn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),wn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n,setAccountModalContent:r}=a.S();return{open:()=>{e({type:`account-customization`,props:{setCurrentContent:r}})},close:()=>{t()},isOpen:n}},Tn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),En=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:t=>{e(`receive-token`,t)},close:()=>{t()},isOpen:n}},Dn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),On=()=>{let{privy:e,loginMethods:r}=t.u(),i=e?.appId===n.it,a=e=>r?Array.isArray(e)?e.some(e=>r.some(t=>t.method===e)):r.some(t=>t.method===e):!0,o=(0,s.useMemo)(()=>r?r.length===0||a(`ecosystem`):!0,[r]),c=(0,s.useMemo)(()=>a(`vechain`),[r]),l=(0,s.useMemo)(()=>a(`dappkit`),[r]),u=(0,s.useMemo)(()=>a(`passkey`),[r]),d=(0,s.useMemo)(()=>a(`email`),[r]),f={showGoogleLogin:(0,s.useMemo)(()=>a(`google`),[r]),showEmailLogin:d,showPasskey:u,showVeChainLogin:c,showDappKit:l,showEcosystem:o,showMoreLogin:(0,s.useMemo)(()=>a(`more`),[r]),showGithubLogin:(0,s.useMemo)(()=>a(`github`),[r]),isOfficialVeChainApp:!1};return e?i?{...f,isOfficialVeChainApp:!0}:{...f}:{...f,showGoogleLogin:!1,showEmailLogin:!1,showPasskey:!1,showMoreLogin:!1}},kn=e=>{let{openUpgradeSmartAccountModal:t,closeUpgradeSmartAccountModal:n,isUpgradeSmartAccountModalOpen:r}=a.S();return{open:()=>t(e),close:n,isOpen:r}},An=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),jn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:t=>{e(`profile`,t)},close:()=>{t()},isOpen:n}},Mn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),Nn=()=>{let{isolatedView:e,closeAccountModal:t}=a.S();return{isolatedView:e,closeAccountModal:t}},Pn=()=>{let{openAccountModal:e,closeAccountModal:t,isAccountModalOpen:n}=a.S();return{open:t=>{e(`settings`,t)},close:()=>{t()},isOpen:n}},Fn=({children:e})=>(0,c.jsx)(c.Fragment,{children:e}),In=[{id:`welcome`,title:`Welcome to the VeChain`,description:`Welcome! Here you can manage your wallet, send tokens, and interact with the VeChain blockchain and its applications.`,timestamp:Date.now(),status:`success`,isRead:!1}],Ln=()=>{let{account:e}=a.T(),t=(0,s.useCallback)(e=>{let t=e?.toLowerCase();return{notifications:`vechain_kit_notifications_${t}`,archived:`vechain_kit_archived_notifications_${t}`,initialized:`vechain_kit_notifications_initialized_${t}`}},[]),n=(0,s.useCallback)(()=>{if(!e?.address||!i.o())return;let n=t(e.address);i.r(n.initialized)||(i.d(n.notifications,JSON.stringify(In)),i.d(n.initialized,`true`))},[e?.address,t]);(0,s.useEffect)(()=>{n()},[n]);let r=(0,s.useCallback)(()=>{if(!e?.address||!i.o())return[];let n=i.r(t(e.address).notifications);return n?JSON.parse(n):[]},[e?.address,t]),o=(0,s.useCallback)(()=>{if(!e?.address||!i.o())return[];let n=i.r(t(e.address).archived);return n?JSON.parse(n):[]},[e?.address,t]),c=(0,s.useCallback)(n=>{if(!e?.address||!i.o())return;let a=t(e.address),o=r(),s=i.r(a.archived),c=s?JSON.parse(s):[];if([...o,...c].some(e=>e.title===n.title))return;let l={...n,id:n.id||Math.random().toString(36).substring(7),timestamp:Date.now(),isRead:!1};i.d(a.notifications,JSON.stringify([l,...o]))},[e?.address,r,t]),l=(0,s.useCallback)(n=>{if(!e?.address||!i.o())return;let a=t(e.address),o=r().filter(e=>e.id!==n);i.d(a.notifications,JSON.stringify(o))},[e?.address,r,t]);return{getNotifications:r,getArchivedNotifications:o,addNotification:c,clearAllNotifications:(0,s.useCallback)(()=>{if(!e?.address||!i.o())return;let n=t(e.address),a=r();i.d(n.archived,JSON.stringify([...o(),...a])),i.d(n.notifications,JSON.stringify([]))},[e?.address,r,o,t]),markAsRead:(0,s.useCallback)(n=>{if(!e?.address||!i.o())return;let a=t(e.address),s=r(),c=o(),l=s.find(e=>e.id===n),u=s.filter(e=>e.id!==n);if(l){let e=[{...l,isRead:!0},...c];i.d(a.notifications,JSON.stringify(u)),i.d(a.archived,JSON.stringify(e))}},[e?.address,r,o,t]),deleteNotification:l}},Rn=async(e,t,r,i)=>{let a=await e.contracts.load(n.ct(i).accountFactoryAddress,_.SocialLoginSmartAccountFactory__factory.abi).read.upgradeRequiredForAccount(t,BigInt(r));if(!a)throw Error(`Failed to get upgrade required for contract address ${t}`);return a[0]},q=(e,t,n)=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`FACTORY`,`NEEDS_UPGRADE_FOR_ACCOUNT`,e,t,n],zn=(e,n)=>{let r=a.Q(),{network:i}=t.u();return(0,p.useQuery)({queryKey:q(e,n,i.type),queryFn:async()=>Rn(r,e,n,i.type),enabled:!!r&&!!i&&!!e&&!!n&&e!==``})},Bn=()=>{let{t:e}=(0,f.useTranslation)(),{account:t,connection:n,smartAccount:r}=a.T(),{addNotification:i,getNotifications:o}=Ln(),{data:c}=zn(r?.address??``,3);(0,s.useEffect)(()=>{if(!n.isConnectedWithPrivy||!t?.address)return;let r=o(),a=`smart_account_upgrade_${t.address.toLowerCase()}`;!r.some(e=>e.id===a)&&c&&i({id:a,title:e(`Account Upgrade Required`),description:e(`A new upgrade is available for your smart account. Please head over to the 'Access and Security' section to upgrade it.`),status:`warning`})},[n.isConnectedWithPrivy,t?.address,c]),(0,s.useEffect)(()=>{!n.isConnectedWithPrivy||!t?.address||o().some(e=>e.id===`smart_account_${t.address.toLowerCase()}`)||i({id:`smart_account_${t.address.toLowerCase()}`,title:e(`Smart Account detected`),description:e(`You have an active smart account associated to this wallet. It has been set as your main identity.`),status:`info`})},[n.isConnectedWithPrivy,t?.address]),(0,s.useEffect)(()=>{if(!n.isConnectedWithPrivy||!t?.address)return;let r=o(),a=r.some(e=>e.id===`multiclause_warning_${t.address.toLowerCase()}`),s=r.some(e=>e.id===`multiclause_support_${t.address.toLowerCase()}`);a&&!s&&i({id:`multiclause_support_${t.address.toLowerCase()}`,title:e(`Multiclause Transactions Are Now Supported`),description:e(`Good news! Multiclause transactions are now fully supported for smart accounts. You can now enjoy a better user experience, lower gas costs, and enchanced security.`),status:`info`})},[n.isConnectedWithPrivy,t?.address])},Vn=()=>{let[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(null),[i,o]=(0,s.useState)(null),{connection:c,account:l}=a.T(),{requestCertificate:u}=a.L(),d=a.n();return{signMessage:(0,s.useCallback)(async e=>{if(!l)throw Error(`Account not found`);t(!0),o(null),r(null);try{let t=null;if(c.isConnectedWithDappKit)t=(await u({purpose:`agreement`,payload:{type:`text`,content:e}},{signer:l.address})).signature;else{if(!d)throw Error(`Privy is not configured. Please configure the privy prop in VeChainKitContext to use this feature.`);t=await d.signMessage(e)}return r(t),t}catch(e){let t=e instanceof Error?e:Error(String(e));throw o(t),t}finally{t(!1)}},[c,d,l?.address]),isSigningPending:e,signature:n,error:i,reset:(0,s.useCallback)(()=>{t(!1),r(null),o(null)},[])}},Hn=()=>{let[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(null),[i,o]=(0,s.useState)(null),{signer:c}=a.L(),{connection:l}=a.T(),u=a.n();return{signTypedData:(0,s.useCallback)(async(e,n)=>{t(!0),o(null),r(null);try{let t;if(l.isConnectedWithDappKit){let r={...e.domain,salt:e.domain?.salt?Buffer.from(e.domain.salt).toString(`hex`):void 0};t=await c.signTypedData(r,e.types,e.message,void 0,n)}else{if(!u)throw Error(`Privy is not configured. Please configure the privy prop in VeChainKitContext to use this feature.`);t=await u.signTypedData(e)}return r(t),t}catch(e){if(e&&typeof e==`object`&&`statusCode`in e&&e.statusCode===4001){let e=Error(`User denied signature request`);throw o(e),e}let t=e instanceof Error?e:Error(typeof e==`object`?JSON.stringify(e):String(e));throw console.error(t),o(t),t}finally{t(!1)}},[l,u]),isSigningPending:e,signature:n,error:i,reset:(0,s.useCallback)(()=>{t(!1),r(null),o(null)},[])}},Un=()=>{let{loginWithPasskey:e}=(0,m.useLoginWithPasskey)();return{loginWithPasskey:async()=>{try{await e()}catch(e){throw e}}}};let Wn=!1;const Gn=()=>{let{createWallet:e}=(0,m.useCreateWallet)(),{initOAuth:t}=(0,m.useLoginWithOAuth)({onComplete:(0,s.useCallback)(async({isNewUser:t})=>{if(t&&!Wn){Wn=!0;try{await e()}catch(e){throw Wn=!1,console.error(`Failed to create wallet:`,e),e}}},[e])});return{initOAuth:async({provider:e})=>{try{await t({provider:e})}catch(e){throw e}}}},Kn=()=>{let{login:e}=a.F(),{setConnectionCache:t}=a.R(),{data:i}=T([n.it]);return{login:async()=>{try{await e(n.it),t({name:`VeChain`,logoUrl:i?.[n.it]?.logo_url,appId:n.it,website:r.y})}catch(e){throw o.a({error:e,mobileBrowserPopupMessage:`Your mobile browser blocked the login window. Please click 'Try again' to open the login window or change your browser settings.`,rejectedMessage:`Login request was cancelled.`,defaultMessage:`There was an unexpected issue logging in with VeChain. Please try again or contact support.`})}}}},qn=`vechain-kit-app-hub-apps`,Jn=`vechain-kit-app-hub-apps-expiry`,Yn=1440*60*1e3,Xn=()=>[`VECHAIN_KIT`,`appHub`,`apps`],Zn=async()=>{if(typeof window<`u`)try{let e=i.r(qn),t=i.r(Jn);if(e&&t){let n=parseInt(t,10);if(Date.now()<n)return JSON.parse(e)}}catch{console.warn(`Invalid app-hub cache, fetching fresh data`)}let e=new URL(`contents/apps`,r.a),t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch app directories`);let n=(await t.json()).map(async e=>{if(e.type!==`dir`)return null;let t=new URL(`master/apps/${e.name}/manifest.json`,r.o),n=await fetch(t);if(!n.ok)return console.warn(`Failed to fetch manifest for ${e.name}`),null;try{let t=await n.json(),i=new URL(`master/apps/${e.name}/logo.png`,r.o);return{id:e.name,name:t.name,description:t.desc,url:t.href,logo:i.toString(),category:t.category,tags:t.tags||[],isVeWorldSupported:t.isVeWorldSupported||!1,repo:t.repo,contracts:t.contracts,veBetterDaoId:t.veBetterDaoId}}catch(t){return console.warn(`Error parsing manifest for ${e.name}:`,t),null}}),a=(await Promise.all(n)).filter(e=>e!==null);if(typeof window<`u`)try{i.d(qn,JSON.stringify(a)),i.d(Jn,(Date.now()+864e5).toString())}catch(e){console.warn(`Failed to cache app-hub data:`,e)}return a},Qn=()=>(0,p.useQuery)({queryKey:Xn(),queryFn:async()=>{try{return await Zn()}catch(e){let t=localStorage.getItem(qn);if(t)return JSON.parse(t);throw e}},staleTime:1e3*60*60,retry:2}),$n=()=>{let{currentLanguage:e,setLanguage:n}=t.u();return{currentLanguage:e,setLanguage:n}},er=()=>{let{currentCurrency:e,setCurrency:n}=t.u();return{currentCurrency:e,setCurrency:n}},tr=()=>{let[e,t]=(0,s.useState)(!0),n=`vechain_kit_feature_announcement_closed`;return(0,s.useEffect)(()=>{i.r(n)&&t(!1)},[]),{isVisible:e,closeAnnouncement:()=>{i.d(n,`true`),t(!1)}}},nr=()=>{let[e,t]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{if(!i.o()){t(!1);return}let e=()=>{t(window.matchMedia(`(display-mode: standalone)`).matches||window.standalone||document.referrer.includes(`android-app://`))};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]),e},rr=()=>{(0,s.useEffect)(()=>{let e=document.querySelector(`.chakra-modal__content`);e&&(e.scrollTop=0)},[])},ir=async(e,t,r)=>{if(!r)throw Error(`Network type is required`);if(!t)throw Error(`Version is required`);let i=e.contracts.load(n.ct(r).accountFactoryAddress,_.SocialLoginSmartAccountFactory__factory.abi),a;switch(t){case 1:case 2:a=i.read.accountImplementationV1();break;case 3:a=i.read.accountImplementationV3();break;default:throw Error(`Invalid version, must be between 1 and 3`)}let o=await a;if(!o)throw Error(`Failed to get account implementation address`);return o[0].toString()},J=(e,t)=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`FACTORY`,`IMPLEMENTATION_ADDRESS`,e,t],ar=e=>{let n=a.Q(),{network:r}=t.u();return(0,p.useQuery)({queryKey:J(e,r.type),queryFn:async()=>ir(n,e,r.type),enabled:!!n&&!!e&&!!r})},or=async(e,t)=>{if(!t)throw Error(`Network type is required`);let r=await e.contracts.load(n.ct(t).accountFactoryAddress,_.SocialLoginSmartAccountFactory__factory.abi).read.currentAccountImplementationVersion();if(!r)throw Error(`Failed to get current account implementation version`);return parseInt(r[0].toString())},Y=e=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`FACTORY`,`CURRENT_ACCOUNT_IMPLEMENTATION_VERSION`,e],sr=()=>{let e=a.Q(),{network:n}=t.u();return(0,p.useQuery)({queryKey:Y(n.type),queryFn:async()=>or(e,n.type),enabled:!!e&&!!n})},cr=async(e,t,r)=>{if(!t)throw Error(`Owner address is required`);if(!r)throw Error(`Network type is required`);let i=await e.contracts.load(n.ct(r).accountFactoryAddress,_.SocialLoginSmartAccountFactory__factory.abi).read.getAccountAddress(t);if(!i)throw Error(`Failed to get account address of ${t}`);return i[0].toString()},X=(e,t)=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`FACTORY`,`ADDRESS`,e,t],lr=e=>{let n=a.Q(),{network:r}=t.u();return(0,p.useQuery)({queryKey:X(e,r.type),queryFn:async()=>cr(n,e,r.type),enabled:!!n&&!!e&&!!r})},ur=async(e,t)=>{if(!t)throw Error(`Account address is required`);let n=await e.accounts.getAccount(d.Address.of(String(t)));if(!n)throw Error(`Account not found`);return n.hasCode},Z=e=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`IS_DEPLOYED`,e],dr=e=>{let t=a.J(),n=h.ThorClient.at(t);return(0,p.useQuery)({queryKey:Z(e),queryFn:async()=>ur(n,e),enabled:!!n&&!!e})},fr=async(e,t,r,i,a)=>{let o=await e.contracts.load(n.ct(a).accountFactoryAddress,_.SocialLoginSmartAccountFactory__factory.abi).read.upgradeRequired(t,r,BigInt(i));if(!o)throw Error(`Failed to get upgrade required of contract address ${n.ct(a).accountFactoryAddress}`);return o[0]},Q=(e,t,n,r)=>[`VECHAIN_KIT`,`SMART_ACCOUNT`,`FACTORY`,`UPGRADE_REQUIRED`,e,t,n,r],pr=(e,n,r)=>{let i=a.Q(),{network:o}=t.u();return(0,p.useQuery)({queryKey:Q(e,n,r,o.type),queryFn:async()=>fr(i,e,n,r,o.type),enabled:!!i&&!!e&&!!n&&!!o.type})},mr=()=>{let e=(0,p.useQueryClient)(),{connectedWallet:n,smartAccount:r}=a.T(),{network:i}=t.u();return{refresh:async()=>{let t=n?.address??``,o=r?.address??``;await Promise.all([e.cancelQueries({queryKey:X(t,i.type)}),e.cancelQueries({queryKey:a.H(o,t,i.type)}),e.cancelQueries({queryKey:a.a(t,i.type)}),e.cancelQueries({queryKey:Y(i.type)}),e.cancelQueries({queryKey:Q(o,t,3,i.type)}),e.cancelQueries({queryKey:q(o,3,i.type)}),e.cancelQueries({queryKey:J(3,i.type)})]),await Promise.all([e.refetchQueries({queryKey:X(t,i.type)}),e.refetchQueries({queryKey:a.H(o,t,i.type)}),e.refetchQueries({queryKey:a.a(t,i.type)}),e.refetchQueries({queryKey:Y(i.type)}),e.refetchQueries({queryKey:Q(o,t,3,i.type)}),e.refetchQueries({queryKey:q(o,3,i.type)}),e.refetchQueries({queryKey:J(3,i.type)})])}}},hr=()=>{let e=(0,p.useQueryClient)(),{smartAccount:t}=a.T();return{refresh:async()=>{let n=t?.address??``;await Promise.all([e.cancelQueries({queryKey:a.B(n)}),e.cancelQueries({queryKey:Z(n)})]),await Promise.all([e.refetchQueries({queryKey:a.B(n)}),e.refetchQueries({queryKey:Z(n)})])}}},gr=_.SocialLoginSmartAccount__factory.createInterface(),_r=({smartAccountAddress:e,targetVersion:t,onSuccess:r,onError:i})=>{let{refresh:a}=mr(),{refresh:o}=hr(),{data:c}=ar(t),l=(0,s.useCallback)(async()=>{if(!e||!n.j(e))throw Error(`Invalid smart account address`);if(!c)throw Error(`Unable to fetch implementation address for version ${t}`);return[{to:e,value:`0x0`,data:gr.encodeFunctionData(`upgradeToAndCall`,[c,`0x`]),comment:`Upgrade account to version ${t}`,abi:gr.getFunction(`upgradeToAndCall`).format(`json`)}]},[e,c,t]),u=N({privyUIOptions:{title:`Upgrade Smart Account`,description:`Upgrading your account at ${n.W(e)} to version ${t}`,buttonText:`Sign to continue`},onTxConfirmed:async()=>{await Promise.all([a(),o()]),r?.()},onTxFailedOrCancelled:async()=>{i?.()}});return{...u,sendTransaction:async()=>u.sendTransaction(await l())}},vr=()=>[`VECHAIN_KIT`,`CURRENT_BLOCK`],yr=10*n.s.SECOND,br=()=>{let e=a.Q();return(0,p.useQuery)({queryKey:vr(),queryFn:async()=>{if(!e)throw Error(`Thor client not available`);let t=await e.blocks.getBestBlockExpanded();if(!t)throw Error(`Failed to fetch current block`);return t},staleTime:1e3*60,refetchInterval:yr,enabled:!!e})},$=1e3,xr=async({thor:e,order:t=`asc`,offset:n=0,limit:r=$,from:i=0,to:a=e.blocks.getHeadBlock()?.number,filterCriteria:o})=>{let s=await e.logs.filterEventLogs({range:{from:i,to:a,unit:`block`},options:{offset:n,limit:r},order:t,criteriaSet:o});if(!s)throw Error(`Failed to fetch events`);return s},Sr=async({nodeUrl:e,thor:t,order:n=`asc`,from:r=0,to:i,filterCriteria:a})=>{let o=[],s=0;for(;;){let c=await xr({nodeUrl:e,thor:t,filterCriteria:a,from:r,to:i??2**53-1,limit:$,order:n,offset:s});if(o.push(...c),c.length<$)return o;s+=$}},Cr=_.IERC20__factory.createInterface(),wr=(e,t,r,i)=>{if(!e||!t||!n.j(e))throw Error(`Invalid receiver address or amount`);let a=[];return a.push({to:r,value:`0x0`,data:Cr.encodeFunctionData(`transfer`,[e,(0,v.parseEther)(t)]),comment:`Transfer ${t} ${i} to ${e}`,abi:Cr.getFunction(`transfer`)}),a},Tr=({fromAddress:e,receiverAddress:t,amount:r,tokenAddress:i,tokenName:a,onSuccess:o,onError:c})=>{let{refresh:l}=_t(),u=(0,s.useMemo)(()=>wr(t,r,i,a),[t,r,i,a]),d=N({signerAccountAddress:e,privyUIOptions:{title:`Confirm Transfer`,description:`Transfer ${r} ${a} to ${n.W(t)}`,buttonText:`Sign to continue`},onTxConfirmed:async()=>{l(),o?.()},onTxFailedOrCancelled:async e=>{c?.(e instanceof Error?e.message:String(e))}});return{...d,clauses:u,sendTransaction:async()=>d.sendTransaction(u)}},Er=(e,t)=>{if(!e||!t||!n.j(e))throw Error(`Invalid receiver address or amount`);if(isNaN(Number(t)))throw Error(`Invalid amount`);let r=[];try{r.push({to:e,value:(0,v.parseEther)(t).toString(),data:`0x`,comment:`Transfer ${t} VET to ${e}`})}catch(e){throw console.error(`Error building clauses:`,e),Error(`Invalid amount format`)}return r},Dr=({fromAddress:e,receiverAddress:t,amount:r,onSuccess:i,onError:a})=>{let{refresh:o}=_t(),c=(0,s.useMemo)(()=>Er(t,r),[t,r]),l=N({signerAccountAddress:e,privyUIOptions:{title:`Confirm Transfer`,description:`Transfer ${r} VET to ${n.W(t)}`,buttonText:`Sign to continue`},onTxConfirmed:async()=>{o(),i?.()},onTxFailedOrCancelled:async e=>{a?.(e instanceof Error?e.message:String(e))}});return{...l,clauses:c,sendTransaction:async()=>l.sendTransaction(c)}},Or=({clauseBuilder:e,refetchQueryKeys:t,invalidateCache:n=!0,onSuccess:r,onFailure:i,suggestedMaxGas:o,gasPadding:c,delegationUrl:l})=>{let{account:u}=a.T(),d=(0,p.useQueryClient)(),f=(0,s.useCallback)(async()=>{n&&t?.forEach(async e=>{await d.cancelQueries({queryKey:e}),await d.refetchQueries({queryKey:e})}),r?.()},[n,r,d,t]),m=N({signerAccountAddress:u?.address,onTxConfirmed:f,suggestedMaxGas:o,onTxFailedOrCancelled:i,gasPadding:c,delegationUrl:l}),h=(0,s.useCallback)(async t=>{m.sendTransaction(e(t),l)},[e,m,l]);return{...m,sendTransaction:h}},kr=(e,t)=>{let n=(0,v.decodeEventLog)({abi:t,data:e.data.toString(),topics:e.topics.map(e=>e.toString())});return{meta:e.meta,decodedData:n}},Ar=({eventName:e,filterParams:t})=>[e,t?JSON.stringify(t):`all`],jr=({abi:e,contractAddress:t,eventName:n,filterParams:r,mapResponse:i,nodeUrl:o})=>{let c=a.Q();return(0,p.useQuery)({queryFn:(0,s.useCallback)(async()=>{if(!c)return[];let a=c.contracts.load(t,e).getEventAbi(n),s=a.encodeFilterTopicsNoNull(r??{}),l=(await Sr({thor:c,nodeUrl:o,filterCriteria:[{criteria:{address:t,topic0:s[0]??void 0,topic1:s[1]??void 0,topic2:s[2]??void 0,topic3:s[3]??void 0,topic4:s[4]??void 0},eventAbi:a}]})).map(t=>kr(t,e));if(l.some(({decodedData:e})=>e.eventName!==n))throw Error(`Unknown event`);return l.map(e=>i({meta:e.meta,decodedData:e.decodedData}))},[c,t,e,n,r,i,o]),queryKey:(0,s.useMemo)(()=>Ar({eventName:n,filterParams:r}),[n,r]),enabled:!!c})},Mr=({clauses:e,enabled:n=!0,tokens:r,sendingAmount:i,sendingTokenSymbol:o})=>{let{connectedWallet:s,account:c}=a.T(),{data:l}=a.V(s?.address??``),{feeDelegation:u}=t.u(),{balances:d}=H(c?.address??``),{updatePreferences:f}=a._();return(0,p.useQuery)({queryKey:[`gas-estimation`,JSON.stringify(e),JSON.stringify(r),i,o],queryFn:async()=>{let t=null;for(let n of r)try{let r=await a.u(l?.address??``,u?.genericDelegatorUrl??``,e,n,`medium`),s=r.transactionCost,c=Number(d.find(e=>e.symbol===n)?.balance||0),p=s+(i&&o&&n===o?Number(i):0);if(c>=p)return f({gasTokenToUse:n}),{...r,usedToken:n};t=Error(`Insufficient ${n} balance: has ${c}, needs ${p}`)}catch(e){t=e}throw t||Error(`All gas tokens failed estimation or have insufficient balance`)},enabled:n&&e.length>0&&!!l?.address&&!!u?.genericDelegatorUrl&&r.length>0&&d.length>0,staleTime:30*1e3,gcTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,retry:!1,retryDelay:1e3})},Nr=({clauses:e,tokens:n,enabled:r=!0})=>{let{connectedWallet:i}=a.T(),{data:o}=a.V(i?.address??``),{feeDelegation:s}=t.u();return(0,p.useQuery)({queryKey:[`gas-estimation-all-tokens`,JSON.stringify(e),JSON.stringify(n)],queryFn:async()=>{let t={};return await Promise.all(n.map(async n=>{try{t[n]={cost:(await a.u(o?.address??``,s?.genericDelegatorUrl??``,e,n,`medium`)).transactionCost||0,loading:!1}}catch(e){t[n]={cost:0,loading:!1,error:e instanceof Error?e.message:`Unknown error`}}})),t},enabled:r&&e.length>0&&!!o?.address&&!!s?.genericDelegatorUrl&&n.length>0,staleTime:30*1e3,gcTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1})};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return ir}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return dr}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return ln}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return an}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return lr}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return on}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return Ct}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return $n}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return ar}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return Qt}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return rr}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return rn}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return nr}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return mt}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return Fn}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return xn}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return it}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return en}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return tt}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return En}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`qn`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return kn}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return ur}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return Tt}});
8
+ //# sourceMappingURL=hooks-C8eXQYIN.cjs.map