@xswap-link/sdk 0.2.2 → 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,32 +58,92 @@ var xswap_config_default = {
58
58
  };
59
59
 
60
60
  // package.json
61
- var version = "0.2.2";
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
- fetch(`${xswap_config_default.apiUrl}/sdk/css?data={"version": "${version}"}`).then(
71
- async (css) => {
72
- const style = document.createElement("style");
73
- style.textContent = await css.text();
74
- document.body.appendChild(style);
96
+ createInitIndicatorRoot();
97
+ Promise.all([
98
+ createStyleElement(),
99
+ createXswapRoot(),
100
+ createTxStatusRoot()
101
+ ]).then(() => {
102
+ initCompleted = true;
103
+ });
104
+ };
105
+ var waitForInitialization = async () => {
106
+ if (!initCompleted) {
107
+ displayInitIndicator(true);
108
+ while (!initCompleted) {
109
+ await new Promise((resolve) => setTimeout(resolve, 10));
75
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
+ })}`
76
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 () => {
77
126
  const xswapElement = document.createElement("div");
78
127
  xswapElement.setAttribute("id", "xswap-modal");
79
128
  document.body.appendChild(xswapElement);
80
129
  xswapRoot = (0, import_client.createRoot)(xswapElement);
130
+ };
131
+ var createTxStatusRoot = async () => {
81
132
  const txStatusElement = document.createElement("div");
82
133
  txStatusElement.setAttribute("id", "xswap-tx-status");
83
134
  txStatusElement.setAttribute("class", "xswap-tx-status");
84
135
  document.body.appendChild(txStatusElement);
85
136
  txStatusRoot = (0, import_client.createRoot)(txStatusElement);
86
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
+ };
87
147
 
88
148
  // src/models/Addresses.ts
89
149
  var ContractName = /* @__PURE__ */ ((ContractName2) => {
@@ -171,31 +231,7 @@ async function getPrices(payload) {
171
231
  var import_ethers3 = require("ethers");
172
232
 
173
233
  // src/utils/contracts.ts
174
- var import_ethers2 = require("ethers");
175
-
176
- // src/utils/numbers.ts
177
- var import_bignumber = require("bignumber.js");
178
234
  var import_ethers = require("ethers");
179
- var safeBigNumberFrom = (value) => {
180
- import_bignumber.BigNumber.config({ DECIMAL_PLACES: 0 });
181
- return import_ethers.BigNumber.from(new import_bignumber.BigNumber(value).div(1).toFixed());
182
- };
183
- var weiToHumanReadable = ({
184
- amount,
185
- decimals,
186
- precisionFractionalPlaces,
187
- prettifySmallNumber = false
188
- }) => {
189
- const decimalsFactor = Math.pow(10, decimals);
190
- import_bignumber.BigNumber.config({ DECIMAL_PLACES: precisionFractionalPlaces });
191
- const res = new import_bignumber.BigNumber(amount).div(decimalsFactor).toFixed();
192
- if (prettifySmallNumber && res === "0" && amount !== "0") {
193
- return `<${(1 / 10 ** precisionFractionalPlaces).toFixed(
194
- precisionFractionalPlaces
195
- )}`;
196
- }
197
- return res;
198
- };
199
235
 
200
236
  // src/contracts/abi/BatchQuery.json
201
237
  var BatchQuery_default = [
@@ -525,6 +561,7 @@ var NUMBER_INPUT_REGEX = /^[0-9]*[.,]?[0-9]*$/;
525
561
  var SLIPPAGE_PRESETS = [0.5, 1.5, 3];
526
562
  var DELIVERY_TIME = 30 * 1e3 * 60;
527
563
  var EXPRESS_DELIVERY_TIME = 30 * 1e3;
564
+ var EXPRESS_DELIVERY_LIMIT = 1e3;
528
565
  var BALANCES_CHUNK_SIZE = 500;
529
566
  var ROUTE_TIMEOUT_MS = 5e3;
530
567
  var MINIMUM_DISPLAYED_TOKEN_AMOUNT = 1e-4;
@@ -541,7 +578,7 @@ var MSG_RECEIVED_EVENT_ABI = [
541
578
  ];
542
579
 
543
580
  // src/utils/contracts.ts
544
- var IERC20 = new import_ethers2.ethers.utils.Interface(ERC20Abi);
581
+ var IERC20 = new import_ethers.ethers.utils.Interface(ERC20Abi);
545
582
  var getBalances = async (chain, wallet) => {
546
583
  return {
547
584
  ...await getNativeBalance(chain, wallet),
@@ -550,10 +587,10 @@ var getBalances = async (chain, wallet) => {
550
587
  };
551
588
  var getNativeBalance = async (chain, wallet) => {
552
589
  const native = chain.tokens.find(
553
- ({ address }) => address === import_ethers2.ethers.constants.AddressZero
590
+ ({ address }) => address === import_ethers.ethers.constants.AddressZero
554
591
  );
555
592
  if (native) {
556
- const provider = import_ethers2.ethers.getDefaultProvider(chain.publicRpcUrls[0]);
593
+ const provider = import_ethers.ethers.getDefaultProvider(chain.publicRpcUrls[0]);
557
594
  const balance = await provider.getBalance(wallet);
558
595
  return {
559
596
  [native.address]: balance
@@ -563,7 +600,7 @@ var getNativeBalance = async (chain, wallet) => {
563
600
  };
564
601
  var getErc20Balances = async (chain, wallet) => {
565
602
  const erc20Tokens = chain.tokens.filter(
566
- ({ address }) => address !== import_ethers2.ethers.constants.AddressZero
603
+ ({ address }) => address !== import_ethers.ethers.constants.AddressZero
567
604
  );
568
605
  const tokenChunks = chunkArray(erc20Tokens, BALANCES_CHUNK_SIZE);
569
606
  const promises = tokenChunks.map(async (tokenChunk) => {
@@ -574,17 +611,17 @@ var getErc20Balances = async (chain, wallet) => {
574
611
  const contractAddress = ADDRESSES[chain.chainId]?.BatchQuery;
575
612
  const rpcUrl = chain.publicRpcUrls[0];
576
613
  if (contractAddress && rpcUrl) {
577
- const contract = new import_ethers2.ethers.Contract(
614
+ const contract = new import_ethers.ethers.Contract(
578
615
  contractAddress,
579
616
  BatchQueryAbi,
580
- import_ethers2.ethers.getDefaultProvider(rpcUrl)
617
+ import_ethers.ethers.getDefaultProvider(rpcUrl)
581
618
  );
582
619
  return await contract["batchQuery"](tokenAddresses, calldatas);
583
620
  }
584
621
  return Promise.resolve();
585
622
  });
586
623
  const tokenBalances = (await Promise.all(promises)).flat().map(
587
- (encodedBalance) => import_ethers2.ethers.utils.defaultAbiCoder.decode(["uint256"], encodedBalance)[0]
624
+ (encodedBalance) => import_ethers.ethers.utils.defaultAbiCoder.decode(["uint256"], encodedBalance)[0]
588
625
  );
589
626
  const balances = {};
590
627
  erc20Tokens.forEach((token, index) => {
@@ -593,6 +630,30 @@ var getErc20Balances = async (chain, wallet) => {
593
630
  return balances;
594
631
  };
595
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
+
596
657
  // src/utils/strings.ts
597
658
  var shortAddress = (address) => {
598
659
  return `${address?.substring(0, 5)}...${address?.substring(
@@ -631,9 +692,9 @@ var getDate = (blockTimestamp) => {
631
692
  var import_ethers5 = require("ethers");
632
693
 
633
694
  // src/components/Alert/index.tsx
634
- var import_jsx_runtime = require("react/jsx-runtime");
695
+ var import_jsx_runtime3 = require("react/jsx-runtime");
635
696
  var Alert = ({ desc }) => {
636
- 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: [
637
698
  "\u26A0\uFE0F ",
638
699
  desc
639
700
  ] });
@@ -680,45 +741,24 @@ var mapTransports = (chains) => {
680
741
  return transports;
681
742
  };
682
743
 
683
- // src/components/icons/CloseIcon.tsx
684
- var import_jsx_runtime2 = require("react/jsx-runtime");
685
- var CloseIcon = () => {
686
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
687
- "svg",
688
- {
689
- height: "18",
690
- width: "18",
691
- xmlns: "http://www.w3.org/2000/svg",
692
- viewBox: "0 0 10.312 8.319",
693
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
694
- "path",
695
- {
696
- fill: "white",
697
- 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"
698
- }
699
- )
700
- }
701
- );
702
- };
703
-
704
744
  // src/components/icons/ArrowRightIcon.tsx
705
- var import_jsx_runtime3 = require("react/jsx-runtime");
745
+ var import_jsx_runtime4 = require("react/jsx-runtime");
706
746
  var ArrowRightIcon = () => {
707
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
747
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
708
748
  "svg",
709
749
  {
710
750
  xmlns: "http://www.w3.org/2000/svg",
711
751
  viewBox: "0 0 448 512",
712
752
  fill: "currentColor",
713
- 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" })
714
754
  }
715
755
  );
716
756
  };
717
757
 
718
758
  // src/components/icons/ArrowDownIcon.tsx
719
- var import_jsx_runtime4 = require("react/jsx-runtime");
759
+ var import_jsx_runtime5 = require("react/jsx-runtime");
720
760
  var ArrowDownIcon = () => {
721
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
761
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
722
762
  "svg",
723
763
  {
724
764
  width: "20",
@@ -726,7 +766,7 @@ var ArrowDownIcon = () => {
726
766
  viewBox: "0 0 20 20",
727
767
  fill: "none",
728
768
  xmlns: "http://www.w3.org/2000/svg",
729
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
769
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
730
770
  "path",
731
771
  {
732
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",
@@ -738,9 +778,9 @@ var ArrowDownIcon = () => {
738
778
  };
739
779
 
740
780
  // src/components/icons/ArrowLeftIcon.tsx
741
- var import_jsx_runtime5 = require("react/jsx-runtime");
781
+ var import_jsx_runtime6 = require("react/jsx-runtime");
742
782
  var ArrowLeftIcon = () => {
743
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
783
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
744
784
  "svg",
745
785
  {
746
786
  width: "10",
@@ -748,7 +788,7 @@ var ArrowLeftIcon = () => {
748
788
  viewBox: "0 0 10 16",
749
789
  fill: "none",
750
790
  xmlns: "http://www.w3.org/2000/svg",
751
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
791
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
752
792
  "path",
753
793
  {
754
794
  d: "M0.5 8L8.13251 15.5L9.5 14.1562L3.20318 8L9.4682 1.84375L8.10071 0.5L0.5 8Z",
@@ -760,44 +800,44 @@ var ArrowLeftIcon = () => {
760
800
  };
761
801
 
762
802
  // src/components/icons/ArrowUpRightIcon.tsx
763
- var import_jsx_runtime6 = require("react/jsx-runtime");
803
+ var import_jsx_runtime7 = require("react/jsx-runtime");
764
804
  var ArrowUpRightIcon = () => {
765
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
805
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
766
806
  "svg",
767
807
  {
768
808
  xmlns: "http://www.w3.org/2000/svg",
769
809
  viewBox: "0 0 512 512",
770
810
  fill: "currentColor",
771
- 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" })
772
812
  }
773
813
  );
774
814
  };
775
815
 
776
816
  // src/components/icons/CheckIcon.tsx
777
- var import_jsx_runtime7 = require("react/jsx-runtime");
817
+ var import_jsx_runtime8 = require("react/jsx-runtime");
778
818
  var CheckIcon = () => {
779
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
819
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
780
820
  "svg",
781
821
  {
782
822
  xmlns: "http://www.w3.org/2000/svg",
783
823
  viewBox: "0 0 448 512",
784
824
  fill: "currentColor",
785
- 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" })
786
826
  }
787
827
  );
788
828
  };
789
829
 
790
830
  // src/components/icons/ChevronDownIcon.tsx
791
- var import_jsx_runtime8 = require("react/jsx-runtime");
831
+ var import_jsx_runtime9 = require("react/jsx-runtime");
792
832
  var ChevronDownIcon = () => {
793
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
833
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
794
834
  "svg",
795
835
  {
796
836
  width: "12",
797
837
  height: "12",
798
838
  xmlns: "http://www.w3.org/2000/svg",
799
839
  viewBox: "0 0 512 512",
800
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
840
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
801
841
  "path",
802
842
  {
803
843
  fill: "currentColor",
@@ -809,9 +849,9 @@ var ChevronDownIcon = () => {
809
849
  };
810
850
 
811
851
  // src/components/icons/ChevronUpIcon.tsx
812
- var import_jsx_runtime9 = require("react/jsx-runtime");
852
+ var import_jsx_runtime10 = require("react/jsx-runtime");
813
853
  var ChevronUpIcon = () => {
814
- 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)(
815
855
  "path",
816
856
  {
817
857
  fill: "currentColor",
@@ -821,9 +861,9 @@ var ChevronUpIcon = () => {
821
861
  };
822
862
 
823
863
  // src/components/icons/CircularProgressIcon.tsx
824
- var import_jsx_runtime10 = require("react/jsx-runtime");
864
+ var import_jsx_runtime11 = require("react/jsx-runtime");
825
865
  var CircularProgressIcon = () => {
826
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
866
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
827
867
  "svg",
828
868
  {
829
869
  className: "animate-spin-slow text-white",
@@ -833,7 +873,7 @@ var CircularProgressIcon = () => {
833
873
  fill: "none",
834
874
  xmlns: "http://www.w3.org/2000/svg",
835
875
  children: [
836
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
876
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
837
877
  "circle",
838
878
  {
839
879
  cx: "16.5",
@@ -844,16 +884,37 @@ var CircularProgressIcon = () => {
844
884
  strokeWidth: "2"
845
885
  }
846
886
  ),
847
- /* @__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" })
848
888
  ]
849
889
  }
850
890
  );
851
891
  };
852
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
+
853
914
  // src/components/icons/CoinsIcon.tsx
854
- var import_jsx_runtime11 = require("react/jsx-runtime");
915
+ var import_jsx_runtime13 = require("react/jsx-runtime");
855
916
  var CoinsIcon = () => {
856
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
917
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
857
918
  "svg",
858
919
  {
859
920
  width: "24",
@@ -861,7 +922,7 @@ var CoinsIcon = () => {
861
922
  viewBox: "0 0 24 24",
862
923
  fill: "none",
863
924
  xmlns: "http://www.w3.org/2000/svg",
864
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
925
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
865
926
  "path",
866
927
  {
867
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",
@@ -874,9 +935,9 @@ var CoinsIcon = () => {
874
935
  };
875
936
 
876
937
  // src/components/icons/DownArrorIcon.tsx
877
- var import_jsx_runtime12 = require("react/jsx-runtime");
938
+ var import_jsx_runtime14 = require("react/jsx-runtime");
878
939
  var DownArrowIcon = () => {
879
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
940
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
880
941
  "svg",
881
942
  {
882
943
  width: 16,
@@ -884,7 +945,7 @@ var DownArrowIcon = () => {
884
945
  viewBox: "0 0 16 16",
885
946
  fill: "none",
886
947
  xmlns: "http://www.w3.org/2000/svg",
887
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
948
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
888
949
  "path",
889
950
  {
890
951
  d: "M8.00008 9.76921L5.06421 6.83334H10.9359L8.00008 9.76921Z",
@@ -897,9 +958,9 @@ var DownArrowIcon = () => {
897
958
  };
898
959
 
899
960
  // src/components/icons/HistoryIcon.tsx
900
- var import_jsx_runtime13 = require("react/jsx-runtime");
961
+ var import_jsx_runtime15 = require("react/jsx-runtime");
901
962
  var HistoryIcon = () => {
902
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
963
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
903
964
  "svg",
904
965
  {
905
966
  width: "20",
@@ -907,7 +968,7 @@ var HistoryIcon = () => {
907
968
  viewBox: "0 0 20 20",
908
969
  fill: "none",
909
970
  xmlns: "http://www.w3.org/2000/svg",
910
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
971
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
911
972
  "path",
912
973
  {
913
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",
@@ -919,12 +980,12 @@ var HistoryIcon = () => {
919
980
  };
920
981
 
921
982
  // src/components/icons/HourGlassIcon.tsx
922
- var import_jsx_runtime14 = require("react/jsx-runtime");
983
+ var import_jsx_runtime16 = require("react/jsx-runtime");
923
984
 
924
985
  // src/components/icons/SearchIcon.tsx
925
- var import_jsx_runtime15 = require("react/jsx-runtime");
986
+ var import_jsx_runtime17 = require("react/jsx-runtime");
926
987
  var SearchIcon = () => {
927
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
988
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
928
989
  "svg",
929
990
  {
930
991
  xmlns: "http://www.w3.org/2000/svg",
@@ -932,18 +993,18 @@ var SearchIcon = () => {
932
993
  width: "24",
933
994
  viewBox: "0 -960 960 960",
934
995
  fill: "#ffffffc0",
935
- 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" })
936
997
  }
937
998
  );
938
999
  };
939
1000
 
940
1001
  // src/components/icons/XMarkIcon.tsx
941
- var import_jsx_runtime16 = require("react/jsx-runtime");
1002
+ var import_jsx_runtime18 = require("react/jsx-runtime");
942
1003
 
943
1004
  // src/components/icons/PercentageIcon.tsx
944
- var import_jsx_runtime17 = require("react/jsx-runtime");
1005
+ var import_jsx_runtime19 = require("react/jsx-runtime");
945
1006
  var PercentageIcon = () => {
946
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1007
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
947
1008
  "svg",
948
1009
  {
949
1010
  width: "12",
@@ -952,14 +1013,14 @@ var PercentageIcon = () => {
952
1013
  fill: "none",
953
1014
  xmlns: "http://www.w3.org/2000/svg",
954
1015
  children: [
955
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1016
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
956
1017
  "path",
957
1018
  {
958
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",
959
1020
  fill: "url(#paint0_linear_32_1164)"
960
1021
  }
961
1022
  ),
962
- /* @__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)(
963
1024
  "linearGradient",
964
1025
  {
965
1026
  id: "paint0_linear_32_1164",
@@ -969,8 +1030,8 @@ var PercentageIcon = () => {
969
1030
  y2: "1.31767",
970
1031
  gradientUnits: "userSpaceOnUse",
971
1032
  children: [
972
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("stop", { stopColor: "#3681C6" }),
973
- /* @__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" })
974
1035
  ]
975
1036
  }
976
1037
  ) })
@@ -980,9 +1041,9 @@ var PercentageIcon = () => {
980
1041
  };
981
1042
 
982
1043
  // src/components/icons/TimerIcon.tsx
983
- var import_jsx_runtime18 = require("react/jsx-runtime");
1044
+ var import_jsx_runtime20 = require("react/jsx-runtime");
984
1045
  var TimerIcon = () => {
985
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1046
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
986
1047
  "svg",
987
1048
  {
988
1049
  xmlns: "http://www.w3.org/2000/svg",
@@ -990,15 +1051,15 @@ var TimerIcon = () => {
990
1051
  viewBox: "0 -960 960 960",
991
1052
  width: "16",
992
1053
  fill: "currentColor",
993
- 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" })
994
1055
  }
995
1056
  );
996
1057
  };
997
1058
 
998
1059
  // src/components/icons/InfoIcon.tsx
999
- var import_jsx_runtime19 = require("react/jsx-runtime");
1060
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1000
1061
  var InfoIcon = () => {
1001
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1062
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1002
1063
  "svg",
1003
1064
  {
1004
1065
  width: "28",
@@ -1006,15 +1067,15 @@ var InfoIcon = () => {
1006
1067
  viewBox: "0 0 28 28",
1007
1068
  xmlns: "http://www.w3.org/2000/svg",
1008
1069
  fill: "currentColor",
1009
- 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" })
1010
1071
  }
1011
1072
  );
1012
1073
  };
1013
1074
 
1014
1075
  // src/components/icons/SettingsIcon.tsx
1015
- var import_jsx_runtime20 = require("react/jsx-runtime");
1076
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1016
1077
  var SettingsIcon = () => {
1017
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1078
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1018
1079
  "svg",
1019
1080
  {
1020
1081
  width: "18",
@@ -1022,7 +1083,7 @@ var SettingsIcon = () => {
1022
1083
  viewBox: "0 0 18 18",
1023
1084
  fill: "none",
1024
1085
  xmlns: "http://www.w3.org/2000/svg",
1025
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1086
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1026
1087
  "path",
1027
1088
  {
1028
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",
@@ -1034,9 +1095,9 @@ var SettingsIcon = () => {
1034
1095
  };
1035
1096
 
1036
1097
  // src/components/icons/XSwapBadgeIcon.tsx
1037
- var import_jsx_runtime21 = require("react/jsx-runtime");
1098
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1038
1099
  var XSwapBadgeIcon = () => {
1039
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1100
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1040
1101
  "svg",
1041
1102
  {
1042
1103
  version: "1.2",
@@ -1045,8 +1106,8 @@ var XSwapBadgeIcon = () => {
1045
1106
  width: "80",
1046
1107
  height: "27",
1047
1108
  children: [
1048
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("title", { children: "xswap-badge" }),
1049
- /* @__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)(
1050
1111
  "image",
1051
1112
  {
1052
1113
  width: "80",
@@ -1055,17 +1116,17 @@ var XSwapBadgeIcon = () => {
1055
1116
  href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAaCAYAAAAg0tunAAAAAXNSR0IB2cksfwAADFhJREFUeJzlWAl4VNUVPgnJZDKZ7MlMkskyJJNMk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)("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" })
1060
1121
  ]
1061
1122
  }
1062
1123
  );
1063
1124
  };
1064
1125
 
1065
1126
  // src/components/icons/ChainlinkCCIPIcon.tsx
1066
- var import_jsx_runtime22 = require("react/jsx-runtime");
1127
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1067
1128
  var ChainlinkCCIPIcon = () => {
1068
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1069
1130
  "svg",
1070
1131
  {
1071
1132
  version: "1.2",
@@ -1074,8 +1135,8 @@ var ChainlinkCCIPIcon = () => {
1074
1135
  width: "67",
1075
1136
  height: "27",
1076
1137
  children: [
1077
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("title", { children: "chainlink-CCIP" }),
1078
- /* @__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)(
1079
1140
  "image",
1080
1141
  {
1081
1142
  width: "67",
@@ -1084,17 +1145,17 @@ var ChainlinkCCIPIcon = () => {
1084
1145
  href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAbCAYAAAAnFzLpAAAAAXNSR0IB2cksfwAADPtJREFUeJzdWQtUlcUWngNItexilpq6gsrKFLVCEAgFRBBMeYsooGJKlqZi6kUzV2YpGg/l+qCXUqGGXutippW3ViGvcw7ncHg/BI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kzWzFzJP9/dXP+/1rU/0r5Dy2/8Z6sDkzgAAAAAElFTkSuQmCC"
1085
1146
  }
1086
1147
  ) }),
1087
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("style", {}),
1088
- /* @__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" })
1089
1150
  ]
1090
1151
  }
1091
1152
  );
1092
1153
  };
1093
1154
 
1094
1155
  // src/components/icons/XSwapLogo.tsx
1095
- var import_jsx_runtime23 = require("react/jsx-runtime");
1156
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1096
1157
  var XSwapLogo = () => {
1097
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1158
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1098
1159
  "svg",
1099
1160
  {
1100
1161
  version: "1.1",
@@ -1104,7 +1165,7 @@ var XSwapLogo = () => {
1104
1165
  y: "0px",
1105
1166
  viewBox: "0 0 50 50",
1106
1167
  enableBackground: "new 0 0 50 50",
1107
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1168
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1108
1169
  "image",
1109
1170
  {
1110
1171
  id: "image0",
@@ -1118,13 +1179,13 @@ var XSwapLogo = () => {
1118
1179
  };
1119
1180
 
1120
1181
  // src/components/TxConfigForm/PoweredBy.tsx
1121
- var import_jsx_runtime24 = require("react/jsx-runtime");
1182
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1122
1183
  var PoweredBy = () => {
1123
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex justify-center items-center gap-2 my-3", children: [
1124
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-x_grey", children: "Powered by" }),
1125
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(XSwapBadgeIcon, {}),
1126
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: "\u2715" }),
1127
- /* @__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, {})
1128
1189
  ] });
1129
1190
  };
1130
1191
 
@@ -1156,7 +1217,7 @@ var import_bignumber2 = __toESM(require("bignumber.js"));
1156
1217
 
1157
1218
  // src/components/TxConfigForm/HistoryCard.tsx
1158
1219
  var import_react2 = require("react");
1159
- var import_jsx_runtime25 = require("react/jsx-runtime");
1220
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1160
1221
  var HistoryCard = ({ transaction, supportedChains }) => {
1161
1222
  const date = getDate(transaction.timestamp);
1162
1223
  const supportedTokens = (0, import_react2.useMemo)(() => {
@@ -1202,14 +1263,14 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1202
1263
  const targetChainData = supportedChains.find(
1203
1264
  (chain) => chain.chainId === transaction.targetChainId
1204
1265
  );
1205
- 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: [
1206
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
1207
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "text-sm sm:text-base", children: date }),
1208
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1209
- 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" }) }),
1210
- 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" }) }),
1211
- 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" }) }),
1212
- /* @__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)(
1213
1274
  "a",
1214
1275
  {
1215
1276
  href: `${supportedChains.find(
@@ -1219,15 +1280,15 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1219
1280
  rel: "noreferrer",
1220
1281
  className: "ml-2 no-underline",
1221
1282
  "aria-label": "Show the transaction in the chain explorer",
1222
- 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, {}) })
1223
1284
  }
1224
1285
  )
1225
1286
  ] })
1226
1287
  ] }),
1227
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex justify-between flex-wrap gap-2", children: [
1228
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1229
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1230
- /* @__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)(
1231
1292
  "img",
1232
1293
  {
1233
1294
  src: sourceChainData?.image,
@@ -1235,11 +1296,11 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1235
1296
  className: "w-5 h-5 mr-1"
1236
1297
  }
1237
1298
  ),
1238
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: sourceChainData?.displayName })
1299
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: sourceChainData?.displayName })
1239
1300
  ] }),
1240
- /* @__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, {}) }),
1241
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center", children: [
1242
- /* @__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)(
1243
1304
  "img",
1244
1305
  {
1245
1306
  src: targetChainData?.image,
@@ -1247,35 +1308,35 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1247
1308
  className: "w-5 h-5 mr-1"
1248
1309
  }
1249
1310
  ),
1250
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: targetChainData?.displayName })
1311
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: targetChainData?.displayName })
1251
1312
  ] })
1252
1313
  ] }),
1253
- /* @__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: [
1254
- /* @__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: [
1255
1316
  Number(transferredAmount) < MINIMUM_DISPLAYED_TOKEN_AMOUNT ? `<${MINIMUM_DISPLAYED_TOKEN_AMOUNT}` : transferredAmount,
1256
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "ml-1", children: tokenData?.symbol }),
1257
- 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)(
1258
1319
  "img",
1259
1320
  {
1260
1321
  src: tokenData?.image,
1261
1322
  alt: tokenData?.name || "",
1262
1323
  className: "w-5 h-5 ml-1"
1263
1324
  }
1264
- ) : /* @__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) })
1265
1326
  ] }),
1266
- transaction.tokenOutAddress && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1267
- /* @__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, {}) }),
1268
- /* @__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: [
1269
1330
  Number(receivedAmount) < 1e-4 ? "<0.0001" : receivedAmount,
1270
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "ml-1", children: tokenOutData?.symbol }),
1271
- 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)(
1272
1333
  "img",
1273
1334
  {
1274
1335
  src: tokenOutData?.image,
1275
1336
  alt: tokenOutData?.name || "",
1276
1337
  className: "w-5 h-5 ml-1"
1277
1338
  }
1278
- ) : /* @__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) })
1279
1340
  ] })
1280
1341
  ] })
1281
1342
  ] }) })
@@ -1284,7 +1345,7 @@ var HistoryCard = ({ transaction, supportedChains }) => {
1284
1345
  };
1285
1346
 
1286
1347
  // src/components/TxConfigForm/History.tsx
1287
- var import_jsx_runtime26 = require("react/jsx-runtime");
1348
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1288
1349
  var History = ({ signer, supportedChains }) => {
1289
1350
  const [fetchedHistory, setFetchedHistory] = (0, import_react3.useState)();
1290
1351
  const [historyLoadedOnce, setHistoryLoadedOnce] = (0, import_react3.useState)(false);
@@ -1336,11 +1397,11 @@ var History = ({ signer, supportedChains }) => {
1336
1397
  return () => clearInterval(timer);
1337
1398
  }, [signer, fetchHistory, getHistory, historyLoadedOnce]);
1338
1399
  if (!signer)
1339
- 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" });
1340
- 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: [
1341
- 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..." }),
1342
- !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, {}) }),
1343
- 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)(
1344
1405
  HistoryCard,
1345
1406
  {
1346
1407
  transaction,
@@ -1352,39 +1413,41 @@ var History = ({ signer, supportedChains }) => {
1352
1413
  };
1353
1414
 
1354
1415
  // src/components/TxConfigForm/TopBar.tsx
1355
- var import_jsx_runtime27 = require("react/jsx-runtime");
1416
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1356
1417
  var TopBar = ({
1357
1418
  signer,
1358
1419
  setSettingsShown,
1359
1420
  setHistoryTabShown,
1360
- historyTabShown
1421
+ historyTabShown,
1422
+ onClose
1361
1423
  }) => {
1362
- 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: [
1363
- /* @__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` }),
1364
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
1365
- !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)(
1366
1428
  "div",
1367
1429
  {
1368
1430
  onClick: () => setSettingsShown(true),
1369
1431
  className: "flex items-center text-xs gap-1 cursor-pointer",
1370
- 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, {}) })
1371
1433
  }
1372
1434
  ),
1373
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1435
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1374
1436
  "div",
1375
1437
  {
1376
1438
  onClick: () => setHistoryTabShown((x) => !x),
1377
1439
  className: "flex items-center text-sm gap-1 cursor-pointer",
1378
- 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" })
1379
1441
  }
1380
- )
1442
+ ),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cursor-pointer text-white", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CloseIcon, {}) })
1381
1444
  ] })
1382
1445
  ] });
1383
1446
  };
1384
1447
 
1385
1448
  // src/components/TxConfigForm/Settings.tsx
1386
1449
  var import_react4 = require("react");
1387
- var import_jsx_runtime28 = require("react/jsx-runtime");
1450
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1388
1451
  var Settings = ({
1389
1452
  setSlippage,
1390
1453
  setSettingsShown,
@@ -1401,22 +1464,22 @@ var Settings = ({
1401
1464
  );
1402
1465
  }
1403
1466
  }, [slippageActivePresetIndex, usingSlippageInput]);
1404
- 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: [
1405
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex justify-between", children: [
1406
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-base", children: "Settings" }),
1407
- /* @__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)(
1408
1471
  "div",
1409
1472
  {
1410
1473
  className: "cursor-pointer",
1411
1474
  onClick: () => setSettingsShown(false),
1412
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CloseIcon, {})
1475
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CloseIcon, {})
1413
1476
  }
1414
1477
  )
1415
1478
  ] }),
1416
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
1417
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2 items-center", children: [
1418
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-sm text-[rgba(255,255,255,0.6)]", children: "Express delivery" }),
1419
- /* @__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)(
1420
1483
  "span",
1421
1484
  {
1422
1485
  className: "inline-flex w-14 h-9 p-3 relative align-middle box-border overflow-hidden cursor-pointer",
@@ -1424,8 +1487,8 @@ var Settings = ({
1424
1487
  setExpressChecked((x) => !x);
1425
1488
  },
1426
1489
  children: [
1427
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "h-full, w-full rounded-lg bg-[rgba(255,255,255,0.3)]" }),
1428
- /* @__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)(
1429
1492
  "span",
1430
1493
  {
1431
1494
  className: `transition-all w-5 h-5 rounded-full absolute translate-y-[-4px]
@@ -1436,15 +1499,15 @@ var Settings = ({
1436
1499
  }
1437
1500
  ) })
1438
1501
  ] }),
1439
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-4", children: [
1440
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InfoIcon, {}) }),
1441
- /* @__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." })
1442
1505
  ] })
1443
1506
  ] }),
1444
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-2 ", children: [
1445
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: " text-[rgba(255,255,255,0.6)] text-sm", children: "Slippage" }),
1446
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-2", children: [
1447
- /* @__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)(
1448
1511
  "div",
1449
1512
  {
1450
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]" : ""}`,
@@ -1456,8 +1519,8 @@ var Settings = ({
1456
1519
  },
1457
1520
  index
1458
1521
  )) }),
1459
- /* @__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: [
1460
- /* @__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)(
1461
1524
  "input",
1462
1525
  {
1463
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",
@@ -1476,16 +1539,16 @@ var Settings = ({
1476
1539
  }
1477
1540
  }
1478
1541
  ),
1479
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PercentageIcon, {})
1542
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PercentageIcon, {})
1480
1543
  ] })
1481
1544
  ] }),
1482
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex gap-4", children: [
1483
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "min-w-[26px] min-h-[26px] text-[#ffa726]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InfoIcon, {}) }),
1484
- /* @__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: [
1485
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.",
1486
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("br", {}),
1549
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("br", {}),
1487
1550
  " ",
1488
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("br", {}),
1551
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("br", {}),
1489
1552
  "If the trade fails due to too-low slippage, you will receive USDC on the destination chain."
1490
1553
  ] })
1491
1554
  ] })
@@ -1494,23 +1557,24 @@ var Settings = ({
1494
1557
  };
1495
1558
 
1496
1559
  // src/components/TxConfigForm/FeesDetails.tsx
1497
- var import_jsx_runtime29 = require("react/jsx-runtime");
1560
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1498
1561
  var FeesDetails = ({
1499
1562
  isGettingRoute,
1500
1563
  route,
1501
1564
  paymentToken,
1502
1565
  dstToken,
1503
1566
  expressChecked,
1567
+ exceedsExpressDeliveryLimit,
1504
1568
  slippage,
1505
1569
  feesDetailsShown,
1506
1570
  setFeesDetailsShown
1507
1571
  }) => {
1508
- 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: [
1509
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full items-center justify-between text-xs sm:text-sm ", children: [
1510
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-1 font-medium text-white opacity-60", children: [
1511
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CoinsIcon, {}),
1512
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "mr-1", children: "Fees:" }),
1513
- 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({
1514
1578
  amount: safeBigNumberFrom(
1515
1579
  route?.xSwapFees.xSwapFee.nativeFee || "0"
1516
1580
  ).add(safeBigNumberFrom(route?.xSwapFees.ccipFee || "0")).add(
@@ -1520,61 +1584,62 @@ var FeesDetails = ({
1520
1584
  precisionFractionalPlaces: 5
1521
1585
  })} ${paymentToken?.symbol}`
1522
1586
  ] }),
1523
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-1 items-center", children: [
1524
- /* @__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)(
1525
1589
  "div",
1526
1590
  {
1527
- 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"}`,
1528
1592
  children: [
1529
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TimerIcon, {}),
1530
- expressChecked ? "Fast ~ 30sec " : "Normal ~ 30min"
1593
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimerIcon, {}),
1594
+ expressChecked && !exceedsExpressDeliveryLimit ? "Fast ~ 30sec " : "Normal ~ 30min"
1531
1595
  ]
1532
1596
  }
1533
1597
  ),
1534
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1598
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1535
1599
  "div",
1536
1600
  {
1537
1601
  onClick: () => setFeesDetailsShown((x) => !x),
1538
1602
  className: "font-medium text-white opacity-60 cursor-pointer flex items-center w-[15px] h-[9px]",
1539
- 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, {})
1540
1604
  }
1541
1605
  )
1542
1606
  ] })
1543
1607
  ] }),
1544
- feesDetailsShown && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full items-center justify-between ", children: [
1545
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1546
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1547
- "CCIP Fee:",
1548
- ` ${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({
1549
1613
  amount: route?.xSwapFees.ccipFee || "0",
1550
1614
  decimals: 18,
1551
1615
  precisionFractionalPlaces: 5
1552
- })} ${paymentToken?.symbol}`
1616
+ })} ${paymentToken?.symbol}` })
1553
1617
  ] }),
1554
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1555
- "Native Fee:",
1556
- ` ${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({
1557
1621
  amount: route?.xSwapFees.xSwapFee.nativeFee || "0",
1558
1622
  decimals: 18,
1559
1623
  precisionFractionalPlaces: 5
1560
- })} ${paymentToken?.symbol}`
1624
+ })} ${paymentToken?.symbol}` })
1561
1625
  ] })
1562
1626
  ] }),
1563
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col text-[10px] gap-1", children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1565
- "Slippage: ",
1566
- `${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}%` })
1567
1631
  ] }),
1568
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "font-medium text-white opacity-60", children: [
1569
- "Min amount out:",
1570
- " ",
1571
- weiToHumanReadable({
1572
- amount: route?.minAmountOut || "0",
1573
- decimals: dstToken?.decimals || 18,
1574
- precisionFractionalPlaces: 5
1575
- }),
1576
- " ",
1577
- 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
+ ] })
1578
1643
  ] })
1579
1644
  ] })
1580
1645
  ] })
@@ -1586,24 +1651,32 @@ var import_react6 = require("react");
1586
1651
 
1587
1652
  // src/components/TxConfigForm/UsdPrice.tsx
1588
1653
  var import_react5 = require("react");
1589
- var import_jsx_runtime30 = require("react/jsx-runtime");
1654
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1590
1655
  var UsdPrice = ({
1591
1656
  prices,
1592
1657
  token,
1593
1658
  amount = "0",
1594
- loading = false
1659
+ loading = false,
1660
+ type,
1661
+ setExceedsExpressDeliveryLimit
1595
1662
  }) => {
1596
1663
  const [usdPrice, setUsdPrice] = (0, import_react5.useState)("0.00");
1597
1664
  (0, import_react5.useEffect)(() => {
1598
1665
  if (token && prices && prices[token.address]) {
1599
- 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);
1600
1673
  }
1601
1674
  }, [token, prices, amount]);
1602
- 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" }) });
1603
1676
  };
1604
1677
 
1605
1678
  // src/components/TxConfigForm/Summary.tsx
1606
- var import_jsx_runtime31 = require("react/jsx-runtime");
1679
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1607
1680
  var Summary = ({
1608
1681
  isGettingRoute,
1609
1682
  route,
@@ -1626,41 +1699,44 @@ var Summary = ({
1626
1699
  );
1627
1700
  }
1628
1701
  }, [dstChain]);
1629
- 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: [
1630
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between", children: [
1631
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1", children: [
1632
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-sm", children: "You receive" }),
1633
- 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)(
1634
1707
  Skeleton,
1635
1708
  {
1636
1709
  width: "w-[100px]",
1637
1710
  height: "h-[36px]",
1638
1711
  other: "sm:w-[190px]"
1639
1712
  }
1640
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: [
1641
- amountReadable,
1642
- /* @__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 }) }),
1643
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-base sm:text-xl", children: dstToken?.symbol })
1644
- ] })
1713
+ ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex gap-2 items-center text-white text-xl sm:text-3xl", children: amountReadable })
1645
1714
  ] }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1 text-sm", children: [
1647
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[rgba(255,255,255,0.6)] text-right", children: "on chain:" }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1 text-white", children: [
1649
- /* @__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 }) }),
1650
- /* @__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
+ ] })
1651
1726
  ] })
1652
1727
  ] })
1653
1728
  ] }),
1654
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1729
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1655
1730
  UsdPrice,
1656
1731
  {
1657
1732
  prices,
1658
1733
  token: dstToken,
1659
1734
  amount: amountReadable,
1660
- loading: isGettingRoute
1735
+ loading: isGettingRoute,
1736
+ type: "dst"
1661
1737
  }
1662
1738
  ),
1663
- /* @__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, {}) }) })
1664
1740
  ] });
1665
1741
  };
1666
1742
 
@@ -1670,7 +1746,7 @@ var import_react9 = require("react");
1670
1746
  // src/components/TxConfigForm/TokenPicker.tsx
1671
1747
  var import_react7 = require("react");
1672
1748
  var import_react_dom = require("react-dom");
1673
- var import_jsx_runtime32 = require("react/jsx-runtime");
1749
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1674
1750
  var TokenPicker = ({
1675
1751
  onCloseClick,
1676
1752
  tokens,
@@ -1697,24 +1773,24 @@ var TokenPicker = ({
1697
1773
  );
1698
1774
  }, [searchValue, tokens]);
1699
1775
  return modalRoot ? (0, import_react_dom.createPortal)(
1700
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1776
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1701
1777
  "div",
1702
1778
  {
1703
1779
  onClick: onBackdropClick,
1704
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",
1705
- 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: [
1706
- /* @__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)(
1707
1783
  "div",
1708
1784
  {
1709
1785
  onClick: onCloseClick,
1710
1786
  className: "absolute top-4 right-4 cursor-pointer",
1711
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {})
1787
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CloseIcon, {})
1712
1788
  }
1713
1789
  ),
1714
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-base mb-4", children: "Pick a token" }),
1715
- /* @__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: [
1716
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SearchIcon, {}) }),
1717
- /* @__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)(
1718
1794
  "input",
1719
1795
  {
1720
1796
  placeholder: "Search name or paste address",
@@ -1724,7 +1800,7 @@ var TokenPicker = ({
1724
1800
  }
1725
1801
  )
1726
1802
  ] }),
1727
- /* @__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)(
1728
1804
  "div",
1729
1805
  {
1730
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)]" : ""}`,
@@ -1733,14 +1809,14 @@ var TokenPicker = ({
1733
1809
  onCloseClick();
1734
1810
  },
1735
1811
  children: [
1736
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("img", { src: token.image, alt: token.name, className: "w-5" }),
1737
- /* @__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 })
1738
1814
  ]
1739
1815
  },
1740
1816
  token.address
1741
1817
  )) }),
1742
- /* @__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)]" }),
1743
- /* @__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)(
1744
1820
  "div",
1745
1821
  {
1746
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)]" : ""}`,
@@ -1749,29 +1825,29 @@ var TokenPicker = ({
1749
1825
  onCloseClick();
1750
1826
  },
1751
1827
  children: [
1752
- token.image ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1828
+ token.image ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1753
1829
  "img",
1754
1830
  {
1755
1831
  src: token.image,
1756
1832
  alt: token.name,
1757
1833
  className: "token-picker__all__logo"
1758
1834
  }
1759
- ) : /* @__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) }),
1760
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex justify-between items-center gap-1 overflow-hidden grow", children: [
1761
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col leading-[16px]", children: [
1762
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "overflow-hidden whitespace-nowrap text-ellipsis text-[15px]", children: token.name }),
1763
- /* @__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 })
1764
1840
  ] }),
1765
- 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({
1766
1842
  amount: balances[token.address]?.toString() || "0",
1767
1843
  decimals: token.decimals,
1768
1844
  precisionFractionalPlaces: 4
1769
- }) }) : /* @__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" }) })
1770
1846
  ] })
1771
1847
  ]
1772
1848
  },
1773
1849
  `${index}_${token.address}`
1774
- )) : /* @__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." }) }) })
1775
1851
  ] })
1776
1852
  }
1777
1853
  ),
@@ -1780,7 +1856,7 @@ var TokenPicker = ({
1780
1856
  };
1781
1857
 
1782
1858
  // src/components/TxConfigForm/ChainListElement.tsx
1783
- var import_jsx_runtime33 = require("react/jsx-runtime");
1859
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1784
1860
  var ChainListElement = ({
1785
1861
  chain,
1786
1862
  setSrcChain,
@@ -1788,8 +1864,8 @@ var ChainListElement = ({
1788
1864
  index,
1789
1865
  length
1790
1866
  }) => {
1791
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1867
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
1868
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1793
1869
  "li",
1794
1870
  {
1795
1871
  className: "bg-transparent border-none flex gap-1 items-center cursor-pointer py-2 w-full",
@@ -1798,19 +1874,19 @@ var ChainListElement = ({
1798
1874
  setChainListShown(false);
1799
1875
  },
1800
1876
  children: [
1801
- /* @__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 }),
1802
1878
  chain.displayName
1803
1879
  ]
1804
1880
  }
1805
1881
  ),
1806
- 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)]" })
1807
1883
  ] }, `${chain.ecosystem}-${chain.chainId}`);
1808
1884
  };
1809
1885
 
1810
1886
  // src/components/TxConfigForm/BalanceComponent.tsx
1811
1887
  var import_react8 = require("react");
1812
1888
  var import_bignumber3 = __toESM(require("bignumber.js"));
1813
- var import_jsx_runtime34 = require("react/jsx-runtime");
1889
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1814
1890
  var BalanceComponent = ({ srcToken, balances }) => {
1815
1891
  const balanceText = (0, import_react8.useMemo)(() => {
1816
1892
  if (!balances || !srcToken) return "0";
@@ -1830,7 +1906,7 @@ var BalanceComponent = ({ srcToken, balances }) => {
1830
1906
  precisionFractionalPlaces: 5
1831
1907
  });
1832
1908
  }, [srcToken, balances]);
1833
- 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: [
1834
1910
  "Balance:",
1835
1911
  " ",
1836
1912
  srcToken && balances ? weiToHumanReadable({
@@ -1838,12 +1914,12 @@ var BalanceComponent = ({ srcToken, balances }) => {
1838
1914
  decimals: srcToken.decimals,
1839
1915
  precisionFractionalPlaces: 4
1840
1916
  }) : 0,
1841
- /* @__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" })
1842
1918
  ] });
1843
1919
  };
1844
1920
 
1845
1921
  // src/components/TxConfigForm/SwapPanel.tsx
1846
- var import_jsx_runtime35 = require("react/jsx-runtime");
1922
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1847
1923
  var SwapPanel = ({
1848
1924
  amount,
1849
1925
  setAmount,
@@ -1854,7 +1930,8 @@ var SwapPanel = ({
1854
1930
  signer,
1855
1931
  balances,
1856
1932
  prices,
1857
- supportedChains
1933
+ supportedChains,
1934
+ setExceedsExpressDeliveryLimit
1858
1935
  }) => {
1859
1936
  const [chainListShown, setChainListShown] = (0, import_react9.useState)(false);
1860
1937
  const [tokenListShown, setTokenListShown] = (0, import_react9.useState)(false);
@@ -1888,11 +1965,11 @@ var SwapPanel = ({
1888
1965
  () => supportedChains.filter((chain) => chain.chainId !== srcChain?.chainId),
1889
1966
  [supportedChains, srcChain]
1890
1967
  );
1891
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between globalBorder rounded-lg bg-[rgba(15,15,15,1)] p-4", children: [
1892
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col justify-between gap-2 overflow-hidden w-1/2", children: [
1893
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-1", children: [
1894
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-white opacity-60 text-xs sm:text-sm font-medium", children: "You pay" }),
1895
- /* @__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)(
1896
1973
  "input",
1897
1974
  {
1898
1975
  className: "p-0 border-none outline-none bg-transparent text-2xl overflow-ellipsis",
@@ -1911,18 +1988,20 @@ var SwapPanel = ({
1911
1988
  }
1912
1989
  )
1913
1990
  ] }),
1914
- /* @__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)(
1915
1992
  UsdPrice,
1916
1993
  {
1917
1994
  prices,
1918
1995
  token: srcToken,
1919
1996
  amount,
1920
- loading: false
1997
+ loading: false,
1998
+ type: "src",
1999
+ setExceedsExpressDeliveryLimit
1921
2000
  }
1922
2001
  ) })
1923
2002
  ] }),
1924
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col relative items-end gap-2.5 w-1/2 text-xs", children: [
1925
- /* @__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)(
1926
2005
  "div",
1927
2006
  {
1928
2007
  className: "flex gap-2 items-center p-2 max-w-full cursor-pointer bg-black text-white globalBorder rounded-3xl whitespace-nowrap",
@@ -1930,7 +2009,7 @@ var SwapPanel = ({
1930
2009
  setTokenListShown((state) => !state);
1931
2010
  },
1932
2011
  children: [
1933
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2012
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1934
2013
  "img",
1935
2014
  {
1936
2015
  height: 16,
@@ -1939,12 +2018,12 @@ var SwapPanel = ({
1939
2018
  alt: srcToken?.name
1940
2019
  }
1941
2020
  ),
1942
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: srcToken?.symbol }),
1943
- /* @__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, {})
1944
2023
  ]
1945
2024
  }
1946
2025
  ),
1947
- tokenListShown && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2026
+ tokenListShown && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1948
2027
  TokenPicker,
1949
2028
  {
1950
2029
  onCloseClick: () => setTokenListShown(false),
@@ -1955,22 +2034,22 @@ var SwapPanel = ({
1955
2034
  balances
1956
2035
  }
1957
2036
  ),
1958
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2037
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1959
2038
  "div",
1960
2039
  {
1961
2040
  onClick: handleMaxClick,
1962
2041
  className: "flex gap-1 items-center font-medium text-white opacity-60 py-0.5 cursor-pointer",
1963
- children: signer && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(BalanceComponent, { balances, srcToken })
2042
+ children: signer && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(BalanceComponent, { balances, srcToken })
1964
2043
  }
1965
2044
  ),
1966
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2045
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1967
2046
  "div",
1968
2047
  {
1969
2048
  ref: buttonRef,
1970
2049
  className: "bg-black globalBorder rounded-2xl whitespace-nowrap flex items-center p-2 cursor-pointer gap-2",
1971
2050
  onClick: () => setChainListShown((prev) => !prev),
1972
2051
  children: [
1973
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2052
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1974
2053
  "img",
1975
2054
  {
1976
2055
  width: "16",
@@ -1979,17 +2058,17 @@ var SwapPanel = ({
1979
2058
  alt: srcChain?.name
1980
2059
  }
1981
2060
  ),
1982
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: srcChain?.displayName }),
1983
- /* @__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, {})
1984
2063
  ]
1985
2064
  }
1986
2065
  ),
1987
- chainListShown && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2066
+ chainListShown && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1988
2067
  "ul",
1989
2068
  {
1990
2069
  ref: listRef,
1991
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",
1992
- children: chainListOptions.map((chain, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2071
+ children: chainListOptions.map((chain, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1993
2072
  ChainListElement,
1994
2073
  {
1995
2074
  index,
@@ -2006,9 +2085,9 @@ var SwapPanel = ({
2006
2085
  };
2007
2086
 
2008
2087
  // src/components/TxConfigForm/ErrorField.tsx
2009
- var import_jsx_runtime36 = require("react/jsx-runtime");
2088
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2010
2089
  var ErrorField = ({ error }) => {
2011
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2090
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2012
2091
  "div",
2013
2092
  {
2014
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"}`,
@@ -2018,15 +2097,15 @@ var ErrorField = ({ error }) => {
2018
2097
  };
2019
2098
 
2020
2099
  // src/components/TxConfigForm/Description.tsx
2021
- var import_jsx_runtime37 = require("react/jsx-runtime");
2100
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2022
2101
  var Description = ({ description }) => {
2023
- 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 }) });
2024
2103
  };
2025
2104
 
2026
2105
  // src/components/TxConfigForm/Button.tsx
2027
- var import_jsx_runtime38 = require("react/jsx-runtime");
2106
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2028
2107
  var Button = ({ children, onClick, type, disabled }) => {
2029
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2108
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2030
2109
  "button",
2031
2110
  {
2032
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",
@@ -2039,14 +2118,15 @@ var Button = ({ children, onClick, type, disabled }) => {
2039
2118
  };
2040
2119
 
2041
2120
  // src/components/TxConfigForm/Form.tsx
2042
- var import_jsx_runtime39 = require("react/jsx-runtime");
2121
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2043
2122
  var Form = ({
2044
2123
  dstChainId,
2045
2124
  dstTokenAddr,
2046
2125
  customContractCalls,
2047
2126
  desc,
2048
2127
  supportedChains,
2049
- onSubmit
2128
+ onSubmit,
2129
+ onClose
2050
2130
  }) => {
2051
2131
  const [signer, setSigner] = (0, import_react10.useState)();
2052
2132
  const [dstChain, setDstChain] = (0, import_react10.useState)();
@@ -2065,6 +2145,7 @@ var Form = ({
2065
2145
  const [formError, setFormError] = (0, import_react10.useState)("");
2066
2146
  const [slippage, setSlippage] = (0, import_react10.useState)("1.5");
2067
2147
  const [feesDetailsShown, setFeesDetailsShown] = (0, import_react10.useState)(false);
2148
+ const [exceedsExpressDeliveryLimit, setExceedsExpressDeliveryLimit] = (0, import_react10.useState)(false);
2068
2149
  const debouncedAmount = useDebounce(amount, 1e3);
2069
2150
  const account = (0, import_wagmi2.useAccount)();
2070
2151
  const { switchChainAsync } = (0, import_wagmi2.useSwitchChain)();
@@ -2113,7 +2194,7 @@ var Form = ({
2113
2194
  toToken: dstTokenAddr,
2114
2195
  paymentToken: paymentToken.address,
2115
2196
  slippage: Number(slippage),
2116
- expressDelivery: expressChecked,
2197
+ expressDelivery: expressChecked && !exceedsExpressDeliveryLimit,
2117
2198
  customContractCalls
2118
2199
  }).then((response) => {
2119
2200
  setRoute(response);
@@ -2169,22 +2250,23 @@ var Form = ({
2169
2250
  const handleSwitchChain = async () => {
2170
2251
  await switchChainAsync({ chainId: Number(srcChain?.chainId) });
2171
2252
  };
2172
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2253
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2173
2254
  "form",
2174
2255
  {
2175
- 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",
2176
2257
  onSubmit: handleSubmit,
2177
2258
  children: [
2178
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2259
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2179
2260
  TopBar,
2180
2261
  {
2181
2262
  signer,
2182
2263
  historyTabShown,
2183
2264
  setHistoryTabShown,
2184
- setSettingsShown
2265
+ setSettingsShown,
2266
+ onClose
2185
2267
  }
2186
2268
  ),
2187
- settingsShown && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2269
+ settingsShown && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2188
2270
  Settings,
2189
2271
  {
2190
2272
  expressChecked,
@@ -2194,9 +2276,9 @@ var Form = ({
2194
2276
  setSlippage
2195
2277
  }
2196
2278
  ),
2197
- historyTabShown ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(History, { signer, supportedChains }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-2", children: [
2198
- desc && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Description, { description: desc }),
2199
- /* @__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)(
2200
2282
  SwapPanel,
2201
2283
  {
2202
2284
  amount,
@@ -2208,10 +2290,11 @@ var Form = ({
2208
2290
  balances,
2209
2291
  prices,
2210
2292
  supportedChains,
2211
- setSrcChain
2293
+ setSrcChain,
2294
+ setExceedsExpressDeliveryLimit
2212
2295
  }
2213
2296
  ),
2214
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2297
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2215
2298
  Summary,
2216
2299
  {
2217
2300
  isGettingRoute,
@@ -2220,7 +2303,7 @@ var Form = ({
2220
2303
  dstChain
2221
2304
  }
2222
2305
  ),
2223
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2306
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2224
2307
  FeesDetails,
2225
2308
  {
2226
2309
  route,
@@ -2228,13 +2311,14 @@ var Form = ({
2228
2311
  paymentToken,
2229
2312
  dstToken,
2230
2313
  expressChecked,
2314
+ exceedsExpressDeliveryLimit,
2231
2315
  slippage,
2232
2316
  feesDetailsShown,
2233
2317
  setFeesDetailsShown
2234
2318
  }
2235
2319
  ),
2236
- formError.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ErrorField, { error: formError }),
2237
- 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)(
2238
2322
  Button,
2239
2323
  {
2240
2324
  type: "submit",
@@ -2249,7 +2333,7 @@ var Form = ({
2249
2333
  };
2250
2334
 
2251
2335
  // src/components/TxConfigForm/index.tsx
2252
- var import_jsx_runtime40 = require("react/jsx-runtime");
2336
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2253
2337
  var TxConfigForm = ({
2254
2338
  dstChainId,
2255
2339
  dstTokenAddr,
@@ -2271,13 +2355,13 @@ var TxConfigForm = ({
2271
2355
  () => getWagmiConfig(supportedChains),
2272
2356
  supportedChains
2273
2357
  );
2274
- 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)(
2275
2359
  "div",
2276
2360
  {
2277
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",
2278
2362
  onClick: onBackdropClick,
2279
- 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: [
2280
- /* @__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)(
2281
2365
  Form,
2282
2366
  {
2283
2367
  dstChainId,
@@ -2285,18 +2369,11 @@ var TxConfigForm = ({
2285
2369
  customContractCalls,
2286
2370
  desc,
2287
2371
  supportedChains,
2288
- onSubmit
2372
+ onSubmit,
2373
+ onClose
2289
2374
  }
2290
2375
  ),
2291
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2292
- "div",
2293
- {
2294
- className: "absolute top-7 right-4 cursor-pointer text-white",
2295
- onClick: onClose,
2296
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CloseIcon, {})
2297
- }
2298
- ),
2299
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PoweredBy, {})
2376
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PoweredBy, {})
2300
2377
  ] })
2301
2378
  }
2302
2379
  ) }) });
@@ -2309,9 +2386,10 @@ var openTxConfigForm = async ({
2309
2386
  supportedChains
2310
2387
  }) => {
2311
2388
  try {
2312
- return await new Promise((resolve) => {
2389
+ return await new Promise(async (resolve) => {
2390
+ await waitForInitialization();
2313
2391
  xswapRoot.render(
2314
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2392
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2315
2393
  TxConfigForm,
2316
2394
  {
2317
2395
  dstChainId,
@@ -2337,7 +2415,7 @@ var openTxConfigForm = async ({
2337
2415
 
2338
2416
  // src/components/TxStatusButton/index.tsx
2339
2417
  var import_react12 = require("react");
2340
- var import_jsx_runtime41 = require("react/jsx-runtime");
2418
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2341
2419
  var TxStatusButton = ({ transaction }) => {
2342
2420
  const {
2343
2421
  fromChain,
@@ -2360,15 +2438,15 @@ var TxStatusButton = ({ transaction }) => {
2360
2438
  () => isDone ? "border border-solid border-x_green_dark" : "border border-solid border-x_blue_dark",
2361
2439
  [isDone]
2362
2440
  );
2363
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-2", onClick: () => setIsWide((x) => !x), children: [
2364
- 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)(
2365
2443
  "div",
2366
2444
  {
2367
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}`,
2368
2446
  children: [
2369
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex justify-between flex-col gap-2 sm:gap-5 sm:flex-row w-full", children: [
2370
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
2371
- /* @__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)(
2372
2450
  "img",
2373
2451
  {
2374
2452
  className: "w-5 h-5",
@@ -2376,16 +2454,16 @@ var TxStatusButton = ({ transaction }) => {
2376
2454
  alt: "source chain"
2377
2455
  }
2378
2456
  ),
2379
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromChain }),
2380
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-3.5 h-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ArrowRightIcon, {}) }),
2381
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("img", { className: "w-5 h-5", src: toChainImage, alt: "to chain" }),
2382
- /* @__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 })
2383
2461
  ] }),
2384
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
2385
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: "Sent" }),
2386
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromAmount }),
2387
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: fromToken }),
2388
- /* @__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)(
2389
2467
  "img",
2390
2468
  {
2391
2469
  className: "w-5 h-5",
@@ -2395,7 +2473,7 @@ var TxStatusButton = ({ transaction }) => {
2395
2473
  )
2396
2474
  ] })
2397
2475
  ] }),
2398
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2476
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2399
2477
  "a",
2400
2478
  {
2401
2479
  href: explorer,
@@ -2403,21 +2481,21 @@ var TxStatusButton = ({ transaction }) => {
2403
2481
  rel: "noreferrer",
2404
2482
  className: "no-underline cursor-pointer",
2405
2483
  "aria-label": "Show the transaction in the chain explorer",
2406
- 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, {}) })
2407
2485
  }
2408
2486
  )
2409
2487
  ]
2410
2488
  }
2411
2489
  ),
2412
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2490
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2413
2491
  "div",
2414
2492
  {
2415
2493
  className: `text-white rounded-xl cursor-pointer ${background} ${border}`,
2416
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-2 items-center h-14 w-20 justify-center", children: [
2417
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ArrowLeftIcon, {}),
2418
- /* @__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: [
2419
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-5 h-5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(XSwapLogo, {}) }),
2420
- /* @__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, {}) })
2421
2499
  ] }) })
2422
2500
  ] })
2423
2501
  }
@@ -2444,14 +2522,14 @@ var updateTransactionDoneInRenderedTransactions = (txHash) => {
2444
2522
  }
2445
2523
  };
2446
2524
  var renderTxStatusButtons = () => {
2447
- 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));
2448
2526
  txStatusRoot.render(buttons);
2449
2527
  };
2450
2528
 
2451
2529
  // src/components/Skeleton/index.tsx
2452
- var import_jsx_runtime42 = require("react/jsx-runtime");
2530
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2453
2531
  var Skeleton = ({ width, height }) => {
2454
- 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}` });
2455
2533
  };
2456
2534
 
2457
2535
  // src/services/integrations/monitoring.ts