@vechain/vechain-kit 1.5.5 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4983,7 +4983,7 @@ var AddressDisplay = ({
4983
4983
  // package.json
4984
4984
  var package_default = {
4985
4985
  name: "@vechain/vechain-kit",
4986
- version: "1.5.5",
4986
+ version: "1.5.6",
4987
4987
  private: false,
4988
4988
  homepage: "https://github.com/vechain/vechain-kit",
4989
4989
  repository: "github:vechain/vechain-kit",
@@ -5458,7 +5458,8 @@ var TransactionButtonAndStatus = ({
5458
5458
  txReceipt,
5459
5459
  isSubmitForm = false,
5460
5460
  buttonText,
5461
- isDisabled = false
5461
+ isDisabled = false,
5462
+ style
5462
5463
  }) => {
5463
5464
  const { t } = reactI18next.useTranslation();
5464
5465
  const { darkMode: isDark } = useVeChainKitConfig();
@@ -5467,6 +5468,10 @@ var TransactionButtonAndStatus = ({
5467
5468
  if (!transactionError) return null;
5468
5469
  return transactionError.reason || t("Something went wrong. Please try again.");
5469
5470
  }, [transactionError, t]);
5471
+ const buttonBg = React10.useMemo(() => {
5472
+ if (style?.accentColor) return `${style.accentColor} !important`;
5473
+ return void 0;
5474
+ }, [style?.accentColor]);
5470
5475
  return /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { width: "full", spacing: 4, children: [
5471
5476
  errorMessage && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#da5a5a", textAlign: "center", width: "full", children: errorMessage }),
5472
5477
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5474,6 +5479,7 @@ var TransactionButtonAndStatus = ({
5474
5479
  {
5475
5480
  px: 4,
5476
5481
  variant: "vechainKitPrimary",
5482
+ bg: buttonBg,
5477
5483
  onClick: onConfirm,
5478
5484
  type: isSubmitForm ? "submit" : "button",
5479
5485
  isLoading: isSubmitting,
@@ -5887,7 +5893,7 @@ var DappKitButton = ({ isDark, gridColumn = 2 }) => {
5887
5893
  isDark,
5888
5894
  onClick: openDappKitModal,
5889
5895
  icon: io5.IoWalletOutline,
5890
- text: gridColumn >= 2 ? t("Connect Wallet") : void 0,
5896
+ text: gridColumn >= 2 ? t("Connect wallet") : void 0,
5891
5897
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: io.IoIosArrowForward })
5892
5898
  }
5893
5899
  ) });
@@ -6077,110 +6083,9 @@ var MainContent = ({ setCurrentContent, onClose }) => {
6077
6083
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { pt: 0, pb: "5px", children: /* @__PURE__ */ jsxRuntime.jsx(VersionFooter, {}) })
6078
6084
  ] });
6079
6085
  };
6080
- var useFeatureAnnouncement = () => {
6081
- const [isVisible, setIsVisible] = React10.useState(true);
6082
- const CACHE_KEY = "vechain_kit_feature_announcement_closed";
6083
- React10.useEffect(() => {
6084
- const isClosed = localStorage.getItem(CACHE_KEY);
6085
- if (isClosed) {
6086
- setIsVisible(false);
6087
- }
6088
- }, []);
6089
- const closeAnnouncement = () => {
6090
- localStorage.setItem(CACHE_KEY, "true");
6091
- setIsVisible(false);
6092
- };
6093
- return {
6094
- isVisible,
6095
- closeAnnouncement
6096
- };
6097
- };
6098
- var FeatureAnnouncementCard = ({
6099
- setCurrentContent
6100
- }) => {
6101
- const { t } = reactI18next.useTranslation();
6102
- const { isVisible, closeAnnouncement } = useFeatureAnnouncement();
6103
- const titleColor = react.useColorModeValue("gray.800", "whiteAlpha.900");
6104
- const handleOnClick = () => {
6105
- setCurrentContent({
6106
- type: "choose-name",
6107
- props: {
6108
- setCurrentContent,
6109
- onBack: () => setCurrentContent("main"),
6110
- initialContentSource: "main"
6111
- }
6112
- });
6113
- closeAnnouncement();
6114
- };
6115
- if (!isVisible) return null;
6116
- return /* @__PURE__ */ jsxRuntime.jsx(
6117
- react.Card,
6118
- {
6119
- w: "full",
6120
- variant: "featureAnnouncement",
6121
- overflow: "hidden",
6122
- mb: 4,
6123
- onClick: handleOnClick,
6124
- cursor: "pointer",
6125
- _hover: { opacity: 0.8 },
6126
- children: /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { p: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "space-between", align: "flex-start", spacing: 3, children: [
6127
- /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "flex-start", spacing: 1, children: [
6128
- /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, children: [
6129
- /* @__PURE__ */ jsxRuntime.jsx(
6130
- react.Text,
6131
- {
6132
- fontSize: "sm",
6133
- fontWeight: "400",
6134
- color: titleColor,
6135
- children: t("Claim your vet domain!")
6136
- }
6137
- ),
6138
- /* @__PURE__ */ jsxRuntime.jsx(react.Tag, { size: "sm", colorScheme: "red", children: t("New") })
6139
- ] }),
6140
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", opacity: 0.5, children: t(
6141
- "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!"
6142
- ) })
6143
- ] }),
6144
- /* @__PURE__ */ jsxRuntime.jsx(
6145
- react.IconButton,
6146
- {
6147
- size: "sm",
6148
- variant: "ghost",
6149
- colorScheme: "gray",
6150
- icon: /* @__PURE__ */ jsxRuntime.jsx(io5.IoCloseCircle, {}),
6151
- onClick: (e) => {
6152
- e.stopPropagation();
6153
- closeAnnouncement();
6154
- },
6155
- "aria-label": t("Close announcement")
6156
- }
6157
- )
6158
- ] }) })
6159
- }
6160
- );
6161
- };
6162
- var ExchangeWarningAlert = () => {
6163
- const { t } = reactI18next.useTranslation();
6164
- return /* @__PURE__ */ jsxRuntime.jsx(react.Alert, { status: "warning", fontSize: "xs", borderRadius: "xl", p: 2, children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 1, align: "stretch", w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, align: "flex-start", children: [
6165
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { boxSize: 4, mt: "10px" }),
6166
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { w: "full", children: t(
6167
- "Sending to OceanX or other exchanges may result in loss of funds."
6168
- ) })
6169
- ] }) }) });
6170
- };
6171
- var DomainRequiredAlert = () => {
6172
- const { t } = reactI18next.useTranslation();
6173
- return /* @__PURE__ */ jsxRuntime.jsx(react.Alert, { status: "warning", fontSize: "xs", borderRadius: "xl", p: 2, children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 1, align: "stretch", w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, align: "flex-start", children: [
6174
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { boxSize: 4, mt: "10px" }),
6175
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { w: "full", children: t(
6176
- "A .vet domain is required to customize your profile. Choose an account name to get started."
6177
- ) })
6178
- ] }) }) });
6179
- };
6180
6086
  var AccountMainContent = ({ setCurrentContent, wallet }) => {
6181
6087
  const { t } = reactI18next.useTranslation();
6182
6088
  const { network } = useVeChainKitConfig();
6183
- const { account } = useWallet();
6184
6089
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
6185
6090
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
6186
6091
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -6194,7 +6099,29 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6194
6099
  })
6195
6100
  }
6196
6101
  ),
6197
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Wallet") }),
6102
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(
6103
+ react.HStack,
6104
+ {
6105
+ w: "full",
6106
+ justifyContent: "center",
6107
+ p: 0,
6108
+ spacing: 2,
6109
+ children: [
6110
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "md", fontWeight: "bold", children: t("Wallet") }),
6111
+ network?.type !== "main" && /* @__PURE__ */ jsxRuntime.jsx(
6112
+ react.Tag,
6113
+ {
6114
+ size: "xs",
6115
+ colorScheme: "orange",
6116
+ fontSize: "2xs",
6117
+ p: 1,
6118
+ textTransform: "uppercase",
6119
+ children: `${network?.type}`
6120
+ }
6121
+ )
6122
+ ]
6123
+ }
6124
+ ) }),
6198
6125
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
6199
6126
  ] }),
6200
6127
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6205,12 +6132,6 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6205
6132
  justifyContent: "flex-start",
6206
6133
  spacing: 6,
6207
6134
  children: [
6208
- !account?.domain && /* @__PURE__ */ jsxRuntime.jsx(
6209
- FeatureAnnouncementCard,
6210
- {
6211
- setCurrentContent
6212
- }
6213
- ),
6214
6135
  /* @__PURE__ */ jsxRuntime.jsx(
6215
6136
  AccountSelector,
6216
6137
  {
@@ -6221,26 +6142,6 @@ var AccountMainContent = ({ setCurrentContent, wallet }) => {
6221
6142
  wallet
6222
6143
  }
6223
6144
  ),
6224
- network?.type !== "main" && /* @__PURE__ */ jsxRuntime.jsx(
6225
- react.HStack,
6226
- {
6227
- w: "full",
6228
- justifyContent: "flex-start",
6229
- mt: "-10px",
6230
- mb: "-10px",
6231
- children: /* @__PURE__ */ jsxRuntime.jsx(
6232
- react.Tag,
6233
- {
6234
- size: "xl",
6235
- colorScheme: "orange",
6236
- fontSize: "xs",
6237
- p: 2,
6238
- textTransform: "capitalize",
6239
- children: `${network?.type} network`
6240
- }
6241
- )
6242
- }
6243
- ),
6244
6145
  /* @__PURE__ */ jsxRuntime.jsx(
6245
6146
  BalanceSection,
6246
6147
  {
@@ -6444,7 +6345,7 @@ var AccountSelector = ({
6444
6345
  props: { width: 7, height: 7 }
6445
6346
  }
6446
6347
  ),
6447
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkRUIC653T_cjs.humanDomain(wallet?.domain ?? "", 15, 0) || chunkRUIC653T_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
6348
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkRUIC653T_cjs.humanDomain(wallet?.domain ?? "", 18, 0) || chunkRUIC653T_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
6448
6349
  ] }),
6449
6350
  /* @__PURE__ */ jsxRuntime.jsx(
6450
6351
  react.Icon,
@@ -6868,6 +6769,109 @@ var QuickActionsSection = ({ mt, setCurrentContent }) => {
6868
6769
  )) })
6869
6770
  ] });
6870
6771
  };
6772
+ var useFeatureAnnouncement = () => {
6773
+ const [isVisible, setIsVisible] = React10.useState(true);
6774
+ const CACHE_KEY = "vechain_kit_feature_announcement_closed";
6775
+ React10.useEffect(() => {
6776
+ const isClosed = localStorage.getItem(CACHE_KEY);
6777
+ if (isClosed) {
6778
+ setIsVisible(false);
6779
+ }
6780
+ }, []);
6781
+ const closeAnnouncement = () => {
6782
+ localStorage.setItem(CACHE_KEY, "true");
6783
+ setIsVisible(false);
6784
+ };
6785
+ return {
6786
+ isVisible,
6787
+ closeAnnouncement
6788
+ };
6789
+ };
6790
+ var FeatureAnnouncementCard = ({
6791
+ setCurrentContent
6792
+ }) => {
6793
+ const { t } = reactI18next.useTranslation();
6794
+ const { isVisible, closeAnnouncement } = useFeatureAnnouncement();
6795
+ const titleColor = react.useColorModeValue("blackAlpha.800", "whiteAlpha.800");
6796
+ const descriptionColor = react.useColorModeValue(
6797
+ "blackAlpha.700",
6798
+ "whiteAlpha.700"
6799
+ );
6800
+ const handleOnClick = () => {
6801
+ setCurrentContent({
6802
+ type: "choose-name",
6803
+ props: {
6804
+ setCurrentContent,
6805
+ onBack: () => setCurrentContent("main"),
6806
+ initialContentSource: "main"
6807
+ }
6808
+ });
6809
+ closeAnnouncement();
6810
+ };
6811
+ if (!isVisible) return null;
6812
+ return /* @__PURE__ */ jsxRuntime.jsx(
6813
+ react.Card,
6814
+ {
6815
+ w: "full",
6816
+ variant: "featureAnnouncement",
6817
+ overflow: "hidden",
6818
+ onClick: handleOnClick,
6819
+ cursor: "pointer",
6820
+ _hover: { opacity: 0.8 },
6821
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { p: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "space-between", align: "flex-start", spacing: 3, children: [
6822
+ /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "flex-start", spacing: 1, children: [
6823
+ /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, children: [
6824
+ /* @__PURE__ */ jsxRuntime.jsx(
6825
+ react.Text,
6826
+ {
6827
+ fontSize: "sm",
6828
+ fontWeight: "400",
6829
+ color: titleColor,
6830
+ children: t("Claim your vet domain!")
6831
+ }
6832
+ ),
6833
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tag, { size: "sm", colorScheme: "red", children: t("New") })
6834
+ ] }),
6835
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", color: descriptionColor, children: t(
6836
+ "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!"
6837
+ ) })
6838
+ ] }),
6839
+ /* @__PURE__ */ jsxRuntime.jsx(
6840
+ react.IconButton,
6841
+ {
6842
+ size: "sm",
6843
+ variant: "ghost",
6844
+ colorScheme: "gray",
6845
+ icon: /* @__PURE__ */ jsxRuntime.jsx(io5.IoCloseCircle, {}),
6846
+ onClick: (e) => {
6847
+ e.stopPropagation();
6848
+ closeAnnouncement();
6849
+ },
6850
+ "aria-label": t("Close announcement")
6851
+ }
6852
+ )
6853
+ ] }) })
6854
+ }
6855
+ );
6856
+ };
6857
+ var ExchangeWarningAlert = () => {
6858
+ const { t } = reactI18next.useTranslation();
6859
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Alert, { status: "warning", fontSize: "xs", borderRadius: "xl", p: 2, children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 1, align: "stretch", w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, align: "flex-start", children: [
6860
+ /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { boxSize: 4, mt: "10px" }),
6861
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { w: "full", children: t(
6862
+ "Sending to OceanX or other exchanges may result in loss of funds."
6863
+ ) })
6864
+ ] }) }) });
6865
+ };
6866
+ var DomainRequiredAlert = () => {
6867
+ const { t } = reactI18next.useTranslation();
6868
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Alert, { status: "warning", fontSize: "xs", borderRadius: "xl", p: 2, children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 1, align: "stretch", w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, align: "flex-start", children: [
6869
+ /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { boxSize: 4, mt: "10px" }),
6870
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { w: "full", children: t(
6871
+ "A .vet domain is required to customize your profile. Choose an account name to get started."
6872
+ ) })
6873
+ ] }) }) });
6874
+ };
6871
6875
  var AccessAndSecurityContent = ({ setCurrentContent }) => {
6872
6876
  const { t } = reactI18next.useTranslation();
6873
6877
  const { exportWallet } = reactAuth.usePrivy();
@@ -9174,6 +9178,7 @@ var en_default = {
9174
9178
  "Confirm transaction": "Confirm transaction",
9175
9179
  "Connect Wallet": "Connect Wallet",
9176
9180
  "Connect an external wallet for easier access": "Connect an external wallet for easier access",
9181
+ "Connect wallet": "Connect wallet",
9177
9182
  "Connect your Apple account for easier access": "Connect your Apple account for easier access",
9178
9183
  "Connect your Discord account for easier access": "Connect your Discord account for easier access",
9179
9184
  "Connect your Farcaster account for easier access": "Connect your Farcaster account for easier access",
@@ -9654,6 +9659,7 @@ var de_default = {
9654
9659
  "Confirm transaction": "Transaktion best\xE4tigen",
9655
9660
  "Connect Wallet": "Wallet verbinden",
9656
9661
  "Connect an external wallet for easier access": "Verbinden Sie eine externe Wallet f\xFCr einfacheren Zugang",
9662
+ "Connect wallet": "Wallet verbinden",
9657
9663
  "Connect your Apple account for easier access": "Verbinden Sie Ihr Apple-Konto f\xFCr einfacheren Zugriff",
9658
9664
  "Connect your Discord account for easier access": "Verbinden Sie Ihr Discord-Konto f\xFCr einen einfacheren Zugriff",
9659
9665
  "Connect your Farcaster account for easier access": "Verbinden Sie Ihr Farcaster-Konto f\xFCr einfacheren Zugriff",
@@ -10134,6 +10140,7 @@ var it_default = {
10134
10140
  "Confirm transaction": "Conferma transazione",
10135
10141
  "Connect Wallet": "Collega Portafoglio",
10136
10142
  "Connect an external wallet for easier access": "Collega un portafoglio esterno per un accesso pi\xF9 semplice",
10143
+ "Connect wallet": "Connetti portafoglio",
10137
10144
  "Connect your Apple account for easier access": "Collega il tuo account Apple per un accesso pi\xF9 facile",
10138
10145
  "Connect your Discord account for easier access": "Collega il tuo account Discord per accedere pi\xF9 facilmente",
10139
10146
  "Connect your Farcaster account for easier access": "Collega il tuo account Farcaster per un accesso pi\xF9 facile",
@@ -10614,6 +10621,7 @@ var fr_default = {
10614
10621
  "Confirm transaction": "Confirmer la transaction",
10615
10622
  "Connect Wallet": "Connecter le portefeuille",
10616
10623
  "Connect an external wallet for easier access": "Connectez un portefeuille externe pour un acc\xE8s plus facile",
10624
+ "Connect wallet": "Connecter le portefeuille",
10617
10625
  "Connect your Apple account for easier access": "Connectez votre compte Apple pour un acc\xE8s plus facile",
10618
10626
  "Connect your Discord account for easier access": "Connectez votre compte Discord pour un acc\xE8s plus facile",
10619
10627
  "Connect your Farcaster account for easier access": "Connectez votre compte Farcaster pour un acc\xE8s plus facile",
@@ -11094,6 +11102,7 @@ var es_default = {
11094
11102
  "Confirm transaction": "Confirmar transacci\xF3n",
11095
11103
  "Connect Wallet": "Conectar Monedero",
11096
11104
  "Connect an external wallet for easier access": "Conectar una billetera externa para un acceso m\xE1s f\xE1cil",
11105
+ "Connect wallet": "Conectar billetera",
11097
11106
  "Connect your Apple account for easier access": "Conecta tu cuenta de Apple para un acceso m\xE1s f\xE1cil",
11098
11107
  "Connect your Discord account for easier access": "Conecta tu cuenta de Discord para un acceso m\xE1s f\xE1cil",
11099
11108
  "Connect your Farcaster account for easier access": "Conecta tu cuenta de Farcaster para un acceso m\xE1s f\xE1cil",
@@ -11574,6 +11583,7 @@ var zh_default = {
11574
11583
  "Confirm transaction": "\u786E\u8BA4\u4EA4\u6613",
11575
11584
  "Connect Wallet": "\u8FDE\u63A5\u94B1\u5305",
11576
11585
  "Connect an external wallet for easier access": "\u8FDE\u63A5\u5916\u90E8\u94B1\u5305\u4EE5\u4FBF\u66F4\u8F7B\u677E\u8BBF\u95EE",
11586
+ "Connect wallet": "\u8FDE\u63A5\u94B1\u5305",
11577
11587
  "Connect your Apple account for easier access": "\u8FDE\u63A5\u60A8\u7684 Apple \u8D26\u6237\u4EE5\u4FBF\u66F4\u8F7B\u677E\u5730\u8BBF\u95EE",
11578
11588
  "Connect your Discord account for easier access": "\u8FDE\u63A5\u60A8\u7684 Discord \u5E10\u53F7\u4EE5\u66F4\u8F7B\u677E\u5730\u8BBF\u95EE",
11579
11589
  "Connect your Farcaster account for easier access": "\u8FDE\u63A5\u60A8\u7684 Farcaster \u8D26\u6237\u4EE5\u4FBF\u66F4\u8F7B\u677E\u5730\u8BBF\u95EE",
@@ -12054,6 +12064,7 @@ var ja_default = {
12054
12064
  "Confirm transaction": "\u53D6\u5F15\u3092\u78BA\u8A8D",
12055
12065
  "Connect Wallet": "\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u63A5\u7D9A",
12056
12066
  "Connect an external wallet for easier access": "\u5916\u90E8\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u7C21\u5358\u306B\u30A2\u30AF\u30BB\u30B9",
12067
+ "Connect wallet": "\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u63A5\u7D9A",
12057
12068
  "Connect your Apple account for easier access": "Apple\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u7C21\u5358\u306B\u30A2\u30AF\u30BB\u30B9",
12058
12069
  "Connect your Discord account for easier access": "\u7C21\u5358\u306A\u30A2\u30AF\u30BB\u30B9\u306E\u305F\u3081\u306B\u3042\u306A\u305F\u306EDiscord\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044",
12059
12070
  "Connect your Farcaster account for easier access": "Farcaster\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u7C21\u5358\u306B\u30A2\u30AF\u30BB\u30B9",
@@ -13184,26 +13195,34 @@ var ProfileContent = ({
13184
13195
  /* @__PURE__ */ jsxRuntime.jsx(ModalBackButton, { onClick: () => setCurrentContent("main") }),
13185
13196
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
13186
13197
  ] }),
13187
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsx(
13188
- ProfileCard,
13189
- {
13190
- onEditClick: () => setCurrentContent("account-customization"),
13191
- address: account?.address ?? "",
13192
- showHeader: false,
13193
- onLogout: () => {
13194
- setCurrentContent?.({
13195
- type: "disconnect-confirm",
13196
- props: {
13197
- onDisconnect: () => {
13198
- disconnect();
13199
- onLogoutSuccess?.();
13200
- },
13201
- onBack: () => setCurrentContent?.("profile")
13202
- }
13203
- });
13198
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { w: "full", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { w: "full", spacing: 2, children: [
13199
+ !account?.domain && /* @__PURE__ */ jsxRuntime.jsx(
13200
+ FeatureAnnouncementCard,
13201
+ {
13202
+ setCurrentContent
13204
13203
  }
13205
- }
13206
- ) }),
13204
+ ),
13205
+ /* @__PURE__ */ jsxRuntime.jsx(
13206
+ ProfileCard,
13207
+ {
13208
+ onEditClick: () => setCurrentContent("account-customization"),
13209
+ address: account?.address ?? "",
13210
+ showHeader: false,
13211
+ onLogout: () => {
13212
+ setCurrentContent?.({
13213
+ type: "disconnect-confirm",
13214
+ props: {
13215
+ onDisconnect: () => {
13216
+ disconnect();
13217
+ onLogoutSuccess?.();
13218
+ },
13219
+ onBack: () => setCurrentContent?.("profile")
13220
+ }
13221
+ });
13222
+ }
13223
+ }
13224
+ )
13225
+ ] }) }),
13207
13226
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { pt: 0 })
13208
13227
  ] });
13209
13228
  };
@@ -13273,12 +13292,71 @@ var UpgradeSmartAccountContent = ({
13273
13292
  ),
13274
13293
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
13275
13294
  ] }),
13276
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "stretch", children: [
13295
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 10, align: "stretch", children: [
13277
13296
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", textAlign: "center", children: upgradeRequired ? t(
13278
13297
  "Your smart account needs to be upgraded to the latest version (v3)."
13279
13298
  ) : t(
13280
13299
  "Your smart account is already upgraded to this version."
13281
13300
  ) }),
13301
+ /* @__PURE__ */ jsxRuntime.jsxs(
13302
+ react.HStack,
13303
+ {
13304
+ align: "center",
13305
+ justifyContent: "space-evenly",
13306
+ rounded: "md",
13307
+ children: [
13308
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", display: "inline-block", children: [
13309
+ /* @__PURE__ */ jsxRuntime.jsx(react.Circle, { size: "60px", bg: "gray.200", children: /* @__PURE__ */ jsxRuntime.jsx(
13310
+ react.Image,
13311
+ {
13312
+ borderRadius: "full",
13313
+ src: smartAccount?.image,
13314
+ alt: t("Profile Picture"),
13315
+ w: "100%",
13316
+ h: "100%",
13317
+ objectFit: "cover"
13318
+ }
13319
+ ) }),
13320
+ /* @__PURE__ */ jsxRuntime.jsx(
13321
+ react.Heading,
13322
+ {
13323
+ position: "absolute",
13324
+ top: "-5",
13325
+ right: "-5",
13326
+ color: "#D23F63",
13327
+ fontSize: "28px",
13328
+ children: `v1`
13329
+ }
13330
+ )
13331
+ ] }),
13332
+ /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: fa.FaArrowRight, color: "#3DBA67" }),
13333
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", display: "inline-block", children: [
13334
+ /* @__PURE__ */ jsxRuntime.jsx(react.Circle, { size: "60px", bg: "gray.200", children: /* @__PURE__ */ jsxRuntime.jsx(
13335
+ react.Image,
13336
+ {
13337
+ borderRadius: "full",
13338
+ src: smartAccount?.image,
13339
+ alt: t("Profile Picture"),
13340
+ w: "100%",
13341
+ h: "100%",
13342
+ objectFit: "cover"
13343
+ }
13344
+ ) }),
13345
+ /* @__PURE__ */ jsxRuntime.jsx(
13346
+ react.Heading,
13347
+ {
13348
+ position: "absolute",
13349
+ top: "-5",
13350
+ right: "-5",
13351
+ color: "#3DBA67",
13352
+ fontSize: "28px",
13353
+ children: `v3`
13354
+ }
13355
+ )
13356
+ ] })
13357
+ ]
13358
+ }
13359
+ ),
13282
13360
  /* @__PURE__ */ jsxRuntime.jsxs(react.Alert, { status: "info", borderRadius: "md", children: [
13283
13361
  /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, {}),
13284
13362
  /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
@@ -13304,23 +13382,6 @@ var UpgradeSmartAccountContent = ({
13304
13382
  ] })
13305
13383
  ] }) })
13306
13384
  ] })
13307
- ] }),
13308
- /* @__PURE__ */ jsxRuntime.jsxs(react.Alert, { status: "warning", borderRadius: "md", children: [
13309
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { as: io5.IoWarningOutline }),
13310
- /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
13311
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertTitle, { fontSize: "sm", children: t("Important") }),
13312
- /* @__PURE__ */ jsxRuntime.jsx(
13313
- react.AlertDescription,
13314
- {
13315
- fontSize: "xs",
13316
- lineHeight: "17px",
13317
- display: "block",
13318
- children: t(
13319
- "This upgrade is necessary to continue interacting with VeChain blockchain. Please complete it now."
13320
- )
13321
- }
13322
- )
13323
- ] })
13324
13385
  ] })
13325
13386
  ] }) }),
13326
13387
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 3, w: "full", children: [
@@ -14537,7 +14598,7 @@ var DEFAULT_APPS = [
14537
14598
  name: "VeChain Kit",
14538
14599
  description: "A all-in-one library for building VeChain applications.",
14539
14600
  external_url: "https://vechainkit.vechain.org/",
14540
- logo: "https://i.ibb.co/ncysMF9/vechain-kit-logo-transparent.png",
14601
+ logo: "https://vechain.org/wp-content/uploads/2025/02/VeChain_Icon_Quartz_300ppi.png",
14541
14602
  banner: "",
14542
14603
  screenshots: [],
14543
14604
  social_urls: [],
@@ -14840,7 +14901,7 @@ var TransactionModalContent = ({
14840
14901
  };
14841
14902
  case "error":
14842
14903
  return {
14843
- title: uiConfig?.title ?? t("Something went wrong"),
14904
+ title: t("Something went wrong"),
14844
14905
  icon: uiConfig?.errorIcon ?? /* @__PURE__ */ jsxRuntime.jsx(
14845
14906
  react.Icon,
14846
14907
  {
@@ -14853,7 +14914,7 @@ var TransactionModalContent = ({
14853
14914
  };
14854
14915
  case "success":
14855
14916
  return {
14856
- title: uiConfig?.title ?? t("Transaction completed!"),
14917
+ title: t("Transaction successful!"),
14857
14918
  icon: uiConfig?.successIcon ?? /* @__PURE__ */ jsxRuntime.jsx(
14858
14919
  react.Icon,
14859
14920
  {
@@ -15021,7 +15082,7 @@ var SuccessfulOperationContent = ({
15021
15082
  showSocialButtons = false
15022
15083
  }) => {
15023
15084
  const { t } = reactI18next.useTranslation();
15024
- const { network } = useVeChainKitConfig();
15085
+ const { network, darkMode } = useVeChainKitConfig();
15025
15086
  const explorerUrl = chunkRUIC653T_cjs.getConfig(network.type).explorerUrl;
15026
15087
  const socialDescription = `${explorerUrl}/${txId}`;
15027
15088
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
@@ -15035,7 +15096,7 @@ var SuccessfulOperationContent = ({
15035
15096
  {
15036
15097
  as: io.IoIosCheckmarkCircleOutline,
15037
15098
  fontSize: "100px",
15038
- color: "#22c55e"
15099
+ color: darkMode ? "#00ff45de" : "#10ba3e"
15039
15100
  }
15040
15101
  ),
15041
15102
  description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", textAlign: "center", children: description }),
@@ -16163,7 +16224,7 @@ var SuccessfulOperationContent2 = ({
16163
16224
  showSocialButtons = false
16164
16225
  }) => {
16165
16226
  const { t } = reactI18next.useTranslation();
16166
- const { network } = useVeChainKitConfig();
16227
+ const { network, darkMode } = useVeChainKitConfig();
16167
16228
  const explorerUrl = chunkRUIC653T_cjs.getConfig(network.type).explorerUrl;
16168
16229
  const socialDescription = `${explorerUrl}/${txId}`;
16169
16230
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
@@ -16188,7 +16249,7 @@ var SuccessfulOperationContent2 = ({
16188
16249
  {
16189
16250
  as: io.IoIosCheckmarkCircleOutline,
16190
16251
  fontSize: "100px",
16191
- color: "#00ff45de"
16252
+ color: darkMode ? "#00ff45de" : "#10ba3e"
16192
16253
  }
16193
16254
  )
16194
16255
  }
@@ -16242,7 +16303,8 @@ var SuccessfulOperationContent2 = ({
16242
16303
  };
16243
16304
  var UpgradeSmartAccountContent2 = ({
16244
16305
  setCurrentContent,
16245
- handleClose
16306
+ handleClose,
16307
+ style
16246
16308
  }) => {
16247
16309
  const { t } = reactI18next.useTranslation();
16248
16310
  const { smartAccount, connectedWallet } = useWallet();
@@ -16293,10 +16355,69 @@ var UpgradeSmartAccountContent2 = ({
16293
16355
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: t("Account upgrade required") }),
16294
16356
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
16295
16357
  ] }),
16296
- /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "stretch", children: [
16358
+ /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 10, align: "stretch", justifyContent: "center", children: [
16297
16359
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", textAlign: "center", children: t(
16298
16360
  "To continue interacting with VeChain blockchain and complete your operation, your smart account needs to be upgraded to the latest version (v3)."
16299
16361
  ) }),
16362
+ /* @__PURE__ */ jsxRuntime.jsxs(
16363
+ react.HStack,
16364
+ {
16365
+ align: "center",
16366
+ justifyContent: "space-evenly",
16367
+ rounded: "md",
16368
+ children: [
16369
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", display: "inline-block", children: [
16370
+ /* @__PURE__ */ jsxRuntime.jsx(react.Circle, { size: "60px", bg: "gray.200", children: /* @__PURE__ */ jsxRuntime.jsx(
16371
+ react.Image,
16372
+ {
16373
+ src: smartAccount?.image,
16374
+ alt: t("Profile Picture"),
16375
+ w: "100%",
16376
+ h: "100%",
16377
+ borderRadius: "full",
16378
+ objectFit: "cover"
16379
+ }
16380
+ ) }),
16381
+ /* @__PURE__ */ jsxRuntime.jsx(
16382
+ react.Heading,
16383
+ {
16384
+ position: "absolute",
16385
+ top: "-5",
16386
+ right: "-5",
16387
+ color: "#D23F63",
16388
+ fontSize: "28px",
16389
+ children: `v1`
16390
+ }
16391
+ )
16392
+ ] }),
16393
+ /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: fa.FaArrowRight, color: "#3DBA67" }),
16394
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", display: "inline-block", children: [
16395
+ /* @__PURE__ */ jsxRuntime.jsx(react.Circle, { size: "60px", bg: "gray.200", children: /* @__PURE__ */ jsxRuntime.jsx(
16396
+ react.Image,
16397
+ {
16398
+ src: smartAccount?.image,
16399
+ alt: t("Profile Picture"),
16400
+ w: "100%",
16401
+ h: "100%",
16402
+ borderRadius: "full",
16403
+ objectFit: "cover"
16404
+ }
16405
+ ) }),
16406
+ /* @__PURE__ */ jsxRuntime.jsx(
16407
+ react.Heading,
16408
+ {
16409
+ position: "absolute",
16410
+ top: "-5",
16411
+ right: "-5",
16412
+ color: "#3DBA67",
16413
+ fontSize: "28px",
16414
+ children: `v3`
16415
+ }
16416
+ )
16417
+ ] })
16418
+ ]
16419
+ }
16420
+ ),
16300
16421
  /* @__PURE__ */ jsxRuntime.jsxs(react.Alert, { status: "info", borderRadius: "md", children: [
16301
16422
  /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, {}),
16302
16423
  /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
@@ -16322,28 +16443,12 @@ var UpgradeSmartAccountContent2 = ({
16322
16443
  ] })
16323
16444
  ] }) })
16324
16445
  ] })
16325
- ] }),
16326
- /* @__PURE__ */ jsxRuntime.jsxs(react.Alert, { status: "warning", borderRadius: "md", children: [
16327
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertIcon, { as: io5.IoWarningOutline }),
16328
- /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
16329
- /* @__PURE__ */ jsxRuntime.jsx(react.AlertTitle, { fontSize: "sm", children: t("Important") }),
16330
- /* @__PURE__ */ jsxRuntime.jsx(
16331
- react.AlertDescription,
16332
- {
16333
- fontSize: "xs",
16334
- lineHeight: "17px",
16335
- display: "block",
16336
- children: t(
16337
- "This upgrade is necessary to continue interacting with VeChain blockchain. Please complete it now."
16338
- )
16339
- }
16340
- )
16341
- ] })
16342
16446
  ] })
16343
16447
  ] }) }),
16344
16448
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { spacing: 3, w: "full", children: /* @__PURE__ */ jsxRuntime.jsx(
16345
16449
  TransactionButtonAndStatus,
16346
16450
  {
16451
+ style,
16347
16452
  buttonText: upgradeRequired ? t("Upgrade account") : t("Account already upgraded"),
16348
16453
  onConfirm: handleUpgrade,
16349
16454
  isTxWaitingConfirmation: isWaitingForWalletConfirmation,
@@ -16356,7 +16461,7 @@ var UpgradeSmartAccountContent2 = ({
16356
16461
  ) }) })
16357
16462
  ] });
16358
16463
  };
16359
- var UpgradeSmartAccountModal = ({ isOpen, onClose }) => {
16464
+ var UpgradeSmartAccountModal = ({ isOpen, onClose, style }) => {
16360
16465
  const [currentContent, setCurrentContent] = React10.useState(
16361
16466
  "upgrade-smart-account"
16362
16467
  );
@@ -16376,7 +16481,8 @@ var UpgradeSmartAccountModal = ({ isOpen, onClose }) => {
16376
16481
  UpgradeSmartAccountContent2,
16377
16482
  {
16378
16483
  setCurrentContent,
16379
- handleClose: onClose
16484
+ handleClose: onClose,
16485
+ style
16380
16486
  }
16381
16487
  );
16382
16488
  }
@@ -16388,6 +16494,7 @@ var UpgradeSmartAccountModal = ({ isOpen, onClose }) => {
16388
16494
  onClose,
16389
16495
  allowExternalFocus: true,
16390
16496
  blockScrollOnMount: true,
16497
+ size: style?.modalSize,
16391
16498
  children: renderContent()
16392
16499
  }
16393
16500
  );
@@ -16416,10 +16523,13 @@ var ModalProvider = ({ children }) => {
16416
16523
  []
16417
16524
  );
16418
16525
  const [isAccountModalOpen, setIsAccountModalOpen] = React10.useState(false);
16419
- const openAccountModal = React10.useCallback(() => {
16420
- setAccountModalContent("main");
16421
- setIsAccountModalOpen(true);
16422
- }, []);
16526
+ const openAccountModal = React10.useCallback(
16527
+ (content) => {
16528
+ setAccountModalContent(content ?? "main");
16529
+ setIsAccountModalOpen(true);
16530
+ },
16531
+ []
16532
+ );
16423
16533
  const closeAccountModal = React10.useCallback(
16424
16534
  () => setIsAccountModalOpen(false),
16425
16535
  []
@@ -16443,8 +16553,12 @@ var ModalProvider = ({ children }) => {
16443
16553
  []
16444
16554
  );
16445
16555
  const [isUpgradeSmartAccountModalOpen, setIsUpgradeSmartAccountModalOpen] = React10.useState(false);
16556
+ const [upgradeSmartAccountModalStyle, setUpgradeSmartAccountModalStyle] = React10.useState(void 0);
16446
16557
  const openUpgradeSmartAccountModal = React10.useCallback(
16447
- () => setIsUpgradeSmartAccountModalOpen(true),
16558
+ (style) => {
16559
+ setUpgradeSmartAccountModalStyle(style);
16560
+ setIsUpgradeSmartAccountModalOpen(true);
16561
+ },
16448
16562
  []
16449
16563
  );
16450
16564
  const closeUpgradeSmartAccountModal = React10.useCallback(
@@ -16495,7 +16609,8 @@ var ModalProvider = ({ children }) => {
16495
16609
  UpgradeSmartAccountModal,
16496
16610
  {
16497
16611
  isOpen: isUpgradeSmartAccountModalOpen,
16498
- onClose: closeUpgradeSmartAccountModal
16612
+ onClose: closeUpgradeSmartAccountModal,
16613
+ style: upgradeSmartAccountModalStyle
16499
16614
  }
16500
16615
  )
16501
16616
  ]
@@ -16517,7 +16632,7 @@ var useAccountModal = () => {
16517
16632
  closeAccountModal: close,
16518
16633
  isAccountModalOpen: isOpen
16519
16634
  } = useModal();
16520
- return { open, close, isOpen };
16635
+ return { open: () => open(), close, isOpen };
16521
16636
  };
16522
16637
  var AccountModalProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16523
16638
  var useTransactionModal = () => {
@@ -16579,7 +16694,7 @@ var useChooseNameModal = () => {
16579
16694
  setAccountModalContent
16580
16695
  } = useModal();
16581
16696
  const open = () => {
16582
- setAccountModalContent({
16697
+ openAccountModal({
16583
16698
  type: "choose-name",
16584
16699
  props: {
16585
16700
  setCurrentContent: setAccountModalContent,
@@ -16587,7 +16702,6 @@ var useChooseNameModal = () => {
16587
16702
  initialContentSource: "main"
16588
16703
  }
16589
16704
  });
16590
- openAccountModal();
16591
16705
  };
16592
16706
  const close = () => {
16593
16707
  closeAccountModal();
@@ -16609,13 +16723,12 @@ var useSendTokenModal = () => {
16609
16723
  setAccountModalContent
16610
16724
  } = useModal();
16611
16725
  const open = () => {
16612
- setAccountModalContent({
16726
+ openAccountModal({
16613
16727
  type: "send-token",
16614
16728
  props: {
16615
16729
  setCurrentContent: setAccountModalContent
16616
16730
  }
16617
16731
  });
16618
- openAccountModal();
16619
16732
  };
16620
16733
  const close = () => {
16621
16734
  closeAccountModal();
@@ -16630,15 +16743,9 @@ var SendTokenModalProvider = ({
16630
16743
  children
16631
16744
  }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16632
16745
  var useAccessAndSecurityModal = () => {
16633
- const {
16634
- openAccountModal,
16635
- closeAccountModal,
16636
- isAccountModalOpen,
16637
- setAccountModalContent
16638
- } = useModal();
16746
+ const { openAccountModal, closeAccountModal, isAccountModalOpen } = useModal();
16639
16747
  const open = () => {
16640
- setAccountModalContent("access-and-security");
16641
- openAccountModal();
16748
+ openAccountModal("access-and-security");
16642
16749
  };
16643
16750
  const close = () => {
16644
16751
  closeAccountModal();
@@ -16653,15 +16760,9 @@ var AccessAndSecurityModalProvider = ({
16653
16760
  children
16654
16761
  }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16655
16762
  var useExploreEcosystemModal = () => {
16656
- const {
16657
- openAccountModal,
16658
- closeAccountModal,
16659
- isAccountModalOpen,
16660
- setAccountModalContent
16661
- } = useModal();
16763
+ const { openAccountModal, closeAccountModal, isAccountModalOpen } = useModal();
16662
16764
  const open = () => {
16663
- setAccountModalContent("ecosystem");
16664
- openAccountModal();
16765
+ openAccountModal("ecosystem");
16665
16766
  };
16666
16767
  const close = () => {
16667
16768
  closeAccountModal();
@@ -16676,15 +16777,9 @@ var ExploreEcosystemModalProvider = ({
16676
16777
  children
16677
16778
  }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16678
16779
  var useNotificationsModal = () => {
16679
- const {
16680
- openAccountModal,
16681
- closeAccountModal,
16682
- isAccountModalOpen,
16683
- setAccountModalContent
16684
- } = useModal();
16780
+ const { openAccountModal, closeAccountModal, isAccountModalOpen } = useModal();
16685
16781
  const open = () => {
16686
- setAccountModalContent("notifications");
16687
- openAccountModal();
16782
+ openAccountModal("notifications");
16688
16783
  };
16689
16784
  const close = () => {
16690
16785
  closeAccountModal();
@@ -16706,11 +16801,10 @@ var useFAQModal = () => {
16706
16801
  setAccountModalContent
16707
16802
  } = useModal();
16708
16803
  const open = () => {
16709
- setAccountModalContent({
16804
+ openAccountModal({
16710
16805
  type: "faq",
16711
16806
  props: { onGoBack: () => setAccountModalContent("main") }
16712
16807
  });
16713
- openAccountModal();
16714
16808
  };
16715
16809
  const close = () => {
16716
16810
  closeAccountModal();
@@ -16723,15 +16817,9 @@ var useFAQModal = () => {
16723
16817
  };
16724
16818
  var FAQModalProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16725
16819
  var useAccountCustomizationModal = () => {
16726
- const {
16727
- openAccountModal,
16728
- closeAccountModal,
16729
- isAccountModalOpen,
16730
- setAccountModalContent
16731
- } = useModal();
16820
+ const { openAccountModal, closeAccountModal, isAccountModalOpen } = useModal();
16732
16821
  const open = () => {
16733
- setAccountModalContent("account-customization");
16734
- openAccountModal();
16822
+ openAccountModal("account-customization");
16735
16823
  };
16736
16824
  const close = () => {
16737
16825
  closeAccountModal();
@@ -16746,15 +16834,9 @@ var AccountCustomizationModalProvider = ({
16746
16834
  children
16747
16835
  }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16748
16836
  var useReceiveModal = () => {
16749
- const {
16750
- openAccountModal,
16751
- closeAccountModal,
16752
- isAccountModalOpen,
16753
- setAccountModalContent
16754
- } = useModal();
16837
+ const { openAccountModal, closeAccountModal, isAccountModalOpen } = useModal();
16755
16838
  const open = () => {
16756
- setAccountModalContent("receive-token");
16757
- openAccountModal();
16839
+ openAccountModal("receive-token");
16758
16840
  };
16759
16841
  const close = () => {
16760
16842
  closeAccountModal();
@@ -16835,13 +16917,13 @@ var useLoginModalContent = () => {
16835
16917
  ...baseConfig
16836
16918
  };
16837
16919
  };
16838
- var useUpgradeSmartAccountModal = () => {
16920
+ var useUpgradeSmartAccountModal = (style) => {
16839
16921
  const {
16840
16922
  openUpgradeSmartAccountModal: open,
16841
16923
  closeUpgradeSmartAccountModal: close,
16842
16924
  isUpgradeSmartAccountModalOpen: isOpen
16843
16925
  } = useModal();
16844
- return { open, close, isOpen };
16926
+ return { open: () => open(style), close, isOpen };
16845
16927
  };
16846
16928
  var UpgradeSmartAccountModalProvider = ({
16847
16929
  children
@@ -17303,8 +17385,8 @@ var PrivyWalletProvider = ({
17303
17385
  value: valueArray,
17304
17386
  data: dataArray,
17305
17387
  validAfter: 0,
17306
- validBefore: Math.floor(Date.now() / 1e3) + 60,
17307
- // e.g. 1 minute from now
17388
+ validBefore: Math.floor(Date.now() / 1e3) + 300,
17389
+ // e.g. 5 minutes from now
17308
17390
  nonce: ethers.ethers.hexlify(ethers.ethers.randomBytes(32))
17309
17391
  }
17310
17392
  };
@@ -17745,7 +17827,7 @@ var VeChainKitProvider = (props) => {
17745
17827
  },
17746
17828
  appearance: {
17747
17829
  theme: darkMode ? "dark" : "light",
17748
- accentColor: darkMode ? "#3182CE" : "#2B6CB0",
17830
+ accentColor: privy?.appearance.accentColor ?? (darkMode ? "#3182CE" : "#2B6CB0"),
17749
17831
  loginMessage: privy?.appearance.loginMessage,
17750
17832
  logo: privy?.appearance.logo
17751
17833
  },
@@ -17875,10 +17957,9 @@ var variants2 = {
17875
17957
  }),
17876
17958
  featureAnnouncement: (props) => definePartsStyle2({
17877
17959
  body: {
17878
- backgroundColor: props.colorMode === "dark" ? "whiteAlpha.100" : "blackAlpha.50",
17960
+ backgroundColor: props.colorMode === "dark" ? "#ffffff0a" : "blackAlpha.50",
17879
17961
  borderRadius: "12px",
17880
- border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea",
17881
- color: props.colorMode === "dark" ? "whiteAlpha.900" : "gray.800"
17962
+ color: props.colorMode === "dark" ? "#ffffff12" : "blackAlpha.200"
17882
17963
  },
17883
17964
  container: {
17884
17965
  borderRadius: "12px",