import {
    G as le,
    r as m,
    H as R,
    N as u,
    I as d,
    J as e,
    P as a,
    Q as f,
    an as g,
    O as i,
    K as ne,
    z as ge,
    R as ye,
    A as Me,
    B,
    $ as ke,
    au as z,
    ao as G,
    at as pe,
    M as $e,
    a_ as q,
    aA as Q,
    a0 as Be,
    bx as ce,
    u as Ve,
    F as je,
    aB as Ce,
    aC as be,
    w as fe,
    C as qe,
    X as He,
    q as Le,
    bE as me
} from "./common.modules-af1f85b9.js";
import {
    d as Ye,
    _ as oe,
    ak as ze,
    a1 as Ee,
    bv as ue,
    dk as Fe,
    dj as Ge,
    bu as Je,
    c as J,
    L as W,
    A as de,
    dp as Ke,
    b as N,
    az as Qe,
    y as We,
    cS as xe,
    dq as Xe,
    g as Ze
} from "./page-activity-ActivityDetail-09e806d3.js";
import {
    L as et
} from "./page-activity-DailySignIn-a76bf4fc.js";
import {
    N as tt
} from "./page-home-AllGames-24a73826.js";
import {
    u as at,
    C as st
} from "./page-wallet-OtherPay-5025ec5b.js";
import {
    C as nt
} from "./page-wallet-Recharge-0480ec31.js";
const lt = {
        class: "ar-searchbar__selector"
    },
    ot = {
        key: 0,
        class: "noSelect"
    },
    rt = {
        key: 1,
        class: "ar-searchbar__selector-default"
    },
    it = le({
        __name: "Calendar",
        emits: ["confirm"],
        setup(I, {
            expose: _,
            emit: p
        }) {
            const {
                minDate: s,
                maxDate: h
            } = Ye(), k = m(""), y = m(""), w = m(!1), U = C => `${C.getFullYear()}-${C.getMonth()+1}-${C.getDate()}`, v = async C => {
                w.value = !1;
                const [D, b] = C;
                k.value = U(D), y.value = U(b), p("confirm")
            };

            function $() {
                w.value = !0
            }
            return _({
                startDateValue: k,
                endDateValue: y
            }), (C, D) => {
                const b = R("van-icon"),
                    A = R("van-calendar");
                return u(), d(ne, null, [e("div", lt, [e("div", {
                    onClick: $
                }, [k.value === "" || y.value === "" ? (u(), d("span", ot, a(C.$t("datePick")), 1)) : (u(), d("span", rt, a(k.value) + "/" + a(y.value), 1)), f(b, {
                    name: "arrow-down"
                })])]), g(`<ArSelect @click-select="onClickSelectT" :selectName="$t('datePick')|| (startDateValue / endDateValue )"></ArSelect>`), g(' <van-popup v-model:show="showDataPick" round position="bottom"> '), f(A, {
                    show: w.value,
                    "onUpdate:show": D[0] || (D[0] = P => w.value = P),
                    type: "range",
                    onConfirm: v,
                    "min-date": i(s),
                    "max-date": i(h),
                    teleport: "body"
                }, null, 8, ["show", "min-date", "max-date"]), g(" </van-popup> ")], 64)
            }
        }
    }),
    ct = oe(it, [
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/common/Calendar.vue"]
    ]),
    ut = I => (Ce("data-v-f851bd18"), I = I(), be(), I),
    dt = {
        class: "rechargeh__container"
    },
    pt = {
        class: "rechargeh__header_box"
    },
    vt = ["src"],
    _t = {
        key: 0,
        class: "state_box"
    },
    ht = {
        class: "query_select"
    },
    ft = {
        class: "ar-searchbar__selector"
    },
    mt = {
        class: "ar-searchbar__selector-default"
    },
    gt = {
        class: "rechargeh__container-content"
    },
    yt = ["onClick"],
    kt = {
        class: "rechargeh__container-content__item-header"
    },
    $t = {
        class: "recharge_tit"
    },
    Ct = {
        key: 0,
        class: "rechargeh__container-content__item-body"
    },
    bt = {
        class: "price"
    },
    wt = ut(() => e("span", null, "UTR", -1)),
    Dt = {
        class: "order"
    },
    Tt = {
        key: 1,
        class: "rechargeh__container-content__item-body"
    },
    It = {
        class: "price"
    },
    St = {
        key: 0
    },
    Nt = {
        style: {
            color: "red"
        }
    },
    Rt = {
        class: "order"
    },
    At = ["onClick"],
    Ut = ["onClick"],
    Pt = ["onClick"],
    Ot = ["onClick"],
    Mt = {
        class: "rechargeh__header"
    },
    Bt = {
        class: "rechargeh__container-content__item-body"
    },
    Vt = {
        class: "price"
    },
    jt = {
        class: "order"
    },
    qt = le({
        __name: "index",
        setup(I) {
            const {
                t: _
            } = ge(), {
                store: p,
                getRechargeTypeName: s,
                currentPayId: h,
                historyToDetail: k,
                goToOrderAppeal: y,
                gotoBanklist: w
            } = at(), {
                handleOpen: U
            } = ze({
                type: 3
            });
            p.currentPayId = 0, s(!0);
            const v = ye();

            function $() {
                v.currentRoute.value.query.type ? v.replace({
                    name: "Recharge"
                }) : v.back()
            }
            const {
                goToTictek: C,
                isCenterServer: D
            } = Ee({
                ServerType: 2
            }), b = m(!1), A = m(_("all")), P = m(!1), H = m(!1), l = m(1), o = m(), c = Me({
                startDate: "",
                endDate: "",
                state: -1,
                payId: -1,
                payTypeId: -1
            }), T = m(!1), V = m({}), O = m(), L = m(!1), x = B(() => {
                if (!M.value) return ue.RechargeState;
                let t = [{
                        key: _("all"),
                        value: -1
                    }],
                    r = ue.RechargeC2CState;
                return l.value === 1 ? t.concat(r.slice(0, 4)) : t.concat(r.slice(4, 7))
            }), M = B(() => {
                var t;
                return ((t = p.rechargeType[p.currentMenu]) == null ? void 0 : t.payID) === 20 || !1
            }), X = t => {
                if (![26e3, 26001].includes(t.payTypeId)) return !1;
                if ((t.groupID & 1) === 1 || (t.groupID & 2) === 2 || (t.groupID & 4) === 4) return !0
            }, Z = t => {
                if ((t.groupID & 1) === 1) return _("arupiBank");
                if ((t.groupID & 2) === 2) return _("arupiKycTip");
                if ((t.groupID & 4) === 4) return _("arupiKyc")
            }, ee = t => [26e3, 26001].includes(t.payTypeId) ? (t.groupID & 2048) === 2048 || (t.groupID & 8192) === 8192 : !1, te = t => [26e3, 26001].includes(t.payTypeId) ? (t.groupID & 32) === 32 || (t.groupID & 64) === 64 || (t.groupID & 4096) === 4096 && (t.groupID & 16384) !== 16384 : !1, K = t => {
                t !== l.value && (A.value = _("all"), c.state = -1, l.value = t, c.type = t, E.value.resetRefresh())
            }, ae = async ({
                selectedOptions: t
            }) => {
                b.value = !1, A.value = t[0].key, c.state = t[0].value, E.value.resetRefresh()
            };

            function se() {
                b.value = !0, P.value = !0
            }
            async function Y() {
                let t = o.value.endDateValue !== "" ? `${o.value.endDateValue} 23:59:59` : "";
                c.startDate = fe(o.value.startDateValue).format("YYYY-MM-DD HH:mm:ss"), c.endDate = fe(t).format("YYYY-MM-DD HH:mm:ss"), E.value.resetRefresh()
            }
            const S = m([]),
                E = m(),
                ve = B(() => p.currentMenu === 0 || !M.value ? (c.category && delete c.category, c) : { ...c
                }),
                we = t => {},
                De = async t => {
                    k(t.payID || t.category, t.type, t.price, t.state, t.id)
                },
                Te = B(() => M.value ? Ge : Fe),
                Ie = t => {
                    let r = "";
                    switch (t.state) {
                        case 0:
                            r = "recharge";
                            break;
                        case 1:
                            h.value !== 20 ? r = "success" : r = "check";
                            break;
                        case 2:
                            h.value !== 20 ? r = "fail" : r = "timeout";
                            break;
                        case 3:
                            r = "representation";
                            break;
                        case 4:
                            r = "success";
                            break;
                        case 5:
                            r = "fail";
                            break;
                        case 6:
                            r = "cancel";
                            break;
                        case 7:
                            r = "timeout";
                            break;
                        default:
                            r = "#FFB800";
                            break
                    }
                    return r
                },
                Se = t => {
                    if ((t.groupID & 2048) === 2048 && (t.groupID & 1024) === 1024) return Be({
                        title: _("tips"),
                        message: () => ce("p", [ce("span", _("submitUtrtip") + " "), ce("span", {
                            style: {
                                color: "red"
                            },
                            onClick: U
                        }, _("pServer"))]),
                        theme: "round-button"
                    });
                    V.value = t, T.value = !0
                },
                Ne = async () => {
                    if (!O.value || `${O.value}`.length < 12) return Ve("UTR format is incorrect!");
                    if (!L.value) try {
                        L.value = !0, await de(Ke({
                            orderNumber: V.value.rechargeNumber,
                            utr: O.value
                        })) && (je(_("submitSuccess")), T.value = !1, O.value = "", E.value.resetRefresh())
                    } catch {} finally {
                        L.value = !1
                    }
                };
            return ke(() => p.currentMenu, async () => {
                p.currentMenu === 0 && (p.currentPayId = 0), A.value = _("all"), c.state = -1, H.value = !1, M.value ? (c.type = 1, c.category = -1, delete c.payTypeId, delete c.payId) : (delete c.type, c.payId = p.rechargeType[p.currentMenu].payID, c.payTypeId = p.rechargeType[p.currentMenu].payTypeID), await E.value.resetRefresh()
            }), (t, r) => {
                const Re = R("NavBar"),
                    ie = R("svg-icon"),
                    Ae = R("van-icon"),
                    Ue = R("van-picker"),
                    _e = R("van-popup"),
                    Pe = R("van-divider"),
                    he = R("van-button"),
                    Oe = R("van-field");
                return u(), d("div", dt, [f(Re, {
                    class: "white",
                    title: t.$t("rechargeRecords"),
                    "left-arrow": "",
                    onClickLeft: $
                }, null, 8, ["title"]), e("div", pt, [f(tt, {
                    list: i(p).rechargeType,
                    "is-auto-load": !0,
                    active: i(p).currentMenu,
                    "onUpdate:active": r[0] || (r[0] = n => i(p).currentMenu = n),
                    tabClassName: "tabs",
                    activeClassName: "tab_active",
                    ref: "tabRefs",
                    tabItemClassName: "funtab_item"
                }, {
                    default: z(({
                        item: n,
                        index: F
                    }) => [e("div", {
                        class: G(["tab_item", {
                            tab_active: F === i(p).currentMenu
                        }])
                    }, [n.payID == -1 ? (u(), pe(ie, {
                        key: 0,
                        name: "all"
                    })) : (u(), d("img", {
                        key: 1,
                        src: i(p).currentMenu === F ? n.payNameUrl2 : n.payNameUrl,
                        alt: ""
                    }, null, 8, vt)), e("span", null, a(n.typeName), 1)], 2)]),
                    _: 1
                }, 8, ["list", "active"]), M.value ? (u(), d("div", _t, [e("div", {
                    class: G(["state_item", {
                        state_item_active: l.value === 1
                    }]),
                    onClick: r[1] || (r[1] = n => K(1))
                }, a(t.$t("inTransaction")), 3), e("div", {
                    class: G(["state_item", {
                        state_item_active: l.value === 2
                    }]),
                    onClick: r[2] || (r[2] = n => K(2))
                }, a(t.$t("completed")), 3)])) : g("v-if", !0), e("div", ht, [e("div", ft, [e("div", {
                    onClick: se,
                    class: G({
                        selectorA: !P.value
                    })
                }, [e("span", mt, a(A.value), 1), f(Ae, {
                    name: "arrow-down"
                })], 2)]), g("日期选择组件"), f(ct, {
                    ref_key: "calendar",
                    ref: o,
                    onConfirm: Y
                }, null, 512)])]), f(_e, {
                    show: b.value,
                    "onUpdate:show": r[4] || (r[4] = n => b.value = n),
                    round: "",
                    position: "bottom"
                }, {
                    default: z(() => [f(Ue, {
                        "columns-field-names": {
                            text: "key",
                            value: "value",
                            children: "children"
                        },
                        columns: x.value,
                        onCancel: r[3] || (r[3] = n => b.value = !1),
                        onConfirm: ae
                    }, null, 8, ["columns"])]),
                    _: 1
                }, 8, ["show"]), f(et, {
                    list: S.value,
                    "onUpdate:list": r[6] || (r[6] = n => S.value = n),
                    "page-query": ve.value,
                    "onUpdate:pageQuery": r[7] || (r[7] = n => ve.value = n),
                    api: Te.value,
                    distance: 100,
                    ref_key: "listRef",
                    ref: E,
                    onPageChange: we,
                    isAutoLoad: !0
                }, {
                    content: z(() => [e("div", gt, [(u(!0), d(ne, null, $e(S.value, (n, F) => (u(), d("div", {
                        class: "rechargeh__container-content__item",
                        key: F,
                        onClick: q(j => De(n), ["stop"])
                    }, [e("div", kt, [e("span", $t, a(t.$t("recharge")), 1), e("div", {
                        class: G(["recharge_right", Ie(n)])
                    }, a(i(Je)(i(ue).RechargeState, n.state)), 3)]), f(Pe, {
                        class: "divier"
                    }), M.value ? (u(), d("div", Ct, [e("div", null, [e("span", null, a(t.$t("amount")), 1), e("span", bt, a(i(J)(n.orderAmount)), 1)]), e("div", null, [wt, e("span", null, a(n.transactionNo || "-"), 1)]), e("div", null, [e("span", null, a(t.$t("time")), 1), e("span", null, a(n.createTime), 1)]), e("div", null, [e("span", null, a(t.$t("orderNo")), 1), e("div", Dt, [e("span", null, a(n.orderNo), 1), f(ie, {
                        name: "copy",
                        onClick: q(j => i(W)(n.orderNo), ["stop"])
                    }, null, 8, ["onClick"])])])])) : (u(), d("div", Tt, [e("div", null, [e("span", null, a(t.$t("amount")), 1), e("span", It, a(i(J)(n.price)), 1)]), e("div", null, [e("span", null, a(t.$t("type")), 1), e("span", null, a(n == null ? void 0 : n.payName), 1)]), e("div", null, [e("span", null, a(t.$t("time")), 1), e("span", null, a(n.addTime), 1)]), [0, 2].includes(n.state) && [26e3, 26001].includes(n.payTypeId) && (n.groupID & 16384) === 16384 ? (u(), d("div", St, [e("span", null, a(t.$t("remarksContent")), 1), e("span", Nt, a(t.$t("arupiRemark")), 1)])) : g("v-if", !0), e("div", null, [e("span", null, a(t.$t("orderNo")), 1), e("div", Rt, [e("span", null, a(n.rechargeNumber), 1), f(ie, {
                        name: "copy",
                        onClick: q(j => i(W)(n.rechargeNumber), ["stop"])
                    }, null, 8, ["onClick"])])])])), g(` GroupID :
                    未申诉 = 32,
                    申诉中 = 64,
                    申诉失败 = 128,
                    申诉成功 = 256
                    提交utr = 512,
                    补单成功 = 1024,
                    超时取消= 2048,
                    可以申诉：4096
                    补提UTR = 8192,
                    联系客服 = 16384,
                     `), [0, 2].includes(n.state) ? (u(), d(ne, {
                        key: 2
                    }, [ee(n) ? (u(), d("div", {
                        key: 0,
                        class: "report",
                        style: {
                            "margin-bottom": "10px"
                        },
                        onClick: q(j => Se(n), ["stop"])
                    }, a(t.$t("submitUtr")), 9, At)) : g("v-if", !0), (n.groupID & 16384) === 16384 || [21].includes(n.payID) ? (u(), d("div", {
                        key: 1,
                        class: "report report-b",
                        onClick: r[5] || (r[5] = q((...j) => i(U) && i(U)(...j), ["stop"]))
                    }, a(t.$t("contactServicer")), 1)) : g("v-if", !0), X(n) ? (u(), d("div", {
                        key: 2,
                        class: "report report-b",
                        onClick: q(j => i(w)(n), ["stop"])
                    }, a(Z(n)), 9, Ut)) : g("v-if", !0), te(n) ? (u(), d("div", {
                        key: 3,
                        class: "report",
                        onClick: q(j => i(y)(n), ["stop"])
                    }, a([32, 544, 4096].includes(n.groupID) ? t.$t("appeal") : t.$t("compDetails")), 9, Pt)) : ![26e3, 26001].includes(n.payTypeId) && i(D) ? (u(), d("div", {
                        key: 4,
                        class: "report",
                        onClick: q(j => i(C)(n, M.value), ["stop"])
                    }, a(t.$t("report")), 9, Ot)) : g("v-if", !0)], 64)) : g("v-if", !0)], 8, yt))), 128))])]),
                    _: 1
                }, 8, ["list", "page-query", "api"]), f(_e, {
                    show: T.value,
                    "onUpdate:show": r[10] || (r[10] = n => T.value = n),
                    position: "bottom",
                    style: {
                        height: "30%"
                    }
                }, {
                    default: z(() => {
                        var n;
                        return [e("div", Mt, [f(he, {
                            round: "",
                            size: "small",
                            onClick: r[8] || (r[8] = () => {
                                T.value = !1, O.value = ""
                            })
                        }, {
                            default: z(() => [Q(a(t.$t("cancel")), 1)]),
                            _: 1
                        }), e("span", null, a(t.$t("submitUtr")), 1), f(he, {
                            round: "",
                            size: "small",
                            loading: L.value,
                            "loading-text": t.$t("submit"),
                            type: "primary",
                            onClick: Ne
                        }, {
                            default: z(() => [Q(a(t.$t("submit")), 1)]),
                            _: 1
                        }, 8, ["loading", "loading-text"])]), e("div", Bt, [e("div", null, [e("span", null, a(t.$t("utr")), 1), f(Oe, {
                            modelValue: O.value,
                            "onUpdate:modelValue": r[9] || (r[9] = F => O.value = F),
                            placeholder: "Input 12 digits here",
                            clearable: !0,
                            maxlength: 12,
                            type: "digit",
                            autocomplete: "off"
                        }, null, 8, ["modelValue"])]), e("div", null, [e("span", null, a(t.$t("amount")), 1), e("span", Vt, a(i(J)(V.value.price)), 1)]), e("div", null, [e("span", null, a(t.$t("type")), 1), e("span", null, a((n = V.value) == null ? void 0 : n.payName), 1)]), e("div", null, [e("span", null, a(t.$t("time")), 1), e("span", null, a(V.value.addTime), 1)]), e("div", null, [e("span", null, a(t.$t("orderNo")), 1), e("div", jt, [e("span", null, a(V.value.rechargeNumber), 1)])])])]
                    }),
                    _: 1
                }, 8, ["show"])])
            }
        }
    });
const Ht = oe(qt, [
        ["__scopeId", "data-v-f851bd18"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/views/wallet/RechargeHistory/index.vue"]
    ]),
    ts = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: Ht
    }, Symbol.toStringTag, {
        value: "Module"
    })),
    Lt = {
        key: 0
    },
    Yt = {
        class: "info"
    },
    zt = {
        class: "state_txt"
    },
    Et = {
        class: "tip"
    },
    Ft = ["src"],
    Gt = {
        class: "btn_group"
    },
    Jt = ["src"],
    Kt = ["src"],
    Qt = le({
        __name: "RechargeDetailHeader",
        props: {
            state: {
                type: Number,
                required: !0
            },
            info: {
                type: null,
                required: !0
            }
        },
        emits: ["onClickRight", "appeal", "appealAdmin"],
        setup(I, {
            emit: _
        }) {
            const p = I,
                {
                    t: s
                } = ge(),
                h = B(() => y.value.find(v => v.state === p.state)),
                k = B(() => {
                    var v;
                    return (v = y.value.find($ => $.state === p.state)) == null ? void 0 : v.state
                }),
                y = m([{
                    state: 1,
                    text: s("rechargeState0"),
                    tip: s("rdhTip1"),
                    tip2: s("tipPlaWaitPaciently"),
                    icon: N("wallet/recharge", "wait"),
                    className: "wait"
                }, {
                    state: 4,
                    text: s("completed"),
                    tip: s("c2cTip7"),
                    tip2: s("c2cTip8"),
                    icon: N("wallet/recharge", "success"),
                    className: "success"
                }, {
                    state: 5,
                    text: s("rechargeState4"),
                    tip: s("rdhTip2"),
                    tip2: s("rdhTip3"),
                    icon: N("wallet/recharge", "fail"),
                    className: "fail"
                }, {
                    state: 7,
                    text: s("rechargeState1"),
                    tip: s("rdhTip4"),
                    tip2: s("rdhTip5"),
                    icon: N("wallet/recharge", "timeout"),
                    className: "timeout"
                }, {
                    state: 6,
                    text: s("cancelled"),
                    tip: "",
                    icon: N("wallet/recharge", "cancel"),
                    className: "cancel"
                }, {
                    state: 3,
                    text: s("c2cState3"),
                    tip: s("c2cTip5"),
                    tip2: s("c2cTip6"),
                    icon: N("wallet/recharge", "appeal"),
                    className: "appeal"
                }, {
                    state: 8,
                    text: s("c2cState14"),
                    tip: s("amountError1"),
                    tip2: s("c2cTip33"),
                    icon: N("wallet/recharge", "amount_error"),
                    className: "appeal"
                }]),
                w = () => {
                    _("onClickRight")
                },
                U = () => {
                    Qe.go(-1)
                };
            return ke(() => p.info, v => {
                p.state === 6 && (y.value[4].tip = v == null ? void 0 : v.cancelReason)
            }, {
                immediate: !0
            }), (v, $) => {
                var D, b, A, P, H, l, o, c, T;
                const C = R("NavBar");
                return u(), d("div", {
                    class: G(["upi_detail_header", (D = h.value) == null ? void 0 : D.className])
                }, [f(C, {
                    title: "",
                    "left-arrow": "",
                    onClickLeft: U,
                    onClickRight: w
                }, {
                    right: z(() => [y.value === 3 ? (u(), d("div", Lt, a(v.$t("concelOrder")), 1)) : g("v-if", !0)]),
                    _: 1
                }), e("div", Yt, [e("div", zt, [Q(a((b = h.value) == null ? void 0 : b.text) + " ", 1), ((A = v.info) == null ? void 0 : A.state) === 1 ? (u(), pe(nt, {
                    "start-time": (P = v.info) == null ? void 0 : P.endTime,
                    "end-time": (H = v.info) == null ? void 0 : H.serviceTime,
                    "class-name": "state_txt",
                    key: (l = v.info) == null ? void 0 : l.id
                }, null, 8, ["start-time", "end-time"])) : g("v-if", !0)]), e("div", Et, [e("div", null, a((o = h.value) == null ? void 0 : o.tip), 1), e("div", null, a((c = h.value) == null ? void 0 : c.tip2), 1)])]), e("img", {
                    src: (T = h.value) == null ? void 0 : T.icon,
                    class: "state_img",
                    alt: ""
                }, null, 8, Ft), e("div", Gt, [k.value === 7 ? (u(), d("div", {
                    key: 0,
                    class: "appeal",
                    onClick: $[0] || ($[0] = () => {
                        _("appeal")
                    })
                }, [e("img", {
                    src: i(N)("wallet/recharge/detail", "appeal"),
                    alt: ""
                }, null, 8, Jt), Q(" " + a(v.$t("appeal")), 1)])) : g("v-if", !0), k.value === 3 ? (u(), d("div", {
                    key: 1,
                    class: "appeal_admin",
                    onClick: $[1] || ($[1] = () => {
                        _("appealAdmin")
                    })
                }, a(v.$t("AppealsAdmin")), 1)) : g("v-if", !0), k.value === 7 || k.value === 3 || k.value === 1 ? (u(), d("div", {
                    key: 2,
                    class: "cancel",
                    onClick: $[2] || ($[2] = () => {
                        _("onClickRight")
                    })
                }, [e("img", {
                    src: i(N)("common", "close"),
                    alt: ""
                }, null, 8, Kt), Q(" " + a(v.$t("concelOrder")), 1)])) : g("v-if", !0)])], 2)
            }
        }
    });
const Wt = oe(Qt, [
        ["__scopeId", "data-v-fb8ab76f"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/Wallet/Recharge/RechargeDetailHeader.vue"]
    ]),
    re = I => (Ce("data-v-f3187262"), I = I(), be(), I),
    xt = {
        key: 0,
        style: {
            padding: "20px 16px 0"
        }
    },
    Xt = {
        class: "order_info"
    },
    Zt = {
        class: "title"
    },
    ea = ["src"],
    ta = re(() => e("div", {
        class: "dir"
    }, null, -1)),
    aa = {
        class: "order_info_box"
    },
    sa = {
        class: "order_info_item"
    },
    na = {
        class: "title"
    },
    la = {
        class: "amount"
    },
    oa = {
        class: "order_info_item"
    },
    ra = {
        class: "title"
    },
    ia = {
        class: "order_info_item"
    },
    ca = {
        class: "title"
    },
    ua = {
        class: "order_info_item"
    },
    da = {
        class: "title"
    },
    pa = {
        class: "time"
    },
    va = {
        key: 0,
        class: "order_info_item"
    },
    _a = {
        class: "title"
    },
    ha = {
        class: "time"
    },
    fa = re(() => e("div", {
        class: "divider"
    }, null, -1)),
    ma = {
        class: "order_info_box"
    },
    ga = {
        class: "order_info_item"
    },
    ya = re(() => e("div", {
        class: "title"
    }, "UTR", -1)),
    ka = {
        class: "order_num"
    },
    $a = ["src"],
    Ca = {
        class: "order_info_item"
    },
    ba = {
        class: "title"
    },
    wa = {
        class: "order_num"
    },
    Da = ["src"],
    Ta = {
        class: "order_info_item"
    },
    Ia = {
        class: "title"
    },
    Sa = {
        class: "time"
    },
    Na = {
        class: "upi_info"
    },
    Ra = {
        class: "upi_title"
    },
    Aa = {
        class: "order_info_box"
    },
    Ua = {
        class: "order_info_item"
    },
    Pa = re(() => e("div", {
        class: "title"
    }, "UPI", -1)),
    Oa = {
        class: "order_num"
    },
    Ma = ["src"],
    Ba = {
        key: 1,
        class: "upi_info"
    },
    Va = {
        class: "upi_title"
    },
    ja = ["src"],
    qa = {
        key: 2
    },
    Ha = {
        class: "upi_info"
    },
    La = {
        class: "upi_title tit_img"
    },
    Ya = ["src", "onClick"],
    za = {
        key: 0,
        class: "upi_info"
    },
    Ea = {
        class: "upi_title tit_video"
    },
    Fa = {
        style: {
            width: "100%"
        },
        controls: ""
    },
    Ga = ["src"],
    Ja = le({
        __name: "index",
        setup(I) {
            const _ = ye(),
                p = m(3),
                s = m(),
                h = m(-1),
                k = m(),
                y = m(),
                w = We(),
                U = B(() => {
                    var o, c;
                    return !!((o = s.value) != null && o.isAppealCompleted || [4, 3, 7, 1].includes((c = s.value) == null ? void 0 : c.state))
                }),
                v = B(() => {
                    var l, o;
                    if ((l = s.value) != null && l.ossUrls) return w.getOSSUrl + "/" + JSON.parse(((o = s.value) == null ? void 0 : o.ossUrls) || "[]")[0].fileUrl || ""
                }),
                $ = B(() => {
                    var l, o;
                    return (l = s.value) != null && l.withdrawOssUrls ? JSON.parse((o = s.value) == null ? void 0 : o.withdrawOssUrls).filter(c => c.fileType === 1) : []
                }),
                C = B(() => {
                    var l, o, c;
                    return (l = s.value) != null && l.withdrawOssUrls ? (c = JSON.parse((o = s.value) == null ? void 0 : o.withdrawOssUrls).filter(T => T.fileType === 2)[0]) == null ? void 0 : c.fileUrl : []
                }),
                D = async l => {
                    const o = await de(xe({
                        orderId: l
                    }));
                    o && (s.value = o.data, k.value = o.data, h.value = o.data.state, s.value.state === 4 && (p.value = 4), s.value.state === 5 && s.value.isAppealCompleted && (p.value = 4), h.value !== 1 && y.value && clearInterval(y.value), (h.value === 3 || h.value === 7) && H())
                },
                b = () => {
                    var l;
                    _.push({
                        name: "CancelRecharge",
                        query: {
                            orderNo: (l = s.value) == null ? void 0 : l.id
                        }
                    })
                },
                A = async () => {
                    var l, o, c;
                    try {
                        await de(Xe({
                            orderId: (l = s.value) == null ? void 0 : l.id
                        })), await D((o = s.value) == null ? void 0 : o.id), Le({
                            message: "申诉成功",
                            type: "success"
                        }), P(), h.value = (c = s.value) == null ? void 0 : c.state
                    } catch {}
                },
                P = () => {
                    var l;
                    Tawk_API.toggle(), window.Tawk_API.setAttributes({
                        order: (l = s.value) == null ? void 0 : l.id,
                        store: "recharge"
                    }, function(o) {})
                },
                H = () => {
                    let l = "https://embed.tawk.to/6452138631ebfa0fe7fbb175/1hb0ug9qm";
                    if (!document.getElementById("tawk-chatjs")) {
                        let o = document.createElement("script");
                        o.id = "tawk-chatjs", o.async = !0, o.src = l, document.head.appendChild(o)
                    }
                };
            return qe(() => {
                h.value = Number(_.currentRoute.value.query.state);
                const l = Number(_.currentRoute.value.query.orderNo) || -1;
                D(l), h.value === 1 ? y.value = setInterval(() => {
                    D(l)
                }, 5e3) : clearInterval(y.value), (h.value === 3 || h.value === 7) && H()
            }), He(() => {
                y.value && clearInterval(y.value)
            }), (l, o) => {
                var T, V, O, L, x, M, X, Z, ee, te, K, ae, se;
                const c = R("van-divider");
                return u(), d("div", null, [(u(), pe(Wt, {
                    state: h.value,
                    info: k.value,
                    onOnClickRight: b,
                    onAppeal: A,
                    onAppealAdmin: P,
                    key: h.value
                }, null, 8, ["state", "info"])), U.value ? (u(), d("div", xt, [f(st, {
                    state: p.value,
                    type: (T = s.value) != null && T.isAppealCompleted || ((V = s.value) == null ? void 0 : V.state) === 3 ? 2 : 1
                }, null, 8, ["state", "type"])])) : g("v-if", !0), e("div", Xt, [e("div", Zt, [e("img", {
                    src: i(Ze)("wallet", "upi"),
                    alt: ""
                }, null, 8, ea), e("span", null, "New UPI " + a(l.$t("recharge")), 1)]), ta, e("div", aa, [e("div", sa, [e("div", na, a(l.$t("orderAmount")), 1), e("span", la, a(i(J)((O = s.value) == null ? void 0 : O.orderAmount)), 1)]), e("div", oa, [e("div", ra, a(l.$t("actualAmount")), 1), e("span", null, a(i(J)((L = s.value) == null ? void 0 : L.finalAmount)), 1)]), e("div", ia, [e("div", ca, a(l.$t("award")), 1), e("span", null, a(i(J)((x = s.value) == null ? void 0 : x.discountAmount)), 1)]), e("div", ua, [e("div", da, a(l.$t("orderTime")), 1), e("span", pa, a((M = s.value) == null ? void 0 : M.createTime), 1)]), ((X = s.value) == null ? void 0 : X.state) === 8 ? (u(), d("div", va, [e("div", _a, a(l.$t("c2cTip47")), 1), e("span", ha, a((Z = s.value) == null ? void 0 : Z.lastUpdateTime), 1)])) : g("v-if", !0)]), fa, e("div", ma, [e("div", ga, [ya, e("div", ka, [e("span", null, a((ee = s.value) == null ? void 0 : ee.transactionNo), 1), e("img", {
                    src: i(N)("wallet/recharge", "copy1"),
                    alt: "",
                    onClick: o[0] || (o[0] = Y => {
                        var S;
                        return i(W)(((S = s.value) == null ? void 0 : S.transactionNo) || "-")
                    })
                }, null, 8, $a)])]), e("div", Ca, [e("div", ba, a(l.$t("orderNo")), 1), e("div", wa, [e("span", null, a((te = s.value) == null ? void 0 : te.orderNo), 1), e("img", {
                    src: i(N)("wallet/recharge", "copy1"),
                    alt: "",
                    onClick: o[1] || (o[1] = Y => {
                        var S;
                        return i(W)(((S = s.value) == null ? void 0 : S.orderNo) || "-")
                    })
                }, null, 8, Da)])]), e("div", Ta, [e("div", Ia, a(l.$t("PaymentTime")), 1), e("span", Sa, a((K = s.value) == null ? void 0 : K.confrimBeginTime), 1)])])]), e("div", Na, [e("div", Ra, a(l.$t("information")), 1), f(c), e("div", Aa, [e("div", Ua, [Pa, e("div", Oa, [e("span", null, a(((ae = s.value) == null ? void 0 : ae.sellerAccountNo) || "--"), 1), e("img", {
                    src: i(N)("wallet/recharge", "copy1"),
                    alt: "",
                    onClick: o[2] || (o[2] = Y => {
                        var S;
                        return i(W)(((S = s.value) == null ? void 0 : S.sellerAccountNo) || "-")
                    })
                }, null, 8, Ma)])])])]), ((se = s.value) == null ? void 0 : se.state) !== 8 ? (u(), d("div", Ba, [e("div", Va, a(l.$t("c2cTip50")), 1), f(c), e("img", {
                    src: v.value,
                    class: "pay_img",
                    alt: "",
                    onClick: o[3] || (o[3] = () => {
                        i(me)({
                            images: [v.value || ""],
                            closeable: !0
                        })
                    })
                }, null, 8, ja)])) : (u(), d("div", qa, [e("div", Ha, [e("div", La, a(l.$t("c2cTip48")), 1), f(c), (u(!0), d(ne, null, $e($.value, Y => (u(), d("img", {
                    src: i(w).getOSSUrl + "/" + Y.fileUrl,
                    class: "withdraw_img",
                    alt: "",
                    onClick: () => {
                        i(me)({
                            images: [i(w).getOSSUrl + "/" + Y.fileUrl],
                            closeable: !0
                        })
                    }
                }, null, 8, Ya))), 256))]), C.value ? (u(), d("div", za, [e("div", Ea, a(l.$t("c2cTip49")), 1), f(c), e("video", Fa, [e("source", {
                    src: i(w).getOSSUrl + "/" + C.value
                }, null, 8, Ga)])])) : g("v-if", !0)])), g(` <div class="btn_group">
			<div class="appeal" v-if="orderDetail?.state === 7" @click="handleAppeal">{{ $t('appeal') }}</div>
			<div class="appeal_admin" v-if="orderDetail?.state === 3" @click="handleAppealAdmin">{{ $t('AppealsAdmin') }}</div>
			<div
				class="cancel"
				@click="handleCancelOrder"
				v-if="orderDetail?.state === 7 || orderDetail?.state === 3 || orderDetail?.state === 1"
			>
				{{ $t('concelOrder') }}
			</div>
		</div> `)])
            }
        }
    });
const Ka = oe(Ja, [
        ["__scopeId", "data-v-f3187262"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/views/wallet/RechargeHistory/RechargeUpiDetail/index.vue"]
    ]),
    as = Object.freeze(Object.defineProperty({
        __proto__: null,
        default: Ka
    }, Symbol.toStringTag, {
        value: "Module"
    }));
export {
    ct as C, as as a, ts as i
};