@use-glyph/sdk-react 2.0.14 → 2.0.15-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -17454,7 +17454,7 @@ const tr = {
17454
17454
  var zn = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(zn || {});
17455
17455
  const Vd = "privy";
17456
17456
  var T1 = /* @__PURE__ */ ((e) => (e.RAINBOWKIT = "rainbowkit", e.CONNECTKIT = "connectkit", e.THIRDWEB = "thirdweb", e.WAGMI = "wagmi", e.DYNAMIC = "dynamic", e))(T1 || {});
17457
- const Ye = {
17457
+ const Je = {
17458
17458
  CLOSED: "closed",
17459
17459
  OPEN: "open",
17460
17460
  ...Ue,
@@ -17495,13 +17495,13 @@ const Kx = (e) => /* @__PURE__ */ S("svg", { width: "24", height: "24", viewBox:
17495
17495
  fill: "currentColor"
17496
17496
  }
17497
17497
  )
17498
- ] }), Ge = (e, t, r, n = "currency") => {
17498
+ ] }), Ye = (e, t, r, n = "currency") => {
17499
17499
  const a = r && Number(e) < 0.01, s = a ? 0.01 : e, o = new Intl.NumberFormat(["en-US"], {
17500
17500
  style: n,
17501
17501
  currency: n === "decimal" ? void 0 : t || "USD"
17502
17502
  }).format(Number(s || 0));
17503
17503
  return a ? `< ${o}` : o;
17504
- }, Wd = (e) => Ge(0, e).replace(/[.\d]/g, "").trim();
17504
+ }, Wd = (e) => Ye(0, e).replace(/[.\d]/g, "").trim();
17505
17505
  function U1(e) {
17506
17506
  var t, r, n = "";
17507
17507
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -17731,7 +17731,7 @@ function qd(e, ...t) {
17731
17731
  return s(_x.apply(null, arguments));
17732
17732
  };
17733
17733
  }
17734
- const Je = (e) => {
17734
+ const Pe = (e) => {
17735
17735
  const t = (r) => r[e] || [];
17736
17736
  return t.isThemeGetter = !0, t;
17737
17737
  }, F1 = /^\[(?:([a-z-]+):)?(.+)\]$/i, $x = /^\d+\/\d+$/, eE = /* @__PURE__ */ new Set(["px", "full", "screen"]), tE = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rE = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nE = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, aE = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sE = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ur = (e) => Dn(e) || eE.has(e) || $x.test(e), Jr = (e) => oa(e, "length", mE), Dn = (e) => !!e && !Number.isNaN(Number(e)), Ii = (e) => oa(e, "number", Dn), Sa = (e) => !!e && Number.isInteger(Number(e)), oE = (e) => e.endsWith("%") && Dn(e.slice(0, -1)), ye = (e) => F1.test(e), Yr = (e) => tE.test(e), iE = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lE = (e) => oa(e, iE, M1), cE = (e) => oa(e, "position", M1), dE = /* @__PURE__ */ new Set(["image", "url"]), uE = (e) => oa(e, dE, fE), pE = (e) => oa(e, "", hE), Ta = () => !0, oa = (e, t, r) => {
@@ -17743,7 +17743,7 @@ const Je = (e) => {
17743
17743
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
17744
17744
  rE.test(e) && !nE.test(e)
17745
17745
  ), M1 = () => !1, hE = (e) => aE.test(e), fE = (e) => sE.test(e), Kd = () => {
17746
- const e = Je("colors"), t = Je("spacing"), r = Je("blur"), n = Je("brightness"), a = Je("borderColor"), s = Je("borderRadius"), o = Je("borderSpacing"), i = Je("borderWidth"), l = Je("contrast"), u = Je("grayscale"), p = Je("hueRotate"), d = Je("invert"), h = Je("gap"), f = Je("gradientColorStops"), y = Je("gradientColorStopPositions"), C = Je("inset"), b = Je("margin"), x = Je("opacity"), A = Je("padding"), k = Je("saturate"), v = Je("scale"), N = Je("sepia"), R = Je("skew"), U = Je("space"), L = Je("translate"), V = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", ye, t], Z = () => [ye, t], T = () => ["", Ur, Jr], M = () => ["auto", Dn, ye], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Dn, ye];
17746
+ const e = Pe("colors"), t = Pe("spacing"), r = Pe("blur"), n = Pe("brightness"), a = Pe("borderColor"), s = Pe("borderRadius"), o = Pe("borderSpacing"), i = Pe("borderWidth"), l = Pe("contrast"), u = Pe("grayscale"), p = Pe("hueRotate"), d = Pe("invert"), h = Pe("gap"), f = Pe("gradientColorStops"), y = Pe("gradientColorStopPositions"), C = Pe("inset"), b = Pe("margin"), x = Pe("opacity"), A = Pe("padding"), k = Pe("saturate"), v = Pe("scale"), N = Pe("sepia"), R = Pe("skew"), U = Pe("space"), L = Pe("translate"), V = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", ye, t], Z = () => [ye, t], T = () => ["", Ur, Jr], M = () => ["auto", Dn, ye], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Dn, ye];
17747
17747
  return {
17748
17748
  cacheSize: 500,
17749
17749
  separator: ":",
@@ -23188,13 +23188,13 @@ const PA = (e) => ut?.chains?.find((t) => t.id === e) || null, su = (e, t) => {
23188
23188
  n?.toLowerCase?.()
23189
23189
  );
23190
23190
  };
23191
- function Ze({ className: e, ...t }) {
23191
+ function Ge({ className: e, ...t }) {
23192
23192
  return /* @__PURE__ */ c("div", { className: oe("gw-animate-pulse gw-rounded-md gw-bg-muted", e), ...t });
23193
23193
  }
23194
23194
  const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23195
23195
  const { user: n, ready: a, authenticated: s } = Me();
23196
23196
  if (!a || !s)
23197
- return /* @__PURE__ */ c(Ze, { className: oe("gw-size-10 gw-rounded-full", e) });
23197
+ return /* @__PURE__ */ c(Ge, { className: oe("gw-size-10 gw-rounded-full", e) });
23198
23198
  let o = t || n?.picture || Ja(n?.evmWallet);
23199
23199
  return o.match(qA) && (o = o.replace("_normal.", ".")), /* @__PURE__ */ c(ve, { children: /* @__PURE__ */ c(
23200
23200
  "img",
@@ -23227,7 +23227,7 @@ const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23227
23227
  p && "max-sm:gw-hidden",
23228
23228
  "gw-pl-1 gw-pr-2.5 gw-inline-flex gw-items-center"
23229
23229
  ),
23230
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23230
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23231
23231
  }
23232
23232
  ) : /* @__PURE__ */ S("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: [
23233
23233
  rn(
@@ -23245,9 +23245,9 @@ const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23245
23245
  p && "max-sm:gw-hidden",
23246
23246
  "gw-pl-1 gw-pr-2.5 gw-inline-flex gw-items-center"
23247
23247
  ),
23248
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23248
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23249
23249
  }
23250
- ) : /* @__PURE__ */ c("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: Ge(
23250
+ ) : /* @__PURE__ */ c("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: Ye(
23251
23251
  l?.tokens,
23252
23252
  l?.currency,
23253
23253
  u?.some((d) => BigInt(d.valueInWei) !== 0n)
@@ -25509,10 +25509,10 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25509
25509
  if (de.current && J) {
25510
25510
  const Be = v === "bottom" || v === "right" ? 1 : -1, We = (Ce.current - (lt(v) ? ue.pageY : ue.pageX)) * Be, Se = We > 0, He = s && !p && !Se;
25511
25511
  if (He && nt === 0) return;
25512
- const pe = Math.abs(We), Te = document.querySelector("[data-vaul-drawer-wrapper]"), Qe = v === "bottom" || v === "top" ? Wt.current : Qt.current;
25513
- let Pe = pe / Qe;
25512
+ const pe = Math.abs(We), Te = document.querySelector("[data-vaul-drawer-wrapper]"), Ze = v === "bottom" || v === "top" ? Wt.current : Qt.current;
25513
+ let Qe = pe / Ze;
25514
25514
  const Pt = se(pe, Se);
25515
- if (Pt !== null && (Pe = Pt), He && Pe >= 1 || !ae.current && !I(ue.target, Se)) return;
25515
+ if (Pt !== null && (Qe = Pt), He && Qe >= 1 || !ae.current && !I(ue.target, Se)) return;
25516
25516
  if (de.current.classList.add(Zi), ae.current = !0, ct(de.current, {
25517
25517
  transition: "none"
25518
25518
  }), ct(ee.current, {
@@ -25526,12 +25526,12 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25526
25526
  });
25527
25527
  return;
25528
25528
  }
25529
- const ze = 1 - Pe;
25530
- if ((je || h && nt === h - 1) && (n?.(ue, Pe), ct(ee.current, {
25529
+ const ze = 1 - Qe;
25530
+ if ((je || h && nt === h - 1) && (n?.(ue, Qe), ct(ee.current, {
25531
25531
  opacity: `${ze}`,
25532
25532
  transition: "none"
25533
25533
  }, !0)), Te && ee.current && o) {
25534
- const _e = Math.min(g() + Pe * (1 - g()), 1), kr = 8 - Pe * 8, St = Math.max(0, 14 - Pe * 14);
25534
+ const _e = Math.min(g() + Qe * (1 - g()), 1), kr = 8 - Qe * 8, St = Math.max(0, 14 - Qe * 14);
25535
25535
  ct(Te, {
25536
25536
  borderRadius: `${kr}px`,
25537
25537
  transform: lt(v) ? `scale(${_e}) translate3d(0, ${St}px, 0)` : `scale(${_e}) translate3d(${St}px, 0, 0)`,
@@ -25559,17 +25559,17 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25559
25559
  var Se;
25560
25560
  const He = ((Se = window.visualViewport) == null ? void 0 : Se.height) || 0, pe = window.innerHeight;
25561
25561
  let Te = pe - He;
25562
- const Qe = de.current.getBoundingClientRect().height || 0, Pe = Qe > pe * 0.8;
25563
- pt.current || (pt.current = Qe);
25562
+ const Ze = de.current.getBoundingClientRect().height || 0, Qe = Ze > pe * 0.8;
25563
+ pt.current || (pt.current = Ze);
25564
25564
  const Pt = de.current.getBoundingClientRect().top;
25565
25565
  if (Math.abs(ke.current - Te) > 60 && (Ne.current = !Ne.current), s && s.length > 0 && fe && nt) {
25566
25566
  const ze = fe[nt] || 0;
25567
25567
  Te += ze;
25568
25568
  }
25569
- if (ke.current = Te, Qe > He || Ne.current) {
25569
+ if (ke.current = Te, Ze > He || Ne.current) {
25570
25570
  const ze = de.current.getBoundingClientRect().height;
25571
25571
  let _e = ze;
25572
- ze > He && (_e = He - (Pe ? Pt : Bl)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max(_e, He - Pt)}px`;
25572
+ ze > He && (_e = He - (Qe ? Pt : Bl)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max(_e, He - Pt)}px`;
25573
25573
  } else PS() || (de.current.style.height = `${pt.current}px`);
25574
25574
  s && s.length > 0 && !Ne.current ? de.current.style.bottom = "0px" : de.current.style.bottom = `${Math.max(Te, 0)}px`;
25575
25575
  }
@@ -25642,9 +25642,9 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25642
25642
  }
25643
25643
  var pe;
25644
25644
  const Te = Math.min((pe = de.current.getBoundingClientRect().height) != null ? pe : 0, window.innerHeight);
25645
- var Qe;
25646
- const Pe = Math.min((Qe = de.current.getBoundingClientRect().width) != null ? Qe : 0, window.innerWidth), Pt = v === "left" || v === "right";
25647
- if (Math.abs(Be) >= (Pt ? Pe : Te) * l) {
25645
+ var Ze;
25646
+ const Qe = Math.min((Ze = de.current.getBoundingClientRect().width) != null ? Ze : 0, window.innerWidth), Pt = v === "left" || v === "right";
25647
+ if (Math.abs(Be) >= (Pt ? Qe : Te) * l) {
25648
25648
  K(), a?.(ue, !1);
25649
25649
  return;
25650
25650
  }
@@ -28024,7 +28024,7 @@ const RI = (e) => {
28024
28024
  ]), g = q.useMemo(() => d.duration || Z || qu, [
28025
28025
  d.duration,
28026
28026
  Z
28027
- ]), w = q.useRef(0), I = q.useRef(0), W = q.useRef(0), K = q.useRef(null), [Y, be] = T.split("-"), qe = q.useMemo(() => b.reduce((pe, Te, Qe) => Qe >= se ? pe : pe + Te.height, 0), [
28027
+ ]), w = q.useRef(0), I = q.useRef(0), W = q.useRef(0), K = q.useRef(null), [Y, be] = T.split("-"), qe = q.useMemo(() => b.reduce((pe, Te, Ze) => Ze >= se ? pe : pe + Te.height, 0), [
28028
28028
  b,
28029
28029
  se
28030
28030
  ]), Re = wI(), Ke = d.invert || p, Ie = ne === "loading";
@@ -28041,14 +28041,14 @@ const RI = (e) => {
28041
28041
  const pe = ht.current;
28042
28042
  if (pe) {
28043
28043
  const Te = pe.getBoundingClientRect().height;
28044
- return Qt(Te), y((Qe) => [
28044
+ return Qt(Te), y((Ze) => [
28045
28045
  {
28046
28046
  toastId: d.id,
28047
28047
  height: Te,
28048
28048
  position: d.position
28049
28049
  },
28050
- ...Qe
28051
- ]), () => y((Qe) => Qe.filter((Pe) => Pe.toastId !== d.id));
28050
+ ...Ze
28051
+ ]), () => y((Ze) => Ze.filter((Qe) => Qe.toastId !== d.id));
28052
28052
  }
28053
28053
  }, [
28054
28054
  y,
@@ -28057,17 +28057,17 @@ const RI = (e) => {
28057
28057
  if (!ee) return;
28058
28058
  const pe = ht.current, Te = pe.style.height;
28059
28059
  pe.style.height = "auto";
28060
- const Qe = pe.getBoundingClientRect().height;
28061
- pe.style.height = Te, Qt(Qe), y((Pe) => Pe.find((ze) => ze.toastId === d.id) ? Pe.map((ze) => ze.toastId === d.id ? {
28060
+ const Ze = pe.getBoundingClientRect().height;
28061
+ pe.style.height = Te, Qt(Ze), y((Qe) => Qe.find((ze) => ze.toastId === d.id) ? Qe.map((ze) => ze.toastId === d.id ? {
28062
28062
  ...ze,
28063
- height: Qe
28063
+ height: Ze
28064
28064
  } : ze) : [
28065
28065
  {
28066
28066
  toastId: d.id,
28067
- height: Qe,
28067
+ height: Ze,
28068
28068
  position: d.position
28069
28069
  },
28070
- ...Pe
28070
+ ...Qe
28071
28071
  ]);
28072
28072
  }, [
28073
28073
  ee,
@@ -28094,8 +28094,8 @@ const RI = (e) => {
28094
28094
  let pe;
28095
28095
  return k || f || Re ? (() => {
28096
28096
  if (W.current < w.current) {
28097
- const Pe = (/* @__PURE__ */ new Date()).getTime() - w.current;
28098
- pt.current = pt.current - Pe;
28097
+ const Qe = (/* @__PURE__ */ new Date()).getTime() - w.current;
28098
+ pt.current = pt.current - Qe;
28099
28099
  }
28100
28100
  W.current = (/* @__PURE__ */ new Date()).getTime();
28101
28101
  })() : (() => {
@@ -28175,12 +28175,12 @@ const RI = (e) => {
28175
28175
  })));
28176
28176
  },
28177
28177
  onPointerUp: () => {
28178
- var pe, Te, Qe;
28178
+ var pe, Te, Ze;
28179
28179
  if (me || !fe) return;
28180
28180
  K.current = null;
28181
- const Pe = Number(((pe = ht.current) == null ? void 0 : pe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Pt = Number(((Te = ht.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ze = (/* @__PURE__ */ new Date()).getTime() - ((Qe = Xt.current) == null ? void 0 : Qe.getTime()), _e = J === "x" ? Pe : Pt, kr = Math.abs(_e) / ze;
28181
+ const Qe = Number(((pe = ht.current) == null ? void 0 : pe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Pt = Number(((Te = ht.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ze = (/* @__PURE__ */ new Date()).getTime() - ((Ze = Xt.current) == null ? void 0 : Ze.getTime()), _e = J === "x" ? Qe : Pt, kr = Math.abs(_e) / ze;
28182
28182
  if (Math.abs(_e) >= II || kr > 0.11) {
28183
- de(I.current), d.onDismiss == null || d.onDismiss.call(d, d), te(J === "x" ? Pe > 0 ? "right" : "left" : Pt > 0 ? "down" : "up"), ue(), Ce(!0);
28183
+ de(I.current), d.onDismiss == null || d.onDismiss.call(d, d), te(J === "x" ? Qe > 0 ? "right" : "left" : Pt > 0 ? "down" : "up"), ue(), Ce(!0);
28184
28184
  return;
28185
28185
  } else {
28186
28186
  var St, Ht;
@@ -28189,7 +28189,7 @@ const RI = (e) => {
28189
28189
  Ve(!1), ae(!1), _(null);
28190
28190
  },
28191
28191
  onPointerMove: (pe) => {
28192
- var Te, Qe, Pe;
28192
+ var Te, Ze, Qe;
28193
28193
  if (!K.current || !fe || ((Te = window.getSelection()) == null ? void 0 : Te.toString().length) > 0) return;
28194
28194
  const ze = pe.clientY - K.current.y, _e = pe.clientX - K.current.x;
28195
28195
  var kr;
@@ -28215,7 +28215,7 @@ const RI = (e) => {
28215
28215
  const dn = _e * md(_e);
28216
28216
  Ht.x = Math.abs(dn) < Math.abs(_e) ? dn : _e;
28217
28217
  }
28218
- (Math.abs(Ht.x) > 0 || Math.abs(Ht.y) > 0) && Ve(!0), (Qe = ht.current) == null || Qe.style.setProperty("--swipe-amount-x", `${Ht.x}px`), (Pe = ht.current) == null || Pe.style.setProperty("--swipe-amount-y", `${Ht.y}px`);
28218
+ (Math.abs(Ht.x) > 0 || Math.abs(Ht.y) > 0) && Ve(!0), (Ze = ht.current) == null || Ze.style.setProperty("--swipe-amount-x", `${Ht.x}px`), (Qe = ht.current) == null || Qe.style.setProperty("--swipe-amount-y", `${Ht.y}px`);
28219
28219
  }
28220
28220
  }, E && !d.jsx && ne !== "loading" ? /* @__PURE__ */ q.createElement("button", {
28221
28221
  "aria-label": G,
@@ -28612,13 +28612,13 @@ function ZI() {
28612
28612
  const P = typeof H == "string" ? H : H(l);
28613
28613
  if (u(P), P && Number(P) < h) {
28614
28614
  x(
28615
- `Minimum funding amount for your location is ${Ge(h, p)}.`
28615
+ `Minimum funding amount for your location is ${Ye(h, p)}.`
28616
28616
  );
28617
28617
  return;
28618
28618
  }
28619
28619
  if (P && Number(P) > y) {
28620
28620
  x(
28621
- `Maximum funding amount for your location is ${Ge(y, p)}.`
28621
+ `Maximum funding amount for your location is ${Ye(y, p)}.`
28622
28622
  );
28623
28623
  return;
28624
28624
  }
@@ -28945,14 +28945,14 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28945
28945
  ) })
28946
28946
  ] })
28947
28947
  ] }),
28948
- o?.length === 1 ? y ?? /* @__PURE__ */ c(Ze, { className: "gw-size-6 gw-rounded-full" }) : /* @__PURE__ */ S("div", { className: "gw-relative", ref: f, children: [
28948
+ o?.length === 1 ? y ?? /* @__PURE__ */ c(Ge, { className: "gw-size-6 gw-rounded-full" }) : /* @__PURE__ */ S("div", { className: "gw-relative", ref: f, children: [
28949
28949
  /* @__PURE__ */ S(
28950
28950
  "button",
28951
28951
  {
28952
28952
  onClick: () => h(!d),
28953
28953
  className: "gw-rounded-full gw-shadow-buttonMd gw-px-0.5 gw-py-0.5 gw-h-auto gw-w-auto gw-min-w-0 !gw-ring-0 gw-flex gw-items-center gw-space-x-1 gw-bg-white",
28954
28954
  children: [
28955
- /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: y ?? /* @__PURE__ */ c(Ze, { className: "gw-size-6 gw-rounded-full" }) }),
28955
+ /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: y ?? /* @__PURE__ */ c(Ge, { className: "gw-size-6 gw-rounded-full" }) }),
28956
28956
  /* @__PURE__ */ c(Cc, { className: "gw-size-4 gw-text-gray-500" })
28957
28957
  ]
28958
28958
  }
@@ -29770,7 +29770,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29770
29770
  }
29771
29771
  ) }),
29772
29772
  /* @__PURE__ */ S("div", { className: "gw-typography-caption", children: [
29773
- /* @__PURE__ */ c("div", { className: "gw-mt-2 gw-text-brand-gray-500 gw-text-center", children: h || A && `${Ge(i ?? 0, s)} min - ${Ge(l ?? 999999, s)} max` }),
29773
+ /* @__PURE__ */ c("div", { className: "gw-mt-2 gw-text-brand-gray-500 gw-text-center", children: h || A && `${Ye(i ?? 0, s)} min - ${Ye(l ?? 999999, s)} max` }),
29774
29774
  !X && (A ? /* @__PURE__ */ S("div", { className: "gw-mt-4 gw-flex gw-space-x-2 gw-text-brand-gray-500 gw-items-center gw-justify-center", children: [
29775
29775
  /* @__PURE__ */ S("span", { children: [
29776
29776
  "You will receive ",
@@ -29804,7 +29804,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29804
29804
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-mt-5", children: [
29805
29805
  /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: "Receive" }),
29806
29806
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
29807
- /* @__PURE__ */ c("div", { className: "gw-typography-h3-nr", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-10" }) : f?.out_tokens_amount }),
29807
+ /* @__PURE__ */ c("div", { className: "gw-typography-h3-nr", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-10" }) : f?.out_tokens_amount }),
29808
29808
  /* @__PURE__ */ c(ja, { className: "gw-size-10 gw-rounded-full" })
29809
29809
  ] }),
29810
29810
  /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-mt-1 gw-text-center gw-flex gw-items-center gw-justify-center gw-gap-0.5", children: [
@@ -29813,9 +29813,9 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29813
29813
  v,
29814
29814
  " = "
29815
29815
  ] }),
29816
- C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-4 gw-inline-block" }) : (
29816
+ C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-4 gw-inline-block" }) : (
29817
29817
  // TODO: Do the calculation before showing it in diff currency
29818
- `${Ge(f?.ape_to_currency, f?.currency)}`
29818
+ `${Ye(f?.ape_to_currency, f?.currency)}`
29819
29819
  )
29820
29820
  ] })
29821
29821
  ] }),
@@ -29883,11 +29883,11 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29883
29883
  ] }),
29884
29884
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2", children: [
29885
29885
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
29886
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : `${Ge(f?.estimated_fees_amount, f?.currency)}` })
29886
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : `${Ye(f?.estimated_fees_amount, f?.currency)}` })
29887
29887
  ] }),
29888
29888
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2", children: [
29889
29889
  /* @__PURE__ */ c("span", { children: "Total" }),
29890
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : `${Ge(f?.in_amount, f?.currency)}` })
29890
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : `${Ye(f?.in_amount, f?.currency)}` })
29891
29891
  ] })
29892
29892
  ] })
29893
29893
  ] })
@@ -30237,7 +30237,7 @@ function QN({ data: e }) {
30237
30237
  ] }),
30238
30238
  /* @__PURE__ */ S("div", { className: "gw-max-w-[55%] gw-flex gw-flex-col gw-items-end", children: [
30239
30239
  /* @__PURE__ */ c("div", { className: "gw-font-medium", children: e.value }),
30240
- /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-line-clamp-1", children: `${e.name_on_list !== null ? e.name_on_list.toUpperCase() : Ge(e.amount, e.amount_currency)}` })
30240
+ /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-line-clamp-1", children: `${e.name_on_list !== null ? e.name_on_list.toUpperCase() : Ye(e.amount, e.amount_currency)}` })
30241
30241
  ] })
30242
30242
  ] })
30243
30243
  ] });
@@ -30273,17 +30273,17 @@ function PN() {
30273
30273
  className: oe(
30274
30274
  "gw-rounded-full gw-overflow-hidden gw-size-10 gw-flex-shrink-0 gw-flex gw-justify-center gw-items-center"
30275
30275
  ),
30276
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-full gw-h-full gw-rounded-full" })
30276
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-full gw-h-full gw-rounded-full" })
30277
30277
  }
30278
30278
  ),
30279
30279
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-flex-1", children: [
30280
30280
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-text-start gw-space-y-1", children: [
30281
- /* @__PURE__ */ c("div", { className: "gw-font-medium gw-capitalize", children: /* @__PURE__ */ c(Ze, { className: "gw-w-14 gw-h-4" }) }),
30282
- /* @__PURE__ */ c("div", { className: oe("gw-typography-caption"), children: /* @__PURE__ */ c(Ze, { className: "gw-w-14 gw-h-3" }) })
30281
+ /* @__PURE__ */ c("div", { className: "gw-font-medium gw-capitalize", children: /* @__PURE__ */ c(Ge, { className: "gw-w-14 gw-h-4" }) }),
30282
+ /* @__PURE__ */ c("div", { className: oe("gw-typography-caption"), children: /* @__PURE__ */ c(Ge, { className: "gw-w-14 gw-h-3" }) })
30283
30283
  ] }),
30284
30284
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-text-end gw-space-y-1", children: [
30285
- /* @__PURE__ */ c("div", { className: "gw-font-medium", children: /* @__PURE__ */ c(Ze, { className: "gw-w-10 gw-h-4" }) }),
30286
- /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500", children: /* @__PURE__ */ c(Ze, { className: "gw-w-10 gw-h-3" }) })
30285
+ /* @__PURE__ */ c("div", { className: "gw-font-medium", children: /* @__PURE__ */ c(Ge, { className: "gw-w-10 gw-h-4" }) }),
30286
+ /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500", children: /* @__PURE__ */ c(Ge, { className: "gw-w-10 gw-h-3" }) })
30287
30287
  ] })
30288
30288
  ] })
30289
30289
  ] });
@@ -30828,7 +30828,7 @@ function EB({ setWalletView: e }) {
30828
30828
  }
30829
30829
  ) : /* @__PURE__ */ S(ve, { children: [
30830
30830
  /* @__PURE__ */ c("h6", { children: "My Balance" }),
30831
- /* @__PURE__ */ c("div", { className: "gw-flex gw-font-medium gw-items-center gw-gap-1", children: !n || s?.value === void 0 ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-6" }) : /* @__PURE__ */ S(ve, { children: [
30831
+ /* @__PURE__ */ c("div", { className: "gw-flex gw-font-medium gw-items-center gw-gap-1", children: !n || s?.value === void 0 ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-6" }) : /* @__PURE__ */ S(ve, { children: [
30832
30832
  /* @__PURE__ */ c(ja, { className: "gw-size-5" }),
30833
30833
  /* @__PURE__ */ S("span", { children: [
30834
30834
  rn(
@@ -30844,8 +30844,8 @@ function EB({ setWalletView: e }) {
30844
30844
  }
30845
30845
  ),
30846
30846
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-col", children: [
30847
- /* @__PURE__ */ c("span", { className: "gw-typography-h2-nr", children: !n || o?.tokens === void 0 ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-[3.75rem]" }) : /* @__PURE__ */ S(ve, { children: [
30848
- Ge(
30847
+ /* @__PURE__ */ c("span", { className: "gw-typography-h2-nr", children: !n || o?.tokens === void 0 ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-[3.75rem]" }) : /* @__PURE__ */ S(ve, { children: [
30848
+ Ye(
30849
30849
  o?.tokens,
30850
30850
  void 0,
30851
30851
  i?.some((l) => BigInt(l.valueInWei) !== 0n),
@@ -31062,12 +31062,9 @@ const SB = (e) => /* @__PURE__ */ S("svg", { xmlns: "http://www.w3.org/2000/svg"
31062
31062
  ) : /* @__PURE__ */ c(SB, { style: { width: "100%", height: "100%" }, ...a }) });
31063
31063
  };
31064
31064
  function TB() {
31065
- const { glyphUrl: e, balances: t, hasBalances: r } = Me(), [n, a] = re(""), s = t?.nfts || [], o = t?.wallet_value?.nfts, i = new URL("/nfts", e).toString();
31065
+ const { glyphUrl: e, balances: t, hasBalances: r } = Me(), [n, a] = re(""), s = t?.nfts || [], o = new URL("/nfts", e).toString();
31066
31066
  return /* @__PURE__ */ S("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full", children: [
31067
- /* @__PURE__ */ S("div", { className: "gw-flex gw-mb-2 gw-flex-row gw-justify-between gw-items-center gw-w-full gw-flex-shrink-0 gw-pr-4", children: [
31068
- /* @__PURE__ */ c("h6", { children: "My NFTs" }),
31069
- o ? /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ge(o, t?.wallet_value?.currency, s.length > 0) }) }) : null
31070
- ] }),
31067
+ /* @__PURE__ */ c("div", { className: "gw-flex gw-mb-2 gw-flex-row gw-justify-between gw-items-center gw-w-full gw-flex-shrink-0 gw-pr-4", children: /* @__PURE__ */ c("h6", { children: "My NFTs" }) }),
31071
31068
  r && s?.length ? /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-flex-1 gw-min-h-0", children: [
31072
31069
  /* @__PURE__ */ c("div", { className: "gw-flex-1 gw-min-h-0 gw-overflow-auto", children: /* @__PURE__ */ c(
31073
31070
  jc,
@@ -31077,44 +31074,44 @@ function TB() {
31077
31074
  collapsible: !0,
31078
31075
  value: n,
31079
31076
  onValueChange: a,
31080
- children: s.map((l, u) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S($c, { value: u.toString(), className: "gw-pr-4", children: [
31077
+ children: s.map((i, l) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S($c, { value: l.toString(), className: "gw-pr-4", children: [
31081
31078
  /* @__PURE__ */ c(ed, { asChild: !0, children: /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2 gw-cursor-pointer", children: [
31082
31079
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-min-w-0 gw-flex-1", children: [
31083
31080
  /* @__PURE__ */ c("div", { className: "gw-flex-shrink-0", children: /* @__PURE__ */ c(
31084
31081
  Zu,
31085
31082
  {
31086
- url: l.contractImage || l.image,
31087
- alt: l.name,
31083
+ url: i.contractImage || i.image,
31084
+ alt: i.name,
31088
31085
  className: "gw-w-10 gw-h-10",
31089
31086
  height: "40",
31090
31087
  width: "40"
31091
31088
  }
31092
31089
  ) }),
31093
- /* @__PURE__ */ c("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: l.name?.toLocaleUpperCase?.() || l.symbol || "" })
31090
+ /* @__PURE__ */ c("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: i.name?.toLocaleUpperCase?.() || i.symbol || "" })
31094
31091
  ] }),
31095
31092
  /* @__PURE__ */ c("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end gw-flex-shrink-0", children: /* @__PURE__ */ c(
31096
31093
  AB,
31097
31094
  {
31098
- className: `${n === u.toString() ? "" : "gw-rotate-180"}`
31095
+ className: `${n === l.toString() ? "" : "gw-rotate-180"}`
31099
31096
  }
31100
31097
  ) })
31101
31098
  ] }) }),
31102
- /* @__PURE__ */ c(td, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: l.items.map((p) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31103
- p.fromLinked && /* @__PURE__ */ c("div", { className: "gw-absolute gw-top-1 gw-right-1 gw-z-10", children: /* @__PURE__ */ c(kB, {}) }),
31104
- p.fromDelegated && /* @__PURE__ */ c("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-right-0 gw-z-10", children: /* @__PURE__ */ c("div", { className: "gw-bg-black gw-bg-opacity-50 gw-text-white gw-text-center gw-text-[10px] gw-py-0.5 gw-px-1", children: "Delegate" }) }),
31099
+ /* @__PURE__ */ c(td, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: i.items.map((u) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31100
+ u.fromLinked && /* @__PURE__ */ c("div", { className: "gw-absolute gw-top-1 gw-right-1 gw-z-10", children: /* @__PURE__ */ c(kB, {}) }),
31101
+ u.fromDelegated && /* @__PURE__ */ c("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-right-0 gw-z-10", children: /* @__PURE__ */ c("div", { className: "gw-bg-black gw-bg-opacity-50 gw-text-white gw-text-center gw-text-[10px] gw-py-0.5 gw-px-1", children: "Delegate" }) }),
31105
31102
  /* @__PURE__ */ c(
31106
31103
  Zu,
31107
31104
  {
31108
- url: p.tokenImage || p.image?.thumbnailUrl,
31109
- alt: p.tokenId,
31105
+ url: u.tokenImage || u.image?.thumbnailUrl,
31106
+ alt: u.tokenId,
31110
31107
  className: "gw-w-16 gw-h-16",
31111
31108
  height: "64",
31112
31109
  width: "64",
31113
- title: p.tokenName || p.name || p.tokenId
31110
+ title: u.tokenName || u.name || u.tokenId
31114
31111
  }
31115
31112
  )
31116
- ] }, p.tokenId)) }) })
31117
- ] }) }, u.toString()))
31113
+ ] }, u.tokenId)) }) })
31114
+ ] }) }, l.toString()))
31118
31115
  }
31119
31116
  ) }),
31120
31117
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-w-full gw-text-brand-gray-500 gw-typography-body2 gw-flex-shrink-0 gw-mt-2", children: [
@@ -31122,7 +31119,7 @@ function TB() {
31122
31119
  /* @__PURE__ */ c(
31123
31120
  "a",
31124
31121
  {
31125
- href: i,
31122
+ href: o,
31126
31123
  target: "_blank",
31127
31124
  rel: "noopener noreferrer",
31128
31125
  className: Yo({
@@ -31180,7 +31177,7 @@ function UB() {
31180
31177
  return /* @__PURE__ */ S("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full gw-min-h-0", children: [
31181
31178
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-pr-4", children: [
31182
31179
  /* @__PURE__ */ c("h6", { children: "Tokens" }),
31183
- /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ge(
31180
+ /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ye(
31184
31181
  s,
31185
31182
  a[0]?.currency,
31186
31183
  a?.some((o) => BigInt(o.valueInWei) !== 0n)
@@ -31223,7 +31220,7 @@ function UB() {
31223
31220
  ] })
31224
31221
  ] }),
31225
31222
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end", children: [
31226
- /* @__PURE__ */ c("span", { className: "gw-font-medium", children: Ge(o.amount, o.currency, BigInt(o.valueInWei) !== 0n) }),
31223
+ /* @__PURE__ */ c("span", { className: "gw-font-medium", children: Ye(o.amount, o.currency, BigInt(o.valueInWei) !== 0n) }),
31227
31224
  /* @__PURE__ */ S("span", { className: "gw-typography-caption gw-text-brand-gray-500 gw-flex gw-items-center gw-justify-end gw-gap-0.5 gw-flex-wrap", children: [
31228
31225
  /* @__PURE__ */ S("span", { children: [
31229
31226
  rn(o.valueInWei, o.decimals, o.displayDecimals),
@@ -32534,7 +32531,7 @@ const JB = ({
32534
32531
  ] })
32535
32532
  ] }),
32536
32533
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-h-full gw-text-right", children: [
32537
- /* @__PURE__ */ c("span", { className: "gw-typography-caption", children: Ge(
32534
+ /* @__PURE__ */ c("span", { className: "gw-typography-caption", children: Ye(
32538
32535
  b.amount,
32539
32536
  b.currency,
32540
32537
  BigInt(b.valueInWei) !== 0n
@@ -32558,7 +32555,7 @@ const JB = ({
32558
32555
  `${b.chainId}:${b.address}_token_list`
32559
32556
  );
32560
32557
  }) : l ? /* @__PURE__ */ c("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2 gw-pr-4", children: "No tokens found" }) : new Array(3).fill(0).map((b, x) => /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
32561
- /* @__PURE__ */ c(Ze, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
32558
+ /* @__PURE__ */ c(Ge, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
32562
32559
  x < 2 && /* @__PURE__ */ c("hr", { className: "gw-my-2 gw-border-muted gw-mx-2" })
32563
32560
  ] }, x)) })
32564
32561
  ] })
@@ -33016,13 +33013,13 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33016
33013
  gasPrice: se,
33017
33014
  receivable_amount: I,
33018
33015
  receivable_amount_in_token: W,
33019
- receivable_amount_in_currency: Ge(
33016
+ receivable_amount_in_currency: Ye(
33020
33017
  W * +(v.rateInCurrency || 0),
33021
33018
  a?.currency || "USD",
33022
33019
  I !== 0n
33023
33020
  ),
33024
33021
  estimated_fees_amount: $r(w, k?.decimals || 18),
33025
- estimated_fees_amount_in_currency: Ge(
33022
+ estimated_fees_amount_in_currency: Ye(
33026
33023
  +$r(w, k?.decimals || 18) * +(k?.rateInCurrency || 0),
33027
33024
  a?.currency || "USD",
33028
33025
  w !== 0n
@@ -33081,11 +33078,11 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33081
33078
  xe(() => (x === Tt.END && ke === "SUCCESS" && n(rr.SUCCESS), x === Tt.END && ke === "FAILED" && n(rr.ERROR), () => {
33082
33079
  n(void 0);
33083
33080
  }), [n, ke, x]);
33084
- const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(si, {}), nt = v ? rn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ge(
33081
+ const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(si, {}), nt = v ? rn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ye(
33085
33082
  parseFloat($r(BigInt(v?.valueInWei || 0), v?.decimals ?? 18)) * parseFloat(v?.rateInCurrency),
33086
33083
  v?.currency,
33087
33084
  BigInt(v?.valueInWei || 0) > 0n
33088
- ) : Ge(v?.amount || 0, v?.currency, BigInt(v?.valueInWei || 0) !== 0n) : void 0;
33085
+ ) : Ye(v?.amount || 0, v?.currency, BigInt(v?.valueInWei || 0) !== 0n) : void 0;
33089
33086
  return /* @__PURE__ */ S(ve, { children: [
33090
33087
  x === Tt.ENTER_ADDRESS && /* @__PURE__ */ c(
33091
33088
  jB,
@@ -33206,7 +33203,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33206
33203
  /* @__PURE__ */ c("span", { className: "gw-text-input gw-typography-h4-nr", children: v?.symbol || "" })
33207
33204
  ] }) }),
33208
33205
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-mt-4 gw-gap-4", children: [
33209
- v?.rateInCurrency && /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: Ge(
33206
+ v?.rateInCurrency && /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: Ye(
33210
33207
  +v?.rateInCurrency * +U,
33211
33208
  v?.currency,
33212
33209
  Number(U) !== 0
@@ -33232,15 +33229,15 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33232
33229
  Xt ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-mt-3 gw-w-full", children: [
33233
33230
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-space-x-1", children: [
33234
33231
  /* @__PURE__ */ c("span", { children: "Transaction Time" }),
33235
- F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500 gw-text-right", children: "<1 min" })
33232
+ F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500 gw-text-right", children: "<1 min" })
33236
33233
  ] }),
33237
33234
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33238
33235
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
33239
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${rn(Fi(T?.estimated_fees_amount || 0, k?.decimals || 18), k?.decimals || 18, k?.displayDecimals)} ${k?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33236
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : `${rn(Fi(T?.estimated_fees_amount || 0, k?.decimals || 18), k?.decimals || 18, k?.displayDecimals)} ${k?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33240
33237
  ] }),
33241
33238
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33242
33239
  /* @__PURE__ */ c("span", { children: "Expected receivable amount" }),
33243
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${T?.receivable_amount_in_token} ${v?.symbol} (${T?.receivable_amount_in_currency} ${v?.currency})` })
33240
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : `${T?.receivable_amount_in_token} ${v?.symbol} (${T?.receivable_amount_in_currency} ${v?.currency})` })
33244
33241
  ] })
33245
33242
  ] }) : /* @__PURE__ */ c("div", {})
33246
33243
  ]
@@ -33905,7 +33902,7 @@ const bR = ({
33905
33902
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-gap-2", children: [
33906
33903
  /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: h ? "Search Results" : "Global 24H Volume" }),
33907
33904
  /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-min-h-0 gw-overflow-auto", children: N ? new Array(12).fill(0).map((U, L) => /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
33908
- /* @__PURE__ */ c(Ze, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
33905
+ /* @__PURE__ */ c(Ge, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
33909
33906
  L < 11 && /* @__PURE__ */ c("hr", { className: "gw-my-2 gw-border-muted gw-mx-2" })
33910
33907
  ] }, L)) : R ? /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-center gw-h-full gw-text-destructive", children: [
33911
33908
  /* @__PURE__ */ c(lu, { className: "gw-size-5" }),
@@ -34026,7 +34023,7 @@ const bR = ({
34026
34023
  ] }),
34027
34024
  /* @__PURE__ */ S("span", { children: [
34028
34025
  "(",
34029
- Ge(i, "USD"),
34026
+ Ye(i, "USD"),
34030
34027
  ")"
34031
34028
  ] }),
34032
34029
  l?.metadata?.logoURI && /* @__PURE__ */ c(
@@ -34434,8 +34431,8 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34434
34431
  }
34435
34432
  ) }),
34436
34433
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-text-brand-gray-500", children: [
34437
- at === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: at < 0.01 ? "<$0.01" : `${Ge(at || "0", "USD")}` }),
34438
- /* @__PURE__ */ c(ve, { children: ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ze, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : ie !== void 0 && b?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34434
+ at === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: at < 0.01 ? "<$0.01" : `${Ye(at || "0", "USD")}` }),
34435
+ /* @__PURE__ */ c(ve, { children: ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ge, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : ie !== void 0 && b?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34439
34436
  Ya(
34440
34437
  parseFloat(
34441
34438
  $r(BigInt(ie), b?.decimals)
@@ -34526,8 +34523,8 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34526
34523
  }
34527
34524
  ) }),
34528
34525
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-text-brand-gray-500", children: [
34529
- je === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: je < 0.01 ? "<$0.01" : `${Ge(je || "0", "USD")}` }),
34530
- /* @__PURE__ */ c(ve, { children: Ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ze, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : me !== void 0 && x?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34526
+ je === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: je < 0.01 ? "<$0.01" : `${Ye(je || "0", "USD")}` }),
34527
+ /* @__PURE__ */ c(ve, { children: Ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ge, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : me !== void 0 && x?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34531
34528
  Ya(
34532
34529
  parseFloat(
34533
34530
  $r(BigInt(me), x?.decimals)
@@ -34575,15 +34572,15 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34575
34572
  "Fees ",
34576
34573
  Q ? "" : `(${S1 / 100}%)`
34577
34574
  ] }),
34578
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? Q ? "0" : xt < 0.01 ? "<$0.01" : `${Ge(xt || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34575
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? Q ? "0" : xt < 0.01 ? "<$0.01" : `${Ye(xt || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34579
34576
  ] }),
34580
34577
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
34581
34578
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
34582
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? fe < 0.01 ? "<$0.01" : `${Ge(fe || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34579
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? fe < 0.01 ? "<$0.01" : `${Ye(fe || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34583
34580
  ] }),
34584
34581
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
34585
34582
  /* @__PURE__ */ c("span", { children: "Total" }),
34586
- /* @__PURE__ */ c("div", { className: "gw-text-foreground gw-font-medium", children: U && at ? at < 0.01 ? "<$0.01" : `${Ge(at || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34583
+ /* @__PURE__ */ c("div", { className: "gw-text-foreground gw-font-medium", children: U && at ? at < 0.01 ? "<$0.01" : `${Ye(at || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34587
34584
  ] })
34588
34585
  ] })
34589
34586
  ] }),
@@ -34753,14 +34750,14 @@ const ju = gt(
34753
34750
  if (!n) throw new Error("GlyphWidget must be used within a GlyphViewProvider");
34754
34751
  const { glyphView: a, setGlyphView: s } = n, { ready: o, authenticated: i, user: l, hideWidget: u } = Me();
34755
34752
  xe(() => {
34756
- (!o || !i) && s(Ye.CLOSED);
34753
+ (!o || !i) && s(Je.CLOSED);
34757
34754
  }, [o, i, s]);
34758
34755
  const [p, d] = re();
34759
34756
  return u ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ c("div", { className: "glyph-widget gw-widget-container light", children: o && i && l ? /* @__PURE__ */ c(ve, { children: r ? /* @__PURE__ */ S(
34760
34757
  sI,
34761
34758
  {
34762
- open: a !== Ye.CLOSED,
34763
- onOpenChange: (h) => s(h ? Ye.OPEN : Ye.CLOSED),
34759
+ open: a !== Je.CLOSED,
34760
+ onOpenChange: (h) => s(h ? Je.OPEN : Je.CLOSED),
34764
34761
  children: [
34765
34762
  /* @__PURE__ */ c(oI, { children: /* @__PURE__ */ c(ou, { ...e || {} }) }),
34766
34763
  /* @__PURE__ */ S(iI, { sideOffset: 10, align: "end", className: "glyph-widget gw-wallet-container", children: [
@@ -34775,8 +34772,8 @@ const ju = gt(
34775
34772
  /* @__PURE__ */ S(
34776
34773
  bT,
34777
34774
  {
34778
- open: a !== Ye.CLOSED,
34779
- onOpenChange: (h) => s(h ? Ye.OPEN : Ye.CLOSED),
34775
+ open: a !== Je.CLOSED,
34776
+ onOpenChange: (h) => s(h ? Je.OPEN : Je.CLOSED),
34780
34777
  children: [
34781
34778
  /* @__PURE__ */ c(yT, { children: /* @__PURE__ */ c(ou, { ...e || {} }) }),
34782
34779
  /* @__PURE__ */ S(vT, { className: "glyph-widget", children: [
@@ -34955,43 +34952,43 @@ const IR = ({ children: e }) => {
34955
34952
  }, ep = Ue.MAIN, tp = Le.HOME, rp = os("GlyphViewProvider"), NR = ({ children: e }) => {
34956
34953
  const t = xr(Bo);
34957
34954
  if (!t) throw new Error("GlyphViewProvider must be used within GlyphProvider");
34958
- const { user: r } = t, [n, a] = re(ep), [s, o] = re(tp), [i, l] = re(Ye.CLOSED);
34955
+ const { user: r } = t, [n, a] = re(ep), [s, o] = re(tp), [i, l] = re(Je.CLOSED);
34959
34956
  return xe(() => {
34960
34957
  switch (i) {
34961
- case Ye.CLOSED:
34958
+ case Je.CLOSED:
34962
34959
  break;
34963
34960
  // reset
34964
- case Ye.OPEN:
34961
+ case Je.OPEN:
34965
34962
  a(ep), o(tp);
34966
34963
  break;
34967
34964
  // non main views
34968
- case Ye.FUND:
34965
+ case Je.FUND:
34969
34966
  a(Ue.FUND);
34970
34967
  break;
34971
- case Ye.SWAP:
34968
+ case Je.SWAP:
34972
34969
  a(Ue.SWAP);
34973
34970
  break;
34974
- case Ye.SEND:
34971
+ case Je.SEND:
34975
34972
  a(Ue.SEND);
34976
34973
  break;
34977
- case Ye.RECEIVE:
34974
+ case Je.RECEIVE:
34978
34975
  a(Ue.RECEIVE);
34979
34976
  break;
34980
- case Ye.PROFILE:
34981
- r?.hasProfile ? a(Ue.PROFILE) : (rp.warn("Cannot open Profile view for a non-Glyph user - directing to Home view"), l(Ye.OPEN));
34977
+ case Je.PROFILE:
34978
+ r?.hasProfile ? a(Ue.PROFILE) : (rp.warn("Cannot open Profile view for a non-Glyph user - directing to Home view"), l(Je.OPEN));
34982
34979
  break;
34983
34980
  // MAIN by default uses HOME screen
34984
- case Ye.MAIN:
34985
- a(Ue.MAIN), o(Ye.HOME);
34981
+ case Je.MAIN:
34982
+ a(Ue.MAIN), o(Je.HOME);
34986
34983
  break;
34987
34984
  // these others are subviews of MAIN
34988
- case Ye.LINKED_ACCOUNTS:
34989
- r?.hasProfile ? (a(Ue.MAIN), o(Ye.LINKED_ACCOUNTS)) : (rp.warn("Cannot open Linked Accounts view for a non-Glyph user - directing to Home view"), l(Ye.OPEN));
34985
+ case Je.LINKED_ACCOUNTS:
34986
+ r?.hasProfile ? (a(Ue.MAIN), o(Je.LINKED_ACCOUNTS)) : (rp.warn("Cannot open Linked Accounts view for a non-Glyph user - directing to Home view"), l(Je.OPEN));
34990
34987
  break;
34991
- case Ye.HOME:
34992
- case Ye.ACTIVITY:
34993
- case Ye.TOKENS:
34994
- case Ye.NFTS:
34988
+ case Je.HOME:
34989
+ case Je.ACTIVITY:
34990
+ case Je.TOKENS:
34991
+ case Je.NFTS:
34995
34992
  a(Ue.MAIN), o(i);
34996
34993
  break;
34997
34994
  }
@@ -38771,7 +38768,7 @@ export {
38771
38768
  GM as p,
38772
38769
  ZM as q,
38773
38770
  qt as r,
38774
- Ye as s,
38771
+ Je as s,
38775
38772
  zn as t,
38776
38773
  Vf as u,
38777
38774
  T1 as v,