import {
    G as V,
    x as Q,
    z as P,
    C as Z,
    H as I,
    I as o,
    Q as $,
    J as n,
    P as t,
    O as e,
    aA as d,
    an as p,
    K as b,
    M as w,
    F as G,
    aB as J,
    aC as K,
    N as a,
    au as W,
    Z as S,
    ao as X
} from "./common.modules-af1f85b9.js";
import {
    cp as j,
    az as Y,
    c as i,
    _ as z,
    cq as x
} from "./page-activity-ActivityDetail-f7c58355.js";
import {
    L as nn
} from "./page-activity-DailySignIn-177ec47f.js";
const tn = h => (J("data-v-28c19aaa"), h = h(), K(), h),
    en = {
        class: "partner"
    },
    sn = {
        class: "partner-banner"
    },
    on = {
        class: "partner-main"
    },
    an = {
        class: "partner-item"
    },
    ln = {
        class: "number"
    },
    rn = {
        class: "partner-item"
    },
    dn = {
        class: "count"
    },
    un = {
        class: "partner-item"
    },
    pn = {
        class: "money"
    },
    cn = {
        class: "partner-entry"
    },
    _n = tn(() => n("svg", {
        fill: "none",
        height: "36",
        viewBox: "0 0 37 36",
        width: "37",
        xmlns: "http://www.w3.org/2000/svg"
    }, [n("path", {
        "clip-rule": "evenodd",
        d: "M11.3008 26.5V24.3644L19.0121 17.5665L11.3008 10.6356V8.5L20.1579 16.4653L21.3008 17.5665L20.1579 18.6677L11.3008 26.5Z",
        fill: "#666666",
        "fill-rule": "evenodd"
    }), n("path", {
        "clip-rule": "evenodd",
        d: "M17.5 26.5V24.3644L25.2113 17.5665L17.5 10.6356V8.5L26.3571 16.4653L27.5 17.5665L26.3571 18.6677L17.5 26.5Z",
        fill: "#666666",
        "fill-rule": "evenodd"
    })], -1)),
    vn = {
        class: "partner-title"
    },
    hn = {
        class: "partner-code"
    },
    mn = {
        class: "partner-rule"
    },
    yn = {
        class: "partner-rule-title"
    },
    $n = ["innerHTML"],
    gn = {
        key: 1,
        class: "tip"
    },
    fn = {
        class: "partner-rule-table"
    },
    kn = {
        class: "head"
    },
    An = {
        class: "bouns"
    },
    Ln = {
        key: 0,
        class: "item"
    },
    bn = {
        class: "left"
    },
    wn = {
        class: "right"
    },
    Cn = {
        key: 0
    },
    Tn = {
        key: 1
    },
    In = {
        key: 2
    },
    Nn = {
        key: 1,
        class: "item"
    },
    Bn = {
        class: "left"
    },
    Mn = {
        class: "right"
    },
    Rn = {
        key: 0
    },
    Sn = {
        key: 1
    },
    Vn = {
        key: 2
    },
    Pn = {
        key: 2,
        class: "item"
    },
    jn = {
        class: "left"
    },
    zn = {
        class: "right"
    },
    On = {
        key: 0
    },
    Hn = {
        key: 1
    },
    qn = {
        key: 2
    },
    Un = {
        class: "redTip"
    },
    Dn = {
        class: "partner-rule-text"
    },
    En = ["innerHTML"],
    Fn = V({
        __name: "index",
        setup(h) {
            const {
                getInfo: m,
                goInvitation: c,
                amount: C,
                totalAmount: y,
                invitationCode: _,
                invitationLink: v,
                effectiveQuantity: T,
                numberOfInvitations: r,
                days: N,
                firstItem: g,
                secondItem: f,
                thirdItem: k,
                getUrl: O,
                allItem: A
            } = j(), {
                copy: H
            } = Q({
                legacy: !0
            }), {
                t: q,
                locale: U
            } = P();

            function D() {
                Y.go(-1)
            }
            const E = async s => {
                await H(s), G(q("copySuccess"))
            };
            return Z(() => {
                m(), O()
            }), (s, L) => {
                var M, R;
                const F = I("NavBar"),
                    B = I("svg-icon");
                return a(), o("div", en, [$(F, {
                    title: s.$t("TeamPartner"),
                    "left-arrow": "",
                    onClickLeft: D
                }, null, 8, ["title"]), n("div", sn, [n("h2", null, t(s.$t("invitationFrind")), 1), n("p", null, t(e(i)(e(C))), 1)]), n("div", on, [n("div", an, [n("span", null, t(s.$t("invitationCount")), 1), n("span", ln, t(e(r)), 1)]), n("div", rn, [n("span", null, t(s.$t("invitationEffective")), 1), n("span", dn, t(e(T)), 1)]), n("div", un, [n("span", null, t(s.$t("invitationTotalBonus")), 1), n("span", pn, t(e(i)(e(y))), 1)]), n("div", cn, [n("div", {
                    onClick: L[0] || (L[0] = (...l) => e(c) && e(c)(...l))
                }, [d(t(s.$t("inviteRecord")) + " ", 1), _n])]), n("div", vn, t(s.$t("invitationLink")), 1), n("div", hn, [n("span", null, t(e(v)), 1), n("span", {
                    onClick: L[1] || (L[1] = l => E(e(v)))
                }, [$(B, {
                    name: "copy"
                })])]), p(` <div class="partner-title">
			  {{$t('invitationCode')}}
		  </div>
		  <div class="partner-code">
			  <span>{{invitationCode}}</span>
			  <span @click="onCopy(invitationCode)">
				<svg-icon name="copy" />
			  </span>
		  </div> `), n("div", mn, [n("div", yn, [$(B, {
                    name: "shuoming",
                    class: "img"
                }), n("span", null, t(s.$t("invitationRules")), 1)]), e(U) == "zh" ? (a(), o("div", {
                    key: 0,
                    class: "tip",
                    innerHTML: s.$t("partnerTip", [e(N)])
                }, null, 8, $n)) : (a(), o("div", gn, [d(t(s.$t("partnerTip")) + " ", 1), n("span", null, t(e(N)), 1), d(" " + t(s.$t("days")), 1)])), n("div", fn, [n("div", kn, [n("div", null, t(s.$t("partner1")), 1), n("div", An, t(s.$t("partner2")), 1)]), e(g).length ? (a(), o("div", Ln, [n("div", bn, t(s.$t("deposit1")), 1), n("div", wn, [(a(!0), o(b, null, w(e(g), (l, u) => (a(), o("div", {
                    key: u,
                    class: "line"
                }, [n("div", null, [u + 1 < e(g).length ? (a(), o("span", Cn, [n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1), d(" ≤ " + t(s.$t("paymentAmount")) + "<", 1), n("span", null, t(e(i)(e(g)[u + 1].rechargeAmount, "", 0)), 1)])) : (a(), o("span", Tn, [d(t(s.$t("paymentAmount")) + " ≥ ", 1), n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1)])), Number(l.betAmount) >= 0 ? (a(), o("span", In, [d(t(s.$t("partner3")) + " ≥ ", 1), n("span", null, t(e(i)(l.betAmount, "", 0)), 1)])) : p("v-if", !0)]), n("div", null, t(e(i)(l.rewardAmount, "", 0)), 1)]))), 128))])])) : p("v-if", !0), e(f).length ? (a(), o("div", Nn, [n("div", Bn, t(s.$t("deposit2")), 1), n("div", Mn, [(a(!0), o(b, null, w(e(f), (l, u) => (a(), o("div", {
                    key: u,
                    class: "line"
                }, [n("div", null, [u + 1 < e(f).length ? (a(), o("span", Rn, [n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1), d(" ≤ " + t(s.$t("paymentAmount")) + "<", 1), n("span", null, t(e(i)(e(f)[u + 1].rechargeAmount, "", 0)), 1)])) : (a(), o("span", Sn, [d(t(s.$t("paymentAmount")) + " ≥ ", 1), n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1)])), Number(l.betAmount) >= 0 ? (a(), o("span", Vn, [d(t(s.$t("partner3")) + " ≥ ", 1), n("span", null, t(e(i)(l.betAmount, "", 0)), 1)])) : p("v-if", !0)]), n("div", null, t(e(i)(l.rewardAmount, "", 0)), 1)]))), 128))])])) : p("v-if", !0), e(k).length ? (a(), o("div", Pn, [n("div", jn, t(s.$t("deposit3")), 1), n("div", zn, [(a(!0), o(b, null, w(e(k), (l, u) => (a(), o("div", {
                    key: u,
                    class: "line"
                }, [n("div", null, [u + 1 < e(k).length ? (a(), o("span", On, [n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1), d(" ≤ " + t(s.$t("paymentAmount")) + "<", 1), n("span", null, t(e(i)(e(k)[u + 1].rechargeAmount, "", 0)), 1)])) : (a(), o("span", Hn, [d(t(s.$t("paymentAmount")) + " ≥ ", 1), n("span", null, t(e(i)(l.rechargeAmount, "", 0)), 1)])), Number(l.betAmount) >= 0 ? (a(), o("span", qn, [d(t(s.$t("partner3")) + " ≥ ", 1), n("span", null, t(e(i)(l.betAmount, "", 0)), 1)])) : p("v-if", !0)]), n("div", null, t(e(i)(l.rewardAmount, "", 0)), 1)]))), 128))])])) : p("v-if", !0)]), n("div", Un, t(s.$t("partnerTip1")), 1), n("div", Dn, [n("p", {
                    innerHTML: s.$t("partnerRule", [e(i)(e(A) ? ((M = e(A)[0]) == null ? void 0 : M.rechargeAmount) - 1 : 0), e(i)(e(A) ? (R = e(A)[0]) == null ? void 0 : R.betAmount : 0)])
                }, null, 8, En), n("p", null, t(s.$t("partnerRule2")), 1), n("p", null, t(s.$t("partnerRule3")), 1)])])])])
            }
        }
    });
const Qn = z(Fn, [
        ["__scopeId", "data-v-28c19aaa"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/views/promotion/TeamPartner/index.vue"]
    ]),
    ut = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: Qn
    }, Symbol.toStringTag, {
        value: "Module"
    })),
    Zn = {
        class: "invitation"
    },
    Gn = {
        class: "invitation-item"
    },
    Jn = {
        class: "name"
    },
    Kn = {
        class: "uid"
    },
    Wn = {
        key: 0
    },
    Xn = {
        class: "money"
    },
    Yn = {
        key: 1
    },
    xn = {
        class: "money"
    },
    nt = {
        key: 2
    },
    tt = {
        class: "money"
    },
    et = {
        key: 3
    },
    st = {
        class: "money turnover"
    },
    ot = {
        key: 4
    },
    at = V({
        __name: "index",
        setup(h) {
            const {
                query: m,
                partnerList: c,
                goBack: C
            } = j(), {
                t: y
            } = P();
            return (_, v) => {
                const T = I("NavBar");
                return a(), o("div", Zn, [$(T, {
                    title: _.$t("inviteRecord"),
                    "left-arrow": "",
                    onClickLeft: e(C)
                }, null, 8, ["title", "onClickLeft"]), $(nn, {
                    distance: 60,
                    api: e(x),
                    list: e(c),
                    "onUpdate:list": v[0] || (v[0] = r => S(c) ? c.value = r : null),
                    "page-query": e(m),
                    "onUpdate:pageQuery": v[1] || (v[1] = r => S(m) ? m.value = r : null),
                    isAutoLoad: !0
                }, {
                    content: W(() => [n("ul", null, [(a(!0), o(b, null, w(e(c), r => (a(), o("li", Gn, [n("p", null, [n("span", Jn, t(r.nickName), 1), d(), n("span", Kn, "UID:" + t(r.userId), 1)]), n("p", null, [n("span", null, t(_.$t("registerTime")), 1), d(), n("span", null, t(r.registerTime), 1)]), r.firstAmount > -1 ? (a(), o("p", Wn, [n("span", null, t(_.$t("deposit1a")), 1), d(), n("span", Xn, t(e(i)(r.firstAmount)), 1)])) : p("v-if", !0), r.secondAmount > -1 ? (a(), o("p", Yn, [n("span", null, t(_.$t("deposit2a")), 1), d(), n("span", xn, t(e(i)(r.secondAmount)), 1)])) : p("v-if", !0), r.thirdAmount > -1 ? (a(), o("p", nt, [n("span", null, t(_.$t("deposit3a")), 1), d(), n("span", tt, t(e(i)(r.thirdAmount)), 1)])) : p("v-if", !0), r.status < 2 ? (a(), o("p", et, [n("span", null, t(_.$t("turnover")), 1), n("span", st, t(e(i)(r.turnover)), 1)])) : (a(), o("p", ot, [n("span", null, t(e(y)("statusMay")), 1), d(), n("span", {
                        class: X(["status", {
                            isRecharge: r.status == 2
                        }])
                    }, t(r.status == 3 ? e(y)("rewardExpired") : e(y)("bounsReceived")), 3)]))]))), 256))])]),
                    _: 1
                }, 8, ["api", "list", "page-query"])])
            }
        }
    });
const it = z(at, [
        ["__scopeId", "data-v-09881eb5"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/views/promotion/TeamPartner/Invitation/index.vue"]
    ]),
    pt = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: it
    }, Symbol.toStringTag, {
        value: "Module"
    }));
export {
    pt as a, ut as i
};