@vechain/vechain-kit 1.5.0 → 1.5.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.
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk5GZ7N47F_cjs = require('./chunk-5GZ7N47F.cjs');
4
- var chunkCPG25VOQ_cjs = require('./chunk-CPG25VOQ.cjs');
5
- var chunkAJYTKYSZ_cjs = require('./chunk-AJYTKYSZ.cjs');
4
+ var chunkRUIC653T_cjs = require('./chunk-RUIC653T.cjs');
5
+ var chunkFID67WC3_cjs = require('./chunk-FID67WC3.cjs');
6
6
  require('./chunk-Q7SFCCGT.cjs');
7
- var React6 = require('react');
7
+ var React10 = require('react');
8
8
  var reactAuth = require('@privy-io/react-auth');
9
9
  var dappKitReact = require('@vechain/dapp-kit-react');
10
10
  var viem = require('viem');
@@ -51,7 +51,7 @@ var anatomy = require('@chakra-ui/anatomy');
51
51
 
52
52
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
53
53
 
54
- var React6__default = /*#__PURE__*/_interopDefault(React6);
54
+ var React10__default = /*#__PURE__*/_interopDefault(React10);
55
55
  var imageCompression__default = /*#__PURE__*/_interopDefault(imageCompression);
56
56
  var i18n__default = /*#__PURE__*/_interopDefault(i18n);
57
57
 
@@ -92,7 +92,7 @@ var PRICE_FEED_IDS = {
92
92
  };
93
93
  var getTokenUsdPrice = async (thor, token, network) => {
94
94
  const functionFragment2 = OracleInterface.getFunction("getLatestValue").format("json");
95
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(network).oracleContractAddress).method(JSON.parse(functionFragment2)).call(PRICE_FEED_IDS[token]);
95
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).oracleContractAddress).method(JSON.parse(functionFragment2)).call(PRICE_FEED_IDS[token]);
96
96
  if (res.reverted) throw new Error("Reverted");
97
97
  return new bignumber_js.BigNumber(res.decoded[0]).div(1e12).toNumber();
98
98
  };
@@ -111,11 +111,11 @@ var useGetTokenUsdPrice = (token) => {
111
111
  var B3TRInterface = chunk5GZ7N47F_cjs.IB3TR__factory.createInterface();
112
112
  var getB3trBalance = async (thor, network, address) => {
113
113
  const functionFragment2 = B3TRInterface.getFunction("balanceOf").format("json");
114
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(network).b3trContractAddress).method(JSON.parse(functionFragment2)).call(address);
114
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).b3trContractAddress).method(JSON.parse(functionFragment2)).call(address);
115
115
  if (res.reverted) throw new Error("Reverted");
116
116
  const original = res.decoded[0];
117
117
  const scaled = viem.formatEther(original);
118
- const formatted = scaled === "0" ? "0" : chunkCPG25VOQ_cjs.humanNumber(scaled);
118
+ const formatted = scaled === "0" ? "0" : chunkRUIC653T_cjs.humanNumber(scaled);
119
119
  return {
120
120
  original,
121
121
  scaled,
@@ -138,11 +138,11 @@ var useGetB3trBalance = (address) => {
138
138
  var VOT3Interface = chunk5GZ7N47F_cjs.IVOT3__factory.createInterface();
139
139
  var getVot3Balance = async (thor, network, address) => {
140
140
  const functionFragment2 = VOT3Interface.getFunction("balanceOf").format("json");
141
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(network).vot3ContractAddress).method(JSON.parse(functionFragment2)).call(address);
141
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).vot3ContractAddress).method(JSON.parse(functionFragment2)).call(address);
142
142
  if (res.reverted) throw new Error("Reverted");
143
143
  const original = res.decoded[0];
144
144
  const scaled = viem.formatEther(original);
145
- const formatted = scaled === "0" ? "0" : chunkCPG25VOQ_cjs.humanNumber(scaled);
145
+ const formatted = scaled === "0" ? "0" : chunkRUIC653T_cjs.humanNumber(scaled);
146
146
  return {
147
147
  original,
148
148
  scaled,
@@ -168,7 +168,7 @@ var contractInterface = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface(
168
168
  var method = "getIdAttachedToNode";
169
169
  var useGetTokenIdAttachedToNode = (nodeId, enabled = true) => {
170
170
  const { network } = useVeChainKitConfig();
171
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
171
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
172
172
  return useCall({
173
173
  contractInterface,
174
174
  contractAddress,
@@ -184,7 +184,7 @@ var method2 = "getUserNodes";
184
184
  var getUserNodesQueryKey = (user) => getCallKey({ method: method2, keyArgs: [user] });
185
185
  var useGetUserNodes = (user) => {
186
186
  const { network } = useVeChainKitConfig();
187
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(
187
+ const contractAddress = chunkRUIC653T_cjs.getConfig(
188
188
  network.type
189
189
  ).nodeManagementContractAddress;
190
190
  return useCall({
@@ -215,7 +215,7 @@ var method3 = "checkCooldown";
215
215
  var getNodeCheckCooldownQueryKey = (nodeId) => getCallKey({ method: method3, keyArgs: [nodeId] });
216
216
  var useXNodeCheckCooldown = (nodeId) => {
217
217
  const { network } = useVeChainKitConfig();
218
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(
218
+ const contractAddress = chunkRUIC653T_cjs.getConfig(
219
219
  network.type
220
220
  ).nodeManagementContractAddress;
221
221
  return useCall({
@@ -236,11 +236,11 @@ var useXNode = (address) => {
236
236
  const xNode = firstNode ? {
237
237
  id: firstNode.nodeId,
238
238
  level: Number(firstNode.nodeLevel),
239
- image: chunkCPG25VOQ_cjs.NodeStrengthLevelToImage[Number(firstNode.nodeLevel)],
240
- name: chunkCPG25VOQ_cjs.allNodeStrengthLevelToName[Number(firstNode.nodeLevel)]
239
+ image: chunkRUIC653T_cjs.NodeStrengthLevelToImage[Number(firstNode.nodeLevel)],
240
+ name: chunkRUIC653T_cjs.allNodeStrengthLevelToName[Number(firstNode.nodeLevel)]
241
241
  } : void 0;
242
242
  const xNodeName = xNode?.name ?? t("Not available");
243
- const xNodeImage = xNode?.image ?? chunkCPG25VOQ_cjs.notFoundImage;
243
+ const xNodeImage = xNode?.image ?? chunkRUIC653T_cjs.notFoundImage;
244
244
  const xNodeLevel = xNode?.level ?? 0;
245
245
  const nodeType = Number(xNodeLevel) >= 4 ? "XNODE" : "ECONOMIC NODE";
246
246
  const {
@@ -281,7 +281,7 @@ var getNodeIdsAbi = new thorDevkit.abi.Function(JSON.parse(getNodeIdsFragment));
281
281
  var getNodeLevelsAbi = new thorDevkit.abi.Function(JSON.parse(getNodeLevelsFragment));
282
282
  var getUserXNodes = async (thor, networkType, user) => {
283
283
  if (!user) throw new Error("User address is required");
284
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(networkType).nodeManagementContractAddress;
284
+ const contractAddress = chunkRUIC653T_cjs.getConfig(networkType).nodeManagementContractAddress;
285
285
  const clauses = [
286
286
  {
287
287
  to: contractAddress,
@@ -307,8 +307,8 @@ var getUserXNodes = async (thor, networkType, user) => {
307
307
  return {
308
308
  id,
309
309
  level: Number(levels[index]),
310
- image: chunkCPG25VOQ_cjs.NodeStrengthLevelToImage[Number(levels[index])],
311
- name: chunkCPG25VOQ_cjs.allNodeStrengthLevelToName[Number(levels[index])]
310
+ image: chunkRUIC653T_cjs.NodeStrengthLevelToImage[Number(levels[index])],
311
+ name: chunkRUIC653T_cjs.allNodeStrengthLevelToName[Number(levels[index])]
312
312
  };
313
313
  });
314
314
  };
@@ -335,7 +335,7 @@ var getIsNodeHolderQueryKey = (address) => [
335
335
  ];
336
336
  var getIsNodeHolder = async (thor, networkType, address) => {
337
337
  if (!address) return Promise.reject(new Error("Address not provided"));
338
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(networkType).nodeManagementContractAddress;
338
+ const contractAddress = chunkRUIC653T_cjs.getConfig(networkType).nodeManagementContractAddress;
339
339
  const functionAbi2 = contractInterface4.getFunction(method4);
340
340
  const res = await thor.account(contractAddress).method(functionAbi2).call(address);
341
341
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -351,7 +351,7 @@ var useIsNodeHolder = (address) => {
351
351
  });
352
352
  };
353
353
  var getAppAdmin = async (thor, appId, networkType) => {
354
- const X2EARNAPPS_CONTRACT = chunkCPG25VOQ_cjs.getConfig(networkType).x2EarnAppsContractAddress;
354
+ const X2EARNAPPS_CONTRACT = chunkRUIC653T_cjs.getConfig(networkType).x2EarnAppsContractAddress;
355
355
  const functionFragment2 = chunk5GZ7N47F_cjs.X2EarnApps__factory.createInterface().getFunction("appAdmin").format("json");
356
356
  const res = await thor.account(X2EARNAPPS_CONTRACT).method(JSON.parse(functionFragment2)).call(appId);
357
357
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -379,7 +379,7 @@ var method5 = "appExists";
379
379
  var getAppExistsQueryKey = (appId) => getCallKey({ method: method5, keyArgs: [appId] });
380
380
  var useAppExists = (appId) => {
381
381
  const { network } = useVeChainKitConfig();
382
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).x2EarnAppsContractAddress;
382
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).x2EarnAppsContractAddress;
383
383
  return useCall({
384
384
  contractInterface: contractInterface5,
385
385
  contractAddress,
@@ -389,7 +389,7 @@ var useAppExists = (appId) => {
389
389
  });
390
390
  };
391
391
  var getAppsEligibleInNextRound = async (thor, networkType) => {
392
- const X2EARNAPPS_CONTRACT = chunkCPG25VOQ_cjs.getConfig(networkType).x2EarnAppsContractAddress;
392
+ const X2EARNAPPS_CONTRACT = chunkRUIC653T_cjs.getConfig(networkType).x2EarnAppsContractAddress;
393
393
  const functionFragment2 = chunk5GZ7N47F_cjs.X2EarnApps__factory.createInterface().getFunction("allEligibleApps").format("json");
394
394
  const res = await thor.account(X2EARNAPPS_CONTRACT).method(JSON.parse(functionFragment2)).call();
395
395
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -410,7 +410,7 @@ var useAppsEligibleInNextRound = () => {
410
410
  };
411
411
  var getRoundXApps = async (thor, networkType, roundId) => {
412
412
  if (!roundId) return [];
413
- const xAllocationVotingContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
413
+ const xAllocationVotingContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
414
414
  const functionFragment2 = chunk5GZ7N47F_cjs.XAllocationVoting__factory.createInterface().getFunction("getAppsOfRound").format("json");
415
415
  const res = await thor.account(xAllocationVotingContract).method(JSON.parse(functionFragment2)).call(roundId);
416
416
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -441,7 +441,7 @@ var useRoundXApps = (roundId) => {
441
441
  var currentBlockQueryKey = () => ["VECHAIN_KIT", "CURRENT_BLOCK"];
442
442
  var useCurrentBlock = () => {
443
443
  const { network } = useVeChainKitConfig();
444
- const nodeUrl = network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl;
444
+ const nodeUrl = network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl;
445
445
  return reactQuery.useQuery({
446
446
  queryKey: currentBlockQueryKey(),
447
447
  queryFn: async () => {
@@ -538,10 +538,10 @@ var pollForReceipt = async (thor, id, blocksTimeout = 5) => {
538
538
  };
539
539
  var useTxReceipt = (txId, blockTimeout) => {
540
540
  const { thor } = dappKitReact.useConnex();
541
- const [receipt, setReceipt] = React6.useState();
542
- const [error, setError] = React6.useState(null);
543
- const [isLoading, setIsLoading] = React6.useState(false);
544
- React6.useEffect(() => {
541
+ const [receipt, setReceipt] = React10.useState();
542
+ const [error, setError] = React10.useState(null);
543
+ const [isLoading, setIsLoading] = React10.useState(false);
544
+ React10.useEffect(() => {
545
545
  const fetchReceipt = async () => {
546
546
  if (!txId) {
547
547
  setReceipt(null);
@@ -569,7 +569,7 @@ var useTxReceipt = (txId, blockTimeout) => {
569
569
  // src/hooks/api/vebetterdao/xApps/hooks/useUserVotesInRound.ts
570
570
  var XAllocationVotingInterface = chunk5GZ7N47F_cjs.XAllocationVoting__factory.createInterface();
571
571
  var getUserVotesInRound = async (thor, network, roundId, address) => {
572
- const xAllocationVotingContract = chunkCPG25VOQ_cjs.getConfig(network).xAllocationVotingContractAddress;
572
+ const xAllocationVotingContract = chunkRUIC653T_cjs.getConfig(network).xAllocationVotingContractAddress;
573
573
  const eventFragment = XAllocationVotingInterface.getEvent("AllocationVoteCast").format(
574
574
  "json"
575
575
  );
@@ -593,7 +593,7 @@ var getUserVotesInRound = async (thor, network, roundId, address) => {
593
593
  const events = await getAllEvents({
594
594
  thor,
595
595
  filterCriteria,
596
- nodeUrl: chunkCPG25VOQ_cjs.getConfig(network).nodeUrl
596
+ nodeUrl: chunkRUIC653T_cjs.getConfig(network).nodeUrl
597
597
  });
598
598
  const decodedAllocatedVoteEvents = [];
599
599
  events.forEach((event) => {
@@ -664,7 +664,7 @@ var unendorsedAppsAbi = new thorDevkit.abi.Function(JSON.parse(unendorsedAppsFra
664
664
  var allAppsFragment = chunk5GZ7N47F_cjs.X2EarnApps__factory.createInterface().getFunction("apps").format("json");
665
665
  var allAppsAbi = new thorDevkit.abi.Function(JSON.parse(allAppsFragment));
666
666
  var getXApps = async (thor, networkType) => {
667
- const x2EarnAppsContract = chunkCPG25VOQ_cjs.getConfig(networkType).x2EarnAppsContractAddress;
667
+ const x2EarnAppsContract = chunkRUIC653T_cjs.getConfig(networkType).x2EarnAppsContractAddress;
668
668
  const clauses = [
669
669
  {
670
670
  to: x2EarnAppsContract,
@@ -737,7 +737,7 @@ var useXApps = () => {
737
737
  // src/hooks/api/vebetterdao/xApps/hooks/useXApp.ts
738
738
  var useXApp = (appId) => {
739
739
  const { data: xApps, ...props } = useXApps();
740
- const allApps = React6.useMemo(() => [...xApps?.active ?? [], ...xApps?.unendorsed ?? []], [xApps]);
740
+ const allApps = React10.useMemo(() => [...xApps?.active ?? [], ...xApps?.unendorsed ?? []], [xApps]);
741
741
  const app = allApps.find((xa) => xa.id === appId);
742
742
  return {
743
743
  data: app,
@@ -747,7 +747,7 @@ var useXApp = (appId) => {
747
747
 
748
748
  // src/hooks/api/vebetterdao/xApps/getXAppsMetadataBaseUri.ts
749
749
  var getXAppsMetadataBaseUri = async (thor, networkType) => {
750
- const X2EARNAPPS_CONTRACT = chunkCPG25VOQ_cjs.getConfig(networkType).x2EarnAppsContractAddress;
750
+ const X2EARNAPPS_CONTRACT = chunkRUIC653T_cjs.getConfig(networkType).x2EarnAppsContractAddress;
751
751
  const functionFragment2 = chunk5GZ7N47F_cjs.X2EarnApps__factory.createInterface().getFunction("baseURI").format("json");
752
752
  const res = await thor.account(X2EARNAPPS_CONTRACT).method(JSON.parse(functionFragment2)).call();
753
753
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -775,7 +775,7 @@ var useXAppsMetadataBaseUri = () => {
775
775
 
776
776
  // src/hooks/api/vebetterdao/xApps/getXAppMetadata.ts
777
777
  var getXAppMetadata = async (uri, networkType) => {
778
- const url = chunkCPG25VOQ_cjs.convertUriToUrl(uri, networkType);
778
+ const url = chunkRUIC653T_cjs.convertUriToUrl(uri, networkType);
779
779
  if (!url) return void 0;
780
780
  const response = await fetch(url);
781
781
  if (!response.ok) {
@@ -807,7 +807,7 @@ var useXAppMetadata = (xAppId) => {
807
807
  var allocationVotingInterface = chunk5GZ7N47F_cjs.XAllocationVotingGovernor__factory.createInterface();
808
808
  var method6 = "getAppVotes";
809
809
  var getXAppVotes = async (thor, networkType, roundId, xAppId) => {
810
- const ALLOCATION_VOTING_CONTRACT = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
810
+ const ALLOCATION_VOTING_CONTRACT = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
811
811
  const functionFragment2 = allocationVotingInterface.getFunction(method6).format("json");
812
812
  const res = await thor.account(ALLOCATION_VOTING_CONTRACT).method(JSON.parse(functionFragment2)).call(roundId, xAppId);
813
813
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -818,7 +818,7 @@ var useXAppVotes = (roundId, appId) => {
818
818
  const { network } = useVeChainKitConfig();
819
819
  return useCall({
820
820
  contractInterface: allocationVotingInterface,
821
- contractAddress: chunkCPG25VOQ_cjs.getConfig(network.type).xAllocationVotingContractAddress,
821
+ contractAddress: chunkRUIC653T_cjs.getConfig(network.type).xAllocationVotingContractAddress,
822
822
  method: method6,
823
823
  args: [roundId, appId],
824
824
  enabled: !!roundId && !!appId && !!network.type
@@ -829,7 +829,7 @@ var useXAppVotes = (roundId, appId) => {
829
829
  // src/hooks/api/vebetterdao/xApps/hooks/useXAppVotesQf.ts
830
830
  var allocationVotingInterface2 = chunk5GZ7N47F_cjs.XAllocationVotingGovernor__factory.createInterface();
831
831
  var getXAppVotesQf = async (thor, networkType, roundId, xAppId) => {
832
- const ALLOCATION_VOTING_CONTRACT = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
832
+ const ALLOCATION_VOTING_CONTRACT = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
833
833
  const functionFragment2 = allocationVotingInterface2.getFunction("getAppVotesQF").format("json");
834
834
  const res = await thor.account(ALLOCATION_VOTING_CONTRACT).method(JSON.parse(functionFragment2)).call(roundId, xAppId);
835
835
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -843,7 +843,7 @@ var useXAppVotesQf = (roundId, appId) => {
843
843
  const { network } = useVeChainKitConfig();
844
844
  return useCall({
845
845
  contractInterface: allocationVotingInterface2,
846
- contractAddress: chunkCPG25VOQ_cjs.getConfig(network.type).xAllocationVotingContractAddress,
846
+ contractAddress: chunkRUIC653T_cjs.getConfig(network.type).xAllocationVotingContractAddress,
847
847
  method: "getAppVotesQF",
848
848
  args: [roundId, appId],
849
849
  enabled: !!roundId && !!appId && !!network.type
@@ -883,7 +883,7 @@ var useUserVotesInAllRounds = (address) => {
883
883
  var useUserTopVotedApps = (user) => {
884
884
  const userRoundVotes = useUserVotesInAllRounds(user);
885
885
  const { data: xApps } = useXApps();
886
- const topVotedAppIds = React6.useMemo(() => {
886
+ const topVotedAppIds = React10.useMemo(() => {
887
887
  const appIdToVotes = {};
888
888
  userRoundVotes.data?.forEach((voteEvent) => {
889
889
  const appIds = voteEvent.appsIds;
@@ -899,7 +899,7 @@ var useUserTopVotedApps = (user) => {
899
899
  });
900
900
  return Object.entries(appIdToVotes).sort(([, aVotes], [, bVotes]) => Number(bVotes) - Number(aVotes)).map(([appId, votes]) => ({ appId, votes }));
901
901
  }, [userRoundVotes]);
902
- const topVotedApps = React6.useMemo(() => {
902
+ const topVotedApps = React10.useMemo(() => {
903
903
  return topVotedAppIds.map((app) => {
904
904
  const appFound = xApps?.allApps.find(
905
905
  (xApp) => xApp.id === app.appId
@@ -917,7 +917,7 @@ var method7 = "getAppShares";
917
917
  var functionFragment = allocationPoolInterface.getFunction(method7).format("json");
918
918
  var functionAbi = new thorDevkit.abi.Function(JSON.parse(functionFragment));
919
919
  var getAppsShareClauses = (networkType, apps, roundId) => {
920
- const allocationPoolContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationPoolContractAddress;
920
+ const allocationPoolContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationPoolContractAddress;
921
921
  const clauses = apps.map((app) => ({
922
922
  to: allocationPoolContract,
923
923
  value: 0,
@@ -959,7 +959,7 @@ var useMostVotedAppsInRound = (roundId) => {
959
959
  apps?.map((app) => app.id) ?? [],
960
960
  roundId
961
961
  );
962
- const mostVotedApps = React6.useMemo(
962
+ const mostVotedApps = React10.useMemo(
963
963
  () => xAppsShares.data?.map((appShares) => ({
964
964
  percentage: appShares.share + appShares.unallocatedShare,
965
965
  id: apps?.find((xa) => xa.id === appShares.app)?.id ?? "",
@@ -974,7 +974,7 @@ var useMostVotedAppsInRound = (roundId) => {
974
974
  };
975
975
  var getParticipatedInGovernance = async (networkType, thor, address) => {
976
976
  if (!address) return Promise.reject(new Error("Address not provided"));
977
- const galaxyMemberContract = chunkCPG25VOQ_cjs.getConfig(networkType).galaxyMemberContractAddress;
977
+ const galaxyMemberContract = chunkRUIC653T_cjs.getConfig(networkType).galaxyMemberContractAddress;
978
978
  const functionFragment2 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface().getFunction("participatedInGovernance").format("json");
979
979
  const res = await thor.account(galaxyMemberContract).method(JSON.parse(functionFragment2)).call(address);
980
980
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -997,7 +997,7 @@ var useParticipatedInGovernance = (address) => {
997
997
  };
998
998
  var getBalanceOf = async (thor, network, address) => {
999
999
  if (!address) return Promise.reject(new Error("Address not provided"));
1000
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network).galaxyMemberContractAddress;
1000
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network).galaxyMemberContractAddress;
1001
1001
  const functionFragment2 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface().getFunction("balanceOf").format("json");
1002
1002
  const res = await thor.account(contractAddress).method(JSON.parse(functionFragment2)).call(address);
1003
1003
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -1029,7 +1029,7 @@ var useIsGMclaimable = (address) => {
1029
1029
  };
1030
1030
  var getTokenIdByAccount = async (thor, networkType, address, index) => {
1031
1031
  if (!address) return Promise.reject(new Error("Address not provided"));
1032
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(networkType).galaxyMemberContractAddress;
1032
+ const contractAddress = chunkRUIC653T_cjs.getConfig(networkType).galaxyMemberContractAddress;
1033
1033
  const functionFragment2 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface().getFunction("tokenOfOwnerByIndex").format("json");
1034
1034
  const res = await thor.account(contractAddress).method(JSON.parse(functionFragment2)).call(address, index);
1035
1035
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -1056,7 +1056,7 @@ var contractInterface6 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface
1056
1056
  var method8 = "getSelectedTokenId";
1057
1057
  var useSelectedTokenId = (address, enabled = true) => {
1058
1058
  const { network } = useVeChainKitConfig();
1059
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1059
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1060
1060
  return useCall({
1061
1061
  contractInterface: contractInterface6,
1062
1062
  contractAddress,
@@ -1067,7 +1067,7 @@ var useSelectedTokenId = (address, enabled = true) => {
1067
1067
  };
1068
1068
  var getIpfsMetadata = async (networkType, uri, parseJson = false) => {
1069
1069
  if (!uri) throw new Error("No URI provided");
1070
- const newUri = chunkCPG25VOQ_cjs.convertUriToUrl(uri, networkType);
1070
+ const newUri = chunkRUIC653T_cjs.convertUriToUrl(uri, networkType);
1071
1071
  if (!newUri) throw new Error("Invalid URI");
1072
1072
  const response = await fetch(newUri, {
1073
1073
  headers: {
@@ -1091,7 +1091,7 @@ var useIpfsMetadata = (ipfsUri, parseJson = false) => {
1091
1091
  var MAX_IMAGE_SIZE = 1024 * 1024 * 10;
1092
1092
  var getIpfsImage = async (networkType, uri) => {
1093
1093
  if (!uri) throw new Error("IPFS URI is required");
1094
- const response = await fetch(chunkCPG25VOQ_cjs.convertUriToUrl(uri, networkType) ?? "", {
1094
+ const response = await fetch(chunkRUIC653T_cjs.convertUriToUrl(uri, networkType) ?? "", {
1095
1095
  headers: {
1096
1096
  "X-Project-Id": "vechain-kit"
1097
1097
  }
@@ -1123,7 +1123,7 @@ var getIpfsImage = async (networkType, uri) => {
1123
1123
  resolve({
1124
1124
  image: reader.result,
1125
1125
  mime: blob.type,
1126
- mediaType: chunkCPG25VOQ_cjs.resolveMediaTypeFromMimeType(blob.type)
1126
+ mediaType: chunkRUIC653T_cjs.resolveMediaTypeFromMimeType(blob.type)
1127
1127
  });
1128
1128
  };
1129
1129
  reader.onerror = () => {
@@ -1186,20 +1186,20 @@ var compressImages = async (images) => {
1186
1186
  }
1187
1187
  };
1188
1188
  var useUploadImages = ({ compressImages: compressImages2, defaultImages }) => {
1189
- const [uploadedImages, setUploadedImages] = React6.useState(
1189
+ const [uploadedImages, setUploadedImages] = React10.useState(
1190
1190
  defaultImages ?? []
1191
1191
  );
1192
- React6.useEffect(() => {
1192
+ React10.useEffect(() => {
1193
1193
  if (defaultImages) {
1194
1194
  setUploadedImages(defaultImages);
1195
1195
  }
1196
1196
  }, [defaultImages]);
1197
- const [invalidDateError, setInvalidDateError] = React6.useState([]);
1198
- const onRemove = React6.useCallback(
1197
+ const [invalidDateError, setInvalidDateError] = React10.useState([]);
1198
+ const onRemove = React10.useCallback(
1199
1199
  (index) => setUploadedImages((s) => s.filter((_, i) => i !== index)),
1200
1200
  []
1201
1201
  );
1202
- const onUpload = React6.useCallback(
1202
+ const onUpload = React10.useCallback(
1203
1203
  async (acceptedFiles, keepCurrent = true) => {
1204
1204
  setInvalidDateError([]);
1205
1205
  const parsedUploads = [];
@@ -1240,14 +1240,14 @@ var useSingleImageUpload = ({
1240
1240
  compressImage,
1241
1241
  defaultImage
1242
1242
  }) => {
1243
- const [uploadedImage, setUploadedImage] = React6.useState(defaultImage);
1244
- React6.useEffect(() => {
1243
+ const [uploadedImage, setUploadedImage] = React10.useState(defaultImage);
1244
+ React10.useEffect(() => {
1245
1245
  if (defaultImage) {
1246
1246
  setUploadedImage(defaultImage);
1247
1247
  }
1248
1248
  }, [defaultImage]);
1249
- const onRemove = React6.useCallback(() => setUploadedImage(void 0), []);
1250
- const onUpload = React6.useCallback(
1249
+ const onRemove = React10.useCallback(() => setUploadedImage(void 0), []);
1250
+ const onUpload = React10.useCallback(
1251
1251
  async (acceptedFile) => {
1252
1252
  let parsedFile = acceptedFile;
1253
1253
  if (compressImage) {
@@ -1279,7 +1279,7 @@ var method9 = "levelOf";
1279
1279
  var getLevelOfTokenQueryKey = (tokenId) => getCallKey({ method: method9, keyArgs: [tokenId] });
1280
1280
  var useLevelOfToken = (tokenId, enabled = true) => {
1281
1281
  const { network } = useVeChainKitConfig();
1282
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1282
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1283
1283
  return useCall({
1284
1284
  contractInterface: contractInterface7,
1285
1285
  contractAddress,
@@ -1296,7 +1296,7 @@ var getLevelMultiplierQueryKey = (level) => getCallKey({ method: method10, keyAr
1296
1296
  var percentageToMultiplier = (percentage) => 1 + percentage / 100;
1297
1297
  var useLevelMultiplier = (level, enabled = true) => {
1298
1298
  const { network } = useVeChainKitConfig();
1299
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).voterRewardsContractAddress;
1299
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).voterRewardsContractAddress;
1300
1300
  return useCall({
1301
1301
  contractInterface: contractInterface8,
1302
1302
  contractAddress,
@@ -1312,7 +1312,7 @@ var contractInterface9 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface
1312
1312
  var method11 = "getNodeIdAttached";
1313
1313
  var useGetNodeIdAttached = (tokenId) => {
1314
1314
  const { network } = useVeChainKitConfig();
1315
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1315
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1316
1316
  return useCall({
1317
1317
  contractInterface: contractInterface9,
1318
1318
  contractAddress,
@@ -1327,7 +1327,7 @@ var contractInterface10 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterfac
1327
1327
  var method12 = "MAX_LEVEL";
1328
1328
  var useGMMaxLevel = (enabled = true) => {
1329
1329
  const { network } = useVeChainKitConfig();
1330
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1330
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1331
1331
  return useCall({
1332
1332
  contractInterface: contractInterface10,
1333
1333
  contractAddress,
@@ -1411,8 +1411,8 @@ var useSelectedGmNft = (userAddress) => {
1411
1411
  const { xNodeId } = useXNode(userAddress);
1412
1412
  const isXNodeAttachedToGM = attachedNodeId === xNodeId;
1413
1413
  const isMaxGmLevelReached = !!maxGmLevel && !!gmLevel && Number(gmLevel) === Number(maxGmLevel);
1414
- const gmImage = gmNftImage?.image || imageData?.image || chunkCPG25VOQ_cjs.gmNfts[Number(gmLevel) - 1]?.image || chunkCPG25VOQ_cjs.notFoundImage;
1415
- const nftName = nftMetadata?.name || chunkCPG25VOQ_cjs.gmNfts[Number(gmLevel) - 1]?.name;
1414
+ const gmImage = gmNftImage?.image || imageData?.image || chunkRUIC653T_cjs.gmNfts[Number(gmLevel) - 1]?.image || chunkRUIC653T_cjs.notFoundImage;
1415
+ const nftName = nftMetadata?.name || chunkRUIC653T_cjs.gmNfts[Number(gmLevel) - 1]?.name;
1416
1416
  const gmName = `${nftName} #${tokenID}`;
1417
1417
  return {
1418
1418
  gmId: selectedTokenId,
@@ -1440,7 +1440,7 @@ var method13 = "getB3TRtoUpgrade";
1440
1440
  var getB3trToUpgradeQueryKey = (tokenId) => getCallKey({ method: method13, keyArgs: [tokenId] });
1441
1441
  var useB3trToUpgrade = (tokenId, enabled = true) => {
1442
1442
  const { network } = useVeChainKitConfig();
1443
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1443
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1444
1444
  return useCall({
1445
1445
  contractInterface: contractInterface11,
1446
1446
  contractAddress,
@@ -1455,7 +1455,7 @@ var method14 = "getTokensInfoByOwner";
1455
1455
  var getTokensInfoByOwnerQueryKey = (owner) => getCallKey({ method: method14, keyArgs: [owner] });
1456
1456
  var useGetTokensInfoByOwner = (owner, size = 10) => {
1457
1457
  const { network } = useVeChainKitConfig();
1458
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1458
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1459
1459
  const { thor } = dappKitReact.useConnex();
1460
1460
  const fetchTokens = async ({ pageParam = 0 }) => {
1461
1461
  const functionFragment2 = contractInterface12.getFunction(method14)?.format("json");
@@ -1487,7 +1487,7 @@ var method15 = "getB3TRdonated";
1487
1487
  var getB3trDonatedQueryKey = (tokenId) => getCallKey({ method: method15, keyArgs: [tokenId] });
1488
1488
  var useB3trDonated = (tokenId, enabled = true) => {
1489
1489
  const { network } = useVeChainKitConfig();
1490
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1490
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1491
1491
  return useCall({
1492
1492
  contractInterface: contractInterface13,
1493
1493
  contractAddress,
@@ -1504,7 +1504,7 @@ var method16 = "baseURI";
1504
1504
  var getGMBaseUriQueryKey = () => getCallKey({ method: "getGMBaseUri", keyArgs: [] });
1505
1505
  var useGMBaseUri = () => {
1506
1506
  const { network } = useVeChainKitConfig();
1507
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).galaxyMemberContractAddress;
1507
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).galaxyMemberContractAddress;
1508
1508
  return useCall({
1509
1509
  contractInterface: contractInterface14,
1510
1510
  contractAddress,
@@ -1536,7 +1536,7 @@ var getGMLevel = (startingLevel, b3trDonated) => {
1536
1536
  if (!Number.isInteger(startingLevel) || startingLevel <= 0) {
1537
1537
  throw new Error("Starting level must be a positive integer");
1538
1538
  }
1539
- const gmLevelMap = new Map(chunkCPG25VOQ_cjs.gmNfts.map((gm) => [Number(gm.level), gm]));
1539
+ const gmLevelMap = new Map(chunkRUIC653T_cjs.gmNfts.map((gm) => [Number(gm.level), gm]));
1540
1540
  const startingGM = gmLevelMap.get(startingLevel);
1541
1541
  if (!startingGM) return null;
1542
1542
  let finalLevel = startingLevel;
@@ -1557,7 +1557,7 @@ var xAllocationVotingInterface = chunk5GZ7N47F_cjs.XAllocationVoting__factory.cr
1557
1557
  var getCurrentAllocationsRoundId = async (thor, networkType) => {
1558
1558
  const currentRoundAbi = xAllocationVotingInterface.getFunction("currentRoundId");
1559
1559
  if (!currentRoundAbi) throw new Error("currentRoundId function not found");
1560
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress).method(currentRoundAbi).call();
1560
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress).method(currentRoundAbi).call();
1561
1561
  if (res.vmError) return Promise.reject(new Error(res.vmError));
1562
1562
  return res.decoded[0];
1563
1563
  };
@@ -1575,7 +1575,7 @@ var useCurrentAllocationsRoundId = () => {
1575
1575
  });
1576
1576
  };
1577
1577
  var getAllocationAmount = async (thor, networkType, roundId) => {
1578
- const emissionsContract = chunkCPG25VOQ_cjs.getConfig(networkType).emissionsContractAddress;
1578
+ const emissionsContract = chunkRUIC653T_cjs.getConfig(networkType).emissionsContractAddress;
1579
1579
  const emissionsInterface = chunk5GZ7N47F_cjs.Emissions__factory.createInterface();
1580
1580
  const functionFragmentTreasuryAmount = emissionsInterface.getFunction("getTreasuryAmount").format("json");
1581
1581
  const functionFragmentVoteX2EarnAmount = emissionsInterface.getFunction("getVote2EarnAmount").format("json");
@@ -1613,7 +1613,7 @@ var useAllocationAmount = (roundId) => {
1613
1613
  });
1614
1614
  };
1615
1615
  var getHasVotedInRound = async (thor, networkType, roundId, address) => {
1616
- const xAllocationVotingContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1616
+ const xAllocationVotingContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1617
1617
  const functionFragment2 = chunk5GZ7N47F_cjs.XAllocationVoting__factory.createInterface().getFunction("hasVoted").format("json");
1618
1618
  const res = await thor.account(xAllocationVotingContract).method(JSON.parse(functionFragment2)).call(roundId, address);
1619
1619
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -1637,7 +1637,7 @@ var RoundState = {
1637
1637
  };
1638
1638
  var getAllocationsRoundState = async (thor, networkType, roundId) => {
1639
1639
  if (!roundId) return Promise.reject(new Error("roundId is required"));
1640
- const xAllocationVotingContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1640
+ const xAllocationVotingContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1641
1641
  const functionFragment2 = xAllocationVotingInterface2.getFunction("state").format("json");
1642
1642
  const res = await thor.account(xAllocationVotingContract).method(JSON.parse(functionFragment2)).call(roundId);
1643
1643
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -1658,7 +1658,7 @@ var useAllocationsRoundState = (roundId) => {
1658
1658
  });
1659
1659
  };
1660
1660
  var getAllocationsRoundsEvents = async (thor, networkType) => {
1661
- const xAllocationVotingContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1661
+ const xAllocationVotingContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationVotingContractAddress;
1662
1662
  const allocationCreatedAbi = chunk5GZ7N47F_cjs.XAllocationVoting__factory.createInterface().getEvent("RoundCreated");
1663
1663
  if (!allocationCreatedAbi) throw new Error("RoundCreated event not found");
1664
1664
  const allocationCreatedEvent = new thorDevkit.abi.Event(
@@ -1673,7 +1673,7 @@ var getAllocationsRoundsEvents = async (thor, networkType) => {
1673
1673
  const events = await getAllEvents({
1674
1674
  thor,
1675
1675
  filterCriteria,
1676
- nodeUrl: chunkCPG25VOQ_cjs.getConfig(networkType).nodeUrl
1676
+ nodeUrl: chunkRUIC653T_cjs.getConfig(networkType).nodeUrl
1677
1677
  });
1678
1678
  const decodedCreatedAllocationEvents = [];
1679
1679
  events.forEach((event) => {
@@ -1722,7 +1722,7 @@ var useAllocationsRound = (roundId) => {
1722
1722
  const currentAllocationState = useAllocationsRoundState(roundId);
1723
1723
  const allocationRoundsEvents = useAllocationsRoundsEvents();
1724
1724
  const { network } = useVeChainKitConfig();
1725
- const currentAllocationRound = React6.useMemo(() => {
1725
+ const currentAllocationRound = React10.useMemo(() => {
1726
1726
  if (!currentAllocationId.data || !allocationRoundsEvents.data)
1727
1727
  return;
1728
1728
  const roundInfo = allocationRoundsEvents.data.created.find(
@@ -1743,8 +1743,8 @@ var useAllocationsRound = (roundId) => {
1743
1743
  const isLoading = currentAllocationId.isLoading || allocationRoundsEvents.isLoading || currentAllocationState.isLoading;
1744
1744
  const isError = currentAllocationId.isError || allocationRoundsEvents.isError || currentAllocationState.isError;
1745
1745
  const error = currentAllocationId.error || allocationRoundsEvents.error || currentAllocationState.error;
1746
- const blockTime = chunkCPG25VOQ_cjs.getConfig(network.type).network.blockTime;
1747
- const estimatedEndTime = React6.useMemo(() => {
1746
+ const blockTime = chunkRUIC653T_cjs.getConfig(network.type).network.blockTime;
1747
+ const estimatedEndTime = React10.useMemo(() => {
1748
1748
  if (!currentAllocationRound) return null;
1749
1749
  const endBlock = Number(currentAllocationRound.voteEnd);
1750
1750
  if (!endBlock || !currentBlock) return null;
@@ -1752,7 +1752,7 @@ var useAllocationsRound = (roundId) => {
1752
1752
  const durationLeftTimestamp = endBlockFromNow * blockTime;
1753
1753
  return Date.now() + durationLeftTimestamp;
1754
1754
  }, [currentBlock, currentAllocationRound, blockTime]);
1755
- const estimatedStartTime = React6.useMemo(() => {
1755
+ const estimatedStartTime = React10.useMemo(() => {
1756
1756
  if (!currentAllocationRound) return null;
1757
1757
  const startBlock = Number(currentAllocationRound.voteStart);
1758
1758
  if (!startBlock || !currentBlock) return null;
@@ -1809,7 +1809,7 @@ function getOrCreateQueryClient() {
1809
1809
  }
1810
1810
  var EnsureQueryClient = ({ children }) => {
1811
1811
  try {
1812
- const existingQueryClient = React6__default.default.useContext(reactQuery.QueryClientContext);
1812
+ const existingQueryClient = React10__default.default.useContext(reactQuery.QueryClientContext);
1813
1813
  if (existingQueryClient) {
1814
1814
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1815
1815
  }
@@ -1822,7 +1822,7 @@ var EnsureQueryClient = ({ children }) => {
1822
1822
  var roundEarningsFragment = chunk5GZ7N47F_cjs.XAllocationPool__factory.createInterface().getFunction("roundEarnings").format("json");
1823
1823
  var roundEarningsAbi = new thorDevkit.abi.Function(JSON.parse(roundEarningsFragment));
1824
1824
  var getXAppRoundEarnings = async (thor, roundId, xAppId, networkType) => {
1825
- const xAllocationPoolContract = chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationPoolContractAddress;
1825
+ const xAllocationPoolContract = chunkRUIC653T_cjs.getConfig(networkType).xAllocationPoolContractAddress;
1826
1826
  const functionFragment2 = chunk5GZ7N47F_cjs.XAllocationPool__factory.createInterface().getFunction("roundEarnings").format("json");
1827
1827
  const res = await thor.account(xAllocationPoolContract).method(JSON.parse(functionFragment2)).call(roundId, xAppId);
1828
1828
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -1870,7 +1870,7 @@ var useMultipleXAppRoundEarnings = (roundId, xAppIds) => {
1870
1870
  queryFn: () => getRoundXApps(thor, network.type, roundId),
1871
1871
  queryKey: getRoundXAppsQueryKey(roundId)
1872
1872
  });
1873
- const xAllocationPoolContract = chunkCPG25VOQ_cjs.getConfig(
1873
+ const xAllocationPoolContract = chunkRUIC653T_cjs.getConfig(
1874
1874
  network.type
1875
1875
  ).xAllocationPoolContractAddress;
1876
1876
  const xAppsInRound = data.filter((app) => xAppIds.includes(app.id));
@@ -1906,7 +1906,7 @@ var roundEarningsFragment2 = chunk5GZ7N47F_cjs.XAllocationPool__factory.createIn
1906
1906
  var roundEarningsAbi2 = new thorDevkit.abi.Function(JSON.parse(roundEarningsFragment2));
1907
1907
  var getXAppTotalEarningsClauses = (roundIds, app, networkType) => {
1908
1908
  const clauses = roundIds.map((roundId) => ({
1909
- to: chunkCPG25VOQ_cjs.getConfig(networkType).xAllocationPoolContractAddress,
1909
+ to: chunkRUIC653T_cjs.getConfig(networkType).xAllocationPoolContractAddress,
1910
1910
  value: 0,
1911
1911
  data: roundEarningsAbi2.encode(roundId, app)
1912
1912
  }));
@@ -1977,7 +1977,7 @@ var getAppBalance = async (thor, xAppId, x2EarnRewardsPoolContract) => {
1977
1977
  if (res.vmError) return Promise.reject(new Error(res.vmError));
1978
1978
  const original = res.decoded[0];
1979
1979
  const scaled = viem.formatEther(original);
1980
- const formatted = scaled === "0" ? "0" : chunkCPG25VOQ_cjs.humanNumber(scaled);
1980
+ const formatted = scaled === "0" ? "0" : chunkRUIC653T_cjs.humanNumber(scaled);
1981
1981
  return {
1982
1982
  original,
1983
1983
  scaled,
@@ -1993,7 +1993,7 @@ var getAppBalanceQueryKey = (xAppId) => [
1993
1993
  var useAppBalance = (xAppId) => {
1994
1994
  const { thor } = dappKitReact.useConnex();
1995
1995
  const { network } = useVeChainKitConfig();
1996
- const x2EarnRewardsPoolContract = chunkCPG25VOQ_cjs.getConfig(
1996
+ const x2EarnRewardsPoolContract = chunkRUIC653T_cjs.getConfig(
1997
1997
  network.type
1998
1998
  ).x2EarnRewardsPoolContractAddress;
1999
1999
  return reactQuery.useQuery({
@@ -2010,7 +2010,7 @@ var getIsPersonQueryKey = (user) => {
2010
2010
  };
2011
2011
  var useIsPerson = (user) => {
2012
2012
  const { network } = useVeChainKitConfig();
2013
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2013
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2014
2014
  network.type
2015
2015
  ).veBetterPassportContractAddress;
2016
2016
  return useCall({
@@ -2032,7 +2032,7 @@ var getUserRoundScoreQueryKey = (user, round) => {
2032
2032
  };
2033
2033
  var useUserRoundScore = (address, round) => {
2034
2034
  const { network } = useVeChainKitConfig();
2035
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2035
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2036
2036
  network.type
2037
2037
  ).veBetterPassportContractAddress;
2038
2038
  return useCall({
@@ -2052,7 +2052,7 @@ var getThresholdParticipationScoreQueryKey = () => {
2052
2052
  };
2053
2053
  var useThresholdParticipationScore = () => {
2054
2054
  const { network } = useVeChainKitConfig();
2055
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2055
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2056
2056
  network.type
2057
2057
  ).veBetterPassportContractAddress;
2058
2058
  return useCall({
@@ -2072,7 +2072,7 @@ var getPassportToggleQueryKey = (checkName) => {
2072
2072
  };
2073
2073
  var useIsPassportCheckEnabled = (checkName) => {
2074
2074
  const { network } = useVeChainKitConfig();
2075
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2075
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2076
2076
  network.type
2077
2077
  ).veBetterPassportContractAddress;
2078
2078
  return useCall({
@@ -2092,7 +2092,7 @@ var getParticipationScoreThresholdQueryKey = () => {
2092
2092
  };
2093
2093
  var useParticipationScoreThreshold = () => {
2094
2094
  const { network } = useVeChainKitConfig();
2095
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2095
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2096
2096
  network.type
2097
2097
  ).veBetterPassportContractAddress;
2098
2098
  return useCall({
@@ -2113,7 +2113,7 @@ var getAppSecurityLevelQueryKey = (appId) => {
2113
2113
  };
2114
2114
  var useAppSecurityLevel = (appId) => {
2115
2115
  const { network } = useVeChainKitConfig();
2116
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(
2116
+ const contractAddress = chunkRUIC653T_cjs.getConfig(
2117
2117
  network.type
2118
2118
  ).veBetterPassportContractAddress;
2119
2119
  return useCall({
@@ -2157,7 +2157,7 @@ var getIsBlacklistedQueryKey = (address) => {
2157
2157
  };
2158
2158
  var useIsBlacklisted = (address) => {
2159
2159
  const { network } = useVeChainKitConfig();
2160
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2160
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2161
2161
  network.type
2162
2162
  ).veBetterPassportContractAddress;
2163
2163
  return useCall({
@@ -2177,7 +2177,7 @@ var getIsWhitelistedQueryKey = (address) => {
2177
2177
  };
2178
2178
  var useIsWhitelisted = (address) => {
2179
2179
  const { network } = useVeChainKitConfig();
2180
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2180
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2181
2181
  network.type
2182
2182
  ).veBetterPassportContractAddress;
2183
2183
  return useCall({
@@ -2191,7 +2191,7 @@ var useIsWhitelisted = (address) => {
2191
2191
  var useUserStatus = (address) => {
2192
2192
  const { data: isBlacklisted } = useIsBlacklisted(address);
2193
2193
  const { data: isWhitelisted } = useIsWhitelisted(address);
2194
- const userStatus = React6.useMemo(() => {
2194
+ const userStatus = React10.useMemo(() => {
2195
2195
  if (!isBlacklisted && !isWhitelisted) {
2196
2196
  return "NONE" /* NONE */;
2197
2197
  }
@@ -2214,7 +2214,7 @@ var getUserBotSignalsQueryKey = (address) => {
2214
2214
  };
2215
2215
  var useUserBotSignals = (address) => {
2216
2216
  const { network } = useVeChainKitConfig();
2217
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2217
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2218
2218
  network.type
2219
2219
  ).veBetterPassportContractAddress;
2220
2220
  return useCall({
@@ -2236,7 +2236,7 @@ var getGetCumulativeScoreWithDecayQueryKey = (user, round) => {
2236
2236
  };
2237
2237
  var useGetCumulativeScoreWithDecay = (user, round) => {
2238
2238
  const { network } = useVeChainKitConfig();
2239
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2239
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2240
2240
  network.type
2241
2241
  ).veBetterPassportContractAddress;
2242
2242
  return useCall({
@@ -2263,7 +2263,7 @@ var getSecurityMultiplierQueryKey = (securityLevel) => {
2263
2263
  };
2264
2264
  var useSecurityMultiplier = (securityLevel) => {
2265
2265
  const { network } = useVeChainKitConfig();
2266
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2266
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2267
2267
  network.type
2268
2268
  ).veBetterPassportContractAddress;
2269
2269
  return useCall({
@@ -2280,7 +2280,7 @@ var getDelegateeQueryKey = (delegator) => {
2280
2280
  };
2281
2281
  var useGetDelegatee = (delegator) => {
2282
2282
  const { network } = useVeChainKitConfig();
2283
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2283
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2284
2284
  network.type
2285
2285
  ).veBetterPassportContractAddress;
2286
2286
  return useCall({
@@ -2302,7 +2302,7 @@ var getDelegatorQueryKey = (delegator) => {
2302
2302
  };
2303
2303
  var useGetDelegator = (delegator) => {
2304
2304
  const { network } = useVeChainKitConfig();
2305
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2305
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2306
2306
  network.type
2307
2307
  ).veBetterPassportContractAddress;
2308
2308
  return useCall({
@@ -2312,7 +2312,7 @@ var useGetDelegator = (delegator) => {
2312
2312
  args: [delegator],
2313
2313
  mapResponse: (response) => {
2314
2314
  const delegator2 = response.decoded[0];
2315
- if (chunkCPG25VOQ_cjs.compareAddresses(delegator2, viem.zeroAddress)) return null;
2315
+ if (chunkRUIC653T_cjs.compareAddresses(delegator2, viem.zeroAddress)) return null;
2316
2316
  return delegator2;
2317
2317
  },
2318
2318
  enabled: !!delegator
@@ -2327,7 +2327,7 @@ var getPendingDelegationsQueryKeyDelegateePOV = (delegatee) => {
2327
2327
  };
2328
2328
  var useGetPendingDelegationsDelegateePOV = (delegatee) => {
2329
2329
  const { network } = useVeChainKitConfig();
2330
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2330
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2331
2331
  network.type
2332
2332
  ).veBetterPassportContractAddress;
2333
2333
  return useCall({
@@ -2349,7 +2349,7 @@ var getPendingDelegationsQueryKeyDelegatorPOV = (delegator) => {
2349
2349
  };
2350
2350
  var useGetPendingDelegationsDelegatorPOV = (delegator) => {
2351
2351
  const { network } = useVeChainKitConfig();
2352
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2352
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2353
2353
  network.type
2354
2354
  ).veBetterPassportContractAddress;
2355
2355
  return useCall({
@@ -2371,7 +2371,7 @@ var getPendingLinkingsQueryKey = (user) => {
2371
2371
  };
2372
2372
  var useGetPendingLinkings = (user) => {
2373
2373
  const { network } = useVeChainKitConfig();
2374
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2374
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2375
2375
  network.type
2376
2376
  ).veBetterPassportContractAddress;
2377
2377
  return useCall({
@@ -2398,7 +2398,7 @@ var getEntitiesLinkedToPassportQueryKey = (passport) => {
2398
2398
  };
2399
2399
  var useGetEntitiesLinkedToPassport = (passport) => {
2400
2400
  const { network } = useVeChainKitConfig();
2401
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2401
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2402
2402
  network.type
2403
2403
  ).veBetterPassportContractAddress;
2404
2404
  return useCall({
@@ -2421,7 +2421,7 @@ var getPassportForEntityQueryKey = (entity) => {
2421
2421
  };
2422
2422
  var useGetPassportForEntity = (entity) => {
2423
2423
  const { network } = useVeChainKitConfig();
2424
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2424
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2425
2425
  network.type
2426
2426
  ).veBetterPassportContractAddress;
2427
2427
  return useCall({
@@ -2445,7 +2445,7 @@ var getIsEntityQueryKey = (address) => {
2445
2445
  };
2446
2446
  var useIsEntity = (address) => {
2447
2447
  const { network } = useVeChainKitConfig();
2448
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2448
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2449
2449
  network.type
2450
2450
  ).veBetterPassportContractAddress;
2451
2451
  return useCall({
@@ -2465,7 +2465,7 @@ var useAccountLinking = (user) => {
2465
2465
  const isPassport = !isEntity && userLinkedEntities?.length > 0;
2466
2466
  const { data: entityPassport, isLoading: isEntityPassportLoading } = useGetPassportForEntity(!!isEntity ? user : void 0);
2467
2467
  const isLinked = !!isPassport || !!isEntity;
2468
- const passport = React6.useMemo(() => {
2468
+ const passport = React10.useMemo(() => {
2469
2469
  if (isEntity) return entityPassport ?? void 0;
2470
2470
  if (isPassport) return user;
2471
2471
  return void 0;
@@ -2498,7 +2498,7 @@ var getIsPassportQueryKey = (address) => {
2498
2498
  };
2499
2499
  var useIsPassport = (address) => {
2500
2500
  const { network } = useVeChainKitConfig();
2501
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2501
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2502
2502
  network.type
2503
2503
  ).veBetterPassportContractAddress;
2504
2504
  return useCall({
@@ -2534,7 +2534,7 @@ var getThresholdParticipationScoreAtTimepointQueryKey = (blockNumber) => {
2534
2534
  };
2535
2535
  var useThresholdParticipationScoreAtTimepoint = (blockNumber) => {
2536
2536
  const { network } = useVeChainKitConfig();
2537
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2537
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2538
2538
  network.type
2539
2539
  ).veBetterPassportContractAddress;
2540
2540
  return useCall({
@@ -2556,7 +2556,7 @@ var getIsPersonAtTimepointQueryKey = (user, blockNumber) => {
2556
2556
  };
2557
2557
  var useIsPersonAtTimepoint = (user, blockNumber) => {
2558
2558
  const { network } = useVeChainKitConfig();
2559
- const veBetterPassportContractAddress = chunkCPG25VOQ_cjs.getConfig(
2559
+ const veBetterPassportContractAddress = chunkRUIC653T_cjs.getConfig(
2560
2560
  network.type
2561
2561
  ).veBetterPassportContractAddress;
2562
2562
  return useCall({
@@ -2569,7 +2569,7 @@ var useIsPersonAtTimepoint = (user, blockNumber) => {
2569
2569
  };
2570
2570
  var getRoundReward = async (thor, networkType, address, roundId) => {
2571
2571
  const functionFragment2 = chunk5GZ7N47F_cjs.VoterRewards__factory.createInterface().getFunction("getReward").format("json");
2572
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(networkType).voterRewardsContractAddress;
2572
+ const contractAddress = chunkRUIC653T_cjs.getConfig(networkType).voterRewardsContractAddress;
2573
2573
  const res = await thor.account(contractAddress).method(JSON.parse(functionFragment2)).call(roundId, address);
2574
2574
  if (res.vmError) return Promise.reject(new Error(res.vmError));
2575
2575
  const reward = viem.formatEther(res.decoded[0]);
@@ -2601,8 +2601,8 @@ var useVotingRewards = (currentRoundId, voter) => {
2601
2601
  const { thor } = dappKitReact.useConnex();
2602
2602
  const queryClient = reactQuery.useQueryClient();
2603
2603
  const { network } = useVeChainKitConfig();
2604
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(network.type).voterRewardsContractAddress;
2605
- const rounds = React6.useMemo(() => {
2604
+ const contractAddress = chunkRUIC653T_cjs.getConfig(network.type).voterRewardsContractAddress;
2605
+ const rounds = React10.useMemo(() => {
2606
2606
  return Array.from(
2607
2607
  { length: parseInt(currentRoundId ?? "0") - 1 },
2608
2608
  (_, i) => (i + 1).toString()
@@ -2656,7 +2656,7 @@ var useVotingRewards = (currentRoundId, voter) => {
2656
2656
  var voterRewardsInterface2 = chunk5GZ7N47F_cjs.VoterRewards__factory.createInterface();
2657
2657
  var buildClaimRoundReward = (roundId, address, networkType) => {
2658
2658
  const clause = {
2659
- to: chunkCPG25VOQ_cjs.getConfig(networkType).voterRewardsContractAddress,
2659
+ to: chunkRUIC653T_cjs.getConfig(networkType).voterRewardsContractAddress,
2660
2660
  value: 0,
2661
2661
  data: voterRewardsInterface2.encodeFunctionData("claimReward", [
2662
2662
  roundId,
@@ -2691,7 +2691,7 @@ var method33 = "getNodeManager";
2691
2691
  var getNodeManagerQueryKey = (nodeId) => getCallKey({ method: method33, keyArgs: [nodeId] });
2692
2692
  var useGetNodeManager = (nodeId) => {
2693
2693
  const { network } = useVeChainKitConfig();
2694
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(
2694
+ const contractAddress = chunkRUIC653T_cjs.getConfig(
2695
2695
  network.type
2696
2696
  ).nodeManagementContractAddress;
2697
2697
  return useCall({
@@ -2705,7 +2705,7 @@ var useGetNodeManager = (nodeId) => {
2705
2705
  var ERC20Interface = chunk5GZ7N47F_cjs.IERC20__factory.createInterface();
2706
2706
  var getVeDelegateBalance = async (thor, network, address) => {
2707
2707
  const functionFragment2 = ERC20Interface.getFunction("balanceOf").format("json");
2708
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(network).veDelegateTokenContractAddress).method(JSON.parse(functionFragment2)).call(address);
2708
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).veDelegateTokenContractAddress).method(JSON.parse(functionFragment2)).call(address);
2709
2709
  if (res.reverted) throw new Error("Reverted");
2710
2710
  return res.decoded[0];
2711
2711
  };
@@ -2800,7 +2800,7 @@ var fetchVechainDomain = async (thor, networkType, addressOrDomain) => {
2800
2800
  const isValidAddress2 = ethers.isAddress(addressOrDomain);
2801
2801
  if (isValidAddress2) {
2802
2802
  try {
2803
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).vnsResolverAddress).method(getNamesABI).call([addressOrDomain]);
2803
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).vnsResolverAddress).method(getNamesABI).call([addressOrDomain]);
2804
2804
  const domainName = res.decoded.names?.[0];
2805
2805
  return {
2806
2806
  address: addressOrDomain,
@@ -2817,7 +2817,7 @@ var fetchVechainDomain = async (thor, networkType, addressOrDomain) => {
2817
2817
  }
2818
2818
  }
2819
2819
  try {
2820
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).vnsResolverAddress).method(getAddressesABI).call([addressOrDomain]);
2820
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).vnsResolverAddress).method(getAddressesABI).call([addressOrDomain]);
2821
2821
  const domainAddress = res.decoded.addresses?.[0];
2822
2822
  if (domainAddress === "0x0000000000000000000000000000000000000000") {
2823
2823
  return {
@@ -2863,7 +2863,7 @@ var getEnsRecordExists = async (thor, network, name) => {
2863
2863
  const labelHash = viem.keccak256(viem.toBytes(name));
2864
2864
  const subnode = viem.keccak256(viem.concat([hashedNode, labelHash]));
2865
2865
  const functionFragment2 = MockENSInterface.getFunction("recordExists").format("json");
2866
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(network).vetDomainsContractAddress).method(JSON.parse(functionFragment2)).call(subnode);
2866
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(network).vetDomainsContractAddress).method(JSON.parse(functionFragment2)).call(subnode);
2867
2867
  if (res.reverted) throw new Error("Reverted");
2868
2868
  return res.decoded[0];
2869
2869
  };
@@ -2892,14 +2892,14 @@ var useClaimVeWorldSubdomain = ({
2892
2892
  const queryClient = reactQuery.useQueryClient();
2893
2893
  const { account } = useWallet();
2894
2894
  const { network } = useVeChainKitConfig();
2895
- const buildClauses = React6.useCallback(async () => {
2895
+ const buildClauses = React10.useCallback(async () => {
2896
2896
  if (!subdomain) throw new Error("Invalid subdomain");
2897
2897
  const clausesArray = [];
2898
2898
  clausesArray.push({
2899
- to: chunkCPG25VOQ_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
2899
+ to: chunkRUIC653T_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
2900
2900
  value: "0x0",
2901
2901
  data: ReverseRegistrarInterface.encodeFunctionData("setName", [""]),
2902
- comment: `Unsetting your current VeChain nickname of the account ${chunkCPG25VOQ_cjs.humanAddress(
2902
+ comment: `Unsetting your current VeChain nickname of the account ${chunkRUIC653T_cjs.humanAddress(
2903
2903
  account?.address ?? "",
2904
2904
  4,
2905
2905
  4
@@ -2908,23 +2908,23 @@ var useClaimVeWorldSubdomain = ({
2908
2908
  });
2909
2909
  if (!alreadyOwned) {
2910
2910
  clausesArray.push({
2911
- to: chunkCPG25VOQ_cjs.getConfig(network.type).veWorldSubdomainClaimerContractAddress,
2911
+ to: chunkRUIC653T_cjs.getConfig(network.type).veWorldSubdomainClaimerContractAddress,
2912
2912
  value: "0x0",
2913
2913
  data: SubdomainClaimerInterface.encodeFunctionData("claim", [
2914
2914
  subdomain,
2915
- chunkCPG25VOQ_cjs.getConfig(network.type).vetDomainsPublicResolverAddress
2915
+ chunkRUIC653T_cjs.getConfig(network.type).vetDomainsPublicResolverAddress
2916
2916
  ]),
2917
2917
  comment: `Claim VeChain subdomain: ${subdomain}.${domain}`,
2918
2918
  abi: SubdomainClaimerInterface.getFunction("claim")
2919
2919
  });
2920
2920
  }
2921
2921
  clausesArray.push({
2922
- to: chunkCPG25VOQ_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
2922
+ to: chunkRUIC653T_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
2923
2923
  value: "0x0",
2924
2924
  data: ReverseRegistrarInterface.encodeFunctionData("setName", [
2925
2925
  subdomain + "." + domain
2926
2926
  ]),
2927
- comment: `Set ${subdomain}.${domain} as the VeChain nickname of the account ${chunkCPG25VOQ_cjs.humanAddress(
2927
+ comment: `Set ${subdomain}.${domain} as the VeChain nickname of the account ${chunkRUIC653T_cjs.humanAddress(
2928
2928
  account?.address ?? "",
2929
2929
  4,
2930
2930
  4
@@ -2933,7 +2933,7 @@ var useClaimVeWorldSubdomain = ({
2933
2933
  });
2934
2934
  return clausesArray;
2935
2935
  }, [subdomain, domain, account?.address, alreadyOwned]);
2936
- const handleOnSuccess = React6.useCallback(async () => {
2936
+ const handleOnSuccess = React10.useCallback(async () => {
2937
2937
  queryClient.cancelQueries({
2938
2938
  queryKey: getVechainDomainQueryKey(account?.address ?? ""),
2939
2939
  refetchType: "none"
@@ -3007,7 +3007,7 @@ var method34 = "isDomainProtected";
3007
3007
  var getIsDomainProtectedQueryKey = (domain) => getCallKey({ method: method34, keyArgs: [domain] });
3008
3008
  var useIsDomainProtected = (domain, enabled = true) => {
3009
3009
  const { network } = useVeChainKitConfig();
3010
- const contractAddress = chunkCPG25VOQ_cjs.getConfig(
3010
+ const contractAddress = chunkRUIC653T_cjs.getConfig(
3011
3011
  network.type
3012
3012
  ).veWorldSubdomainClaimerContractAddress;
3013
3013
  return useCall({
@@ -3027,7 +3027,7 @@ var DomainsResponseSchema = zod.z.object({
3027
3027
  });
3028
3028
  var getDomainsOfAddress = async (networkType, address, parentDomain = "vet") => {
3029
3029
  if (!address) throw new Error("Address is required");
3030
- const graphQlIndexerUrl = chunkCPG25VOQ_cjs.getConfig(networkType).graphQlIndexerUrl;
3030
+ const graphQlIndexerUrl = chunkRUIC653T_cjs.getConfig(networkType).graphQlIndexerUrl;
3031
3031
  const query = `query Registrations {
3032
3032
  domains(
3033
3033
  where: {owner: "${address.toLowerCase()}", parent_: {name: "${parentDomain}"}}
@@ -3078,7 +3078,7 @@ var getAvatar = async (networkType, nodeUrl, name) => {
3078
3078
  body: JSON.stringify({
3079
3079
  clauses: [
3080
3080
  {
3081
- to: chunkCPG25VOQ_cjs.getConfig(networkType).vetDomainsContractAddress,
3081
+ to: chunkRUIC653T_cjs.getConfig(networkType).vetDomainsContractAddress,
3082
3082
  data: nameInterface.encodeFunctionData("resolver", [
3083
3083
  node
3084
3084
  ])
@@ -3138,7 +3138,7 @@ var getAvatarQueryKey = (name) => [
3138
3138
  ];
3139
3139
  var useGetAvatar = (name) => {
3140
3140
  const { network } = useVeChainKitConfig();
3141
- const nodeUrl = network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl;
3141
+ const nodeUrl = network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl;
3142
3142
  const avatarQuery = reactQuery.useQuery({
3143
3143
  queryKey: getAvatarQueryKey(name ?? ""),
3144
3144
  queryFn: () => getAvatar(network.type, nodeUrl, name),
@@ -3166,7 +3166,7 @@ var getTextRecords = async (nodeUrl, network, domain) => {
3166
3166
  body: JSON.stringify({
3167
3167
  clauses: [
3168
3168
  {
3169
- to: chunkCPG25VOQ_cjs.getConfig(network).vetDomainsContractAddress,
3169
+ to: chunkRUIC653T_cjs.getConfig(network).vetDomainsContractAddress,
3170
3170
  data: nameInterface2.encodeFunctionData("resolver", [
3171
3171
  node
3172
3172
  ])
@@ -3225,7 +3225,7 @@ var getTextRecords = async (nodeUrl, network, domain) => {
3225
3225
  var getTextRecordsQueryKey = (domain, network) => ["VECHAIN_KIT_TEXT_RECORDS", domain, network];
3226
3226
  var useGetTextRecords = (domain) => {
3227
3227
  const { network } = useVeChainKitConfig();
3228
- const nodeUrl = network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl;
3228
+ const nodeUrl = network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl;
3229
3229
  return reactQuery.useQuery({
3230
3230
  queryKey: getTextRecordsQueryKey(domain, network.type),
3231
3231
  queryFn: () => getTextRecords(nodeUrl, network.type, domain),
@@ -3275,7 +3275,7 @@ var useSendTransaction = ({
3275
3275
  }
3276
3276
  return parsedClauses;
3277
3277
  }
3278
- const sendTransaction = React6.useCallback(
3278
+ const sendTransaction = React10.useCallback(
3279
3279
  async (clauses2, options) => {
3280
3280
  if (connection.isConnectedWithPrivy) {
3281
3281
  return await privyWalletProvider.sendTransaction({
@@ -3320,12 +3320,12 @@ var useSendTransaction = ({
3320
3320
  privyUIOptions
3321
3321
  ]
3322
3322
  );
3323
- const [sendTransactionTx, setSendTransactionTx] = React6.useState(
3323
+ const [sendTransactionTx, setSendTransactionTx] = React10.useState(
3324
3324
  null
3325
3325
  );
3326
- const [sendTransactionPending, setSendTransactionPending] = React6.useState(false);
3327
- const [sendTransactionError, setSendTransactionError] = React6.useState(null);
3328
- const sendTransactionAdapter = React6.useCallback(
3326
+ const [sendTransactionPending, setSendTransactionPending] = React10.useState(false);
3327
+ const [sendTransactionError, setSendTransactionError] = React10.useState(null);
3328
+ const sendTransactionAdapter = React10.useCallback(
3329
3329
  async (_clauses) => {
3330
3330
  if (!_clauses && !clauses) throw new Error("clauses are required");
3331
3331
  try {
@@ -3361,7 +3361,7 @@ var useSendTransaction = ({
3361
3361
  isLoading: isTxReceiptLoading,
3362
3362
  error: txReceiptError
3363
3363
  } = useTxReceipt(sendTransactionTx ?? "");
3364
- const explainTxRevertReason = React6.useCallback(
3364
+ const explainTxRevertReason = React10.useCallback(
3365
3365
  async (txReceipt2) => {
3366
3366
  if (!txReceipt2.reverted) return;
3367
3367
  const transactionData = await thor.transaction(txReceipt2.meta.txID).get();
@@ -3370,8 +3370,8 @@ var useSendTransaction = ({
3370
3370
  },
3371
3371
  [thor]
3372
3372
  );
3373
- const [error, setError] = React6.useState();
3374
- const status = React6.useMemo(() => {
3373
+ const [error, setError] = React10.useState();
3374
+ const status = React10.useMemo(() => {
3375
3375
  if (sendTransactionPending) return "pending";
3376
3376
  if (sendTransactionError) {
3377
3377
  return "error";
@@ -3397,7 +3397,7 @@ var useSendTransaction = ({
3397
3397
  txReceipt,
3398
3398
  txReceiptError
3399
3399
  ]);
3400
- React6.useEffect(() => {
3400
+ React10.useEffect(() => {
3401
3401
  if (status === "success" || status === "error") {
3402
3402
  if (sendTransactionError && !error) {
3403
3403
  setError({
@@ -3432,16 +3432,16 @@ var useSendTransaction = ({
3432
3432
  explainTxRevertReason,
3433
3433
  sendTransactionError
3434
3434
  ]);
3435
- const resetStatus = React6.useCallback(() => {
3435
+ const resetStatus = React10.useCallback(() => {
3436
3436
  setSendTransactionTx(null);
3437
3437
  setSendTransactionPending(false);
3438
3438
  setSendTransactionError(null);
3439
3439
  setError(void 0);
3440
3440
  }, []);
3441
- const isTransactionPending = React6.useMemo(() => {
3441
+ const isTransactionPending = React10.useMemo(() => {
3442
3442
  return sendTransactionPending || isTxReceiptLoading || status === "pending" || status === "waitingConfirmation";
3443
3443
  }, [sendTransactionPending, isTxReceiptLoading, status]);
3444
- const isWaitingForWalletConfirmation = React6.useMemo(() => {
3444
+ const isWaitingForWalletConfirmation = React10.useMemo(() => {
3445
3445
  return status === "pending";
3446
3446
  }, [sendTransactionPending, status]);
3447
3447
  return {
@@ -3466,7 +3466,7 @@ var useUpdateTextRecord = ({
3466
3466
  signerAccountAddress,
3467
3467
  resolverAddress
3468
3468
  } = {}) => {
3469
- const buildClauses = React6.useCallback(
3469
+ const buildClauses = React10.useCallback(
3470
3470
  async (params) => {
3471
3471
  const clauses = [];
3472
3472
  for (const { domain, key, value } of params) {
@@ -3520,7 +3520,7 @@ var getResolverAddress = async (nodeUrl, network, domain) => {
3520
3520
  body: JSON.stringify({
3521
3521
  clauses: [
3522
3522
  {
3523
- to: chunkCPG25VOQ_cjs.getConfig(network).vetDomainsContractAddress,
3523
+ to: chunkRUIC653T_cjs.getConfig(network).vetDomainsContractAddress,
3524
3524
  data: nameInterface4.encodeFunctionData("resolver", [node])
3525
3525
  }
3526
3526
  ]
@@ -3541,7 +3541,7 @@ var getResolverAddressQueryKey = (domain) => [
3541
3541
  ];
3542
3542
  var useGetResolverAddress = (domain) => {
3543
3543
  const { network } = useVeChainKitConfig();
3544
- const nodeUrl = network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl;
3544
+ const nodeUrl = network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl;
3545
3545
  return reactQuery.useQuery({
3546
3546
  queryKey: getResolverAddressQueryKey(domain),
3547
3547
  queryFn: () => getResolverAddress(nodeUrl, network.type, domain),
@@ -3562,14 +3562,14 @@ var useBalances = ({ address = "" }) => {
3562
3562
  const customTokensLoading = customTokenBalancesQueries.some(
3563
3563
  (query) => query.isLoading
3564
3564
  );
3565
- return React6.useMemo(() => {
3565
+ return React10.useMemo(() => {
3566
3566
  const isLoading = vetLoading || b3trLoading || vot3Loading || vetUsdPriceLoading || b3trUsdPriceLoading || veDelegateLoading || vthoUsdPriceLoading || customTokensLoading;
3567
3567
  const contractAddresses = {
3568
3568
  vet: "0x",
3569
- vtho: chunkCPG25VOQ_cjs.getConfig(network.type).vthoContractAddress,
3570
- b3tr: chunkCPG25VOQ_cjs.getConfig(network.type).b3trContractAddress,
3571
- vot3: chunkCPG25VOQ_cjs.getConfig(network.type).vot3ContractAddress,
3572
- veDelegate: chunkCPG25VOQ_cjs.getConfig(network.type).veDelegate
3569
+ vtho: chunkRUIC653T_cjs.getConfig(network.type).vthoContractAddress,
3570
+ b3tr: chunkRUIC653T_cjs.getConfig(network.type).b3trContractAddress,
3571
+ vot3: chunkRUIC653T_cjs.getConfig(network.type).vot3ContractAddress,
3572
+ veDelegate: chunkRUIC653T_cjs.getConfig(network.type).veDelegate
3573
3573
  };
3574
3574
  const balances = [
3575
3575
  {
@@ -3695,7 +3695,7 @@ var vechain = viem.defineChain({
3695
3695
  });
3696
3696
  var vechainConnector = () => {
3697
3697
  return rainbowKit.toPrivyWalletConnector({
3698
- id: chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID,
3698
+ id: chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID,
3699
3699
  name: "VeChain",
3700
3700
  iconUrl: "https://imagedelivery.net/oHBRUd2clqykxgDWmeAyLg/661dd77c-2f9d-40e7-baa1-f4e24fd7bf00/icon",
3701
3701
  smartWalletMode: false
@@ -3705,7 +3705,7 @@ var PrivyCrossAppProvider = ({
3705
3705
  privyEcosystemAppIDS,
3706
3706
  children
3707
3707
  }) => {
3708
- const wagmiConfigRef = React6.useRef(
3708
+ const wagmiConfigRef = React10.useRef(
3709
3709
  wagmi.createConfig({
3710
3710
  chains: [vechain],
3711
3711
  ssr: true,
@@ -3731,9 +3731,9 @@ var usePrivyCrossAppSdk = () => {
3731
3731
  const { signMessageAsync } = wagmi.useSignMessage();
3732
3732
  const { disconnectAsync } = wagmi.useDisconnect();
3733
3733
  const { isConnected } = wagmi.useAccount();
3734
- const [isConnecting, setIsConnecting] = React6.useState(false);
3735
- const [connectionError, setConnectionError] = React6.useState(null);
3736
- const logout = React6.useCallback(async () => {
3734
+ const [isConnecting, setIsConnecting] = React10.useState(false);
3735
+ const [connectionError, setConnectionError] = React10.useState(null);
3736
+ const logout = React10.useCallback(async () => {
3737
3737
  try {
3738
3738
  if (isConnected) {
3739
3739
  await disconnectAsync();
@@ -3744,13 +3744,13 @@ var usePrivyCrossAppSdk = () => {
3744
3744
  throw error;
3745
3745
  }
3746
3746
  }, [disconnectAsync, isConnected]);
3747
- const login = React6.useCallback(
3747
+ const login = React10.useCallback(
3748
3748
  async (appID) => {
3749
3749
  try {
3750
3750
  setIsConnecting(true);
3751
3751
  setConnectionError(null);
3752
3752
  const connector = connectors.find(
3753
- (c) => c.id === (appID || chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID)
3753
+ (c) => c.id === (appID || chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID)
3754
3754
  );
3755
3755
  if (!connector) {
3756
3756
  throw new Error("Connector not found");
@@ -3766,7 +3766,7 @@ var usePrivyCrossAppSdk = () => {
3766
3766
  },
3767
3767
  [connectAsync, connectors]
3768
3768
  );
3769
- const signMessage = React6.useCallback(
3769
+ const signMessage = React10.useCallback(
3770
3770
  async (message) => {
3771
3771
  try {
3772
3772
  return await signMessageAsync({ message });
@@ -3781,7 +3781,7 @@ var usePrivyCrossAppSdk = () => {
3781
3781
  },
3782
3782
  [signMessageAsync]
3783
3783
  );
3784
- const signTypedData = React6.useCallback(
3784
+ const signTypedData = React10.useCallback(
3785
3785
  async (data) => {
3786
3786
  try {
3787
3787
  return await signTypedDataAsync(data);
@@ -3814,11 +3814,11 @@ var useWalletMetadata = (address, networkType) => {
3814
3814
  domain?.domain
3815
3815
  );
3816
3816
  const { data: textRecords, isLoading: isLoadingRecords } = useGetTextRecords(domain?.domain);
3817
- const avatarUrl = avatar ? chunkCPG25VOQ_cjs.convertUriToUrl(avatar, networkType) : null;
3818
- const headerUrl = textRecords?.header ? chunkCPG25VOQ_cjs.convertUriToUrl(textRecords.header, networkType) : null;
3817
+ const avatarUrl = avatar ? chunkRUIC653T_cjs.convertUriToUrl(avatar, networkType) : null;
3818
+ const headerUrl = textRecords?.header ? chunkRUIC653T_cjs.convertUriToUrl(textRecords.header, networkType) : null;
3819
3819
  return {
3820
3820
  domain: domain?.domain,
3821
- image: avatarUrl ?? chunkCPG25VOQ_cjs.getPicassoImage(address ?? ""),
3821
+ image: avatarUrl ?? chunkRUIC653T_cjs.getPicassoImage(address ?? ""),
3822
3822
  records: {
3823
3823
  ...textRecords,
3824
3824
  header: headerUrl
@@ -3847,9 +3847,9 @@ var useWallet = () => {
3847
3847
  const isConnectedWithDappKit = !!dappKitAccount;
3848
3848
  const isConnectedWithSocialLogin = authenticated && !!user;
3849
3849
  const isConnectedWithPrivy = isConnectedWithSocialLogin || isConnectedWithCrossApp;
3850
- const isConnectedWithVeChain = isConnectedWithSocialLogin && privy?.appId === chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID || isConnectedWithCrossApp && connectionCache?.ecosystemApp?.appId === chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID;
3850
+ const isConnectedWithVeChain = isConnectedWithSocialLogin && privy?.appId === chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID || isConnectedWithCrossApp && connectionCache?.ecosystemApp?.appId === chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID;
3851
3851
  const isLoading = isConnectingWithCrossApp || isReconnectingWithCrossApp || isLoadingLoginOAuth || !ready;
3852
- const [isConnected, setIsConnected] = React6.useState(false);
3852
+ const [isConnected, setIsConnected] = React10.useState(false);
3853
3853
  const connectionSource = isConnectedWithCrossApp ? {
3854
3854
  type: "privy-cross-app",
3855
3855
  displayName: "Ecosystem"
@@ -3860,7 +3860,7 @@ var useWallet = () => {
3860
3860
  type: "privy",
3861
3861
  displayName: "Social Login"
3862
3862
  };
3863
- React6.useEffect(() => {
3863
+ React10.useEffect(() => {
3864
3864
  const isNowConnected = isConnectedWithDappKit || isConnectedWithSocialLogin || isConnectedWithCrossApp;
3865
3865
  if (isConnected !== isNowConnected) {
3866
3866
  setIsConnected(isNowConnected);
@@ -3899,7 +3899,7 @@ var useWallet = () => {
3899
3899
  const account = activeAddress ? {
3900
3900
  address: activeAddress,
3901
3901
  domain: activeAccountDomain?.data?.domain,
3902
- image: activeAccountAvatar.data ? chunkCPG25VOQ_cjs.convertUriToUrl(activeAccountAvatar.data, network.type) : chunkCPG25VOQ_cjs.getPicassoImage(activeAddress ?? ""),
3902
+ image: activeAccountAvatar.data ? chunkRUIC653T_cjs.convertUriToUrl(activeAccountAvatar.data, network.type) : chunkRUIC653T_cjs.getPicassoImage(activeAddress ?? ""),
3903
3903
  isLoadingMetadata: activeAccountAvatar?.isLoading || activeAccountDomain?.isLoading || activeAccountTextRecords?.isLoading,
3904
3904
  metadata: activeAccountTextRecords?.data
3905
3905
  } : null;
@@ -3913,8 +3913,8 @@ var useWallet = () => {
3913
3913
  const { data: smartAccountVersion } = useSmartAccountVersion(
3914
3914
  smartAccount?.address ?? ""
3915
3915
  );
3916
- const hasActiveSmartAccount = !!smartAccount?.address && !!account?.address && chunkCPG25VOQ_cjs.compareAddresses(smartAccount?.address, account?.address);
3917
- const disconnect = React6.useCallback(async () => {
3916
+ const hasActiveSmartAccount = !!smartAccount?.address && !!account?.address && chunkRUIC653T_cjs.compareAddresses(smartAccount?.address, account?.address);
3917
+ const disconnect = React10.useCallback(async () => {
3918
3918
  try {
3919
3919
  setIsConnected(false);
3920
3920
  if (isConnectedWithDappKit) {
@@ -4037,17 +4037,17 @@ var useCustomTokens = () => {
4037
4037
  };
4038
4038
  const isTokenIncluded = (address) => {
4039
4039
  return customTokens.some(
4040
- (t) => chunkCPG25VOQ_cjs.compareAddresses(t.address, address)
4040
+ (t) => chunkRUIC653T_cjs.compareAddresses(t.address, address)
4041
4041
  );
4042
4042
  };
4043
4043
  const isDefaultToken = (address) => {
4044
4044
  const contractAddresses = {
4045
4045
  vet: "0x",
4046
4046
  // VET has no contract address since it's the native token
4047
- vtho: chunkCPG25VOQ_cjs.getConfig(network.type).vthoContractAddress,
4048
- b3tr: chunkCPG25VOQ_cjs.getConfig(network.type).b3trContractAddress,
4049
- vot3: chunkCPG25VOQ_cjs.getConfig(network.type).vot3ContractAddress,
4050
- veDelegate: chunkCPG25VOQ_cjs.getConfig(network.type).veDelegate
4047
+ vtho: chunkRUIC653T_cjs.getConfig(network.type).vthoContractAddress,
4048
+ b3tr: chunkRUIC653T_cjs.getConfig(network.type).b3trContractAddress,
4049
+ vot3: chunkRUIC653T_cjs.getConfig(network.type).vot3ContractAddress,
4050
+ veDelegate: chunkRUIC653T_cjs.getConfig(network.type).veDelegate
4051
4051
  };
4052
4052
  return Object.values(contractAddresses).includes(address);
4053
4053
  };
@@ -4142,7 +4142,7 @@ var useAccountBalance = (address) => {
4142
4142
  return reactQuery.useQuery({
4143
4143
  queryKey: getAccountBalanceQueryKey(address),
4144
4144
  queryFn: () => getAccountBalance(thor, address),
4145
- enabled: !!address && chunkCPG25VOQ_cjs.isValidAddress(address),
4145
+ enabled: !!address && chunkRUIC653T_cjs.isValidAddress(address),
4146
4146
  refetchInterval: 1e4
4147
4147
  });
4148
4148
  };
@@ -4169,7 +4169,7 @@ var useRefreshMetadata = (domain) => {
4169
4169
  // src/hooks/api/utility/useGetNodeUrl.ts
4170
4170
  var useGetNodeUrl = () => {
4171
4171
  const { network } = useVeChainKitConfig();
4172
- return network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl;
4172
+ return network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl;
4173
4173
  };
4174
4174
 
4175
4175
  // src/hooks/api/utility/useGetChainId.ts
@@ -4197,7 +4197,7 @@ var getCustomTokenBalance = async (thor, token, address) => {
4197
4197
  if (res.reverted) throw new Error("Reverted");
4198
4198
  const original = res.decoded[0];
4199
4199
  const scaled = viem.formatEther(original);
4200
- const formatted = scaled === "0" ? "0" : chunkCPG25VOQ_cjs.humanNumber(scaled);
4200
+ const formatted = scaled === "0" ? "0" : chunkRUIC653T_cjs.humanNumber(scaled);
4201
4201
  return {
4202
4202
  ...token,
4203
4203
  original,
@@ -4220,7 +4220,7 @@ var useGetCustomTokenBalances = (address) => {
4220
4220
  };
4221
4221
  var getNFTMetadataUri = async (networkType, thor, tokenID) => {
4222
4222
  if (!tokenID) return Promise.reject(new Error("tokenID not provided"));
4223
- const galaxyMemberContract = chunkCPG25VOQ_cjs.getConfig(networkType).galaxyMemberContractAddress;
4223
+ const galaxyMemberContract = chunkRUIC653T_cjs.getConfig(networkType).galaxyMemberContractAddress;
4224
4224
  const functionFragment2 = chunk5GZ7N47F_cjs.GalaxyMember__factory.createInterface().getFunction("tokenURI").format("json");
4225
4225
  const res = await thor.account(galaxyMemberContract).method(JSON.parse(functionFragment2)).call(tokenID);
4226
4226
  if (res.vmError) return Promise.reject(new Error(res.vmError));
@@ -4284,7 +4284,7 @@ var getAccountAddress = async (thor, ownerAddress, networkType) => {
4284
4284
  const functionFragment2 = SimpleAccountFactoryInterface.getFunction("getAccountAddress").format(
4285
4285
  "json"
4286
4286
  );
4287
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(ownerAddress);
4287
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(ownerAddress);
4288
4288
  if (res.reverted) throw new Error("Reverted");
4289
4289
  return res.decoded[0];
4290
4290
  };
@@ -4310,7 +4310,7 @@ var getUpgradeRequiredForAccount = async (thor, contractAddress, targetVersion,
4310
4310
  const functionFragment2 = SimpleAccountFactoryInterface2.getFunction(
4311
4311
  "upgradeRequiredForAccount"
4312
4312
  ).format("json");
4313
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(contractAddress, targetVersion);
4313
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(contractAddress, targetVersion);
4314
4314
  if (res.reverted) throw new Error("Reverted");
4315
4315
  return res.decoded[0];
4316
4316
  };
@@ -4365,7 +4365,7 @@ var getAccountImplementationAddress = async (thor, version, networkType) => {
4365
4365
  default:
4366
4366
  throw new Error("Invalid version, must be between 1 and 3");
4367
4367
  }
4368
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call();
4368
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call();
4369
4369
  if (res.reverted) throw new Error("Reverted");
4370
4370
  return res.decoded[0];
4371
4371
  };
@@ -4396,7 +4396,7 @@ var getHasV1SmartAccount = async (thor, ownerAddress, networkType) => {
4396
4396
  const functionFragment2 = SimpleAccountFactoryInterface4.getFunction("hasLegacyAccount").format(
4397
4397
  "json"
4398
4398
  );
4399
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(ownerAddress);
4399
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(ownerAddress);
4400
4400
  if (res.reverted) throw new Error("Reverted");
4401
4401
  return res.decoded[0];
4402
4402
  };
@@ -4421,7 +4421,7 @@ var getUpgradeRequired = async (thor, accountAddress, ownerAddress, targetVersio
4421
4421
  const functionFragment2 = SimpleAccountFactoryInterface5.getFunction("upgradeRequired").format(
4422
4422
  "json"
4423
4423
  );
4424
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(accountAddress, ownerAddress, targetVersion);
4424
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(accountAddress, ownerAddress, targetVersion);
4425
4425
  if (res.reverted) throw new Error("Reverted");
4426
4426
  return res.decoded[0];
4427
4427
  };
@@ -4460,7 +4460,7 @@ var getAccountVersion = async (thor, accountAddress, ownerAddress, networkType)
4460
4460
  const functionFragment2 = SimpleAccountFactoryInterface6.getFunction("getAccountVersion").format(
4461
4461
  "json"
4462
4462
  );
4463
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(accountAddress, ownerAddress);
4463
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call(accountAddress, ownerAddress);
4464
4464
  if (res.reverted) throw new Error("Reverted");
4465
4465
  return {
4466
4466
  version: res.decoded[0],
@@ -4495,7 +4495,7 @@ var getCurrentAccountImplementationVersion = async (thor, networkType) => {
4495
4495
  const functionFragment2 = SimpleAccountFactoryInterface7.getFunction(
4496
4496
  "currentAccountImplementationVersion"
4497
4497
  ).format("json");
4498
- const res = await thor.account(chunkCPG25VOQ_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call();
4498
+ const res = await thor.account(chunkRUIC653T_cjs.getConfig(networkType).accountFactoryAddress).method(JSON.parse(functionFragment2)).call();
4499
4499
  if (res.reverted) throw new Error("Reverted");
4500
4500
  return parseInt(res.decoded[0]);
4501
4501
  };
@@ -4520,8 +4520,8 @@ var getSmartAccount = async (thor, network, ownerAddress) => {
4520
4520
  return { address: void 0 };
4521
4521
  }
4522
4522
  const account = await thor.contracts.executeCall(
4523
- chunkCPG25VOQ_cjs.getConfig(network).accountFactoryAddress,
4524
- sdkCore.ABIContract.ofAbi(chunkAJYTKYSZ_cjs.SimpleAccountFactoryABI).getFunction(
4523
+ chunkRUIC653T_cjs.getConfig(network).accountFactoryAddress,
4524
+ sdkCore.ABIContract.ofAbi(chunkFID67WC3_cjs.SimpleAccountFactoryABI).getFunction(
4525
4525
  "getAccountAddress"
4526
4526
  ),
4527
4527
  [ownerAddress]
@@ -4737,8 +4737,8 @@ var useUpgradeSmartAccount = ({
4737
4737
  const { refresh: refreshFactoryQueries } = useRefreshFactoryQueries();
4738
4738
  const { refresh: refreshSmartAccountQueries } = useRefreshSmartAccountQueries();
4739
4739
  const { data: newImplementationAddress } = useAccountImplementationAddress(targetVersion);
4740
- const buildClauses = React6.useCallback(async () => {
4741
- if (!smartAccountAddress || !chunkCPG25VOQ_cjs.isValidAddress(smartAccountAddress)) {
4740
+ const buildClauses = React10.useCallback(async () => {
4741
+ if (!smartAccountAddress || !chunkRUIC653T_cjs.isValidAddress(smartAccountAddress)) {
4742
4742
  throw new Error("Invalid smart account address");
4743
4743
  }
4744
4744
  if (!newImplementationAddress) {
@@ -4769,7 +4769,7 @@ var useUpgradeSmartAccount = ({
4769
4769
  const result = useSendTransaction({
4770
4770
  privyUIOptions: {
4771
4771
  title: "Upgrade Smart Account",
4772
- description: `Upgrading your account at ${chunkCPG25VOQ_cjs.humanAddress(
4772
+ description: `Upgrading your account at ${chunkRUIC653T_cjs.humanAddress(
4773
4773
  smartAccountAddress
4774
4774
  )} to version ${targetVersion}`,
4775
4775
  buttonText: "Sign to continue"
@@ -4798,7 +4798,7 @@ var FadeInView = ({ children }) => {
4798
4798
  );
4799
4799
  };
4800
4800
  var FadeInViewFromBottom = ({ children }) => {
4801
- React6.useEffect(() => {
4801
+ React10.useEffect(() => {
4802
4802
  const modalContent = document.querySelector(".chakra-modal__content");
4803
4803
  if (modalContent) {
4804
4804
  modalContent.scrollTop = 0;
@@ -4862,8 +4862,8 @@ var AddressDisplay = ({
4862
4862
  style,
4863
4863
  showHumanAddress = true
4864
4864
  }) => {
4865
- const [copied, setCopied] = React6.useState(false);
4866
- const [copiedDomain, setCopiedDomain] = React6.useState(false);
4865
+ const [copied, setCopied] = React10.useState(false);
4866
+ const [copiedDomain, setCopiedDomain] = React10.useState(false);
4867
4867
  const copyToClipboard = async (textToCopy, setCopied2) => {
4868
4868
  await navigator.clipboard.writeText(textToCopy);
4869
4869
  setCopied2(true);
@@ -4909,7 +4909,7 @@ var AddressDisplay = ({
4909
4909
  react.Input,
4910
4910
  {
4911
4911
  cursor: "pointer",
4912
- value: showHumanAddress ? chunkCPG25VOQ_cjs.humanAddress(
4912
+ value: showHumanAddress ? chunkRUIC653T_cjs.humanAddress(
4913
4913
  wallet.address ?? "",
4914
4914
  8,
4915
4915
  7
@@ -4942,7 +4942,7 @@ var AddressDisplay = ({
4942
4942
  react.Input,
4943
4943
  {
4944
4944
  cursor: "pointer",
4945
- value: showHumanAddress ? chunkCPG25VOQ_cjs.humanAddress(wallet?.address ?? "", 6, 4) : wallet?.address,
4945
+ value: showHumanAddress ? chunkRUIC653T_cjs.humanAddress(wallet?.address ?? "", 6, 4) : wallet?.address,
4946
4946
  readOnly: true,
4947
4947
  fontSize: "sm",
4948
4948
  fontWeight: "700",
@@ -4971,7 +4971,7 @@ var AddressDisplay = ({
4971
4971
  // package.json
4972
4972
  var package_default = {
4973
4973
  name: "@vechain/vechain-kit",
4974
- version: "1.5.0",
4974
+ version: "1.5.1",
4975
4975
  private: false,
4976
4976
  homepage: "https://github.com/vechain/vechain-kit",
4977
4977
  repository: "github:vechain/vechain-kit",
@@ -5098,16 +5098,26 @@ var VersionFooter = ({ ...props }) => {
5098
5098
  spacing: 0,
5099
5099
  ...props,
5100
5100
  children: [
5101
- /* @__PURE__ */ jsxRuntime.jsx(chunkAJYTKYSZ_cjs.VechainLogoHorizontal, { isDark, w: "69px", opacity: 0.4 }),
5101
+ /* @__PURE__ */ jsxRuntime.jsx(
5102
+ chunkFID67WC3_cjs.VechainLogo,
5103
+ {
5104
+ isDark,
5105
+ w: "70px",
5106
+ h: "auto",
5107
+ opacity: 0.4,
5108
+ mr: 1
5109
+ }
5110
+ ),
5102
5111
  /* @__PURE__ */ jsxRuntime.jsxs(
5103
5112
  react.Link,
5104
5113
  {
5105
5114
  fontSize: "11px",
5106
- fontWeight: "800",
5115
+ fontWeight: "500",
5107
5116
  opacity: 0.4,
5108
5117
  textAlign: "left",
5109
5118
  href: `https://github.com/vechain/vechain-kit/releases/tag/${package_default.version}`,
5110
5119
  isExternal: true,
5120
+ pt: "1px",
5111
5121
  children: [
5112
5122
  "v",
5113
5123
  package_default.version
@@ -5119,10 +5129,10 @@ var VersionFooter = ({ ...props }) => {
5119
5129
  );
5120
5130
  };
5121
5131
  var StickyHeaderContainer = ({ children }) => {
5122
- const [hasContentBelow, setHasContentBelow] = React6.useState(false);
5123
- const observerRef = React6.useRef(null);
5132
+ const [hasContentBelow, setHasContentBelow] = React10.useState(false);
5133
+ const observerRef = React10.useRef(null);
5124
5134
  const { darkMode: isDark } = useVeChainKitConfig();
5125
- React6.useEffect(() => {
5135
+ React10.useEffect(() => {
5126
5136
  const observer = new IntersectionObserver(
5127
5137
  ([entry]) => {
5128
5138
  setHasContentBelow(!entry.isIntersecting);
@@ -5143,7 +5153,7 @@ var StickyHeaderContainer = ({ children }) => {
5143
5153
  left: "0",
5144
5154
  w: "full",
5145
5155
  borderRadius: "24px 24px 0px 0px",
5146
- bg: isDark ? "rgba(31, 31, 30, 0.8)" : "rgba(255, 255, 255, 0.8)",
5156
+ bg: isDark ? "rgb(24 24 27 / 90%)" : "rgba(255, 255, 255, 0.8)",
5147
5157
  backdropFilter: "blur(12px)",
5148
5158
  style: { WebkitBackdropFilter: "blur(12px)" },
5149
5159
  zIndex: 1e3,
@@ -5170,7 +5180,7 @@ var StickyFooterContainer = ({ children }) => {
5170
5180
  bottom: "0",
5171
5181
  left: "0",
5172
5182
  right: "0",
5173
- bg: isDark ? "#1f1f1e" : "white",
5183
+ bg: isDark ? "#18181b" : "white",
5174
5184
  zIndex: "1000",
5175
5185
  p: 4,
5176
5186
  boxShadow: "0px -1px 6px -3px rgb(0 0 0 / 56%)",
@@ -5246,56 +5256,69 @@ var AssetButton = ({
5246
5256
  isDisabled,
5247
5257
  onClick,
5248
5258
  ...buttonProps
5249
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
5250
- react.Button,
5251
- {
5252
- height: "72px",
5253
- variant: "ghost",
5254
- justifyContent: "space-between",
5255
- isDisabled,
5256
- p: 4,
5257
- w: "100%",
5258
- _disabled: {
5259
- cursor: "not-allowed",
5260
- opacity: 0.5
5261
- },
5262
- onClick,
5263
- ...buttonProps,
5264
- children: [
5265
- /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { children: [
5266
- /* @__PURE__ */ jsxRuntime.jsx(
5267
- react.Image,
5268
- {
5269
- src: chunkCPG25VOQ_cjs.TOKEN_LOGOS[symbol],
5270
- alt: `${symbol} logo`,
5259
+ }) => {
5260
+ const { darkMode: isDark } = useVeChainKitConfig();
5261
+ return /* @__PURE__ */ jsxRuntime.jsxs(
5262
+ react.Button,
5263
+ {
5264
+ height: "72px",
5265
+ variant: "ghost",
5266
+ justifyContent: "space-between",
5267
+ isDisabled,
5268
+ p: 4,
5269
+ w: "100%",
5270
+ _disabled: {
5271
+ cursor: "not-allowed",
5272
+ opacity: 0.5
5273
+ },
5274
+ onClick,
5275
+ ...buttonProps,
5276
+ children: [
5277
+ /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { children: [
5278
+ chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[symbol] ? React10__default.default.cloneElement(chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[symbol], {
5271
5279
  boxSize: "24px",
5272
- borderRadius: "full",
5273
- fallback: /* @__PURE__ */ jsxRuntime.jsx(
5274
- react.Box,
5275
- {
5276
- boxSize: "24px",
5277
- borderRadius: "full",
5278
- bg: "whiteAlpha.200",
5279
- display: "flex",
5280
- alignItems: "center",
5281
- justifyContent: "center",
5282
- children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "10px", fontWeight: "bold", children: symbol.slice(0, 3) })
5283
- }
5284
- )
5285
- }
5286
- ),
5287
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { children: symbol })
5288
- ] }),
5289
- /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "flex-end", spacing: 0, children: [
5290
- /* @__PURE__ */ jsxRuntime.jsxs(react.Text, { children: [
5291
- "$",
5292
- compactFormatter.format(usdValue)
5280
+ borderRadius: "full"
5281
+ }) : /* @__PURE__ */ jsxRuntime.jsx(
5282
+ react.Image,
5283
+ {
5284
+ src: chunkRUIC653T_cjs.TOKEN_LOGOS[symbol],
5285
+ alt: `${symbol} logo`,
5286
+ boxSize: "24px",
5287
+ borderRadius: "full",
5288
+ fallback: /* @__PURE__ */ jsxRuntime.jsx(
5289
+ react.Box,
5290
+ {
5291
+ boxSize: "24px",
5292
+ borderRadius: "full",
5293
+ bg: "whiteAlpha.200",
5294
+ display: "flex",
5295
+ alignItems: "center",
5296
+ justifyContent: "center",
5297
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "10px", fontWeight: "bold", children: symbol.slice(0, 3) })
5298
+ }
5299
+ )
5300
+ }
5301
+ ),
5302
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { children: symbol })
5293
5303
  ] }),
5294
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", color: "gray.500", children: compactFormatter.format(amount) })
5295
- ] })
5296
- ]
5297
- }
5298
- );
5304
+ /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "flex-end", spacing: 0, children: [
5305
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Text, { children: [
5306
+ "$",
5307
+ compactFormatter.format(usdValue)
5308
+ ] }),
5309
+ /* @__PURE__ */ jsxRuntime.jsx(
5310
+ react.Text,
5311
+ {
5312
+ fontSize: "sm",
5313
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
5314
+ children: compactFormatter.format(amount)
5315
+ }
5316
+ )
5317
+ ] })
5318
+ ]
5319
+ }
5320
+ );
5321
+ };
5299
5322
  var compactFormatter2 = new Intl.NumberFormat("en-US", {
5300
5323
  notation: "compact",
5301
5324
  compactDisplay: "short",
@@ -5325,7 +5348,7 @@ var AddressDisplayCard = ({
5325
5348
  w: "full",
5326
5349
  p: 2,
5327
5350
  borderRadius: "lg",
5328
- bg: isDark ? "#ffffff0f" : "gray.50",
5351
+ bg: isDark ? "#00000038" : "gray.50",
5329
5352
  wordBreak: "break-word",
5330
5353
  children: [
5331
5354
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "bold", mb: 2, children: label }),
@@ -5343,8 +5366,8 @@ var AddressDisplayCard = ({
5343
5366
  ),
5344
5367
  /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { align: "start", spacing: 0, children: domain ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5345
5368
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "medium", fontSize: "sm", children: domain }),
5346
- !hideAddress && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", opacity: 0.5, children: chunkCPG25VOQ_cjs.humanAddress(address, 6, 4) })
5347
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "medium", fontSize: "sm", children: chunkCPG25VOQ_cjs.humanAddress(address, 6, 4) }) })
5369
+ !hideAddress && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", opacity: 0.5, children: chunkRUIC653T_cjs.humanAddress(address, 6, 4) })
5370
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "medium", fontSize: "sm", children: chunkRUIC653T_cjs.humanAddress(address, 6, 4) }) })
5348
5371
  ] }),
5349
5372
  /* @__PURE__ */ jsxRuntime.jsxs(
5350
5373
  react.VStack,
@@ -5385,7 +5408,7 @@ var ModalFAQButton = ({ onClick, ...props }) => {
5385
5408
  );
5386
5409
  };
5387
5410
  var useScrollToTop = () => {
5388
- React6.useEffect(() => {
5411
+ React10.useEffect(() => {
5389
5412
  const modalContent = document.querySelector(".chakra-modal__content");
5390
5413
  if (modalContent) {
5391
5414
  modalContent.scrollTop = 0;
@@ -5400,7 +5423,7 @@ var AccountAvatar = ({ wallet, props }) => {
5400
5423
  if (wallet?.isLoadingMetadata) {
5401
5424
  return /* @__PURE__ */ jsxRuntime.jsx(react.Spinner, { size: "sm" });
5402
5425
  }
5403
- const fallbackImage = wallet?.address ? chunkCPG25VOQ_cjs.getPicassoImage(wallet.address) : void 0;
5426
+ const fallbackImage = wallet?.address ? chunkRUIC653T_cjs.getPicassoImage(wallet.address) : void 0;
5404
5427
  return /* @__PURE__ */ jsxRuntime.jsx(
5405
5428
  react.Image,
5406
5429
  {
@@ -5427,7 +5450,7 @@ var TransactionButtonAndStatus = ({
5427
5450
  const { t } = reactI18next.useTranslation();
5428
5451
  const { darkMode: isDark } = useVeChainKitConfig();
5429
5452
  const { network } = useVeChainKitConfig();
5430
- const errorMessage = React6.useMemo(() => {
5453
+ const errorMessage = React10.useMemo(() => {
5431
5454
  if (!transactionError) return null;
5432
5455
  return transactionError.reason || t("Something went wrong. Please try again.");
5433
5456
  }, [transactionError, t]);
@@ -5451,10 +5474,10 @@ var TransactionButtonAndStatus = ({
5451
5474
  {
5452
5475
  isExternal: true,
5453
5476
  fontSize: "sm",
5454
- color: isDark ? "whiteAlpha.600" : "gray.500",
5477
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
5455
5478
  textAlign: "center",
5456
5479
  width: "full",
5457
- href: `${chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
5480
+ href: `${chunkRUIC653T_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
5458
5481
  target: "_blank",
5459
5482
  rel: "noopener noreferrer",
5460
5483
  children: t("View transaction on the explorer")
@@ -5471,10 +5494,10 @@ var EmailCodeVerificationModal = ({
5471
5494
  }) => {
5472
5495
  const { t } = reactI18next.useTranslation();
5473
5496
  const { darkMode: isDark } = useVeChainKitConfig();
5474
- const [code, setCode] = React6.useState("");
5475
- const [error, setError] = React6.useState(null);
5497
+ const [code, setCode] = React10.useState("");
5498
+ const [error, setError] = React10.useState(null);
5476
5499
  const { loginWithCode } = reactAuth.useLoginWithEmail({});
5477
- React6.useEffect(() => {
5500
+ React10.useEffect(() => {
5478
5501
  if (code.length === 6) {
5479
5502
  loginWithCode({ code }).then(() => {
5480
5503
  onClose();
@@ -5521,7 +5544,7 @@ var EmailCodeVerificationModal = ({
5521
5544
  otp: true,
5522
5545
  size: "lg",
5523
5546
  isInvalid: !!error,
5524
- errorBorderColor: "red.500",
5547
+ errorBorderColor: "#ef4444",
5525
5548
  children: [
5526
5549
  /* @__PURE__ */ jsxRuntime.jsx(
5527
5550
  react.PinInputField,
@@ -5616,7 +5639,7 @@ var EmailCodeVerificationModal = ({
5616
5639
  ]
5617
5640
  }
5618
5641
  ) }),
5619
- error && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "xs", children: error })
5642
+ error && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "xs", children: error })
5620
5643
  ] }) }),
5621
5644
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsxs(
5622
5645
  react.Text,
@@ -5648,7 +5671,7 @@ var EmailCodeVerificationModal = ({
5648
5671
  var EmailLoginButton = () => {
5649
5672
  const { t } = reactI18next.useTranslation();
5650
5673
  const { darkMode: isDark } = useVeChainKitConfig();
5651
- const [email, setEmail] = React6.useState("");
5674
+ const [email, setEmail] = React10.useState("");
5652
5675
  const { sendCode, state: emailState } = reactAuth.useLoginWithEmail({});
5653
5676
  const emailCodeVerificationModal = react.useDisclosure();
5654
5677
  const handleSendCode = async () => {
@@ -5745,7 +5768,7 @@ var VeChainWithPrivyLoginButton = ({ isDark, gridColumn }) => {
5745
5768
  {
5746
5769
  isDark,
5747
5770
  onClick: viewMoreLogin,
5748
- icon: isDark ? chunkAJYTKYSZ_cjs.VechainLogoLight : chunkAJYTKYSZ_cjs.VechainLogoDark,
5771
+ icon: isDark ? chunkFID67WC3_cjs.VechainLogoLight : chunkFID67WC3_cjs.VechainLogoDark,
5749
5772
  text: t("Use social login with VeChain"),
5750
5773
  variant: "loginWithVechain",
5751
5774
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(SocialIcons, {})
@@ -5755,7 +5778,7 @@ var VeChainWithPrivyLoginButton = ({ isDark, gridColumn }) => {
5755
5778
  var VeChainLoginButton = ({ isDark, gridColumn }) => {
5756
5779
  const { t } = reactI18next.useTranslation();
5757
5780
  const { login: loginWithVeChain } = useLoginWithVeChain();
5758
- const [loginError, setLoginError] = React6.useState();
5781
+ const [loginError, setLoginError] = React10.useState();
5759
5782
  const loginLoadingModal = react.useDisclosure();
5760
5783
  const handleLoginWithVeChain = async () => {
5761
5784
  loginLoadingModal.onOpen();
@@ -5776,7 +5799,7 @@ var VeChainLoginButton = ({ isDark, gridColumn }) => {
5776
5799
  {
5777
5800
  isDark,
5778
5801
  onClick: handleLoginWithVeChain,
5779
- icon: isDark ? chunkAJYTKYSZ_cjs.VechainLogoLight : chunkAJYTKYSZ_cjs.VechainLogoDark,
5802
+ icon: isDark ? chunkFID67WC3_cjs.VechainLogoLight : chunkFID67WC3_cjs.VechainLogoDark,
5780
5803
  text: t("Use social login with VeChain"),
5781
5804
  variant: "loginWithVechain",
5782
5805
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(SocialIcons, {})
@@ -5802,7 +5825,7 @@ var VeChainLoginButton = ({ isDark, gridColumn }) => {
5802
5825
  var PasskeyLoginButton = ({ isDark, gridColumn }) => {
5803
5826
  const { t } = reactI18next.useTranslation();
5804
5827
  const { loginWithPasskey } = useLoginWithPasskey();
5805
- const [loginError, setLoginError] = React6.useState();
5828
+ const [loginError, setLoginError] = React10.useState();
5806
5829
  const loginLoadingModal = react.useDisclosure();
5807
5830
  const handleLoginWithPasskey = async () => {
5808
5831
  loginLoadingModal.onOpen();
@@ -5995,7 +6018,7 @@ var MainContent = ({ setCurrentContent, onClose }) => {
5995
6018
  const { darkMode: isDark } = useVeChainKitConfig();
5996
6019
  const { connection } = useWallet();
5997
6020
  const { loginModalUI } = useVeChainKitConfig();
5998
- React6.useEffect(() => {
6021
+ React10.useEffect(() => {
5999
6022
  if (connection.isConnected) {
6000
6023
  onClose();
6001
6024
  }
@@ -6042,9 +6065,9 @@ var MainContent = ({ setCurrentContent, onClose }) => {
6042
6065
  ] });
6043
6066
  };
6044
6067
  var useFeatureAnnouncement = () => {
6045
- const [isVisible, setIsVisible] = React6.useState(true);
6068
+ const [isVisible, setIsVisible] = React10.useState(true);
6046
6069
  const CACHE_KEY = "vechain_kit_feature_announcement_closed";
6047
- React6.useEffect(() => {
6070
+ React10.useEffect(() => {
6048
6071
  const isClosed = localStorage.getItem(CACHE_KEY);
6049
6072
  if (isClosed) {
6050
6073
  setIsVisible(false);
@@ -6267,7 +6290,7 @@ var AccountDetailsButton = ({
6267
6290
  wordBreak: "break-word",
6268
6291
  whiteSpace: "normal",
6269
6292
  w: "full",
6270
- children: wallet?.domain ? chunkCPG25VOQ_cjs.humanDomain(wallet?.domain, 4, 11) : chunkCPG25VOQ_cjs.humanAddress(wallet?.address ?? "", 6, 4)
6293
+ children: wallet?.domain ? chunkRUIC653T_cjs.humanDomain(wallet?.domain, 4, 11) : chunkRUIC653T_cjs.humanAddress(wallet?.address ?? "", 6, 4)
6271
6294
  }
6272
6295
  )
6273
6296
  ] }),
@@ -6298,7 +6321,7 @@ var ActionButton = ({
6298
6321
  }) => {
6299
6322
  const { t } = reactI18next.useTranslation();
6300
6323
  const { colorMode } = react.useColorMode();
6301
- const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "whiteAlpha.100" : "#00000005";
6324
+ const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff05" : "#00000005";
6302
6325
  return /* @__PURE__ */ jsxRuntime.jsx(
6303
6326
  react.Button,
6304
6327
  {
@@ -6312,7 +6335,9 @@ var ActionButton = ({
6312
6335
  isLoading,
6313
6336
  loadingText,
6314
6337
  bgColor: baseBackgroundColor,
6315
- _hover,
6338
+ _hover: _hover ?? {
6339
+ backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
6340
+ },
6316
6341
  ...style,
6317
6342
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { w: "full", justify: "space-between", children: [
6318
6343
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { minW: "40px", children: leftImage ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -6354,7 +6379,7 @@ var AccountSelector = ({
6354
6379
  mt,
6355
6380
  style
6356
6381
  }) => {
6357
- const [copied, setCopied] = React6.useState(false);
6382
+ const [copied, setCopied] = React10.useState(false);
6358
6383
  const copyToClipboard = async () => {
6359
6384
  await navigator.clipboard.writeText(
6360
6385
  wallet?.domain ?? wallet?.address ?? ""
@@ -6397,7 +6422,7 @@ var AccountSelector = ({
6397
6422
  props: { width: 7, height: 7 }
6398
6423
  }
6399
6424
  ),
6400
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkCPG25VOQ_cjs.humanDomain(wallet?.domain ?? "", 15, 0) || chunkCPG25VOQ_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
6425
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkRUIC653T_cjs.humanDomain(wallet?.domain ?? "", 15, 0) || chunkRUIC653T_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
6401
6426
  ] }),
6402
6427
  /* @__PURE__ */ jsxRuntime.jsx(
6403
6428
  react.Icon,
@@ -6462,10 +6487,17 @@ var AssetIcons = ({
6462
6487
  border: "2px solid #00000024",
6463
6488
  alignItems: "center",
6464
6489
  justifyContent: "center",
6465
- children: chunkCPG25VOQ_cjs.TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsxRuntime.jsx(
6490
+ children: chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[token.symbol] ? React10__default.default.cloneElement(
6491
+ chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[token.symbol],
6492
+ {
6493
+ width: `${iconSize * 0.8}px`,
6494
+ height: `${iconSize * 0.8}px`,
6495
+ rounded: "full"
6496
+ }
6497
+ ) : chunkRUIC653T_cjs.TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsxRuntime.jsx(
6466
6498
  react.Image,
6467
6499
  {
6468
- src: chunkCPG25VOQ_cjs.TOKEN_LOGOS[token.symbol],
6500
+ src: chunkRUIC653T_cjs.TOKEN_LOGOS[token.symbol],
6469
6501
  alt: `${token.symbol} logo`,
6470
6502
  width: `${iconSize * 0.8}px`,
6471
6503
  height: `${iconSize * 0.8}px`,
@@ -6540,7 +6572,7 @@ var BalanceSection = ({
6540
6572
  address: account?.address ?? ""
6541
6573
  });
6542
6574
  const { refresh } = useRefreshBalances();
6543
- const [isRefreshing, setIsRefreshing] = React6.useState(false);
6575
+ const [isRefreshing, setIsRefreshing] = React10.useState(false);
6544
6576
  const handleRefresh = async () => {
6545
6577
  setIsRefreshing(true);
6546
6578
  await refresh();
@@ -6601,7 +6633,7 @@ var BalanceSection = ({
6601
6633
  onClick: onAssetsClick,
6602
6634
  maxIcons: 10,
6603
6635
  iconSize: 26,
6604
- iconsGap: 2,
6636
+ iconsGap: 3,
6605
6637
  address: account?.address ?? "",
6606
6638
  showNoAssetsWarning: true,
6607
6639
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(
@@ -6616,12 +6648,12 @@ var BalanceSection = ({
6616
6648
  style: {
6617
6649
  width: "100%",
6618
6650
  mt: 2,
6619
- backgroundColor: isDark ? "whiteAlpha.200" : "blackAlpha.50",
6651
+ backgroundColor: isDark ? "#ffffff05" : "blackAlpha.50",
6620
6652
  borderRadius: "xl",
6621
6653
  p: 3,
6622
6654
  cursor: "pointer",
6623
6655
  _hover: {
6624
- backgroundColor: isDark ? "whiteAlpha.300" : "blackAlpha.200"
6656
+ backgroundColor: isDark ? "#ffffff0d" : "blackAlpha.200"
6625
6657
  },
6626
6658
  justifyContent: "space-between"
6627
6659
  }
@@ -6690,7 +6722,7 @@ var AssetsSection = ({ mt, setCurrentContent }) => {
6690
6722
  const tabBgColor = react.useColorModeValue("white", "#1f1f1e");
6691
6723
  const tabBorderColor = react.useColorModeValue("#ebebeb", "#2d2d2d");
6692
6724
  const tabTextColor = react.useColorModeValue("#4d4d4d", "#dfdfdd");
6693
- const tabPanelsRef = React6.useRef(null);
6725
+ const tabPanelsRef = React10.useRef(null);
6694
6726
  const scrollToContent = () => {
6695
6727
  setTimeout(() => {
6696
6728
  if (tabPanelsRef.current) {
@@ -6967,7 +6999,7 @@ var useNotificationAlerts = () => {
6967
6999
  3
6968
7000
  // Target version
6969
7001
  );
6970
- React6.useEffect(() => {
7002
+ React10.useEffect(() => {
6971
7003
  if (!connection.isConnectedWithPrivy || !account?.address) return;
6972
7004
  const notifications = getNotifications();
6973
7005
  const upgradeNotificationId = `smart_account_upgrade_${account.address.toLowerCase()}`;
@@ -6985,7 +7017,7 @@ var useNotificationAlerts = () => {
6985
7017
  });
6986
7018
  }
6987
7019
  }, [connection.isConnectedWithPrivy, account?.address, upgradeRequired]);
6988
- React6.useEffect(() => {
7020
+ React10.useEffect(() => {
6989
7021
  if (!connection.isConnectedWithPrivy || !account?.address) return;
6990
7022
  const notifications = getNotifications();
6991
7023
  const hasSmartAccountNotification = notifications.some(
@@ -7002,7 +7034,7 @@ var useNotificationAlerts = () => {
7002
7034
  });
7003
7035
  }
7004
7036
  }, [connection.isConnectedWithPrivy, account?.address]);
7005
- React6.useEffect(() => {
7037
+ React10.useEffect(() => {
7006
7038
  if (!connection.isConnectedWithPrivy || !account?.address) return;
7007
7039
  const notifications = getNotifications();
7008
7040
  const hasMulticlauseWarning = notifications.some(
@@ -7027,7 +7059,7 @@ var useNotificationAlerts = () => {
7027
7059
  // src/hooks/notifications/useNotifications.ts
7028
7060
  var useNotifications = () => {
7029
7061
  const { account } = useWallet();
7030
- const getStorageKeys = React6.useCallback((address) => {
7062
+ const getStorageKeys = React10.useCallback((address) => {
7031
7063
  const normalizedAddress = address?.toLowerCase();
7032
7064
  return {
7033
7065
  notifications: `vechain_kit_notifications_${normalizedAddress}`,
@@ -7035,7 +7067,7 @@ var useNotifications = () => {
7035
7067
  initialized: `vechain_kit_notifications_initialized_${normalizedAddress}`
7036
7068
  };
7037
7069
  }, []);
7038
- const initializeNotifications = React6.useCallback(() => {
7070
+ const initializeNotifications = React10.useCallback(() => {
7039
7071
  if (!account?.address) return;
7040
7072
  const keys = getStorageKeys(account.address);
7041
7073
  const isInitialized = localStorage.getItem(keys.initialized);
@@ -7047,24 +7079,24 @@ var useNotifications = () => {
7047
7079
  localStorage.setItem(keys.initialized, "true");
7048
7080
  }
7049
7081
  }, [account?.address, getStorageKeys]);
7050
- React6.useEffect(() => {
7082
+ React10.useEffect(() => {
7051
7083
  initializeNotifications();
7052
7084
  }, [initializeNotifications]);
7053
- const getNotifications = React6.useCallback(() => {
7085
+ const getNotifications = React10.useCallback(() => {
7054
7086
  if (!account?.address) return [];
7055
7087
  const keys = getStorageKeys(account.address);
7056
7088
  const cached = localStorage.getItem(keys.notifications);
7057
7089
  if (!cached) return [];
7058
7090
  return JSON.parse(cached);
7059
7091
  }, [account?.address, getStorageKeys]);
7060
- const getArchivedNotifications = React6.useCallback(() => {
7092
+ const getArchivedNotifications = React10.useCallback(() => {
7061
7093
  if (!account?.address) return [];
7062
7094
  const keys = getStorageKeys(account.address);
7063
7095
  const cached = localStorage.getItem(keys.archived);
7064
7096
  if (!cached) return [];
7065
7097
  return JSON.parse(cached);
7066
7098
  }, [account?.address, getStorageKeys]);
7067
- const addNotification = React6.useCallback(
7099
+ const addNotification = React10.useCallback(
7068
7100
  (notification) => {
7069
7101
  if (!account?.address) return;
7070
7102
  const keys = getStorageKeys(account.address);
@@ -7090,7 +7122,7 @@ var useNotifications = () => {
7090
7122
  },
7091
7123
  [account?.address, getNotifications, getStorageKeys]
7092
7124
  );
7093
- const deleteNotification = React6.useCallback(
7125
+ const deleteNotification = React10.useCallback(
7094
7126
  (notificationId) => {
7095
7127
  if (!account?.address) return;
7096
7128
  const keys = getStorageKeys(account.address);
@@ -7105,7 +7137,7 @@ var useNotifications = () => {
7105
7137
  },
7106
7138
  [account?.address, getNotifications, getStorageKeys]
7107
7139
  );
7108
- const clearAllNotifications = React6.useCallback(() => {
7140
+ const clearAllNotifications = React10.useCallback(() => {
7109
7141
  if (!account?.address) return;
7110
7142
  const keys = getStorageKeys(account.address);
7111
7143
  const notifications = getNotifications();
@@ -7120,7 +7152,7 @@ var useNotifications = () => {
7120
7152
  getArchivedNotifications,
7121
7153
  getStorageKeys
7122
7154
  ]);
7123
- const markAsRead = React6.useCallback(
7155
+ const markAsRead = React10.useCallback(
7124
7156
  (notificationId) => {
7125
7157
  if (!account?.address) return;
7126
7158
  const keys = getStorageKeys(account.address);
@@ -7167,7 +7199,7 @@ var SettingsContent = ({
7167
7199
  setCurrentContent,
7168
7200
  onLogoutSuccess
7169
7201
  }) => {
7170
- const contentRef = React6.useRef(null);
7202
+ const contentRef = React10.useRef(null);
7171
7203
  const { t } = reactI18next.useTranslation();
7172
7204
  const { privy } = useVeChainKitConfig();
7173
7205
  const { connection, disconnect, account } = useWallet();
@@ -7177,7 +7209,7 @@ var SettingsContent = ({
7177
7209
  const { getNotifications } = useNotifications();
7178
7210
  const notifications = getNotifications();
7179
7211
  const hasUnreadNotifications = notifications.some((n) => !n.isRead);
7180
- React6.useEffect(() => {
7212
+ React10.useEffect(() => {
7181
7213
  if (contentRef.current) {
7182
7214
  contentRef.current.scrollTop = 0;
7183
7215
  }
@@ -7388,7 +7420,7 @@ var NetworkInfo = () => {
7388
7420
  InfoRow,
7389
7421
  {
7390
7422
  label: t("Node URL"),
7391
- value: network.nodeUrl || chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl
7423
+ value: network.nodeUrl || chunkRUIC653T_cjs.getConfig(network.type).nodeUrl
7392
7424
  }
7393
7425
  ),
7394
7426
  connection.isConnectedWithPrivy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -7433,7 +7465,7 @@ var CrossAppConnectionCard = ({ connectionCache }) => {
7433
7465
  react.VStack,
7434
7466
  {
7435
7467
  p: 4,
7436
- bg: isDark ? "#1a1a1a" : "#f5f5f5",
7468
+ bg: isDark ? "#00000038" : "#f5f5f5",
7437
7469
  borderRadius: "xl",
7438
7470
  spacing: 4,
7439
7471
  w: "full",
@@ -7495,7 +7527,7 @@ var DappKitConnectionCard = () => {
7495
7527
  react.VStack,
7496
7528
  {
7497
7529
  p: 4,
7498
- bg: isDark ? "#1a1a1a" : "#f5f5f5",
7530
+ bg: isDark ? "#00000038" : "#f5f5f5",
7499
7531
  borderRadius: "xl",
7500
7532
  spacing: 4,
7501
7533
  w: "full",
@@ -7537,7 +7569,7 @@ var PrivyConnectionCard = () => {
7537
7569
  react.VStack,
7538
7570
  {
7539
7571
  p: 4,
7540
- bg: isDark ? "#1a1a1a" : "#f5f5f5",
7572
+ bg: isDark ? "#00000038" : "#f5f5f5",
7541
7573
  borderRadius: "xl",
7542
7574
  spacing: 4,
7543
7575
  w: "full",
@@ -7589,9 +7621,17 @@ var WalletSecuredBy = () => {
7589
7621
  children: [
7590
7622
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") }),
7591
7623
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "center", children: [
7592
- /* @__PURE__ */ jsxRuntime.jsx(chunkAJYTKYSZ_cjs.PrivyLogo, { isDark, w: "50px" }),
7593
- /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: pi.PiLineVertical, ml: 2 }),
7594
- connection.isConnectedWithVeChain ? /* @__PURE__ */ jsxRuntime.jsx(chunkAJYTKYSZ_cjs.VechainLogoHorizontal, { isDark, w: "69px" }) : connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsxRuntime.jsx(
7624
+ /* @__PURE__ */ jsxRuntime.jsx(chunkFID67WC3_cjs.PrivyLogo, { isDark, w: "50px" }),
7625
+ /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: pi.PiLineVertical, ml: 3 }),
7626
+ connection.isConnectedWithVeChain ? /* @__PURE__ */ jsxRuntime.jsx(
7627
+ chunkFID67WC3_cjs.VechainLogo,
7628
+ {
7629
+ isDark,
7630
+ w: "80px",
7631
+ h: "auto",
7632
+ mb: "3px"
7633
+ }
7634
+ ) : connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsxRuntime.jsx(
7595
7635
  react.Image,
7596
7636
  {
7597
7637
  src: connectionCache.ecosystemApp.logoUrl,
@@ -7617,7 +7657,7 @@ var WalletSecuredBy = () => {
7617
7657
  var EmbeddedWalletContent = ({ setCurrentContent }) => {
7618
7658
  const { t } = reactI18next.useTranslation();
7619
7659
  const { connectedWallet, connection } = useWallet();
7620
- const walletImage = chunkCPG25VOQ_cjs.getPicassoImage(connectedWallet?.address ?? "");
7660
+ const walletImage = chunkRUIC653T_cjs.getPicassoImage(connectedWallet?.address ?? "");
7621
7661
  const { getConnectionCache } = useCrossAppConnectionCache();
7622
7662
  const connectionCache = getConnectionCache();
7623
7663
  return /* @__PURE__ */ jsxRuntime.jsxs(ScrollToTopWrapper, { children: [
@@ -7687,7 +7727,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
7687
7727
  {
7688
7728
  href: "https://www.veworld.net/",
7689
7729
  isExternal: true,
7690
- color: "gray.500",
7730
+ color: "blackAlpha.600",
7691
7731
  fontSize: "14px",
7692
7732
  textDecoration: "underline",
7693
7733
  children: [
@@ -7707,7 +7747,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
7707
7747
  {
7708
7748
  href: "https://docs.vechainkit.vechain.org/vechain-kit/embedded-wallets",
7709
7749
  isExternal: true,
7710
- color: "gray.500",
7750
+ color: "blackAlpha.600",
7711
7751
  fontSize: "14px",
7712
7752
  textDecoration: "underline",
7713
7753
  children: t("here")
@@ -7731,7 +7771,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7731
7771
  const { darkMode: isDark } = useVeChainKitConfig();
7732
7772
  const { account } = useWallet();
7733
7773
  const { tokens } = useBalances({ address: account?.address ?? "" });
7734
- const [searchQuery, setSearchQuery] = React6.useState("");
7774
+ const [searchQuery, setSearchQuery] = React10.useState("");
7735
7775
  const allTokens = [
7736
7776
  ...Object.entries(tokens).map(([symbol, data]) => ({
7737
7777
  symbol,
@@ -7761,7 +7801,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7761
7801
  react.Input,
7762
7802
  {
7763
7803
  placeholder: "Search token",
7764
- bg: isDark ? "#1a1a1a" : "gray.50",
7804
+ bg: isDark ? "#00000038" : "gray.50",
7765
7805
  borderRadius: "xl",
7766
7806
  height: "56px",
7767
7807
  pl: 12,
@@ -7791,7 +7831,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
7791
7831
  {
7792
7832
  spacing: 2,
7793
7833
  py: 8,
7794
- color: isDark ? "whiteAlpha.600" : "gray.500",
7834
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
7795
7835
  children: [
7796
7836
  /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: fi.FiSlash, boxSize: 12, opacity: 0.5 }),
7797
7837
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "lg", children: t("No tokens found") }),
@@ -7830,13 +7870,13 @@ var SendTokenContent = ({
7830
7870
  }) => {
7831
7871
  const { t } = reactI18next.useTranslation();
7832
7872
  const { darkMode: isDark } = useVeChainKitConfig();
7833
- const [selectedToken, setSelectedToken] = React6.useState(
7873
+ const [selectedToken, setSelectedToken] = React10.useState(
7834
7874
  preselectedToken ?? null
7835
7875
  );
7836
- const [isSelectingToken, setIsSelectingToken] = React6.useState(
7876
+ const [isSelectingToken, setIsSelectingToken] = React10.useState(
7837
7877
  isNavigatingFromMain && !preselectedToken
7838
7878
  );
7839
- const [isInitialTokenSelection, setIsInitialTokenSelection] = React6.useState(isNavigatingFromMain);
7879
+ const [isInitialTokenSelection, setIsInitialTokenSelection] = React10.useState(isNavigatingFromMain);
7840
7880
  const {
7841
7881
  register,
7842
7882
  watch,
@@ -7864,7 +7904,7 @@ var SendTokenContent = ({
7864
7904
  };
7865
7905
  const onSubmit = async (data) => {
7866
7906
  if (!selectedToken) return;
7867
- const isValidReceiver = !chunkCPG25VOQ_cjs.compareAddresses(resolvedAddress ?? ethers.ZeroAddress, ethers.ZeroAddress) || chunkCPG25VOQ_cjs.isValidAddress(data.toAddressOrDomain);
7907
+ const isValidReceiver = !chunkRUIC653T_cjs.compareAddresses(resolvedAddress ?? ethers.ZeroAddress, ethers.ZeroAddress) || chunkRUIC653T_cjs.isValidAddress(data.toAddressOrDomain);
7868
7908
  if (!isValidReceiver) {
7869
7909
  setError("toAddressOrDomain", {
7870
7910
  type: "manual",
@@ -7928,7 +7968,7 @@ var SendTokenContent = ({
7928
7968
  {
7929
7969
  p: 6,
7930
7970
  borderRadius: "xl",
7931
- bg: isDark ? "#1a1a1a" : "gray.50",
7971
+ bg: isDark ? "#00000038" : "gray.50",
7932
7972
  children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "stretch", spacing: 2, children: [
7933
7973
  /* @__PURE__ */ jsxRuntime.jsxs(react.FormControl, { isInvalid: !!errors.amount, children: [
7934
7974
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "space-between", children: [
@@ -7977,10 +8017,16 @@ var SendTokenContent = ({
7977
8017
  bg: isDark ? "whiteAlpha.300" : "blackAlpha.300"
7978
8018
  },
7979
8019
  onClick: () => setIsSelectingToken(true),
7980
- leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
8020
+ leftIcon: chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol] ? React10__default.default.cloneElement(
8021
+ chunkRUIC653T_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol],
8022
+ {
8023
+ boxSize: "20px",
8024
+ borderRadius: "full"
8025
+ }
8026
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
7981
8027
  react.Image,
7982
8028
  {
7983
- src: chunkCPG25VOQ_cjs.TOKEN_LOGOS[selectedToken.symbol],
8029
+ src: chunkRUIC653T_cjs.TOKEN_LOGOS[selectedToken.symbol],
7984
8030
  alt: `${selectedToken.symbol} logo`,
7985
8031
  boxSize: "20px",
7986
8032
  borderRadius: "full",
@@ -8028,7 +8074,7 @@ var SendTokenContent = ({
8028
8074
  }
8029
8075
  )
8030
8076
  ] }),
8031
- errors.amount && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", children: errors.amount.message })
8077
+ errors.amount && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", children: errors.amount.message })
8032
8078
  ] }),
8033
8079
  selectedToken && /* @__PURE__ */ jsxRuntime.jsxs(
8034
8080
  react.HStack,
@@ -8071,7 +8117,7 @@ var SendTokenContent = ({
8071
8117
  marginTop: "-20px",
8072
8118
  marginBottom: "-20px",
8073
8119
  marginX: "auto",
8074
- bg: isDark ? "#262626" : "gray.100",
8120
+ bg: isDark ? "#151515" : "gray.100",
8075
8121
  borderRadius: "xl",
8076
8122
  w: "40px",
8077
8123
  h: "40px",
@@ -8087,34 +8133,41 @@ var SendTokenContent = ({
8087
8133
  )
8088
8134
  }
8089
8135
  ),
8090
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { borderRadius: "xl", bg: isDark ? "#1a1a1a" : "gray.50", children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { align: "stretch", spacing: 2, p: 6, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(react.FormControl, { isInvalid: !!errors.toAddressOrDomain, children: [
8091
- /* @__PURE__ */ jsxRuntime.jsx(
8092
- react.Input,
8093
- {
8094
- ...register("toAddressOrDomain", {
8095
- required: t("Address is required")
8096
- }),
8097
- onChange: (e) => {
8098
- const trimmed = e.target.value.trim();
8099
- e.target.value = trimmed;
8100
- setValue("toAddressOrDomain", trimmed, {
8101
- shouldValidate: true
8102
- });
8103
- },
8104
- placeholder: t(
8105
- "Type the receiver address or domain"
8136
+ /* @__PURE__ */ jsxRuntime.jsx(
8137
+ react.Box,
8138
+ {
8139
+ borderRadius: "xl",
8140
+ bg: isDark ? "#00000038" : "gray.50",
8141
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { align: "stretch", spacing: 2, p: 6, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(react.FormControl, { isInvalid: !!errors.toAddressOrDomain, children: [
8142
+ /* @__PURE__ */ jsxRuntime.jsx(
8143
+ react.Input,
8144
+ {
8145
+ ...register("toAddressOrDomain", {
8146
+ required: t("Address is required")
8147
+ }),
8148
+ onChange: (e) => {
8149
+ const trimmed = e.target.value.trim();
8150
+ e.target.value = trimmed;
8151
+ setValue("toAddressOrDomain", trimmed, {
8152
+ shouldValidate: true
8153
+ });
8154
+ },
8155
+ placeholder: t(
8156
+ "Type the receiver address or domain"
8157
+ ),
8158
+ _placeholder: {
8159
+ fontSize: "md",
8160
+ fontWeight: "normal"
8161
+ },
8162
+ fontSize: "lg",
8163
+ fontWeight: "bold",
8164
+ variant: "unstyled"
8165
+ }
8106
8166
  ),
8107
- _placeholder: {
8108
- fontSize: "md",
8109
- fontWeight: "normal"
8110
- },
8111
- fontSize: "lg",
8112
- fontWeight: "bold",
8113
- variant: "unstyled"
8114
- }
8115
- ),
8116
- errors.toAddressOrDomain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", children: errors.toAddressOrDomain.message })
8117
- ] }) }) })
8167
+ errors.toAddressOrDomain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", children: errors.toAddressOrDomain.message })
8168
+ ] }) })
8169
+ }
8170
+ )
8118
8171
  ] }) }),
8119
8172
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
8120
8173
  react.Button,
@@ -8155,11 +8208,11 @@ var SendTokenSummaryContent = ({
8155
8208
  3
8156
8209
  );
8157
8210
  const { open: openUpgradeSmartAccountModal } = useUpgradeSmartAccountModal();
8158
- const toImageSrc = React6.useMemo(() => {
8211
+ const toImageSrc = React10.useMemo(() => {
8159
8212
  if (avatar) {
8160
- return chunkCPG25VOQ_cjs.convertUriToUrl(avatar, network.type);
8213
+ return chunkRUIC653T_cjs.convertUriToUrl(avatar, network.type);
8161
8214
  }
8162
- return chunkCPG25VOQ_cjs.getPicassoImage(resolvedAddress || toAddressOrDomain);
8215
+ return chunkRUIC653T_cjs.getPicassoImage(resolvedAddress || toAddressOrDomain);
8163
8216
  }, [avatar, network.type, resolvedAddress, toAddressOrDomain]);
8164
8217
  const {
8165
8218
  sendTransaction: transferERC20,
@@ -8231,7 +8284,7 @@ var SendTokenSummaryContent = ({
8231
8284
  };
8232
8285
  const isTxWaitingConfirmation = transferERC20WaitingForWalletConfirmation || transferVETWaitingForWalletConfirmation;
8233
8286
  const isSubmitting = isTxWaitingConfirmation || transferERC20Pending || transferVETPending;
8234
- React6.useEffect(() => {
8287
+ React10.useEffect(() => {
8235
8288
  if (upgradeRequired) {
8236
8289
  openUpgradeSmartAccountModal();
8237
8290
  }
@@ -8554,7 +8607,7 @@ var ExistingDomainsList = ({
8554
8607
  react.Text,
8555
8608
  {
8556
8609
  fontSize: "sm",
8557
- color: isDark ? "whiteAlpha.600" : "gray.500",
8610
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
8558
8611
  children: t(
8559
8612
  "Current domain"
8560
8613
  )
@@ -8567,8 +8620,8 @@ var ExistingDomainsList = ({
8567
8620
  react.Tag,
8568
8621
  {
8569
8622
  size: "sm",
8570
- bg: isDark ? "whiteAlpha.200" : "gray.100",
8571
- color: isDark ? "whiteAlpha.800" : "gray.600",
8623
+ bg: isDark ? "#ffffff05" : "whiteAlpha.100",
8624
+ color: isDark ? "whiteAlpha.900" : "blackAlpha.600",
8572
8625
  px: 3,
8573
8626
  py: 1,
8574
8627
  borderRadius: "full",
@@ -8590,11 +8643,11 @@ var ChooseNameSearchContent = ({
8590
8643
  const { t } = reactI18next.useTranslation();
8591
8644
  const { account } = useWallet();
8592
8645
  const { darkMode: isDark } = useVeChainKitConfig();
8593
- const [name, setName] = React6.useState(initialName);
8594
- const [error, setError] = React6.useState(null);
8595
- const [isOwnDomain, setIsOwnDomain] = React6.useState(false);
8596
- const [isAvailable, setIsAvailable] = React6.useState(false);
8597
- const [hasInteracted, setHasInteracted] = React6.useState(false);
8646
+ const [name, setName] = React10.useState(initialName);
8647
+ const [error, setError] = React10.useState(null);
8648
+ const [isOwnDomain, setIsOwnDomain] = React10.useState(false);
8649
+ const [isAvailable, setIsAvailable] = React10.useState(false);
8650
+ const [hasInteracted, setHasInteracted] = React10.useState(false);
8598
8651
  const { data: ensRecordExists, isLoading: isEnsCheckLoading } = useEnsRecordExists(name);
8599
8652
  const { data: domainInfo, isLoading: isDomainInfoLoading } = useVechainDomain(`${name}.veworld.vet`);
8600
8653
  const { data: isProtected, isLoading: isProtectedLoading } = useIsDomainProtected(name);
@@ -8612,7 +8665,7 @@ var ChooseNameSearchContent = ({
8612
8665
  ...veworldDomainsOfAddress?.domains || [],
8613
8666
  ...vetDomainsOfAddress?.domains || []
8614
8667
  ];
8615
- React6.useEffect(() => {
8668
+ React10.useEffect(() => {
8616
8669
  if (!hasInteracted) return;
8617
8670
  if (name.length < 3) {
8618
8671
  setError(t("Name must be at least 3 characters long"));
@@ -8705,7 +8758,7 @@ var ChooseNameSearchContent = ({
8705
8758
  paddingRight: "120px",
8706
8759
  fontSize: "lg",
8707
8760
  height: "60px",
8708
- bg: isDark ? "#1a1a1a" : "white",
8761
+ bg: isDark ? "#00000038" : "white",
8709
8762
  border: `1px solid ${isDark ? "#ffffff29" : "#ebebeb"}`,
8710
8763
  _hover: {
8711
8764
  border: `1px solid ${isDark ? "#ffffff40" : "#e0e0e0"}`
@@ -8728,19 +8781,19 @@ var ChooseNameSearchContent = ({
8728
8781
  {
8729
8782
  mr: 4,
8730
8783
  fontSize: "sm",
8731
- color: isDark ? "whiteAlpha.800" : "gray.500",
8784
+ color: isDark ? "whiteAlpha.800" : "blackAlpha.600",
8732
8785
  children: ".veworld.vet"
8733
8786
  }
8734
8787
  )
8735
8788
  }
8736
8789
  )
8737
8790
  ] }),
8738
- error && hasInteracted && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", children: error }),
8791
+ error && hasInteracted && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", children: error }),
8739
8792
  !error && hasInteracted && name.length >= 3 && /* @__PURE__ */ jsxRuntime.jsx(
8740
8793
  react.Text,
8741
8794
  {
8742
8795
  fontSize: "sm",
8743
- color: isAvailable ? "green.500" : "red.500",
8796
+ color: isAvailable ? "green.500" : "#ef4444",
8744
8797
  fontWeight: "500",
8745
8798
  children: isOwnDomain ? t("YOU OWN THIS") : isAvailable ? t("AVAILABLE") : t("UNAVAILABLE")
8746
8799
  }
@@ -8806,7 +8859,7 @@ var ChooseNameSummaryContent = ({
8806
8859
  console.error("Transaction failed:", error);
8807
8860
  }
8808
8861
  };
8809
- React6.useEffect(() => {
8862
+ React10.useEffect(() => {
8810
8863
  if (upgradeRequired) {
8811
8864
  openUpgradeSmartAccountModal();
8812
8865
  }
@@ -8852,7 +8905,7 @@ var ChooseNameSummaryContent = ({
8852
8905
  var FAQAccordion = () => {
8853
8906
  const { t } = reactI18next.useTranslation();
8854
8907
  const { darkMode: isDark } = useVeChainKitConfig();
8855
- const [searchQuery, setSearchQuery] = React6.useState("");
8908
+ const [searchQuery, setSearchQuery] = React10.useState("");
8856
8909
  const faqItems = [
8857
8910
  {
8858
8911
  question: t("What is VeChain?"),
@@ -8954,7 +9007,7 @@ var FAQAccordion = () => {
8954
9007
  react.Input,
8955
9008
  {
8956
9009
  placeholder: t("Search FAQ"),
8957
- bg: isDark ? "#1a1a1a" : "gray.50",
9010
+ bg: isDark ? "#00000038" : "gray.50",
8958
9011
  borderRadius: "xl",
8959
9012
  height: "56px",
8960
9013
  pl: 12,
@@ -8962,14 +9015,19 @@ var FAQAccordion = () => {
8962
9015
  onChange: (e) => setSearchQuery(e.target.value)
8963
9016
  }
8964
9017
  ),
8965
- /* @__PURE__ */ jsxRuntime.jsx(react.InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsxRuntime.jsx(ci.CiSearch, { color: isDark ? "whiteAlpha.400" : "gray.400" }) })
9018
+ /* @__PURE__ */ jsxRuntime.jsx(react.InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsxRuntime.jsx(
9019
+ ci.CiSearch,
9020
+ {
9021
+ color: isDark ? "whiteAlpha.400" : "blackAlpha.600"
9022
+ }
9023
+ ) })
8966
9024
  ] }),
8967
9025
  filteredFaqItems.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
8968
9026
  react.VStack,
8969
9027
  {
8970
9028
  spacing: 2,
8971
9029
  py: 8,
8972
- color: isDark ? "whiteAlpha.600" : "gray.500",
9030
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
8973
9031
  children: [
8974
9032
  /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: fi.FiSlash, boxSize: 12, opacity: 0.5 }),
8975
9033
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "lg", children: t("No questions found") }),
@@ -8980,10 +9038,10 @@ var FAQAccordion = () => {
8980
9038
  /* @__PURE__ */ jsxRuntime.jsxs(
8981
9039
  react.AccordionButton,
8982
9040
  {
8983
- bg: isDark ? "whiteAlpha.50" : "gray.50",
9041
+ bg: isDark ? "whiteAlpha.50" : "blackAlpha.50",
8984
9042
  borderRadius: "xl",
8985
9043
  _hover: {
8986
- bg: isDark ? "whiteAlpha.100" : "gray.100"
9044
+ bg: isDark ? "whiteAlpha.100" : "blackAlpha.100"
8987
9045
  },
8988
9046
  children: [
8989
9047
  /* @__PURE__ */ jsxRuntime.jsx(react.Box, { flex: "1", textAlign: "left", py: 2, children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "500", children: item.question }) }),
@@ -9299,6 +9357,7 @@ var en_default = {
9299
9357
  "Save Changes": "Save Changes",
9300
9358
  "Saving changes...": "Saving changes...",
9301
9359
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!",
9360
+ "Search Apps": "Search Apps",
9302
9361
  "Search FAQ": "Search FAQ",
9303
9362
  "Search dApps": "Search dApps",
9304
9363
  "Search for a domain": "Search for a domain",
@@ -9777,6 +9836,7 @@ var de_default = {
9777
9836
  "Save Changes": "\xC4nderungen speichern",
9778
9837
  "Saving changes...": "\xC4nderungen werden gespeichert...",
9779
9838
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Verabschieden Sie sich von 0x-Adressen, beanspruchen Sie Ihre .veworld.vet-Subdomain jetzt kostenlos!",
9839
+ "Search Apps": "Apps durchsuchen",
9780
9840
  "Search FAQ": "FAQ durchsuchen",
9781
9841
  "Search dApps": "dApps durchsuchen",
9782
9842
  "Search for a domain": "Nach einer Domain suchen",
@@ -10255,6 +10315,7 @@ var it_default = {
10255
10315
  "Save Changes": "Salva modifiche",
10256
10316
  "Saving changes...": "Salvataggio delle modifiche...",
10257
10317
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "D\xEC addio agli indirizzi 0x, richiedi il tuo sottodominio .veworld.vet ora gratuitamente!",
10318
+ "Search Apps": "Cerca App",
10258
10319
  "Search FAQ": "Cerca FAQ",
10259
10320
  "Search dApps": "Cerca dApp",
10260
10321
  "Search for a domain": "Cerca un dominio",
@@ -10733,6 +10794,7 @@ var fr_default = {
10733
10794
  "Save Changes": "Enregistrer les modifications",
10734
10795
  "Saving changes...": "Enregistrement des modifications...",
10735
10796
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Dites adieu aux adresses 0x, r\xE9clamez d\xE8s maintenant votre sous-domaine .veworld.vet gratuitement!",
10797
+ "Search Apps": "Rechercher des applications",
10736
10798
  "Search FAQ": "Rechercher dans la FAQ",
10737
10799
  "Search dApps": "Rechercher des dApps",
10738
10800
  "Search for a domain": "Rechercher un domaine",
@@ -11211,6 +11273,7 @@ var es_default = {
11211
11273
  "Save Changes": "Guardar cambios",
11212
11274
  "Saving changes...": "Guardando cambios...",
11213
11275
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Desp\xEDdete de las direcciones 0x, \xA1reclama tu subdominio .veworld.vet ahora gratis!",
11276
+ "Search Apps": "Buscar aplicaciones",
11214
11277
  "Search FAQ": "Buscar en las preguntas frecuentes",
11215
11278
  "Search dApps": "Buscar dApps",
11216
11279
  "Search for a domain": "Buscar un dominio",
@@ -11689,6 +11752,7 @@ var zh_default = {
11689
11752
  "Save Changes": "\u4FDD\u5B58\u66F4\u6539",
11690
11753
  "Saving changes...": "\u6B63\u5728\u4FDD\u5B58\u66F4\u6539...",
11691
11754
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "\u544A\u522B 0x \u5730\u5740\uFF0C\u7ACB\u5373\u514D\u8D39\u9886\u53D6\u60A8\u7684 .veworld.vet \u5B50\u57DF\u540D\uFF01",
11755
+ "Search Apps": "\u641C\u7D22\u5E94\u7528",
11692
11756
  "Search FAQ": "\u641C\u7D22\u5E38\u89C1\u95EE\u9898",
11693
11757
  "Search dApps": "\u641C\u7D22 dApps",
11694
11758
  "Search for a domain": "\u641C\u7D22\u57DF\u540D",
@@ -12167,6 +12231,7 @@ var ja_default = {
12167
12231
  "Save Changes": "\u5909\u66F4\u3092\u4FDD\u5B58",
12168
12232
  "Saving changes...": "\u5909\u66F4\u3092\u4FDD\u5B58\u3057\u3066\u3044\u307E\u3059...",
12169
12233
  "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "0x\u30A2\u30C9\u30EC\u30B9\u306B\u5225\u308C\u3092\u544A\u3052\u3001\u4ECA\u3059\u3050\u7121\u6599\u3067.veworld.vet\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u3092\u53D6\u5F97\u3057\u307E\u3057\u3087\u3046\uFF01",
12234
+ "Search Apps": "\u30A2\u30D7\u30EA\u3092\u691C\u7D22",
12170
12235
  "Search FAQ": "FAQ\u3092\u691C\u7D22",
12171
12236
  "Search dApps": "dApps\u3092\u691C\u7D22",
12172
12237
  "Search for a domain": "\u30C9\u30E1\u30A4\u30F3\u3092\u691C\u7D22",
@@ -12417,10 +12482,12 @@ var FAQContent = ({ onGoBack }) => {
12417
12482
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "stretch", children: [
12418
12483
  /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { children: [
12419
12484
  /* @__PURE__ */ jsxRuntime.jsx(react.HStack, { justify: "center", children: /* @__PURE__ */ jsxRuntime.jsx(
12420
- chunkAJYTKYSZ_cjs.VechainLogoHorizontal,
12485
+ chunkFID67WC3_cjs.VechainLogo,
12421
12486
  {
12422
12487
  isDark,
12423
- w: "200px"
12488
+ w: "200px",
12489
+ h: "auto",
12490
+ ml: -6
12424
12491
  }
12425
12492
  ) }),
12426
12493
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", opacity: 0.7, textAlign: "center", children: t(
@@ -12493,23 +12560,23 @@ var CustomizationContent = ({
12493
12560
  const { t } = reactI18next.useTranslation();
12494
12561
  const { network, darkMode: isDark } = useVeChainKitConfig();
12495
12562
  const { account } = useWallet();
12496
- const fileInputRef = React6.useRef(null);
12497
- const coverInputRef = React6.useRef(null);
12498
- const [isUploading, setIsUploading] = React6.useState(false);
12563
+ const fileInputRef = React10.useRef(null);
12564
+ const coverInputRef = React10.useRef(null);
12565
+ const [isUploading, setIsUploading] = React10.useState(false);
12499
12566
  const { onUpload } = useSingleImageUpload({
12500
12567
  compressImage: true
12501
12568
  });
12502
- const [previewImageUrl, setPreviewImageUrl] = React6.useState(null);
12503
- const [avatarIpfsHash, setAvatarIpfsHash] = React6.useState(null);
12569
+ const [previewImageUrl, setPreviewImageUrl] = React10.useState(null);
12570
+ const [avatarIpfsHash, setAvatarIpfsHash] = React10.useState(null);
12504
12571
  const hasDomain = !!account?.domain;
12505
- const [initialAvatarHash, setInitialAvatarHash] = React6.useState(
12572
+ const [initialAvatarHash, setInitialAvatarHash] = React10.useState(
12506
12573
  null
12507
12574
  );
12508
- const [initialDisplayName, setInitialDisplayName] = React6.useState("");
12509
- const [initialDescription, setInitialDescription] = React6.useState("");
12510
- const [initialTwitter, setInitialTwitter] = React6.useState("");
12511
- const [initialWebsite, setInitialWebsite] = React6.useState("");
12512
- const [initialEmail, setInitialEmail] = React6.useState("");
12575
+ const [initialDisplayName, setInitialDisplayName] = React10.useState("");
12576
+ const [initialDescription, setInitialDescription] = React10.useState("");
12577
+ const [initialTwitter, setInitialTwitter] = React10.useState("");
12578
+ const [initialWebsite, setInitialWebsite] = React10.useState("");
12579
+ const [initialEmail, setInitialEmail] = React10.useState("");
12513
12580
  const {
12514
12581
  register,
12515
12582
  watch,
@@ -12524,7 +12591,7 @@ var CustomizationContent = ({
12524
12591
  },
12525
12592
  mode: "onChange"
12526
12593
  });
12527
- React6.useEffect(() => {
12594
+ React10.useEffect(() => {
12528
12595
  if (account?.metadata) {
12529
12596
  const metadata = account.metadata;
12530
12597
  setInitialDisplayName(metadata.display || "");
@@ -12536,7 +12603,7 @@ var CustomizationContent = ({
12536
12603
  metadata.avatar ? metadata.avatar.replace("ipfs://", "") : null
12537
12604
  );
12538
12605
  setPreviewImageUrl(
12539
- chunkCPG25VOQ_cjs.convertUriToUrl(metadata.avatar ?? "", network.type) || null
12606
+ chunkRUIC653T_cjs.convertUriToUrl(metadata.avatar ?? "", network.type) || null
12540
12607
  );
12541
12608
  }
12542
12609
  }, [account?.metadata, network.type]);
@@ -12549,7 +12616,7 @@ var CustomizationContent = ({
12549
12616
  setPreviewImageUrl(URL.createObjectURL(file));
12550
12617
  const uploadedImage = await onUpload(file);
12551
12618
  if (!uploadedImage) throw new Error("Failed to compress image");
12552
- const ipfsHash = await chunkCPG25VOQ_cjs.uploadBlobToIPFS(
12619
+ const ipfsHash = await chunkRUIC653T_cjs.uploadBlobToIPFS(
12553
12620
  uploadedImage.file,
12554
12621
  file.name,
12555
12622
  network.type
@@ -12562,7 +12629,7 @@ var CustomizationContent = ({
12562
12629
  setIsUploading(false);
12563
12630
  }
12564
12631
  };
12565
- React6.useEffect(() => {
12632
+ React10.useEffect(() => {
12566
12633
  return () => {
12567
12634
  if (previewImageUrl) {
12568
12635
  URL.revokeObjectURL(previewImageUrl);
@@ -12584,7 +12651,7 @@ var CustomizationContent = ({
12584
12651
  if (formValues.email !== initialEmail) changes.email = formValues.email;
12585
12652
  return changes;
12586
12653
  };
12587
- const hasChanges = React6.useMemo(() => {
12654
+ const hasChanges = React10.useMemo(() => {
12588
12655
  const changes = getChangedValues();
12589
12656
  return Object.keys(changes).length > 0;
12590
12657
  }, [getChangedValues]);
@@ -12607,7 +12674,7 @@ var CustomizationContent = ({
12607
12674
  /* @__PURE__ */ jsxRuntime.jsxs(
12608
12675
  react.Card,
12609
12676
  {
12610
- bg: isDark ? "whiteAlpha.100" : "#00000005",
12677
+ bg: isDark ? "#1e1e21" : "#00000005",
12611
12678
  borderRadius: "xl",
12612
12679
  width: "full",
12613
12680
  position: "relative",
@@ -12621,7 +12688,7 @@ var CustomizationContent = ({
12621
12688
  backgroundPosition: "center",
12622
12689
  position: "relative",
12623
12690
  h: "80px",
12624
- background: `no-repeat url('${chunkCPG25VOQ_cjs.getPicassoImage(
12691
+ background: `no-repeat url('${chunkRUIC653T_cjs.getPicassoImage(
12625
12692
  account?.address ?? ""
12626
12693
  )}')`,
12627
12694
  w: "100%",
@@ -12748,7 +12815,7 @@ var CustomizationContent = ({
12748
12815
  placeholder: !hasDomain ? t("Set a domain first") : t("Enter your display name")
12749
12816
  }
12750
12817
  ),
12751
- errors.displayName && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", mt: 1, children: errors.displayName.message })
12818
+ errors.displayName && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.displayName.message })
12752
12819
  ]
12753
12820
  }
12754
12821
  ),
@@ -12773,7 +12840,7 @@ var CustomizationContent = ({
12773
12840
  placeholder: t("Eg: DevRel @ ENS Labs")
12774
12841
  }
12775
12842
  ),
12776
- errors.description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", mt: 1, children: errors.description.message })
12843
+ errors.description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.description.message })
12777
12844
  ]
12778
12845
  }
12779
12846
  ),
@@ -12808,7 +12875,7 @@ var CustomizationContent = ({
12808
12875
  errors.twitter && /* @__PURE__ */ jsxRuntime.jsx(
12809
12876
  react.Text,
12810
12877
  {
12811
- color: "red.500",
12878
+ color: "#ef4444",
12812
12879
  fontSize: "sm",
12813
12880
  mt: 1,
12814
12881
  children: errors.twitter.message
@@ -12844,7 +12911,7 @@ var CustomizationContent = ({
12844
12911
  errors.website && /* @__PURE__ */ jsxRuntime.jsx(
12845
12912
  react.Text,
12846
12913
  {
12847
- color: "red.500",
12914
+ color: "#ef4444",
12848
12915
  fontSize: "sm",
12849
12916
  mt: 1,
12850
12917
  children: errors.website.message
@@ -12880,7 +12947,7 @@ var CustomizationContent = ({
12880
12947
  errors.email && /* @__PURE__ */ jsxRuntime.jsx(
12881
12948
  react.Text,
12882
12949
  {
12883
- color: "red.500",
12950
+ color: "#ef4444",
12884
12951
  fontSize: "sm",
12885
12952
  mt: 1,
12886
12953
  children: errors.email.message
@@ -13016,14 +13083,14 @@ var CustomizationSummaryContent = ({
13016
13083
  react.Text,
13017
13084
  {
13018
13085
  fontSize: "sm",
13019
- color: isDark ? "whiteAlpha.600" : "gray.500",
13086
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
13020
13087
  children: label
13021
13088
  }
13022
13089
  ),
13023
13090
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "md", children: value })
13024
13091
  ] });
13025
13092
  };
13026
- React6.useEffect(() => {
13093
+ React10.useEffect(() => {
13027
13094
  if (upgradeRequired) {
13028
13095
  openUpgradeSmartAccountModal();
13029
13096
  }
@@ -13046,7 +13113,7 @@ var CustomizationSummaryContent = ({
13046
13113
  react.Text,
13047
13114
  {
13048
13115
  fontSize: "sm",
13049
- color: isDark ? "whiteAlpha.600" : "gray.500",
13116
+ color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
13050
13117
  children: t("Profile Image")
13051
13118
  }
13052
13119
  ),
@@ -13262,7 +13329,7 @@ var AssetsContent = ({ setCurrentContent }) => {
13262
13329
  const { allowCustomTokens, darkMode } = useVeChainKitConfig();
13263
13330
  const { customTokens } = useCustomTokens();
13264
13331
  const { t } = reactI18next.useTranslation();
13265
- const [searchQuery, setSearchQuery] = React6.useState("");
13332
+ const [searchQuery, setSearchQuery] = React10.useState("");
13266
13333
  const handleTokenSelect = (token) => {
13267
13334
  setCurrentContent({
13268
13335
  type: "send-token",
@@ -13308,7 +13375,7 @@ var AssetsContent = ({ setCurrentContent }) => {
13308
13375
  react.Input,
13309
13376
  {
13310
13377
  placeholder: "Search token",
13311
- bg: darkMode ? "#1a1a1a" : "gray.50",
13378
+ bg: darkMode ? "#00000038" : "gray.50",
13312
13379
  borderRadius: "xl",
13313
13380
  height: "56px",
13314
13381
  pl: 12,
@@ -13421,7 +13488,7 @@ var ManageCustomTokenContent = ({
13421
13488
  fontWeight: "medium"
13422
13489
  }
13423
13490
  ),
13424
- errors.newTokenAddress && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "red.500", fontSize: "sm", children: errors.newTokenAddress.message })
13491
+ errors.newTokenAddress && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: "#ef4444", fontSize: "sm", children: errors.newTokenAddress.message })
13425
13492
  ] }) })
13426
13493
  }
13427
13494
  ),
@@ -13446,7 +13513,7 @@ var ManageCustomTokenContent = ({
13446
13513
  /* @__PURE__ */ jsxRuntime.jsx(
13447
13514
  react.Image,
13448
13515
  {
13449
- src: chunkCPG25VOQ_cjs.TOKEN_LOGOS[token?.symbol],
13516
+ src: chunkRUIC653T_cjs.TOKEN_LOGOS[token?.symbol],
13450
13517
  alt: `${token.symbol} logo`,
13451
13518
  boxSize: "20px",
13452
13519
  borderRadius: "full",
@@ -13476,7 +13543,7 @@ var ManageCustomTokenContent = ({
13476
13543
  ),
13477
13544
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "medium", children: token.symbol ?? "Unknown" })
13478
13545
  ] }),
13479
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { opacity: 0.7, children: chunkCPG25VOQ_cjs.humanAddress(
13546
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { opacity: 0.7, children: chunkRUIC653T_cjs.humanAddress(
13480
13547
  token.address ?? "",
13481
13548
  4,
13482
13549
  4
@@ -13525,7 +13592,7 @@ var BridgeContent = ({ setCurrentContent }) => {
13525
13592
  /* @__PURE__ */ jsxRuntime.jsx(
13526
13593
  react.Image,
13527
13594
  {
13528
- src: isDark ? "https://app.vechain.energy/assets/logo-dark.svg" : "https://app.vechain.energy/assets/logo-light.svg",
13595
+ src: isDark ? "https://static.vechain.energy/logo-dark.svg" : "https://static.vechain.energy/logo-light.svg",
13529
13596
  alt: "bridge token",
13530
13597
  w: "200px",
13531
13598
  h: "200px",
@@ -13572,7 +13639,7 @@ var ConnectionDetailsContent = ({ onGoBack }) => {
13572
13639
  /* @__PURE__ */ jsxRuntime.jsxs(react.ModalBody, { w: "full", children: [
13573
13640
  connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsxRuntime.jsx(CrossAppConnectionCard, { connectionCache }),
13574
13641
  connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsxRuntime.jsx(PrivyConnectionCard, {}),
13575
- connection.isConnectedWithDappKit && /* @__PURE__ */ jsxRuntime.jsx(react.VStack, { align: "stretch", textAlign: "center", mt: 5, children: /* @__PURE__ */ jsxRuntime.jsx(DappKitConnectionCard, {}) }),
13642
+ connection.isConnectedWithDappKit && /* @__PURE__ */ jsxRuntime.jsx(DappKitConnectionCard, {}),
13576
13643
  connection.isConnectedWithPrivy && /* @__PURE__ */ jsxRuntime.jsx(WalletSecuredBy, {})
13577
13644
  ] }),
13578
13645
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalFooter, { pt: 0 })
@@ -13622,10 +13689,10 @@ var ConfirmUnlink = ({
13622
13689
  var PrivyLinkedAccounts = ({ onBack }) => {
13623
13690
  const { t } = reactI18next.useTranslation();
13624
13691
  const { privy, dappKit } = useVeChainKitConfig();
13625
- const [unlinkingAccount, setUnlinkingAccount] = React6.useState(null);
13626
- const [showLinkOptions, setShowLinkOptions] = React6.useState(false);
13627
- const [showFullText, setShowFullText] = React6.useState(false);
13628
- const [isLoadingUnlink, setIsLoadingUnlink] = React6.useState(false);
13692
+ const [unlinkingAccount, setUnlinkingAccount] = React10.useState(null);
13693
+ const [showLinkOptions, setShowLinkOptions] = React10.useState(false);
13694
+ const [showFullText, setShowFullText] = React10.useState(false);
13695
+ const [isLoadingUnlink, setIsLoadingUnlink] = React10.useState(false);
13629
13696
  const {
13630
13697
  user,
13631
13698
  linkEmail,
@@ -13657,7 +13724,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
13657
13724
  unlinkDiscord,
13658
13725
  linkWallet
13659
13726
  } = reactAuth.usePrivy();
13660
- const canLinkWallets = React6.useMemo(() => {
13727
+ const canLinkWallets = React10.useMemo(() => {
13661
13728
  const privyWallets = privy?.loginMethods?.filter(
13662
13729
  (method35) => [
13663
13730
  "rabby_wallet",
@@ -13777,7 +13844,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
13777
13844
  case "phone":
13778
13845
  return account.number;
13779
13846
  case "wallet":
13780
- return `${chunkCPG25VOQ_cjs.humanAddress(account.address)} - ${account.walletClientType}`;
13847
+ return `${chunkRUIC653T_cjs.humanAddress(account.address)} - ${account.walletClientType}`;
13781
13848
  default:
13782
13849
  return "";
13783
13850
  }
@@ -14189,9 +14256,9 @@ var NotificationsContent = ({ setCurrentContent }) => {
14189
14256
  clearAllNotifications,
14190
14257
  markAsRead
14191
14258
  } = useNotifications();
14192
- const [isArchiveView, setIsArchiveView] = React6.useState(false);
14193
- const [notifications, setNotifications] = React6.useState(getNotifications());
14194
- const [archivedNotifications, setArchivedNotifications] = React6.useState(
14259
+ const [isArchiveView, setIsArchiveView] = React10.useState(false);
14260
+ const [notifications, setNotifications] = React10.useState(getNotifications());
14261
+ const [archivedNotifications, setArchivedNotifications] = React10.useState(
14195
14262
  getArchivedNotifications()
14196
14263
  );
14197
14264
  const handleClearAll = () => {
@@ -14276,6 +14343,7 @@ var NotificationsContent = ({ setCurrentContent }) => {
14276
14343
  var SharedAppCard = ({
14277
14344
  name,
14278
14345
  imageUrl,
14346
+ logoComponent,
14279
14347
  onClick,
14280
14348
  size = "md"
14281
14349
  }) => {
@@ -14286,12 +14354,12 @@ var SharedAppCard = ({
14286
14354
  _hover: { opacity: 0.8 },
14287
14355
  cursor: "pointer",
14288
14356
  onClick,
14289
- children: /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 3, alignItems: "center", justifyContent: "center", children: [
14290
- imageUrl && /* @__PURE__ */ jsxRuntime.jsx(
14357
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 2, h: "100%", justifyContent: "space-between", children: [
14358
+ logoComponent ? logoComponent : imageUrl && /* @__PURE__ */ jsxRuntime.jsx(
14291
14359
  react.Image,
14292
14360
  {
14293
14361
  src: imageUrl,
14294
- fallbackSrc: chunkCPG25VOQ_cjs.notFoundImage,
14362
+ fallbackSrc: chunkRUIC653T_cjs.notFoundImage,
14295
14363
  alt: name,
14296
14364
  height: "90px",
14297
14365
  objectFit: "contain",
@@ -14323,6 +14391,7 @@ var AppComponent = ({ xApp, setCurrentContent }) => {
14323
14391
  {
14324
14392
  isLoaded: !appMetadataLoading && !isLogoLoading,
14325
14393
  borderRadius: "md",
14394
+ height: "100%",
14326
14395
  children: /* @__PURE__ */ jsxRuntime.jsx(
14327
14396
  SharedAppCard,
14328
14397
  {
@@ -14351,6 +14420,7 @@ var CustomAppComponent = ({
14351
14420
  image,
14352
14421
  url,
14353
14422
  description,
14423
+ logoComponent,
14354
14424
  setCurrentContent
14355
14425
  }) => {
14356
14426
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -14365,9 +14435,11 @@ var CustomAppComponent = ({
14365
14435
  name,
14366
14436
  image,
14367
14437
  url,
14368
- description
14438
+ description,
14439
+ logoComponent
14369
14440
  }
14370
- })
14441
+ }),
14442
+ ...logoComponent && { logoComponent }
14371
14443
  }
14372
14444
  );
14373
14445
  };
@@ -14387,7 +14459,7 @@ var ShortcutsSection = ({}) => {
14387
14459
  react.Image,
14388
14460
  {
14389
14461
  src: shortcut.image,
14390
- fallbackSrc: chunkCPG25VOQ_cjs.notFoundImage,
14462
+ fallbackSrc: chunkRUIC653T_cjs.notFoundImage,
14391
14463
  alt: shortcut.name,
14392
14464
  objectFit: "contain",
14393
14465
  rounded: "full"
@@ -14444,7 +14516,7 @@ var DEFAULT_APPS = [
14444
14516
  var ExploreEcosystemContent = ({ setCurrentContent }) => {
14445
14517
  const { t } = reactI18next.useTranslation();
14446
14518
  const { darkMode: isDark, network } = useVeChainKitConfig();
14447
- const [searchQuery, setSearchQuery] = React6.useState("");
14519
+ const [searchQuery, setSearchQuery] = React10.useState("");
14448
14520
  const { data: currentRoundId } = useCurrentAllocationsRoundId();
14449
14521
  const { data: vbdApps } = useMostVotedAppsInRound(
14450
14522
  currentRoundId ? (parseInt(currentRoundId) - 1).toString() : "1"
@@ -14455,7 +14527,17 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
14455
14527
  ) : [];
14456
14528
  const filteredDefaultApps = DEFAULT_APPS.filter(
14457
14529
  (dapp) => dapp.name.toLowerCase().includes(searchQuery.toLowerCase())
14458
- );
14530
+ ).map((dapp) => {
14531
+ if (dapp.logoComponent) {
14532
+ return {
14533
+ ...dapp,
14534
+ logoComponent: React10__default.default.cloneElement(dapp.logoComponent, {
14535
+ isDark
14536
+ })
14537
+ };
14538
+ }
14539
+ return dapp;
14540
+ });
14459
14541
  const { shortcuts } = useEcosystemShortcuts();
14460
14542
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
14461
14543
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -14479,10 +14561,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
14479
14561
  /* @__PURE__ */ jsxRuntime.jsx(
14480
14562
  react.Input,
14481
14563
  {
14482
- placeholder: t("Search dApps"),
14564
+ placeholder: t("Search Apps"),
14483
14565
  value: searchQuery,
14484
14566
  onChange: (e) => setSearchQuery(e.target.value),
14485
- bg: isDark ? "#1a1a1a" : "gray.50",
14567
+ bg: isDark ? "#00000038" : "gray.50",
14486
14568
  borderRadius: "xl",
14487
14569
  height: "56px",
14488
14570
  pl: 12
@@ -14503,7 +14585,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
14503
14585
  image: dapp.logo,
14504
14586
  url: dapp.external_url,
14505
14587
  setCurrentContent,
14506
- description: dapp.description
14588
+ description: dapp.description,
14589
+ ...dapp.logoComponent && {
14590
+ logoComponent: dapp.logoComponent
14591
+ }
14507
14592
  }
14508
14593
  ) }, dapp.name)),
14509
14594
  filteredDapps.map((dapp) => /* @__PURE__ */ jsxRuntime.jsx(react.GridItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -14547,7 +14632,8 @@ var AppOverviewContent = ({
14547
14632
  name,
14548
14633
  image,
14549
14634
  url,
14550
- description
14635
+ description,
14636
+ logoComponent
14551
14637
  }) => {
14552
14638
  const { t } = reactI18next.useTranslation();
14553
14639
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
@@ -14562,7 +14648,7 @@ var AppOverviewContent = ({
14562
14648
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
14563
14649
  ] }),
14564
14650
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "center", w: "full", children: [
14565
- /* @__PURE__ */ jsxRuntime.jsx(
14651
+ logoComponent ? logoComponent : /* @__PURE__ */ jsxRuntime.jsx(
14566
14652
  react.Image,
14567
14653
  {
14568
14654
  src: image,
@@ -14699,7 +14785,7 @@ var TransactionModalContent = ({
14699
14785
  }) => {
14700
14786
  const { t } = reactI18next.useTranslation();
14701
14787
  const { network } = useVeChainKitConfig();
14702
- const errorMessage = React6.useMemo(() => {
14788
+ const errorMessage = React10.useMemo(() => {
14703
14789
  if (!txError) return null;
14704
14790
  return txError.reason || t("Something went wrong. Please try again.");
14705
14791
  }, [txError, t]);
@@ -14724,7 +14810,7 @@ var TransactionModalContent = ({
14724
14810
  react.Icon,
14725
14811
  {
14726
14812
  as: md.MdOutlineErrorOutline,
14727
- color: "red",
14813
+ color: "#ef4444",
14728
14814
  fontSize: "100px"
14729
14815
  }
14730
14816
  ),
@@ -14737,7 +14823,7 @@ var TransactionModalContent = ({
14737
14823
  react.Icon,
14738
14824
  {
14739
14825
  as: io.IoIosCheckmarkCircleOutline,
14740
- color: "#00ff45de",
14826
+ color: "#22c55e",
14741
14827
  fontSize: "100px"
14742
14828
  }
14743
14829
  ),
@@ -14760,7 +14846,7 @@ var TransactionModalContent = ({
14760
14846
  }
14761
14847
  };
14762
14848
  const statusConfig = getStatusConfig();
14763
- const socialDescription = `${chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`;
14849
+ const socialDescription = `${chunkRUIC653T_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`;
14764
14850
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
14765
14851
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
14766
14852
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: statusConfig.title }),
@@ -14772,22 +14858,17 @@ var TransactionModalContent = ({
14772
14858
  )
14773
14859
  ] }),
14774
14860
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "center", p: 6, spacing: 3, children: [
14775
- statusConfig.icon && /* @__PURE__ */ jsxRuntime.jsx(
14776
- framerMotion.motion.div,
14777
- {
14778
- transition: {
14779
- duration: 4,
14780
- ease: "easeInOut",
14781
- repeat: Infinity
14782
- },
14783
- animate: {
14784
- scale: [1, 1.1, 1]
14785
- },
14786
- children: statusConfig.icon
14787
- }
14788
- ),
14789
- status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { mt: 2, children: [
14790
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", children: t("Share on") }),
14861
+ statusConfig.icon,
14862
+ status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { mt: 2, spacing: 3, children: [
14863
+ /* @__PURE__ */ jsxRuntime.jsx(
14864
+ react.Text,
14865
+ {
14866
+ fontSize: "sm",
14867
+ fontWeight: "bold",
14868
+ opacity: 0.5,
14869
+ children: t("Share on")
14870
+ }
14871
+ ),
14791
14872
  /* @__PURE__ */ jsxRuntime.jsx(
14792
14873
  ShareButtons,
14793
14874
  {
@@ -14843,7 +14924,7 @@ var TransactionModalContent = ({
14843
14924
  uiConfig?.showExplorerButton && txReceipt?.meta.txID && /* @__PURE__ */ jsxRuntime.jsx(
14844
14925
  react.Link,
14845
14926
  {
14846
- href: `${chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
14927
+ href: `${chunkRUIC653T_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
14847
14928
  isExternal: true,
14848
14929
  opacity: 0.5,
14849
14930
  fontSize: "14px",
@@ -14906,7 +14987,7 @@ var SuccessfulOperationContent = ({
14906
14987
  }) => {
14907
14988
  const { t } = reactI18next.useTranslation();
14908
14989
  const { network } = useVeChainKitConfig();
14909
- const explorerUrl = chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl;
14990
+ const explorerUrl = chunkRUIC653T_cjs.getConfig(network.type).explorerUrl;
14910
14991
  const socialDescription = `${explorerUrl}/${txId}`;
14911
14992
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
14912
14993
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -14915,29 +14996,24 @@ var SuccessfulOperationContent = ({
14915
14996
  ] }),
14916
14997
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { align: "center", p: 6, spacing: 3, children: [
14917
14998
  /* @__PURE__ */ jsxRuntime.jsx(
14918
- framerMotion.motion.div,
14999
+ react.Icon,
14919
15000
  {
14920
- transition: {
14921
- duration: 4,
14922
- ease: "easeInOut",
14923
- repeat: Infinity
14924
- },
14925
- animate: {
14926
- scale: [1, 1.1, 1]
14927
- },
14928
- children: /* @__PURE__ */ jsxRuntime.jsx(
14929
- react.Icon,
14930
- {
14931
- as: io.IoIosCheckmarkCircleOutline,
14932
- fontSize: "100px",
14933
- color: "#00ff45de"
14934
- }
14935
- )
15001
+ as: io.IoIosCheckmarkCircleOutline,
15002
+ fontSize: "100px",
15003
+ color: "#22c55e"
14936
15004
  }
14937
15005
  ),
14938
15006
  description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", textAlign: "center", children: description }),
14939
- showSocialButtons && txId && /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { mt: 2, children: [
14940
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", children: t("Share on") }),
15007
+ showSocialButtons && txId && /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { mt: 2, spacing: 3, children: [
15008
+ /* @__PURE__ */ jsxRuntime.jsx(
15009
+ react.Text,
15010
+ {
15011
+ fontSize: "sm",
15012
+ fontWeight: "bold",
15013
+ opacity: 0.5,
15014
+ children: t("Share on")
15015
+ }
15016
+ ),
14941
15017
  /* @__PURE__ */ jsxRuntime.jsx(
14942
15018
  ShareButtons,
14943
15019
  {
@@ -14993,7 +15069,7 @@ var AccountModal = ({
14993
15069
  accountModalContent: currentContent,
14994
15070
  setAccountModalContent: setCurrentContent
14995
15071
  } = useModal();
14996
- React6.useEffect(() => {
15072
+ React10.useEffect(() => {
14997
15073
  if (isOpen && initialContent) {
14998
15074
  setCurrentContent(initialContent);
14999
15075
  }
@@ -15152,8 +15228,8 @@ var AccountModal = ({
15152
15228
  );
15153
15229
  };
15154
15230
  var ConnectModal = ({ isOpen, onClose }) => {
15155
- const [currentContent, setCurrentContent] = React6.useState("main");
15156
- React6.useEffect(() => {
15231
+ const [currentContent, setCurrentContent] = React10.useState("main");
15232
+ React10.useEffect(() => {
15157
15233
  if (isOpen) {
15158
15234
  setCurrentContent("main");
15159
15235
  }
@@ -15251,7 +15327,7 @@ var WalletDisplay = ({ variant }) => {
15251
15327
  return null;
15252
15328
  }
15253
15329
  if (variant === "iconAndDomain") {
15254
- return account.domain ? /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: account.domain }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkCPG25VOQ_cjs.humanAddress(account.address ?? "", 4, 4) });
15330
+ return account.domain ? /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: account.domain }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkRUIC653T_cjs.humanAddress(account.address ?? "", 4, 4) });
15255
15331
  }
15256
15332
  if (variant === "iconDomainAndAssets") {
15257
15333
  return /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 2, children: [
@@ -15262,7 +15338,7 @@ var WalletDisplay = ({ variant }) => {
15262
15338
  {
15263
15339
  fontSize: account.domain ? "xs" : "sm",
15264
15340
  opacity: account.domain ? 0.5 : 1,
15265
- children: chunkCPG25VOQ_cjs.humanAddress(account.address ?? "", 4, 4)
15341
+ children: chunkRUIC653T_cjs.humanAddress(account.address ?? "", 4, 4)
15266
15342
  }
15267
15343
  )
15268
15344
  ] }),
@@ -15283,7 +15359,7 @@ var WalletDisplay = ({ variant }) => {
15283
15359
  {
15284
15360
  fontSize: account.domain ? "xs" : "sm",
15285
15361
  opacity: account.domain ? 0.5 : 1,
15286
- children: chunkCPG25VOQ_cjs.humanAddress(account.address ?? "", 4, 4)
15362
+ children: chunkRUIC653T_cjs.humanAddress(account.address ?? "", 4, 4)
15287
15363
  }
15288
15364
  )
15289
15365
  ] });
@@ -15438,8 +15514,8 @@ var TransactionToastContent = ({
15438
15514
  }) => {
15439
15515
  const { t } = reactI18next.useTranslation();
15440
15516
  const { network } = useVeChainKitConfig();
15441
- const explorerUrl = chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl;
15442
- const errorMessage = React6.useMemo(() => {
15517
+ const explorerUrl = chunkRUIC653T_cjs.getConfig(network.type).explorerUrl;
15518
+ const errorMessage = React10.useMemo(() => {
15443
15519
  if (!txError) return null;
15444
15520
  return txError.reason || t("Something went wrong. Please try again.");
15445
15521
  }, [txError, t]);
@@ -15624,8 +15700,8 @@ var LoadingContent = ({
15624
15700
  onTryAgain
15625
15701
  }) => {
15626
15702
  const { t } = reactI18next.useTranslation();
15627
- const [showTimeout, setShowTimeout] = React6__default.default.useState(false);
15628
- React6__default.default.useEffect(() => {
15703
+ const [showTimeout, setShowTimeout] = React10__default.default.useState(false);
15704
+ React10__default.default.useEffect(() => {
15629
15705
  const timer = setTimeout(() => {
15630
15706
  setShowTimeout(true);
15631
15707
  }, 7e3);
@@ -15703,7 +15779,7 @@ var ErrorContent = ({
15703
15779
  react.Icon,
15704
15780
  {
15705
15781
  as: md.MdOutlineErrorOutline,
15706
- color: "red",
15782
+ color: "#ef4444",
15707
15783
  fontSize: "60px",
15708
15784
  opacity: 0.5
15709
15785
  }
@@ -15723,8 +15799,8 @@ var ErrorContent = ({
15723
15799
  var EcosystemContent = ({ onClose, appsInfo, isLoading }) => {
15724
15800
  const { t } = reactI18next.useTranslation();
15725
15801
  const { darkMode: isDark } = useVeChainKitConfig();
15726
- const [loginError, setLoginError] = React6.useState();
15727
- const [selectedApp, setSelectedApp] = React6.useState();
15802
+ const [loginError, setLoginError] = React10.useState();
15803
+ const [selectedApp, setSelectedApp] = React10.useState();
15728
15804
  const loginLoadingModal = react.useDisclosure();
15729
15805
  const { setConnectionCache } = useCrossAppConnectionCache();
15730
15806
  const { login: loginWithCrossApp } = usePrivyCrossAppSdk();
@@ -15889,8 +15965,8 @@ var ProfileCard = ({
15889
15965
  const activeAccountTextRecords = useGetTextRecords(
15890
15966
  activeAccountDomain?.data?.domain
15891
15967
  );
15892
- const baseBackgroundColor = isDark ? "whiteAlpha.100" : "#00000005";
15893
- const headerImageSvg = chunkCPG25VOQ_cjs.getPicassoImage(address);
15968
+ const baseBackgroundColor = isDark ? "#1e1e21" : "#00000005";
15969
+ const headerImageSvg = chunkRUIC653T_cjs.getPicassoImage(address);
15894
15970
  const isConnectedAccount = address === account?.address;
15895
15971
  const hasLinks = activeAccountTextRecords?.data?.url || activeAccountTextRecords?.data?.["com.x"] || activeAccountTextRecords?.data?.email;
15896
15972
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15928,10 +16004,10 @@ var ProfileCard = ({
15928
16004
  wallet: {
15929
16005
  address,
15930
16006
  domain: activeAccountDomain?.data?.domain,
15931
- image: chunkCPG25VOQ_cjs.convertUriToUrl(
16007
+ image: chunkRUIC653T_cjs.convertUriToUrl(
15932
16008
  activeAccountAvatar?.data ?? "",
15933
16009
  network.type
15934
- ) ?? chunkCPG25VOQ_cjs.getPicassoImage(address),
16010
+ ) ?? chunkRUIC653T_cjs.getPicassoImage(address),
15935
16011
  isLoadingMetadata: activeAccountAvatar?.isLoading || activeAccountDomain?.isLoading || activeAccountTextRecords?.isLoading,
15936
16012
  metadata: activeAccountTextRecords?.data
15937
16013
  },
@@ -15944,7 +16020,7 @@ var ProfileCard = ({
15944
16020
  )
15945
16021
  }
15946
16022
  ),
15947
- /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { pt: "14", pb: "6", backgroundColor: "none", border: "none", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { w: "full", spacing: 2, children: [
16023
+ /* @__PURE__ */ jsxRuntime.jsx(react.CardBody, { mt: 10, backgroundColor: "none", border: "none", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { w: "full", spacing: 2, children: [
15948
16024
  showDisplayName && activeAccountTextRecords?.data?.display && /* @__PURE__ */ jsxRuntime.jsx(
15949
16025
  react.Text,
15950
16026
  {
@@ -15998,10 +16074,10 @@ var ProfileCard = ({
15998
16074
  wallet: {
15999
16075
  address,
16000
16076
  domain: activeAccountDomain?.data?.domain,
16001
- image: chunkCPG25VOQ_cjs.convertUriToUrl(
16077
+ image: chunkRUIC653T_cjs.convertUriToUrl(
16002
16078
  activeAccountAvatar?.data ?? "",
16003
16079
  network.type
16004
- ) ?? chunkCPG25VOQ_cjs.getPicassoImage(address),
16080
+ ) ?? chunkRUIC653T_cjs.getPicassoImage(address),
16005
16081
  isLoadingMetadata: activeAccountAvatar?.isLoading || activeAccountDomain?.isLoading || activeAccountTextRecords?.isLoading,
16006
16082
  metadata: activeAccountTextRecords?.data
16007
16083
  },
@@ -16009,7 +16085,7 @@ var ProfileCard = ({
16009
16085
  }
16010
16086
  )
16011
16087
  ] }) }),
16012
- isConnectedAccount && showEdit && /* @__PURE__ */ jsxRuntime.jsx(react.CardFooter, { pt: 0, justify: "space-between", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { w: "full", justify: "space-between", spacing: 4, children: [
16088
+ isConnectedAccount && showEdit && /* @__PURE__ */ jsxRuntime.jsx(react.CardFooter, { justify: "space-between", children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { w: "full", justify: "space-between", spacing: 4, children: [
16013
16089
  /* @__PURE__ */ jsxRuntime.jsx(react.Divider, {}),
16014
16090
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { w: "full", justify: "space-between", children: [
16015
16091
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -16053,7 +16129,7 @@ var SuccessfulOperationContent2 = ({
16053
16129
  }) => {
16054
16130
  const { t } = reactI18next.useTranslation();
16055
16131
  const { network } = useVeChainKitConfig();
16056
- const explorerUrl = chunkCPG25VOQ_cjs.getConfig(network.type).explorerUrl;
16132
+ const explorerUrl = chunkRUIC653T_cjs.getConfig(network.type).explorerUrl;
16057
16133
  const socialDescription = `${explorerUrl}/${txId}`;
16058
16134
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
16059
16135
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -16246,10 +16322,10 @@ var UpgradeSmartAccountContent2 = ({
16246
16322
  ] });
16247
16323
  };
16248
16324
  var UpgradeSmartAccountModal = ({ isOpen, onClose }) => {
16249
- const [currentContent, setCurrentContent] = React6.useState(
16325
+ const [currentContent, setCurrentContent] = React10.useState(
16250
16326
  "upgrade-smart-account"
16251
16327
  );
16252
- React6.useEffect(() => {
16328
+ React10.useEffect(() => {
16253
16329
  if (isOpen) {
16254
16330
  setCurrentContent("upgrade-smart-account");
16255
16331
  }
@@ -16281,18 +16357,18 @@ var UpgradeSmartAccountModal = ({ isOpen, onClose }) => {
16281
16357
  }
16282
16358
  );
16283
16359
  };
16284
- var ModalContext = React6.createContext(null);
16360
+ var ModalContext = React10.createContext(null);
16285
16361
  var useModal = () => {
16286
- const context = React6.useContext(ModalContext);
16362
+ const context = React10.useContext(ModalContext);
16287
16363
  if (!context) {
16288
16364
  throw new Error("useModal must be used within ModalProvider");
16289
16365
  }
16290
16366
  return context;
16291
16367
  };
16292
16368
  var ModalProvider = ({ children }) => {
16293
- const [isConnectModalOpen, setIsConnectModalOpen] = React6.useState(false);
16369
+ const [isConnectModalOpen, setIsConnectModalOpen] = React10.useState(false);
16294
16370
  const { setSource, connect } = dappKitReact.useWallet();
16295
- const openConnectModal = React6.useCallback(() => {
16371
+ const openConnectModal = React10.useCallback(() => {
16296
16372
  if (window.vechain && window.vechain.isInAppBrowser) {
16297
16373
  setSource("veworld");
16298
16374
  connect();
@@ -16300,44 +16376,47 @@ var ModalProvider = ({ children }) => {
16300
16376
  setIsConnectModalOpen(true);
16301
16377
  }
16302
16378
  }, []);
16303
- const closeConnectModal = React6.useCallback(
16379
+ const closeConnectModal = React10.useCallback(
16304
16380
  () => setIsConnectModalOpen(false),
16305
16381
  []
16306
16382
  );
16307
- const [isAccountModalOpen, setIsAccountModalOpen] = React6.useState(false);
16308
- const openAccountModal = React6.useCallback(() => setIsAccountModalOpen(true), []);
16309
- const closeAccountModal = React6.useCallback(
16383
+ const [isAccountModalOpen, setIsAccountModalOpen] = React10.useState(false);
16384
+ const openAccountModal = React10.useCallback(() => {
16385
+ setAccountModalContent("main");
16386
+ setIsAccountModalOpen(true);
16387
+ }, []);
16388
+ const closeAccountModal = React10.useCallback(
16310
16389
  () => setIsAccountModalOpen(false),
16311
16390
  []
16312
16391
  );
16313
- const [isTransactionModalOpen, setIsTransactionModalOpen] = React6.useState(false);
16314
- const openTransactionModal = React6.useCallback(
16392
+ const [isTransactionModalOpen, setIsTransactionModalOpen] = React10.useState(false);
16393
+ const openTransactionModal = React10.useCallback(
16315
16394
  () => setIsTransactionModalOpen(true),
16316
16395
  []
16317
16396
  );
16318
- const closeTransactionModal = React6.useCallback(
16397
+ const closeTransactionModal = React10.useCallback(
16319
16398
  () => setIsTransactionModalOpen(false),
16320
16399
  []
16321
16400
  );
16322
- const [isTransactionToastOpen, setIsTransactionToastOpen] = React6.useState(false);
16323
- const openTransactionToast = React6.useCallback(
16401
+ const [isTransactionToastOpen, setIsTransactionToastOpen] = React10.useState(false);
16402
+ const openTransactionToast = React10.useCallback(
16324
16403
  () => setIsTransactionToastOpen(true),
16325
16404
  []
16326
16405
  );
16327
- const closeTransactionToast = React6.useCallback(
16406
+ const closeTransactionToast = React10.useCallback(
16328
16407
  () => setIsTransactionToastOpen(false),
16329
16408
  []
16330
16409
  );
16331
- const [isUpgradeSmartAccountModalOpen, setIsUpgradeSmartAccountModalOpen] = React6.useState(false);
16332
- const openUpgradeSmartAccountModal = React6.useCallback(
16410
+ const [isUpgradeSmartAccountModalOpen, setIsUpgradeSmartAccountModalOpen] = React10.useState(false);
16411
+ const openUpgradeSmartAccountModal = React10.useCallback(
16333
16412
  () => setIsUpgradeSmartAccountModalOpen(true),
16334
16413
  []
16335
16414
  );
16336
- const closeUpgradeSmartAccountModal = React6.useCallback(
16415
+ const closeUpgradeSmartAccountModal = React10.useCallback(
16337
16416
  () => setIsUpgradeSmartAccountModalOpen(false),
16338
16417
  []
16339
16418
  );
16340
- const [accountModalContent, setAccountModalContent] = React6.useState("main");
16419
+ const [accountModalContent, setAccountModalContent] = React10.useState("main");
16341
16420
  return /* @__PURE__ */ jsxRuntime.jsxs(
16342
16421
  ModalContext.Provider,
16343
16422
  {
@@ -16654,7 +16733,7 @@ var useReceiveModal = () => {
16654
16733
  var ReceiveModalProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16655
16734
  var useLoginModalContent = () => {
16656
16735
  const { privy, loginMethods } = useVeChainKitConfig();
16657
- const isVeChainApp = privy?.appId === chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID;
16736
+ const isVeChainApp = privy?.appId === chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID;
16658
16737
  const isLoginMethodEnabled = (method35) => {
16659
16738
  if (!loginMethods) return true;
16660
16739
  if (Array.isArray(method35)) {
@@ -16664,31 +16743,31 @@ var useLoginModalContent = () => {
16664
16743
  }
16665
16744
  return loginMethods.some((lm) => lm.method === method35);
16666
16745
  };
16667
- const showEcosystemLogin = React6.useMemo(() => {
16746
+ const showEcosystemLogin = React10.useMemo(() => {
16668
16747
  if (!loginMethods) return true;
16669
16748
  return loginMethods.length === 0 || isLoginMethodEnabled("ecosystem");
16670
16749
  }, [loginMethods]);
16671
- const showLoginWithVeChain = React6.useMemo(
16750
+ const showLoginWithVeChain = React10.useMemo(
16672
16751
  () => isLoginMethodEnabled("vechain"),
16673
16752
  [loginMethods]
16674
16753
  );
16675
- const showLoginWithDappKit = React6.useMemo(
16754
+ const showLoginWithDappKit = React10.useMemo(
16676
16755
  () => isLoginMethodEnabled("dappkit"),
16677
16756
  [loginMethods]
16678
16757
  );
16679
- const showLoginWithPasskey = React6.useMemo(
16758
+ const showLoginWithPasskey = React10.useMemo(
16680
16759
  () => isLoginMethodEnabled("passkey"),
16681
16760
  [loginMethods]
16682
16761
  );
16683
- const showLoginWithEmail = React6.useMemo(
16762
+ const showLoginWithEmail = React10.useMemo(
16684
16763
  () => isLoginMethodEnabled("email"),
16685
16764
  [loginMethods]
16686
16765
  );
16687
- const showLoginWithGoogle = React6.useMemo(
16766
+ const showLoginWithGoogle = React10.useMemo(
16688
16767
  () => isLoginMethodEnabled("google"),
16689
16768
  [loginMethods]
16690
16769
  );
16691
- const showMoreLogin = React6.useMemo(
16770
+ const showMoreLogin = React10.useMemo(
16692
16771
  () => isLoginMethodEnabled("more"),
16693
16772
  [loginMethods]
16694
16773
  );
@@ -16744,8 +16823,8 @@ var useTransferERC20 = ({
16744
16823
  }) => {
16745
16824
  const queryClient = reactQuery.useQueryClient();
16746
16825
  const { refresh } = useRefreshBalances();
16747
- const buildClauses = React6.useCallback(async () => {
16748
- if (!receiverAddress || !amount || !chunkCPG25VOQ_cjs.isValidAddress(receiverAddress))
16826
+ const buildClauses = React10.useCallback(async () => {
16827
+ if (!receiverAddress || !amount || !chunkRUIC653T_cjs.isValidAddress(receiverAddress))
16749
16828
  throw new Error("Invalid receiver address or amount");
16750
16829
  const clausesArray = [];
16751
16830
  clausesArray.push({
@@ -16760,7 +16839,7 @@ var useTransferERC20 = ({
16760
16839
  });
16761
16840
  return clausesArray;
16762
16841
  }, [receiverAddress, amount]);
16763
- const handleOnSuccess = React6.useCallback(async () => {
16842
+ const handleOnSuccess = React10.useCallback(async () => {
16764
16843
  await refresh();
16765
16844
  onSuccess?.();
16766
16845
  }, [onSuccess, fromAddress, queryClient]);
@@ -16768,7 +16847,7 @@ var useTransferERC20 = ({
16768
16847
  signerAccountAddress: fromAddress,
16769
16848
  privyUIOptions: {
16770
16849
  title: "Confirm Transfer",
16771
- description: `Transfer ${amount} ${tokenName} to ${chunkCPG25VOQ_cjs.humanAddress(
16850
+ description: `Transfer ${amount} ${tokenName} to ${chunkRUIC653T_cjs.humanAddress(
16772
16851
  receiverAddress
16773
16852
  )}`,
16774
16853
  buttonText: "Sign to continue"
@@ -16793,8 +16872,8 @@ var useTransferVET = ({
16793
16872
  onError
16794
16873
  }) => {
16795
16874
  const { refresh } = useRefreshBalances();
16796
- const buildClauses = React6.useCallback(async () => {
16797
- if (!receiverAddress || !amount || !chunkCPG25VOQ_cjs.isValidAddress(receiverAddress))
16875
+ const buildClauses = React10.useCallback(async () => {
16876
+ if (!receiverAddress || !amount || !chunkRUIC653T_cjs.isValidAddress(receiverAddress))
16798
16877
  throw new Error("Invalid receiver address or amount");
16799
16878
  if (isNaN(Number(amount))) {
16800
16879
  throw new Error("Invalid amount");
@@ -16818,7 +16897,7 @@ var useTransferVET = ({
16818
16897
  signerAccountAddress: fromAddress,
16819
16898
  privyUIOptions: {
16820
16899
  title: "Confirm Transfer",
16821
- description: `Transfer ${amount} VET to ${chunkCPG25VOQ_cjs.humanAddress(
16900
+ description: `Transfer ${amount} VET to ${chunkRUIC653T_cjs.humanAddress(
16822
16901
  receiverAddress
16823
16902
  )}`,
16824
16903
  buttonText: "Sign to continue"
@@ -16839,13 +16918,13 @@ var useTransferVET = ({
16839
16918
  };
16840
16919
  };
16841
16920
  var useSignMessage2 = () => {
16842
- const [isSigningPending, setIsSigningPending] = React6.useState(false);
16843
- const [signature, setSignature] = React6.useState(null);
16844
- const [error, setError] = React6.useState(null);
16921
+ const [isSigningPending, setIsSigningPending] = React10.useState(false);
16922
+ const [signature, setSignature] = React10.useState(null);
16923
+ const [error, setError] = React10.useState(null);
16845
16924
  const { connection } = useWallet();
16846
16925
  const { vendor } = dappKitReact.useConnex();
16847
16926
  const privyWalletProvider = usePrivyWalletProvider();
16848
- const signMessage = React6.useCallback(
16927
+ const signMessage = React10.useCallback(
16849
16928
  async (message) => {
16850
16929
  setIsSigningPending(true);
16851
16930
  setError(null);
@@ -16875,7 +16954,7 @@ var useSignMessage2 = () => {
16875
16954
  },
16876
16955
  [connection, privyWalletProvider]
16877
16956
  );
16878
- const reset = React6.useCallback(() => {
16957
+ const reset = React10.useCallback(() => {
16879
16958
  setIsSigningPending(false);
16880
16959
  setSignature(null);
16881
16960
  setError(null);
@@ -16889,13 +16968,13 @@ var useSignMessage2 = () => {
16889
16968
  };
16890
16969
  };
16891
16970
  var useSignTypedData2 = () => {
16892
- const [isSigningPending, setIsSigningPending] = React6.useState(false);
16893
- const [signature, setSignature] = React6.useState(null);
16894
- const [error, setError] = React6.useState(null);
16971
+ const [isSigningPending, setIsSigningPending] = React10.useState(false);
16972
+ const [signature, setSignature] = React10.useState(null);
16973
+ const [error, setError] = React10.useState(null);
16895
16974
  const { connection } = useWallet();
16896
16975
  const privyWalletProvider = usePrivyWalletProvider();
16897
16976
  const { signTypedData: signTypedDataDappKit } = dappKitReact.useWallet();
16898
- const signTypedData = React6.useCallback(
16977
+ const signTypedData = React10.useCallback(
16899
16978
  async (data) => {
16900
16979
  setIsSigningPending(true);
16901
16980
  setError(null);
@@ -16927,7 +17006,7 @@ var useSignTypedData2 = () => {
16927
17006
  },
16928
17007
  [connection, privyWalletProvider]
16929
17008
  );
16930
- const reset = React6.useCallback(() => {
17009
+ const reset = React10.useCallback(() => {
16931
17010
  setIsSigningPending(false);
16932
17011
  setSignature(null);
16933
17012
  setError(null);
@@ -16966,7 +17045,7 @@ var useLoginWithOAuth2 = () => {
16966
17045
  };
16967
17046
  var useCrossAppConnectionCache = () => {
16968
17047
  const CACHE_KEY = "vechain_kit_cross_app_connection";
16969
- const setConnectionCache = React6.useCallback(
17048
+ const setConnectionCache = React10.useCallback(
16970
17049
  (ecosystemApp) => {
16971
17050
  const cacheData = {
16972
17051
  timestamp: Date.now(),
@@ -16976,12 +17055,12 @@ var useCrossAppConnectionCache = () => {
16976
17055
  },
16977
17056
  []
16978
17057
  );
16979
- const getConnectionCache = React6.useCallback(() => {
17058
+ const getConnectionCache = React10.useCallback(() => {
16980
17059
  const cached = localStorage.getItem(CACHE_KEY);
16981
17060
  if (!cached) return null;
16982
17061
  return JSON.parse(cached);
16983
17062
  }, []);
16984
- const clearConnectionCache = React6.useCallback(() => {
17063
+ const clearConnectionCache = React10.useCallback(() => {
16985
17064
  localStorage.removeItem(CACHE_KEY);
16986
17065
  }, []);
16987
17066
  return {
@@ -16995,14 +17074,14 @@ var useCrossAppConnectionCache = () => {
16995
17074
  var useLoginWithVeChain = () => {
16996
17075
  const { login: loginWithVeChain } = usePrivyCrossAppSdk();
16997
17076
  const { setConnectionCache } = useCrossAppConnectionCache();
16998
- const { data: appsInfo } = useFetchAppInfo([chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID]);
17077
+ const { data: appsInfo } = useFetchAppInfo([chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID]);
16999
17078
  const login = async () => {
17000
17079
  try {
17001
- await loginWithVeChain(chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID);
17080
+ await loginWithVeChain(chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID);
17002
17081
  setConnectionCache({
17003
17082
  name: "VeChain",
17004
- logoUrl: appsInfo?.[chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID]?.logo_url,
17005
- appId: chunkCPG25VOQ_cjs.VECHAIN_PRIVY_APP_ID
17083
+ logoUrl: appsInfo?.[chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID]?.logo_url,
17084
+ appId: chunkRUIC653T_cjs.VECHAIN_PRIVY_APP_ID
17006
17085
  });
17007
17086
  } catch (error) {
17008
17087
  throw handlePopupError({
@@ -17016,8 +17095,8 @@ var useLoginWithVeChain = () => {
17016
17095
  return { login };
17017
17096
  };
17018
17097
  var useIsPWA = () => {
17019
- const [isPWA, setIsPWA] = React6.useState(true);
17020
- React6.useEffect(() => {
17098
+ const [isPWA, setIsPWA] = React10.useState(true);
17099
+ React10.useEffect(() => {
17021
17100
  const checkIsPWA = () => {
17022
17101
  const isStandalone = window.matchMedia("(display-mode: standalone)").matches || window.standalone || document.referrer.includes("android-app://");
17023
17102
  setIsPWA(isStandalone);
@@ -17040,7 +17119,7 @@ var useCall = ({
17040
17119
  mapResponse
17041
17120
  }) => {
17042
17121
  const { thor } = dappKitReact.useConnex();
17043
- const queryFn = React6.useCallback(async () => {
17122
+ const queryFn = React10.useCallback(async () => {
17044
17123
  try {
17045
17124
  const functionFragment2 = contractInterface21?.getFunction(method35)?.format("json");
17046
17125
  if (!functionFragment2)
@@ -17060,11 +17139,11 @@ var useCall = ({
17060
17139
  throw error;
17061
17140
  }
17062
17141
  }, [args, contractAddress, contractInterface21, mapResponse, method35, thor]);
17063
- const queryKey = React6.useMemo(
17142
+ const queryKey = React10.useMemo(
17064
17143
  () => getCallKey({ method: method35, keyArgs: keyArgs || args }),
17065
17144
  [method35, keyArgs, args]
17066
17145
  );
17067
- const enableQuery = React6.useMemo(() => enabled, [enabled]);
17146
+ const enableQuery = React10.useMemo(() => enabled, [enabled]);
17068
17147
  return reactQuery.useQuery({
17069
17148
  queryFn,
17070
17149
  queryKey,
@@ -17075,7 +17154,7 @@ var getCallKey = ({ method: method35, keyArgs = [] }) => {
17075
17154
  return ["VECHAIN_KIT_", method35, ...keyArgs];
17076
17155
  };
17077
17156
  var useLocalStorage = (key, initialValue) => {
17078
- const [storedValue, setStoredValue] = React6.useState(() => {
17157
+ const [storedValue, setStoredValue] = React10.useState(() => {
17079
17158
  try {
17080
17159
  const item = window.localStorage.getItem(key);
17081
17160
  return item ? JSON.parse(item) : initialValue;
@@ -17084,7 +17163,7 @@ var useLocalStorage = (key, initialValue) => {
17084
17163
  return initialValue;
17085
17164
  }
17086
17165
  });
17087
- React6.useEffect(() => {
17166
+ React10.useEffect(() => {
17088
17167
  window.localStorage.setItem(key, JSON.stringify(storedValue));
17089
17168
  }, [key, storedValue]);
17090
17169
  return [storedValue, setStoredValue];
@@ -17114,7 +17193,7 @@ var useEcosystemShortcuts = () => {
17114
17193
  isShortcut
17115
17194
  };
17116
17195
  };
17117
- var PrivyWalletProviderContext = React6.createContext(null);
17196
+ var PrivyWalletProviderContext = React10.createContext(null);
17118
17197
  var PrivyWalletProvider = ({
17119
17198
  children,
17120
17199
  nodeUrl,
@@ -17265,9 +17344,9 @@ var PrivyWalletProvider = ({
17265
17344
  clauses.push(
17266
17345
  sdkCore.Clause.callFunction(
17267
17346
  sdkCore.Address.of(
17268
- chunkCPG25VOQ_cjs.getConfig(network.type).accountFactoryAddress
17347
+ chunkRUIC653T_cjs.getConfig(network.type).accountFactoryAddress
17269
17348
  ),
17270
- sdkCore.ABIContract.ofAbi(chunkAJYTKYSZ_cjs.SimpleAccountFactoryABI).getFunction(
17349
+ sdkCore.ABIContract.ofAbi(chunkFID67WC3_cjs.SimpleAccountFactoryABI).getFunction(
17271
17350
  "createAccount"
17272
17351
  ),
17273
17352
  [connectedWallet.address ?? ""]
@@ -17277,7 +17356,7 @@ var PrivyWalletProvider = ({
17277
17356
  clauses.push(
17278
17357
  sdkCore.Clause.callFunction(
17279
17358
  sdkCore.Address.of(smartAccount.address),
17280
- sdkCore.ABIContract.ofAbi(chunkAJYTKYSZ_cjs.SimpleAccountABI).getFunction(
17359
+ sdkCore.ABIContract.ofAbi(chunkFID67WC3_cjs.SimpleAccountABI).getFunction(
17281
17360
  "executeBatchWithAuthorization"
17282
17361
  ),
17283
17362
  [
@@ -17340,9 +17419,9 @@ var PrivyWalletProvider = ({
17340
17419
  clauses.push(
17341
17420
  sdkCore.Clause.callFunction(
17342
17421
  sdkCore.Address.of(
17343
- chunkCPG25VOQ_cjs.getConfig(network.type).accountFactoryAddress
17422
+ chunkRUIC653T_cjs.getConfig(network.type).accountFactoryAddress
17344
17423
  ),
17345
- sdkCore.ABIContract.ofAbi(chunkAJYTKYSZ_cjs.SimpleAccountFactoryABI).getFunction(
17424
+ sdkCore.ABIContract.ofAbi(chunkFID67WC3_cjs.SimpleAccountFactoryABI).getFunction(
17346
17425
  "createAccount"
17347
17426
  ),
17348
17427
  [connectedWallet.address ?? ""]
@@ -17354,7 +17433,7 @@ var PrivyWalletProvider = ({
17354
17433
  clauses.push(
17355
17434
  sdkCore.Clause.callFunction(
17356
17435
  sdkCore.Address.of(smartAccount.address ?? ""),
17357
- sdkCore.ABIContract.ofAbi(chunkAJYTKYSZ_cjs.SimpleAccountABI).getFunction(
17436
+ sdkCore.ABIContract.ofAbi(chunkFID67WC3_cjs.SimpleAccountABI).getFunction(
17358
17437
  "executeWithAuthorization"
17359
17438
  ),
17360
17439
  [
@@ -17389,10 +17468,10 @@ var PrivyWalletProvider = ({
17389
17468
  [
17390
17469
  {
17391
17470
  privateKey: Buffer.from(
17392
- chunkCPG25VOQ_cjs.randomTransactionUser.privateKey.slice(2),
17471
+ chunkRUIC653T_cjs.randomTransactionUser.privateKey.slice(2),
17393
17472
  "hex"
17394
17473
  ),
17395
- address: chunkCPG25VOQ_cjs.randomTransactionUser.address
17474
+ address: chunkRUIC653T_cjs.randomTransactionUser.address
17396
17475
  }
17397
17476
  ],
17398
17477
  { delegator: { delegatorUrl } }
@@ -17403,11 +17482,11 @@ var PrivyWalletProvider = ({
17403
17482
  true
17404
17483
  );
17405
17484
  const signer = await providerWithDelegationEnabled.getSigner(
17406
- chunkCPG25VOQ_cjs.randomTransactionUser.address
17485
+ chunkRUIC653T_cjs.randomTransactionUser.address
17407
17486
  );
17408
17487
  const txInput = sdkNetwork.signerUtils.transactionBodyToTransactionRequestInput(
17409
17488
  txBody,
17410
- chunkCPG25VOQ_cjs.randomTransactionUser.address
17489
+ chunkRUIC653T_cjs.randomTransactionUser.address
17411
17490
  );
17412
17491
  const rawDelegateSigned = await signer.signTransaction(txInput);
17413
17492
  const { id } = await fetch(`${nodeUrl}/transactions`, {
@@ -17446,7 +17525,7 @@ var PrivyWalletProvider = ({
17446
17525
  PrivyWalletProviderContext.Provider,
17447
17526
  {
17448
17527
  value: {
17449
- accountFactory: chunkCPG25VOQ_cjs.getConfig(network.type).accountFactoryAddress,
17528
+ accountFactory: chunkRUIC653T_cjs.getConfig(network.type).accountFactoryAddress,
17450
17529
  sendTransaction,
17451
17530
  signMessage,
17452
17531
  signTypedData,
@@ -17458,7 +17537,7 @@ var PrivyWalletProvider = ({
17458
17537
  );
17459
17538
  };
17460
17539
  var usePrivyWalletProvider = () => {
17461
- const context = React6.useContext(PrivyWalletProviderContext);
17540
+ const context = React10.useContext(PrivyWalletProviderContext);
17462
17541
  if (!context) {
17463
17542
  throw new Error(
17464
17543
  "usePrivyWalletProvider must be used within a PrivyWalletProvider"
@@ -17502,9 +17581,9 @@ var DEFAULT_PRIVY_ECOSYSTEM_APP_IDS = [
17502
17581
  "clv9sfos20j6x1431ga80d95f"
17503
17582
  //mughsot
17504
17583
  ];
17505
- var VeChainKitContext = React6.createContext(null);
17584
+ var VeChainKitContext = React10.createContext(null);
17506
17585
  var useVeChainKitConfig = () => {
17507
- const context = React6.useContext(VeChainKitContext);
17586
+ const context = React10.useContext(VeChainKitContext);
17508
17587
  if (!context) {
17509
17588
  throw new Error("useVeChainKitConfig must be used within VeChainKit");
17510
17589
  }
@@ -17564,7 +17643,7 @@ var VeChainKitProvider = (props) => {
17564
17643
  allowCustomTokens
17565
17644
  } = validatedProps;
17566
17645
  const validatedLoginMethods = loginMethods;
17567
- const allowedEcosystemApps = React6.useMemo(() => {
17646
+ const allowedEcosystemApps = React10.useMemo(() => {
17568
17647
  const userEcosystemMethods = validatedLoginMethods?.find(
17569
17648
  (method35) => method35.method === "ecosystem"
17570
17649
  );
@@ -17578,7 +17657,7 @@ var VeChainKitProvider = (props) => {
17578
17657
  privyAppId = privy.appId;
17579
17658
  privyClientId = privy.clientId;
17580
17659
  }
17581
- React6.useEffect(() => {
17660
+ React10.useEffect(() => {
17582
17661
  initializeI18n(i18n_default);
17583
17662
  if (language) {
17584
17663
  i18n_default.changeLanguage(language);
@@ -17646,8 +17725,8 @@ var VeChainKitProvider = (props) => {
17646
17725
  children: /* @__PURE__ */ jsxRuntime.jsx(
17647
17726
  dappKitReact.DAppKitProvider,
17648
17727
  {
17649
- nodeUrl: network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl,
17650
- genesis: chunkCPG25VOQ_cjs.getConfig(network.type).network.genesis,
17728
+ nodeUrl: network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl,
17729
+ genesis: chunkRUIC653T_cjs.getConfig(network.type).network.genesis,
17651
17730
  i18n: i18nConfig,
17652
17731
  language,
17653
17732
  logLevel: dappKit.logLevel,
@@ -17682,7 +17761,7 @@ var VeChainKitProvider = (props) => {
17682
17761
  children: /* @__PURE__ */ jsxRuntime.jsx(
17683
17762
  PrivyWalletProvider,
17684
17763
  {
17685
- nodeUrl: network.nodeUrl ?? chunkCPG25VOQ_cjs.getConfig(network.type).nodeUrl,
17764
+ nodeUrl: network.nodeUrl ?? chunkRUIC653T_cjs.getConfig(network.type).nodeUrl,
17686
17765
  delegatorUrl: feeDelegation.delegatorUrl,
17687
17766
  delegateAllTransactions: feeDelegation.delegateAllTransactions,
17688
17767
  children: /* @__PURE__ */ jsxRuntime.jsx(ModalProvider, { children })
@@ -17705,14 +17784,14 @@ var variants = {
17705
17784
  overflowX: "hidden",
17706
17785
  maxHeight: "550px",
17707
17786
  borderRadius: "24px",
17708
- backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white"
17787
+ backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
17709
17788
  },
17710
17789
  closeButton: {
17711
17790
  borderRadius: "50%"
17712
17791
  },
17713
17792
  header: {
17714
17793
  w: "full",
17715
- color: props.colorMode === "dark" ? "#dfdfdd" : "#4d4d4d",
17794
+ color: props.colorMode === "dark" ? "#dfdfdd" : "#2e2e2e",
17716
17795
  fontSize: "md",
17717
17796
  fontWeight: "700",
17718
17797
  textAlign: "center"
@@ -17731,7 +17810,7 @@ var variants = {
17731
17810
  pointerEvents: "auto",
17732
17811
  boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.1)",
17733
17812
  py: "10px",
17734
- backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white"
17813
+ backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
17735
17814
  },
17736
17815
  closeButton: {
17737
17816
  borderRadius: "50%",
@@ -17753,7 +17832,11 @@ var variants2 = {
17753
17832
  body: {
17754
17833
  borderRadius: "12px",
17755
17834
  backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white",
17756
- border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea"
17835
+ border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea",
17836
+ p: 5
17837
+ },
17838
+ footer: {
17839
+ p: 5
17757
17840
  }
17758
17841
  }),
17759
17842
  featureAnnouncement: (props) => definePartsStyle2({
@@ -17897,12 +17980,12 @@ var variants3 = {
17897
17980
  })),
17898
17981
  mainContentButton: react.defineStyle(({ colorMode }) => ({
17899
17982
  width: "100%",
17900
- backgroundColor: colorMode === "dark" ? "whiteAlpha.200" : "blackAlpha.50",
17983
+ backgroundColor: colorMode === "dark" ? "#ffffff05" : "blackAlpha.50",
17901
17984
  borderRadius: "xl",
17902
17985
  p: 3,
17903
17986
  cursor: "pointer",
17904
17987
  _hover: {
17905
- backgroundColor: colorMode === "dark" ? "whiteAlpha.300" : "blackAlpha.200"
17988
+ backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
17906
17989
  }
17907
17990
  }))
17908
17991
  };
@@ -17983,7 +18066,7 @@ var VechainKitThemeProvider = ({
17983
18066
  children,
17984
18067
  darkMode = false
17985
18068
  }) => {
17986
- const theme = React6.useMemo(
18069
+ const theme = React10.useMemo(
17987
18070
  () => ({
17988
18071
  ...VechainKitTheme,
17989
18072
  config: {
@@ -18002,7 +18085,7 @@ var VechainKitThemeProvider = ({
18002
18085
 
18003
18086
  Object.defineProperty(exports, "getConfig", {
18004
18087
  enumerable: true,
18005
- get: function () { return chunkCPG25VOQ_cjs.getConfig; }
18088
+ get: function () { return chunkRUIC653T_cjs.getConfig; }
18006
18089
  });
18007
18090
  Object.defineProperty(exports, "useMfaEnrollment", {
18008
18091
  enumerable: true,