coinley-pay 0.46.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
5
5
  import { useState, useRef, useEffect, useCallback, useMemo } from "react";
6
6
  import { useConnect, useAccount, useSwitchChain, useSendTransaction, useWaitForTransactionReceipt, WagmiProvider, useDisconnect } from "wagmi";
7
7
  import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
8
- import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-BFwilphb.js";
8
+ import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-eC0BU-6e.js";
9
9
  import { createConfig, fallback, http, getAccount as getAccount$1, getWalletClient, simulateContract, writeContract, readContract, waitForTransactionReceipt, estimateFeesPerGas as estimateFeesPerGas$1 } from "@wagmi/core";
10
10
  import { injected, metaMask, coinbaseWallet, walletConnect } from "@wagmi/connectors";
11
11
  import { defineChain as defineChain$1, erc20Abi, http as http$1, createPublicClient, fallback as fallback$1 } from "viem";
@@ -21122,7 +21122,7 @@ const WalletSelector = ({
21122
21122
  try {
21123
21123
  setAppKitError(null);
21124
21124
  setWalletConnectAddress(solanaAccountState.address);
21125
- const { createWalletConnectAdapter } = await import("./appKitSolana-CcEv9c6h.js");
21125
+ const { createWalletConnectAdapter } = await import("./appKitSolana-B5HXXS9C.js");
21126
21126
  const adapter = createWalletConnectAdapter(solanaAccountState.address);
21127
21127
  await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
21128
21128
  console.log("✅ WalletConnect synced with SDK");
@@ -21227,7 +21227,7 @@ const WalletSelector = ({
21227
21227
  setAppKitLoading(true);
21228
21228
  setAppKitError(null);
21229
21229
  try {
21230
- const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-zLHXb4kV.js");
21230
+ const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-dIzcrIb3.js");
21231
21231
  await initializeAppKitEVM(wagmiConfig);
21232
21232
  await openAppKitModal();
21233
21233
  } catch (error) {
@@ -21247,7 +21247,7 @@ const WalletSelector = ({
21247
21247
  setAppKitError(null);
21248
21248
  try {
21249
21249
  console.log("📦 Loading AppKit Solana module...");
21250
- const { initializeAppKitSolana } = await import("./appKitSolana-CcEv9c6h.js");
21250
+ const { initializeAppKitSolana } = await import("./appKitSolana-B5HXXS9C.js");
21251
21251
  console.log("✅ Module loaded, initializing...");
21252
21252
  const modal = await initializeAppKitSolana(solanaWallet);
21253
21253
  console.log("✅ AppKit Solana initialized successfully");
@@ -23458,6 +23458,17 @@ const CoinleyPaymentInternal = ({
23458
23458
  const activeTransferPaymentId = (paymentData == null ? void 0 : paymentData.id) || (ccResult == null ? void 0 : ccResult.id) || (ccResult == null ? void 0 : ccResult.paymentId);
23459
23459
  const activeTransferDepositAddress = (paymentData == null ? void 0 : paymentData.depositAddress) || (ccResult == null ? void 0 : ccResult.relayDepositAddress) || (ccResult == null ? void 0 : ccResult.depositAddress);
23460
23460
  const merchantReceiveNetworks = (merchantNetworks == null ? void 0 : merchantNetworks.length) ? merchantNetworks : networks;
23461
+ const isConfiguredMerchantReceiveNetwork = useCallback((network) => {
23462
+ var _a2;
23463
+ const shortName = (_a2 = network == null ? void 0 : network.shortName) == null ? void 0 : _a2.toLowerCase();
23464
+ if (!shortName) return false;
23465
+ return (merchantNetworks || []).some(
23466
+ (merchantNetwork) => {
23467
+ var _a3;
23468
+ return ((_a3 = merchantNetwork == null ? void 0 : merchantNetwork.shortName) == null ? void 0 : _a3.toLowerCase()) === shortName;
23469
+ }
23470
+ );
23471
+ }, [merchantNetworks]);
23461
23472
  const isMerchantReceiveNetwork = useCallback((network) => {
23462
23473
  var _a2;
23463
23474
  const shortName = (_a2 = network == null ? void 0 : network.shortName) == null ? void 0 : _a2.toLowerCase();
@@ -23656,15 +23667,19 @@ const CoinleyPaymentInternal = ({
23656
23667
  paymentState: payment.paymentState || (raw == null ? void 0 : raw.paymentState) || statusText || "underpaid"
23657
23668
  };
23658
23669
  }, [paymentAmount, selectedNetwork, selectedToken]);
23659
- const activateUnderpaymentFlow = useCallback((payment) => {
23670
+ const activateUnderpaymentFlow = useCallback((payment, options = {}) => {
23660
23671
  const normalized = normalizeUnderpaymentInfo(payment);
23661
23672
  if (!normalized) return false;
23673
+ const forceRefund = options.forceRefund === true;
23662
23674
  const recoveryState = readUnderpaymentRecovery((payment == null ? void 0 : payment.id) || (paymentData == null ? void 0 : paymentData.id));
23663
- const recoveryChoice = (recoveryState == null ? void 0 : recoveryState.choice) === "offset" || (recoveryState == null ? void 0 : recoveryState.choice) === "refund" ? recoveryState.choice : null;
23664
- const recoveryView = recoveryChoice ? (recoveryState == null ? void 0 : recoveryState.view) === "refund" ? "refund" : "offset" : null;
23675
+ const recoveryChoice = forceRefund ? "refund" : (recoveryState == null ? void 0 : recoveryState.choice) === "offset" || (recoveryState == null ? void 0 : recoveryState.choice) === "refund" ? recoveryState.choice : null;
23676
+ const recoveryView = forceRefund ? "refund" : recoveryChoice ? (recoveryState == null ? void 0 : recoveryState.view) === "refund" ? "refund" : "offset" : null;
23665
23677
  setUnderpaymentInfo(normalized);
23666
- setUnderpaymentChoice((currentChoice) => currentChoice || recoveryChoice);
23678
+ setUnderpaymentChoice((currentChoice) => forceRefund ? "refund" : currentChoice || recoveryChoice);
23667
23679
  setUnderpaymentView((currentView) => {
23680
+ if (forceRefund) {
23681
+ return "refund";
23682
+ }
23668
23683
  if (currentView && currentView !== "choice") {
23669
23684
  return currentView;
23670
23685
  }
@@ -23708,7 +23723,7 @@ const CoinleyPaymentInternal = ({
23708
23723
  currency: (underpayment == null ? void 0 : underpayment.tokenSymbol) || (underpayment == null ? void 0 : underpayment.currency) || rawPayment.currency || statusResult.currency || (ccOriginToken == null ? void 0 : ccOriginToken.symbol),
23709
23724
  refundNetworkLabel: (underpayment == null ? void 0 : underpayment.refundNetworkLabel) || rawPayment.refundNetworkLabel || ccChainName(relay.originChainId || (ccResult == null ? void 0 : ccResult.originChainId) || ccOriginChainId),
23710
23725
  underpayment
23711
- });
23726
+ }, { forceRefund: true });
23712
23727
  }, [activateUnderpaymentFlow, ccOriginChainId, ccOriginToken == null ? void 0 : ccOriginToken.symbol, ccResult == null ? void 0 : ccResult.id, ccResult == null ? void 0 : ccResult.originChainId, ccResult == null ? void 0 : ccResult.relayDepositAddress]);
23713
23728
  const clearUnderpaymentUiState = useCallback((paymentId) => {
23714
23729
  setUnderpaymentInfo(null);
@@ -24628,9 +24643,29 @@ const CoinleyPaymentInternal = ({
24628
24643
  };
24629
24644
  }, [useGenericMobileTokenList, selectedNetwork == null ? void 0 : selectedNetwork.isExtraNetwork, selectedNetwork == null ? void 0 : selectedNetwork.chainId, selectedNetwork == null ? void 0 : selectedNetwork.shortName, selectedNetwork == null ? void 0 : selectedNetwork.name, paymentFlow.api]);
24630
24645
  const availableTokens = useMemo(() => {
24646
+ var _a2;
24631
24647
  if (!selectedNetwork) return [];
24632
24648
  const networkTokens = [];
24633
- if (selectedNetwork.isBridgeNetwork && selectedNetwork.bridgeDestination) {
24649
+ if (selectedNetwork.isCrossChainSource) {
24650
+ const sourceTokens = ((_a2 = selectedNetwork.crossChainSource) == null ? void 0 : _a2.tokens) || [];
24651
+ for (const token of sourceTokens) {
24652
+ const symbol = String(token.symbol || "").toUpperCase();
24653
+ const address2 = token.address || token.contractAddress || symbol;
24654
+ networkTokens.push({
24655
+ id: `cross-chain-${selectedNetwork.chainId}-${address2}`,
24656
+ symbol,
24657
+ name: token.name || symbol,
24658
+ address: address2,
24659
+ contractAddress: address2,
24660
+ decimals: token.decimals || 18,
24661
+ isStablecoin: ["USDC", "USDT", "DAI"].includes(symbol),
24662
+ balance: null,
24663
+ balanceFormatted: null,
24664
+ logo: token.logoURI || token.logo || getTokenLogoUrl(symbol),
24665
+ Network: { shortName: selectedNetwork.shortName, name: selectedNetwork.name }
24666
+ });
24667
+ }
24668
+ } else if (selectedNetwork.isBridgeNetwork && selectedNetwork.bridgeDestination) {
24634
24669
  const bt = selectedNetwork.bridgeTokens;
24635
24670
  if (bt == null ? void 0 : bt.usdc) {
24636
24671
  networkTokens.push({
@@ -24655,8 +24690,8 @@ const CoinleyPaymentInternal = ({
24655
24690
  } else {
24656
24691
  const serverTokens = tokens.filter(
24657
24692
  (token) => {
24658
- var _a2;
24659
- return ((_a2 = token.Network) == null ? void 0 : _a2.shortName) === (selectedNetwork == null ? void 0 : selectedNetwork.shortName) || token.networkId === (selectedNetwork == null ? void 0 : selectedNetwork.id);
24693
+ var _a3;
24694
+ return ((_a3 = token.Network) == null ? void 0 : _a3.shortName) === (selectedNetwork == null ? void 0 : selectedNetwork.shortName) || token.networkId === (selectedNetwork == null ? void 0 : selectedNetwork.id);
24660
24695
  }
24661
24696
  );
24662
24697
  if (useGenericMobileTokenList) {
@@ -24719,8 +24754,8 @@ const CoinleyPaymentInternal = ({
24719
24754
  for (const st of serverTokens) {
24720
24755
  const walletMatch = walletTokens.find(
24721
24756
  (wt) => {
24722
- var _a2, _b, _c, _d;
24723
- return ((_a2 = wt.symbol) == null ? void 0 : _a2.toUpperCase()) === ((_b = st.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = wt.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = st.contractAddress) == null ? void 0 : _d.toLowerCase());
24757
+ var _a3, _b, _c, _d;
24758
+ return ((_a3 = wt.symbol) == null ? void 0 : _a3.toUpperCase()) === ((_b = st.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = wt.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = st.contractAddress) == null ? void 0 : _d.toLowerCase());
24724
24759
  }
24725
24760
  );
24726
24761
  networkTokens.push({
@@ -24734,8 +24769,8 @@ const CoinleyPaymentInternal = ({
24734
24769
  for (const wt of walletTokens) {
24735
24770
  const alreadyListed = networkTokens.some(
24736
24771
  (t) => {
24737
- var _a2, _b, _c, _d;
24738
- return ((_a2 = t.symbol) == null ? void 0 : _a2.toUpperCase()) === ((_b = wt.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = t.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = wt.contractAddress) == null ? void 0 : _d.toLowerCase());
24772
+ var _a3, _b, _c, _d;
24773
+ return ((_a3 = t.symbol) == null ? void 0 : _a3.toUpperCase()) === ((_b = wt.symbol) == null ? void 0 : _b.toUpperCase()) || ((_c = t.contractAddress) == null ? void 0 : _c.toLowerCase()) === ((_d = wt.contractAddress) == null ? void 0 : _d.toLowerCase());
24739
24774
  }
24740
24775
  );
24741
24776
  if (!alreadyListed) {
@@ -24747,7 +24782,7 @@ const CoinleyPaymentInternal = ({
24747
24782
  }
24748
24783
  }
24749
24784
  }
24750
- const filteredTokens = networkTokens.filter((t) => {
24785
+ const filteredTokens = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? networkTokens : networkTokens.filter((t) => {
24751
24786
  if (t.isSwapToken) return true;
24752
24787
  return isTokenBridgeSupported(selectedNetwork == null ? void 0 : selectedNetwork.shortName, t.symbol);
24753
24788
  });
@@ -25107,6 +25142,12 @@ const CoinleyPaymentInternal = ({
25107
25142
  setError("");
25108
25143
  setQrCodeDataUrl("");
25109
25144
  setQrWalletChoiceConfirmed(false);
25145
+ setCcResult(null);
25146
+ setCcQrCode("");
25147
+ setCcPhase("idle");
25148
+ setCcManualCheckStatus("idle");
25149
+ setCcOriginChainId((network == null ? void 0 : network.isCrossChainSource) ? String(network.chainId) : "");
25150
+ setCcOriginToken(null);
25110
25151
  setSelectedNetwork(network);
25111
25152
  setSelectedToken(null);
25112
25153
  if (network == null ? void 0 : network.isBridgeNetwork) {
@@ -25129,6 +25170,7 @@ const CoinleyPaymentInternal = ({
25129
25170
  setQrCodeDataUrl("");
25130
25171
  setQrWalletChoiceConfirmed(false);
25131
25172
  setSelectedToken(token);
25173
+ setCcOriginToken((selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? token : null);
25132
25174
  createNewAttempt("token-selected", {
25133
25175
  snapshot: buildSelectionSnapshot(selectedNetwork, token, address, solanaWallet == null ? void 0 : solanaWallet.publicKey)
25134
25176
  });
@@ -25152,24 +25194,38 @@ const CoinleyPaymentInternal = ({
25152
25194
  return c ? c.tokens : [];
25153
25195
  }, [ccSources, ccOriginChainId]);
25154
25196
  const handleGenerateCrossChain = async () => {
25155
- if (!ccOriginChainId || !ccOriginToken) return;
25197
+ var _a2, _b, _c;
25198
+ const originChainId = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedNetwork.chainId : ccOriginChainId;
25199
+ const originToken = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedToken : ccOriginToken;
25200
+ const originCurrency = (originToken == null ? void 0 : originToken.address) || (originToken == null ? void 0 : originToken.contractAddress) || (originToken == null ? void 0 : originToken.symbol);
25201
+ if (!originChainId || !originToken || !originCurrency) return;
25202
+ const originNetwork = (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) ? selectedNetwork : { id: `cross-chain-${originChainId}`, chainId: originChainId, shortName: `chain-${originChainId}` };
25203
+ const attempt = createNewAttempt("cross-chain-transfer", {
25204
+ snapshot: buildSelectionSnapshot(originNetwork, originToken, address, solanaWallet == null ? void 0 : solanaWallet.publicKey)
25205
+ });
25156
25206
  setCcError(null);
25157
25207
  setCcGenerating(true);
25208
+ setCcOriginChainId(String(originChainId));
25209
+ setCcOriginToken(originToken);
25158
25210
  try {
25159
25211
  const r = await paymentFlow.api.createCrossChainPayment({
25160
- amount: Number((config == null ? void 0 : config.amount) ?? paymentAmount),
25161
- originChainId: Number(ccOriginChainId),
25162
- originCurrency: ccOriginToken.address
25212
+ amount: String((config == null ? void 0 : config.amount) ?? paymentAmount),
25213
+ originChainId: Number(originChainId),
25214
+ originCurrency
25163
25215
  });
25216
+ if (((_a2 = activeAttemptRef.current) == null ? void 0 : _a2.id) !== attempt.id) return;
25164
25217
  const p = r.payment || r;
25165
25218
  setCcResult(p);
25166
25219
  setCcPhase("awaiting_deposit");
25167
25220
  setCcManualCheckStatus("idle");
25168
25221
  setCcQrCode(await QRCode.toDataURL(p.relayDepositAddress, { width: 220, margin: 1 }));
25169
25222
  } catch (e) {
25223
+ if (((_b = activeAttemptRef.current) == null ? void 0 : _b.id) !== attempt.id) return;
25170
25224
  setCcError(e.message || "Could not generate payment address");
25171
25225
  } finally {
25172
- setCcGenerating(false);
25226
+ if (((_c = activeAttemptRef.current) == null ? void 0 : _c.id) === attempt.id) {
25227
+ setCcGenerating(false);
25228
+ }
25173
25229
  }
25174
25230
  };
25175
25231
  const startRecoveryLoading = useCallback((action) => {
@@ -25257,11 +25313,15 @@ const CoinleyPaymentInternal = ({
25257
25313
  setCcManualCheckStatus("idle");
25258
25314
  });
25259
25315
  }
25260
- } else if ((status.phase === "received" || status.phase === "settled") && !ccSucceeded.current) {
25316
+ } else if (status.phase === "settled" && !ccSucceeded.current) {
25261
25317
  finishRecoveryLoading(() => {
25262
25318
  ccSucceeded.current = true;
25263
25319
  onSuccess == null ? void 0 : onSuccess(status);
25264
25320
  });
25321
+ } else if (status.phase === "received") {
25322
+ finishRecoveryLoading(() => {
25323
+ setCcManualCheckStatus("idle");
25324
+ });
25265
25325
  } else if (status.phase === "failed") {
25266
25326
  finishRecoveryLoading(() => {
25267
25327
  setCcManualCheckStatus("failed");
@@ -25293,7 +25353,7 @@ const CoinleyPaymentInternal = ({
25293
25353
  setCcManualCheckStatus(null);
25294
25354
  } else if (s.phase === "bridging") {
25295
25355
  clearUnderpaymentUiState(s.paymentId || ccResult.id);
25296
- } else if ((s.phase === "received" || s.phase === "settled") && !ccSucceeded.current) {
25356
+ } else if (s.phase === "settled" && !ccSucceeded.current) {
25297
25357
  ccSucceeded.current = true;
25298
25358
  onSuccess == null ? void 0 : onSuccess(s);
25299
25359
  }
@@ -26543,7 +26603,7 @@ const CoinleyPaymentInternal = ({
26543
26603
  const hasDirectTransferNetworks = networks.some((network) => {
26544
26604
  const chainId = parseInt(network.chainId);
26545
26605
  const supportedChains = [8453, 56, 42161, 137, 10, 43114, 143, 59144, 534352, 130];
26546
- return supportedChains.includes(chainId);
26606
+ return supportedChains.includes(chainId) && isConfiguredMerchantReceiveNetwork(network);
26547
26607
  });
26548
26608
  const isCrossChainTransferSetupView = activeTab === PAYMENT_TABS.TRANSFER && !ccResult && !(paymentData == null ? void 0 : paymentData.depositAddress) && !hasDirectTransferNetworks;
26549
26609
  const isCrossChainTransferAddressView = activeTab === PAYMENT_TABS.TRANSFER && !!ccResult;
@@ -26713,11 +26773,27 @@ const CoinleyPaymentInternal = ({
26713
26773
  ),
26714
26774
  refundRequestMessage && /* @__PURE__ */ jsx("p", { className: `mt-2 text-center text-xs leading-5 ${refundRequestStatus === "error" ? "text-red-600" : "text-[#8B8E98]"}`, children: refundRequestMessage })
26715
26775
  ] });
26716
- const transferNetworks = networks.filter((network) => {
26776
+ const directTransferNetworks = networks.filter((network) => {
26717
26777
  const chainId = parseInt(network.chainId);
26718
26778
  const supportedChains = [8453, 56, 42161, 137, 10, 43114, 143, 59144, 534352, 130];
26719
- return supportedChains.includes(chainId);
26779
+ return supportedChains.includes(chainId) && isConfiguredMerchantReceiveNetwork(network);
26720
26780
  });
26781
+ const directTransferChainIds = new Set(directTransferNetworks.map((network) => Number(network.chainId)));
26782
+ const crossChainSourceNetworks = ccSources.filter((source) => !directTransferChainIds.has(Number(source.chainId))).map((source) => {
26783
+ const chainId = Number(source.chainId);
26784
+ const knownChain = ALCHEMY_EVM_CHAINS.find((chain) => Number(chain.id) === chainId);
26785
+ return {
26786
+ id: `cross-chain-${chainId}`,
26787
+ name: (knownChain == null ? void 0 : knownChain.displayName) || ccChainName(chainId),
26788
+ shortName: (knownChain == null ? void 0 : knownChain.shortName) || `chain-${chainId}`,
26789
+ chainId,
26790
+ chainType: "evm",
26791
+ isCrossChainSource: true,
26792
+ crossChainSource: source,
26793
+ logo: ccChainIcon(chainId)
26794
+ };
26795
+ });
26796
+ const transferNetworks = [...directTransferNetworks, ...crossChainSourceNetworks];
26721
26797
  const renderCheckoutSelect = ({ id, label, value, placeholder, disabled, onChange, options, getLabel, getIcon, compact = false, elevated = false, maxVisibleItems = 4 }) => {
26722
26798
  const dropdownId = id || label;
26723
26799
  const selectedOption = options.find((option) => String(option.id) === String(value));
@@ -27290,6 +27366,13 @@ const CoinleyPaymentInternal = ({
27290
27366
  disabled: !ccOriginToken || ccGenerating || isConverting
27291
27367
  });
27292
27368
  }
27369
+ if (activeTab === PAYMENT_TABS.TRANSFER && (selectedNetwork == null ? void 0 : selectedNetwork.isCrossChainSource) && selectedToken && !ccResult && !(paymentData == null ? void 0 : paymentData.depositAddress)) {
27370
+ return renderFooterPrimaryButton({
27371
+ label: ccGenerating ? "Generating Address..." : `Pay ${paymentAmountLabel}`,
27372
+ onClick: handleGenerateCrossChain,
27373
+ disabled: ccGenerating || isConverting
27374
+ });
27375
+ }
27293
27376
  if (activeTab === PAYMENT_TABS.TRANSFER && activeTransferDepositAddress && underpaymentInfo) {
27294
27377
  if (underpaymentView === "choice") {
27295
27378
  return renderFooterPrimaryButton({
@@ -27320,7 +27403,7 @@ const CoinleyPaymentInternal = ({
27320
27403
  return null;
27321
27404
  }
27322
27405
  return renderFooterPrimaryButton({
27323
- label: refundRequestSubmitted ? "Refund request submitted" : "Submit refund request",
27406
+ label: refundRequestSubmitted ? "Refund request submitted" : "Submit Refund request",
27324
27407
  onClick: handleRefundRequestSubmit,
27325
27408
  disabled: !refundAddress.trim() || refundRequestStatus === "submitting" || refundRequestStatus === "pending" || refundRequestStatus === "refunded"
27326
27409
  });
@@ -27761,7 +27844,7 @@ const CoinleyPaymentInternal = ({
27761
27844
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
27762
27845
  renderUnderpaymentWarning(
27763
27846
  "Important!",
27764
- "Use this wallet address for this transfer only. Send from the selected network and include enough native token for network fees."
27847
+ `Send exactly ${ccResult.amountToSendFormatted || ccResult.amountToSend} ${(ccOriginToken == null ? void 0 : ccOriginToken.symbol) || (selectedToken == null ? void 0 : selectedToken.symbol) || ccResult.originCurrency || ""} on ${ccChainName(ccResult.originChainId || ccOriginChainId)} to this wallet address. Include enough native token for network fees.`
27765
27848
  ),
27766
27849
  ccPhase === "failed" ? /* @__PURE__ */ jsx("div", { className: "rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-center text-xs font-medium text-red-600", children: "Payment failed — please try again" }) : ccPhase === "received" || ccPhase === "settled" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 text-xs font-medium text-green-600", children: [
27767
27850
  /* @__PURE__ */ jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-green-500" }),
@@ -27942,4 +28025,4 @@ export {
27942
28025
  chainTransports as c,
27943
28026
  isFeatureEnabled as i
27944
28027
  };
27945
- //# sourceMappingURL=CoinleyPayment-BZZKQO96.js.map
28028
+ //# sourceMappingURL=CoinleyPayment-DjJnJ_yp.js.map
@@ -1,4 +1,4 @@
1
- import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BZZKQO96.js";
1
+ import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-DjJnJ_yp.js";
2
2
  const logo = "https://coinley.io/logo.png";
3
3
  let appKitInstance = null;
4
4
  let isInitializing = false;
@@ -113,4 +113,4 @@ export {
113
113
  initializeAppKitEVM,
114
114
  openAppKitModal
115
115
  };
116
- //# sourceMappingURL=appKitEVM-zLHXb4kV.js.map
116
+ //# sourceMappingURL=appKitEVM-dIzcrIb3.js.map
@@ -1,4 +1,4 @@
1
- import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BZZKQO96.js";
1
+ import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-DjJnJ_yp.js";
2
2
  const logo = "https://coinley.io/logo.png";
3
3
  let appKitInstance = null;
4
4
  let isInitializing = false;
@@ -243,4 +243,4 @@ export {
243
243
  disconnectWalletConnect,
244
244
  initializeAppKitSolana
245
245
  };
246
- //# sourceMappingURL=appKitSolana-CcEv9c6h.js.map
246
+ //# sourceMappingURL=appKitSolana-B5HXXS9C.js.map