/* empty css              */ import { C as A } from "./index-965d54ae.js";
import { C as t } from "./index-325f2a5d.js";
import {
  _ as s,
  j as e,
  k as a,
  a as i,
  u as l,
  o as n,
  e as c,
  f as d,
  h as r,
  t as o,
  i as m,
  G as g,
  A as v,
  B as p,
  b as u,
  c as f,
  g as w,
  v as x,
  y as B,
  p as C,
  F as E,
  r as h,
  m as I,
} from "./index-476be0bb.js";
import { u as R } from "./index-dec55e5c.js";
/* empty css                                                              */ import { u as U } from "./useCustomerService-a54309ad.js";
import { s as b } from "./index-0a638fc2.js";
import "./use-route-126c4f06.js";
import "./clipboard-c314aeef.js";
import "./index-97676c1f.js";
import "./use-placeholder-8391a3e3.js";
const Y = (A) => (v("data-v-c7c47025"), (A = A()), p(), A),
  y = { class: "bg-#5B56E8 items-center justify-between px-15 py-20" },
  S = { class: "textright" },
  D = [
    Y(() =>
      d(
        "img",
        {
          class: "w-25",
          src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE/SURBVHgBtVULkcIwFHy9OQF1QCTUwdXBHQ7OATgAFAAKGBSAg4KC4gBQACgo+2AD4TNpQmFndh5pX3aSzYaKfAiJ72VVVSlKBv6CKR/vwWWSJHPf3C+PaAdlDfbArYqRB7CD92vwX2KACROwBHNPj6H4UAJFh+BMAqG9teLOKoyEC6fgzrc7a0FXIoE5fXDkPrs/PAOuJB6akJ864VasFSi5XOP42ECvCtZaS9DTY++MNX3WNLE+oWZ6iAHCetAZf48e0qRBd4VsOgKFW864tJfGepyDA2mOsfAQrbDefyPNoR4fLiMNN803HEdbcX+5TivGP9VCzlYUfPHHXYSgzTQU4BRam2cr0BtUMXJZnSJXWXBOKe8GUzWXd8Lx9maH3zECco6lhY41Wio4gLerl4QdIQv9qkzBNkRDD7o5jkDUKeYfihrkAAAAAElFTkSuQmCC",
        },
        null,
        -1
      )
    ),
  ],
  V = { key: 0, class: "py-3 px-5 rounded-5 text-13" },
  Q = Y(() =>
    d(
      "img",
      {
        class: "w-25",
        src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD8SURBVHgB1ZThDYIwEIWvxv8yQjfQDXQE3YARHAEnUCfQDdAJiBMIE+gG4AT1XXKSBoNFTn/wki/Awb1er7REQ5PxH5xzES5LMAV8bwP5FbiDApyMMdWbMUxnuGQgB2cv6ZNeg88B569gnvuVWnADC+opLgyUMus6GIMDKQWPlL34fiQxnkZBel3Eqzbm8ivSiz0mvvHPFTRGz7aysD7B9RhTWBuwb8SCbQsay0//df//3mOuKCK9LHjUT7zjZFEs9VTr7kUgkRdx160tZryV15KbtH3IHx2B82I8UCbnQFNsdgW7TsVIkhXDTFqlXwMxLlunpjBOneIIHaaegk3iuffH6oAAAAAASUVORK5CYII=",
      },
      null,
      -1
    )
  ),
  K = { class: "flex items-center" },
  X = Y(() =>
    d(
      "img",
      {
        class: "w-70 rounded-full object-cover",
        src: "/png/name-6917774b.png",
        alt: "",
      },
      null,
      -1
    )
  ),
  T = { class: "flex flex-col text-white ml-20" },
  j = { class: "text-20 font-600" },
  k = { class: "flex items-center text-14 mt-8 text-#f3f3f3" },
  F = [
    Y(() =>
      d(
        "img",
        {
          class: "w-16",
          src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADDSURBVHgBlVLREYIwFCvl/Rc2cAQdgQ3YQEZhBN3AEdyAEXQEN6AdoK15d+Bp+w5L7uBxDSlJaKUEzPN81Fr3EhdCuLVt+9KC6ADRhMdGEtZ1/eCNq5Rwzo08jTGjJAR/wbAkWLmrbVi+0WIvy4Sde/WVKVXr0kzpOkE0YF43MjWLm+fPF9V/WGmRVCHYLhGdY4yD9/5ULGSgKIer47KKhXiZM35yrhkbtRPEPxyVT2gvKwFtmjVTxrEFiWBwJnCddADeOctlPakJJaAAAAAASUVORK5CYII=",
        },
        null,
        -1
      )
    ),
  ],
  L = s(
    {
      __name: "index",
      setup(A) {
        const t = e("");
        a({ type: 1 }).then((A) => {
          for (let s in A.data.data) t.value = parseInt(s) + 1;
        });
        const { toClipboard: s } = R(),
          { t: v } = i(),
          p = l();
        return (A, e) => (
          n(),
          c("div", y, [
            d("div", S, [
              d(
                "div",
                {
                  class: "disblocks",
                  onClick: e[0] || (e[0] = (t) => A.$router.push("/service")),
                },
                D
              ),
              d(
                "div",
                {
                  class: "disblocks",
                  onClick: e[1] || (e[1] = (t) => A.$router.push("/message")),
                },
                [
                  A.$t(r(t)) > 0
                    ? (n(), c("span", V, o(A.$t(r(t))), 1))
                    : m("", !0),
                  Q,
                ]
              ),
            ]),
            d("div", K, [
              X,
              d("div", T, [
                d("span", j, o(r(p).userInfo.username), 1),
                d("div", k, [
                  d(
                    "div",
                    null,
                    o(A.$t("推荐码")) + ": " + o(r(p).userInfo.invite_code),
                    1
                  ),
                  d(
                    "div",
                    {
                      class: "rounded-10 py-4 px-10 text-center w-auto",
                      onClick:
                        e[2] ||
                        (e[2] = (A) =>
                          (async (A) => {
                            try {
                              await s(A), g(v("链接复制成功"));
                            } catch (t) {}
                          })(r(p).userInfo.invite_code)),
                    },
                    F
                  ),
                ]),
              ]),
            ]),
          ])
        );
      },
    },
    [["__scopeId", "data-v-c7c47025"]]
  ),
  N = { class: "relative min-h-full bg-#f2f2f2 pb-20" },
  O = { class: "mt-12" },
  H = { class: "px-14" },
  G = { class: "bg-white rounded-8 p-20 mb-10" },
  W = { class: "text-14" },
  _ = ((A) => (v("data-v-4fca9848"), (A = A()), p(), A))(() =>
    d(
      "img",
      {
        class: "w-15",
        src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAANCAYAAAB2HjRBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFlSURBVHgBdVLLbcJAEGVNBJwIJUAFoYOQDhJxASwLXIFDBcYVABUYH2wf4w6ggzgdmA58tvzJe9IuWjnOSqvdnZn3ZubNil7H8n1/OhgMFrhOm6bJsVPLsm7tOKE/wjCcCyGOCJ7jmWDf8Z7gfJFEnmmalz/gKIq2OA7Y581mc2pnieOY4KthGMlqtdo/wAC+4zgiy9t6vc708nHktm3n8j0ZDoc+CDISCAbAcAXrB0pKFYg2yUGCHaoJNIJvtmBQGGS8KSDXaDRy4QwAmME3YzsE0ccqqqqyYd8aZK7r+q73B+BCCtZTbYzH42flL8uSbUyeAEz7/b7TAgdgdqG+xwy0LZfLRwJU+wp7amB+iVTTVU60cADBDwJ8VkYhdRHx/sTVE/oYYLygTK/3z5L/4EvNW7TnSPHQU6D/KIoFER20yIx79VFEB/sOBA6IWF4uNaDS56IoTmrmnWA9GxXlHYCsK+YXnOa63gAFuDMAAAAASUVORK5CYII=",
      },
      null,
      -1
    )
  ),
  J = { class: "mb-12 mt-12" },
  z = { class: "text-36 font-600" },
  M = { class: "text-14" },
  P = { class: "pt-5 text-#666" },
  Z = { class: "text-#666 text-13 flex" },
  q = { class: "w-35% text-center" },
  $ = { class: "w-65%" },
  AA = { class: "mt-5" },
  tA = { class: "mt-5" },
  sA = { class: "mt-5" },
  eA = { class: "mt-5" },
  aA = { class: "mt-5" },
  iA = { class: "bg-white rounded-8 p-20 mb-10" },
  lA = { class: "flex text-center" },
  nA = { class: "flex-1" },
  cA = { class: "mb-12 text-22 font-600 text-main" },
  dA = { class: "flex-1" },
  rA = { class: "mb-12 text-22 font-600 text-main" },
  oA = { class: "bg-white rounded-8 overflow-hidden" },
  mA = { class: "my_coin" },
  gA = { class: "flex items-center py-5" },
  vA = ["src"],
  pA = { class: "ml-10" },
  uA = s(
    {
      __name: "index",
      setup(s) {
        U();
        const e = u(),
          a = l(),
          { t: m } = i(),
          g = f(() => [
            {
              title: m("账号提现"),
              image: w("withdraw.png"),
              path: "/withdraw",
            },
            {
              title: m("收益明细"),
              image: w("revenueDetail.png"),
              path: "/revenueDetail",
            },
            {
              title: m("提现订单"),
              image: w("withdrawOrder.png"),
              path: "/withdrawOrder",
            },
            {
              title: m("修改密码"),
              image: w("setpassword.png"),
              path: "/change/password",
            },
            {
              title: m("语言设置"),
              image: w("setlang.png"),
              path: "/setlanguage",
            },
          ]),
          v = () => {
            b({
              title: m("提示"),
              message: m("确定要退出登录吗？"),
              confirmButtonText: m("确认"),
              cancelButtonText: m("取消"),
            })
              .then(() => {
                a.clearUserInfo(), e.replace("/login"), a.changeIsReLogin(1);
              })
              .catch(() => {});
          };
        return (s, i) => {
          const l = t,
            m = A;
          return (
            n(),
            c("div", N, [
              x(r(L), { class: "relative z-2" }),
              d("div", O, [
                d("div", H, [
                  d("div", G, [
                    d("div", null, [
                      d("div", W, [B(o(s.$t("账户余额")) + " ", 1), _]),
                      d("div", J, [
                        d("div", z, [
                          B(o(r(a).userInfo.money) + " ", 1),
                          d("span", M, o(s.$t("积分")), 1),
                        ]),
                      ]),
                      d("div", P, [
                        d("div", Z, [
                          d("div", q, o(s.$t("今日汇率")), 1),
                          d("div", $, [
                            d(
                              "div",
                              AA,
                              "100 " +
                                o(s.$t("积分")) +
                                " = " +
                                o(r(a).config.bdt_rate) +
                                " BDT",
                              1
                            ),
                            d(
                              "div",
                              tA,
                              "100 " +
                                o(s.$t("积分")) +
                                " = " +
                                o(r(a).config.nrly_rate) +
                                " NGN",
                              1
                            ),
                            d(
                              "div",
                              sA,
                              "100 " +
                                o(s.$t("积分")) +
                                " = " +
                                o(r(a).config.trx_rate) +
                                " TRX",
                              1
                            ),
                            d(
                              "div",
                              eA,
                              "100 " +
                                o(s.$t("积分")) +
                                " = " +
                                o(r(a).config.inr_rate) +
                                " INR",
                              1
                            ),
                            d(
                              "div",
                              aA,
                              "100 " +
                                o(s.$t("积分")) +
                                " = " +
                                o(r(a).config.brl_rate) +
                                " BRL",
                              1
                            ),
                          ]),
                        ]),
                      ]),
                    ]),
                  ]),
                  d("div", iA, [
                    d("div", lA, [
                      d("div", nA, [
                        d("div", cA, o(r(a).userInfo.today_task_income), 1),
                        d("div", null, o(s.$t("今日任务")), 1),
                      ]),
                      d("div", dA, [
                        d("div", rA, o(r(a).userInfo.today_team_income), 1),
                        d("div", null, o(s.$t("今日推广")), 1),
                      ]),
                    ]),
                  ]),
                  d("div", oA, [
                    d("div", mA, [
                      x(m, null, {
                        default: C(() => [
                          (n(!0),
                          c(
                            E,
                            null,
                            h(
                              r(g),
                              (A, t) => (
                                n(),
                                I(
                                  l,
                                  {
                                    key: t,
                                    "is-link": "",
                                    onClick: (t) => r(e).push(A.path),
                                  },
                                  {
                                    title: C(() => [
                                      d("div", gA, [
                                        d(
                                          "img",
                                          {
                                            class: "w-24",
                                            src: A.image,
                                            alt: "",
                                          },
                                          null,
                                          8,
                                          vA
                                        ),
                                        d("div", pA, o(A.title), 1),
                                      ]),
                                    ]),
                                    _: 2,
                                  },
                                  1032,
                                  ["onClick"]
                                )
                              )
                            ),
                            128
                          )),
                        ]),
                        _: 1,
                      }),
                    ]),
                  ]),
                ]),
                d(
                  "div",
                  {
                    class:
                      "mb-70 w-84% h-40 rounded-full text-16 flex justify-center items-center mt-20 mx-auto text-#666",
                    onClick: v,
                  },
                  o(s.$t("退出登录")),
                  1
                ),
              ]),
            ])
          );
        };
      },
    },
    [["__scopeId", "data-v-4fca9848"]]
  );
export { uA as default };
