@dhedge/trading-widget 3.3.1 → 3.3.2

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.
@@ -7,7 +7,7 @@ var rb = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
7
7
  function bg(t) {
8
8
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
9
9
  }
10
- function PQ(t) {
10
+ function IQ(t) {
11
11
  if (t.__esModule)
12
12
  return t;
13
13
  var n = t.default;
@@ -12425,7 +12425,7 @@ Check the render method of \`` + e + "`." : "";
12425
12425
  };
12426
12426
  }
12427
12427
  }
12428
- function RQ(e) {
12428
+ function OQ(e) {
12429
12429
  return e;
12430
12430
  }
12431
12431
  function uP(e) {
@@ -14661,10 +14661,10 @@ Incoming: %s`, Se, "[" + r.join(", ") + "]", "[" + e.join(", ") + "]");
14661
14661
  }
14662
14662
  return [E, y];
14663
14663
  }
14664
- function OQ(e, r, s) {
14665
- }
14666
14664
  function kQ(e, r, s) {
14667
14665
  }
14666
+ function _Q(e, r, s) {
14667
+ }
14668
14668
  function r1(e, r, s) {
14669
14669
  var c = Dn, m = fu(), y, T = Ja();
14670
14670
  if (T) {
@@ -28459,7 +28459,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
28459
28459
  depositParams: { customTokens: [] },
28460
28460
  withdrawParams: { customTokens: [] },
28461
28461
  deprecated: !1
28462
- }, UQ = "deposit", N7 = 1, AC = 0, M7 = 0.5, L7 = 0.3, BQ = [AC], P7 = "withdrawSafe", ON = "initWithdrawal", I7 = "unrollAndClaim", F7 = "completeWithdrawal", U7 = 42e5, B7 = 1.25, Mp = 1e4, j7 = 13e3, kN = 3, DC = 2e4, $7 = 15e3, z7 = {
28462
+ }, BQ = "deposit", N7 = 1, AC = 0, M7 = 0.5, L7 = 0.3, jQ = [AC], P7 = "withdrawSafe", ON = "initWithdrawal", I7 = "unrollAndClaim", F7 = "completeWithdrawal", U7 = 42e5, B7 = 1.25, Mp = 1e4, j7 = 13e3, kN = 3, DC = 2e4, $7 = 15e3, z7 = {
28463
28463
  [_c.id]: _c,
28464
28464
  [ss.id]: ss,
28465
28465
  [Cu.id]: Cu,
@@ -28494,7 +28494,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
28494
28494
  [ss.id]: 299e5,
28495
28495
  [Cu.id]: 299e5,
28496
28496
  [Ki.id]: 299e5
28497
- }, jQ = {
28497
+ }, $Q = {
28498
28498
  [ss.id]: "https://opt-mainnet.g.alchemy.com/v2/",
28499
28499
  [_c.id]: "https://polygon-mainnet.g.alchemy.com/v2/",
28500
28500
  [Cu.id]: "https://arb-mainnet.g.alchemy.com/v2/",
@@ -31737,12 +31737,12 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31737
31737
  symbol: "WBTC",
31738
31738
  decimals: 8,
31739
31739
  value: ""
31740
- }, $Q = {
31740
+ }, zQ = {
31741
31741
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
31742
31742
  symbol: "tBTC",
31743
31743
  decimals: gt,
31744
31744
  value: ""
31745
- }, zQ = {
31745
+ }, HQ = {
31746
31746
  address: "0x5979D7b546E38E414F7E9822514be443A4800529",
31747
31747
  symbol: "wstETH",
31748
31748
  decimals: gt,
@@ -31752,7 +31752,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31752
31752
  symbol: "USDC",
31753
31753
  decimals: 6,
31754
31754
  value: ""
31755
- }, HQ = {
31755
+ }, WQ = {
31756
31756
  address: "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
31757
31757
  symbol: "USDbC",
31758
31758
  decimals: 6,
@@ -31762,22 +31762,22 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31762
31762
  symbol: "WETH",
31763
31763
  decimals: gt,
31764
31764
  value: ""
31765
- }, WQ = {
31765
+ }, VQ = {
31766
31766
  address: "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
31767
31767
  symbol: "cbETH",
31768
31768
  decimals: gt,
31769
31769
  value: ""
31770
- }, VQ = {
31770
+ }, GQ = {
31771
31771
  address: "0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c",
31772
31772
  symbol: "rETH",
31773
31773
  decimals: gt,
31774
31774
  value: ""
31775
- }, GQ = {
31775
+ }, YQ = {
31776
31776
  address: "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b",
31777
31777
  symbol: "tBTC",
31778
31778
  decimals: gt,
31779
31779
  value: ""
31780
- }, YQ = {
31780
+ }, qQ = {
31781
31781
  address: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
31782
31782
  symbol: "wstETH",
31783
31783
  decimals: gt,
@@ -31802,7 +31802,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31802
31802
  symbol: "WETH",
31803
31803
  decimals: gt,
31804
31804
  value: ""
31805
- }, qQ = {
31805
+ }, QQ = {
31806
31806
  address: "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9",
31807
31807
  symbol: "sUSD",
31808
31808
  decimals: gt,
@@ -31817,22 +31817,22 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31817
31817
  symbol: "WBTC",
31818
31818
  decimals: 8,
31819
31819
  value: ""
31820
- }, QQ = {
31820
+ }, KQ = {
31821
31821
  address: "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49",
31822
31822
  symbol: "sETH",
31823
31823
  decimals: gt,
31824
31824
  value: ""
31825
- }, KQ = {
31825
+ }, XQ = {
31826
31826
  address: "0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",
31827
31827
  symbol: "LINK",
31828
31828
  decimals: gt,
31829
31829
  value: ""
31830
- }, XQ = {
31830
+ }, ZQ = {
31831
31831
  address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40",
31832
31832
  symbol: "tBTC",
31833
31833
  decimals: gt,
31834
31834
  value: ""
31835
- }, ZQ = {
31835
+ }, JQ = {
31836
31836
  address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb",
31837
31837
  symbol: "wstETH",
31838
31838
  decimals: gt,
@@ -31852,7 +31852,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31852
31852
  symbol: "USDC",
31853
31853
  decimals: 6,
31854
31854
  value: ""
31855
- }, JQ = {
31855
+ }, eK = {
31856
31856
  address: "0x553d3d295e0f695b9228246232edf400ed3560b5",
31857
31857
  symbol: "PAXG",
31858
31858
  decimals: gt,
@@ -31877,7 +31877,7 @@ const ct = "0x0000000000000000000000000000000000000000", D7 = BigInt(
31877
31877
  symbol: "DAI",
31878
31878
  decimals: gt,
31879
31879
  value: ""
31880
- }, eK = {
31880
+ }, tK = {
31881
31881
  address: "0x236aa50979d5f3de3bd1eeb40e81137f22ab794b",
31882
31882
  symbol: "tBTC",
31883
31883
  decimals: gt,
@@ -32720,7 +32720,7 @@ function Sc(t, n, a) {
32720
32720
  return t;
32721
32721
  }
32722
32722
  var Ke = qN();
32723
- const wT = (t, n) => t / n * 100, Mg = (t, n = gt) => new Ke(t).shiftedBy(-n).toNumber(), Ub = (t) => t < 1 ? 4 : t < 10 ? 3 : 2, GW = (t, n = gt) => t.shiftedBy(n).toFixed(0), VO = (t, n, a, l) => new Ke(n).dividedBy(a).multipliedBy(t).shiftedBy(-(l || gt)).toNumber(), tK = (t) => !!t && typeof t == "bigint", QN = (t) => !isNaN(parseFloat(t)) && !isNaN(t), bT = (t) => {
32723
+ const wT = (t, n) => t / n * 100, Mg = (t, n = gt) => new Ke(t).shiftedBy(-n).toNumber(), Ub = (t) => t < 1 ? 4 : t < 10 ? 3 : 2, GW = (t, n = gt) => t.shiftedBy(n).toFixed(0), VO = (t, n, a, l) => new Ke(n).dividedBy(a).multipliedBy(t).shiftedBy(-(l || gt)).toNumber(), nK = (t) => !!t && typeof t == "bigint", QN = (t) => !isNaN(parseFloat(t)) && !isNaN(t), bT = (t) => {
32724
32724
  const n = new Ke(0.01), a = new Ke(t), l = !a.isZero() && a.lt(n) ? n : a;
32725
32725
  return BigInt(l.multipliedBy(100).toFixed(0));
32726
32726
  }, YW = ({
@@ -32821,7 +32821,7 @@ const wT = (t, n) => t / n * 100, Mg = (t, n = gt) => new Ke(t).shiftedBy(-n).to
32821
32821
  } catch {
32822
32822
  return new Error(String(t));
32823
32823
  }
32824
- }, JW = (t) => ZW(t).message, nK = (t) => {
32824
+ }, JW = (t) => ZW(t).message, rK = (t) => {
32825
32825
  const n = Object.values(t).reduce(
32826
32826
  (a, { type: l }) => (a[l] = a[l] + 1, a),
32827
32827
  { string: 0, number: 0 }
@@ -33069,7 +33069,7 @@ const GO = {
33069
33069
  default:
33070
33070
  return n;
33071
33071
  }
33072
- }, rK = ({
33072
+ }, aK = ({
33073
33073
  children: t,
33074
33074
  initialState: n,
33075
33075
  actions: {
@@ -33169,7 +33169,7 @@ const GO = {
33169
33169
  ]
33170
33170
  );
33171
33171
  return /* @__PURE__ */ R.jsx(nM.Provider, { value: G, children: /* @__PURE__ */ R.jsx(tM.Provider, { value: Z, children: t }) });
33172
- }, Ml = () => en(tM), Ir = () => en(nM), aK = () => Ir().setPoolAddress, iK = () => Ir().updateSendTokenInput, oK = () => Ir().updateReceiveTokenInput, sK = () => Ir().updateTradingSettings, lK = () => Ir().setTradingType, uK = () => Ir().updateTradingModal, oV = () => Ir().updatePoolFallbackData, sV = () => Ir().onTransactionError, lV = () => Ir().onTradingSettleError, uV = () => Ir().onTransactionSuccess, rM = () => Ir().onTransactionEstimationError, cV = () => Ir().onTokenSelector, OC = () => Ir().onLog, dV = () => Ir().onSimulateTransaction, kC = () => Ir().getSwapData, fV = () => [
33172
+ }, Ml = () => en(tM), Ir = () => en(nM), iK = () => Ir().setPoolAddress, oK = () => Ir().updateSendTokenInput, sK = () => Ir().updateReceiveTokenInput, lK = () => Ir().updateTradingSettings, uK = () => Ir().setTradingType, cK = () => Ir().updateTradingModal, oV = () => Ir().updatePoolFallbackData, sV = () => Ir().onTransactionError, lV = () => Ir().onTradingSettleError, uV = () => Ir().onTransactionSuccess, rM = () => Ir().onTransactionEstimationError, cV = () => Ir().onTokenSelector, OC = () => Ir().onLog, dV = () => Ir().onSimulateTransaction, kC = () => Ir().getSwapData, fV = () => [
33173
33173
  Ml().poolAddress,
33174
33174
  Ir().setPoolAddress
33175
33175
  ], ht = () => {
@@ -33178,7 +33178,7 @@ const GO = {
33178
33178
  }, TT = () => {
33179
33179
  const { poolConfigMap: t } = Ml();
33180
33180
  return $e(() => Object.values(t), [t]);
33181
- }, cK = (t) => {
33181
+ }, dK = (t) => {
33182
33182
  const n = TT();
33183
33183
  return $e(
33184
33184
  () => n.some((a) => a.address === t),
@@ -33232,7 +33232,7 @@ const GO = {
33232
33232
  enabled: !u,
33233
33233
  refetchInterval: EC
33234
33234
  }
33235
- }), dK = () => {
33235
+ }), fK = () => {
33236
33236
  const { account: t } = Fr(), [n, a] = Lt(!1);
33237
33237
  return vt(() => {
33238
33238
  a(!!t);
@@ -36734,6 +36734,16 @@ const _G = () => {
36734
36734
  const { data: t = [] } = Ru();
36735
36735
  return t.reduce((n, { balance: a, price: l }) => n + a * l, 0);
36736
36736
  }, zG = ({
36737
+ account: t,
36738
+ chainId: n
36739
+ }) => Tu({
36740
+ address: Cr("easySwapperV2", n),
36741
+ abi: Nc,
36742
+ functionName: "getTrackedAssets",
36743
+ chainId: n,
36744
+ args: [t],
36745
+ query: { enabled: !Du(t) }
36746
+ }), HG = ({
36737
36747
  assets: t,
36738
36748
  chainId: n
36739
36749
  }) => t.flatMap(({ token: a }) => [
@@ -36758,14 +36768,14 @@ const _G = () => {
36758
36768
  chainId: n,
36759
36769
  args: [a]
36760
36770
  }
36761
- ]), HG = 3, KM = ({
36771
+ ]), WG = 3, KM = ({
36762
36772
  assets: t,
36763
36773
  chainId: n
36764
36774
  }) => {
36765
36775
  const a = St(
36766
36776
  (l) => t.map(({ token: u, balance: f }, p) => {
36767
36777
  var D, A, M, U, B;
36768
- const v = p * HG, g = v + 1, w = g + 1, x = Number(
36778
+ const v = p * WG, g = v + 1, w = g + 1, x = Number(
36769
36779
  ((D = l[g]) == null ? void 0 : D.result) ?? gt
36770
36780
  ), C = HN[u.toLowerCase()] ?? ((M = (A = l[v]) == null ? void 0 : A.result) == null ? void 0 : M.toString()) ?? "";
36771
36781
  return {
@@ -36780,20 +36790,16 @@ const _G = () => {
36780
36790
  [t]
36781
36791
  );
36782
36792
  return Oi({
36783
- contracts: zG({ assets: t, chainId: n }),
36793
+ contracts: HG({ assets: t, chainId: n }),
36784
36794
  query: {
36785
36795
  enabled: t.length > 0,
36786
36796
  select: a
36787
36797
  }
36788
36798
  });
36789
36799
  }, Ru = () => {
36790
- const { account: t = ct } = Fr(), { chainId: n } = ht(), { data: a = [] } = Tu({
36791
- address: Cr("easySwapperV2", n),
36792
- abi: Nc,
36793
- functionName: "getTrackedAssets",
36794
- chainId: n,
36795
- args: [t],
36796
- query: { enabled: !Du(t) }
36800
+ const { account: t = ct } = Fr(), { chainId: n } = ht(), { data: a = [] } = zG({
36801
+ account: t,
36802
+ chainId: n
36797
36803
  });
36798
36804
  return KM({ assets: a, chainId: n });
36799
36805
  }, Fg = () => {
@@ -36822,7 +36828,7 @@ const _G = () => {
36822
36828
  enabled: p,
36823
36829
  refetchInterval: DC
36824
36830
  });
36825
- }, WG = () => {
36831
+ }, VG = () => {
36826
36832
  const [t, n] = Mn(), { data: a = [] } = Ru(), { data: l, isFetching: u, isError: f } = Ug();
36827
36833
  vt(() => {
36828
36834
  n({ isLoading: u });
@@ -36947,11 +36953,11 @@ const JM = (t, n) => {
36947
36953
  clearTimeout(u);
36948
36954
  };
36949
36955
  }, [t, n]), a;
36950
- }, VG = (t) => uv(dk(t), 2), GG = () => {
36956
+ }, GG = (t) => uv(dk(t), 2), YG = () => {
36951
36957
  const t = ht(), [n] = hn(), a = gf(), l = BG(), u = pv(), f = UG(t), p = yf({
36952
36958
  address: t.address,
36953
36959
  chainId: t.chainId,
36954
- formatter: VG
36960
+ formatter: GG
36955
36961
  });
36956
36962
  return St(async () => {
36957
36963
  const v = BigInt(
@@ -36972,7 +36978,7 @@ const JM = (t, n) => {
36972
36978
  u,
36973
36979
  p
36974
36980
  ]);
36975
- }, YG = ({
36981
+ }, qG = ({
36976
36982
  debounceTime: t
36977
36983
  } = {}) => {
36978
36984
  const n = ht(), { aaveOffchainWithdrawChainIds: a } = Gn(), l = gf(), [u] = hn(), f = a.includes(
@@ -36996,14 +37002,14 @@ const JM = (t, n) => {
36996
37002
  l,
36997
37003
  n.address
36998
37004
  ]);
36999
- }, qG = (t) => typeof t[0] == "string" && typeof t[1] == "bigint" && typeof t[2] == "bigint", QG = () => {
37000
- const t = ht(), n = MC(), { canSpend: a } = GC(), l = YG({
37005
+ }, QG = (t) => typeof t[0] == "string" && typeof t[1] == "bigint" && typeof t[2] == "bigint", KG = () => {
37006
+ const t = ht(), n = MC(), { canSpend: a } = GC(), l = qG({
37001
37007
  debounceTime: RN
37002
37008
  }), { data: u } = C3({
37003
37009
  abi: Nc,
37004
37010
  address: Cr("easySwapperV2", t.chainId),
37005
37011
  functionName: ON,
37006
- args: qG(l) ? l : void 0,
37012
+ args: QG(l) ? l : void 0,
37007
37013
  query: {
37008
37014
  enabled: l[1] !== BigInt(0) && !n && a
37009
37015
  }
@@ -37014,10 +37020,10 @@ const JM = (t, n) => {
37014
37020
  });
37015
37021
  }, QC = () => {
37016
37022
  var a;
37017
- const [t] = Mn(), { data: n = [] } = QG();
37023
+ const [t] = Mn(), { data: n = [] } = KG();
37018
37024
  return (n == null ? void 0 : n.length) === 1 && Lr((a = n[0]) == null ? void 0 : a.address, t.address);
37019
- }, KG = () => {
37020
- const t = ht(), n = gf(), a = QC(), l = GG(), u = vf()[1], f = n ? "multi_withdraw" : a ? "single_withdraw_and_claim" : "single_withdraw", p = AT(f), v = n ? P7 : a ? I7 : ON, { send: g } = xT({
37025
+ }, XG = () => {
37026
+ const t = ht(), n = gf(), a = QC(), l = YG(), u = vf()[1], f = n ? "multi_withdraw" : a ? "single_withdraw_and_claim" : "single_withdraw", p = AT(f), v = n ? P7 : a ? I7 : ON, { send: g } = xT({
37021
37027
  contractId: n ? "poolLogic" : "easySwapperV2",
37022
37028
  dynamicContractAddress: n ? t.address : void 0,
37023
37029
  functionName: v,
@@ -37109,7 +37115,7 @@ function RE(t) {
37109
37115
  }
37110
37116
  throw t;
37111
37117
  }
37112
- const XG = "0xE2C5658cC5C448B48141168f3e475dF8f65A1e3e", ZG = [
37118
+ const ZG = "0xE2C5658cC5C448B48141168f3e475dF8f65A1e3e", JG = [
37113
37119
  {
37114
37120
  type: "error",
37115
37121
  name: "OracleDataRequired",
@@ -37120,7 +37126,7 @@ const XG = "0xE2C5658cC5C448B48141168f3e475dF8f65A1e3e", ZG = [
37120
37126
  const n = t.reduce((l, u) => l + (u.value ?? BigInt(0)), BigInt(0));
37121
37127
  return {
37122
37128
  from: ((a = t[t.length - 1]) == null ? void 0 : a.from) ?? ct,
37123
- to: XG,
37129
+ to: ZG,
37124
37130
  value: n,
37125
37131
  data: Wb({
37126
37132
  abi: hW,
@@ -37155,7 +37161,7 @@ function nL(t, n) {
37155
37161
  return D;
37156
37162
  } else {
37157
37163
  const w = y3({
37158
- abi: [...Fb, ...ZG],
37164
+ abi: [...Fb, ...JG],
37159
37165
  data: RE(t)
37160
37166
  });
37161
37167
  if (w.errorName === "OracleDataRequired") {
@@ -37172,7 +37178,7 @@ function nL(t, n) {
37172
37178
  )}`
37173
37179
  );
37174
37180
  }
37175
- async function JG(t, n, a, l) {
37181
+ async function eY(t, n, a, l) {
37176
37182
  var p;
37177
37183
  const u = nL(t, n), f = [];
37178
37184
  for (const v in u) {
@@ -37215,7 +37221,7 @@ async function JG(t, n, a, l) {
37215
37221
  const rL = {
37216
37222
  isOracleDataUpdateNeeded: !1,
37217
37223
  prependedTxns: []
37218
- }, eY = async (t, n, a, l, u = 100) => {
37224
+ }, tY = async (t, n, a, l, u = 100) => {
37219
37225
  const f = [];
37220
37226
  for (let p = 0; p < u; p++) {
37221
37227
  let v;
@@ -37228,7 +37234,7 @@ const rL = {
37228
37234
  ));
37229
37235
  } catch (w) {
37230
37236
  console.error(w), f.push(
37231
- ...await JG(
37237
+ ...await eY(
37232
37238
  w,
37233
37239
  n,
37234
37240
  a,
@@ -37245,7 +37251,7 @@ const rL = {
37245
37251
  };
37246
37252
  }
37247
37253
  throw new Error("erc7412 callback repeat exceeded");
37248
- }, tY = ({
37254
+ }, nY = ({
37249
37255
  publicClient: t,
37250
37256
  account: n,
37251
37257
  chainId: a,
@@ -37263,7 +37269,7 @@ const rL = {
37263
37269
  const { chainId: p, vaultAddress: v, account: g } = f;
37264
37270
  if (!g || !t)
37265
37271
  return rL;
37266
- const w = (await import("./pyth-adapter-8d673ce9.js")).PythAdapter, x = Wb({
37272
+ const w = (await import("./pyth-adapter-67a8dd21.js")).PythAdapter, x = Wb({
37267
37273
  abi: mg("synthetixV3Core"),
37268
37274
  functionName: "getPositionDebt",
37269
37275
  args: IW[v.toLowerCase()] ?? []
@@ -37274,7 +37280,7 @@ const rL = {
37274
37280
  data: x
37275
37281
  }
37276
37282
  ];
37277
- return await eY(
37283
+ return await tY(
37278
37284
  C,
37279
37285
  t,
37280
37286
  [new w(UW)],
@@ -37282,7 +37288,7 @@ const rL = {
37282
37288
  );
37283
37289
  },
37284
37290
  ...u
37285
- }), nY = ({
37291
+ }), rY = ({
37286
37292
  chainId: t
37287
37293
  }) => {
37288
37294
  const [n, a] = Lt(), l = Ll()[1], u = A3({
@@ -37331,7 +37337,7 @@ const rL = {
37331
37337
  }, aL = ({
37332
37338
  disabled: t
37333
37339
  }) => {
37334
- const { account: n } = Fr(), { address: a, chainId: l } = ht(), u = cv(a), f = Vb({ chainId: l }), p = Ll()[1], { sendTransaction: v } = nY({
37340
+ const { account: n } = Fr(), { address: a, chainId: l } = ht(), u = cv(a), f = Vb({ chainId: l }), p = Ll()[1], { sendTransaction: v } = rY({
37335
37341
  chainId: l
37336
37342
  }), {
37337
37343
  data: {
@@ -37339,7 +37345,7 @@ const rL = {
37339
37345
  prependedTxns: w
37340
37346
  } = rL,
37341
37347
  isFetching: x
37342
- } = tY(
37348
+ } = nY(
37343
37349
  {
37344
37350
  publicClient: f,
37345
37351
  account: n,
@@ -37385,7 +37391,7 @@ const rL = {
37385
37391
  updateOracles: C,
37386
37392
  isCheckOraclesPending: x
37387
37393
  };
37388
- }, rY = 1, aY = ({
37394
+ }, aY = 1, iY = ({
37389
37395
  depositValueInUsd: t,
37390
37396
  apy: n,
37391
37397
  apyCurrencyPrice: a,
@@ -37403,7 +37409,7 @@ const rL = {
37403
37409
  dailyEarnings: aE({ value: u / 365, currency: l }),
37404
37410
  monthlyEarnings: aE({ value: u / 12, currency: l })
37405
37411
  };
37406
- }, iY = ({
37412
+ }, oY = ({
37407
37413
  currency: t,
37408
37414
  depositValueInUsd: n,
37409
37415
  chainId: a,
@@ -37415,20 +37421,20 @@ const rL = {
37415
37421
  address: ((g = HO[a]) == null ? void 0 : g.address) ?? ct,
37416
37422
  chainId: a,
37417
37423
  disabled: u || !l || !f || Du(((w = HO[a]) == null ? void 0 : w.address) ?? ct)
37418
- }), v = f ? +p : rY;
37419
- return aY({
37424
+ }), v = f ? +p : aY;
37425
+ return iY({
37420
37426
  depositValueInUsd: n,
37421
37427
  apy: l,
37422
37428
  apyCurrencyPrice: v,
37423
37429
  currency: t
37424
37430
  });
37425
- }, oY = () => {
37431
+ }, sY = () => {
37426
37432
  var p, v, g;
37427
37433
  const t = Mc()[0] === "deposit", { chainId: n } = ht(), [a] = dv(), [l] = hn(), u = Fc({
37428
37434
  address: l.address,
37429
37435
  chainId: n,
37430
37436
  disabled: !t || !a.apy
37431
- }), f = iY({
37437
+ }), f = oY({
37432
37438
  chainId: n,
37433
37439
  apy: (p = a.apy) == null ? void 0 : p.value,
37434
37440
  currency: (v = a.apy) == null ? void 0 : v.currency,
@@ -37444,7 +37450,7 @@ const rL = {
37444
37450
  monthlyEarnings: null,
37445
37451
  showEarnings: !1
37446
37452
  };
37447
- }, sY = (t, n) => {
37453
+ }, lY = (t, n) => {
37448
37454
  const a = kC();
37449
37455
  return Gb({
37450
37456
  queryKey: [
@@ -37463,10 +37469,10 @@ const rL = {
37463
37469
  debouncedSendTokenValue: l,
37464
37470
  isDebouncing: a.value !== l
37465
37471
  };
37466
- }, iL = "getAccountNftTokenId", oL = "dHedgeVaultsWhitelist", lY = [
37472
+ }, iL = "getAccountNftTokenId", oL = "dHedgeVaultsWhitelist", uY = [
37467
37473
  IR({ abi: jO, name: iL }),
37468
37474
  IR({ abi: jO, name: oL })
37469
- ], uY = (t) => {
37475
+ ], cY = (t) => {
37470
37476
  var v, g, w;
37471
37477
  const { chainId: n, address: a } = ht(), l = Cr(
37472
37478
  "synthetixV3Core",
@@ -37483,7 +37489,7 @@ const rL = {
37483
37489
  }
37484
37490
  }), f = {
37485
37491
  address: u,
37486
- abi: lY,
37492
+ abi: uY,
37487
37493
  chainId: n
37488
37494
  }, { data: p } = Oi({
37489
37495
  contracts: [
@@ -37531,7 +37537,7 @@ const rL = {
37531
37537
  }, mv = (t) => {
37532
37538
  const [{ action: n, status: a }] = Ll();
37533
37539
  return n === t && (a === "Wallet" || a === "Mining");
37534
- }, cY = () => {
37540
+ }, dY = () => {
37535
37541
  const t = WM(), n = mv("approve");
37536
37542
  return {
37537
37543
  disabled: !t,
@@ -37541,13 +37547,13 @@ const rL = {
37541
37547
  onApprove: t,
37542
37548
  symbol: n
37543
37549
  }) => {
37544
- const { ActionButton: a = ko } = Zr(), l = It(), { disabled: u, isLoading: f } = cY();
37550
+ const { ActionButton: a = ko } = Zr(), l = It(), { disabled: u, isLoading: f } = dY();
37545
37551
  return /* @__PURE__ */ R.jsx(a, { disabled: u, onClick: t, loading: f, children: /* @__PURE__ */ R.jsxs("span", { children: [
37546
37552
  l.approve,
37547
37553
  " ",
37548
37554
  n
37549
37555
  ] }) });
37550
- }, dY = ({
37556
+ }, fY = ({
37551
37557
  onClick: t,
37552
37558
  tooltipText: n,
37553
37559
  disabled: a
@@ -37564,7 +37570,7 @@ const rL = {
37564
37570
  return () => clearTimeout(p);
37565
37571
  }, [l]), { disabled: a || l, tooltipText: n, handleClick: f };
37566
37572
  }, lL = (t) => {
37567
- const { disabled: n, tooltipText: a, handleClick: l } = dY(t);
37573
+ const { disabled: n, tooltipText: a, handleClick: l } = fY(t);
37568
37574
  return /* @__PURE__ */ R.jsx(jE, { text: a, children: /* @__PURE__ */ R.jsx(
37569
37575
  HC,
37570
37576
  {
@@ -37578,7 +37584,7 @@ const rL = {
37578
37584
  )
37579
37585
  }
37580
37586
  ) });
37581
- }, fY = () => {
37587
+ }, pY = () => {
37582
37588
  const { chainId: t, address: n } = ht(), { data: { isCustomCooldownDepositAllowed: a } = {} } = ST({
37583
37589
  address: n,
37584
37590
  chainId: t
@@ -37598,7 +37604,7 @@ const rL = {
37598
37604
  const [t] = hn(), { chainId: n, address: a } = ht(), l = CT({
37599
37605
  address: a,
37600
37606
  chainId: n
37601
- }), u = fY();
37607
+ }), u = pY();
37602
37608
  return $e(() => {
37603
37609
  const f = l.filter(
37604
37610
  ({ isDeposit: g }) => g
@@ -37656,7 +37662,7 @@ const rL = {
37656
37662
  return new Ke(u.value || "0").shiftedBy(u.decimals).times(1 - A / 100).toFixed(0);
37657
37663
  }, $g = () => {
37658
37664
  const { account: t = ct } = Fr(), { chainId: n } = ht(), [a] = hn(), { debouncedSendTokenValue: l } = DT(), { vaultDepositTokenAddress: u } = Bg(), f = jg(), p = RT();
37659
- return sY(
37665
+ return lY(
37660
37666
  {
37661
37667
  sourceAddress: a.address,
37662
37668
  destinationAddress: u,
@@ -37673,7 +37679,7 @@ const rL = {
37673
37679
  }, cL = () => {
37674
37680
  const [t] = hn(), { debouncedSendTokenValue: n } = DT(), a = jg(), { data: l } = $g();
37675
37681
  return a ? (l == null ? void 0 : l.destinationAmount) ?? "0" : new Ke(n || "0").shiftedBy(t.decimals).toFixed(0);
37676
- }, pY = ({
37682
+ }, mY = ({
37677
37683
  depositMethod: t,
37678
37684
  vaultDepositTokenAddress: n
37679
37685
  }) => {
@@ -37725,8 +37731,8 @@ const rL = {
37725
37731
  p == null ? void 0 : p.destinationAmount,
37726
37732
  g
37727
37733
  ]);
37728
- }, tk = "deposit", mY = () => {
37729
- const { chainId: t } = ht(), [n] = Mn(), a = vf()[1], { depositMethod: l, vaultDepositTokenAddress: u } = Bg(), f = pY({
37734
+ }, tk = "deposit", hY = () => {
37735
+ const { chainId: t } = ht(), [n] = Mn(), a = vf()[1], { depositMethod: l, vaultDepositTokenAddress: u } = Bg(), f = mY({
37730
37736
  depositMethod: l,
37731
37737
  vaultDepositTokenAddress: u
37732
37738
  }), p = AT(tk), { send: v } = xT({
@@ -37747,7 +37753,7 @@ const rL = {
37747
37753
  f,
37748
37754
  l
37749
37755
  ]);
37750
- }, hY = () => {
37756
+ }, vY = () => {
37751
37757
  const { account: t = ct } = Fr(), { chainId: n } = ht(), [a] = hn(), l = Cr("easySwapperV2", n), u = new Ke(a.value || "0").shiftedBy(a.decimals).toFixed(0, Ke.ROUND_UP), f = GM({
37752
37758
  tokenAddress: a.address,
37753
37759
  ownerAddress: t,
@@ -37761,7 +37767,7 @@ const rL = {
37761
37767
  rawTokenAmount: u,
37762
37768
  spenderAddress: l
37763
37769
  }), canSpend: f };
37764
- }, vY = ({
37770
+ }, yY = ({
37765
37771
  address: t,
37766
37772
  chainId: n
37767
37773
  }) => {
@@ -37777,8 +37783,8 @@ const rL = {
37777
37783
  }
37778
37784
  });
37779
37785
  return iM(v), v;
37780
- }, yY = () => {
37781
- const { address: t, chainId: n } = ht(), a = fv(), [l] = hn(), [u, f] = Mn(), [, p] = ki(), { isDebouncing: v, debouncedSendTokenValue: g } = DT(), { isFetching: w } = $g(), { data: x, isFetching: C } = vY({
37786
+ }, gY = () => {
37787
+ const { address: t, chainId: n } = ht(), a = fv(), [l] = hn(), [u, f] = Mn(), [, p] = ki(), { isDebouncing: v, debouncedSendTokenValue: g } = DT(), { isFetching: w } = $g(), { data: x, isFetching: C } = yY({
37782
37788
  address: t,
37783
37789
  chainId: n
37784
37790
  }), D = w || C || v;
@@ -37822,7 +37828,7 @@ const rL = {
37822
37828
  p,
37823
37829
  v
37824
37830
  ]);
37825
- }, gY = () => {
37831
+ }, wY = () => {
37826
37832
  const t = fv(), [n] = Mn(), [, a] = ki(), { isDebouncing: l } = DT({
37827
37833
  extendedDebounceTime: !0
37828
37834
  }), u = RT(), f = dL({ includesEntryFee: !0 });
@@ -38472,10 +38478,10 @@ zb.exports;
38472
38478
  }
38473
38479
  t.exports = Xs;
38474
38480
  })(zb, zb.exports);
38475
- var wY = zb.exports;
38476
- const bY = /* @__PURE__ */ bg(wY), KC = () => {
38481
+ var bY = zb.exports;
38482
+ const TY = /* @__PURE__ */ bg(bY), KC = () => {
38477
38483
  const { address: t, chainId: n, depositParams: a } = ht(), { account: l } = Fr(), u = CT({ address: t, chainId: n }), f = LC(), p = $e(
38478
- () => bY(
38484
+ () => TY(
38479
38485
  [
38480
38486
  ...u.filter(({ isDeposit: x }) => x).map(({ tokenAddress: x, tokenName: C, precision: D }) => ({
38481
38487
  address: x.toLowerCase(),
@@ -38546,7 +38552,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38546
38552
  n,
38547
38553
  a.defaultDepositTokenSymbol
38548
38554
  ]);
38549
- }, TY = () => {
38555
+ }, xY = () => {
38550
38556
  const t = ht(), [n] = KC(), a = hn()[1], [l] = Mc();
38551
38557
  vt(() => {
38552
38558
  l === "deposit" && (n != null && n.symbol) && a({
@@ -38564,7 +38570,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38564
38570
  n == null ? void 0 : n.address,
38565
38571
  n == null ? void 0 : n.decimals
38566
38572
  ]);
38567
- }, xY = () => {
38573
+ }, SY = () => {
38568
38574
  const { chainId: t, address: n, deprecated: a } = ht(), { isPrivateVault: l = !1 } = Pc({
38569
38575
  address: n,
38570
38576
  chainId: t
@@ -38573,7 +38579,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38573
38579
  chainId: t
38574
38580
  });
38575
38581
  return { isVaultDepositLocked: u, isAccountWhitelisted: f };
38576
- }, SY = () => {
38582
+ }, EY = () => {
38577
38583
  const { defaultLockTime: t } = Gn(), { chainId: n, address: a } = ht(), { data: { customCooldown: l } = {} } = ST({
38578
38584
  address: a,
38579
38585
  chainId: n
@@ -38587,13 +38593,13 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38587
38593
  default:
38588
38594
  return t;
38589
38595
  }
38590
- }, EY = () => {
38596
+ }, CY = () => {
38591
38597
  const { refetch: t, isFetched: n } = $g(), { invalidateTradingQueries: a } = NC();
38592
38598
  return { handleSwapQuoteReload: () => {
38593
38599
  a(), t();
38594
38600
  }, disabled: !n };
38595
- }, CY = () => {
38596
- const t = It(), { handleSwapQuoteReload: n, disabled: a } = EY();
38601
+ }, AY = () => {
38602
+ const t = It(), { handleSwapQuoteReload: n, disabled: a } = CY();
38597
38603
  return /* @__PURE__ */ R.jsx(
38598
38604
  lL,
38599
38605
  {
@@ -38602,13 +38608,13 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38602
38608
  disabled: a
38603
38609
  }
38604
38610
  );
38605
- }, AY = () => {
38611
+ }, DY = () => {
38606
38612
  const { refetch: t, isFetched: n } = Ug(), { invalidateTradingQueries: a } = NC();
38607
38613
  return { handleSwapQuoteReload: () => {
38608
38614
  a(), t();
38609
38615
  }, disabled: !n };
38610
- }, DY = () => {
38611
- const t = It(), { handleSwapQuoteReload: n, disabled: a } = AY();
38616
+ }, RY = () => {
38617
+ const t = It(), { handleSwapQuoteReload: n, disabled: a } = DY();
38612
38618
  return /* @__PURE__ */ R.jsx(
38613
38619
  lL,
38614
38620
  {
@@ -38617,16 +38623,16 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38617
38623
  disabled: a
38618
38624
  }
38619
38625
  );
38620
- }, RY = () => fv() ? /* @__PURE__ */ R.jsx(CY, {}) : /* @__PURE__ */ R.jsx(DY, {}), gg = ["deposit", "withdraw"], OY = (t) => Object.keys(Xr).some((n) => n === t), kY = ({ children: t }) => {
38626
+ }, OY = () => fv() ? /* @__PURE__ */ R.jsx(AY, {}) : /* @__PURE__ */ R.jsx(RY, {}), gg = ["deposit", "withdraw"], kY = (t) => Object.keys(Xr).some((n) => n === t), _Y = ({ children: t }) => {
38621
38627
  const n = zM();
38622
38628
  let a = null;
38623
38629
  return d3.forEach(t, (l) => {
38624
38630
  if (ck(l)) {
38625
38631
  const u = l.props.type;
38626
- OY(u) && n[u] && n[u].isOpen && (a = l);
38632
+ kY(u) && n[u] && n[u].isOpen && (a = l);
38627
38633
  }
38628
38634
  }), a;
38629
- }, _Y = ({ type: t }) => {
38635
+ }, NY = ({ type: t }) => {
38630
38636
  const n = It(), { DepositTermsOfUse: a, ActionButton: l = ko } = Zr(), { handleReject: u, handleConfirm: f, isPending: p } = Kp({
38631
38637
  type: t
38632
38638
  });
@@ -38661,7 +38667,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38661
38667
  )
38662
38668
  ] })
38663
38669
  ] });
38664
- }, NY = ({ type: t }) => {
38670
+ }, MY = ({ type: t }) => {
38665
38671
  const n = It(), { ActionButton: a = ko } = Zr(), { handleReject: l, handleConfirm: u } = Kp({ type: t });
38666
38672
  return /* @__PURE__ */ R.jsxs(ca.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
38667
38673
  /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
@@ -38684,7 +38690,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38684
38690
  /* @__PURE__ */ R.jsx(a, { onClick: u, children: n.confirm })
38685
38691
  ] })
38686
38692
  ] });
38687
- }, MY = ({ type: t }) => {
38693
+ }, LY = ({ type: t }) => {
38688
38694
  const { handleReject: n, handleConfirm: a } = Kp({ type: t }), { unlockTaxAmount: l, unlockDate: u, unlockTimestamp: f, isLoading: p } = g9(), v = !!f && Date.now() < f;
38689
38695
  return {
38690
38696
  isLoading: p,
@@ -38695,7 +38701,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38695
38701
  handleReject: n,
38696
38702
  handleConfirm: a
38697
38703
  };
38698
- }, LY = (t) => {
38704
+ }, PY = (t) => {
38699
38705
  const { ActionButton: n = ko } = Zr(), {
38700
38706
  isLoading: a,
38701
38707
  showUnlockTaxTip: l,
@@ -38704,7 +38710,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38704
38710
  unlockTaxAmount: p,
38705
38711
  handleReject: v,
38706
38712
  handleConfirm: g
38707
- } = MY(t);
38713
+ } = LY(t);
38708
38714
  return a ? /* @__PURE__ */ R.jsx(bG, {}) : /* @__PURE__ */ R.jsxs(ca.Overlay, { className: "dtw-justify-between dtw-gap-y-1", children: [
38709
38715
  /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center dtw-text-warning", children: [
38710
38716
  /* @__PURE__ */ R.jsx(Vh, { className: "dtw-h-5 dtw-w-5" }),
@@ -38734,7 +38740,7 @@ const bY = /* @__PURE__ */ bg(wY), KC = () => {
38734
38740
  ] })
38735
38741
  ] });
38736
38742
  };
38737
- function PY({
38743
+ function IY({
38738
38744
  title: t,
38739
38745
  titleId: n,
38740
38746
  ...a
@@ -38755,8 +38761,8 @@ function PY({
38755
38761
  clipRule: "evenodd"
38756
38762
  }));
38757
38763
  }
38758
- const IY = /* @__PURE__ */ ge.forwardRef(PY), FY = IY;
38759
- function UY({
38764
+ const FY = /* @__PURE__ */ ge.forwardRef(IY), UY = FY;
38765
+ function BY({
38760
38766
  title: t,
38761
38767
  titleId: n,
38762
38768
  ...a
@@ -38777,8 +38783,8 @@ function UY({
38777
38783
  clipRule: "evenodd"
38778
38784
  }));
38779
38785
  }
38780
- const BY = /* @__PURE__ */ ge.forwardRef(UY), jY = BY;
38781
- function $Y({
38786
+ const jY = /* @__PURE__ */ ge.forwardRef(BY), $Y = jY;
38787
+ function zY({
38782
38788
  title: t,
38783
38789
  titleId: n,
38784
38790
  ...a
@@ -38799,7 +38805,7 @@ function $Y({
38799
38805
  clipRule: "evenodd"
38800
38806
  }));
38801
38807
  }
38802
- const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) => /* @__PURE__ */ R.jsx(
38808
+ const HY = /* @__PURE__ */ ge.forwardRef(zY), fL = HY, Hb = ({ children: t }) => /* @__PURE__ */ R.jsx(
38803
38809
  "table",
38804
38810
  {
38805
38811
  className: "dtw-min-w-full dtw-border-separate",
@@ -38825,7 +38831,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
38825
38831
  ] }),
38826
38832
  /* @__PURE__ */ R.jsx(L_, { show: a, children: /* @__PURE__ */ R.jsx(nC, { className: "dtw-mt-1 dtw-transition dtw-transform dtw-duration-100 dtw-ease-out data-[closed]:opacity-0 data-[closed]:-dtw-translate-y-2.5 dtw-static dtw-rounded-[var(--panel-radius-secondary,var(--panel-radius))] dtw-flex dtw-flex-col dtw-gap-1", children: t }) })
38827
38833
  ] }) });
38828
- }, HY = (t) => {
38834
+ }, WY = (t) => {
38829
38835
  const { address: n, chainId: a } = ht(), [{ value: l }] = hn(), u = hM({
38830
38836
  vaultTokensAmount: l,
38831
38837
  address: n,
@@ -38864,7 +38870,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
38864
38870
  chainId: p,
38865
38871
  showUnitWithdrawalTip: v,
38866
38872
  address: g
38867
- } = HY(l), w = St(
38873
+ } = WY(l), w = St(
38868
38874
  ({
38869
38875
  fraction: x,
38870
38876
  fractionUsd: C,
@@ -38945,18 +38951,18 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
38945
38951
  )
38946
38952
  ] })
38947
38953
  ] }) : /* @__PURE__ */ R.jsx(PM, {}) });
38948
- }, WY = ({
38954
+ }, VY = ({
38949
38955
  token: t,
38950
38956
  onSelect: n
38951
38957
  }) => ({
38952
38958
  onClick: () => {
38953
38959
  n(t);
38954
38960
  }
38955
- }), VY = ({
38961
+ }), GY = ({
38956
38962
  token: t,
38957
38963
  onSelect: n
38958
38964
  }) => {
38959
- const { onClick: a } = WY({ token: t, onSelect: n });
38965
+ const { onClick: a } = VY({ token: t, onSelect: n });
38960
38966
  return /* @__PURE__ */ R.jsxs(
38961
38967
  "div",
38962
38968
  {
@@ -38984,7 +38990,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
38984
38990
  ]
38985
38991
  }
38986
38992
  );
38987
- }, GY = ({
38993
+ }, YY = ({
38988
38994
  token: t,
38989
38995
  onSelect: n,
38990
38996
  isActive: a,
@@ -39013,7 +39019,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39013
39019
  onClose: a,
39014
39020
  isActive: l = !1
39015
39021
  }) => {
39016
- const { onClick: u, formattedBalance: f } = GY({
39022
+ const { onClick: u, formattedBalance: f } = YY({
39017
39023
  token: t,
39018
39024
  onSelect: n,
39019
39025
  onClose: a,
@@ -39045,7 +39051,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39045
39051
  }
39046
39052
  ),
39047
39053
  /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-self-end dtw-text-sm dtw-font-light dtw-text-[color:var(--panel-balance-content-color)]", children: [
39048
- l && /* @__PURE__ */ R.jsx(FY, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
39054
+ l && /* @__PURE__ */ R.jsx(UY, { className: "dtw-w-4 dtw-self-end dtw-text-themeGreen" }),
39049
39055
  /* @__PURE__ */ R.jsxs("div", { children: [
39050
39056
  /* @__PURE__ */ R.jsx("span", { className: "dtw-mr-1 dtw-text-xs", children: t.symbol }),
39051
39057
  f
@@ -39054,8 +39060,8 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39054
39060
  ]
39055
39061
  }
39056
39062
  );
39057
- }, YY = [], qY = () => {
39058
- const t = ht(), [n] = Mc(), [a, l] = hn(), [u, f] = Mn(), { data: p } = yM(t), v = KC(), g = p ? YY : t.withdrawParams.customTokens;
39063
+ }, qY = [], QY = () => {
39064
+ const t = ht(), [n] = Mc(), [a, l] = hn(), [u, f] = Mn(), { data: p } = yM(t), v = KC(), g = p ? qY : t.withdrawParams.customTokens;
39059
39065
  return $e(
39060
39066
  () => ({
39061
39067
  tokens: n === "deposit" ? v : g,
@@ -39072,11 +39078,11 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39072
39078
  u
39073
39079
  ]
39074
39080
  );
39075
- }, QY = ({
39081
+ }, KY = ({
39076
39082
  searchQuery: t,
39077
39083
  type: n
39078
39084
  }) => {
39079
- const [{ isMultiAssetWithdrawalEnabled: a }] = ki(), { isCompleteWithdrawStep: l } = Fg(), u = LC(), [f] = Mc(), { handleReject: p } = Kp({ type: n }), { tokens: v, updater: g, activeTokens: w } = qY(), x = $e(
39085
+ const [{ isMultiAssetWithdrawalEnabled: a }] = ki(), { isCompleteWithdrawStep: l } = Fg(), u = LC(), [f] = Mc(), { handleReject: p } = Kp({ type: n }), { tokens: v, updater: g, activeTokens: w } = QY(), x = $e(
39080
39086
  () => t ? v.filter(
39081
39087
  ({ symbol: D }) => D.toLowerCase().includes(t)
39082
39088
  ) : v,
@@ -39094,7 +39100,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39094
39100
  onClose: p,
39095
39101
  showMultiAssetWithdrawalOption: a && f === "withdraw" && !u && !l
39096
39102
  };
39097
- }, KY = ({
39103
+ }, XY = ({
39098
39104
  type: t,
39099
39105
  searchQuery: n
39100
39106
  }) => {
@@ -39104,7 +39110,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39104
39110
  onSelect: f,
39105
39111
  showMultiAssetWithdrawalOption: p,
39106
39112
  onClose: v
39107
- } = QY({ type: t, searchQuery: n });
39113
+ } = KY({ type: t, searchQuery: n });
39108
39114
  return /* @__PURE__ */ R.jsxs(
39109
39115
  ca.Overlay,
39110
39116
  {
@@ -39136,7 +39142,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39136
39142
  );
39137
39143
  }),
39138
39144
  p && /* @__PURE__ */ R.jsx("li", { className: "dtw-cursor-pointer dtw-rounded-xl dtw-p-0.5 even:dtw-bg-[color:var(--panel-popup-list-item-bg-even)] odd:dtw-bg-[color:var(--panel-popup-list-item-bg-odd)] dtw-group", children: /* @__PURE__ */ R.jsx(
39139
- VY,
39145
+ GY,
39140
39146
  {
39141
39147
  token: DE,
39142
39148
  onSelect: f
@@ -39146,7 +39152,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39146
39152
  ]
39147
39153
  }
39148
39154
  );
39149
- }, XY = ({
39155
+ }, ZY = ({
39150
39156
  children: t,
39151
39157
  chainId: n
39152
39158
  }) => {
@@ -39174,7 +39180,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39174
39180
  balanceInUsd: ((a = n[t.address]) == null ? void 0 : a.balanceInUsd) ?? Nl({ value: 0 }),
39175
39181
  balanceInUsdNumber: ((l = n[t.address]) == null ? void 0 : l.balanceInUsdNumber) ?? 0
39176
39182
  } : { balanceInUsd: Nl({ value: 0 }), balanceInUsdNumber: 0 };
39177
- }, ZY = (t) => (n, a) => OE(a, t).balanceInUsdNumber - OE(n, t).balanceInUsdNumber, JY = ({
39183
+ }, JY = (t) => (n, a) => OE(a, t).balanceInUsdNumber - OE(n, t).balanceInUsdNumber, eq = ({
39178
39184
  searchQuery: t,
39179
39185
  type: n
39180
39186
  }) => {
@@ -39204,7 +39210,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39204
39210
  isActive: u.address === A.address
39205
39211
  })).filter(
39206
39212
  ({ symbol: A }) => t ? A.toLowerCase().includes(t) : !0
39207
- ).slice().sort(ZY(a))
39213
+ ).slice().sort(JY(a))
39208
39214
  ]
39209
39215
  })
39210
39216
  ),
@@ -39213,11 +39219,11 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39213
39219
  onClose: f,
39214
39220
  onSelect: x
39215
39221
  };
39216
- }, eq = ({
39222
+ }, tq = ({
39217
39223
  type: t,
39218
39224
  searchQuery: n
39219
39225
  }) => {
39220
- const a = It(), { poolList: l, onClose: u, onSelect: f } = JY({
39226
+ const a = It(), { poolList: l, onClose: u, onSelect: f } = eq({
39221
39227
  type: t,
39222
39228
  searchQuery: n
39223
39229
  });
@@ -39229,7 +39235,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39229
39235
  className: "dtw-gap-[var(--panel-gap)]",
39230
39236
  children: [
39231
39237
  /* @__PURE__ */ R.jsx("span", { className: "dtw-text-center dtw-text-[length:var(--panel-font-size-sm)] dtw-font-[var(--panel-font-weight-medium)]", children: a.selectToken }),
39232
- /* @__PURE__ */ R.jsx("div", { className: "dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto", children: l.map(({ chainId: p, configs: v }) => /* @__PURE__ */ R.jsx(XY, { chainId: p, children: v.map(({ isActive: g, symbol: w, address: x }) => /* @__PURE__ */ R.jsx(
39238
+ /* @__PURE__ */ R.jsx("div", { className: "dtw-grid dtw-gap-[calc(var(--panel-gap) * 0.5)] dtw-overflow-y-auto", children: l.map(({ chainId: p, configs: v }) => /* @__PURE__ */ R.jsx(ZY, { chainId: p, children: v.map(({ isActive: g, symbol: w, address: x }) => /* @__PURE__ */ R.jsx(
39233
39239
  "div",
39234
39240
  {
39235
39241
  className: Mt(
@@ -39258,7 +39264,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39258
39264
  ]
39259
39265
  }
39260
39266
  );
39261
- }, tq = ({ type: t }) => {
39267
+ }, nq = ({ type: t }) => {
39262
39268
  const n = It(), [{ status: a, link: l, action: u }, f] = Ll(), p = a == "Success", { handleReject: v } = Kp({ type: t }), g = u === "single_withdraw" && p, w = $e(
39263
39269
  () => ({
39264
39270
  Wallet: n.sendingOrderToWallet,
@@ -39276,17 +39282,17 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39276
39282
  onClose: x,
39277
39283
  showNextStepTip: g
39278
39284
  };
39279
- }, nq = ({ sendTokens: t }) => {
39285
+ }, rq = ({ sendTokens: t }) => {
39280
39286
  const n = It(), [a] = t ?? [];
39281
39287
  return a ? /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-items-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: [
39282
39288
  /* @__PURE__ */ R.jsx("span", { children: n.approveSpending }),
39283
39289
  /* @__PURE__ */ R.jsx(ev, { size: "sm", symbols: [a.symbol] }),
39284
39290
  /* @__PURE__ */ R.jsx("span", { children: a.symbol })
39285
39291
  ] }) : null;
39286
- }, rq = () => {
39292
+ }, aq = () => {
39287
39293
  const t = It();
39288
39294
  return /* @__PURE__ */ R.jsx("div", { className: "dtw-flex dtw-items-center dtw-justify-center dtw-gap-1 dtw-flex-wrap dtw-overflow-hidden", children: t.updateSynthetixOracles });
39289
- }, aq = ({ receiveTokens: t }) => {
39295
+ }, iq = ({ receiveTokens: t }) => {
39290
39296
  const n = It(), [a] = t ?? [];
39291
39297
  return a ? /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-1", children: [
39292
39298
  n.swapAndClaimTo,
@@ -39297,7 +39303,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39297
39303
  a.symbol
39298
39304
  ] })
39299
39305
  ] }) : null;
39300
- }, iq = ({ sendTokens: t, receiveTokens: n, action: a }) => {
39306
+ }, oq = ({ sendTokens: t, receiveTokens: n, action: a }) => {
39301
39307
  const l = It(), [u] = t ?? [], [f] = n ?? [];
39302
39308
  return u ? /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-flex-wrap dtw-items-center dtw-gap-x-1", children: [
39303
39309
  a === "deposit" ? l.pay : a === "multi_withdraw" ? l.sell : l.unrollAction,
@@ -39314,24 +39320,24 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39314
39320
  f.symbol
39315
39321
  ] }) : /* @__PURE__ */ R.jsx(R.Fragment, { children: a === "multi_withdraw" ? l.multiAssetFractions : l.swappableAssets }) })
39316
39322
  ] }) : null;
39317
- }, oq = () => {
39323
+ }, sq = () => {
39318
39324
  const t = It(), [{ action: n, receiveTokens: a, sendTokens: l }] = Ll();
39319
- return n === "oraclesUpdate" ? /* @__PURE__ */ R.jsx(rq, {}) : n === "approve" ? /* @__PURE__ */ R.jsx(nq, { sendTokens: l }) : n === "swap" ? /* @__PURE__ */ R.jsx(aq, { receiveTokens: a }) : n === "claim" ? /* @__PURE__ */ R.jsx(R.Fragment, { children: t.claimLabel }) : /* @__PURE__ */ R.jsx(
39320
- iq,
39325
+ return n === "oraclesUpdate" ? /* @__PURE__ */ R.jsx(aq, {}) : n === "approve" ? /* @__PURE__ */ R.jsx(rq, { sendTokens: l }) : n === "swap" ? /* @__PURE__ */ R.jsx(iq, { receiveTokens: a }) : n === "claim" ? /* @__PURE__ */ R.jsx(R.Fragment, { children: t.claimLabel }) : /* @__PURE__ */ R.jsx(
39326
+ oq,
39321
39327
  {
39322
39328
  action: n,
39323
39329
  sendTokens: l,
39324
39330
  receiveTokens: a
39325
39331
  }
39326
39332
  );
39327
- }, sq = ({ type: t }) => {
39328
- const { link: n, title: a, onClose: l, isSuccessTx: u, showNextStepTip: f } = tq({ type: t }), { LogoSpinner: p = Qp } = Zr(), v = It();
39333
+ }, lq = ({ type: t }) => {
39334
+ const { link: n, title: a, onClose: l, isSuccessTx: u, showNextStepTip: f } = nq({ type: t }), { LogoSpinner: p = Qp } = Zr(), v = It();
39329
39335
  return /* @__PURE__ */ R.jsxs(ca.Notification, { onClose: l, children: [
39330
39336
  /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-items-center dtw-gap-1.5", children: [
39331
39337
  /* @__PURE__ */ R.jsx("span", { className: "dtw-font-semibold dtw-drop-shadow-md", children: a }),
39332
39338
  u ? /* @__PURE__ */ R.jsx(NE, { className: "dtw-h-6 dtw-w-6 dtw-text-success" }) : /* @__PURE__ */ R.jsx(p, { className: "dtw-h-5 dtw-w-5 " })
39333
39339
  ] }),
39334
- /* @__PURE__ */ R.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-scroll dtw-break-all", children: /* @__PURE__ */ R.jsx(oq, {}) }),
39340
+ /* @__PURE__ */ R.jsx("div", { className: "dtw-font-light dtw-text-sm dtw-max-h-16 dtw-overflow-y-scroll dtw-break-all", children: /* @__PURE__ */ R.jsx(sq, {}) }),
39335
39341
  n && /* @__PURE__ */ R.jsx(
39336
39342
  MM,
39337
39343
  {
@@ -39343,26 +39349,26 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39343
39349
  ),
39344
39350
  f && /* @__PURE__ */ R.jsx("p", { className: "dtw-text-xs", children: v.proceedWithNextStep })
39345
39351
  ] });
39346
- }, lq = Nc.filter(
39352
+ }, uq = Nc.filter(
39347
39353
  ({ type: t }) => t === "error"
39348
- ).map(({ name: t }) => t), uq = (t, n = 150) => t.length > n ? t.substring(0, n) : t, cq = (t) => {
39354
+ ).map(({ name: t }) => t), cq = (t, n = 150) => t.length > n ? t.substring(0, n) : t, dq = (t) => {
39349
39355
  if (!t)
39350
39356
  return null;
39351
- const n = lq.find((l) => t.includes(l)), [a] = t.split(n ? "." : "Contract").map((l) => l.trim());
39357
+ const n = uq.find((l) => t.includes(l)), [a] = t.split(n ? "." : "Contract").map((l) => l.trim());
39352
39358
  return TW[n ?? t] ?? {
39353
39359
  title: "Transaction failed",
39354
- hint: `${uq(a ?? "")} ${n ? `: ${n}` : ""}`
39360
+ hint: `${cq(a ?? "")} ${n ? `: ${n}` : ""}`
39355
39361
  };
39356
- }, dq = ({ type: t }) => {
39362
+ }, fq = ({ type: t }) => {
39357
39363
  const { handleReject: n, meta: a } = Kp({ type: t });
39358
- return { handleReject: n, error: cq(a == null ? void 0 : a.error) };
39359
- }, fq = (t) => {
39360
- const { handleReject: n, error: a } = dq(t);
39364
+ return { handleReject: n, error: dq(a == null ? void 0 : a.error) };
39365
+ }, pq = (t) => {
39366
+ const { handleReject: n, error: a } = fq(t);
39361
39367
  return a ? /* @__PURE__ */ R.jsxs(ca.Notification, { onClose: n, children: [
39362
39368
  /* @__PURE__ */ R.jsx("p", { className: "dtw-text-sm", children: a.title }),
39363
39369
  a.hint && /* @__PURE__ */ R.jsx("p", { className: "dtw-text-xs", children: a.hint })
39364
39370
  ] }) : null;
39365
- }, pq = () => {
39371
+ }, mq = () => {
39366
39372
  const [t] = Mc(), [n, a] = ki(), [l, u] = Lt(!1), f = n.slippage !== "auto";
39367
39373
  return {
39368
39374
  settings: n,
@@ -39398,7 +39404,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39398
39404
  onClick: l,
39399
39405
  children: n
39400
39406
  }
39401
- ), mq = 0, hq = 100, vL = () => {
39407
+ ), hq = 0, vq = 100, vL = () => {
39402
39408
  const t = It(), {
39403
39409
  settings: n,
39404
39410
  tradingType: a,
@@ -39406,7 +39412,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39406
39412
  invalidSlippage: u,
39407
39413
  onDefaultSlippageSelect: f,
39408
39414
  onCustomSlippageSelect: p
39409
- } = pq(), v = DM({
39415
+ } = mq(), v = DM({
39410
39416
  tradingType: a,
39411
39417
  slippage: n.slippage,
39412
39418
  minSlippage: n.minSlippage
@@ -39432,8 +39438,8 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39432
39438
  }
39433
39439
  ),
39434
39440
  type: "number",
39435
- min: mq,
39436
- max: hq,
39441
+ min: hq,
39442
+ max: vq,
39437
39443
  onChange: p,
39438
39444
  placeholder: v,
39439
39445
  defaultValue: l ? n.slippage.toString() : ""
@@ -39452,7 +39458,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39452
39458
  label: t.infinite
39453
39459
  }
39454
39460
  );
39455
- }, vq = () => {
39461
+ }, yq = () => {
39456
39462
  const t = It();
39457
39463
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
39458
39464
  /* @__PURE__ */ R.jsx(
@@ -39472,9 +39478,9 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39472
39478
  }
39473
39479
  )
39474
39480
  ] });
39475
- }, yq = () => {
39476
- yY(), gY();
39477
39481
  }, gq = () => {
39482
+ gY(), wY();
39483
+ }, wq = () => {
39478
39484
  const { stablePrecision: t, defaultPrecision: n } = Gn(), [{ symbol: a, address: l }] = hn(), u = Lc({ symbol: a, address: l, watch: !0 }), { chainId: f } = ht(), p = Fc({ address: l, chainId: f }) ?? "";
39479
39485
  return {
39480
39486
  formattedBalance: `${XN(u, a === "USDC" ? t : n)} ${a}`,
@@ -39482,11 +39488,11 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39482
39488
  value: new Ke(u).multipliedBy(p).toNumber()
39483
39489
  })}` : null
39484
39490
  };
39485
- }, wq = () => {
39486
- const { formattedBalance: t, formattedPrice: n } = gq();
39487
- return /* @__PURE__ */ R.jsx(LM, { balance: t, price: n });
39488
39491
  }, bq = () => {
39489
- const t = Ic(), { onAcceptTermsOfUse: n } = EM(), { termsOfUseAccepted: a } = Gn(), l = mY(), { disabled: u, label: f, handleTrade: p } = eL(l), { isError: v } = $g(), g = mv("deposit");
39492
+ const { formattedBalance: t, formattedPrice: n } = wq();
39493
+ return /* @__PURE__ */ R.jsx(LM, { balance: t, price: n });
39494
+ }, Tq = () => {
39495
+ const t = Ic(), { onAcceptTermsOfUse: n } = EM(), { termsOfUseAccepted: a } = Gn(), l = hY(), { disabled: u, label: f, handleTrade: p } = eL(l), { isError: v } = $g(), g = mv("deposit");
39490
39496
  return {
39491
39497
  handleClick: () => {
39492
39498
  if (v) {
@@ -39523,11 +39529,11 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39523
39529
  label: f,
39524
39530
  isLoading: g
39525
39531
  };
39526
- }, Tq = () => {
39527
- const { ActionButton: t = ko } = Zr(), { handleClick: n, label: a, disabled: l, isLoading: u } = bq();
39528
- return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: l, loading: u, children: a });
39529
39532
  }, xq = () => {
39530
- const { address: t, chainId: n, deprecated: a, symbol: l } = ht(), [u] = Mn(), [f] = hn(), { isVaultDepositLocked: p, isAccountWhitelisted: v } = xY(), g = yf({ address: t, chainId: n }), { minDepositUSD: w } = mM(t, n), x = K9(t), { approve: C, canSpend: D } = hY(), { needToBeUpdated: A, updateOracles: M, isCheckOraclesPending: U } = aL({
39533
+ const { ActionButton: t = ko } = Zr(), { handleClick: n, label: a, disabled: l, isLoading: u } = Tq();
39534
+ return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: l, loading: u, children: a });
39535
+ }, Sq = () => {
39536
+ const { address: t, chainId: n, deprecated: a, symbol: l } = ht(), [u] = Mn(), [f] = hn(), { isVaultDepositLocked: p, isAccountWhitelisted: v } = SY(), g = yf({ address: t, chainId: n }), { minDepositUSD: w } = mM(t, n), x = K9(t), { approve: C, canSpend: D } = vY(), { needToBeUpdated: A, updateOracles: M, isCheckOraclesPending: U } = aL({
39531
39537
  disabled: !D
39532
39538
  }), B = mv("oraclesUpdate"), { requiresHighSlippageConfirm: Z, confirmHighSlippage: I, slippageToBeUsed: Q } = UC(), te = new Ke(
39533
39539
  u.value || "0"
@@ -39549,7 +39555,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39549
39555
  isCheckOraclesPending: U,
39550
39556
  isUpdateOraclesTransactionLoading: B
39551
39557
  };
39552
- }, Sq = ({ children: t }) => {
39558
+ }, Eq = ({ children: t }) => {
39553
39559
  const { ActionButton: n = ko } = Zr(), a = It(), l = $C("deposit"), {
39554
39560
  requiresMinDeposit: u,
39555
39561
  minDepositUSD: f,
@@ -39566,7 +39572,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39566
39572
  approve: B,
39567
39573
  confirmHighSlippage: Z,
39568
39574
  isUpdateOraclesTransactionLoading: I
39569
- } = xq();
39575
+ } = Sq();
39570
39576
  return u ? /* @__PURE__ */ R.jsx(n, { disabled: !0, children: a.minimumPurchase.replace(
39571
39577
  "{value}",
39572
39578
  YN(f.toString() ?? "")
@@ -39587,7 +39593,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39587
39593
  "{slippagePercentage}",
39588
39594
  `${Math.abs(A)}`
39589
39595
  ) }) : t;
39590
- }, Eq = ({ symbol: t }) => {
39596
+ }, Cq = ({ symbol: t }) => {
39591
39597
  const n = TT(), a = Ic(), { standalone: l } = Gn(), u = n.some((x) => x.symbol === t), f = t === "all", p = cV(), v = u && n.length === 1;
39592
39598
  return {
39593
39599
  isAllSymbol: f,
@@ -39603,8 +39609,8 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39603
39609
  disabled: v,
39604
39610
  hideTokenIcon: l && u
39605
39611
  };
39606
- }, Cq = ({ symbol: t }) => {
39607
- const { isAllSymbol: n, onClick: a, disabled: l, hideTokenIcon: u } = Eq({
39612
+ }, Aq = ({ symbol: t }) => {
39613
+ const { isAllSymbol: n, onClick: a, disabled: l, hideTokenIcon: u } = Cq({
39608
39614
  symbol: t
39609
39615
  }), f = It();
39610
39616
  return /* @__PURE__ */ R.jsxs(
@@ -39628,7 +39634,7 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39628
39634
  }
39629
39635
  ),
39630
39636
  !l && /* @__PURE__ */ R.jsx(
39631
- jY,
39637
+ $Y,
39632
39638
  {
39633
39639
  className: "dtw-flex-shrink-0 dtw-text-[color:var(--panel-icon-color,var(--panel-content-color))] dtw-h-[var(--panel-input-token-icon-size,var(--panel-icon-size))] dtw-w-[var(--panel-input-token-icon-size,var(--panel-icon-size))] sm:dtw-w-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))] sm:dtw-h-[var(--panel-input-token-icon-size-sm,var(--panel-icon-size-sm))]",
39634
39640
  "aria-hidden": "true"
@@ -39638,13 +39644,13 @@ const zY = /* @__PURE__ */ ge.forwardRef($Y), fL = zY, Hb = ({ children: t }) =>
39638
39644
  }
39639
39645
  );
39640
39646
  };
39641
- function Aq(t, n) {
39647
+ function Dq(t, n) {
39642
39648
  const a = new Ke(t);
39643
39649
  return n && a.gt(0) ? a.toFixed(6) : t;
39644
39650
  }
39645
- const Dq = (t) => {
39651
+ const Rq = (t) => {
39646
39652
  t.currentTarget.blur();
39647
- }, Rq = ({
39653
+ }, Oq = ({
39648
39654
  displayCalculatedValue: t,
39649
39655
  assetInput: n = "",
39650
39656
  assetPrice: a,
@@ -39675,7 +39681,7 @@ const Dq = (t) => {
39675
39681
  return {
39676
39682
  inputRef: w,
39677
39683
  usdAmount: x,
39678
- value: Aq(n, g),
39684
+ value: Dq(n, g),
39679
39685
  autoFocus: v,
39680
39686
  onContainerClick: C,
39681
39687
  onMaxBalanceClick: A,
@@ -39690,7 +39696,7 @@ const Dq = (t) => {
39690
39696
  onContainerClick: f,
39691
39697
  onMaxBalanceClick: p,
39692
39698
  onInputChange: v
39693
- } = Rq(t), {
39699
+ } = Oq(t), {
39694
39700
  label: g,
39695
39701
  assetSymbol: w,
39696
39702
  onInputFocus: x,
@@ -39753,15 +39759,15 @@ const Dq = (t) => {
39753
39759
  onFocus: x,
39754
39760
  placeholder: "0",
39755
39761
  disabled: C,
39756
- onWheelCapture: Dq
39762
+ onWheelCapture: Rq
39757
39763
  }
39758
39764
  ) }),
39759
- /* @__PURE__ */ R.jsx(Cq, { symbol: w })
39765
+ /* @__PURE__ */ R.jsx(Aq, { symbol: w })
39760
39766
  ] })
39761
39767
  ]
39762
39768
  }
39763
39769
  );
39764
- }, Oq = () => {
39770
+ }, kq = () => {
39765
39771
  const [t, n] = hn(), { chainId: a } = ht(), l = Fc({ address: t.address, chainId: a }), u = Lc({
39766
39772
  symbol: t.symbol,
39767
39773
  address: t.address
@@ -39772,14 +39778,14 @@ const Dq = (t) => {
39772
39778
  balance: u,
39773
39779
  updater: n
39774
39780
  };
39775
- }, kq = () => {
39781
+ }, _q = () => {
39776
39782
  const { address: t, chainId: n } = ht(), [a] = Mn(), l = yf({ address: t, chainId: n });
39777
39783
  return {
39778
39784
  ...a,
39779
39785
  price: l
39780
39786
  };
39781
- }, _q = () => {
39782
- const t = Oq(), n = kq(), a = OC(), l = dL(), [{ minSlippage: u }] = ki();
39787
+ }, Nq = () => {
39788
+ const t = kq(), n = _q(), a = OC(), l = dL(), [{ minSlippage: u }] = ki();
39783
39789
  return {
39784
39790
  autoFocus: !1,
39785
39791
  sendToken: t,
@@ -39796,7 +39802,7 @@ const Dq = (t) => {
39796
39802
  t.updater({ value: v });
39797
39803
  }
39798
39804
  };
39799
- }, Nq = () => {
39805
+ }, Mq = () => {
39800
39806
  const {
39801
39807
  sendToken: t,
39802
39808
  receiveToken: n,
@@ -39805,7 +39811,7 @@ const Dq = (t) => {
39805
39811
  minSlippage: u,
39806
39812
  onInputFocus: f,
39807
39813
  onInputChange: p
39808
- } = _q(), v = Pg(u ?? 0), g = It();
39814
+ } = Nq(), v = Pg(u ?? 0), g = It();
39809
39815
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
39810
39816
  /* @__PURE__ */ R.jsx(
39811
39817
  wg,
@@ -39864,8 +39870,8 @@ const Dq = (t) => {
39864
39870
  ]
39865
39871
  }
39866
39872
  );
39867
- }, Mq = () => {
39868
- const t = It(), [{ slippage: n, minSlippage: a, isMaxSlippageLoading: l }] = ki(), u = n === "auto", f = uL(), [p] = Mn(), { address: v, chainId: g } = ht(), { entryFee: w } = IC({ address: v, chainId: g }), { minDepositUSD: x } = mM(v, g), C = oY(), D = SY(), A = jg(), M = x ? Nl({ value: x, minimumFractionDigits: 0 }) : "", U = Pg(
39873
+ }, Lq = () => {
39874
+ const t = It(), [{ slippage: n, minSlippage: a, isMaxSlippageLoading: l }] = ki(), u = n === "auto", f = uL(), [p] = Mn(), { address: v, chainId: g } = ht(), { entryFee: w } = IC({ address: v, chainId: g }), { minDepositUSD: x } = mM(v, g), C = sY(), D = EY(), A = jg(), M = x ? Nl({ value: x, minimumFractionDigits: 0 }) : "", U = Pg(
39869
39875
  u ? a ?? 0 : n
39870
39876
  ), B = DM({
39871
39877
  tradingType: "deposit",
@@ -39888,7 +39894,7 @@ const Dq = (t) => {
39888
39894
  lockTime: D,
39889
39895
  showMinimumReceivedAmount: A
39890
39896
  };
39891
- }, Lq = () => {
39897
+ }, Pq = () => {
39892
39898
  const t = It(), {
39893
39899
  projectedEarnings: { yearlyEarnings: n, dailyEarnings: a, showEarnings: l },
39894
39900
  slippageTooltipText: u,
@@ -39901,7 +39907,7 @@ const Dq = (t) => {
39901
39907
  minDeposit: C,
39902
39908
  lockTime: D,
39903
39909
  showMinimumReceivedAmount: A
39904
- } = Mq(), M = l ? [
39910
+ } = Lq(), M = l ? [
39905
39911
  {
39906
39912
  tooltipText: t.projectedYearlyEarningsTooltip,
39907
39913
  label: t.yearlyEarnings,
@@ -39975,15 +39981,15 @@ const Dq = (t) => {
39975
39981
  children: /* @__PURE__ */ R.jsx("p", { className: "dtw-py-1", children: t.tokensLockTime.replace("{lockTime}", D) })
39976
39982
  }
39977
39983
  );
39978
- }, Pq = ({ children: t }) => {
39984
+ }, Iq = ({ children: t }) => {
39979
39985
  const { DepositMetaInfo: n } = Zr();
39980
39986
  return /* @__PURE__ */ R.jsxs(ca.Meta, { children: [
39981
- /* @__PURE__ */ R.jsx(Lq, {}),
39987
+ /* @__PURE__ */ R.jsx(Pq, {}),
39982
39988
  n && /* @__PURE__ */ R.jsx(n, {}),
39983
39989
  t
39984
39990
  ] });
39985
- }, Iq = () => {
39986
- yq();
39991
+ }, Fq = () => {
39992
+ gq();
39987
39993
  const { isGeoBlocked: t, isSanctioned: n } = Gn(), { GeoBlockAlert: a, ExtraActionButton: l, SanctionedAlert: u } = Zr(), f = t || n, p = [
39988
39994
  {
39989
39995
  Component: a,
@@ -39997,16 +40003,16 @@ const Dq = (t) => {
39997
40003
  }
39998
40004
  ].filter(({ value: v }) => v);
39999
40005
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40000
- /* @__PURE__ */ R.jsx(ca.Balance, { children: /* @__PURE__ */ R.jsx(wq, {}) }),
40001
- /* @__PURE__ */ R.jsx(ca.InputGroup, { children: /* @__PURE__ */ R.jsx(Nq, {}) }),
40002
- /* @__PURE__ */ R.jsx(Pq, { children: f ? p.map(
40006
+ /* @__PURE__ */ R.jsx(ca.Balance, { children: /* @__PURE__ */ R.jsx(bq, {}) }),
40007
+ /* @__PURE__ */ R.jsx(ca.InputGroup, { children: /* @__PURE__ */ R.jsx(Mq, {}) }),
40008
+ /* @__PURE__ */ R.jsx(Iq, { children: f ? p.map(
40003
40009
  ({ Component: v, key: g }) => v && /* @__PURE__ */ R.jsx(v, {}, g)
40004
40010
  ) : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40005
- /* @__PURE__ */ R.jsx(WC, { children: /* @__PURE__ */ R.jsx(Sq, { children: /* @__PURE__ */ R.jsx(Tq, {}) }) }),
40011
+ /* @__PURE__ */ R.jsx(WC, { children: /* @__PURE__ */ R.jsx(Eq, { children: /* @__PURE__ */ R.jsx(xq, {}) }) }),
40006
40012
  l && /* @__PURE__ */ R.jsx(l, {})
40007
40013
  ] }) })
40008
40014
  ] });
40009
- }, Fq = () => /* @__PURE__ */ R.jsx(ca.Panel, { children: /* @__PURE__ */ R.jsx(Iq, {}) }), Uq = () => {
40015
+ }, Uq = () => /* @__PURE__ */ R.jsx(ca.Panel, { children: /* @__PURE__ */ R.jsx(Fq, {}) }), Bq = () => {
40010
40016
  const t = It();
40011
40017
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40012
40018
  /* @__PURE__ */ R.jsx(
@@ -40026,7 +40032,7 @@ const Dq = (t) => {
40026
40032
  }
40027
40033
  )
40028
40034
  ] });
40029
- }, Bq = ({ assets: t = [] }) => {
40035
+ }, jq = ({ assets: t = [] }) => {
40030
40036
  const { stablePrecision: n } = Gn(), { firstPart: a, secondPart: l } = GN(
40031
40037
  t,
40032
40038
  kN
@@ -40057,7 +40063,7 @@ const Dq = (t) => {
40057
40063
  /* @__PURE__ */ R.jsx(Hb, { children: a.map(u) }),
40058
40064
  l.length > 0 && /* @__PURE__ */ R.jsx(pL, { children: /* @__PURE__ */ R.jsx(Hb, { children: l.map(u) }) })
40059
40065
  ] });
40060
- }, jq = () => {
40066
+ }, $q = () => {
40061
40067
  const { chainId: t } = ht(), { stablePrecision: n } = Gn(), { data: a = [] } = Ru(), l = QM(), { data: u = ct } = $G();
40062
40068
  return {
40063
40069
  assets: a,
@@ -40071,8 +40077,8 @@ const Dq = (t) => {
40071
40077
  t
40072
40078
  )
40073
40079
  };
40074
- }, $q = () => {
40075
- const t = It(), { assets: n, usdAmount: a, withdrawalVaultLink: l } = jq();
40080
+ }, zq = () => {
40081
+ const t = It(), { assets: n, usdAmount: a, withdrawalVaultLink: l } = $q();
40076
40082
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40077
40083
  /* @__PURE__ */ R.jsxs("div", { className: "dtw-text-sm dtw-flex dtw-items-center dtw-gap-1", children: [
40078
40084
  /* @__PURE__ */ R.jsx("span", { className: "dtw-text-[color:var(--panel-secondary-content-color)]", children: t.total }),
@@ -40085,9 +40091,9 @@ const Dq = (t) => {
40085
40091
  }
40086
40092
  )
40087
40093
  ] }),
40088
- /* @__PURE__ */ R.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ R.jsx(Bq, { assets: n }) })
40094
+ /* @__PURE__ */ R.jsx("div", { className: "dtw-flex dtw-flex-col dtw-gap-[var(--panel-input-group-gap,var(--panel-gap))] dtw-rounded-[var(--panel-input-radius,var(--panel-radius))] dtw-border dtw-bg-[var(--panel-input-bg,var(--panel-neutral-color))] dtw-py-[var(--panel-input-py)] dtw-px-[var(--panel-input-px)] dtw-shadow-md dtw-border-[var(--panel-input-border-color)]", children: /* @__PURE__ */ R.jsx(jq, { assets: n }) })
40089
40095
  ] });
40090
- }, ak = !0, zq = () => {
40096
+ }, ak = !0, Hq = () => {
40091
40097
  const { isWrongNetwork: t } = HM(), n = qM({ isClaim: ak }), { disabled: a, label: l, handleTrade: u } = XM({
40092
40098
  withdraw: n,
40093
40099
  isClaim: ak
@@ -40097,7 +40103,7 @@ const Dq = (t) => {
40097
40103
  highlighted: t,
40098
40104
  className: n
40099
40105
  }) => {
40100
- const { ActionButton: a = ko } = Zr(), { handleTrade: l, disabled: u, label: f, isWrongNetwork: p, isLoading: v } = zq();
40106
+ const { ActionButton: a = ko } = Zr(), { handleTrade: l, disabled: u, label: f, isWrongNetwork: p, isLoading: v } = Hq();
40101
40107
  return p ? null : /* @__PURE__ */ R.jsx(
40102
40108
  a,
40103
40109
  {
@@ -40109,7 +40115,7 @@ const Dq = (t) => {
40109
40115
  children: f
40110
40116
  }
40111
40117
  );
40112
- }, Hq = () => {
40118
+ }, Wq = () => {
40113
40119
  const t = Ic(), n = qM(), { isError: a } = Ug(), { disabled: l, label: u, handleTrade: f } = XM({
40114
40120
  withdraw: n
40115
40121
  }), p = mv("swap");
@@ -40134,10 +40140,10 @@ const Dq = (t) => {
40134
40140
  },
40135
40141
  isLoading: p
40136
40142
  };
40137
- }, Wq = () => {
40138
- const { ActionButton: t = ko } = Zr(), { handleClick: n, disabled: a, label: l, isLoading: u } = Hq();
40139
- return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: a, loading: u, children: l });
40140
40143
  }, Vq = () => {
40144
+ const { ActionButton: t = ko } = Zr(), { handleClick: n, disabled: a, label: l, isLoading: u } = Wq();
40145
+ return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: a, loading: u, children: l });
40146
+ }, Gq = () => {
40141
40147
  const t = Ic(), { requiresHighSlippageConfirm: n, confirmHighSlippage: a, slippageToBeUsed: l } = UC();
40142
40148
  return {
40143
40149
  requiresHighSlippageConfirm: n,
@@ -40153,21 +40159,21 @@ const Dq = (t) => {
40153
40159
  });
40154
40160
  }
40155
40161
  };
40156
- }, Gq = ({ children: t }) => {
40162
+ }, Yq = ({ children: t }) => {
40157
40163
  const { ActionButton: n = ko } = Zr(), a = It(), {
40158
40164
  requiresHighSlippageConfirm: l,
40159
40165
  slippageToBeUsed: u,
40160
40166
  handleHighSlippageClick: f
40161
- } = Vq();
40167
+ } = Gq();
40162
40168
  return l ? /* @__PURE__ */ R.jsx(n, { onClick: f, children: a.confirmMaxSlippage.replace(
40163
40169
  "{slippagePercentage}",
40164
40170
  `${Math.abs(u)}`
40165
40171
  ) }) : t;
40166
- }, Yq = () => {
40167
- WG();
40172
+ }, qq = () => {
40173
+ VG();
40168
40174
  const t = qC(), n = gf();
40169
40175
  return { showSwapButton: t && !n };
40170
- }, qq = () => {
40176
+ }, Qq = () => {
40171
40177
  const { chainId: t } = ht(), [n] = Mn(), a = Fc({ address: n.address, chainId: t }), l = ZM(), u = Pg(Math.min(0, l));
40172
40178
  return {
40173
40179
  receiveToken: {
@@ -40177,8 +40183,8 @@ const Dq = (t) => {
40177
40183
  swapDiff: l,
40178
40184
  themeType: u
40179
40185
  };
40180
- }, Qq = () => {
40181
- const t = It(), { receiveToken: n, swapDiff: a, themeType: l } = qq();
40186
+ }, Kq = () => {
40187
+ const t = It(), { receiveToken: n, swapDiff: a, themeType: l } = Qq();
40182
40188
  return /* @__PURE__ */ R.jsx(
40183
40189
  wg,
40184
40190
  {
@@ -40194,7 +40200,7 @@ const Dq = (t) => {
40194
40200
  type: l
40195
40201
  }
40196
40202
  );
40197
- }, Kq = () => {
40203
+ }, Xq = () => {
40198
40204
  const t = It(), { stablePrecision: n } = Gn(), [a] = Mn(), l = pv(), { minExpectedReceiveAmount: u } = YC(), f = Pg(l), p = f === Qn.DEFAULT ? t.withdrawSlippageWarning : t.highSlippageWarning;
40199
40205
  return {
40200
40206
  themeType: f,
@@ -40205,8 +40211,8 @@ const Dq = (t) => {
40205
40211
  n
40206
40212
  )} ${a.symbol}`
40207
40213
  };
40208
- }, Xq = () => {
40209
- const t = It(), { slippageTooltipText: n, slippagePlaceholder: a, minReceive: l } = Kq(), u = $e(() => [
40214
+ }, Zq = () => {
40215
+ const t = It(), { slippageTooltipText: n, slippagePlaceholder: a, minReceive: l } = Xq(), u = $e(() => [
40210
40216
  {
40211
40217
  tooltipText: n,
40212
40218
  label: t.maxSlippage,
@@ -40235,10 +40241,10 @@ const Dq = (t) => {
40235
40241
  buttonItemChildren: /* @__PURE__ */ R.jsx(XC, {})
40236
40242
  }
40237
40243
  );
40238
- }, Zq = ({ children: t }) => /* @__PURE__ */ R.jsxs(ca.Meta, { children: [
40239
- /* @__PURE__ */ R.jsx(Xq, {}),
40244
+ }, Jq = ({ children: t }) => /* @__PURE__ */ R.jsxs(ca.Meta, { children: [
40245
+ /* @__PURE__ */ R.jsx(Zq, {}),
40240
40246
  t
40241
- ] }), ok = 0, sk = 1, lk = 2, Jq = () => {
40247
+ ] }), ok = 0, sk = 1, lk = 2, eQ = () => {
40242
40248
  const t = It(), [n] = hn(), [a] = Mn(), l = n.symbol, u = a.symbol, { isCompleteWithdrawStep: f } = Fg(), { canSpend: p } = GC(), v = gf(), g = QC(), w = $e(() => {
40243
40249
  const C = [
40244
40250
  {
@@ -40288,7 +40294,7 @@ const Dq = (t) => {
40288
40294
  }, gL = ({
40289
40295
  children: t
40290
40296
  }) => {
40291
- const { hideStepper: n, steps: a, activeStepIndex: l } = Jq();
40297
+ const { hideStepper: n, steps: a, activeStepIndex: l } = eQ();
40292
40298
  return n ? t : /* @__PURE__ */ R.jsx("div", { className: "dtw-mt-1 dtw-grid dtw-gap-1 dtw-grid-cols-[auto_1fr] dtw-auto-rows-min", children: a.map((u, f) => {
40293
40299
  const p = u.index < l, v = u.index === l, g = f === a.length - 1;
40294
40300
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
@@ -40352,15 +40358,15 @@ const Dq = (t) => {
40352
40358
  )
40353
40359
  ] });
40354
40360
  }) });
40355
- }, eQ = () => {
40356
- const { showSwapButton: t } = Yq();
40361
+ }, tQ = () => {
40362
+ const { showSwapButton: t } = qq();
40357
40363
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40358
40364
  /* @__PURE__ */ R.jsxs(ca.InputGroup, { children: [
40359
- /* @__PURE__ */ R.jsx($q, {}),
40360
- /* @__PURE__ */ R.jsx(Qq, {})
40365
+ /* @__PURE__ */ R.jsx(zq, {}),
40366
+ /* @__PURE__ */ R.jsx(Kq, {})
40361
40367
  ] }),
40362
- /* @__PURE__ */ R.jsx(Zq, { children: /* @__PURE__ */ R.jsx(gL, { children: /* @__PURE__ */ R.jsx(WC, { children: t ? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40363
- /* @__PURE__ */ R.jsx(Gq, { children: /* @__PURE__ */ R.jsx(Wq, {}) }),
40368
+ /* @__PURE__ */ R.jsx(Jq, { children: /* @__PURE__ */ R.jsx(gL, { children: /* @__PURE__ */ R.jsx(WC, { children: t ? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40369
+ /* @__PURE__ */ R.jsx(Yq, { children: /* @__PURE__ */ R.jsx(Vq, {}) }),
40364
40370
  /* @__PURE__ */ R.jsx(
40365
40371
  ik,
40366
40372
  {
@@ -40370,7 +40376,7 @@ const Dq = (t) => {
40370
40376
  )
40371
40377
  ] }) : /* @__PURE__ */ R.jsx(ik, {}) }) }) })
40372
40378
  ] });
40373
- }, tQ = () => {
40379
+ }, nQ = () => {
40374
40380
  const { chainId: t, address: n } = ht(), { exitFeeNumber: a, withdrawalFeeNumber: l } = IC({
40375
40381
  address: n,
40376
40382
  chainId: t
@@ -40396,7 +40402,7 @@ const Dq = (t) => {
40396
40402
  v,
40397
40403
  p
40398
40404
  ]);
40399
- }, nQ = () => {
40405
+ }, rQ = () => {
40400
40406
  const { stablePrecision: t, defaultPrecision: n } = Gn(), [{ symbol: a, address: l }] = hn(), u = Lc({ symbol: a, address: l }), { chainId: f } = ht(), p = yf({ address: l, chainId: f }) ?? "";
40401
40407
  return {
40402
40408
  formattedBalance: `${XN(u, a === "USDC" ? t : n)} ${a}`,
@@ -40404,11 +40410,11 @@ const Dq = (t) => {
40404
40410
  value: new Ke(u).multipliedBy(p).toNumber()
40405
40411
  })}` : null
40406
40412
  };
40407
- }, rQ = () => {
40408
- const { formattedBalance: t, formattedPrice: n } = nQ();
40409
- return /* @__PURE__ */ R.jsx(LM, { balance: t, price: n });
40410
40413
  }, aQ = () => {
40411
- const { withdraw: t, action: n } = KG(), { disabled: a, label: l, handleTrade: u } = eL(t), f = Ic(), { address: p } = ht(), v = ZN(p);
40414
+ const { formattedBalance: t, formattedPrice: n } = rQ();
40415
+ return /* @__PURE__ */ R.jsx(LM, { balance: t, price: n });
40416
+ }, iQ = () => {
40417
+ const { withdraw: t, action: n } = XG(), { disabled: a, label: l, handleTrade: u } = eL(t), f = Ic(), { address: p } = ht(), v = ZN(p);
40412
40418
  return {
40413
40419
  isLoading: mv(n),
40414
40420
  disabled: a,
@@ -40426,12 +40432,12 @@ const Dq = (t) => {
40426
40432
  }) : u();
40427
40433
  }
40428
40434
  };
40429
- }, iQ = () => {
40430
- const { ActionButton: t = ko } = Zr(), { handleTrade: n, disabled: a, label: l, isLoading: u } = aQ();
40431
- return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: a, loading: u, children: l });
40432
40435
  }, oQ = () => {
40436
+ const { ActionButton: t = ko } = Zr(), { handleTrade: n, disabled: a, label: l, isLoading: u } = iQ();
40437
+ return /* @__PURE__ */ R.jsx(t, { onClick: n, disabled: a, loading: u, children: l });
40438
+ }, sQ = () => {
40433
40439
  var g;
40434
- const { address: t, chainId: n } = ht(), [a] = hn(), l = cv(t), { data: u } = uY({
40440
+ const { address: t, chainId: n } = ht(), [a] = hn(), l = cv(t), { data: u } = cY({
40435
40441
  enabled: l
40436
40442
  }), f = VC({
40437
40443
  address: (u == null ? void 0 : u.address) ?? ct,
@@ -40449,13 +40455,13 @@ const Dq = (t) => {
40449
40455
  symbol: VN[t],
40450
40456
  availableLiquidity: u == null ? void 0 : u.formatted
40451
40457
  };
40452
- }, sQ = () => {
40458
+ }, lQ = () => {
40453
40459
  const { address: t, chainId: n } = ht(), [a] = hn(), { isWithdrawal: l, startTime: u } = P9(), f = Ic(), { cooldownActive: p, cooldownEndsInTime: v } = Pc({
40454
40460
  address: t,
40455
40461
  chainId: n
40456
40462
  }), { approve: g, canSpend: w } = GC(), { needToBeUpdated: x, updateOracles: C, isCheckOraclesPending: D } = aL({
40457
40463
  disabled: !w || p
40458
- }), { requiresHighSlippageConfirm: A, confirmHighSlippage: M, slippageToBeUsed: U } = UC(), B = oQ(), Z = () => {
40464
+ }), { requiresHighSlippageConfirm: A, confirmHighSlippage: M, slippageToBeUsed: U } = UC(), B = sQ(), Z = () => {
40459
40465
  f({
40460
40466
  type: "MERGE_OVERLAY",
40461
40467
  payload: {
@@ -40483,7 +40489,7 @@ const Dq = (t) => {
40483
40489
  handleHighSlippageClick: Z,
40484
40490
  isCheckOraclesPending: D
40485
40491
  };
40486
- }, lQ = ({
40492
+ }, uQ = ({
40487
40493
  children: t
40488
40494
  }) => {
40489
40495
  const { ActionButton: n = ko } = Zr(), a = It(), l = $C("withdraw"), {
@@ -40503,7 +40509,7 @@ const Dq = (t) => {
40503
40509
  updateOracles: Z,
40504
40510
  isCheckOraclesPending: I,
40505
40511
  handleHighSlippageClick: Q
40506
- } = sQ();
40512
+ } = lQ();
40507
40513
  return u ? /* @__PURE__ */ R.jsx(
40508
40514
  xb,
40509
40515
  {
@@ -40526,7 +40532,7 @@ const Dq = (t) => {
40526
40532
  "{slippagePercentage}",
40527
40533
  `${Math.abs(C)}`
40528
40534
  ) }) : w || I ? /* @__PURE__ */ R.jsx(n, { onClick: Z, loading: I, children: I ? a.checkingOracles : a.updateOracles }) : t;
40529
- }, uQ = () => {
40535
+ }, cQ = () => {
40530
40536
  const { address: t, chainId: n } = ht(), [a, l] = hn(), u = Lc({
40531
40537
  symbol: a.symbol,
40532
40538
  address: a.address
@@ -40537,15 +40543,15 @@ const Dq = (t) => {
40537
40543
  balance: u,
40538
40544
  price: f
40539
40545
  };
40540
- }, cQ = () => {
40546
+ }, dQ = () => {
40541
40547
  const { chainId: t } = ht(), [n, a] = Mn(), l = Fc({ address: n.address, chainId: t });
40542
40548
  return {
40543
40549
  ...n,
40544
40550
  updater: a,
40545
40551
  price: l
40546
40552
  };
40547
- }, dQ = () => {
40548
- const t = uQ(), n = cQ();
40553
+ }, fQ = () => {
40554
+ const t = cQ(), n = dQ();
40549
40555
  return {
40550
40556
  sendToken: t,
40551
40557
  onInputChange: (l) => {
@@ -40553,8 +40559,8 @@ const Dq = (t) => {
40553
40559
  },
40554
40560
  receiveToken: n
40555
40561
  };
40556
- }, fQ = () => {
40557
- const t = It(), { sendToken: n, onInputChange: a, receiveToken: l } = dQ();
40562
+ }, pQ = () => {
40563
+ const t = It(), { sendToken: n, onInputChange: a, receiveToken: l } = fQ();
40558
40564
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40559
40565
  /* @__PURE__ */ R.jsx(
40560
40566
  wg,
@@ -40583,7 +40589,7 @@ const Dq = (t) => {
40583
40589
  }
40584
40590
  )
40585
40591
  ] });
40586
- }, pQ = () => {
40592
+ }, mQ = () => {
40587
40593
  const t = It(), { address: n, chainId: a } = ht(), [{ isMaxSlippageLoading: l }] = ki(), { exitFeeNumber: u, withdrawalFeeNumber: f } = IC({
40588
40594
  address: n,
40589
40595
  chainId: a
@@ -40597,7 +40603,7 @@ const Dq = (t) => {
40597
40603
  showMinReceivedText: v,
40598
40604
  withdrawalFee: f ? `*${f}% fee will go back to the vault holders` : null
40599
40605
  };
40600
- }, mQ = () => {
40606
+ }, hQ = () => {
40601
40607
  const t = It(), {
40602
40608
  slippageTooltipText: n,
40603
40609
  slippagePlaceholder: a,
@@ -40606,7 +40612,7 @@ const Dq = (t) => {
40606
40612
  minReceivedText: f,
40607
40613
  showMinReceivedText: p,
40608
40614
  withdrawalFee: v
40609
- } = pQ(), g = $e(() => {
40615
+ } = mQ(), g = $e(() => {
40610
40616
  const w = [
40611
40617
  {
40612
40618
  tooltipText: n,
@@ -40662,36 +40668,36 @@ const Dq = (t) => {
40662
40668
  buttonItemChildren: /* @__PURE__ */ R.jsx(XC, {})
40663
40669
  }
40664
40670
  );
40665
- }, hQ = ({ children: t }) => {
40671
+ }, vQ = ({ children: t }) => {
40666
40672
  const { WithdrawMetaInfo: n } = Zr();
40667
40673
  return /* @__PURE__ */ R.jsxs(ca.Meta, { children: [
40668
- /* @__PURE__ */ R.jsx(mQ, {}),
40674
+ /* @__PURE__ */ R.jsx(hQ, {}),
40669
40675
  n && /* @__PURE__ */ R.jsx(n, {}),
40670
40676
  t
40671
40677
  ] });
40672
- }, vQ = () => (tQ(), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40673
- /* @__PURE__ */ R.jsx(ca.Balance, { children: /* @__PURE__ */ R.jsx(rQ, {}) }),
40674
- /* @__PURE__ */ R.jsx(ca.InputGroup, { children: /* @__PURE__ */ R.jsx(fQ, {}) }),
40675
- /* @__PURE__ */ R.jsx(hQ, { children: /* @__PURE__ */ R.jsx(gL, { children: /* @__PURE__ */ R.jsx(WC, { children: /* @__PURE__ */ R.jsx(lQ, { children: /* @__PURE__ */ R.jsx(iQ, {}) }) }) }) })
40676
- ] })), yQ = () => {
40678
+ }, yQ = () => (nQ(), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
40679
+ /* @__PURE__ */ R.jsx(ca.Balance, { children: /* @__PURE__ */ R.jsx(aQ, {}) }),
40680
+ /* @__PURE__ */ R.jsx(ca.InputGroup, { children: /* @__PURE__ */ R.jsx(pQ, {}) }),
40681
+ /* @__PURE__ */ R.jsx(vQ, { children: /* @__PURE__ */ R.jsx(gL, { children: /* @__PURE__ */ R.jsx(WC, { children: /* @__PURE__ */ R.jsx(uQ, { children: /* @__PURE__ */ R.jsx(oQ, {}) }) }) }) })
40682
+ ] })), gQ = () => {
40677
40683
  jG();
40678
40684
  const { isCompleteWithdrawStep: t } = Fg();
40679
40685
  return {
40680
40686
  isCompleteWithdrawStep: t
40681
40687
  };
40682
- }, gQ = () => {
40683
- const { isCompleteWithdrawStep: t } = yQ();
40684
- return /* @__PURE__ */ R.jsx(ca.Panel, { children: t ? /* @__PURE__ */ R.jsx(eQ, {}) : /* @__PURE__ */ R.jsx(vQ, {}) });
40685
- }, wQ = ({ tradingType: t }) => /* @__PURE__ */ R.jsxs(cC, { selectedIndex: gg.indexOf(t), children: [
40688
+ }, wQ = () => {
40689
+ const { isCompleteWithdrawStep: t } = gQ();
40690
+ return /* @__PURE__ */ R.jsx(ca.Panel, { children: t ? /* @__PURE__ */ R.jsx(tQ, {}) : /* @__PURE__ */ R.jsx(yQ, {}) });
40691
+ }, bQ = ({ tradingType: t }) => /* @__PURE__ */ R.jsxs(cC, { selectedIndex: gg.indexOf(t), children: [
40686
40692
  /* @__PURE__ */ R.jsx(dC, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)]", children: gg.map((n) => /* @__PURE__ */ R.jsx(W_, { className: "dtw-hidden" }, n)) }),
40687
40693
  /* @__PURE__ */ R.jsxs(fC, { children: [
40688
- /* @__PURE__ */ R.jsx(ca.Settings, { children: /* @__PURE__ */ R.jsx(vq, {}) }),
40689
- /* @__PURE__ */ R.jsx(ca.Settings, { children: /* @__PURE__ */ R.jsx(Uq, {}) })
40694
+ /* @__PURE__ */ R.jsx(ca.Settings, { children: /* @__PURE__ */ R.jsx(yq, {}) }),
40695
+ /* @__PURE__ */ R.jsx(ca.Settings, { children: /* @__PURE__ */ R.jsx(Bq, {}) })
40690
40696
  ] })
40691
- ] }), bQ = ({ children: t }) => /* @__PURE__ */ R.jsxs(dC, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
40697
+ ] }), TQ = ({ children: t }) => /* @__PURE__ */ R.jsxs(dC, { className: "dtw-flex dtw-px-[var(--panel-tab-group-px)] dtw-justify-between dtw-items-center", children: [
40692
40698
  /* @__PURE__ */ R.jsx("div", { children: gg.map((n) => /* @__PURE__ */ R.jsx(X9, { tradingType: n }, n)) }),
40693
40699
  t
40694
- ] }), TQ = () => {
40700
+ ] }), xQ = () => {
40695
40701
  const t = ht(), [n] = KC(), { isAllAssetsWithdrawOptionDefault: a } = Gn(), { data: l = [] } = Ru(), u = l.length > 0, { data: f } = yM(t), p = Mc()[1], v = hn()[1], g = Mn()[1], w = () => {
40696
40702
  v({
40697
40703
  ...n,
@@ -40724,16 +40730,16 @@ const Dq = (t) => {
40724
40730
  return x();
40725
40731
  }
40726
40732
  };
40727
- }, xQ = () => {
40728
- OG(), TY(), h9(), Ru();
40729
- }, SQ = gg.reduce(
40733
+ }, SQ = () => {
40734
+ OG(), xY(), h9(), Ru();
40735
+ }, EQ = gg.reduce(
40730
40736
  (t, n, a) => (t[a] = n, t),
40731
40737
  {}
40732
- ), EQ = () => {
40738
+ ), CQ = () => {
40733
40739
  const [t] = Mc(), n = ht(), { standalone: a } = Gn();
40734
- xQ();
40735
- const l = TQ(), u = (f) => {
40736
- const p = SQ[f];
40740
+ SQ();
40741
+ const l = xQ(), u = (f) => {
40742
+ const p = EQ[f];
40737
40743
  p && l(p);
40738
40744
  };
40739
40745
  return vt(() => {
@@ -40744,30 +40750,30 @@ const Dq = (t) => {
40744
40750
  type: t,
40745
40751
  onTabChange: u
40746
40752
  };
40747
- }, CQ = () => {
40748
- const { type: t, onTabChange: n } = EQ();
40753
+ }, AQ = () => {
40754
+ const { type: t, onTabChange: n } = CQ();
40749
40755
  return /* @__PURE__ */ R.jsxs("div", { className: "trading-widget dtw-relative dtw-pt-3 dtw-bg-[var(--panel-background-color)] dtw-text-[color:var(--panel-content-color)] dtw-rounded-[var(--panel-radius)] dtw-overflow-hidden", children: [
40750
40756
  /* @__PURE__ */ R.jsxs(cC, { selectedIndex: gg.indexOf(t), onChange: n, children: [
40751
- /* @__PURE__ */ R.jsx(bQ, { children: /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center", children: [
40752
- /* @__PURE__ */ R.jsx(RY, {}),
40753
- /* @__PURE__ */ R.jsx(wQ, { tradingType: t })
40757
+ /* @__PURE__ */ R.jsx(TQ, { children: /* @__PURE__ */ R.jsxs("div", { className: "dtw-flex dtw-gap-1 dtw-items-center", children: [
40758
+ /* @__PURE__ */ R.jsx(OY, {}),
40759
+ /* @__PURE__ */ R.jsx(bQ, { tradingType: t })
40754
40760
  ] }) }),
40755
40761
  /* @__PURE__ */ R.jsxs(fC, { children: [
40756
- /* @__PURE__ */ R.jsx(Fq, {}),
40757
- /* @__PURE__ */ R.jsx(gQ, {})
40762
+ /* @__PURE__ */ R.jsx(Uq, {}),
40763
+ /* @__PURE__ */ R.jsx(wQ, {})
40758
40764
  ] })
40759
40765
  ] }),
40760
- /* @__PURE__ */ R.jsxs(kY, { children: [
40761
- /* @__PURE__ */ R.jsx(fq, { type: Xr.NOTIFICATION }),
40762
- /* @__PURE__ */ R.jsx(_Y, { type: Xr.TERMS_OF_USE }),
40763
- /* @__PURE__ */ R.jsx(NY, { type: Xr.HIGH_SLIPPAGE }),
40764
- /* @__PURE__ */ R.jsx(LY, { type: Xr.FMP_WITHDRAWAL }),
40765
- /* @__PURE__ */ R.jsx(KY, { type: Xr.TOKEN_SELECT, searchQuery: "" }),
40766
- /* @__PURE__ */ R.jsx(eq, { type: Xr.POOL_SELECT, searchQuery: "" }),
40767
- /* @__PURE__ */ R.jsx(sq, { type: Xr.TRADING })
40766
+ /* @__PURE__ */ R.jsxs(_Y, { children: [
40767
+ /* @__PURE__ */ R.jsx(pq, { type: Xr.NOTIFICATION }),
40768
+ /* @__PURE__ */ R.jsx(NY, { type: Xr.TERMS_OF_USE }),
40769
+ /* @__PURE__ */ R.jsx(MY, { type: Xr.HIGH_SLIPPAGE }),
40770
+ /* @__PURE__ */ R.jsx(PY, { type: Xr.FMP_WITHDRAWAL }),
40771
+ /* @__PURE__ */ R.jsx(XY, { type: Xr.TOKEN_SELECT, searchQuery: "" }),
40772
+ /* @__PURE__ */ R.jsx(tq, { type: Xr.POOL_SELECT, searchQuery: "" }),
40773
+ /* @__PURE__ */ R.jsx(lq, { type: Xr.TRADING })
40768
40774
  ] })
40769
40775
  ] });
40770
- }, fK = (t) => /* @__PURE__ */ R.jsx(AG, { ...t, children: /* @__PURE__ */ R.jsx(CQ, {}) }), uk = "referrer", AQ = "ref_pool", DQ = "ref", pK = ({
40776
+ }, pK = (t) => /* @__PURE__ */ R.jsx(AG, { ...t, children: /* @__PURE__ */ R.jsx(AQ, {}) }), uk = "referrer", DQ = "ref_pool", RQ = "ref", mK = ({
40771
40777
  vaultAddress: t,
40772
40778
  userAddress: n,
40773
40779
  query: a,
@@ -40778,7 +40784,7 @@ const Dq = (t) => {
40778
40784
  "localStorage",
40779
40785
  uk,
40780
40786
  ""
40781
- ), [v, g] = JO("localStorage", AQ, ""), w = a[DQ];
40787
+ ), [v, g] = JO("localStorage", DQ, ""), w = a[RQ];
40782
40788
  vt(() => {
40783
40789
  !w || typeof w != "string" || localStorage.getItem(uk) || (l == null || l(), p(w), g(t));
40784
40790
  }, [t, w, g, p, l]), vt(() => {
@@ -40813,15 +40819,15 @@ export {
40813
40819
  hW as I,
40814
40820
  N7 as J,
40815
40821
  P7 as K,
40816
- KQ as L,
40822
+ XQ as L,
40817
40823
  DE as M,
40818
- BQ as N,
40819
- UQ as O,
40824
+ jQ as N,
40825
+ BQ as O,
40820
40826
  hf as P,
40821
40827
  j7 as Q,
40822
40828
  pW as R,
40823
40829
  NN as S,
40824
- fK as T,
40830
+ pK as T,
40825
40831
  xW as U,
40826
40832
  k7 as V,
40827
40833
  MW as W,
@@ -40829,28 +40835,28 @@ export {
40829
40835
  zN as Y,
40830
40836
  BN as Z,
40831
40837
  IN as _,
40832
- rK as a,
40838
+ aK as a,
40833
40839
  QN as a$,
40834
40840
  yW as a0,
40835
40841
  gW as a1,
40836
- WQ as a2,
40837
- VQ as a3,
40842
+ VQ as a2,
40843
+ GQ as a3,
40838
40844
  HN as a4,
40839
40845
  Hh as a5,
40840
- jQ as a6,
40846
+ $Q as a6,
40841
40847
  z7 as a7,
40842
40848
  lW as a8,
40843
40849
  aW as a9,
40844
40850
  SW as aA,
40845
40851
  gb as aB,
40846
40852
  kl as aC,
40847
- XQ as aD,
40848
- $Q as aE,
40849
- GQ as aF,
40850
- eK as aG,
40851
- zQ as aH,
40852
- YQ as aI,
40853
- ZQ as aJ,
40853
+ ZQ as aD,
40854
+ zQ as aE,
40855
+ YQ as aF,
40856
+ tK as aG,
40857
+ HQ as aH,
40858
+ qQ as aI,
40859
+ JQ as aJ,
40854
40860
  iW as aK,
40855
40861
  K7 as aL,
40856
40862
  Y7 as aM,
@@ -40876,14 +40882,14 @@ export {
40876
40882
  EC as af,
40877
40883
  R7 as ag,
40878
40884
  U7 as ah,
40879
- qQ as ai,
40885
+ QQ as ai,
40880
40886
  UW as aj,
40881
40887
  tW as ak,
40882
40888
  Q7 as al,
40883
40889
  G7 as am,
40884
40890
  EW as an,
40885
40891
  IW as ao,
40886
- HQ as ap,
40892
+ WQ as ap,
40887
40893
  AW as aq,
40888
40894
  NW as ar,
40889
40895
  RW as as,
@@ -40906,14 +40912,14 @@ export {
40906
40912
  RC as b7,
40907
40913
  wT as b8,
40908
40914
  VO as b9,
40909
- cK as bA,
40915
+ dK as bA,
40910
40916
  dV as bB,
40911
40917
  sV as bC,
40912
40918
  rM as bD,
40913
40919
  uV as bE,
40914
40920
  cV as bF,
40915
- aK as bG,
40916
- lK as bH,
40921
+ iK as bG,
40922
+ uK as bH,
40917
40923
  Ir as bI,
40918
40924
  Mn as bJ,
40919
40925
  hn as bK,
@@ -40928,18 +40934,18 @@ export {
40928
40934
  vf as bT,
40929
40935
  Mc as bU,
40930
40936
  oV as bV,
40931
- oK as bW,
40932
- iK as bX,
40933
- uK as bY,
40934
- sK as bZ,
40935
- iY as b_,
40936
- tK as ba,
40937
+ sK as bW,
40938
+ oK as bX,
40939
+ cK as bY,
40940
+ lK as bZ,
40941
+ oY as b_,
40942
+ nK as ba,
40937
40943
  WW as bb,
40938
40944
  Mg as bc,
40939
40945
  GW as bd,
40940
40946
  hg as be,
40941
40947
  cv as bf,
40942
- nK as bg,
40948
+ rK as bg,
40943
40949
  JN as bh,
40944
40950
  ZN as bi,
40945
40951
  Pc as bj,
@@ -40957,49 +40963,50 @@ export {
40957
40963
  yf as bv,
40958
40964
  y9 as bw,
40959
40965
  yM as bx,
40960
- pK as by,
40966
+ mK as by,
40961
40967
  fv as bz,
40962
40968
  rb as c,
40963
40969
  Fc as c0,
40964
- oY as c1,
40970
+ sY as c1,
40965
40971
  aL as c2,
40966
40972
  WM as c3,
40967
40973
  VC as c4,
40968
40974
  OG as c5,
40969
40975
  AT as c6,
40970
- uY as c7,
40971
- KC as c8,
40972
- SY as c9,
40973
- Fg as ca,
40974
- Ug as cb,
40975
- Ru as cc,
40976
- MC as cd,
40977
- Lc as ce,
40978
- LC as cf,
40979
- g9 as cg,
40980
- JM as ch,
40981
- JO as ci,
40982
- Lg as cj,
40983
- NC as ck,
40984
- Bb as cl,
40985
- hV as cm,
40986
- Fr as cn,
40987
- dK as co,
40988
- xT as cp,
40989
- iM as cq,
40990
- vg as cr,
40991
- TV as cs,
40992
- sM as ct,
40993
- mV as cu,
40976
+ cY as c7,
40977
+ zG as c8,
40978
+ KC as c9,
40979
+ EY as ca,
40980
+ Fg as cb,
40981
+ Ug as cc,
40982
+ Ru as cd,
40983
+ MC as ce,
40984
+ Lc as cf,
40985
+ LC as cg,
40986
+ g9 as ch,
40987
+ JM as ci,
40988
+ JO as cj,
40989
+ Lg as ck,
40990
+ NC as cl,
40991
+ Bb as cm,
40992
+ hV as cn,
40993
+ Fr as co,
40994
+ fK as cp,
40995
+ xT as cq,
40996
+ iM as cr,
40997
+ vg as cs,
40998
+ TV as ct,
40999
+ sM as cu,
41000
+ mV as cv,
40994
41001
  Wh as d,
40995
41002
  Fb as e,
40996
41003
  mW as f,
40997
- PQ as g,
41004
+ IQ as g,
40998
41005
  jO as h,
40999
41006
  Cu as i,
41000
41007
  Ki as j,
41001
- QQ as k,
41002
- JQ as l,
41008
+ KQ as k,
41009
+ eK as l,
41003
41010
  CW as m,
41004
41011
  OW as n,
41005
41012
  ss as o,