@xswap-link/sdk 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ __export(src_exports, {
40
40
  });
41
41
  module.exports = __toCommonJS(src_exports);
42
42
 
43
- // src/config/init.ts
43
+ // src/config/init.tsx
44
44
  var import_client = require("react-dom/client");
45
45
 
46
46
  // xswap.config.ts
@@ -58,35 +58,92 @@ var xswap_config_default = {
58
58
  };
59
59
 
60
60
  // package.json
61
- var version = "0.2.3";
61
+ var version = "0.2.4";
62
62
 
63
- // src/config/init.ts
63
+ // src/components/WaitingForInit/index.tsx
64
+ var import_jsx_runtime = require("react/jsx-runtime");
65
+ var WaitingForInit = () => {
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ "div",
68
+ {
69
+ style: {
70
+ zIndex: 10,
71
+ top: 0,
72
+ right: 0,
73
+ bottom: 0,
74
+ left: 0,
75
+ backgroundColor: "rgba(0,0,0,0.8)",
76
+ position: "fixed",
77
+ display: "flex",
78
+ alignItems: "center",
79
+ justifyContent: "center"
80
+ },
81
+ children: "Waiting for XPay initialization ..."
82
+ }
83
+ );
84
+ };
85
+
86
+ // src/config/init.tsx
87
+ var import_jsx_runtime2 = require("react/jsx-runtime");
88
+ var initIndicatorRoot;
64
89
  var xswapRoot;
65
90
  var txStatusRoot;
91
+ var initCompleted = false;
66
92
  var initDocument = () => {
67
93
  if (typeof document === "undefined") {
68
94
  throw new Error("Can't render XPay components from server side.");
69
95
  }
70
- const cssRequestParams = new URLSearchParams({
71
- data: JSON.stringify({ version })
96
+ createInitIndicatorRoot();
97
+ Promise.all([
98
+ createStyleElement(),
99
+ createXswapRoot(),
100
+ createTxStatusRoot()
101
+ ]).then(() => {
102
+ initCompleted = true;
72
103
  });
73
- fetch(`${xswap_config_default.apiUrl}/sdk/css?${cssRequestParams}`).then(
74
- async (css) => {
75
- const style = document.createElement("style");
76
- style.textContent = await css.text();
77
- document.body.appendChild(style);
104
+ };
105
+ var waitForInitialization = async () => {
106
+ if (!initCompleted) {
107
+ displayInitIndicator(true);
108
+ while (!initCompleted) {
109
+ await new Promise((resolve) => setTimeout(resolve, 10));
78
110
  }
111
+ displayInitIndicator(false);
112
+ }
113
+ };
114
+ var createStyleElement = async () => {
115
+ const css = await fetch(
116
+ `${xswap_config_default.apiUrl}/sdk/css?${new URLSearchParams({
117
+ data: JSON.stringify({ version })
118
+ })}`
79
119
  );
120
+ const text = await css.text();
121
+ const style = document.createElement("style");
122
+ style.textContent = text;
123
+ document.body.appendChild(style);
124
+ };
125
+ var createXswapRoot = async () => {
80
126
  const xswapElement = document.createElement("div");
81
127
  xswapElement.setAttribute("id", "xswap-modal");
82
128
  document.body.appendChild(xswapElement);
83
129
  xswapRoot = (0, import_client.createRoot)(xswapElement);
130
+ };
131
+ var createTxStatusRoot = async () => {
84
132
  const txStatusElement = document.createElement("div");
85
133
  txStatusElement.setAttribute("id", "xswap-tx-status");
86
134
  txStatusElement.setAttribute("class", "xswap-tx-status");
87
135
  document.body.appendChild(txStatusElement);
88
136
  txStatusRoot = (0, import_client.createRoot)(txStatusElement);
89
137
  };
138
+ var createInitIndicatorRoot = () => {
139
+ const initIndicatorElement = document.createElement("div");
140
+ initIndicatorElement.setAttribute("id", "xswap-init-indicator");
141
+ document.body.appendChild(initIndicatorElement);
142
+ initIndicatorRoot = (0, import_client.createRoot)(initIndicatorElement);
143
+ };
144
+ var displayInitIndicator = (display) => {
145
+ display ? initIndicatorRoot.render(/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WaitingForInit, {})) : initIndicatorRoot.render("");
146
+ };
90
147
 
91
148
  // src/models/Addresses.ts
92
149
  var ContractName = /* @__PURE__ */ ((ContractName2) => {
@@ -174,31 +231,7 @@ async function getPrices(payload) {
174
231
  var import_ethers3 = require("ethers");
175
232
 
176
233
  // src/utils/contracts.ts
177
- var import_ethers2 = require("ethers");
178
-
179
- // src/utils/numbers.ts
180
- var import_bignumber = require("bignumber.js");
181
234
  var import_ethers = require("ethers");
182
- var safeBigNumberFrom = (value) => {
183
- import_bignumber.BigNumber.config({ DECIMAL_PLACES: 0 });
184
- return import_ethers.BigNumber.from(new import_bignumber.BigNumber(value).div(1).toFixed());
185
- };
186
- var weiToHumanReadable = ({
187
- amount,
188
- decimals,
189
- precisionFractionalPlaces,
190
- prettifySmallNumber = false
191
- }) => {
192
- const decimalsFactor = Math.pow(10, decimals);
193
- import_bignumber.BigNumber.config({ DECIMAL_PLACES: precisionFractionalPlaces });
194
- const res = new import_bignumber.BigNumber(amount).div(decimalsFactor).toFixed();
195
- if (prettifySmallNumber && res === "0" && amount !== "0") {
196
- return `<${(1 / 10 ** precisionFractionalPlaces).toFixed(
197
- precisionFractionalPlaces
198
- )}`;
199
- }
200
- return res;
201
- };
202
235
 
203
236
  // src/contracts/abi/BatchQuery.json
204
237
  var BatchQuery_default = [
@@ -528,6 +561,7 @@ var NUMBER_INPUT_REGEX = /^[0-9]*[.,]?[0-9]*$/;
528
561
  var SLIPPAGE_PRESETS = [0.5, 1.5, 3];
529
562
  var DELIVERY_TIME = 30 * 1e3 * 60;
530
563
  var EXPRESS_DELIVERY_TIME = 30 * 1e3;
564
+ var EXPRESS_DELIVERY_LIMIT = 1e3;
531
565
  var BALANCES_CHUNK_SIZE = 500;
532
566
  var ROUTE_TIMEOUT_MS = 5e3;
533
567
  var MINIMUM_DISPLAYED_TOKEN_AMOUNT = 1e-4;
@@ -544,7 +578,7 @@ var MSG_RECEIVED_EVENT_ABI = [
544
578
  ];
545
579
 
546
580
  // src/utils/contracts.ts
547
- var IERC20 = new import_ethers2.ethers.utils.Interface(ERC20Abi);
581
+ var IERC20 = new import_ethers.ethers.utils.Interface(ERC20Abi);
548
582
  var getBalances = async (chain, wallet) => {
549
583
  return {
550
584
  ...await getNativeBalance(chain, wallet),
@@ -553,10 +587,10 @@ var getBalances = async (chain, wallet) => {
553
587
  };
554
588
  var getNativeBalance = async (chain, wallet) => {
555
589
  const native = chain.tokens.find(
556
- ({ address }) => address === import_ethers2.ethers.constants.AddressZero
590
+ ({ address }) => address === import_ethers.ethers.constants.AddressZero
557
591
  );
558
592
  if (native) {
559
- const provider = import_ethers2.ethers.getDefaultProvider(chain.publicRpcUrls[0]);
593
+ const provider = import_ethers.ethers.getDefaultProvider(chain.publicRpcUrls[0]);
560
594
  const balance = await provider.getBalance(wallet);
561
595
  return {
562
596
  [native.address]: balance
@@ -566,7 +600,7 @@ var getNativeBalance = async (chain, wallet) => {
566
600
  };
567
601
  var getErc20Balances = async (chain, wallet) => {
568
602
  const erc20Tokens = chain.tokens.filter(
569
- ({ address }) => address !== import_ethers2.ethers.constants.AddressZero
603
+ ({ address }) => address !== import_ethers.ethers.constants.AddressZero
570
604
  );
571
605
  const tokenChunks = chunkArray(erc20Tokens, BALANCES_CHUNK_SIZE);
572
606
  const promises = tokenChunks.map(async (tokenChunk) => {
@@ -577,17 +611,17 @@ var getErc20Balances = async (chain, wallet) => {
577
611
  const contractAddress = ADDRESSES[chain.chainId]?.BatchQuery;
578
612
  const rpcUrl = chain.publicRpcUrls[0];
579
613
  if (contractAddress && rpcUrl) {
580
- const contract = new import_ethers2.ethers.Contract(
614
+ const contract = new import_ethers.ethers.Contract(
581
615
  contractAddress,
582
616
  BatchQueryAbi,
583
- import_ethers2.ethers.getDefaultProvider(rpcUrl)
617
+ import_ethers.ethers.getDefaultProvider(rpcUrl)
584
618
  );
585
619
  return await contract["batchQuery"](tokenAddresses, calldatas);
586
620
  }
587
621
  return Promise.resolve();
588
622
  });
589
623
  const tokenBalances = (await Promise.all(promises)).flat().map(
590
- (encodedBalance) => import_ethers2.ethers.utils.defaultAbiCoder.decode(["uint256"], encodedBalance)[0]
624
+ (encodedBalance) => import_ethers.ethers.utils.defaultAbiCoder.decode(["uint256"], encodedBalance)[0]
591
625
  );
592
626
  const balances = {};
593
627
  erc20Tokens.forEach((token, index) => {
@@ -596,6 +630,30 @@ var getErc20Balances = async (chain, wallet) => {
596
630
  return balances;
597
631
  };
598
632
 
633
+ // src/utils/numbers.ts
634
+ var import_bignumber = require("bignumber.js");
635
+ var import_ethers2 = require("ethers");
636
+ var safeBigNumberFrom = (value) => {
637
+ import_bignumber.BigNumber.config({ DECIMAL_PLACES: 0 });
638
+ return import_ethers2.BigNumber.from(new import_bignumber.BigNumber(value).div(1).toFixed());
639
+ };
640
+ var weiToHumanReadable = ({
641
+ amount,
642
+ decimals,
643
+ precisionFractionalPlaces,
644
+ prettifySmallNumber = false
645
+ }) => {
646
+ const decimalsFactor = Math.pow(10, decimals);
647
+ import_bignumber.BigNumber.config({ DECIMAL_PLACES: precisionFractionalPlaces });
648
+ const res = new import_bignumber.BigNumber(amount).div(decimalsFactor).toFixed();
649
+ if (prettifySmallNumber && res === "0" && amount !== "0") {
650
+ return `<${(1 / 10 ** precisionFractionalPlaces).toFixed(
651
+ precisionFractionalPlaces
652
+ )}`;
653
+ }
654
+ return res;
655
+ };
656
+
599
657
  // src/utils/strings.ts
600
658
  var shortAddress = (address) => {
601
659
  return `${address?.substring(0, 5)}...${address?.substring(
@@ -634,9 +692,9 @@ var getDate = (blockTimestamp) => {
634
692
  var import_ethers5 = require("ethers");
635
693
 
636
694
  // src/components/Alert/index.tsx
637
- var import_jsx_runtime = require("react/jsx-runtime");
695
+ var import_jsx_runtime3 = require("react/jsx-runtime");
638
696
  var Alert = ({ desc }) => {
639
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "border border-solid border-x_alert rounded-3xl text-x_alert_light text-xs py-0.5 px-2", children: [
697
+ 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: [
640
698
  "\u26A0\uFE0F ",
641
699
  desc
642
700
  ] });
@@ -683,45 +741,24 @@ var mapTransports = (chains) => {
683
741
  return transports;
684
742
  };
685
743
 
686
- // src/components/icons/CloseIcon.tsx
687
- var import_jsx_runtime2 = require("react/jsx-runtime");
688
- var CloseIcon = () => {
689
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
690
- "svg",
691
- {
692
- height: "18",
693
- width: "18",
694
- xmlns: "http://www.w3.org/2000/svg",
695
- viewBox: "0 0 10.312 8.319",
696
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
697
- "path",
698
- {
699
- fill: "white",
700
- d: "M6.073 4.078 10.151 0H9.093A1.87 1.87 0 0 0 7.77.548L5.157 3.162 2.543.548A1.87 1.87 0 0 0 1.22 0H.161L4.24 4.078 0 8.318h1.058a1.87 1.87 0 0 0 1.322-.547l2.777-2.777 2.776 2.777a1.869 1.869 0 0 0 1.322.548h1.058Z"
701
- }
702
- )
703
- }
704
- );
705
- };
706
-
707
744
  // src/components/icons/ArrowRightIcon.tsx
708
- var import_jsx_runtime3 = require("react/jsx-runtime");
745
+ var import_jsx_runtime4 = require("react/jsx-runtime");
709
746
  var ArrowRightIcon = () => {
710
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
747
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
711
748
  "svg",
712
749
  {
713
750
  xmlns: "http://www.w3.org/2000/svg",
714
751
  viewBox: "0 0 448 512",
715
752
  fill: "currentColor",
716
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z" })
753
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z" })
717
754
  }
718
755
  );
719
756
  };
720
757
 
721
758
  // src/components/icons/ArrowDownIcon.tsx
722
- var import_jsx_runtime4 = require("react/jsx-runtime");
759
+ var import_jsx_runtime5 = require("react/jsx-runtime");
723
760
  var ArrowDownIcon = () => {
724
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
761
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
725
762
  "svg",
726
763
  {
727
764
  width: "20",
@@ -729,7 +766,7 @@ var ArrowDownIcon = () => {
729
766
  viewBox: "0 0 20 20",
730
767
  fill: "none",
731
768
  xmlns: "http://www.w3.org/2000/svg",
732
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
769
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
733
770
  "path",
734
771
  {
735
772
  d: "M12 2.45932L12 12.8957L15.8625 9.15023L18 11.1866L10.5 18.4593L3 11.1866L5.1375 9.15023L9 12.8957L9 2.45932L12 2.45932Z",
@@ -741,9 +778,9 @@ var ArrowDownIcon = () => {
741
778
  };
742
779
 
743
780
  // src/components/icons/ArrowLeftIcon.tsx
744
- var import_jsx_runtime5 = require("react/jsx-runtime");
781
+ var import_jsx_runtime6 = require("react/jsx-runtime");
745
782
  var ArrowLeftIcon = () => {
746
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
783
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
747
784
  "svg",
748
785
  {
749
786
  width: "10",
@@ -751,7 +788,7 @@ var ArrowLeftIcon = () => {
751
788
  viewBox: "0 0 10 16",
752
789
  fill: "none",
753
790
  xmlns: "http://www.w3.org/2000/svg",
754
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
791
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
755
792
  "path",
756
793
  {
757
794
  d: "M0.5 8L8.13251 15.5L9.5 14.1562L3.20318 8L9.4682 1.84375L8.10071 0.5L0.5 8Z",
@@ -763,44 +800,44 @@ var ArrowLeftIcon = () => {
763
800
  };
764
801
 
765
802
  // src/components/icons/ArrowUpRightIcon.tsx
766
- var import_jsx_runtime6 = require("react/jsx-runtime");
803
+ var import_jsx_runtime7 = require("react/jsx-runtime");
767
804
  var ArrowUpRightIcon = () => {
768
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
805
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
769
806
  "svg",
770
807
  {
771
808
  xmlns: "http://www.w3.org/2000/svg",
772
809
  viewBox: "0 0 512 512",
773
810
  fill: "currentColor",
774
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" })
811
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" })
775
812
  }
776
813
  );
777
814
  };
778
815
 
779
816
  // src/components/icons/CheckIcon.tsx
780
- var import_jsx_runtime7 = require("react/jsx-runtime");
817
+ var import_jsx_runtime8 = require("react/jsx-runtime");
781
818
  var CheckIcon = () => {
782
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
819
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
783
820
  "svg",
784
821
  {
785
822
  xmlns: "http://www.w3.org/2000/svg",
786
823
  viewBox: "0 0 448 512",
787
824
  fill: "currentColor",
788
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" })
825
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" })
789
826
  }
790
827
  );
791
828
  };
792
829
 
793
830
  // src/components/icons/ChevronDownIcon.tsx
794
- var import_jsx_runtime8 = require("react/jsx-runtime");
831
+ var import_jsx_runtime9 = require("react/jsx-runtime");
795
832
  var ChevronDownIcon = () => {
796
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
833
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
797
834
  "svg",
798
835
  {
799
836
  width: "12",
800
837
  height: "12",
801
838
  xmlns: "http://www.w3.org/2000/svg",
802
839
  viewBox: "0 0 512 512",
803
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
840
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
804
841
  "path",
805
842
  {
806
843
  fill: "currentColor",
@@ -812,9 +849,9 @@ var ChevronDownIcon = () => {
812
849
  };
813
850
 
814
851
  // src/components/icons/ChevronUpIcon.tsx
815
- var import_jsx_runtime9 = require("react/jsx-runtime");
852
+ var import_jsx_runtime10 = require("react/jsx-runtime");
816
853
  var ChevronUpIcon = () => {
817
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
854
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
818
855
  "path",
819
856
  {
820
857
  fill: "currentColor",
@@ -824,9 +861,9 @@ var ChevronUpIcon = () => {
824
861
  };
825
862
 
826
863
  // src/components/icons/CircularProgressIcon.tsx
827
- var import_jsx_runtime10 = require("react/jsx-runtime");
864
+ var import_jsx_runtime11 = require("react/jsx-runtime");
828
865
  var CircularProgressIcon = () => {
829
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
866
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
830
867
  "svg",
831
868
  {
832
869
  className: "animate-spin-slow text-white",
@@ -836,7 +873,7 @@ var CircularProgressIcon = () => {
836
873
  fill: "none",
837
874
  xmlns: "http://www.w3.org/2000/svg",
838
875
  children: [
839
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
876
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
840
877
  "circle",
841
878
  {
842
879
  cx: "16.5",
@@ -847,16 +884,37 @@ var CircularProgressIcon = () => {
847
884
  strokeWidth: "2"
848
885
  }
849
886
  ),
850
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "M1 16C1 7.71573 7.71573 1 16 1", stroke: "white", strokeWidth: "2" })
887
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M1 16C1 7.71573 7.71573 1 16 1", stroke: "white", strokeWidth: "2" })
851
888
  ]
852
889
  }
853
890
  );
854
891
  };
855
892
 
893
+ // src/components/icons/CloseIcon.tsx
894
+ var import_jsx_runtime12 = require("react/jsx-runtime");
895
+ var CloseIcon = () => {
896
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
897
+ "svg",
898
+ {
899
+ height: "18",
900
+ width: "18",
901
+ xmlns: "http://www.w3.org/2000/svg",
902
+ viewBox: "0 0 10.312 8.319",
903
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
904
+ "path",
905
+ {
906
+ fill: "white",
907
+ d: "M6.073 4.078 10.151 0H9.093A1.87 1.87 0 0 0 7.77.548L5.157 3.162 2.543.548A1.87 1.87 0 0 0 1.22 0H.161L4.24 4.078 0 8.318h1.058a1.87 1.87 0 0 0 1.322-.547l2.777-2.777 2.776 2.777a1.869 1.869 0 0 0 1.322.548h1.058Z"
908
+ }
909
+ )
910
+ }
911
+ );
912
+ };
913
+
856
914
  // src/components/icons/CoinsIcon.tsx
857
- var import_jsx_runtime11 = require("react/jsx-runtime");
915
+ var import_jsx_runtime13 = require("react/jsx-runtime");
858
916
  var CoinsIcon = () => {
859
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
917
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
860
918
  "svg",
861
919
  {
862
920
  width: "24",
@@ -864,7 +922,7 @@ var CoinsIcon = () => {
864
922
  viewBox: "0 0 24 24",
865
923
  fill: "none",
866
924
  xmlns: "http://www.w3.org/2000/svg",
867
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
925
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
868
926
  "path",
869
927
  {
870
928
  d: "M15 20C12.7667 20 10.875 19.225 9.325 17.675C7.775 16.125 7 14.2333 7 12C7 9.76667 7.775 7.875 9.325 6.325C10.875 4.775 12.7667 4 15 4C17.2333 4 19.125 4.775 20.675 6.325C22.225 7.875 23 9.76667 23 12C23 14.2333 22.225 16.125 20.675 17.675C19.125 19.225 17.2333 20 15 20ZM7 19.75C5.23333 19.2833 3.79167 18.3333 2.675 16.9C1.55833 15.4667 1 13.8333 1 12C1 10.1667 1.55833 8.53333 2.675 7.1C3.79167 5.66667 5.23333 4.71667 7 4.25V6.35C5.8 6.76667 4.83333 7.49167 4.1 8.525C3.36667 9.55833 3 10.7167 3 12C3 13.2833 3.36667 14.4417 4.1 15.475C4.83333 16.5083 5.8 17.2333 7 17.65V19.75ZM15 18C16.6667 18 18.0833 17.4167 19.25 16.25C20.4167 15.0833 21 13.6667 21 12C21 10.3333 20.4167 8.91667 19.25 7.75C18.0833 6.58333 16.6667 6 15 6C13.3333 6 11.9167 6.58333 10.75 7.75C9.58333 8.91667 9 10.3333 9 12C9 13.6667 9.58333 15.0833 10.75 16.25C11.9167 17.4167 13.3333 18 15 18Z",
@@ -877,9 +935,9 @@ var CoinsIcon = () => {
877
935
  };
878
936
 
879
937
  // src/components/icons/DownArrorIcon.tsx
880
- var import_jsx_runtime12 = require("react/jsx-runtime");
938
+ var import_jsx_runtime14 = require("react/jsx-runtime");
881
939
  var DownArrowIcon = () => {
882
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
940
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
883
941
  "svg",
884
942
  {
885
943
  width: 16,
@@ -887,7 +945,7 @@ var DownArrowIcon = () => {
887
945
  viewBox: "0 0 16 16",
888
946
  fill: "none",
889
947
  xmlns: "http://www.w3.org/2000/svg",
890
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
948
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
891
949
  "path",
892
950
  {
893
951
  d: "M8.00008 9.76921L5.06421 6.83334H10.9359L8.00008 9.76921Z",
@@ -900,9 +958,9 @@ var DownArrowIcon = () => {
900
958
  };
901
959
 
902
960
  // src/components/icons/HistoryIcon.tsx
903
- var import_jsx_runtime13 = require("react/jsx-runtime");
961
+ var import_jsx_runtime15 = require("react/jsx-runtime");
904
962
  var HistoryIcon = () => {
905
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
963
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
906
964
  "svg",
907
965
  {
908
966
  width: "20",
@@ -910,7 +968,7 @@ var HistoryIcon = () => {
910
968
  viewBox: "0 0 20 20",
911
969
  fill: "none",
912
970
  xmlns: "http://www.w3.org/2000/svg",
913
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
971
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
914
972
  "path",
915
973
  {
916
974
  d: "M9.98413 17.5C8.1633 17.5 6.57667 16.8646 5.22424 15.5938C3.8718 14.3229 3.09663 12.7361 2.89871 10.8333H4.52163C4.70635 12.2778 5.3166 13.4722 6.35236 14.4167C7.38812 15.3611 8.59871 15.8333 9.98413 15.8333C11.5279 15.8333 12.8374 15.2674 13.9128 14.1354C14.9881 13.0035 15.5258 11.625 15.5258 10C15.5258 8.375 14.9881 6.99653 13.9128 5.86458C12.8374 4.73264 11.5279 4.16667 9.98413 4.16667C9.07371 4.16667 8.22267 4.38889 7.43101 4.83333C6.63934 5.27778 5.97302 5.88889 5.43205 6.66667H7.60913V8.33333H2.85913V3.33333H4.44246V5.29167C5.11538 4.40278 5.93673 3.71528 6.90653 3.22917C7.87632 2.74306 8.90219 2.5 9.98413 2.5C10.9737 2.5 11.9006 2.69792 12.7649 3.09375C13.6291 3.48958 14.3812 4.02431 15.0211 4.69792C15.661 5.37153 16.169 6.16319 16.5451 7.07292C16.9211 7.98264 17.1091 8.95833 17.1091 10C17.1091 11.0417 16.9211 12.0174 16.5451 12.9271C16.169 13.8368 15.661 14.6285 15.0211 15.3021C14.3812 15.9757 13.6291 16.5104 12.7649 16.9062C11.9006 17.3021 10.9737 17.5 9.98413 17.5ZM12.2008 13.5L9.19246 10.3333V5.83333H10.7758V9.66667L13.3091 12.3333L12.2008 13.5Z",
@@ -922,12 +980,12 @@ var HistoryIcon = () => {
922
980
  };
923
981
 
924
982
  // src/components/icons/HourGlassIcon.tsx
925
- var import_jsx_runtime14 = require("react/jsx-runtime");
983
+ var import_jsx_runtime16 = require("react/jsx-runtime");
926
984
 
927
985
  // src/components/icons/SearchIcon.tsx
928
- var import_jsx_runtime15 = require("react/jsx-runtime");
986
+ var import_jsx_runtime17 = require("react/jsx-runtime");
929
987
  var SearchIcon = () => {
930
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
988
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
931
989
  "svg",
932
990
  {
933
991
  xmlns: "http://www.w3.org/2000/svg",
@@ -935,18 +993,18 @@ var SearchIcon = () => {
935
993
  width: "24",
936
994
  viewBox: "0 -960 960 960",
937
995
  fill: "#ffffffc0",
938
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" })
996
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" })
939
997
  }
940
998
  );
941
999
  };
942
1000
 
943
1001
  // src/components/icons/XMarkIcon.tsx
944
- var import_jsx_runtime16 = require("react/jsx-runtime");
1002
+ var import_jsx_runtime18 = require("react/jsx-runtime");
945
1003
 
946
1004
  // src/components/icons/PercentageIcon.tsx
947
- var import_jsx_runtime17 = require("react/jsx-runtime");
1005
+ var import_jsx_runtime19 = require("react/jsx-runtime");
948
1006
  var PercentageIcon = () => {
949
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1007
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
950
1008
  "svg",
951
1009
  {
952
1010
  width: "12",
@@ -955,14 +1013,14 @@ var PercentageIcon = () => {
955
1013
  fill: "none",
956
1014
  xmlns: "http://www.w3.org/2000/svg",
957
1015
  children: [
958
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1016
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
959
1017
  "path",
960
1018
  {
961
1019
  d: "M3.00008 5.33329C2.35564 5.33329 1.80564 5.10552 1.35008 4.64996C0.894526 4.1944 0.666748 3.6444 0.666748 2.99996C0.666748 2.35551 0.894526 1.80551 1.35008 1.34996C1.80564 0.894404 2.35564 0.666626 3.00008 0.666626C3.64453 0.666626 4.19453 0.894404 4.65008 1.34996C5.10564 1.80551 5.33342 2.35551 5.33342 2.99996C5.33342 3.6444 5.10564 4.1944 4.65008 4.64996C4.19453 5.10552 3.64453 5.33329 3.00008 5.33329ZM3.00008 3.99996C3.27786 3.99996 3.51397 3.90274 3.70841 3.70829C3.90286 3.51385 4.00008 3.27774 4.00008 2.99996C4.00008 2.72218 3.90286 2.48607 3.70841 2.29163C3.51397 2.09718 3.27786 1.99996 3.00008 1.99996C2.7223 1.99996 2.48619 2.09718 2.29175 2.29163C2.0973 2.48607 2.00008 2.72218 2.00008 2.99996C2.00008 3.27774 2.0973 3.51385 2.29175 3.70829C2.48619 3.90274 2.7223 3.99996 3.00008 3.99996ZM9.00008 11.3333C8.35564 11.3333 7.80564 11.1055 7.35008 10.65C6.89453 10.1944 6.66675 9.6444 6.66675 8.99996C6.66675 8.35552 6.89453 7.80552 7.35008 7.34996C7.80564 6.8944 8.35564 6.66663 9.00008 6.66663C9.64453 6.66663 10.1945 6.8944 10.6501 7.34996C11.1056 7.80552 11.3334 8.35552 11.3334 8.99996C11.3334 9.6444 11.1056 10.1944 10.6501 10.65C10.1945 11.1055 9.64453 11.3333 9.00008 11.3333ZM9.00008 9.99996C9.27786 9.99996 9.51397 9.90274 9.70842 9.70829C9.90286 9.51385 10.0001 9.27774 10.0001 8.99996C10.0001 8.72218 9.90286 8.48607 9.70842 8.29163C9.51397 8.09718 9.27786 7.99996 9.00008 7.99996C8.7223 7.99996 8.48619 8.09718 8.29175 8.29163C8.0973 8.48607 8.00008 8.72218 8.00008 8.99996C8.00008 9.27774 8.0973 9.51385 8.29175 9.70829C8.48619 9.90274 8.7223 9.99996 9.00008 9.99996ZM1.60008 11.3333L0.666748 10.4L10.4001 0.666626L11.3334 1.59996L1.60008 11.3333Z",
962
1020
  fill: "url(#paint0_linear_32_1164)"
963
1021
  }
964
1022
  ),
965
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1023
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
966
1024
  "linearGradient",
967
1025
  {
968
1026
  id: "paint0_linear_32_1164",
@@ -972,8 +1030,8 @@ var PercentageIcon = () => {
972
1030
  y2: "1.31767",
973
1031
  gradientUnits: "userSpaceOnUse",
974
1032
  children: [
975
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("stop", { stopColor: "#3681C6" }),
976
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("stop", { offset: "1", stopColor: "#2B4A9D" })
1033
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("stop", { stopColor: "#3681C6" }),
1034
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("stop", { offset: "1", stopColor: "#2B4A9D" })
977
1035
  ]
978
1036
  }
979
1037
  ) })
@@ -983,9 +1041,9 @@ var PercentageIcon = () => {
983
1041
  };
984
1042
 
985
1043
  // src/components/icons/TimerIcon.tsx
986
- var import_jsx_runtime18 = require("react/jsx-runtime");
1044
+ var import_jsx_runtime20 = require("react/jsx-runtime");
987
1045
  var TimerIcon = () => {
988
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1046
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
989
1047
  "svg",
990
1048
  {
991
1049
  xmlns: "http://www.w3.org/2000/svg",
@@ -993,15 +1051,15 @@ var TimerIcon = () => {
993
1051
  viewBox: "0 -960 960 960",
994
1052
  width: "16",
995
1053
  fill: "currentColor",
996
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M360-840v-80h240v80H360Zm80 440h80v-240h-80v240Zm40 320q-74 0-139.5-28.5T226-186q-49-49-77.5-114.5T120-440q0-74 28.5-139.5T226-694q49-49 114.5-77.5T480-800q62 0 119 20t107 58l56-56 56 56-56 56q38 50 58 107t20 119q0 74-28.5 139.5T734-186q-49 49-114.5 77.5T480-80Zm0-80q116 0 198-82t82-198q0-116-82-198t-198-82q-116 0-198 82t-82 198q0 116 82 198t198 82Zm0-280Z" })
1054
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M360-840v-80h240v80H360Zm80 440h80v-240h-80v240Zm40 320q-74 0-139.5-28.5T226-186q-49-49-77.5-114.5T120-440q0-74 28.5-139.5T226-694q49-49 114.5-77.5T480-800q62 0 119 20t107 58l56-56 56 56-56 56q38 50 58 107t20 119q0 74-28.5 139.5T734-186q-49 49-114.5 77.5T480-80Zm0-80q116 0 198-82t82-198q0-116-82-198t-198-82q-116 0-198 82t-82 198q0 116 82 198t198 82Zm0-280Z" })
997
1055
  }
998
1056
  );
999
1057
  };
1000
1058
 
1001
1059
  // src/components/icons/InfoIcon.tsx
1002
- var import_jsx_runtime19 = require("react/jsx-runtime");
1060
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1003
1061
  var InfoIcon = () => {
1004
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1062
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1005
1063
  "svg",
1006
1064
  {
1007
1065
  width: "28",
@@ -1009,15 +1067,15 @@ var InfoIcon = () => {
1009
1067
  viewBox: "0 0 28 28",
1010
1068
  xmlns: "http://www.w3.org/2000/svg",
1011
1069
  fill: "currentColor",
1012
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12.6667 20.6666H15.3334V12.6666H12.6667V20.6666ZM14.0001 9.99996C14.3779 9.99996 14.6945 9.87218 14.9501 9.61663C15.2056 9.36107 15.3334 9.0444 15.3334 8.66663C15.3334 8.28885 15.2056 7.97218 14.9501 7.71663C14.6945 7.46107 14.3779 7.33329 14.0001 7.33329C13.6223 7.33329 13.3056 7.46107 13.0501 7.71663C12.7945 7.97218 12.6667 8.28885 12.6667 8.66663C12.6667 9.0444 12.7945 9.36107 13.0501 9.61663C13.3056 9.87218 13.6223 9.99996 14.0001 9.99996ZM14.0001 27.3333C12.1556 27.3333 10.4223 26.9833 8.80008 26.2833C7.17786 25.5833 5.76675 24.6333 4.56675 23.4333C3.36675 22.2333 2.41675 20.8222 1.71675 19.2C1.01675 17.5777 0.666748 15.8444 0.666748 14C0.666748 12.1555 1.01675 10.4222 1.71675 8.79996C2.41675 7.17774 3.36675 5.76663 4.56675 4.56663C5.76675 3.36663 7.17786 2.41663 8.80008 1.71663C10.4223 1.01663 12.1556 0.666626 14.0001 0.666626C15.8445 0.666626 17.5779 1.01663 19.2001 1.71663C20.8223 2.41663 22.2334 3.36663 23.4334 4.56663C24.6334 5.76663 25.5834 7.17774 26.2834 8.79996C26.9834 10.4222 27.3334 12.1555 27.3334 14C27.3334 15.8444 26.9834 17.5777 26.2834 19.2C25.5834 20.8222 24.6334 22.2333 23.4334 23.4333C22.2334 24.6333 20.8223 25.5833 19.2001 26.2833C17.5779 26.9833 15.8445 27.3333 14.0001 27.3333ZM14.0001 24.6666C16.9779 24.6666 19.5001 23.6333 21.5667 21.5666C23.6334 19.5 24.6667 16.9777 24.6667 14C24.6667 11.0222 23.6334 8.49996 21.5667 6.43329C19.5001 4.36663 16.9779 3.33329 14.0001 3.33329C11.0223 3.33329 8.50008 4.36663 6.43341 6.43329C4.36675 8.49996 3.33341 11.0222 3.33341 14C3.33341 16.9777 4.36675 19.5 6.43341 21.5666C8.50008 23.6333 11.0223 24.6666 14.0001 24.6666Z" })
1070
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12.6667 20.6666H15.3334V12.6666H12.6667V20.6666ZM14.0001 9.99996C14.3779 9.99996 14.6945 9.87218 14.9501 9.61663C15.2056 9.36107 15.3334 9.0444 15.3334 8.66663C15.3334 8.28885 15.2056 7.97218 14.9501 7.71663C14.6945 7.46107 14.3779 7.33329 14.0001 7.33329C13.6223 7.33329 13.3056 7.46107 13.0501 7.71663C12.7945 7.97218 12.6667 8.28885 12.6667 8.66663C12.6667 9.0444 12.7945 9.36107 13.0501 9.61663C13.3056 9.87218 13.6223 9.99996 14.0001 9.99996ZM14.0001 27.3333C12.1556 27.3333 10.4223 26.9833 8.80008 26.2833C7.17786 25.5833 5.76675 24.6333 4.56675 23.4333C3.36675 22.2333 2.41675 20.8222 1.71675 19.2C1.01675 17.5777 0.666748 15.8444 0.666748 14C0.666748 12.1555 1.01675 10.4222 1.71675 8.79996C2.41675 7.17774 3.36675 5.76663 4.56675 4.56663C5.76675 3.36663 7.17786 2.41663 8.80008 1.71663C10.4223 1.01663 12.1556 0.666626 14.0001 0.666626C15.8445 0.666626 17.5779 1.01663 19.2001 1.71663C20.8223 2.41663 22.2334 3.36663 23.4334 4.56663C24.6334 5.76663 25.5834 7.17774 26.2834 8.79996C26.9834 10.4222 27.3334 12.1555 27.3334 14C27.3334 15.8444 26.9834 17.5777 26.2834 19.2C25.5834 20.8222 24.6334 22.2333 23.4334 23.4333C22.2334 24.6333 20.8223 25.5833 19.2001 26.2833C17.5779 26.9833 15.8445 27.3333 14.0001 27.3333ZM14.0001 24.6666C16.9779 24.6666 19.5001 23.6333 21.5667 21.5666C23.6334 19.5 24.6667 16.9777 24.6667 14C24.6667 11.0222 23.6334 8.49996 21.5667 6.43329C19.5001 4.36663 16.9779 3.33329 14.0001 3.33329C11.0223 3.33329 8.50008 4.36663 6.43341 6.43329C4.36675 8.49996 3.33341 11.0222 3.33341 14C3.33341 16.9777 4.36675 19.5 6.43341 21.5666C8.50008 23.6333 11.0223 24.6666 14.0001 24.6666Z" })
1013
1071
  }
1014
1072
  );
1015
1073
  };
1016
1074
 
1017
1075
  // src/components/icons/SettingsIcon.tsx
1018
- var import_jsx_runtime20 = require("react/jsx-runtime");
1076
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1019
1077
  var SettingsIcon = () => {
1020
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1078
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1021
1079
  "svg",
1022
1080
  {
1023
1081
  width: "18",
@@ -1025,7 +1083,7 @@ var SettingsIcon = () => {
1025
1083
  viewBox: "0 0 18 18",
1026
1084
  fill: "none",
1027
1085
  xmlns: "http://www.w3.org/2000/svg",
1028
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1086
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1029
1087
  "path",
1030
1088
  {
1031
1089
  d: "M6.62325 17.5L6.26504 14.78C6.07101 14.7092 5.88818 14.6242 5.71653 14.525C5.54489 14.4258 5.37698 14.3196 5.2128 14.2063L2.54862 15.2688L0.0859375 11.2312L2.39191 9.57375C2.37698 9.47458 2.36952 9.37896 2.36952 9.28687V8.71313C2.36952 8.62104 2.37698 8.52542 2.39191 8.42625L0.0859375 6.76875L2.54862 2.73125L5.2128 3.79375C5.37698 3.68042 5.54862 3.57417 5.72773 3.475C5.90683 3.37583 6.08594 3.29083 6.26504 3.22L6.62325 0.5H11.5486L11.9068 3.22C12.1009 3.29083 12.2837 3.37583 12.4553 3.475C12.627 3.57417 12.7949 3.68042 12.9591 3.79375L15.6233 2.73125L18.0859 6.76875L15.78 8.42625C15.7949 8.52542 15.8024 8.62104 15.8024 8.71313V9.28687C15.8024 9.37896 15.7874 9.47458 15.7576 9.57375L18.0635 11.2312L15.6009 15.2688L12.9591 14.2063C12.7949 14.3196 12.6233 14.4258 12.4441 14.525C12.265 14.6242 12.0859 14.7092 11.9068 14.78L11.5486 17.5H6.62325ZM9.13071 11.975C9.99639 11.975 10.7352 11.6846 11.3471 11.1038C11.9591 10.5229 12.265 9.82167 12.265 9C12.265 8.17833 11.9591 7.47708 11.3471 6.89625C10.7352 6.31542 9.99639 6.025 9.13071 6.025C8.25012 6.025 7.50758 6.31542 6.9031 6.89625C6.29862 7.47708 5.99639 8.17833 5.99639 9C5.99639 9.82167 6.29862 10.5229 6.9031 11.1038C7.50758 11.6846 8.25012 11.975 9.13071 11.975ZM9.13071 10.275C8.75758 10.275 8.44042 10.151 8.17922 9.90312C7.91803 9.65521 7.78743 9.35417 7.78743 9C7.78743 8.64583 7.91803 8.34479 8.17922 8.09688C8.44042 7.84896 8.75758 7.725 9.13071 7.725C9.50385 7.725 9.82101 7.84896 10.0822 8.09688C10.3434 8.34479 10.474 8.64583 10.474 9C10.474 9.35417 10.3434 9.65521 10.0822 9.90312C9.82101 10.151 9.50385 10.275 9.13071 10.275ZM8.19042 15.8H9.95907L10.2725 13.5475C10.7352 13.4342 11.1643 13.2677 11.5598 13.0481C11.9553 12.8285 12.3173 12.5629 12.6456 12.2513L14.8621 13.1225L15.7352 11.6775L13.8098 10.2963C13.8844 10.0979 13.9367 9.88896 13.9665 9.66938C13.9964 9.44979 14.0113 9.22667 14.0113 9C14.0113 8.77333 13.9964 8.55021 13.9665 8.33063C13.9367 8.11104 13.8844 7.90208 13.8098 7.70375L15.7352 6.3225L14.8621 4.8775L12.6456 5.77C12.3173 5.44417 11.9553 5.17146 11.5598 4.95188C11.1643 4.73229 10.7352 4.56583 10.2725 4.4525L9.98146 2.2H8.2128L7.89937 4.4525C7.43668 4.56583 7.00758 4.73229 6.61206 4.95188C6.21653 5.17146 5.85459 5.43708 5.52624 5.74875L3.30982 4.8775L2.43668 6.3225L4.36206 7.6825C4.28743 7.895 4.23519 8.1075 4.20534 8.32C4.17549 8.5325 4.16056 8.75917 4.16056 9C4.16056 9.22667 4.17549 9.44625 4.20534 9.65875C4.23519 9.87125 4.28743 10.0837 4.36206 10.2963L2.43668 11.6775L3.30982 13.1225L5.52624 12.23C5.85459 12.5558 6.21653 12.8285 6.61206 13.0481C7.00758 13.2677 7.43668 13.4342 7.89937 13.5475L8.19042 15.8Z",
@@ -1037,9 +1095,9 @@ var SettingsIcon = () => {
1037
1095
  };
1038
1096
 
1039
1097
  // src/components/icons/XSwapBadgeIcon.tsx
1040
- var import_jsx_runtime21 = require("react/jsx-runtime");
1098
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1041
1099
  var XSwapBadgeIcon = () => {
1042
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1100
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1043
1101
  "svg",
1044
1102
  {
1045
1103
  version: "1.2",
@@ -1048,8 +1106,8 @@ var XSwapBadgeIcon = () => {
1048
1106
  width: "80",
1049
1107
  height: "27",
1050
1108
  children: [
1051
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("title", { children: "xswap-badge" }),
1052
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1109
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("title", { children: "xswap-badge" }),
1110
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1053
1111
  "image",
1054
1112
  {
1055
1113
  width: "80",
@@ -1058,17 +1116,17 @@ var XSwapBadgeIcon = () => {
1058
1116
  href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAaCAYAAAAg0tunAAAAAXNSR0IB2cksfw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x)("style", {}),
1062
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("use", { id: "Background", href: "#img1iVBORw0KGgoAAAANSUhEUgAAAF", x: "0", y: "1" })
1119
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("style", {}),
1120
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("use", { id: "Background", href: "#img1iVBORw0KGgoAAAANSUhEUgAAAF", x: "0", y: "1" })
1063
1121
  ]
1064
1122
  }
1065
1123
  );
1066
1124
  };
1067
1125
 
1068
1126
  // src/components/icons/ChainlinkCCIPIcon.tsx
1069
- var import_jsx_runtime22 = require("react/jsx-runtime");
1127
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1070
1128
  var ChainlinkCCIPIcon = () => {
1071
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1072
1130
  "svg",
1073
1131
  {
1074
1132
  version: "1.2",
@@ -1077,8 +1135,8 @@ var ChainlinkCCIPIcon = () => {
1077
1135
  width: "67",
1078
1136
  height: "27",
1079
1137
  children: [
1080
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("title", { children: "chainlink-CCIP" }),
1081
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1138
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("title", { children: "chainlink-CCIP" }),
1139
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1082
1140
  "image",
1083
1141
  {
1084
1142
  width: "67",
@@ -1087,17 +1145,17 @@ var ChainlinkCCIPIcon = () => {
1087
1145
  href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAbCAYAAAAnFzLpAAAAAXNSR0IB2cksfwAADPtJREFUeJzdWQtUlcUWngNItexilpq6gsrKFLVCEAgFRBBMeYsooGJKlq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jolgpBM8QWnJ6PY4Byo1J3oX7n4ifGkl+s8TFkfMjkzWzFzJP9/dXP+/1rU/0r5Dy2/8Z6sDkzgAAAAAElFTkSuQmCC"
1088
1146
  }
1089
1147
  ) }),
1090
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("style", {}),
1091
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("use", { id: "Background", href: "#imgiVBORw0KGgoAAA", x: "0", y: "0" })
1148
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("style", {}),
1149
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("use", { id: "Background", href: "#imgiVBORw0KGgoAAA", x: "0", y: "0" })
1092
1150
  ]
1093
1151
  }
1094
1152
  );
1095
1153
  };
1096
1154
 
1097
1155
  // src/components/icons/XSwapLogo.tsx
1098
- var import_jsx_runtime23 = require("react/jsx-runtime");
1156
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1099
1157
  var XSwapLogo = () => {
1100
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1158
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1101
1159
  "svg",
1102
1160
  {
1103
1161
  version: "1.1",
@@ -1107,7 +1165,7 @@ var XSwapLogo = () => {
1107
1165
  y: "0px",
1108
1166
  viewBox: "0 0 50 50",
1109
1167
  enableBackground: "new 0 0 50 50",
1110
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1168
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1111
1169
  "image",
1112
1170
  {
1113
1171
  id: "image0",
@@ -1121,13 +1179,13 @@ var XSwapLogo = () => {
1121
1179
  };
1122
1180
 
1123
1181
  // src/components/TxConfigForm/PoweredBy.tsx
1124
- var import_jsx_runtime24 = require("react/jsx-runtime");
1182
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1125
1183
  var PoweredBy = () => {
1126
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex justify-center items-center gap-2 my-3", children: [
1127
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-x_grey", children: "Powered by" }),
1128
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(XSwapBadgeIcon, {}),
1129
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: "\u2715" }),
1130
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChainlinkCCIPIcon, {})
1184
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex justify-center items-center gap-2 my-3", children: [
1185
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-x_grey", children: "Powered by" }),
1186
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(XSwapBadgeIcon, {}),
1187
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: "\u2715" }),
1188
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChainlinkCCIPIcon, {})
1131
1189
  ] });
1132
1190
  };
1133
1191
 
@@ -1159,7 +1217,7 @@ var import_bignumber2 = __toESM(require("bignumber.js"));
1159
1217
 
1160
1218
  // src/components/TxConfigForm/HistoryCard.tsx
1161
1219
  var import_react2 = require("react");
1162
- var import_jsx_runtime25 = require("react/jsx-runtime");
1220
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1163
1221
  var HistoryCard = ({ transaction, supportedChains }) => {
1164
1222
  const date = getDate(transaction.timestamp);
1165
1223
  const supportedTokens = (0, import_react2.useMemo)(() => {
@@ -1205,14 +1263,14 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1205
1263
  const targetChainData = supportedChains.find(
1206
1264
  (chain) => chain.chainId === transaction.targetChainId
1207
1265
  );
1208
- return /* @__PURE__ */ (0, import_jsx_runtime25.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: [
1209
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
1210
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "text-sm sm:text-base", children: date }),
1211
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1212
- transaction.status === "IN_PROGRESS" && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "text-[rgb(250,200,100)]", children: "In progress" }) }),
1213
- transaction.status === "DONE" && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "text-[rgb(100,200,100)]", children: "Done" }) }),
1214
- transaction.status === "REVERTED" && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "text-[rgb(255,100,100)]", children: "Reverted" }) }),
1215
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1266
+ 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: [
1267
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
1268
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "text-sm sm:text-base", children: date }),
1269
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1270
+ 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" }) }),
1271
+ 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" }) }),
1272
+ 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" }) }),
1273
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1216
1274
  "a",
1217
1275
  {
1218
1276
  href: `${supportedChains.find(
@@ -1222,15 +1280,15 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1222
1280
  rel: "noreferrer",
1223
1281
  className: "ml-2 no-underline",
1224
1282
  "aria-label": "Show the transaction in the chain explorer",
1225
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowUpRightIcon, {}) })
1283
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowUpRightIcon, {}) })
1226
1284
  }
1227
1285
  )
1228
1286
  ] })
1229
1287
  ] }),
1230
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex justify-between flex-wrap gap-2", children: [
1231
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1232
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1233
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1288
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex justify-between flex-wrap gap-2", children: [
1289
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1290
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1291
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1234
1292
  "img",
1235
1293
  {
1236
1294
  src: sourceChainData?.image,
@@ -1238,11 +1296,11 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1238
1296
  className: "w-5 h-5 mr-1"
1239
1297
  }
1240
1298
  ),
1241
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: sourceChainData?.displayName })
1299
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: sourceChainData?.displayName })
1242
1300
  ] }),
1243
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowRightIcon, {}) }),
1244
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1245
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1301
+ /* @__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, {}) }),
1302
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1303
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1246
1304
  "img",
1247
1305
  {
1248
1306
  src: targetChainData?.image,
@@ -1250,35 +1308,35 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1250
1308
  className: "w-5 h-5 mr-1"
1251
1309
  }
1252
1310
  ),
1253
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: targetChainData?.displayName })
1311
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: targetChainData?.displayName })
1254
1312
  ] })
1255
1313
  ] }),
1256
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center mb-2 last:mb-0", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center flex-wrap", children: [
1257
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1314
+ /* @__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: [
1315
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1258
1316
  Number(transferredAmount) < MINIMUM_DISPLAYED_TOKEN_AMOUNT ? `<${MINIMUM_DISPLAYED_TOKEN_AMOUNT}` : transferredAmount,
1259
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "ml-1", children: tokenData?.symbol }),
1260
- tokenData?.image ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1317
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ml-1", children: tokenData?.symbol }),
1318
+ tokenData?.image ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1261
1319
  "img",
1262
1320
  {
1263
1321
  src: tokenData?.image,
1264
1322
  alt: tokenData?.name || "",
1265
1323
  className: "w-5 h-5 ml-1"
1266
1324
  }
1267
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.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) })
1325
+ ) : /* @__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) })
1268
1326
  ] }),
1269
- transaction.tokenOutAddress && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1270
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-3.5 h-3.5 my-0 mx-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowRightIcon, {}) }),
1271
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1327
+ transaction.tokenOutAddress && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1328
+ /* @__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, {}) }),
1329
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center", children: [
1272
1330
  Number(receivedAmount) < 1e-4 ? "<0.0001" : receivedAmount,
1273
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "ml-1", children: tokenOutData?.symbol }),
1274
- tokenOutData?.image ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1331
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ml-1", children: tokenOutData?.symbol }),
1332
+ tokenOutData?.image ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1275
1333
  "img",
1276
1334
  {
1277
1335
  src: tokenOutData?.image,
1278
1336
  alt: tokenOutData?.name || "",
1279
1337
  className: "w-5 h-5 ml-1"
1280
1338
  }
1281
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.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) })
1339
+ ) : /* @__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) })
1282
1340
  ] })
1283
1341
  ] })
1284
1342
  ] }) })
@@ -1287,7 +1345,7 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1287
1345
  };
1288
1346
 
1289
1347
  // src/components/TxConfigForm/History.tsx
1290
- var import_jsx_runtime26 = require("react/jsx-runtime");
1348
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1291
1349
  var History = ({ signer, supportedChains }) => {
1292
1350
  const [fetchedHistory, setFetchedHistory] = (0, import_react3.useState)();
1293
1351
  const [historyLoadedOnce, setHistoryLoadedOnce] = (0, import_react3.useState)(false);
@@ -1339,11 +1397,11 @@ var History = ({ signer, supportedChains }) => {
1339
1397
  return () => clearInterval(timer);
1340
1398
  }, [signer, fetchHistory, getHistory, historyLoadedOnce]);
1341
1399
  if (!signer)
1342
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex items-center justify-center w-full h-[30vh]", children: "Connect a wallet to browse history" });
1343
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "w-full h-96 overflow-scroll overflow-x-hidden", children: [
1344
- fetchedHistory?.length === 0 && historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "w-full text-center py-4 px-0 text-[rgb(158,158,158)]", children: "Your history is empty..." }),
1345
- !fetchedHistory && !historyLoadedOnce && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex w-full h-full items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CircularProgressIcon, {}) }),
1346
- fetchedHistory?.map((transaction, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1400
+ 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" });
1401
+ 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: [
1402
+ 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..." }),
1403
+ !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, {}) }),
1404
+ fetchedHistory?.map((transaction, index) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1347
1405
  HistoryCard,
1348
1406
  {
1349
1407
  transaction,
@@ -1355,39 +1413,41 @@ var History = ({ signer, supportedChains }) => {
1355
1413
  };
1356
1414
 
1357
1415
  // src/components/TxConfigForm/TopBar.tsx
1358
- var import_jsx_runtime27 = require("react/jsx-runtime");
1416
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1359
1417
  var TopBar = ({
1360
1418
  signer,
1361
1419
  setSettingsShown,
1362
1420
  setHistoryTabShown,
1363
- historyTabShown
1421
+ historyTabShown,
1422
+ onClose
1364
1423
  }) => {
1365
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-full justify-between items-center mx-auto sm:pl-4 pr-8 pt-2", children: [
1366
- /* @__PURE__ */ (0, import_jsx_runtime27.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` }),
1367
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
1368
- !historyTabShown && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1424
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full justify-between items-center mx-auto p-2", children: [
1425
+ /* @__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` }),
1426
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-2 justify-center items-center", children: [
1427
+ !historyTabShown && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1369
1428
  "div",
1370
1429
  {
1371
1430
  onClick: () => setSettingsShown(true),
1372
1431
  className: "flex items-center text-xs gap-1 cursor-pointer",
1373
- children: /* @__PURE__ */ (0, import_jsx_runtime27.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_runtime27.jsx)(SettingsIcon, {}) })
1432
+ 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, {}) })
1374
1433
  }
1375
1434
  ),
1376
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1435
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1377
1436
  "div",
1378
1437
  {
1379
1438
  onClick: () => setHistoryTabShown((x) => !x),
1380
1439
  className: "flex items-center text-sm gap-1 cursor-pointer",
1381
- children: !historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.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_runtime27.jsx)(HistoryIcon, {}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: "Back" })
1440
+ 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" })
1382
1441
  }
1383
- )
1442
+ ),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cursor-pointer text-white", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CloseIcon, {}) })
1384
1444
  ] })
1385
1445
  ] });
1386
1446
  };
1387
1447
 
1388
1448
  // src/components/TxConfigForm/Settings.tsx
1389
1449
  var import_react4 = require("react");
1390
- var import_jsx_runtime28 = require("react/jsx-runtime");
1450
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1391
1451
  var Settings = ({
1392
1452
  setSlippage,
1393
1453
  setSettingsShown,
@@ -1404,22 +1464,22 @@ var Settings = ({
1404
1464
  );
1405
1465
  }
1406
1466
  }, [slippageActivePresetIndex, usingSlippageInput]);
1407
- return /* @__PURE__ */ (0, import_jsx_runtime28.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_runtime28.jsxs)("div", { className: "flex flex-col gap-4 justify-between", children: [
1408
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex justify-between", children: [
1409
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-base", children: "Settings" }),
1410
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1467
+ 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: [
1468
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex justify-between", children: [
1469
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-base", children: "Settings" }),
1470
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1411
1471
  "div",
1412
1472
  {
1413
1473
  className: "cursor-pointer",
1414
1474
  onClick: () => setSettingsShown(false),
1415
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CloseIcon, {})
1475
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {})
1416
1476
  }
1417
1477
  )
1418
1478
  ] }),
1419
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
1420
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2 items-center", children: [
1421
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1422
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1479
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
1480
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-2 items-center", children: [
1481
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1482
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1423
1483
  "span",
1424
1484
  {
1425
1485
  className: "inline-flex w-14 h-9 p-3 relative align-middle box-border overflow-hidden cursor-pointer",
@@ -1427,8 +1487,8 @@ var Settings = ({
1427
1487
  setExpressChecked((x) => !x);
1428
1488
  },
1429
1489
  children: [
1430
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
1431
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1490
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
1491
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1432
1492
  "span",
1433
1493
  {
1434
1494
  className: `transition-all w-5 h-5 rounded-full absolute translate-y-[-4px]
@@ -1439,15 +1499,15 @@ var Settings = ({
1439
1499
  }
1440
1500
  ) })
1441
1501
  ] }),
1442
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-4", children: [
1443
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InfoIcon, {}) }),
1444
- /* @__PURE__ */ (0, import_jsx_runtime28.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." })
1502
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-4", children: [
1503
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1504
+ /* @__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." })
1445
1505
  ] })
1446
1506
  ] }),
1447
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-2 ", children: [
1448
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
1449
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2", children: [
1450
- /* @__PURE__ */ (0, import_jsx_runtime28.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_runtime28.jsx)(
1507
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-2 ", children: [
1508
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
1509
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-2", children: [
1510
+ /* @__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)(
1451
1511
  "div",
1452
1512
  {
1453
1513
  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]" : ""}`,
@@ -1459,8 +1519,8 @@ var Settings = ({
1459
1519
  },
1460
1520
  index
1461
1521
  )) }),
1462
- /* @__PURE__ */ (0, import_jsx_runtime28.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: [
1463
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1522
+ /* @__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: [
1523
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1464
1524
  "input",
1465
1525
  {
1466
1526
  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",
@@ -1479,16 +1539,16 @@ var Settings = ({
1479
1539
  }
1480
1540
  }
1481
1541
  ),
1482
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PercentageIcon, {})
1542
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PercentageIcon, {})
1483
1543
  ] })
1484
1544
  ] }),
1485
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-4", children: [
1486
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InfoIcon, {}) }),
1487
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "text-xs text-left", children: [
1545
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-4", children: [
1546
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InfoIcon, {}) }),
1547
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "text-xs text-left", children: [
1488
1548
  "Slippage is the price variation you are willing to accept in the event that the price of the trade changes while it is processing.",
1489
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("br", {}),
1549
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("br", {}),
1490
1550
  " ",
1491
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("br", {}),
1551
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("br", {}),
1492
1552
  "If the trade fails due to too-low slippage, you will receive USDC on the destination chain."
1493
1553
  ] })
1494
1554
  ] })
@@ -1497,23 +1557,24 @@ var Settings = ({
1497
1557
  };
1498
1558
 
1499
1559
  // src/components/TxConfigForm/FeesDetails.tsx
1500
- var import_jsx_runtime29 = require("react/jsx-runtime");
1560
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1501
1561
  var FeesDetails = ({
1502
1562
  isGettingRoute,
1503
1563
  route,
1504
1564
  paymentToken,
1505
1565
  dstToken,
1506
1566
  expressChecked,
1567
+ exceedsExpressDeliveryLimit,
1507
1568
  slippage,
1508
1569
  feesDetailsShown,
1509
1570
  setFeesDetailsShown
1510
1571
  }) => {
1511
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col gap-3 globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 mb-1", children: [
1512
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm ", children: [
1513
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
1514
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CoinsIcon, {}),
1515
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "mr-1", children: "Fees:" }),
1516
- isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "bg-current rounded animate-pulse w-20 h-4" }) : ` ${weiToHumanReadable({
1572
+ 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: [
1573
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm", children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
1575
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CoinsIcon, {}),
1576
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mr-1", children: "Fees:" }),
1577
+ isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Skeleton, { width: "w-20", height: "h-4" }) : ` ${weiToHumanReadable({
1517
1578
  amount: safeBigNumberFrom(
1518
1579
  route?.xSwapFees.xSwapFee.nativeFee || "0"
1519
1580
  ).add(safeBigNumberFrom(route?.xSwapFees.ccipFee || "0")).add(
@@ -1523,61 +1584,62 @@ var FeesDetails = ({
1523
1584
  precisionFractionalPlaces: 5
1524
1585
  })} ${paymentToken?.symbol}`
1525
1586
  ] }),
1526
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-1 items-center", children: [
1527
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1587
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex gap-1 items-center", children: [
1588
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1528
1589
  "div",
1529
1590
  {
1530
- className: `flex gap-1 items-center font-medium ${expressChecked ? "text-x_green" : "text-white opacity-60"}`,
1591
+ className: `flex gap-1 items-center font-medium ${expressChecked && !exceedsExpressDeliveryLimit ? "text-x_green" : "text-white opacity-60"}`,
1531
1592
  children: [
1532
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TimerIcon, {}),
1533
- expressChecked ? "Fast ~ 30sec " : "Normal ~ 30min"
1593
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimerIcon, {}),
1594
+ expressChecked && !exceedsExpressDeliveryLimit ? "Fast ~ 30sec " : "Normal ~ 30min"
1534
1595
  ]
1535
1596
  }
1536
1597
  ),
1537
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1598
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1538
1599
  "div",
1539
1600
  {
1540
1601
  onClick: () => setFeesDetailsShown((x) => !x),
1541
1602
  className: "font-medium text-white opacity-60 cursor-pointer flex items-center w-[15px] h-[9px]",
1542
- children: feesDetailsShown ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronDownIcon, {})
1603
+ children: feesDetailsShown ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronDownIcon, {})
1543
1604
  }
1544
1605
  )
1545
1606
  ] })
1546
1607
  ] }),
1547
- feesDetailsShown && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full items-center justify-between ", children: [
1548
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1549
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1550
- "CCIP Fee:",
1551
- ` ${weiToHumanReadable({
1608
+ feesDetailsShown && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
1609
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1610
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1611
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "CCIP Fee:" }),
1612
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1552
1613
  amount: route?.xSwapFees.ccipFee || "0",
1553
1614
  decimals: 18,
1554
1615
  precisionFractionalPlaces: 5
1555
- })} ${paymentToken?.symbol}`
1616
+ })} ${paymentToken?.symbol}` })
1556
1617
  ] }),
1557
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1558
- "Native Fee:",
1559
- ` ${weiToHumanReadable({
1618
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Native Fee:" }),
1620
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: ` ${weiToHumanReadable({
1560
1621
  amount: route?.xSwapFees.xSwapFee.nativeFee || "0",
1561
1622
  decimals: 18,
1562
1623
  precisionFractionalPlaces: 5
1563
- })} ${paymentToken?.symbol}`
1624
+ })} ${paymentToken?.symbol}` })
1564
1625
  ] })
1565
1626
  ] }),
1566
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1567
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1568
- "Slippage: ",
1569
- `${slippage}%`
1627
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1628
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1629
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Slippage:" }),
1630
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "whitespace-nowrap", children: `${slippage}%` })
1570
1631
  ] }),
1571
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1572
- "Min amount out:",
1573
- " ",
1574
- weiToHumanReadable({
1575
- amount: route?.minAmountOut || "0",
1576
- decimals: dstToken?.decimals || 18,
1577
- precisionFractionalPlaces: 5
1578
- }),
1579
- " ",
1580
- dstToken?.symbol
1632
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between font-medium text-white opacity-60 gap-1", children: [
1633
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: "Min amount out:" }),
1634
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "whitespace-nowrap", children: [
1635
+ weiToHumanReadable({
1636
+ amount: route?.minAmountOut || "0",
1637
+ decimals: dstToken?.decimals || 18,
1638
+ precisionFractionalPlaces: 5
1639
+ }),
1640
+ " ",
1641
+ dstToken?.symbol
1642
+ ] })
1581
1643
  ] })
1582
1644
  ] })
1583
1645
  ] })
@@ -1589,24 +1651,32 @@ var import_react6 = require("react");
1589
1651
 
1590
1652
  // src/components/TxConfigForm/UsdPrice.tsx
1591
1653
  var import_react5 = require("react");
1592
- var import_jsx_runtime30 = require("react/jsx-runtime");
1654
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1593
1655
  var UsdPrice = ({
1594
1656
  prices,
1595
1657
  token,
1596
1658
  amount = "0",
1597
- loading = false
1659
+ loading = false,
1660
+ type,
1661
+ setExceedsExpressDeliveryLimit
1598
1662
  }) => {
1599
1663
  const [usdPrice, setUsdPrice] = (0, import_react5.useState)("0.00");
1600
1664
  (0, import_react5.useEffect)(() => {
1601
1665
  if (token && prices && prices[token.address]) {
1602
- setUsdPrice((Number(amount) * Number(prices[token.address])).toFixed(2));
1666
+ const newUsdPrice = (Number(amount) * Number(prices[token.address])).toFixed(2);
1667
+ if (type === "src" && setExceedsExpressDeliveryLimit) {
1668
+ setExceedsExpressDeliveryLimit(
1669
+ Number(newUsdPrice) > EXPRESS_DELIVERY_LIMIT
1670
+ );
1671
+ }
1672
+ setUsdPrice(newUsdPrice);
1603
1673
  }
1604
1674
  }, [token, prices, amount]);
1605
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "opacity-60 py-4", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Skeleton, { width: "w-12", height: "h-4" }) : token ? prices && prices[token.address] ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: `$${usdPrice}` }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Alert, { desc: "Unknown price" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: "$0.00" }) });
1675
+ 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" }) });
1606
1676
  };
1607
1677
 
1608
1678
  // src/components/TxConfigForm/Summary.tsx
1609
- var import_jsx_runtime31 = require("react/jsx-runtime");
1679
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1610
1680
  var Summary = ({
1611
1681
  isGettingRoute,
1612
1682
  route,
@@ -1629,41 +1699,44 @@ var Summary = ({
1629
1699
  );
1630
1700
  }
1631
1701
  }, [dstChain]);
1632
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 relative", children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between", children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1", children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
1636
- isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1702
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4 relative", children: [
1703
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-between", children: [
1704
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-1", children: [
1705
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
1706
+ isGettingRoute ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1637
1707
  Skeleton,
1638
1708
  {
1639
1709
  width: "w-[100px]",
1640
1710
  height: "h-[36px]",
1641
1711
  other: "sm:w-[190px]"
1642
1712
  }
1643
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: [
1644
- amountReadable,
1645
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-4 sm:w-6 h-4 sm:h-6", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: dstToken?.image, alt: dstToken?.name }) }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-base sm:text-xl", children: dstToken?.symbol })
1647
- ] })
1713
+ ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: amountReadable })
1648
1714
  ] }),
1649
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1 text-sm", children: [
1650
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on chain:" }),
1651
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1 text-white", children: [
1652
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-4 h-4", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1653
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: dstChain?.displayName })
1715
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col items-end gap-1 text-sm", children: [
1716
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-center items-center gap-1", children: [
1717
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-4 sm:w-6 h-4 sm:h-6", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { src: dstToken?.image, alt: dstToken?.name }) }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-base sm:text-xl", children: dstToken?.symbol })
1719
+ ] }),
1720
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-center items-center gap-1", children: [
1721
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on " }),
1722
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-1 text-white", children: [
1723
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-4 h-4", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { src: dstChain?.image, alt: dstChain?.name }) }),
1724
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: dstChain?.displayName })
1725
+ ] })
1654
1726
  ] })
1655
1727
  ] })
1656
1728
  ] }),
1657
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1729
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1658
1730
  UsdPrice,
1659
1731
  {
1660
1732
  prices,
1661
1733
  token: dstToken,
1662
1734
  amount: amountReadable,
1663
- loading: isGettingRoute
1735
+ loading: isGettingRoute,
1736
+ type: "dst"
1664
1737
  }
1665
1738
  ),
1666
- /* @__PURE__ */ (0, import_jsx_runtime31.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_runtime31.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_runtime31.jsx)(ArrowDownIcon, {}) }) })
1739
+ /* @__PURE__ */ (0, import_jsx_runtime33.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_runtime33.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_runtime33.jsx)(ArrowDownIcon, {}) }) })
1667
1740
  ] });
1668
1741
  };
1669
1742
 
@@ -1673,7 +1746,7 @@ var import_react9 = require("react");
1673
1746
  // src/components/TxConfigForm/TokenPicker.tsx
1674
1747
  var import_react7 = require("react");
1675
1748
  var import_react_dom = require("react-dom");
1676
- var import_jsx_runtime32 = require("react/jsx-runtime");
1749
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1677
1750
  var TokenPicker = ({
1678
1751
  onCloseClick,
1679
1752
  tokens,
@@ -1700,24 +1773,24 @@ var TokenPicker = ({
1700
1773
  );
1701
1774
  }, [searchValue, tokens]);
1702
1775
  return modalRoot ? (0, import_react_dom.createPortal)(
1703
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1776
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1704
1777
  "div",
1705
1778
  {
1706
1779
  onClick: onBackdropClick,
1707
1780
  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",
1708
- children: /* @__PURE__ */ (0, import_jsx_runtime32.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: [
1709
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1781
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.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: [
1782
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1710
1783
  "div",
1711
1784
  {
1712
1785
  onClick: onCloseClick,
1713
1786
  className: "absolute top-4 right-4 cursor-pointer",
1714
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {})
1787
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CloseIcon, {})
1715
1788
  }
1716
1789
  ),
1717
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-base mb-4", children: "Pick a token" }),
1718
- /* @__PURE__ */ (0, import_jsx_runtime32.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: [
1719
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SearchIcon, {}) }),
1720
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1790
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-base mb-4", children: "Pick a token" }),
1791
+ /* @__PURE__ */ (0, import_jsx_runtime34.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: [
1792
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SearchIcon, {}) }),
1793
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1721
1794
  "input",
1722
1795
  {
1723
1796
  placeholder: "Search name or paste address",
@@ -1727,7 +1800,7 @@ var TokenPicker = ({
1727
1800
  }
1728
1801
  )
1729
1802
  ] }),
1730
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "my-4 mx-0 flex flex-wrap gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1803
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "my-4 mx-0 flex flex-wrap gap-3", children: tokens?.filter((token) => token?.quickPick).map((token) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1731
1804
  "div",
1732
1805
  {
1733
1806
  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)]" : ""}`,
@@ -1736,14 +1809,14 @@ var TokenPicker = ({
1736
1809
  onCloseClick();
1737
1810
  },
1738
1811
  children: [
1739
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("img", { src: token.image, alt: token.name, className: "w-5" }),
1740
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "text-sm", children: token.symbol })
1812
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: token.image, alt: token.name, className: "w-5" }),
1813
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-sm", children: token.symbol })
1741
1814
  ]
1742
1815
  },
1743
1816
  token.address
1744
1817
  )) }),
1745
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "h-[2px] my-0 mx-[-24px] w-[100%+48px] px-12 bg-[rgba(255,255,255,0.1)]" }),
1746
- /* @__PURE__ */ (0, import_jsx_runtime32.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_runtime32.jsxs)(
1818
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "h-[2px] my-0 mx-[-24px] w-[100%+48px] px-12 bg-[rgba(255,255,255,0.1)]" }),
1819
+ /* @__PURE__ */ (0, import_jsx_runtime34.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_runtime34.jsxs)(
1747
1820
  "div",
1748
1821
  {
1749
1822
  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)]" : ""}`,
@@ -1752,29 +1825,29 @@ var TokenPicker = ({
1752
1825
  onCloseClick();
1753
1826
  },
1754
1827
  children: [
1755
- token.image ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1828
+ token.image ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1756
1829
  "img",
1757
1830
  {
1758
1831
  src: token.image,
1759
1832
  alt: token.name,
1760
1833
  className: "token-picker__all__logo"
1761
1834
  }
1762
- ) : /* @__PURE__ */ (0, import_jsx_runtime32.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) }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
1764
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col leading-[16px]", children: [
1765
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
1766
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "text-[#888] text-[11px]", children: token.symbol })
1835
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.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) }),
1836
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
1837
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col leading-[16px]", children: [
1838
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
1839
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-[#888] text-[11px]", children: token.symbol })
1767
1840
  ] }),
1768
- signer && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "text-xs", children: weiToHumanReadable({
1841
+ signer && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: balances && balances[token.address] && token.decimals ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-xs", children: weiToHumanReadable({
1769
1842
  amount: balances[token.address]?.toString() || "0",
1770
1843
  decimals: token.decimals,
1771
1844
  precisionFractionalPlaces: 4
1772
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Skeleton, { width: "w-12", height: "h-3" }) })
1845
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Skeleton, { width: "w-12", height: "h-3" }) })
1773
1846
  ] })
1774
1847
  ]
1775
1848
  },
1776
1849
  `${index}_${token.address}`
1777
- )) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "mt-4 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-sm text-white", children: "No tokens found." }) }) })
1850
+ )) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mt-4 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-sm text-white", children: "No tokens found." }) }) })
1778
1851
  ] })
1779
1852
  }
1780
1853
  ),
@@ -1783,7 +1856,7 @@ var TokenPicker = ({
1783
1856
  };
1784
1857
 
1785
1858
  // src/components/TxConfigForm/ChainListElement.tsx
1786
- var import_jsx_runtime33 = require("react/jsx-runtime");
1859
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1787
1860
  var ChainListElement = ({
1788
1861
  chain,
1789
1862
  setSrcChain,
@@ -1791,8 +1864,8 @@ var ChainListElement = ({
1791
1864
  index,
1792
1865
  length
1793
1866
  }) => {
1794
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
1795
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1867
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
1868
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1796
1869
  "li",
1797
1870
  {
1798
1871
  className: "bg-transparent border-none flex gap-1 items-center cursor-pointer py-2 w-full",
@@ -1801,19 +1874,19 @@ var ChainListElement = ({
1801
1874
  setChainListShown(false);
1802
1875
  },
1803
1876
  children: [
1804
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { width: 12, height: 12, src: chain.image, alt: chain.displayName }),
1877
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { width: 12, height: 12, src: chain.image, alt: chain.displayName }),
1805
1878
  chain.displayName
1806
1879
  ]
1807
1880
  }
1808
1881
  ),
1809
- index !== length - 1 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-px mx-2 bg-[rgba(255,255,255,0.15)]" })
1882
+ index !== length - 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "h-px mx-2 bg-[rgba(255,255,255,0.15)]" })
1810
1883
  ] }, `${chain.ecosystem}-${chain.chainId}`);
1811
1884
  };
1812
1885
 
1813
1886
  // src/components/TxConfigForm/BalanceComponent.tsx
1814
1887
  var import_react8 = require("react");
1815
1888
  var import_bignumber3 = __toESM(require("bignumber.js"));
1816
- var import_jsx_runtime34 = require("react/jsx-runtime");
1889
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1817
1890
  var BalanceComponent = ({ srcToken, balances }) => {
1818
1891
  const balanceText = (0, import_react8.useMemo)(() => {
1819
1892
  if (!balances || !srcToken) return "0";
@@ -1833,7 +1906,7 @@ var BalanceComponent = ({ srcToken, balances }) => {
1833
1906
  precisionFractionalPlaces: 5
1834
1907
  });
1835
1908
  }, [srcToken, balances]);
1836
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
1909
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
1837
1910
  "Balance:",
1838
1911
  " ",
1839
1912
  srcToken && balances ? weiToHumanReadable({
@@ -1841,12 +1914,12 @@ var BalanceComponent = ({ srcToken, balances }) => {
1841
1914
  decimals: srcToken.decimals,
1842
1915
  precisionFractionalPlaces: 4
1843
1916
  }) : 0,
1844
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "bg-gradient-to-r from-x_blue_light to-x_blue_dark bg-clip-text text-transparent", children: "Max" })
1917
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "bg-gradient-to-r from-x_blue_light to-x_blue_dark bg-clip-text text-transparent", children: "Max" })
1845
1918
  ] });
1846
1919
  };
1847
1920
 
1848
1921
  // src/components/TxConfigForm/SwapPanel.tsx
1849
- var import_jsx_runtime35 = require("react/jsx-runtime");
1922
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1850
1923
  var SwapPanel = ({
1851
1924
  amount,
1852
1925
  setAmount,
@@ -1857,7 +1930,8 @@ var SwapPanel = ({
1857
1930
  signer,
1858
1931
  balances,
1859
1932
  prices,
1860
- supportedChains
1933
+ supportedChains,
1934
+ setExceedsExpressDeliveryLimit
1861
1935
  }) => {
1862
1936
  const [chainListShown, setChainListShown] = (0, import_react9.useState)(false);
1863
1937
  const [tokenListShown, setTokenListShown] = (0, import_react9.useState)(false);
@@ -1891,11 +1965,11 @@ var SwapPanel = ({
1891
1965
  () => supportedChains.filter((chain) => chain.chainId !== srcChain?.chainId),
1892
1966
  [supportedChains, srcChain]
1893
1967
  );
1894
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
1895
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
1896
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-1", children: [
1897
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
1898
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1968
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
1969
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
1970
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-1", children: [
1971
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
1972
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1899
1973
  "input",
1900
1974
  {
1901
1975
  className: "p-0 border-none outline-none bg-transparent text-2xl overflow-ellipsis",
@@ -1914,18 +1988,20 @@ var SwapPanel = ({
1914
1988
  }
1915
1989
  )
1916
1990
  ] }),
1917
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex items-center text-sm text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1991
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex items-center text-sm text-[rgba(255,255,255,0.6)]", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1918
1992
  UsdPrice,
1919
1993
  {
1920
1994
  prices,
1921
1995
  token: srcToken,
1922
1996
  amount,
1923
- loading: false
1997
+ loading: false,
1998
+ type: "src",
1999
+ setExceedsExpressDeliveryLimit
1924
2000
  }
1925
2001
  ) })
1926
2002
  ] }),
1927
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col relative items-end gap-2.5 w-1/2 text-xs", children: [
1928
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2003
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col relative items-end gap-2.5 w-1/2 text-xs", children: [
2004
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1929
2005
  "div",
1930
2006
  {
1931
2007
  className: "flex gap-2 items-center p-2 max-w-full cursor-pointer bg-black text-white globalBorder rounded-3xl whitespace-nowrap",
@@ -1933,7 +2009,7 @@ var SwapPanel = ({
1933
2009
  setTokenListShown((state) => !state);
1934
2010
  },
1935
2011
  children: [
1936
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2012
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1937
2013
  "img",
1938
2014
  {
1939
2015
  height: 16,
@@ -1942,12 +2018,12 @@ var SwapPanel = ({
1942
2018
  alt: srcToken?.name
1943
2019
  }
1944
2020
  ),
1945
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: srcToken?.symbol }),
1946
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DownArrowIcon, {})
2021
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: srcToken?.symbol }),
2022
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DownArrowIcon, {})
1947
2023
  ]
1948
2024
  }
1949
2025
  ),
1950
- tokenListShown && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2026
+ tokenListShown && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1951
2027
  TokenPicker,
1952
2028
  {
1953
2029
  onCloseClick: () => setTokenListShown(false),
@@ -1958,22 +2034,22 @@ var SwapPanel = ({
1958
2034
  balances
1959
2035
  }
1960
2036
  ),
1961
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2037
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1962
2038
  "div",
1963
2039
  {
1964
2040
  onClick: handleMaxClick,
1965
2041
  className: "flex gap-1 items-center font-medium text-white opacity-60 py-0.5 cursor-pointer",
1966
- children: signer && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(BalanceComponent, { balances, srcToken })
2042
+ children: signer && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(BalanceComponent, { balances, srcToken })
1967
2043
  }
1968
2044
  ),
1969
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2045
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1970
2046
  "div",
1971
2047
  {
1972
2048
  ref: buttonRef,
1973
2049
  className: "bg-black globalBorder rounded-2xl whitespace-nowrap flex items-center p-2 cursor-pointer gap-2",
1974
2050
  onClick: () => setChainListShown((prev) => !prev),
1975
2051
  children: [
1976
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2052
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1977
2053
  "img",
1978
2054
  {
1979
2055
  width: "16",
@@ -1982,17 +2058,17 @@ var SwapPanel = ({
1982
2058
  alt: srcChain?.name
1983
2059
  }
1984
2060
  ),
1985
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: srcChain?.displayName }),
1986
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DownArrowIcon, {})
2061
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: srcChain?.displayName }),
2062
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DownArrowIcon, {})
1987
2063
  ]
1988
2064
  }
1989
2065
  ),
1990
- chainListShown && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2066
+ chainListShown && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1991
2067
  "ul",
1992
2068
  {
1993
2069
  ref: listRef,
1994
2070
  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",
1995
- children: chainListOptions.map((chain, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2071
+ children: chainListOptions.map((chain, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1996
2072
  ChainListElement,
1997
2073
  {
1998
2074
  index,
@@ -2009,9 +2085,9 @@ var SwapPanel = ({
2009
2085
  };
2010
2086
 
2011
2087
  // src/components/TxConfigForm/ErrorField.tsx
2012
- var import_jsx_runtime36 = require("react/jsx-runtime");
2088
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2013
2089
  var ErrorField = ({ error }) => {
2014
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2090
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2015
2091
  "div",
2016
2092
  {
2017
2093
  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"}`,
@@ -2021,15 +2097,15 @@ var ErrorField = ({ error }) => {
2021
2097
  };
2022
2098
 
2023
2099
  // src/components/TxConfigForm/Description.tsx
2024
- var import_jsx_runtime37 = require("react/jsx-runtime");
2100
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2025
2101
  var Description = ({ description }) => {
2026
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex flex-col items-start rounded-lg px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-full flex gap-4 items-start justify-between text-xl", children: description }) });
2102
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col items-start rounded-lg px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "w-full flex gap-4 items-start justify-between text-xl", children: description }) });
2027
2103
  };
2028
2104
 
2029
2105
  // src/components/TxConfigForm/Button.tsx
2030
- var import_jsx_runtime38 = require("react/jsx-runtime");
2106
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2031
2107
  var Button = ({ children, onClick, type, disabled }) => {
2032
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2108
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2033
2109
  "button",
2034
2110
  {
2035
2111
  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",
@@ -2042,14 +2118,15 @@ var Button = ({ children, onClick, type, disabled }) => {
2042
2118
  };
2043
2119
 
2044
2120
  // src/components/TxConfigForm/Form.tsx
2045
- var import_jsx_runtime39 = require("react/jsx-runtime");
2121
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2046
2122
  var Form = ({
2047
2123
  dstChainId,
2048
2124
  dstTokenAddr,
2049
2125
  customContractCalls,
2050
2126
  desc,
2051
2127
  supportedChains,
2052
- onSubmit
2128
+ onSubmit,
2129
+ onClose
2053
2130
  }) => {
2054
2131
  const [signer, setSigner] = (0, import_react10.useState)();
2055
2132
  const [dstChain, setDstChain] = (0, import_react10.useState)();
@@ -2068,6 +2145,7 @@ var Form = ({
2068
2145
  const [formError, setFormError] = (0, import_react10.useState)("");
2069
2146
  const [slippage, setSlippage] = (0, import_react10.useState)("1.5");
2070
2147
  const [feesDetailsShown, setFeesDetailsShown] = (0, import_react10.useState)(false);
2148
+ const [exceedsExpressDeliveryLimit, setExceedsExpressDeliveryLimit] = (0, import_react10.useState)(false);
2071
2149
  const debouncedAmount = useDebounce(amount, 1e3);
2072
2150
  const account = (0, import_wagmi2.useAccount)();
2073
2151
  const { switchChainAsync } = (0, import_wagmi2.useSwitchChain)();
@@ -2116,7 +2194,7 @@ var Form = ({
2116
2194
  toToken: dstTokenAddr,
2117
2195
  paymentToken: paymentToken.address,
2118
2196
  slippage: Number(slippage),
2119
- expressDelivery: expressChecked,
2197
+ expressDelivery: expressChecked && !exceedsExpressDeliveryLimit,
2120
2198
  customContractCalls
2121
2199
  }).then((response) => {
2122
2200
  setRoute(response);
@@ -2172,22 +2250,23 @@ var Form = ({
2172
2250
  const handleSwitchChain = async () => {
2173
2251
  await switchChainAsync({ chainId: Number(srcChain?.chainId) });
2174
2252
  };
2175
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2253
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2176
2254
  "form",
2177
2255
  {
2178
- className: "flex flex-col gap-2 z-10 my-0 mx-auto p-4 rounded-3xl overflow-hidden font-light w-x_mobile sm:w-x_desktop",
2256
+ 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",
2179
2257
  onSubmit: handleSubmit,
2180
2258
  children: [
2181
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2259
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2182
2260
  TopBar,
2183
2261
  {
2184
2262
  signer,
2185
2263
  historyTabShown,
2186
2264
  setHistoryTabShown,
2187
- setSettingsShown
2265
+ setSettingsShown,
2266
+ onClose
2188
2267
  }
2189
2268
  ),
2190
- settingsShown && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2269
+ settingsShown && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2191
2270
  Settings,
2192
2271
  {
2193
2272
  expressChecked,
@@ -2197,9 +2276,9 @@ var Form = ({
2197
2276
  setSlippage
2198
2277
  }
2199
2278
  ),
2200
- historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(History, { signer, supportedChains }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-2", children: [
2201
- desc && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Description, { description: desc }),
2202
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2279
+ historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(History, { signer, supportedChains }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-2", children: [
2280
+ desc && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Description, { description: desc }),
2281
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2203
2282
  SwapPanel,
2204
2283
  {
2205
2284
  amount,
@@ -2211,10 +2290,11 @@ var Form = ({
2211
2290
  balances,
2212
2291
  prices,
2213
2292
  supportedChains,
2214
- setSrcChain
2293
+ setSrcChain,
2294
+ setExceedsExpressDeliveryLimit
2215
2295
  }
2216
2296
  ),
2217
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2297
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2218
2298
  Summary,
2219
2299
  {
2220
2300
  isGettingRoute,
@@ -2223,7 +2303,7 @@ var Form = ({
2223
2303
  dstChain
2224
2304
  }
2225
2305
  ),
2226
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2306
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2227
2307
  FeesDetails,
2228
2308
  {
2229
2309
  route,
@@ -2231,13 +2311,14 @@ var Form = ({
2231
2311
  paymentToken,
2232
2312
  dstToken,
2233
2313
  expressChecked,
2314
+ exceedsExpressDeliveryLimit,
2234
2315
  slippage,
2235
2316
  feesDetailsShown,
2236
2317
  setFeesDetailsShown
2237
2318
  }
2238
2319
  ),
2239
- formError.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ErrorField, { error: formError }),
2240
- signer && srcChain && srcChain.chainId !== account.chainId?.toString() ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Button, { type: "button", onClick: handleSwitchChain, children: "Switch chain" }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2320
+ formError.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ErrorField, { error: formError }),
2321
+ signer && srcChain && srcChain.chainId !== account.chainId?.toString() ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { type: "button", onClick: handleSwitchChain, children: "Switch chain" }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2241
2322
  Button,
2242
2323
  {
2243
2324
  type: "submit",
@@ -2252,7 +2333,7 @@ var Form = ({
2252
2333
  };
2253
2334
 
2254
2335
  // src/components/TxConfigForm/index.tsx
2255
- var import_jsx_runtime40 = require("react/jsx-runtime");
2336
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2256
2337
  var TxConfigForm = ({
2257
2338
  dstChainId,
2258
2339
  dstTokenAddr,
@@ -2274,13 +2355,13 @@ var TxConfigForm = ({
2274
2355
  () => getWagmiConfig(supportedChains),
2275
2356
  supportedChains
2276
2357
  );
2277
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_query.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2358
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_query.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2278
2359
  "div",
2279
2360
  {
2280
2361
  className: "top-0 left-0 right-0 bottom-0 bg-[rgba(0,0,0,0.8)] fixed flex items-center justify-center z-10",
2281
2362
  onClick: onBackdropClick,
2282
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative bg-black rounded-3xl w-lg overflow-auto text-white border-2 border-solid border-[rgba(255,255,255,0.1)]", children: [
2283
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2363
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "relative bg-black rounded-3xl overflow-auto text-white border-2 border-solid border-[rgba(255,255,255,0.1)]", children: [
2364
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2284
2365
  Form,
2285
2366
  {
2286
2367
  dstChainId,
@@ -2288,18 +2369,11 @@ var TxConfigForm = ({
2288
2369
  customContractCalls,
2289
2370
  desc,
2290
2371
  supportedChains,
2291
- onSubmit
2372
+ onSubmit,
2373
+ onClose
2292
2374
  }
2293
2375
  ),
2294
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2295
- "div",
2296
- {
2297
- className: "absolute top-7 right-4 cursor-pointer text-white",
2298
- onClick: onClose,
2299
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CloseIcon, {})
2300
- }
2301
- ),
2302
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PoweredBy, {})
2376
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PoweredBy, {})
2303
2377
  ] })
2304
2378
  }
2305
2379
  ) }) });
@@ -2312,9 +2386,10 @@ var openTxConfigForm = async ({
2312
2386
  supportedChains
2313
2387
  }) => {
2314
2388
  try {
2315
- return await new Promise((resolve) => {
2389
+ return await new Promise(async (resolve) => {
2390
+ await waitForInitialization();
2316
2391
  xswapRoot.render(
2317
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2392
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2318
2393
  TxConfigForm,
2319
2394
  {
2320
2395
  dstChainId,
@@ -2340,7 +2415,7 @@ var openTxConfigForm = async ({
2340
2415
 
2341
2416
  // src/components/TxStatusButton/index.tsx
2342
2417
  var import_react12 = require("react");
2343
- var import_jsx_runtime41 = require("react/jsx-runtime");
2418
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2344
2419
  var TxStatusButton = ({ transaction }) => {
2345
2420
  const {
2346
2421
  fromChain,
@@ -2363,15 +2438,15 @@ var TxStatusButton = ({ transaction }) => {
2363
2438
  () => isDone ? "border border-solid border-x_green_dark" : "border border-solid border-x_blue_dark",
2364
2439
  [isDone]
2365
2440
  );
2366
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-2", onClick: () => setIsWide((x) => !x), children: [
2367
- isWide && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2441
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex gap-2", onClick: () => setIsWide((x) => !x), children: [
2442
+ isWide && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2368
2443
  "div",
2369
2444
  {
2370
2445
  className: `flex items-center min-w-60 sm:w-[520px] text-white h-14 px-4 text-sm gap-3 rounded-xl ${background} ${border}`,
2371
2446
  children: [
2372
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
2373
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
2374
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2447
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
2448
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-2", children: [
2449
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2375
2450
  "img",
2376
2451
  {
2377
2452
  className: "w-5 h-5",
@@ -2379,16 +2454,16 @@ var TxStatusButton = ({ transaction }) => {
2379
2454
  alt: "source chain"
2380
2455
  }
2381
2456
  ),
2382
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromChain }),
2383
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ArrowRightIcon, {}) }),
2384
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
2385
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: toChain })
2457
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: fromChain }),
2458
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ArrowRightIcon, {}) }),
2459
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
2460
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: toChain })
2386
2461
  ] }),
2387
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
2388
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: "Sent" }),
2389
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromAmount }),
2390
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromToken }),
2391
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2462
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-2", children: [
2463
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: "Sent" }),
2464
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: fromAmount }),
2465
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: fromToken }),
2466
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2392
2467
  "img",
2393
2468
  {
2394
2469
  className: "w-5 h-5",
@@ -2398,7 +2473,7 @@ var TxStatusButton = ({ transaction }) => {
2398
2473
  )
2399
2474
  ] })
2400
2475
  ] }),
2401
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2476
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2402
2477
  "a",
2403
2478
  {
2404
2479
  href: explorer,
@@ -2406,21 +2481,21 @@ var TxStatusButton = ({ transaction }) => {
2406
2481
  rel: "noreferrer",
2407
2482
  className: "no-underline cursor-pointer",
2408
2483
  "aria-label": "Show the transaction in the chain explorer",
2409
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ArrowUpRightIcon, {}) })
2484
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ArrowUpRightIcon, {}) })
2410
2485
  }
2411
2486
  )
2412
2487
  ]
2413
2488
  }
2414
2489
  ),
2415
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2490
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2416
2491
  "div",
2417
2492
  {
2418
2493
  className: `text-white rounded-xl cursor-pointer ${background} ${border}`,
2419
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
2420
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ArrowLeftIcon, {}),
2421
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "relative flex items-center justify-center w-9 h-9", children: isDone ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-x_green w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CheckIcon, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
2422
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(XSwapLogo, {}) }),
2423
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CircularProgressIcon, {}) })
2494
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
2495
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ArrowLeftIcon, {}),
2496
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "relative flex items-center justify-center w-9 h-9", children: isDone ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-x_green w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CheckIcon, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
2497
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(XSwapLogo, {}) }),
2498
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute flex items-center justify-center top-0 left-0 right-0 bottom-0 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CircularProgressIcon, {}) })
2424
2499
  ] }) })
2425
2500
  ] })
2426
2501
  }
@@ -2447,14 +2522,14 @@ var updateTransactionDoneInRenderedTransactions = (txHash) => {
2447
2522
  }
2448
2523
  };
2449
2524
  var renderTxStatusButtons = () => {
2450
- const buttons = renderedTransactions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TxStatusButton, { transaction: item }, item.txHash));
2525
+ const buttons = renderedTransactions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TxStatusButton, { transaction: item }, item.txHash));
2451
2526
  txStatusRoot.render(buttons);
2452
2527
  };
2453
2528
 
2454
2529
  // src/components/Skeleton/index.tsx
2455
- var import_jsx_runtime42 = require("react/jsx-runtime");
2530
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2456
2531
  var Skeleton = ({ width, height }) => {
2457
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: `bg-current rounded animate-pulse ${width} ${height}` });
2532
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: `bg-current rounded animate-pulse ${width} ${height}` });
2458
2533
  };
2459
2534
 
2460
2535
  // src/services/integrations/monitoring.ts