import {
  G as ce,
  B as E,
  N as o,
  I as i,
  J as e,
  P as a,
  aB as Q,
  K as D,
  M as q,
  ao as P,
  ap as K,
  aC as Ye,
  aD as et,
  O as s,
  z as $e,
  H as le,
  Q as B,
  r as O,
  A as ht,
  C as tt,
  a8 as bt,
  a7 as $t,
  n as Oe,
  av as J,
  ax as be,
  Z as De,
  aF as Ct,
  aW as kt,
  $ as Ze,
  ay as we,
  au as qe,
  bm as Nt,
  aT as St,
  bl as wt,
  aE as Je,
  T as Dt,
} from "./common.modules-cecf9b0d.js";
import {
  B as ut,
  u as st,
  h as Ke,
  t as Tt,
  a as At,
  S as It,
  b as Lt,
  I as ct,
  c as Pt,
  d as Rt,
  g as Mt,
  e as ot,
  f as Kt,
  l as Ot,
  i as qt,
  j as rt,
  k as Et,
  m as Xe,
  L as Vt,
  n as jt,
  W as Ht,
  o as xt,
  p as zt,
  C as Ft,
} from "./page-saasLottery-D5-c991f6a0.js";
import {
  _ as re,
  c as it,
  y as Ut,
} from "./page-activity-ActivityDetail-6713f46c.js";
const Gt = (g) => (Ye("data-v-1c7fd139"), (g = g()), et(), g),
  Wt = { class: "K3TL__C" },
  Zt = { class: "K3TL__C-l1" },
  Jt = { class: "left" },
  Qt = Gt(() =>
    e(
      "svg",
      {
        xmlns: "http://www.w3.org/2000/svg",
        width: "33",
        height: "32",
        viewBox: "0 0 33 32",
        fill: "none",
      },
      [
        e("path", {
          d: "M9.0484 25.8284L9.04089 25.8359L9.03366 25.8437C8.47797 26.4402 7.97942 26.8014 7.56631 26.9797C7.15908 27.1556 6.87147 27.141 6.67169 27.055C6.46753 26.967 6.24252 26.7559 6.06263 26.3149C5.88195 25.8718 5.76602 25.2377 5.76602 24.3993V9.38602C5.76602 6.69019 6.09509 5.23943 6.86083 4.42092C7.61326 3.61665 8.94055 3.26602 11.4593 3.26602H21.5393C24.0584 3.26602 25.3852 3.61676 26.1358 4.42054C26.8997 5.23844 27.226 6.68864 27.2193 9.38453V9.38602V24.386C27.2193 25.2248 27.1041 25.8592 26.9242 26.3024C26.7451 26.7438 26.5211 26.9543 26.3182 27.0418C26.1198 27.1275 25.8328 27.1424 25.4244 26.9663C25.0105 26.7878 24.5102 26.4264 23.9512 25.8299C23.2918 25.1224 22.4328 24.7733 21.5701 24.8202C20.7074 24.8672 19.8916 25.3075 19.3127 26.0793L19.3123 26.0799L17.9676 27.8772C17.9673 27.8776 17.967 27.878 17.9667 27.8785C17.5231 28.4638 16.9844 28.7094 16.4927 28.7094C16.001 28.7094 15.4623 28.4638 15.0187 27.8785C15.0184 27.878 15.0181 27.8776 15.0177 27.8772L13.6733 26.0802C13.6732 26.0801 13.6732 26.08 13.6731 26.0799C12.5033 24.515 10.4028 24.3993 9.05577 25.8211L9.0484 25.8284ZM8.93935 14.666C8.93935 15.7307 9.80798 16.5993 10.8727 16.5993C11.9374 16.5993 12.806 15.7307 12.806 14.666C12.806 13.6013 11.9374 12.7327 10.8727 12.7327C9.80798 12.7327 8.93935 13.6013 8.93935 14.666ZM8.93935 9.33268C8.93935 10.3974 9.80798 11.266 10.8727 11.266C11.9374 11.266 12.806 10.3974 12.806 9.33268C12.806 8.26798 11.9374 7.39935 10.8727 7.39935C9.80798 7.39935 8.93935 8.26798 8.93935 9.33268ZM14.806 16.266H22.1393C23.0174 16.266 23.7393 15.5441 23.7393 14.666C23.7393 13.788 23.0174 13.066 22.1393 13.066H14.806C13.928 13.066 13.206 13.788 13.206 14.666C13.206 15.5441 13.928 16.266 14.806 16.266ZM14.806 10.9327H22.1393C23.0174 10.9327 23.7393 10.2107 23.7393 9.33268C23.7393 8.45465 23.0174 7.73268 22.1393 7.73268H14.806C13.928 7.73268 13.206 8.45465 13.206 9.33268C13.206 10.2107 13.928 10.9327 14.806 10.9327Z",
          stroke: "currentColor",
          "stroke-width": "1.2",
        }),
      ],
      -1
    )
  ),
  Xt = { class: "K3TL__C-l2" },
  Yt = { class: "periodNo" },
  es = { class: "K3TL__C-time" },
  ts = { class: "K3TL__C-l3" },
  ss = { class: "box" },
  ns = ce({
    __name: "TimeLeft",
    props: {
      issue: { type: String, default: "loading" },
      countdownTime: { type: Array, default: [] },
      premium: { type: String, default: "666" },
      currentGame: { type: Object, default: () => ({}) },
    },
    emits: ["showRule"],
    setup(g, { emit: y }) {
      const _ = g,
        R = E(() => [...(_.premium ?? [])]),
        p = () => {
          y("showRule");
        };
      return (l, r) => (
        o(),
        i(
          D,
          null,
          [
            e("div", Wt, [
              e("div", Zt, [
                e("div", Jt, [
                  e("div", null, a(l.$t("k3Number")), 1),
                  e("div", { class: "K3TL__C-rule", onClick: p }, [
                    Qt,
                    Q(" " + a(l.$t("winTrxIndicate")), 1),
                  ]),
                ]),
                e("div", null, a(l.$t("k3TimeLeftToBuy")), 1),
              ]),
              e("div", Xt, [
                e("div", Yt, a(g.issue), 1),
                e("div", es, [
                  (o(!0),
                  i(
                    D,
                    null,
                    q(g.countdownTime, (k) => (o(), i("div", null, a(k), 1))),
                    256
                  )),
                  P(` <div>{{ currentInfo.time2 }}</div>
				<div notime>:</div>
				<div>{{ currentInfo.time3 }}</div>
				<div>{{ currentInfo.time4 }}</div> `),
                ]),
              ]),
              e("div", ts, [
                e("div", ss, [
                  (o(!0),
                  i(
                    D,
                    null,
                    q(
                      R.value,
                      (k, A) => (
                        o(),
                        i("div", { key: A, class: K(["num" + k]) }, null, 2)
                      )
                    ),
                    128
                  )),
                ]),
              ]),
            ]),
            P(" 规则弹层 begin"),
            P(
              ' <rule :howPlayShow="howPlayShow" :gamePresentation="currentGame.gamePresentation" @close="howPlayShow = false" /> '
            ),
          ],
          2112
        )
      );
    },
  });
const ls = re(ns, [
    ["__scopeId", "data-v-1c7fd139"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/TimeLeft.vue",
    ],
  ]),
  as = { class: "betting_main" },
  os = ["onClick"],
  is = { key: 0 },
  us = { class: "K3B__C-odds-rate" },
  cs = ce({
    __name: "Betting1",
    props: {
      numbers: { type: Array, required: !0 },
      bets: { type: Array, required: !0 },
    },
    emits: ["choose"],
    setup(g, { emit: y }) {
      return (_, R) => (
        o(),
        i("section", as, [
          e("ul", null, [
            (o(!0),
            i(
              D,
              null,
              q(
                _.numbers,
                (p) => (
                  o(),
                  i(
                    "li",
                    {
                      class: K([
                        "bet_item",
                        [p.playBet, _.bets.includes(p.playBet) ? "active" : ""],
                      ]),
                      key: p.playTypeId,
                      onClick: (l) =>
                        y("choose", { item: p, playType: "SumNum" }),
                    },
                    [
                      ["Big", "Small", "Odd", "Even"].includes(p.playBet)
                        ? (o(), i("p", is, a(_.$t(`${s(ut)[p.playBet]}`)), 1))
                        : (o(),
                          i(
                            "div",
                            {
                              key: 1,
                              class: K([
                                "ball",
                                p.playBet % 2 === 0 ? "gball" : "rball",
                              ]),
                            },
                            [
                              e(
                                "p",
                                { class: K("K3B__C-odds-bet num" + p.playBet) },
                                a(p.playBet),
                                3
                              ),
                            ],
                            2
                          )),
                      e("p", us, a(p.playRate) + "X", 1),
                    ],
                    10,
                    os
                  )
                )
              ),
              128
            )),
          ]),
        ])
      );
    },
  });
const rs = re(cs, [
    ["__scopeId", "data-v-2efacab8"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/Betting1.vue",
    ],
  ]),
  ps = { class: "K3B__C-betting2" },
  ds = { key: 0, class: "K3B__C-betting2-tip1" },
  _s = { class: "K3B__C-betting2-line1 mb30" },
  ms = ["onClick"],
  vs = { class: "K3B__C-betting2-tip1" },
  ys = { class: "K3B__C-betting2-line2" },
  fs = ["onClick"],
  gs = { class: "K3B__C-betting2-line3" },
  Bs = ["onClick"],
  hs = ce({
    __name: "Betting2",
    props: {
      same2Mult: { type: null, required: !0 },
      same2Rate: { type: null, required: !0 },
      bets: { type: Array, required: !0 },
    },
    emits: ["choose", "question"],
    setup(g, { emit: y }) {
      const { t: _ } = $e(),
        R = (l, r) => {
          y("question", { text: _(l), numbers: r });
        },
        p = (l) => {
          y("choose", { item: l, playType: l.playType });
        };
      return (l, r) => {
        var A, j;
        const k = le("van-icon");
        return (
          o(),
          i("div", ps, [
            l.same2Rate
              ? (o(),
                i("div", ds, [
                  Q(
                    a(s(_)("k3bet2Desc1")) +
                      "(" +
                      a((A = l.same2Rate) == null ? void 0 : A.playRate) +
                      ") ",
                    1
                  ),
                  B(k, {
                    onClick: r[0] || (r[0] = (m) => R("k3bet2Desc2", [5, 5])),
                    class: "icon",
                    color: "#FA574A",
                    size: "16",
                    name: "question",
                  }),
                ]))
              : P("v-if", !0),
            e("div", _s, [
              (o(),
              i(
                D,
                null,
                q(6, (m, N) =>
                  e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(
                          `${l.same2Rate.playType}_${m}${m}`
                        ),
                      }),
                      key: N,
                      onClick: (U) =>
                        p({ ...l.same2Rate, playBet: `${m}${m}` }),
                    },
                    [
                      e("div", null, a(m) + a(m), 1),
                      P(` <i :class="'number'+ (item)"></i>
				<i :class="'number'+ (item)"></i> `),
                    ],
                    10,
                    ms
                  )
                ),
                64
              )),
            ]),
            P(' <div class="line"></div> '),
            e("div", vs, [
              Q(
                a(s(_)("k3bet2Desc3")) +
                  "(" +
                  a((j = l.same2Mult) == null ? void 0 : j.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[1] || (r[1] = (m) => R("k3bet2Desc4", [6, 1, 6])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e("div", ys, [
              (o(),
              i(
                D,
                null,
                q(6, (m, N) =>
                  e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(
                          `${l.same2Mult.playType}_${m}${m}`
                        ),
                      }),
                      key: N,
                      onClick: (U) =>
                        p({ ...l.same2Mult, playBet: `${m}${m}` }),
                    },
                    [e("div", null, a(m) + a(m), 1)],
                    10,
                    fs
                  )
                ),
                64
              )),
            ]),
            e("div", gs, [
              (o(),
              i(
                D,
                null,
                q(6, (m, N) =>
                  e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(`${l.same2Mult.playType}_${m}`),
                      }),
                      key: N,
                      onClick: (U) =>
                        p({
                          ...l.same2Mult,
                          playType: "NumSame2Mult2",
                          playBet: `${m}`,
                        }),
                    },
                    [e("div", null, a(m), 1)],
                    10,
                    Bs
                  )
                ),
                64
              )),
            ]),
          ])
        );
      };
    },
  });
const bs = re(hs, [
    ["__scopeId", "data-v-bbac44db"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/Betting2.vue",
    ],
  ]),
  $s = { class: "K3B__C-betting3" },
  Cs = { class: "K3B__C-betting3-tip1" },
  ks = { class: "K3B__C-betting3-line1 mb30" },
  Ns = ["onClick"],
  Ss = { class: "K3B__C-betting3-tip1" },
  ws = ce({
    __name: "Betting3",
    props: {
      bets: { type: Array, required: !0 },
      numSame3: { type: null, required: !0 },
      same3All: { type: null, required: !0 },
    },
    emits: ["choose", "question"],
    setup(g, { emit: y }) {
      const { t: _ } = $e(),
        R = (l, r) => {
          y("question", { text: _(l), numbers: r });
        },
        p = (l) => {
          y("choose", { item: l, playType: l.playType });
        };
      return (l, r) => {
        var A, j;
        const k = le("van-icon");
        return (
          o(),
          i("div", $s, [
            e("div", Cs, [
              Q(
                a(s(_)("k3bet3Desc1")) +
                  "(" +
                  a((A = l.numSame3) == null ? void 0 : A.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[0] || (r[0] = (m) => R("k3bet3Desc2", [6, 6, 6])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e("div", ks, [
              (o(),
              i(
                D,
                null,
                q(6, (m, N) =>
                  e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(
                          `${l.numSame3.playType}_${m}${m}${m}`
                        ),
                      }),
                      key: N,
                      onClick: (U) =>
                        p({ ...l.numSame3, playBet: `${m}${m}${m}` }),
                    },
                    [
                      P(
                        ` <i :class="'number' + item" v-for="i in 3" :key="i"></i> `
                      ),
                      e("div", null, a(m) + a(m) + a(m), 1),
                    ],
                    10,
                    Ns
                  )
                ),
                64
              )),
            ]),
            P(' <div class="line"></div> '),
            e("div", Ss, [
              Q(
                a(s(_)("k3bet3Desc3")) +
                  "(" +
                  a((j = l.same3All) == null ? void 0 : j.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[1] || (r[1] = (m) => R("k3bet3Desc5", [7, 7, 7])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e(
              "div",
              {
                class: K([
                  "K3B__C-betting3-btn",
                  { active: l.bets.includes(`${l.same3All.playType}_AAA`) },
                ]),
                onClick: r[2] || (r[2] = (m) => p(l.same3All)),
              },
              a(s(_)("k3bet3Desc4")),
              3
            ),
          ])
        );
      };
    },
  });
const Ds = re(ws, [
    ["__scopeId", "data-v-fa875851"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/Betting3.vue",
    ],
  ]),
  Ts = { class: "K3B__C-betting4" },
  As = { class: "K3B__C-betting4-tip1" },
  Is = { class: "K3B__C-betting4-line1 mb30" },
  Ls = ["onClick"],
  Ps = { class: "K3B__C-betting4-tip1" },
  Rs = { class: "K3B__C-betting4-tip1" },
  Ms = { class: "K3B__C-betting4-line1" },
  Ks = ["onClick"],
  Os = ce({
    __name: "Betting4",
    props: {
      bets: { type: Array, required: !0 },
      numDiff3: { type: null, required: !0 },
      numNear3All: { type: null, required: !0 },
      numDiff2: { type: null, required: !0 },
    },
    emits: ["choose"],
    setup(g, { emit: y }) {
      const { t: _ } = $e(),
        R = (l) => {
          y("choose", { item: l, playType: l.playType });
        },
        p = (l, r) => {
          y("question", { text: _(l), numbers: r });
        };
      return (l, r) => {
        var A, j, m;
        const k = le("van-icon");
        return (
          o(),
          i("div", Ts, [
            e("div", As, [
              Q(
                a(s(_)("k3bet4Desc1")) +
                  "(" +
                  a((A = l.numDiff3) == null ? void 0 : A.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[0] || (r[0] = (N) => p("k3bet4Desc2", [1, 2, 4])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e("div", Is, [
              (o(),
              i(
                D,
                null,
                q(6, (N, U) => {
                  var t;
                  return e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(
                          `${
                            (t = l.numDiff3) == null ? void 0 : t.playType
                          }_${N}`
                        ),
                      }),
                      key: U,
                      onClick: (X) => R({ ...l.numDiff3, playBet: `${N}` }),
                    },
                    [e("div", null, a(N), 1)],
                    10,
                    Ls
                  );
                }),
                64
              )),
            ]),
            P(' <div class="line"></div> '),
            e("div", Ps, [
              Q(
                a(s(_)("k3bet4Desc3")) +
                  "(" +
                  a((j = l.numNear3All) == null ? void 0 : j.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[1] || (r[1] = (N) => p("k3bet4Desc4", [1, 2, 3])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e(
              "div",
              {
                class: K([
                  "K3B__C-betting4-btn",
                  {
                    active: l.bets.includes(
                      `${l.numNear3All.playType}_${l.numNear3All.playBet}`
                    ),
                  },
                ]),
                onClick: r[2] || (r[2] = (N) => R(l.numNear3All)),
              },
              a(s(_)("betPopDesc7")),
              3
            ),
            P(' <div class="line"></div> '),
            e("div", Rs, [
              Q(
                a(s(_)("k3bet4Desc5")) +
                  "(" +
                  a((m = l.numDiff2) == null ? void 0 : m.playRate) +
                  ") ",
                1
              ),
              B(k, {
                onClick: r[3] || (r[3] = (N) => p("k3bet4Desc6", [1, 2])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question",
              }),
            ]),
            e("div", Ms, [
              (o(),
              i(
                D,
                null,
                q(6, (N, U) => {
                  var t;
                  return e(
                    "div",
                    {
                      class: K({
                        active: l.bets.includes(
                          `${
                            (t = l.numDiff2) == null ? void 0 : t.playType
                          }_${N}`
                        ),
                      }),
                      key: U,
                      onClick: (X) => R({ ...l.numDiff2, playBet: `${N}` }),
                    },
                    [e("div", null, a(N), 1)],
                    10,
                    Ks
                  );
                }),
                64
              )),
            ]),
          ])
        );
      };
    },
  });
const qs = re(Os, [
    ["__scopeId", "data-v-178c2ed4"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/Betting4.vue",
    ],
  ]),
  Es = "/assets/png/dice_1_1-25ce379c.png",
  Vs = "/assets/png/dice_1_2-b31b2cb9.png",
  js = "/assets/png/dice_1_3-bd4f0931.png",
  Hs = "/assets/png/dice_1_4-668343c9.png",
  xs = "/assets/png/dice_2_1-80ca050d.png",
  zs = "/assets/png/dice_2_2-2adda993.png",
  Fs = "/assets/png/dice_2_3-eb4f00a2.png",
  Us = "/assets/png/dice_2_4-6c695f3a.png",
  Gs = "/assets/png/dice_3_1-614f4841.png",
  Ws = "/assets/png/dice_3_2-7cde14e4.png",
  Zs = "/assets/png/dice_3_3-2bf5f7d5.png",
  Js = "/assets/png/dice_3_4-06589ea9.png",
  Qs = "/assets/png/dice_4_1-faff1a5e.png",
  Xs = "/assets/png/dice_4_2-f0f2db41.png",
  Ys = "/assets/png/dice_4_3-9a01583a.png",
  en = "/assets/png/dice_4_4-c857099a.png",
  tn = "/assets/png/dice_5_1-eb5ca01f.png",
  sn = "/assets/png/dice_5_2-06604e2f.png",
  nn = "/assets/png/dice_5_3-8cbb9897.png",
  ln = "/assets/png/dice_5_4-bf0f4834.png",
  an = "/assets/png/dice_6_1-a27f6fa5.png",
  on = "/assets/png/dice_6_2-3d22e3b2.png",
  un = "/assets/png/dice_6_3-ddbc0278.png",
  cn = "/assets/png/dice_6_4-07d9a3bf.png",
  Qe = {
    dice_1_1: Es,
    dice_1_2: Vs,
    dice_1_3: js,
    dice_1_4: Hs,
    dice_2_1: xs,
    dice_2_2: zs,
    dice_2_3: Fs,
    dice_2_4: Us,
    dice_3_1: Gs,
    dice_3_2: Ws,
    dice_3_3: Zs,
    dice_3_4: Js,
    dice_4_1: Qs,
    dice_4_2: Xs,
    dice_4_3: Ys,
    dice_4_4: en,
    dice_5_1: tn,
    dice_5_2: sn,
    dice_5_3: nn,
    dice_5_4: ln,
    dice_6_1: an,
    dice_6_2: on,
    dice_6_3: un,
    dice_6_4: cn,
  },
  rn = "/assets/mp3/bg-a5459b10.mp3",
  pn = "/assets/svga/k3-6130f63f.svga",
  dn = "/assets/mp3/dice-8256d861.mp3",
  _n = "/assets/mp3/open-6946a7a2.mp3",
  mn = "/assets/wav/countdown-ec49902e.wav",
  vn = (g) => {
    const y = [];
    return (
      g[0].forEach((_) => {
        const R = g[1].map((p) => p.playBet);
        y.push({ ..._, playBet: _.playBet + "+" + R.sort().join("_") });
      }),
      y
    );
  };
function yn() {
  const g = rt(),
    { t: y } = $e(),
    { localStore: _ } = Pt(),
    { updateBalance: R, onBetTrigger: p, getGameInfo: l } = st();
  let r = null,
    k = null;
  const A = O(localStorage.getItem("volumeShow") || "1"),
    j = new Ke.Howl({ src: [dn], loop: !1, preload: !1 }),
    m = new Ke.Howl({ src: [Tt], preload: !1 }),
    N = new Ke.Howl({ src: [mn], preload: !1 }),
    U = new Ke.Howl({ src: [_n], preload: !1 }),
    t = ht({
      betDialog: !1,
      amount: 1,
      betMultiple: 0,
      playType: "",
      playRate: 0,
      playBetNum: [],
      playBetTowSome: [],
      playBetOnePair: [[], []],
      playBetThreeSome: [],
      playBetNumSameAny: [],
      playBetNumDiff3: [],
      playBetNumNear3All: [],
      playBetNumDiff2: [],
      historyIssues: [],
      historyIssuesTotalPage: 0,
    }),
    X = O(0),
    Z = O(!1),
    ne = O(!1),
    ae = O(!1),
    Ce = O(),
    pe = O(0),
    ee = O(),
    H = new Map(),
    {
      rates: G,
      betScopes: de,
      betMultiples: _e,
      issue: S,
      countdown: f,
      countdownTime: Y,
      canBet: x,
      sound: oe,
      gameCode: c,
      agreePreSale: C,
      introduceDialog: b,
      introduceLoading: z,
      betLimitLoading: ie,
      introduceHtml: ve,
      bgSound: Te,
      issueLoading: Ae,
      lotteryCode: ke,
      soundBg: Ie,
      soundEffects: ye,
      betLimit: Ee,
      issueData: Ve,
      onSwitchIntroduce: je,
      onSwitchSound: me,
      getIssue: fe,
      getIntroduce: Le,
      canAutoPlay: Pe,
      getBetLimit: ge,
      visibilityStatus: Ne,
    } = At({
      bg: rn,
      async processSound(n) {
        var d;
        if ((n <= 5 && Se(), n == 1)) {
          const u = await vt(S.value);
          await Rt(400), (ne.value = !0);
          const v = Kt(1, 4),
            I =
              ((d = u == null ? void 0 : u.item) == null
                ? void 0
                : d.premium) || "";
          if (I && k) {
            const se = I.split(""),
              T = new Image();
            T.src = Qe[`dice_${se[0]}_${v}`];
            const L = new Image();
            L.src = Qe[`dice_${se[1]}_${v}`];
            const V = new Image();
            (V.src = Qe[`dice_${se[2]}_${v}`]),
              (k.replaceElements.dice1 = T),
              (k.replaceElements.dice2 = L),
              (k.replaceElements.dice3 = V);
          }
          ye.value &&
            setTimeout(() => {
              U.play();
            }, 700),
            setTimeout(async () => {
              (t.historyIssues = (u == null ? void 0 : u.list) || []),
                (Z.value = !1),
                (ne.value = !1),
                r == null || r.stop(),
                r == null || r.clear();
            }, 1350),
            setTimeout(async () => {
              await _t((u == null ? void 0 : u.list) || []);
            }, 1e3);
        }
        n === 6 && (r == null || r.start(), (Z.value = !0)),
          ye.value &&
            (n === 5 && m.play(),
            n === 2 && j.play(),
            [0, 5].includes(n) && (n === 5 ? N.play() : N.pause()));
      },
    }),
    Be = Ot(async () => Oe(() => import("./chunk.svga-e9f87239.js"), [])),
    He = async () => {
      r && (r.destroy(), (r = null));
      const { Parser: n, Player: d } = await Be();
      (k = await new n().load(pn)), await (r = new d(Ce.value)).mount(k);
    },
    he = E(() => {
      const n = G.value
          .filter(({ playType: v }) => v === "SumNum")
          .sort((v, I) => v.playBet - I.playBet),
        d = G.value.filter((v) =>
          ["SumBigSmall", "SumOddEven"].includes(v.playType)
        ),
        u = [...n];
      return (
        d.forEach((v) => {
          v.playType === "SumBigSmall"
            ? u.push({ ...v, playBet: "Small" }, { ...v, playBet: "Big" })
            : u.push({ ...v, playBet: "Even" }, { ...v, playBet: "Odd" });
        }),
        u
      );
    }),
    ue = E(() => G.value.find(({ playType: n }) => n === "NumSame2") || {}),
    xe = E(() => G.value.find(({ playType: n }) => n === "NumSame2Mult") || {}),
    ze = E(() => G.value.find(({ playType: n }) => n === "NumSame3") || {}),
    Re = E(() => ({
      ...(G.value.find(({ playType: d }) => d === "NumSame3All") || {}),
      playBet: "AAA",
    })),
    Fe = E(() => G.value.find(({ playType: n }) => n === "NumDiff3") || {}),
    M = E(() => ({
      ...(G.value.find(({ playType: d }) => d === "NumNear3All") || {}),
      playBet: "ABC",
    })),
    $ = E(() => G.value.find(({ playType: n }) => n === "NumDiff2") || {}),
    te = E({
      get() {
        return t.betDialog;
      },
      set(n) {
        t.betDialog = n;
      },
    }),
    Ue = E({
      get() {
        return t.amount;
      },
      set(n) {
        t.amount = n;
      },
    }),
    Ge = E(() => t.playRate),
    w = E(() => t.historyIssues),
    W = E(() => {
      var n, d;
      return (
        ((d = (n = t.historyIssues[0]) == null ? void 0 : n.premium) == null
          ? void 0
          : d.split("")) || []
      );
    }),
    Me = E(() => t.historyIssuesTotalPage),
    We = E(() =>
      [
        {
          name: "k3RecordDesc1",
          code: "SumNum",
          list: t.playBetNum,
          isBet: t.playBetNum.length >= 1,
        },
        {
          name: "k3RecordDesc2",
          code: "NumSame2",
          list: t.playBetTowSome,
          isBet: t.playBetTowSome.length >= 1,
        },
        {
          name: "k3RecordDesc3",
          code: "NumSame2Mult",
          list: vn(t.playBetOnePair),
          isBet:
            t.playBetOnePair[0].length >= 1 && t.playBetOnePair[1].length >= 1,
        },
        {
          name: "k3RecordDesc4",
          code: "NumSame3",
          list: t.playBetThreeSome,
          isBet: t.playBetThreeSome.length > 0,
        },
        {
          name: "k3RecordDesc5",
          code: "NumSame3All",
          list: t.playBetNumSameAny,
          isBet: t.playBetNumSameAny.length > 0,
        },
        {
          name: "k3RecordDesc6",
          code: "NumDiff3",
          list: t.playBetNumDiff3,
          isBet: t.playBetNumDiff3.length >= 3,
        },
        {
          name: "k3RecordDesc7",
          code: "NumNear3All",
          list: t.playBetNumNear3All,
          isBet: t.playBetNumNear3All.length > 0,
        },
        {
          name: "k3RecordDesc8",
          code: "NumDiff2",
          list: t.playBetNumDiff2,
          isBet: t.playBetNumDiff2.length >= 2,
        },
      ].filter((d) => d.isBet)
    ),
    h = O([]),
    pt = (n) => {
      let d = "";
      n.playBet == "Big"
        ? (d = "Small")
        : n.playBet == "Small"
        ? (d = "Big")
        : n.playBet == "Even"
        ? (d = "Odd")
        : n.playBet == "Odd" && (d = "Even");
      const u = h.value.findIndex((v) => v === `${n.playType}_${d}`);
      (t.playBetNum = t.playBetNum.filter(
        ({ playType: v, playBet: I }) => `${v}_${I}` != `${n.playType}_${d}`
      )),
        u != -1 && h.value.splice(u, 1);
    },
    dt = ({ item: n, playType: d }) => {
      var se;
      if (!x.value) return;
      const u = `${n.playType}_${n.playBet}`,
        v = h.value.includes(u),
        I = h.value.findIndex((T) => T === u);
      if (
        (d === "SumNum" &&
          (v
            ? ((t.playBetNum = t.playBetNum.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetNum.push(n), h.value.push(u)),
          pt(n)),
        d === "NumSame2" &&
          (v
            ? ((t.playBetTowSome = t.playBetTowSome.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetTowSome.push(n), h.value.push(u))),
        d === "NumSame3All" &&
          (v
            ? ((t.playBetNumSameAny = t.playBetNumSameAny.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetNumSameAny.push(n), h.value.push(u))),
        d === "NumSame3" &&
          (v
            ? ((t.playBetThreeSome = t.playBetThreeSome.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetThreeSome.push(n), h.value.push(u))),
        d === "NumDiff3" &&
          (v
            ? ((t.playBetNumDiff3 = t.playBetNumDiff3.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetNumDiff3.push(n), h.value.push(u))),
        d === "NumNear3All" &&
          (v
            ? ((t.playBetNumNear3All = t.playBetNumNear3All.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetNumNear3All.push(n), h.value.push(u))),
        d === "NumDiff2" &&
          (v
            ? ((t.playBetNumDiff2 = t.playBetNumDiff2.filter(
                ({ playType: T, playBet: L }) => `${T}_${L}` !== u
              )),
              h.value.splice(I, 1))
            : (t.playBetNumDiff2.push(n), h.value.push(u))),
        ["NumSame2Mult", "NumSame2Mult2"].includes(d))
      ) {
        const T = d === "NumSame2Mult",
          L = "NumSame2Mult",
          V = `${L}_${n.playBet}`,
          lt = h.value.includes(V),
          at = h.value.findIndex((F) => F === V);
        T
          ? lt
            ? ((t.playBetOnePair[0] = t.playBetOnePair[0].filter(
                (F) => `${L}_${F.playBet}` !== V
              )),
              h.value.splice(at, 1))
            : (t.playBetOnePair[0].push(n),
              h.value.push(V),
              (t.playBetOnePair[1] = t.playBetOnePair[1].filter(
                (F) => !V.startsWith(`${L}_${F.playBet}`)
              )),
              (h.value = h.value.filter((F) => !(V.startsWith(F) && V != F))))
          : lt
          ? ((t.playBetOnePair[1] = t.playBetOnePair[1].filter(
              (F) => `${L}_${F.playBet}` !== V
            )),
            h.value.splice(at, 1))
          : (t.playBetOnePair[1].push(n),
            h.value.push(V),
            (t.playBetOnePair[0] = t.playBetOnePair[0].filter(
              (F) => !`${L}_${F.playBet}`.startsWith(V)
            )),
            (h.value = h.value.filter((F) => !(F.startsWith(V) && F != V))));
      }
      ((se = Ve.value) == null ? void 0 : se.gameCode) === c.value &&
        ((t.betDialog = We.value.some((T) => T.isBet)),
        (t.amount = de.value[0] || 1),
        (X.value = _e.value[0] || 1));
    },
    Se = (n = !1) => {
      (t.betDialog = !1),
        (t.playType = ""),
        (t.playRate = 0),
        (X.value = 0),
        (t.amount = 0),
        (h.value = []),
        (t.playBetNum = []),
        (t.playBetOnePair = []),
        (t.playBetTowSome = []),
        (t.playBetThreeSome = []),
        (t.playBetNumSameAny = []),
        (t.playBetNumDiff3 = []),
        (t.playBetNumNear3All = []),
        (t.playBetNumDiff2 = []),
        (t.playBetOnePair = [[], []]),
        n && H.clear();
    },
    _t = async (n) => {
      try {
        const d = [...H.keys()].reverse();
        if (!d.length) return;
        const u = d[0];
        if (n.findIndex((V) => V.issueNumber === u) > 0) return H.clear();
        const { result: I, data: se } = await Mt({ issueNumber: u });
        if (!I) return;
        if (se.status === null) {
          H.delete(u);
          return;
        }
        if ((p(), H.delete(u), !ee.value)) return;
        const T = se.status === !0,
          L = n.find((V) => V.issueNumber === u);
        ee.value.open({
          isWin: T,
          amount: se.winAmount || 0,
          issueNumber: u,
          result: L,
        }),
          H.clear(),
          T && R();
      } catch {}
    },
    mt = async () => {
      if (!ae.value) {
        if (!C.value) return g.error(y("common.agreePreSale"));
        if (!S.value) return g.error(y("common.noIssueNumber"));
        try {
          const n = [];
          We.value.forEach((u) => {
            if (["NumDiff3", "NumDiff2"].includes(u.code)) {
              let v =
                u.code +
                `_${u.list
                  .map(({ playBet: I }) => I)
                  .sort()
                  .join("_")}`;
              n.push(v);
            } else {
              const v = u.list.map((I) =>
                `${I.playType}_${I.playBet}`.replace("+", "_")
              );
              n.push(...v);
            }
          }),
            (ae.value = !0);
          const { result: d } = await qt({
            gameCode: c.value,
            issueNumber: S.value,
            amount: t.amount,
            betMultiple: X.value,
            betContent: n,
          });
          if (!d) return;
          H.set(S.value, 1),
            Se(),
            g.success(y("common.betSuccessful")),
            p(),
            R();
        } catch {
        } finally {
          ae.value = !1;
        }
      }
    },
    nt = async () => {
      try {
        const { result: n, data: d } = await ot({
          gameCode: c.value,
          lotteryCode: ke.value,
        });
        if (!n) return;
        (t.historyIssues = d.list || []),
          (t.historyIssuesTotalPage = d.totalPage || 0);
      } catch {
      } finally {
      }
    },
    vt = async (n) => {
      try {
        const { result: d, data: u } = await ot({
          gameCode: c.value,
          lotteryCode: ke.value,
        });
        if (!d) return;
        const I = (u.list || [])[0];
        return I.issueNumber !== n
          ? { list: u.list, item: null }
          : { item: I, list: u.list };
      } catch {
      } finally {
      }
    },
    yt = async () => {
      await Promise.all([l(), fe(!0), nt()]);
    },
    ft = () => {
      A.value == "1" ? (A.value = "2") : (A.value = "1"),
        localStorage.setItem("volumeShow", A.value);
    },
    gt = () => {
      $t(ct, {
        betScopes: de,
        betMultiples: _e,
        issue: S,
        canBet: x,
        gameCode: c,
        amount: Ue,
        betDialog: te,
        betMultiple: X,
        playRate: Ge,
        agreePreSale: C,
        playBet: We,
        loading: ae,
        sound: oe,
        historyIssues: w,
        betLimitLoading: ie,
        soundBg: Ie,
        soundEffects: ye,
        betLimit: Ee,
        historyIssuesTotalPage: Me,
        onClearBet: Se,
        onBetting: mt,
        getBetLimit: ge,
        onSwitchSound: me,
      });
    },
    Bt = (n) => {
      (pe.value = n), Se();
    };
  return (
    tt(async () => {
      const n = await Pe(),
        d = _.get(It),
        u = _.get(Lt);
      n &&
        (d === 1 && ((Ie.value = !0), Te.play()), u === 1 && (ye.value = !0));
    }),
    {
      betScopes: de,
      betMultiples: _e,
      numbers: he,
      issue: S,
      countdown: f,
      countdownTime: Y,
      canBet: x,
      sound: oe,
      introduceDialog: b,
      betMultiple: X,
      introduceLoading: z,
      introduceHtml: ve,
      betLimitLoading: ie,
      lottieEl: Ce,
      historyIssues: w,
      lotteryList: W,
      animationLock: Z,
      animationRoll: ne,
      issueLoading: Ae,
      bets: h,
      winner: ee,
      onSwitchIntroduce: je,
      getIssue: fe,
      onSwitchSound: me,
      useProvide: gt,
      onBet: dt,
      onClearBet: Se,
      getIntroduce: Le,
      getHistoryIssues: nt,
      actNav: pe,
      changeType: Bt,
      getlotteryissue: yt,
      getAnimationLottie: He,
      same2Mult: xe,
      same2Rate: ue,
      numSame3: ze,
      same3All: Re,
      numDiff3: Fe,
      numNear3All: M,
      numDiff2: $,
      setVoice: ft,
      VoiceType: A,
      visibilityStatus: Ne,
    }
  );
}
function fn() {
  return bt(ct, {});
}
const gn = (g) => (Ye("data-v-fae11a1c"), (g = g()), et(), g),
  Bn = { class: "bet" },
  hn = { class: "bet-body" },
  bn = { class: "one" },
  $n = { key: 0, class: "title" },
  Cn = { key: 0, class: "bet-title" },
  kn = { key: 1, class: "bet-nums" },
  Nn = { key: 2, class: "bet-dices" },
  Sn = { class: "popup-type2-d" },
  wn = { key: 3, class: "bet-dices" },
  Dn = { key: 4, class: "bet-all" },
  Tn = { key: 5, class: "bet-all" },
  An = { class: "l1 Betting__Popup-body-line" },
  In = { class: "title" },
  Ln = { class: "amount" },
  Pn = ["onClick"],
  Rn = { class: "l1 Betting__Popup-body-line" },
  Mn = { class: "title" },
  Kn = { class: "m" },
  On = { class: "l1 Betting__Popup-body-line" },
  qn = gn(() => e("div", { class: "title" }, null, -1)),
  En = { class: "multiples" },
  Vn = ["onClick"],
  jn = { class: "l2" },
  Hn = { class: "bet-foot" },
  xn = { key: 0, class: "flex-center", style: { height: "100%" } },
  zn = { key: 1, class: "limit-table" },
  Fn = ce({
    __name: "BettingPopup",
    props: { actNav: { type: Number, default: 0 } },
    setup(g) {
      const { t: y } = $e(),
        {
          betMultiple: _,
          betMultiples: R,
          playBet: p,
          agreePreSale: l,
          betDialog: r,
          betScopes: k,
          amount: A,
          loading: j,
          betLimitLoading: m,
          betLimit: N,
          onClearBet: U,
          onBetting: t,
          getBetLimit: X,
        } = fn(),
        { balance: Z } = st(),
        ne = rt(),
        ae = (S, f) => {
          if (f > S || f < 0) return 0;
          let Y = 1;
          for (let x = 0; x < f; x++) (Y *= S - x), (Y /= x + 1);
          return Y;
        },
        Ce = (S) => S.replace(/_/g, ","),
        pe = E(() => {
          var c, C;
          const f =
              p.value
                .filter((b) => b.code === "NumSame2Mult")
                .map((b) =>
                  b.list.map((z) => {
                    var ve;
                    const ie =
                      (ve = z.playBet) == null ? void 0 : ve.split("+")[1];
                    return ie == null ? void 0 : ie.split("_").lengthcon;
                  })
                )
                .flat() || [],
            Y = p.value
              .filter(
                (b) =>
                  b.code !== "NumSame2Mult" &&
                  b.code !== "NumDiff3" &&
                  b.code !== "NumDiff2"
              )
              .map((b) => b.list.length),
            x = ae(
              ((c = p.value.filter((b) => b.code === "NumDiff3")[0]) == null
                ? void 0
                : c.list.length) || 0,
              3
            ),
            oe = ae(
              ((C = p.value.filter((b) => b.code === "NumDiff2")[0]) == null
                ? void 0
                : C.list.length) || 0,
              2
            );
          return (
            Y.reduce((b, z) => b + z, 0) + f.reduce((b, z) => b + z, 0) + x + oe
          );
        }),
        ee = O(!1),
        H = O(!1),
        G = (S) => {
          switch (S) {
            case 1:
              _.value > 1 && _.value--;
              break;
            case 2:
              _.value++;
              break;
          }
        },
        de = () => {
          _.value > 999999999 && (_.value = 999999999);
        },
        _e = () => {
          if (_.value * A.value * pe.value > Z.value)
            return ne.error(y("common.code_142"));
          t();
        };
      return (S, f) => {
        const Y = le("van-checkbox"),
          x = le("van-popup"),
          oe = le("van-loading");
        return (
          o(),
          i(
            D,
            null,
            [
              P(" 投注内容 begin "),
              B(
                x,
                {
                  show: s(r),
                  "onUpdate:show":
                    f[6] || (f[6] = (c) => (De(r) ? (r.value = c) : null)),
                  style: {
                    "box-shadow": "0px -18px 40px rgba(37, 37, 60, 0.26)",
                  },
                  class: "betPopup",
                  "lock-scroll": !1,
                  position: "bottom",
                  round: !0,
                  overlay: !1,
                  "close-on-click-overlay": !1,
                },
                {
                  default: J(() => [
                    e("div", Bn, [
                      e("div", hn, [
                        e("div", bn, [
                          g.actNav === 0
                            ? (o(), i("div", $n, a(s(y)("betPopDesc1")), 1))
                            : P("v-if", !0),
                          e("div", null, [
                            (o(!0),
                            i(
                              D,
                              null,
                              q(
                                s(p),
                                (c) => (
                                  o(),
                                  i("div", null, [
                                    g.actNav !== 0
                                      ? (o(), i("div", Cn, a(S.$t(c.name)), 1))
                                      : P("v-if", !0),
                                    c.code === "SumNum"
                                      ? (o(),
                                        i("ul", kn, [
                                          (o(!0),
                                          i(
                                            D,
                                            null,
                                            q(
                                              c.list,
                                              (C) => (
                                                o(),
                                                i(
                                                  "li",
                                                  {
                                                    class: K([
                                                      C.playBet,
                                                      C.playType,
                                                      C.playBet % 2 === 0 &&
                                                      ![
                                                        "Big",
                                                        "Small",
                                                        "Odd",
                                                        "Even",
                                                      ].includes(C.playBet)
                                                        ? "green"
                                                        : "red num" + C.playBet,
                                                    ]),
                                                  },
                                                  [
                                                    [
                                                      "Big",
                                                      "Small",
                                                      "Odd",
                                                      "Even",
                                                    ].includes(C.playBet)
                                                      ? (o(),
                                                        i(
                                                          D,
                                                          { key: 0 },
                                                          [
                                                            Q(
                                                              a(
                                                                s(y)(
                                                                  `${
                                                                    s(ut)[
                                                                      C.playBet
                                                                    ]
                                                                  }`
                                                                )
                                                              ),
                                                              1
                                                            ),
                                                          ],
                                                          64
                                                        ))
                                                      : (o(),
                                                        i(
                                                          D,
                                                          { key: 1 },
                                                          [Q(a(C.playBet), 1)],
                                                          64
                                                        )),
                                                  ],
                                                  2
                                                )
                                              )
                                            ),
                                            256
                                          )),
                                        ]))
                                      : P("v-if", !0),
                                    [
                                      "NumSame2",
                                      "NumSame3",
                                      "NumDiff3",
                                      "NumDiff2",
                                    ].includes(c.code)
                                      ? (o(),
                                        i("ul", Nn, [
                                          (o(!0),
                                          i(
                                            D,
                                            null,
                                            q(
                                              c.list,
                                              (C) => (
                                                o(),
                                                i(
                                                  "li",
                                                  { class: K([C.playBet]) },
                                                  [
                                                    e(
                                                      "div",
                                                      Sn,
                                                      a(C.playBet),
                                                      1
                                                    ),
                                                  ],
                                                  2
                                                )
                                              )
                                            ),
                                            256
                                          )),
                                        ]))
                                      : P("v-if", !0),
                                    c.code === "NumSame2Mult"
                                      ? (o(),
                                        i("ul", wn, [
                                          (o(!0),
                                          i(
                                            D,
                                            null,
                                            q(c.list, (C) => {
                                              var b;
                                              return (
                                                o(),
                                                i(
                                                  "li",
                                                  {
                                                    class: K([
                                                      "popup-type2-o",
                                                      C.playBet,
                                                    ]),
                                                  },
                                                  [
                                                    (o(!0),
                                                    i(
                                                      D,
                                                      null,
                                                      q(
                                                        (b = C.playBet) == null
                                                          ? void 0
                                                          : b.split("+"),
                                                        (z) => (
                                                          o(),
                                                          i(
                                                            "div",
                                                            {
                                                              class: K([
                                                                "number" + z,
                                                              ]),
                                                            },
                                                            a(Ce(z)),
                                                            3
                                                          )
                                                        )
                                                      ),
                                                      256
                                                    )),
                                                  ],
                                                  2
                                                )
                                              );
                                            }),
                                            256
                                          )),
                                        ]))
                                      : P("v-if", !0),
                                    c.code === "NumNear3All"
                                      ? (o(),
                                        i(
                                          "div",
                                          Dn,
                                          a(S.$t("k3RecordDesc7")),
                                          1
                                        ))
                                      : P("v-if", !0),
                                    c.code === "NumSame3All"
                                      ? (o(),
                                        i("div", Tn, a(S.$t("k3bet3Desc4")), 1))
                                      : P("v-if", !0),
                                  ])
                                )
                              ),
                              256
                            )),
                          ]),
                        ]),
                        e("div", An, [
                          e("div", In, a(S.$t("amount")), 1),
                          e("div", Ln, [
                            (o(!0),
                            i(
                              D,
                              null,
                              q(
                                s(k),
                                (c, C) => (
                                  o(),
                                  i(
                                    "div",
                                    {
                                      key: C,
                                      class: K({ active: c == s(A) }),
                                      onClick: (b) => (A.value = c),
                                    },
                                    a(s(Et)(c)),
                                    11,
                                    Pn
                                  )
                                )
                              ),
                              128
                            )),
                          ]),
                        ]),
                        e("div", Rn, [
                          e("div", Mn, a(S.$t("numbers")), 1),
                          e("div", Kn, [
                            e(
                              "div",
                              { onClick: f[0] || (f[0] = (c) => G(1)) },
                              "-"
                            ),
                            be(
                              e(
                                "input",
                                {
                                  "onUpdate:modelValue":
                                    f[1] ||
                                    (f[1] = (c) =>
                                      De(_) ? (_.value = c) : null),
                                  class: "Betting__Popup-input",
                                  type: "number",
                                  onInput: de,
                                },
                                null,
                                544
                              ),
                              [[Ct, s(_)]]
                            ),
                            P(` <van-field
						class="Betting__Popup-input"
						v-model="betMultiple"
						type="number"
						:maxlength="4"
						@input="enforceMaxValue"
					/> `),
                            e(
                              "div",
                              { onClick: f[2] || (f[2] = (c) => G(2)) },
                              "+"
                            ),
                          ]),
                        ]),
                        e("div", On, [
                          qn,
                          e("div", En, [
                            (o(!0),
                            i(
                              D,
                              null,
                              q(
                                s(R),
                                (c, C) => (
                                  o(),
                                  i(
                                    "div",
                                    {
                                      key: C,
                                      class: K({ active: c === s(_) }),
                                      onClick: (b) => (_.value = c),
                                    },
                                    " X" + a(c),
                                    11,
                                    Vn
                                  )
                                )
                              ),
                              128
                            )),
                          ]),
                        ]),
                        e("div", jn, [
                          B(
                            Y,
                            {
                              modelValue: s(l),
                              "onUpdate:modelValue":
                                f[4] ||
                                (f[4] = (c) => (De(l) ? (l.value = c) : null)),
                              "checked-color": "var(--main-color)",
                            },
                            {
                              default: J(() => [
                                Q(a(S.$t("agree")) + " ", 1),
                                e(
                                  "span",
                                  {
                                    class: "rules",
                                    onClick:
                                      f[3] ||
                                      (f[3] = kt(
                                        (c) => (ee.value = !0),
                                        ["stop"]
                                      )),
                                  },
                                  a(S.$t("presaleRules")),
                                  1
                                ),
                              ]),
                              _: 1,
                            },
                            8,
                            ["modelValue"]
                          ),
                        ]),
                      ]),
                      e("div", Hn, [
                        e(
                          "div",
                          {
                            class: "bet-foot-c",
                            onClick:
                              f[5] || (f[5] = (...c) => s(U) && s(U)(...c)),
                          },
                          a(s(y)("cancel")),
                          1
                        ),
                        e(
                          "div",
                          {
                            class: K(["bet-foot-s", { disabled: s(j) }]),
                            onClick: _e,
                          },
                          [
                            Q(a(s(y)("totalAmount")) + " ", 1),
                            e(
                              "span",
                              null,
                              a(s(it)((s(_) * s(A) || 0) * pe.value)),
                              1
                            ),
                          ],
                          2
                        ),
                      ]),
                    ]),
                  ]),
                  _: 1,
                },
                8,
                ["show"]
              ),
              P(" 预售规则弹层 begin"),
              B(
                x,
                {
                  show: ee.value,
                  "onUpdate:show": f[8] || (f[8] = (c) => (ee.value = c)),
                  "close-on-click-overlay": !1,
                  round: "",
                },
                {
                  default: J(() => [
                    B(
                      s(Xe),
                      {
                        title: s(y)("presaleRules"),
                        onClose: f[7] || (f[7] = (c) => (ee.value = !1)),
                      },
                      { default: J(() => [Q(a(S.$t("betPopTXT")), 1)]), _: 1 },
                      8,
                      ["title"]
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["show"]
              ),
              B(
                x,
                {
                  show: H.value,
                  "onUpdate:show": f[10] || (f[10] = (c) => (H.value = c)),
                  onOpen: s(X),
                  "close-on-click-overlay": !1,
                  round: "",
                },
                {
                  default: J(() => [
                    B(
                      s(Xe),
                      {
                        title: S.$t("common.limit"),
                        onClose: f[9] || (f[9] = (c) => (H.value = !1)),
                      },
                      {
                        default: J(() => [
                          s(m)
                            ? (o(),
                              i("div", xn, [
                                B(oe, { type: "spinner", color: "#FD565C" }),
                              ]))
                            : (o(),
                              i("table", zn, [
                                e("thead", null, [
                                  e("tr", null, [
                                    e("th", null, a(s(y)("common.play")), 1),
                                    e("th", null, a(s(y)("common.choice")), 1),
                                    e("th", null, a(s(y)("common.limit")), 1),
                                  ]),
                                ]),
                                e("tbody", null, [
                                  (o(!0),
                                  i(
                                    D,
                                    null,
                                    q(
                                      s(N),
                                      (c) => (
                                        o(),
                                        i("tr", null, [
                                          e("td", null, a(c.playType), 1),
                                          e("td", null, a(c.betContent), 1),
                                          e(
                                            "td",
                                            null,
                                            a(s(it)(c.maxPayoutAmount)),
                                            1
                                          ),
                                        ])
                                      )
                                    ),
                                    256
                                  )),
                                ]),
                              ])),
                        ]),
                        _: 1,
                      },
                      8,
                      ["title"]
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["show", "onOpen"]
              ),
            ],
            64
          )
        );
      };
    },
  });
const Un = re(Fn, [
    ["__scopeId", "data-v-fae11a1c"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/components/k33/BettingPopup.vue",
    ],
  ]),
  Gn = (g) => (Ye("data-v-5153f4bc"), (g = g()), et(), g),
  Wn = { class: "k3_main" },
  Zn = { class: "k3_container" },
  Jn = { class: "cont betting" },
  Qn = { class: "zhongjiang K3B__C" },
  Xn = { class: "K3B__C-nav" },
  Yn = ["onClick"],
  el = { class: "RecordNav__C" },
  tl = ["onClick"],
  sl = { class: "" },
  nl = Gn(() => e("p", { style: { height: "200px" } }, null, -1)),
  ll = { class: "qpopup-box" },
  al = { class: "qpopup-box-list" },
  ol = { class: "qpopup-box-txt" },
  il = { key: 0, class: "flex-center", style: { height: "100%" } },
  ul = ["innerHTML"],
  cl = { class: "line1" },
  rl = { class: "line2" },
  pl = { class: "yuan" },
  dl = ce({
    __name: "index",
    setup(g) {
      const y = Je(() =>
          Oe(
            () => import("./Record-49fe1120.js"),
            [
              "assets/js/Record-49fe1120.js",
              "assets/js/common.modules-cecf9b0d.js",
              "assets/css/common-e210f711.css",
              "assets/js/page-saasLottery-D5-c991f6a0.js",
              "assets/js/page-activity-ActivityDetail-6713f46c.js",
              "assets/js/page-turntable-assets-d6267459.js",
              "assets/js/native/index-9bac92b2.js",
              "assets/js/en-5d34117c.js",
              "assets/css/page-activity-ActivityDetail-a597c4a3.css",
              "assets/js/page-home-other-6d9782ba.js",
              "assets/js/page-home-Casino-ff36f722.js",
              "assets/css/page-home-Casino-0640108f.css",
              "assets/js/page-home-AllGames-ebd16353.js",
              "assets/css/page-home-AllGames-6031b577.css",
              "assets/css/page-home-other-e61ff531.css",
              "assets/js/page-activity-Bonus-c94a181e.js",
              "assets/css/page-activity-Bonus-608b6579.css",
              "assets/css/page-saasLottery-D5-02b7ea84.css",
              "assets/css/Record-c9e83fc6.css",
            ]
          )
        ),
        _ = Je(() =>
          Oe(
            () => import("./Trend-bc072ac9.js"),
            [
              "assets/js/Trend-bc072ac9.js",
              "assets/js/common.modules-cecf9b0d.js",
              "assets/css/common-e210f711.css",
              "assets/js/page-saasLottery-D5-c991f6a0.js",
              "assets/js/page-activity-ActivityDetail-6713f46c.js",
              "assets/js/page-turntable-assets-d6267459.js",
              "assets/js/native/index-9bac92b2.js",
              "assets/js/en-5d34117c.js",
              "assets/css/page-activity-ActivityDetail-a597c4a3.css",
              "assets/js/page-home-other-6d9782ba.js",
              "assets/js/page-home-Casino-ff36f722.js",
              "assets/css/page-home-Casino-0640108f.css",
              "assets/js/page-home-AllGames-ebd16353.js",
              "assets/css/page-home-AllGames-6031b577.css",
              "assets/css/page-home-other-e61ff531.css",
              "assets/js/page-activity-Bonus-c94a181e.js",
              "assets/css/page-activity-Bonus-608b6579.css",
              "assets/css/page-saasLottery-D5-02b7ea84.css",
              "assets/css/Trend-0fcc4707.css",
            ]
          )
        ),
        R = Je(() =>
          Oe(
            () =>
              import("./page-saasLottery-SaasChangLong-0d72bafc.js").then(
                (M) => M.a
              ),
            [
              "assets/js/page-saasLottery-SaasChangLong-0d72bafc.js",
              "assets/js/common.modules-cecf9b0d.js",
              "assets/css/common-e210f711.css",
              "assets/js/page-activity-Bonus-c94a181e.js",
              "assets/js/page-activity-ActivityDetail-6713f46c.js",
              "assets/js/page-turntable-assets-d6267459.js",
              "assets/js/native/index-9bac92b2.js",
              "assets/js/en-5d34117c.js",
              "assets/css/page-activity-ActivityDetail-a597c4a3.css",
              "assets/css/page-activity-Bonus-608b6579.css",
              "assets/js/page-saasLottery-D5-c991f6a0.js",
              "assets/js/page-home-other-6d9782ba.js",
              "assets/js/page-home-Casino-ff36f722.js",
              "assets/css/page-home-Casino-0640108f.css",
              "assets/js/page-home-AllGames-ebd16353.js",
              "assets/css/page-home-AllGames-6031b577.css",
              "assets/css/page-home-other-e61ff531.css",
              "assets/css/page-saasLottery-D5-02b7ea84.css",
              "assets/js/page-saasLottery-MotoRace-5b715646.js",
              "assets/css/page-saasLottery-MotoRace-c6a96213.css",
              "assets/css/page-saasLottery-SaasChangLong-acc6252b.css",
            ]
          )
        ),
        { t: p } = $e(),
        l = O("Record"),
        { onLotteryJump: r } = st(),
        k = E(() => {
          switch (l.value) {
            case "Record":
              return y;
            case "Trend":
              return _;
            case "MyRecord":
              return R;
            default:
              return null;
          }
        }),
        {
          issue: A,
          onBet: j,
          getIssue: m,
          getHistoryIssues: N,
          changeType: U,
          useProvide: t,
          lotteryList: X,
          countdown: Z,
          countdownTime: ne,
          canBet: ae,
          animationLock: Ce,
          lottieEl: pe,
          numbers: ee,
          actNav: H,
          same2Mult: G,
          same2Rate: de,
          numSame3: _e,
          same3All: S,
          numDiff3: f,
          numNear3All: Y,
          numDiff2: x,
          introduceLoading: oe,
          introduceDialog: c,
          introduceHtml: C,
          bets: b,
          sound: z,
          winner: ie,
          getIntroduce: ve,
          onSwitchIntroduce: Te,
          getlotteryissue: Ae,
          VoiceType: ke,
          setVoice: Ie,
          onClearBet: ye,
          visibilityStatus: Ee,
        } = yn();
      t(),
        tt(async () => {
          await Ae(), (ge.value = !0);
        });
      const Ve = O([
          { name: p("totalBet"), comp: "Betting1" },
          { name: p("sameNum"), comp: "Betting2" },
          { name: p("numbersMatch"), comp: "Betting3" },
          { name: p("numbersUnmatch"), comp: "Betting4" },
        ]),
        je = O([
          { name: p("gameRecords"), comp: "Record" },
          { name: p("chartTrends"), comp: "Trend" },
          { name: p("myGameRecords"), comp: "MyRecord" },
        ]),
        me = O(!1),
        fe = O(!1),
        Le = O([]),
        Pe = O(""),
        ge = O(!1),
        Ne = O(!1),
        Be = ({ text: M, numbers: $ }) => {
          (me.value = !0), (Le.value = $), (Pe.value = M);
        },
        He = E(() => Z.value.minutes === 0 && Z.value.seconds < 6),
        he = O(""),
        ue = O(null),
        xe = (M, $) => {
          if (M >= 0 && $ > 0 && $ >= M) {
            let te = $ - M + 1;
            return Math.floor(Math.random() * te + M);
          } else return 0;
        },
        ze = (M) => {
          ue.value ||
            (ue.value = setInterval(function () {
              for (var $ = [], te = 0; 3 > te; te++) $.push(xe(1, 6));
              he.value = $.join("");
            }, 50)),
            setTimeout(function () {
              clearInterval(ue.value), (he.value = M), (ue.value = null);
            }, 2e3);
        };
      Ze(X, (M, $) => {
        (he.value = M.join("")),
          M.length > 0 && $.length > 0 && !fe.value && ze(M.join(""));
      }),
        Ze(
          () => Ee.value,
          (M) => {
            M && N();
          }
        );
      const Re = (M = 1) => {
        const $ = document.getElementById(`voice${M}`);
        $ && ($ == null || $.play());
      };
      Ze(
        () => Z.value.seconds,
        async () => {
          ke.value == "1" &&
            Z.value.minutes === 0 &&
            (Z.value.seconds <= 5 && Z.value.seconds > 0
              ? Re(1)
              : Z.value.seconds == 0 && Re(2));
        },
        { immediate: !1 }
      );
      const Fe = async (M) => {
        if (!Ne.value)
          try {
            (Ne.value = !0),
              (fe.value = !0),
              (ge.value = !1),
              clearInterval(ue.value),
              (ue.value = null),
              ye(!0),
              r(M),
              await Ae(),
              (fe.value = !1),
              (ge.value = !0);
          } catch {
          } finally {
            Ne.value = !1;
          }
      };
      return (M, $) => {
        const te = le("van-popup"),
          Ue = le("van-icon"),
          Ge = le("van-loading");
        return (
          o(),
          i("section", Wn, [
            B(
              s(Vt),
              { onChangeSelectGame: Fe, onSetVoice: s(Ie), VoiceType: s(ke) },
              null,
              8,
              ["onSetVoice", "VoiceType"]
            ),
            e("div", Zn, [
              e("section", Jn, [
                B(
                  ls,
                  {
                    issue: s(A),
                    countdownTime: s(ne),
                    premium: he.value,
                    onShowRule: s(Te),
                  },
                  null,
                  8,
                  ["issue", "countdownTime", "premium", "onShowRule"]
                ),
                e("div", Qn, [
                  P(
                    ' <canvas class="c" v-show="animationLock" ref="lottieEl"></canvas> '
                  ),
                  be(
                    e(
                      "div",
                      { class: "K3B__C-mark", ref_key: "lottieEl", ref: pe },
                      [
                        e("div", null, a(s(ne)[3] || "0"), 1),
                        e("div", null, a(s(ne)[4] || "0"), 1),
                      ],
                      512
                    ),
                    [[we, He.value && ge.value]]
                  ),
                  e("div", Xn, [
                    (o(!0),
                    i(
                      D,
                      null,
                      q(
                        Ve.value,
                        (w, W) => (
                          o(),
                          i(
                            "div",
                            {
                              key: W,
                              class: K({ active: s(H) == W }),
                              onClick: (Me) => s(U)(W),
                            },
                            [e("span", null, a(w.name), 1)],
                            10,
                            Yn
                          )
                        )
                      ),
                      128
                    )),
                  ]),
                  be(
                    B(
                      rs,
                      {
                        onQuestion: Be,
                        onChoose: s(j),
                        bets: s(b),
                        numbers: s(ee),
                      },
                      null,
                      8,
                      ["onChoose", "bets", "numbers"]
                    ),
                    [[we, s(H) === 0]]
                  ),
                  be(
                    B(
                      bs,
                      {
                        onQuestion: Be,
                        onChoose: s(j),
                        bets: s(b),
                        same2Mult: s(G),
                        same2Rate: s(de),
                      },
                      null,
                      8,
                      ["onChoose", "bets", "same2Mult", "same2Rate"]
                    ),
                    [[we, s(H) === 1]]
                  ),
                  be(
                    B(
                      Ds,
                      {
                        onQuestion: Be,
                        onChoose: s(j),
                        bets: s(b),
                        numSame3: s(_e),
                        same3All: s(S),
                      },
                      null,
                      8,
                      ["onChoose", "bets", "numSame3", "same3All"]
                    ),
                    [[we, s(H) === 2]]
                  ),
                  be(
                    B(
                      qs,
                      {
                        onQuestion: Be,
                        onChoose: s(j),
                        bets: s(b),
                        numNear3All: s(Y),
                        numDiff3: s(f),
                        numDiff2: s(x),
                      },
                      null,
                      8,
                      [
                        "onChoose",
                        "bets",
                        "numNear3All",
                        "numDiff3",
                        "numDiff2",
                      ]
                    ),
                    [[we, s(H) === 3]]
                  ),
                ]),
              ]),
              e("div", el, [
                (o(!0),
                i(
                  D,
                  null,
                  q(
                    je.value,
                    (w, W) => (
                      o(),
                      i(
                        "div",
                        {
                          key: W,
                          class: K({ active: w.comp == l.value }),
                          onClick: (Me) => (l.value = w.comp),
                        },
                        [e("span", null, a(w.name), 1)],
                        10,
                        tl
                      )
                    )
                  ),
                  128
                )),
              ]),
              e("div", sl, [
                (o(),
                qe(
                  wt,
                  null,
                  [
                    (o(),
                    qe(Nt, null, {
                      default: J(() => [(o(), qe(St(k.value)))]),
                      fallback: J(() => [nl]),
                      _: 1,
                    })),
                  ],
                  1024
                )),
              ]),
            ]),
            B(Un, { actNav: s(H) }, null, 8, ["actNav"]),
            P("声音"),
            B(
              te,
              {
                show: s(z),
                "onUpdate:show":
                  $[1] || ($[1] = (w) => (De(z) ? (z.value = w) : null)),
                "close-on-click-overlay": !1,
                round: "",
              },
              {
                default: J(() => [
                  B(s(jt), { onClose: $[0] || ($[0] = (w) => (z.value = !1)) }),
                ]),
                _: 1,
              },
              8,
              ["show"]
            ),
            P(" 玩法提示 "),
            B(
              te,
              {
                class: "qpopup",
                show: me.value,
                "onUpdate:show": $[3] || ($[3] = (w) => (me.value = w)),
                round: "",
              },
              {
                default: J(() => [
                  e("div", ll, [
                    e("div", al, [
                      (o(!0),
                      i(
                        D,
                        null,
                        q(
                          Le.value,
                          (w, W) => (
                            o(),
                            i(
                              "div",
                              { class: K("num number" + w), key: W },
                              null,
                              2
                            )
                          )
                        ),
                        128
                      )),
                    ]),
                    e("div", ol, a(Pe.value), 1),
                  ]),
                  e(
                    "i",
                    {
                      class: "close_pop",
                      onClick: $[2] || ($[2] = (w) => (me.value = !1)),
                    },
                    [B(Ue, { name: "close" })]
                  ),
                ]),
                _: 1,
              },
              8,
              ["show"]
            ),
            B(
              te,
              {
                onOpen: s(ve),
                show: s(c),
                "onUpdate:show":
                  $[4] || ($[4] = (w) => (De(c) ? (c.value = w) : null)),
                "close-on-click-overlay": !1,
                round: "",
              },
              {
                default: J(() => {
                  var w;
                  return [
                    B(
                      s(Xe),
                      {
                        title: (w = s(C)) == null ? void 0 : w.title,
                        onClose: s(Te),
                      },
                      {
                        default: J(() => {
                          var W;
                          return [
                            s(oe)
                              ? (o(),
                                i("div", il, [
                                  B(Ge, { type: "spinner", color: "#FD565C" }),
                                ]))
                              : (o(),
                                i(
                                  "div",
                                  {
                                    key: 1,
                                    innerHTML:
                                      (W = s(C)) == null ? void 0 : W.content,
                                  },
                                  null,
                                  8,
                                  ul
                                )),
                          ];
                        }),
                        _: 1,
                      },
                      8,
                      ["title", "onClose"]
                    ),
                  ];
                }),
                _: 1,
              },
              8,
              ["onOpen", "show"]
            ),
            B(
              s(Ht),
              { ref_key: "winner", ref: ie },
              {
                default: J(({ data: w }) => [
                  e("div", cl, [
                    (o(!0),
                    i(
                      D,
                      null,
                      q(
                        w.premium,
                        (W, Me) => (
                          o(), i("div", { class: K(["number" + W]) }, null, 2)
                        )
                      ),
                      256
                    )),
                  ]),
                  e("div", rl, [
                    e(
                      "div",
                      null,
                      a(w.sum > 10 ? s(p)("big") : s(p)("small")),
                      1
                    ),
                    e("div", pl, a(w.sum), 1),
                    e(
                      "div",
                      null,
                      a(w.sum % 2 ? s(p)("k3Odd") : s(p)("k3Even")),
                      1
                    ),
                  ]),
                ]),
                _: 1,
              },
              512
            ),
            B(xt),
          ])
        );
      };
    },
  });
const _l = re(dl, [
    ["__scopeId", "data-v-5153f4bc"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/K3/views/k33/index.vue",
    ],
  ]),
  ml = ce({
    __name: "index",
    setup(g) {
      const { useProvide: y, getWebData: _, setLotteryCode: R } = zt(),
        l = Dt().query.gameCode;
      y(), R(l);
      const r = Ut(),
        k = E(() => r.getIsShowLotteryDragon);
      return (
        tt(async () => {
          await _();
        }),
        (A, j) => (
          o(),
          i(
            D,
            null,
            [B(_l), k.value ? (o(), qe(Ft, { key: 0 })) : P("v-if", !0)],
            64
          )
        )
      );
    },
  }),
  vl = re(ml, [
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/views/saasLottery/K3/index.vue",
    ],
  ]),
  Bl = Object.freeze(
    Object.defineProperty(
      { __proto__: null, default: vl },
      Symbol.toStringTag,
      { value: "Module" }
    )
  );
export { Bl as i, fn as u };
