@jingx/lottery-components-react-jsx 1.0.43 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as jsx$1, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default, { forwardRef, Component, useRef, useState, useEffect, useLayoutEffect, useMemo, memo, useCallback, useContext, createContext as createContext$1, Fragment as Fragment$1, isValidElement } from 'react';
3
+ import React__default, { forwardRef, Component, useRef, useState, useEffect, useLayoutEffect, useMemo, memo, useCallback, useContext, createContext as createContext$1, Fragment as Fragment$1, isValidElement, createElement as createElement$3 } from 'react';
4
4
  import ReactDOM, { createPortal } from 'react-dom';
5
5
 
6
6
  function styleInject(css, ref) {
@@ -3479,11 +3479,11 @@ var regexp_prototype_flags = flagsBound;
3479
3479
 
3480
3480
  var callBound = callBound$3;
3481
3481
 
3482
- var getDay = callBound('Date.prototype.getDay');
3482
+ var getDay$1 = callBound('Date.prototype.getDay');
3483
3483
  /** @type {import('.')} */
3484
3484
  var tryDateObject = function tryDateGetDayCall(value) {
3485
3485
  try {
3486
- getDay(value);
3486
+ getDay$1(value);
3487
3487
  return true;
3488
3488
  } catch (e) {
3489
3489
  return false;
@@ -30829,25 +30829,25 @@ const clickRemarkBtn = (id) => {
30829
30829
  }
30830
30830
  };
30831
30831
 
30832
- var __defProp$c = Object.defineProperty;
30833
- var __defProps$3 = Object.defineProperties;
30834
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
30835
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
30836
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
30837
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
30838
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30839
- var __spreadValues$c = (a, b) => {
30832
+ var __defProp$l = Object.defineProperty;
30833
+ var __defProps$b = Object.defineProperties;
30834
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
30835
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
30836
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
30837
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
30838
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30839
+ var __spreadValues$l = (a, b) => {
30840
30840
  for (var prop in b || (b = {}))
30841
- if (__hasOwnProp$e.call(b, prop))
30842
- __defNormalProp$c(a, prop, b[prop]);
30843
- if (__getOwnPropSymbols$e)
30844
- for (var prop of __getOwnPropSymbols$e(b)) {
30845
- if (__propIsEnum$e.call(b, prop))
30846
- __defNormalProp$c(a, prop, b[prop]);
30841
+ if (__hasOwnProp$n.call(b, prop))
30842
+ __defNormalProp$l(a, prop, b[prop]);
30843
+ if (__getOwnPropSymbols$n)
30844
+ for (var prop of __getOwnPropSymbols$n(b)) {
30845
+ if (__propIsEnum$n.call(b, prop))
30846
+ __defNormalProp$l(a, prop, b[prop]);
30847
30847
  }
30848
30848
  return a;
30849
30849
  };
30850
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
30850
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
30851
30851
  const KPPostCode = {
30852
30852
  A: "\u179B\u17E1",
30853
30853
  F: "\u179B\u17E2",
@@ -30906,7 +30906,32 @@ const lotteryLabel = {
30906
30906
  HOSO: "\u1786\u17D2\u1793\u17C4\u178F HOSO",
30907
30907
  KP: "\u1780\u17C6\u1796\u178F KP"
30908
30908
  };
30909
- const lotteryLabelVN = __spreadProps$3(__spreadValues$c({}, lotteryLabel), {
30909
+ const lotteryLabelKH = {
30910
+ LEAP: "\u179B\u17B6\u1797",
30911
+ VN2: "\u1798\u17A0\u17B6\u1791\u17C1\u1796",
30912
+ VN1: "\u1798\u17A0\u17B6\u1788\u17D2\u1793\u17C7",
30913
+ TN: "\u1791\u17B7\u1789\u1788\u17D2\u1793\u17C7",
30914
+ SC: "\u179F\u1794\u17D2\u1794\u17B6\u1799\u1788\u17D2\u1793\u17C7",
30915
+ KH: "\u1781\u17D2\u1798\u17C2\u179A",
30916
+ TH: "\u1790\u17C3",
30917
+ KP: "\u1780\u17C6\u1796\u178F"
30918
+ };
30919
+ const widthLength = (value) => {
30920
+ var _a;
30921
+ if (!value) return "100px";
30922
+ if (value.toString().length < 7) return "100px";
30923
+ return `${((_a = value == null ? void 0 : value.toString()) == null ? void 0 : _a.length) + 8}ch`;
30924
+ };
30925
+ const getMemberName = (username) => {
30926
+ if (username) return username == null ? void 0 : username.slice(-4);
30927
+ return "N/A";
30928
+ };
30929
+ const formatUsd = (value) => {
30930
+ if (value.toString().indexOf(".") !== -1) return value.toFixed(2);
30931
+ return value;
30932
+ };
30933
+ const lotteryReportLabel = (type) => `\u1786\u17D2\u1793\u17C4\u178F${lotteryLabelKH[type]} (${lotteryLabel[type]})`;
30934
+ const lotteryLabelVN = __spreadProps$b(__spreadValues$l({}, lotteryLabel), {
30910
30935
  VN1: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
30911
30936
  TN: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
30912
30937
  KH: "\u1786\u17D2\u1793\u17C4\u178F\u1781\u17D2\u1798\u17C2\u179A"
@@ -31430,30 +31455,30 @@ const TicketPrintBody = (props) => {
31430
31455
  });
31431
31456
  };
31432
31457
 
31433
- var __defProp$b = Object.defineProperty;
31434
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
31435
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
31436
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
31437
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31438
- var __spreadValues$b = (a, b) => {
31458
+ var __defProp$k = Object.defineProperty;
31459
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
31460
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
31461
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
31462
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31463
+ var __spreadValues$k = (a, b) => {
31439
31464
  for (var prop in b || (b = {}))
31440
- if (__hasOwnProp$d.call(b, prop))
31441
- __defNormalProp$b(a, prop, b[prop]);
31442
- if (__getOwnPropSymbols$d)
31443
- for (var prop of __getOwnPropSymbols$d(b)) {
31444
- if (__propIsEnum$d.call(b, prop))
31445
- __defNormalProp$b(a, prop, b[prop]);
31465
+ if (__hasOwnProp$m.call(b, prop))
31466
+ __defNormalProp$k(a, prop, b[prop]);
31467
+ if (__getOwnPropSymbols$m)
31468
+ for (var prop of __getOwnPropSymbols$m(b)) {
31469
+ if (__propIsEnum$m.call(b, prop))
31470
+ __defNormalProp$k(a, prop, b[prop]);
31446
31471
  }
31447
31472
  return a;
31448
31473
  };
31449
31474
  var __objRest$7 = (source, exclude) => {
31450
31475
  var target = {};
31451
31476
  for (var prop in source)
31452
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
31477
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
31453
31478
  target[prop] = source[prop];
31454
- if (source != null && __getOwnPropSymbols$d)
31455
- for (var prop of __getOwnPropSymbols$d(source)) {
31456
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
31479
+ if (source != null && __getOwnPropSymbols$m)
31480
+ for (var prop of __getOwnPropSymbols$m(source)) {
31481
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
31457
31482
  target[prop] = source[prop];
31458
31483
  }
31459
31484
  return target;
@@ -31477,7 +31502,7 @@ const PrintTicket58 = (props) => {
31477
31502
  ),
31478
31503
  /* @__PURE__ */ jsx$1(
31479
31504
  TicketPrintBody,
31480
- __spreadValues$b({
31505
+ __spreadValues$k({
31481
31506
  is58: true,
31482
31507
  item,
31483
31508
  bodyClass,
@@ -37193,10 +37218,15 @@ const getTimeFull_AM_PM = (date) => {
37193
37218
  const getDateHourKey = (date) => {
37194
37219
  return moment(date).format("DD-MM-YYYY hh:mm");
37195
37220
  };
37221
+ const getDate = (date) => {
37222
+ return moment(date).format("DD-MM-YYYY");
37223
+ };
37196
37224
  const getTime = (date) => {
37197
37225
  return moment(date).format("hh:mm A");
37198
37226
  };
37199
37227
  const getHH = (date) => Number(moment(date).format("h"));
37228
+ const getDateF = (date) => moment(date).format("DD/MM/YYYY");
37229
+ const getDay = (date) => moment(date).format("dddd");
37200
37230
 
37201
37231
  const RenderTitle = ({ lotteryType, className = "", logo, isVN, drawAt }) => {
37202
37232
  let title = lotteryLabel[lotteryType];
@@ -37532,17 +37562,17 @@ var lib = {exports: {}};
37532
37562
 
37533
37563
  var libExports = lib.exports;
37534
37564
 
37535
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
37536
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
37537
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
37565
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
37566
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
37567
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
37538
37568
  var __objRest$6 = (source, exclude) => {
37539
37569
  var target = {};
37540
37570
  for (var prop in source)
37541
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
37571
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
37542
37572
  target[prop] = source[prop];
37543
- if (source != null && __getOwnPropSymbols$c)
37544
- for (var prop of __getOwnPropSymbols$c(source)) {
37545
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
37573
+ if (source != null && __getOwnPropSymbols$l)
37574
+ for (var prop of __getOwnPropSymbols$l(source)) {
37575
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
37546
37576
  target[prop] = source[prop];
37547
37577
  }
37548
37578
  return target;
@@ -37586,33 +37616,33 @@ const BasePrinter = (_a) => {
37586
37616
  ] });
37587
37617
  };
37588
37618
 
37589
- var __defProp$a = Object.defineProperty;
37590
- var __defProps$2 = Object.defineProperties;
37591
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
37592
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
37593
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
37594
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
37595
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37596
- var __spreadValues$a = (a, b) => {
37619
+ var __defProp$j = Object.defineProperty;
37620
+ var __defProps$a = Object.defineProperties;
37621
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
37622
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
37623
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
37624
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
37625
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37626
+ var __spreadValues$j = (a, b) => {
37597
37627
  for (var prop in b || (b = {}))
37598
- if (__hasOwnProp$b.call(b, prop))
37599
- __defNormalProp$a(a, prop, b[prop]);
37600
- if (__getOwnPropSymbols$b)
37601
- for (var prop of __getOwnPropSymbols$b(b)) {
37602
- if (__propIsEnum$b.call(b, prop))
37603
- __defNormalProp$a(a, prop, b[prop]);
37628
+ if (__hasOwnProp$k.call(b, prop))
37629
+ __defNormalProp$j(a, prop, b[prop]);
37630
+ if (__getOwnPropSymbols$k)
37631
+ for (var prop of __getOwnPropSymbols$k(b)) {
37632
+ if (__propIsEnum$k.call(b, prop))
37633
+ __defNormalProp$j(a, prop, b[prop]);
37604
37634
  }
37605
37635
  return a;
37606
37636
  };
37607
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
37637
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
37608
37638
  var __objRest$5 = (source, exclude) => {
37609
37639
  var target = {};
37610
37640
  for (var prop in source)
37611
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
37641
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
37612
37642
  target[prop] = source[prop];
37613
- if (source != null && __getOwnPropSymbols$b)
37614
- for (var prop of __getOwnPropSymbols$b(source)) {
37615
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
37643
+ if (source != null && __getOwnPropSymbols$k)
37644
+ for (var prop of __getOwnPropSymbols$k(source)) {
37645
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
37616
37646
  target[prop] = source[prop];
37617
37647
  }
37618
37648
  return target;
@@ -37621,8 +37651,8 @@ const Printer = (_a) => {
37621
37651
  var _b = _a, { children } = _b, props = __objRest$5(_b, ["children"]);
37622
37652
  return /* @__PURE__ */ jsx$1(
37623
37653
  BasePrinter,
37624
- __spreadProps$2(__spreadValues$a({
37625
- component: /* @__PURE__ */ jsx$1(Ticket, __spreadValues$a({}, props))
37654
+ __spreadProps$a(__spreadValues$j({
37655
+ component: /* @__PURE__ */ jsx$1(Ticket, __spreadValues$j({}, props))
37626
37656
  }, props), {
37627
37657
  children: children != null ? children : /* @__PURE__ */ jsx$1("div", { className: "btn btn-primary", children: /* @__PURE__ */ jsxs(
37628
37658
  "svg",
@@ -45491,12 +45521,12 @@ var html2canvas$1 = {exports: {}};
45491
45521
  var html2canvasExports = html2canvas$1.exports;
45492
45522
  var html2canvas = /*@__PURE__*/getDefaultExportFromCjs(html2canvasExports);
45493
45523
 
45494
- const getCanvasScale = () => {
45524
+ const getCanvasScale$1 = () => {
45495
45525
  const deviceScale = typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1;
45496
45526
  return Math.max(deviceScale, 5);
45497
45527
  };
45498
45528
  const getCanvasOptions = (node, useCORS = true) => ({
45499
- scale: getCanvasScale(),
45529
+ scale: getCanvasScale$1(),
45500
45530
  useCORS,
45501
45531
  backgroundColor: "#ffffff",
45502
45532
  logging: false,
@@ -45511,7 +45541,7 @@ const exportToImage = async (reportRef, actionButtonsRef, lotteryType, ticketNum
45511
45541
  const originalVisibility = actionButtonsRef.current.style.visibility;
45512
45542
  try {
45513
45543
  actionButtonsRef.current.style.visibility = "hidden";
45514
- await waitForFontsAndImages(reportRef.current);
45544
+ await waitForFontsAndImages$1(reportRef.current);
45515
45545
  const canvas = await html2canvas(
45516
45546
  reportRef.current,
45517
45547
  getCanvasOptions(reportRef.current, true)
@@ -45535,9 +45565,9 @@ const copyImageToClipboard = async (reportRef, actionButtonsRef, lotteryType, ti
45535
45565
  const originalVisibility = btn == null ? void 0 : btn.style.visibility;
45536
45566
  try {
45537
45567
  if (btn) btn.style.visibility = "hidden";
45538
- await waitForFontsAndImages(node);
45568
+ await waitForFontsAndImages$1(node);
45539
45569
  const canvas = await html2canvas(node, getCanvasOptions(node));
45540
- const blob = await canvasToBlob(canvas);
45570
+ const blob = await canvasToBlob$1(canvas);
45541
45571
  if (!blob) throw new Error("Clipboard blob unavailable");
45542
45572
  if (!((_a = navigator.clipboard) == null ? void 0 : _a.write)) {
45543
45573
  throw new Error("Clipboard API unavailable");
@@ -45550,7 +45580,7 @@ const copyImageToClipboard = async (reportRef, actionButtonsRef, lotteryType, ti
45550
45580
  if (btn) btn.style.visibility = originalVisibility;
45551
45581
  }
45552
45582
  };
45553
- const waitForFontsAndImages = async (root) => {
45583
+ const waitForFontsAndImages$1 = async (root) => {
45554
45584
  var _a, _b;
45555
45585
  const fontsReady = (_b = (_a = document.fonts) == null ? void 0 : _a.ready) != null ? _b : Promise.resolve();
45556
45586
  const imgs = Array.from(root.querySelectorAll("img"));
@@ -45565,7 +45595,7 @@ const waitForFontsAndImages = async (root) => {
45565
45595
  await Promise.all([fontsReady, ...imgReady]);
45566
45596
  await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
45567
45597
  };
45568
- const canvasToBlob = (canvas) => new Promise((resolve) => {
45598
+ const canvasToBlob$1 = (canvas) => new Promise((resolve) => {
45569
45599
  if (canvas.toBlob) {
45570
45600
  canvas.toBlob((b) => resolve(b), "image/png", 1);
45571
45601
  } else {
@@ -45581,9 +45611,9 @@ const exportToImageShare = async (reportRef, actionButtonsRef, lotteryType, tick
45581
45611
  const originalVisibility = btn == null ? void 0 : btn.style.visibility;
45582
45612
  try {
45583
45613
  if (btn) btn.style.visibility = "hidden";
45584
- await waitForFontsAndImages(node);
45614
+ await waitForFontsAndImages$1(node);
45585
45615
  const canvas = await html2canvas(node, getCanvasOptions(node));
45586
- const blob = await canvasToBlob(canvas);
45616
+ const blob = await canvasToBlob$1(canvas);
45587
45617
  if (!blob) return;
45588
45618
  const fileName = `${lotteryType}-#${ticketNumber}.png`;
45589
45619
  const file = new File([blob], fileName, { type: "image/png" });
@@ -45611,19 +45641,19 @@ const exportToImageShare = async (reportRef, actionButtonsRef, lotteryType, tick
45611
45641
  }
45612
45642
  };
45613
45643
 
45614
- var __defProp$9 = Object.defineProperty;
45615
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
45616
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
45617
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
45618
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45619
- var __spreadValues$9 = (a, b) => {
45644
+ var __defProp$i = Object.defineProperty;
45645
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
45646
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
45647
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
45648
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45649
+ var __spreadValues$i = (a, b) => {
45620
45650
  for (var prop in b || (b = {}))
45621
- if (__hasOwnProp$a.call(b, prop))
45622
- __defNormalProp$9(a, prop, b[prop]);
45623
- if (__getOwnPropSymbols$a)
45624
- for (var prop of __getOwnPropSymbols$a(b)) {
45625
- if (__propIsEnum$a.call(b, prop))
45626
- __defNormalProp$9(a, prop, b[prop]);
45651
+ if (__hasOwnProp$j.call(b, prop))
45652
+ __defNormalProp$i(a, prop, b[prop]);
45653
+ if (__getOwnPropSymbols$j)
45654
+ for (var prop of __getOwnPropSymbols$j(b)) {
45655
+ if (__propIsEnum$j.call(b, prop))
45656
+ __defNormalProp$i(a, prop, b[prop]);
45627
45657
  }
45628
45658
  return a;
45629
45659
  };
@@ -45648,7 +45678,7 @@ const TicketModalWrapper = (props) => {
45648
45678
  await onAfterPrint();
45649
45679
  };
45650
45680
  return /* @__PURE__ */ jsx$1("table", { ref: reportRef, className: "mb-3", children: /* @__PURE__ */ jsxs("tbody", { children: [
45651
- /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { children: /* @__PURE__ */ jsx$1("div", { ref: contentRef, className: "px-3 pt-3 bg-white", children: /* @__PURE__ */ jsx$1(Ticket, __spreadValues$9({ plusCount: 1 }, props)) }) }) }),
45681
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { children: /* @__PURE__ */ jsx$1("div", { ref: contentRef, className: "px-3 pt-3 bg-white", children: /* @__PURE__ */ jsx$1(Ticket, __spreadValues$i({ plusCount: 1 }, props)) }) }) }),
45652
45682
  /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { colSpan: 3, className: "text-center border-bottom-0", children: /* @__PURE__ */ jsxs(
45653
45683
  "div",
45654
45684
  {
@@ -45715,30 +45745,30 @@ const TicketModalWrapper = (props) => {
45715
45745
  ] }) });
45716
45746
  };
45717
45747
 
45718
- var __defProp$8 = Object.defineProperty;
45719
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
45720
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
45721
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
45722
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45723
- var __spreadValues$8 = (a, b) => {
45748
+ var __defProp$h = Object.defineProperty;
45749
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
45750
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
45751
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
45752
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45753
+ var __spreadValues$h = (a, b) => {
45724
45754
  for (var prop in b || (b = {}))
45725
- if (__hasOwnProp$9.call(b, prop))
45726
- __defNormalProp$8(a, prop, b[prop]);
45727
- if (__getOwnPropSymbols$9)
45728
- for (var prop of __getOwnPropSymbols$9(b)) {
45729
- if (__propIsEnum$9.call(b, prop))
45730
- __defNormalProp$8(a, prop, b[prop]);
45755
+ if (__hasOwnProp$i.call(b, prop))
45756
+ __defNormalProp$h(a, prop, b[prop]);
45757
+ if (__getOwnPropSymbols$i)
45758
+ for (var prop of __getOwnPropSymbols$i(b)) {
45759
+ if (__propIsEnum$i.call(b, prop))
45760
+ __defNormalProp$h(a, prop, b[prop]);
45731
45761
  }
45732
45762
  return a;
45733
45763
  };
45734
45764
  var __objRest$4 = (source, exclude) => {
45735
45765
  var target = {};
45736
45766
  for (var prop in source)
45737
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
45767
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
45738
45768
  target[prop] = source[prop];
45739
- if (source != null && __getOwnPropSymbols$9)
45740
- for (var prop of __getOwnPropSymbols$9(source)) {
45741
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
45769
+ if (source != null && __getOwnPropSymbols$i)
45770
+ for (var prop of __getOwnPropSymbols$i(source)) {
45771
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
45742
45772
  target[prop] = source[prop];
45743
45773
  }
45744
45774
  return target;
@@ -45756,7 +45786,7 @@ function TicketModal(_a) {
45756
45786
  modalClassName: "modal scroll-modal",
45757
45787
  contentClassName: "",
45758
45788
  style: { width: 380 },
45759
- children: /* @__PURE__ */ jsx$1(ModalBody, { className: "d-inline-flex justify-content-center p-0", children: /* @__PURE__ */ jsx$1(TicketModalWrapper, __spreadValues$8({ object }, props)) })
45789
+ children: /* @__PURE__ */ jsx$1(ModalBody, { className: "d-inline-flex justify-content-center p-0", children: /* @__PURE__ */ jsx$1(TicketModalWrapper, __spreadValues$h({ object }, props)) })
45760
45790
  }
45761
45791
  ) });
45762
45792
  }
@@ -45882,26 +45912,26 @@ const PostTable = memo(({ data = [], fallbackTwo = "", fallbackThree = "", usePo
45882
45912
  return /* @__PURE__ */ jsx$1(ResultTable, { data, columns, cellRenderer: renderCell });
45883
45913
  });
45884
45914
 
45885
- var __defProp$7 = Object.defineProperty;
45886
- var __defProps$1 = Object.defineProperties;
45887
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
45888
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
45889
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
45890
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
45891
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45892
- var __spreadValues$7 = (a, b) => {
45915
+ var __defProp$g = Object.defineProperty;
45916
+ var __defProps$9 = Object.defineProperties;
45917
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
45918
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
45919
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
45920
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
45921
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45922
+ var __spreadValues$g = (a, b) => {
45893
45923
  for (var prop in b || (b = {}))
45894
- if (__hasOwnProp$8.call(b, prop))
45895
- __defNormalProp$7(a, prop, b[prop]);
45896
- if (__getOwnPropSymbols$8)
45897
- for (var prop of __getOwnPropSymbols$8(b)) {
45898
- if (__propIsEnum$8.call(b, prop))
45899
- __defNormalProp$7(a, prop, b[prop]);
45924
+ if (__hasOwnProp$h.call(b, prop))
45925
+ __defNormalProp$g(a, prop, b[prop]);
45926
+ if (__getOwnPropSymbols$h)
45927
+ for (var prop of __getOwnPropSymbols$h(b)) {
45928
+ if (__propIsEnum$h.call(b, prop))
45929
+ __defNormalProp$g(a, prop, b[prop]);
45900
45930
  }
45901
45931
  return a;
45902
45932
  };
45903
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
45904
- const loCellStyle = __spreadProps$1(__spreadValues$7({}, baseCellStyle), {
45933
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
45934
+ const loCellStyle = __spreadProps$9(__spreadValues$g({}, baseCellStyle), {
45905
45935
  width: "200px"
45906
45936
  });
45907
45937
  const LoTable = memo(({ LO = [], columnsCount = 3, showHeader = false }) => {
@@ -45913,7 +45943,7 @@ const LoTable = memo(({ LO = [], columnsCount = 3, showHeader = false }) => {
45913
45943
  "th",
45914
45944
  {
45915
45945
  className: "text-black text-center bg-light-red",
45916
- style: __spreadProps$1(__spreadValues$7({}, loCellStyle), { fontSize: "16px" }),
45946
+ style: __spreadProps$9(__spreadValues$g({}, loCellStyle), { fontSize: "16px" }),
45917
45947
  children: KPLO[col.columnNumber]
45918
45948
  },
45919
45949
  idx
@@ -57760,30 +57790,30 @@ const PayoutApi = "api/v1.0.0/order/payout";
57760
57790
  const TransferUserOptionApi = "api/v1.0.0/user-connect/option";
57761
57791
  const TransferNumberApi = "api/v1.0.0/transfer-number";
57762
57792
 
57763
- var __defProp$6 = Object.defineProperty;
57764
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
57765
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
57766
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
57767
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
57768
- var __spreadValues$6 = (a, b) => {
57793
+ var __defProp$f = Object.defineProperty;
57794
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
57795
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
57796
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
57797
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
57798
+ var __spreadValues$f = (a, b) => {
57769
57799
  for (var prop in b || (b = {}))
57770
- if (__hasOwnProp$7.call(b, prop))
57771
- __defNormalProp$6(a, prop, b[prop]);
57772
- if (__getOwnPropSymbols$7)
57773
- for (var prop of __getOwnPropSymbols$7(b)) {
57774
- if (__propIsEnum$7.call(b, prop))
57775
- __defNormalProp$6(a, prop, b[prop]);
57800
+ if (__hasOwnProp$g.call(b, prop))
57801
+ __defNormalProp$f(a, prop, b[prop]);
57802
+ if (__getOwnPropSymbols$g)
57803
+ for (var prop of __getOwnPropSymbols$g(b)) {
57804
+ if (__propIsEnum$g.call(b, prop))
57805
+ __defNormalProp$f(a, prop, b[prop]);
57776
57806
  }
57777
57807
  return a;
57778
57808
  };
57779
57809
  var __objRest$3 = (source, exclude) => {
57780
57810
  var target = {};
57781
57811
  for (var prop in source)
57782
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
57812
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
57783
57813
  target[prop] = source[prop];
57784
- if (source != null && __getOwnPropSymbols$7)
57785
- for (var prop of __getOwnPropSymbols$7(source)) {
57786
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
57814
+ if (source != null && __getOwnPropSymbols$g)
57815
+ for (var prop of __getOwnPropSymbols$g(source)) {
57816
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
57787
57817
  target[prop] = source[prop];
57788
57818
  }
57789
57819
  return target;
@@ -57820,7 +57850,7 @@ function DeleteModal(_a) {
57820
57850
  const [isLoading, setIsLoading] = useState(false);
57821
57851
  const [isSubmitting, setIsSubmitting] = useState(false);
57822
57852
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
57823
- const headers = __spreadValues$6({
57853
+ const headers = __spreadValues$f({
57824
57854
  "Content-Type": "application/json",
57825
57855
  "Accept": "application/json",
57826
57856
  "X-DeviceType": "WEB"
@@ -57978,19 +58008,19 @@ DeleteModal.propTypes = {
57978
58008
  accessToken: PropTypes$2.string.isRequired
57979
58009
  };
57980
58010
 
57981
- var __defProp$5 = Object.defineProperty;
57982
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
57983
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
57984
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
57985
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
57986
- var __spreadValues$5 = (a, b) => {
58011
+ var __defProp$e = Object.defineProperty;
58012
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
58013
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
58014
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
58015
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58016
+ var __spreadValues$e = (a, b) => {
57987
58017
  for (var prop in b || (b = {}))
57988
- if (__hasOwnProp$6.call(b, prop))
57989
- __defNormalProp$5(a, prop, b[prop]);
57990
- if (__getOwnPropSymbols$6)
57991
- for (var prop of __getOwnPropSymbols$6(b)) {
57992
- if (__propIsEnum$6.call(b, prop))
57993
- __defNormalProp$5(a, prop, b[prop]);
58018
+ if (__hasOwnProp$f.call(b, prop))
58019
+ __defNormalProp$e(a, prop, b[prop]);
58020
+ if (__getOwnPropSymbols$f)
58021
+ for (var prop of __getOwnPropSymbols$f(b)) {
58022
+ if (__propIsEnum$f.call(b, prop))
58023
+ __defNormalProp$e(a, prop, b[prop]);
57994
58024
  }
57995
58025
  return a;
57996
58026
  };
@@ -58025,7 +58055,7 @@ function DeleteTicketButton(props) {
58025
58055
  type: "button",
58026
58056
  onClick: handleOpen,
58027
58057
  className: `border-0 p-2 rounded mb-1 ${className}`.trim(),
58028
- style: __spreadValues$5({
58058
+ style: __spreadValues$e({
58029
58059
  backgroundColor: "#dc3545",
58030
58060
  boxShadow: "none"
58031
58061
  }, style),
@@ -58072,19 +58102,19 @@ DeleteTicketButton.propTypes = {
58072
58102
  style: PropTypes$2.object
58073
58103
  };
58074
58104
 
58075
- var __defProp$4 = Object.defineProperty;
58076
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
58077
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
58078
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
58079
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58080
- var __spreadValues$4 = (a, b) => {
58105
+ var __defProp$d = Object.defineProperty;
58106
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
58107
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
58108
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
58109
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58110
+ var __spreadValues$d = (a, b) => {
58081
58111
  for (var prop in b || (b = {}))
58082
- if (__hasOwnProp$5.call(b, prop))
58083
- __defNormalProp$4(a, prop, b[prop]);
58084
- if (__getOwnPropSymbols$5)
58085
- for (var prop of __getOwnPropSymbols$5(b)) {
58086
- if (__propIsEnum$5.call(b, prop))
58087
- __defNormalProp$4(a, prop, b[prop]);
58112
+ if (__hasOwnProp$e.call(b, prop))
58113
+ __defNormalProp$d(a, prop, b[prop]);
58114
+ if (__getOwnPropSymbols$e)
58115
+ for (var prop of __getOwnPropSymbols$e(b)) {
58116
+ if (__propIsEnum$e.call(b, prop))
58117
+ __defNormalProp$d(a, prop, b[prop]);
58088
58118
  }
58089
58119
  return a;
58090
58120
  };
@@ -58112,7 +58142,7 @@ const ProtestModal = ({
58112
58142
  const [isSubmitting, setIsSubmitting] = useState(false);
58113
58143
  const activeLotteryType = lotteryType || (ticket == null ? void 0 : ticket.lotteryType);
58114
58144
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58115
- const headers = __spreadValues$4({
58145
+ const headers = __spreadValues$d({
58116
58146
  "Content-Type": "application/json",
58117
58147
  "Accept": "application/json",
58118
58148
  "X-DeviceType": "WEB"
@@ -58372,19 +58402,19 @@ ProtestButton.propTypes = {
58372
58402
  accessToken: PropTypes$2.string.isRequired
58373
58403
  };
58374
58404
 
58375
- var __defProp$3 = Object.defineProperty;
58376
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
58377
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
58378
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
58379
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58380
- var __spreadValues$3 = (a, b) => {
58405
+ var __defProp$c = Object.defineProperty;
58406
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
58407
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
58408
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
58409
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58410
+ var __spreadValues$c = (a, b) => {
58381
58411
  for (var prop in b || (b = {}))
58382
- if (__hasOwnProp$4.call(b, prop))
58383
- __defNormalProp$3(a, prop, b[prop]);
58384
- if (__getOwnPropSymbols$4)
58385
- for (var prop of __getOwnPropSymbols$4(b)) {
58386
- if (__propIsEnum$4.call(b, prop))
58387
- __defNormalProp$3(a, prop, b[prop]);
58412
+ if (__hasOwnProp$d.call(b, prop))
58413
+ __defNormalProp$c(a, prop, b[prop]);
58414
+ if (__getOwnPropSymbols$d)
58415
+ for (var prop of __getOwnPropSymbols$d(b)) {
58416
+ if (__propIsEnum$d.call(b, prop))
58417
+ __defNormalProp$c(a, prop, b[prop]);
58388
58418
  }
58389
58419
  return a;
58390
58420
  };
@@ -58410,7 +58440,7 @@ const TransferDeleteModal = ({
58410
58440
  const ticketNumber = ticket == null ? void 0 : ticket.ticketNumber;
58411
58441
  const apiBaseUrl = Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3;
58412
58442
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58413
- const headers = useMemo(() => __spreadValues$3({
58443
+ const headers = useMemo(() => __spreadValues$c({
58414
58444
  "Content-Type": "application/json",
58415
58445
  "Accept": "application/json",
58416
58446
  "X-DeviceType": "WEB"
@@ -58574,19 +58604,19 @@ TransferDeleteModal.propTypes = {
58574
58604
  onError: PropTypes$2.func
58575
58605
  };
58576
58606
 
58577
- var __defProp$2 = Object.defineProperty;
58578
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
58579
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
58580
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
58581
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58582
- var __spreadValues$2 = (a, b) => {
58607
+ var __defProp$b = Object.defineProperty;
58608
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
58609
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
58610
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
58611
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58612
+ var __spreadValues$b = (a, b) => {
58583
58613
  for (var prop in b || (b = {}))
58584
- if (__hasOwnProp$3.call(b, prop))
58585
- __defNormalProp$2(a, prop, b[prop]);
58586
- if (__getOwnPropSymbols$3)
58587
- for (var prop of __getOwnPropSymbols$3(b)) {
58588
- if (__propIsEnum$3.call(b, prop))
58589
- __defNormalProp$2(a, prop, b[prop]);
58614
+ if (__hasOwnProp$c.call(b, prop))
58615
+ __defNormalProp$b(a, prop, b[prop]);
58616
+ if (__getOwnPropSymbols$c)
58617
+ for (var prop of __getOwnPropSymbols$c(b)) {
58618
+ if (__propIsEnum$c.call(b, prop))
58619
+ __defNormalProp$b(a, prop, b[prop]);
58590
58620
  }
58591
58621
  return a;
58592
58622
  };
@@ -58628,7 +58658,7 @@ const TransferModal = ({
58628
58658
  const ticketNumber = ticket == null ? void 0 : ticket.ticketNumber;
58629
58659
  const canDeleteTransfer = (ticket == null ? void 0 : ticket.isHasSend) === true;
58630
58660
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58631
- const headers = useMemo(() => __spreadValues$2({
58661
+ const headers = useMemo(() => __spreadValues$b({
58632
58662
  "Content-Type": "application/json",
58633
58663
  "Accept": "application/json",
58634
58664
  "X-DeviceType": "WEB"
@@ -58847,30 +58877,30 @@ TransferModal.propTypes = {
58847
58877
  isSubmitting: PropTypes$2.bool
58848
58878
  };
58849
58879
 
58850
- var __defProp$1 = Object.defineProperty;
58851
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
58852
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
58853
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
58854
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58855
- var __spreadValues$1 = (a, b) => {
58880
+ var __defProp$a = Object.defineProperty;
58881
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
58882
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
58883
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
58884
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58885
+ var __spreadValues$a = (a, b) => {
58856
58886
  for (var prop in b || (b = {}))
58857
- if (__hasOwnProp$2.call(b, prop))
58858
- __defNormalProp$1(a, prop, b[prop]);
58859
- if (__getOwnPropSymbols$2)
58860
- for (var prop of __getOwnPropSymbols$2(b)) {
58861
- if (__propIsEnum$2.call(b, prop))
58862
- __defNormalProp$1(a, prop, b[prop]);
58887
+ if (__hasOwnProp$b.call(b, prop))
58888
+ __defNormalProp$a(a, prop, b[prop]);
58889
+ if (__getOwnPropSymbols$b)
58890
+ for (var prop of __getOwnPropSymbols$b(b)) {
58891
+ if (__propIsEnum$b.call(b, prop))
58892
+ __defNormalProp$a(a, prop, b[prop]);
58863
58893
  }
58864
58894
  return a;
58865
58895
  };
58866
58896
  var __objRest$2 = (source, exclude) => {
58867
58897
  var target = {};
58868
58898
  for (var prop in source)
58869
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
58899
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
58870
58900
  target[prop] = source[prop];
58871
- if (source != null && __getOwnPropSymbols$2)
58872
- for (var prop of __getOwnPropSymbols$2(source)) {
58873
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
58901
+ if (source != null && __getOwnPropSymbols$b)
58902
+ for (var prop of __getOwnPropSymbols$b(source)) {
58903
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
58874
58904
  target[prop] = source[prop];
58875
58905
  }
58876
58906
  return target;
@@ -58906,7 +58936,7 @@ function RemarkModal(_a) {
58906
58936
  setRemark((_a2 = ticket == null ? void 0 : ticket.remark) != null ? _a2 : "");
58907
58937
  }, [ticket]);
58908
58938
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58909
- const headers = __spreadValues$1({
58939
+ const headers = __spreadValues$a({
58910
58940
  "Content-Type": "application/json",
58911
58941
  "Accept": "application/json",
58912
58942
  "X-DeviceType": "WEB"
@@ -59014,17 +59044,17 @@ RemarkModal.propTypes = {
59014
59044
  accessToken: PropTypes$2.string.isRequired
59015
59045
  };
59016
59046
 
59017
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
59018
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
59019
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
59047
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
59048
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
59049
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
59020
59050
  var __objRest$1 = (source, exclude) => {
59021
59051
  var target = {};
59022
59052
  for (var prop in source)
59023
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
59053
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
59024
59054
  target[prop] = source[prop];
59025
- if (source != null && __getOwnPropSymbols$1)
59026
- for (var prop of __getOwnPropSymbols$1(source)) {
59027
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
59055
+ if (source != null && __getOwnPropSymbols$a)
59056
+ for (var prop of __getOwnPropSymbols$a(source)) {
59057
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
59028
59058
  target[prop] = source[prop];
59029
59059
  }
59030
59060
  return target;
@@ -59065,33 +59095,33 @@ function RemarkModalShowOnly(_a) {
59065
59095
  ) });
59066
59096
  }
59067
59097
 
59068
- var __defProp = Object.defineProperty;
59069
- var __defProps = Object.defineProperties;
59070
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
59071
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
59072
- var __hasOwnProp = Object.prototype.hasOwnProperty;
59073
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
59074
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59075
- var __spreadValues = (a, b) => {
59098
+ var __defProp$9 = Object.defineProperty;
59099
+ var __defProps$8 = Object.defineProperties;
59100
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
59101
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
59102
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
59103
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
59104
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59105
+ var __spreadValues$9 = (a, b) => {
59076
59106
  for (var prop in b || (b = {}))
59077
- if (__hasOwnProp.call(b, prop))
59078
- __defNormalProp(a, prop, b[prop]);
59079
- if (__getOwnPropSymbols)
59080
- for (var prop of __getOwnPropSymbols(b)) {
59081
- if (__propIsEnum.call(b, prop))
59082
- __defNormalProp(a, prop, b[prop]);
59107
+ if (__hasOwnProp$9.call(b, prop))
59108
+ __defNormalProp$9(a, prop, b[prop]);
59109
+ if (__getOwnPropSymbols$9)
59110
+ for (var prop of __getOwnPropSymbols$9(b)) {
59111
+ if (__propIsEnum$9.call(b, prop))
59112
+ __defNormalProp$9(a, prop, b[prop]);
59083
59113
  }
59084
59114
  return a;
59085
59115
  };
59086
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
59116
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
59087
59117
  var __objRest = (source, exclude) => {
59088
59118
  var target = {};
59089
59119
  for (var prop in source)
59090
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
59120
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
59091
59121
  target[prop] = source[prop];
59092
- if (source != null && __getOwnPropSymbols)
59093
- for (var prop of __getOwnPropSymbols(source)) {
59094
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
59122
+ if (source != null && __getOwnPropSymbols$9)
59123
+ for (var prop of __getOwnPropSymbols$9(source)) {
59124
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
59095
59125
  target[prop] = source[prop];
59096
59126
  }
59097
59127
  return target;
@@ -59155,7 +59185,7 @@ function MoreMenu(_a) {
59155
59185
  setIsPayout(Boolean(ticket == null ? void 0 : ticket.isPayout));
59156
59186
  }, [ticket]);
59157
59187
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
59158
- const headers = __spreadValues({
59188
+ const headers = __spreadValues$9({
59159
59189
  "Content-Type": "application/json",
59160
59190
  "Accept": "application/json",
59161
59191
  "X-DeviceType": "WEB"
@@ -59261,23 +59291,23 @@ function MoreMenu(_a) {
59261
59291
  children: resolvedButton || defaultToggleContent
59262
59292
  };
59263
59293
  }
59264
- const customProps = __spreadValues({}, resolvedButton.props);
59294
+ const customProps = __spreadValues$9({}, resolvedButton.props);
59265
59295
  const customChildren = customProps.children;
59266
59296
  delete customProps.children;
59267
59297
  if (resolvedButton.type !== DropdownToggle) {
59268
59298
  customProps.tag = customProps.tag || resolvedButton.type;
59269
59299
  }
59270
59300
  return {
59271
- props: __spreadValues(__spreadValues({}, toggleProps), customProps),
59301
+ props: __spreadValues$9(__spreadValues$9({}, toggleProps), customProps),
59272
59302
  children: customChildren || defaultToggleContent
59273
59303
  };
59274
59304
  };
59275
59305
  const renderDropdownToggle = () => {
59276
59306
  const resolvedToggle = resolveDropdownButton();
59277
- return /* @__PURE__ */ jsx$1(DropdownToggle, __spreadProps(__spreadValues({}, resolvedToggle.props), { children: resolvedToggle.children }));
59307
+ return /* @__PURE__ */ jsx$1(DropdownToggle, __spreadProps$8(__spreadValues$9({}, resolvedToggle.props), { children: resolvedToggle.children }));
59278
59308
  };
59279
59309
  return /* @__PURE__ */ jsxs(Fragment, { children: [
59280
- /* @__PURE__ */ jsx$1(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxs(UncontrolledDropdown, __spreadProps(__spreadValues({ className: "drp-user font-Hanuman" }, props), { children: [
59310
+ /* @__PURE__ */ jsx$1(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxs(UncontrolledDropdown, __spreadProps$8(__spreadValues$9({ className: "drp-user font-Hanuman" }, props), { children: [
59281
59311
  renderDropdownToggle(),
59282
59312
  /* @__PURE__ */ jsxs(DropdownMenu, { className: "profile-notification pt-0", children: [
59283
59313
  /* @__PURE__ */ jsxs(DropdownItem, { header: true, className: "drop-header", children: [
@@ -59401,5 +59431,2066 @@ MoreMenu.propTypes = {
59401
59431
  ])
59402
59432
  };
59403
59433
 
59404
- export { DeleteModal, DeleteTicketButton, MoreMenu as DropdownMenu, KPLO, KPPostCode, Printer, ProtestButton, ProtestModal, ProtestTicket, RemarkConfigToggle, RemarkModal, RemarkModalShowOnly, SCPostCode, SaryLottery, SaryPrintAll, THLabel, Ticket, TicketModal, TransferModal, TransferTicket, clickRemarkBtn, getS3ImgPrint, getStoredIsRemark, isVNType, lType, lotteryLabel, lotteryLabelOnline, lotteryLabelVN, mapBetTitle, mapLabels, mapStrPost };
59434
+ var __defProp$8 = Object.defineProperty;
59435
+ var __defProps$7 = Object.defineProperties;
59436
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
59437
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
59438
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
59439
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
59440
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59441
+ var __spreadValues$8 = (a, b) => {
59442
+ for (var prop in b || (b = {}))
59443
+ if (__hasOwnProp$8.call(b, prop))
59444
+ __defNormalProp$8(a, prop, b[prop]);
59445
+ if (__getOwnPropSymbols$8)
59446
+ for (var prop of __getOwnPropSymbols$8(b)) {
59447
+ if (__propIsEnum$8.call(b, prop))
59448
+ __defNormalProp$8(a, prop, b[prop]);
59449
+ }
59450
+ return a;
59451
+ };
59452
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
59453
+ const RenderThWidth = ({ value, currency, id, colSpan = 1, className = "" }) => /* @__PURE__ */ jsx$1(
59454
+ "th",
59455
+ {
59456
+ colSpan,
59457
+ style: {
59458
+ minWidth: widthLength(value),
59459
+ border: "1px solid black"
59460
+ },
59461
+ className: `text-center ${value < 0 ? "text-danger" : ""} ${id ? "text-dark" : ""} ` + className,
59462
+ children: id ? value : moneyFormatter(value, currency)
59463
+ }
59464
+ );
59465
+ const TH = ({ children, colSpan = 1, className, border = true }) => /* @__PURE__ */ jsx$1("th", { style: {
59466
+ border: !border ? "0" : "1px solid black"
59467
+ }, colSpan, className: "text-center " + className, children });
59468
+ const THF = ({ children, colSpan = 1, className, style }) => /* @__PURE__ */ jsx$1(
59469
+ "th",
59470
+ {
59471
+ colSpan,
59472
+ style,
59473
+ className: "text-center b-0 " + className,
59474
+ children
59475
+ }
59476
+ );
59477
+ const THB = ({ children, colSpan = 1, className, style }) => /* @__PURE__ */ jsx$1(
59478
+ "th",
59479
+ {
59480
+ colSpan,
59481
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59482
+ border: "1px solid lightgray"
59483
+ }),
59484
+ className: "text-center " + className,
59485
+ children
59486
+ }
59487
+ );
59488
+ const RenderThWidthB = ({ value, currency, id, colSpan = 1, className = "", style }) => /* @__PURE__ */ jsx$1(
59489
+ "th",
59490
+ {
59491
+ colSpan,
59492
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59493
+ border: "1px solid lightgray",
59494
+ width: widthLength(value)
59495
+ }),
59496
+ className: `text-center ${value < 0 ? "text-danger" : ""} ` + className,
59497
+ children: id ? value : moneyFormatter(value, currency)
59498
+ }
59499
+ );
59500
+ const RenderThWidthF = ({ value, currency, id, colSpan = 1, className = "", style }) => /* @__PURE__ */ jsx$1(
59501
+ "th",
59502
+ {
59503
+ colSpan,
59504
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59505
+ width: widthLength(value)
59506
+ }),
59507
+ className: `text-center b-0 ${value < 0 ? "text-danger" : ""} ` + className,
59508
+ children: id ? value : moneyFormatter(value, currency)
59509
+ }
59510
+ );
59511
+
59512
+ let MainTableRow$2 = class MainTableRow extends Component {
59513
+ render() {
59514
+ const {
59515
+ object: {
59516
+ drawAt,
59517
+ bet1DUsd = 0,
59518
+ bet2DUsd = 0,
59519
+ bet3DUsd = 0,
59520
+ bet4DUsd = 0,
59521
+ bet1DKhr = 0,
59522
+ bet2DKhr = 0,
59523
+ bet3DKhr = 0,
59524
+ bet4DKhr = 0,
59525
+ win1DKhr = 0,
59526
+ win1DUsd = 0,
59527
+ win2DKhr = 0,
59528
+ win2DUsd = 0,
59529
+ win3DKhr = 0,
59530
+ win3DUsd = 0,
59531
+ win4DKhr = 0,
59532
+ win4DUsd = 0
59533
+ },
59534
+ id,
59535
+ total,
59536
+ isMix,
59537
+ isShow,
59538
+ mergeKhr,
59539
+ mergeUsd,
59540
+ isShowUsd,
59541
+ item: {
59542
+ isShow1DKhr,
59543
+ isShow4DKhr,
59544
+ isShow1DUsd,
59545
+ isShow4DUsd
59546
+ }
59547
+ } = this.props;
59548
+ return /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
59549
+ /* @__PURE__ */ jsx$1(
59550
+ TH,
59551
+ {
59552
+ colSpan: 2,
59553
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
59554
+ children: total ? total : getTime(drawAt)
59555
+ }
59556
+ ),
59557
+ isShow(isShow1DKhr) && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet1DKhr, currency: "KHR" }),
59558
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
59559
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
59560
+ isShow(isShow4DKhr) && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
59561
+ isShow(isShow1DUsd) && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet1DUsd, currency: "USD" }),
59562
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
59563
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
59564
+ isShow(isShow4DUsd) && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
59565
+ isMix && /* @__PURE__ */ jsx$1(
59566
+ RenderThWidth,
59567
+ {
59568
+ colSpan: mergeKhr,
59569
+ id,
59570
+ value: bet1DKhr + bet2DKhr + bet3DKhr + bet4DKhr,
59571
+ currency: "KHR"
59572
+ }
59573
+ ),
59574
+ isMix && isShowUsd && /* @__PURE__ */ jsx$1(
59575
+ RenderThWidth,
59576
+ {
59577
+ className: "green-l-h",
59578
+ colSpan: mergeUsd,
59579
+ id,
59580
+ value: formatUsd(bet1DUsd + bet2DUsd + bet3DUsd + bet4DUsd),
59581
+ currency: "USD"
59582
+ }
59583
+ ),
59584
+ isShow1DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win1DKhr, currency: "KHR" }),
59585
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
59586
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
59587
+ isShow4DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
59588
+ isShow1DUsd && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win1DUsd, currency: "USD" }),
59589
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
59590
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
59591
+ isShow4DUsd && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" })
59592
+ ] });
59593
+ }
59594
+ };
59595
+
59596
+ const MIX_DAILY_LABELS = {
59597
+ "labels:mix_daily_report.bet": "\u179B\u17BB\u1799\u179B\u1780\u17CB",
59598
+ "labels:mix_daily_report.reward": "\u179B\u17BB\u1799\u1788\u17D2\u1793\u17C7",
59599
+ "labels:mix_daily_report.shift": "\u1798\u17C9\u17C4\u1784",
59600
+ "labels:mix_daily_report.one_d": "1D",
59601
+ "labels:mix_daily_report.two_d": "2D",
59602
+ "labels:mix_daily_report.three_d": "3D",
59603
+ "labels:mix_daily_report.four_d": "4D",
59604
+ "labels:mix_daily_report.five_d": "5D"
59605
+ };
59606
+ const getMixDailyTranslator = (t) => (key) => {
59607
+ if (typeof t === "function") return t(key);
59608
+ return MIX_DAILY_LABELS[key] || key;
59609
+ };
59610
+ const getOptionalDigitLength = (...flags) => flags.filter(Boolean).length;
59611
+ const getReportClassName = (filter) => (filter == null ? void 0 : filter.lotteryType) === "ALL" ? "page-break" : "";
59612
+ const renderReportTitleRows = ({
59613
+ preTitle,
59614
+ lotteryType,
59615
+ nickname,
59616
+ username,
59617
+ date,
59618
+ titleColSpan,
59619
+ usernameColSpan,
59620
+ dateColSpan,
59621
+ dayColSpan,
59622
+ isSend
59623
+ }) => /* @__PURE__ */ jsx$1(React__default.Fragment, { children: /* @__PURE__ */ jsxs("tr", { className: ` ${isSend ? "bg-red-l2" : "yell-l-h"} text-center`, children: [
59624
+ /* @__PURE__ */ jsx$1(TH, { colSpan: 2, children: nickname }),
59625
+ /* @__PURE__ */ jsx$1(TH, { colSpan: usernameColSpan, className: "font-weight-bold", children: getMemberName(username) }),
59626
+ /* @__PURE__ */ jsx$1(TH, { colSpan: dateColSpan, className: "font-weight-bold", children: getDateF(date) }),
59627
+ /* @__PURE__ */ jsx$1(TH, { colSpan: dayColSpan, children: getDay(date) })
59628
+ ] }) });
59629
+ const renderReportSectionHeaderRow = ({ lotteryType, sections }) => /* @__PURE__ */ jsxs("tr", { className: "blue-h", children: [
59630
+ /* @__PURE__ */ jsx$1(TH, { colSpan: 2, children: lotteryReportLabel(lotteryType) }),
59631
+ sections.map((section) => section.isVisible !== false && /* @__PURE__ */ jsx$1(TH, { colSpan: section.colSpan, children: section.label }, section.key))
59632
+ ] });
59633
+ const renderReportColumnHeaderRow = (columns) => /* @__PURE__ */ jsx$1("tr", { children: columns.map((column) => column.isVisible !== false && /* @__PURE__ */ jsx$1(TH, { colSpan: column.colSpan, className: column.className, children: column.label }, column.key)) });
59634
+
59635
+ var __defProp$7 = Object.defineProperty;
59636
+ var __defProps$6 = Object.defineProperties;
59637
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
59638
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
59639
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
59640
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
59641
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59642
+ var __spreadValues$7 = (a, b) => {
59643
+ for (var prop in b || (b = {}))
59644
+ if (__hasOwnProp$7.call(b, prop))
59645
+ __defNormalProp$7(a, prop, b[prop]);
59646
+ if (__getOwnPropSymbols$7)
59647
+ for (var prop of __getOwnPropSymbols$7(b)) {
59648
+ if (__propIsEnum$7.call(b, prop))
59649
+ __defNormalProp$7(a, prop, b[prop]);
59650
+ }
59651
+ return a;
59652
+ };
59653
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
59654
+ const buildCommissionRows = (rows) => rows.map((row) => __spreadProps$6(__spreadValues$7({}, row), {
59655
+ rate: `x ${row.comRate}%`,
59656
+ khrValue: row.betAmountKhr,
59657
+ khrResult: row.comAmountKhr,
59658
+ usdValue: row.betAmountUsd,
59659
+ usdResult: row.comAmountUsd
59660
+ }));
59661
+ const buildRewardRows = (rows) => rows.map((row) => __spreadProps$6(__spreadValues$7({}, row), {
59662
+ khrValue: row.winAmountKhr,
59663
+ rate: row.rebateRateKhr,
59664
+ khrResult: row.rewardAmountKhr,
59665
+ usdValue: row.winAmountUsd,
59666
+ usdRate: row.rebateRateUsd,
59667
+ usdResult: row.rewardAmountUsd
59668
+ }));
59669
+ const renderCalculationRows = ({
59670
+ rows,
59671
+ id,
59672
+ isShowUsd,
59673
+ layout,
59674
+ valueClassName,
59675
+ resultClassName,
59676
+ usdResultClassName,
59677
+ rateClassName = "vio-l-h"
59678
+ }) => rows.map((row) => row.isVisible !== false && /* @__PURE__ */ jsx$1(React__default.Fragment, { children: renderCalculationRow(__spreadProps$6(__spreadValues$7({}, row), {
59679
+ id,
59680
+ isShowUsd,
59681
+ layout: row.layout || layout,
59682
+ valueClassName: row.valueClassName || valueClassName,
59683
+ resultClassName: row.resultClassName || resultClassName,
59684
+ usdResultClassName: row.usdResultClassName || usdResultClassName || row.resultClassName || resultClassName,
59685
+ rateClassName
59686
+ })) }, row.label));
59687
+ const renderSummaryBandRow = ({
59688
+ isShowUsd,
59689
+ khrColSpan,
59690
+ usdColSpan,
59691
+ khrLabel = "\u179F\u179A\u17BB\u1794\u179B\u17BB\u1799\u1780\u17B6\u178F\u17CB\u1791\u17B9\u1780\n(\u179A\u17C0\u179B)",
59692
+ usdLabel = "\u179F\u179A\u17BB\u1794\u179B\u17BB\u1799\u1780\u17B6\u178F\u17CB\u1791\u17B9\u1780\n(\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A)"
59693
+ }) => /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up b-vio-t", children: [
59694
+ /* @__PURE__ */ jsx$1(THF, { className: "blue-l-h", colSpan: khrColSpan, children: khrLabel }),
59695
+ isShowUsd && /* @__PURE__ */ jsx$1(THF, { colSpan: usdColSpan, className: "green-l-h text-left", children: usdLabel })
59696
+ ] });
59697
+ const renderWinLoseRow = ({
59698
+ id,
59699
+ isShowUsd,
59700
+ winLoseKhr,
59701
+ winLoseUsd,
59702
+ khrLabel = "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
59703
+ usdLabel = "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
59704
+ khrAfterValue = [],
59705
+ usdAfterValue = [],
59706
+ borderClassName = "b-vio-b"
59707
+ }) => /* @__PURE__ */ jsxs("tr", { className: `animate-slide-up ${borderClassName}`, children: [
59708
+ /* @__PURE__ */ jsx$1(THF, { className: "t-right", children: khrLabel }),
59709
+ /* @__PURE__ */ jsx$1(RenderThWidthF, { id, value: winLoseKhr, currency: "KHR" }),
59710
+ khrAfterValue.map(renderSpacer),
59711
+ isShowUsd && /* @__PURE__ */ jsx$1(THF, { className: "t-right", children: usdLabel }),
59712
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidthF, { id, value: winLoseUsd, currency: "USD" }),
59713
+ isShowUsd && usdAfterValue.map(renderSpacer)
59714
+ ] });
59715
+ const renderSpacer = ({ colSpan } = {}, key) => /* @__PURE__ */ jsx$1(THF, { colSpan }, key);
59716
+ const renderCalculationRow = ({
59717
+ className = "animate-slide-up",
59718
+ id,
59719
+ label,
59720
+ khrValue,
59721
+ rate,
59722
+ khrResult,
59723
+ usdValue,
59724
+ usdRate,
59725
+ usdResult,
59726
+ isShowUsd,
59727
+ layout,
59728
+ valueClassName,
59729
+ resultClassName,
59730
+ usdResultClassName,
59731
+ rateClassName
59732
+ }) => {
59733
+ var _a, _b, _c, _d;
59734
+ return /* @__PURE__ */ jsxs("tr", { className, children: [
59735
+ /* @__PURE__ */ jsx$1(THF, { className: "t-right", children: label }),
59736
+ /* @__PURE__ */ jsx$1(RenderThWidthF, { className: valueClassName, id, value: khrValue, currency: "KHR" }),
59737
+ (_a = layout.khrBeforeRate) == null ? void 0 : _a.map(renderSpacer),
59738
+ /* @__PURE__ */ jsx$1(THF, { className: rateClassName, children: rate }),
59739
+ /* @__PURE__ */ jsx$1(RenderThWidthF, { className: resultClassName, id, value: khrResult, currency: "KHR" }),
59740
+ (_b = layout.khrAfterResult) == null ? void 0 : _b.map(renderSpacer),
59741
+ isShowUsd && /* @__PURE__ */ jsx$1(THF, { className: "t-right", children: label }),
59742
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidthF, { className: valueClassName, id, value: usdValue, currency: "USD" }),
59743
+ isShowUsd && ((_c = layout.usdBeforeRate) == null ? void 0 : _c.map(renderSpacer)),
59744
+ isShowUsd && /* @__PURE__ */ jsx$1(THF, { className: rateClassName, children: usdRate || rate }),
59745
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidthF, { className: usdResultClassName, id, value: usdResult, currency: "USD" }),
59746
+ isShowUsd && ((_d = layout.usdAfterResult) == null ? void 0 : _d.map(renderSpacer))
59747
+ ] });
59748
+ };
59749
+
59750
+ var __defProp$6 = Object.defineProperty;
59751
+ var __defProps$5 = Object.defineProperties;
59752
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
59753
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
59754
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
59755
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
59756
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59757
+ var __spreadValues$6 = (a, b) => {
59758
+ for (var prop in b || (b = {}))
59759
+ if (__hasOwnProp$6.call(b, prop))
59760
+ __defNormalProp$6(a, prop, b[prop]);
59761
+ if (__getOwnPropSymbols$6)
59762
+ for (var prop of __getOwnPropSymbols$6(b)) {
59763
+ if (__propIsEnum$6.call(b, prop))
59764
+ __defNormalProp$6(a, prop, b[prop]);
59765
+ }
59766
+ return a;
59767
+ };
59768
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
59769
+ const getVnSectionColSpan = (show1D, show4D) => getOptionalDigitLength(show1D, show4D) + 2;
59770
+ const renderSectionHeaderRow$2 = ({
59771
+ t,
59772
+ lotteryType,
59773
+ isShowUsd,
59774
+ isShow1DKhr,
59775
+ isShow4DKhr,
59776
+ isShow1DUsd,
59777
+ isShow4DUsd
59778
+ }) => {
59779
+ const khrColSpan = getVnSectionColSpan(isShow1DKhr, isShow4DKhr);
59780
+ const usdColSpan = getVnSectionColSpan(isShow1DUsd, isShow4DUsd);
59781
+ return renderReportSectionHeaderRow({
59782
+ lotteryType,
59783
+ sections: [
59784
+ { key: "bet-khr", colSpan: khrColSpan, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
59785
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: usdColSpan, label: `${t("labels:mix_daily_report.bet")}(USD)` },
59786
+ { key: "reward-khr", colSpan: khrColSpan, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
59787
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: usdColSpan, label: `${t("labels:mix_daily_report.reward")}(USD)` }
59788
+ ]
59789
+ });
59790
+ };
59791
+ const renderColumnHeaderRow$2 = ({
59792
+ t,
59793
+ isMix,
59794
+ isShowUsd,
59795
+ isShow1DKhr,
59796
+ isShow4DKhr,
59797
+ isShow1DUsd,
59798
+ isShow4DUsd,
59799
+ mergeKhr,
59800
+ mergeUsd
59801
+ }) => renderReportColumnHeaderRow([
59802
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
59803
+ { key: "bet-1d-khr", isVisible: !isMix && isShow1DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.one_d") },
59804
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
59805
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
59806
+ { key: "bet-4d-khr", isVisible: !isMix && isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
59807
+ { key: "mix-khr", isVisible: isMix, colSpan: mergeKhr, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
59808
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: mergeUsd, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
59809
+ { key: "bet-1d-usd", isVisible: !isMix && isShow1DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.one_d") },
59810
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
59811
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
59812
+ { key: "bet-4d-usd", isVisible: !isMix && isShow4DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
59813
+ { key: "reward-1d-khr", isVisible: isShow1DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.one_d") },
59814
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
59815
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
59816
+ { key: "reward-4d-khr", isVisible: isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
59817
+ { key: "reward-1d-usd", isVisible: isShow1DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.one_d") },
59818
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
59819
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
59820
+ { key: "reward-4d-usd", isVisible: isShow4DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") }
59821
+ ]);
59822
+ const getSummaryRowLayout = ({ isShowUsd, getAllLength, mergeKhr }) => ({
59823
+ khrAfterResult: [{ colSpan: isShowUsd ? getAllLength + 2 : mergeKhr + 6 }],
59824
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
59825
+ });
59826
+ const getCommissionRows$2 = ({
59827
+ isMix,
59828
+ isShow1DKhr,
59829
+ isShow1DUsd,
59830
+ isShow4DKhr,
59831
+ isShow4DUsd,
59832
+ bet1DKhr,
59833
+ bet2DKhr,
59834
+ bet3DKhr,
59835
+ bet4DKhr,
59836
+ bet1DUsd,
59837
+ bet2DUsd,
59838
+ bet3DUsd,
59839
+ bet4DUsd,
59840
+ com1D,
59841
+ com2D,
59842
+ com3D,
59843
+ com4D,
59844
+ com1DKhr,
59845
+ com2DKhr,
59846
+ com3DKhr,
59847
+ com4DKhr,
59848
+ com1DUsd,
59849
+ com2DUsd,
59850
+ com3DUsd,
59851
+ com4DUsd
59852
+ }) => [
59853
+ ...buildCommissionRows([
59854
+ {
59855
+ isVisible: !isMix && (isShow1DKhr || isShow1DUsd),
59856
+ label: "1 \u179B\u17C1\u1781",
59857
+ betAmountKhr: bet1DKhr,
59858
+ comRate: com1D,
59859
+ comAmountKhr: com1DKhr,
59860
+ betAmountUsd: bet1DUsd,
59861
+ comAmountUsd: com1DUsd,
59862
+ className: "animate-slide-u"
59863
+ },
59864
+ {
59865
+ isVisible: !isMix,
59866
+ label: "2 \u179B\u17C1\u1781",
59867
+ betAmountKhr: bet2DKhr,
59868
+ comRate: com2D,
59869
+ comAmountKhr: com2DKhr,
59870
+ betAmountUsd: bet2DUsd,
59871
+ comAmountUsd: com2DUsd,
59872
+ className: "animate-slide-u"
59873
+ },
59874
+ {
59875
+ isVisible: !isMix,
59876
+ label: "3 \u179B\u17C1\u1781",
59877
+ betAmountKhr: bet3DKhr,
59878
+ comRate: com3D,
59879
+ comAmountKhr: com3DKhr,
59880
+ betAmountUsd: bet3DUsd,
59881
+ comAmountUsd: com3DUsd
59882
+ },
59883
+ {
59884
+ isVisible: !isMix && (isShow4DKhr || isShow4DUsd),
59885
+ label: "4 \u179B\u17C1\u1781",
59886
+ betAmountKhr: bet4DKhr,
59887
+ comRate: com4D,
59888
+ comAmountKhr: com4DKhr,
59889
+ betAmountUsd: bet4DUsd,
59890
+ comAmountUsd: com4DUsd
59891
+ }
59892
+ ]),
59893
+ {
59894
+ isVisible: isMix,
59895
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
59896
+ khrValue: bet1DKhr + bet2DKhr + bet3DKhr + bet4DKhr,
59897
+ rate: `x ${bet1DKhr > 0 ? `${com1D}/` : ""}${com2D}/${com3D}${bet4DKhr > 0 ? `/${com4D}` : ""}`,
59898
+ khrResult: com1DKhr + com2DKhr + com3DKhr + com4DKhr,
59899
+ usdValue: formatUsd(bet1DUsd + bet2DUsd + bet3DUsd + bet4DUsd),
59900
+ usdRate: `x ${bet1DUsd > 0 ? `${com1D}/` : ""}${com2D}/${com3D}${bet4DUsd > 0 ? `/${com4D}` : ""}`,
59901
+ usdResult: formatUsd(com1DUsd + com2DUsd + com3DUsd + com4DUsd),
59902
+ usdResultClassName: "blue-l-h"
59903
+ }
59904
+ ];
59905
+ const getRewardRows$2 = ({
59906
+ isShow1DKhr,
59907
+ isShow1DUsd,
59908
+ isShow4DKhr,
59909
+ isShow4DUsd,
59910
+ win1DKhr,
59911
+ win2DKhr,
59912
+ win3DKhr,
59913
+ win4DKhr,
59914
+ win1DUsd,
59915
+ win2DUsd,
59916
+ win3DUsd,
59917
+ win4DUsd,
59918
+ reward1DKhr,
59919
+ reward2DKhr,
59920
+ reward3DKhr,
59921
+ reward4DKhr,
59922
+ reward1DUsd,
59923
+ reward2DUsd,
59924
+ reward3DUsd,
59925
+ reward4DUsd,
59926
+ rebateRate1D,
59927
+ rebateRate2D,
59928
+ rebateRate3D,
59929
+ rebateRate4D
59930
+ }) => buildRewardRows([
59931
+ {
59932
+ isVisible: isShow1DKhr || isShow1DUsd,
59933
+ label: "\u178F\u17D2\u179A\u17BC\u179C 1 \u179B\u17C1\u1781",
59934
+ winAmountKhr: win1DKhr,
59935
+ rebateRateKhr: rebateRate1D,
59936
+ rewardAmountKhr: reward1DKhr,
59937
+ winAmountUsd: win1DUsd,
59938
+ rebateRateUsd: rebateRate1D,
59939
+ rewardAmountUsd: reward1DUsd
59940
+ },
59941
+ {
59942
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
59943
+ winAmountKhr: win2DKhr,
59944
+ rebateRateKhr: rebateRate2D,
59945
+ rewardAmountKhr: reward2DKhr,
59946
+ winAmountUsd: win2DUsd,
59947
+ rebateRateUsd: rebateRate2D,
59948
+ rewardAmountUsd: reward2DUsd
59949
+ },
59950
+ {
59951
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
59952
+ winAmountKhr: win3DKhr,
59953
+ rebateRateKhr: rebateRate3D,
59954
+ rewardAmountKhr: reward3DKhr,
59955
+ winAmountUsd: win3DUsd,
59956
+ rebateRateUsd: rebateRate3D,
59957
+ rewardAmountUsd: reward3DUsd
59958
+ },
59959
+ {
59960
+ isVisible: isShow4DKhr || isShow4DUsd,
59961
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
59962
+ winAmountKhr: win4DKhr,
59963
+ rebateRateKhr: rebateRate4D,
59964
+ rewardAmountKhr: reward4DKhr,
59965
+ winAmountUsd: win4DUsd,
59966
+ rebateRateUsd: rebateRate4D,
59967
+ rewardAmountUsd: reward4DUsd,
59968
+ className: "animate-slide-up b-vio-b"
59969
+ }
59970
+ ]);
59971
+ const MainVn = (props) => {
59972
+ const {
59973
+ t,
59974
+ item: {
59975
+ date,
59976
+ isShow1DKhr,
59977
+ isShow4DKhr,
59978
+ isShow1DUsd,
59979
+ isShow4DUsd,
59980
+ isShowUsd,
59981
+ items,
59982
+ username,
59983
+ nickname,
59984
+ summary: {
59985
+ com1DUsd = 0,
59986
+ com2DUsd = 0,
59987
+ com3DUsd = 0,
59988
+ com4DUsd = 0,
59989
+ com1DKhr = 0,
59990
+ com2DKhr = 0,
59991
+ com3DKhr = 0,
59992
+ com4DKhr = 0,
59993
+ bet1DUsd = 0,
59994
+ bet2DUsd = 0,
59995
+ bet3DUsd = 0,
59996
+ bet4DUsd = 0,
59997
+ bet1DKhr = 0,
59998
+ bet2DKhr = 0,
59999
+ bet3DKhr = 0,
60000
+ bet4DKhr = 0,
60001
+ reward1DKhr = 0,
60002
+ reward1DUsd = 0,
60003
+ reward2DKhr = 0,
60004
+ reward2DUsd = 0,
60005
+ reward3DUsd = 0,
60006
+ reward3DKhr = 0,
60007
+ reward4DUsd = 0,
60008
+ reward4DKhr = 0,
60009
+ win1DKhr = 0,
60010
+ win1DUsd = 0,
60011
+ win2DKhr = 0,
60012
+ win2DUsd = 0,
60013
+ win3DKhr = 0,
60014
+ win3DUsd = 0,
60015
+ win4DKhr = 0,
60016
+ win4DUsd = 0,
60017
+ winLoseKhr = 0,
60018
+ winLoseUsd = 0
60019
+ },
60020
+ hasLottery: {
60021
+ rebateRate1D = 0,
60022
+ rebateRate2D = 0,
60023
+ rebateRate3D = 0,
60024
+ rebateRate4D = 0,
60025
+ com1D = 0,
60026
+ com2D = 0,
60027
+ com3D = 0,
60028
+ com4D = 0
60029
+ } = {}
60030
+ },
60031
+ type,
60032
+ id,
60033
+ isMix,
60034
+ mixDailyReport,
60035
+ filter: directFilter,
60036
+ preTitle
60037
+ } = props;
60038
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60039
+ const translate = getMixDailyTranslator(t);
60040
+ const className = getReportClassName(filter);
60041
+ const getAllLength = getOptionalDigitLength(isShow1DKhr, isShow1DUsd, isShow4DKhr, isShow4DUsd);
60042
+ const getKHRLength = getOptionalDigitLength(isShow1DKhr, isShow4DKhr);
60043
+ const getUSDLength = getOptionalDigitLength(isShow1DUsd, isShow4DUsd);
60044
+ const mergeAll = getAllLength + 4;
60045
+ const mergeKhr = getKHRLength + 2;
60046
+ const mergeUsd = getUSDLength + 2;
60047
+ const summaryRowLayout = getSummaryRowLayout({ isShowUsd, getAllLength, mergeKhr });
60048
+ const commissionRows = getCommissionRows$2({
60049
+ isMix,
60050
+ isShow1DKhr,
60051
+ isShow1DUsd,
60052
+ isShow4DKhr,
60053
+ isShow4DUsd,
60054
+ bet1DKhr,
60055
+ bet2DKhr,
60056
+ bet3DKhr,
60057
+ bet4DKhr,
60058
+ bet1DUsd,
60059
+ bet2DUsd,
60060
+ bet3DUsd,
60061
+ bet4DUsd,
60062
+ com1D,
60063
+ com2D,
60064
+ com3D,
60065
+ com4D,
60066
+ com1DKhr,
60067
+ com2DKhr,
60068
+ com3DKhr,
60069
+ com4DKhr,
60070
+ com1DUsd,
60071
+ com2DUsd,
60072
+ com3DUsd,
60073
+ com4DUsd
60074
+ });
60075
+ const rewardRows = getRewardRows$2({
60076
+ isShow1DKhr,
60077
+ isShow1DUsd,
60078
+ isShow4DKhr,
60079
+ isShow4DUsd,
60080
+ win1DKhr,
60081
+ win2DKhr,
60082
+ win3DKhr,
60083
+ win4DKhr,
60084
+ win1DUsd,
60085
+ win2DUsd,
60086
+ win3DUsd,
60087
+ win4DUsd,
60088
+ reward1DKhr,
60089
+ reward2DKhr,
60090
+ reward3DKhr,
60091
+ reward4DKhr,
60092
+ reward1DUsd,
60093
+ reward2DUsd,
60094
+ reward3DUsd,
60095
+ reward4DUsd,
60096
+ rebateRate1D,
60097
+ rebateRate2D,
60098
+ rebateRate3D,
60099
+ rebateRate4D
60100
+ });
60101
+ const isShow = (value) => !isMix && value;
60102
+ const titleColSpan = isShowUsd ? 2 + mergeAll + mergeKhr + mergeUsd : 2 + mergeKhr * 2;
60103
+ return /* @__PURE__ */ jsx$1("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsx$1("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxs("tbody", { className: "pb-5", children: [
60104
+ renderReportTitleRows({
60105
+ preTitle,
60106
+ lotteryType: type,
60107
+ nickname,
60108
+ username,
60109
+ date,
60110
+ titleColSpan,
60111
+ usernameColSpan: isShowUsd ? mergeAll : mergeKhr,
60112
+ dateColSpan: isShowUsd ? mergeKhr : mergeKhr - 1,
60113
+ dayColSpan: isShowUsd ? mergeUsd : 1,
60114
+ isSend: filter == null ? void 0 : filter.isSend
60115
+ }),
60116
+ renderSectionHeaderRow$2({
60117
+ t: translate,
60118
+ lotteryType: type,
60119
+ isShowUsd,
60120
+ isShow1DKhr,
60121
+ isShow4DKhr,
60122
+ isShow1DUsd,
60123
+ isShow4DUsd
60124
+ }),
60125
+ renderColumnHeaderRow$2({
60126
+ t: translate,
60127
+ isMix,
60128
+ isShowUsd,
60129
+ isShow1DKhr,
60130
+ isShow4DKhr,
60131
+ isShow1DUsd,
60132
+ isShow4DUsd,
60133
+ mergeKhr,
60134
+ mergeUsd
60135
+ }),
60136
+ items && items.map((object, i) => /* @__PURE__ */ createElement$3(
60137
+ MainTableRow$2,
60138
+ __spreadProps$5(__spreadValues$6({
60139
+ isShowUsd,
60140
+ mergeKhr,
60141
+ mergeUsd,
60142
+ isShow
60143
+ }, props), {
60144
+ key: i,
60145
+ index: i + 1,
60146
+ item: props.item,
60147
+ object
60148
+ })
60149
+ )),
60150
+ /* @__PURE__ */ jsx$1(
60151
+ MainTableRow$2,
60152
+ __spreadProps$5(__spreadValues$6({
60153
+ isShowUsd,
60154
+ mergeKhr,
60155
+ mergeUsd,
60156
+ isShow
60157
+ }, props), {
60158
+ total: "\u179F\u179A\u17BB\u1794",
60159
+ item: props.item,
60160
+ object: __spreadValues$6({}, props.item.summary)
60161
+ })
60162
+ ),
60163
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1(THF, { colSpan: 10 }) }),
60164
+ renderSummaryBandRow({
60165
+ isShowUsd,
60166
+ khrColSpan: isShowUsd ? mergeAll : mergeKhr + 6,
60167
+ usdColSpan: getAllLength + 6
60168
+ }),
60169
+ renderCalculationRows({
60170
+ rows: commissionRows,
60171
+ id,
60172
+ isShowUsd,
60173
+ layout: summaryRowLayout,
60174
+ resultClassName: "blue-l-h",
60175
+ usdResultClassName: "green-l-h"
60176
+ }),
60177
+ renderCalculationRows({
60178
+ rows: rewardRows,
60179
+ id,
60180
+ isShowUsd,
60181
+ layout: summaryRowLayout,
60182
+ valueClassName: "t-blue",
60183
+ resultClassName: "t-blue b-gray-l"
60184
+ }),
60185
+ renderWinLoseRow({
60186
+ id,
60187
+ isShowUsd,
60188
+ winLoseKhr,
60189
+ winLoseUsd,
60190
+ khrAfterValue: [{ colSpan: isShowUsd ? getAllLength + 4 : mergeKhr + 8 }],
60191
+ usdAfterValue: [{ colSpan: 7 }]
60192
+ })
60193
+ ] }) }) });
60194
+ };
60195
+
60196
+ let MainTableRow$1 = class MainTableRow extends Component {
60197
+ render() {
60198
+ const {
60199
+ object: {
60200
+ drawAt,
60201
+ bet2DUsd = 0,
60202
+ bet3DUsd = 0,
60203
+ bet2DKhr = 0,
60204
+ bet3DKhr = 0,
60205
+ win2DKhr = 0,
60206
+ win2DUsd = 0,
60207
+ win3DKhr = 0,
60208
+ win3DUsd = 0,
60209
+ win4DKhr = 0,
60210
+ win4DUsd = 0,
60211
+ bet4DKhr = 0,
60212
+ bet4DUsd = 0
60213
+ },
60214
+ id,
60215
+ total,
60216
+ isMix,
60217
+ isShowUsd
60218
+ } = this.props;
60219
+ return /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
60220
+ /* @__PURE__ */ jsx$1(
60221
+ TH,
60222
+ {
60223
+ colSpan: 2,
60224
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
60225
+ children: total ? total : getTime(drawAt)
60226
+ }
60227
+ ),
60228
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
60229
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
60230
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
60231
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
60232
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
60233
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
60234
+ isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { colSpan: 2, id, value: bet2DKhr + bet3DKhr + bet4DKhr, currency: "KHR" }),
60235
+ isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", colSpan: 2, id, value: formatUsd(bet3DUsd + bet2DUsd + bet4DUsd), currency: "USD" }),
60236
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
60237
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
60238
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
60239
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
60240
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
60241
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" })
60242
+ ] });
60243
+ }
60244
+ };
60245
+
60246
+ var __defProp$5 = Object.defineProperty;
60247
+ var __defProps$4 = Object.defineProperties;
60248
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
60249
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
60250
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
60251
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
60252
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
60253
+ var __spreadValues$5 = (a, b) => {
60254
+ for (var prop in b || (b = {}))
60255
+ if (__hasOwnProp$5.call(b, prop))
60256
+ __defNormalProp$5(a, prop, b[prop]);
60257
+ if (__getOwnPropSymbols$5)
60258
+ for (var prop of __getOwnPropSymbols$5(b)) {
60259
+ if (__propIsEnum$5.call(b, prop))
60260
+ __defNormalProp$5(a, prop, b[prop]);
60261
+ }
60262
+ return a;
60263
+ };
60264
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
60265
+ const renderSectionHeaderRow$1 = ({ t, lotteryType, isMix, isShowUsd }) => renderReportSectionHeaderRow({
60266
+ lotteryType,
60267
+ sections: [
60268
+ { key: "bet-khr", colSpan: isMix ? 2 : 3, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
60269
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: isMix ? 2 : 3, label: `${t("labels:mix_daily_report.bet")}(USD)` },
60270
+ { key: "reward-khr", colSpan: 3, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
60271
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: 3, label: `${t("labels:mix_daily_report.reward")}(USD)` }
60272
+ ]
60273
+ });
60274
+ const renderColumnHeaderRow$1 = ({ t, isMix, isShowUsd }) => renderReportColumnHeaderRow([
60275
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
60276
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60277
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60278
+ { key: "bet-4d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60279
+ { key: "mix-khr", isVisible: isMix, colSpan: 2, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
60280
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: 2, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
60281
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60282
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60283
+ { key: "bet-4d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60284
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60285
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60286
+ { key: "reward-4d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60287
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60288
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60289
+ { key: "reward-4d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") }
60290
+ ]);
60291
+ const getCommissionRowLayout$1 = ({ isShowUsd }) => ({
60292
+ khrAfterResult: [{ colSpan: isShowUsd ? 3 : 4 }],
60293
+ usdAfterResult: [{}, {}, {}]
60294
+ });
60295
+ const getMixCommissionRowLayout$1 = ({ isShowUsd }) => ({
60296
+ khrAfterResult: [{ colSpan: isShowUsd ? 2 : 3 }],
60297
+ usdAfterResult: [{}, {}]
60298
+ });
60299
+ const getRewardRowLayout$1 = ({ isMix, isShowUsd }) => ({
60300
+ khrAfterResult: [
60301
+ { colSpan: isShowUsd ? 2 : 3 },
60302
+ ...!isMix ? [{}] : []
60303
+ ],
60304
+ usdAfterResult: [
60305
+ {},
60306
+ {},
60307
+ ...!isMix ? [{}] : []
60308
+ ]
60309
+ });
60310
+ const getWinLoseLayout$1 = ({ isMix, isShowUsd }) => ({
60311
+ khrAfterValue: [
60312
+ { colSpan: isShowUsd ? 4 : 5 },
60313
+ ...!isMix ? [{}] : []
60314
+ ],
60315
+ usdAfterValue: [
60316
+ { colSpan: 4 },
60317
+ ...!isMix ? [{}] : []
60318
+ ]
60319
+ });
60320
+ const getCommissionRows$1 = ({
60321
+ isMix,
60322
+ isShowUsd,
60323
+ bet2DKhr,
60324
+ bet3DKhr,
60325
+ bet4DKhr,
60326
+ bet2DUsd,
60327
+ bet3DUsd,
60328
+ bet4DUsd,
60329
+ com2D,
60330
+ com3D,
60331
+ com4D,
60332
+ com2DKhr,
60333
+ com3DKhr,
60334
+ com4DKhr,
60335
+ com2DUsd,
60336
+ com3DUsd,
60337
+ com4DUsd
60338
+ }) => [
60339
+ ...buildCommissionRows([
60340
+ {
60341
+ isVisible: !isMix,
60342
+ label: "2 \u179B\u17C1\u1781",
60343
+ betAmountKhr: bet2DKhr,
60344
+ comRate: com2D,
60345
+ comAmountKhr: com2DKhr,
60346
+ betAmountUsd: bet2DUsd,
60347
+ comAmountUsd: com2DUsd,
60348
+ className: "animate-slide-u"
60349
+ },
60350
+ {
60351
+ isVisible: !isMix,
60352
+ label: "3 \u179B\u17C1\u1781",
60353
+ betAmountKhr: bet3DKhr,
60354
+ comRate: com3D,
60355
+ comAmountKhr: com3DKhr,
60356
+ betAmountUsd: bet3DUsd,
60357
+ comAmountUsd: com3DUsd
60358
+ },
60359
+ {
60360
+ isVisible: !isMix,
60361
+ label: "4 \u179B\u17C1\u1781",
60362
+ betAmountKhr: bet4DKhr,
60363
+ comRate: com4D,
60364
+ comAmountKhr: com4DKhr,
60365
+ betAmountUsd: bet4DUsd,
60366
+ comAmountUsd: com4DUsd
60367
+ }
60368
+ ]),
60369
+ {
60370
+ isVisible: isMix,
60371
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
60372
+ khrValue: bet2DKhr + bet3DKhr + bet4DKhr,
60373
+ rate: `x ${com2D}/${com3D}/${com4D}`,
60374
+ khrResult: com2DKhr + com3DKhr + com4DKhr,
60375
+ usdValue: formatUsd(bet2DUsd + bet3DUsd + bet4DUsd),
60376
+ usdResult: formatUsd(com2DUsd + com3DUsd + com4DUsd),
60377
+ usdResultClassName: "blue-l-h",
60378
+ layout: getMixCommissionRowLayout$1({ isShowUsd })
60379
+ }
60380
+ ];
60381
+ const getRewardRows$1 = ({
60382
+ win2DKhr,
60383
+ win3DKhr,
60384
+ win4DKhr,
60385
+ win2DUsd,
60386
+ win3DUsd,
60387
+ win4DUsd,
60388
+ reward2DKhr,
60389
+ reward3DKhr,
60390
+ reward4DKhr,
60391
+ reward2DUsd,
60392
+ reward3DUsd,
60393
+ reward4DUsd,
60394
+ rebateRate2D,
60395
+ rebateRate3D,
60396
+ rebateRate4D
60397
+ }) => buildRewardRows([
60398
+ {
60399
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
60400
+ winAmountKhr: win2DKhr,
60401
+ rebateRateKhr: rebateRate2D,
60402
+ rewardAmountKhr: reward2DKhr,
60403
+ winAmountUsd: win2DUsd,
60404
+ rebateRateUsd: rebateRate2D,
60405
+ rewardAmountUsd: reward2DUsd
60406
+ },
60407
+ {
60408
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
60409
+ winAmountKhr: win3DKhr,
60410
+ rebateRateKhr: rebateRate3D,
60411
+ rewardAmountKhr: reward3DKhr,
60412
+ winAmountUsd: win3DUsd,
60413
+ rebateRateUsd: rebateRate3D,
60414
+ rewardAmountUsd: reward3DUsd
60415
+ },
60416
+ {
60417
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
60418
+ winAmountKhr: win4DKhr,
60419
+ rebateRateKhr: rebateRate4D,
60420
+ rewardAmountKhr: reward4DKhr,
60421
+ winAmountUsd: win4DUsd,
60422
+ rebateRateUsd: rebateRate4D,
60423
+ rewardAmountUsd: reward4DUsd
60424
+ }
60425
+ ]);
60426
+ const MainLeap = (props) => {
60427
+ const {
60428
+ t,
60429
+ item: {
60430
+ date,
60431
+ items,
60432
+ username,
60433
+ nickname,
60434
+ summary: {
60435
+ com2DUsd = 0,
60436
+ com3DUsd = 0,
60437
+ com4DUsd = 0,
60438
+ com2DKhr = 0,
60439
+ com3DKhr = 0,
60440
+ com4DKhr = 0,
60441
+ bet2DUsd = 0,
60442
+ bet3DUsd = 0,
60443
+ bet4DUsd = 0,
60444
+ bet2DKhr = 0,
60445
+ bet3DKhr = 0,
60446
+ bet4DKhr = 0,
60447
+ reward2DKhr = 0,
60448
+ reward2DUsd = 0,
60449
+ reward3DUsd = 0,
60450
+ reward3DKhr = 0,
60451
+ reward4DKhr = 0,
60452
+ reward4DUsd = 0,
60453
+ win2DKhr = 0,
60454
+ win2DUsd = 0,
60455
+ win3DKhr = 0,
60456
+ win4DKhr = 0,
60457
+ win3DUsd = 0,
60458
+ win4DUsd = 0,
60459
+ winLoseKhr = 0,
60460
+ winLoseUsd = 0
60461
+ },
60462
+ hasLottery: {
60463
+ rebateRate2D = 0,
60464
+ rebateRate3D = 0,
60465
+ rebateRate4D = 0,
60466
+ com2D = 0,
60467
+ com3D = 0,
60468
+ com4D = 0
60469
+ } = {},
60470
+ isShowUsd
60471
+ },
60472
+ id,
60473
+ isMix,
60474
+ type,
60475
+ mixDailyReport,
60476
+ filter: directFilter,
60477
+ preTitle
60478
+ } = props;
60479
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60480
+ const translate = getMixDailyTranslator(t);
60481
+ const className = getReportClassName(filter);
60482
+ const commissionRows = getCommissionRows$1({
60483
+ isMix,
60484
+ isShowUsd,
60485
+ bet2DKhr,
60486
+ bet3DKhr,
60487
+ bet4DKhr,
60488
+ bet2DUsd,
60489
+ bet3DUsd,
60490
+ bet4DUsd,
60491
+ com2D,
60492
+ com3D,
60493
+ com4D,
60494
+ com2DKhr,
60495
+ com3DKhr,
60496
+ com4DKhr,
60497
+ com2DUsd,
60498
+ com3DUsd,
60499
+ com4DUsd
60500
+ });
60501
+ const rewardRows = getRewardRows$1({
60502
+ win2DKhr,
60503
+ win3DKhr,
60504
+ win4DKhr,
60505
+ win2DUsd,
60506
+ win3DUsd,
60507
+ win4DUsd,
60508
+ reward2DKhr,
60509
+ reward3DKhr,
60510
+ reward4DKhr,
60511
+ reward2DUsd,
60512
+ reward3DUsd,
60513
+ reward4DUsd,
60514
+ rebateRate2D,
60515
+ rebateRate3D,
60516
+ rebateRate4D
60517
+ });
60518
+ const rewardRowLayout = getRewardRowLayout$1({ isMix, isShowUsd });
60519
+ return /* @__PURE__ */ jsx$1("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsx$1("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxs("tbody", { className: "pb-5", children: [
60520
+ renderReportTitleRows({
60521
+ preTitle,
60522
+ lotteryType: type,
60523
+ nickname,
60524
+ username,
60525
+ date,
60526
+ titleColSpan: isShowUsd ? isMix ? 12 : 14 : isMix ? 7 : 8,
60527
+ usernameColSpan: isShowUsd ? 5 : isMix ? 2 : 3,
60528
+ dateColSpan: isShowUsd ? 3 : 2,
60529
+ dayColSpan: isShowUsd ? isMix ? 2 : 4 : 1,
60530
+ isSend: filter == null ? void 0 : filter.isSend
60531
+ }),
60532
+ renderSectionHeaderRow$1({ t: translate, lotteryType: type, isMix, isShowUsd }),
60533
+ renderColumnHeaderRow$1({ t: translate, isMix, isShowUsd }),
60534
+ items && items.map((object, i) => /* @__PURE__ */ createElement$3(
60535
+ MainTableRow$1,
60536
+ __spreadProps$4(__spreadValues$5({
60537
+ isShowUsd
60538
+ }, props), {
60539
+ key: i,
60540
+ index: i + 1,
60541
+ object
60542
+ })
60543
+ )),
60544
+ /* @__PURE__ */ jsx$1(
60545
+ MainTableRow$1,
60546
+ __spreadProps$4(__spreadValues$5({}, props), {
60547
+ isShowUsd,
60548
+ total: "\u179F\u179A\u17BB\u1794",
60549
+ object: __spreadValues$5({}, props.item.summary)
60550
+ })
60551
+ ),
60552
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1(THF, { colSpan: 10 }) }),
60553
+ renderSummaryBandRow({
60554
+ isShowUsd,
60555
+ khrColSpan: isShowUsd ? isMix ? 6 : 7 : 8,
60556
+ usdColSpan: isMix ? 6 : 7
60557
+ }),
60558
+ renderCalculationRows({
60559
+ rows: commissionRows,
60560
+ id,
60561
+ isShowUsd,
60562
+ layout: getCommissionRowLayout$1({ isShowUsd }),
60563
+ resultClassName: "blue-l-h",
60564
+ usdResultClassName: "green-l-h"
60565
+ }),
60566
+ renderCalculationRows({
60567
+ rows: rewardRows,
60568
+ id,
60569
+ isShowUsd,
60570
+ layout: rewardRowLayout,
60571
+ valueClassName: "t-blue",
60572
+ resultClassName: "t-blue b-gray-l"
60573
+ }),
60574
+ renderWinLoseRow(__spreadValues$5({
60575
+ id,
60576
+ isShowUsd,
60577
+ winLoseKhr,
60578
+ winLoseUsd
60579
+ }, getWinLoseLayout$1({ isMix, isShowUsd })))
60580
+ ] }) }) });
60581
+ };
60582
+
60583
+ class MainTableRow extends Component {
60584
+ render() {
60585
+ const {
60586
+ object: {
60587
+ drawAt,
60588
+ bet2DUsd = 0,
60589
+ bet3DUsd = 0,
60590
+ bet2DKhr = 0,
60591
+ bet3DKhr = 0,
60592
+ win2DKhr = 0,
60593
+ win2DUsd = 0,
60594
+ win3DKhr = 0,
60595
+ win3DUsd = 0,
60596
+ win4DKhr = 0,
60597
+ win4DUsd = 0,
60598
+ bet4DKhr = 0,
60599
+ bet4DUsd = 0,
60600
+ win5DKhr = 0,
60601
+ win5DUsd = 0,
60602
+ bet5DKhr = 0,
60603
+ bet5DUsd = 0
60604
+ },
60605
+ id,
60606
+ total,
60607
+ isMix,
60608
+ isShowUsd,
60609
+ isShow4DUsd,
60610
+ isShow4DKhr,
60611
+ isShow5DUsd,
60612
+ isShow5DKhr
60613
+ } = this.props;
60614
+ return /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
60615
+ /* @__PURE__ */ jsx$1(
60616
+ TH,
60617
+ {
60618
+ colSpan: 2,
60619
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
60620
+ children: total ? total : getTime(drawAt)
60621
+ }
60622
+ ),
60623
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
60624
+ !isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
60625
+ !isMix && isShow4DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
60626
+ !isMix && isShow5DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { id, value: bet5DKhr, currency: "KHR" }),
60627
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
60628
+ !isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
60629
+ !isMix && isShowUsd && isShow4DUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
60630
+ !isMix && isShowUsd && isShow5DUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", id, value: bet5DUsd, currency: "USD" }),
60631
+ isMix && /* @__PURE__ */ jsx$1(RenderThWidth, { colSpan: 2, id, value: bet2DKhr + bet3DKhr + bet4DKhr + bet5DKhr, currency: "KHR" }),
60632
+ isMix && isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h", colSpan: 2, id, value: formatUsd(bet3DUsd + bet2DUsd + bet4DUsd + bet5DUsd), currency: "USD" }),
60633
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
60634
+ /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
60635
+ isShow4DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
60636
+ isShow5DKhr && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "t-blue", id, value: win5DKhr, currency: "KHR" }),
60637
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
60638
+ isShowUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
60639
+ isShowUsd && isShow4DUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" }),
60640
+ isShowUsd && isShow5DUsd && /* @__PURE__ */ jsx$1(RenderThWidth, { className: "green-l-h t-blue", id, value: win5DUsd, currency: "USD" })
60641
+ ] });
60642
+ }
60643
+ }
60644
+
60645
+ var __defProp$4 = Object.defineProperty;
60646
+ var __defProps$3 = Object.defineProperties;
60647
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
60648
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
60649
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
60650
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
60651
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
60652
+ var __spreadValues$4 = (a, b) => {
60653
+ for (var prop in b || (b = {}))
60654
+ if (__hasOwnProp$4.call(b, prop))
60655
+ __defNormalProp$4(a, prop, b[prop]);
60656
+ if (__getOwnPropSymbols$4)
60657
+ for (var prop of __getOwnPropSymbols$4(b)) {
60658
+ if (__propIsEnum$4.call(b, prop))
60659
+ __defNormalProp$4(a, prop, b[prop]);
60660
+ }
60661
+ return a;
60662
+ };
60663
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
60664
+ const renderSectionHeaderRow = ({ t, lotteryType, isMix, isShowUsd, getKHRLength, getUSDLength }) => renderReportSectionHeaderRow({
60665
+ lotteryType,
60666
+ sections: [
60667
+ { key: "bet-khr", colSpan: isMix ? 2 : getKHRLength + 2, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
60668
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: isMix ? 2 : getUSDLength + 2, label: `${t("labels:mix_daily_report.bet")}(USD)` },
60669
+ { key: "reward-khr", colSpan: getKHRLength + 2, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
60670
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: getUSDLength + 2, label: `${t("labels:mix_daily_report.reward")}(USD)` }
60671
+ ]
60672
+ });
60673
+ const renderColumnHeaderRow = ({
60674
+ t,
60675
+ isMix,
60676
+ isShowUsd,
60677
+ isShow4DUsd,
60678
+ isShow4DKhr,
60679
+ isShow5DUsd,
60680
+ isShow5DKhr
60681
+ }) => renderReportColumnHeaderRow([
60682
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
60683
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60684
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60685
+ { key: "bet-4d-khr", isVisible: !isMix && isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60686
+ { key: "bet-5d-khr", isVisible: !isMix && isShow5DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.five_d") },
60687
+ { key: "mix-khr", isVisible: isMix, colSpan: 2, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
60688
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: 2, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
60689
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60690
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60691
+ { key: "bet-4d-usd", isVisible: !isMix && isShowUsd && isShow4DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60692
+ { key: "bet-5d-usd", isVisible: !isMix && isShowUsd && isShow5DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.five_d") },
60693
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60694
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60695
+ { key: "reward-4d-khr", isVisible: isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60696
+ { key: "reward-5d-khr", isVisible: isShow5DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.five_d") },
60697
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60698
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60699
+ { key: "reward-4d-usd", isVisible: isShowUsd && isShow4DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60700
+ { key: "reward-5d-usd", isVisible: isShowUsd && isShow5DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.five_d") }
60701
+ ]);
60702
+ const getCommissionRowLayout = ({ isShowUsd, getAllLength, getKHRLength }) => ({
60703
+ khrAfterResult: [{ colSpan: isShowUsd ? getAllLength + 2 : getKHRLength * 2 + 2 }],
60704
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60705
+ });
60706
+ const getMixCommissionRowLayout = ({ isShowUsd, getAllLength }) => ({
60707
+ khrAfterResult: [{ colSpan: isShowUsd ? 2 : 3 }],
60708
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60709
+ });
60710
+ const getRewardRowLayout = ({ isMix, isShowUsd, getAllLength, getKHRLength }) => ({
60711
+ khrAfterResult: [{
60712
+ colSpan: isMix ? isShowUsd ? 2 : getKHRLength + 3 : isShowUsd ? getAllLength + 2 : getKHRLength * 2 + 2
60713
+ }],
60714
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60715
+ });
60716
+ const getWinLoseLayout = ({ isMix, isShowUsd, getAllLength, getKHRLength }) => ({
60717
+ khrAfterValue: [{
60718
+ colSpan: isMix ? isShowUsd ? 4 : getKHRLength + 5 : isShowUsd ? getAllLength + 4 : getKHRLength * 2 + 4
60719
+ }],
60720
+ usdAfterValue: [{ colSpan: getAllLength + 2 }]
60721
+ });
60722
+ const getCommissionRows = ({
60723
+ isMix,
60724
+ isShow4DKhr,
60725
+ isShow4DUsd,
60726
+ isShow5DKhr,
60727
+ isShow5DUsd,
60728
+ isShowUsd,
60729
+ getAllLength,
60730
+ bet2DKhr,
60731
+ bet3DKhr,
60732
+ bet4DKhr,
60733
+ bet5DKhr,
60734
+ bet2DUsd,
60735
+ bet3DUsd,
60736
+ bet4DUsd,
60737
+ bet5DUsd,
60738
+ com2D,
60739
+ com3D,
60740
+ com4D,
60741
+ com5D,
60742
+ com2DKhr,
60743
+ com3DKhr,
60744
+ com4DKhr,
60745
+ com5DKhr,
60746
+ com2DUsd,
60747
+ com3DUsd,
60748
+ com4DUsd,
60749
+ com5DUsd
60750
+ }) => [
60751
+ ...buildCommissionRows([
60752
+ {
60753
+ isVisible: !isMix,
60754
+ label: "2 \u179B\u17C1\u1781",
60755
+ betAmountKhr: bet2DKhr,
60756
+ comRate: com2D,
60757
+ comAmountKhr: com2DKhr,
60758
+ betAmountUsd: bet2DUsd,
60759
+ comAmountUsd: com2DUsd,
60760
+ className: "animate-slide-u"
60761
+ },
60762
+ {
60763
+ isVisible: !isMix,
60764
+ label: "3 \u179B\u17C1\u1781",
60765
+ betAmountKhr: bet3DKhr,
60766
+ comRate: com3D,
60767
+ comAmountKhr: com3DKhr,
60768
+ betAmountUsd: bet3DUsd,
60769
+ comAmountUsd: com3DUsd
60770
+ },
60771
+ {
60772
+ isVisible: !isMix && (isShow4DKhr || isShow4DUsd),
60773
+ label: "4 \u179B\u17C1\u1781",
60774
+ betAmountKhr: bet4DKhr,
60775
+ comRate: com4D,
60776
+ comAmountKhr: com4DKhr,
60777
+ betAmountUsd: bet4DUsd,
60778
+ comAmountUsd: com4DUsd
60779
+ },
60780
+ {
60781
+ isVisible: !isMix && (isShow5DKhr || isShow5DUsd),
60782
+ label: "5 \u179B\u17C1\u1781",
60783
+ betAmountKhr: bet5DKhr,
60784
+ comRate: com5D,
60785
+ comAmountKhr: com5DKhr,
60786
+ betAmountUsd: bet5DUsd,
60787
+ comAmountUsd: com5DUsd
60788
+ }
60789
+ ]),
60790
+ {
60791
+ isVisible: isMix,
60792
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
60793
+ khrValue: bet2DKhr + bet3DKhr + bet4DKhr + bet5DKhr,
60794
+ rate: `x ${com2D}/${com3D}${isShow4DKhr ? `/${com4D}` : ""}${isShow5DKhr ? `/${com5D}` : ""}`,
60795
+ khrResult: com2DKhr + com3DKhr + com4DKhr + com5DKhr,
60796
+ usdValue: formatUsd(bet2DUsd + bet3DUsd + bet4DUsd + bet5DUsd),
60797
+ usdRate: `x ${com2D}/${com3D}${isShow4DUsd ? `/${com4D}` : ""}${isShow5DUsd ? `/${com5D}` : ""}`,
60798
+ usdResult: formatUsd(com2DUsd + com3DUsd + com4DUsd + com5DUsd),
60799
+ usdResultClassName: "blue-l-h",
60800
+ layout: getMixCommissionRowLayout({ isShowUsd, getAllLength })
60801
+ }
60802
+ ];
60803
+ const getRewardRows = ({
60804
+ isShow4DKhr,
60805
+ isShow4DUsd,
60806
+ isShow5DKhr,
60807
+ isShow5DUsd,
60808
+ win2DKhr,
60809
+ win3DKhr,
60810
+ win4DKhr,
60811
+ win5DKhr,
60812
+ win2DUsd,
60813
+ win3DUsd,
60814
+ win4DUsd,
60815
+ win5DUsd,
60816
+ reward2DKhr,
60817
+ reward3DKhr,
60818
+ reward4DKhr,
60819
+ reward5DKhr,
60820
+ reward2DUsd,
60821
+ reward3DUsd,
60822
+ reward4DUsd,
60823
+ reward5DUsd,
60824
+ rebateRate2D,
60825
+ rebateRate3D,
60826
+ rebateRate4D,
60827
+ rebateRate5D
60828
+ }) => buildRewardRows([
60829
+ {
60830
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
60831
+ winAmountKhr: win2DKhr,
60832
+ rebateRateKhr: rebateRate2D,
60833
+ rewardAmountKhr: reward2DKhr,
60834
+ winAmountUsd: win2DUsd,
60835
+ rebateRateUsd: rebateRate2D,
60836
+ rewardAmountUsd: reward2DUsd
60837
+ },
60838
+ {
60839
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
60840
+ winAmountKhr: win3DKhr,
60841
+ rebateRateKhr: rebateRate3D,
60842
+ rewardAmountKhr: reward3DKhr,
60843
+ winAmountUsd: win3DUsd,
60844
+ rebateRateUsd: rebateRate3D,
60845
+ rewardAmountUsd: reward3DUsd
60846
+ },
60847
+ {
60848
+ isVisible: isShow4DKhr || isShow4DUsd,
60849
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
60850
+ winAmountKhr: win4DKhr,
60851
+ rebateRateKhr: rebateRate4D,
60852
+ rewardAmountKhr: reward4DKhr,
60853
+ winAmountUsd: win4DUsd,
60854
+ rebateRateUsd: rebateRate4D,
60855
+ rewardAmountUsd: reward4DUsd
60856
+ },
60857
+ {
60858
+ isVisible: isShow5DKhr || isShow5DUsd,
60859
+ label: "\u178F\u17D2\u179A\u17BC\u179C 5 \u179B\u17C1\u1781",
60860
+ winAmountKhr: win5DKhr,
60861
+ rebateRateKhr: rebateRate5D,
60862
+ rewardAmountKhr: reward5DKhr,
60863
+ winAmountUsd: win5DUsd,
60864
+ rebateRateUsd: rebateRate5D,
60865
+ rewardAmountUsd: reward5DUsd
60866
+ }
60867
+ ]);
60868
+ const MainSC = (props) => {
60869
+ const {
60870
+ t,
60871
+ item: {
60872
+ date,
60873
+ items,
60874
+ username,
60875
+ nickname,
60876
+ summary: {
60877
+ com2DUsd = 0,
60878
+ com3DUsd = 0,
60879
+ com4DUsd = 0,
60880
+ com5DUsd = 0,
60881
+ com2DKhr = 0,
60882
+ com3DKhr = 0,
60883
+ com4DKhr = 0,
60884
+ com5DKhr = 0,
60885
+ bet2DUsd = 0,
60886
+ bet3DUsd = 0,
60887
+ bet4DUsd = 0,
60888
+ bet5DUsd = 0,
60889
+ bet2DKhr = 0,
60890
+ bet3DKhr = 0,
60891
+ bet4DKhr = 0,
60892
+ bet5DKhr = 0,
60893
+ reward2DKhr = 0,
60894
+ reward2DUsd = 0,
60895
+ reward3DUsd = 0,
60896
+ reward3DKhr = 0,
60897
+ reward4DKhr = 0,
60898
+ reward4DUsd = 0,
60899
+ reward5DKhr = 0,
60900
+ reward5DUsd = 0,
60901
+ win2DKhr = 0,
60902
+ win2DUsd = 0,
60903
+ win3DKhr = 0,
60904
+ win4DKhr = 0,
60905
+ win5DKhr = 0,
60906
+ win3DUsd = 0,
60907
+ win4DUsd = 0,
60908
+ win5DUsd = 0,
60909
+ winLoseKhr = 0,
60910
+ winLoseUsd = 0
60911
+ },
60912
+ hasLottery: {
60913
+ rebateRate2D = 0,
60914
+ rebateRate3D = 0,
60915
+ rebateRate4D = 0,
60916
+ rebateRate5D = 0,
60917
+ com2D = 0,
60918
+ com3D = 0,
60919
+ com4D = 0,
60920
+ com5D = 0
60921
+ } = {},
60922
+ isShowUsd,
60923
+ isShow4DUsd,
60924
+ isShow4DKhr,
60925
+ isShow5DUsd,
60926
+ isShow5DKhr
60927
+ },
60928
+ id,
60929
+ isMix,
60930
+ type,
60931
+ mixDailyReport,
60932
+ filter: directFilter,
60933
+ preTitle
60934
+ } = props;
60935
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60936
+ const translate = getMixDailyTranslator(t);
60937
+ const className = getReportClassName(filter);
60938
+ const getAllLength = getOptionalDigitLength(isShow4DUsd, isShow4DKhr, isShow5DKhr, isShow5DUsd);
60939
+ const getAllLength2 = getAllLength * 2;
60940
+ const getKHRLength = getOptionalDigitLength(isShow4DKhr, isShow5DKhr);
60941
+ const getUSDLength = getOptionalDigitLength(isShow4DUsd, isShow5DUsd);
60942
+ const commissionRows = getCommissionRows({
60943
+ isMix,
60944
+ isShow4DKhr,
60945
+ isShow4DUsd,
60946
+ isShow5DKhr,
60947
+ isShow5DUsd,
60948
+ isShowUsd,
60949
+ getAllLength,
60950
+ bet2DKhr,
60951
+ bet3DKhr,
60952
+ bet4DKhr,
60953
+ bet5DKhr,
60954
+ bet2DUsd,
60955
+ bet3DUsd,
60956
+ bet4DUsd,
60957
+ bet5DUsd,
60958
+ com2D,
60959
+ com3D,
60960
+ com4D,
60961
+ com5D,
60962
+ com2DKhr,
60963
+ com3DKhr,
60964
+ com4DKhr,
60965
+ com5DKhr,
60966
+ com2DUsd,
60967
+ com3DUsd,
60968
+ com4DUsd,
60969
+ com5DUsd
60970
+ });
60971
+ const rewardRows = getRewardRows({
60972
+ isShow4DKhr,
60973
+ isShow4DUsd,
60974
+ isShow5DKhr,
60975
+ isShow5DUsd,
60976
+ win2DKhr,
60977
+ win3DKhr,
60978
+ win4DKhr,
60979
+ win5DKhr,
60980
+ win2DUsd,
60981
+ win3DUsd,
60982
+ win4DUsd,
60983
+ win5DUsd,
60984
+ reward2DKhr,
60985
+ reward3DKhr,
60986
+ reward4DKhr,
60987
+ reward5DKhr,
60988
+ reward2DUsd,
60989
+ reward3DUsd,
60990
+ reward4DUsd,
60991
+ reward5DUsd,
60992
+ rebateRate2D,
60993
+ rebateRate3D,
60994
+ rebateRate4D,
60995
+ rebateRate5D
60996
+ });
60997
+ const commissionRowLayout = getCommissionRowLayout({ isShowUsd, getAllLength, getKHRLength });
60998
+ const rewardRowLayout = getRewardRowLayout({ isMix, isShowUsd, getAllLength, getKHRLength });
60999
+ return /* @__PURE__ */ jsx$1("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsx$1("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxs("tbody", { className: "pb-5", children: [
61000
+ renderReportTitleRows({
61001
+ preTitle,
61002
+ lotteryType: type,
61003
+ nickname,
61004
+ username,
61005
+ date,
61006
+ titleColSpan: isShowUsd ? isMix ? getAllLength + 10 : getAllLength2 + 10 : isMix ? getKHRLength + 6 : getKHRLength * 2 + 6,
61007
+ usernameColSpan: isShowUsd ? isMix ? 4 : getAllLength + 4 : isMix ? 2 : getKHRLength + 2,
61008
+ dateColSpan: isShowUsd ? getKHRLength + 2 : getKHRLength + 1,
61009
+ dayColSpan: isShowUsd ? getUSDLength + 2 : 1,
61010
+ isSend: filter == null ? void 0 : filter.isSend
61011
+ }),
61012
+ renderSectionHeaderRow({ t: translate, lotteryType: type, isMix, isShowUsd, getKHRLength, getUSDLength }),
61013
+ renderColumnHeaderRow({
61014
+ t: translate,
61015
+ isMix,
61016
+ isShowUsd,
61017
+ isShow4DUsd,
61018
+ isShow4DKhr,
61019
+ isShow5DUsd,
61020
+ isShow5DKhr
61021
+ }),
61022
+ items && items.map((object, i) => /* @__PURE__ */ createElement$3(
61023
+ MainTableRow,
61024
+ __spreadProps$3(__spreadValues$4({
61025
+ isShowUsd,
61026
+ isShow4DUsd,
61027
+ isShow4DKhr,
61028
+ isShow5DUsd,
61029
+ isShow5DKhr
61030
+ }, props), {
61031
+ key: i,
61032
+ index: i + 1,
61033
+ object
61034
+ })
61035
+ )),
61036
+ /* @__PURE__ */ jsx$1(
61037
+ MainTableRow,
61038
+ __spreadProps$3(__spreadValues$4({}, props), {
61039
+ isShowUsd,
61040
+ isShow4DUsd,
61041
+ isShow4DKhr,
61042
+ isShow5DUsd,
61043
+ isShow5DKhr,
61044
+ total: "\u179F\u179A\u17BB\u1794",
61045
+ object: __spreadValues$4({}, props.item.summary)
61046
+ })
61047
+ ),
61048
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1(THF, { className: "none-event" }) }),
61049
+ renderSummaryBandRow({
61050
+ isShowUsd,
61051
+ khrColSpan: isShowUsd ? isMix ? 6 : getAllLength + 6 : getKHRLength * 2 + 8,
61052
+ usdColSpan: getAllLength + 4
61053
+ }),
61054
+ renderCalculationRows({
61055
+ rows: commissionRows,
61056
+ id,
61057
+ isShowUsd,
61058
+ layout: commissionRowLayout,
61059
+ resultClassName: "blue-l-h",
61060
+ usdResultClassName: "green-l-h"
61061
+ }),
61062
+ renderCalculationRows({
61063
+ rows: rewardRows,
61064
+ id,
61065
+ isShowUsd,
61066
+ layout: rewardRowLayout,
61067
+ valueClassName: "t-blue",
61068
+ resultClassName: "t-blue b-gray-l"
61069
+ }),
61070
+ renderWinLoseRow(__spreadValues$4({
61071
+ id,
61072
+ isShowUsd,
61073
+ winLoseKhr,
61074
+ winLoseUsd
61075
+ }, getWinLoseLayout({ isMix, isShowUsd, getAllLength, getKHRLength })))
61076
+ ] }) }) });
61077
+ };
61078
+
61079
+ var __defProp$3 = Object.defineProperty;
61080
+ var __defProps$2 = Object.defineProperties;
61081
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
61082
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
61083
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
61084
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
61085
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61086
+ var __spreadValues$3 = (a, b) => {
61087
+ for (var prop in b || (b = {}))
61088
+ if (__hasOwnProp$3.call(b, prop))
61089
+ __defNormalProp$3(a, prop, b[prop]);
61090
+ if (__getOwnPropSymbols$3)
61091
+ for (var prop of __getOwnPropSymbols$3(b)) {
61092
+ if (__propIsEnum$3.call(b, prop))
61093
+ __defNormalProp$3(a, prop, b[prop]);
61094
+ }
61095
+ return a;
61096
+ };
61097
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
61098
+ var __publicField = (obj, key, value) => __defNormalProp$3(obj, key + "" , value);
61099
+ class MainTable extends Component {
61100
+ constructor() {
61101
+ super(...arguments);
61102
+ __publicField(this, "renderLottery", (data) => {
61103
+ const type = data.lotteryType;
61104
+ const { isMix, filter } = this.props;
61105
+ const preTitle = (filter == null ? void 0 : filter.isSend) ? "\u179F\u17B6\u1784" : "";
61106
+ if (data) {
61107
+ switch (type) {
61108
+ case lType.LEAP:
61109
+ return /* @__PURE__ */ jsx$1(
61110
+ MainLeap,
61111
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61112
+ preTitle,
61113
+ lotteryType: type,
61114
+ type,
61115
+ isMix,
61116
+ item: data
61117
+ })
61118
+ );
61119
+ case lType.SC:
61120
+ return /* @__PURE__ */ jsx$1(
61121
+ MainSC,
61122
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61123
+ preTitle,
61124
+ lotteryType: type,
61125
+ type,
61126
+ isMix,
61127
+ item: data
61128
+ })
61129
+ );
61130
+ default:
61131
+ return /* @__PURE__ */ jsx$1(
61132
+ MainVn,
61133
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61134
+ preTitle,
61135
+ lotteryType: type,
61136
+ type,
61137
+ isMix,
61138
+ item: data
61139
+ })
61140
+ );
61141
+ }
61142
+ }
61143
+ });
61144
+ }
61145
+ render() {
61146
+ const { data } = this.props;
61147
+ return /* @__PURE__ */ jsx$1("div", { children: data && /* @__PURE__ */ jsx$1("div", { className: "bg-white d-inline-flex ml-3 mt-3", children: this.renderLottery(data) }) });
61148
+ }
61149
+ }
61150
+
61151
+ const IMAGE_EXPORT_IGNORE_CLASS = "image-export-ignore";
61152
+ const getCanvasScale = () => {
61153
+ const deviceScale = typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1;
61154
+ return Math.max(deviceScale, 3);
61155
+ };
61156
+ const waitForFontsAndImages = async (root) => {
61157
+ var _a, _b;
61158
+ const fontsReady = (_b = (_a = document.fonts) == null ? void 0 : _a.ready) != null ? _b : Promise.resolve();
61159
+ const imgs = Array.from(root.querySelectorAll("img"));
61160
+ const imgReady = imgs.map((img) => {
61161
+ if (img.crossOrigin == null) img.crossOrigin = "anonymous";
61162
+ if (img.complete) return Promise.resolve();
61163
+ return new Promise((resolve) => {
61164
+ img.addEventListener("load", resolve, { once: true });
61165
+ img.addEventListener("error", resolve, { once: true });
61166
+ });
61167
+ });
61168
+ await Promise.all([fontsReady, ...imgReady]);
61169
+ await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
61170
+ };
61171
+ const setIgnoredVisibility = (root, visibility) => {
61172
+ const previousStyles = Array.from(root.querySelectorAll(`.${IMAGE_EXPORT_IGNORE_CLASS}`)).map((node) => ({
61173
+ node,
61174
+ visibility: node.style.visibility
61175
+ }));
61176
+ previousStyles.forEach(({ node }) => {
61177
+ node.style.visibility = visibility;
61178
+ });
61179
+ return () => {
61180
+ previousStyles.forEach(({ node, visibility: previousVisibility }) => {
61181
+ node.style.visibility = previousVisibility;
61182
+ });
61183
+ };
61184
+ };
61185
+ const canvasToBlob = (canvas) => new Promise((resolve) => {
61186
+ if (canvas.toBlob) {
61187
+ canvas.toBlob(resolve, "image/png", 1);
61188
+ return;
61189
+ }
61190
+ fetch(canvas.toDataURL("image/png", 1)).then((response) => response.blob()).then(resolve);
61191
+ });
61192
+ const renderElementToBlob = async (element) => {
61193
+ if (!element) throw new Error("Element not found");
61194
+ const restoreIgnoredVisibility = setIgnoredVisibility(element, "hidden");
61195
+ try {
61196
+ await waitForFontsAndImages(element);
61197
+ const canvas = await html2canvas(element, {
61198
+ scale: getCanvasScale(),
61199
+ useCORS: true,
61200
+ backgroundColor: "#ffffff",
61201
+ logging: false,
61202
+ removeContainer: true,
61203
+ width: element.scrollWidth,
61204
+ height: element.scrollHeight,
61205
+ windowWidth: element.scrollWidth,
61206
+ windowHeight: element.scrollHeight
61207
+ });
61208
+ return canvasToBlob(canvas);
61209
+ } finally {
61210
+ restoreIgnoredVisibility();
61211
+ }
61212
+ };
61213
+ const saveElementAsImage = async (element, fileName = "report.png") => {
61214
+ const blob = await renderElementToBlob(element);
61215
+ if (!blob) throw new Error("Image export unavailable");
61216
+ const url = URL.createObjectURL(blob);
61217
+ const link = document.createElement("a");
61218
+ link.href = url;
61219
+ link.download = fileName;
61220
+ link.click();
61221
+ setTimeout(() => URL.revokeObjectURL(url), 1500);
61222
+ };
61223
+ const copyElementImageToClipboard = async (element) => {
61224
+ var _a;
61225
+ if (!((_a = navigator.clipboard) == null ? void 0 : _a.write) || typeof ClipboardItem === "undefined") {
61226
+ throw new Error("Clipboard image copy is not supported");
61227
+ }
61228
+ const blob = await renderElementToBlob(element);
61229
+ if (!blob) throw new Error("Clipboard image unavailable");
61230
+ await navigator.clipboard.write([
61231
+ new ClipboardItem({ "image/png": blob })
61232
+ ]);
61233
+ };
61234
+
61235
+ const getSummaryImageFileName = (prefix, filter) => {
61236
+ var _a;
61237
+ const user = ((_a = filter == null ? void 0 : filter.user) == null ? void 0 : _a.label) || "all";
61238
+ const date = getDate(filter == null ? void 0 : filter.filterByDate) || "date";
61239
+ return `${prefix}-${user}-${date}`.replace(/[^\w.-]+/g, "-") + ".png";
61240
+ };
61241
+ const notifySuccess = (text) => {
61242
+ PNotify_1.removeAll();
61243
+ PNotify_1.success({ text });
61244
+ };
61245
+ const notifyError = (text) => {
61246
+ PNotify_1.removeAll();
61247
+ PNotify_1.error({ text });
61248
+ };
61249
+ const SummaryImageActions = ({ children, fileName }) => {
61250
+ const exportRef = useRef(null);
61251
+ const [isLoading, setIsLoading] = useState(false);
61252
+ const handleSaveImage = async () => {
61253
+ setIsLoading(true);
61254
+ try {
61255
+ await saveElementAsImage(exportRef.current, fileName);
61256
+ notifySuccess("Saved image");
61257
+ } catch (error) {
61258
+ notifyError(error.message || "Cannot save image");
61259
+ } finally {
61260
+ setIsLoading(false);
61261
+ }
61262
+ };
61263
+ const handleCopyImage = async () => {
61264
+ setIsLoading(true);
61265
+ try {
61266
+ await copyElementImageToClipboard(exportRef.current);
61267
+ notifySuccess("Copied image");
61268
+ } catch (error) {
61269
+ notifyError(error.message || "Cannot copy image");
61270
+ } finally {
61271
+ setIsLoading(false);
61272
+ }
61273
+ };
61274
+ const actions = /* @__PURE__ */ jsxs("div", { className: `${IMAGE_EXPORT_IGNORE_CLASS} d-flex`, style: {
61275
+ position: "absolute",
61276
+ right: 8,
61277
+ top: "50%",
61278
+ transform: "translateY(-50%)"
61279
+ }, children: [
61280
+ /* @__PURE__ */ jsx$1("button", { type: "button", title: "Save Image", className: "btn btn-sm btn-primary mr-1", disabled: isLoading, onClick: handleSaveImage, children: /* @__PURE__ */ jsx$1("i", { className: "feather icon-download mr-0" }) }),
61281
+ /* @__PURE__ */ jsx$1("button", { type: "button", title: "Copy Image", className: "btn btn-sm btn-info", disabled: isLoading, onClick: handleCopyImage, children: /* @__PURE__ */ jsx$1("i", { className: "feather icon-copy mr-0" }) })
61282
+ ] });
61283
+ return /* @__PURE__ */ jsx$1("div", { className: "mb-2 d-inline-block", ref: exportRef, children: typeof children === "function" ? children(actions) : /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
61284
+ children,
61285
+ actions
61286
+ ] }) });
61287
+ };
61288
+
61289
+ const SummaryRow = ({ id, label, khr, usd, showUsd, className = "", labelClassName = "text-center" }) => /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
61290
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 4, className: labelClassName, children: label }),
61291
+ /* @__PURE__ */ jsx$1(RenderThWidthB, { colSpan: showUsd ? 3 : 6, className: `${className} t-right`, id, value: khr, currency: "KHR" }),
61292
+ showUsd && /* @__PURE__ */ jsx$1(RenderThWidthB, { colSpan: 3, className: `${className} t-right`, id, value: usd, currency: "USD" })
61293
+ ] });
61294
+ const getSummaryUser = ({ data, filter }) => {
61295
+ var _a, _b, _c;
61296
+ const firstItem = ((_a = data == null ? void 0 : data.items) == null ? void 0 : _a[0]) || {};
61297
+ return {
61298
+ label: ((_b = filter == null ? void 0 : filter.user) == null ? void 0 : _b.label) || firstItem.nickname || "N/A",
61299
+ nickname: ((_c = filter == null ? void 0 : filter.user) == null ? void 0 : _c.nickname) || getMemberName(firstItem.username),
61300
+ date: (filter == null ? void 0 : filter.filterByDate) || firstItem.date
61301
+ };
61302
+ };
61303
+ const WinLoseSummary = ({ data, id, filter, showUsd }) => {
61304
+ const {
61305
+ summary: {
61306
+ winLoseKhr = 0,
61307
+ winLoseUsd = 0,
61308
+ shareAmountKhr = 0,
61309
+ shareAmountUsd = 0,
61310
+ oldUsd = 0,
61311
+ oldKhr = 0,
61312
+ giveUsd = 0,
61313
+ giveKhr = 0,
61314
+ borrowUsd = 0,
61315
+ borrowKhr = 0,
61316
+ totalUsd = 0,
61317
+ totalKhr = 0,
61318
+ protestKhr = 0,
61319
+ protestUsd = 0
61320
+ } = {},
61321
+ winLoses = []
61322
+ } = data || {};
61323
+ const user = getSummaryUser({ data, filter });
61324
+ const totalStyle = { borderBottom: "2px solid black", borderTop: "2px solid black" };
61325
+ const summaryValueKhr = (filter == null ? void 0 : filter.isSend) ? winLoseKhr : shareAmountKhr;
61326
+ const summaryValueUsd = (filter == null ? void 0 : filter.isSend) ? winLoseUsd : shareAmountUsd;
61327
+ return /* @__PURE__ */ jsx$1(SummaryImageActions, { fileName: getSummaryImageFileName("win-lose-summary", filter), children: (actions) => /* @__PURE__ */ jsx$1(
61328
+ "table",
61329
+ {
61330
+ id: id ? `${id}-win-lose-summary` : void 0,
61331
+ className: "table table-hover table-bordered table-collapse mb-0",
61332
+ style: { width: "auto", minWidth: 720 },
61333
+ children: /* @__PURE__ */ jsxs("tbody", { className: "pb-5", children: [
61334
+ /* @__PURE__ */ jsx$1("tr", { className: "animate-slide-up", children: /* @__PURE__ */ jsxs(THB, { className: (filter == null ? void 0 : filter.isSend) ? "red-d-h" : "blue-ld-h f-15", colSpan: 10, style: { position: "relative" }, children: [
61335
+ "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
61336
+ actions
61337
+ ] }) }),
61338
+ /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
61339
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 4, children: user.label }),
61340
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 3, children: user.nickname }),
61341
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 3, children: getDate(user.date) })
61342
+ ] }),
61343
+ /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
61344
+ /* @__PURE__ */ jsx$1(THB, { className: "blue-l-h", colSpan: 4, children: "\u1794\u17D2\u179A\u1797\u17C1\u1791\u1786\u17D2\u1793\u17C4\u178F" }),
61345
+ /* @__PURE__ */ jsx$1(THB, { className: "blue-l-h", colSpan: showUsd ? 3 : 6, children: "(\u179A\u17C0\u179B)" }),
61346
+ showUsd && /* @__PURE__ */ jsx$1(THB, { colSpan: 3, className: "green-l-h text-left", children: "(\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A)" })
61347
+ ] }),
61348
+ winLoses.map(({ winLoseKhr: winLoseKhr2, winLoseUsd: winLoseUsd2, lotteryType }, index) => {
61349
+ const lotteryName = lotteryLabelKH[lotteryType] || lotteryType;
61350
+ const lotteryCode = lotteryLabel[lotteryType] || lotteryType;
61351
+ return /* @__PURE__ */ jsx$1(
61352
+ SummaryRow,
61353
+ {
61354
+ id,
61355
+ label: `\u1786\u17D2\u1793\u17C4\u178F${lotteryName} (${lotteryCode})`,
61356
+ khr: winLoseKhr2,
61357
+ usd: winLoseUsd2,
61358
+ showUsd,
61359
+ labelClassName: "t-left"
61360
+ },
61361
+ `${lotteryType}-${index}`
61362
+ );
61363
+ }),
61364
+ /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up b-vio-b2", children: [
61365
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 4, className: "t-left f-bold blue-l-h", children: "\u179F\u179A\u17BB\u1794\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3" }),
61366
+ /* @__PURE__ */ jsx$1(RenderThWidthB, { className: "t-right f-bold blue-l-h", colSpan: showUsd ? 3 : 6, id, value: summaryValueKhr, currency: "KHR" }),
61367
+ showUsd && /* @__PURE__ */ jsx$1(RenderThWidthB, { colSpan: 3, className: "t-right f-bold green-l-h", id, value: summaryValueUsd, currency: "USD" })
61368
+ ] }),
61369
+ /* @__PURE__ */ jsx$1(SummaryRow, { id, label: "\u1794\u1789\u17D2\u1787\u17B8\u1785\u17B6\u179F\u17CB", khr: oldKhr, usd: oldUsd, showUsd }),
61370
+ /* @__PURE__ */ jsx$1(SummaryRow, { id, label: "\u179B\u17BB\u1799\u179F\u1784", khr: giveKhr, usd: giveUsd, showUsd }),
61371
+ /* @__PURE__ */ jsx$1(SummaryRow, { id, label: "\u179B\u17BB\u1799\u1781\u17D2\u1785\u17B8", khr: borrowKhr, usd: borrowUsd, showUsd }),
61372
+ /* @__PURE__ */ jsx$1(SummaryRow, { id, label: "\u179B\u17BB\u1799\u178F\u179C\u17C9\u17B6", khr: protestKhr, usd: protestUsd, showUsd }),
61373
+ /* @__PURE__ */ jsxs("tr", { className: "animate-slide-up", children: [
61374
+ /* @__PURE__ */ jsx$1(THB, { colSpan: 4, style: totalStyle, className: "t-center blue-l-h", children: "\u179F\u179A\u17BB\u1794\u1791\u17B6\u17C6\u1784\u17A2\u179F\u17CB" }),
61375
+ /* @__PURE__ */ jsx$1(
61376
+ RenderThWidthB,
61377
+ {
61378
+ colSpan: showUsd ? 3 : 6,
61379
+ style: totalStyle,
61380
+ className: "blue-l-h t-right",
61381
+ id,
61382
+ value: totalKhr,
61383
+ currency: "KHR"
61384
+ }
61385
+ ),
61386
+ showUsd && /* @__PURE__ */ jsx$1(
61387
+ RenderThWidthB,
61388
+ {
61389
+ colSpan: 3,
61390
+ style: totalStyle,
61391
+ className: "green-l-h t-right",
61392
+ id,
61393
+ value: totalUsd,
61394
+ currency: "USD"
61395
+ }
61396
+ )
61397
+ ] })
61398
+ ] })
61399
+ }
61400
+ ) });
61401
+ };
61402
+
61403
+ var __defProp$2 = Object.defineProperty;
61404
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
61405
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
61406
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
61407
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61408
+ var __spreadValues$2 = (a, b) => {
61409
+ for (var prop in b || (b = {}))
61410
+ if (__hasOwnProp$2.call(b, prop))
61411
+ __defNormalProp$2(a, prop, b[prop]);
61412
+ if (__getOwnPropSymbols$2)
61413
+ for (var prop of __getOwnPropSymbols$2(b)) {
61414
+ if (__propIsEnum$2.call(b, prop))
61415
+ __defNormalProp$2(a, prop, b[prop]);
61416
+ }
61417
+ return a;
61418
+ };
61419
+ class Summary extends Component {
61420
+ render() {
61421
+ var _a;
61422
+ const {
61423
+ data,
61424
+ filter
61425
+ } = this.props;
61426
+ const showUsd = (data == null ? void 0 : data.isShowUsd) || ((_a = data == null ? void 0 : data.summary) == null ? void 0 : _a.isShowUsd);
61427
+ return /* @__PURE__ */ jsx$1("div", { id: "mix-daily-report", className: "d-inline-block mb-3 mr-3 pb-5 pl-3", children: /* @__PURE__ */ jsx$1(WinLoseSummary, __spreadValues$2({ data, filter, showUsd }, this.props)) });
61428
+ }
61429
+ }
61430
+
61431
+ var __defProp$1 = Object.defineProperty;
61432
+ var __defProps$1 = Object.defineProperties;
61433
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
61434
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
61435
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
61436
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
61437
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61438
+ var __spreadValues$1 = (a, b) => {
61439
+ for (var prop in b || (b = {}))
61440
+ if (__hasOwnProp$1.call(b, prop))
61441
+ __defNormalProp$1(a, prop, b[prop]);
61442
+ if (__getOwnPropSymbols$1)
61443
+ for (var prop of __getOwnPropSymbols$1(b)) {
61444
+ if (__propIsEnum$1.call(b, prop))
61445
+ __defNormalProp$1(a, prop, b[prop]);
61446
+ }
61447
+ return a;
61448
+ };
61449
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
61450
+ class MainTableWrap extends Component {
61451
+ render() {
61452
+ var _a;
61453
+ const { data, isMix } = this.props;
61454
+ return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
61455
+ (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((obj, i) => /* @__PURE__ */ createElement$3(MainTable, __spreadProps$1(__spreadValues$1({}, this.props), { key: i, data: obj, isMix }))),
61456
+ data && /* @__PURE__ */ jsx$1(Summary, __spreadValues$1({ data }, this.props))
61457
+ ] });
61458
+ }
61459
+ }
61460
+
61461
+ var __defProp = Object.defineProperty;
61462
+ var __defProps = Object.defineProperties;
61463
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
61464
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
61465
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
61466
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
61467
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61468
+ var __spreadValues = (a, b) => {
61469
+ for (var prop in b || (b = {}))
61470
+ if (__hasOwnProp.call(b, prop))
61471
+ __defNormalProp(a, prop, b[prop]);
61472
+ if (__getOwnPropSymbols)
61473
+ for (var prop of __getOwnPropSymbols(b)) {
61474
+ if (__propIsEnum.call(b, prop))
61475
+ __defNormalProp(a, prop, b[prop]);
61476
+ }
61477
+ return a;
61478
+ };
61479
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
61480
+ class MainTableWrapExcel extends Component {
61481
+ render() {
61482
+ var _a;
61483
+ const { data, id } = this.props;
61484
+ return /* @__PURE__ */ jsx$1("table", { id, children: /* @__PURE__ */ jsxs("tbody", { children: [
61485
+ (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((obj, i) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
61486
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { children: /* @__PURE__ */ jsx$1(MainTable, __spreadProps(__spreadValues({}, this.props), { data: obj })) }) }),
61487
+ /* @__PURE__ */ jsx$1("tr", {}),
61488
+ /* @__PURE__ */ jsx$1("tr", {})
61489
+ ] }, i)),
61490
+ /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { children: data && /* @__PURE__ */ jsx$1(Summary, __spreadValues({ data }, this.props)) }) })
61491
+ ] }) });
61492
+ }
61493
+ }
61494
+
61495
+ export { DeleteModal, DeleteTicketButton, MoreMenu as DropdownMenu, KPLO, KPPostCode, MainTableWrap as MixDailyReport, MainTableWrapExcel as MixDailyReportExcel, Printer, ProtestButton, ProtestModal, ProtestTicket, RemarkConfigToggle, RemarkModal, RemarkModalShowOnly, SCPostCode, SaryLottery, SaryPrintAll, THLabel, Ticket, TicketModal, TransferModal, TransferTicket, clickRemarkBtn, formatUsd, getMemberName, getS3ImgPrint, getStoredIsRemark, isVNType, lType, lotteryLabel, lotteryLabelKH, lotteryLabelOnline, lotteryLabelVN, lotteryReportLabel, mapBetTitle, mapLabels, mapStrPost, widthLength };
59405
61496
  //# sourceMappingURL=index.esm.js.map