@vechain/vechain-kit 2.0.0-rc.13 → 2.0.0-rc.15

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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkM6WTSZ5C_cjs = require('./chunk-M6WTSZ5C.cjs');
4
- var chunkEESC6JDT_cjs = require('./chunk-EESC6JDT.cjs');
3
+ var chunkI2O23KHV_cjs = require('./chunk-I2O23KHV.cjs');
4
+ var chunkZNQPWE32_cjs = require('./chunk-ZNQPWE32.cjs');
5
5
  var i18n = require('i18next');
6
6
  var reactI18next = require('react-i18next');
7
7
  var reactAuth = require('@privy-io/react-auth');
@@ -4256,18 +4256,18 @@ var ModalBackButton = ({ onClick, ...props }) => {
4256
4256
  }
4257
4257
  );
4258
4258
  };
4259
- var getAppSource = () => chunkM6WTSZ5C_cjs.getDocumentTitle();
4260
- var getPageSource = () => chunkM6WTSZ5C_cjs.getWindowOrigin();
4259
+ var getAppSource = () => chunkI2O23KHV_cjs.getDocumentTitle();
4260
+ var getPageSource = () => chunkI2O23KHV_cjs.getWindowOrigin();
4261
4261
  var hasTrackingConsent = false;
4262
4262
  var VeChainKitMixpanelInstance = null;
4263
- if (chunkM6WTSZ5C_cjs.isBrowser()) {
4264
- const token = chunkM6WTSZ5C_cjs.getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN();
4263
+ if (chunkI2O23KHV_cjs.isBrowser()) {
4264
+ const token = chunkI2O23KHV_cjs.getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN();
4265
4265
  if (token) {
4266
4266
  const instanceName = "__vechain_kit__";
4267
4267
  VeChainKitMixpanelInstance = VeChainKitMixpanel__default.default.init(
4268
4268
  token,
4269
4269
  {
4270
- debug: !chunkM6WTSZ5C_cjs.ENV.isProduction,
4270
+ debug: !chunkI2O23KHV_cjs.ENV.isProduction,
4271
4271
  persistence_name: "__vck_mp",
4272
4272
  // Disable automatic tracking to avoid conflicts
4273
4273
  track_pageview: false,
@@ -4276,7 +4276,7 @@ if (chunkM6WTSZ5C_cjs.isBrowser()) {
4276
4276
  },
4277
4277
  instanceName
4278
4278
  );
4279
- if (chunkM6WTSZ5C_cjs.ENV.isDevelopment) {
4279
+ if (chunkI2O23KHV_cjs.ENV.isDevelopment) {
4280
4280
  console.info(
4281
4281
  "VeChain Kit Analytics initialized in DEVELOPMENT mode"
4282
4282
  );
@@ -4292,7 +4292,7 @@ var isFirstLogin = (userId) => {
4292
4292
  return false;
4293
4293
  }
4294
4294
  const userDataKey = `user_data_${userId}`;
4295
- const userData = chunkM6WTSZ5C_cjs.getLocalStorageItem(userDataKey);
4295
+ const userData = chunkI2O23KHV_cjs.getLocalStorageItem(userDataKey);
4296
4296
  if (userData) {
4297
4297
  const parsedData = JSON.parse(userData);
4298
4298
  return !parsedData.first_login_date;
@@ -4309,24 +4309,24 @@ var storeUserData = (userId, properties) => {
4309
4309
  return;
4310
4310
  }
4311
4311
  const userDataKey = `user_data_${userId}`;
4312
- const existingData = chunkM6WTSZ5C_cjs.getLocalStorageItem(userDataKey);
4312
+ const existingData = chunkI2O23KHV_cjs.getLocalStorageItem(userDataKey);
4313
4313
  let userData = properties;
4314
4314
  if (existingData) {
4315
4315
  userData = { ...JSON.parse(existingData), ...properties };
4316
4316
  }
4317
- chunkM6WTSZ5C_cjs.setLocalStorageItem(userDataKey, JSON.stringify(userData));
4317
+ chunkI2O23KHV_cjs.setLocalStorageItem(userDataKey, JSON.stringify(userData));
4318
4318
  } catch (e) {
4319
4319
  console.warn("Error storing user data", e);
4320
4320
  }
4321
4321
  };
4322
4322
  var trackEvent = (event, properties = {}) => {
4323
4323
  try {
4324
- const token = chunkM6WTSZ5C_cjs.getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN();
4324
+ const token = chunkI2O23KHV_cjs.getVECHAIN_KIT_MIXPANEL_PROJECT_TOKEN();
4325
4325
  if (!token) {
4326
4326
  console.warn("No project token found");
4327
4327
  return;
4328
4328
  }
4329
- if (!chunkM6WTSZ5C_cjs.isOnline()) {
4329
+ if (!chunkI2O23KHV_cjs.isOnline()) {
4330
4330
  return;
4331
4331
  }
4332
4332
  if (!hasTrackingConsent) {
@@ -4758,7 +4758,7 @@ var AddressDisplay = ({
4758
4758
  const [copied, setCopied] = React10.useState(false);
4759
4759
  const [copiedDomain, setCopiedDomain] = React10.useState(false);
4760
4760
  const copyToClipboard2 = async (textToCopy, setCopied2) => {
4761
- const success = await chunkM6WTSZ5C_cjs.copyToClipboard(textToCopy);
4761
+ const success = await chunkI2O23KHV_cjs.copyToClipboard(textToCopy);
4762
4762
  if (success) {
4763
4763
  setCopied2(true);
4764
4764
  setTimeout(() => {
@@ -4805,7 +4805,7 @@ var AddressDisplay = ({
4805
4805
  react.Input,
4806
4806
  {
4807
4807
  cursor: "pointer",
4808
- value: showHumanAddress ? chunkM6WTSZ5C_cjs.humanAddress(
4808
+ value: showHumanAddress ? chunkI2O23KHV_cjs.humanAddress(
4809
4809
  wallet.address ?? "",
4810
4810
  8,
4811
4811
  7
@@ -4838,7 +4838,7 @@ var AddressDisplay = ({
4838
4838
  react.Input,
4839
4839
  {
4840
4840
  cursor: "pointer",
4841
- value: showHumanAddress ? chunkM6WTSZ5C_cjs.humanAddress(wallet?.address ?? "", 6, 4) : wallet?.address,
4841
+ value: showHumanAddress ? chunkI2O23KHV_cjs.humanAddress(wallet?.address ?? "", 6, 4) : wallet?.address,
4842
4842
  readOnly: true,
4843
4843
  fontSize: "sm",
4844
4844
  fontWeight: "700",
@@ -4866,7 +4866,7 @@ var AddressDisplay = ({
4866
4866
 
4867
4867
  // package.json
4868
4868
  var package_default = {
4869
- version: "2.0.0-rc.13"};
4869
+ version: "2.0.0-rc.15"};
4870
4870
  var VersionFooter = ({ ...props }) => {
4871
4871
  const { darkMode: isDark } = useVeChainKitConfig();
4872
4872
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4879,7 +4879,7 @@ var VersionFooter = ({ ...props }) => {
4879
4879
  ...props,
4880
4880
  children: [
4881
4881
  /* @__PURE__ */ jsxRuntime.jsx(
4882
- chunkEESC6JDT_cjs.VechainLogo,
4882
+ chunkZNQPWE32_cjs.VechainLogo,
4883
4883
  {
4884
4884
  isDark,
4885
4885
  w: "70px",
@@ -5087,13 +5087,13 @@ var AssetButton = ({
5087
5087
  ...buttonProps,
5088
5088
  children: [
5089
5089
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { children: [
5090
- chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[symbol] ? React10__default.default.cloneElement(chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[symbol], {
5090
+ chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[symbol] ? React10__default.default.cloneElement(chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[symbol], {
5091
5091
  boxSize: "24px",
5092
5092
  borderRadius: "full"
5093
5093
  }) : /* @__PURE__ */ jsxRuntime.jsx(
5094
5094
  react.Image,
5095
5095
  {
5096
- src: chunkM6WTSZ5C_cjs.TOKEN_LOGOS[symbol],
5096
+ src: chunkI2O23KHV_cjs.TOKEN_LOGOS[symbol],
5097
5097
  alt: `${symbol} logo`,
5098
5098
  boxSize: "24px",
5099
5099
  borderRadius: "full",
@@ -5163,7 +5163,7 @@ var useFetchAppInfo = (appIds) => {
5163
5163
  return Object.fromEntries(
5164
5164
  results.map((result, index) => {
5165
5165
  const id = normalizedIds[index];
5166
- const defaultApp = chunkM6WTSZ5C_cjs.DEFAULT_PRIVY_ECOSYSTEM_APPS.find(
5166
+ const defaultApp = chunkI2O23KHV_cjs.DEFAULT_PRIVY_ECOSYSTEM_APPS.find(
5167
5167
  (app) => app.id === id
5168
5168
  );
5169
5169
  return [
@@ -5233,9 +5233,9 @@ var fetchVechainDomain = async (thor, networkType, addressOrDomain) => {
5233
5233
  }
5234
5234
  if (ethers.isAddress(addressOrDomain)) {
5235
5235
  try {
5236
- const res = await chunkM6WTSZ5C_cjs.executeCallClause({
5236
+ const res = await chunkI2O23KHV_cjs.executeCallClause({
5237
5237
  thor,
5238
- contractAddress: chunkM6WTSZ5C_cjs.getConfig(networkType).vnsResolverAddress,
5238
+ contractAddress: chunkI2O23KHV_cjs.getConfig(networkType).vnsResolverAddress,
5239
5239
  abi: resolverABI,
5240
5240
  method: "getNames",
5241
5241
  args: [[addressOrDomain]]
@@ -5258,9 +5258,9 @@ var fetchVechainDomain = async (thor, networkType, addressOrDomain) => {
5258
5258
  }
5259
5259
  }
5260
5260
  try {
5261
- const res = await chunkM6WTSZ5C_cjs.executeCallClause({
5261
+ const res = await chunkI2O23KHV_cjs.executeCallClause({
5262
5262
  thor,
5263
- contractAddress: chunkM6WTSZ5C_cjs.getConfig(networkType).vnsResolverAddress,
5263
+ contractAddress: chunkI2O23KHV_cjs.getConfig(networkType).vnsResolverAddress,
5264
5264
  abi: getAddressesABI,
5265
5265
  method: "getAddresses",
5266
5266
  args: [[addressOrDomain]]
@@ -5274,9 +5274,9 @@ var fetchVechainDomain = async (thor, networkType, addressOrDomain) => {
5274
5274
  isPrimaryDomain: false
5275
5275
  };
5276
5276
  }
5277
- const primaryDomainRes = await chunkM6WTSZ5C_cjs.executeCallClause({
5277
+ const primaryDomainRes = await chunkI2O23KHV_cjs.executeCallClause({
5278
5278
  thor,
5279
- contractAddress: chunkM6WTSZ5C_cjs.getConfig(networkType).vnsResolverAddress,
5279
+ contractAddress: chunkI2O23KHV_cjs.getConfig(networkType).vnsResolverAddress,
5280
5280
  abi: resolverABI,
5281
5281
  method: "getNames",
5282
5282
  args: [[domainAddress]]
@@ -5316,7 +5316,7 @@ var getEnsRecordExists = async (thor, network, name) => {
5316
5316
  const labelHash = viem.keccak256(viem.toBytes(name));
5317
5317
  const subnode = viem.keccak256(viem.concat([hashedNode, labelHash]));
5318
5318
  const res = await thor.contracts.load(
5319
- chunkM6WTSZ5C_cjs.getConfig(network).vetDomainsContractAddress,
5319
+ chunkI2O23KHV_cjs.getConfig(network).vetDomainsContractAddress,
5320
5320
  vechainContractTypes.MockENS__factory.abi
5321
5321
  ).read.recordExists(subnode);
5322
5322
  if (!res) throw new Error(`Failed to get ENS record exists for ${name}`);
@@ -5426,10 +5426,10 @@ var useClaimVeWorldSubdomain = ({
5426
5426
  if (!subdomain) throw new Error("Invalid subdomain");
5427
5427
  const fullDomain = `${subdomain}.${domain}`;
5428
5428
  clausesArray.push({
5429
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5429
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5430
5430
  value: "0x0",
5431
5431
  data: ReverseRegistrarInterface.encodeFunctionData("setName", [""]),
5432
- comment: `Unsetting your current VeChain nickname of the account ${chunkM6WTSZ5C_cjs.humanAddress(
5432
+ comment: `Unsetting your current VeChain nickname of the account ${chunkI2O23KHV_cjs.humanAddress(
5433
5433
  account?.address ?? "",
5434
5434
  4,
5435
5435
  4
@@ -5438,7 +5438,7 @@ var useClaimVeWorldSubdomain = ({
5438
5438
  });
5439
5439
  if (alreadyOwned) {
5440
5440
  clausesArray.push({
5441
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5441
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5442
5442
  value: "0x0",
5443
5443
  data: ReverseRegistrarInterface.encodeFunctionData("setName", [
5444
5444
  fullDomain
@@ -5451,13 +5451,13 @@ var useClaimVeWorldSubdomain = ({
5451
5451
  ]);
5452
5452
  const domainNode = ethers.ethers.namehash(fullDomain);
5453
5453
  clausesArray.push({
5454
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsPublicResolverAddress,
5454
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsPublicResolverAddress,
5455
5455
  value: "0x0",
5456
5456
  data: PublicResolverInterface.encodeFunctionData("setAddr", [
5457
5457
  domainNode,
5458
5458
  account?.address || ""
5459
5459
  ]),
5460
- comment: `Setting the address for ${fullDomain} to ${chunkM6WTSZ5C_cjs.humanAddress(
5460
+ comment: `Setting the address for ${fullDomain} to ${chunkI2O23KHV_cjs.humanAddress(
5461
5461
  account?.address ?? "",
5462
5462
  4,
5463
5463
  4
@@ -5467,26 +5467,26 @@ var useClaimVeWorldSubdomain = ({
5467
5467
  } else {
5468
5468
  if (isVeWorldDomain(domain)) {
5469
5469
  clausesArray.push({
5470
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).veWorldSubdomainClaimerContractAddress,
5470
+ to: chunkI2O23KHV_cjs.getConfig(network.type).veWorldSubdomainClaimerContractAddress,
5471
5471
  value: "0x0",
5472
5472
  data: SubdomainClaimerInterface.encodeFunctionData(
5473
5473
  "claim",
5474
5474
  [
5475
5475
  subdomain,
5476
- chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsPublicResolverAddress
5476
+ chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsPublicResolverAddress
5477
5477
  ]
5478
5478
  ),
5479
5479
  comment: `Claim VeChain subdomain: ${subdomain}.${domain}`,
5480
5480
  abi: SubdomainClaimerInterface.getFunction("claim")
5481
5481
  });
5482
5482
  clausesArray.push({
5483
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5483
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5484
5484
  value: "0x0",
5485
5485
  data: ReverseRegistrarInterface.encodeFunctionData(
5486
5486
  "setName",
5487
5487
  [subdomain + "." + domain]
5488
5488
  ),
5489
- comment: `Set ${subdomain}.${domain} as the VeChain nickname of the account ${chunkM6WTSZ5C_cjs.humanAddress(
5489
+ comment: `Set ${subdomain}.${domain} as the VeChain nickname of the account ${chunkI2O23KHV_cjs.humanAddress(
5490
5490
  account?.address ?? "",
5491
5491
  4,
5492
5492
  4
@@ -5565,7 +5565,7 @@ var useClaimVetDomain = ({
5565
5565
  if (!domain) throw new Error("Invalid domain");
5566
5566
  if (alreadyOwned) {
5567
5567
  clausesArray.push({
5568
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5568
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
5569
5569
  value: "0x0",
5570
5570
  data: ReverseRegistrarInterface2.encodeFunctionData("setName", [
5571
5571
  domain
@@ -5578,13 +5578,13 @@ var useClaimVetDomain = ({
5578
5578
  ]);
5579
5579
  const domainNode = ethers.ethers.namehash(domain);
5580
5580
  clausesArray.push({
5581
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsPublicResolverAddress,
5581
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsPublicResolverAddress,
5582
5582
  value: "0x0",
5583
5583
  data: PublicResolverInterface.encodeFunctionData("setAddr", [
5584
5584
  domainNode,
5585
5585
  account?.address || ""
5586
5586
  ]),
5587
- comment: `Setting the address for ${domain} to ${chunkM6WTSZ5C_cjs.humanAddress(
5587
+ comment: `Setting the address for ${domain} to ${chunkI2O23KHV_cjs.humanAddress(
5588
5588
  account?.address ?? "",
5589
5589
  4,
5590
5590
  4
@@ -5640,7 +5640,7 @@ var getIsDomainProtectedQueryKey = (domain) => [
5640
5640
  "IS_DOMAIN_PROTECTED"
5641
5641
  ];
5642
5642
  var getIsDomainProtected = async (thor, network, domain) => {
5643
- const contractAddress = chunkM6WTSZ5C_cjs.getConfig(network).veWorldSubdomainClaimerContractAddress;
5643
+ const contractAddress = chunkI2O23KHV_cjs.getConfig(network).veWorldSubdomainClaimerContractAddress;
5644
5644
  const res = await thor.contracts.load(contractAddress, vechainContractTypes.SubdomainClaimer__factory.abi).read.isDomainProtected(domain);
5645
5645
  return res[0];
5646
5646
  };
@@ -5661,7 +5661,7 @@ var DomainsResponseSchema = zod.z.object({
5661
5661
  });
5662
5662
  var getDomainsOfAddress = async (networkType, address, parentDomain) => {
5663
5663
  if (!address) throw new Error("Address is required");
5664
- const graphQlIndexerUrl = chunkM6WTSZ5C_cjs.getConfig(networkType).graphQlIndexerUrl;
5664
+ const graphQlIndexerUrl = chunkI2O23KHV_cjs.getConfig(networkType).graphQlIndexerUrl;
5665
5665
  const whereCondition = parentDomain ? `{owner: "${address.toLowerCase()}", parent_: {name: "${parentDomain}"}}` : `{owner: "${address.toLowerCase()}"}`;
5666
5666
  const query = `query Registrations {
5667
5667
  domains(
@@ -5722,7 +5722,7 @@ var getAvatarLegacy = async (networkType, nodeUrl, name) => {
5722
5722
  body: JSON.stringify({
5723
5723
  clauses: [
5724
5724
  {
5725
- to: chunkM6WTSZ5C_cjs.getConfig(networkType).vetDomainsContractAddress,
5725
+ to: chunkI2O23KHV_cjs.getConfig(networkType).vetDomainsContractAddress,
5726
5726
  data: nameInterface.encodeFunctionData("resolver", [
5727
5727
  node
5728
5728
  ])
@@ -5780,7 +5780,7 @@ var getAvatarLegacyQueryKey = (name, networkType) => ["VECHAIN_KIT", "VET_DOMAIN
5780
5780
  async function parseAvatarRecord(record, networkType, nodeUrl) {
5781
5781
  try {
5782
5782
  if (record.startsWith("http") || record.startsWith("ipfs://") || record.startsWith("ar://")) {
5783
- return chunkM6WTSZ5C_cjs.convertUriToUrl(record, networkType) || null;
5783
+ return chunkI2O23KHV_cjs.convertUriToUrl(record, networkType) || null;
5784
5784
  }
5785
5785
  const match = record.match(
5786
5786
  /eip155:(\d+)\/(?:erc721|erc1155):([^/]+)\/(\d+)/
@@ -5821,7 +5821,7 @@ async function parseAvatarRecord(record, networkType, nodeUrl) {
5821
5821
  console.error("Failed to decode avatar data:", e);
5822
5822
  tokenUri = ethers.toUtf8String(data);
5823
5823
  }
5824
- tokenUri = chunkM6WTSZ5C_cjs.convertUriToUrl(tokenUri, networkType) || tokenUri;
5824
+ tokenUri = chunkI2O23KHV_cjs.convertUriToUrl(tokenUri, networkType) || tokenUri;
5825
5825
  if (isErc1155) {
5826
5826
  tokenUri = tokenUri.replace(
5827
5827
  "{id}",
@@ -5839,7 +5839,7 @@ async function parseAvatarRecord(record, networkType, nodeUrl) {
5839
5839
  console.error("No image URL in metadata");
5840
5840
  return null;
5841
5841
  }
5842
- return chunkM6WTSZ5C_cjs.convertUriToUrl(imageUrl, networkType) || imageUrl;
5842
+ return chunkI2O23KHV_cjs.convertUriToUrl(imageUrl, networkType) || imageUrl;
5843
5843
  }
5844
5844
  return null;
5845
5845
  } catch (error) {
@@ -5849,7 +5849,7 @@ async function parseAvatarRecord(record, networkType, nodeUrl) {
5849
5849
  }
5850
5850
  var useGetAvatarLegacy = (name) => {
5851
5851
  const { network } = useVeChainKitConfig();
5852
- const nodeUrl = network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl;
5852
+ const nodeUrl = network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl;
5853
5853
  const avatarQuery = reactQuery.useQuery({
5854
5854
  queryKey: getAvatarLegacyQueryKey(name ?? "", network.type),
5855
5855
  queryFn: async () => {
@@ -5880,7 +5880,7 @@ var getAvatar = async (name, network) => {
5880
5880
  var fetchAvatar = async (name, network) => {
5881
5881
  try {
5882
5882
  const response = await fetch(
5883
- `${chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainAvatarUrl}/${name}`
5883
+ `${chunkI2O23KHV_cjs.getConfig(network.type).vetDomainAvatarUrl}/${name}`
5884
5884
  );
5885
5885
  if (response.ok) {
5886
5886
  return response.blob();
@@ -5891,7 +5891,7 @@ var fetchAvatar = async (name, network) => {
5891
5891
  return null;
5892
5892
  };
5893
5893
  var fetchAvatarDirectly = async (name, network) => {
5894
- const nodeUrl = network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl;
5894
+ const nodeUrl = network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl;
5895
5895
  if (!nodeUrl) return null;
5896
5896
  const avatar = await getAvatarLegacy(network.type, nodeUrl, name);
5897
5897
  if (!avatar) return null;
@@ -5932,7 +5932,7 @@ var getTextRecords = async (nodeUrl, network, domain) => {
5932
5932
  body: JSON.stringify({
5933
5933
  clauses: [
5934
5934
  {
5935
- to: chunkM6WTSZ5C_cjs.getConfig(network).vetDomainsContractAddress,
5935
+ to: chunkI2O23KHV_cjs.getConfig(network).vetDomainsContractAddress,
5936
5936
  data: nameInterface2.encodeFunctionData("resolver", [
5937
5937
  node
5938
5938
  ])
@@ -5954,7 +5954,7 @@ var getTextRecords = async (nodeUrl, network, domain) => {
5954
5954
  "content-type": "application/json"
5955
5955
  },
5956
5956
  body: JSON.stringify({
5957
- clauses: chunkM6WTSZ5C_cjs.ENS_TEXT_RECORDS.map((key) => ({
5957
+ clauses: chunkI2O23KHV_cjs.ENS_TEXT_RECORDS.map((key) => ({
5958
5958
  to: resolverAddress,
5959
5959
  data: nameInterface2.encodeFunctionData("text", [node, key])
5960
5960
  }))
@@ -5970,11 +5970,11 @@ var getTextRecords = async (nodeUrl, network, domain) => {
5970
5970
  data
5971
5971
  )[0];
5972
5972
  if (value) {
5973
- acc[chunkM6WTSZ5C_cjs.ENS_TEXT_RECORDS[index]] = value;
5973
+ acc[chunkI2O23KHV_cjs.ENS_TEXT_RECORDS[index]] = value;
5974
5974
  }
5975
5975
  } catch (error) {
5976
5976
  console.error(
5977
- `Failed to decode text record for ${chunkM6WTSZ5C_cjs.ENS_TEXT_RECORDS[index]}:`,
5977
+ `Failed to decode text record for ${chunkI2O23KHV_cjs.ENS_TEXT_RECORDS[index]}:`,
5978
5978
  error
5979
5979
  );
5980
5980
  }
@@ -5991,7 +5991,7 @@ var getTextRecords = async (nodeUrl, network, domain) => {
5991
5991
  var getTextRecordsQueryKey = (domain, network) => ["VECHAIN_KIT_TEXT_RECORDS", domain, network];
5992
5992
  var useGetTextRecords = (domain) => {
5993
5993
  const { network } = useVeChainKitConfig();
5994
- const nodeUrl = network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl;
5994
+ const nodeUrl = network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl;
5995
5995
  return reactQuery.useQuery({
5996
5996
  queryKey: getTextRecordsQueryKey(domain, network.type),
5997
5997
  queryFn: () => getTextRecords(nodeUrl, network.type, domain),
@@ -6081,7 +6081,7 @@ var getResolverAddressQueryKey = (domain) => [
6081
6081
  var useGetResolverAddress = (domain) => {
6082
6082
  const { network } = useVeChainKitConfig();
6083
6083
  return useCallClause({
6084
- address: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsContractAddress,
6084
+ address: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsContractAddress,
6085
6085
  abi: nameInterfaceAbi,
6086
6086
  method: "resolver",
6087
6087
  args: [domain ? viem.namehash(domain) : "0x"],
@@ -6104,12 +6104,12 @@ var useGetAvatarOfAddress = (address) => {
6104
6104
  return reactQuery.useQuery({
6105
6105
  queryKey: getAvatarOfAddressQueryKey(address),
6106
6106
  queryFn: async () => {
6107
- if (!address) return chunkM6WTSZ5C_cjs.getPicassoImage(address ?? "");
6107
+ if (!address) return chunkI2O23KHV_cjs.getPicassoImage(address ?? "");
6108
6108
  const domains = await domainsQuery.refetch();
6109
- if (!domains.data?.domain) return chunkM6WTSZ5C_cjs.getPicassoImage(address);
6109
+ if (!domains.data?.domain) return chunkI2O23KHV_cjs.getPicassoImage(address);
6110
6110
  if (domains.data.domain && avatarQuery.data)
6111
6111
  return avatarQuery.data;
6112
- return chunkM6WTSZ5C_cjs.getPicassoImage(address);
6112
+ return chunkI2O23KHV_cjs.getPicassoImage(address);
6113
6113
  },
6114
6114
  enabled: !!address && domainsQuery.isSuccess && (primaryDomain ? avatarQuery.isSuccess : true)
6115
6115
  });
@@ -6125,10 +6125,10 @@ var useUnsetDomain = ({
6125
6125
  const buildClauses = React10.useCallback(async () => {
6126
6126
  const clausesArray = [];
6127
6127
  clausesArray.push({
6128
- to: chunkM6WTSZ5C_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
6128
+ to: chunkI2O23KHV_cjs.getConfig(network.type).vetDomainsReverseRegistrarAddress,
6129
6129
  value: "0x0",
6130
6130
  data: ReverseRegistrarInterface3.encodeFunctionData("setName", [""]),
6131
- comment: `Unsetting your current VeChain nickname of the account ${chunkM6WTSZ5C_cjs.humanAddress(
6131
+ comment: `Unsetting your current VeChain nickname of the account ${chunkI2O23KHV_cjs.humanAddress(
6132
6132
  account?.address ?? "",
6133
6133
  4,
6134
6134
  4
@@ -6171,7 +6171,7 @@ var useUnsetDomain = ({
6171
6171
  };
6172
6172
  var useTokenBalances = (address) => {
6173
6173
  const { network } = useVeChainKitConfig();
6174
- const config = chunkM6WTSZ5C_cjs.getConfig(network.type);
6174
+ const config = chunkI2O23KHV_cjs.getConfig(network.type);
6175
6175
  const { data: vetData, isLoading: vetLoading } = useAccountBalance(address);
6176
6176
  const { data: b3trBalance, isLoading: b3trLoading } = useGetB3trBalance(address);
6177
6177
  const { data: vot3Balance, isLoading: vot3Loading } = useGetVot3Balance(address);
@@ -6257,7 +6257,7 @@ var PRICE_FEED_IDS = {
6257
6257
  };
6258
6258
  var getTokenUsdPrice = async (thor, token, network) => {
6259
6259
  const res = await thor.contracts.load(
6260
- chunkM6WTSZ5C_cjs.getConfig(network).oracleContractAddress,
6260
+ chunkI2O23KHV_cjs.getConfig(network).oracleContractAddress,
6261
6261
  vechainContractTypes.IVechainEnergyOracleV1__factory.abi
6262
6262
  ).read.getLatestValue(PRICE_FEED_IDS[token]);
6263
6263
  if (!res) throw new Error(`Failed to get price of ${token}`);
@@ -6280,7 +6280,7 @@ var useGetTokenUsdPrice = (token) => {
6280
6280
  // src/hooks/api/wallet/useTokenPrices.ts
6281
6281
  var useTokenPrices = () => {
6282
6282
  const { network } = useVeChainKitConfig();
6283
- const config = chunkM6WTSZ5C_cjs.getConfig(network.type);
6283
+ const config = chunkI2O23KHV_cjs.getConfig(network.type);
6284
6284
  const { data: vetUsdPrice, isLoading: vetUsdPriceLoading } = useGetTokenUsdPrice("VET");
6285
6285
  const { data: vthoUsdPrice, isLoading: vthoUsdPriceLoading } = useGetTokenUsdPrice("VTHO");
6286
6286
  const { data: b3trUsdPrice, isLoading: b3trUsdPriceLoading } = useGetTokenUsdPrice("B3TR");
@@ -6335,7 +6335,7 @@ var useCurrency = () => {
6335
6335
  const { defaultCurrency = "usd" } = useVeChainKitConfig();
6336
6336
  const [currentCurrency, setCurrentCurrency] = React10.useState(() => {
6337
6337
  try {
6338
- const stored = chunkM6WTSZ5C_cjs.getLocalStorageItem(STORAGE_KEY);
6338
+ const stored = chunkI2O23KHV_cjs.getLocalStorageItem(STORAGE_KEY);
6339
6339
  return stored || defaultCurrency;
6340
6340
  } catch (error) {
6341
6341
  console.error(error);
@@ -6343,7 +6343,7 @@ var useCurrency = () => {
6343
6343
  }
6344
6344
  });
6345
6345
  React10.useEffect(() => {
6346
- chunkM6WTSZ5C_cjs.setLocalStorageItem(STORAGE_KEY, currentCurrency);
6346
+ chunkI2O23KHV_cjs.setLocalStorageItem(STORAGE_KEY, currentCurrency);
6347
6347
  }, [currentCurrency]);
6348
6348
  const changeCurrency = (newCurrency) => {
6349
6349
  if (!allCurrencies.includes(newCurrency)) {
@@ -6437,7 +6437,7 @@ var method = "currentRoundId";
6437
6437
  var getCurrentAllocationsRoundIdQueryKey = (address) => getCallClauseQueryKey({ abi, address, method });
6438
6438
  var useCurrentAllocationsRoundId = () => {
6439
6439
  const { network } = useVeChainKitConfig();
6440
- const address = chunkM6WTSZ5C_cjs.getConfig(network.type).xAllocationVotingContractAddress;
6440
+ const address = chunkI2O23KHV_cjs.getConfig(network.type).xAllocationVotingContractAddress;
6441
6441
  return useCallClause({
6442
6442
  abi,
6443
6443
  address,
@@ -6508,17 +6508,17 @@ var useCustomTokens = () => {
6508
6508
  };
6509
6509
  const isTokenIncluded = (address) => {
6510
6510
  return customTokens.some(
6511
- (t) => chunkM6WTSZ5C_cjs.compareAddresses(t.address, address)
6511
+ (t) => chunkI2O23KHV_cjs.compareAddresses(t.address, address)
6512
6512
  );
6513
6513
  };
6514
6514
  const isDefaultToken = (address) => {
6515
6515
  const contractAddresses = {
6516
6516
  vet: "0x",
6517
6517
  // VET has no contract address since it's the native token
6518
- vtho: chunkM6WTSZ5C_cjs.getConfig(network.type).vthoContractAddress,
6519
- b3tr: chunkM6WTSZ5C_cjs.getConfig(network.type).b3trContractAddress,
6520
- vot3: chunkM6WTSZ5C_cjs.getConfig(network.type).vot3ContractAddress,
6521
- veDelegate: chunkM6WTSZ5C_cjs.getConfig(network.type).veDelegate
6518
+ vtho: chunkI2O23KHV_cjs.getConfig(network.type).vthoContractAddress,
6519
+ b3tr: chunkI2O23KHV_cjs.getConfig(network.type).b3trContractAddress,
6520
+ vot3: chunkI2O23KHV_cjs.getConfig(network.type).vot3ContractAddress,
6521
+ veDelegate: chunkI2O23KHV_cjs.getConfig(network.type).veDelegate
6522
6522
  };
6523
6523
  return Object.values(contractAddresses).includes(address);
6524
6524
  };
@@ -6531,11 +6531,11 @@ var useCustomTokens = () => {
6531
6531
  };
6532
6532
  };
6533
6533
  var getB3trBalance = async (thor, network, address) => {
6534
- const res = await thor.contracts.load(chunkM6WTSZ5C_cjs.getConfig(network).b3trContractAddress, vechainContractTypes.B3TR__factory.abi).read.balanceOf(address);
6534
+ const res = await thor.contracts.load(chunkI2O23KHV_cjs.getConfig(network).b3trContractAddress, vechainContractTypes.B3TR__factory.abi).read.balanceOf(address);
6535
6535
  if (!res) throw new Error("Failed to get b3tr balance");
6536
6536
  const original = res[0].toString();
6537
6537
  const scaled = ethers.formatEther(original);
6538
- const formatted = scaled === "0" ? "0" : chunkM6WTSZ5C_cjs.humanNumber(scaled);
6538
+ const formatted = scaled === "0" ? "0" : chunkI2O23KHV_cjs.humanNumber(scaled);
6539
6539
  return {
6540
6540
  original,
6541
6541
  scaled,
@@ -6561,7 +6561,7 @@ var getCustomTokenBalance = async (thor, token, address) => {
6561
6561
  if (!res) throw new Error(`Failed to get balance of ${token.address}`);
6562
6562
  const original = res[0];
6563
6563
  const scaled = viem.formatEther(BigInt(original));
6564
- const formatted = scaled === "0" ? "0" : chunkM6WTSZ5C_cjs.humanNumber(scaled);
6564
+ const formatted = scaled === "0" ? "0" : chunkI2O23KHV_cjs.humanNumber(scaled);
6565
6565
  return {
6566
6566
  ...token,
6567
6567
  original: original.toString(),
@@ -6590,7 +6590,7 @@ var getErc20Balance = async (thor, tokenAddress, address) => {
6590
6590
  if (!res) throw new Error(`Failed to get balance of ${tokenAddress}`);
6591
6591
  const original = res[0].toString();
6592
6592
  const scaled = ethers.formatEther(original);
6593
- const formatted = scaled === "0" ? "0" : chunkM6WTSZ5C_cjs.humanNumber(scaled);
6593
+ const formatted = scaled === "0" ? "0" : chunkI2O23KHV_cjs.humanNumber(scaled);
6594
6594
  return {
6595
6595
  original,
6596
6596
  scaled,
@@ -6607,11 +6607,11 @@ var useGetErc20Balance = (tokenAddress, address) => {
6607
6607
  });
6608
6608
  };
6609
6609
  var getVot3Balance = async (thor, network, address) => {
6610
- const res = await thor.contracts.load(chunkM6WTSZ5C_cjs.getConfig(network).vot3ContractAddress, vechainContractTypes.IVOT3__factory.abi).read.balanceOf(address);
6610
+ const res = await thor.contracts.load(chunkI2O23KHV_cjs.getConfig(network).vot3ContractAddress, vechainContractTypes.IVOT3__factory.abi).read.balanceOf(address);
6611
6611
  if (!res) throw new Error("Reverted");
6612
6612
  const original = res[0].toString();
6613
6613
  const scaled = ethers.formatEther(original);
6614
- const formatted = scaled === "0" ? "0" : chunkM6WTSZ5C_cjs.humanNumber(scaled);
6614
+ const formatted = scaled === "0" ? "0" : chunkI2O23KHV_cjs.humanNumber(scaled);
6615
6615
  return {
6616
6616
  original,
6617
6617
  scaled,
@@ -6635,7 +6635,7 @@ var useGetVot3Balance = (address) => {
6635
6635
  var abi2 = vechainContractTypes.VeBetterPassport__factory.abi;
6636
6636
  var method2 = "isPerson";
6637
6637
  var getIsPersonQueryKey = (user, network) => {
6638
- const address = chunkM6WTSZ5C_cjs.getConfig(network).veBetterPassportContractAddress;
6638
+ const address = chunkI2O23KHV_cjs.getConfig(network).veBetterPassportContractAddress;
6639
6639
  return getCallClauseQueryKeyWithArgs({
6640
6640
  abi: abi2,
6641
6641
  address,
@@ -6645,7 +6645,7 @@ var getIsPersonQueryKey = (user, network) => {
6645
6645
  };
6646
6646
  var useIsPerson = (user) => {
6647
6647
  const { network } = useVeChainKitConfig();
6648
- const address = chunkM6WTSZ5C_cjs.getConfig(network.type).veBetterPassportContractAddress;
6648
+ const address = chunkI2O23KHV_cjs.getConfig(network.type).veBetterPassportContractAddress;
6649
6649
  return useCallClause({
6650
6650
  abi: abi2,
6651
6651
  address,
@@ -6661,13 +6661,13 @@ var abi3 = vechainContractTypes.XAllocationVoting__factory.abi;
6661
6661
  var method3 = "getAppsOfRound";
6662
6662
  var getRoundXAppsQueryKey = (roundId, networkType) => getCallClauseQueryKeyWithArgs({
6663
6663
  abi: abi3,
6664
- address: chunkM6WTSZ5C_cjs.getConfig(networkType).xAllocationVotingContractAddress,
6664
+ address: chunkI2O23KHV_cjs.getConfig(networkType).xAllocationVotingContractAddress,
6665
6665
  method: method3,
6666
6666
  args: [BigInt(roundId ?? 0)]
6667
6667
  });
6668
6668
  var useRoundXApps = (roundId) => {
6669
6669
  const { network } = useVeChainKitConfig();
6670
- const address = chunkM6WTSZ5C_cjs.getConfig(network.type).xAllocationVotingContractAddress;
6670
+ const address = chunkI2O23KHV_cjs.getConfig(network.type).xAllocationVotingContractAddress;
6671
6671
  return useCallClause({
6672
6672
  abi: abi3,
6673
6673
  address,
@@ -6696,11 +6696,11 @@ var getXAppsSharesQueryKey = (roundId) => [
6696
6696
  var useXAppsShares = (apps, roundId) => {
6697
6697
  const thor = dappKitReact.useThor();
6698
6698
  const { network } = useVeChainKitConfig();
6699
- const address = chunkM6WTSZ5C_cjs.getConfig(network.type).xAllocationPoolContractAddress;
6699
+ const address = chunkI2O23KHV_cjs.getConfig(network.type).xAllocationPoolContractAddress;
6700
6700
  return reactQuery.useQuery({
6701
6701
  queryKey: getXAppsSharesQueryKey(roundId),
6702
6702
  queryFn: async () => {
6703
- const shares = await chunkM6WTSZ5C_cjs.executeMultipleClausesCall({
6703
+ const shares = await chunkI2O23KHV_cjs.executeMultipleClausesCall({
6704
6704
  thor,
6705
6705
  calls: apps.map(
6706
6706
  (app) => ({
@@ -6750,10 +6750,10 @@ var handlePopupError = ({
6750
6750
  defaultMessage = "Operation failed"
6751
6751
  }) => {
6752
6752
  const errorMsg = error?.message;
6753
- if (reactDeviceDetect.isMobile && errorMsg && !chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
6753
+ if (reactDeviceDetect.isMobile && errorMsg && !chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
6754
6754
  return new Error(mobileBrowserPopupMessage);
6755
6755
  }
6756
- if (errorMsg && chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
6756
+ if (errorMsg && chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
6757
6757
  return new Error(rejectedMessage);
6758
6758
  }
6759
6759
  return error instanceof Error ? error : new Error(defaultMessage);
@@ -6780,7 +6780,7 @@ var vechain = viem.defineChain({
6780
6780
  });
6781
6781
  var vechainConnector = () => {
6782
6782
  return rainbowKit.toPrivyWalletConnector({
6783
- id: chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID,
6783
+ id: chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID,
6784
6784
  name: "VeChain",
6785
6785
  iconUrl: "https://imagedelivery.net/oHBRUd2clqykxgDWmeAyLg/661dd77c-2f9d-40e7-baa1-f4e24fd7bf00/icon",
6786
6786
  smartWalletMode: false
@@ -6822,7 +6822,7 @@ var usePrivyCrossAppSdk = () => {
6822
6822
  try {
6823
6823
  if (isConnected) {
6824
6824
  await disconnectAsync();
6825
- if (chunkM6WTSZ5C_cjs.isBrowser()) {
6825
+ if (chunkI2O23KHV_cjs.isBrowser()) {
6826
6826
  window.dispatchEvent(new Event("wallet_disconnected"));
6827
6827
  }
6828
6828
  }
@@ -6837,7 +6837,7 @@ var usePrivyCrossAppSdk = () => {
6837
6837
  setIsConnecting(true);
6838
6838
  setConnectionError(null);
6839
6839
  const connector = connectors.find(
6840
- (c) => c.id === (appID || chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID)
6840
+ (c) => c.id === (appID || chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID)
6841
6841
  );
6842
6842
  if (!connector) {
6843
6843
  throw new Error("Connector not found");
@@ -6899,7 +6899,7 @@ var useWalletMetadata = (address, networkType) => {
6899
6899
  const { data: domain, isLoading: isLoadingVechainDomain } = useVechainDomain(address ?? "");
6900
6900
  const { data: avatar, isLoading: isLoadingMetadata } = useGetAvatarOfAddress(address ?? "");
6901
6901
  const { data: textRecords, isLoading: isLoadingRecords } = useGetTextRecords(domain?.domain ?? "");
6902
- const headerUrl = textRecords?.header ? chunkM6WTSZ5C_cjs.convertUriToUrl(textRecords.header, networkType) : null;
6902
+ const headerUrl = textRecords?.header ? chunkI2O23KHV_cjs.convertUriToUrl(textRecords.header, networkType) : null;
6903
6903
  return {
6904
6904
  domain: domain?.domain,
6905
6905
  image: avatar,
@@ -6931,7 +6931,7 @@ var useWallet = () => {
6931
6931
  const isConnectedWithDappKit = !!dappKitAccount;
6932
6932
  const isConnectedWithSocialLogin = authenticated && !!user;
6933
6933
  const isConnectedWithPrivy = isConnectedWithSocialLogin || isConnectedWithCrossApp;
6934
- const isConnectedWithVeChain = isConnectedWithSocialLogin && privy?.appId === chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID || isConnectedWithCrossApp && connectionCache?.ecosystemApp?.appId === chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID;
6934
+ const isConnectedWithVeChain = isConnectedWithSocialLogin && privy?.appId === chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID || isConnectedWithCrossApp && connectionCache?.ecosystemApp?.appId === chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID;
6935
6935
  const isLoading = isConnectingWithCrossApp || isReconnectingWithCrossApp || isLoadingLoginOAuth || !ready;
6936
6936
  const [isConnected, setIsConnected] = React10.useState(false);
6937
6937
  const connectionSource = isConnectedWithCrossApp ? {
@@ -6950,7 +6950,7 @@ var useWallet = () => {
6950
6950
  setIsConnected(isNowConnected);
6951
6951
  if (!isNowConnected) {
6952
6952
  clearConnectionCache();
6953
- if (chunkM6WTSZ5C_cjs.isBrowser()) {
6953
+ if (chunkI2O23KHV_cjs.isBrowser()) {
6954
6954
  window.dispatchEvent(new Event("wallet_disconnected"));
6955
6955
  }
6956
6956
  }
@@ -6998,7 +6998,7 @@ var useWallet = () => {
6998
6998
  const { data: smartAccountVersion } = useSmartAccountVersion(
6999
6999
  smartAccount?.address ?? ""
7000
7000
  );
7001
- const hasActiveSmartAccount = !!smartAccount?.address && !!account?.address && chunkM6WTSZ5C_cjs.compareAddresses(smartAccount?.address, account?.address);
7001
+ const hasActiveSmartAccount = !!smartAccount?.address && !!account?.address && chunkI2O23KHV_cjs.compareAddresses(smartAccount?.address, account?.address);
7002
7002
  const disconnect = React10.useCallback(async () => {
7003
7003
  try {
7004
7004
  setIsConnected(false);
@@ -7010,7 +7010,7 @@ var useWallet = () => {
7010
7010
  await disconnectCrossApp();
7011
7011
  }
7012
7012
  clearConnectionCache();
7013
- if (chunkM6WTSZ5C_cjs.isBrowser()) {
7013
+ if (chunkI2O23KHV_cjs.isBrowser()) {
7014
7014
  window.dispatchEvent(new Event("wallet_disconnected"));
7015
7015
  }
7016
7016
  } catch (error) {
@@ -7048,7 +7048,7 @@ var useWallet = () => {
7048
7048
  isConnectedWithPrivy,
7049
7049
  isConnectedWithVeChain,
7050
7050
  source: connectionSource,
7051
- isInAppBrowser: (chunkM6WTSZ5C_cjs.isBrowser() && window.vechain && window.vechain.isInAppBrowser) ?? false,
7051
+ isInAppBrowser: (chunkI2O23KHV_cjs.isBrowser() && window.vechain && window.vechain.isInAppBrowser) ?? false,
7052
7052
  nodeUrl,
7053
7053
  delegatorUrl: feeDelegation?.delegatorUrl,
7054
7054
  chainId,
@@ -7083,7 +7083,7 @@ var useRefreshBalances = () => {
7083
7083
  };
7084
7084
  var getXAppMetadata = async (uri, networkType) => {
7085
7085
  const metadata = await axios__default.default.get(
7086
- chunkM6WTSZ5C_cjs.convertUriToUrl(uri, networkType) || "",
7086
+ chunkI2O23KHV_cjs.convertUriToUrl(uri, networkType) || "",
7087
7087
  { timeout: 2e4 }
7088
7088
  );
7089
7089
  return metadata.data;
@@ -7095,7 +7095,7 @@ var useXAppMetadata = (xAppId) => {
7095
7095
  return reactQuery.useQuery({
7096
7096
  queryKey: ["xAppMetaData", xAppId],
7097
7097
  queryFn: async () => {
7098
- const address = chunkM6WTSZ5C_cjs.getConfig(network.type).x2EarnAppsContractAddress;
7098
+ const address = chunkI2O23KHV_cjs.getConfig(network.type).x2EarnAppsContractAddress;
7099
7099
  const contract = thor.contracts.load(address, abi5);
7100
7100
  const [app] = await contract.read.app(xAppId);
7101
7101
  const metadataURI = app?.[3] || "";
@@ -7110,7 +7110,7 @@ var useXAppMetadata = (xAppId) => {
7110
7110
  };
7111
7111
  var getIpfsMetadata = async (networkType, uri, parseJson = false) => {
7112
7112
  if (!uri) throw new Error("No URI provided");
7113
- const newUri = chunkM6WTSZ5C_cjs.convertUriToUrl(uri, networkType);
7113
+ const newUri = chunkI2O23KHV_cjs.convertUriToUrl(uri, networkType);
7114
7114
  if (!newUri) throw new Error("Invalid URI");
7115
7115
  const response = await fetch(newUri, {
7116
7116
  headers: {
@@ -7134,7 +7134,7 @@ var useIpfsMetadata = (ipfsUri, parseJson = false) => {
7134
7134
  var MAX_IMAGE_SIZE = 1024 * 1024 * 10;
7135
7135
  var getIpfsImage = async (networkType, uri) => {
7136
7136
  if (!uri) throw new Error("IPFS URI is required");
7137
- const response = await fetch(chunkM6WTSZ5C_cjs.convertUriToUrl(uri, networkType) ?? "", {
7137
+ const response = await fetch(chunkI2O23KHV_cjs.convertUriToUrl(uri, networkType) ?? "", {
7138
7138
  headers: {
7139
7139
  "X-Project-Id": "vechain-kit"
7140
7140
  }
@@ -7166,7 +7166,7 @@ var getIpfsImage = async (networkType, uri) => {
7166
7166
  resolve({
7167
7167
  image: reader.result,
7168
7168
  mime: blob.type,
7169
- mediaType: chunkM6WTSZ5C_cjs.resolveMediaTypeFromMimeType(blob.type)
7169
+ mediaType: chunkI2O23KHV_cjs.resolveMediaTypeFromMimeType(blob.type)
7170
7170
  });
7171
7171
  };
7172
7172
  reader.onerror = () => {
@@ -7630,7 +7630,7 @@ var VeChainWithPrivyLoginButton = ({ isDark, gridColumn }) => {
7630
7630
  {
7631
7631
  isDark,
7632
7632
  onClick: viewMoreLogin,
7633
- icon: isDark ? chunkEESC6JDT_cjs.VechainLogoLight : chunkEESC6JDT_cjs.VechainLogoDark,
7633
+ icon: isDark ? chunkZNQPWE32_cjs.VechainLogoLight : chunkZNQPWE32_cjs.VechainLogoDark,
7634
7634
  text: t("Use social login with VeChain"),
7635
7635
  variant: "loginWithVechain",
7636
7636
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(SocialIcons, {})
@@ -7666,7 +7666,7 @@ var VeChainLoginButton = ({ isDark, gridColumn }) => {
7666
7666
  {
7667
7667
  isDark,
7668
7668
  onClick: handleLoginWithVeChain,
7669
- icon: isDark ? chunkEESC6JDT_cjs.VechainLogoLight : chunkEESC6JDT_cjs.VechainLogoDark,
7669
+ icon: isDark ? chunkZNQPWE32_cjs.VechainLogoLight : chunkZNQPWE32_cjs.VechainLogoDark,
7670
7670
  text: t("Use social login with VeChain"),
7671
7671
  variant: "loginWithVechain",
7672
7672
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(SocialIcons, {})
@@ -7776,7 +7776,7 @@ var DappKitButton = ({ isDark, gridColumn = 2 }) => {
7776
7776
  }
7777
7777
  );
7778
7778
  }
7779
- if (errorMsg && chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
7779
+ if (errorMsg && chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
7780
7780
  return Analytics.auth.dropOff("dappkit-view", {
7781
7781
  ...source && { source }
7782
7782
  });
@@ -7810,7 +7810,7 @@ var DappKitButton = ({ isDark, gridColumn = 2 }) => {
7810
7810
  {
7811
7811
  isDark,
7812
7812
  onClick: handleDappKitClick,
7813
- icon: !dappKit?.allowedWallets?.includes("sync2") ? isDark ? chunkEESC6JDT_cjs.VeWorldLogoLight : chunkEESC6JDT_cjs.VeWorldLogoDark : io5.IoWalletOutline,
7813
+ icon: !dappKit?.allowedWallets?.includes("sync2") ? isDark ? chunkZNQPWE32_cjs.VeWorldLogoLight : chunkZNQPWE32_cjs.VeWorldLogoDark : io5.IoWalletOutline,
7814
7814
  iconWidth: "27px",
7815
7815
  text: gridColumn >= 2 ? buttonText : void 0,
7816
7816
  rightIcon: dappKit?.allowedWallets?.includes("sync2") && /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: io.IoIosArrowForward }) || void 0
@@ -8151,7 +8151,7 @@ var AccountDetailsButton = ({
8151
8151
  wordBreak: "break-word",
8152
8152
  whiteSpace: "normal",
8153
8153
  w: "full",
8154
- children: wallet?.domain ? chunkM6WTSZ5C_cjs.humanDomain(wallet?.domain ?? "", 18, 0) : chunkM6WTSZ5C_cjs.humanAddress(wallet?.address ?? "", 6, 4)
8154
+ children: wallet?.domain ? chunkI2O23KHV_cjs.humanDomain(wallet?.domain ?? "", 18, 0) : chunkI2O23KHV_cjs.humanAddress(wallet?.address ?? "", 6, 4)
8155
8155
  }
8156
8156
  )
8157
8157
  ] }),
@@ -8247,7 +8247,7 @@ var AccountSelector = ({
8247
8247
  }) => {
8248
8248
  const [copied, setCopied] = React10.useState(false);
8249
8249
  const handleCopyToClipboard = async () => {
8250
- const success = await chunkM6WTSZ5C_cjs.copyToClipboard(
8250
+ const success = await chunkI2O23KHV_cjs.copyToClipboard(
8251
8251
  wallet?.domain ?? wallet?.address ?? ""
8252
8252
  );
8253
8253
  if (success) {
@@ -8291,7 +8291,7 @@ var AccountSelector = ({
8291
8291
  props: { width: 7, height: 7 }
8292
8292
  }
8293
8293
  ),
8294
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkM6WTSZ5C_cjs.humanDomain(wallet?.domain ?? "", 22, 0) || chunkM6WTSZ5C_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
8294
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: size, fontWeight: "500", children: chunkI2O23KHV_cjs.humanDomain(wallet?.domain ?? "", 22, 0) || chunkI2O23KHV_cjs.humanAddress(wallet?.address ?? "", 6, 4) })
8295
8295
  ] }),
8296
8296
  /* @__PURE__ */ jsxRuntime.jsx(
8297
8297
  react.Icon,
@@ -8355,17 +8355,17 @@ var AssetIcons = ({
8355
8355
  border: "2px solid #00000024",
8356
8356
  alignItems: "center",
8357
8357
  justifyContent: "center",
8358
- children: chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[token.symbol] ? React10__default.default.cloneElement(
8359
- chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[token.symbol],
8358
+ children: chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[token.symbol] ? React10__default.default.cloneElement(
8359
+ chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[token.symbol],
8360
8360
  {
8361
8361
  width: `${iconSize * 0.8}px`,
8362
8362
  height: `${iconSize * 0.8}px`,
8363
8363
  rounded: "full"
8364
8364
  }
8365
- ) : chunkM6WTSZ5C_cjs.TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsxRuntime.jsx(
8365
+ ) : chunkI2O23KHV_cjs.TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsxRuntime.jsx(
8366
8366
  react.Image,
8367
8367
  {
8368
- src: chunkM6WTSZ5C_cjs.TOKEN_LOGOS[token.symbol],
8368
+ src: chunkI2O23KHV_cjs.TOKEN_LOGOS[token.symbol],
8369
8369
  alt: `${token.symbol} logo`,
8370
8370
  width: `${iconSize * 0.8}px`,
8371
8371
  height: `${iconSize * 0.8}px`,
@@ -8638,7 +8638,7 @@ var QuickActionsSection = ({ mt, setCurrentContent }) => {
8638
8638
  const { t } = reactI18next.useTranslation();
8639
8639
  const [isFirstVisit, setIsFirstVisit] = React10.useState(false);
8640
8640
  React10.useEffect(() => {
8641
- const hasVisited = chunkM6WTSZ5C_cjs.getLocalStorageItem("app-first-visit");
8641
+ const hasVisited = chunkI2O23KHV_cjs.getLocalStorageItem("app-first-visit");
8642
8642
  setIsFirstVisit(!hasVisited);
8643
8643
  }, []);
8644
8644
  const { data: upgradeRequired } = useUpgradeRequired(
@@ -8656,7 +8656,7 @@ var QuickActionsSection = ({ mt, setCurrentContent }) => {
8656
8656
  label: action.label,
8657
8657
  onClick: () => {
8658
8658
  if (isFirstVisit) {
8659
- chunkM6WTSZ5C_cjs.setLocalStorageItem("app-first-visit", "true");
8659
+ chunkI2O23KHV_cjs.setLocalStorageItem("app-first-visit", "true");
8660
8660
  setIsFirstVisit(false);
8661
8661
  }
8662
8662
  action.onClick(setCurrentContent);
@@ -8672,13 +8672,13 @@ var useFeatureAnnouncement = () => {
8672
8672
  const [isVisible, setIsVisible] = React10.useState(true);
8673
8673
  const CACHE_KEY2 = "vechain_kit_feature_announcement_closed";
8674
8674
  React10.useEffect(() => {
8675
- const isClosed = chunkM6WTSZ5C_cjs.getLocalStorageItem(CACHE_KEY2);
8675
+ const isClosed = chunkI2O23KHV_cjs.getLocalStorageItem(CACHE_KEY2);
8676
8676
  if (isClosed) {
8677
8677
  setIsVisible(false);
8678
8678
  }
8679
8679
  }, []);
8680
8680
  const closeAnnouncement = () => {
8681
- chunkM6WTSZ5C_cjs.setLocalStorageItem(CACHE_KEY2, "true");
8681
+ chunkI2O23KHV_cjs.setLocalStorageItem(CACHE_KEY2, "true");
8682
8682
  setIsVisible(false);
8683
8683
  };
8684
8684
  return {
@@ -9045,7 +9045,7 @@ var SettingsContent = ({
9045
9045
  if (contentRef.current) {
9046
9046
  contentRef.current.scrollTop = 0;
9047
9047
  }
9048
- const hasVisitedGeneral = chunkM6WTSZ5C_cjs.getLocalStorageItem("settings-general-visited");
9048
+ const hasVisitedGeneral = chunkI2O23KHV_cjs.getLocalStorageItem("settings-general-visited");
9049
9049
  setShowGeneralRedDot(!hasVisitedGeneral);
9050
9050
  }, []);
9051
9051
  const handleCustomizeProfile = () => {
@@ -9089,7 +9089,7 @@ var SettingsContent = ({
9089
9089
  Analytics.settings.connectionDetailsViewed();
9090
9090
  };
9091
9091
  const handleGeneralSettings = () => {
9092
- chunkM6WTSZ5C_cjs.setLocalStorageItem("settings-general-visited", "true");
9092
+ chunkI2O23KHV_cjs.setLocalStorageItem("settings-general-visited", "true");
9093
9093
  setShowGeneralRedDot(false);
9094
9094
  setCurrentContent("general-settings");
9095
9095
  Analytics.settings.generalSettingsViewed();
@@ -9290,7 +9290,7 @@ var NetworkInfo = () => {
9290
9290
  InfoRow,
9291
9291
  {
9292
9292
  label: t("Node URL"),
9293
- value: network.nodeUrl || chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl
9293
+ value: network.nodeUrl || chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl
9294
9294
  }
9295
9295
  ),
9296
9296
  connection.isConnectedWithPrivy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -9491,10 +9491,10 @@ var WalletSecuredBy = () => {
9491
9491
  children: [
9492
9492
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") }),
9493
9493
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { justify: "center", children: [
9494
- /* @__PURE__ */ jsxRuntime.jsx(chunkEESC6JDT_cjs.PrivyLogo, { isDark, w: "50px" }),
9494
+ /* @__PURE__ */ jsxRuntime.jsx(chunkZNQPWE32_cjs.PrivyLogo, { isDark, w: "50px" }),
9495
9495
  /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: pi.PiLineVertical, ml: 3 }),
9496
9496
  connection.isConnectedWithVeChain ? /* @__PURE__ */ jsxRuntime.jsx(
9497
- chunkEESC6JDT_cjs.VechainLogo,
9497
+ chunkZNQPWE32_cjs.VechainLogo,
9498
9498
  {
9499
9499
  isDark,
9500
9500
  w: "80px",
@@ -9527,7 +9527,7 @@ var WalletSecuredBy = () => {
9527
9527
  var EmbeddedWalletContent = ({ setCurrentContent }) => {
9528
9528
  const { t } = reactI18next.useTranslation();
9529
9529
  const { connectedWallet, connection } = useWallet();
9530
- const walletImage = chunkM6WTSZ5C_cjs.getPicassoImage(connectedWallet?.address ?? "");
9530
+ const walletImage = chunkI2O23KHV_cjs.getPicassoImage(connectedWallet?.address ?? "");
9531
9531
  const { getConnectionCache } = useCrossAppConnectionCache();
9532
9532
  const connectionCache = getConnectionCache();
9533
9533
  const { darkMode: isDark } = useVeChainKitConfig();
@@ -10037,8 +10037,8 @@ var SendTokenContent = ({
10037
10037
  bg: isDark ? "whiteAlpha.300" : "blackAlpha.300"
10038
10038
  },
10039
10039
  onClick: () => setIsSelectingToken(true),
10040
- leftIcon: chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol] ? React10__default.default.cloneElement(
10041
- chunkM6WTSZ5C_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol],
10040
+ leftIcon: chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol] ? React10__default.default.cloneElement(
10041
+ chunkI2O23KHV_cjs.TOKEN_LOGO_COMPONENTS[selectedToken.symbol],
10042
10042
  {
10043
10043
  boxSize: "20px",
10044
10044
  borderRadius: "full"
@@ -10046,7 +10046,7 @@ var SendTokenContent = ({
10046
10046
  ) : /* @__PURE__ */ jsxRuntime.jsx(
10047
10047
  react.Image,
10048
10048
  {
10049
- src: chunkM6WTSZ5C_cjs.TOKEN_LOGOS[selectedToken.symbol],
10049
+ src: chunkI2O23KHV_cjs.TOKEN_LOGOS[selectedToken.symbol],
10050
10050
  alt: `${selectedToken.symbol} logo`,
10051
10051
  boxSize: "20px",
10052
10052
  borderRadius: "full",
@@ -10246,7 +10246,7 @@ var SendTokenSummaryContent = ({
10246
10246
  if (avatar) {
10247
10247
  return avatar;
10248
10248
  }
10249
- return chunkM6WTSZ5C_cjs.getPicassoImage(resolvedAddress || toAddressOrDomain);
10249
+ return chunkI2O23KHV_cjs.getPicassoImage(resolvedAddress || toAddressOrDomain);
10250
10250
  }, [avatar, network.type, resolvedAddress, toAddressOrDomain]);
10251
10251
  const handleSend = async () => {
10252
10252
  if (upgradeRequired) {
@@ -10368,7 +10368,7 @@ var SendTokenSummaryContent = ({
10368
10368
  });
10369
10369
  };
10370
10370
  const handleError = (error) => {
10371
- if (error && chunkM6WTSZ5C_cjs.isRejectionError(error)) {
10371
+ if (error && chunkI2O23KHV_cjs.isRejectionError(error)) {
10372
10372
  Analytics.send.flow("review", {
10373
10373
  tokenSymbol: selectedToken.symbol,
10374
10374
  amount,
@@ -10677,7 +10677,7 @@ var DomainListItem = ({
10677
10677
  props: {
10678
10678
  width: "40px",
10679
10679
  height: "40px",
10680
- src: metadata.image ?? chunkM6WTSZ5C_cjs.getPicassoImage(domain.name),
10680
+ src: metadata.image ?? chunkI2O23KHV_cjs.getPicassoImage(domain.name),
10681
10681
  alt: domain.name
10682
10682
  }
10683
10683
  }
@@ -10689,7 +10689,7 @@ var DomainListItem = ({
10689
10689
  color: isDark ? "whiteAlpha.900" : "gray.700",
10690
10690
  fontSize: "md",
10691
10691
  fontWeight: "500",
10692
- children: chunkM6WTSZ5C_cjs.humanDomain(domain.name, 24, 0)
10692
+ children: chunkI2O23KHV_cjs.humanDomain(domain.name, 24, 0)
10693
10693
  }
10694
10694
  ),
10695
10695
  isCurrentDomain && /* @__PURE__ */ jsxRuntime.jsx(
@@ -11070,7 +11070,7 @@ var ChooseNameSummaryContent = ({
11070
11070
  );
11071
11071
  const { open: openUpgradeSmartAccountModal } = useUpgradeSmartAccountModal();
11072
11072
  const handleError = (error) => {
11073
- if (chunkM6WTSZ5C_cjs.isRejectionError(error)) {
11073
+ if (chunkI2O23KHV_cjs.isRejectionError(error)) {
11074
11074
  Analytics.nameSelection.dropOff("confirmation", {
11075
11075
  isError: true,
11076
11076
  name: fullDomain,
@@ -11483,7 +11483,7 @@ var CustomizationContent = ({
11483
11483
  setPreviewImageUrl(newPreviewUrl);
11484
11484
  const uploadedImage = await onUpload(file);
11485
11485
  if (!uploadedImage) throw new Error("Failed to compress image");
11486
- const ipfsHash = await chunkM6WTSZ5C_cjs.uploadBlobToIPFS(
11486
+ const ipfsHash = await chunkI2O23KHV_cjs.uploadBlobToIPFS(
11487
11487
  uploadedImage.file,
11488
11488
  file.name,
11489
11489
  network.type
@@ -11586,7 +11586,7 @@ var CustomizationContent = ({
11586
11586
  backgroundPosition: "center",
11587
11587
  position: "relative",
11588
11588
  h: "80px",
11589
- background: `no-repeat url('${chunkM6WTSZ5C_cjs.getPicassoImage(
11589
+ background: `no-repeat url('${chunkI2O23KHV_cjs.getPicassoImage(
11590
11590
  account?.address ?? ""
11591
11591
  )}')`,
11592
11592
  w: "100%",
@@ -11982,7 +11982,7 @@ var CustomizationSummaryContent = ({
11982
11982
  }
11983
11983
  },
11984
11984
  onError: (error) => {
11985
- if (error && chunkM6WTSZ5C_cjs.isRejectionError(error?.message ?? "")) {
11985
+ if (error && chunkI2O23KHV_cjs.isRejectionError(error?.message ?? "")) {
11986
11986
  Analytics.customization.dropOff({
11987
11987
  stage: "confirmation",
11988
11988
  reason: "wallet_rejected",
@@ -12073,14 +12073,14 @@ var CustomizationSummaryContent = ({
12073
12073
  if (changes.avatarIpfsHash) {
12074
12074
  queryClient.setQueryData(
12075
12075
  getAvatarQueryKey(domain, network.type),
12076
- chunkM6WTSZ5C_cjs.convertUriToUrl(
12076
+ chunkI2O23KHV_cjs.convertUriToUrl(
12077
12077
  "ipfs://" + changes.avatarIpfsHash,
12078
12078
  network.type
12079
12079
  )
12080
12080
  );
12081
12081
  queryClient.setQueryData(
12082
12082
  getAvatarOfAddressQueryKey(account?.address ?? ""),
12083
- chunkM6WTSZ5C_cjs.convertUriToUrl(
12083
+ chunkI2O23KHV_cjs.convertUriToUrl(
12084
12084
  "ipfs://" + changes.avatarIpfsHash,
12085
12085
  network.type
12086
12086
  )
@@ -12584,7 +12584,7 @@ var ManageCustomTokenContent = ({
12584
12584
  /* @__PURE__ */ jsxRuntime.jsx(
12585
12585
  react.Image,
12586
12586
  {
12587
- src: chunkM6WTSZ5C_cjs.TOKEN_LOGOS[token?.symbol],
12587
+ src: chunkI2O23KHV_cjs.TOKEN_LOGOS[token?.symbol],
12588
12588
  alt: `${token.symbol} logo`,
12589
12589
  boxSize: "20px",
12590
12590
  borderRadius: "full",
@@ -12614,7 +12614,7 @@ var ManageCustomTokenContent = ({
12614
12614
  ),
12615
12615
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: "medium", children: token.symbol ?? "Unknown" })
12616
12616
  ] }),
12617
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { opacity: 0.7, children: chunkM6WTSZ5C_cjs.humanAddress(
12617
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { opacity: 0.7, children: chunkI2O23KHV_cjs.humanAddress(
12618
12618
  token.address ?? "",
12619
12619
  4,
12620
12620
  4
@@ -12664,7 +12664,7 @@ var BridgeContent = ({ setCurrentContent }) => {
12664
12664
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalCloseButton, {})
12665
12665
  ] }),
12666
12666
  /* @__PURE__ */ jsxRuntime.jsx(react.Container, { maxW: "container.lg", children: /* @__PURE__ */ jsxRuntime.jsx(react.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "center", w: "full", children: [
12667
- /* @__PURE__ */ jsxRuntime.jsx(chunkEESC6JDT_cjs.VechainEnergy, { isDark, borderRadius: "xl" }),
12667
+ /* @__PURE__ */ jsxRuntime.jsx(chunkZNQPWE32_cjs.VechainEnergy, { isDark, borderRadius: "xl" }),
12668
12668
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", textAlign: "center", children: t(
12669
12669
  "Exchange your digital assets between VeChain and other blockchain networks easily and securely. Swaps are executed through partners that leverage both decentralized and centralized exchanges to convert tokens."
12670
12670
  ) })
@@ -12688,7 +12688,7 @@ var ChangeCurrencyContent = ({
12688
12688
  const { t } = reactI18next.useTranslation();
12689
12689
  const { currentCurrency, changeCurrency, allCurrencies: allCurrencies2 } = useCurrency();
12690
12690
  React10.useEffect(() => {
12691
- chunkM6WTSZ5C_cjs.setLocalStorageItem("settings-currency-visited", "true");
12691
+ chunkI2O23KHV_cjs.setLocalStorageItem("settings-currency-visited", "true");
12692
12692
  }, []);
12693
12693
  const renderCurrencyButton = (currency) => /* @__PURE__ */ jsxRuntime.jsxs(
12694
12694
  react.Button,
@@ -12702,7 +12702,7 @@ var ChangeCurrencyContent = ({
12702
12702
  _hover: { bg: "whiteAlpha.100" },
12703
12703
  children: [
12704
12704
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 3, children: [
12705
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xl", children: chunkM6WTSZ5C_cjs.CURRENCY_SYMBOLS[currency] }),
12705
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "xl", children: chunkI2O23KHV_cjs.CURRENCY_SYMBOLS[currency] }),
12706
12706
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { children: currency.toUpperCase() })
12707
12707
  ] }),
12708
12708
  currentCurrency === currency && /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: bs.BsCheck, boxSize: 5, color: "blue.500" })
@@ -12738,11 +12738,11 @@ var GeneralSettingsContent = ({ setCurrentContent }) => {
12738
12738
  const { t } = reactI18next.useTranslation();
12739
12739
  const [showCurrencyRedDot, setShowCurrencyRedDot] = React10.useState(false);
12740
12740
  React10.useEffect(() => {
12741
- const hasVisitedCurrency = chunkM6WTSZ5C_cjs.getLocalStorageItem("settings-currency-visited");
12741
+ const hasVisitedCurrency = chunkI2O23KHV_cjs.getLocalStorageItem("settings-currency-visited");
12742
12742
  setShowCurrencyRedDot(!hasVisitedCurrency);
12743
12743
  }, []);
12744
12744
  const handleCurrencyClick = () => {
12745
- chunkM6WTSZ5C_cjs.setLocalStorageItem("settings-currency-visited", "true");
12745
+ chunkI2O23KHV_cjs.setLocalStorageItem("settings-currency-visited", "true");
12746
12746
  setShowCurrencyRedDot(false);
12747
12747
  Analytics.settings.currencySettingsViewed();
12748
12748
  setCurrentContent("change-currency");
@@ -13067,11 +13067,11 @@ var TermsAndPrivacyAccordion = () => {
13067
13067
  const { agreements, documents } = useLegalDocuments();
13068
13068
  const agreementsByDocumentType = React10.useMemo(() => {
13069
13069
  const userAgreements = agreements?.filter(
13070
- (agreement) => chunkM6WTSZ5C_cjs.compareAddresses(agreement.walletAddress, account?.address)
13070
+ (agreement) => chunkI2O23KHV_cjs.compareAddresses(agreement.walletAddress, account?.address)
13071
13071
  );
13072
13072
  const vechainKitDefaultTerms = {
13073
13073
  id: "vechain-kit-terms",
13074
- ...chunkM6WTSZ5C_cjs.VECHAIN_KIT_TERMS_CONFIG,
13074
+ ...chunkI2O23KHV_cjs.VECHAIN_KIT_TERMS_CONFIG,
13075
13075
  documentType: "terms" /* TERMS */,
13076
13076
  documentSource: "vechain-kit" /* VECHAIN_KIT */,
13077
13077
  walletAddress: account?.address ?? "",
@@ -13398,7 +13398,7 @@ var PrivyLinkedAccounts = ({ onBack }) => {
13398
13398
  case "phone":
13399
13399
  return account.number;
13400
13400
  case "wallet":
13401
- return `${chunkM6WTSZ5C_cjs.humanAddress(account.address)} - ${account.walletClientType}`;
13401
+ return `${chunkI2O23KHV_cjs.humanAddress(account.address)} - ${account.walletClientType}`;
13402
13402
  default:
13403
13403
  return "";
13404
13404
  }
@@ -13827,40 +13827,40 @@ var useNotifications = () => {
13827
13827
  };
13828
13828
  }, []);
13829
13829
  const initializeNotifications = React10.useCallback(() => {
13830
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return;
13830
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return;
13831
13831
  const keys = getStorageKeys(account.address);
13832
- const isInitialized = chunkM6WTSZ5C_cjs.getLocalStorageItem(keys.initialized);
13832
+ const isInitialized = chunkI2O23KHV_cjs.getLocalStorageItem(keys.initialized);
13833
13833
  if (!isInitialized) {
13834
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13834
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13835
13835
  keys.notifications,
13836
13836
  JSON.stringify(DEFAULT_NOTIFICATIONS)
13837
13837
  );
13838
- chunkM6WTSZ5C_cjs.setLocalStorageItem(keys.initialized, "true");
13838
+ chunkI2O23KHV_cjs.setLocalStorageItem(keys.initialized, "true");
13839
13839
  }
13840
13840
  }, [account?.address, getStorageKeys]);
13841
13841
  React10.useEffect(() => {
13842
13842
  initializeNotifications();
13843
13843
  }, [initializeNotifications]);
13844
13844
  const getNotifications = React10.useCallback(() => {
13845
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return [];
13845
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return [];
13846
13846
  const keys = getStorageKeys(account.address);
13847
- const cached = chunkM6WTSZ5C_cjs.getLocalStorageItem(keys.notifications);
13847
+ const cached = chunkI2O23KHV_cjs.getLocalStorageItem(keys.notifications);
13848
13848
  if (!cached) return [];
13849
13849
  return JSON.parse(cached);
13850
13850
  }, [account?.address, getStorageKeys]);
13851
13851
  const getArchivedNotifications = React10.useCallback(() => {
13852
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return [];
13852
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return [];
13853
13853
  const keys = getStorageKeys(account.address);
13854
- const cached = chunkM6WTSZ5C_cjs.getLocalStorageItem(keys.archived);
13854
+ const cached = chunkI2O23KHV_cjs.getLocalStorageItem(keys.archived);
13855
13855
  if (!cached) return [];
13856
13856
  return JSON.parse(cached);
13857
13857
  }, [account?.address, getStorageKeys]);
13858
13858
  const addNotification = React10.useCallback(
13859
13859
  (notification) => {
13860
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return;
13860
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return;
13861
13861
  const keys = getStorageKeys(account.address);
13862
13862
  const notifications = getNotifications();
13863
- const archivedCache = chunkM6WTSZ5C_cjs.getLocalStorageItem(keys.archived);
13863
+ const archivedCache = chunkI2O23KHV_cjs.getLocalStorageItem(keys.archived);
13864
13864
  const archivedNotifications = archivedCache ? JSON.parse(archivedCache) : [];
13865
13865
  const isDuplicate = [
13866
13866
  ...notifications,
@@ -13873,7 +13873,7 @@ var useNotifications = () => {
13873
13873
  timestamp: Date.now(),
13874
13874
  isRead: false
13875
13875
  };
13876
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13876
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13877
13877
  keys.notifications,
13878
13878
  JSON.stringify([newNotification, ...notifications])
13879
13879
  );
@@ -13882,13 +13882,13 @@ var useNotifications = () => {
13882
13882
  );
13883
13883
  const deleteNotification = React10.useCallback(
13884
13884
  (notificationId) => {
13885
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return;
13885
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return;
13886
13886
  const keys = getStorageKeys(account.address);
13887
13887
  const notifications = getNotifications();
13888
13888
  const updatedNotifications = notifications.filter(
13889
13889
  (n) => n.id !== notificationId
13890
13890
  );
13891
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13891
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13892
13892
  keys.notifications,
13893
13893
  JSON.stringify(updatedNotifications)
13894
13894
  );
@@ -13896,14 +13896,14 @@ var useNotifications = () => {
13896
13896
  [account?.address, getNotifications, getStorageKeys]
13897
13897
  );
13898
13898
  const clearAllNotifications = React10.useCallback(() => {
13899
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return;
13899
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return;
13900
13900
  const keys = getStorageKeys(account.address);
13901
13901
  const notifications = getNotifications();
13902
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13902
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13903
13903
  keys.archived,
13904
13904
  JSON.stringify([...getArchivedNotifications(), ...notifications])
13905
13905
  );
13906
- chunkM6WTSZ5C_cjs.setLocalStorageItem(keys.notifications, JSON.stringify([]));
13906
+ chunkI2O23KHV_cjs.setLocalStorageItem(keys.notifications, JSON.stringify([]));
13907
13907
  }, [
13908
13908
  account?.address,
13909
13909
  getNotifications,
@@ -13912,7 +13912,7 @@ var useNotifications = () => {
13912
13912
  ]);
13913
13913
  const markAsRead = React10.useCallback(
13914
13914
  (notificationId) => {
13915
- if (!account?.address || !chunkM6WTSZ5C_cjs.isBrowser()) return;
13915
+ if (!account?.address || !chunkI2O23KHV_cjs.isBrowser()) return;
13916
13916
  const keys = getStorageKeys(account.address);
13917
13917
  const notifications = getNotifications();
13918
13918
  const archivedNotifications = getArchivedNotifications();
@@ -13927,11 +13927,11 @@ var useNotifications = () => {
13927
13927
  { ...notificationToArchive, isRead: true },
13928
13928
  ...archivedNotifications
13929
13929
  ];
13930
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13930
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13931
13931
  keys.notifications,
13932
13932
  JSON.stringify(updatedNotifications)
13933
13933
  );
13934
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
13934
+ chunkI2O23KHV_cjs.setLocalStorageItem(
13935
13935
  keys.archived,
13936
13936
  JSON.stringify(updatedArchivedNotifications)
13937
13937
  );
@@ -14172,7 +14172,7 @@ var SharedAppCard = ({
14172
14172
  react.Image,
14173
14173
  {
14174
14174
  src: imageUrl,
14175
- fallbackSrc: chunkM6WTSZ5C_cjs.notFoundImage,
14175
+ fallbackSrc: chunkI2O23KHV_cjs.notFoundImage,
14176
14176
  alt: name,
14177
14177
  height: "90px",
14178
14178
  objectFit: "contain",
@@ -14294,7 +14294,7 @@ var ShortcutsSection = ({}) => {
14294
14294
  react.Image,
14295
14295
  {
14296
14296
  src: shortcut.image,
14297
- fallbackSrc: chunkM6WTSZ5C_cjs.notFoundImage,
14297
+ fallbackSrc: chunkI2O23KHV_cjs.notFoundImage,
14298
14298
  alt: shortcut.name,
14299
14299
  objectFit: "contain",
14300
14300
  rounded: "full"
@@ -14781,7 +14781,7 @@ var TransactionModalContent = ({
14781
14781
  }
14782
14782
  };
14783
14783
  const statusConfig = getStatusConfig();
14784
- const socialDescription = `${chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`;
14784
+ const socialDescription = `${chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`;
14785
14785
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
14786
14786
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
14787
14787
  /* @__PURE__ */ jsxRuntime.jsx(react.ModalHeader, { children: statusConfig.title }),
@@ -14859,7 +14859,7 @@ var TransactionModalContent = ({
14859
14859
  uiConfig?.showExplorerButton && txReceipt?.meta.txID && /* @__PURE__ */ jsxRuntime.jsx(
14860
14860
  react.Link,
14861
14861
  {
14862
- href: `${chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
14862
+ href: `${chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
14863
14863
  isExternal: true,
14864
14864
  opacity: 0.5,
14865
14865
  fontSize: "14px",
@@ -14922,7 +14922,7 @@ var SuccessfulOperationContent = ({
14922
14922
  }) => {
14923
14923
  const { t } = reactI18next.useTranslation();
14924
14924
  const { network, darkMode } = useVeChainKitConfig();
14925
- const explorerUrl = chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl;
14925
+ const explorerUrl = chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl;
14926
14926
  const socialDescription = `${explorerUrl}/${txId}`;
14927
14927
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
14928
14928
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -15318,19 +15318,19 @@ var WalletDisplay = ({ variant }) => {
15318
15318
  return null;
15319
15319
  }
15320
15320
  if (variant === "iconAndDomain") {
15321
- return account.domain ? /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkM6WTSZ5C_cjs.humanDomain(account?.domain ?? "", 16, 0) }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkM6WTSZ5C_cjs.humanAddress(account.address ?? "", 6, 4) });
15321
+ return account.domain ? /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkI2O23KHV_cjs.humanDomain(account?.domain ?? "", 16, 0) }) : /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", children: chunkI2O23KHV_cjs.humanAddress(account.address ?? "", 6, 4) });
15322
15322
  }
15323
15323
  if (variant === "iconDomainAndAssets") {
15324
15324
  return /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { spacing: 4, children: [
15325
15325
  /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 0, alignItems: "flex-start", children: [
15326
- account.domain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "bold", children: chunkM6WTSZ5C_cjs.humanDomain(account?.domain ?? "", 16, 0) }),
15326
+ account.domain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "bold", children: chunkI2O23KHV_cjs.humanDomain(account?.domain ?? "", 16, 0) }),
15327
15327
  /* @__PURE__ */ jsxRuntime.jsx(
15328
15328
  react.Text,
15329
15329
  {
15330
15330
  fontSize: account.domain ? "xs" : "sm",
15331
15331
  opacity: account.domain ? 0.5 : 1,
15332
15332
  "data-testid": "trimmed-address",
15333
- children: chunkM6WTSZ5C_cjs.humanAddress(account.address ?? "", 4, 4)
15333
+ children: chunkI2O23KHV_cjs.humanAddress(account.address ?? "", 4, 4)
15334
15334
  }
15335
15335
  )
15336
15336
  ] }),
@@ -15338,13 +15338,13 @@ var WalletDisplay = ({ variant }) => {
15338
15338
  ] });
15339
15339
  }
15340
15340
  return /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 0, alignItems: "flex-start", children: [
15341
- account.domain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "bold", children: chunkM6WTSZ5C_cjs.humanDomain(account?.domain ?? "", 16, 0) }),
15341
+ account.domain && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "bold", children: chunkI2O23KHV_cjs.humanDomain(account?.domain ?? "", 16, 0) }),
15342
15342
  /* @__PURE__ */ jsxRuntime.jsx(
15343
15343
  react.Text,
15344
15344
  {
15345
15345
  fontSize: account.domain ? "xs" : "sm",
15346
15346
  opacity: account.domain ? 0.5 : 1,
15347
- children: chunkM6WTSZ5C_cjs.humanAddress(account.address ?? "", 4, 4)
15347
+ children: chunkI2O23KHV_cjs.humanAddress(account.address ?? "", 4, 4)
15348
15348
  }
15349
15349
  )
15350
15350
  ] });
@@ -15523,7 +15523,7 @@ var TransactionToastContent = ({
15523
15523
  }) => {
15524
15524
  const { t } = reactI18next.useTranslation();
15525
15525
  const { network } = useVeChainKitConfig();
15526
- const explorerUrl = chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl;
15526
+ const explorerUrl = chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl;
15527
15527
  const errorMessage = React10.useMemo(() => {
15528
15528
  if (!txError) return null;
15529
15529
  return txError.reason || t("Something went wrong. Please try again.");
@@ -15852,7 +15852,7 @@ var EcosystemContent = ({ onClose, appsInfo, isLoading }) => {
15852
15852
  onClose();
15853
15853
  } catch (error) {
15854
15854
  const errorMsg = error?.message;
15855
- if (errorMsg && chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
15855
+ if (errorMsg && chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
15856
15856
  Analytics.auth.dropOff("ecosystem-app-connect", {
15857
15857
  ...appName && { appName }
15858
15858
  });
@@ -15994,7 +15994,7 @@ var ProfileCard = ({
15994
15994
  const { network } = useVeChainKitConfig();
15995
15995
  const { openAccountModal, closeAccountModal } = useModal();
15996
15996
  const metadata = useWalletMetadata(address, network.type);
15997
- const headerImageSvg = chunkM6WTSZ5C_cjs.getPicassoImage(address);
15997
+ const headerImageSvg = chunkI2O23KHV_cjs.getPicassoImage(address);
15998
15998
  const isConnectedAccount = address === account?.address;
15999
15999
  const hasLinks = metadata?.records?.url || metadata?.records?.["com.x"] || metadata?.records?.email;
16000
16000
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Card, { variant: "vechainKitBase", ...style?.card, children: [
@@ -16184,7 +16184,7 @@ var SuccessfulOperationContent2 = ({
16184
16184
  }) => {
16185
16185
  const { t } = reactI18next.useTranslation();
16186
16186
  const { network, darkMode } = useVeChainKitConfig();
16187
- const explorerUrl = chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl;
16187
+ const explorerUrl = chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl;
16188
16188
  const socialDescription = `${explorerUrl}/${txId}`;
16189
16189
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
16190
16190
  /* @__PURE__ */ jsxRuntime.jsxs(StickyHeaderContainer, { children: [
@@ -16760,7 +16760,7 @@ var EnsureChakraProvider = ({
16760
16760
  };
16761
16761
  var EnsureColorModeScript = ({ darkMode }) => {
16762
16762
  try {
16763
- const existingScript = chunkM6WTSZ5C_cjs.safeQuerySelector("[data-chakra-color-mode]");
16763
+ const existingScript = chunkI2O23KHV_cjs.safeQuerySelector("[data-chakra-color-mode]");
16764
16764
  if (existingScript) {
16765
16765
  return null;
16766
16766
  }
@@ -16781,6 +16781,14 @@ var useVechainKitThemeConfig = () => {
16781
16781
  }
16782
16782
  return context;
16783
16783
  };
16784
+ var ColorModeSync = ({ darkMode = false }) => {
16785
+ const { setColorMode, colorMode: currentColorMode } = react.useColorMode();
16786
+ React10.useEffect(() => {
16787
+ const colorMode = darkMode ? "dark" : "light";
16788
+ if (currentColorMode !== colorMode) setColorMode(colorMode);
16789
+ }, [darkMode]);
16790
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
16791
+ };
16784
16792
  var VechainKitThemeProvider = ({
16785
16793
  children,
16786
16794
  darkMode = false
@@ -16798,16 +16806,19 @@ var VechainKitThemeProvider = ({
16798
16806
  );
16799
16807
  return /* @__PURE__ */ jsxRuntime.jsxs(VechainKitThemeContext.Provider, { value: { portalRootRef }, children: [
16800
16808
  /* @__PURE__ */ jsxRuntime.jsx(EnsureColorModeScript, { darkMode }),
16801
- /* @__PURE__ */ jsxRuntime.jsx(EnsureChakraProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
16802
- react.Box,
16803
- {
16804
- id: "vechain-kit-root",
16805
- ref: portalRootRef,
16806
- bg: "transparent",
16807
- borderRadius: "12px",
16808
- children
16809
- }
16810
- ) }),
16809
+ /* @__PURE__ */ jsxRuntime.jsxs(EnsureChakraProvider, { theme, children: [
16810
+ /* @__PURE__ */ jsxRuntime.jsx(ColorModeSync, { darkMode }),
16811
+ /* @__PURE__ */ jsxRuntime.jsx(
16812
+ react.Box,
16813
+ {
16814
+ id: "vechain-kit-root",
16815
+ ref: portalRootRef,
16816
+ bg: "transparent",
16817
+ borderRadius: "12px",
16818
+ children
16819
+ }
16820
+ )
16821
+ ] }),
16811
16822
  /* @__PURE__ */ jsxRuntime.jsx(ToastContainer, {})
16812
16823
  ] });
16813
16824
  };
@@ -16824,7 +16835,7 @@ var ModalProvider = ({ children }) => {
16824
16835
  const [isConnectModalOpen, setIsConnectModalOpen] = React10.useState(false);
16825
16836
  const { setSource, connect } = dappKitReact.useWallet();
16826
16837
  const openConnectModal = React10.useCallback(() => {
16827
- if (chunkM6WTSZ5C_cjs.isBrowser() && window.vechain && window.vechain.isInAppBrowser) {
16838
+ if (chunkI2O23KHV_cjs.isBrowser() && window.vechain && window.vechain.isInAppBrowser) {
16828
16839
  setSource("veworld");
16829
16840
  connect();
16830
16841
  } else {
@@ -17181,7 +17192,7 @@ var useReceiveModal = () => {
17181
17192
  var ReceiveModalProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
17182
17193
  var useLoginModalContent = () => {
17183
17194
  const { privy, loginMethods } = useVeChainKitConfig();
17184
- const isVeChainApp = privy?.appId === chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID;
17195
+ const isVeChainApp = privy?.appId === chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID;
17185
17196
  const isLoginMethodEnabled = (method7) => {
17186
17197
  if (!loginMethods) return true;
17187
17198
  if (Array.isArray(method7)) {
@@ -17424,12 +17435,16 @@ var useLoginWithPasskey = () => {
17424
17435
  };
17425
17436
  var useLoginWithOAuth2 = () => {
17426
17437
  const { createWallet } = reactAuth.useCreateWallet();
17427
- const { initOAuth: privyInitOAuth } = reactAuth.useLoginWithOAuth({
17428
- onComplete: async ({ isNewUser }) => {
17438
+ const handleComplete = React10.useCallback(
17439
+ async ({ isNewUser }) => {
17429
17440
  if (isNewUser) {
17430
17441
  await createWallet();
17431
17442
  }
17432
- }
17443
+ },
17444
+ [createWallet]
17445
+ );
17446
+ const { initOAuth: privyInitOAuth } = reactAuth.useLoginWithOAuth({
17447
+ onComplete: handleComplete
17433
17448
  });
17434
17449
  const { user } = reactAuth.usePrivy();
17435
17450
  const initOAuth = async ({ provider }) => {
@@ -17444,7 +17459,7 @@ var useLoginWithOAuth2 = () => {
17444
17459
  });
17445
17460
  } catch (error) {
17446
17461
  const errorMsg = error instanceof Error ? error.message : "Unknown error";
17447
- if (chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
17462
+ if (chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
17448
17463
  Analytics.auth.dropOff("oauth", {
17449
17464
  ...provider && { provider }
17450
17465
  });
@@ -17464,17 +17479,17 @@ var useCrossAppConnectionCache = () => {
17464
17479
  timestamp: Date.now(),
17465
17480
  ecosystemApp
17466
17481
  };
17467
- chunkM6WTSZ5C_cjs.setLocalStorageItem(CACHE_KEY2, JSON.stringify(cacheData));
17482
+ chunkI2O23KHV_cjs.setLocalStorageItem(CACHE_KEY2, JSON.stringify(cacheData));
17468
17483
  },
17469
17484
  []
17470
17485
  );
17471
17486
  const getConnectionCache = React10.useCallback(() => {
17472
- const cached = chunkM6WTSZ5C_cjs.getLocalStorageItem(CACHE_KEY2);
17487
+ const cached = chunkI2O23KHV_cjs.getLocalStorageItem(CACHE_KEY2);
17473
17488
  if (!cached) return null;
17474
17489
  return JSON.parse(cached);
17475
17490
  }, []);
17476
17491
  const clearConnectionCache = React10.useCallback(() => {
17477
- chunkM6WTSZ5C_cjs.removeLocalStorageItem(CACHE_KEY2);
17492
+ chunkI2O23KHV_cjs.removeLocalStorageItem(CACHE_KEY2);
17478
17493
  }, []);
17479
17494
  return {
17480
17495
  setConnectionCache,
@@ -17487,16 +17502,16 @@ var useCrossAppConnectionCache = () => {
17487
17502
  var useLoginWithVeChain = () => {
17488
17503
  const { login: loginWithVeChain } = usePrivyCrossAppSdk();
17489
17504
  const { setConnectionCache } = useCrossAppConnectionCache();
17490
- const { data: appsInfo } = useFetchAppInfo([chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID]);
17505
+ const { data: appsInfo } = useFetchAppInfo([chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID]);
17491
17506
  const { user } = reactAuth.usePrivy();
17492
17507
  const login = async () => {
17493
17508
  try {
17494
17509
  Analytics.auth.methodSelected("vechain" /* VECHAIN */);
17495
- await loginWithVeChain(chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID);
17510
+ await loginWithVeChain(chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID);
17496
17511
  setConnectionCache({
17497
17512
  name: "VeChain",
17498
- logoUrl: appsInfo?.[chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID]?.logo_url,
17499
- appId: chunkM6WTSZ5C_cjs.VECHAIN_PRIVY_APP_ID,
17513
+ logoUrl: appsInfo?.[chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID]?.logo_url,
17514
+ appId: chunkI2O23KHV_cjs.VECHAIN_PRIVY_APP_ID,
17500
17515
  website: "https://governance.vebetterdao.org"
17501
17516
  });
17502
17517
  Analytics.auth.completed({
@@ -17505,7 +17520,7 @@ var useLoginWithVeChain = () => {
17505
17520
  });
17506
17521
  } catch (error) {
17507
17522
  const errorMsg = error instanceof Error ? error.message : "Unknown error";
17508
- if (chunkM6WTSZ5C_cjs.isRejectionError(errorMsg)) {
17523
+ if (chunkI2O23KHV_cjs.isRejectionError(errorMsg)) {
17509
17524
  Analytics.auth.dropOff("vechain-approval");
17510
17525
  } else {
17511
17526
  Analytics.auth.failed("vechain" /* VECHAIN */, errorMsg);
@@ -17529,8 +17544,8 @@ var getAppHubAppsQueryKey = () => ["VECHAIN_KIT", "appHub", "apps"];
17529
17544
  var fetchAppHubApps = async () => {
17530
17545
  if (typeof window !== "undefined") {
17531
17546
  try {
17532
- const cachedData = chunkM6WTSZ5C_cjs.getLocalStorageItem(CACHE_KEY);
17533
- const cacheExpiry = chunkM6WTSZ5C_cjs.getLocalStorageItem(CACHE_EXPIRY_KEY);
17547
+ const cachedData = chunkI2O23KHV_cjs.getLocalStorageItem(CACHE_KEY);
17548
+ const cacheExpiry = chunkI2O23KHV_cjs.getLocalStorageItem(CACHE_EXPIRY_KEY);
17534
17549
  if (cachedData && cacheExpiry) {
17535
17550
  const expiryTime = parseInt(cacheExpiry, 10);
17536
17551
  if (Date.now() < expiryTime) {
@@ -17580,8 +17595,8 @@ var fetchAppHubApps = async () => {
17580
17595
  const validApps = appsData.filter((app) => app !== null);
17581
17596
  if (typeof window !== "undefined") {
17582
17597
  try {
17583
- chunkM6WTSZ5C_cjs.setLocalStorageItem(CACHE_KEY, JSON.stringify(validApps));
17584
- chunkM6WTSZ5C_cjs.setLocalStorageItem(
17598
+ chunkI2O23KHV_cjs.setLocalStorageItem(CACHE_KEY, JSON.stringify(validApps));
17599
+ chunkI2O23KHV_cjs.setLocalStorageItem(
17585
17600
  CACHE_EXPIRY_KEY,
17586
17601
  (Date.now() + CACHE_EXPIRY_TIME).toString()
17587
17602
  );
@@ -17643,7 +17658,7 @@ var useCallClause = ({
17643
17658
  method: method7,
17644
17659
  args
17645
17660
  }),
17646
- queryFn: async () => chunkM6WTSZ5C_cjs.executeCallClause({
17661
+ queryFn: async () => chunkI2O23KHV_cjs.executeCallClause({
17647
17662
  thor,
17648
17663
  contractAddress: address,
17649
17664
  abi: abi9,
@@ -17660,19 +17675,19 @@ var useMultipleClausesCall = ({
17660
17675
  enabled = true
17661
17676
  }) => reactQuery.useQuery({
17662
17677
  queryKey,
17663
- queryFn: () => chunkM6WTSZ5C_cjs.executeMultipleClausesCall({ thor, calls }),
17678
+ queryFn: () => chunkI2O23KHV_cjs.executeMultipleClausesCall({ thor, calls }),
17664
17679
  enabled
17665
17680
  });
17666
17681
 
17667
17682
  // src/hooks/utils/useGetNodeUrl.ts
17668
17683
  var useGetNodeUrl = () => {
17669
17684
  const { network } = useVeChainKitConfig();
17670
- return network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl;
17685
+ return network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl;
17671
17686
  };
17672
17687
  var useIsPWA = () => {
17673
17688
  const [isPWA, setIsPWA] = React10.useState(true);
17674
17689
  React10.useEffect(() => {
17675
- if (!chunkM6WTSZ5C_cjs.isBrowser()) {
17690
+ if (!chunkI2O23KHV_cjs.isBrowser()) {
17676
17691
  setIsPWA(false);
17677
17692
  return;
17678
17693
  }
@@ -17721,7 +17736,7 @@ var getAccountImplementationAddress = async (thor, version, networkType) => {
17721
17736
  if (!networkType) throw new Error("Network type is required");
17722
17737
  if (!version) throw new Error("Version is required");
17723
17738
  const contract = thor.contracts.load(
17724
- chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
17739
+ chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
17725
17740
  vechainContractTypes.SimpleAccountFactory__factory.abi
17726
17741
  );
17727
17742
  let implementationAddressPromise;
@@ -17763,7 +17778,7 @@ var useAccountImplementationAddress = (version) => {
17763
17778
  var getCurrentAccountImplementationVersion = async (thor, networkType) => {
17764
17779
  if (!networkType) throw new Error("Network type is required");
17765
17780
  const res = await thor.contracts.load(
17766
- chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
17781
+ chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
17767
17782
  vechainContractTypes.SimpleAccountFactory__factory.abi
17768
17783
  ).read.currentAccountImplementationVersion();
17769
17784
  if (!res)
@@ -17790,7 +17805,7 @@ var getAccountAddress = async (thor, ownerAddress, networkType) => {
17790
17805
  if (!ownerAddress) throw new Error("Owner address is required");
17791
17806
  if (!networkType) throw new Error("Network type is required");
17792
17807
  const res = await thor.contracts.load(
17793
- chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
17808
+ chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
17794
17809
  vechainContractTypes.SimpleAccountFactory__factory.abi
17795
17810
  ).read.getAccountAddress(ownerAddress);
17796
17811
  if (!res)
@@ -17817,14 +17832,14 @@ var useGetAccountAddress = (ownerAddress) => {
17817
17832
  var abi6 = vechainContractTypes.SimpleAccountFactory__factory.abi;
17818
17833
  var getAccountVersionQueryKey = (accountAddress, ownerAddress, networkType) => getCallClauseQueryKeyWithArgs({
17819
17834
  abi: abi6,
17820
- address: chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
17835
+ address: chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
17821
17836
  method: "getAccountVersion",
17822
17837
  args: [accountAddress, ownerAddress]
17823
17838
  });
17824
17839
  var useGetAccountVersion = (accountAddress, ownerAddress) => {
17825
17840
  const { network } = useVeChainKitConfig();
17826
17841
  return useCallClause({
17827
- address: chunkM6WTSZ5C_cjs.getConfig(network.type).accountFactoryAddress,
17842
+ address: chunkI2O23KHV_cjs.getConfig(network.type).accountFactoryAddress,
17828
17843
  abi: abi6,
17829
17844
  method: "getAccountVersion",
17830
17845
  args: [accountAddress, ownerAddress],
@@ -17843,10 +17858,10 @@ var method5 = "hasLegacyAccount";
17843
17858
  var getHasV1SmartAccount = async (thor, ownerAddress, networkType) => {
17844
17859
  if (!ownerAddress) throw new Error("Owner address is required");
17845
17860
  if (!networkType) throw new Error("Network type is required");
17846
- const [hasLegacyAccount] = await chunkM6WTSZ5C_cjs.executeCallClause({
17861
+ const [hasLegacyAccount] = await chunkI2O23KHV_cjs.executeCallClause({
17847
17862
  thor,
17848
17863
  abi: abi7,
17849
- contractAddress: chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
17864
+ contractAddress: chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
17850
17865
  method: method5,
17851
17866
  args: [ownerAddress]
17852
17867
  });
@@ -18030,7 +18045,7 @@ var getSmartAccount = async (thor, network, ownerAddress) => {
18030
18045
  return { address: void 0 };
18031
18046
  }
18032
18047
  const res = await thor.contracts.load(
18033
- chunkM6WTSZ5C_cjs.getConfig(network).accountFactoryAddress,
18048
+ chunkI2O23KHV_cjs.getConfig(network).accountFactoryAddress,
18034
18049
  vechainContractTypes.SimpleAccountFactory__factory.abi
18035
18050
  ).read.getAccountAddress(ownerAddress);
18036
18051
  if (!res) {
@@ -18062,7 +18077,7 @@ var abi8 = vechainContractTypes.SimpleAccountFactory__factory.abi;
18062
18077
  var method6 = "version";
18063
18078
  var getVersion = async (thor, contractAddress) => {
18064
18079
  if (!contractAddress) throw new Error("Contract address is required");
18065
- const [version] = await chunkM6WTSZ5C_cjs.executeCallClause({
18080
+ const [version] = await chunkI2O23KHV_cjs.executeCallClause({
18066
18081
  thor,
18067
18082
  contractAddress,
18068
18083
  abi: abi8,
@@ -18087,12 +18102,12 @@ var useSmartAccountVersion = (contractAddress) => {
18087
18102
  };
18088
18103
  var getUpgradeRequired = async (thor, accountAddress, ownerAddress, targetVersion, networkType) => {
18089
18104
  const res = await thor.contracts.load(
18090
- chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
18105
+ chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
18091
18106
  vechainContractTypes.SimpleAccountFactory__factory.abi
18092
18107
  ).read.upgradeRequired(accountAddress, ownerAddress, targetVersion);
18093
18108
  if (!res)
18094
18109
  throw new Error(
18095
- `Failed to get upgrade required of contract address ${chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress}`
18110
+ `Failed to get upgrade required of contract address ${chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress}`
18096
18111
  );
18097
18112
  return res[0];
18098
18113
  };
@@ -18128,7 +18143,7 @@ var useUpgradeRequired = (accountAddress, ownerAddress, targetVersion) => {
18128
18143
  };
18129
18144
  var getUpgradeRequiredForAccount = async (thor, contractAddress, targetVersion, networkType) => {
18130
18145
  const res = await thor.contracts.load(
18131
- chunkM6WTSZ5C_cjs.getConfig(networkType).accountFactoryAddress,
18146
+ chunkI2O23KHV_cjs.getConfig(networkType).accountFactoryAddress,
18132
18147
  vechainContractTypes.SimpleAccountFactory__factory.abi
18133
18148
  ).read.upgradeRequiredForAccount(contractAddress, targetVersion);
18134
18149
  if (!res)
@@ -18175,7 +18190,7 @@ var useUpgradeSmartAccount = ({
18175
18190
  const { refresh: refreshSmartAccountQueries } = useRefreshSmartAccountQueries();
18176
18191
  const { data: newImplementationAddress } = useAccountImplementationAddress(targetVersion);
18177
18192
  const buildClauses = React10.useCallback(async () => {
18178
- if (!smartAccountAddress || !chunkM6WTSZ5C_cjs.isValidAddress(smartAccountAddress)) {
18193
+ if (!smartAccountAddress || !chunkI2O23KHV_cjs.isValidAddress(smartAccountAddress)) {
18179
18194
  throw new Error("Invalid smart account address");
18180
18195
  }
18181
18196
  if (!newImplementationAddress) {
@@ -18206,7 +18221,7 @@ var useUpgradeSmartAccount = ({
18206
18221
  const result = useSendTransaction({
18207
18222
  privyUIOptions: {
18208
18223
  title: "Upgrade Smart Account",
18209
- description: `Upgrading your account at ${chunkM6WTSZ5C_cjs.humanAddress(
18224
+ description: `Upgrading your account at ${chunkI2O23KHV_cjs.humanAddress(
18210
18225
  smartAccountAddress
18211
18226
  )} to version ${targetVersion}`,
18212
18227
  buttonText: "Sign to continue"
@@ -18224,7 +18239,7 @@ var useUpgradeSmartAccount = ({
18224
18239
  };
18225
18240
  };
18226
18241
  var currentBlockQueryKey = () => ["VECHAIN_KIT", "CURRENT_BLOCK"];
18227
- var REFETCH_INTERVAL = 10 * chunkM6WTSZ5C_cjs.TIME.SECOND;
18242
+ var REFETCH_INTERVAL = 10 * chunkI2O23KHV_cjs.TIME.SECOND;
18228
18243
  var useCurrentBlock = () => {
18229
18244
  const thor = dappKitReact.useThor();
18230
18245
  return reactQuery.useQuery({
@@ -18527,7 +18542,7 @@ var useTransferERC20 = ({
18527
18542
  const queryClient = reactQuery.useQueryClient();
18528
18543
  const { refresh } = useRefreshBalances();
18529
18544
  const buildClauses = React10.useCallback(async () => {
18530
- if (!receiverAddress || !amount || !chunkM6WTSZ5C_cjs.isValidAddress(receiverAddress))
18545
+ if (!receiverAddress || !amount || !chunkI2O23KHV_cjs.isValidAddress(receiverAddress))
18531
18546
  throw new Error("Invalid receiver address or amount");
18532
18547
  const clausesArray = [];
18533
18548
  clausesArray.push({
@@ -18550,7 +18565,7 @@ var useTransferERC20 = ({
18550
18565
  signerAccountAddress: fromAddress,
18551
18566
  privyUIOptions: {
18552
18567
  title: "Confirm Transfer",
18553
- description: `Transfer ${amount} ${tokenName} to ${chunkM6WTSZ5C_cjs.humanAddress(
18568
+ description: `Transfer ${amount} ${tokenName} to ${chunkI2O23KHV_cjs.humanAddress(
18554
18569
  receiverAddress
18555
18570
  )}`,
18556
18571
  buttonText: "Sign to continue"
@@ -18576,7 +18591,7 @@ var useTransferVET = ({
18576
18591
  }) => {
18577
18592
  const { refresh } = useRefreshBalances();
18578
18593
  const buildClauses = React10.useCallback(async () => {
18579
- if (!receiverAddress || !amount || !chunkM6WTSZ5C_cjs.isValidAddress(receiverAddress))
18594
+ if (!receiverAddress || !amount || !chunkI2O23KHV_cjs.isValidAddress(receiverAddress))
18580
18595
  throw new Error("Invalid receiver address or amount");
18581
18596
  if (isNaN(Number(amount))) {
18582
18597
  throw new Error("Invalid amount");
@@ -18600,7 +18615,7 @@ var useTransferVET = ({
18600
18615
  signerAccountAddress: fromAddress,
18601
18616
  privyUIOptions: {
18602
18617
  title: "Confirm Transfer",
18603
- description: `Transfer ${amount} VET to ${chunkM6WTSZ5C_cjs.humanAddress(
18618
+ description: `Transfer ${amount} VET to ${chunkI2O23KHV_cjs.humanAddress(
18604
18619
  receiverAddress
18605
18620
  )}`,
18606
18621
  buttonText: "Sign to continue"
@@ -18659,7 +18674,7 @@ var useBuildTransaction = ({
18659
18674
  );
18660
18675
  return { ...result, sendTransaction };
18661
18676
  };
18662
- var BLOCK_GENERATION_INTERVAL = 10 * chunkM6WTSZ5C_cjs.TIME.SECOND;
18677
+ var BLOCK_GENERATION_INTERVAL = 10 * chunkI2O23KHV_cjs.TIME.SECOND;
18663
18678
  var txReceiptQueryKey = (txId) => [
18664
18679
  "VECHAIN_KIT",
18665
18680
  "TX_RECEIPT",
@@ -18765,7 +18780,7 @@ var LocalStorageKey = /* @__PURE__ */ ((LocalStorageKey2) => {
18765
18780
  var useLocalStorage = (key, initialValue) => {
18766
18781
  const [storedValue, setStoredValue] = React10.useState(() => {
18767
18782
  try {
18768
- const item = chunkM6WTSZ5C_cjs.getLocalStorageItem(key);
18783
+ const item = chunkI2O23KHV_cjs.getLocalStorageItem(key);
18769
18784
  return item ? JSON.parse(item) : initialValue;
18770
18785
  } catch (error) {
18771
18786
  console.error(error);
@@ -18773,7 +18788,7 @@ var useLocalStorage = (key, initialValue) => {
18773
18788
  }
18774
18789
  });
18775
18790
  React10.useEffect(() => {
18776
- chunkM6WTSZ5C_cjs.setLocalStorageItem(key, JSON.stringify(storedValue));
18791
+ chunkI2O23KHV_cjs.setLocalStorageItem(key, JSON.stringify(storedValue));
18777
18792
  }, [key, storedValue]);
18778
18793
  return [storedValue, setStoredValue];
18779
18794
  };
@@ -18904,7 +18919,7 @@ var AddressDisplayCard = ({
18904
18919
  fontSize: "xs",
18905
18920
  opacity: 0.5,
18906
18921
  "data-testid": `${label.toLowerCase()}-address`,
18907
- children: chunkM6WTSZ5C_cjs.humanAddress(address, 6, 4)
18922
+ children: chunkI2O23KHV_cjs.humanAddress(address, 6, 4)
18908
18923
  }
18909
18924
  )
18910
18925
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -18913,7 +18928,7 @@ var AddressDisplayCard = ({
18913
18928
  fontWeight: "medium",
18914
18929
  fontSize: "sm",
18915
18930
  "data-testid": `${label.toLowerCase()}-address`,
18916
- children: chunkM6WTSZ5C_cjs.humanAddress(address, 6, 4)
18931
+ children: chunkI2O23KHV_cjs.humanAddress(address, 6, 4)
18917
18932
  }
18918
18933
  ) })
18919
18934
  ] }),
@@ -19055,7 +19070,7 @@ var TransactionButtonAndStatus = ({
19055
19070
  color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
19056
19071
  textAlign: "center",
19057
19072
  width: "full",
19058
- href: `${chunkM6WTSZ5C_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
19073
+ href: `${chunkI2O23KHV_cjs.getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
19059
19074
  target: "_blank",
19060
19075
  rel: "noopener noreferrer",
19061
19076
  children: t("View transaction on the explorer")
@@ -19572,7 +19587,7 @@ var LegalDocumentsProvider = ({ children }) => {
19572
19587
  const isDocumentRejectedByUser = React10.useCallback(
19573
19588
  (doc, walletAddress) => {
19574
19589
  return optionalRejected.some(
19575
- (rejected) => chunkM6WTSZ5C_cjs.compareAddresses(rejected.walletAddress, walletAddress) && rejected.id === doc.id
19590
+ (rejected) => chunkI2O23KHV_cjs.compareAddresses(rejected.walletAddress, walletAddress) && rejected.id === doc.id
19576
19591
  );
19577
19592
  },
19578
19593
  [optionalRejected]
@@ -19607,7 +19622,7 @@ var LegalDocumentsProvider = ({ children }) => {
19607
19622
  );
19608
19623
  if (isAnalyticsAllowed) {
19609
19624
  allDocs.push({
19610
- ...chunkM6WTSZ5C_cjs.VECHAIN_KIT_COOKIES_CONFIG,
19625
+ ...chunkI2O23KHV_cjs.VECHAIN_KIT_COOKIES_CONFIG,
19611
19626
  documentType: "cookies" /* COOKIES */,
19612
19627
  documentSource: "vechain-kit" /* VECHAIN_KIT */
19613
19628
  });
@@ -19620,14 +19635,14 @@ var LegalDocumentsProvider = ({ children }) => {
19620
19635
  if (!account?.address) return [];
19621
19636
  return documents.filter((document2) => {
19622
19637
  const isAgreed = storedAgreements.some(
19623
- (agreement) => chunkM6WTSZ5C_cjs.compareAddresses(
19638
+ (agreement) => chunkI2O23KHV_cjs.compareAddresses(
19624
19639
  agreement.walletAddress,
19625
19640
  account.address
19626
19641
  ) && agreement.id === document2.id
19627
19642
  );
19628
19643
  if (isAgreed) return false;
19629
19644
  const isRejected = optionalRejected.some(
19630
- (rejection) => chunkM6WTSZ5C_cjs.compareAddresses(
19645
+ (rejection) => chunkI2O23KHV_cjs.compareAddresses(
19631
19646
  rejection.walletAddress,
19632
19647
  account.address
19633
19648
  ) && rejection.id === document2.id
@@ -19639,7 +19654,7 @@ var LegalDocumentsProvider = ({ children }) => {
19639
19654
  if (!requiredDocuments.length || !account?.address) return true;
19640
19655
  return requiredDocuments.every(
19641
19656
  (document2) => storedAgreements.some(
19642
- (saved) => chunkM6WTSZ5C_cjs.compareAddresses(saved.walletAddress, account.address) && saved.id === document2.id
19657
+ (saved) => chunkI2O23KHV_cjs.compareAddresses(saved.walletAddress, account.address) && saved.id === document2.id
19643
19658
  )
19644
19659
  );
19645
19660
  }, [requiredDocuments, storedAgreements, account?.address]);
@@ -19692,7 +19707,7 @@ var LegalDocumentsProvider = ({ children }) => {
19692
19707
  walletAddress
19693
19708
  );
19694
19709
  const filteredAgreements = storedAgreements.filter(
19695
- (saved) => !chunkM6WTSZ5C_cjs.compareAddresses(saved.walletAddress, walletAddress) || !documentsArray.some((term) => term.id === saved.id)
19710
+ (saved) => !chunkI2O23KHV_cjs.compareAddresses(saved.walletAddress, walletAddress) || !documentsArray.some((term) => term.id === saved.id)
19696
19711
  );
19697
19712
  const updated = [...filteredAgreements, ...newAgreements];
19698
19713
  setStoredAgreements(updated);
@@ -19918,9 +19933,9 @@ var PrivyWalletProvider = ({
19918
19933
  clauses.push(
19919
19934
  sdkCore.Clause.callFunction(
19920
19935
  sdkCore.Address.of(
19921
- chunkM6WTSZ5C_cjs.getConfig(network.type).accountFactoryAddress
19936
+ chunkI2O23KHV_cjs.getConfig(network.type).accountFactoryAddress
19922
19937
  ),
19923
- sdkCore.ABIContract.ofAbi(chunkEESC6JDT_cjs.SimpleAccountFactoryABI).getFunction(
19938
+ sdkCore.ABIContract.ofAbi(chunkZNQPWE32_cjs.SimpleAccountFactoryABI).getFunction(
19924
19939
  "createAccount"
19925
19940
  ),
19926
19941
  [connectedWallet.address ?? ""]
@@ -19930,7 +19945,7 @@ var PrivyWalletProvider = ({
19930
19945
  clauses.push(
19931
19946
  sdkCore.Clause.callFunction(
19932
19947
  sdkCore.Address.of(smartAccount.address),
19933
- sdkCore.ABIContract.ofAbi(chunkEESC6JDT_cjs.SimpleAccountABI).getFunction(
19948
+ sdkCore.ABIContract.ofAbi(chunkZNQPWE32_cjs.SimpleAccountABI).getFunction(
19934
19949
  "executeBatchWithAuthorization"
19935
19950
  ),
19936
19951
  [
@@ -19993,9 +20008,9 @@ var PrivyWalletProvider = ({
19993
20008
  clauses.push(
19994
20009
  sdkCore.Clause.callFunction(
19995
20010
  sdkCore.Address.of(
19996
- chunkM6WTSZ5C_cjs.getConfig(network.type).accountFactoryAddress
20011
+ chunkI2O23KHV_cjs.getConfig(network.type).accountFactoryAddress
19997
20012
  ),
19998
- sdkCore.ABIContract.ofAbi(chunkEESC6JDT_cjs.SimpleAccountFactoryABI).getFunction(
20013
+ sdkCore.ABIContract.ofAbi(chunkZNQPWE32_cjs.SimpleAccountFactoryABI).getFunction(
19999
20014
  "createAccount"
20000
20015
  ),
20001
20016
  [connectedWallet.address ?? ""]
@@ -20007,7 +20022,7 @@ var PrivyWalletProvider = ({
20007
20022
  clauses.push(
20008
20023
  sdkCore.Clause.callFunction(
20009
20024
  sdkCore.Address.of(smartAccount.address ?? ""),
20010
- sdkCore.ABIContract.ofAbi(chunkEESC6JDT_cjs.SimpleAccountABI).getFunction(
20025
+ sdkCore.ABIContract.ofAbi(chunkZNQPWE32_cjs.SimpleAccountABI).getFunction(
20011
20026
  "executeWithAuthorization"
20012
20027
  ),
20013
20028
  [
@@ -20042,10 +20057,10 @@ var PrivyWalletProvider = ({
20042
20057
  [
20043
20058
  {
20044
20059
  privateKey: Buffer.from(
20045
- chunkM6WTSZ5C_cjs.randomTransactionUser.privateKey.slice(2),
20060
+ chunkI2O23KHV_cjs.randomTransactionUser.privateKey.slice(2),
20046
20061
  "hex"
20047
20062
  ),
20048
- address: chunkM6WTSZ5C_cjs.randomTransactionUser.address
20063
+ address: chunkI2O23KHV_cjs.randomTransactionUser.address
20049
20064
  }
20050
20065
  ],
20051
20066
  { gasPayer: { gasPayerServiceUrl: delegatorUrl } }
@@ -20056,11 +20071,11 @@ var PrivyWalletProvider = ({
20056
20071
  true
20057
20072
  );
20058
20073
  const signer = await providerWithDelegationEnabled.getSigner(
20059
- chunkM6WTSZ5C_cjs.randomTransactionUser.address
20074
+ chunkI2O23KHV_cjs.randomTransactionUser.address
20060
20075
  );
20061
20076
  const txInput = sdkNetwork.signerUtils.transactionBodyToTransactionRequestInput(
20062
20077
  txBody,
20063
- chunkM6WTSZ5C_cjs.randomTransactionUser.address
20078
+ chunkI2O23KHV_cjs.randomTransactionUser.address
20064
20079
  );
20065
20080
  const rawDelegateSigned = await signer.signTransaction(txInput);
20066
20081
  const { id } = await fetch(`${nodeUrl}/transactions`, {
@@ -20099,7 +20114,7 @@ var PrivyWalletProvider = ({
20099
20114
  PrivyWalletProviderContext.Provider,
20100
20115
  {
20101
20116
  value: {
20102
- accountFactory: chunkM6WTSZ5C_cjs.getConfig(network.type).accountFactoryAddress,
20117
+ accountFactory: chunkI2O23KHV_cjs.getConfig(network.type).accountFactoryAddress,
20103
20118
  sendTransaction,
20104
20119
  signMessage,
20105
20120
  signTypedData,
@@ -20170,7 +20185,7 @@ var validateConfig = (props) => {
20170
20185
  if (props?.legalDocuments) {
20171
20186
  if (props.legalDocuments.termsAndConditions) {
20172
20187
  props.legalDocuments.termsAndConditions.forEach((term) => {
20173
- if (!chunkM6WTSZ5C_cjs.isValidUrl(term.url)) {
20188
+ if (!chunkI2O23KHV_cjs.isValidUrl(term.url)) {
20174
20189
  errors.push(
20175
20190
  `legalDocuments.termsAndConditions.url is invalid: ${term.url}`
20176
20191
  );
@@ -20179,7 +20194,7 @@ var validateConfig = (props) => {
20179
20194
  }
20180
20195
  if (props.legalDocuments.privacyPolicy) {
20181
20196
  props.legalDocuments.privacyPolicy.forEach((term) => {
20182
- if (!chunkM6WTSZ5C_cjs.isValidUrl(term.url)) {
20197
+ if (!chunkI2O23KHV_cjs.isValidUrl(term.url)) {
20183
20198
  errors.push(
20184
20199
  `legalDocuments.privacyPolicy.url is invalid: ${term.url}`
20185
20200
  );
@@ -20188,7 +20203,7 @@ var validateConfig = (props) => {
20188
20203
  }
20189
20204
  if (props.legalDocuments.cookiePolicy) {
20190
20205
  props.legalDocuments.cookiePolicy.forEach((term) => {
20191
- if (!chunkM6WTSZ5C_cjs.isValidUrl(term.url)) {
20206
+ if (!chunkI2O23KHV_cjs.isValidUrl(term.url)) {
20192
20207
  errors.push(
20193
20208
  `legalDocuments.cookiePolicy.url is invalid: ${term.url}`
20194
20209
  );
@@ -20225,7 +20240,7 @@ var VeChainKitProvider = (props) => {
20225
20240
  const userEcosystemMethods = validatedLoginMethods?.find(
20226
20241
  (method7) => method7.method === "ecosystem"
20227
20242
  );
20228
- return userEcosystemMethods?.allowedApps ?? chunkM6WTSZ5C_cjs.DEFAULT_PRIVY_ECOSYSTEM_APPS.map((app) => app.id);
20243
+ return userEcosystemMethods?.allowedApps ?? chunkI2O23KHV_cjs.DEFAULT_PRIVY_ECOSYSTEM_APPS.map((app) => app.id);
20229
20244
  }, [validatedLoginMethods]);
20230
20245
  let privyAppId, privyClientId;
20231
20246
  if (!privy) {
@@ -20253,7 +20268,7 @@ var VeChainKitProvider = (props) => {
20253
20268
  }
20254
20269
  }, [language, i18nConfig]);
20255
20270
  React10.useEffect(() => {
20256
- chunkM6WTSZ5C_cjs.setLocalStorageItem(chunkM6WTSZ5C_cjs.VECHAIN_KIT_STORAGE_KEYS.NETWORK, network.type);
20271
+ chunkI2O23KHV_cjs.setLocalStorageItem(chunkI2O23KHV_cjs.VECHAIN_KIT_STORAGE_KEYS.NETWORK, network.type);
20257
20272
  }, [network]);
20258
20273
  return /* @__PURE__ */ jsxRuntime.jsxs(EnsureQueryClient, { children: [
20259
20274
  /* @__PURE__ */ jsxRuntime.jsx(reactQueryDevtools.ReactQueryDevtools, { initialIsOpen: false }),
@@ -20307,7 +20322,7 @@ var VeChainKitProvider = (props) => {
20307
20322
  children: /* @__PURE__ */ jsxRuntime.jsx(
20308
20323
  dappKitReact.DAppKitProvider,
20309
20324
  {
20310
- node: network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl,
20325
+ node: network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl,
20311
20326
  i18n: i18nConfig,
20312
20327
  language,
20313
20328
  logLevel: dappKit.logLevel,
@@ -20342,7 +20357,7 @@ var VeChainKitProvider = (props) => {
20342
20357
  children: /* @__PURE__ */ jsxRuntime.jsx(
20343
20358
  PrivyWalletProvider,
20344
20359
  {
20345
- nodeUrl: network.nodeUrl ?? chunkM6WTSZ5C_cjs.getConfig(network.type).nodeUrl,
20360
+ nodeUrl: network.nodeUrl ?? chunkI2O23KHV_cjs.getConfig(network.type).nodeUrl,
20346
20361
  delegatorUrl: feeDelegation?.delegatorUrl ?? "",
20347
20362
  delegateAllTransactions: feeDelegation?.delegateAllTransactions ?? false,
20348
20363
  children: /* @__PURE__ */ jsxRuntime.jsx(ModalProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(LegalDocumentsProvider, { children }) })
@@ -20359,43 +20374,43 @@ var VeChainKitProvider = (props) => {
20359
20374
 
20360
20375
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
20361
20376
  enumerable: true,
20362
- get: function () { return chunkM6WTSZ5C_cjs.CURRENCY_SYMBOLS; }
20377
+ get: function () { return chunkI2O23KHV_cjs.CURRENCY_SYMBOLS; }
20363
20378
  });
20364
20379
  Object.defineProperty(exports, "ENS_TEXT_RECORDS", {
20365
20380
  enumerable: true,
20366
- get: function () { return chunkM6WTSZ5C_cjs.ENS_TEXT_RECORDS; }
20381
+ get: function () { return chunkI2O23KHV_cjs.ENS_TEXT_RECORDS; }
20367
20382
  });
20368
20383
  Object.defineProperty(exports, "LegalDocumentSource", {
20369
20384
  enumerable: true,
20370
- get: function () { return chunkM6WTSZ5C_cjs.LegalDocumentSource; }
20385
+ get: function () { return chunkI2O23KHV_cjs.LegalDocumentSource; }
20371
20386
  });
20372
20387
  Object.defineProperty(exports, "LegalDocumentType", {
20373
20388
  enumerable: true,
20374
- get: function () { return chunkM6WTSZ5C_cjs.LegalDocumentType; }
20389
+ get: function () { return chunkI2O23KHV_cjs.LegalDocumentType; }
20375
20390
  });
20376
20391
  Object.defineProperty(exports, "NFTMediaType", {
20377
20392
  enumerable: true,
20378
- get: function () { return chunkM6WTSZ5C_cjs.NFTMediaType; }
20393
+ get: function () { return chunkI2O23KHV_cjs.NFTMediaType; }
20379
20394
  });
20380
20395
  Object.defineProperty(exports, "VePassportUserStatus", {
20381
20396
  enumerable: true,
20382
- get: function () { return chunkM6WTSZ5C_cjs.VePassportUserStatus; }
20397
+ get: function () { return chunkI2O23KHV_cjs.VePassportUserStatus; }
20383
20398
  });
20384
20399
  Object.defineProperty(exports, "buildCallClauses", {
20385
20400
  enumerable: true,
20386
- get: function () { return chunkM6WTSZ5C_cjs.buildCallClauses; }
20401
+ get: function () { return chunkI2O23KHV_cjs.buildCallClauses; }
20387
20402
  });
20388
20403
  Object.defineProperty(exports, "executeCallClause", {
20389
20404
  enumerable: true,
20390
- get: function () { return chunkM6WTSZ5C_cjs.executeCallClause; }
20405
+ get: function () { return chunkI2O23KHV_cjs.executeCallClause; }
20391
20406
  });
20392
20407
  Object.defineProperty(exports, "executeMultipleClausesCall", {
20393
20408
  enumerable: true,
20394
- get: function () { return chunkM6WTSZ5C_cjs.executeMultipleClausesCall; }
20409
+ get: function () { return chunkI2O23KHV_cjs.executeMultipleClausesCall; }
20395
20410
  });
20396
20411
  Object.defineProperty(exports, "getConfig", {
20397
20412
  enumerable: true,
20398
- get: function () { return chunkM6WTSZ5C_cjs.getConfig; }
20413
+ get: function () { return chunkI2O23KHV_cjs.getConfig; }
20399
20414
  });
20400
20415
  Object.defineProperty(exports, "useMfaEnrollment", {
20401
20416
  enumerable: true,
@@ -20452,6 +20467,7 @@ exports.ChooseNameContent = ChooseNameContent;
20452
20467
  exports.ChooseNameModalProvider = ChooseNameModalProvider;
20453
20468
  exports.ChooseNameSearchContent = ChooseNameSearchContent;
20454
20469
  exports.ChooseNameSummaryContent = ChooseNameSummaryContent;
20470
+ exports.ColorModeSync = ColorModeSync;
20455
20471
  exports.ConnectModal = ConnectModal;
20456
20472
  exports.ConnectModalProvider = ConnectModalProvider;
20457
20473
  exports.ConnectPopover = ConnectPopover;