import { c as ot, m as Ot, p as j, f as O, k as et, o as wt, b, d as st, u as rt, n as yt, h as mt, s as F, i as U, g as zt, e as jt, a as _t, t as At, r as Nt, j as Y, q as kt } from "./AssetItem-BxjLUzNd.js";
import { o as Wt } from "./index-client-C5PXnhDi.js";
import { t as at, y as A, r as ct, S as ht, l as N, n as Z, o as xt, v as y, z as V, w as Q, x as q, E as t, m as E, D as L, T as it, p as gt, V as D, C as nt, W as vt, X as bt, Q as ut, J as $t, I as Lt, Y as Bt, P as Pt, Z as Tt, _ as Ft, $ as Qt, a0 as qt, a1 as Jt, L as Xt } from "./index-BBXAtvZr.js";
import { h as Yt } from "./html-BVy6qQOC.js";
import { S as te, Q as ee, B as ne, A as ie } from "./assets-BxOq0o9B.js";
import { A as oe } from "./account-BPB9Ucub.js";
import { S as se } from "./scanner-Bm3Pvpfs.js";
var re = O("<div></div>");
const ae = {
  hash: "svelte-1f4xgrf",
  code: ".brand-credenza.svelte-1f4xgrf {top:8px;left:-1px;}.brand-nhl.svelte-1f4xgrf {top:2px;}.brand-mlb.full.svelte-1f4xgrf {top:initial;bottom:8px;left:7px;}"
};
function Dt(m, e) {
  if (new.target) return ot({ component: Dt, ...m });
  at(e, !1), Ot(m, ae);
  const r = () => wt(ht, "$isLoggedInStore", f), [f, l] = yt();
  let s = j(e, "brandName", 12);
  var v = {
    get brandName() {
      return s();
    },
    set brandName(g) {
      s(g), N();
    },
    $set: rt,
    $on: (g, z) => st(e, g, z)
  }, n = re();
  let w;
  A(() => w = et(n, 1, `crtw-w-1.5 crtw-h-1.5 crtw-rounded-[3px] crtw-absolute crtw-left-0 crtw-top-[8px] brand-${s()}`, "svelte-1f4xgrf", w, {
    "crtw-bg-green-500": r(),
    "crtw-bg-red-500": !r()
  })), b(m, n);
  var o = ct(v);
  return l(), o;
}
var ce = O("<span><!></span>"), le = O("<div><!></div> <!>", 1), de = O('<div role="button"><!> <div class="crtw-flex crtw-items-center crtw-relative crtw-h-full crtw-mx-1.5"><!> <!></div> <!></div>');
function tt(m, e) {
  if (new.target) return ot({ component: tt, ...m });
  at(e, !1);
  const r = () => wt(ht, "$isLoggedInStore", f), [f, l] = yt(), s = E();
  let v = j(e, "options", 12), { title: n, onClick: w, isDisabled: o, theme: g, isMain: z } = v();
  Z(() => y(v()), () => {
    L(s, v().isMinimized);
  }), xt();
  var C = {
    get options() {
      return v();
    },
    set options(i) {
      v(i), N();
    },
    $set: rt,
    $on: (i, a) => st(e, i, a)
  };
  mt();
  var x = de();
  let S;
  F(x, "tabindex", 0);
  var p = Q(x);
  {
    var _ = (i) => {
      var a = ce();
      let T;
      var W = Q(a);
      {
        var u = (R) => {
          var H = _t(), lt = gt(H);
          zt(lt, e, "default", {}), b(R, H);
        }, B = (R) => {
          var H = At();
          A(() => Nt(H, n)), b(R, H);
        };
        U(W, (R) => {
          z ? R(u) : R(B, !1);
        });
      }
      q(a), A(() => T = et(a, 1, `crtw-flex crtw-items-center crtw-justify-center crtw-invisible crtw-bg-white crtw-text-black crtw-text-center crtw-absolute crtw-z-10
      crtw-top-0 crtw-bottom-0 crtw-left-0 crtw-right-0 crtw-text-[9px] crtw-rounded crtw-overflow-hidden group-hover:crtw-visible`, null, T, {
        "crtw-bg-black": g === it.BLACK,
        "crtw-text-white": g === it.BLACK
      })), b(i, a);
    };
    U(p, (i) => {
      t(s) && r() && i(_);
    });
  }
  var h = V(p, 2), k = Q(h);
  {
    var G = (i) => {
      Dt(i, {
        get brandName() {
          return n;
        }
      });
    };
    U(k, (i) => {
      z && i(G);
    });
  }
  var P = V(k, 2);
  zt(P, e, "icon", {}), q(h);
  var c = V(h, 2);
  {
    var $ = (i) => {
      var a = le(), T = gt(a);
      let W;
      var u = Q(T);
      Yt(u, () => n), q(T);
      var B = V(T, 2);
      zt(B, e, "default", {}), A(() => W = et(T, 1, "crtw-flex crtw-flex-col crtw-flex-1 crtw-w-full crtw-ml-1.5 crtw-justify-center", null, W, { "crtw-text-white": o })), b(i, a);
    };
    U(c, (i) => {
      t(s) || i($);
    });
  }
  q(x), A(() => S = et(x, 1, "crtw-w-full crtw-flex crtw-flex-row crtw-items-center crtw-justify-start crtw-h-11 crtw-relative crtw-box-border crtw-group", null, S, {
    "crtw-justify-center": t(s),
    "crtw-w-11": t(s)
  })), jt("click", x, w), b(m, x);
  var M = ct(C);
  return l(), M;
}
const ve = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-chevron-up'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M7.646%204.646a.5.5%200%200%201%20.708%200l6%206a.5.5%200%200%201-.708.708L8%205.707l-5.646%205.647a.5.5%200%200%201-.708-.708l6-6z'/%3e%3c/svg%3e";
var ge = O('<img alt=""/>'), me = O('<div slot="icon"><img class="crtw-block crtw-max-w-[30px]" alt=""/></div>');
function Rt(m, e) {
  if (new.target) return ot({ component: Rt, ...m });
  at(e, !1);
  const r = () => wt(ht, "$isLoggedInStore", f), [f, l] = yt(), s = E(), v = E();
  let n = j(e, "options", 12), { onClick: w, title: o, passIcon: g, theme: z } = n();
  Z(() => y(n()), () => {
    L(s, n().chevronStyles);
  }), Z(() => y(n()), () => {
    L(v, n().isMinimized);
  }), xt();
  var C = {
    get options() {
      return n();
    },
    set options(S) {
      n(S), N();
    },
    $set: rt,
    $on: (S, p) => st(e, S, p)
  };
  mt();
  {
    let S = D(() => ({
      title: o,
      onClick: w,
      isDisabled: !1,
      isMinimized: t(v),
      theme: z,
      isMain: !0
    }));
    tt(m, {
      get options() {
        return t(S);
      },
      children: (p, _) => {
        var h = _t(), k = gt(h);
        {
          var G = (P) => {
            var c = ge();
            A(() => {
              F(c, "src", ve), Y(c, t(s));
            }), b(P, c);
          };
          U(k, (P) => {
            r() && P(G);
          });
        }
        b(p, h);
      },
      $$slots: {
        default: !0,
        icon: (p, _) => {
          var h = me();
          et(h, 1, "crtw-flex crtw-justify-center crtw-items-center crtw-rounded-md");
          var k = Q(h);
          q(h), A(() => F(k, "src", g)), b(p, h);
        }
      }
    });
  }
  var x = ct(C);
  return l(), x;
}
var fe = O('<div role="button"><!></div>');
const ue = {
  hash: "svelte-1w6drrl",
  code: ".cpui-minimization-toggler-left.svelte-1w6drrl {left:0;border-right:1px solid;}.cpui-minimization-toggler-right.svelte-1w6drrl {right:0;border-left:1px solid;}"
};
function Kt(m, e) {
  if (new.target) return ot({ component: Kt, ...m });
  at(e, !1), Ot(m, ue);
  let r = j(e, "theme", 12), f = j(e, "navConfig", 12), l = j(e, "isMinimized", 12);
  var s = {
    get theme() {
      return r();
    },
    set theme(o) {
      r(o), N();
    },
    get navConfig() {
      return f();
    },
    set navConfig(o) {
      f(o), N();
    },
    get isMinimized() {
      return l();
    },
    set isMinimized(o) {
      l(o), N();
    },
    $set: rt,
    $on: (o, g) => st(e, o, g)
  };
  mt();
  var v = _t(), n = gt(v);
  {
    var w = (o) => {
      var g = fe();
      F(g, "tabindex", 0);
      let z;
      var C = Q(g);
      {
        var x = (p) => {
          var _ = At();
          _.nodeValue = ">", b(p, _);
        }, S = (p) => {
          var _ = At();
          _.nodeValue = "<", b(p, _);
        };
        U(C, (p) => {
          y(l()), y(f()), y(vt), nt(() => l() && f().minimization?.toggler?.position === vt.RIGHT || !l() && f().minimization?.toggler?.position !== vt.RIGHT) ? p(x) : p(S, !1);
        });
      }
      q(g), A((p) => z = et(g, 1, p, "svelte-1w6drrl", z, { "border-white": r() === it.BLACK }), [
        () => (y(f()), y(vt), nt(() => `crtw-flex crtw-items-center crtw-justify-center crtw-w-4 crtw-absolute crtw-top-0 crtw-bottom-0 crtw-border-gray-700 cpui-minimization-toggler-${f().minimization?.toggler?.position?.toLowerCase() ?? vt.LEFT.toLowerCase()}`))
      ]), jt("click", g, () => l(!l())), b(o, g);
    };
    U(n, (o) => {
      y(f()), nt(() => f().minimization?.toggler?.enabled) && o(w);
    });
  }
  return b(m, v), ct(s);
}
var we = O('<div class="crdz-ui" id="cpnav"><div><!> <!> <!> <!></div></div>');
function Vt(m, e) {
  if (new.target) return ot({ component: Vt, ...m });
  at(e, !1);
  const r = E(), f = E(), l = E(), s = E();
  let v = j(e, "options", 12), n = j(e, "navItemOptions", 12), w = j(e, "balanceOptions", 12), o = v(), g = o.theme, z = o.cssVarStyles, C = o.navConfig, x = o.navDirection, S = o.iconStyles, p = o.onItemClicked, _ = E(o.isMinimized), h = o.expandedNavComponent;
  Z(() => y(v()), () => {
    L(r, v().isExpanded);
  }), Z(() => y(w()), () => {
    L(f, w().balance);
  }), Z(() => y(w()), () => {
    L(l, w().isShown);
  }), Z(() => y(n()), () => {
    L(s, n().chevronStyles);
  }), xt();
  var k = {
    get options() {
      return v();
    },
    set options(u) {
      v(u), N();
    },
    get navItemOptions() {
      return n();
    },
    set navItemOptions(u) {
      n(u), N();
    },
    get balanceOptions() {
      return w();
    },
    set balanceOptions(u) {
      w(u), N();
    },
    $set: rt,
    $on: (u, B) => st(e, u, B)
  };
  mt();
  var G = we(), P = Q(G);
  let c;
  var $ = Q(P);
  Kt($, {
    get theme() {
      return g;
    },
    get navConfig() {
      return C;
    },
    get isMinimized() {
      return t(_);
    },
    set isMinimized(u) {
      L(_, u);
    },
    $$legacy: !0
  });
  var M = V($, 2);
  {
    var i = (u) => {
      var B = _t(), R = gt(B);
      {
        let H = D(() => ({
          isMinimized: t(_),
          theme: g,
          iconStyles: S,
          onClick: p,
          isShownBalance: t(l),
          balance: t(f)
        }));
        kt(R, () => h, (lt, pt) => {
          pt(lt, {
            get options() {
              return t(H);
            }
          });
        });
      }
      b(u, B);
    };
    U(M, (u) => {
      y(bt), t(r), nt(() => x === bt.TOP && t(r)) && u(i);
    });
  }
  var a = V(M, 2);
  {
    let u = D(() => (y(n()), t(_), t(s), nt(() => ({
      ...n(),
      theme: g,
      isMinimized: t(_),
      chevronStyles: t(s)
    }))));
    Rt(a, {
      get options() {
        return t(u);
      }
    });
  }
  var T = V(a, 2);
  {
    var W = (u) => {
      var B = _t(), R = gt(B);
      {
        let H = D(() => ({
          isMinimized: t(_),
          theme: g,
          iconStyles: S,
          onClick: p,
          isShownBalance: t(l),
          balance: t(f)
        }));
        kt(R, () => h, (lt, pt) => {
          pt(lt, {
            get options() {
              return t(H);
            }
          });
        });
      }
      b(u, B);
    };
    U(T, (u) => {
      y(bt), t(r), nt(() => x === bt.BOTTOM && t(r)) && u(W);
    });
  }
  return q(P), q(G), A(() => {
    c = et(P, 1, `cpnav crtw-fixed crtw-z-50 crtw-w-56 crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-text-gray-800
    crtw-font-[poppins] crtw-text-xs crtw-border crtw-border-gray-700 crtw-rounded crtw-cursor-pointer crtw-pr-1.5`, null, c, {
      "crtw-bg-black": g === it.BLACK,
      "crtw-text-white": g === it.BLACK,
      "crtw-w-[70px]": t(_),
      "crtw-pr-5": C.minimization?.toggler?.enabled && C.minimization?.toggler?.position === vt.RIGHT,
      "crtw-pl-5": C.minimization?.toggler?.enabled && C.minimization?.toggler?.position !== vt.RIGHT
    }), Y(P, z);
  }), b(m, G), ct(k);
}
var pe = O('<img slot="icon" alt=""/>'), be = O('<img slot="icon" alt=""/>'), _e = O('<img slot="icon" alt=""/>'), he = O("<span> </span>"), xe = O('<img slot="icon" alt=""/>'), $e = O('<img slot="icon" alt=""/>'), ye = O('<img slot="icon" alt=""/>'), Ce = O("<!> <!> <!> <!> <!> <!>", 1);
function Gt(m, e) {
  if (new.target) return ot({ component: Gt, ...m });
  at(e, !1);
  const r = E(), f = E(), l = E();
  let s = j(e, "options", 12), v = j(e, "showAssets", 12, !1), { theme: n, iconStyles: w, onClick: o, buttonStyles: g } = s();
  Z(() => y(s()), () => {
    L(r, s().balance);
  }), Z(() => y(s()), () => {
    L(f, s().isShownBalance);
  }), Z(() => y(s()), () => {
    L(l, s().isMinimized);
  }), xt();
  var z = {
    get options() {
      return s();
    },
    set options(c) {
      s(c), N();
    },
    get showAssets() {
      return v();
    },
    set showAssets(c) {
      v(c), N();
    },
    $set: rt,
    $on: (c, $) => st(e, c, $)
  };
  mt();
  var C = Ce(), x = gt(C);
  {
    let c = D(() => ({
      isMinimized: t(l),
      theme: n,
      title: "Sign Out",
      onClick: () => o(ut.LOGOUT)
    }));
    tt(x, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, M) => {
          var i = pe();
          A(() => {
            F(i, "src", te), Y(i, w);
          }), b($, i);
        }
      }
    });
  }
  var S = V(x, 2);
  {
    let c = D(() => ({
      isMinimized: t(l),
      theme: n,
      title: "Show ID",
      onClick: () => o(ut.PASSPORT_ID)
    }));
    tt(S, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, M) => {
          var i = be();
          A(() => {
            F(i, "src", ee), Y(i, w);
          }), b($, i);
        }
      }
    });
  }
  var p = V(S, 2);
  {
    let c = D(() => ({
      isMinimized: t(l),
      theme: n,
      title: "PassScan",
      onClick: () => o(ut.SCANNER)
    }));
    tt(p, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, M) => {
          var i = _e();
          A(() => {
            F(i, "src", se), Y(i, w);
          }), b($, i);
        }
      }
    });
  }
  var _ = V(p, 2);
  {
    var h = (c) => {
      {
        let $ = D(() => ({
          theme: n,
          title: "Wallet",
          onClick: () => o(ut.WALLET),
          isMinimized: t(l)
        }));
        tt(c, {
          get options() {
            return t($);
          },
          children: (M, i) => {
            var a = he();
            let T;
            var W = Q(a, !0);
            q(a), A(() => {
              T = et(a, 1, "cpnav-menu-item-balance crtw-text-[9px]", null, T, { "cpnav-menu-item-balance-white": n === it.BLACK }), Nt(W, t(r));
            }), b(M, a);
          },
          $$slots: {
            default: !0,
            icon: (M, i) => {
              var a = xe();
              A(() => {
                F(a, "src", ne), Y(a, w);
              }), b(M, a);
            }
          }
        });
      }
    };
    U(_, (c) => {
      t(f) && c(h);
    });
  }
  var k = V(_, 2);
  {
    var G = (c) => {
      {
        let $ = D(() => ({
          theme: n,
          title: "Assets",
          onClick: () => o(ut.ASSETS),
          isMinimized: t(l)
        }));
        tt(c, {
          get options() {
            return t($);
          },
          $$slots: {
            icon: (M, i) => {
              var a = $e();
              A(() => {
                F(a, "src", ie), Y(a, w);
              }), b(M, a);
            }
          }
        });
      }
    };
    U(k, (c) => {
      v() && c(G);
    });
  }
  var P = V(k, 2);
  {
    let c = D(() => ({
      isMinimized: t(l),
      theme: n,
      title: "My Account",
      onClick: () => o(ut.PROFILE)
    }));
    tt(P, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, M) => {
          var i = ye();
          A(() => {
            F(i, "src", oe), Y(i, w);
          }), b($, i);
        }
      }
    });
  }
  return b(m, C), ct(z);
}
const Mt = (m = null) => ({
  width: "20px",
  ...m === it.BLACK ? { filter: "brightness(0) invert(1)" } : {}
  // brightness(0) invert(1) - makes WHITE
}), Et = "data:image/svg+xml,%3csvg%20width='18px'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20350.3%20550.12'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23010101;}.cls-2{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M306.25,19.41A19.41,19.41,0,0,0,286.91,0a19.87,19.87,0,0,0-4.48.52L84.06,46.8H306.25Z'/%3e%3cpath%20class='cls-1'%20d='M330.86,68.67H16.41A16.43,16.43,0,0,0,0,85.08V533.52a16.43,16.43,0,0,0,16.41,16.41H330.86A19.15,19.15,0,0,0,350,530.79v-443a19.15,19.15,0,0,0-19.14-19.14Z'/%3e%3cpath%20class='cls-2'%20d='M335.18,324.34c-36.63,23.17-33.8,23-67-3,22.17,36.31,22.44,32-3,67,38.13-22.69,31.95-24.1,67,3C309.46,353.18,309.39,360.34,335.18,324.34Z'/%3e%3cpath%20class='cls-2'%20d='M182.86,437.36c-41.92,28.61-38.35,27.94-79.07-1.09,27.05,41.47,27.72,37.15-1.09,79.06,44-28,36.41-29.05,79.06,1.1C153.74,472.43,153.61,480.83,182.86,437.36Z'/%3e%3cpath%20class='cls-2'%20d='M350.3,542V487.21c-54.42-5.37-91.43-51.55-129.29-108.62-33.17-50-19.06-58,35.18-148.25C150.55,311,158.7,309.56,49.08,237.47c76.21,105.73,77,92.51,7.14,207.11,85.43-60.77,93.57-76.77,144-48.43,78.67,45.26,105.36,97.48,105.8,154h35Z'/%3e%3c/svg%3e";
function Ht(m, e) {
  if (new.target) return ot({ component: Ht, ...m });
  at(e, !1);
  var r;
  let f = j(e, "options", 12);
  const l = !!(!((r = $t(Lt).walletAssets) === null || r === void 0) && r.length);
  var s = {
    get options() {
      return f();
    },
    set options(v) {
      f(v), N();
    },
    $set: rt,
    $on: (v, n) => st(e, v, n)
  };
  return mt(), Gt(m, {
    get options() {
      return f();
    },
    get showAssets() {
      return l;
    }
  }), ct(s);
}
const Se = {
  hash: "svelte-19pc2my",
  code: ".cpnav svg:focus {outline:0;}"
};
function Ie(m, e) {
  if (new.target) return ot({ component: Ie, ...m });
  at(e, !1), Ot(m, Se);
  const r = () => wt(Jt, "$clientPublicStore", s), f = () => wt(Lt, "$configStore", s), l = () => wt(ht, "$isLoggedInStore", s), [s, v] = yt();
  var n = this && this.__awaiter || function(d, I, K, J) {
    function Ct(X) {
      return X instanceof K ? X : new K(function(ft) {
        ft(X);
      });
    }
    return new (K || (K = Promise))(function(X, ft) {
      function Ut(dt) {
        try {
          St(J.next(dt));
        } catch (It) {
          ft(It);
        }
      }
      function Zt(dt) {
        try {
          St(J.throw(dt));
        } catch (It) {
          ft(It);
        }
      }
      function St(dt) {
        dt.done ? X(dt.value) : Ct(dt.value).then(Ut, Zt);
      }
      St((J = J.apply(d, I || [])).next());
    });
  }, w, o, g;
  let z = j(e, "styles", 12), C = j(e, "navConfig", 12);
  const x = $t(Lt), { openUI: S, getCREDContract: p, getBalance: _ } = $t(Xt);
  let h = E("");
  const k = () => n(void 0, void 0, void 0, function* () {
    try {
      if (!(yield Ft())) return;
      const { decimals: I, contract: K, address: J } = yield p(), Ct = yield _(), X = Qt.formatUnits(Ct, I), ft = yield K.symbol();
      L(h, `(${X} ${(r() === null || r() === void 0 ? void 0 : r().ui_settings.cred_alias) || "cred"})`), qt.track("cp_nav_balance_read", {
        chain: f().chainId,
        contract: J,
        decimals: I,
        balance: X,
        symbol: ft
      });
    } catch (d) {
      console.log(d), L(h, "");
    }
  }), G = Bt(Pt.RECHECK_BALANCE, (d) => n(void 0, void 0, void 0, function* () {
    d?.length && (yield Promise.all(d.map((I) => {
      var K;
      return (K = $t(Tt)) === null || K === void 0 ? void 0 : K.waitForTransaction(I);
    }))), yield k();
  })), P = Bt(Pt.LOGIN, () => n(void 0, void 0, void 0, function* () {
    yield k();
  })), c = Tt.subscribe((d) => n(void 0, void 0, void 0, function* () {
    d && (yield k());
  })), $ = Object.entries((r() === null || r() === void 0 ? void 0 : r().ui_settings) || {}).map(([d, I]) => d === "text_color" ? ["color", I] : [`${d.replace(/_/g, "-")}`, I]), M = Object.assign(Object.assign({}, z()), Object.fromEntries($)), i = Object.entries(M).map(([d, I]) => `${d}:${I} !important`).join(";");
  let a = E(!1), T = ((w = C().minimization) === null || w === void 0 ? void 0 : w.enabled) || !1;
  const W = ((o = x.nav) === null || o === void 0 ? void 0 : o.direction) || bt.TOP, u = ((g = x.nav) === null || g === void 0 ? void 0 : g.theme) || it.WHITE;
  let B = E("");
  const R = Object.entries(Mt(u)).map(([d, I]) => `${d}:${I}`).join(";"), H = ht.subscribe((d) => {
    d || L(a, !1);
  });
  Wt(() => {
    G(), P(), H(), c();
  }), Z(() => (t(a), Mt), () => {
    L(B, Object.entries(Object.assign(Object.assign({}, t(a) ? { transform: "scale(1, -1)" } : {}), Mt(u))).map(([d, I]) => `${d}:${I}`).join(";"));
  }), xt();
  var lt = {
    get styles() {
      return z();
    },
    set styles(d) {
      z(d), N();
    },
    get navConfig() {
      return C();
    },
    set navConfig(d) {
      C(d), N();
    },
    $set: rt,
    $on: (d, I) => st(e, d, I)
  };
  mt();
  {
    let d = D(() => ({
      isExpanded: t(a),
      theme: u,
      isMinimized: T,
      cssVarStyles: i,
      navConfig: C(),
      navDirection: W,
      iconStyles: R,
      onItemClicked: (J) => S(J),
      expandedNavComponent: Ht
    })), I = D(() => (l(), t(a), r(), y(Et), t(B), nt(() => ({
      onClick: () => l() ? L(a, !t(a)) : S(),
      title: `${r()?.name}`,
      passIcon: r()?.ui_settings.logo_url || Et,
      chevronStyles: t(B)
    })))), K = D(() => (t(h), nt(() => ({ isShown: x.buyTokens !== !1, balance: t(h) }))));
    Vt(m, {
      get options() {
        return t(d);
      },
      get navItemOptions() {
        return t(I);
      },
      get balanceOptions() {
        return t(K);
      }
    });
  }
  var pt = ct(lt);
  return v(), pt;
}
export {
  Ie as default
};
//# sourceMappingURL=Nav-CyFRbw6a.js.map
