@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.js CHANGED
@@ -59,7 +59,7 @@ var xswap_config_default = {
59
59
  };
60
60
 
61
61
  // package.json
62
- var version = "0.2.5";
62
+ var version = "0.2.6";
63
63
 
64
64
  // src/components/WaitingForInit/index.tsx
65
65
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -86,19 +86,19 @@ var WaitingForInit = () => {
86
86
 
87
87
  // src/config/init.tsx
88
88
  var import_jsx_runtime2 = require("react/jsx-runtime");
89
- var initIndicatorRoot;
90
- var xswapRoot;
91
- var txStatusRoot;
89
+ var xpayRoot;
90
+ var xpayInitIndicatorRoot;
91
+ var xpayTxStatusRoot;
92
92
  var initCompleted = false;
93
93
  var initDocument = () => {
94
94
  if (typeof document === "undefined") {
95
95
  throw new Error("Can't render XPay components from server side.");
96
96
  }
97
- createInitIndicatorRoot();
97
+ createXPayInitIndicatorRoot();
98
98
  Promise.all([
99
99
  createStyleElement(),
100
- createXSwapRoot(),
101
- createTxStatusRoot()
100
+ createXPayRoot(),
101
+ createXPayTxStatusRoot()
102
102
  ]).then(() => {
103
103
  initCompleted = true;
104
104
  });
@@ -123,27 +123,28 @@ var createStyleElement = async () => {
123
123
  style.textContent = text;
124
124
  document.body.appendChild(style);
125
125
  };
126
- var createXSwapRoot = async () => {
126
+ var createXPayRoot = async () => {
127
127
  const xswapElement = document.createElement("div");
128
- xswapElement.setAttribute("id", "xswap-modal");
128
+ xswapElement.setAttribute("id", "xpay-root");
129
+ xswapElement.setAttribute("class", "xpay");
129
130
  document.body.appendChild(xswapElement);
130
- xswapRoot = (0, import_client.createRoot)(xswapElement);
131
+ xpayRoot = (0, import_client.createRoot)(xswapElement);
131
132
  };
132
- var createTxStatusRoot = async () => {
133
+ var createXPayTxStatusRoot = async () => {
133
134
  const txStatusElement = document.createElement("div");
134
- txStatusElement.setAttribute("id", "xswap-tx-status");
135
- txStatusElement.setAttribute("class", "xswap-tx-status");
135
+ txStatusElement.setAttribute("id", "xpay-tx-status");
136
+ txStatusElement.setAttribute("class", "xpay-tx-status");
136
137
  document.body.appendChild(txStatusElement);
137
- txStatusRoot = (0, import_client.createRoot)(txStatusElement);
138
+ xpayTxStatusRoot = (0, import_client.createRoot)(txStatusElement);
138
139
  };
139
- var createInitIndicatorRoot = () => {
140
+ var createXPayInitIndicatorRoot = () => {
140
141
  const initIndicatorElement = document.createElement("div");
141
- initIndicatorElement.setAttribute("id", "xswap-init-indicator");
142
+ initIndicatorElement.setAttribute("id", "xpay-init-indicator");
142
143
  document.body.appendChild(initIndicatorElement);
143
- initIndicatorRoot = (0, import_client.createRoot)(initIndicatorElement);
144
+ xpayInitIndicatorRoot = (0, import_client.createRoot)(initIndicatorElement);
144
145
  };
145
146
  var displayInitIndicator = (display) => {
146
- display ? initIndicatorRoot.render(/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WaitingForInit, {})) : initIndicatorRoot.render("");
147
+ display ? xpayInitIndicatorRoot.render(/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WaitingForInit, {})) : xpayInitIndicatorRoot.render("");
147
148
  };
148
149
 
149
150
  // src/services/api.ts
@@ -706,7 +707,7 @@ var import_ethers6 = require("ethers");
706
707
  // src/components/Alert/index.tsx
707
708
  var import_jsx_runtime3 = require("react/jsx-runtime");
708
709
  var Alert = ({ desc }) => {
709
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "border border-solid border-x_alert rounded-3xl text-x_alert_light text-xs py-0.5 px-2", children: [
710
+ return /* @__PURE__ */ (0, import_jsx_runtime3.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: [
710
711
  "\u26A0\uFE0F ",
711
712
  desc
712
713
  ] });
@@ -878,7 +879,7 @@ var CircularProgressIcon = () => {
878
879
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
879
880
  "svg",
880
881
  {
881
- className: "animate-spin-slow text-white",
882
+ className: "animate-spin-slow xpay-text-white",
882
883
  width: "33",
883
884
  height: "33",
884
885
  viewBox: "0 0 33 33",
@@ -1193,8 +1194,8 @@ var XSwapLogo = () => {
1193
1194
  // src/components/TxConfigForm/PoweredBy.tsx
1194
1195
  var import_jsx_runtime26 = require("react/jsx-runtime");
1195
1196
  var PoweredBy = () => {
1196
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-center items-center gap-2 my-3", children: [
1197
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-x_grey", children: "Powered by" }),
1197
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-2 xpay-my-3", children: [
1198
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "xpay-text-x_grey", children: "Powered by" }),
1198
1199
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(XSwapBadgeIcon, {}),
1199
1200
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "\u2715" }),
1200
1201
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChainlinkCCIPIcon, {})
@@ -1275,13 +1276,13 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1275
1276
  const targetChainData = supportedChains.find(
1276
1277
  (chain) => chain.chainId === transaction.targetChainId
1277
1278
  );
1278
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("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: [
1279
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
1280
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-sm sm:text-base", children: date }),
1281
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1282
- transaction.status === "IN_PROGRESS" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-[rgb(250,200,100)]", children: "In progress" }) }),
1283
- transaction.status === "DONE" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-[rgb(100,200,100)]", children: "Done" }) }),
1284
- transaction.status === "REVERTED" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-[rgb(255,100,100)]", children: "Reverted" }) }),
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("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: [
1280
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between", children: [
1281
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-text-sm sm:xpay-text-base", children: date }),
1282
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1283
+ transaction.status === "IN_PROGRESS" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-text-[rgb(250,200,100)]", children: "In progress" }) }),
1284
+ transaction.status === "DONE" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-text-[rgb(100,200,100)]", children: "Done" }) }),
1285
+ transaction.status === "REVERTED" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-flex xpay-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-text-[rgb(255,100,100)]", children: "Reverted" }) }),
1285
1286
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1286
1287
  "a",
1287
1288
  {
@@ -1290,65 +1291,65 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1290
1291
  )?.transactionExplorer}/${transaction.hash}`,
1291
1292
  target: "_blank",
1292
1293
  rel: "noreferrer",
1293
- className: "ml-2 no-underline",
1294
+ className: "xpay-ml-2 xpay-no-underline",
1294
1295
  "aria-label": "Show the transaction in the chain explorer",
1295
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowUpRightIcon, {}) })
1296
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowUpRightIcon, {}) })
1296
1297
  }
1297
1298
  )
1298
1299
  ] })
1299
1300
  ] }),
1300
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex justify-between flex-wrap gap-2", children: [
1301
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1302
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1301
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-flex-wrap xpay-gap-2", children: [
1302
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1303
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1303
1304
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1304
1305
  "img",
1305
1306
  {
1306
1307
  src: sourceChainData?.image,
1307
1308
  alt: `${sourceChainData?.name} logo`,
1308
- className: "w-5 h-5 mr-1"
1309
+ className: "xpay-w-5 xpay-h-5 xpay-mr-1"
1309
1310
  }
1310
1311
  ),
1311
1312
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: sourceChainData?.displayName })
1312
1313
  ] }),
1313
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowRightIcon, {}) }),
1314
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1314
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-w-3.5 xpay-h-3.5 xpay-my-0 xpay-mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowRightIcon, {}) }),
1315
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1315
1316
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1316
1317
  "img",
1317
1318
  {
1318
1319
  src: targetChainData?.image,
1319
1320
  alt: `${targetChainData?.name} logo`,
1320
- className: "w-5 h-5 mr-1"
1321
+ className: "xpay-w-5 xpay-h-5 xpay-mr-1"
1321
1322
  }
1322
1323
  ),
1323
1324
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: targetChainData?.displayName })
1324
1325
  ] })
1325
1326
  ] }),
1326
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex items-center mb-2 last:mb-0", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center flex-wrap", children: [
1327
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1327
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-flex xpay-items-center xpay-mb-2 last:xpay-mb-0", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center xpay-flex-wrap", children: [
1328
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1328
1329
  Number(transferredAmount) < MINIMUM_DISPLAYED_TOKEN_AMOUNT ? `<${MINIMUM_DISPLAYED_TOKEN_AMOUNT}` : transferredAmount,
1329
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ml-1", children: tokenData?.symbol }),
1330
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-ml-1", children: tokenData?.symbol }),
1330
1331
  tokenData?.image ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1331
1332
  "img",
1332
1333
  {
1333
1334
  src: tokenData?.image,
1334
1335
  alt: tokenData?.name || "",
1335
- className: "w-5 h-5 ml-1"
1336
+ className: "xpay-w-5 xpay-h-5 xpay-ml-1"
1336
1337
  }
1337
- ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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) })
1338
+ ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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) })
1338
1339
  ] }),
1339
1340
  transaction.tokenOutAddress && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1340
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowRightIcon, {}) }),
1341
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1341
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-w-3.5 xpay-h-3.5 xpay-my-0 xpay-mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowRightIcon, {}) }),
1342
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "xpay-flex xpay-items-center", children: [
1342
1343
  Number(receivedAmount) < 1e-4 ? "<0.0001" : receivedAmount,
1343
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ml-1", children: tokenOutData?.symbol }),
1344
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "xpay-ml-1", children: tokenOutData?.symbol }),
1344
1345
  tokenOutData?.image ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1345
1346
  "img",
1346
1347
  {
1347
1348
  src: tokenOutData?.image,
1348
1349
  alt: tokenOutData?.name || "",
1349
- className: "w-5 h-5 ml-1"
1350
+ className: "xpay-w-5 xpay-h-5 xpay-ml-1"
1350
1351
  }
1351
- ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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) })
1352
+ ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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) })
1352
1353
  ] })
1353
1354
  ] })
1354
1355
  ] }) })
@@ -1429,10 +1430,10 @@ var History = ({ signer, supportedChains }) => {
1429
1430
  return () => clearInterval(timer);
1430
1431
  }, [signer, fetchHistory, getHistory, historyLoadedOnce]);
1431
1432
  if (!signer)
1432
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex items-center justify-center w-full h-[30vh]", children: "Connect a wallet to browse history" });
1433
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "w-full h-96 overflow-scroll overflow-x-hidden", children: [
1434
- fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "w-full text-center py-4 px-0 text-[rgb(158,158,158)]", children: "Your history is empty..." }),
1435
- !fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex w-full h-full items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CircularProgressIcon, {}) }),
1433
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-full xpay-h-[30vh]", children: "Connect a wallet to browse history" });
1434
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "xpay-flex xpay-items-center xpay-justify-center xpay-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "xpay-w-full xpay-h-96 xpay-overflow-scroll xpay-overflow-x-hidden", children: [
1435
+ fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("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..." }),
1436
+ !fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "xpay-flex xpay-w-full xpay-h-full xpay-items-center xpay-justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CircularProgressIcon, {}) }),
1436
1437
  fetchedHistory?.map((transaction, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1437
1438
  HistoryCard,
1438
1439
  {
@@ -1453,26 +1454,26 @@ var TopBar = ({
1453
1454
  historyTabShown,
1454
1455
  onClose
1455
1456
  }) => {
1456
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full justify-between items-center mx-auto p-2", children: [
1457
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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` }),
1458
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-2 justify-center items-center", children: [
1457
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "xpay-flex xpay-w-full xpay-justify-between xpay-items-center xpay-mx-auto xpay-p-2", children: [
1458
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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` }),
1459
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "xpay-flex xpay-gap-2 xpay-justify-center xpay-items-center", children: [
1459
1460
  !historyTabShown && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1460
1461
  "div",
1461
1462
  {
1462
1463
  onClick: () => setSettingsShown(true),
1463
- className: "flex items-center text-xs gap-1 cursor-pointer",
1464
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)(SettingsIcon, {}) })
1464
+ className: "xpay-flex xpay-items-center xpay-text-xs xpay-gap-1 xpay-cursor-pointer",
1465
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)(SettingsIcon, {}) })
1465
1466
  }
1466
1467
  ),
1467
1468
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1468
1469
  "div",
1469
1470
  {
1470
1471
  onClick: () => setHistoryTabShown((x) => !x),
1471
- className: "flex items-center text-sm gap-1 cursor-pointer",
1472
- children: !historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)(HistoryIcon, {}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: "Back" })
1472
+ className: "xpay-flex xpay-items-center xpay-text-sm xpay-gap-1 xpay-cursor-pointer",
1473
+ children: !historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)(HistoryIcon, {}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: "Back" })
1473
1474
  }
1474
1475
  ),
1475
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cursor-pointer text-white", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CloseIcon, {}) })
1476
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "xpay-cursor-pointer xpay-text-white", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CloseIcon, {}) })
1476
1477
  ] })
1477
1478
  ] });
1478
1479
  };
@@ -1496,53 +1497,53 @@ var Settings = ({
1496
1497
  );
1497
1498
  }
1498
1499
  }, [slippageActivePresetIndex, usingSlippageInput]);
1499
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-4 justify-between", children: [
1500
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex justify-between", children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-base", children: "Settings" }),
1500
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-gap-4 xpay-justify-between", children: [
1501
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-justify-between", children: [
1502
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "xpay-text-base", children: "Settings" }),
1502
1503
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1503
1504
  "div",
1504
1505
  {
1505
- className: "cursor-pointer",
1506
+ className: "xpay-cursor-pointer",
1506
1507
  onClick: () => setSettingsShown(false),
1507
1508
  children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {})
1508
1509
  }
1509
1510
  )
1510
1511
  ] }),
1511
1512
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
1512
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-2 items-center", children: [
1513
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1513
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-gap-2 xpay-items-center", children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "xpay-text-sm xpay-text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1514
1515
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1515
1516
  "span",
1516
1517
  {
1517
- className: "inline-flex w-14 h-9 p-3 relative align-middle box-border overflow-hidden cursor-pointer",
1518
+ 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",
1518
1519
  onClick: () => {
1519
1520
  setExpressChecked((x) => !x);
1520
1521
  },
1521
1522
  children: [
1522
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
1523
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "xpay-h-full, xpay-w-full xpay-rounded-lg xpay-bg-[rgba(255,255,255,0.3)]" }),
1523
1524
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1524
1525
  "span",
1525
1526
  {
1526
- className: `transition-all w-5 h-5 rounded-full absolute translate-y-[-4px]
1527
- ${expressChecked ? "translate-x-[12px] bg-x_blue" : "bg-white"} `
1527
+ className: `xpay-transition-all xpay-w-5 xpay-h-5 xpay-rounded-full xpay-absolute xpay-translate-y-[-4px]
1528
+ ${expressChecked ? "xpay-translate-x-[12px] xpay-bg-x_blue" : "xpay-bg-white"} `
1528
1529
  }
1529
1530
  )
1530
1531
  ]
1531
1532
  }
1532
1533
  ) })
1533
1534
  ] }),
1534
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-4", children: [
1535
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1536
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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." })
1535
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-gap-4", children: [
1536
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "xpay-min-w-[26px] xpay-min-h-[26px] xpay-text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1537
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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." })
1537
1538
  ] })
1538
1539
  ] }),
1539
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-2 ", children: [
1540
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
1541
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-2", children: [
1542
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex items-center bg-[rgba(15,15,15,1)] p-1 globalBorder rounded-xl", children: SLIPPAGE_PRESETS.map((preset, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1540
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-gap-2", children: [
1541
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-sm", children: "Slippage" }),
1542
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-gap-2", children: [
1543
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(
1543
1544
  "div",
1544
1545
  {
1545
- 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]" : ""}`,
1546
+ 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]" : ""}`,
1546
1547
  onClick: () => {
1547
1548
  setUsingSlippageInput(false);
1548
1549
  setSlippageActivePresetIndex(index);
@@ -1551,11 +1552,11 @@ var Settings = ({
1551
1552
  },
1552
1553
  index
1553
1554
  )) }),
1554
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
1555
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
1555
1556
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1556
1557
  "input",
1557
1558
  {
1558
- 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",
1559
+ 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",
1559
1560
  placeholder: "1.5",
1560
1561
  value: usingSlippageInput ? slippage : "",
1561
1562
  onChange: (e) => {
@@ -1574,9 +1575,9 @@ var Settings = ({
1574
1575
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PercentageIcon, {})
1575
1576
  ] })
1576
1577
  ] }),
1577
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-4", children: [
1578
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1579
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "text-xs text-left", children: [
1578
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-flex xpay-gap-4", children: [
1579
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "xpay-min-w-[26px] xpay-min-h-[26px] xpay-text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "xpay-text-xs xpay-text-left", children: [
1580
1581
  "Slippage is the price variation you are willing to accept in the event that the price of the trade changes while it is processing.",
1581
1582
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("br", {}),
1582
1583
  " ",
@@ -1605,12 +1606,12 @@ var FeesDetails = ({
1605
1606
  const isExpressDeliveryPossible = (0, import_react5.useMemo)(() => {
1606
1607
  return expressChecked && !exceedsExpressDeliveryLimit;
1607
1608
  }, [expressChecked, exceedsExpressDeliveryLimit]);
1608
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-3 globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-2 sm:p-4 mb-1", children: [
1609
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm", children: [
1610
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
1609
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
1610
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between xpay-text-xs sm:xpay-text-sm", children: [
1611
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-items-center xpay-gap-1 xpay-font-medium xpay-text-white xpay-opacity-60", children: [
1611
1612
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CoinsIcon, {}),
1612
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mr-1", children: "Fees:" }),
1613
- isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Skeleton, { width: "w-20", height: "h-4" }) : ` ${weiToHumanReadable({
1613
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "xpay-mr-1", children: "Fees:" }),
1614
+ isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Skeleton, { width: "xpay-w-20", height: "xpay-h-4" }) : ` ${weiToHumanReadable({
1614
1615
  amount: safeBigNumberFrom(
1615
1616
  route?.xSwapFees.xSwapFee.nativeFee || "0"
1616
1617
  ).add(safeBigNumberFrom(route?.xSwapFees.ccipFee || "0")).add(
@@ -1620,11 +1621,11 @@ var FeesDetails = ({
1620
1621
  precisionFractionalPlaces: 5
1621
1622
  })} ${paymentToken?.symbol}`
1622
1623
  ] }),
1623
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex gap-1 items-center", children: [
1624
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-gap-1 xpay-items-center", children: [
1624
1625
  route?.xSwapFees.expressDeliveryFee && !isGettingRoute && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1625
1626
  "div",
1626
1627
  {
1627
- className: `flex gap-1 items-center font-medium ${isExpressDeliveryPossible ? "text-x_green" : "text-white opacity-60"}`,
1628
+ className: `xpay-flex xpay-gap-1 xpay-items-center xpay-font-medium ${isExpressDeliveryPossible ? "xpay-text-x_green" : "xpay-text-white xpay-opacity-60"}`,
1628
1629
  children: [
1629
1630
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimerIcon, {}),
1630
1631
  isExpressDeliveryPossible ? "Fast ~ 30sec " : "Normal ~ 30min"
@@ -1635,39 +1636,39 @@ var FeesDetails = ({
1635
1636
  "div",
1636
1637
  {
1637
1638
  onClick: () => setFeesDetailsShown((x) => !x),
1638
- className: "font-medium text-white opacity-60 cursor-pointer flex items-center w-[15px] h-[9px]",
1639
+ className: "xpay-font-medium xpay-text-white xpay-opacity-60 xpay-cursor-pointer xpay-flex xpay-items-center xpay-w-[15px] xpay-h-[9px]",
1639
1640
  children: feesDetailsShown ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronDownIcon, {})
1640
1641
  }
1641
1642
  )
1642
1643
  ] })
1643
1644
  ] }),
1644
- feesDetailsShown && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1646
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1645
+ feesDetailsShown && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-w-full xpay-items-center xpay-justify-between xpay-gap-2", children: [
1646
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-text-[10px] xpay-gap-1", children: [
1647
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1647
1648
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "CCIP Fee:" }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1649
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "xpay-whitespace-nowrap", children: ` ${weiToHumanReadable({
1649
1650
  amount: route?.xSwapFees.ccipFee || "0",
1650
1651
  decimals: 18,
1651
1652
  precisionFractionalPlaces: 5
1652
1653
  })} ${paymentToken?.symbol}` })
1653
1654
  ] }),
1654
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1655
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1655
1656
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Native Fee:" }),
1656
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1657
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "xpay-whitespace-nowrap", children: ` ${weiToHumanReadable({
1657
1658
  amount: route?.xSwapFees.xSwapFee.nativeFee || "0",
1658
1659
  decimals: 18,
1659
1660
  precisionFractionalPlaces: 5
1660
1661
  })} ${paymentToken?.symbol}` })
1661
1662
  ] })
1662
1663
  ] }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1664
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1664
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-text-[10px] xpay-gap-1", children: [
1665
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1665
1666
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Slippage:" }),
1666
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: `${slippage}%` })
1667
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "xpay-whitespace-nowrap", children: `${slippage}%` })
1667
1668
  ] }),
1668
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1669
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-font-medium xpay-text-white xpay-opacity-60 xpay-gap-1", children: [
1669
1670
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Min amount out:" }),
1670
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "whitespace-nowrap", children: [
1671
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "xpay-whitespace-nowrap", children: [
1671
1672
  weiToHumanReadable({
1672
1673
  amount: route?.minAmountOut || "0",
1673
1674
  decimals: dstToken?.decimals || 18,
@@ -1708,7 +1709,7 @@ var UsdPrice = ({
1708
1709
  setUsdPrice(newUsdPrice);
1709
1710
  }
1710
1711
  }, [token, prices, amount]);
1711
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "opacity-60 py-4", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Skeleton, { width: "w-12", height: "h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: "$0.00" }) });
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "xpay-opacity-60 xpay-py-4", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Skeleton, { width: "xpay-w-12", height: "xpay-h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: "$0.00" }) });
1712
1713
  };
1713
1714
 
1714
1715
  // src/components/UnknownTokenLogo/UnknownTokenLogo.tsx
@@ -1717,7 +1718,7 @@ var UnknownTokenLogo = ({ tokenName, className }) => {
1717
1718
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1718
1719
  "div",
1719
1720
  {
1720
- className: `w-5 h-5 rounded-full bg-white shadow-sm flex items-center justify-center text-black ${className}`,
1721
+ 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}`,
1721
1722
  children: tokenName.substring(0, 1)
1722
1723
  }
1723
1724
  );
@@ -1747,41 +1748,38 @@ var Summary = ({
1747
1748
  );
1748
1749
  }
1749
1750
  }, [dstChain]);
1750
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 relative", children: [
1751
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-between", children: [
1752
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col gap-1", children: [
1753
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
1751
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
1752
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-justify-between", children: [
1753
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-gap-1", children: [
1754
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-sm", children: "You receive" }),
1754
1755
  isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1755
1756
  Skeleton,
1756
1757
  {
1757
- width: "w-[100px]",
1758
- height: "h-[36px]",
1759
- other: "sm:w-[190px]"
1758
+ width: "xpay-w-[100px]",
1759
+ height: "xpay-h-[36px]",
1760
+ other: "sm:xpay-w-[190px]"
1760
1761
  }
1761
- ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: amountReadable })
1762
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "xpay-flex xpay-gap-2 xpay-items-center xpay-text-white xpay-text-xl sm:xpay-text-3xl", children: amountReadable })
1762
1763
  ] }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col items-end gap-1 text-sm", children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-center items-center gap-1", children: [
1765
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-5 h-5", children: dstToken?.image ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1764
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-items-end xpay-gap-1 xpay-text-sm", children: [
1765
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-1", children: [
1766
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "xpay-w-5 xpay-h-5", children: dstToken?.image ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1766
1767
  "img",
1767
1768
  {
1768
- className: "w-5 h-5",
1769
+ className: "xpay-w-5 xpay-h-5",
1769
1770
  src: dstToken?.image,
1770
1771
  alt: dstToken?.name
1771
1772
  }
1772
- ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1773
- UnknownTokenLogo,
1774
- {
1775
- tokenName: "?",
1776
- className: "token-select__generated-logo"
1777
- }
1778
- ) }),
1779
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-base sm:text-xl", children: dstToken?.name })
1773
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(UnknownTokenLogo, { tokenName: "?" }) }),
1774
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "xpay-text-base sm:xpay-text-xl", children: dstToken?.name })
1780
1775
  ] }),
1781
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-center items-center gap-1", children: [
1782
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on " }),
1783
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1 text-white", children: [
1784
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-4 h-4", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1776
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-justify-center xpay-items-center xpay-gap-1", children: [
1777
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "xpay-text-[rgba(255,255,255,0.6)] xpay-text-right", children: [
1778
+ "on",
1779
+ " "
1780
+ ] }),
1781
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "xpay-flex xpay-items-center xpay-gap-1 xpay-text-white", children: [
1782
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "xpay-w-4 xpay-h-4", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1785
1783
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: dstChain?.displayName })
1786
1784
  ] })
1787
1785
  ] })
@@ -1797,7 +1795,7 @@ var Summary = ({
1797
1795
  type: "dst"
1798
1796
  }
1799
1797
  ),
1800
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsx)(ArrowDownIcon, {}) }) })
1798
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsx)(ArrowDownIcon, {}) }) })
1801
1799
  ] });
1802
1800
  };
1803
1801
 
@@ -1817,7 +1815,6 @@ var TokenPicker = ({
1817
1815
  balances
1818
1816
  }) => {
1819
1817
  const [searchValue, setSearchValue] = (0, import_react8.useState)("");
1820
- const modalRoot = document.querySelector("#xswap-modal");
1821
1818
  const onBackdropClick = (e) => {
1822
1819
  e.stopPropagation();
1823
1820
  e.nativeEvent.stopImmediatePropagation();
@@ -1833,86 +1830,87 @@ var TokenPicker = ({
1833
1830
  (a, b) => a.priority < b.priority ? 1 : balances && balances[a.address] && balances[b.address] && balances[a.address]?.lte(balances[b.address] || "0") ? 1 : -1
1834
1831
  );
1835
1832
  }, [searchValue, tokens]);
1836
- return modalRoot ? (0, import_react_dom.createPortal)(
1833
+ const xpayRoot2 = document.querySelector("#xpay-root");
1834
+ return xpayRoot2 ? (0, import_react_dom.createPortal)(
1837
1835
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1838
1836
  "div",
1839
1837
  {
1840
1838
  onClick: onBackdropClick,
1841
- 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",
1842
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
1839
+ 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",
1840
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
1843
1841
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1844
1842
  "div",
1845
1843
  {
1846
1844
  onClick: onCloseClick,
1847
- className: "absolute top-4 right-4 cursor-pointer",
1845
+ className: "xpay-absolute xpay-top-4 xpay-right-4 xpay-cursor-pointer",
1848
1846
  children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CloseIcon, {})
1849
1847
  }
1850
1848
  ),
1851
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-base mb-4", children: "Pick a token" }),
1852
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
1853
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SearchIcon, {}) }),
1849
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "xpay-text-base xpay-mb-4", children: "Pick a token" }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
1851
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-w-6 xpay-h-6", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SearchIcon, {}) }),
1854
1852
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1855
1853
  "input",
1856
1854
  {
1857
1855
  placeholder: "Search name or paste address",
1858
1856
  value: searchValue,
1859
1857
  onChange: (e) => setSearchValue(e.target.value),
1860
- className: "relative h-[41px] leading-[41px] font-normal z-[1] w-full text-white bg-transparent border-none outline-none placeholder:text-sm"
1858
+ 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"
1861
1859
  }
1862
1860
  )
1863
1861
  ] }),
1864
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "my-4 mx-0 flex flex-wrap gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1862
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsxs)(
1865
1863
  "div",
1866
1864
  {
1867
- 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)]" : ""}`,
1865
+ 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)]" : ""}`,
1868
1866
  onClick: () => {
1869
1867
  setSelectedToken(token);
1870
1868
  onCloseClick();
1871
1869
  },
1872
1870
  children: [
1873
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { src: token.image, alt: token.name, className: "w-5" }),
1874
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm", children: token.symbol })
1871
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1872
+ "img",
1873
+ {
1874
+ src: token.image,
1875
+ alt: token.name,
1876
+ className: "xpay-w-5"
1877
+ }
1878
+ ),
1879
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-text-sm", children: token.symbol })
1875
1880
  ]
1876
1881
  },
1877
1882
  token.address
1878
1883
  )) }),
1879
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "h-[2px] my-0 mx-[-24px] w-[100%+48px] px-12 bg-[rgba(255,255,255,0.1)]" }),
1880
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsxs)(
1884
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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)]" }),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsxs)(
1881
1886
  "div",
1882
1887
  {
1883
- 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)]" : ""}`,
1888
+ 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)]" : ""}`,
1884
1889
  onClick: () => {
1885
1890
  setSelectedToken(token);
1886
1891
  onCloseClick();
1887
1892
  },
1888
1893
  children: [
1889
- token.image ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1890
- "img",
1891
- {
1892
- src: token.image,
1893
- alt: token.name,
1894
- className: "token-picker__all__logo"
1895
- }
1896
- ) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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) }),
1897
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
1898
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col leading-[16px]", children: [
1899
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
1900
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-[#888] text-[11px]", children: token.symbol })
1894
+ token.image ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { src: token.image, alt: token.name }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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) }),
1895
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-items-center xpay-gap-1 xpay-overflow-hidden xpay-grow", children: [
1896
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-leading-[16px]", children: [
1897
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-overflow-hidden xpay-whitespace-nowrap xpay-text-ellipsis xpay-text-[15px]", children: token.name }),
1898
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-text-[#888] xpay-text-[11px]", children: token.symbol })
1901
1899
  ] }),
1902
- signer && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-xs", children: weiToHumanReadable({
1900
+ signer && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-text-xs", children: weiToHumanReadable({
1903
1901
  amount: balances[token.address]?.toString() || "0",
1904
1902
  decimals: token.decimals,
1905
1903
  precisionFractionalPlaces: 4
1906
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Skeleton, { width: "w-12", height: "h-3" }) })
1904
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Skeleton, { width: "xpay-w-12", height: "xpay-h-3" }) })
1907
1905
  ] })
1908
1906
  ]
1909
1907
  },
1910
1908
  `${index}_${token.address}`
1911
- )) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mt-4 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm text-white", children: "No tokens found." }) }) })
1909
+ )) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "xpay-mt-4 xpay-flex xpay-justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "xpay-text-sm xpay-text-white", children: "No tokens found." }) }) })
1912
1910
  ] })
1913
1911
  }
1914
1912
  ),
1915
- modalRoot
1913
+ xpayRoot2
1916
1914
  ) : null;
1917
1915
  };
1918
1916
 
@@ -1929,7 +1927,7 @@ var ChainListElement = ({
1929
1927
  /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1930
1928
  "li",
1931
1929
  {
1932
- className: "bg-transparent border-none flex gap-1 items-center cursor-pointer py-2 w-full",
1930
+ className: "xpay-bg-transparent xpay-border-none xpay-flex xpay-gap-1 xpay-items-center xpay-cursor-pointer xpay-py-2 xpay-w-full",
1933
1931
  onClick: () => {
1934
1932
  setSrcChain(chain);
1935
1933
  setChainListShown(false);
@@ -1940,7 +1938,7 @@ var ChainListElement = ({
1940
1938
  ]
1941
1939
  }
1942
1940
  ),
1943
- index !== length - 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "h-px mx-2 bg-[rgba(255,255,255,0.15)]" })
1941
+ index !== length - 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "xpay-h-px xpay-mx-2 xpay-bg-[rgba(255,255,255,0.15)]" })
1944
1942
  ] }, `${chain.ecosystem}-${chain.chainId}`);
1945
1943
  };
1946
1944
 
@@ -1975,7 +1973,7 @@ var BalanceComponent = ({ srcToken, balances }) => {
1975
1973
  decimals: srcToken.decimals,
1976
1974
  precisionFractionalPlaces: 4
1977
1975
  }) : 0,
1978
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "bg-gradient-to-r from-x_blue_light to-x_blue_dark bg-clip-text text-transparent", children: "Max" })
1976
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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" })
1979
1977
  ] });
1980
1978
  };
1981
1979
 
@@ -2026,14 +2024,14 @@ var SwapPanel = ({
2026
2024
  () => supportedChains.filter((chain) => chain.chainId !== srcChain?.chainId),
2027
2025
  [supportedChains, srcChain]
2028
2026
  );
2029
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
2030
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
2031
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-1", children: [
2032
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
2027
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "xpay-flex xpay-justify-between xpay-global-border xpay-rounded-lg xpay-bg-[rgba(15,15,15,1)] xpay-p-4", children: [
2028
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-justify-between xpay-gap-2 xpay-overflow-hidden xpay-w-1/2", children: [
2029
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-gap-1", children: [
2030
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "xpay-text-white xpay-opacity-60 xpay-text-xs sm:xpay-text-sm xpay-font-medium", children: "You pay" }),
2033
2031
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2034
2032
  "input",
2035
2033
  {
2036
- className: "p-0 border-none outline-none bg-transparent text-2xl overflow-ellipsis",
2034
+ className: "xpay-p-0 xpay-border-none xpay-outline-none xpay-bg-transparent xpay-text-2xl xpay-overflow-ellipsis",
2037
2035
  value: amount,
2038
2036
  onChange: (e) => {
2039
2037
  if (e.target.value === ".") return;
@@ -2049,7 +2047,7 @@ var SwapPanel = ({
2049
2047
  }
2050
2048
  )
2051
2049
  ] }),
2052
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex items-center text-sm text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2050
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "xpay-flex xpay-items-center xpay-text-sm xpay-text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2053
2051
  UsdPrice,
2054
2052
  {
2055
2053
  prices,
@@ -2061,11 +2059,11 @@ var SwapPanel = ({
2061
2059
  }
2062
2060
  ) })
2063
2061
  ] }),
2064
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col relative items-end gap-2.5 w-1/2 text-xs", children: [
2062
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-relative xpay-items-end xpay-gap-2.5 xpay-w-1/2 xpay-text-xs", children: [
2065
2063
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2066
2064
  "div",
2067
2065
  {
2068
- className: "flex gap-2 items-center p-2 max-w-full cursor-pointer bg-black text-white globalBorder rounded-3xl whitespace-nowrap",
2066
+ 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",
2069
2067
  onClick: () => {
2070
2068
  setTokenListShown((state) => !state);
2071
2069
  },
@@ -2099,7 +2097,7 @@ var SwapPanel = ({
2099
2097
  "div",
2100
2098
  {
2101
2099
  onClick: handleMaxClick,
2102
- className: "flex gap-1 items-center font-medium text-white opacity-60 py-0.5 cursor-pointer",
2100
+ 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",
2103
2101
  children: signer && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(BalanceComponent, { balances, srcToken })
2104
2102
  }
2105
2103
  ),
@@ -2107,7 +2105,7 @@ var SwapPanel = ({
2107
2105
  "div",
2108
2106
  {
2109
2107
  ref: buttonRef,
2110
- className: "bg-black globalBorder rounded-2xl whitespace-nowrap flex items-center p-2 cursor-pointer gap-2",
2108
+ 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",
2111
2109
  onClick: () => setChainListShown((prev) => !prev),
2112
2110
  children: [
2113
2111
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
@@ -2128,7 +2126,7 @@ var SwapPanel = ({
2128
2126
  "ul",
2129
2127
  {
2130
2128
  ref: listRef,
2131
- 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",
2129
+ 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",
2132
2130
  children: chainListOptions.map((chain, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2133
2131
  ChainListElement,
2134
2132
  {
@@ -2151,7 +2149,7 @@ var ErrorField = ({ error }) => {
2151
2149
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2152
2150
  "div",
2153
2151
  {
2154
- 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"}`,
2152
+ 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"}`,
2155
2153
  children: error
2156
2154
  }
2157
2155
  );
@@ -2160,7 +2158,7 @@ var ErrorField = ({ error }) => {
2160
2158
  // src/components/TxConfigForm/Description.tsx
2161
2159
  var import_jsx_runtime40 = require("react/jsx-runtime");
2162
2160
  var Description = ({ description }) => {
2163
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-col items-start rounded-lg px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "w-full flex gap-4 items-start justify-between text-xl", children: description }) });
2161
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "xpay-flex xpay-flex-col xpay-items-start xpay-rounded-lg xpay-px-4 xpay-py-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "xpay-w-full xpay-flex xpay-gap-4 xpay-items-start xpay-justify-between xpay-text-xl", children: description }) });
2164
2162
  };
2165
2163
 
2166
2164
  // src/components/TxConfigForm/Button.tsx
@@ -2169,7 +2167,7 @@ var Button = ({ children, onClick, type, disabled }) => {
2169
2167
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2170
2168
  "button",
2171
2169
  {
2172
- 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",
2170
+ 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",
2173
2171
  onClick,
2174
2172
  type,
2175
2173
  disabled,
@@ -2326,7 +2324,7 @@ var Form = ({
2326
2324
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2327
2325
  "form",
2328
2326
  {
2329
- 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",
2327
+ 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",
2330
2328
  onSubmit: handleSubmit,
2331
2329
  children: [
2332
2330
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
@@ -2349,7 +2347,7 @@ var Form = ({
2349
2347
  setSlippage
2350
2348
  }
2351
2349
  ),
2352
- historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(History, { signer, supportedChains }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col gap-2", children: [
2350
+ historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(History, { signer, supportedChains }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "xpay-flex xpay-flex-col xpay-gap-2", children: [
2353
2351
  desc && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Description, { description: desc }),
2354
2352
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2355
2353
  SwapPanel,
@@ -2432,9 +2430,9 @@ var TxConfigForm = ({
2432
2430
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_query.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2433
2431
  "div",
2434
2432
  {
2435
- className: "top-0 left-0 right-0 bottom-0 bg-[rgba(0,0,0,0.8)] fixed flex items-center justify-center z-10",
2433
+ 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",
2436
2434
  onClick: onBackdropClick,
2437
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative bg-black rounded-3xl overflow-auto text-white border-2 border-solid border-[rgba(255,255,255,0.1)]", children: [
2435
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("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: [
2438
2436
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2439
2437
  Form,
2440
2438
  {
@@ -2464,7 +2462,7 @@ var openTxConfigForm = async ({
2464
2462
  try {
2465
2463
  return await new Promise(async (resolve) => {
2466
2464
  await waitForInitialization();
2467
- xswapRoot.render(
2465
+ xpayRoot.render(
2468
2466
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2469
2467
  TxConfigForm,
2470
2468
  {
@@ -2476,10 +2474,10 @@ var openTxConfigForm = async ({
2476
2474
  supportedChains,
2477
2475
  onSubmit: (route) => {
2478
2476
  resolve(route);
2479
- xswapRoot.render("");
2477
+ xpayRoot.render("");
2480
2478
  },
2481
2479
  onClose: () => {
2482
- xswapRoot.render("");
2480
+ xpayRoot.render("");
2483
2481
  }
2484
2482
  }
2485
2483
  )
@@ -2507,82 +2505,90 @@ var TxStatusButton = ({ transaction }) => {
2507
2505
  } = transaction;
2508
2506
  const [isWide, setIsWide] = (0, import_react13.useState)(false);
2509
2507
  const background = (0, import_react13.useMemo)(
2510
- () => 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)]",
2508
+ () => 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)]",
2511
2509
  [isDone]
2512
2510
  );
2513
2511
  const border = (0, import_react13.useMemo)(
2514
- () => isDone ? "border border-solid border-x_green_dark" : "border border-solid border-x_blue_dark",
2512
+ () => isDone ? "xpay-border xpay-border-solid xpay-border-x_green_dark" : "xpay-border xpay-border-solid xpay-border-x_blue_dark",
2515
2513
  [isDone]
2516
2514
  );
2517
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex gap-2", onClick: () => setIsWide((x) => !x), children: [
2518
- isWide && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2519
- "div",
2520
- {
2521
- className: `flex items-center min-w-60 sm:w-[520px] text-white h-14 px-4 text-sm gap-3 rounded-xl ${background} ${border}`,
2522
- children: [
2523
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
2524
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center gap-2", children: [
2515
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2516
+ "div",
2517
+ {
2518
+ className: "xpay-flex xpay-gap-2",
2519
+ onClick: () => setIsWide((x) => !x),
2520
+ children: [
2521
+ isWide && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
2522
+ "div",
2523
+ {
2524
+ 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}`,
2525
+ children: [
2526
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("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: [
2527
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "xpay-flex xpay-items-center xpay-gap-2", children: [
2528
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2529
+ "img",
2530
+ {
2531
+ className: "xpay-w-5 xpay-h-5",
2532
+ src: fromChainImage,
2533
+ alt: "source chain"
2534
+ }
2535
+ ),
2536
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromChain }),
2537
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowRightIcon, {}) }),
2538
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2539
+ "img",
2540
+ {
2541
+ className: "xpay-w-5 xpay-h-5",
2542
+ src: toChainImage,
2543
+ alt: "to chain"
2544
+ }
2545
+ ),
2546
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: toChain })
2547
+ ] }),
2548
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "xpay-flex xpay-items-center xpay-gap-2", children: [
2549
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: "Sent" }),
2550
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromAmount }),
2551
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromToken }),
2552
+ fromTokenImage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2553
+ "img",
2554
+ {
2555
+ className: "xpay-w-5 xpay-h-5",
2556
+ src: fromTokenImage,
2557
+ alt: "source token"
2558
+ }
2559
+ ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UnknownTokenLogo, { tokenName: "?" })
2560
+ ] })
2561
+ ] }),
2525
2562
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2526
- "img",
2527
- {
2528
- className: "w-5 h-5",
2529
- src: fromChainImage,
2530
- alt: "source chain"
2531
- }
2532
- ),
2533
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromChain }),
2534
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowRightIcon, {}) }),
2535
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
2536
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: toChain })
2537
- ] }),
2538
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center gap-2", children: [
2539
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: "Sent" }),
2540
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromAmount }),
2541
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: fromToken }),
2542
- fromTokenImage ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2543
- "img",
2544
- {
2545
- className: "w-5 h-5",
2546
- src: fromTokenImage,
2547
- alt: "source token"
2548
- }
2549
- ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2550
- UnknownTokenLogo,
2563
+ "a",
2551
2564
  {
2552
- tokenName: "?",
2553
- className: "token-select__generated-logo"
2565
+ href: explorer,
2566
+ target: "_blank",
2567
+ rel: "noreferrer",
2568
+ className: "xpay-no-underline xpay-cursor-pointer",
2569
+ "aria-label": "Show the transaction in the chain explorer",
2570
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "xpay-w-3.5 xpay-h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowUpRightIcon, {}) })
2554
2571
  }
2555
2572
  )
2573
+ ]
2574
+ }
2575
+ ),
2576
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2577
+ "div",
2578
+ {
2579
+ className: `xpay-text-white xpay-rounded-xl xpay-cursor-pointer ${background} ${border}`,
2580
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "xpay-flex xpay-gap-2 xpay-items-center xpay-h-14 xpay-w-20 xpay-justify-center", children: [
2581
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowLeftIcon, {}),
2582
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "xpay-relative xpay-flex xpay-items-center xpay-justify-center xpay-w-9 xpay-h-9", children: isDone ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "xpay-text-x_green xpay-w-5 xpay-h-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CheckIcon, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2583
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "xpay-w-5 xpay-h-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(XSwapLogo, {}) }),
2584
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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__ */ (0, import_jsx_runtime44.jsx)(CircularProgressIcon, {}) })
2585
+ ] }) })
2556
2586
  ] })
2557
- ] }),
2558
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2559
- "a",
2560
- {
2561
- href: explorer,
2562
- target: "_blank",
2563
- rel: "noreferrer",
2564
- className: "no-underline cursor-pointer",
2565
- "aria-label": "Show the transaction in the chain explorer",
2566
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowUpRightIcon, {}) })
2567
- }
2568
- )
2569
- ]
2570
- }
2571
- ),
2572
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2573
- "div",
2574
- {
2575
- className: `text-white rounded-xl cursor-pointer ${background} ${border}`,
2576
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
2577
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ArrowLeftIcon, {}),
2578
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "relative flex items-center justify-center w-9 h-9", children: isDone ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "text-x_green w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CheckIcon, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
2579
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(XSwapLogo, {}) }),
2580
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CircularProgressIcon, {}) })
2581
- ] }) })
2582
- ] })
2583
- }
2584
- )
2585
- ] });
2587
+ }
2588
+ )
2589
+ ]
2590
+ }
2591
+ );
2586
2592
  };
2587
2593
  var renderedTransactions = [];
2588
2594
  var addTransactionToRenderedTransactions = (transaction) => {
@@ -2605,13 +2611,18 @@ var updateTransactionDoneInRenderedTransactions = (txHash) => {
2605
2611
  };
2606
2612
  var renderTxStatusButtons = () => {
2607
2613
  const buttons = renderedTransactions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TxStatusButton, { transaction: item }, item.txHash));
2608
- txStatusRoot.render(buttons);
2614
+ xpayTxStatusRoot.render(buttons);
2609
2615
  };
2610
2616
 
2611
2617
  // src/components/Skeleton/index.tsx
2612
2618
  var import_jsx_runtime45 = require("react/jsx-runtime");
2613
2619
  var Skeleton = ({ width, height }) => {
2614
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `bg-current rounded animate-pulse ${width} ${height}` });
2620
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2621
+ "div",
2622
+ {
2623
+ className: `xpay-bg-current xpay-rounded xpay-animate-pulse ${width} ${height}`
2624
+ }
2625
+ );
2615
2626
  };
2616
2627
 
2617
2628
  // src/services/integrations/monitoring.ts