@xswap-link/sdk 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.css +234 -263
  3. package/dist/index.js +264 -253
  4. package/dist/index.mjs +264 -253
  5. package/package.json +1 -1
  6. package/src/components/Alert/index.tsx +1 -1
  7. package/src/components/Skeleton/index.tsx +3 -1
  8. package/src/components/TxConfigForm/BalanceComponent.tsx +1 -1
  9. package/src/components/TxConfigForm/Button.tsx +1 -1
  10. package/src/components/TxConfigForm/ChainListElement.tsx +2 -2
  11. package/src/components/TxConfigForm/Description.tsx +2 -2
  12. package/src/components/TxConfigForm/ErrorField.tsx +4 -2
  13. package/src/components/TxConfigForm/FeesDetails.tsx +21 -21
  14. package/src/components/TxConfigForm/Form.tsx +2 -2
  15. package/src/components/TxConfigForm/History.tsx +5 -5
  16. package/src/components/TxConfigForm/HistoryCard.tsx +33 -40
  17. package/src/components/TxConfigForm/PoweredBy.tsx +2 -2
  18. package/src/components/TxConfigForm/Settings.tsx +33 -27
  19. package/src/components/TxConfigForm/Summary.tsx +24 -23
  20. package/src/components/TxConfigForm/SwapPanel.tsx +11 -11
  21. package/src/components/TxConfigForm/TokenPicker.tsx +36 -34
  22. package/src/components/TxConfigForm/TopBar.tsx +8 -8
  23. package/src/components/TxConfigForm/UsdPrice.tsx +2 -2
  24. package/src/components/TxConfigForm/index.tsx +6 -6
  25. package/src/components/TxStatusButton/index.tsx +31 -27
  26. package/src/components/UnknownTokenLogo/UnknownTokenLogo.tsx +1 -1
  27. package/src/components/global.css +7 -5
  28. package/src/components/icons/CircularProgressIcon.tsx +1 -1
  29. package/src/config/init.tsx +19 -18
  30. package/tailwind.config.js +1 -0
package/dist/index.mjs CHANGED
@@ -23,7 +23,7 @@ var xswap_config_default = {
23
23
  };
24
24
 
25
25
  // package.json
26
- var version = "0.2.5";
26
+ var version = "0.2.6";
27
27
 
28
28
  // src/components/WaitingForInit/index.tsx
29
29
  import { jsx } from "react/jsx-runtime";
@@ -50,19 +50,19 @@ var WaitingForInit = () => {
50
50
 
51
51
  // src/config/init.tsx
52
52
  import { jsx as jsx2 } from "react/jsx-runtime";
53
- var initIndicatorRoot;
54
- var xswapRoot;
55
- var txStatusRoot;
53
+ var xpayRoot;
54
+ var xpayInitIndicatorRoot;
55
+ var xpayTxStatusRoot;
56
56
  var initCompleted = false;
57
57
  var initDocument = () => {
58
58
  if (typeof document === "undefined") {
59
59
  throw new Error("Can't render XPay components from server side.");
60
60
  }
61
- createInitIndicatorRoot();
61
+ createXPayInitIndicatorRoot();
62
62
  Promise.all([
63
63
  createStyleElement(),
64
- createXSwapRoot(),
65
- createTxStatusRoot()
64
+ createXPayRoot(),
65
+ createXPayTxStatusRoot()
66
66
  ]).then(() => {
67
67
  initCompleted = true;
68
68
  });
@@ -87,27 +87,28 @@ var createStyleElement = async () => {
87
87
  style.textContent = text;
88
88
  document.body.appendChild(style);
89
89
  };
90
- var createXSwapRoot = async () => {
90
+ var createXPayRoot = async () => {
91
91
  const xswapElement = document.createElement("div");
92
- xswapElement.setAttribute("id", "xswap-modal");
92
+ xswapElement.setAttribute("id", "xpay-root");
93
+ xswapElement.setAttribute("class", "xpay");
93
94
  document.body.appendChild(xswapElement);
94
- xswapRoot = createRoot(xswapElement);
95
+ xpayRoot = createRoot(xswapElement);
95
96
  };
96
- var createTxStatusRoot = async () => {
97
+ var createXPayTxStatusRoot = async () => {
97
98
  const txStatusElement = document.createElement("div");
98
- txStatusElement.setAttribute("id", "xswap-tx-status");
99
- txStatusElement.setAttribute("class", "xswap-tx-status");
99
+ txStatusElement.setAttribute("id", "xpay-tx-status");
100
+ txStatusElement.setAttribute("class", "xpay-tx-status");
100
101
  document.body.appendChild(txStatusElement);
101
- txStatusRoot = createRoot(txStatusElement);
102
+ xpayTxStatusRoot = createRoot(txStatusElement);
102
103
  };
103
- var createInitIndicatorRoot = () => {
104
+ var createXPayInitIndicatorRoot = () => {
104
105
  const initIndicatorElement = document.createElement("div");
105
- initIndicatorElement.setAttribute("id", "xswap-init-indicator");
106
+ initIndicatorElement.setAttribute("id", "xpay-init-indicator");
106
107
  document.body.appendChild(initIndicatorElement);
107
- initIndicatorRoot = createRoot(initIndicatorElement);
108
+ xpayInitIndicatorRoot = createRoot(initIndicatorElement);
108
109
  };
109
110
  var displayInitIndicator = (display) => {
110
- display ? initIndicatorRoot.render(/* @__PURE__ */ jsx2(WaitingForInit, {})) : initIndicatorRoot.render("");
111
+ display ? xpayInitIndicatorRoot.render(/* @__PURE__ */ jsx2(WaitingForInit, {})) : xpayInitIndicatorRoot.render("");
111
112
  };
112
113
 
113
114
  // src/services/api.ts
@@ -670,7 +671,7 @@ import { ethers as ethers5 } from "ethers";
670
671
  // src/components/Alert/index.tsx
671
672
  import { jsxs } from "react/jsx-runtime";
672
673
  var Alert = ({ desc }) => {
673
- return /* @__PURE__ */ jsxs("div", { className: "border border-solid border-x_alert rounded-3xl text-x_alert_light text-xs py-0.5 px-2", children: [
674
+ return /* @__PURE__ */ jsxs("div", { className: "xpay-border xpay-border-solid xpay-border-x_alert xpay-rounded-3xl xpay-text-x_alert_light xpay-text-xs xpay-py-0.5 xpay-px-2", children: [
674
675
  "\u26A0\uFE0F ",
675
676
  desc
676
677
  ] });
@@ -842,7 +843,7 @@ var CircularProgressIcon = () => {
842
843
  return /* @__PURE__ */ jsxs2(
843
844
  "svg",
844
845
  {
845
- className: "animate-spin-slow text-white",
846
+ className: "animate-spin-slow xpay-text-white",
846
847
  width: "33",
847
848
  height: "33",
848
849
  viewBox: "0 0 33 33",
@@ -1157,8 +1158,8 @@ var XSwapLogo = () => {
1157
1158
  // src/components/TxConfigForm/PoweredBy.tsx
1158
1159
  import { jsx as jsx25, jsxs as jsxs6 } from "react/jsx-runtime";
1159
1160
  var PoweredBy = () => {
1160
- return /* @__PURE__ */ jsxs6("div", { className: "flex justify-center items-center gap-2 my-3", children: [
1161
- /* @__PURE__ */ jsx25("span", { className: "text-x_grey", children: "Powered by" }),
1161
+ return /* @__PURE__ */ jsxs6("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-2 xpay-my-3", children: [
1162
+ /* @__PURE__ */ jsx25("span", { className: "xpay-text-x_grey", children: "Powered by" }),
1162
1163
  /* @__PURE__ */ jsx25(XSwapBadgeIcon, {}),
1163
1164
  /* @__PURE__ */ jsx25("span", { children: "\u2715" }),
1164
1165
  /* @__PURE__ */ jsx25(ChainlinkCCIPIcon, {})
@@ -1239,13 +1240,13 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1239
1240
  const targetChainData = supportedChains.find(
1240
1241
  (chain) => chain.chainId === transaction.targetChainId
1241
1242
  );
1242
- return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col globalBorder rounded-xl bg-[rgb(15,15,15)] text-white text-xs sm:text-sm p-4 gap-3 mb-2", children: [
1243
- /* @__PURE__ */ jsxs7("div", { className: "flex w-full items-center justify-between", children: [
1244
- /* @__PURE__ */ jsx26("div", { className: "text-sm sm:text-base", children: date }),
1245
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1246
- transaction.status === "IN_PROGRESS" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(250,200,100)]", children: "In progress" }) }),
1247
- transaction.status === "DONE" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(100,200,100)]", children: "Done" }) }),
1248
- transaction.status === "REVERTED" && /* @__PURE__ */ jsx26("div", { className: "flex items-center", children: /* @__PURE__ */ jsx26("div", { className: "text-[rgb(255,100,100)]", children: "Reverted" }) }),
1243
+ return /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-flex-col xpay-global-border xpay-rounded-xl xpay-bg-[rgb(15,15,15)] xpay-text-white xpay-text-xs sm:xpay-text-sm xpay-p-4 xpay-gap-3 xpay-mb-2", children: [
1244
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between", children: [
1245
+ /* @__PURE__ */ jsx26("div", { className: "xpay-text-sm sm:xpay-text-base", children: date }),
1246
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1247
+ transaction.status === "IN_PROGRESS" && /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ jsx26("div", { className: "xpay-text-[rgb(250,200,100)]", children: "In progress" }) }),
1248
+ transaction.status === "DONE" && /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ jsx26("div", { className: "xpay-text-[rgb(100,200,100)]", children: "Done" }) }),
1249
+ transaction.status === "REVERTED" && /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ jsx26("div", { className: "xpay-text-[rgb(255,100,100)]", children: "Reverted" }) }),
1249
1250
  /* @__PURE__ */ jsx26(
1250
1251
  "a",
1251
1252
  {
@@ -1254,65 +1255,65 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1254
1255
  )?.transactionExplorer}/${transaction.hash}`,
1255
1256
  target: "_blank",
1256
1257
  rel: "noreferrer",
1257
- className: "ml-2 no-underline",
1258
+ className: "xpay-ml-2 xpay-no-underline",
1258
1259
  "aria-label": "Show the transaction in the chain explorer",
1259
- children: /* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx26(ArrowUpRightIcon, {}) })
1260
+ children: /* @__PURE__ */ jsx26("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ jsx26(ArrowUpRightIcon, {}) })
1260
1261
  }
1261
1262
  )
1262
1263
  ] })
1263
1264
  ] }),
1264
- /* @__PURE__ */ jsxs7("div", { className: "flex justify-between flex-wrap gap-2", children: [
1265
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1266
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1265
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-justify-between xpay-flex-wrap xpay-gap-2", children: [
1266
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1267
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1267
1268
  /* @__PURE__ */ jsx26(
1268
1269
  "img",
1269
1270
  {
1270
1271
  src: sourceChainData?.image,
1271
1272
  alt: `${sourceChainData?.name} logo`,
1272
- className: "w-5 h-5 mr-1"
1273
+ className: "xpay-w-5 xpay-h-5 xpay-mr-1"
1273
1274
  }
1274
1275
  ),
1275
1276
  /* @__PURE__ */ jsx26("div", { children: sourceChainData?.displayName })
1276
1277
  ] }),
1277
- /* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
1278
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1278
+ /* @__PURE__ */ jsx26("div", { className: "xpay-w-3.5 xpay-h-3.5 xpay-my-0 xpay-mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
1279
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1279
1280
  /* @__PURE__ */ jsx26(
1280
1281
  "img",
1281
1282
  {
1282
1283
  src: targetChainData?.image,
1283
1284
  alt: `${targetChainData?.name} logo`,
1284
- className: "w-5 h-5 mr-1"
1285
+ className: "xpay-w-5 xpay-h-5 xpay-mr-1"
1285
1286
  }
1286
1287
  ),
1287
1288
  /* @__PURE__ */ jsx26("div", { children: targetChainData?.displayName })
1288
1289
  ] })
1289
1290
  ] }),
1290
- /* @__PURE__ */ jsx26("div", { className: "flex items-center mb-2 last:mb-0", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center flex-wrap", children: [
1291
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1291
+ /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center xpay-mb-2 last:xpay-mb-0", children: /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center xpay-flex-wrap", children: [
1292
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1292
1293
  Number(transferredAmount) < MINIMUM_DISPLAYED_TOKEN_AMOUNT ? `<${MINIMUM_DISPLAYED_TOKEN_AMOUNT}` : transferredAmount,
1293
- /* @__PURE__ */ jsx26("div", { className: "ml-1", children: tokenData?.symbol }),
1294
+ /* @__PURE__ */ jsx26("div", { className: "xpay-ml-1", children: tokenData?.symbol }),
1294
1295
  tokenData?.image ? /* @__PURE__ */ jsx26(
1295
1296
  "img",
1296
1297
  {
1297
1298
  src: tokenData?.image,
1298
1299
  alt: tokenData?.name || "",
1299
- className: "w-5 h-5 ml-1"
1300
+ className: "xpay-w-5 xpay-h-5 xpay-ml-1"
1300
1301
  }
1301
- ) : /* @__PURE__ */ jsx26("div", { className: "flex items-center justify-center w-5 h-5 text-[10px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
1302
+ ) : /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-5 xpay-h-5 xpay-text-[10px] xpay-ml-1 xpay-rounded-full xpay-bg-[#272e40] xpay-text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
1302
1303
  ] }),
1303
1304
  transaction.tokenOutAddress && /* @__PURE__ */ jsxs7(Fragment, { children: [
1304
- /* @__PURE__ */ jsx26("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
1305
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center", children: [
1305
+ /* @__PURE__ */ jsx26("div", { className: "xpay-w-3.5 xpay-h-3.5 xpay-my-0 xpay-mx-1.5", children: /* @__PURE__ */ jsx26(ArrowRightIcon, {}) }),
1306
+ /* @__PURE__ */ jsxs7("div", { className: "xpay-flex xpay-items-center", children: [
1306
1307
  Number(receivedAmount) < 1e-4 ? "<0.0001" : receivedAmount,
1307
- /* @__PURE__ */ jsx26("div", { className: "ml-1", children: tokenOutData?.symbol }),
1308
+ /* @__PURE__ */ jsx26("div", { className: "xpay-ml-1", children: tokenOutData?.symbol }),
1308
1309
  tokenOutData?.image ? /* @__PURE__ */ jsx26(
1309
1310
  "img",
1310
1311
  {
1311
1312
  src: tokenOutData?.image,
1312
1313
  alt: tokenOutData?.name || "",
1313
- className: "w-5 h-5 ml-1"
1314
+ className: "xpay-w-5 xpay-h-5 xpay-ml-1"
1314
1315
  }
1315
- ) : /* @__PURE__ */ jsx26("div", { className: "flex items-center justify-center w-5 h-5 text-[10px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
1316
+ ) : /* @__PURE__ */ jsx26("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-5 xpay-h-5 xpay-text-[10px] xpay-ml-1 xpay-rounded-full xpay-bg-[#272e40] xpay-text-[#e0e7fa]", children: tokenData?.symbol.substring(0, 1) })
1316
1317
  ] })
1317
1318
  ] })
1318
1319
  ] }) })
@@ -1393,10 +1394,10 @@ var History = ({ signer, supportedChains }) => {
1393
1394
  return () => clearInterval(timer);
1394
1395
  }, [signer, fetchHistory, getHistory, historyLoadedOnce]);
1395
1396
  if (!signer)
1396
- return /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-center w-full h-[30vh]", children: "Connect a wallet to browse history" });
1397
- return /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsxs8("div", { className: "w-full h-96 overflow-scroll overflow-x-hidden", children: [
1398
- fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "w-full text-center py-4 px-0 text-[rgb(158,158,158)]", children: "Your history is empty..." }),
1399
- !fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "flex w-full h-full items-center justify-center", children: /* @__PURE__ */ jsx27(CircularProgressIcon, {}) }),
1397
+ return /* @__PURE__ */ jsx27("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-full xpay-h-[30vh]", children: "Connect a wallet to browse history" });
1398
+ return /* @__PURE__ */ jsx27("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-full", children: /* @__PURE__ */ jsxs8("div", { className: "xpay-w-full xpay-h-96 xpay-overflow-scroll xpay-overflow-x-hidden", children: [
1399
+ fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "xpay-w-full xpay-text-center xpay-py-4 xpay-px-0 xpay-text-[rgb(158,158,158)]", children: "Your history is empty..." }),
1400
+ !fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ jsx27("div", { className: "xpay-flex xpay-w-full xpay-h-full xpay-items-center xpay-justify-center", children: /* @__PURE__ */ jsx27(CircularProgressIcon, {}) }),
1400
1401
  fetchedHistory?.map((transaction, index) => /* @__PURE__ */ jsx27(
1401
1402
  HistoryCard,
1402
1403
  {
@@ -1417,26 +1418,26 @@ var TopBar = ({
1417
1418
  historyTabShown,
1418
1419
  onClose
1419
1420
  }) => {
1420
- return /* @__PURE__ */ jsxs9("div", { className: "flex w-full justify-between items-center mx-auto p-2", children: [
1421
- /* @__PURE__ */ jsx28("div", { className: "rounded-lg text-[rgba(255,255,255,0.6)] text-xs sm:text-base whitespace-nowrap", children: signer ? `Connected wallet: ${shortAddress(signer)}` : `Wallet disconnected` }),
1422
- /* @__PURE__ */ jsxs9("div", { className: "flex gap-2 justify-center items-center", children: [
1421
+ return /* @__PURE__ */ jsxs9("div", { className: "xpay-flex xpay-w-full xpay-justify-between xpay-items-center xpay-mx-auto xpay-p-2", children: [
1422
+ /* @__PURE__ */ jsx28("div", { className: "xpay-rounded-lg xpay-text-[rgba(255,255,255,0.6)] xpay-text-xs sm:xpay-text-base xpay-whitespace-nowrap", children: signer ? `Connected wallet: ${shortAddress(signer)}` : `Wallet disconnected` }),
1423
+ /* @__PURE__ */ jsxs9("div", { className: "xpay-flex xpay-gap-2 xpay-justify-center xpay-items-center", children: [
1423
1424
  !historyTabShown && /* @__PURE__ */ jsx28(
1424
1425
  "div",
1425
1426
  {
1426
1427
  onClick: () => setSettingsShown(true),
1427
- className: "flex items-center text-xs gap-1 cursor-pointer",
1428
- children: /* @__PURE__ */ jsx28("div", { className: "w-7 h-7 rounded-full bg-gradient-to-r from-x_blue_light to-x_blue_dark flex items-center justify-center", children: /* @__PURE__ */ jsx28(SettingsIcon, {}) })
1428
+ className: "xpay-flex xpay-items-center xpay-text-xs xpay-gap-1 xpay-cursor-pointer",
1429
+ children: /* @__PURE__ */ jsx28("div", { className: "xpay-w-7 xpay-h-7 xpay-rounded-full xpay-bg-gradient-to-r xpay-from-x_blue_light xpay-to-x_blue_dark xpay-flex xpay-items-center xpay-justify-center", children: /* @__PURE__ */ jsx28(SettingsIcon, {}) })
1429
1430
  }
1430
1431
  ),
1431
1432
  /* @__PURE__ */ jsx28(
1432
1433
  "div",
1433
1434
  {
1434
1435
  onClick: () => setHistoryTabShown((x) => !x),
1435
- className: "flex items-center text-sm gap-1 cursor-pointer",
1436
- children: !historyTabShown ? /* @__PURE__ */ jsx28(Fragment2, { children: /* @__PURE__ */ jsx28("div", { className: "w-7 h-7 rounded-full bg-gradient-to-r from-x_blue_light to-x_blue_dark flex items-center justify-center", children: /* @__PURE__ */ jsx28(HistoryIcon, {}) }) }) : /* @__PURE__ */ jsx28("div", { children: "Back" })
1436
+ className: "xpay-flex xpay-items-center xpay-text-sm xpay-gap-1 xpay-cursor-pointer",
1437
+ children: !historyTabShown ? /* @__PURE__ */ jsx28(Fragment2, { children: /* @__PURE__ */ jsx28("div", { className: "xpay-w-7 xpay-h-7 xpay-rounded-full xpay-bg-gradient-to-r xpay-from-x_blue_light xpay-to-x_blue_dark xpay-flex xpay-items-center xpay-justify-center", children: /* @__PURE__ */ jsx28(HistoryIcon, {}) }) }) : /* @__PURE__ */ jsx28("div", { children: "Back" })
1437
1438
  }
1438
1439
  ),
1439
- /* @__PURE__ */ jsx28("div", { className: "cursor-pointer text-white", onClick: onClose, children: /* @__PURE__ */ jsx28(CloseIcon, {}) })
1440
+ /* @__PURE__ */ jsx28("div", { className: "xpay-cursor-pointer xpay-text-white", onClick: onClose, children: /* @__PURE__ */ jsx28(CloseIcon, {}) })
1440
1441
  ] })
1441
1442
  ] });
1442
1443
  };
@@ -1460,53 +1461,53 @@ var Settings = ({
1460
1461
  );
1461
1462
  }
1462
1463
  }, [slippageActivePresetIndex, usingSlippageInput]);
1463
- return /* @__PURE__ */ jsx29("div", { className: "absolute w-[310px] right-0 top-[46px] z-10 bg-black border border-solid border-[rgba(54,129,198,1)] p-4 rounded-xl", children: /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-4 justify-between", children: [
1464
- /* @__PURE__ */ jsxs10("div", { className: "flex justify-between", children: [
1465
- /* @__PURE__ */ jsx29("div", { className: "text-base", children: "Settings" }),
1464
+ return /* @__PURE__ */ jsx29("div", { className: "xpay-absolute xpay-w-[310px] xpay-right-0 xpay-top-[46px] xpay-z-10 xpay-bg-black xpay-border xpay-border-solid xpay-border-[rgba(54,129,198,1)] xpay-p-4 xpay-rounded-xl", children: /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-flex-col xpay-gap-4 xpay-justify-between", children: [
1465
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-justify-between", children: [
1466
+ /* @__PURE__ */ jsx29("div", { className: "xpay-text-base", children: "Settings" }),
1466
1467
  /* @__PURE__ */ jsx29(
1467
1468
  "div",
1468
1469
  {
1469
- className: "cursor-pointer",
1470
+ className: "xpay-cursor-pointer",
1470
1471
  onClick: () => setSettingsShown(false),
1471
1472
  children: /* @__PURE__ */ jsx29(CloseIcon, {})
1472
1473
  }
1473
1474
  )
1474
1475
  ] }),
1475
1476
  /* @__PURE__ */ jsxs10("div", { children: [
1476
- /* @__PURE__ */ jsxs10("div", { className: "flex gap-2 items-center", children: [
1477
- /* @__PURE__ */ jsx29("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1477
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-gap-2 xpay-items-center", children: [
1478
+ /* @__PURE__ */ jsx29("div", { className: "xpay-text-sm xpay-text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1478
1479
  /* @__PURE__ */ jsx29("div", { children: /* @__PURE__ */ jsxs10(
1479
1480
  "span",
1480
1481
  {
1481
- className: "inline-flex w-14 h-9 p-3 relative align-middle box-border overflow-hidden cursor-pointer",
1482
+ className: "xpay-inline-flex xpay-w-14 xpay-h-9 xpay-p-3 xpay-relative xpay-align-middle xpay-box-border xpay-overflow-hidden xpay-cursor-pointer",
1482
1483
  onClick: () => {
1483
1484
  setExpressChecked((x) => !x);
1484
1485
  },
1485
1486
  children: [
1486
- /* @__PURE__ */ jsx29("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
1487
+ /* @__PURE__ */ jsx29("span", { className: "xpay-h-full, xpay-w-full xpay-rounded-lg xpay-bg-[rgba(255,255,255,0.3)]" }),
1487
1488
  /* @__PURE__ */ jsx29(
1488
1489
  "span",
1489
1490
  {
1490
- className: `transition-all w-5 h-5 rounded-full absolute translate-y-[-4px]
1491
- ${expressChecked ? "translate-x-[12px] bg-x_blue" : "bg-white"} `
1491
+ className: `xpay-transition-all xpay-w-5 xpay-h-5 xpay-rounded-full xpay-absolute xpay-translate-y-[-4px]
1492
+ ${expressChecked ? "xpay-translate-x-[12px] xpay-bg-x_blue" : "xpay-bg-white"} `
1492
1493
  }
1493
1494
  )
1494
1495
  ]
1495
1496
  }
1496
1497
  ) })
1497
1498
  ] }),
1498
- /* @__PURE__ */ jsxs10("div", { className: "flex gap-4", children: [
1499
- /* @__PURE__ */ jsx29("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
1500
- /* @__PURE__ */ jsx29("div", { className: "text-xs text-left", children: "Express delivery is a special feature of XSwap that reduces transaction time across chains to around 30 seconds. It is currently available for swaps below a value of $ 1000 USD." })
1499
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-gap-4", children: [
1500
+ /* @__PURE__ */ jsx29("div", { className: "xpay-min-w-[26px] xpay-min-h-[26px] xpay-text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
1501
+ /* @__PURE__ */ jsx29("div", { className: "xpay-text-xs xpay-text-left", children: "Express delivery is a special feature of XSwap that reduces transaction time across chains to around 30 seconds. It is currently available for swaps below a value of $ 1000 USD." })
1501
1502
  ] })
1502
1503
  ] }),
1503
- /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2 ", children: [
1504
- /* @__PURE__ */ jsx29("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
1505
- /* @__PURE__ */ jsxs10("div", { className: "flex gap-2", children: [
1506
- /* @__PURE__ */ jsx29("div", { className: "flex items-center bg-[rgba(15,15,15,1)] p-1 globalBorder rounded-xl", children: SLIPPAGE_PRESETS.map((preset, index) => /* @__PURE__ */ jsx29(
1504
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-flex-col xpay-gap-2", children: [
1505
+ /* @__PURE__ */ jsx29("div", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-sm", children: "Slippage" }),
1506
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-gap-2", children: [
1507
+ /* @__PURE__ */ jsx29("div", { className: "xpay-flex xpay-items-center xpay-bg-[rgba(15,15,15,1)] p-1 xpay-global-border xpay-rounded-xl", children: SLIPPAGE_PRESETS.map((preset, index) => /* @__PURE__ */ jsx29(
1507
1508
  "div",
1508
1509
  {
1509
- className: `transition-all cursor-pointer block rounded-lg p-2 border-none text-sm leading-[10px] ${index === slippageActivePresetIndex && !usingSlippageInput ? "text-white" : "text-[rgba(255,255,255,0.2)]"} ${index === slippageActivePresetIndex && !usingSlippageInput ? "bg-gradient-to-r from-[#3681c6] to-[#2b4a9d]" : ""}`,
1510
+ className: `xpay-transition-all xpay-cursor-pointer xpay-block xpay-rounded-lg xpay-p-2 xpay-border-none xpay-text-sm xpay-leading-[10px] ${index === slippageActivePresetIndex && !usingSlippageInput ? "xpay-text-white" : "xpay-text-[rgba(255,255,255,0.2)]"} ${index === slippageActivePresetIndex && !usingSlippageInput ? "xpay-bg-gradient-to-r xpay-from-[#3681c6] xpay-to-[#2b4a9d]" : ""}`,
1510
1511
  onClick: () => {
1511
1512
  setUsingSlippageInput(false);
1512
1513
  setSlippageActivePresetIndex(index);
@@ -1515,11 +1516,11 @@ var Settings = ({
1515
1516
  },
1516
1517
  index
1517
1518
  )) }),
1518
- /* @__PURE__ */ jsxs10("div", { className: "bg-[rgba(39,39,39,1)] p-2 border border-solid border-[rgba(82,82,82,1)] rounded-xl text-white flex items-center", children: [
1519
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-bg-[rgba(39,39,39,1)] xpay-p-2 xpay-border xpay-border-solid xpay-border-[rgba(82,82,82,1)] xpay-rounded-xl xpay-text-white xpay-flex xpay-items-center", children: [
1519
1520
  /* @__PURE__ */ jsx29(
1520
1521
  "input",
1521
1522
  {
1522
- className: "text-white border-none bg-[rgba(39,39,39,1)] w-10 placeholder:text-[rgba(255,255,255,0.2)] focus:outline-none text-sm leading-none",
1523
+ className: "xpay-text-white xpay-border-none xpay-bg-[rgba(39,39,39,1)] xpay-w-10 placeholder:xpay-text-[rgba(255,255,255,0.2)] focus:xpay-outline-none xpay-text-sm xpay-leading-none",
1523
1524
  placeholder: "1.5",
1524
1525
  value: usingSlippageInput ? slippage : "",
1525
1526
  onChange: (e) => {
@@ -1538,9 +1539,9 @@ var Settings = ({
1538
1539
  /* @__PURE__ */ jsx29(PercentageIcon, {})
1539
1540
  ] })
1540
1541
  ] }),
1541
- /* @__PURE__ */ jsxs10("div", { className: "flex gap-4", children: [
1542
- /* @__PURE__ */ jsx29("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
1543
- /* @__PURE__ */ jsxs10("div", { className: "text-xs text-left", children: [
1542
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-flex xpay-gap-4", children: [
1543
+ /* @__PURE__ */ jsx29("div", { className: "xpay-min-w-[26px] xpay-min-h-[26px] xpay-text-[#ffa726]", children: /* @__PURE__ */ jsx29(InfoIcon, {}) }),
1544
+ /* @__PURE__ */ jsxs10("div", { className: "xpay-text-xs xpay-text-left", children: [
1544
1545
  "Slippage is the price variation you are willing to accept in the event that the price of the trade changes while it is processing.",
1545
1546
  /* @__PURE__ */ jsx29("br", {}),
1546
1547
  " ",
@@ -1569,12 +1570,12 @@ var FeesDetails = ({
1569
1570
  const isExpressDeliveryPossible = useMemo2(() => {
1570
1571
  return expressChecked && !exceedsExpressDeliveryLimit;
1571
1572
  }, [expressChecked, exceedsExpressDeliveryLimit]);
1572
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-2 sm:p-4 mb-1", children: [
1573
- /* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm", children: [
1574
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
1573
+ return /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-flex-col xpay-gap-3 xpay-global-border xpay-rounded-lg xpay-bg-[rgba(15,15,15,1)] xpay-p-2 sm:xpay-p-4 xpay-mb-1", children: [
1574
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between xpay-text-xs sm:xpay-text-sm", children: [
1575
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-items-center xpay-gap-1 xpay-font-medium xpay-text-white xpay-opacity-60", children: [
1575
1576
  /* @__PURE__ */ jsx30(CoinsIcon, {}),
1576
- /* @__PURE__ */ jsx30("div", { className: "mr-1", children: "Fees:" }),
1577
- isGettingRoute ? /* @__PURE__ */ jsx30(Skeleton, { width: "w-20", height: "h-4" }) : ` ${weiToHumanReadable({
1577
+ /* @__PURE__ */ jsx30("div", { className: "xpay-mr-1", children: "Fees:" }),
1578
+ isGettingRoute ? /* @__PURE__ */ jsx30(Skeleton, { width: "xpay-w-20", height: "xpay-h-4" }) : ` ${weiToHumanReadable({
1578
1579
  amount: safeBigNumberFrom(
1579
1580
  route?.xSwapFees.xSwapFee.nativeFee || "0"
1580
1581
  ).add(safeBigNumberFrom(route?.xSwapFees.ccipFee || "0")).add(
@@ -1584,11 +1585,11 @@ var FeesDetails = ({
1584
1585
  precisionFractionalPlaces: 5
1585
1586
  })} ${paymentToken?.symbol}`
1586
1587
  ] }),
1587
- /* @__PURE__ */ jsxs11("div", { className: "flex gap-1 items-center", children: [
1588
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-gap-1 xpay-items-center", children: [
1588
1589
  route?.xSwapFees.expressDeliveryFee && !isGettingRoute && /* @__PURE__ */ jsxs11(
1589
1590
  "div",
1590
1591
  {
1591
- className: `flex gap-1 items-center font-medium ${isExpressDeliveryPossible ? "text-x_green" : "text-white opacity-60"}`,
1592
+ className: `xpay-flex xpay-gap-1 xpay-items-center xpay-font-medium ${isExpressDeliveryPossible ? "xpay-text-x_green" : "xpay-text-white xpay-opacity-60"}`,
1592
1593
  children: [
1593
1594
  /* @__PURE__ */ jsx30(TimerIcon, {}),
1594
1595
  isExpressDeliveryPossible ? "Fast ~ 30sec " : "Normal ~ 30min"
@@ -1599,39 +1600,39 @@ var FeesDetails = ({
1599
1600
  "div",
1600
1601
  {
1601
1602
  onClick: () => setFeesDetailsShown((x) => !x),
1602
- className: "font-medium text-white opacity-60 cursor-pointer flex items-center w-[15px] h-[9px]",
1603
+ className: "xpay-font-medium xpay-text-white xpay-opacity-60 xpay-cursor-pointer xpay-flex xpay-items-center xpay-w-[15px] xpay-h-[9px]",
1603
1604
  children: feesDetailsShown ? /* @__PURE__ */ jsx30(ChevronUpIcon, {}) : /* @__PURE__ */ jsx30(ChevronDownIcon, {})
1604
1605
  }
1605
1606
  )
1606
1607
  ] })
1607
1608
  ] }),
1608
- feesDetailsShown && /* @__PURE__ */ jsxs11("div", { className: "flex w-full items-center justify-between gap-2", children: [
1609
- /* @__PURE__ */ jsxs11("div", { className: "flex flex-col text-[10px] gap-1", children: [
1610
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1609
+ feesDetailsShown && /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between xpay-gap-2", children: [
1610
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-flex-col xpay-text-[10px] xpay-gap-1", children: [
1611
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1611
1612
  /* @__PURE__ */ jsx30("div", { children: "CCIP Fee:" }),
1612
- /* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1613
+ /* @__PURE__ */ jsx30("div", { className: "xpay-whitespace-nowrap", children: ` ${weiToHumanReadable({
1613
1614
  amount: route?.xSwapFees.ccipFee || "0",
1614
1615
  decimals: 18,
1615
1616
  precisionFractionalPlaces: 5
1616
1617
  })} ${paymentToken?.symbol}` })
1617
1618
  ] }),
1618
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1619
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1619
1620
  /* @__PURE__ */ jsx30("div", { children: "Native Fee:" }),
1620
- /* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1621
+ /* @__PURE__ */ jsx30("div", { className: "xpay-whitespace-nowrap", children: ` ${weiToHumanReadable({
1621
1622
  amount: route?.xSwapFees.xSwapFee.nativeFee || "0",
1622
1623
  decimals: 18,
1623
1624
  precisionFractionalPlaces: 5
1624
1625
  })} ${paymentToken?.symbol}` })
1625
1626
  ] })
1626
1627
  ] }),
1627
- /* @__PURE__ */ jsxs11("div", { className: "flex flex-col text-[10px] gap-1", children: [
1628
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1628
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-flex-col xpay-text-[10px] xpay-gap-1", children: [
1629
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1629
1630
  /* @__PURE__ */ jsx30("div", { children: "Slippage:" }),
1630
- /* @__PURE__ */ jsx30("div", { className: "whitespace-nowrap", children: `${slippage}%` })
1631
+ /* @__PURE__ */ jsx30("div", { className: "xpay-whitespace-nowrap", children: `${slippage}%` })
1631
1632
  ] }),
1632
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1633
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1633
1634
  /* @__PURE__ */ jsx30("div", { children: "Min amount out:" }),
1634
- /* @__PURE__ */ jsxs11("div", { className: "whitespace-nowrap", children: [
1635
+ /* @__PURE__ */ jsxs11("div", { className: "xpay-whitespace-nowrap", children: [
1635
1636
  weiToHumanReadable({
1636
1637
  amount: route?.minAmountOut || "0",
1637
1638
  decimals: dstToken?.decimals || 18,
@@ -1672,7 +1673,7 @@ var UsdPrice = ({
1672
1673
  setUsdPrice(newUsdPrice);
1673
1674
  }
1674
1675
  }, [token, prices, amount]);
1675
- return /* @__PURE__ */ jsx31("div", { className: "opacity-60 py-4", children: loading ? /* @__PURE__ */ jsx31(Skeleton, { width: "w-12", height: "h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ jsx31("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ jsx31(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ jsx31(Fragment3, { children: "$0.00" }) });
1676
+ return /* @__PURE__ */ jsx31("div", { className: "xpay-opacity-60 xpay-py-4", children: loading ? /* @__PURE__ */ jsx31(Skeleton, { width: "xpay-w-12", height: "xpay-h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ jsx31("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ jsx31(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ jsx31(Fragment3, { children: "$0.00" }) });
1676
1677
  };
1677
1678
 
1678
1679
  // src/components/UnknownTokenLogo/UnknownTokenLogo.tsx
@@ -1681,7 +1682,7 @@ var UnknownTokenLogo = ({ tokenName, className }) => {
1681
1682
  return /* @__PURE__ */ jsx32(
1682
1683
  "div",
1683
1684
  {
1684
- className: `w-5 h-5 rounded-full bg-white shadow-sm flex items-center justify-center text-black ${className}`,
1685
+ className: `xpay-w-5 xpay-h-5 xpay-rounded-full xpay-bg-white xpay-shadow-sm xpay-flex xpay-items-center xpay-justify-center xpay-text-black ${className}`,
1685
1686
  children: tokenName.substring(0, 1)
1686
1687
  }
1687
1688
  );
@@ -1711,41 +1712,38 @@ var Summary = ({
1711
1712
  );
1712
1713
  }
1713
1714
  }, [dstChain]);
1714
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 relative", children: [
1715
- /* @__PURE__ */ jsxs12("div", { className: "flex justify-between", children: [
1716
- /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-1", children: [
1717
- /* @__PURE__ */ jsx33("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
1715
+ return /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-flex-col xpay-global-border xpay-rounded-lg xpay-bg-[rgba(15,15,15,1)] xpay-p-4 xpay-relative", children: [
1716
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-justify-between", children: [
1717
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-flex-col xpay-gap-1", children: [
1718
+ /* @__PURE__ */ jsx33("p", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-sm", children: "You receive" }),
1718
1719
  isGettingRoute ? /* @__PURE__ */ jsx33(
1719
1720
  Skeleton,
1720
1721
  {
1721
- width: "w-[100px]",
1722
- height: "h-[36px]",
1723
- other: "sm:w-[190px]"
1722
+ width: "xpay-w-[100px]",
1723
+ height: "xpay-h-[36px]",
1724
+ other: "sm:xpay-w-[190px]"
1724
1725
  }
1725
- ) : /* @__PURE__ */ jsx33("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: amountReadable })
1726
+ ) : /* @__PURE__ */ jsx33("div", { className: "xpay-flex xpay-gap-2 xpay-items-center xpay-text-white xpay-text-xl sm:xpay-text-3xl", children: amountReadable })
1726
1727
  ] }),
1727
- /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-end gap-1 text-sm", children: [
1728
- /* @__PURE__ */ jsxs12("div", { className: "flex justify-center items-center gap-1", children: [
1729
- /* @__PURE__ */ jsx33("div", { className: "w-5 h-5", children: dstToken?.image ? /* @__PURE__ */ jsx33(
1728
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-flex-col xpay-items-end xpay-gap-1 xpay-text-sm", children: [
1729
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-1", children: [
1730
+ /* @__PURE__ */ jsx33("div", { className: "xpay-w-5 xpay-h-5", children: dstToken?.image ? /* @__PURE__ */ jsx33(
1730
1731
  "img",
1731
1732
  {
1732
- className: "w-5 h-5",
1733
+ className: "xpay-w-5 xpay-h-5",
1733
1734
  src: dstToken?.image,
1734
1735
  alt: dstToken?.name
1735
1736
  }
1736
- ) : /* @__PURE__ */ jsx33(
1737
- UnknownTokenLogo,
1738
- {
1739
- tokenName: "?",
1740
- className: "token-select__generated-logo"
1741
- }
1742
- ) }),
1743
- /* @__PURE__ */ jsx33("p", { className: "text-base sm:text-xl", children: dstToken?.name })
1737
+ ) : /* @__PURE__ */ jsx33(UnknownTokenLogo, { tokenName: "?" }) }),
1738
+ /* @__PURE__ */ jsx33("p", { className: "xpay-text-base sm:xpay-text-xl", children: dstToken?.name })
1744
1739
  ] }),
1745
- /* @__PURE__ */ jsxs12("div", { className: "flex justify-center items-center gap-1", children: [
1746
- /* @__PURE__ */ jsx33("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on " }),
1747
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1 text-white", children: [
1748
- /* @__PURE__ */ jsx33("div", { className: "w-4 h-4", children: /* @__PURE__ */ jsx33("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1740
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-1", children: [
1741
+ /* @__PURE__ */ jsxs12("p", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-right", children: [
1742
+ "on",
1743
+ " "
1744
+ ] }),
1745
+ /* @__PURE__ */ jsxs12("div", { className: "xpay-flex xpay-items-center xpay-gap-1 xpay-text-white", children: [
1746
+ /* @__PURE__ */ jsx33("div", { className: "xpay-w-4 xpay-h-4", children: /* @__PURE__ */ jsx33("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1749
1747
  /* @__PURE__ */ jsx33("div", { children: dstChain?.displayName })
1750
1748
  ] })
1751
1749
  ] })
@@ -1761,7 +1759,7 @@ var Summary = ({
1761
1759
  type: "dst"
1762
1760
  }
1763
1761
  ),
1764
- /* @__PURE__ */ jsx33("div", { className: "absolute right-[50%] top-0 translate-x-1/2 translate-y-[-60%] globalBorder rounded-xl p-[5px] bg-[rgba(15,15,15,1)]", children: /* @__PURE__ */ jsx33("div", { className: " flex items-center justify-center rounded-lg w-8 h-8 bg-gradient-to-l from-[rgba(54,129,198,1)] to-[rgba(43,74,157,1)] ", children: /* @__PURE__ */ jsx33(ArrowDownIcon, {}) }) })
1762
+ /* @__PURE__ */ jsx33("div", { className: "xpay-absolute xpay-right-[50%] xpay-top-0 xpay-translate-x-1/2 xpay-translate-y-[-60%] xpay-global-border xpay-rounded-xl p-[5px] xpay-bg-[rgba(15,15,15,1)]", children: /* @__PURE__ */ jsx33("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-rounded-lg xpay-w-8 xpay-h-8 xpay-bg-gradient-to-l xpay-from-[rgba(54,129,198,1)] xpay-to-[rgba(43,74,157,1)] ", children: /* @__PURE__ */ jsx33(ArrowDownIcon, {}) }) })
1765
1763
  ] });
1766
1764
  };
1767
1765
 
@@ -1781,7 +1779,6 @@ var TokenPicker = ({
1781
1779
  balances
1782
1780
  }) => {
1783
1781
  const [searchValue, setSearchValue] = useState6("");
1784
- const modalRoot = document.querySelector("#xswap-modal");
1785
1782
  const onBackdropClick = (e) => {
1786
1783
  e.stopPropagation();
1787
1784
  e.nativeEvent.stopImmediatePropagation();
@@ -1797,86 +1794,87 @@ var TokenPicker = ({
1797
1794
  (a, b) => a.priority < b.priority ? 1 : balances && balances[a.address] && balances[b.address] && balances[a.address]?.lte(balances[b.address] || "0") ? 1 : -1
1798
1795
  );
1799
1796
  }, [searchValue, tokens]);
1800
- return modalRoot ? createPortal(
1797
+ const xpayRoot2 = document.querySelector("#xpay-root");
1798
+ return xpayRoot2 ? createPortal(
1801
1799
  /* @__PURE__ */ jsx34(
1802
1800
  "div",
1803
1801
  {
1804
1802
  onClick: onBackdropClick,
1805
- className: "box-border fixed h-full w-full z-[999] top-0 left-0 bg-[rgba(0,0,0,0.8)] flex items-center justify-center p-5",
1806
- children: /* @__PURE__ */ jsxs13("div", { className: "relative bg-black rounded-3xl p-6 max-h-[70%] flex flex-col text-base text-white w-[452px] h-[70%] border border-solid border-[rgba(255,255,255,0.2)]", children: [
1803
+ className: "xpay-box-border xpay-fixed xpay-h-full xpay-w-full xpay-z-[999] xpay-top-0 xpay-left-0 xpay-bg-[rgba(0,0,0,0.8)] xpay-flex xpay-items-center xpay-justify-center xpay-p-5",
1804
+ children: /* @__PURE__ */ jsxs13("div", { className: "xpay-relative xpay-bg-black xpay-rounded-3xl xpay-p-6 xpay-max-h-[70%] xpay-flex xpay-flex-col xpay-text-base xpay-text-white xpay-w-[452px] xpay-h-[70%] xpay-border xpay-border-solid xpay-border-[rgba(255,255,255,0.2)]", children: [
1807
1805
  /* @__PURE__ */ jsx34(
1808
1806
  "div",
1809
1807
  {
1810
1808
  onClick: onCloseClick,
1811
- className: "absolute top-4 right-4 cursor-pointer",
1809
+ className: "xpay-absolute xpay-top-4 xpay-right-4 xpay-cursor-pointer",
1812
1810
  children: /* @__PURE__ */ jsx34(CloseIcon, {})
1813
1811
  }
1814
1812
  ),
1815
- /* @__PURE__ */ jsx34("p", { className: "text-base mb-4", children: "Pick a token" }),
1816
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center border border-solid border-[rgba(255,255,255,0.1)] rounded-lg py-0 px-3 gap-2 bg-[rgba(15,15,15,1)]", children: [
1817
- /* @__PURE__ */ jsx34("div", { className: "w-6 h-6", children: /* @__PURE__ */ jsx34(SearchIcon, {}) }),
1813
+ /* @__PURE__ */ jsx34("p", { className: "xpay-text-base xpay-mb-4", children: "Pick a token" }),
1814
+ /* @__PURE__ */ jsxs13("div", { className: "xpay-flex xpay-items-center xpay-border xpay-border-solid xpay-border-[rgba(255,255,255,0.1)] xpay-rounded-lg xpay-py-0 xpay-px-3 xpay-gap-2 xpay-bg-[rgba(15,15,15,1)]", children: [
1815
+ /* @__PURE__ */ jsx34("div", { className: "xpay-w-6 xpay-h-6", children: /* @__PURE__ */ jsx34(SearchIcon, {}) }),
1818
1816
  /* @__PURE__ */ jsx34(
1819
1817
  "input",
1820
1818
  {
1821
1819
  placeholder: "Search name or paste address",
1822
1820
  value: searchValue,
1823
1821
  onChange: (e) => setSearchValue(e.target.value),
1824
- className: "relative h-[41px] leading-[41px] font-normal z-[1] w-full text-white bg-transparent border-none outline-none placeholder:text-sm"
1822
+ className: "xpay-relative xpay-h-[41px] xpay-leading-[41px] xpay-font-normal xpay-z-[1] xpay-w-full xpay-text-white xpay-bg-transparent xpay-border-none xpay-outline-none placeholder:xpay-text-sm"
1825
1823
  }
1826
1824
  )
1827
1825
  ] }),
1828
- /* @__PURE__ */ jsx34("div", { className: "my-4 mx-0 flex flex-wrap gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ jsxs13(
1826
+ /* @__PURE__ */ jsx34("div", { className: "xpay-my-4 xpay-mx-0 xpay-flex xpay-flex-wrap xpay-gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ jsxs13(
1829
1827
  "div",
1830
1828
  {
1831
- className: `flex gap-2 py-1 px-2 items-center bg-[rgb(15,15,15)] rounded-2xl border border-solid border-[rgba(255,255,255,0.1)] hover:bg-[rgb(25,25,25)] hover:cursor-pointer ${token.address === selectedToken?.address ? "bg-[rgb(35, 35, 35)]" : ""}`,
1829
+ className: `xpay-flex xpay-gap-2 xpay-py-1 xpay-px-2 xpay-items-center xpay-bg-[rgb(15,15,15)] xpay-rounded-2xl xpay-border xpay-border-solid xpay-border-[rgba(255,255,255,0.1)] hover:xpay-bg-[rgb(25,25,25)] hover:xpay-cursor-pointer ${token.address === selectedToken?.address ? "xpay-bg-[rgb(35, 35, 35)]" : ""}`,
1832
1830
  onClick: () => {
1833
1831
  setSelectedToken(token);
1834
1832
  onCloseClick();
1835
1833
  },
1836
1834
  children: [
1837
- /* @__PURE__ */ jsx34("img", { src: token.image, alt: token.name, className: "w-5" }),
1838
- /* @__PURE__ */ jsx34("div", { className: "text-sm", children: token.symbol })
1835
+ /* @__PURE__ */ jsx34(
1836
+ "img",
1837
+ {
1838
+ src: token.image,
1839
+ alt: token.name,
1840
+ className: "xpay-w-5"
1841
+ }
1842
+ ),
1843
+ /* @__PURE__ */ jsx34("div", { className: "xpay-text-sm", children: token.symbol })
1839
1844
  ]
1840
1845
  },
1841
1846
  token.address
1842
1847
  )) }),
1843
- /* @__PURE__ */ jsx34("div", { className: "h-[2px] my-0 mx-[-24px] w-[100%+48px] px-12 bg-[rgba(255,255,255,0.1)]" }),
1844
- /* @__PURE__ */ jsx34("div", { className: "overflow-y-scroll h-full mx-[-24px] w-[100%+48px] flex flex-col", children: filteredTokens && filteredTokens.length > 0 ? filteredTokens.map((token, index) => /* @__PURE__ */ jsxs13(
1848
+ /* @__PURE__ */ jsx34("div", { className: "xpay-h-[2px] xpay-my-0 xpay-mx-[-24px] xpay-w-[100%+48px] xpay-px-12 xpay-bg-[rgba(255,255,255,0.1)]" }),
1849
+ /* @__PURE__ */ jsx34("div", { className: "xpay-overflow-y-scroll xpay-h-full xpay-mx-[-24px] xpay-w-[100%+48px] xpay-flex xpay-flex-col", children: filteredTokens && filteredTokens.length > 0 ? filteredTokens.map((token, index) => /* @__PURE__ */ jsxs13(
1845
1850
  "div",
1846
1851
  {
1847
- className: `flex gap-3 py-2 px-[24px] w-full items-center hover:bg-[rgb(25,25,25)] hover:cursor-pointer ${token.address === selectedToken?.address ? "bg-[rgb(35,35,35)]" : ""}`,
1852
+ className: `xpay-flex xpay-gap-3 xpay-py-2 xpay-px-[24px] xpay-w-full xpay-items-center hover:xpay-bg-[rgb(25,25,25)] hover:xpay-cursor-pointer ${token.address === selectedToken?.address ? "xpay-bg-[rgb(35,35,35)]" : ""}`,
1848
1853
  onClick: () => {
1849
1854
  setSelectedToken(token);
1850
1855
  onCloseClick();
1851
1856
  },
1852
1857
  children: [
1853
- token.image ? /* @__PURE__ */ jsx34(
1854
- "img",
1855
- {
1856
- src: token.image,
1857
- alt: token.name,
1858
- className: "token-picker__all__logo"
1859
- }
1860
- ) : /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center w-9 h-9 text-[15px] ml-1 rounded-full bg-[#272e40] text-[#e0e7fa]", children: token?.symbol.substring(0, 1) }),
1861
- /* @__PURE__ */ jsxs13("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
1862
- /* @__PURE__ */ jsxs13("div", { className: "flex flex-col leading-[16px]", children: [
1863
- /* @__PURE__ */ jsx34("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
1864
- /* @__PURE__ */ jsx34("div", { className: "text-[#888] text-[11px]", children: token.symbol })
1858
+ token.image ? /* @__PURE__ */ jsx34("img", { src: token.image, alt: token.name }) : /* @__PURE__ */ jsx34("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-9 xpay-h-9 xpay-text-[15px] xpay-ml-1 xpay-rounded-full xpay-bg-[#272e40] xpay-text-[#e0e7fa]", children: token?.symbol.substring(0, 1) }),
1859
+ /* @__PURE__ */ jsxs13("div", { className: "xpay-flex xpay-justify-between xpay-items-center xpay-gap-1 xpay-overflow-hidden xpay-grow", children: [
1860
+ /* @__PURE__ */ jsxs13("div", { className: "xpay-flex xpay-flex-col xpay-leading-[16px]", children: [
1861
+ /* @__PURE__ */ jsx34("div", { className: "xpay-overflow-hidden xpay-whitespace-nowrap xpay-text-ellipsis xpay-text-[15px]", children: token.name }),
1862
+ /* @__PURE__ */ jsx34("div", { className: "xpay-text-[#888] xpay-text-[11px]", children: token.symbol })
1865
1863
  ] }),
1866
- signer && /* @__PURE__ */ jsx34(Fragment4, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ jsx34("div", { className: "text-xs", children: weiToHumanReadable({
1864
+ signer && /* @__PURE__ */ jsx34(Fragment4, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ jsx34("div", { className: "xpay-text-xs", children: weiToHumanReadable({
1867
1865
  amount: balances[token.address]?.toString() || "0",
1868
1866
  decimals: token.decimals,
1869
1867
  precisionFractionalPlaces: 4
1870
- }) }) : /* @__PURE__ */ jsx34(Skeleton, { width: "w-12", height: "h-3" }) })
1868
+ }) }) : /* @__PURE__ */ jsx34(Skeleton, { width: "xpay-w-12", height: "xpay-h-3" }) })
1871
1869
  ] })
1872
1870
  ]
1873
1871
  },
1874
1872
  `${index}_${token.address}`
1875
- )) : /* @__PURE__ */ jsx34("div", { className: "mt-4 flex justify-center", children: /* @__PURE__ */ jsx34("p", { className: "text-sm text-white", children: "No tokens found." }) }) })
1873
+ )) : /* @__PURE__ */ jsx34("div", { className: "xpay-mt-4 xpay-flex xpay-justify-center", children: /* @__PURE__ */ jsx34("p", { className: "xpay-text-sm xpay-text-white", children: "No tokens found." }) }) })
1876
1874
  ] })
1877
1875
  }
1878
1876
  ),
1879
- modalRoot
1877
+ xpayRoot2
1880
1878
  ) : null;
1881
1879
  };
1882
1880
 
@@ -1893,7 +1891,7 @@ var ChainListElement = ({
1893
1891
  /* @__PURE__ */ jsxs14(
1894
1892
  "li",
1895
1893
  {
1896
- className: "bg-transparent border-none flex gap-1 items-center cursor-pointer py-2 w-full",
1894
+ className: "xpay-bg-transparent xpay-border-none xpay-flex xpay-gap-1 xpay-items-center xpay-cursor-pointer xpay-py-2 xpay-w-full",
1897
1895
  onClick: () => {
1898
1896
  setSrcChain(chain);
1899
1897
  setChainListShown(false);
@@ -1904,7 +1902,7 @@ var ChainListElement = ({
1904
1902
  ]
1905
1903
  }
1906
1904
  ),
1907
- index !== length - 1 && /* @__PURE__ */ jsx35("div", { className: "h-px mx-2 bg-[rgba(255,255,255,0.15)]" })
1905
+ index !== length - 1 && /* @__PURE__ */ jsx35("div", { className: "xpay-h-px xpay-mx-2 xpay-bg-[rgba(255,255,255,0.15)]" })
1908
1906
  ] }, `${chain.ecosystem}-${chain.chainId}`);
1909
1907
  };
1910
1908
 
@@ -1939,7 +1937,7 @@ var BalanceComponent = ({ srcToken, balances }) => {
1939
1937
  decimals: srcToken.decimals,
1940
1938
  precisionFractionalPlaces: 4
1941
1939
  }) : 0,
1942
- /* @__PURE__ */ jsx36("span", { className: "bg-gradient-to-r from-x_blue_light to-x_blue_dark bg-clip-text text-transparent", children: "Max" })
1940
+ /* @__PURE__ */ jsx36("span", { className: "xpay-bg-gradient-to-r xpay-from-x_blue_light xpay-to-x_blue_dark xpay-bg-clip-text xpay-text-transparent", children: "Max" })
1943
1941
  ] });
1944
1942
  };
1945
1943
 
@@ -1990,14 +1988,14 @@ var SwapPanel = ({
1990
1988
  () => supportedChains.filter((chain) => chain.chainId !== srcChain?.chainId),
1991
1989
  [supportedChains, srcChain]
1992
1990
  );
1993
- return /* @__PURE__ */ jsxs16("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
1994
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
1995
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1", children: [
1996
- /* @__PURE__ */ jsx37("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
1991
+ return /* @__PURE__ */ jsxs16("div", { className: "xpay-flex xpay-justify-between xpay-global-border xpay-rounded-lg xpay-bg-[rgba(15,15,15,1)] xpay-p-4", children: [
1992
+ /* @__PURE__ */ jsxs16("div", { className: "xpay-flex xpay-flex-col xpay-justify-between xpay-gap-2 xpay-overflow-hidden xpay-w-1/2", children: [
1993
+ /* @__PURE__ */ jsxs16("div", { className: "xpay-flex xpay-flex-col xpay-gap-1", children: [
1994
+ /* @__PURE__ */ jsx37("p", { className: "xpay-text-white xpay-opacity-60 xpay-text-xs sm:xpay-text-sm xpay-font-medium", children: "You pay" }),
1997
1995
  /* @__PURE__ */ jsx37(
1998
1996
  "input",
1999
1997
  {
2000
- className: "p-0 border-none outline-none bg-transparent text-2xl overflow-ellipsis",
1998
+ className: "xpay-p-0 xpay-border-none xpay-outline-none xpay-bg-transparent xpay-text-2xl xpay-overflow-ellipsis",
2001
1999
  value: amount,
2002
2000
  onChange: (e) => {
2003
2001
  if (e.target.value === ".") return;
@@ -2013,7 +2011,7 @@ var SwapPanel = ({
2013
2011
  }
2014
2012
  )
2015
2013
  ] }),
2016
- /* @__PURE__ */ jsx37("div", { className: "flex items-center text-sm text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ jsx37(
2014
+ /* @__PURE__ */ jsx37("div", { className: "xpay-flex xpay-items-center xpay-text-sm xpay-text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ jsx37(
2017
2015
  UsdPrice,
2018
2016
  {
2019
2017
  prices,
@@ -2025,11 +2023,11 @@ var SwapPanel = ({
2025
2023
  }
2026
2024
  ) })
2027
2025
  ] }),
2028
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col relative items-end gap-2.5 w-1/2 text-xs", children: [
2026
+ /* @__PURE__ */ jsxs16("div", { className: "xpay-flex xpay-flex-col xpay-relative xpay-items-end xpay-gap-2.5 xpay-w-1/2 xpay-text-xs", children: [
2029
2027
  /* @__PURE__ */ jsxs16(
2030
2028
  "div",
2031
2029
  {
2032
- className: "flex gap-2 items-center p-2 max-w-full cursor-pointer bg-black text-white globalBorder rounded-3xl whitespace-nowrap",
2030
+ className: "xpay-flex xpay-gap-2 xpay-items-center xpay-p-2 xpay-max-w-full xpay-cursor-pointer xpay-bg-black xpay-text-white xpay-global-border xpay-rounded-3xl xpay-whitespace-nowrap",
2033
2031
  onClick: () => {
2034
2032
  setTokenListShown((state) => !state);
2035
2033
  },
@@ -2063,7 +2061,7 @@ var SwapPanel = ({
2063
2061
  "div",
2064
2062
  {
2065
2063
  onClick: handleMaxClick,
2066
- className: "flex gap-1 items-center font-medium text-white opacity-60 py-0.5 cursor-pointer",
2064
+ className: "xpay-flex xpay-gap-1 xpay-items-center xpay-font-medium xpay-text-white xpay-opacity-60 xpay-py-0.5 xpay-cursor-pointer",
2067
2065
  children: signer && /* @__PURE__ */ jsx37(BalanceComponent, { balances, srcToken })
2068
2066
  }
2069
2067
  ),
@@ -2071,7 +2069,7 @@ var SwapPanel = ({
2071
2069
  "div",
2072
2070
  {
2073
2071
  ref: buttonRef,
2074
- className: "bg-black globalBorder rounded-2xl whitespace-nowrap flex items-center p-2 cursor-pointer gap-2",
2072
+ className: "xpay-bg-black xpay-global-border xpay-rounded-2xl xpay-whitespace-nowrap xpay-flex xpay-items-center xpay-p-2 xpay-cursor-pointer xpay-gap-2",
2075
2073
  onClick: () => setChainListShown((prev) => !prev),
2076
2074
  children: [
2077
2075
  /* @__PURE__ */ jsx37(
@@ -2092,7 +2090,7 @@ var SwapPanel = ({
2092
2090
  "ul",
2093
2091
  {
2094
2092
  ref: listRef,
2095
- className: "bg-black globalBorder rounded-lg whitespace-nowrap z-1 right-0 top-10 px-2 max-w-full max-h-[40vh] overflow-auto absolute text-sm z-20",
2093
+ className: "xpay-bg-black xpay-global-border xpay-rounded-lg xpay-whitespace-nowrap xpay-z-1 xpay-right-0 xpay-top-10 xpay-px-2 xpay-max-w-full xpay-max-h-[40vh] xpay-overflow-auto xpay-absolute xpay-text-sm xpay-z-20",
2096
2094
  children: chainListOptions.map((chain, index) => /* @__PURE__ */ jsx37(
2097
2095
  ChainListElement,
2098
2096
  {
@@ -2115,7 +2113,7 @@ var ErrorField = ({ error }) => {
2115
2113
  return /* @__PURE__ */ jsx38(
2116
2114
  "div",
2117
2115
  {
2118
- className: `flex justify-center mb-1 items-center w-full rounded-2xl bg-x_error_background border border-solid ${error.length > 0 ? "border-x_error_border" : "border-transparent"}`,
2116
+ className: `xpay-flex xpay-justify-center xpay-mb-1 xpay-items-center xpay-w-full xpay-rounded-2xl xpay-bg-x_error_background xpay-border xpay-border-solid ${error.length > 0 ? "xpay-border-x_error_border" : "xpay-border-transparent"}`,
2119
2117
  children: error
2120
2118
  }
2121
2119
  );
@@ -2124,7 +2122,7 @@ var ErrorField = ({ error }) => {
2124
2122
  // src/components/TxConfigForm/Description.tsx
2125
2123
  import { jsx as jsx39 } from "react/jsx-runtime";
2126
2124
  var Description = ({ description }) => {
2127
- return /* @__PURE__ */ jsx39("div", { className: "flex flex-col items-start rounded-lg px-4 py-2", children: /* @__PURE__ */ jsx39("div", { className: "w-full flex gap-4 items-start justify-between text-xl", children: description }) });
2125
+ return /* @__PURE__ */ jsx39("div", { className: "xpay-flex xpay-flex-col xpay-items-start xpay-rounded-lg xpay-px-4 xpay-py-2", children: /* @__PURE__ */ jsx39("div", { className: "xpay-w-full xpay-flex xpay-gap-4 xpay-items-start xpay-justify-between xpay-text-xl", children: description }) });
2128
2126
  };
2129
2127
 
2130
2128
  // src/components/TxConfigForm/Button.tsx
@@ -2133,7 +2131,7 @@ var Button = ({ children, onClick, type, disabled }) => {
2133
2131
  return /* @__PURE__ */ jsx40(
2134
2132
  "button",
2135
2133
  {
2136
- className: "text-white border-none rounded-2xl text-xl py-4 cursor-pointer w-full bg-gradient-to-r from-[#3681c6] to-[#2b4a9d] disabled:opacity-25",
2134
+ className: "xpay-text-white xpay-border-none xpay-rounded-2xl xpay-text-xl xpay-py-4 xpay-cursor-pointer xpay-w-full xpay-bg-gradient-to-r xpay-from-[#3681c6] xpay-to-[#2b4a9d] disabled:xpay-opacity-25",
2137
2135
  onClick,
2138
2136
  type,
2139
2137
  disabled,
@@ -2290,7 +2288,7 @@ var Form = ({
2290
2288
  return /* @__PURE__ */ jsxs17(
2291
2289
  "form",
2292
2290
  {
2293
- className: "flex flex-col gap-2 z-10 my-0 p-2 md:p-4 rounded-3xl overflow-hidden font-light sm:w-x_desktop",
2291
+ className: "xpay-flex xpay-flex-col xpay-gap-2 xpay-z-10 xpay-my-0 xpay-p-2 md:xpay-p-4 xpay-rounded-3xl xpay-overflow-hidden xpay-font-light sm:xpay-w-x_desktop",
2294
2292
  onSubmit: handleSubmit,
2295
2293
  children: [
2296
2294
  /* @__PURE__ */ jsx41(
@@ -2313,7 +2311,7 @@ var Form = ({
2313
2311
  setSlippage
2314
2312
  }
2315
2313
  ),
2316
- historyTabShown ? /* @__PURE__ */ jsx41(History, { signer, supportedChains }) : /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
2314
+ historyTabShown ? /* @__PURE__ */ jsx41(History, { signer, supportedChains }) : /* @__PURE__ */ jsxs17("div", { className: "xpay-flex xpay-flex-col xpay-gap-2", children: [
2317
2315
  desc && /* @__PURE__ */ jsx41(Description, { description: desc }),
2318
2316
  /* @__PURE__ */ jsx41(
2319
2317
  SwapPanel,
@@ -2396,9 +2394,9 @@ var TxConfigForm = ({
2396
2394
  return /* @__PURE__ */ jsx42(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx42(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx42(
2397
2395
  "div",
2398
2396
  {
2399
- className: "top-0 left-0 right-0 bottom-0 bg-[rgba(0,0,0,0.8)] fixed flex items-center justify-center z-10",
2397
+ className: "xpay-top-0 xpay-left-0 xpay-right-0 xpay-bottom-0 xpay-bg-[rgba(0,0,0,0.8)] xpay-fixed xpay-flex xpay-items-center xpay-justify-center xpay-z-10",
2400
2398
  onClick: onBackdropClick,
2401
- children: /* @__PURE__ */ jsxs18("div", { className: "relative bg-black rounded-3xl overflow-auto text-white border-2 border-solid border-[rgba(255,255,255,0.1)]", children: [
2399
+ children: /* @__PURE__ */ jsxs18("div", { className: "xpay-relative xpay-bg-black xpay-rounded-3xl xpay-overflow-auto xpay-text-white xpay-border-2 xpay-border-solid xpay-border-[rgba(255,255,255,0.1)]", children: [
2402
2400
  /* @__PURE__ */ jsx42(
2403
2401
  Form,
2404
2402
  {
@@ -2428,7 +2426,7 @@ var openTxConfigForm = async ({
2428
2426
  try {
2429
2427
  return await new Promise(async (resolve) => {
2430
2428
  await waitForInitialization();
2431
- xswapRoot.render(
2429
+ xpayRoot.render(
2432
2430
  /* @__PURE__ */ jsx42(
2433
2431
  TxConfigForm,
2434
2432
  {
@@ -2440,10 +2438,10 @@ var openTxConfigForm = async ({
2440
2438
  supportedChains,
2441
2439
  onSubmit: (route) => {
2442
2440
  resolve(route);
2443
- xswapRoot.render("");
2441
+ xpayRoot.render("");
2444
2442
  },
2445
2443
  onClose: () => {
2446
- xswapRoot.render("");
2444
+ xpayRoot.render("");
2447
2445
  }
2448
2446
  }
2449
2447
  )
@@ -2471,82 +2469,90 @@ var TxStatusButton = ({ transaction }) => {
2471
2469
  } = transaction;
2472
2470
  const [isWide, setIsWide] = useState9(false);
2473
2471
  const background = useMemo9(
2474
- () => isDone ? "bg-[rgba(2,2,2,1)] bg-gradient-to-r from-[rgba(76,175,80,0.2)] to-[rgba(46,125,50,0.2)]" : "bg-[rgba(2,2,2,1)] bg-gradient-to-r from-[rgba(54,129,198,0.2)] to-[rgba(43,74,157,0.2)]",
2472
+ () => isDone ? "xpay-bg-[rgba(2,2,2,1)] xpay-bg-gradient-to-r xpay-from-[rgba(76,175,80,0.2)] xpay-to-[rgba(46,125,50,0.2)]" : "xpay-bg-[rgba(2,2,2,1)] xpay-bg-gradient-to-r xpay-from-[rgba(54,129,198,0.2)] xpay-to-[rgba(43,74,157,0.2)]",
2475
2473
  [isDone]
2476
2474
  );
2477
2475
  const border = useMemo9(
2478
- () => isDone ? "border border-solid border-x_green_dark" : "border border-solid border-x_blue_dark",
2476
+ () => isDone ? "xpay-border xpay-border-solid xpay-border-x_green_dark" : "xpay-border xpay-border-solid xpay-border-x_blue_dark",
2479
2477
  [isDone]
2480
2478
  );
2481
- return /* @__PURE__ */ jsxs19("div", { className: "flex gap-2", onClick: () => setIsWide((x) => !x), children: [
2482
- isWide && /* @__PURE__ */ jsxs19(
2483
- "div",
2484
- {
2485
- className: `flex items-center min-w-60 sm:w-[520px] text-white h-14 px-4 text-sm gap-3 rounded-xl ${background} ${border}`,
2486
- children: [
2487
- /* @__PURE__ */ jsxs19("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
2488
- /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
2479
+ return /* @__PURE__ */ jsxs19(
2480
+ "div",
2481
+ {
2482
+ className: "xpay-flex xpay-gap-2",
2483
+ onClick: () => setIsWide((x) => !x),
2484
+ children: [
2485
+ isWide && /* @__PURE__ */ jsxs19(
2486
+ "div",
2487
+ {
2488
+ className: `xpay-flex xpay-items-center xpay-min-w-60 sm:xpay-w-[520px] xpay-text-white xpay-h-14 xpay-px-4 xpay-text-sm xpay-gap-3 xpay-rounded-xl ${background} ${border}`,
2489
+ children: [
2490
+ /* @__PURE__ */ jsxs19("div", { className: "xpay-flex xpay-justify-between xpay-flex-col xpay-gap-2 sm:xpay-gap-5 sm:xpay-flex-row xpay-w-full", children: [
2491
+ /* @__PURE__ */ jsxs19("div", { className: "xpay-flex xpay-items-center xpay-gap-2", children: [
2492
+ /* @__PURE__ */ jsx43(
2493
+ "img",
2494
+ {
2495
+ className: "xpay-w-5 xpay-h-5",
2496
+ src: fromChainImage,
2497
+ alt: "source chain"
2498
+ }
2499
+ ),
2500
+ /* @__PURE__ */ jsx43("div", { children: fromChain }),
2501
+ /* @__PURE__ */ jsx43("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ jsx43(ArrowRightIcon, {}) }),
2502
+ /* @__PURE__ */ jsx43(
2503
+ "img",
2504
+ {
2505
+ className: "xpay-w-5 xpay-h-5",
2506
+ src: toChainImage,
2507
+ alt: "to chain"
2508
+ }
2509
+ ),
2510
+ /* @__PURE__ */ jsx43("div", { children: toChain })
2511
+ ] }),
2512
+ /* @__PURE__ */ jsxs19("div", { className: "xpay-flex xpay-items-center xpay-gap-2", children: [
2513
+ /* @__PURE__ */ jsx43("div", { children: "Sent" }),
2514
+ /* @__PURE__ */ jsx43("div", { children: fromAmount }),
2515
+ /* @__PURE__ */ jsx43("div", { children: fromToken }),
2516
+ fromTokenImage ? /* @__PURE__ */ jsx43(
2517
+ "img",
2518
+ {
2519
+ className: "xpay-w-5 xpay-h-5",
2520
+ src: fromTokenImage,
2521
+ alt: "source token"
2522
+ }
2523
+ ) : /* @__PURE__ */ jsx43(UnknownTokenLogo, { tokenName: "?" })
2524
+ ] })
2525
+ ] }),
2489
2526
  /* @__PURE__ */ jsx43(
2490
- "img",
2491
- {
2492
- className: "w-5 h-5",
2493
- src: fromChainImage,
2494
- alt: "source chain"
2495
- }
2496
- ),
2497
- /* @__PURE__ */ jsx43("div", { children: fromChain }),
2498
- /* @__PURE__ */ jsx43("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx43(ArrowRightIcon, {}) }),
2499
- /* @__PURE__ */ jsx43("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
2500
- /* @__PURE__ */ jsx43("div", { children: toChain })
2501
- ] }),
2502
- /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
2503
- /* @__PURE__ */ jsx43("div", { children: "Sent" }),
2504
- /* @__PURE__ */ jsx43("div", { children: fromAmount }),
2505
- /* @__PURE__ */ jsx43("div", { children: fromToken }),
2506
- fromTokenImage ? /* @__PURE__ */ jsx43(
2507
- "img",
2508
- {
2509
- className: "w-5 h-5",
2510
- src: fromTokenImage,
2511
- alt: "source token"
2512
- }
2513
- ) : /* @__PURE__ */ jsx43(
2514
- UnknownTokenLogo,
2527
+ "a",
2515
2528
  {
2516
- tokenName: "?",
2517
- className: "token-select__generated-logo"
2529
+ href: explorer,
2530
+ target: "_blank",
2531
+ rel: "noreferrer",
2532
+ className: "xpay-no-underline xpay-cursor-pointer",
2533
+ "aria-label": "Show the transaction in the chain explorer",
2534
+ children: /* @__PURE__ */ jsx43("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ jsx43(ArrowUpRightIcon, {}) })
2518
2535
  }
2519
2536
  )
2537
+ ]
2538
+ }
2539
+ ),
2540
+ /* @__PURE__ */ jsx43(
2541
+ "div",
2542
+ {
2543
+ className: `xpay-text-white xpay-rounded-xl xpay-cursor-pointer ${background} ${border}`,
2544
+ children: /* @__PURE__ */ jsxs19("div", { className: "xpay-flex xpay-gap-2 xpay-items-center xpay-h-14 xpay-w-20 xpay-justify-center", children: [
2545
+ /* @__PURE__ */ jsx43(ArrowLeftIcon, {}),
2546
+ /* @__PURE__ */ jsx43("div", { className: "xpay-relative xpay-flex xpay-items-center xpay-justify-center xpay-w-9 xpay-h-9", children: isDone ? /* @__PURE__ */ jsx43("div", { className: "xpay-text-x_green xpay-w-5 xpay-h-5", children: /* @__PURE__ */ jsx43(CheckIcon, {}) }) : /* @__PURE__ */ jsxs19(Fragment6, { children: [
2547
+ /* @__PURE__ */ jsx43("div", { className: "xpay-w-5 xpay-h-5", children: /* @__PURE__ */ jsx43(XSwapLogo, {}) }),
2548
+ /* @__PURE__ */ jsx43("div", { className: "xpay-absolute xpay-flex xpay-items-center xpay-justify-center xpay-top-0 xpay-left-0 xpay-right-0 xpay-bottom-0 xpay-text-white", children: /* @__PURE__ */ jsx43(CircularProgressIcon, {}) })
2549
+ ] }) })
2520
2550
  ] })
2521
- ] }),
2522
- /* @__PURE__ */ jsx43(
2523
- "a",
2524
- {
2525
- href: explorer,
2526
- target: "_blank",
2527
- rel: "noreferrer",
2528
- className: "no-underline cursor-pointer",
2529
- "aria-label": "Show the transaction in the chain explorer",
2530
- children: /* @__PURE__ */ jsx43("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ jsx43(ArrowUpRightIcon, {}) })
2531
- }
2532
- )
2533
- ]
2534
- }
2535
- ),
2536
- /* @__PURE__ */ jsx43(
2537
- "div",
2538
- {
2539
- className: `text-white rounded-xl cursor-pointer ${background} ${border}`,
2540
- children: /* @__PURE__ */ jsxs19("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
2541
- /* @__PURE__ */ jsx43(ArrowLeftIcon, {}),
2542
- /* @__PURE__ */ jsx43("div", { className: "relative flex items-center justify-center w-9 h-9", children: isDone ? /* @__PURE__ */ jsx43("div", { className: "text-x_green w-5 h-5", children: /* @__PURE__ */ jsx43(CheckIcon, {}) }) : /* @__PURE__ */ jsxs19(Fragment6, { children: [
2543
- /* @__PURE__ */ jsx43("div", { className: "w-5 h-5", children: /* @__PURE__ */ jsx43(XSwapLogo, {}) }),
2544
- /* @__PURE__ */ jsx43("div", { className: "absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 text-white", children: /* @__PURE__ */ jsx43(CircularProgressIcon, {}) })
2545
- ] }) })
2546
- ] })
2547
- }
2548
- )
2549
- ] });
2551
+ }
2552
+ )
2553
+ ]
2554
+ }
2555
+ );
2550
2556
  };
2551
2557
  var renderedTransactions = [];
2552
2558
  var addTransactionToRenderedTransactions = (transaction) => {
@@ -2569,13 +2575,18 @@ var updateTransactionDoneInRenderedTransactions = (txHash) => {
2569
2575
  };
2570
2576
  var renderTxStatusButtons = () => {
2571
2577
  const buttons = renderedTransactions.map((item) => /* @__PURE__ */ jsx43(TxStatusButton, { transaction: item }, item.txHash));
2572
- txStatusRoot.render(buttons);
2578
+ xpayTxStatusRoot.render(buttons);
2573
2579
  };
2574
2580
 
2575
2581
  // src/components/Skeleton/index.tsx
2576
2582
  import { jsx as jsx44 } from "react/jsx-runtime";
2577
2583
  var Skeleton = ({ width, height }) => {
2578
- return /* @__PURE__ */ jsx44("div", { className: `bg-current rounded animate-pulse ${width} ${height}` });
2584
+ return /* @__PURE__ */ jsx44(
2585
+ "div",
2586
+ {
2587
+ className: `xpay-bg-current xpay-rounded xpay-animate-pulse ${width} ${height}`
2588
+ }
2589
+ );
2579
2590
  };
2580
2591
 
2581
2592
  // src/services/integrations/monitoring.ts