import {
  G as me,
  N as n,
  I as o,
  J as e,
  aB as se,
  P as t,
  O as a,
  K,
  M as F,
  ap as T,
  aC as Ee,
  aD as xe,
  z as Ke,
  A as Ne,
  r as v,
  B,
  $ as pe,
  a7 as ot,
  a8 as lt,
  H as Q,
  Q as b,
  av as G,
  ao as $,
  ax as vt,
  Z as at,
  aF as wt,
  aW as pt,
  au as Pe,
  C as it,
  W as mt,
  V as kt,
  Y as It,
  E as Tt,
  ay as Bt,
  a_ as Nt,
  bm as St,
  aT as Rt,
  bl as Dt,
  T as Lt,
} from "./common.modules-cecf9b0d.js";
import {
  u as ye,
  a as yt,
  N as Mt,
  O as Pt,
  c as Gt,
  d as nt,
  g as _t,
  e as ze,
  I as Ge,
  P as Vt,
  x as gt,
  j as ut,
  Q as Wt,
  m as ft,
  E as rt,
  v as ht,
  R as Ht,
  s as At,
  q as ct,
  r as Ot,
  L as jt,
  o as zt,
  W as Et,
  p as xt,
  C as Kt,
} from "./page-saasLottery-D5-c991f6a0.js";
import {
  _ as _e,
  cw as dt,
  c as ve,
  y as Xt,
} from "./page-activity-ActivityDetail-6713f46c.js";
const bt = (C) => (Ee("data-v-7e8b82da"), (C = C()), xe(), C),
  Ut = { class: "TimeLeft__C" },
  Zt = bt(() =>
    e(
      "svg",
      {
        xmlns: "http://www.w3.org/2000/svg",
        width: "36",
        height: "36",
        viewBox: "0 0 36 36",
        fill: "none",
      },
      [
        e("path", {
          d: "M23.67 3H12.33C6.66 3 5.25 4.515 5.25 10.56V27.45C5.25 31.44 7.44 32.385 10.095 29.535L10.11 29.52C11.34 28.215 13.215 28.32 14.28 29.745L15.795 31.77C17.01 33.375 18.975 33.375 20.19 31.77L21.705 29.745C22.785 28.305 24.66 28.2 25.89 29.52C28.56 32.37 30.735 31.425 30.735 27.435V10.56C30.75 4.515 29.34 3 23.67 3ZM11.67 18C10.845 18 10.17 17.325 10.17 16.5C10.17 15.675 10.845 15 11.67 15C12.495 15 13.17 15.675 13.17 16.5C13.17 17.325 12.495 18 11.67 18ZM11.67 12C10.845 12 10.17 11.325 10.17 10.5C10.17 9.675 10.845 9 11.67 9C12.495 9 13.17 9.675 13.17 10.5C13.17 11.325 12.495 12 11.67 12ZM24.345 17.625H16.095C15.48 17.625 14.97 17.115 14.97 16.5C14.97 15.885 15.48 15.375 16.095 15.375H24.345C24.96 15.375 25.47 15.885 25.47 16.5C25.47 17.115 24.96 17.625 24.345 17.625ZM24.345 11.625H16.095C15.48 11.625 14.97 11.115 14.97 10.5C14.97 9.885 15.48 9.375 16.095 9.375H24.345C24.96 9.375 25.47 9.885 25.47 10.5C25.47 11.115 24.96 11.625 24.345 11.625Z",
          fill: "currentColor",
        }),
      ],
      -1
    )
  ),
  Ft = { class: "TimeLeft__C-name" },
  Yt = { class: "TimeLeft__C-num" },
  qt = { class: "TimeLeft__C-id" },
  Jt = { class: "TimeLeft__C-text" },
  Qt = { class: "TimeLeft__C-time" },
  es = bt(() => e("div", null, ":", -1)),
  ts = me({
    __name: "WinGoInfo",
    props: {
      issue: { type: String, default: "" },
      numbers: { type: Array, default: () => [0, 0, 0, 0, 0] },
      countdownTime: { type: Array, default: ["0", "0", ":", "0", "0"] },
      handleRule: { type: Function, default: () => {} },
    },
    setup(C) {
      const { currentGame: k } = ye();
      return (H, N) => {
        var M;
        return (
          n(),
          o("div", Ut, [
            e(
              "div",
              {
                onClick: N[0] || (N[0] = (A) => C.handleRule()),
                class: "TimeLeft__C-rule",
              },
              [Zt, se(t(H.$t("binguo_playerRule")), 1)]
            ),
            e(
              "div",
              Ft,
              t(((M = a(k)) == null ? void 0 : M.gameName) || ""),
              1
            ),
            e("div", Yt, [
              (n(!0),
              o(
                K,
                null,
                F(
                  C.numbers,
                  (A, m) => (
                    n(), o("div", { key: m, class: T(["n" + A]) }, null, 2)
                  )
                ),
                128
              )),
            ]),
            e("div", qt, t(C.issue), 1),
            e("div", Jt, t(H.$t("timeLeftToBuy")), 1),
            e("div", Qt, [
              e("div", null, t(C.countdownTime[0]), 1),
              e("div", null, t(C.countdownTime[1]), 1),
              es,
              e("div", null, t(C.countdownTime[3]), 1),
              e("div", null, t(C.countdownTime[4]), 1),
            ]),
          ])
        );
      };
    },
  });
const ss = _e(ts, [
  ["__scopeId", "data-v-7e8b82da"],
  [
    "__file",
    "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/components/wingo3/WinGoInfo.vue",
  ],
]);
function as() {
  const C = ut(),
    { t: k } = Ke(),
    { localStore: H } = Gt(),
    { updateBalance: N, onBetTrigger: M, getGameInfo: A, gameInfo: m } = ye(),
    u = new Map(),
    c = Ne({
      betDialog: !1,
      amount: 1,
      betMultiple: 0,
      playType: "",
      playBet: null,
      playRate: 0,
      historyIssues: [],
      historyIssuesTotalPage: 0,
    }),
    D = v(!1),
    _ = v(1),
    X = v(!1),
    Z = v(!1),
    V = v(!1),
    E = v(""),
    I = v(-1),
    S = v(null),
    f = v(!1),
    r = v(),
    L = v(localStorage.getItem("volumeShow") || "1"),
    O = async (i) => {
      if (
        (L.value == "1" && (i <= 5 && i > 0 ? h(1) : i == 0 && h(2)),
        i == 5 && Te(),
        i == 1)
      ) {
        (V.value = !0),
          setTimeout(() => {
            V.value = !1;
          }, 2500),
          await nt(800);
        const p = await y(g.value);
        setTimeout(async () => {
          c.historyIssues = (p == null ? void 0 : p.list) || [];
        }, 800);
      }
    },
    {
      rates: s,
      betScopes: d,
      betMultiples: P,
      issue: g,
      countdown: l,
      countdownTime: U,
      canBet: ae,
      sound: ne,
      gameCode: oe,
      agreePreSale: ge,
      introduceDialog: Se,
      introduceLoading: fe,
      betLimitLoading: he,
      introduceHtml: ce,
      issueLoading: de,
      lotteryCode: be,
      betLimit: $e,
      issueData: ie,
      closeGame: Re,
      onSwitchIntroduce: De,
      onSwitchSound: W,
      getIssue: x,
      getIntroduce: Le,
      getBetLimit: Me,
      setLotteryCode: Ce,
      canAutoPlay: w,
      visibilityStatus: Y,
    } = yt({ processSound: O, useNext: !1 }),
    we = B(() => {
      var p;
      const i = (p = m.value) == null ? void 0 : p.webSocketUrl;
      return i ? i + `/connect?token=${H.get(Mt)}` : "";
    }),
    { open: Ue, close: Ze } = Pt(() => we.value, {
      autoReconnect: { retries: 10, delay: 3e3 },
      heartbeat: { interval: 5e3 },
      autoClose: !0,
      async onMessage(i, p) {
        let R = {};
        try {
          R = JSON.parse(p.data);
        } catch {}
        switch (R.PublishType) {
          case 0:
            await nt(1500),
              await Be(),
              setTimeout(async () => {
                await tt(), M();
              }, 2200);
            break;
        }
      },
    }),
    Fe = B(() => l.value.minutes === 0 && l.value.seconds < 6),
    Ve = Array.from({ length: 10 }, (i, p) => p),
    We = B(() => {
      const i = s.value.find(({ playType: p }) => p === "Num");
      return i
        ? Ve.map((p) => ({ playType: "Num", playBet: p, playRate: i.playRate }))
        : Ve.map((p) => ({ playType: "Num", playBet: p, playRate: 0 }));
    }),
    Ye = B(() => {
      const i = s.value.filter(({ playType: z }) => z === "Color");
      if (!i.length) return i;
      const p = i.reduce((z, ee) => {
          const { playType: te, playBet: ue, playRate: re } = ee;
          return (
            z[te] || (z[te] = {}),
            z[te][ue]
              ? z[te][ue].playRates.push(re)
              : (z[te][ue] = { ...ee, playRates: [re] }),
            z
          );
        }, {}),
        R = Object.values(p).flatMap((z) =>
          Object.values(z).map((ee) => {
            const te = Math.min(...ee.playRates),
              ue = Math.max(...ee.playRates);
            return {
              ...ee,
              playRateStr: te === ue ? `x${te}` : `x${te}/x${ue}`,
            };
          })
        );
      return [
        R.find((z) => z.playBet == "green"),
        R.find((z) => z.playBet == "violet"),
        R.find((z) => z.playBet == "red"),
      ];
    }),
    ke = B(() => {
      const i = s.value.find(({ playBet: R }) => R === "small");
      return [s.value.find(({ playBet: R }) => R === "big"), i];
    }),
    qe = B({
      get() {
        return c.betDialog;
      },
      set(i) {
        c.betDialog = i;
      },
    }),
    Je = B({
      get() {
        return c.amount;
      },
      set(i) {
        c.amount = i;
      },
    }),
    He = B(() => c.playRate),
    Ae = B(() => c.playBet),
    le = B(() => c.historyIssues),
    Qe = B(() => c.historyIssues[0] || {}),
    et = B(() => c.historyIssues.slice(1, 10) || []),
    Oe = B(() => c.historyIssuesTotalPage),
    Ie = (i) => {
      var p;
      X.value ||
        D.value ||
        (((p = ie.value) == null ? void 0 : p.gameCode) === oe.value &&
          ((c.playBet = i.playBet),
          (c.playType = i.playType),
          (c.playRate = i.playRate),
          (c.betDialog = !0),
          (c.amount = d.value[0] || 1),
          _.value || (_.value = P.value[0] || 1)));
    },
    Te = (i = !1) => {
      (c.betDialog = !1),
        (c.playRate = 0),
        (_.value = 1),
        (c.amount = 0),
        (c.playType = ""),
        i && u.clear(),
        setTimeout(() => {
          c.playBet = null;
        }, 300);
    },
    je = () => {
      X.value ||
        (ae.value &&
          ((X.value = !0),
          S.value ||
            (S.value = setInterval(function () {
              I.value = Math.floor(Math.random() * 11);
            }, 60)),
          setTimeout(function () {
            I.value > 9 && (I.value = 9),
              clearInterval(S.value),
              (X.value = !1),
              (S.value = null),
              ae.value && Ie(We.value.find((i) => i.playBet === I.value));
          }, 5e3)));
    },
    tt = async () => {
      try {
        let i = [...u.keys()].reverse();
        if (
          (l.value.seconds > 0 &&
            l.value.seconds <= l.value.interval &&
            (i = i.filter((re) => re !== g.value)),
          !i.length)
        )
          return;
        const p = i[0];
        if (le.value.findIndex((re) => re.issueNumber === p) > 0)
          return u.clear();
        const { result: z, data: ee } = await _t({ issueNumber: p });
        if (!z) return;
        if (ee.status === null) {
          u.delete(p);
          return;
        }
        if ((M(), u.delete(p), !r.value)) return;
        const te = ee.status === !0,
          ue = le.value.find((re) => re.issueNumber === p);
        r.value.open({
          isWin: te,
          amount: ee.winAmount || 0,
          issueNumber: p,
          result: ue,
        }),
          te && N();
      } catch {}
    },
    st = async () => {
      var i;
      if (!f.value) {
        if (!ge.value) return C.error(k("common.agreePreSale"));
        if (!g.value) return C.error(k("common.noIssueNumber"));
        if (
          c.playType &&
          ((i = ie.value) == null ? void 0 : i.gameCode) === oe.value
        ) {
          f.value = !0;
          try {
            const { result: p } = await Vt({
              gameCode: oe.value,
              issueNumber: g.value,
              amount: c.amount,
              betMultiple: _.value,
              betContent: `${c.playType}_${gt(c.playBet)}`,
            });
            if (!p) return;
            Te(),
              u.set(g.value, 1),
              C.success(k("common.betSuccessful")),
              N(),
              M();
          } catch {
          } finally {
            f.value = !1;
          }
        }
      }
    },
    Be = async () => {
      try {
        const { result: i, data: p } = await ze({
          gameCode: oe.value,
          lotteryCode: be.value,
        });
        if (!i) return;
        (c.historyIssues = p.list || []),
          (c.historyIssuesTotalPage = p.totalPage || 0);
      } catch {
      } finally {
      }
    },
    y = async (i) => {
      try {
        const { result: p, data: R } = await ze({
          gameCode: oe.value,
          lotteryCode: be.value,
        });
        if (!p) return;
        const z = R.list || [];
        c.historyIssuesTotalPage = R.totalPage || 0;
        const ee = z[0];
        return ee.issueNumber !== i
          ? { list: R.list, item: null }
          : { item: ee, list: R.list };
      } catch {
      } finally {
      }
    },
    h = async (i = 1) => {
      if ((localStorage.getItem("volumeShow") || "") == "2") return;
      const R = document.getElementById(`voice${i}`);
      if (R) {
        if (!(await w(R.src))) return;
        try {
          R == null || R.play();
        } catch {}
      }
    },
    q = () => {
      L.value == "1" ? (L.value = "2") : (L.value = "1"),
        localStorage.setItem("volumeShow", L.value);
    },
    j = async () => {
      await Promise.all([A(), x(!0), Be()]);
    },
    J = () => {
      ot(Ge, {
        betScopes: d,
        betMultiples: P,
        issue: g,
        canBet: ae,
        gameCode: oe,
        amount: Je,
        betDialog: qe,
        betMultiple: _,
        playRate: He,
        agreePreSale: ge,
        playBet: Ae,
        loading: f,
        sound: ne,
        historyIssues: le,
        betLimitLoading: he,
        historyIssuesTotalPage: Oe,
        betLimit: $e,
        onClearBet: Te,
        onBetting: st,
        getBetLimit: Me,
      });
    };
  return (
    pe(
      () => Y.value,
      (i) => {
        i && Be();
      }
    ),
    {
      betScopes: d,
      betMultiples: P,
      numbers: We,
      colors: Ye,
      bigSmalls: ke,
      issue: g,
      countdown: l,
      countdownTime: U,
      canBet: ae,
      sound: ne,
      randomNum: I,
      introduceDialog: Se,
      betMultiple: _,
      introduceLoading: fe,
      introduceHtml: ce,
      betLimitLoading: he,
      historyIssues: le,
      history1: Qe,
      history2: et,
      animationLock: Z,
      animationRoll: V,
      animationNumber: E,
      issueLoading: de,
      historyIssuesTotalPage: Oe,
      winner: r,
      closeGame: Re,
      onSwitchIntroduce: De,
      getIssue: x,
      onSwitchSound: W,
      useProvide: J,
      onBet: Ie,
      onRandom: je,
      onClearBet: Te,
      getIntroduce: Le,
      getHistoryIssues: Be,
      getlotteryissue: j,
      showMark: Fe,
      setVoice: q,
      VoiceType: L,
      setLotteryCode: Ce,
      open: Ue,
      websocketClose: Ze,
    }
  );
}
Ne({
  amount: 898989,
  history10: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
  typeid: 30,
  winGoLock: !1,
  issue: "2022040811318",
  currentTime: "",
  beginTime: "",
  typeList: [
    { typeID: 30, typeName: "wingo30s" },
    { typeID: 1, typeName: "wingo 1min" },
    { typeID: 2, typeName: "wingo 3min" },
    { typeID: 3, typeName: "wingo 5min" },
    { typeID: 5, typeName: "5D 1min" },
    { typeID: 6, typeName: "5D 3min" },
    { typeID: 7, typeName: "5D 5min" },
    { typeID: 8, typeName: "5D 10min" },
    { typeID: 9, typeName: "K3 1min" },
    { typeID: 10, typeName: "K3 3min" },
    { typeID: 11, typeName: "K3 5min" },
    { typeID: 12, typeName: "K3 10min" },
    { typeID: 13, typeName: "TRX 1min" },
    { typeID: 14, typeName: "TRX 3min" },
    { typeID: 15, typeName: "TRX 5min" },
    { typeID: 16, typeName: "TRX 10min" },
  ],
  passTime: 180,
  time1: 0,
  time2: 0,
  time3: 0,
  time4: 0,
  threeClose: !1,
  distanceToTop: 0,
  showHistory: !1,
});
Ne({
  coin: 0,
  count: 0,
  allCoin: 0,
  gametype: 0,
  typeid: 1,
  issuenumber: "",
  selecttype: 1,
  show: !1,
});
v(0);
v({});
v([]);
function kn() {
  return lt(Ge, {});
}
function In() {
  const C = ut(),
    { t: k } = Ke(),
    { updateBalance: H, onBetTrigger: N, getGameInfo: M, gameInfo: A } = ye(),
    m = new Map(),
    u = Ne({
      betDialog: !1,
      amount: 1,
      betMultiple: 0,
      playType: "",
      playBet: null,
      playRate: 0,
      historyIssues: [],
      historyIssuesTotalPage: 0,
    }),
    c = v(!1),
    D = v(1),
    _ = v(!1),
    X = v(!1),
    Z = v(!1),
    V = v(""),
    E = v(-1),
    I = v(null),
    S = v(!1),
    f = v(),
    r = v(localStorage.getItem("volumeShow") || "1"),
    L = async (y) => {
      if (
        (r.value == "1" && (y <= 5 && y > 0 ? je(1) : y == 0 && je(2)),
        y == 5 && le(),
        y == 1)
      ) {
        await nt(800);
        const h = await Te(P.value);
        setTimeout(async () => {
          u.historyIssues = (h == null ? void 0 : h.list) || [];
        }, 800),
          setTimeout(async () => {
            await et();
          }, 2200),
          dt("prediction", "timer", "");
      }
    },
    {
      rates: O,
      betScopes: s,
      betMultiples: d,
      issue: P,
      countdown: g,
      countdownTime: l,
      canBet: U,
      sound: ae,
      gameCode: ne,
      agreePreSale: oe,
      introduceDialog: ge,
      introduceLoading: Se,
      betLimitLoading: fe,
      introduceHtml: he,
      issueLoading: ce,
      lotteryCode: de,
      betLimit: be,
      issueData: $e,
      closeGame: ie,
      onSwitchIntroduce: Re,
      onSwitchSound: De,
      getIssue: W,
      getIntroduce: x,
      getBetLimit: Le,
      setLotteryCode: Me,
      visibilityStatus: Ce,
    } = yt({ processSound: L }),
    w = B(() => g.value.minutes === 0 && g.value.seconds < 6),
    Y = Array.from({ length: 10 }, (y, h) => h),
    we = B(() => {
      const y = O.value.find(({ playType: h }) => h === "Num");
      return y
        ? Y.map((h) => ({ playType: "Num", playBet: h, playRate: y.playRate }))
        : Y.map((h) => ({ playType: "Num", playBet: h, playRate: 0 }));
    }),
    Ue = B(() => {
      const y = O.value.filter(({ playType: j }) => j === "Color");
      if (!y.length) return y;
      const h = y.reduce((j, J) => {
          const { playType: i, playBet: p, playRate: R } = J;
          return (
            j[i] || (j[i] = {}),
            j[i][p]
              ? j[i][p].playRates.push(R)
              : (j[i][p] = { ...J, playRates: [R] }),
            j
          );
        }, {}),
        q = Object.values(h).flatMap((j) =>
          Object.values(j).map((J) => {
            const i = Math.min(...J.playRates),
              p = Math.max(...J.playRates);
            return { ...J, playRateStr: i === p ? `x${i}` : `x${i}/x${p}` };
          })
        );
      return [
        q.find((j) => j.playBet == "green"),
        q.find((j) => j.playBet == "violet"),
        q.find((j) => j.playBet == "red"),
      ];
    }),
    Ze = B(() => {
      const y = O.value.find(({ playBet: q }) => q === "small");
      return [O.value.find(({ playBet: q }) => q === "big"), y];
    }),
    Fe = B({
      get() {
        return u.betDialog;
      },
      set(y) {
        u.betDialog = y;
      },
    }),
    Ve = B({
      get() {
        return u.amount;
      },
      set(y) {
        u.amount = y;
      },
    }),
    We = B(() => u.playRate),
    Ye = B(() => u.playBet),
    ke = B(() => u.historyIssues),
    qe = B(() => u.historyIssues[0] || {}),
    Je = B(() => u.historyIssues.slice(1, 10) || []),
    He = B(() => u.historyIssuesTotalPage),
    Ae = (y) => {
      var h;
      _.value ||
        c.value ||
        (((h = $e.value) == null ? void 0 : h.gameCode) === ne.value &&
          ((u.playBet = y.playBet),
          (u.playType = y.playType),
          (u.playRate = y.playRate),
          (u.betDialog = !0),
          (u.amount = s.value[0] || 1),
          D.value || (D.value = d.value[0] || 1)));
    },
    le = (y = !1) => {
      (u.betDialog = !1),
        (u.playRate = 0),
        (D.value = 1),
        (u.amount = 0),
        (u.playType = ""),
        y && m.clear(),
        setTimeout(() => {
          u.playBet = null;
        }, 300);
    },
    Qe = () => {
      _.value ||
        (U.value &&
          ((_.value = !0),
          I.value ||
            (I.value = setInterval(function () {
              E.value = Math.floor(Math.random() * 11);
            }, 60)),
          setTimeout(function () {
            E.value > 9 && (E.value = 9),
              clearInterval(I.value),
              (_.value = !1),
              (I.value = null),
              U.value && Ae(we.value.find((y) => y.playBet === E.value));
          }, 5e3)));
    },
    et = async () => {
      try {
        const y = [...m.keys()].reverse();
        if (!y.length) return;
        const h = y[0];
        if (ke.value.findIndex((R) => R.issueNumber === h) > 0)
          return m.clear();
        const { result: j, data: J } = await _t({ issueNumber: h });
        if (!j) return;
        if (J.status === null) {
          m.delete(h);
          return;
        }
        if ((N(), m.delete(h), !f.value)) return;
        const i = J.status === !0;
        dt("prediction", "result", i ? 1 : 0);
        const p = ke.value.find((R) => R.issueNumber === h);
        f.value.open({
          isWin: i,
          amount: J.winAmount || 0,
          issueNumber: h,
          result: p,
        }),
          m.clear(),
          i && H();
      } catch {}
    },
    Oe = async () => {
      var y;
      if (!S.value) {
        if (!oe.value) return C.error(k("common.agreePreSale"));
        if (!P.value) return C.error(k("common.noIssueNumber"));
        if (
          u.playType &&
          ((y = $e.value) == null ? void 0 : y.gameCode) === ne.value
        ) {
          S.value = !0;
          try {
            const { result: h } = await Wt({
              gameCode: ne.value,
              issueNumber: P.value,
              amount: u.amount,
              betMultiple: D.value,
              betContent: `${u.playType}_${gt(u.playBet)}`,
            });
            if (!h) return;
            le(),
              m.set(P.value, 1),
              C.success(k("common.betSuccessful")),
              H(),
              N();
          } catch {
          } finally {
            S.value = !1;
          }
        }
      }
    },
    Ie = async () => {
      try {
        const { result: y, data: h } = await ze({
          gameCode: ne.value,
          lotteryCode: de.value,
        });
        if (!y) return;
        (u.historyIssues = h.list || []),
          (u.historyIssuesTotalPage = h.totalPage || 0);
      } catch {
      } finally {
      }
    },
    Te = async (y) => {
      try {
        const { result: h, data: q } = await ze({
          gameCode: ne.value,
          lotteryCode: de.value,
        });
        if (!h) return;
        const j = q.list || [];
        u.historyIssuesTotalPage = q.totalPage || 0;
        const J = j[0];
        return J.issueNumber !== y
          ? { list: q.list, item: null }
          : { item: J, list: q.list };
      } catch {
      } finally {
      }
    },
    je = (y = 1) => {
      const h = document.getElementById(`voice${y}`);
      h && (h == null || h.play());
    },
    tt = () => {
      r.value == "1" ? (r.value = "2") : (r.value = "1"),
        localStorage.setItem("volumeShow", r.value);
    },
    st = async () => {
      await Promise.all([M(), W(!0), Ie()]);
    },
    Be = () => {
      ot(Ge, {
        betScopes: s,
        betMultiples: d,
        issue: P,
        canBet: U,
        gameCode: ne,
        amount: Ve,
        betDialog: Fe,
        betMultiple: D,
        playRate: We,
        agreePreSale: oe,
        playBet: Ye,
        loading: S,
        sound: ae,
        historyIssues: ke,
        betLimitLoading: fe,
        historyIssuesTotalPage: He,
        betLimit: be,
        onClearBet: le,
        onBetting: Oe,
        getBetLimit: Le,
      });
    };
  return (
    pe(
      () => Ce.value,
      (y) => {
        y && Ie();
      }
    ),
    {
      betScopes: s,
      betMultiples: d,
      numbers: we,
      colors: Ue,
      bigSmalls: Ze,
      issue: P,
      countdown: g,
      countdownTime: l,
      canBet: U,
      sound: ae,
      randomNum: E,
      introduceDialog: ge,
      betMultiple: D,
      introduceLoading: Se,
      introduceHtml: he,
      betLimitLoading: fe,
      historyIssues: ke,
      history1: qe,
      history2: Je,
      animationLock: X,
      animationRoll: Z,
      animationNumber: V,
      issueLoading: ce,
      historyIssuesTotalPage: He,
      winner: f,
      closeGame: ie,
      onSwitchIntroduce: Re,
      getIssue: W,
      onSwitchSound: De,
      useProvide: Be,
      onBet: Ae,
      onRandom: Qe,
      onClearBet: le,
      getIntroduce: x,
      getHistoryIssues: Ie,
      getlotteryissue: st,
      showMark: w,
      setVoice: tt,
      VoiceType: r,
      setLotteryCode: Me,
    }
  );
}
function ns() {
  return lt(Ge, {});
}
const os = { class: "lottery-container" },
  ls = { class: "selection-text" },
  is = { class: "content" },
  us = { class: "amount-section" },
  rs = { class: "section-header" },
  cs = { class: "label" },
  ds = { class: "amount-buttons" },
  vs = ["onClick"],
  ps = { class: "multiplier-section" },
  ms = { class: "section-header" },
  ys = { class: "label" },
  _s = { class: "m" },
  gs = { class: "multiplier-buttons" },
  fs = ["onClick"],
  hs = { class: "agreement" },
  bs = { class: "balance" },
  $s = { class: "footer" },
  Cs = me({
    __name: "BettingPopup",
    props: { currentGame: { type: String, default: "" } },
    setup(C) {
      const { t: k } = Ke(),
        H = (f) => {
          f === 1 ? m.value > 1 && m.value-- : m.value++;
        };
      v("1");
      const N = v(!0),
        {
          betDialog: M,
          betMultiples: A,
          betMultiple: m,
          amount: u,
          onBetting: c,
          betScopes: D,
          playBet: _,
          onClearBet: X,
        } = ns(),
        { balance: Z } = ye(),
        V = v(!1),
        E = B(() => {
          let f = [1, 3, 7, 9],
            r = [2, 4, 6, 8];
          if (_.value === "violet") return "violet_bg";
          if (_.value === "small") return "small_bg";
          if (_.value === "big") return "big_bg";
          if (_.value === 0) return "zero_bg";
          if (_.value === 5) return "five_bg";
          if (f.includes(_.value) || _.value === "green") return "green_bg";
          if (r.includes(_.value) || _.value === "red") return "red_bg";
        }),
        I = ut(),
        S = () => {
          if (m.value * u.value > Z.value) return I.error(k("wfDesc3"));
          c();
        };
      return (f, r) => {
        const L = Q("van-checkbox"),
          O = Q("van-button"),
          s = Q("van-popup");
        return (
          n(),
          o(
            K,
            null,
            [
              b(
                s,
                {
                  show: a(M),
                  "onUpdate:show":
                    r[6] || (r[6] = (d) => (at(M) ? (M.value = d) : null)),
                  position: "bottom",
                  round: "",
                },
                {
                  default: G(() => [
                    e("div", os, [
                      $(" Curved Header "),
                      e(
                        "div",
                        { class: T(["header", E.value]) },
                        [
                          e("h1", null, t(C.currentGame), 1),
                          e("div", ls, [
                            e(
                              "span",
                              null,
                              t(a(k)("selectMay")) +
                                " " +
                                t(
                                  isNaN(Number(a(_)))
                                    ? a(k)(
                                        "bet" +
                                          (a(_).charAt(0).toUpperCase() +
                                            a(_).slice(1))
                                      )
                                    : a(_)
                                ),
                              1
                            ),
                          ]),
                        ],
                        2
                      ),
                      $(" Main Content "),
                      e("div", is, [
                        $(" Amount Section "),
                        e("div", us, [
                          e("div", rs, [
                            e("span", cs, t(a(k)("amount")), 1),
                            e("div", ds, [
                              (n(!0),
                              o(
                                K,
                                null,
                                F(
                                  a(D),
                                  (d) => (
                                    n(),
                                    o(
                                      "div",
                                      {
                                        key: d,
                                        class: T(
                                          a(u) === d
                                            ? `primary n_${a(_)}`
                                            : "default"
                                        ),
                                        onClick: (P) => (u.value = d),
                                      },
                                      t(d),
                                      11,
                                      vs
                                    )
                                  )
                                ),
                                128
                              )),
                            ]),
                          ]),
                        ]),
                        $(" Multiplier Section "),
                        e("div", ps, [
                          e("div", ms, [
                            e("span", ys, t(f.$t("quantity")), 1),
                            e("div", _s, [
                              e(
                                "div",
                                {
                                  class: T([`n_${a(_)}`]),
                                  onClick: r[0] || (r[0] = (d) => H(1)),
                                },
                                "-",
                                2
                              ),
                              vt(
                                e(
                                  "input",
                                  {
                                    "onUpdate:modelValue":
                                      r[1] ||
                                      (r[1] = (d) =>
                                        at(m) ? (m.value = d) : null),
                                    type: "number",
                                    onInput:
                                      r[2] ||
                                      (r[2] = (...d) =>
                                        f.enforceMaxValue &&
                                        f.enforceMaxValue(...d)),
                                  },
                                  null,
                                  544
                                ),
                                [[wt, a(m)]]
                              ),
                              e(
                                "div",
                                {
                                  class: T([`n_${a(_)}`]),
                                  onClick: r[3] || (r[3] = (d) => H(2)),
                                },
                                "+",
                                2
                              ),
                            ]),
                          ]),
                          e("div", gs, [
                            (n(!0),
                            o(
                              K,
                              null,
                              F(
                                a(A),
                                (d) => (
                                  n(),
                                  o(
                                    "div",
                                    {
                                      key: d,
                                      class: T(
                                        a(m) === d
                                          ? `primary n_${a(_)}`
                                          : "default"
                                      ),
                                      onClick: (P) => (m.value = d),
                                    },
                                    " X" + t(d),
                                    11,
                                    fs
                                  )
                                )
                              ),
                              128
                            )),
                          ]),
                        ]),
                        $(" Agreement Section "),
                        e("div", hs, [
                          b(
                            L,
                            {
                              modelValue: N.value,
                              "onUpdate:modelValue":
                                r[5] || (r[5] = (d) => (N.value = d)),
                              "checked-color": "var(--main-color)",
                            },
                            {
                              default: G(() => [
                                se(t(f.$t("agree")) + " ", 1),
                                e(
                                  "span",
                                  {
                                    class: "rules",
                                    onClick:
                                      r[4] ||
                                      (r[4] = pt(
                                        (d) => (V.value = !0),
                                        ["stop"]
                                      )),
                                  },
                                  t(f.$t("presaleRules")),
                                  1
                                ),
                              ]),
                              _: 1,
                            },
                            8,
                            ["modelValue"]
                          ),
                          e(
                            "div",
                            bs,
                            t(f.$t("balance")) + " :" + t(a(ve)(a(Z))),
                            1
                          ),
                        ]),
                      ]),
                      $(" Footer "),
                      e("div", $s, [
                        b(
                          O,
                          { class: "cancel", onClick: a(X) },
                          {
                            default: G(() => [se(t(a(k)("cancel")), 1)]),
                            _: 1,
                          },
                          8,
                          ["onClick"]
                        ),
                        b(
                          O,
                          {
                            class: T(`bet-amount n_${a(_)}`),
                            disabled: !N.value,
                            onClick: S,
                          },
                          {
                            default: G(() => [
                              se(
                                t(a(k)("totalAmount")) +
                                  " " +
                                  t(a(ve)(a(m) * a(u) || 0)),
                                1
                              ),
                            ]),
                            _: 1,
                          },
                          8,
                          ["class", "disabled"]
                        ),
                      ]),
                    ]),
                  ]),
                  _: 1,
                },
                8,
                ["show"]
              ),
              $(" 预售规则弹层 begin"),
              b(
                s,
                {
                  show: V.value,
                  "onUpdate:show": r[8] || (r[8] = (d) => (V.value = d)),
                  "close-on-click-overlay": !1,
                  round: "",
                },
                {
                  default: G(() => [
                    b(
                      a(ft),
                      {
                        title: a(k)("presaleRules"),
                        onClose: r[7] || (r[7] = (d) => (V.value = !1)),
                      },
                      { default: G(() => [se(t(f.$t("betPopTXT")), 1)]), _: 1 },
                      8,
                      ["title"]
                    ),
                  ]),
                  _: 1,
                },
                8,
                ["show"]
              ),
            ],
            64
          )
        );
      };
    },
  });
const ws = _e(Cs, [
  ["__scopeId", "data-v-8ad44ca9"],
  [
    "__file",
    "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/components/wingo3/BettingPopup.vue",
  ],
]);
Ne({
  amount: 898989,
  history10: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
  typeid: 30,
  winGoLock: !1,
  issue: "2022040811318",
  currentTime: "",
  beginTime: "",
  typeList: [
    { typeID: 30, typeName: "wingo30s" },
    { typeID: 1, typeName: "wingo 1min" },
    { typeID: 2, typeName: "wingo 3min" },
    { typeID: 3, typeName: "wingo 5min" },
    { typeID: 5, typeName: "5D 1min" },
    { typeID: 6, typeName: "5D 3min" },
    { typeID: 7, typeName: "5D 5min" },
    { typeID: 8, typeName: "5D 10min" },
    { typeID: 9, typeName: "K3 1min" },
    { typeID: 10, typeName: "K3 3min" },
    { typeID: 11, typeName: "K3 5min" },
    { typeID: 12, typeName: "K3 10min" },
    { typeID: 13, typeName: "TRX 1min" },
    { typeID: 14, typeName: "TRX 3min" },
    { typeID: 15, typeName: "TRX 5min" },
    { typeID: 16, typeName: "TRX 10min" },
  ],
  passTime: 180,
  time1: 0,
  time2: 0,
  time3: 0,
  time4: 0,
  threeClose: !1,
  distanceToTop: 0,
  showHistory: !1,
});
Ne({
  coin: 0,
  count: 0,
  allCoin: 0,
  gametype: 0,
  typeid: 1,
  issuenumber: "",
  selecttype: 1,
  show: !1,
});
v(0);
v({});
v([]);
function $t() {
  return lt(Ge, {});
}
const Xe = (C) => (Ee("data-v-043d3586"), (C = C()), xe(), C),
  ks = { class: "record" },
  Is = { class: "record-head" },
  Ts = { class: "record-body" },
  Bs = { key: 0 },
  Ns = { key: 1 },
  Ss = { class: "record-origin" },
  Rs = Xe(() => e("div", { class: "record-origin-I red" }, null, -1)),
  Ds = Xe(() => e("div", { class: "record-origin-I violet" }, null, -1)),
  Ls = { key: 1, class: "record-origin-I green" },
  Ms = { key: 2, class: "record-origin-I red" },
  Ps = Xe(() => e("div", { class: "record-origin-I green" }, null, -1)),
  Gs = Xe(() => e("div", { class: "record-origin-I violet" }, null, -1)),
  Vs = {
    key: 0,
    class: "flex-center record-body-loading",
    style: { height: "100%" },
  },
  Ws = { key: 1, class: "record-body-empty flex-center" },
  Hs = { key: 0, class: "record-foot" },
  As = { class: "record-foot-page" },
  Os = me({
    __name: "record",
    setup(C) {
      const { gameCode: k } = ye(),
        { historyIssues: H, historyIssuesTotalPage: N } = $t(),
        M = v([]),
        A = v(!1),
        m = B(() => (M.value.length ? M.value : H.value)),
        u = v(N.value),
        c = v(10),
        D = v(1),
        _ = () => {
          D.value < 2 || (D.value--, Z());
        },
        X = () => {
          D.value++, !(D.value > u.value) && Z();
        },
        Z = async () => {
          try {
            A.value = !0;
            const { result: I, data: S } = await ht({
              gameCode: k.value,
              pageNo: D.value,
              pageSize: c.value,
            });
            I &&
              ((M.value = S.list || []),
              (D.value = S.pageNo || 1),
              (u.value = S.totalPage || 0));
          } catch {
          } finally {
            A.value = !1;
          }
        },
        V = (I) => parseInt(I, 10) % 2 !== 0,
        E = (I) => {
          let S = "";
          switch ((V(I) ? (S = "greenColor") : (S = "defaultColor"), I)) {
            case "0":
              S = "mixedColor0";
              break;
            case "5":
              S = "mixedColor5";
              break;
          }
          return S;
        };
      return (
        pe(H, () => {
          (M.value = []), (D.value = 1);
        }),
        pe(N, () => {
          u.value = N.value;
        }),
        (I, S) => {
          const f = Q("van-col"),
            r = Q("van-row"),
            L = Q("van-loading"),
            O = Q("van-icon");
          return (
            n(),
            o("div", ks, [
              e("div", Is, [
                b(r, null, {
                  default: G(() => [
                    b(
                      f,
                      { span: "10" },
                      { default: G(() => [se(t(I.$t("betIssue")), 1)]), _: 1 }
                    ),
                    b(
                      f,
                      { span: "5" },
                      { default: G(() => [se(t(I.$t("number")), 1)]), _: 1 }
                    ),
                    b(
                      f,
                      { span: "5" },
                      { default: G(() => [se(t(I.$t("bigOrSmall")), 1)]), _: 1 }
                    ),
                    b(
                      f,
                      { span: "4" },
                      { default: G(() => [se(t(I.$t("color")), 1)]), _: 1 }
                    ),
                  ]),
                  _: 1,
                }),
              ]),
              e("div", Ts, [
                (n(!0),
                o(
                  K,
                  null,
                  F(
                    m.value,
                    (s, d) => (
                      n(),
                      Pe(
                        r,
                        { key: d },
                        {
                          default: G(() => [
                            b(
                              f,
                              { span: "10" },
                              {
                                default: G(() => [se(t(s.issueNumber), 1)]),
                                _: 2,
                              },
                              1024
                            ),
                            b(
                              f,
                              { span: "5", class: "numcenter" },
                              {
                                default: G(() => [
                                  e(
                                    "div",
                                    {
                                      class: T([
                                        "record-body-num",
                                        E(s.number),
                                      ]),
                                    },
                                    t(s.number),
                                    3
                                  ),
                                ]),
                                _: 2,
                              },
                              1024
                            ),
                            b(
                              f,
                              { span: "5" },
                              {
                                default: G(() => [
                                  Number(s.number) > 4
                                    ? (n(), o("span", Bs, t(I.$t("betBig")), 1))
                                    : (n(),
                                      o("span", Ns, t(I.$t("betSmall")), 1)),
                                ]),
                                _: 2,
                              },
                              1024
                            ),
                            b(
                              f,
                              { span: "4" },
                              {
                                default: G(() => [
                                  e("div", Ss, [
                                    s.number == "0"
                                      ? (n(), o(K, { key: 0 }, [Rs, Ds], 64))
                                      : $("v-if", !0),
                                    s.number == "1" ||
                                    s.number == "3" ||
                                    s.number == "7" ||
                                    s.number == "9"
                                      ? (n(), o("div", Ls))
                                      : $("v-if", !0),
                                    s.number == "2" ||
                                    s.number == "4" ||
                                    s.number == "6" ||
                                    s.number == "8"
                                      ? (n(), o("div", Ms))
                                      : $("v-if", !0),
                                    s.number == "5"
                                      ? (n(), o(K, { key: 3 }, [Ps, Gs], 64))
                                      : $("v-if", !0),
                                  ]),
                                ]),
                                _: 2,
                              },
                              1024
                            ),
                          ]),
                          _: 2,
                        },
                        1024
                      )
                    )
                  ),
                  128
                )),
                A.value
                  ? (n(),
                    o("section", Vs, [
                      b(L, { type: "spinner", color: "#FD565C" }),
                    ]))
                  : $("v-if", !0),
                m.value.length === 0 && !A.value
                  ? (n(), o("div", Ws, [b(a(rt))]))
                  : $("v-if", !0),
              ]),
              m.value.length
                ? (n(),
                  o("div", Hs, [
                    e(
                      "div",
                      {
                        class: T([
                          "record-foot-previous",
                          { disabled: D.value <= 1 },
                        ]),
                        onClick: _,
                      },
                      [
                        b(O, {
                          name: "arrow-left",
                          class: "record-icon",
                          size: "20",
                        }),
                      ],
                      2
                    ),
                    e("div", As, t(D.value) + "/" + t(u.value), 1),
                    e(
                      "div",
                      {
                        class: T([
                          "record-foot-next",
                          { disabled: D.value >= u.value },
                        ]),
                        onClick: X,
                      },
                      [
                        b(O, {
                          name: "arrow",
                          class: "record-icon",
                          size: "20",
                        }),
                      ],
                      2
                    ),
                  ]))
                : $("v-if", !0),
            ])
          );
        }
      );
    },
  });
const js = _e(Os, [
    ["__scopeId", "data-v-043d3586"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/components/wingo3/record.vue",
    ],
  ]),
  zs = { class: "t" },
  Es = { class: "t_head" },
  xs = { class: "t-b1" },
  Ks = { class: "t-b1-l" },
  Xs = { class: "t-b1-l-n" },
  Us = { class: "t-b1-l" },
  Zs = { class: "t-b1-l-n" },
  Fs = { class: "t-b1-l" },
  Ys = { class: "t-b1-l-n" },
  qs = { class: "t-b1-l" },
  Js = { class: "t-b1-l-n" },
  Qs = { class: "t-b2" },
  ea = ["IssueNumber", "Number", "Colour", "rowId"],
  ta = { class: "t-b2-i" },
  sa = { class: "t-b2-Num" },
  aa = ["id"],
  na = { key: 0, class: "flex-center t-b2-loading", style: { height: "100%" } },
  oa = { key: 1, class: "t-b2-empty flex-center" },
  la = { key: 0, class: "t-foot" },
  ia = { class: "t-foot-page" },
  ua = me({
    __name: "trend",
    setup(C) {
      const {
          historyIssues: k,
          gameCode: H,
          historyIssuesTotalPage: N,
          issue: M,
        } = $t(),
        A = v([]),
        m = B(() => (A.value.length ? A.value : k.value)),
        u = v([]),
        c = v(1),
        D = v(10),
        _ = v(!1),
        X = v(N.value);
      function Z() {
        kt(() => {
          for (let r = 0; r < m.value.length; r++)
            m.value[r + 1] && V(r, m.value[r], m.value[r + 1]);
        });
      }
      function V(r, L, O) {
        let s = parseInt(L.number),
          d = parseInt(O.number);
        const P = document.getElementById("myCanvas" + r);
        if (P && P.getContext) {
          var g = P.getContext("2d");
          g.clearRect(0, 0, P.width, P.height),
            g.beginPath(),
            g.moveTo(s == 0 ? 20 : s * 29 + 20, 0),
            g.lineTo(d == 0 ? 20 : d * 29 + 20, P.height),
            (g.strokeStyle = "red"),
            g.stroke(),
            g.closePath();
        }
      }
      const E = () => {
          c.value < 2 || (c.value--, f());
        },
        I = () => {
          c.value++, !(c.value > X.value) && f();
        },
        S = async () => {
          const { result: r, data: L } = await Ht({
            gameCode: H.value,
            pageNo: c.value,
            pageSize: 10,
          });
          r && (u.value = L);
        },
        f = async () => {
          try {
            _.value = !0;
            const { result: r, data: L } = await ht({
              gameCode: H.value,
              pageNo: c.value,
              pageSize: D.value,
            });
            r &&
              ((A.value = L.list || []),
              (c.value = L.pageNo || 1),
              (X.value = L.totalPage || 0));
          } catch {
          } finally {
            _.value = !1;
          }
        };
      return (
        it(async () => {
          m.value.length && Z(), await S();
        }),
        mt(() => {
          Z(), S(), f();
        }),
        pe(M, () => {
          S();
        }),
        pe(m, () => {
          Z();
        }),
        (r, L) => {
          const O = Q("van-col"),
            s = Q("van-row"),
            d = Q("van-loading"),
            P = Q("van-icon");
          return (
            n(),
            o("div", zs, [
              e("div", Es, [
                e("div", null, t(r.$t("betIssue")), 1),
                e("div", null, t(r.$t("number")), 1),
              ]),
              e("div", xs, [
                $('      <div class="t-b1-l w">'),
                $(`        <span class="w">{{ $t('w8') }}</span>`),
                $("        <span>{{ $t('w9') }}</span>"),
                $("      </div>"),
                $('      <div class="t-b1-l lottery">'),
                $("        <div>{{ $t('w11') }}</div>"),
                $('        <div class="t-b1-l-n" >'),
                $(
                  '          <div v-for="item in 10" :key="item">{{ item - 1 }}</div>'
                ),
                $("        </div>"),
                $("      </div>"),
                e("div", Ks, [
                  e("div", null, t(r.$t("trendDesc3")), 1),
                  e("div", Xs, [
                    (n(!0),
                    o(
                      K,
                      null,
                      F(
                        u.value,
                        (g, l) => (
                          n(), o("div", { key: "4" + l }, t(g.missingCount), 1)
                        )
                      ),
                      128
                    )),
                  ]),
                ]),
                e("div", Us, [
                  e("div", null, t(r.$t("trendDesc4")), 1),
                  e("div", Zs, [
                    (n(!0),
                    o(
                      K,
                      null,
                      F(
                        u.value,
                        (g, l) => (
                          n(), o("div", { key: "2" + l }, t(g.avgMissing), 1)
                        )
                      ),
                      128
                    )),
                  ]),
                ]),
                e("div", Fs, [
                  e("div", null, t(r.$t("trendDesc5")), 1),
                  e("div", Ys, [
                    (n(!0),
                    o(
                      K,
                      null,
                      F(
                        u.value,
                        (g, l) => (
                          n(), o("div", { key: "5" + l }, t(g.openCount), 1)
                        )
                      ),
                      128
                    )),
                  ]),
                ]),
                e("div", qs, [
                  e("div", null, t(r.$t("trendDesc6")), 1),
                  e("div", Js, [
                    (n(!0),
                    o(
                      K,
                      null,
                      F(
                        u.value,
                        (g, l) => (
                          n(), o("div", { key: "3" + l }, t(g.maxContinuous), 1)
                        )
                      ),
                      128
                    )),
                  ]),
                ]),
              ]),
              e("div", Qs, [
                (n(!0),
                o(
                  K,
                  null,
                  F(
                    m.value,
                    (g, l) => (
                      n(),
                      o(
                        "div",
                        {
                          key: l,
                          IssueNumber: g.issueNumber,
                          Number: g.number,
                          Colour: g.colour,
                          rowId: l,
                          class: "t-b2-item",
                        },
                        [
                          b(
                            s,
                            null,
                            {
                              default: G(() => [
                                b(
                                  O,
                                  { span: "9" },
                                  {
                                    default: G(() => [
                                      e("div", ta, t(g.issueNumber), 1),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                                b(
                                  O,
                                  { span: "15" },
                                  {
                                    default: G(() => [
                                      e("div", sa, [
                                        e(
                                          "canvas",
                                          {
                                            id: "myCanvas" + l,
                                            ref_for: !0,
                                            ref: "canvas",
                                            class: "line-canvas",
                                          },
                                          null,
                                          8,
                                          aa
                                        ),
                                        (n(),
                                        o(
                                          K,
                                          null,
                                          F(10, (U) =>
                                            e(
                                              "div",
                                              {
                                                class: T([
                                                  "t-b2-Num-item",
                                                  Number(g.number) == U - 1
                                                    ? "action" + (U - 1)
                                                    : "",
                                                ]),
                                                key: U,
                                              },
                                              t(U - 1),
                                              3
                                            )
                                          ),
                                          64
                                        )),
                                        e(
                                          "div",
                                          {
                                            class: T([
                                              "t-b2-Num-BS",
                                              { isB: Number(g.number) > 4 },
                                            ]),
                                          },
                                          t(Number(g.number) > 4 ? "B" : "S"),
                                          3
                                        ),
                                      ]),
                                    ]),
                                    _: 2,
                                  },
                                  1024
                                ),
                              ]),
                              _: 2,
                            },
                            1024
                          ),
                        ],
                        8,
                        ea
                      )
                    )
                  ),
                  128
                )),
                _.value
                  ? (n(),
                    o("div", na, [b(d, { type: "spinner", color: "#FD565C" })]))
                  : $("v-if", !0),
                m.value.length === 0 && !_.value
                  ? (n(), o("div", oa, [b(a(rt))]))
                  : $("v-if", !0),
              ]),
              m.value.length
                ? (n(),
                  o("div", la, [
                    e(
                      "div",
                      {
                        class: T([
                          "t-foot-previous",
                          { disabled: c.value <= 1 },
                        ]),
                        onClick: E,
                      },
                      [
                        b(P, {
                          name: "arrow-left",
                          class: "t-icon",
                          size: "20",
                        }),
                      ],
                      2
                    ),
                    e("div", ia, t(c.value) + "/" + t(X.value), 1),
                    e(
                      "div",
                      {
                        class: T([
                          "t-foot-next",
                          { disabled: c.value >= X.value },
                        ]),
                        onClick: I,
                      },
                      [b(P, { name: "arrow", class: "t-icon", size: "20" })],
                      2
                    ),
                  ]))
                : $("v-if", !0),
            ])
          );
        }
      );
    },
  });
const ra = _e(ua, [
    ["__scopeId", "data-v-e9f79b98"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/components/wingo3/trend.vue",
    ],
  ]),
  Ct = (C) => (Ee("data-v-8cb78ec8"), (C = C()), xe(), C),
  ca = { class: "my_r" },
  da = { class: "my_r-body" },
  va = { key: 0, class: "list" },
  pa = ["onClick"],
  ma = { class: "list-item-l" },
  ya = { class: "list-item-m" },
  _a = { class: "list-item-m-top" },
  ga = Ct(() =>
    e(
      "path",
      {
        d: "M5.21907 7.57895C4.89494 8.14035 4.08463 8.14035 3.7605 7.57895L0.114077 1.26316C-0.210049 0.701754 0.195109 -5.66721e-08 0.843362 0L8.13621 6.37561e-07C8.78446 6.94233e-07 9.18962 0.701755 8.86549 1.26316L5.21907 7.57895Z",
        fill: "#323536",
      },
      null,
      -1
    )
  ),
  fa = [ga],
  ha = { class: "list-item-m-bottom" },
  ba = { key: 0, class: "list-detail" },
  $a = { class: "list-detail-text" },
  Ca = { class: "list-detail-line" },
  wa = ["onClick"],
  ka = Ct(() =>
    e(
      "svg",
      {
        class: "copy_svg",
        xmlns: "http://www.w3.org/2000/svg",
        viewBox: "0 0 24 24",
        fill: "none",
      },
      [
        e("path", {
          d: "M6.5 6.2158V3.90625C6.5 3.1296 7.1296 2.5 7.90625 2.5H20.0938C20.8704 2.5 21.5 3.1296 21.5 3.90625V16.0938C21.5 16.8704 20.8704 17.5 20.0938 17.5H17.7582",
          stroke: "#666666",
          "stroke-width": "2",
          "stroke-linecap": "round",
          "stroke-linejoin": "round",
        }),
        e("path", {
          d: "M16.0938 6.5H3.90625C3.1296 6.5 2.5 7.1296 2.5 7.90625V20.0938C2.5 20.8704 3.1296 21.5 3.90625 21.5H16.0938C16.8704 21.5 17.5 20.8704 17.5 20.0938V7.90625C17.5 7.1296 16.8704 6.5 16.0938 6.5Z",
          stroke: "#666666",
          "stroke-width": "2",
          "stroke-linejoin": "round",
        }),
      ],
      -1
    )
  ),
  Ia = { class: "list-detail-line" },
  Ta = { class: "list-detail-line" },
  Ba = { class: "list-detail-line" },
  Na = { class: "list-detail-line" },
  Sa = { class: "red" },
  Ra = { class: "list-detail-line" },
  Da = { class: "list-detail-line" },
  La = { key: 0 },
  Ma = { class: "list-inlineB" },
  Pa = { key: 0, class: "list-inlineB violet" },
  Ga = { key: 1 },
  Va = { class: "list-detail-line" },
  Wa = { class: "list-detail-line" },
  Ha = { key: 1 },
  Aa = { class: "list-detail-line" },
  Oa = { key: 1 },
  ja = { class: "list-detail-line" },
  za = { key: 1, class: "my_r-body-empty" },
  Ea = { key: 2, class: "flex-center", style: { height: "4rem" } },
  xa = { key: 0, class: "my_r-foot" },
  Ka = { class: "my_r-foot-page" },
  Xa = me({
    __name: "myRecord",
    setup(C) {
      const { t: k } = Ke(),
        { gameCode: H, trigger: N } = ye(),
        M = v(4),
        A = v(10),
        m = v(1),
        u = v([]),
        c = v(!1);
      pe(
        () => H.value,
        (s) => {
          s && V();
        }
      );
      const D = () => {
          m.value--, V();
        },
        _ = () => {
          m.value++, V();
        },
        X = (s) => {
          switch (s) {
            case "BigSmall_Small":
              return k("small");
            case "BigSmall_Big":
              return k("big");
            case "Color_Green":
              return k("green");
            case "Color_Violet":
              return k("purpleColor");
            case "Color_Red":
              return k("redColor");
            default:
              return s;
          }
        },
        Z = {
          Big: { name: k("betBig"), code: "Big" },
          Small: { name: k("betSmall"), code: "Small" },
        },
        V = async () => {
          if (!c.value)
            try {
              (c.value = !0), (u.value = []);
              const { result: s, data: d } = await At({
                pageSize: A.value,
                pageNo: m.value,
                gameCode: H.value,
              });
              s &&
                ((u.value = (d == null ? void 0 : d.list) || []),
                (M.value = (d == null ? void 0 : d.totalPage) || 0));
            } catch {
            } finally {
              c.value = !1;
            }
        },
        E = v(-1),
        I = (s) => (s ? (s == null ? void 0 : s.split("_")[1]) : ""),
        S = (s) => {
          var d;
          return s
            ? (s == null ? void 0 : s.split("_")[0]) == "Color"
              ? " "
              : ["Big", "Small"].includes(s == null ? void 0 : s.split("_")[1])
              ? (d = Z[s == null ? void 0 : s.split("_")[1]]) == null
                ? void 0
                : d.name
              : s == null
              ? void 0
              : s.split("_")[1]
            : "";
        },
        f = (s) => {
          switch (s % 2) {
            case 1:
              return k("betGreen");
            default:
              return k("betRed");
          }
        },
        r = (s) => {
          switch (s % 2) {
            case 1:
              return "green";
            default:
              return "red";
          }
        },
        L = (s) => {
          E.value == s ? (E.value = -1) : (E.value = s);
        },
        O = v(!1);
      return (
        It(() => {
          (O.value = !0), N.reset();
        }),
        it(() => {
          V();
        }),
        mt(() => {
          (O.value = !1),
            V(),
            N.on(() => {
              V();
            });
        }),
        (s, d) => {
          const P = Q("van-loading"),
            g = Q("van-icon");
          return (
            n(),
            o("div", ca, [
              e("div", da, [
                u.value.length
                  ? (n(),
                    o("div", va, [
                      (n(!0),
                      o(
                        K,
                        null,
                        F(
                          u.value,
                          (l, U) => (
                            n(),
                            o("div", { key: U }, [
                              e(
                                "div",
                                {
                                  class: "list-item",
                                  onClick: pt(
                                    (ae) => L(U),
                                    ["stop", "prevent"]
                                  ),
                                },
                                [
                                  e("div", ma, [
                                    e(
                                      "div",
                                      {
                                        class: T([
                                          "list-item-l-" +
                                            I(l.betContent).toLocaleLowerCase(),
                                        ]),
                                      },
                                      t(S(l.betContent)),
                                      3
                                    ),
                                  ]),
                                  e("div", ya, [
                                    e("div", _a, [
                                      se(t(l.issueNumber) + " ", 1),
                                      (n(),
                                      o(
                                        "svg",
                                        {
                                          xmlns: "http://www.w3.org/2000/svg",
                                          class: T({ r: U == E.value }),
                                          width: "9",
                                          height: "8",
                                          viewBox: "0 0 9 8",
                                          fill: "none",
                                        },
                                        fa,
                                        2
                                      )),
                                    ]),
                                    e("div", ha, t(a(ct)(l.betTime)), 1),
                                  ]),
                                  l.state != 2
                                    ? (n(),
                                      o(
                                        "div",
                                        {
                                          key: 0,
                                          class: T([
                                            "list-item-r",
                                            { success: l.state },
                                          ]),
                                        },
                                        [
                                          e(
                                            "div",
                                            { class: T({ success: l.state }) },
                                            t(
                                              l.state
                                                ? s.$t("success")
                                                : s.$t("fail")
                                            ),
                                            3
                                          ),
                                          e(
                                            "span",
                                            null,
                                            t(
                                              `${l.state ? "+" : ""}${a(ve)(
                                                l.state
                                                  ? l.winLoseAmount + l.amount
                                                  : l.winLoseAmount
                                              )}`
                                            ),
                                            1
                                          ),
                                        ],
                                        2
                                      ))
                                    : $("v-if", !0),
                                ],
                                8,
                                pa
                              ),
                              U == E.value
                                ? (n(),
                                  o("div", ba, [
                                    e("div", $a, t(s.$t("detailMay")), 1),
                                    e("div", Ca, [
                                      e("span", null, t(s.$t("orderNoMay")), 1),
                                      e(
                                        "div",
                                        {
                                          class: "list-detail-copy",
                                          onClick: (ae) => a(Ot)(l.orderNo),
                                        },
                                        [se(t(l.orderNo) + " ", 1), ka],
                                        8,
                                        wa
                                      ),
                                    ]),
                                    e("div", Ia, [
                                      e("span", null, t(s.$t("issueMay")), 1),
                                      e("div", null, t(l.issueNumber), 1),
                                    ]),
                                    e("div", Ta, [
                                      e("span", null, t(s.$t("amountMay")), 1),
                                      e("div", null, t(a(ve)(l.amount)), 1),
                                    ]),
                                    e("div", Ba, [
                                      e("span", null, t(s.$t("numMay")), 1),
                                      e("div", null, t(l.betMultiple), 1),
                                    ]),
                                    e("div", Na, [
                                      e(
                                        "span",
                                        null,
                                        t(s.$t("afterTaxAmount")),
                                        1
                                      ),
                                      e("div", Sa, t(a(ve)(l.realAmount)), 1),
                                    ]),
                                    e("div", Ra, [
                                      e("span", null, t(s.$t("tax")), 1),
                                      e("div", null, t(a(ve)(l.fee)), 1),
                                    ]),
                                    e("div", Da, [
                                      e("span", null, t(s.$t("resultMay")), 1),
                                      l.number
                                        ? (n(),
                                          o("div", La, [
                                            e("div", Ma, t(l.number), 1),
                                            e(
                                              "div",
                                              {
                                                class: T([
                                                  "list-inlineB",
                                                  [r(Number(l.number))],
                                                ]),
                                              },
                                              t(f(Number(l.number))),
                                              3
                                            ),
                                            l.number == 0 || l.number == 5
                                              ? (n(),
                                                o(
                                                  "div",
                                                  Pa,
                                                  t(s.$t("purpleColor")),
                                                  1
                                                ))
                                              : $("v-if", !0),
                                            e(
                                              "div",
                                              {
                                                class: T([
                                                  "list-inlineB",
                                                  [
                                                    Number(l.number) > 4
                                                      ? "big"
                                                      : "small",
                                                  ],
                                                ]),
                                              },
                                              t(
                                                Number(l.number) > 4
                                                  ? s.$t("betBig")
                                                  : s.$t("betSmall")
                                              ),
                                              3
                                            ),
                                          ]))
                                        : (n(), o("div", Ga, "--")),
                                    ]),
                                    e("div", Va, [
                                      e("span", null, t(s.$t("selectMay")), 1),
                                      e(
                                        "div",
                                        null,
                                        t(
                                          l.playType == "Num"
                                            ? I(l.betContent)
                                            : X(l.betContent)
                                        ),
                                        1
                                      ),
                                    ]),
                                    e("div", Wa, [
                                      e("span", null, t(s.$t("statusMay")), 1),
                                      l.state != 2
                                        ? (n(),
                                          o(
                                            "div",
                                            {
                                              key: 0,
                                              class: T([
                                                l.state ? "green" : "red",
                                              ]),
                                            },
                                            t(
                                              l.state
                                                ? s.$t("success")
                                                : s.$t("fail")
                                            ),
                                            3
                                          ))
                                        : (n(),
                                          o(
                                            "div",
                                            Ha,
                                            t(s.$t("k3RecordDesc9")),
                                            1
                                          )),
                                    ]),
                                    e("div", Aa, [
                                      e("span", null, t(s.$t("winOrLose")), 1),
                                      l.state != 2
                                        ? (n(),
                                          o(
                                            "div",
                                            {
                                              key: 0,
                                              class: T([
                                                l.state ? "green" : "red",
                                              ]),
                                            },
                                            t(
                                              `${l.state ? "+" : ""} ${a(ve)(
                                                l.state
                                                  ? l.winLoseAmount + l.amount
                                                  : l.winLoseAmount
                                              )}`
                                            ),
                                            3
                                          ))
                                        : (n(), o("div", Oa, "--")),
                                    ]),
                                    e("div", ja, [
                                      e("span", null, t(s.$t("createTime")), 1),
                                      e(
                                        "div",
                                        null,
                                        t(
                                          a(ct)(
                                            l.betTime,
                                            "YYYY-MM-DD HH:mm:ss"
                                          )
                                        ),
                                        1
                                      ),
                                    ]),
                                  ]))
                                : $("v-if", !0),
                            ])
                          )
                        ),
                        128
                      )),
                    ]))
                  : $("v-if", !0),
                !u.value.length && !c.value
                  ? (n(), o("div", za, [b(a(rt))]))
                  : $("v-if", !0),
                c.value
                  ? (n(),
                    o("section", Ea, [
                      b(P, { type: "spinner", color: "var(--main-color)" }),
                    ]))
                  : $("v-if", !0),
              ]),
              u.value.length
                ? (n(),
                  o("div", xa, [
                    e(
                      "div",
                      {
                        class: T([
                          "my_r-foot-previous",
                          { disabled: m.value <= 1 },
                        ]),
                        onClick: D,
                      },
                      [
                        b(g, {
                          name: "arrow-left",
                          class: "my_r-icon",
                          size: "20",
                        }),
                      ],
                      2
                    ),
                    e("div", Ka, t(m.value) + "/" + t(M.value), 1),
                    e(
                      "div",
                      {
                        class: T([
                          "my_r-foot-next",
                          { disabled: m.value >= M.value },
                        ]),
                        onClick: _,
                      },
                      [b(g, { name: "arrow", class: "my_r-icon", size: "20" })],
                      2
                    ),
                  ]))
                : $("v-if", !0),
            ])
          );
        }
      );
    },
  });
const Ua = _e(Xa, [
    ["__scopeId", "data-v-8cb78ec8"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/components/wingo3/myRecord.vue",
    ],
  ]),
  Za = (C) => (Ee("data-v-d7ba5957"), (C = C()), xe(), C),
  Fa = { class: "videowingo" },
  Ya = { class: "Betting__C" },
  qa = { class: "Betting__C-mark" },
  Ja = { key: 0, class: "Betting__C-mark closeGame" },
  Qa = { key: 1 },
  en = { class: "Betting__C-head" },
  tn = ["onClick"],
  sn = { class: "Betting__C-numC" },
  an = ["onClick"],
  nn = { class: "Betting__C-multiple" },
  on = ["onClick"],
  ln = { class: "Betting__C-foot" },
  un = { class: "history" },
  rn = { class: "nav noScroll", ref: "navRef" },
  cn = { class: "nav-container noScroll" },
  dn = { class: "nav-box" },
  vn = Za(() => e("p", { style: { height: "200px" } }, null, -1)),
  pn = { class: "winner_box" },
  mn = { class: "winner_result" },
  yn = { key: 0, class: "flex-center", style: { height: "100%" } },
  _n = ["innerHTML"],
  gn = me({
    __name: "index",
    setup(C) {
      const { getWebData: k, currentGame: H } = ye(),
        N = v("Record"),
        M = B(() => {
          switch (N.value) {
            case "Record":
              return js;
            case "Trend":
              return ra;
            case "MyRecord":
              return Ua;
            default:
              return null;
          }
        }),
        A = as();
      ot("WinHook", A);
      const {
        randomNum: m,
        numbers: u,
        colors: c,
        bigSmalls: D,
        issue: _,
        countdownTime: X,
        betMultiples: Z,
        betMultiple: V,
        getIssue: E,
        useProvide: I,
        getHistoryIssues: S,
        countdown: f,
        historyIssues: r,
        onBet: L,
        onRandom: O,
        showMark: s,
        winner: d,
        getIntroduce: P,
        introduceDialog: g,
        onSwitchIntroduce: l,
        introduceHtml: U,
        introduceLoading: ae,
        getlotteryissue: ne,
        setVoice: oe,
        onClearBet: ge,
        setLotteryCode: Se,
        VoiceType: fe,
        open: he,
        closeGame: ce,
        animationRoll: de,
        websocketClose: be,
      } = A;
      I();
      const $e = B(() => r.value.slice(0, 5).map((W) => W.number)),
        ie = v(!1),
        Re = async (W) => {
          if (!ie.value) {
            ie.value = !0;
            try {
              ge(!0), Se(W.gameCode), await ne();
            } catch {
            } finally {
              ie.value = !1;
            }
          }
        },
        De = B(() =>
          f.value.seconds < 10 ? "0" + f.value.seconds : f.value.seconds + ""
        );
      return (
        it(async () => {
          await Promise.all([E(!0), k()]), await S(), he();
        }),
        Tt(() => {
          be();
        }),
        (W, x) => {
          var Ce;
          const Le = Q("van-loading"),
            Me = Q("van-popup");
          return (
            n(),
            o("div", Fa, [
              b(
                a(jt),
                {
                  showNav: !1,
                  onChangeSelectGame: Re,
                  onSetVoice: a(oe),
                  VoiceType: a(fe),
                  countdown: a(f),
                },
                null,
                8,
                ["onSetVoice", "VoiceType", "countdown"]
              ),
              b(
                ss,
                {
                  handleRule: a(l),
                  issue: a(_),
                  numbers: $e.value,
                  countdownTime: a(X),
                },
                null,
                8,
                ["handleRule", "issue", "numbers", "countdownTime"]
              ),
              e("div", Ya, [
                vt(
                  e(
                    "div",
                    qa,
                    [
                      (n(!0),
                      o(
                        K,
                        null,
                        F(De.value, (w) => (n(), o("div", null, t(w), 1))),
                        256
                      )),
                      $(" <div>{{ props.currentInfo.time4 || '0' }}</div>"),
                    ],
                    512
                  ),
                  [[Bt, a(s) && !a(ce) && !a(de)]]
                ),
                a(ce)
                  ? (n(),
                    o("div", Ja, [e("p", null, t(W.$t("common.code_405")), 1)]))
                  : $("v-if", !0),
                a(de) && !a(ce)
                  ? (n(),
                    o("div", Qa, [
                      b(
                        Nt,
                        { name: "slide-fade", mode: "out-in" },
                        {
                          default: G(() => [
                            (n(),
                            o("div", { key: a(_), class: "Betting__C-mark" }, [
                              e("ul", null, [
                                e("li", null, t(W.$t("issueTips", [a(_)])), 1),
                                e(
                                  "li",
                                  null,
                                  t(
                                    a(f).seconds === 1
                                      ? W.$t("betEnd")
                                      : W.$t("betStart")
                                  ),
                                  1
                                ),
                              ]),
                            ])),
                          ]),
                          _: 1,
                        }
                      ),
                    ]))
                  : $("v-if", !0),
                e("div", en, [
                  (n(!0),
                  o(
                    K,
                    null,
                    F(
                      a(c),
                      (w) => (
                        n(),
                        o(
                          "div",
                          {
                            class: T(["Betting__C-head-" + w.playBet]),
                            onClick: (Y) => a(L)(w),
                          },
                          t(
                            W.$t(
                              `bet${
                                w.playBet.charAt(0).toUpperCase() +
                                w.playBet.slice(1)
                              }`
                            )
                          ),
                          11,
                          tn
                        )
                      )
                    ),
                    256
                  )),
                ]),
                e("div", sn, [
                  (n(!0),
                  o(
                    K,
                    null,
                    F(
                      a(u),
                      (w, Y) => (
                        n(),
                        o(
                          "div",
                          {
                            key: Y,
                            class: T([
                              a(m) == w.playBet ? "active" : "",
                              "Betting__C-numC-item" + Y,
                            ]),
                            onClick: (we) => a(L)(w),
                          },
                          null,
                          10,
                          an
                        )
                      )
                    ),
                    128
                  )),
                ]),
                e("div", nn, [
                  e(
                    "div",
                    {
                      class: "Betting__C-multiple-l",
                      onClick: x[0] || (x[0] = (...w) => a(O) && a(O)(...w)),
                    },
                    t(W.$t("randomBet")),
                    1
                  ),
                  (n(!0),
                  o(
                    K,
                    null,
                    F(
                      a(Z),
                      (w, Y) => (
                        n(),
                        o(
                          "div",
                          {
                            key: Y,
                            class: T([
                              "Betting__C-multiple-r",
                              { active: w == a(V) },
                            ]),
                            onClick: (we) => (V.value = w),
                          },
                          " X" + t(w),
                          11,
                          on
                        )
                      )
                    ),
                    128
                  )),
                ]),
                e("div", ln, [
                  e(
                    "div",
                    {
                      onClick: x[1] || (x[1] = (w) => a(L)(a(D)[0])),
                      class: "Betting__C-foot-b",
                    },
                    t(W.$t("big")),
                    1
                  ),
                  e(
                    "div",
                    {
                      onClick: x[2] || (x[2] = (w) => a(L)(a(D)[1])),
                      class: "Betting__C-foot-s",
                    },
                    t(W.$t("small")),
                    1
                  ),
                ]),
              ]),
              b(
                ws,
                { currentGame: (Ce = a(H)) == null ? void 0 : Ce.gameName },
                null,
                8,
                ["currentGame"]
              ),
              e("div", un, [
                e(
                  "div",
                  rn,
                  [
                    e("div", cn, [
                      e(
                        "div",
                        {
                          class: T({ active: N.value === "Record" }),
                          onClick: x[3] || (x[3] = (w) => (N.value = "Record")),
                        },
                        t(W.$t("gameRecords")),
                        3
                      ),
                      e(
                        "div",
                        {
                          class: T({ active: N.value === "Trend" }),
                          onClick: x[4] || (x[4] = (w) => (N.value = "Trend")),
                        },
                        t(W.$t("chartTrends")),
                        3
                      ),
                      e(
                        "div",
                        {
                          class: T({ active: N.value === "MyRecord" }),
                          onClick:
                            x[5] || (x[5] = (w) => (N.value = "MyRecord")),
                        },
                        t(W.$t("myRecord")),
                        3
                      ),
                    ]),
                  ],
                  512
                ),
                e("div", dn, [
                  (n(),
                  Pe(
                    Dt,
                    null,
                    [
                      (n(),
                      Pe(St, null, {
                        default: G(() => [(n(), Pe(Rt(M.value)))]),
                        fallback: G(() => [vn]),
                        _: 1,
                      })),
                    ],
                    1024
                  )),
                ]),
              ]),
              b(zt),
              b(
                a(Et),
                { ref_key: "winner", ref: d },
                {
                  default: G(({ data: w }) => [
                    e("div", pn, [
                      e("span", null, t(W.$t("winTips3")), 1),
                      e("div", mn, [
                        e(
                          "div",
                          { class: T(`color_${w.color.replace(/,/g, "_")}`) },
                          [
                            (n(!0),
                            o(
                              K,
                              null,
                              F(
                                w.color.split(","),
                                (Y) => (
                                  n(),
                                  o("span", null, t(W.$t("common." + Y)), 1)
                                )
                              ),
                              256
                            )),
                          ],
                          2
                        ),
                        e(
                          "div",
                          { class: T(`color_${w.color}`) },
                          t(w.number),
                          3
                        ),
                        e(
                          "div",
                          { class: T(`color_${w.color}`) },
                          t(w.number > 4 ? W.$t("betBig") : W.$t("betSmall")),
                          3
                        ),
                      ]),
                    ]),
                  ]),
                  _: 1,
                },
                512
              ),
              $(" 玩法说明"),
              b(
                Me,
                {
                  onOpen: a(P),
                  show: a(g),
                  "onUpdate:show":
                    x[6] || (x[6] = (w) => (at(g) ? (g.value = w) : null)),
                  "close-on-click-overlay": !1,
                  round: "",
                },
                {
                  default: G(() => {
                    var w;
                    return [
                      b(
                        a(ft),
                        {
                          title: (w = a(U)) == null ? void 0 : w.title,
                          onClose: a(l),
                        },
                        {
                          default: G(() => {
                            var Y;
                            return [
                              a(ae)
                                ? (n(),
                                  o("div", yn, [
                                    b(Le, {
                                      type: "spinner",
                                      color: "#FD565C",
                                    }),
                                  ]))
                                : (n(),
                                  o(
                                    "div",
                                    {
                                      key: 1,
                                      innerHTML:
                                        (Y = a(U)) == null ? void 0 : Y.content,
                                    },
                                    null,
                                    8,
                                    _n
                                  )),
                            ];
                          }),
                          _: 1,
                        },
                        8,
                        ["title", "onClose"]
                      ),
                    ];
                  }),
                  _: 1,
                },
                8,
                ["onOpen", "show"]
              ),
            ])
          );
        }
      );
    },
  });
const fn = _e(gn, [
    ["__scopeId", "data-v-d7ba5957"],
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/saasLottery/game/VideoWinGo/views/wingo3/index.vue",
    ],
  ]),
  hn = me({
    __name: "index",
    setup(C) {
      const k = Lt(),
        { useProvide: H, setLotteryCode: N } = xt(),
        M = k.query.gameCode;
      H(), N(M);
      const A = Xt(),
        m = B(() => A.getIsShowLotteryDragon);
      return (u, c) => (
        n(),
        o(
          K,
          null,
          [b(fn), m.value ? (n(), Pe(Kt, { key: 0 })) : $("v-if", !0)],
          64
        )
      );
    },
  }),
  bn = _e(hn, [
    [
      "__file",
      "/usr/local/jenkins-prod/workspace/ar051-india-tiranga/src/views/saasLottery/VideoWinGo/index.vue",
    ],
  ]),
  Tn = Object.freeze(
    Object.defineProperty(
      { __proto__: null, default: bn },
      Symbol.toStringTag,
      { value: "Module" }
    )
  );
export { kn as a, In as b, Tn as i, ns as u };
