import {
    G as C,
    z as O,
    R as j,
    r as I,
    C as P,
    H as N,
    aA as F,
    I as r,
    Q as b,
    J as e,
    P as n,
    aB as x,
    O as p,
    K as R,
    M as w,
    ap as T,
    N as i,
    ax as B,
    ao as A,
    ar as M,
    B as E,
    at as G,
    $ as U,
    V as J,
    au as q,
    av as K
} from "./common.modules-5cfe2cf4.js";
import {
    G as H,
    A as z,
    S as W,
    k as Q,
    c as k,
    b as D,
    _ as L,
    l as X
} from "./page-activity-ActivityDetail-a58ec568.js";
import {
    u as Y,
    E as Z
} from "./page-activity-Bonus-3c16c86d.js";
const ee = {
        class: "dailySignIn__container"
    },
    ne = {
        class: "dailySignIn__container-hero"
    },
    te = {
        class: "dailySignIn__container-hero__header"
    },
    ae = {
        class: "dailySignIn__container-hero__footer"
    },
    se = {
        class: "dailySignIn__container-content"
    },
    oe = {
        class: "dailySignIn__container-content__wrapper"
    },
    ie = {
        class: "dailySignIn__container-content__wrapper-block__header"
    },
    le = {
        class: "lastImage"
    },
    re = {
        class: "dailySignIn__container-content__footer"
    },
    ce = ["disabled"],
    ue = C({
        __name: "index",
        setup(m) {
            O();
            const v = j(),
                s = H().getUserInfo,
                o = I({}),
                g = I([]);
            let l = !1;

            function c() {
                v.go(-1)
            }

            function y(a) {
                v.push({
                    name: a === "rules" ? `${String(v.currentRoute.value.name)}-Rules` : `${String(v.currentRoute.value.name)}-Record`
                })
            }
            async function t() {
                await z(W({})) && localStorage.setItem("signedFlag", "1"), $()
            }
            const $ = async () => {
                const a = await z(Q({
                    uid: s.userId,
                    sign: s.sign
                }));
                localStorage.getItem("signedFlag") === "1" && (l = !0), g.value = a.data.signInRechargesList, o.value = a.data.signIn
            };
            return P(async () => {
                localStorage.setItem("signedFlag", "0"), $()
            }), (a, f) => {
                const S = N("NavBar"),
                    u = F("lazy");
                return i(), r("div", ee, [b(S, {
                    class: "activity",
                    title: a.$t("checkIn"),
                    backgroundColor: "#f95959",
                    placeholder: !1,
                    "left-arrow": "",
                    onClickLeft: c
                }, null, 8, ["title"]), e("div", ne, [e("div", te, [e("h1", null, n(a.$t("code9007")), 1), e("p", null, n(a.$t("descRewordsBasedOnConsecutiveDays")), 1), e("div", null, [x(n(a.$t("checkedInConsecutively")), 1), e("span", null, n(o.value.signCount || 0), 1), x(n(a.$t("days")), 1)]), e("p", null, n(a.$t("comulativelyObtained")), 1), e("h1", null, n(p(k)(o.value.signInSum) || p(k)(0)), 1)]), e("div", ae, [e("button", {
                    onClick: f[0] || (f[0] = d => y("rules"))
                }, n(a.$t("playRules")), 1), e("button", {
                    onClick: f[1] || (f[1] = d => y("record"))
                }, n(a.$t("checkInRecord")), 1)])]), e("div", se, [e("div", oe, [(i(!0), r(R, null, w(g.value.slice(0, 6), (d, _) => (i(), r("div", {
                    key: _,
                    class: T(["dailySignIn__container-content__wrapper-block", {
                        signed: _ < o.value.signCount
                    }])
                }, [e("div", ie, [B(e("img", null, null, 512), [
                    [u, p(D)("activity/DailySignIn", "SignInTop")]
                ]), e("span", null, n(p(k)(d.bouns)), 1)]), B(e("img", null, null, 512), [
                    [u, p(D)("activity/DailySignIn", "coin")]
                ]), A(" {{ $t('continuous') }} "), e("span", null, n(d.day) + " " + n(a.$t("days")), 1)], 2))), 128)), (i(!0), r(R, null, w(g.value.slice(6, 7), d => (i(), r("div", {
                    class: T(["dailySignIn__container-content__wrapper-block", {
                        signed: o.value.signCount >= 7
                    }])
                }, [e("span", le, [B(e("img", null, null, 512), [
                    [u, p(D)("activity/DailySignIn", "day7Bg")]
                ])]), e("div", null, [e("span", null, n(p(k)(d.bouns)), 1), A(" {{ $t('continuous') }} "), e("span", null, n(d.day) + " " + n(a.$t("days")), 1)])], 2))), 256))]), e("div", re, [e("button", {
                    onClick: f[2] || (f[2] = d => {
                        d.stopPropagation(), t()
                    }),
                    disabled: p(l),
                    class: T({
                        greyBtn: p(l)
                    })
                }, n(a.$t("checkIn")), 11, ce)])])])
            }
        }
    });
const de = L(ue, [
        ["__scopeId", "data-v-f1e983bd"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/views/activity/DailySignIn/index.vue"]
    ]),
    Oe = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: de
    }, Symbol.toStringTag, {
        value: "Module"
    })),
    _e = {
        class: "rule ruleHead"
    },
    pe = {
        class: "head"
    },
    ge = {
        key: 0
    },
    ve = ["innerHTML"],
    ye = C({
        __name: "Rule",
        props: {
            tiplist: {
                type: Array,
                default: []
            },
            render: {
                type: String,
                default: "text"
            },
            name: {
                type: String,
                default: []
            }
        },
        setup(m) {
            return (v, h) => {
                const s = N("svg-icon");
                return i(), r("div", _e, [b(s, {
                    name: "ruleHead"
                }), e("div", pe, n(m.name), 1), (i(!0), r(R, null, w(m.tiplist, (o, g) => (i(), r("div", {
                    key: g
                }, [m.render === "text" ? (i(), r("div", ge, n(o), 1)) : (i(), r("div", {
                    key: 1,
                    innerHTML: o
                }, null, 8, ve))]))), 128)), M(v.$slots, "default", {}, void 0, !0)])
            }
        }
    });
const fe = L(ye, [
        ["__scopeId", "data-v-b64fa971"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/components/common/Rule.vue"]
    ]),
    Ie = {
        class: "infiniteScroll__loading"
    },
    he = C({
        __name: "List",
        props: {
            api: {
                type: Function,
                required: !0
            },
            distance: {
                type: Number,
                required: !1,
                default: 100
            },
            pageQuery: {
                type: null,
                required: !1,
                default: {}
            },
            list: {
                type: Array,
                required: !0
            },
            isAutoLoad: {
                type: Boolean,
                required: !1,
                default: !0
            },
            filterData: {
                type: Function,
                required: !1
            },
            showNoM: {
                type: Boolean,
                required: !1,
                default: !0
            }
        },
        emits: ["update:list", "update:pageQuery", "update:totalCount", "pageChange"],
        setup(m, {
            expose: v,
            emit: h
        }) {
            const s = m,
                o = E(() => {
                    let u = p(s.list);
                    return s.filterData ? s.filterData(u) : u
                }),
                {
                    isAutoLoad: g
                } = s,
                l = I(!1),
                c = I({
                    pageNo: 1,
                    pageSize: 10
                }),
                y = I(!1),
                t = async u => {
                    if (!c.value.pageNo || !c.value.pageSize) return;
                    y.value = !0;
                    let d = { ...c.value,
                        ...s.pageQuery,
                        ...u
                    };
                    const _ = await z(s.api(d));
                    if (_) {
                        c.value.pageNo = _.data.pageNo, h("pageChange", _.data), (_.data.totalCount === 0 || _.data.totalPage === c.value.pageNo) && (l.value = !0);
                        let V = c.value.pageNo === 1 ? _.data.list : [...s.list.concat(_.data.list)];
                        h("update:list", V), y.value = !1
                    } else y.value = !1;
                    S.value = !1
                },
                $ = () => {
                    c.value = {
                        pageNo: 1,
                        pageSize: 10
                    }, l.value = !1, h("update:list", []), J(() => {
                        t()
                    })
                },
                {
                    elementRef: a
                } = Y($),
                {
                    bottom: f
                } = G(a);
            U(f, (u, d) => {
                const {
                    innerHeight: _
                } = window;
                S.value || u <= _ + s.distance && d !== 0 && c.value.pageNo >= 1 && !y.value && !l.value && (S.value = !0, t({
                    pageNo: c.value.pageNo + 1
                }), setTimeout(() => {
                    S.value = !1
                }, 1e3))
            });
            const S = I(!1);
            return P(async () => {
                g && t()
            }), v({
                resetRefresh: $
            }), (u, d) => {
                const _ = N("van-loading");
                return i(), r("div", {
                    class: "infiniteScroll",
                    ref_key: "scrollRef",
                    ref: a
                }, [M(u.$slots, "content", {
                    list: o.value
                }, void 0, !0), M(u.$slots, "loading", {}, () => [e("div", Ie, [y.value && !l.value ? (i(), q(_, {
                    key: 0,
                    class: "z-50"
                })) : A("v-if", !0), o.value.length === 0 && l.value ? (i(), q(Z, {
                    key: 1,
                    class: "empty"
                })) : l.value && u.showNoM ? (i(), r("div", {
                    key: 2,
                    ref: "pullTextRef"
                }, n(u.$t("noMoreThere")), 513)) : A("v-if", !0)])], !0)], 512)
            }
        }
    });
const me = L(he, [
        ["__scopeId", "data-v-61888f52"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/components/common/List.vue"]
    ]),
    Se = {
        class: "checkInRecord-container content"
    },
    $e = {
        class: "dailySignInRecord__container-wrapper"
    },
    ke = {
        class: "dailySignInRecord__container-wrapper__content-left"
    },
    be = {
        class: "dailySignInRecord__container-wrapper__content-right"
    },
    Re = {
        alt: ""
    },
    we = C({
        __name: "index",
        setup(m) {
            const v = j(),
                h = I({
                    pageSize: 20
                }),
                s = I({
                    list: [],
                    pageNo: 0,
                    totalPage: 0,
                    totalCount: 0
                });

            function o() {
                v.back()
            }
            return P(async () => {}), (g, l) => {
                const c = N("NavBar"),
                    y = F("lazy");
                return i(), r("div", Se, [b(c, {
                    title: g.$t("checkInRecord"),
                    "left-arrow": "",
                    onClickLeft: o
                }, null, 8, ["title"]), b(me, {
                    distance: 300,
                    api: p(X),
                    list: s.value.list,
                    "onUpdate:list": l[0] || (l[0] = t => s.value.list = t),
                    "page-query": h.value,
                    "onUpdate:pageQuery": l[1] || (l[1] = t => h.value = t),
                    isAutoLoad: !0
                }, {
                    content: K(() => [e("div", $e, [(i(!0), r(R, null, w(s.value.list, t => (i(), r("div", {
                        class: "dailySignInRecord__container-wrapper__content",
                        key: t.markDayTime
                    }, [e("div", ke, [e("h1", null, n(g.$t("continuousCheckedIn")) + n(t.continuousDayContinue) + n(g.$t("days")), 1), e("span", null, n(t.markDayTime), 1)]), e("div", be, [B(e("img", Re, null, 512), [
                        [y, p(D)("activity/DailySignIn", "coin")]
                    ]), e("span", null, n(t.amount), 1)])]))), 128))])]),
                    _: 1
                }, 8, ["api", "list", "page-query"])])
            }
        }
    });
const Ce = L(we, [
        ["__scopeId", "data-v-f8374830"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/views/activity/DailySignIn/Record/index.vue"]
    ]),
    Fe = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: Ce
    }, Symbol.toStringTag, {
        value: "Module"
    })),
    Ne = {
        class: "dailySignInRules__container"
    },
    Le = {
        class: "dailySignInRules__container-hero"
    },
    Be = {
        class: "dailySignInRules__container-hero__wrapper"
    },
    De = {
        class: "dailySignInRules__container-hero__wrapper-titlebox"
    },
    Ae = {
        class: "dailySignInRules__container-hero__wrapper-title"
    },
    ze = {
        class: "dailySignInRules__container-hero__wrapper-title"
    },
    Pe = {
        class: "dailySignInRules__container-hero__wrapper-title"
    },
    Te = C({
        __name: "index",
        setup(m) {
            const v = j(),
                s = H().getUserInfo,
                {
                    t: o
                } = O(),
                g = I({}),
                l = I([]),
                c = I([o("desc1"), o("desc2"), o("desc3"), o("desc4"), o("desc5"), o("desc6")]);

            function y() {
                v.go(-1)
            }
            return P(async () => {
                const t = await z(Q({
                    uid: s.userId,
                    sign: s.sign
                }));
                l.value = t.data.signInRechargesList, g.value = t.data.signIn
            }), (t, $) => {
                const a = N("NavBar");
                return i(), r("div", Ne, [b(a, {
                    title: t.$t("playRules"),
                    "left-arrow": "",
                    onClickLeft: y
                }, null, 8, ["title"]), e("div", Le, [e("div", Be, [e("div", De, [e("div", Ae, n(t.$t("ruleSignIn")), 1), e("div", ze, n(t.$t("ruleAcount")), 1), e("div", Pe, n(t.$t("ruleBonus")), 1)]), e("ul", null, [(i(!0), r(R, null, w(l.value, (f, S) => (i(), r("li", {
                    key: S
                }, [e("div", null, n(f.day), 1), e("div", null, n(p(k)(f.amount)), 1), e("div", null, n(p(k)(f.bouns)), 1)]))), 128))])])]), b(fe, {
                    name: t.$t("rule"),
                    tiplist: c.value
                }, null, 8, ["name", "tiplist"])])
            }
        }
    });
const Me = L(Te, [
        ["__scopeId", "data-v-c1e312a2"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/views/activity/DailySignIn/Rules/index.vue"]
    ]),
    He = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: Me
    }, Symbol.toStringTag, {
        value: "Module"
    }));
export {
    me as L, Fe as a, He as b, Oe as i, fe as r
};