import { c as J, p as K, h as M, f as x, i as u, r as m, b as v, d as N, u as O, t as b } from "./AssetItem-BxjLUzNd.js";
import { t as Q, n as j, D as z, m as I, v as L, o as R, w as i, E as a, C as c, z as d, x as n, y as w, r as T, l as W } from "./index-BBXAtvZr.js";
import { a as X } from "./App-BwT5MYkN.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 = I(), e = I();
  let f = K(h, "options", 12), { storedValueAlias: P, userAddress: S } = f();
  j(() => L(f()), () => {
    z(k, f().balance);
  }), j(() => L(f()), () => {
    z(e, f().userData);
  }), R();
  var V = {
    get options() {
      return f();
    },
    set options(t) {
      f(t), W();
    },
    $set: O,
    $on: (t, r) => N(h, t, r)
  };
  M();
  var y = ta(), C = i(y);
  {
    var q = (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(C, (t) => {
      a(e), c(() => a(e)?.name) && t(q);
    });
  }
  var D = d(C, 2);
  {
    var B = (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(B);
    });
  }
  var A = d(D, 2);
  {
    var F = (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(A, (t) => {
      a(e), c(() => a(e)?.phone || a(e)?.pending?.phone) && t(F);
    });
  }
  var E = d(A, 2);
  X(E, () => S, 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 G = d(E, 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, `${P ?? ""} available:`), m(g, a(k));
      }), v(t, r);
    };
    u(G, (t) => {
      a(k) && t(H);
    });
  }
  return n(y), v(U, y), T(V);
}
export {
  ra as U
};
//# sourceMappingURL=UserInfo-Dw1a7xfh.js.map
