import { c as J, p as K, h as M, f as x, i as u, o as m, b as v, d as N, u as O, t as b } from "./AssetItem-CFsdMEwW.js";
import { v as Q, o as j, G as z, m as E, w as G, p as R, x as i, I as a, D as c, A as d, y as n, z as w, t as T, n as W } from "./index-BxjwuJ6T.js";
import { a as X } from "./App-pmcYlKkW.js";
var Y = x('<div class="crtw-w-full crtw-break-all"><p class="crtw-font-medium">User name:</p> <p class="crtw-text-sm"> </p></div>'), Z = x('<div class="crtw-w-full crtw-break-all"><p class="crtw-font-medium">Email address:</p> <p class="crtw-text-sm"><!></p></div>'), $ = x('<div class="crtw-w-full crtw-break-all"><p class="crtw-font-medium">Phone number:</p> <p class="crtw-text-sm"><!></p></div>'), aa = x('<div class="crtw-w-full crtw-break-all"><p class="crtw-font-medium">Logged in address:</p> <p class="crtw-text-sm"> </p></div>'), ea = x('<div class="crtw-w-full crtw-break-all"><p class="crtw-font-medium"> </p> <p class="crtw-text-sm"> </p></div>'), ta = x('<div class="crtw-flex crtw-justify-center crtw-flex-col crtw-items-start crtw-gap-[22px] crtw-w-full crtw-px-2.5 crtw-py-0"><!> <!> <!> <!> <!></div>');
function ra(U, h) {
  if (new.target) return J({ component: ra, ...U });
  Q(h, !1);
  const k = E(), e = E();
  let f = K(h, "options", 12), { storedValueAlias: L, userAddress: P } = f();
  j(() => G(f()), () => {
    z(k, f().balance);
  }), j(() => G(f()), () => {
    z(e, f().userData);
  }), R();
  var S = {
    get options() {
      return f();
    },
    set options(t) {
      f(t), W();
    },
    $set: O,
    $on: (t, r) => N(h, t, r)
  };
  M();
  var y = ta(), A = i(y);
  {
    var V = (t) => {
      var r = Y(), s = d(i(r), 2), p = i(s, !0);
      n(s), n(r), w(() => m(p, (a(e), c(() => a(e).name)))), v(t, r);
    };
    u(A, (t) => {
      a(e), c(() => a(e)?.name) && t(V);
    });
  }
  var D = d(A, 2);
  {
    var q = (t) => {
      var r = Z(), s = d(i(r), 2), p = i(s);
      {
        var _ = (l) => {
          var o = b();
          w(() => m(o, (a(e), c(() => a(e).email)))), v(l, o);
        }, g = (l) => {
          var o = b();
          w(() => m(o, `${a(e), c(() => a(e).pending?.email) ?? ""} (Unconfirmed)`)), v(l, o);
        };
        u(p, (l) => {
          a(e), c(() => a(e)?.email) ? l(_) : (a(e), c(() => a(e)?.pending?.email) && l(g, 1));
        });
      }
      n(s), n(r), v(t, r);
    };
    u(D, (t) => {
      a(e), c(() => a(e)?.email || a(e)?.pending?.email) && t(q);
    });
  }
  var C = d(D, 2);
  {
    var B = (t) => {
      var r = $(), s = d(i(r), 2), p = i(s);
      {
        var _ = (l) => {
          var o = b();
          w(() => m(o, (a(e), c(() => a(e).phone)))), v(l, o);
        }, g = (l) => {
          var o = b();
          w(() => m(o, `${a(e), c(() => a(e).pending?.phone) ?? ""} (Unconfirmed)`)), v(l, o);
        };
        u(p, (l) => {
          a(e), c(() => a(e)?.phone) ? l(_) : (a(e), c(() => a(e)?.pending?.phone) && l(g, 1));
        });
      }
      n(s), n(r), v(t, r);
    };
    u(C, (t) => {
      a(e), c(() => a(e)?.phone || a(e)?.pending?.phone) && t(B);
    });
  }
  var I = d(C, 2);
  X(I, () => P, null, (t, r) => {
    var s = aa(), p = d(i(s), 2), _ = i(p, !0);
    n(p), n(s), w(() => m(_, a(r))), v(t, s);
  });
  var F = d(I, 2);
  {
    var H = (t) => {
      var r = ea(), s = i(r), p = i(s);
      n(s);
      var _ = d(s, 2), g = i(_, !0);
      n(_), n(r), w(() => {
        m(p, `${L ?? ""} available:`), m(g, a(k));
      }), v(t, r);
    };
    u(F, (t) => {
      a(k) && t(H);
    });
  }
  return n(y), v(U, y), T(S);
}
export {
  ra as U
};
//# sourceMappingURL=UserInfo-JLAtoZlr.js.map
