coinley-pay 0.52.0 → 0.53.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-Bw36JcVp.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-DkzxitOg.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";
@@ -21126,7 +21126,7 @@ const WalletSelector = ({
21126
21126
  try {
21127
21127
  setAppKitError(null);
21128
21128
  setWalletConnectAddress(solanaAccountState.address);
21129
- const { createWalletConnectAdapter } = await import("./appKitSolana-ZNLr1WJ6.js");
21129
+ const { createWalletConnectAdapter } = await import("./appKitSolana-B1EqivHA.js");
21130
21130
  const adapter = createWalletConnectAdapter(solanaAccountState.address);
21131
21131
  await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
21132
21132
  console.log("✅ WalletConnect synced with SDK");
@@ -21231,7 +21231,7 @@ const WalletSelector = ({
21231
21231
  setAppKitLoading(true);
21232
21232
  setAppKitError(null);
21233
21233
  try {
21234
- const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-R5T4FZOw.js");
21234
+ const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-BC0nAR77.js");
21235
21235
  await initializeAppKitEVM(wagmiConfig);
21236
21236
  await openAppKitModal();
21237
21237
  } catch (error) {
@@ -21251,7 +21251,7 @@ const WalletSelector = ({
21251
21251
  setAppKitError(null);
21252
21252
  try {
21253
21253
  console.log("📦 Loading AppKit Solana module...");
21254
- const { initializeAppKitSolana } = await import("./appKitSolana-ZNLr1WJ6.js");
21254
+ const { initializeAppKitSolana } = await import("./appKitSolana-B1EqivHA.js");
21255
21255
  console.log("✅ Module loaded, initializing...");
21256
21256
  const modal = await initializeAppKitSolana(solanaWallet);
21257
21257
  console.log("✅ AppKit Solana initialized successfully");
@@ -23322,6 +23322,7 @@ const CoinleyPaymentInternal = ({
23322
23322
  const [ccError, setCcError] = useState(null);
23323
23323
  const [ccGenerating, setCcGenerating] = useState(false);
23324
23324
  const [ccManualCheckStatus, setCcManualCheckStatus] = useState("idle");
23325
+ const [ccRefundPendingInfo, setCcRefundPendingInfo] = useState(null);
23325
23326
  const ccSucceeded = useRef(false);
23326
23327
  const ccStatusPollInFlight = useRef(false);
23327
23328
  const ccSourcesRetryTimer = useRef(null);
@@ -23738,6 +23739,7 @@ const CoinleyPaymentInternal = ({
23738
23739
  setCcManualCheckStatus(null);
23739
23740
  setRecoveryLoadingAction(null);
23740
23741
  setRecoveryLoadingStatus(null);
23742
+ setCcRefundPendingInfo(null);
23741
23743
  clearUnderpaymentRecovery(paymentId || activeTransferPaymentId);
23742
23744
  }, [activeTransferPaymentId, clearUnderpaymentRecovery]);
23743
23745
  useEffect(() => {
@@ -23745,6 +23747,7 @@ const CoinleyPaymentInternal = ({
23745
23747
  setRefundSuccessDetails(null);
23746
23748
  setRecoveryLoadingAction(null);
23747
23749
  setRecoveryLoadingStatus(null);
23750
+ setCcRefundPendingInfo(null);
23748
23751
  }, [paymentData == null ? void 0 : paymentData.id]);
23749
23752
  const selectedNetworkIsSolana = (selectedNetwork == null ? void 0 : selectedNetwork.chainType) === "solana" || (selectedNetwork == null ? void 0 : selectedNetwork.shortName) === "solana";
23750
23753
  const sourceNeedsMerchantBridge = Boolean(
@@ -25310,6 +25313,19 @@ const CoinleyPaymentInternal = ({
25310
25313
  description: "We will process it automatically.",
25311
25314
  detail: `Refunding the received ${(underpaymentInfo == null ? void 0 : underpaymentInfo.tokenSymbol) || (selectedToken == null ? void 0 : selectedToken.symbol) || "tokens"} on ${(underpaymentInfo == null ? void 0 : underpaymentInfo.refundNetworkLabel) || (selectedNetwork == null ? void 0 : selectedNetwork.name) || (selectedNetwork == null ? void 0 : selectedNetwork.shortName) || "the selected network"}.`
25312
25315
  }), [selectedNetwork == null ? void 0 : selectedNetwork.name, selectedNetwork == null ? void 0 : selectedNetwork.shortName, selectedToken == null ? void 0 : selectedToken.symbol, underpaymentInfo == null ? void 0 : underpaymentInfo.refundNetworkLabel, underpaymentInfo == null ? void 0 : underpaymentInfo.tokenSymbol]);
25316
+ const getCrossChainRefundPendingStatus = useCallback((status = ccRefundPendingInfo) => {
25317
+ var _a2, _b, _c, _d;
25318
+ const details = (status == null ? void 0 : status.refundPendingDetails) || {};
25319
+ const tokenSymbol = ((_a2 = status == null ? void 0 : status.underpayment) == null ? void 0 : _a2.tokenSymbol) || ((_b = status == null ? void 0 : status.underpayment) == null ? void 0 : _b.currency) || (underpaymentInfo == null ? void 0 : underpaymentInfo.tokenSymbol) || (ccOriginToken == null ? void 0 : ccOriginToken.symbol) || (selectedToken == null ? void 0 : selectedToken.symbol) || "tokens";
25320
+ const networkLabel = ((_c = status == null ? void 0 : status.underpayment) == null ? void 0 : _c.refundNetworkLabel) || (underpaymentInfo == null ? void 0 : underpaymentInfo.refundNetworkLabel) || ccChainName(((_d = status == null ? void 0 : status.relay) == null ? void 0 : _d.originChainId) || (ccResult == null ? void 0 : ccResult.originChainId) || ccOriginChainId);
25321
+ const refundAddressLabel = (status == null ? void 0 : status.refundRecipient) || refundAddress.trim();
25322
+ const available = details.available && details.available !== "0.0" ? ` Relay has returned ${details.available} ${tokenSymbol}.` : "";
25323
+ return {
25324
+ title: "Waiting for Relay refund",
25325
+ description: "Relay is returning the underpaid funds before Coinley can send your refund.",
25326
+ detail: `We will keep checking automatically and refund ${tokenSymbol} on ${networkLabel}${refundAddressLabel ? ` to ${truncateAddress(refundAddressLabel)}` : ""}.${available}`
25327
+ };
25328
+ }, [ccOriginChainId, ccOriginToken == null ? void 0 : ccOriginToken.symbol, ccRefundPendingInfo, ccResult == null ? void 0 : ccResult.originChainId, refundAddress, selectedToken == null ? void 0 : selectedToken.symbol, underpaymentInfo == null ? void 0 : underpaymentInfo.refundNetworkLabel, underpaymentInfo == null ? void 0 : underpaymentInfo.tokenSymbol]);
25313
25329
  useEffect(() => () => {
25314
25330
  if (recoveryLoadingTimeout.current) {
25315
25331
  clearTimeout(recoveryLoadingTimeout.current);
@@ -25325,6 +25341,7 @@ const CoinleyPaymentInternal = ({
25325
25341
  setCcPhase(status.phase);
25326
25342
  if (status.refundStatus === "refunded") {
25327
25343
  finishRecoveryLoading(() => {
25344
+ setCcRefundPendingInfo(null);
25328
25345
  ccSucceeded.current = true;
25329
25346
  setRefundRequestStatus("refunded");
25330
25347
  setRefundRequestMessage("");
@@ -25332,6 +25349,14 @@ const CoinleyPaymentInternal = ({
25332
25349
  clearUnderpaymentRecovery(status.paymentId || ccResult.id);
25333
25350
  setCurrentStep(PAYMENT_STEPS.SUCCESS);
25334
25351
  });
25352
+ } else if (status.refundStatus === "pending") {
25353
+ activateUnderpaymentFromCrossChainStatus(status);
25354
+ setCcRefundPendingInfo(status);
25355
+ setRefundRequestSubmitted(true);
25356
+ setRefundRequestStatus("pending");
25357
+ setRefundRequestMessage("");
25358
+ setCcManualCheckStatus(null);
25359
+ holdRecoveryLoading("refund", getCrossChainRefundPendingStatus(status));
25335
25360
  } else if (activateUnderpaymentFromCrossChainStatus(status)) {
25336
25361
  if (isOffsetRecovery) {
25337
25362
  setCcManualCheckStatus("not_found");
@@ -25391,17 +25416,29 @@ const CoinleyPaymentInternal = ({
25391
25416
  setCcPhase(s.phase);
25392
25417
  if (s.refundStatus === "refunded") {
25393
25418
  ccSucceeded.current = true;
25419
+ setCcRefundPendingInfo(null);
25394
25420
  setRefundRequestStatus("refunded");
25395
25421
  setRefundRequestMessage("");
25396
25422
  captureRefundSuccessDetails(s, s.refundTxHash, s.refundRecipient || refundAddress.trim());
25397
25423
  clearUnderpaymentRecovery(s.paymentId || ccResult.id);
25398
25424
  setCurrentStep(PAYMENT_STEPS.SUCCESS);
25425
+ } else if (s.refundStatus === "pending") {
25426
+ activateUnderpaymentFromCrossChainStatus(s);
25427
+ setCcRefundPendingInfo(s);
25428
+ setRefundRequestSubmitted(true);
25429
+ setRefundRequestStatus("pending");
25430
+ setRefundRequestMessage("");
25431
+ setCcManualCheckStatus(null);
25432
+ holdRecoveryLoading("refund", getCrossChainRefundPendingStatus(s));
25399
25433
  } else if (activateUnderpaymentFromCrossChainStatus(s)) {
25434
+ setCcRefundPendingInfo(null);
25400
25435
  setCcManualCheckStatus(null);
25401
25436
  } else if (s.phase === "bridging") {
25437
+ setCcRefundPendingInfo(null);
25402
25438
  clearUnderpaymentUiState(s.paymentId || ccResult.id);
25403
25439
  } else if (s.phase === "settled" && !ccSucceeded.current) {
25404
25440
  ccSucceeded.current = true;
25441
+ setCcRefundPendingInfo(null);
25405
25442
  onSuccess == null ? void 0 : onSuccess(s);
25406
25443
  }
25407
25444
  } catch {
@@ -25415,7 +25452,7 @@ const CoinleyPaymentInternal = ({
25415
25452
  cancelled = true;
25416
25453
  clearInterval(t);
25417
25454
  };
25418
- }, [activateUnderpaymentFromCrossChainStatus, captureRefundSuccessDetails, ccResult == null ? void 0 : ccResult.id, clearUnderpaymentRecovery, clearUnderpaymentUiState, onSuccess, paymentFlow.api, refundAddress]);
25455
+ }, [activateUnderpaymentFromCrossChainStatus, captureRefundSuccessDetails, ccResult == null ? void 0 : ccResult.id, clearUnderpaymentRecovery, clearUnderpaymentUiState, getCrossChainRefundPendingStatus, holdRecoveryLoading, onSuccess, paymentFlow.api, refundAddress]);
25419
25456
  const handleGenerateTransferAddress = async () => {
25420
25457
  if (isConverting) {
25421
25458
  setError("Please wait for currency conversion to complete");
@@ -26293,7 +26330,20 @@ const CoinleyPaymentInternal = ({
26293
26330
  });
26294
26331
  } else {
26295
26332
  setRefundRequestMessage("");
26296
- holdRecoveryLoading("refund", getRefundPendingStatus());
26333
+ if (ccResult) {
26334
+ const pendingStatus = {
26335
+ refundStatus: "pending",
26336
+ refundRecipient: trimmedAddress,
26337
+ underpayment: underpaymentInfo,
26338
+ relay: {
26339
+ originChainId: ccResult.originChainId || ccOriginChainId
26340
+ }
26341
+ };
26342
+ setCcRefundPendingInfo(pendingStatus);
26343
+ holdRecoveryLoading("refund", getCrossChainRefundPendingStatus(pendingStatus));
26344
+ } else {
26345
+ holdRecoveryLoading("refund", getRefundPendingStatus());
26346
+ }
26297
26347
  }
26298
26348
  } catch (error2) {
26299
26349
  console.warn("[RefundRequest] Error:", error2.message);
@@ -26303,7 +26353,7 @@ const CoinleyPaymentInternal = ({
26303
26353
  setRefundRequestMessage(error2.message || "Failed to submit refund request. Please try again.");
26304
26354
  });
26305
26355
  }
26306
- }, [activeTransferPaymentId, captureRefundSuccessDetails, ccOriginChainId, ccOriginToken == null ? void 0 : ccOriginToken.symbol, clearUnderpaymentRecovery, config, finishRecoveryLoading, getRefundPendingStatus, holdRecoveryLoading, refundAddress, refundRequestStatus, paymentFlow.api, selectedNetwork == null ? void 0 : selectedNetwork.shortName, selectedToken == null ? void 0 : selectedToken.symbol, startRecoveryLoading, underpaymentInfo]);
26356
+ }, [activeTransferPaymentId, captureRefundSuccessDetails, ccOriginChainId, ccOriginToken == null ? void 0 : ccOriginToken.symbol, ccResult, clearUnderpaymentRecovery, config, finishRecoveryLoading, getCrossChainRefundPendingStatus, getRefundPendingStatus, holdRecoveryLoading, refundAddress, refundRequestStatus, paymentFlow.api, selectedNetwork == null ? void 0 : selectedNetwork.shortName, selectedToken == null ? void 0 : selectedToken.symbol, startRecoveryLoading, underpaymentInfo]);
26307
26357
  const handleDepositManualCheck = useCallback(async () => {
26308
26358
  if (manualCheckStatus === "checking" || !(paymentData == null ? void 0 : paymentData.id)) return;
26309
26359
  const isOffsetRecovery = Boolean(underpaymentInfo && underpaymentView === "offset");
@@ -26399,7 +26449,7 @@ const CoinleyPaymentInternal = ({
26399
26449
  if (currentStep === PAYMENT_STEPS.PROCESSING) {
26400
26450
  return /* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
26401
26451
  /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50", onClick: handleCancel }),
26402
- /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex w-full max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-5 pt-7 shadow-2xl animate-slide-up-sheet" : "relative flex h-[500px] w-[430px] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-5 pt-7 shadow-2xl", children: [
26452
+ /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-x-0 bottom-0 flex items-end justify-center" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-5 pt-7 shadow-2xl animate-slide-up-sheet" : "relative flex h-[500px] w-[430px] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-5 pt-7 shadow-2xl", children: [
26403
26453
  /* @__PURE__ */ jsx(
26404
26454
  "button",
26405
26455
  {
@@ -26441,7 +26491,7 @@ const CoinleyPaymentInternal = ({
26441
26491
  if (offsetSuccessDetails) {
26442
26492
  return /* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
26443
26493
  /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50" }),
26444
- /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex w-full max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-4 pt-8 animate-slide-up-sheet" : "relative flex h-auto min-h-[554px] w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-4 pt-8", children: [
26494
+ /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-x-0 bottom-0 flex items-end justify-center" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-4 pt-8 animate-slide-up-sheet" : "relative flex h-auto min-h-[554px] w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-4 pt-8", children: [
26445
26495
  /* @__PURE__ */ jsx(
26446
26496
  "button",
26447
26497
  {
@@ -26525,7 +26575,7 @@ const CoinleyPaymentInternal = ({
26525
26575
  if (refundSuccessDetails) {
26526
26576
  return /* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
26527
26577
  /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50" }),
26528
- /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex w-full max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-4 pt-8 animate-slide-up-sheet" : "relative flex h-auto min-h-[554px] w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-4 pt-8", children: [
26578
+ /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-x-0 bottom-0 flex items-end justify-center" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-4 pt-8 animate-slide-up-sheet" : "relative flex h-auto min-h-[554px] w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-4 pt-8", children: [
26529
26579
  /* @__PURE__ */ jsx(
26530
26580
  "button",
26531
26581
  {
@@ -26611,7 +26661,7 @@ const CoinleyPaymentInternal = ({
26611
26661
  }
26612
26662
  return /* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
26613
26663
  /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50" }),
26614
- /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsx("div", { className: isMobile ? "coinley-mobile-sheet relative flex w-full max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-5 pt-5 animate-slide-up-sheet" : "relative flex h-[640px] max-h-[calc(100vh-32px)] min-h-0 w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-5 pt-5", children: /* @__PURE__ */ jsx(
26664
+ /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-x-0 bottom-0 flex items-end justify-center" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsx("div", { className: isMobile ? "coinley-mobile-sheet relative flex max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-4 pb-5 pt-5 animate-slide-up-sheet" : "relative flex h-[640px] max-h-[calc(100vh-32px)] min-h-0 w-[450px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-4 pb-5 pt-5", children: /* @__PURE__ */ jsx(
26615
26665
  PaymentStatus,
26616
26666
  {
26617
26667
  status: "success",
@@ -26662,11 +26712,11 @@ const CoinleyPaymentInternal = ({
26662
26712
  const isCompactCheckoutSetupView = isCrossChainTransferSetupView || isTransferSetupView || isQrSetupView || isWalletExtensionSetupView;
26663
26713
  const isCompactCheckoutView = isCompactCheckoutSetupView || isWalletExtensionReadyView || isWalletExtensionConfirmView;
26664
26714
  const isTightWalletView = isWalletExtensionReadyView || isWalletExtensionConfirmView;
26665
- const renderPaymentSummary = () => /* @__PURE__ */ jsxs("div", { className: isTightWalletView ? "mb-3" : isCompactCheckoutView ? "mb-6 mt-[-5px]" : "mb-8", children: [
26715
+ const renderPaymentSummary = () => /* @__PURE__ */ jsxs("div", { className: isMobile ? isTightWalletView ? "mb-2" : isCompactCheckoutView ? "mb-4 mt-[-3px]" : "mb-5" : isTightWalletView ? "mb-3" : isCompactCheckoutView ? "mb-6 mt-[-5px]" : "mb-8", children: [
26666
26716
  /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
26667
26717
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
26668
26718
  /* @__PURE__ */ jsx("p", { className: "text-[11px] leading-none text-[#9EA0A8] mb-1", children: "Sending to:" }),
26669
- /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold text-[#1F2430] truncate max-w-[120px]", children: (config == null ? void 0 : config.merchantName) || "Merchant" })
26719
+ /* @__PURE__ */ jsx("p", { className: `${isMobile ? "max-w-[110px]" : "max-w-[120px]"} truncate text-xs font-semibold text-[#1F2430]`, children: (config == null ? void 0 : config.merchantName) || "Merchant" })
26670
26720
  ] }),
26671
26721
  /* @__PURE__ */ jsx("div", { className: "flex-1 pt-[13px] border-t border-dashed border-[#DFE1E7]" }),
26672
26722
  /* @__PURE__ */ jsxs("div", { className: "text-right", children: [
@@ -26680,7 +26730,7 @@ const CoinleyPaymentInternal = ({
26680
26730
  ] }),
26681
26731
  currencyError && /* @__PURE__ */ jsx("p", { className: "text-[11px] text-red-500 mt-2", children: currencyError })
26682
26732
  ] });
26683
- const renderMethodTabs = () => /* @__PURE__ */ jsxs("div", { className: isTightWalletView ? "mb-2" : isCompactCheckoutView ? "mb-3" : "mb-4", children: [
26733
+ const renderMethodTabs = () => /* @__PURE__ */ jsxs("div", { className: isMobile ? isTightWalletView ? "mb-2" : "mb-3" : isTightWalletView ? "mb-2" : isCompactCheckoutView ? "mb-3" : "mb-4", children: [
26684
26734
  /* @__PURE__ */ jsx("p", { className: `text-xs text-[#9EA0A8] ${isTightWalletView ? "mb-1" : "mb-2"}`, children: "Payment methods" }),
26685
26735
  /* @__PURE__ */ jsx("div", { className: "flex overflow-hidden rounded-xl bg-[#F6F6F7] p-1", children: [
26686
26736
  { tab: PAYMENT_TABS.TRANSFER, label: "Transfer to address" },
@@ -26691,13 +26741,13 @@ const CoinleyPaymentInternal = ({
26691
26741
  {
26692
26742
  type: "button",
26693
26743
  onClick: () => isMobile ? handleMobileTabSelect(method.tab) : setActiveTab(method.tab),
26694
- className: `min-w-0 ${isTightWalletView ? "h-7 px-2 text-[13px]" : "h-9 px-2.5 text-sm"} rounded-lg transition-colors whitespace-nowrap ${method.tab === PAYMENT_TABS.TRANSFER ? "flex-[1.35]" : "flex-1"} ${activeTab === method.tab ? "bg-white text-[#5B2EEA] shadow-[0_1px_3px_rgba(31,36,48,0.08)]" : "text-[#535865] hover:text-[#1F2430]"}`,
26744
+ className: `min-w-0 ${isMobile ? "h-8 px-1.5 text-[12px]" : isTightWalletView ? "h-7 px-2 text-[13px]" : "h-9 px-2.5 text-sm"} rounded-lg transition-colors whitespace-nowrap ${method.tab === PAYMENT_TABS.TRANSFER ? "flex-[1.35]" : "flex-1"} ${activeTab === method.tab ? "bg-white text-[#5B2EEA] shadow-[0_1px_3px_rgba(31,36,48,0.08)]" : "text-[#535865] hover:text-[#1F2430]"}`,
26695
26745
  children: method.label
26696
26746
  },
26697
26747
  method.tab
26698
26748
  )) })
26699
26749
  ] });
26700
- const renderUnderpaymentWarning = (title = "Amount received is less than expected", description = null) => /* @__PURE__ */ jsxs("div", { className: "mb-5 rounded-lg border border-[#F5E5B8] bg-[#FFF9E8] px-3 py-2", children: [
26750
+ const renderUnderpaymentWarning = (title = "Amount received is less than expected", description = null) => /* @__PURE__ */ jsxs("div", { className: `${isMobile ? "mb-4" : "mb-5"} rounded-lg border border-[#F5E5B8] bg-[#FFF9E8] px-3 py-2`, children: [
26701
26751
  /* @__PURE__ */ jsxs("div", { className: `flex items-start gap-2 text-[#B54708] ${title && description ? "mb-1" : ""}`, children: [
26702
26752
  /* @__PURE__ */ jsx("svg", { className: "mt-0.5 h-4 w-4 flex-shrink-0", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v4m0 4h.01M12 3a9 9 0 110 18 9 9 0 010-18z" }) }),
26703
26753
  title ? /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: title }) : /* @__PURE__ */ jsx("p", { className: "text-xs leading-5 text-[#B54708]", children: description })
@@ -26716,12 +26766,12 @@ const CoinleyPaymentInternal = ({
26716
26766
  setRefundRequestStatus(null);
26717
26767
  setRefundRequestMessage("");
26718
26768
  },
26719
- className: `relative flex min-h-[112px] flex-col items-start rounded-xl border p-3 text-left transition-colors ${selected ? "border-[#8B5CF6] bg-[#F4EEFF]" : "border-[#ECEEF2] bg-white hover:border-[#D7C5FF]"}`,
26769
+ className: `relative flex ${isMobile ? "min-h-[98px] p-2.5" : "min-h-[112px] p-3"} flex-col items-start rounded-xl border text-left transition-colors ${selected ? "border-[#8B5CF6] bg-[#F4EEFF]" : "border-[#ECEEF2] bg-white hover:border-[#D7C5FF]"}`,
26720
26770
  children: [
26721
26771
  selected && /* @__PURE__ */ jsx("span", { className: "absolute right-[-7px] top-[-9px] flex h-5 w-5 items-center justify-center rounded-full border border-[#8B5CF6] bg-white text-[#7042D2]", children: /* @__PURE__ */ jsx("svg", { className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }) }),
26722
- /* @__PURE__ */ jsx("div", { className: "mb-3 flex h-6 w-6 items-center justify-center text-[#111827]", children: icon }),
26772
+ /* @__PURE__ */ jsx("div", { className: `${isMobile ? "mb-2" : "mb-3"} flex h-6 w-6 items-center justify-center text-[#111827]`, children: icon }),
26723
26773
  /* @__PURE__ */ jsx("p", { className: "mb-1 text-sm font-semibold text-[#111827]", children: title }),
26724
- /* @__PURE__ */ jsx("p", { className: "text-xs leading-4 text-[#A3A5AC]", children: description })
26774
+ /* @__PURE__ */ jsx("p", { className: `${isMobile ? "text-[11px] leading-4" : "text-xs leading-4"} text-[#A3A5AC]`, children: description })
26725
26775
  ]
26726
26776
  }
26727
26777
  );
@@ -26749,13 +26799,13 @@ const CoinleyPaymentInternal = ({
26749
26799
  })
26750
26800
  ] })
26751
26801
  ] });
26752
- const renderRecoveryLoadingPanel = ({ title, description, detail }) => /* @__PURE__ */ jsxs("div", { className: "flex min-h-[292px] flex-col items-center justify-center px-3 py-4 text-center", children: [
26753
- /* @__PURE__ */ jsxs("div", { className: "relative mb-4 flex h-28 w-40 items-center justify-center", children: [
26802
+ const renderRecoveryLoadingPanel = ({ title, description, detail }) => /* @__PURE__ */ jsxs("div", { className: `flex ${isMobile ? "min-h-[230px] px-2 py-3" : "min-h-[292px] px-3 py-4"} flex-col items-center justify-center text-center`, children: [
26803
+ /* @__PURE__ */ jsxs("div", { className: `relative ${isMobile ? "mb-3 h-24 w-32" : "mb-4 h-28 w-40"} flex items-center justify-center`, children: [
26754
26804
  /* @__PURE__ */ jsx("div", { className: "absolute inset-x-5 bottom-1 h-4 rounded-full bg-[#7042D2]/10 blur-md" }),
26755
- /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Processing", className: "relative h-28 w-40 object-contain" })
26805
+ /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Processing", className: `relative ${isMobile ? "h-24 w-32" : "h-28 w-40"} object-contain` })
26756
26806
  ] }),
26757
- /* @__PURE__ */ jsx("h3", { className: "mb-2 text-lg font-semibold text-[#111827]", children: title }),
26758
- /* @__PURE__ */ jsx("p", { className: "mx-auto max-w-[330px] text-sm leading-5 text-[#8B8E98]", children: description }),
26807
+ /* @__PURE__ */ jsx("h3", { className: `${isMobile ? "mb-1.5 text-base" : "mb-2 text-lg"} font-semibold text-[#111827]`, children: title }),
26808
+ /* @__PURE__ */ jsx("p", { className: `mx-auto max-w-[330px] ${isMobile ? "text-xs leading-5" : "text-sm leading-5"} text-[#8B8E98]`, children: description }),
26759
26809
  detail && /* @__PURE__ */ jsxs("div", { className: "mt-5 w-full rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] px-3 py-3 text-left", children: [
26760
26810
  /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between text-xs", children: [
26761
26811
  /* @__PURE__ */ jsx("span", { className: "text-[#A3A5AC]", children: "Status" }),
@@ -26769,12 +26819,12 @@ const CoinleyPaymentInternal = ({
26769
26819
  description: (recoveryLoadingStatus == null ? void 0 : recoveryLoadingStatus.action) === "offset" ? recoveryLoadingStatus.description : "We are checking the blockchain for your offset payment. This usually takes a few seconds.",
26770
26820
  detail: (recoveryLoadingStatus == null ? void 0 : recoveryLoadingStatus.action) === "offset" ? recoveryLoadingStatus.detail : `Waiting for the remaining ${underpaymentOffsetAmountLabel} on ${underpaymentInfo.refundNetworkLabel || getOffsetSuccessNetworkName(selectedNetwork)}.`
26771
26821
  }) : /* @__PURE__ */ jsxs("div", { className: "pt-1", children: [
26772
- /* @__PURE__ */ jsxs("div", { className: "mb-5 flex items-start gap-3", children: [
26773
- /* @__PURE__ */ jsx("div", { className: "h-[92px] w-[92px] flex-shrink-0 bg-white", children: (ccResult ? ccQrCode : depositQrCode) ? /* @__PURE__ */ jsx("img", { src: ccResult ? ccQrCode : depositQrCode, alt: "Deposit Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
26822
+ /* @__PURE__ */ jsxs("div", { className: `${isMobile ? "mb-4 gap-3" : "mb-5 gap-3"} flex items-start`, children: [
26823
+ /* @__PURE__ */ jsx("div", { className: `${isMobile ? "h-[82px] w-[82px]" : "h-[92px] w-[92px]"} flex-shrink-0 bg-white`, children: (ccResult ? ccQrCode : depositQrCode) ? /* @__PURE__ */ jsx("img", { src: ccResult ? ccQrCode : depositQrCode, alt: "Deposit Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
26774
26824
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 pt-1", children: [
26775
26825
  /* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-medium text-[#1F2430]", children: "Same Wallet address" }),
26776
- /* @__PURE__ */ jsxs("div", { className: "flex min-h-[58px] items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] px-3 py-2", children: [
26777
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 break-all text-sm leading-5 text-[#1F2430]", children: activeTransferDepositAddress }),
26826
+ /* @__PURE__ */ jsxs("div", { className: `flex ${isMobile ? "min-h-[54px] px-2.5" : "min-h-[58px] px-3"} items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] py-2`, children: [
26827
+ /* @__PURE__ */ jsx("span", { className: `min-w-0 flex-1 break-all ${isMobile ? "text-xs leading-4" : "text-sm leading-5"} text-[#1F2430]`, children: activeTransferDepositAddress }),
26778
26828
  /* @__PURE__ */ jsx(
26779
26829
  "button",
26780
26830
  {
@@ -26847,7 +26897,7 @@ const CoinleyPaymentInternal = ({
26847
26897
  const selectedLabel = selectedOption ? getLabel(selectedOption) : placeholder;
26848
26898
  const selectedIcon = selectedOption && getIcon ? getIcon(selectedOption) : null;
26849
26899
  const isOpen2 = openCheckoutDropdown === dropdownId && !disabled;
26850
- const dropdownListMaxHeight = maxVisibleItems * 40;
26900
+ const dropdownListMaxHeight = maxVisibleItems * (isMobile ? 36 : 40);
26851
26901
  const searchValue = checkoutDropdownSearch[dropdownId] || "";
26852
26902
  const normalizedSearch = searchValue.trim().toLowerCase();
26853
26903
  const filteredOptions = normalizedSearch ? options.filter((option) => {
@@ -26855,7 +26905,7 @@ const CoinleyPaymentInternal = ({
26855
26905
  const optionLabel = getLabel(option);
26856
26906
  return (optionLabel == null ? void 0 : optionLabel.toLowerCase().includes(normalizedSearch)) || ((_b = (_a2 = option == null ? void 0 : option.name) == null ? void 0 : _a2.toLowerCase) == null ? void 0 : _b.call(_a2).includes(normalizedSearch)) || ((_d = (_c = option == null ? void 0 : option.symbol) == null ? void 0 : _c.toLowerCase) == null ? void 0 : _d.call(_c).includes(normalizedSearch)) || ((_f = (_e = option == null ? void 0 : option.shortName) == null ? void 0 : _e.toLowerCase) == null ? void 0 : _f.call(_e).includes(normalizedSearch));
26857
26907
  }) : options;
26858
- return /* @__PURE__ */ jsxs("div", { className: `relative ${isOpen2 ? elevated ? "z-[120]" : "z-50" : "z-10"} ${compact ? "mb-3" : "mb-4"} text-left`, children: [
26908
+ return /* @__PURE__ */ jsxs("div", { className: `relative ${isOpen2 ? elevated ? "z-[120]" : "z-50" : "z-10"} ${isMobile ? compact ? "mb-2.5" : "mb-3" : compact ? "mb-3" : "mb-4"} text-left`, children: [
26859
26909
  /* @__PURE__ */ jsx("label", { className: "block text-xs text-[#1F2430] mb-2", children: label }),
26860
26910
  /* @__PURE__ */ jsxs("div", { className: "relative", children: [
26861
26911
  /* @__PURE__ */ jsxs(
@@ -26864,7 +26914,7 @@ const CoinleyPaymentInternal = ({
26864
26914
  type: "button",
26865
26915
  disabled,
26866
26916
  onClick: () => setOpenCheckoutDropdown(isOpen2 ? null : dropdownId),
26867
- className: "flex h-11 w-full items-center gap-2 rounded-xl border border-[#EEF0F4] bg-white px-4 pr-10 text-left text-sm text-[#1F2430] outline-none transition-colors focus:border-[#B49AF0] disabled:bg-[#FAFAFB] disabled:text-[#B5B7BE]",
26917
+ className: `flex ${isMobile ? "h-10 px-3 pr-9 text-[13px]" : "h-11 px-4 pr-10 text-sm"} w-full items-center gap-2 rounded-xl border border-[#EEF0F4] bg-white text-left text-[#1F2430] outline-none transition-colors focus:border-[#B49AF0] disabled:bg-[#FAFAFB] disabled:text-[#B5B7BE]`,
26868
26918
  children: [
26869
26919
  selectedIcon && /* @__PURE__ */ jsx(
26870
26920
  "img",
@@ -26881,7 +26931,7 @@ const CoinleyPaymentInternal = ({
26881
26931
  ]
26882
26932
  }
26883
26933
  ),
26884
- /* @__PURE__ */ jsx("svg", { className: "pointer-events-none absolute right-4 top-1/2 h-4 w-4 -translate-y-1/2 text-[#B5B7BE]", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }),
26934
+ /* @__PURE__ */ jsx("svg", { className: `pointer-events-none absolute ${isMobile ? "right-3" : "right-4"} top-1/2 h-4 w-4 -translate-y-1/2 text-[#B5B7BE]`, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }),
26885
26935
  isOpen2 && /* @__PURE__ */ jsxs("div", { className: `absolute left-0 right-0 top-[calc(100%+6px)] ${elevated ? "z-[130]" : "z-[60]"} rounded-xl border border-[#EEF0F4] bg-white p-1 shadow-[0_12px_30px_rgba(31,36,48,0.14)]`, children: [
26886
26936
  /* @__PURE__ */ jsx("div", { className: "p-1", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
26887
26937
  /* @__PURE__ */ jsx("svg", { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#B5B7BE]", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-4.35-4.35m1.35-5.65a7 7 0 11-14 0 7 7 0 0114 0z" }) }),
@@ -26917,7 +26967,7 @@ const CoinleyPaymentInternal = ({
26917
26967
  [dropdownId]: ""
26918
26968
  }));
26919
26969
  },
26920
- className: `flex h-10 w-full items-center gap-2 rounded-lg px-3 text-left text-sm transition-colors ${isSelected ? "bg-purple-50 text-[#5B2EEA]" : "text-[#1F2430] hover:bg-[#F8F8F9]"}`,
26970
+ className: `flex ${isMobile ? "h-9 text-[13px]" : "h-10 text-sm"} w-full items-center gap-2 rounded-lg px-3 text-left transition-colors ${isSelected ? "bg-purple-50 text-[#5B2EEA]" : "text-[#1F2430] hover:bg-[#F8F8F9]"}`,
26921
26971
  children: [
26922
26972
  optionIcon && /* @__PURE__ */ jsx(
26923
26973
  "img",
@@ -27247,10 +27297,10 @@ const CoinleyPaymentInternal = ({
27247
27297
  /* @__PURE__ */ jsx("p", { className: "text-xs leading-5 text-[#9EA0A8]", children: "Simply select a wallet app to generate the QR code then input the amount, and transfer your funds" })
27248
27298
  ] });
27249
27299
  const renderQrPaymentPanel = () => /* @__PURE__ */ jsxs("div", { className: "pt-1", children: [
27250
- /* @__PURE__ */ jsxs("div", { className: "mb-4 flex flex-col gap-3 min-[380px]:flex-row min-[380px]:items-start", children: [
27251
- /* @__PURE__ */ jsx("div", { className: "h-[92px] w-[92px] flex-shrink-0 bg-white", children: qrCodeDataUrl ? /* @__PURE__ */ jsx("img", { src: qrCodeDataUrl, alt: "Payment QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27300
+ /* @__PURE__ */ jsxs("div", { className: `${isMobile ? "mb-3" : "mb-4"} flex flex-col gap-3 min-[380px]:flex-row min-[380px]:items-start`, children: [
27301
+ /* @__PURE__ */ jsx("div", { className: `${isMobile ? "h-[82px] w-[82px]" : "h-[92px] w-[92px]"} flex-shrink-0 bg-white`, children: qrCodeDataUrl ? /* @__PURE__ */ jsx("img", { src: qrCodeDataUrl, alt: "Payment QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27252
27302
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
27253
- /* @__PURE__ */ jsx("p", { className: "mb-2 text-base font-semibold text-[#111827]", children: "Instructions" }),
27303
+ /* @__PURE__ */ jsx("p", { className: `${isMobile ? "mb-1 text-sm" : "mb-2 text-base"} font-semibold text-[#111827]`, children: "Instructions" }),
27254
27304
  /* @__PURE__ */ jsxs("ol", { className: "list-inside list-decimal space-y-1 text-xs leading-5 text-[#111827]", children: [
27255
27305
  /* @__PURE__ */ jsx("li", { children: "Scan QR code with your phone camera" }),
27256
27306
  /* @__PURE__ */ jsx("li", { children: "The payment page will open inside your wallet app" }),
@@ -27366,7 +27416,7 @@ const CoinleyPaymentInternal = ({
27366
27416
  type: type2,
27367
27417
  onClick,
27368
27418
  disabled,
27369
- className: `h-11 w-full rounded-xl px-4 text-sm font-semibold transition-colors disabled:cursor-not-allowed ${variant === "secondary" ? "border border-[#7042D2] bg-white text-[#7042D2] hover:bg-purple-50 disabled:opacity-60" : "bg-[#7042D2] text-white hover:bg-[#5b34b1] disabled:bg-[#B59AE9] disabled:text-white"}`,
27419
+ className: `${isMobile ? "h-10 text-[13px]" : "h-11 text-sm"} w-full rounded-xl px-4 font-semibold transition-colors disabled:cursor-not-allowed ${variant === "secondary" ? "border border-[#7042D2] bg-white text-[#7042D2] hover:bg-purple-50 disabled:opacity-60" : "bg-[#7042D2] text-white hover:bg-[#5b34b1] disabled:bg-[#B59AE9] disabled:text-white"}`,
27370
27420
  children: label
27371
27421
  }
27372
27422
  );
@@ -27516,17 +27566,17 @@ const CoinleyPaymentInternal = ({
27516
27566
  };
27517
27567
  const renderCheckoutFooter = () => {
27518
27568
  const checkoutAction = renderCheckoutAction();
27519
- return /* @__PURE__ */ jsxs("div", { className: `mt-auto shrink-0 ${isTightWalletView ? "pt-2 pb-0" : isCompactCheckoutView ? "pt-3 pb-0" : "pt-4 pb-1"} text-center`, children: [
27520
- /* @__PURE__ */ jsx("div", { className: checkoutAction ? "mb-3 min-h-[44px]" : "mb-3 min-h-[44px]", children: checkoutAction }),
27521
- /* @__PURE__ */ jsxs("div", { className: `flex items-center justify-center gap-2 ${isTightWalletView ? "text-xs" : "text-sm"} text-[#1F2430]`, children: [
27522
- /* @__PURE__ */ jsxs("svg", { className: `${isTightWalletView ? "h-3.5 w-3.5" : "h-4 w-4"}`, fill: "none", stroke: "currentColor", strokeWidth: "1.8", viewBox: "0 0 24 24", children: [
27569
+ return /* @__PURE__ */ jsxs("div", { className: `mt-auto shrink-0 ${isMobile ? isTightWalletView ? "pt-2 pb-0" : "pt-3 pb-0" : isTightWalletView ? "pt-2 pb-0" : isCompactCheckoutView ? "pt-3 pb-0" : "pt-4 pb-1"} text-center`, children: [
27570
+ /* @__PURE__ */ jsx("div", { className: checkoutAction ? `${isMobile ? "mb-2 min-h-[40px]" : "mb-3 min-h-[44px]"}` : `${isMobile ? "mb-2 min-h-[40px]" : "mb-3 min-h-[44px]"}`, children: checkoutAction }),
27571
+ /* @__PURE__ */ jsxs("div", { className: `flex items-center justify-center gap-1.5 ${isMobile || isTightWalletView ? "text-xs" : "text-sm"} text-[#1F2430]`, children: [
27572
+ /* @__PURE__ */ jsxs("svg", { className: `${isMobile || isTightWalletView ? "h-3.5 w-3.5" : "h-4 w-4"}`, fill: "none", stroke: "currentColor", strokeWidth: "1.8", viewBox: "0 0 24 24", children: [
27523
27573
  /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
27524
27574
  /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 7v5l3 2" })
27525
27575
  ] }),
27526
27576
  /* @__PURE__ */ jsx("span", { children: "Time remaining for this payment" }),
27527
27577
  /* @__PURE__ */ jsx("span", { className: `tabular-nums ${timeRemaining <= 5 * 60 * 1e3 ? "text-red-500" : "text-[#5B2EEA]"}`, children: formatCountdown(timeRemaining) })
27528
27578
  ] }),
27529
- /* @__PURE__ */ jsx("p", { className: `${isTightWalletView ? "mt-1" : isCompactCheckoutView ? "mt-2" : "mt-3"} text-xs text-[#A9ABB2]`, children: "Powered by Stablezact" })
27579
+ /* @__PURE__ */ jsx("p", { className: `${isMobile || isTightWalletView ? "mt-1" : isCompactCheckoutView ? "mt-2" : "mt-3"} text-xs text-[#A9ABB2]`, children: "Powered by Stablezact" })
27530
27580
  ] });
27531
27581
  };
27532
27582
  const renderTabContent = () => {
@@ -27839,11 +27889,11 @@ const CoinleyPaymentInternal = ({
27839
27889
  !isCrossChainTransferSetupView && !ccResult && !(paymentData == null ? void 0 : paymentData.depositAddress) && renderTransferSetupPanel(),
27840
27890
  !ccResult && (paymentData == null ? void 0 : paymentData.depositAddress) && /* @__PURE__ */ jsxs("div", { className: "pt-1", children: [
27841
27891
  !underpaymentInfo && /* @__PURE__ */ jsxs("div", { className: "mb-5 flex items-center gap-4", children: [
27842
- /* @__PURE__ */ jsx("div", { className: "h-[92px] w-[92px] flex-shrink-0 bg-white", children: depositQrCode ? /* @__PURE__ */ jsx("img", { src: depositQrCode, alt: "Deposit Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27892
+ /* @__PURE__ */ jsx("div", { className: `${isMobile ? "h-[82px] w-[82px]" : "h-[92px] w-[92px]"} flex-shrink-0 bg-white`, children: depositQrCode ? /* @__PURE__ */ jsx("img", { src: depositQrCode, alt: "Deposit Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27843
27893
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
27844
27894
  /* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-medium text-[#1F2430]", children: "Wallet address" }),
27845
- /* @__PURE__ */ jsxs("div", { className: "flex min-h-[60px] items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] px-3 py-2", children: [
27846
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 break-all text-sm leading-5 text-[#1F2430]", children: paymentData.depositAddress }),
27895
+ /* @__PURE__ */ jsxs("div", { className: `flex ${isMobile ? "min-h-[54px] px-2.5" : "min-h-[60px] px-3"} items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] py-2`, children: [
27896
+ /* @__PURE__ */ jsx("span", { className: `min-w-0 flex-1 break-all ${isMobile ? "text-xs leading-4" : "text-sm leading-5"} text-[#1F2430]`, children: paymentData.depositAddress }),
27847
27897
  /* @__PURE__ */ jsx(
27848
27898
  "button",
27849
27899
  {
@@ -27867,11 +27917,11 @@ const CoinleyPaymentInternal = ({
27867
27917
  ] }),
27868
27918
  ccResult && /* @__PURE__ */ jsxs("div", { className: "pt-1", children: [
27869
27919
  !underpaymentInfo && /* @__PURE__ */ jsxs("div", { className: "mb-5 flex items-center gap-4", children: [
27870
- /* @__PURE__ */ jsx("div", { className: "h-[92px] w-[92px] flex-shrink-0 bg-white", children: ccQrCode ? /* @__PURE__ */ jsx("img", { src: ccQrCode, alt: "Payment Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27920
+ /* @__PURE__ */ jsx("div", { className: `${isMobile ? "h-[82px] w-[82px]" : "h-[92px] w-[92px]"} flex-shrink-0 bg-white`, children: ccQrCode ? /* @__PURE__ */ jsx("img", { src: ccQrCode, alt: "Payment Address QR Code", className: "h-full w-full" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-lg bg-gray-100", children: /* @__PURE__ */ jsx("img", { src: stablezactLoading, alt: "Loading QR code", className: "h-14 w-16 object-contain" }) }) }),
27871
27921
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
27872
27922
  /* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-medium text-[#1F2430]", children: "Wallet address" }),
27873
- /* @__PURE__ */ jsxs("div", { className: "flex min-h-[60px] items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] px-3 py-2", children: [
27874
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 break-all text-sm leading-5 text-[#1F2430]", children: ccResult.relayDepositAddress }),
27923
+ /* @__PURE__ */ jsxs("div", { className: `flex ${isMobile ? "min-h-[54px] px-2.5" : "min-h-[60px] px-3"} items-center gap-2 rounded-xl border border-[#EEF0F4] bg-[#FAFAFB] py-2`, children: [
27924
+ /* @__PURE__ */ jsx("span", { className: `min-w-0 flex-1 break-all ${isMobile ? "text-xs leading-4" : "text-sm leading-5"} text-[#1F2430]`, children: ccResult.relayDepositAddress }),
27875
27925
  /* @__PURE__ */ jsx(
27876
27926
  "button",
27877
27927
  {
@@ -28004,14 +28054,14 @@ const CoinleyPaymentInternal = ({
28004
28054
  ].includes(openCheckoutDropdown);
28005
28055
  return /* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
28006
28056
  /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50", onClick: handleCancel }),
28007
- /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative bg-white rounded-t-[24px] shadow-2xl w-full max-h-[96dvh] overflow-hidden flex flex-col animate-slide-up-sheet" : `relative bg-white rounded-[28px] shadow-2xl w-[430px] ${isTransferAddressGenerated ? "h-[640px]" : "h-[600px]"} max-h-[calc(100vh-32px)] overflow-hidden flex flex-col`, children: [
28057
+ /* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-x-0 bottom-0 flex items-end justify-center" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative bg-white rounded-t-[24px] shadow-2xl max-h-[96dvh] overflow-hidden flex flex-col animate-slide-up-sheet" : `relative bg-white rounded-[28px] shadow-2xl w-[430px] ${isTransferAddressGenerated ? "h-[640px]" : "h-[600px]"} max-h-[calc(100vh-32px)] overflow-hidden flex flex-col`, children: [
28008
28058
  !isMobile && /* @__PURE__ */ jsxs(Fragment, { children: [
28009
28059
  /* @__PURE__ */ jsx("span", { className: `pointer-events-none absolute left-[-10px] ${isTransferAddressGenerated ? "top-[36%]" : "top-[44%]"} z-20 h-5 w-5 rounded-full bg-black/50` }),
28010
28060
  /* @__PURE__ */ jsx("span", { className: `pointer-events-none absolute right-[-10px] ${isTransferAddressGenerated ? "top-[36%]" : "top-[44%]"} z-20 h-5 w-5 rounded-full bg-black/50` })
28011
28061
  ] }),
28012
28062
  isMobile && /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-3 pb-1 flex-shrink-0", children: /* @__PURE__ */ jsx("div", { className: "w-10 h-1 bg-gray-300 rounded-full" }) }),
28013
- /* @__PURE__ */ jsxs("div", { className: `flex min-h-0 flex-1 flex-col ${isMobile ? "px-3" : "px-4"} ${isTightWalletView ? "pb-2 pt-3" : "pb-4 pt-4"}`, children: [
28014
- /* @__PURE__ */ jsxs("div", { className: `${isTightWalletView ? "mb-3" : "mb-5"} flex items-center justify-between`, children: [
28063
+ /* @__PURE__ */ jsxs("div", { className: `flex min-h-0 flex-1 flex-col px-4 ${isMobile ? isTightWalletView ? "pb-3 pt-3" : "pb-4 pt-3" : isTightWalletView ? "pb-2 pt-3" : "pb-4 pt-4"}`, children: [
28064
+ /* @__PURE__ */ jsxs("div", { className: `${isMobile ? isTightWalletView ? "mb-2" : "mb-4" : isTightWalletView ? "mb-3" : "mb-5"} flex items-center justify-between`, children: [
28015
28065
  isTransferAddressGenerated || isWalletReadyForPayment || isQrPaymentActiveView || isWalletBackHeaderView || isWalletTokenSelectionView ? /* @__PURE__ */ jsx(
28016
28066
  "button",
28017
28067
  {
@@ -28072,4 +28122,4 @@ export {
28072
28122
  chainTransports as c,
28073
28123
  isFeatureEnabled as i
28074
28124
  };
28075
- //# sourceMappingURL=CoinleyPayment-DkOwcvXS.js.map
28125
+ //# sourceMappingURL=CoinleyPayment-BFkZ0Fq5.js.map
@@ -1,4 +1,4 @@
1
- import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-DkOwcvXS.js";
1
+ import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BFkZ0Fq5.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-R5T4FZOw.js.map
116
+ //# sourceMappingURL=appKitEVM-BC0nAR77.js.map
@@ -1,4 +1,4 @@
1
- import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-DkOwcvXS.js";
1
+ import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BFkZ0Fq5.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-ZNLr1WJ6.js.map
246
+ //# sourceMappingURL=appKitSolana-B1EqivHA.js.map