import { c as ot, m as Ot, p as N, f as P, k as tt, b, d as st, u as rt, h as ft, s as F, i as Z, g as zt, e as jt, a as _t, t as At, o as Nt, j as Y, n as kt } from "./AssetItem-CFsdMEwW.js";
import { o as qt } from "./index-client-DJaMHbvZ.js";
import { v as at, z as O, F as gt, t as ct, E as yt, W as ht, n as R, o as W, p as xt, w as y, A as V, x as et, y as Q, I as t, m as j, G as k, X as it, r as mt, Y as K, D as nt, Z as vt, _ as bt, T as wt, M as $t, L as Lt, $ as Pt, P as Tt, a0 as Bt, a1 as Xt, a2 as Yt, a3 as Jt, a4 as te, O as ee, a5 as ne, K as ie } from "./index-BxjwuJ6T.js";
import { h as oe } from "./html-DarouBbC.js";
import { S as se, Q as re, B as ae, A as ce } from "./assets-BxOq0o9B.js";
import { A as le } from "./account-BPB9Ucub.js";
import { S as de } from "./scanner-Bm3Pvpfs.js";
import { g as ve } from "./authMethods.helper-DBzGGN4n.js";
var ge = P("<div></div>");
const me = {
  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 Rt(g, e) {
  if (new.target) return ot({ component: Rt, ...g });
  at(e, !1), Ot(g, me);
  const s = () => gt(ht, "$isLoggedInStore", m), [m, d] = yt();
  let r = N(e, "brandName", 12);
  var a = {
    get brandName() {
      return r();
    },
    set brandName(v) {
      r(v), R();
    },
    $set: rt,
    $on: (v, z) => st(e, v, z)
  }, o = ge();
  let f;
  O(() => f = tt(o, 1, `crtw-w-1.5 crtw-h-1.5 crtw-rounded-[3px] crtw-absolute crtw-left-0 crtw-top-[8px] brand-${r()}`, "svelte-1f4xgrf", f, {
    "crtw-bg-green-500": s(),
    "crtw-bg-red-500": !s()
  })), b(g, o);
  var i = ct(a);
  return d(), i;
}
var fe = P("<span><!></span>"), ue = P("<div></div> <!>", 1), we = P('<div role="button"><!> <div class="crtw-flex crtw-items-center crtw-relative crtw-h-full crtw-mx-1.5"><!> <!></div> <!></div>');
function J(g, e) {
  if (new.target) return ot({ component: J, ...g });
  at(e, !1);
  const s = () => gt(ht, "$isLoggedInStore", m), [m, d] = yt(), r = j();
  let a = N(e, "options", 12), { title: o, onClick: f, isDisabled: i, theme: v, isMain: z } = a();
  W(() => y(a()), () => {
    k(r, a().isMinimized);
  }), xt();
  var C = {
    get options() {
      return a();
    },
    set options(n) {
      a(n), R();
    },
    $set: rt,
    $on: (n, u) => st(e, n, u)
  };
  ft();
  var h = we();
  let x;
  F(h, "tabindex", 0);
  var w = et(h);
  {
    var _ = (n) => {
      var u = fe();
      let B;
      var L = et(u);
      {
        var p = (E) => {
          var H = _t(), lt = mt(H);
          zt(lt, e, "default", {}), b(E, H);
        }, G = (E) => {
          var H = At();
          O(() => Nt(H, o)), b(E, H);
        };
        Z(L, (E) => {
          z ? E(p) : E(G, -1);
        });
      }
      Q(u), O(() => B = tt(u, 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, B, {
        "crtw-bg-black": v === it.BLACK,
        "crtw-text-white": v === it.BLACK
      })), b(n, u);
    };
    Z(w, (n) => {
      t(r) && s() && n(_);
    });
  }
  var I = V(w, 2), D = et(I);
  {
    var T = (n) => {
      Rt(n, {
        get brandName() {
          return o;
        }
      });
    };
    Z(D, (n) => {
      z && n(T);
    });
  }
  var M = V(D, 2);
  zt(M, e, "icon", {}), Q(I);
  var c = V(I, 2);
  {
    var $ = (n) => {
      var u = ue(), B = mt(u);
      let L;
      oe(B, () => o, !0), Q(B);
      var p = V(B, 2);
      zt(p, e, "default", {}), O(() => L = tt(B, 1, "crtw-flex crtw-flex-col crtw-flex-1 crtw-w-full crtw-ml-1.5 crtw-justify-center", null, L, { "crtw-text-white": i })), b(n, u);
    };
    Z(c, (n) => {
      t(r) || n($);
    });
  }
  Q(h), O(() => x = tt(h, 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, x, {
    "crtw-justify-center": t(r),
    "crtw-w-11": t(r)
  })), jt("click", h, f), b(g, h);
  var A = ct(C);
  return d(), A;
}
const pe = "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 be = P('<img alt=""/>'), _e = P('<div slot="icon"><img class="crtw-block crtw-max-w-[30px]" alt=""/></div>');
function Dt(g, e) {
  if (new.target) return ot({ component: Dt, ...g });
  at(e, !1);
  const s = () => gt(ht, "$isLoggedInStore", m), [m, d] = yt(), r = j(), a = j();
  let o = N(e, "options", 12), { onClick: f, title: i, passIcon: v, theme: z } = o();
  W(() => y(o()), () => {
    k(r, o().chevronStyles);
  }), W(() => y(o()), () => {
    k(a, o().isMinimized);
  }), xt();
  var C = {
    get options() {
      return o();
    },
    set options(x) {
      o(x), R();
    },
    $set: rt,
    $on: (x, w) => st(e, x, w)
  };
  ft();
  {
    let x = K(() => ({
      title: i,
      onClick: f,
      isDisabled: !1,
      isMinimized: t(a),
      theme: z,
      isMain: !0
    }));
    J(g, {
      get options() {
        return t(x);
      },
      children: (w, _) => {
        var I = _t(), D = mt(I);
        {
          var T = (M) => {
            var c = be();
            O(() => {
              F(c, "src", pe), Y(c, t(r));
            }), b(M, c);
          };
          Z(D, (M) => {
            s() && M(T);
          });
        }
        b(w, I);
      },
      $$slots: {
        default: !0,
        icon: (w, _) => {
          var I = _e();
          tt(I, 1, "crtw-flex crtw-justify-center crtw-items-center crtw-rounded-md");
          var D = et(I);
          Q(I), O(() => F(D, "src", v)), b(w, I);
        }
      }
    });
  }
  var h = ct(C);
  return d(), h;
}
var he = P('<div role="button"><!></div>');
const xe = {
  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 Ht(g, e) {
  if (new.target) return ot({ component: Ht, ...g });
  at(e, !1), Ot(g, xe);
  let s = N(e, "theme", 12), m = N(e, "navConfig", 12), d = N(e, "isMinimized", 12);
  var r = {
    get theme() {
      return s();
    },
    set theme(i) {
      s(i), R();
    },
    get navConfig() {
      return m();
    },
    set navConfig(i) {
      m(i), R();
    },
    get isMinimized() {
      return d();
    },
    set isMinimized(i) {
      d(i), R();
    },
    $set: rt,
    $on: (i, v) => st(e, i, v)
  };
  ft();
  var a = _t(), o = mt(a);
  {
    var f = (i) => {
      var v = he();
      F(v, "tabindex", 0);
      let z;
      var C = et(v);
      {
        var h = (w) => {
          var _ = At();
          _.nodeValue = ">", b(w, _);
        }, x = (w) => {
          var _ = At();
          _.nodeValue = "<", b(w, _);
        };
        Z(C, (w) => {
          y(d()), y(m()), y(vt), nt(() => d() && m().minimization?.toggler?.position === vt.RIGHT || !d() && m().minimization?.toggler?.position !== vt.RIGHT) ? w(h) : w(x, -1);
        });
      }
      Q(v), O((w) => z = tt(v, 1, w, "svelte-1w6drrl", z, { "border-white": s() === it.BLACK }), [
        () => (y(m()), 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-${m().minimization?.toggler?.position?.toLowerCase() ?? vt.LEFT.toLowerCase()}`))
      ]), jt("click", v, () => d(!d())), b(i, v);
    };
    Z(o, (i) => {
      y(m()), nt(() => m().minimization?.toggler?.enabled) && i(f);
    });
  }
  return b(g, a), ct(r);
}
var $e = P('<div class="crdz-ui" id="cpnav"><div><!> <!> <!> <!></div></div>');
function Kt(g, e) {
  if (new.target) return ot({ component: Kt, ...g });
  at(e, !1);
  const s = j(), m = j(), d = j(), r = j();
  let a = N(e, "options", 12), o = N(e, "navItemOptions", 12), f = N(e, "balanceOptions", 12), i = a(), v = i.theme, z = i.cssVarStyles, C = i.navConfig, h = i.navDirection, x = i.iconStyles, w = i.onItemClicked, _ = j(i.isMinimized), I = i.expandedNavComponent;
  W(() => y(a()), () => {
    k(s, a().isExpanded);
  }), W(() => y(f()), () => {
    k(m, f().balance);
  }), W(() => y(f()), () => {
    k(d, f().isShown);
  }), W(() => y(o()), () => {
    k(r, o().chevronStyles);
  }), xt();
  var D = {
    get options() {
      return a();
    },
    set options(p) {
      a(p), R();
    },
    get navItemOptions() {
      return o();
    },
    set navItemOptions(p) {
      o(p), R();
    },
    get balanceOptions() {
      return f();
    },
    set balanceOptions(p) {
      f(p), R();
    },
    $set: rt,
    $on: (p, G) => st(e, p, G)
  };
  ft();
  var T = $e(), M = et(T);
  let c;
  var $ = et(M);
  Ht($, {
    get theme() {
      return v;
    },
    get navConfig() {
      return C;
    },
    get isMinimized() {
      return t(_);
    },
    set isMinimized(p) {
      k(_, p);
    },
    $$legacy: !0
  });
  var A = V($, 2);
  {
    var n = (p) => {
      var G = _t(), E = mt(G);
      {
        let H = K(() => ({
          isMinimized: t(_),
          theme: v,
          iconStyles: x,
          onClick: w,
          isShownBalance: t(d),
          balance: t(m)
        }));
        kt(E, () => I, (lt, pt) => {
          pt(lt, {
            get options() {
              return t(H);
            }
          });
        });
      }
      b(p, G);
    };
    Z(A, (p) => {
      y(bt), t(s), nt(() => h === bt.TOP && t(s)) && p(n);
    });
  }
  var u = V(A, 2);
  {
    let p = K(() => (y(o()), t(_), t(r), nt(() => ({
      ...o(),
      theme: v,
      isMinimized: t(_),
      chevronStyles: t(r)
    }))));
    Dt(u, {
      get options() {
        return t(p);
      }
    });
  }
  var B = V(u, 2);
  {
    var L = (p) => {
      var G = _t(), E = mt(G);
      {
        let H = K(() => ({
          isMinimized: t(_),
          theme: v,
          iconStyles: x,
          onClick: w,
          isShownBalance: t(d),
          balance: t(m)
        }));
        kt(E, () => I, (lt, pt) => {
          pt(lt, {
            get options() {
              return t(H);
            }
          });
        });
      }
      b(p, G);
    };
    Z(B, (p) => {
      y(bt), t(s), nt(() => h === bt.BOTTOM && t(s)) && p(L);
    });
  }
  return Q(M), Q(T), O(() => {
    c = tt(M, 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": v === it.BLACK,
      "crtw-text-white": v === 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(M, z);
  }), b(g, T), ct(D);
}
var ye = P('<img slot="icon" alt=""/>'), Se = P('<img slot="icon" alt=""/>'), Ce = P('<img slot="icon" alt=""/>'), Ie = P("<span> </span>"), ze = P('<img slot="icon" alt=""/>'), Me = P('<img slot="icon" alt=""/>'), Ae = P('<img slot="icon" alt=""/>'), Le = P("<!> <!> <!> <!> <!> <!>", 1);
function Ut(g, e) {
  if (new.target) return ot({ component: Ut, ...g });
  at(e, !1);
  const s = j(), m = j(), d = j();
  let r = N(e, "options", 12), a = N(e, "showAssets", 12, !1), { theme: o, iconStyles: f, onClick: i, buttonStyles: v } = r();
  W(() => y(r()), () => {
    k(s, r().balance);
  }), W(() => y(r()), () => {
    k(m, r().isShownBalance);
  }), W(() => y(r()), () => {
    k(d, r().isMinimized);
  }), xt();
  var z = {
    get options() {
      return r();
    },
    set options(c) {
      r(c), R();
    },
    get showAssets() {
      return a();
    },
    set showAssets(c) {
      a(c), R();
    },
    $set: rt,
    $on: (c, $) => st(e, c, $)
  };
  ft();
  var C = Le(), h = mt(C);
  {
    let c = K(() => ({
      isMinimized: t(d),
      theme: o,
      title: "Sign Out",
      onClick: () => i(wt.LOGOUT)
    }));
    J(h, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, A) => {
          var n = ye();
          O(() => {
            F(n, "src", se), Y(n, f);
          }), b($, n);
        }
      }
    });
  }
  var x = V(h, 2);
  {
    let c = K(() => ({
      isMinimized: t(d),
      theme: o,
      title: "Show ID",
      onClick: () => i(wt.PASSPORT_ID)
    }));
    J(x, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, A) => {
          var n = Se();
          O(() => {
            F(n, "src", re), Y(n, f);
          }), b($, n);
        }
      }
    });
  }
  var w = V(x, 2);
  {
    let c = K(() => ({
      isMinimized: t(d),
      theme: o,
      title: "PassScan",
      onClick: () => i(wt.SCANNER)
    }));
    J(w, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, A) => {
          var n = Ce();
          O(() => {
            F(n, "src", de), Y(n, f);
          }), b($, n);
        }
      }
    });
  }
  var _ = V(w, 2);
  {
    var I = (c) => {
      {
        let $ = K(() => ({
          theme: o,
          title: "Wallet",
          onClick: () => i(wt.WALLET),
          isMinimized: t(d)
        }));
        J(c, {
          get options() {
            return t($);
          },
          children: (A, n) => {
            var u = Ie();
            let B;
            var L = et(u, !0);
            Q(u), O(() => {
              B = tt(u, 1, "cpnav-menu-item-balance crtw-text-[9px]", null, B, { "cpnav-menu-item-balance-white": o === it.BLACK }), Nt(L, t(s));
            }), b(A, u);
          },
          $$slots: {
            default: !0,
            icon: (A, n) => {
              var u = ze();
              O(() => {
                F(u, "src", ae), Y(u, f);
              }), b(A, u);
            }
          }
        });
      }
    };
    Z(_, (c) => {
      t(m) && c(I);
    });
  }
  var D = V(_, 2);
  {
    var T = (c) => {
      {
        let $ = K(() => ({
          theme: o,
          title: "Assets",
          onClick: () => i(wt.ASSETS),
          isMinimized: t(d)
        }));
        J(c, {
          get options() {
            return t($);
          },
          $$slots: {
            icon: (A, n) => {
              var u = Me();
              O(() => {
                F(u, "src", ce), Y(u, f);
              }), b(A, u);
            }
          }
        });
      }
    };
    Z(D, (c) => {
      a() && c(T);
    });
  }
  var M = V(D, 2);
  {
    let c = K(() => ({
      isMinimized: t(d),
      theme: o,
      title: "My Account",
      onClick: () => i(wt.PROFILE)
    }));
    J(M, {
      get options() {
        return t(c);
      },
      $$slots: {
        icon: ($, A) => {
          var n = Ae();
          O(() => {
            F(n, "src", le), Y(n, f);
          }), b($, n);
        }
      }
    });
  }
  return b(g, C), ct(z);
}
const Mt = (g = null) => ({
  width: "20px",
  ...g === 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 Vt(g, e) {
  if (new.target) return ot({ component: Vt, ...g });
  at(e, !1);
  var s;
  let m = N(e, "options", 12);
  const d = !!(!((s = $t(Lt).walletAssets) === null || s === void 0) && s.length);
  var r = {
    get options() {
      return m();
    },
    set options(a) {
      m(a), R();
    },
    $set: rt,
    $on: (a, o) => st(e, a, o)
  };
  return ft(), Ut(g, {
    get options() {
      return m();
    },
    get showAssets() {
      return d;
    }
  }), ct(r);
}
const Oe = {
  hash: "svelte-19pc2my",
  code: ".cpnav svg:focus {outline:0;}"
};
function ke(g, e) {
  if (new.target) return ot({ component: ke, ...g });
  at(e, !1), Ot(g, Oe);
  const s = () => gt(te, "$clientPublicStore", a), m = () => gt(Lt, "$configStore", a), d = () => gt(ie, "$cloakStore", a), r = () => gt(ht, "$isLoggedInStore", a), [a, o] = yt();
  var f = this && this.__awaiter || function(l, S, U, q) {
    function St(X) {
      return X instanceof U ? X : new U(function(ut) {
        ut(X);
      });
    }
    return new (U || (U = Promise))(function(X, ut) {
      function Ft(dt) {
        try {
          Ct(q.next(dt));
        } catch (It) {
          ut(It);
        }
      }
      function Qt(dt) {
        try {
          Ct(q.throw(dt));
        } catch (It) {
          ut(It);
        }
      }
      function Ct(dt) {
        dt.done ? X(dt.value) : St(dt.value).then(Ft, Qt);
      }
      Ct((q = q.apply(l, S || [])).next());
    });
  }, i, v, z;
  let C = N(e, "styles", 12), h = N(e, "navConfig", 12);
  const x = $t(Lt), { openUI: w, getCREDContract: _, getBalance: I, login: D } = $t(ee);
  let T = j("");
  const M = () => f(void 0, void 0, void 0, function* () {
    try {
      if (!(yield Xt())) return;
      const { decimals: S, contract: U, address: q } = yield _(), St = yield I(), X = Yt.formatUnits(St, S), ut = yield U.symbol();
      k(T, `(${X} ${(s() === null || s() === void 0 ? void 0 : s().ui_settings.cred_alias) || "cred"})`), Jt.track("cp_nav_balance_read", {
        chain: m().chainId,
        contract: q,
        decimals: S,
        balance: X,
        symbol: ut
      });
    } catch (l) {
      console.log(l), k(T, "");
    }
  }), c = Pt(Tt.RECHECK_BALANCE, (l) => f(void 0, void 0, void 0, function* () {
    l?.length && (yield Promise.all(l.map((S) => {
      var U;
      return (U = $t(Bt)) === null || U === void 0 ? void 0 : U.waitForTransaction(S);
    }))), yield M();
  })), $ = Pt(Tt.LOGIN, () => f(void 0, void 0, void 0, function* () {
    yield M();
  })), A = Bt.subscribe((l) => f(void 0, void 0, void 0, function* () {
    l && (yield M());
  })), n = Object.entries((s() === null || s() === void 0 ? void 0 : s().ui_settings) || {}).map(([l, S]) => l === "text_color" ? ["color", S] : [`${l.replace(/_/g, "-")}`, S]), u = Object.assign(Object.assign({}, C()), Object.fromEntries(n)), B = Object.entries(u).map(([l, S]) => `${l}:${S} !important`).join(";");
  let L = j(!1), p = ((i = h().minimization) === null || i === void 0 ? void 0 : i.enabled) || !1;
  const G = ((v = x.nav) === null || v === void 0 ? void 0 : v.direction) || bt.TOP, E = ((z = x.nav) === null || z === void 0 ? void 0 : z.theme) || it.WHITE;
  let H = j("");
  const lt = Object.entries(Mt(E)).map(([l, S]) => `${l}:${S}`).join(";"), pt = ht.subscribe((l) => {
    l || k(L, !1);
  });
  qt(() => {
    c(), $(), pt(), A();
  });
  const Gt = () => f(void 0, void 0, void 0, function* () {
    const l = ve();
    !d() && l.length === 1 ? yield D(ne.OAUTH) : w();
  });
  W(() => (t(L), Mt), () => {
    k(H, Object.entries(Object.assign(Object.assign({}, t(L) ? { transform: "scale(1, -1)" } : {}), Mt(E))).map(([l, S]) => `${l}:${S}`).join(";"));
  }), xt();
  var Zt = {
    get styles() {
      return C();
    },
    set styles(l) {
      C(l), R();
    },
    get navConfig() {
      return h();
    },
    set navConfig(l) {
      h(l), R();
    },
    $set: rt,
    $on: (l, S) => st(e, l, S)
  };
  ft();
  {
    let l = K(() => ({
      isExpanded: t(L),
      theme: E,
      isMinimized: p,
      cssVarStyles: B,
      navConfig: h(),
      navDirection: G,
      iconStyles: lt,
      onItemClicked: (q) => w(q),
      expandedNavComponent: Vt
    })), S = K(() => (r(), t(L), s(), y(Et), t(H), nt(() => ({
      onClick: () => r() ? k(L, !t(L)) : Gt(),
      title: `${s()?.name}`,
      passIcon: s()?.ui_settings.logo_url || Et,
      chevronStyles: t(H)
    })))), U = K(() => (t(T), nt(() => ({ isShown: x.buyTokens !== !1, balance: t(T) }))));
    Kt(g, {
      get options() {
        return t(l);
      },
      get navItemOptions() {
        return t(S);
      },
      get balanceOptions() {
        return t(U);
      }
    });
  }
  var Wt = ct(Zt);
  return o(), Wt;
}
export {
  ke as default
};
//# sourceMappingURL=Nav-FEo7p8ga.js.map
