@dhedge/trading-widget 3.13.0 → 3.14.0

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as ye from "react";
2
- import Re, { useRef as Ct, useCallback as Ge, useEffect as pt, useState as Lt, useMemo as $e, useLayoutEffect as sC, useContext as Qt, createContext as dn, forwardRef as g$, Fragment as fo, isValidElement as ok, cloneElement as w$, createElement as b$, useId as Fi, useReducer as Om, useSyncExternalStore as T$, createRef as x$, Children as S$ } from "react";
2
+ import Re, { useRef as Ct, useCallback as Ve, useEffect as pt, useState as Lt, useMemo as $e, useLayoutEffect as sC, useContext as Qt, createContext as dn, forwardRef as g$, Fragment as fo, isValidElement as ok, cloneElement as w$, createElement as b$, useId as Fi, useReducer as Om, useSyncExternalStore as T$, createRef as x$, Children as S$ } from "react";
3
3
  import { erc20Abi as Nd, stringToHex as lC, encodeAbiParameters as xO, formatUnits as vc, encodeFunctionData as E$, formatEther as uC, getAddress as _b, SwitchChainError as SO, numberToHex as EO, UserRejectedRequestError as Cd, withRetry as C$, withTimeout as D$, ResourceUnavailableRpcError as i1, encodePacked as A$, keccak256 as R$ } from "viem";
4
4
  import { decodeErrorResult as UZ, encodeFunctionData as jZ, erc20Abi as zZ, formatEther as HZ, formatUnits as WZ, hexToString as VZ, trim as GZ } from "viem";
5
5
  import { useAccount as sk, useConfig as O$, useSwitchChain as _$, useReadContract as _m, useBalance as k$, useWalletClient as N$, usePublicClient as cC, useWriteContract as L$, useEstimateFeesPerGas as P$, useBlockNumber as M$, useReadContracts as Xs, useConnect as lk, useWaitForTransactionReceipt as uk, useSimulateContract as I$ } from "wagmi";
@@ -13062,8 +13062,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13062
13062
  var Ke = QE(fe, de.mode, Le);
13063
13063
  return Ke.return = de, Ke;
13064
13064
  } else {
13065
- var Ve = m(Te, fe);
13066
- return Ve.return = de, Ve;
13065
+ var Ge = m(Te, fe);
13066
+ return Ge.return = de, Ge;
13067
13067
  }
13068
13068
  }
13069
13069
  function O(de, Te, fe, Le) {
@@ -13076,8 +13076,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13076
13076
  // because hot reloading has different semantics than prod because
13077
13077
  // it doesn't resuspend. So we can't let the call below suspend.
13078
13078
  typeof Ke == "object" && Ke !== null && Ke.$$typeof === vt && MA(Ke) === Te.type)) {
13079
- var Ve = m(Te, fe.props);
13080
- return Ve.ref = Ny(de, Te, fe), Ve.return = de, Ve._debugSource = fe._source, Ve._debugOwner = fe._owner, Ve;
13079
+ var Ge = m(Te, fe.props);
13080
+ return Ge.ref = Ny(de, Te, fe), Ge.return = de, Ge._debugSource = fe._source, Ge._debugOwner = fe._owner, Ge;
13081
13081
  }
13082
13082
  var Et = qE(fe, de.mode, Le);
13083
13083
  return Et.ref = Ny(de, Te, fe), Et.return = de, Et;
@@ -13087,14 +13087,14 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13087
13087
  var Ke = KE(fe, de.mode, Le);
13088
13088
  return Ke.return = de, Ke;
13089
13089
  } else {
13090
- var Ve = m(Te, fe.children || []);
13091
- return Ve.return = de, Ve;
13090
+ var Ge = m(Te, fe.children || []);
13091
+ return Ge.return = de, Ge;
13092
13092
  }
13093
13093
  }
13094
13094
  function j(de, Te, fe, Le, Ke) {
13095
13095
  if (Te === null || Te.tag !== M) {
13096
- var Ve = Rf(fe, de.mode, Le, Ke);
13097
- return Ve.return = de, Ve;
13096
+ var Ge = Rf(fe, de.mode, Le, Ke);
13097
+ return Ge.return = de, Ge;
13098
13098
  } else {
13099
13099
  var Et = m(Te, fe);
13100
13100
  return Et.return = de, Et;
@@ -13112,8 +13112,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13112
13112
  return Ke.ref = Ny(de, null, Te), Ke.return = de, Ke;
13113
13113
  }
13114
13114
  case wr: {
13115
- var Ve = KE(Te, de.mode, fe);
13116
- return Ve.return = de, Ve;
13115
+ var Ge = KE(Te, de.mode, fe);
13116
+ return Ge.return = de, Ge;
13117
13117
  }
13118
13118
  case vt: {
13119
13119
  var Et = Te._payload, $t = Te._init;
@@ -13139,8 +13139,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13139
13139
  case wr:
13140
13140
  return fe.key === Ke ? $(de, Te, fe, Le) : null;
13141
13141
  case vt: {
13142
- var Ve = fe._payload, Et = fe._init;
13143
- return ie(de, Te, Et(Ve), Le);
13142
+ var Ge = fe._payload, Et = fe._init;
13143
+ return ie(de, Te, Et(Ge), Le);
13144
13144
  }
13145
13145
  }
13146
13146
  if (Jn(fe) || xt(fe))
@@ -13151,8 +13151,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13151
13151
  }
13152
13152
  function me(de, Te, fe, Le, Ke) {
13153
13153
  if (typeof Le == "string" && Le !== "" || typeof Le == "number") {
13154
- var Ve = de.get(fe) || null;
13155
- return C(Te, Ve, "" + Le, Ke);
13154
+ var Ge = de.get(fe) || null;
13155
+ return C(Te, Ge, "" + Le, Ke);
13156
13156
  }
13157
13157
  if (typeof Le == "object" && Le !== null) {
13158
13158
  switch (Le.$$typeof) {
@@ -13198,16 +13198,16 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13198
13198
  p("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.", Le);
13199
13199
  break;
13200
13200
  case vt:
13201
- var Ke = de._payload, Ve = de._init;
13202
- ve(Ve(Ke), Te, fe);
13201
+ var Ke = de._payload, Ge = de._init;
13202
+ ve(Ge(Ke), Te, fe);
13203
13203
  break;
13204
13204
  }
13205
13205
  }
13206
13206
  return Te;
13207
13207
  }
13208
13208
  function be(de, Te, fe, Le) {
13209
- for (var Ke = null, Ve = 0; Ve < fe.length; Ve++) {
13210
- var Et = fe[Ve];
13209
+ for (var Ke = null, Ge = 0; Ge < fe.length; Ge++) {
13210
+ var Et = fe[Ge];
13211
13211
  Ke = ve(Et, Ke, de);
13212
13212
  }
13213
13213
  for (var $t = null, In = null, vn = Te, ia = 0, yn = 0, Xr = null; vn !== null && yn < fe.length; yn++) {
@@ -13256,9 +13256,9 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13256
13256
  {
13257
13257
  typeof Symbol == "function" && // $FlowFixMe Flow doesn't know about toStringTag
13258
13258
  fe[Symbol.toStringTag] === "Generator" && (Xx || p("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), Xx = !0), fe.entries === Ke && (Kx || p("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Kx = !0);
13259
- var Ve = Ke.call(fe);
13260
- if (Ve)
13261
- for (var Et = null, $t = Ve.next(); !$t.done; $t = Ve.next()) {
13259
+ var Ge = Ke.call(fe);
13260
+ if (Ge)
13261
+ for (var Et = null, $t = Ge.next(); !$t.done; $t = Ge.next()) {
13262
13262
  var In = $t.value;
13263
13263
  Et = ve(In, Et, de);
13264
13264
  }
@@ -13312,34 +13312,34 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13312
13312
  return Ke.return = de, Ke;
13313
13313
  }
13314
13314
  l(de, Te);
13315
- var Ve = QE(fe, de.mode, Le);
13316
- return Ve.return = de, Ve;
13315
+ var Ge = QE(fe, de.mode, Le);
13316
+ return Ge.return = de, Ge;
13317
13317
  }
13318
13318
  function ut(de, Te, fe, Le) {
13319
- for (var Ke = fe.key, Ve = Te; Ve !== null; ) {
13320
- if (Ve.key === Ke) {
13319
+ for (var Ke = fe.key, Ge = Te; Ge !== null; ) {
13320
+ if (Ge.key === Ke) {
13321
13321
  var Et = fe.type;
13322
13322
  if (Et === Qa) {
13323
- if (Ve.tag === M) {
13324
- l(de, Ve.sibling);
13325
- var $t = m(Ve, fe.props.children);
13323
+ if (Ge.tag === M) {
13324
+ l(de, Ge.sibling);
13325
+ var $t = m(Ge, fe.props.children);
13326
13326
  return $t.return = de, $t._debugSource = fe._source, $t._debugOwner = fe._owner, $t;
13327
13327
  }
13328
- } else if (Ve.elementType === Et || // Keep this check inline so it only runs on the false path:
13329
- j2(Ve, fe) || // Lazy types should reconcile their resolved type.
13328
+ } else if (Ge.elementType === Et || // Keep this check inline so it only runs on the false path:
13329
+ j2(Ge, fe) || // Lazy types should reconcile their resolved type.
13330
13330
  // We need to do this after the Hot Reloading check above,
13331
13331
  // because hot reloading has different semantics than prod because
13332
13332
  // it doesn't resuspend. So we can't let the call below suspend.
13333
- typeof Et == "object" && Et !== null && Et.$$typeof === vt && MA(Et) === Ve.type) {
13334
- l(de, Ve.sibling);
13335
- var In = m(Ve, fe.props);
13336
- return In.ref = Ny(de, Ve, fe), In.return = de, In._debugSource = fe._source, In._debugOwner = fe._owner, In;
13333
+ typeof Et == "object" && Et !== null && Et.$$typeof === vt && MA(Et) === Ge.type) {
13334
+ l(de, Ge.sibling);
13335
+ var In = m(Ge, fe.props);
13336
+ return In.ref = Ny(de, Ge, fe), In.return = de, In._debugSource = fe._source, In._debugOwner = fe._owner, In;
13337
13337
  }
13338
- l(de, Ve);
13338
+ l(de, Ge);
13339
13339
  break;
13340
13340
  } else
13341
- r(de, Ve);
13342
- Ve = Ve.sibling;
13341
+ r(de, Ge);
13342
+ Ge = Ge.sibling;
13343
13343
  }
13344
13344
  if (fe.type === Qa) {
13345
13345
  var vn = Rf(fe.props.children, de.mode, Le, fe.key);
@@ -13350,19 +13350,19 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13350
13350
  }
13351
13351
  }
13352
13352
  function sn(de, Te, fe, Le) {
13353
- for (var Ke = fe.key, Ve = Te; Ve !== null; ) {
13354
- if (Ve.key === Ke)
13355
- if (Ve.tag === R && Ve.stateNode.containerInfo === fe.containerInfo && Ve.stateNode.implementation === fe.implementation) {
13356
- l(de, Ve.sibling);
13357
- var Et = m(Ve, fe.children || []);
13353
+ for (var Ke = fe.key, Ge = Te; Ge !== null; ) {
13354
+ if (Ge.key === Ke)
13355
+ if (Ge.tag === R && Ge.stateNode.containerInfo === fe.containerInfo && Ge.stateNode.implementation === fe.implementation) {
13356
+ l(de, Ge.sibling);
13357
+ var Et = m(Ge, fe.children || []);
13358
13358
  return Et.return = de, Et;
13359
13359
  } else {
13360
- l(de, Ve);
13360
+ l(de, Ge);
13361
13361
  break;
13362
13362
  }
13363
13363
  else
13364
- r(de, Ve);
13365
- Ve = Ve.sibling;
13364
+ r(de, Ge);
13365
+ Ge = Ge.sibling;
13366
13366
  }
13367
13367
  var $t = KE(fe, de.mode, Le);
13368
13368
  return $t.return = de, $t;
@@ -13376,8 +13376,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13376
13376
  case wr:
13377
13377
  return T(sn(de, Te, fe, Le));
13378
13378
  case vt:
13379
- var Ve = fe._payload, Et = fe._init;
13380
- return Jt(de, Te, Et(Ve), Le);
13379
+ var Ge = fe._payload, Et = fe._init;
13380
+ return Jt(de, Te, Et(Ge), Le);
13381
13381
  }
13382
13382
  if (Jn(fe))
13383
13383
  return be(de, Te, fe, Le);
@@ -13768,8 +13768,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
13768
13768
  if (ut = ut.next, ut === null) {
13769
13769
  if (C = m.shared.pending, C === null)
13770
13770
  break;
13771
- var Ke = C, Ve = Ke.next;
13772
- Ke.next = null, ut = Ve, m.lastBaseUpdate = Ke, m.shared.pending = null;
13771
+ var Ke = C, Ge = Ke.next;
13772
+ Ke.next = null, ut = Ge, m.lastBaseUpdate = Ke, m.shared.pending = null;
13773
13773
  }
13774
13774
  } while (!0);
13775
13775
  mt === null && (be = me), m.baseState = be, m.firstBaseUpdate = We, m.lastBaseUpdate = mt;
@@ -16817,8 +16817,8 @@ Check the render method of \`` + c + "`.");
16817
16817
  case R:
16818
16818
  return Wh(r), gE(n, r), n === null && w5(r.stateNode.containerInfo), ki(r), null;
16819
16819
  case F:
16820
- var Ve = r.type._context;
16821
- return aS(Ve, r), ki(r), null;
16820
+ var Ge = r.type._context;
16821
+ return aS(Ge, r), ki(r), null;
16822
16822
  case P: {
16823
16823
  var Et = r.type;
16824
16824
  return nc(Et) && bw(r), ki(r), null;
@@ -17757,8 +17757,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
17757
17757
  var Te = n.stateNode, fe = n.memoizedState, Le = fe !== null, Ke = n;
17758
17758
  if (Te.isHidden = Le, Le && !Jt && (Ke.mode & Gt) !== ft) {
17759
17759
  rt = Ke;
17760
- for (var Ve = Ke.child; Ve !== null; )
17761
- rt = Ve, E6(Ve), Ve = Ve.sibling;
17760
+ for (var Ge = Ke.child; Ge !== null; )
17761
+ rt = Ge, E6(Ge), Ge = Ge.sibling;
17762
17762
  }
17763
17763
  h6(Ke, Le);
17764
17764
  }
@@ -21211,7 +21211,7 @@ function bU(e) {
21211
21211
  t.current = e;
21212
21212
  }, [
21213
21213
  e
21214
- ]), Ge((...a) => {
21214
+ ]), Ve((...a) => {
21215
21215
  const o = t.current;
21216
21216
  return o == null ? void 0 : o(...a);
21217
21217
  }, []);
@@ -21288,7 +21288,7 @@ Md(function() {
21288
21288
  return yT(/Firefox/i);
21289
21289
  });
21290
21290
  function Rk() {
21291
- let e = Ct(/* @__PURE__ */ new Map()), t = Ge((u, f, p, h) => {
21291
+ let e = Ct(/* @__PURE__ */ new Map()), t = Ve((u, f, p, h) => {
21292
21292
  let g = h != null && h.once ? (...w) => {
21293
21293
  e.current.delete(p), p(...w);
21294
21294
  } : p;
@@ -21298,11 +21298,11 @@ function Rk() {
21298
21298
  fn: g,
21299
21299
  options: h
21300
21300
  }), u.addEventListener(f, g, h);
21301
- }, []), a = Ge((u, f, p, h) => {
21301
+ }, []), a = Ve((u, f, p, h) => {
21302
21302
  var g;
21303
21303
  let w = ((g = e.current.get(p)) === null || g === void 0 ? void 0 : g.fn) || p;
21304
21304
  u.removeEventListener(f, w, h), e.current.delete(p);
21305
- }, []), o = Ge(() => {
21305
+ }, []), o = Ve(() => {
21306
21306
  e.current.forEach((u, f) => {
21307
21307
  a(u.eventTarget, u.type, f, u.options);
21308
21308
  });
@@ -21346,7 +21346,7 @@ function _k(e) {
21346
21346
  let a = bU((o) => {
21347
21347
  e == null || e(o);
21348
21348
  });
21349
- return Ge((o) => {
21349
+ return Ve((o) => {
21350
21350
  if (o.target instanceof HTMLButtonElement || o.target instanceof HTMLInputElement || o.target instanceof HTMLTextAreaElement || o.target instanceof HTMLSelectElement) {
21351
21351
  t.current.isFocused = !0;
21352
21352
  let u = o.target, f = (p) => {
@@ -21464,13 +21464,13 @@ function FU(e, t, a) {
21464
21464
  }
21465
21465
  function $U(e) {
21466
21466
  let { isDisabled: t, onFocus: a, onBlur: o, onFocusChange: u } = e;
21467
- const f = Ge((g) => {
21467
+ const f = Ve((g) => {
21468
21468
  if (g.target === g.currentTarget)
21469
21469
  return o && o(g), u && u(!1), !0;
21470
21470
  }, [
21471
21471
  o,
21472
21472
  u
21473
- ]), p = _k(f), h = Ge((g) => {
21473
+ ]), p = _k(f), h = Ve((g) => {
21474
21474
  const w = Wf(g.target), x = w ? U1(w) : U1();
21475
21475
  g.target === g.currentTarget && x === Ak(g.nativeEvent) && (a && a(g), u && u(!0), p(g));
21476
21476
  }, [
@@ -21488,14 +21488,14 @@ function $U(e) {
21488
21488
  function BU(e) {
21489
21489
  let { isDisabled: t, onBlurWithin: a, onFocusWithin: o, onFocusWithinChange: u } = e, f = Ct({
21490
21490
  isFocusWithin: !1
21491
- }), { addGlobalListener: p, removeAllGlobalListeners: h } = Rk(), g = Ge((E) => {
21491
+ }), { addGlobalListener: p, removeAllGlobalListeners: h } = Rk(), g = Ve((E) => {
21492
21492
  E.currentTarget.contains(E.target) && f.current.isFocusWithin && !E.currentTarget.contains(E.relatedTarget) && (f.current.isFocusWithin = !1, h(), a && a(E), u && u(!1));
21493
21493
  }, [
21494
21494
  a,
21495
21495
  u,
21496
21496
  f,
21497
21497
  h
21498
- ]), w = _k(g), x = Ge((E) => {
21498
+ ]), w = _k(g), x = Ve((E) => {
21499
21499
  if (!E.currentTarget.contains(E.target)) return;
21500
21500
  const R = Wf(E.target), A = U1(R);
21501
21501
  if (!f.current.isFocusWithin && A === Ak(E.nativeEvent)) {
@@ -21617,7 +21617,7 @@ function Yg(e = {}) {
21617
21617
  let { autoFocus: t = !1, isTextInput: a, within: o } = e, u = Ct({
21618
21618
  isFocused: !1,
21619
21619
  isFocusVisible: t || Mk()
21620
- }), [f, p] = Lt(!1), [h, g] = Lt(() => u.current.isFocused && u.current.isFocusVisible), w = Ge(() => g(u.current.isFocused && u.current.isFocusVisible), []), x = Ge((A) => {
21620
+ }), [f, p] = Lt(!1), [h, g] = Lt(() => u.current.isFocused && u.current.isFocusVisible), w = Ve(() => g(u.current.isFocused && u.current.isFocusVisible), []), x = Ve((A) => {
21621
21621
  u.current.isFocused = A, p(A), w();
21622
21622
  }, [
21623
21623
  w
@@ -21779,7 +21779,7 @@ function jr(e, t, ...a) {
21779
21779
  var Ll = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Ll || {}), If = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(If || {});
21780
21780
  function Vn() {
21781
21781
  let e = qU();
21782
- return Ge((t) => YU({ mergeRefs: e, ...t }), [e]);
21782
+ return Ve((t) => YU({ mergeRefs: e, ...t }), [e]);
21783
21783
  }
21784
21784
  function YU({ ourProps: e, theirProps: t, slot: a, defaultTag: o, features: u, visible: f = !0, name: p, mergeRefs: h }) {
21785
21785
  h = h ?? QU;
@@ -21825,7 +21825,7 @@ function Pb(e, t = {}, a, o, u) {
21825
21825
  return b$(f, Object.assign({}, c1(g, ["ref"]), f !== fo && w, f !== fo && E), x);
21826
21826
  }
21827
21827
  function qU() {
21828
- let e = Ct([]), t = Ge((a) => {
21828
+ let e = Ct([]), t = Ve((a) => {
21829
21829
  for (let o of e.current) o != null && (typeof o == "function" ? o(a) : o.current = a);
21830
21830
  }, []);
21831
21831
  return (...a) => {
@@ -22337,7 +22337,7 @@ function Lj(e) {
22337
22337
  return e;
22338
22338
  }
22339
22339
  function Qg(e, t) {
22340
- let a = Fi(), o = RC.get(t), [u, f] = $f(o, Ge((p) => [o.selectors.isTop(p, a), o.selectors.inStack(p, a)], [o, a]));
22340
+ let a = Fi(), o = RC.get(t), [u, f] = $f(o, Ve((p) => [o.selectors.isTop(p, a), o.selectors.inStack(p, a)], [o, a]));
22341
22341
  return ar(() => {
22342
22342
  if (e) return o.actions.push(a), () => o.actions.pop(a);
22343
22343
  }, [o, e, a]), e ? f ? u : !0 : !1;
@@ -22498,7 +22498,7 @@ function lN(e, t, a, o) {
22498
22498
  }
22499
22499
  const e_ = 30;
22500
22500
  function uN(e, t, a) {
22501
- let o = Ys(a), u = Ge(function(h, g) {
22501
+ let o = Ys(a), u = Ve(function(h, g) {
22502
22502
  if (h.defaultPrevented) return;
22503
22503
  let w = g(h);
22504
22504
  if (w === null || !w.getRootNode().contains(w) || !w.isConnected) return;
@@ -22660,7 +22660,7 @@ function cN(e, t, a = () => [document.body]) {
22660
22660
  });
22661
22661
  }
22662
22662
  function Qj(e = 0) {
22663
- let [t, a] = Lt(e), o = Ge((g) => a(g), [t]), u = Ge((g) => a((w) => w | g), [t]), f = Ge((g) => (t & g) === g, [t]), p = Ge((g) => a((w) => w & ~g), [a]), h = Ge((g) => a((w) => w ^ g), [a]);
22663
+ let [t, a] = Lt(e), o = Ve((g) => a(g), [t]), u = Ve((g) => a((w) => w | g), [t]), f = Ve((g) => (t & g) === g, [t]), p = Ve((g) => a((w) => w & ~g), [a]), h = Ve((g) => a((w) => w ^ g), [a]);
22664
22664
  return { flags: t, setFlag: o, addFlag: u, hasFlag: f, removeFlag: p, toggleFlag: h };
22665
22665
  }
22666
22666
  var t_, n_;
@@ -24230,7 +24230,7 @@ function cz() {
24230
24230
  }
24231
24231
  function dz() {
24232
24232
  let { getFloatingProps: e, slot: t } = Qt(Zg);
24233
- return Ge((...a) => Object.assign({}, e(...a), { "data-anchor": t.anchor }), [e, t]);
24233
+ return Ve((...a) => Object.assign({}, e(...a), { "data-anchor": t.anchor }), [e, t]);
24234
24234
  }
24235
24235
  function fz(e = null) {
24236
24236
  e === !1 && (e = null), typeof e == "string" && (e = { to: e });
@@ -24780,7 +24780,7 @@ let y_ = On(function(e, t) {
24780
24780
  ar(() => {
24781
24781
  if (ue) return z.actions.push(o), () => z.actions.pop(o);
24782
24782
  }, [z, o, ue]);
24783
- let V = $f(z, Ge((Ee) => z.selectors.isTop(Ee, o), [z, o]));
24783
+ let V = $f(z, Ve((Ee) => z.selectors.isTop(Ee, o), [z, o]));
24784
24784
  uN(V, q, (Ee) => {
24785
24785
  Ee.preventDefault(), Z();
24786
24786
  }), Cz(V, B == null ? void 0 : B.defaultView, (Ee) => {
@@ -24993,7 +24993,7 @@ function RH(e, t) {
24993
24993
  var a;
24994
24994
  let o = Fi(), { __demoMode: u = !1, ...f } = e, p = CH({ id: o, __demoMode: u }), h = Ct(null), g = cr(t, DC((V) => {
24995
24995
  h.current = V;
24996
- })), [w, x, E, R, A] = $f(p, Ge((V) => [V.popoverState, V.button, V.panel, V.buttonId, V.panelId], [])), _ = Bf((a = h.current) != null ? a : x), M = Ys(R), B = Ys(A), X = $e(() => ({ buttonId: M, panelId: B, close: p.actions.close }), [M, B, p]), F = GN(), G = F == null ? void 0 : F.registerPopover, Z = at(() => {
24996
+ })), [w, x, E, R, A] = $f(p, Ve((V) => [V.popoverState, V.button, V.panel, V.buttonId, V.panelId], [])), _ = Bf((a = h.current) != null ? a : x), M = Ys(R), B = Ys(A), X = $e(() => ({ buttonId: M, panelId: B, close: p.actions.close }), [M, B, p]), F = GN(), G = F == null ? void 0 : F.registerPopover, Z = at(() => {
24997
24997
  var V;
24998
24998
  return (V = F == null ? void 0 : F.isFocusWithinPopoverGroup()) != null ? V : (_ == null ? void 0 : _.activeElement) && ((x == null ? void 0 : x.contains(_.activeElement)) || (E == null ? void 0 : E.contains(_.activeElement)));
24999
24999
  });
@@ -25011,12 +25011,12 @@ function RH(e, t) {
25011
25011
  uN(P, k.resolveContainers, (V, H) => {
25012
25012
  p.actions.close(), oN(H, OC.Loose) || (V.preventDefault(), x == null || x.focus());
25013
25013
  });
25014
- let I = $e(() => ({ open: w === Ta.Open, close: p.actions.refocusableClose }), [w, p]), q = $f(p, Ge((V) => jr(V.popoverState, { [Ta.Open]: sa.Open, [Ta.Closed]: sa.Closed }), [])), W = { ref: g }, z = Vn();
25014
+ let I = $e(() => ({ open: w === Ta.Open, close: p.actions.refocusableClose }), [w, p]), q = $f(p, Ve((V) => jr(V.popoverState, { [Ta.Open]: sa.Open, [Ta.Closed]: sa.Closed }), [])), W = { ref: g }, z = Vn();
25015
25015
  return Re.createElement(aT, { node: le }, Re.createElement(pz, null, Re.createElement(UT.Provider, { value: null }, Re.createElement(VN.Provider, { value: p }, Re.createElement(ET, { value: p.actions.refocusableClose }, Re.createElement(FC, { value: q }, Re.createElement(ue, null, z({ ourProps: W, theirProps: f, slot: I, defaultTag: AH, name: "Popover" }))))))));
25016
25016
  }
25017
25017
  let OH = "button";
25018
25018
  function _H(e, t) {
25019
- let a = Fi(), { id: o = `headlessui-popover-button-${a}`, disabled: u = !1, autoFocus: f = !1, ...p } = e, h = BT("Popover.Button"), [g, w, x, E, R, A, _] = $f(h, Ge((xe) => [xe.popoverState, h.selectors.isPortalled(xe), xe.button, xe.buttonId, xe.panel, xe.panelId, xe.afterButtonSentinel], [])), M = Ct(null), B = `headlessui-focus-sentinel-${Fi()}`, X = GN(), F = X == null ? void 0 : X.closeOthers, G = DH() !== null;
25019
+ let a = Fi(), { id: o = `headlessui-popover-button-${a}`, disabled: u = !1, autoFocus: f = !1, ...p } = e, h = BT("Popover.Button"), [g, w, x, E, R, A, _] = $f(h, Ve((xe) => [xe.popoverState, h.selectors.isPortalled(xe), xe.button, xe.buttonId, xe.panel, xe.panelId, xe.afterButtonSentinel], [])), M = Ct(null), B = `headlessui-focus-sentinel-${Fi()}`, X = GN(), F = X == null ? void 0 : X.closeOthers, G = DH() !== null;
25020
25020
  pt(() => {
25021
25021
  if (!G) return h.actions.setButtonId(o), () => h.actions.setButtonId(null);
25022
25022
  }, [G, o, h]);
@@ -25069,7 +25069,7 @@ function _H(e, t) {
25069
25069
  }
25070
25070
  let kH = "div", NH = Ll.RenderStrategy | Ll.Static;
25071
25071
  function YN(e, t) {
25072
- let a = Fi(), { id: o = `headlessui-popover-backdrop-${a}`, transition: u = !1, ...f } = e, p = BT("Popover.Backdrop"), h = $f(p, Ge((X) => X.popoverState, [])), [g, w] = Lt(null), x = cr(t, w), E = Nm(), [R, A] = RT(u, g, E !== null ? (E & sa.Open) === sa.Open : h === Ta.Open), _ = at((X) => {
25072
+ let a = Fi(), { id: o = `headlessui-popover-backdrop-${a}`, transition: u = !1, ...f } = e, p = BT("Popover.Backdrop"), h = $f(p, Ve((X) => X.popoverState, [])), [g, w] = Lt(null), x = cr(t, w), E = Nm(), [R, A] = RT(u, g, E !== null ? (E & sa.Open) === sa.Open : h === Ta.Open), _ = at((X) => {
25073
25073
  if (TT(X.currentTarget)) return X.preventDefault();
25074
25074
  p.actions.close();
25075
25075
  }), M = $e(() => ({ open: h === Ta.Open }), [h]), B = { ref: x, id: o, "aria-hidden": !0, onClick: _, ...AT(A) };
@@ -25077,7 +25077,7 @@ function YN(e, t) {
25077
25077
  }
25078
25078
  let LH = "div", PH = Ll.RenderStrategy | Ll.Static;
25079
25079
  function MH(e, t) {
25080
- let a = Fi(), { id: o = `headlessui-popover-panel-${a}`, focus: u = !1, anchor: f, portal: p = !1, modal: h = !1, transition: g = !1, ...w } = e, x = BT("Popover.Panel"), E = $f(x, x.selectors.isPortalled), [R, A, _, M, B] = $f(x, Ge((Ee) => [Ee.popoverState, Ee.button, Ee.__demoMode, Ee.beforePanelSentinel, Ee.afterPanelSentinel], [])), X = `headlessui-focus-sentinel-before-${a}`, F = `headlessui-focus-sentinel-after-${a}`, G = Ct(null), Z = uz(f), [ne, ue] = fz(Z), le = dz();
25080
+ let a = Fi(), { id: o = `headlessui-popover-panel-${a}`, focus: u = !1, anchor: f, portal: p = !1, modal: h = !1, transition: g = !1, ...w } = e, x = BT("Popover.Panel"), E = $f(x, x.selectors.isPortalled), [R, A, _, M, B] = $f(x, Ve((Ee) => [Ee.popoverState, Ee.button, Ee.__demoMode, Ee.beforePanelSentinel, Ee.afterPanelSentinel], [])), X = `headlessui-focus-sentinel-before-${a}`, F = `headlessui-focus-sentinel-after-${a}`, G = Ct(null), Z = uz(f), [ne, ue] = fz(Z), le = dz();
25081
25081
  Z && (p = !0);
25082
25082
  let [k, P] = Lt(null), I = cr(G, t, Z ? ne : null, x.actions.setPanel, P), q = Bf(A), W = Bf(G);
25083
25083
  ar(() => (x.actions.setPanelId(o), () => x.actions.setPanelId(null)), [o, x]);
@@ -25185,7 +25185,7 @@ function VH(e, t) {
25185
25185
  je.preventDefault(), q();
25186
25186
  }), z = at((je) => {
25187
25187
  je.key === ur.Space ? (je.preventDefault(), q()) : je.key === ur.Enter && JU(je.currentTarget);
25188
- }), V = at((je) => je.preventDefault()), H = Xk(), Y = fj(), { isFocusVisible: ee, focusProps: U } = Yg({ autoFocus: _ }), { isHovered: te, hoverProps: ae } = gT({ isDisabled: h }), { pressed: we, pressProps: Oe } = wT({ disabled: h }), Ee = $e(() => ({ checked: ue, disabled: h, hover: te, focus: ee, active: we, autofocus: _, changing: P }), [ue, te, ee, we, h, P, _]), ze = Ff({ id: p, ref: Z, role: "switch", type: DT(e, X), tabIndex: e.tabIndex === -1 ? 0 : (a = e.tabIndex) != null ? a : 0, "aria-checked": ue, "aria-labelledby": H, "aria-describedby": Y, disabled: h || void 0, autoFocus: _, onClick: W, onKeyUp: z, onKeyPress: V }, U, ae, Oe), xe = Ge(() => {
25188
+ }), V = at((je) => je.preventDefault()), H = Xk(), Y = fj(), { isFocusVisible: ee, focusProps: U } = Yg({ autoFocus: _ }), { isHovered: te, hoverProps: ae } = gT({ isDisabled: h }), { pressed: we, pressProps: Oe } = wT({ disabled: h }), Ee = $e(() => ({ checked: ue, disabled: h, hover: te, focus: ee, active: we, autofocus: _, changing: P }), [ue, te, ee, we, h, P, _]), ze = Ff({ id: p, ref: Z, role: "switch", type: DT(e, X), tabIndex: e.tabIndex === -1 ? 0 : (a = e.tabIndex) != null ? a : 0, "aria-checked": ue, "aria-labelledby": H, "aria-describedby": Y, disabled: h || void 0, autoFocus: _, onClick: W, onKeyUp: z, onKeyPress: V }, U, ae, Oe), xe = Ve(() => {
25189
25189
  if (ne !== void 0) return le == null ? void 0 : le(ne);
25190
25190
  }, [le, ne]), Ie = Vn();
25191
25191
  return Re.createElement(Re.Fragment, null, E != null && Re.createElement(aj, { disabled: h, data: { [E]: R || "on" }, overrides: { type: "checkbox", checked: ue }, form: A, onReset: xe }), Ie({ ourProps: ze, theirProps: M, slot: Ee, defaultTag: WH, name: "Switch" }));
@@ -33791,49 +33791,49 @@ const z_ = {
33791
33791
  const [X, F] = Om(
33792
33792
  lG(A),
33793
33793
  cP(t)
33794
- ), G = Ge(
33794
+ ), G = Ve(
33795
33795
  (V) => {
33796
33796
  F({ type: "SET_POOL_ADDRESS", payload: V }), a == null || a(V);
33797
33797
  },
33798
33798
  [a]
33799
- ), Z = Ge(
33799
+ ), Z = Ve(
33800
33800
  (V) => {
33801
33801
  F({ type: "UPDATE_SEND_TOKEN_INPUT", payload: V }), o == null || o(V);
33802
33802
  },
33803
33803
  [o]
33804
- ), ne = Ge(
33804
+ ), ne = Ve(
33805
33805
  (V) => {
33806
33806
  F({ type: "UPDATE_RECEIVE_TOKEN_INPUT", payload: V }), u == null || u(V);
33807
33807
  },
33808
33808
  [u]
33809
- ), ue = Ge(
33809
+ ), ue = Ve(
33810
33810
  (V) => {
33811
33811
  F({ type: "UPDATE_TRADING_SETTINGS", payload: V }), f == null || f(V);
33812
33812
  },
33813
33813
  [f]
33814
- ), le = Ge(
33814
+ ), le = Ve(
33815
33815
  (V) => {
33816
33816
  F({ type: "SET_TRADING_TYPE", payload: V }), p == null || p(V);
33817
33817
  },
33818
33818
  [p]
33819
- ), k = Ge(
33819
+ ), k = Ve(
33820
33820
  (V) => {
33821
33821
  F({ type: "UPDATE_TRADING_MODAL", payload: V }), h == null || h(V);
33822
33822
  },
33823
33823
  [h]
33824
- ), P = Ge(
33824
+ ), P = Ve(
33825
33825
  (V) => {
33826
33826
  F({ type: "UPDATE_TRADING_TRANSACTIONS", payload: V }), g == null || g(V);
33827
33827
  },
33828
33828
  [g]
33829
- ), I = Ge((V) => {
33829
+ ), I = Ve((V) => {
33830
33830
  F({ type: "UPDATE_POOL_FALLBACK_DATA", payload: V });
33831
- }, []), q = Ge(
33831
+ }, []), q = Ve(
33832
33832
  (V) => {
33833
33833
  F({ type: "UPDATE_POOL_CONFIG", payload: V });
33834
33834
  },
33835
33835
  []
33836
- ), W = Ge((V) => {
33836
+ ), W = Ve((V) => {
33837
33837
  F({ type: "ADD_POOL_CONFIG", payload: V });
33838
33838
  }, []), z = $e(
33839
33839
  () => ({
@@ -33882,7 +33882,7 @@ const z_ = {
33882
33882
  const e = Sr().getSwapData, {
33883
33883
  settings: { selectedAggregators: t }
33884
33884
  } = ms();
33885
- return Ge(
33885
+ return Ve(
33886
33886
  ({
33887
33887
  signal: a,
33888
33888
  variables: o
@@ -34042,7 +34042,7 @@ const TG = async () => {
34042
34042
  mutation: {
34043
34043
  onSettled: o
34044
34044
  }
34045
- }), A = Ge(
34045
+ }), A = Ve(
34046
34046
  async (...B) => {
34047
34047
  var X, F, G;
34048
34048
  try {
@@ -34078,7 +34078,7 @@ const TG = async () => {
34078
34078
  x,
34079
34079
  w
34080
34080
  ]
34081
- ), _ = Ge(
34081
+ ), _ = Ve(
34082
34082
  async (...B) => {
34083
34083
  var X;
34084
34084
  try {
@@ -34117,7 +34117,7 @@ const TG = async () => {
34117
34117
  E,
34118
34118
  p
34119
34119
  ]
34120
- ), M = Ge(
34120
+ ), M = Ve(
34121
34121
  async (...B) => {
34122
34122
  const { argumentsWithoutOverrides: X, transactionOverrides: F } = k1(B);
34123
34123
  if (F.gas)
@@ -34282,11 +34282,11 @@ const TG = async () => {
34282
34282
  }
34283
34283
  return !1;
34284
34284
  }, RD = () => {
34285
- const e = fC(), t = Ge(() => {
34285
+ const e = fC(), t = Ve(() => {
34286
34286
  e.invalidateQueries({
34287
34287
  predicate: ({ queryKey: o }) => H_(o, EG)
34288
34288
  });
34289
- }, [e]), a = Ge(() => {
34289
+ }, [e]), a = Ve(() => {
34290
34290
  e.invalidateQueries({
34291
34291
  predicate: ({ queryKey: o }) => H_(o, SG)
34292
34292
  });
@@ -35496,10 +35496,10 @@ const OP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
35496
35496
  aaveOffchainWithdrawMinValue: 50,
35497
35497
  getFallbackIconPath: OP
35498
35498
  }, LY = () => {
35499
- const { connect: e } = lk(), t = Ge(
35499
+ const { connect: e } = lk(), t = Ve(
35500
35500
  () => e({ connector: kD({ shimDisconnect: !0 }) }),
35501
35501
  [e]
35502
- ), a = Ge(async () => (console.log(
35502
+ ), a = Ve(async () => (console.log(
35503
35503
  "terms of use were accepted. Assume `termsOfUseAccepted` config value switch to true"
35504
35504
  ), Promise.resolve(!0)), []);
35505
35505
  return {
@@ -35539,7 +35539,7 @@ const OP = (e) => e ? `https://raw.githubusercontent.com/dhedge/crypto-icons/mai
35539
35539
  throw new Error("ConfigContext is used out of Provider");
35540
35540
  return e;
35541
35541
  }, Cr = () => NP().params, LP = () => NP().actions, ND = () => {
35542
- const { depositQuoteDiffErrorThreshold: e } = Cr(), [t, a] = Lt(!1), [{ slippage: o, minSlippage: u }] = $i(), f = o === "auto" ? u ?? 0 : o, h = !OD() && f > e && !t, g = Ge(() => {
35542
+ const { depositQuoteDiffErrorThreshold: e } = Cr(), [t, a] = Lt(!1), [{ slippage: o, minSlippage: u }] = $i(), f = o === "auto" ? u ?? 0 : o, h = !OD() && f > e && !t, g = Ve(() => {
35543
35543
  a(!0);
35544
35544
  }, []);
35545
35545
  return { requiresHighSlippageConfirm: h, confirmHighSlippage: g, slippageToBeUsed: f };
@@ -36726,7 +36726,7 @@ const $P = /* @__PURE__ */ ye.forwardRef(eq), KT = ({
36726
36726
  ]);
36727
36727
  }, XT = (e) => {
36728
36728
  const [, t] = Fd(), [, a] = qf(), [, o] = gn(), u = dG();
36729
- return Ge(
36729
+ return Ve(
36730
36730
  (f, p, h) => {
36731
36731
  if (p) {
36732
36732
  t({
@@ -36834,7 +36834,7 @@ const xq = () => {
36834
36834
  functionName: "approve",
36835
36835
  onSettled: h
36836
36836
  });
36837
- return Ge(async () => (p({
36837
+ return Ve(async () => (p({
36838
36838
  isOpen: !0,
36839
36839
  status: "Wallet",
36840
36840
  link: "",
@@ -36886,7 +36886,7 @@ const xq = () => {
36886
36886
  });
36887
36887
  return $e(() => f ? !0 : !p || p === BigInt(0) ? !1 : !e || e === "0" ? !0 : new Ze(p.toString()).gte(e), [e, p, f]);
36888
36888
  }, Sq = () => {
36889
- const [{ isInfiniteAllowance: e }, t] = $i(), a = ED(), o = Ge(
36889
+ const [{ isInfiniteAllowance: e }, t] = $i(), a = ED(), o = Ve(
36890
36890
  (u) => {
36891
36891
  t({ isInfiniteAllowance: u }), a == null || a(Gs.INFINITE_ALLOWANCE_CHANGE, {
36892
36892
  [Vb.IS_INFINITE.NAME]: u ? 1 : 0
@@ -36920,7 +36920,7 @@ const xq = () => {
36920
36920
  address: e,
36921
36921
  chainId: t
36922
36922
  });
36923
- return Ge(
36923
+ return Ve(
36924
36924
  async ({
36925
36925
  withdrawAmountD18: u,
36926
36926
  slippage: f
@@ -36969,7 +36969,7 @@ const xq = () => {
36969
36969
  chainId: e
36970
36970
  }) => {
36971
36971
  const { account: t = It } = Er(), a = CD();
36972
- return Ge(
36972
+ return Ve(
36973
36973
  async ({
36974
36974
  swapParams: o,
36975
36975
  slippage: u
@@ -37001,7 +37001,7 @@ const xq = () => {
37001
37001
  address: e,
37002
37002
  chainId: t
37003
37003
  }), f = Eq({ address: e, chainId: t }), p = Rq({ chainId: t });
37004
- return Ge(
37004
+ return Ve(
37005
37005
  async ({
37006
37006
  withdrawAmountD18: h,
37007
37007
  vaultTokenPrice: g,
@@ -37107,7 +37107,7 @@ const xq = () => {
37107
37107
  u.address,
37108
37108
  f
37109
37109
  ]);
37110
- return Ge(async () => (h({
37110
+ return Ve(async () => (h({
37111
37111
  type: "add",
37112
37112
  action: g,
37113
37113
  symbol: t.symbol,
@@ -37162,7 +37162,7 @@ const xq = () => {
37162
37162
  assets: e,
37163
37163
  chainId: t
37164
37164
  }) => {
37165
- const a = Ge(
37165
+ const a = Ve(
37166
37166
  (o) => e.map(({ token: u, balance: f }, p) => {
37167
37167
  var R, A, _, M, B;
37168
37168
  const h = p * Pq, g = h + 1, w = g + 1, x = Number(
@@ -37314,7 +37314,7 @@ const xq = () => {
37314
37314
  return a === "auto" ? t ? o ?? e : e : a;
37315
37315
  };
37316
37316
  function Y_(e, t, a) {
37317
- const [o, u] = Lt(a), f = rG ? e === "sessionStorage" ? sessionStorage : localStorage : null, p = Ge(
37317
+ const [o, u] = Lt(a), f = rG ? e === "sessionStorage" ? sessionStorage : localStorage : null, p = Ve(
37318
37318
  (h) => {
37319
37319
  try {
37320
37320
  u(h), f == null || f.setItem(t, JSON.stringify(h));
@@ -37349,7 +37349,7 @@ const sM = (e, t) => {
37349
37349
  formatter: Iq,
37350
37350
  chainId: e.chainId
37351
37351
  });
37352
- return Ge(async () => {
37352
+ return Ve(async () => {
37353
37353
  const p = BigInt(
37354
37354
  new Ze(t.value || "0").shiftedBy(ct).toFixed(0, Ze.ROUND_DOWN)
37355
37355
  ), h = await u({
@@ -37414,7 +37414,7 @@ const sM = (e, t) => {
37414
37414
  onSettled: p
37415
37415
  });
37416
37416
  return {
37417
- withdraw: Ge(async () => {
37417
+ withdraw: Ve(async () => {
37418
37418
  u({
37419
37419
  type: "add",
37420
37420
  action: f,
@@ -37774,7 +37774,7 @@ const sM = (e, t) => {
37774
37774
  functionName: o,
37775
37775
  onSettled: p
37776
37776
  });
37777
- return Ge(async () => (a({
37777
+ return Ve(async () => (a({
37778
37778
  type: "add",
37779
37779
  action: Q_,
37780
37780
  symbol: t.symbol,
@@ -38912,7 +38912,7 @@ const mM = /* @__PURE__ */ ye.forwardRef(CQ), hT = ({ children: e }) => /* @__PU
38912
38912
  address: h,
38913
38913
  unitSymbol: g,
38914
38914
  unitAddress: w
38915
- } = DQ(o), x = Ge(
38915
+ } = DQ(o), x = Ve(
38916
38916
  ({
38917
38917
  fraction: E,
38918
38918
  fractionUsd: R,
@@ -39123,7 +39123,7 @@ const mM = /* @__PURE__ */ ye.forwardRef(CQ), hT = ({ children: e }) => /* @__PU
39123
39123
  ({ symbol: R }) => R.toLowerCase().includes(e)
39124
39124
  ) : h,
39125
39125
  [e, h]
39126
- ), E = Ge(
39126
+ ), E = Ve(
39127
39127
  ({ address: R, value: A, decimals: _, symbol: M }) => {
39128
39128
  g({ address: R, value: A, decimals: _, symbol: M }), p();
39129
39129
  },
@@ -39220,7 +39220,7 @@ const mM = /* @__PURE__ */ ye.forwardRef(CQ), hT = ({ children: e }) => /* @__PU
39220
39220
  searchQuery: e,
39221
39221
  type: t
39222
39222
  }) => {
39223
- const a = EY(), o = GT(), u = gt(), { handleReject: f } = Mm({ type: t }), [p] = $d(), h = gn()[1], g = Gn()[1], w = hG()[1], x = Ge(
39223
+ const a = EY(), o = GT(), u = gt(), { handleReject: f } = Mm({ type: t }), [p] = $d(), h = gn()[1], g = Gn()[1], w = hG()[1], x = Ve(
39224
39224
  ({ address: R, value: A, decimals: _, symbol: M }) => {
39225
39225
  (p === "deposit" ? g : h)({ address: R, value: A, decimals: _, symbol: M }), w(R), f();
39226
39226
  },
@@ -39490,7 +39490,7 @@ const mM = /* @__PURE__ */ ye.forwardRef(CQ), hT = ({ children: e }) => /* @__PU
39490
39490
  }
39491
39491
  );
39492
39492
  }, XQ = () => {
39493
- const [{ availableAggregators: e, selectedAggregators: t }, a] = $i(), o = Ge(
39493
+ const [{ availableAggregators: e, selectedAggregators: t }, a] = $i(), o = Ve(
39494
39494
  (u) => {
39495
39495
  const f = t.includes(u) ? t.filter((p) => p !== u) : [...t, u];
39496
39496
  a({ selectedAggregators: f });
@@ -40096,7 +40096,7 @@ const uK = (e) => {
40096
40096
  const { stablePrecision: t } = Cr(), { firstPart: a, secondPart: o } = JL(
40097
40097
  e,
40098
40098
  IL
40099
- ), u = Ge(
40099
+ ), u = Ve(
40100
40100
  ({ symbol: f, address: p, rawBalance: h, decimals: g, price: w, balance: x }) => /* @__PURE__ */ D.jsxs("tr", { children: [
40101
40101
  /* @__PURE__ */ D.jsxs("td", { children: [
40102
40102
  /* @__PURE__ */ D.jsx(
@@ -41102,17 +41102,17 @@ const AM = (e) => ({
41102
41102
  const [o, u] = Om(
41103
41103
  vX,
41104
41104
  AM(t)
41105
- ), f = Ge((R) => {
41105
+ ), f = Ve((R) => {
41106
41106
  u({ type: "SET_TAKE_PROFIT_PRICE", payload: R });
41107
- }, []), p = Ge((R) => {
41107
+ }, []), p = Ve((R) => {
41108
41108
  u({ type: "SET_STOP_LOSS_PRICE", payload: R });
41109
- }, []), h = Ge((R) => {
41109
+ }, []), h = Ve((R) => {
41110
41110
  u({ type: "SET_IS_MODAL_OPEN", payload: R });
41111
- }, []), g = Ge((R) => {
41111
+ }, []), g = Ve((R) => {
41112
41112
  u({ type: "SET_TERMS_ACCEPTED", payload: R });
41113
- }, []), w = Ge(() => {
41113
+ }, []), w = Ve(() => {
41114
41114
  u({ type: "RESET" });
41115
- }, []), x = Ge(
41115
+ }, []), x = Ve(
41116
41116
  (R) => {
41117
41117
  u({ type: "SET_PENDING_TRANSACTION", payload: R });
41118
41118
  },
@@ -41382,7 +41382,7 @@ const AM = (e) => ({
41382
41382
  return a ? e : /* @__PURE__ */ D.jsx(ex, { onClick: o, loading: u, children: t.approve });
41383
41383
  }, _M = () => {
41384
41384
  const { setIsModalOpen: e, reset: t, setPendingTransaction: a, onTransactionSettled: o } = v0();
41385
- return Ge(
41385
+ return Ve(
41386
41386
  (...u) => {
41387
41387
  const [f] = u;
41388
41388
  if (o == null || o(...u), !f)
@@ -41543,7 +41543,7 @@ const AM = (e) => ({
41543
41543
  const t = Dc(), { isWrongNetwork: a, handleNetworkSwitch: o } = $X();
41544
41544
  return a ? /* @__PURE__ */ D.jsx(ex, { onClick: o, children: t.switchNetwork }) : e;
41545
41545
  }, UX = () => {
41546
- const { isModalOpen: e, pendingTransaction: t } = Xf(), { setIsModalOpen: a } = v0(), o = Ge(() => a(!0), [a]), u = Ge(() => a(!1), [a]);
41546
+ const { isModalOpen: e, pendingTransaction: t } = Xf(), { setIsModalOpen: a } = v0(), o = Ve(() => a(!0), [a]), u = Ve(() => a(!1), [a]);
41547
41547
  return {
41548
41548
  isModalOpen: e,
41549
41549
  onOpen: o,
@@ -41552,7 +41552,7 @@ const AM = (e) => ({
41552
41552
  };
41553
41553
  }, jX = [EM, "allowance"], zX = () => {
41554
41554
  const e = fC();
41555
- return Ge(() => {
41555
+ return Ve(() => {
41556
41556
  e.invalidateQueries({
41557
41557
  predicate: ({ queryKey: t }) => {
41558
41558
  var o;
@@ -41711,23 +41711,26 @@ const AM = (e) => ({
41711
41711
  children: e
41712
41712
  }
41713
41713
  );
41714
- }, VX = ({
41715
- children: e
41716
- }) => {
41717
- const { onOpen: t, isModalOpen: a, onClose: o, isTransactionPending: u } = UX(), f = Dc();
41718
- return HX(), /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
41719
- e({ onClick: t, isTransactionPending: u }),
41714
+ }, VX = ({ children: e, themeConfig: t }) => {
41715
+ const { onOpen: a, isModalOpen: o, onClose: u, isTransactionPending: f } = UX(), p = Dc();
41716
+ HX();
41717
+ const h = Ve(
41718
+ () => /* @__PURE__ */ D.jsx(WX, { config: t }),
41719
+ [t]
41720
+ );
41721
+ return /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
41722
+ e({ onClick: a, isTransactionPending: f }),
41720
41723
  /* @__PURE__ */ D.jsx(
41721
41724
  fX,
41722
41725
  {
41723
- isOpen: a,
41724
- onClose: o,
41725
- ThemeProvider: WX,
41726
+ isOpen: o,
41727
+ onClose: u,
41728
+ ThemeProvider: h,
41726
41729
  className: "limit-order",
41727
41730
  children: /* @__PURE__ */ D.jsx(
41728
41731
  dX,
41729
41732
  {
41730
- title: f.limitSellsTitle,
41733
+ title: p.limitSellsTitle,
41731
41734
  className: "dtw-text-[color:var(--limit-order-content-color)] dtw-max-w-[430px]",
41732
41735
  children: /* @__PURE__ */ D.jsxs("div", { className: "dtw-flex dtw-flex-col dtw-gap-2", children: [
41733
41736
  /* @__PURE__ */ D.jsx(CX, {}),
@@ -41749,9 +41752,10 @@ const AM = (e) => ({
41749
41752
  translation: u,
41750
41753
  minAmountInUsd: f = CM,
41751
41754
  isReversedOrder: p = !1,
41752
- actions: h
41755
+ actions: h,
41756
+ themeConfig: g
41753
41757
  }) => {
41754
- const g = $e(
41758
+ const w = $e(
41755
41759
  () => ({
41756
41760
  vaultAddress: a,
41757
41761
  vaultChainId: t,
@@ -41761,7 +41765,7 @@ const AM = (e) => ({
41761
41765
  }),
41762
41766
  [a, t, o, p, f]
41763
41767
  );
41764
- return /* @__PURE__ */ D.jsx(pX, { config: u, children: /* @__PURE__ */ D.jsx(yX, { initialState: g, actions: h, children: /* @__PURE__ */ D.jsx(VX, { children: e }) }) });
41768
+ return /* @__PURE__ */ D.jsx(pX, { config: u, children: /* @__PURE__ */ D.jsx(yX, { initialState: w, actions: h, children: /* @__PURE__ */ D.jsx(VX, { themeConfig: g, children: e }) }) });
41765
41769
  };
41766
41770
  export {
41767
41771
  iV as AAVE_LENDING_POOL_V2_ADDRESS_POLYGON,