import {
    G as C,
    z as O,
    R as j,
    r as h,
    C as P,
    H as N,
    aA as F,
    I as r,
    Q as w,
    J as e,
    P as n,
    aB as x,
    O as p,
    K as R,
    M as b,
    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-f9fa5dc7.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-0d51a056.js";
import {
    u as Y,
    E as Z
} from "./page-activity-Bonus-f5229d51.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 = h({}),
                g = h([]);
            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, [w(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, b(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, b(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/AR079-Pages-india-tashanwin/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, I) => {
                const s = N("svg-icon");
                return i(), r("div", _e, [w(s, {
                    name: "ruleHead"
                }), e("div", pe, n(m.name), 1), (i(!0), r(R, null, b(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/AR079-Pages-india-tashanwin/src/components/common/Rule.vue"]
    ]),
    he = {
        class: "infiniteScroll__loading"
    },
    Ie = 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: I
        }) {
            const s = m,
                o = E(() => {
                    let u = p(s.list);
                    return s.filterData ? s.filterData(u) : u
                }),
                {
                    isAutoLoad: g
                } = s,
                l = h(!1),
                c = h({
                    pageNo: 1,
                    pageSize: 10
                }),
                y = h(!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, I("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)];
                        I("update:list", V), y.value = !1
                    } else y.value = !1;
                    S.value = !1
                },
                $ = () => {
                    c.value = {
                        pageNo: 1,
                        pageSize: 10
                    }, l.value = !1, I("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 = h(!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", he, [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(Ie, [
        ["__scopeId", "data-v-61888f52"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/common/List.vue"]
    ]),
    Se = {
        class: "checkInRecord-container content"
    },
    $e = {
        class: "dailySignInRecord__container-wrapper"
    },
    ke = {
        class: "dailySignInRecord__container-wrapper__content-left"
    },
    we = {
        class: "dailySignInRecord__container-wrapper__content-right"
    },
    Re = {
        alt: ""
    },
    be = C({
        __name: "index",
        setup(m) {
            const v = j(),
                I = h({
                    pageSize: 20
                }),
                s = h({
                    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, [w(c, {
                    title: g.$t("checkInRecord"),
                    "left-arrow": "",
                    onClickLeft: o
                }, null, 8, ["title"]), w(me, {
                    distance: 300,
                    api: p(X),
                    list: s.value.list,
                    "onUpdate:list": l[0] || (l[0] = t => s.value.list = t),
                    "page-query": I.value,
                    "onUpdate:pageQuery": l[1] || (l[1] = t => I.value = t),
                    isAutoLoad: !0
                }, {
                    content: K(() => [e("div", $e, [(i(!0), r(R, null, b(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", we, [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(be, [
        ["__scopeId", "data-v-f8374830"],
        ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/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 = h({}),
                l = h([]),
                c = h([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, [w(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, b(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))])])]), w(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/AR079-Pages-india-tashanwin/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
};