@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.cjs.js CHANGED
@@ -3499,11 +3499,11 @@ var regexp_prototype_flags = flagsBound;
3499
3499
 
3500
3500
  var callBound = callBound$3;
3501
3501
 
3502
- var getDay = callBound('Date.prototype.getDay');
3502
+ var getDay$1 = callBound('Date.prototype.getDay');
3503
3503
  /** @type {import('.')} */
3504
3504
  var tryDateObject = function tryDateGetDayCall(value) {
3505
3505
  try {
3506
- getDay(value);
3506
+ getDay$1(value);
3507
3507
  return true;
3508
3508
  } catch (e) {
3509
3509
  return false;
@@ -30849,25 +30849,25 @@ const clickRemarkBtn = (id) => {
30849
30849
  }
30850
30850
  };
30851
30851
 
30852
- var __defProp$c = Object.defineProperty;
30853
- var __defProps$3 = Object.defineProperties;
30854
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
30855
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
30856
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
30857
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
30858
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30859
- var __spreadValues$c = (a, b) => {
30852
+ var __defProp$l = Object.defineProperty;
30853
+ var __defProps$b = Object.defineProperties;
30854
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
30855
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
30856
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
30857
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
30858
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30859
+ var __spreadValues$l = (a, b) => {
30860
30860
  for (var prop in b || (b = {}))
30861
- if (__hasOwnProp$e.call(b, prop))
30862
- __defNormalProp$c(a, prop, b[prop]);
30863
- if (__getOwnPropSymbols$e)
30864
- for (var prop of __getOwnPropSymbols$e(b)) {
30865
- if (__propIsEnum$e.call(b, prop))
30866
- __defNormalProp$c(a, prop, b[prop]);
30861
+ if (__hasOwnProp$n.call(b, prop))
30862
+ __defNormalProp$l(a, prop, b[prop]);
30863
+ if (__getOwnPropSymbols$n)
30864
+ for (var prop of __getOwnPropSymbols$n(b)) {
30865
+ if (__propIsEnum$n.call(b, prop))
30866
+ __defNormalProp$l(a, prop, b[prop]);
30867
30867
  }
30868
30868
  return a;
30869
30869
  };
30870
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
30870
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
30871
30871
  const KPPostCode = {
30872
30872
  A: "\u179B\u17E1",
30873
30873
  F: "\u179B\u17E2",
@@ -30926,7 +30926,32 @@ const lotteryLabel = {
30926
30926
  HOSO: "\u1786\u17D2\u1793\u17C4\u178F HOSO",
30927
30927
  KP: "\u1780\u17C6\u1796\u178F KP"
30928
30928
  };
30929
- const lotteryLabelVN = __spreadProps$3(__spreadValues$c({}, lotteryLabel), {
30929
+ const lotteryLabelKH = {
30930
+ LEAP: "\u179B\u17B6\u1797",
30931
+ VN2: "\u1798\u17A0\u17B6\u1791\u17C1\u1796",
30932
+ VN1: "\u1798\u17A0\u17B6\u1788\u17D2\u1793\u17C7",
30933
+ TN: "\u1791\u17B7\u1789\u1788\u17D2\u1793\u17C7",
30934
+ SC: "\u179F\u1794\u17D2\u1794\u17B6\u1799\u1788\u17D2\u1793\u17C7",
30935
+ KH: "\u1781\u17D2\u1798\u17C2\u179A",
30936
+ TH: "\u1790\u17C3",
30937
+ KP: "\u1780\u17C6\u1796\u178F"
30938
+ };
30939
+ const widthLength = (value) => {
30940
+ var _a;
30941
+ if (!value) return "100px";
30942
+ if (value.toString().length < 7) return "100px";
30943
+ return `${((_a = value == null ? void 0 : value.toString()) == null ? void 0 : _a.length) + 8}ch`;
30944
+ };
30945
+ const getMemberName = (username) => {
30946
+ if (username) return username == null ? void 0 : username.slice(-4);
30947
+ return "N/A";
30948
+ };
30949
+ const formatUsd = (value) => {
30950
+ if (value.toString().indexOf(".") !== -1) return value.toFixed(2);
30951
+ return value;
30952
+ };
30953
+ const lotteryReportLabel = (type) => `\u1786\u17D2\u1793\u17C4\u178F${lotteryLabelKH[type]} (${lotteryLabel[type]})`;
30954
+ const lotteryLabelVN = __spreadProps$b(__spreadValues$l({}, lotteryLabel), {
30930
30955
  VN1: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
30931
30956
  TN: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
30932
30957
  KH: "\u1786\u17D2\u1793\u17C4\u178F\u1781\u17D2\u1798\u17C2\u179A"
@@ -31450,30 +31475,30 @@ const TicketPrintBody = (props) => {
31450
31475
  });
31451
31476
  };
31452
31477
 
31453
- var __defProp$b = Object.defineProperty;
31454
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
31455
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
31456
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
31457
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31458
- var __spreadValues$b = (a, b) => {
31478
+ var __defProp$k = Object.defineProperty;
31479
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
31480
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
31481
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
31482
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31483
+ var __spreadValues$k = (a, b) => {
31459
31484
  for (var prop in b || (b = {}))
31460
- if (__hasOwnProp$d.call(b, prop))
31461
- __defNormalProp$b(a, prop, b[prop]);
31462
- if (__getOwnPropSymbols$d)
31463
- for (var prop of __getOwnPropSymbols$d(b)) {
31464
- if (__propIsEnum$d.call(b, prop))
31465
- __defNormalProp$b(a, prop, b[prop]);
31485
+ if (__hasOwnProp$m.call(b, prop))
31486
+ __defNormalProp$k(a, prop, b[prop]);
31487
+ if (__getOwnPropSymbols$m)
31488
+ for (var prop of __getOwnPropSymbols$m(b)) {
31489
+ if (__propIsEnum$m.call(b, prop))
31490
+ __defNormalProp$k(a, prop, b[prop]);
31466
31491
  }
31467
31492
  return a;
31468
31493
  };
31469
31494
  var __objRest$7 = (source, exclude) => {
31470
31495
  var target = {};
31471
31496
  for (var prop in source)
31472
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
31497
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
31473
31498
  target[prop] = source[prop];
31474
- if (source != null && __getOwnPropSymbols$d)
31475
- for (var prop of __getOwnPropSymbols$d(source)) {
31476
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
31499
+ if (source != null && __getOwnPropSymbols$m)
31500
+ for (var prop of __getOwnPropSymbols$m(source)) {
31501
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
31477
31502
  target[prop] = source[prop];
31478
31503
  }
31479
31504
  return target;
@@ -31497,7 +31522,7 @@ const PrintTicket58 = (props) => {
31497
31522
  ),
31498
31523
  /* @__PURE__ */ jsxRuntime.jsx(
31499
31524
  TicketPrintBody,
31500
- __spreadValues$b({
31525
+ __spreadValues$k({
31501
31526
  is58: true,
31502
31527
  item,
31503
31528
  bodyClass,
@@ -37213,10 +37238,15 @@ const getTimeFull_AM_PM = (date) => {
37213
37238
  const getDateHourKey = (date) => {
37214
37239
  return moment(date).format("DD-MM-YYYY hh:mm");
37215
37240
  };
37241
+ const getDate = (date) => {
37242
+ return moment(date).format("DD-MM-YYYY");
37243
+ };
37216
37244
  const getTime = (date) => {
37217
37245
  return moment(date).format("hh:mm A");
37218
37246
  };
37219
37247
  const getHH = (date) => Number(moment(date).format("h"));
37248
+ const getDateF = (date) => moment(date).format("DD/MM/YYYY");
37249
+ const getDay = (date) => moment(date).format("dddd");
37220
37250
 
37221
37251
  const RenderTitle = ({ lotteryType, className = "", logo, isVN, drawAt }) => {
37222
37252
  let title = lotteryLabel[lotteryType];
@@ -37552,17 +37582,17 @@ var lib = {exports: {}};
37552
37582
 
37553
37583
  var libExports = lib.exports;
37554
37584
 
37555
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
37556
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
37557
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
37585
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
37586
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
37587
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
37558
37588
  var __objRest$6 = (source, exclude) => {
37559
37589
  var target = {};
37560
37590
  for (var prop in source)
37561
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
37591
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
37562
37592
  target[prop] = source[prop];
37563
- if (source != null && __getOwnPropSymbols$c)
37564
- for (var prop of __getOwnPropSymbols$c(source)) {
37565
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
37593
+ if (source != null && __getOwnPropSymbols$l)
37594
+ for (var prop of __getOwnPropSymbols$l(source)) {
37595
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
37566
37596
  target[prop] = source[prop];
37567
37597
  }
37568
37598
  return target;
@@ -37606,33 +37636,33 @@ const BasePrinter = (_a) => {
37606
37636
  ] });
37607
37637
  };
37608
37638
 
37609
- var __defProp$a = Object.defineProperty;
37610
- var __defProps$2 = Object.defineProperties;
37611
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
37612
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
37613
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
37614
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
37615
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37616
- var __spreadValues$a = (a, b) => {
37639
+ var __defProp$j = Object.defineProperty;
37640
+ var __defProps$a = Object.defineProperties;
37641
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
37642
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
37643
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
37644
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
37645
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37646
+ var __spreadValues$j = (a, b) => {
37617
37647
  for (var prop in b || (b = {}))
37618
- if (__hasOwnProp$b.call(b, prop))
37619
- __defNormalProp$a(a, prop, b[prop]);
37620
- if (__getOwnPropSymbols$b)
37621
- for (var prop of __getOwnPropSymbols$b(b)) {
37622
- if (__propIsEnum$b.call(b, prop))
37623
- __defNormalProp$a(a, prop, b[prop]);
37648
+ if (__hasOwnProp$k.call(b, prop))
37649
+ __defNormalProp$j(a, prop, b[prop]);
37650
+ if (__getOwnPropSymbols$k)
37651
+ for (var prop of __getOwnPropSymbols$k(b)) {
37652
+ if (__propIsEnum$k.call(b, prop))
37653
+ __defNormalProp$j(a, prop, b[prop]);
37624
37654
  }
37625
37655
  return a;
37626
37656
  };
37627
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
37657
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
37628
37658
  var __objRest$5 = (source, exclude) => {
37629
37659
  var target = {};
37630
37660
  for (var prop in source)
37631
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
37661
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
37632
37662
  target[prop] = source[prop];
37633
- if (source != null && __getOwnPropSymbols$b)
37634
- for (var prop of __getOwnPropSymbols$b(source)) {
37635
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
37663
+ if (source != null && __getOwnPropSymbols$k)
37664
+ for (var prop of __getOwnPropSymbols$k(source)) {
37665
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
37636
37666
  target[prop] = source[prop];
37637
37667
  }
37638
37668
  return target;
@@ -37641,8 +37671,8 @@ const Printer = (_a) => {
37641
37671
  var _b = _a, { children } = _b, props = __objRest$5(_b, ["children"]);
37642
37672
  return /* @__PURE__ */ jsxRuntime.jsx(
37643
37673
  BasePrinter,
37644
- __spreadProps$2(__spreadValues$a({
37645
- component: /* @__PURE__ */ jsxRuntime.jsx(Ticket, __spreadValues$a({}, props))
37674
+ __spreadProps$a(__spreadValues$j({
37675
+ component: /* @__PURE__ */ jsxRuntime.jsx(Ticket, __spreadValues$j({}, props))
37646
37676
  }, props), {
37647
37677
  children: children != null ? children : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "btn btn-primary", children: /* @__PURE__ */ jsxRuntime.jsxs(
37648
37678
  "svg",
@@ -45511,12 +45541,12 @@ var html2canvas$1 = {exports: {}};
45511
45541
  var html2canvasExports = html2canvas$1.exports;
45512
45542
  var html2canvas = /*@__PURE__*/getDefaultExportFromCjs(html2canvasExports);
45513
45543
 
45514
- const getCanvasScale = () => {
45544
+ const getCanvasScale$1 = () => {
45515
45545
  const deviceScale = typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1;
45516
45546
  return Math.max(deviceScale, 5);
45517
45547
  };
45518
45548
  const getCanvasOptions = (node, useCORS = true) => ({
45519
- scale: getCanvasScale(),
45549
+ scale: getCanvasScale$1(),
45520
45550
  useCORS,
45521
45551
  backgroundColor: "#ffffff",
45522
45552
  logging: false,
@@ -45531,7 +45561,7 @@ const exportToImage = async (reportRef, actionButtonsRef, lotteryType, ticketNum
45531
45561
  const originalVisibility = actionButtonsRef.current.style.visibility;
45532
45562
  try {
45533
45563
  actionButtonsRef.current.style.visibility = "hidden";
45534
- await waitForFontsAndImages(reportRef.current);
45564
+ await waitForFontsAndImages$1(reportRef.current);
45535
45565
  const canvas = await html2canvas(
45536
45566
  reportRef.current,
45537
45567
  getCanvasOptions(reportRef.current, true)
@@ -45555,9 +45585,9 @@ const copyImageToClipboard = async (reportRef, actionButtonsRef, lotteryType, ti
45555
45585
  const originalVisibility = btn == null ? void 0 : btn.style.visibility;
45556
45586
  try {
45557
45587
  if (btn) btn.style.visibility = "hidden";
45558
- await waitForFontsAndImages(node);
45588
+ await waitForFontsAndImages$1(node);
45559
45589
  const canvas = await html2canvas(node, getCanvasOptions(node));
45560
- const blob = await canvasToBlob(canvas);
45590
+ const blob = await canvasToBlob$1(canvas);
45561
45591
  if (!blob) throw new Error("Clipboard blob unavailable");
45562
45592
  if (!((_a = navigator.clipboard) == null ? void 0 : _a.write)) {
45563
45593
  throw new Error("Clipboard API unavailable");
@@ -45570,7 +45600,7 @@ const copyImageToClipboard = async (reportRef, actionButtonsRef, lotteryType, ti
45570
45600
  if (btn) btn.style.visibility = originalVisibility;
45571
45601
  }
45572
45602
  };
45573
- const waitForFontsAndImages = async (root) => {
45603
+ const waitForFontsAndImages$1 = async (root) => {
45574
45604
  var _a, _b;
45575
45605
  const fontsReady = (_b = (_a = document.fonts) == null ? void 0 : _a.ready) != null ? _b : Promise.resolve();
45576
45606
  const imgs = Array.from(root.querySelectorAll("img"));
@@ -45585,7 +45615,7 @@ const waitForFontsAndImages = async (root) => {
45585
45615
  await Promise.all([fontsReady, ...imgReady]);
45586
45616
  await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
45587
45617
  };
45588
- const canvasToBlob = (canvas) => new Promise((resolve) => {
45618
+ const canvasToBlob$1 = (canvas) => new Promise((resolve) => {
45589
45619
  if (canvas.toBlob) {
45590
45620
  canvas.toBlob((b) => resolve(b), "image/png", 1);
45591
45621
  } else {
@@ -45601,9 +45631,9 @@ const exportToImageShare = async (reportRef, actionButtonsRef, lotteryType, tick
45601
45631
  const originalVisibility = btn == null ? void 0 : btn.style.visibility;
45602
45632
  try {
45603
45633
  if (btn) btn.style.visibility = "hidden";
45604
- await waitForFontsAndImages(node);
45634
+ await waitForFontsAndImages$1(node);
45605
45635
  const canvas = await html2canvas(node, getCanvasOptions(node));
45606
- const blob = await canvasToBlob(canvas);
45636
+ const blob = await canvasToBlob$1(canvas);
45607
45637
  if (!blob) return;
45608
45638
  const fileName = `${lotteryType}-#${ticketNumber}.png`;
45609
45639
  const file = new File([blob], fileName, { type: "image/png" });
@@ -45631,19 +45661,19 @@ const exportToImageShare = async (reportRef, actionButtonsRef, lotteryType, tick
45631
45661
  }
45632
45662
  };
45633
45663
 
45634
- var __defProp$9 = Object.defineProperty;
45635
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
45636
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
45637
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
45638
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45639
- var __spreadValues$9 = (a, b) => {
45664
+ var __defProp$i = Object.defineProperty;
45665
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
45666
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
45667
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
45668
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45669
+ var __spreadValues$i = (a, b) => {
45640
45670
  for (var prop in b || (b = {}))
45641
- if (__hasOwnProp$a.call(b, prop))
45642
- __defNormalProp$9(a, prop, b[prop]);
45643
- if (__getOwnPropSymbols$a)
45644
- for (var prop of __getOwnPropSymbols$a(b)) {
45645
- if (__propIsEnum$a.call(b, prop))
45646
- __defNormalProp$9(a, prop, b[prop]);
45671
+ if (__hasOwnProp$j.call(b, prop))
45672
+ __defNormalProp$i(a, prop, b[prop]);
45673
+ if (__getOwnPropSymbols$j)
45674
+ for (var prop of __getOwnPropSymbols$j(b)) {
45675
+ if (__propIsEnum$j.call(b, prop))
45676
+ __defNormalProp$i(a, prop, b[prop]);
45647
45677
  }
45648
45678
  return a;
45649
45679
  };
@@ -45668,7 +45698,7 @@ const TicketModalWrapper = (props) => {
45668
45698
  await onAfterPrint();
45669
45699
  };
45670
45700
  return /* @__PURE__ */ jsxRuntime.jsx("table", { ref: reportRef, className: "mb-3", children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { children: [
45671
- /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, className: "px-3 pt-3 bg-white", children: /* @__PURE__ */ jsxRuntime.jsx(Ticket, __spreadValues$9({ plusCount: 1 }, props)) }) }) }),
45701
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, className: "px-3 pt-3 bg-white", children: /* @__PURE__ */ jsxRuntime.jsx(Ticket, __spreadValues$i({ plusCount: 1 }, props)) }) }) }),
45672
45702
  /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 3, className: "text-center border-bottom-0", children: /* @__PURE__ */ jsxRuntime.jsxs(
45673
45703
  "div",
45674
45704
  {
@@ -45735,30 +45765,30 @@ const TicketModalWrapper = (props) => {
45735
45765
  ] }) });
45736
45766
  };
45737
45767
 
45738
- var __defProp$8 = Object.defineProperty;
45739
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
45740
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
45741
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
45742
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45743
- var __spreadValues$8 = (a, b) => {
45768
+ var __defProp$h = Object.defineProperty;
45769
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
45770
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
45771
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
45772
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45773
+ var __spreadValues$h = (a, b) => {
45744
45774
  for (var prop in b || (b = {}))
45745
- if (__hasOwnProp$9.call(b, prop))
45746
- __defNormalProp$8(a, prop, b[prop]);
45747
- if (__getOwnPropSymbols$9)
45748
- for (var prop of __getOwnPropSymbols$9(b)) {
45749
- if (__propIsEnum$9.call(b, prop))
45750
- __defNormalProp$8(a, prop, b[prop]);
45775
+ if (__hasOwnProp$i.call(b, prop))
45776
+ __defNormalProp$h(a, prop, b[prop]);
45777
+ if (__getOwnPropSymbols$i)
45778
+ for (var prop of __getOwnPropSymbols$i(b)) {
45779
+ if (__propIsEnum$i.call(b, prop))
45780
+ __defNormalProp$h(a, prop, b[prop]);
45751
45781
  }
45752
45782
  return a;
45753
45783
  };
45754
45784
  var __objRest$4 = (source, exclude) => {
45755
45785
  var target = {};
45756
45786
  for (var prop in source)
45757
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
45787
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
45758
45788
  target[prop] = source[prop];
45759
- if (source != null && __getOwnPropSymbols$9)
45760
- for (var prop of __getOwnPropSymbols$9(source)) {
45761
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
45789
+ if (source != null && __getOwnPropSymbols$i)
45790
+ for (var prop of __getOwnPropSymbols$i(source)) {
45791
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
45762
45792
  target[prop] = source[prop];
45763
45793
  }
45764
45794
  return target;
@@ -45776,7 +45806,7 @@ function TicketModal(_a) {
45776
45806
  modalClassName: "modal scroll-modal",
45777
45807
  contentClassName: "",
45778
45808
  style: { width: 380 },
45779
- children: /* @__PURE__ */ jsxRuntime.jsx(ModalBody, { className: "d-inline-flex justify-content-center p-0", children: /* @__PURE__ */ jsxRuntime.jsx(TicketModalWrapper, __spreadValues$8({ object }, props)) })
45809
+ children: /* @__PURE__ */ jsxRuntime.jsx(ModalBody, { className: "d-inline-flex justify-content-center p-0", children: /* @__PURE__ */ jsxRuntime.jsx(TicketModalWrapper, __spreadValues$h({ object }, props)) })
45780
45810
  }
45781
45811
  ) });
45782
45812
  }
@@ -45902,26 +45932,26 @@ const PostTable = React.memo(({ data = [], fallbackTwo = "", fallbackThree = "",
45902
45932
  return /* @__PURE__ */ jsxRuntime.jsx(ResultTable, { data, columns, cellRenderer: renderCell });
45903
45933
  });
45904
45934
 
45905
- var __defProp$7 = Object.defineProperty;
45906
- var __defProps$1 = Object.defineProperties;
45907
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
45908
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
45909
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
45910
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
45911
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45912
- var __spreadValues$7 = (a, b) => {
45935
+ var __defProp$g = Object.defineProperty;
45936
+ var __defProps$9 = Object.defineProperties;
45937
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
45938
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
45939
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
45940
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
45941
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
45942
+ var __spreadValues$g = (a, b) => {
45913
45943
  for (var prop in b || (b = {}))
45914
- if (__hasOwnProp$8.call(b, prop))
45915
- __defNormalProp$7(a, prop, b[prop]);
45916
- if (__getOwnPropSymbols$8)
45917
- for (var prop of __getOwnPropSymbols$8(b)) {
45918
- if (__propIsEnum$8.call(b, prop))
45919
- __defNormalProp$7(a, prop, b[prop]);
45944
+ if (__hasOwnProp$h.call(b, prop))
45945
+ __defNormalProp$g(a, prop, b[prop]);
45946
+ if (__getOwnPropSymbols$h)
45947
+ for (var prop of __getOwnPropSymbols$h(b)) {
45948
+ if (__propIsEnum$h.call(b, prop))
45949
+ __defNormalProp$g(a, prop, b[prop]);
45920
45950
  }
45921
45951
  return a;
45922
45952
  };
45923
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
45924
- const loCellStyle = __spreadProps$1(__spreadValues$7({}, baseCellStyle), {
45953
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
45954
+ const loCellStyle = __spreadProps$9(__spreadValues$g({}, baseCellStyle), {
45925
45955
  width: "200px"
45926
45956
  });
45927
45957
  const LoTable = React.memo(({ LO = [], columnsCount = 3, showHeader = false }) => {
@@ -45933,7 +45963,7 @@ const LoTable = React.memo(({ LO = [], columnsCount = 3, showHeader = false }) =
45933
45963
  "th",
45934
45964
  {
45935
45965
  className: "text-black text-center bg-light-red",
45936
- style: __spreadProps$1(__spreadValues$7({}, loCellStyle), { fontSize: "16px" }),
45966
+ style: __spreadProps$9(__spreadValues$g({}, loCellStyle), { fontSize: "16px" }),
45937
45967
  children: KPLO[col.columnNumber]
45938
45968
  },
45939
45969
  idx
@@ -57780,30 +57810,30 @@ const PayoutApi = "api/v1.0.0/order/payout";
57780
57810
  const TransferUserOptionApi = "api/v1.0.0/user-connect/option";
57781
57811
  const TransferNumberApi = "api/v1.0.0/transfer-number";
57782
57812
 
57783
- var __defProp$6 = Object.defineProperty;
57784
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
57785
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
57786
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
57787
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
57788
- var __spreadValues$6 = (a, b) => {
57813
+ var __defProp$f = Object.defineProperty;
57814
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
57815
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
57816
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
57817
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
57818
+ var __spreadValues$f = (a, b) => {
57789
57819
  for (var prop in b || (b = {}))
57790
- if (__hasOwnProp$7.call(b, prop))
57791
- __defNormalProp$6(a, prop, b[prop]);
57792
- if (__getOwnPropSymbols$7)
57793
- for (var prop of __getOwnPropSymbols$7(b)) {
57794
- if (__propIsEnum$7.call(b, prop))
57795
- __defNormalProp$6(a, prop, b[prop]);
57820
+ if (__hasOwnProp$g.call(b, prop))
57821
+ __defNormalProp$f(a, prop, b[prop]);
57822
+ if (__getOwnPropSymbols$g)
57823
+ for (var prop of __getOwnPropSymbols$g(b)) {
57824
+ if (__propIsEnum$g.call(b, prop))
57825
+ __defNormalProp$f(a, prop, b[prop]);
57796
57826
  }
57797
57827
  return a;
57798
57828
  };
57799
57829
  var __objRest$3 = (source, exclude) => {
57800
57830
  var target = {};
57801
57831
  for (var prop in source)
57802
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
57832
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
57803
57833
  target[prop] = source[prop];
57804
- if (source != null && __getOwnPropSymbols$7)
57805
- for (var prop of __getOwnPropSymbols$7(source)) {
57806
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
57834
+ if (source != null && __getOwnPropSymbols$g)
57835
+ for (var prop of __getOwnPropSymbols$g(source)) {
57836
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
57807
57837
  target[prop] = source[prop];
57808
57838
  }
57809
57839
  return target;
@@ -57840,7 +57870,7 @@ function DeleteModal(_a) {
57840
57870
  const [isLoading, setIsLoading] = React.useState(false);
57841
57871
  const [isSubmitting, setIsSubmitting] = React.useState(false);
57842
57872
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
57843
- const headers = __spreadValues$6({
57873
+ const headers = __spreadValues$f({
57844
57874
  "Content-Type": "application/json",
57845
57875
  "Accept": "application/json",
57846
57876
  "X-DeviceType": "WEB"
@@ -57998,19 +58028,19 @@ DeleteModal.propTypes = {
57998
58028
  accessToken: PropTypes$2.string.isRequired
57999
58029
  };
58000
58030
 
58001
- var __defProp$5 = Object.defineProperty;
58002
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
58003
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
58004
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
58005
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58006
- var __spreadValues$5 = (a, b) => {
58031
+ var __defProp$e = Object.defineProperty;
58032
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
58033
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
58034
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
58035
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58036
+ var __spreadValues$e = (a, b) => {
58007
58037
  for (var prop in b || (b = {}))
58008
- if (__hasOwnProp$6.call(b, prop))
58009
- __defNormalProp$5(a, prop, b[prop]);
58010
- if (__getOwnPropSymbols$6)
58011
- for (var prop of __getOwnPropSymbols$6(b)) {
58012
- if (__propIsEnum$6.call(b, prop))
58013
- __defNormalProp$5(a, prop, b[prop]);
58038
+ if (__hasOwnProp$f.call(b, prop))
58039
+ __defNormalProp$e(a, prop, b[prop]);
58040
+ if (__getOwnPropSymbols$f)
58041
+ for (var prop of __getOwnPropSymbols$f(b)) {
58042
+ if (__propIsEnum$f.call(b, prop))
58043
+ __defNormalProp$e(a, prop, b[prop]);
58014
58044
  }
58015
58045
  return a;
58016
58046
  };
@@ -58045,7 +58075,7 @@ function DeleteTicketButton(props) {
58045
58075
  type: "button",
58046
58076
  onClick: handleOpen,
58047
58077
  className: `border-0 p-2 rounded mb-1 ${className}`.trim(),
58048
- style: __spreadValues$5({
58078
+ style: __spreadValues$e({
58049
58079
  backgroundColor: "#dc3545",
58050
58080
  boxShadow: "none"
58051
58081
  }, style),
@@ -58092,19 +58122,19 @@ DeleteTicketButton.propTypes = {
58092
58122
  style: PropTypes$2.object
58093
58123
  };
58094
58124
 
58095
- var __defProp$4 = Object.defineProperty;
58096
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
58097
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
58098
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
58099
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58100
- var __spreadValues$4 = (a, b) => {
58125
+ var __defProp$d = Object.defineProperty;
58126
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
58127
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
58128
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
58129
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58130
+ var __spreadValues$d = (a, b) => {
58101
58131
  for (var prop in b || (b = {}))
58102
- if (__hasOwnProp$5.call(b, prop))
58103
- __defNormalProp$4(a, prop, b[prop]);
58104
- if (__getOwnPropSymbols$5)
58105
- for (var prop of __getOwnPropSymbols$5(b)) {
58106
- if (__propIsEnum$5.call(b, prop))
58107
- __defNormalProp$4(a, prop, b[prop]);
58132
+ if (__hasOwnProp$e.call(b, prop))
58133
+ __defNormalProp$d(a, prop, b[prop]);
58134
+ if (__getOwnPropSymbols$e)
58135
+ for (var prop of __getOwnPropSymbols$e(b)) {
58136
+ if (__propIsEnum$e.call(b, prop))
58137
+ __defNormalProp$d(a, prop, b[prop]);
58108
58138
  }
58109
58139
  return a;
58110
58140
  };
@@ -58132,7 +58162,7 @@ const ProtestModal = ({
58132
58162
  const [isSubmitting, setIsSubmitting] = React.useState(false);
58133
58163
  const activeLotteryType = lotteryType || (ticket == null ? void 0 : ticket.lotteryType);
58134
58164
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58135
- const headers = __spreadValues$4({
58165
+ const headers = __spreadValues$d({
58136
58166
  "Content-Type": "application/json",
58137
58167
  "Accept": "application/json",
58138
58168
  "X-DeviceType": "WEB"
@@ -58392,19 +58422,19 @@ ProtestButton.propTypes = {
58392
58422
  accessToken: PropTypes$2.string.isRequired
58393
58423
  };
58394
58424
 
58395
- var __defProp$3 = Object.defineProperty;
58396
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
58397
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
58398
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
58399
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58400
- var __spreadValues$3 = (a, b) => {
58425
+ var __defProp$c = Object.defineProperty;
58426
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
58427
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
58428
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
58429
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58430
+ var __spreadValues$c = (a, b) => {
58401
58431
  for (var prop in b || (b = {}))
58402
- if (__hasOwnProp$4.call(b, prop))
58403
- __defNormalProp$3(a, prop, b[prop]);
58404
- if (__getOwnPropSymbols$4)
58405
- for (var prop of __getOwnPropSymbols$4(b)) {
58406
- if (__propIsEnum$4.call(b, prop))
58407
- __defNormalProp$3(a, prop, b[prop]);
58432
+ if (__hasOwnProp$d.call(b, prop))
58433
+ __defNormalProp$c(a, prop, b[prop]);
58434
+ if (__getOwnPropSymbols$d)
58435
+ for (var prop of __getOwnPropSymbols$d(b)) {
58436
+ if (__propIsEnum$d.call(b, prop))
58437
+ __defNormalProp$c(a, prop, b[prop]);
58408
58438
  }
58409
58439
  return a;
58410
58440
  };
@@ -58430,7 +58460,7 @@ const TransferDeleteModal = ({
58430
58460
  const ticketNumber = ticket == null ? void 0 : ticket.ticketNumber;
58431
58461
  const apiBaseUrl = Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3;
58432
58462
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58433
- const headers = React.useMemo(() => __spreadValues$3({
58463
+ const headers = React.useMemo(() => __spreadValues$c({
58434
58464
  "Content-Type": "application/json",
58435
58465
  "Accept": "application/json",
58436
58466
  "X-DeviceType": "WEB"
@@ -58594,19 +58624,19 @@ TransferDeleteModal.propTypes = {
58594
58624
  onError: PropTypes$2.func
58595
58625
  };
58596
58626
 
58597
- var __defProp$2 = Object.defineProperty;
58598
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
58599
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
58600
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
58601
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58602
- var __spreadValues$2 = (a, b) => {
58627
+ var __defProp$b = Object.defineProperty;
58628
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
58629
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
58630
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
58631
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58632
+ var __spreadValues$b = (a, b) => {
58603
58633
  for (var prop in b || (b = {}))
58604
- if (__hasOwnProp$3.call(b, prop))
58605
- __defNormalProp$2(a, prop, b[prop]);
58606
- if (__getOwnPropSymbols$3)
58607
- for (var prop of __getOwnPropSymbols$3(b)) {
58608
- if (__propIsEnum$3.call(b, prop))
58609
- __defNormalProp$2(a, prop, b[prop]);
58634
+ if (__hasOwnProp$c.call(b, prop))
58635
+ __defNormalProp$b(a, prop, b[prop]);
58636
+ if (__getOwnPropSymbols$c)
58637
+ for (var prop of __getOwnPropSymbols$c(b)) {
58638
+ if (__propIsEnum$c.call(b, prop))
58639
+ __defNormalProp$b(a, prop, b[prop]);
58610
58640
  }
58611
58641
  return a;
58612
58642
  };
@@ -58648,7 +58678,7 @@ const TransferModal = ({
58648
58678
  const ticketNumber = ticket == null ? void 0 : ticket.ticketNumber;
58649
58679
  const canDeleteTransfer = (ticket == null ? void 0 : ticket.isHasSend) === true;
58650
58680
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58651
- const headers = React.useMemo(() => __spreadValues$2({
58681
+ const headers = React.useMemo(() => __spreadValues$b({
58652
58682
  "Content-Type": "application/json",
58653
58683
  "Accept": "application/json",
58654
58684
  "X-DeviceType": "WEB"
@@ -58867,30 +58897,30 @@ TransferModal.propTypes = {
58867
58897
  isSubmitting: PropTypes$2.bool
58868
58898
  };
58869
58899
 
58870
- var __defProp$1 = Object.defineProperty;
58871
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
58872
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
58873
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
58874
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58875
- var __spreadValues$1 = (a, b) => {
58900
+ var __defProp$a = Object.defineProperty;
58901
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
58902
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
58903
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
58904
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
58905
+ var __spreadValues$a = (a, b) => {
58876
58906
  for (var prop in b || (b = {}))
58877
- if (__hasOwnProp$2.call(b, prop))
58878
- __defNormalProp$1(a, prop, b[prop]);
58879
- if (__getOwnPropSymbols$2)
58880
- for (var prop of __getOwnPropSymbols$2(b)) {
58881
- if (__propIsEnum$2.call(b, prop))
58882
- __defNormalProp$1(a, prop, b[prop]);
58907
+ if (__hasOwnProp$b.call(b, prop))
58908
+ __defNormalProp$a(a, prop, b[prop]);
58909
+ if (__getOwnPropSymbols$b)
58910
+ for (var prop of __getOwnPropSymbols$b(b)) {
58911
+ if (__propIsEnum$b.call(b, prop))
58912
+ __defNormalProp$a(a, prop, b[prop]);
58883
58913
  }
58884
58914
  return a;
58885
58915
  };
58886
58916
  var __objRest$2 = (source, exclude) => {
58887
58917
  var target = {};
58888
58918
  for (var prop in source)
58889
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
58919
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
58890
58920
  target[prop] = source[prop];
58891
- if (source != null && __getOwnPropSymbols$2)
58892
- for (var prop of __getOwnPropSymbols$2(source)) {
58893
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
58921
+ if (source != null && __getOwnPropSymbols$b)
58922
+ for (var prop of __getOwnPropSymbols$b(source)) {
58923
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
58894
58924
  target[prop] = source[prop];
58895
58925
  }
58896
58926
  return target;
@@ -58926,7 +58956,7 @@ function RemarkModal(_a) {
58926
58956
  setRemark((_a2 = ticket == null ? void 0 : ticket.remark) != null ? _a2 : "");
58927
58957
  }, [ticket]);
58928
58958
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
58929
- const headers = __spreadValues$1({
58959
+ const headers = __spreadValues$a({
58930
58960
  "Content-Type": "application/json",
58931
58961
  "Accept": "application/json",
58932
58962
  "X-DeviceType": "WEB"
@@ -59034,17 +59064,17 @@ RemarkModal.propTypes = {
59034
59064
  accessToken: PropTypes$2.string.isRequired
59035
59065
  };
59036
59066
 
59037
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
59038
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
59039
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
59067
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
59068
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
59069
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
59040
59070
  var __objRest$1 = (source, exclude) => {
59041
59071
  var target = {};
59042
59072
  for (var prop in source)
59043
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
59073
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
59044
59074
  target[prop] = source[prop];
59045
- if (source != null && __getOwnPropSymbols$1)
59046
- for (var prop of __getOwnPropSymbols$1(source)) {
59047
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
59075
+ if (source != null && __getOwnPropSymbols$a)
59076
+ for (var prop of __getOwnPropSymbols$a(source)) {
59077
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
59048
59078
  target[prop] = source[prop];
59049
59079
  }
59050
59080
  return target;
@@ -59085,33 +59115,33 @@ function RemarkModalShowOnly(_a) {
59085
59115
  ) });
59086
59116
  }
59087
59117
 
59088
- var __defProp = Object.defineProperty;
59089
- var __defProps = Object.defineProperties;
59090
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
59091
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
59092
- var __hasOwnProp = Object.prototype.hasOwnProperty;
59093
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
59094
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59095
- var __spreadValues = (a, b) => {
59118
+ var __defProp$9 = Object.defineProperty;
59119
+ var __defProps$8 = Object.defineProperties;
59120
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
59121
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
59122
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
59123
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
59124
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59125
+ var __spreadValues$9 = (a, b) => {
59096
59126
  for (var prop in b || (b = {}))
59097
- if (__hasOwnProp.call(b, prop))
59098
- __defNormalProp(a, prop, b[prop]);
59099
- if (__getOwnPropSymbols)
59100
- for (var prop of __getOwnPropSymbols(b)) {
59101
- if (__propIsEnum.call(b, prop))
59102
- __defNormalProp(a, prop, b[prop]);
59127
+ if (__hasOwnProp$9.call(b, prop))
59128
+ __defNormalProp$9(a, prop, b[prop]);
59129
+ if (__getOwnPropSymbols$9)
59130
+ for (var prop of __getOwnPropSymbols$9(b)) {
59131
+ if (__propIsEnum$9.call(b, prop))
59132
+ __defNormalProp$9(a, prop, b[prop]);
59103
59133
  }
59104
59134
  return a;
59105
59135
  };
59106
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
59136
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
59107
59137
  var __objRest = (source, exclude) => {
59108
59138
  var target = {};
59109
59139
  for (var prop in source)
59110
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
59140
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
59111
59141
  target[prop] = source[prop];
59112
- if (source != null && __getOwnPropSymbols)
59113
- for (var prop of __getOwnPropSymbols(source)) {
59114
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
59142
+ if (source != null && __getOwnPropSymbols$9)
59143
+ for (var prop of __getOwnPropSymbols$9(source)) {
59144
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
59115
59145
  target[prop] = source[prop];
59116
59146
  }
59117
59147
  return target;
@@ -59175,7 +59205,7 @@ function MoreMenu(_a) {
59175
59205
  setIsPayout(Boolean(ticket == null ? void 0 : ticket.isPayout));
59176
59206
  }, [ticket]);
59177
59207
  const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
59178
- const headers = __spreadValues({
59208
+ const headers = __spreadValues$9({
59179
59209
  "Content-Type": "application/json",
59180
59210
  "Accept": "application/json",
59181
59211
  "X-DeviceType": "WEB"
@@ -59281,23 +59311,23 @@ function MoreMenu(_a) {
59281
59311
  children: resolvedButton || defaultToggleContent
59282
59312
  };
59283
59313
  }
59284
- const customProps = __spreadValues({}, resolvedButton.props);
59314
+ const customProps = __spreadValues$9({}, resolvedButton.props);
59285
59315
  const customChildren = customProps.children;
59286
59316
  delete customProps.children;
59287
59317
  if (resolvedButton.type !== DropdownToggle) {
59288
59318
  customProps.tag = customProps.tag || resolvedButton.type;
59289
59319
  }
59290
59320
  return {
59291
- props: __spreadValues(__spreadValues({}, toggleProps), customProps),
59321
+ props: __spreadValues$9(__spreadValues$9({}, toggleProps), customProps),
59292
59322
  children: customChildren || defaultToggleContent
59293
59323
  };
59294
59324
  };
59295
59325
  const renderDropdownToggle = () => {
59296
59326
  const resolvedToggle = resolveDropdownButton();
59297
- return /* @__PURE__ */ jsxRuntime.jsx(DropdownToggle, __spreadProps(__spreadValues({}, resolvedToggle.props), { children: resolvedToggle.children }));
59327
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownToggle, __spreadProps$8(__spreadValues$9({}, resolvedToggle.props), { children: resolvedToggle.children }));
59298
59328
  };
59299
59329
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
59300
- /* @__PURE__ */ jsxRuntime.jsx(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxRuntime.jsxs(UncontrolledDropdown, __spreadProps(__spreadValues({ className: "drp-user font-Hanuman" }, props), { children: [
59330
+ /* @__PURE__ */ jsxRuntime.jsx(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxRuntime.jsxs(UncontrolledDropdown, __spreadProps$8(__spreadValues$9({ className: "drp-user font-Hanuman" }, props), { children: [
59301
59331
  renderDropdownToggle(),
59302
59332
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { className: "profile-notification pt-0", children: [
59303
59333
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownItem, { header: true, className: "drop-header", children: [
@@ -59421,11 +59451,2074 @@ MoreMenu.propTypes = {
59421
59451
  ])
59422
59452
  };
59423
59453
 
59454
+ var __defProp$8 = Object.defineProperty;
59455
+ var __defProps$7 = Object.defineProperties;
59456
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
59457
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
59458
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
59459
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
59460
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59461
+ var __spreadValues$8 = (a, b) => {
59462
+ for (var prop in b || (b = {}))
59463
+ if (__hasOwnProp$8.call(b, prop))
59464
+ __defNormalProp$8(a, prop, b[prop]);
59465
+ if (__getOwnPropSymbols$8)
59466
+ for (var prop of __getOwnPropSymbols$8(b)) {
59467
+ if (__propIsEnum$8.call(b, prop))
59468
+ __defNormalProp$8(a, prop, b[prop]);
59469
+ }
59470
+ return a;
59471
+ };
59472
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
59473
+ const RenderThWidth = ({ value, currency, id, colSpan = 1, className = "" }) => /* @__PURE__ */ jsxRuntime.jsx(
59474
+ "th",
59475
+ {
59476
+ colSpan,
59477
+ style: {
59478
+ minWidth: widthLength(value),
59479
+ border: "1px solid black"
59480
+ },
59481
+ className: `text-center ${value < 0 ? "text-danger" : ""} ${id ? "text-dark" : ""} ` + className,
59482
+ children: id ? value : moneyFormatter(value, currency)
59483
+ }
59484
+ );
59485
+ const TH = ({ children, colSpan = 1, className, border = true }) => /* @__PURE__ */ jsxRuntime.jsx("th", { style: {
59486
+ border: !border ? "0" : "1px solid black"
59487
+ }, colSpan, className: "text-center " + className, children });
59488
+ const THF = ({ children, colSpan = 1, className, style }) => /* @__PURE__ */ jsxRuntime.jsx(
59489
+ "th",
59490
+ {
59491
+ colSpan,
59492
+ style,
59493
+ className: "text-center b-0 " + className,
59494
+ children
59495
+ }
59496
+ );
59497
+ const THB = ({ children, colSpan = 1, className, style }) => /* @__PURE__ */ jsxRuntime.jsx(
59498
+ "th",
59499
+ {
59500
+ colSpan,
59501
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59502
+ border: "1px solid lightgray"
59503
+ }),
59504
+ className: "text-center " + className,
59505
+ children
59506
+ }
59507
+ );
59508
+ const RenderThWidthB = ({ value, currency, id, colSpan = 1, className = "", style }) => /* @__PURE__ */ jsxRuntime.jsx(
59509
+ "th",
59510
+ {
59511
+ colSpan,
59512
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59513
+ border: "1px solid lightgray",
59514
+ width: widthLength(value)
59515
+ }),
59516
+ className: `text-center ${value < 0 ? "text-danger" : ""} ` + className,
59517
+ children: id ? value : moneyFormatter(value, currency)
59518
+ }
59519
+ );
59520
+ const RenderThWidthF = ({ value, currency, id, colSpan = 1, className = "", style }) => /* @__PURE__ */ jsxRuntime.jsx(
59521
+ "th",
59522
+ {
59523
+ colSpan,
59524
+ style: __spreadProps$7(__spreadValues$8({}, style), {
59525
+ width: widthLength(value)
59526
+ }),
59527
+ className: `text-center b-0 ${value < 0 ? "text-danger" : ""} ` + className,
59528
+ children: id ? value : moneyFormatter(value, currency)
59529
+ }
59530
+ );
59531
+
59532
+ let MainTableRow$2 = class MainTableRow extends React.Component {
59533
+ render() {
59534
+ const {
59535
+ object: {
59536
+ drawAt,
59537
+ bet1DUsd = 0,
59538
+ bet2DUsd = 0,
59539
+ bet3DUsd = 0,
59540
+ bet4DUsd = 0,
59541
+ bet1DKhr = 0,
59542
+ bet2DKhr = 0,
59543
+ bet3DKhr = 0,
59544
+ bet4DKhr = 0,
59545
+ win1DKhr = 0,
59546
+ win1DUsd = 0,
59547
+ win2DKhr = 0,
59548
+ win2DUsd = 0,
59549
+ win3DKhr = 0,
59550
+ win3DUsd = 0,
59551
+ win4DKhr = 0,
59552
+ win4DUsd = 0
59553
+ },
59554
+ id,
59555
+ total,
59556
+ isMix,
59557
+ isShow,
59558
+ mergeKhr,
59559
+ mergeUsd,
59560
+ isShowUsd,
59561
+ item: {
59562
+ isShow1DKhr,
59563
+ isShow4DKhr,
59564
+ isShow1DUsd,
59565
+ isShow4DUsd
59566
+ }
59567
+ } = this.props;
59568
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
59569
+ /* @__PURE__ */ jsxRuntime.jsx(
59570
+ TH,
59571
+ {
59572
+ colSpan: 2,
59573
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
59574
+ children: total ? total : getTime(drawAt)
59575
+ }
59576
+ ),
59577
+ isShow(isShow1DKhr) && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet1DKhr, currency: "KHR" }),
59578
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
59579
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
59580
+ isShow(isShow4DKhr) && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
59581
+ isShow(isShow1DUsd) && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet1DUsd, currency: "USD" }),
59582
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
59583
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
59584
+ isShow(isShow4DUsd) && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
59585
+ isMix && /* @__PURE__ */ jsxRuntime.jsx(
59586
+ RenderThWidth,
59587
+ {
59588
+ colSpan: mergeKhr,
59589
+ id,
59590
+ value: bet1DKhr + bet2DKhr + bet3DKhr + bet4DKhr,
59591
+ currency: "KHR"
59592
+ }
59593
+ ),
59594
+ isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(
59595
+ RenderThWidth,
59596
+ {
59597
+ className: "green-l-h",
59598
+ colSpan: mergeUsd,
59599
+ id,
59600
+ value: formatUsd(bet1DUsd + bet2DUsd + bet3DUsd + bet4DUsd),
59601
+ currency: "USD"
59602
+ }
59603
+ ),
59604
+ isShow1DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win1DKhr, currency: "KHR" }),
59605
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
59606
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
59607
+ isShow4DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
59608
+ isShow1DUsd && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win1DUsd, currency: "USD" }),
59609
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
59610
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
59611
+ isShow4DUsd && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" })
59612
+ ] });
59613
+ }
59614
+ };
59615
+
59616
+ const MIX_DAILY_LABELS = {
59617
+ "labels:mix_daily_report.bet": "\u179B\u17BB\u1799\u179B\u1780\u17CB",
59618
+ "labels:mix_daily_report.reward": "\u179B\u17BB\u1799\u1788\u17D2\u1793\u17C7",
59619
+ "labels:mix_daily_report.shift": "\u1798\u17C9\u17C4\u1784",
59620
+ "labels:mix_daily_report.one_d": "1D",
59621
+ "labels:mix_daily_report.two_d": "2D",
59622
+ "labels:mix_daily_report.three_d": "3D",
59623
+ "labels:mix_daily_report.four_d": "4D",
59624
+ "labels:mix_daily_report.five_d": "5D"
59625
+ };
59626
+ const getMixDailyTranslator = (t) => (key) => {
59627
+ if (typeof t === "function") return t(key);
59628
+ return MIX_DAILY_LABELS[key] || key;
59629
+ };
59630
+ const getOptionalDigitLength = (...flags) => flags.filter(Boolean).length;
59631
+ const getReportClassName = (filter) => (filter == null ? void 0 : filter.lotteryType) === "ALL" ? "page-break" : "";
59632
+ const renderReportTitleRows = ({
59633
+ preTitle,
59634
+ lotteryType,
59635
+ nickname,
59636
+ username,
59637
+ date,
59638
+ titleColSpan,
59639
+ usernameColSpan,
59640
+ dateColSpan,
59641
+ dayColSpan,
59642
+ isSend
59643
+ }) => /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: ` ${isSend ? "bg-red-l2" : "yell-l-h"} text-center`, children: [
59644
+ /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: 2, children: nickname }),
59645
+ /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: usernameColSpan, className: "font-weight-bold", children: getMemberName(username) }),
59646
+ /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: dateColSpan, className: "font-weight-bold", children: getDateF(date) }),
59647
+ /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: dayColSpan, children: getDay(date) })
59648
+ ] }) });
59649
+ const renderReportSectionHeaderRow = ({ lotteryType, sections }) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "blue-h", children: [
59650
+ /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: 2, children: lotteryReportLabel(lotteryType) }),
59651
+ sections.map((section) => section.isVisible !== false && /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: section.colSpan, children: section.label }, section.key))
59652
+ ] });
59653
+ const renderReportColumnHeaderRow = (columns) => /* @__PURE__ */ jsxRuntime.jsx("tr", { children: columns.map((column) => column.isVisible !== false && /* @__PURE__ */ jsxRuntime.jsx(TH, { colSpan: column.colSpan, className: column.className, children: column.label }, column.key)) });
59654
+
59655
+ var __defProp$7 = Object.defineProperty;
59656
+ var __defProps$6 = Object.defineProperties;
59657
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
59658
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
59659
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
59660
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
59661
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59662
+ var __spreadValues$7 = (a, b) => {
59663
+ for (var prop in b || (b = {}))
59664
+ if (__hasOwnProp$7.call(b, prop))
59665
+ __defNormalProp$7(a, prop, b[prop]);
59666
+ if (__getOwnPropSymbols$7)
59667
+ for (var prop of __getOwnPropSymbols$7(b)) {
59668
+ if (__propIsEnum$7.call(b, prop))
59669
+ __defNormalProp$7(a, prop, b[prop]);
59670
+ }
59671
+ return a;
59672
+ };
59673
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
59674
+ const buildCommissionRows = (rows) => rows.map((row) => __spreadProps$6(__spreadValues$7({}, row), {
59675
+ rate: `x ${row.comRate}%`,
59676
+ khrValue: row.betAmountKhr,
59677
+ khrResult: row.comAmountKhr,
59678
+ usdValue: row.betAmountUsd,
59679
+ usdResult: row.comAmountUsd
59680
+ }));
59681
+ const buildRewardRows = (rows) => rows.map((row) => __spreadProps$6(__spreadValues$7({}, row), {
59682
+ khrValue: row.winAmountKhr,
59683
+ rate: row.rebateRateKhr,
59684
+ khrResult: row.rewardAmountKhr,
59685
+ usdValue: row.winAmountUsd,
59686
+ usdRate: row.rebateRateUsd,
59687
+ usdResult: row.rewardAmountUsd
59688
+ }));
59689
+ const renderCalculationRows = ({
59690
+ rows,
59691
+ id,
59692
+ isShowUsd,
59693
+ layout,
59694
+ valueClassName,
59695
+ resultClassName,
59696
+ usdResultClassName,
59697
+ rateClassName = "vio-l-h"
59698
+ }) => rows.map((row) => row.isVisible !== false && /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: renderCalculationRow(__spreadProps$6(__spreadValues$7({}, row), {
59699
+ id,
59700
+ isShowUsd,
59701
+ layout: row.layout || layout,
59702
+ valueClassName: row.valueClassName || valueClassName,
59703
+ resultClassName: row.resultClassName || resultClassName,
59704
+ usdResultClassName: row.usdResultClassName || usdResultClassName || row.resultClassName || resultClassName,
59705
+ rateClassName
59706
+ })) }, row.label));
59707
+ const renderSummaryBandRow = ({
59708
+ isShowUsd,
59709
+ khrColSpan,
59710
+ usdColSpan,
59711
+ khrLabel = "\u179F\u179A\u17BB\u1794\u179B\u17BB\u1799\u1780\u17B6\u178F\u17CB\u1791\u17B9\u1780\n(\u179A\u17C0\u179B)",
59712
+ usdLabel = "\u179F\u179A\u17BB\u1794\u179B\u17BB\u1799\u1780\u17B6\u178F\u17CB\u1791\u17B9\u1780\n(\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A)"
59713
+ }) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up b-vio-t", children: [
59714
+ /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "blue-l-h", colSpan: khrColSpan, children: khrLabel }),
59715
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(THF, { colSpan: usdColSpan, className: "green-l-h text-left", children: usdLabel })
59716
+ ] });
59717
+ const renderWinLoseRow = ({
59718
+ id,
59719
+ isShowUsd,
59720
+ winLoseKhr,
59721
+ winLoseUsd,
59722
+ khrLabel = "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
59723
+ usdLabel = "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
59724
+ khrAfterValue = [],
59725
+ usdAfterValue = [],
59726
+ borderClassName = "b-vio-b"
59727
+ }) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: `animate-slide-up ${borderClassName}`, children: [
59728
+ /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "t-right", children: khrLabel }),
59729
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { id, value: winLoseKhr, currency: "KHR" }),
59730
+ khrAfterValue.map(renderSpacer),
59731
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "t-right", children: usdLabel }),
59732
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { id, value: winLoseUsd, currency: "USD" }),
59733
+ isShowUsd && usdAfterValue.map(renderSpacer)
59734
+ ] });
59735
+ const renderSpacer = ({ colSpan } = {}, key) => /* @__PURE__ */ jsxRuntime.jsx(THF, { colSpan }, key);
59736
+ const renderCalculationRow = ({
59737
+ className = "animate-slide-up",
59738
+ id,
59739
+ label,
59740
+ khrValue,
59741
+ rate,
59742
+ khrResult,
59743
+ usdValue,
59744
+ usdRate,
59745
+ usdResult,
59746
+ isShowUsd,
59747
+ layout,
59748
+ valueClassName,
59749
+ resultClassName,
59750
+ usdResultClassName,
59751
+ rateClassName
59752
+ }) => {
59753
+ var _a, _b, _c, _d;
59754
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className, children: [
59755
+ /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "t-right", children: label }),
59756
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { className: valueClassName, id, value: khrValue, currency: "KHR" }),
59757
+ (_a = layout.khrBeforeRate) == null ? void 0 : _a.map(renderSpacer),
59758
+ /* @__PURE__ */ jsxRuntime.jsx(THF, { className: rateClassName, children: rate }),
59759
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { className: resultClassName, id, value: khrResult, currency: "KHR" }),
59760
+ (_b = layout.khrAfterResult) == null ? void 0 : _b.map(renderSpacer),
59761
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "t-right", children: label }),
59762
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { className: valueClassName, id, value: usdValue, currency: "USD" }),
59763
+ isShowUsd && ((_c = layout.usdBeforeRate) == null ? void 0 : _c.map(renderSpacer)),
59764
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(THF, { className: rateClassName, children: usdRate || rate }),
59765
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthF, { className: usdResultClassName, id, value: usdResult, currency: "USD" }),
59766
+ isShowUsd && ((_d = layout.usdAfterResult) == null ? void 0 : _d.map(renderSpacer))
59767
+ ] });
59768
+ };
59769
+
59770
+ var __defProp$6 = Object.defineProperty;
59771
+ var __defProps$5 = Object.defineProperties;
59772
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
59773
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
59774
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
59775
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
59776
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
59777
+ var __spreadValues$6 = (a, b) => {
59778
+ for (var prop in b || (b = {}))
59779
+ if (__hasOwnProp$6.call(b, prop))
59780
+ __defNormalProp$6(a, prop, b[prop]);
59781
+ if (__getOwnPropSymbols$6)
59782
+ for (var prop of __getOwnPropSymbols$6(b)) {
59783
+ if (__propIsEnum$6.call(b, prop))
59784
+ __defNormalProp$6(a, prop, b[prop]);
59785
+ }
59786
+ return a;
59787
+ };
59788
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
59789
+ const getVnSectionColSpan = (show1D, show4D) => getOptionalDigitLength(show1D, show4D) + 2;
59790
+ const renderSectionHeaderRow$2 = ({
59791
+ t,
59792
+ lotteryType,
59793
+ isShowUsd,
59794
+ isShow1DKhr,
59795
+ isShow4DKhr,
59796
+ isShow1DUsd,
59797
+ isShow4DUsd
59798
+ }) => {
59799
+ const khrColSpan = getVnSectionColSpan(isShow1DKhr, isShow4DKhr);
59800
+ const usdColSpan = getVnSectionColSpan(isShow1DUsd, isShow4DUsd);
59801
+ return renderReportSectionHeaderRow({
59802
+ lotteryType,
59803
+ sections: [
59804
+ { key: "bet-khr", colSpan: khrColSpan, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
59805
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: usdColSpan, label: `${t("labels:mix_daily_report.bet")}(USD)` },
59806
+ { key: "reward-khr", colSpan: khrColSpan, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
59807
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: usdColSpan, label: `${t("labels:mix_daily_report.reward")}(USD)` }
59808
+ ]
59809
+ });
59810
+ };
59811
+ const renderColumnHeaderRow$2 = ({
59812
+ t,
59813
+ isMix,
59814
+ isShowUsd,
59815
+ isShow1DKhr,
59816
+ isShow4DKhr,
59817
+ isShow1DUsd,
59818
+ isShow4DUsd,
59819
+ mergeKhr,
59820
+ mergeUsd
59821
+ }) => renderReportColumnHeaderRow([
59822
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
59823
+ { key: "bet-1d-khr", isVisible: !isMix && isShow1DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.one_d") },
59824
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
59825
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
59826
+ { key: "bet-4d-khr", isVisible: !isMix && isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
59827
+ { key: "mix-khr", isVisible: isMix, colSpan: mergeKhr, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
59828
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: mergeUsd, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
59829
+ { key: "bet-1d-usd", isVisible: !isMix && isShow1DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.one_d") },
59830
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
59831
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
59832
+ { key: "bet-4d-usd", isVisible: !isMix && isShow4DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
59833
+ { key: "reward-1d-khr", isVisible: isShow1DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.one_d") },
59834
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
59835
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
59836
+ { key: "reward-4d-khr", isVisible: isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
59837
+ { key: "reward-1d-usd", isVisible: isShow1DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.one_d") },
59838
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
59839
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
59840
+ { key: "reward-4d-usd", isVisible: isShow4DUsd && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") }
59841
+ ]);
59842
+ const getSummaryRowLayout = ({ isShowUsd, getAllLength, mergeKhr }) => ({
59843
+ khrAfterResult: [{ colSpan: isShowUsd ? getAllLength + 2 : mergeKhr + 6 }],
59844
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
59845
+ });
59846
+ const getCommissionRows$2 = ({
59847
+ isMix,
59848
+ isShow1DKhr,
59849
+ isShow1DUsd,
59850
+ isShow4DKhr,
59851
+ isShow4DUsd,
59852
+ bet1DKhr,
59853
+ bet2DKhr,
59854
+ bet3DKhr,
59855
+ bet4DKhr,
59856
+ bet1DUsd,
59857
+ bet2DUsd,
59858
+ bet3DUsd,
59859
+ bet4DUsd,
59860
+ com1D,
59861
+ com2D,
59862
+ com3D,
59863
+ com4D,
59864
+ com1DKhr,
59865
+ com2DKhr,
59866
+ com3DKhr,
59867
+ com4DKhr,
59868
+ com1DUsd,
59869
+ com2DUsd,
59870
+ com3DUsd,
59871
+ com4DUsd
59872
+ }) => [
59873
+ ...buildCommissionRows([
59874
+ {
59875
+ isVisible: !isMix && (isShow1DKhr || isShow1DUsd),
59876
+ label: "1 \u179B\u17C1\u1781",
59877
+ betAmountKhr: bet1DKhr,
59878
+ comRate: com1D,
59879
+ comAmountKhr: com1DKhr,
59880
+ betAmountUsd: bet1DUsd,
59881
+ comAmountUsd: com1DUsd,
59882
+ className: "animate-slide-u"
59883
+ },
59884
+ {
59885
+ isVisible: !isMix,
59886
+ label: "2 \u179B\u17C1\u1781",
59887
+ betAmountKhr: bet2DKhr,
59888
+ comRate: com2D,
59889
+ comAmountKhr: com2DKhr,
59890
+ betAmountUsd: bet2DUsd,
59891
+ comAmountUsd: com2DUsd,
59892
+ className: "animate-slide-u"
59893
+ },
59894
+ {
59895
+ isVisible: !isMix,
59896
+ label: "3 \u179B\u17C1\u1781",
59897
+ betAmountKhr: bet3DKhr,
59898
+ comRate: com3D,
59899
+ comAmountKhr: com3DKhr,
59900
+ betAmountUsd: bet3DUsd,
59901
+ comAmountUsd: com3DUsd
59902
+ },
59903
+ {
59904
+ isVisible: !isMix && (isShow4DKhr || isShow4DUsd),
59905
+ label: "4 \u179B\u17C1\u1781",
59906
+ betAmountKhr: bet4DKhr,
59907
+ comRate: com4D,
59908
+ comAmountKhr: com4DKhr,
59909
+ betAmountUsd: bet4DUsd,
59910
+ comAmountUsd: com4DUsd
59911
+ }
59912
+ ]),
59913
+ {
59914
+ isVisible: isMix,
59915
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
59916
+ khrValue: bet1DKhr + bet2DKhr + bet3DKhr + bet4DKhr,
59917
+ rate: `x ${bet1DKhr > 0 ? `${com1D}/` : ""}${com2D}/${com3D}${bet4DKhr > 0 ? `/${com4D}` : ""}`,
59918
+ khrResult: com1DKhr + com2DKhr + com3DKhr + com4DKhr,
59919
+ usdValue: formatUsd(bet1DUsd + bet2DUsd + bet3DUsd + bet4DUsd),
59920
+ usdRate: `x ${bet1DUsd > 0 ? `${com1D}/` : ""}${com2D}/${com3D}${bet4DUsd > 0 ? `/${com4D}` : ""}`,
59921
+ usdResult: formatUsd(com1DUsd + com2DUsd + com3DUsd + com4DUsd),
59922
+ usdResultClassName: "blue-l-h"
59923
+ }
59924
+ ];
59925
+ const getRewardRows$2 = ({
59926
+ isShow1DKhr,
59927
+ isShow1DUsd,
59928
+ isShow4DKhr,
59929
+ isShow4DUsd,
59930
+ win1DKhr,
59931
+ win2DKhr,
59932
+ win3DKhr,
59933
+ win4DKhr,
59934
+ win1DUsd,
59935
+ win2DUsd,
59936
+ win3DUsd,
59937
+ win4DUsd,
59938
+ reward1DKhr,
59939
+ reward2DKhr,
59940
+ reward3DKhr,
59941
+ reward4DKhr,
59942
+ reward1DUsd,
59943
+ reward2DUsd,
59944
+ reward3DUsd,
59945
+ reward4DUsd,
59946
+ rebateRate1D,
59947
+ rebateRate2D,
59948
+ rebateRate3D,
59949
+ rebateRate4D
59950
+ }) => buildRewardRows([
59951
+ {
59952
+ isVisible: isShow1DKhr || isShow1DUsd,
59953
+ label: "\u178F\u17D2\u179A\u17BC\u179C 1 \u179B\u17C1\u1781",
59954
+ winAmountKhr: win1DKhr,
59955
+ rebateRateKhr: rebateRate1D,
59956
+ rewardAmountKhr: reward1DKhr,
59957
+ winAmountUsd: win1DUsd,
59958
+ rebateRateUsd: rebateRate1D,
59959
+ rewardAmountUsd: reward1DUsd
59960
+ },
59961
+ {
59962
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
59963
+ winAmountKhr: win2DKhr,
59964
+ rebateRateKhr: rebateRate2D,
59965
+ rewardAmountKhr: reward2DKhr,
59966
+ winAmountUsd: win2DUsd,
59967
+ rebateRateUsd: rebateRate2D,
59968
+ rewardAmountUsd: reward2DUsd
59969
+ },
59970
+ {
59971
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
59972
+ winAmountKhr: win3DKhr,
59973
+ rebateRateKhr: rebateRate3D,
59974
+ rewardAmountKhr: reward3DKhr,
59975
+ winAmountUsd: win3DUsd,
59976
+ rebateRateUsd: rebateRate3D,
59977
+ rewardAmountUsd: reward3DUsd
59978
+ },
59979
+ {
59980
+ isVisible: isShow4DKhr || isShow4DUsd,
59981
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
59982
+ winAmountKhr: win4DKhr,
59983
+ rebateRateKhr: rebateRate4D,
59984
+ rewardAmountKhr: reward4DKhr,
59985
+ winAmountUsd: win4DUsd,
59986
+ rebateRateUsd: rebateRate4D,
59987
+ rewardAmountUsd: reward4DUsd,
59988
+ className: "animate-slide-up b-vio-b"
59989
+ }
59990
+ ]);
59991
+ const MainVn = (props) => {
59992
+ const {
59993
+ t,
59994
+ item: {
59995
+ date,
59996
+ isShow1DKhr,
59997
+ isShow4DKhr,
59998
+ isShow1DUsd,
59999
+ isShow4DUsd,
60000
+ isShowUsd,
60001
+ items,
60002
+ username,
60003
+ nickname,
60004
+ summary: {
60005
+ com1DUsd = 0,
60006
+ com2DUsd = 0,
60007
+ com3DUsd = 0,
60008
+ com4DUsd = 0,
60009
+ com1DKhr = 0,
60010
+ com2DKhr = 0,
60011
+ com3DKhr = 0,
60012
+ com4DKhr = 0,
60013
+ bet1DUsd = 0,
60014
+ bet2DUsd = 0,
60015
+ bet3DUsd = 0,
60016
+ bet4DUsd = 0,
60017
+ bet1DKhr = 0,
60018
+ bet2DKhr = 0,
60019
+ bet3DKhr = 0,
60020
+ bet4DKhr = 0,
60021
+ reward1DKhr = 0,
60022
+ reward1DUsd = 0,
60023
+ reward2DKhr = 0,
60024
+ reward2DUsd = 0,
60025
+ reward3DUsd = 0,
60026
+ reward3DKhr = 0,
60027
+ reward4DUsd = 0,
60028
+ reward4DKhr = 0,
60029
+ win1DKhr = 0,
60030
+ win1DUsd = 0,
60031
+ win2DKhr = 0,
60032
+ win2DUsd = 0,
60033
+ win3DKhr = 0,
60034
+ win3DUsd = 0,
60035
+ win4DKhr = 0,
60036
+ win4DUsd = 0,
60037
+ winLoseKhr = 0,
60038
+ winLoseUsd = 0
60039
+ },
60040
+ hasLottery: {
60041
+ rebateRate1D = 0,
60042
+ rebateRate2D = 0,
60043
+ rebateRate3D = 0,
60044
+ rebateRate4D = 0,
60045
+ com1D = 0,
60046
+ com2D = 0,
60047
+ com3D = 0,
60048
+ com4D = 0
60049
+ } = {}
60050
+ },
60051
+ type,
60052
+ id,
60053
+ isMix,
60054
+ mixDailyReport,
60055
+ filter: directFilter,
60056
+ preTitle
60057
+ } = props;
60058
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60059
+ const translate = getMixDailyTranslator(t);
60060
+ const className = getReportClassName(filter);
60061
+ const getAllLength = getOptionalDigitLength(isShow1DKhr, isShow1DUsd, isShow4DKhr, isShow4DUsd);
60062
+ const getKHRLength = getOptionalDigitLength(isShow1DKhr, isShow4DKhr);
60063
+ const getUSDLength = getOptionalDigitLength(isShow1DUsd, isShow4DUsd);
60064
+ const mergeAll = getAllLength + 4;
60065
+ const mergeKhr = getKHRLength + 2;
60066
+ const mergeUsd = getUSDLength + 2;
60067
+ const summaryRowLayout = getSummaryRowLayout({ isShowUsd, getAllLength, mergeKhr });
60068
+ const commissionRows = getCommissionRows$2({
60069
+ isMix,
60070
+ isShow1DKhr,
60071
+ isShow1DUsd,
60072
+ isShow4DKhr,
60073
+ isShow4DUsd,
60074
+ bet1DKhr,
60075
+ bet2DKhr,
60076
+ bet3DKhr,
60077
+ bet4DKhr,
60078
+ bet1DUsd,
60079
+ bet2DUsd,
60080
+ bet3DUsd,
60081
+ bet4DUsd,
60082
+ com1D,
60083
+ com2D,
60084
+ com3D,
60085
+ com4D,
60086
+ com1DKhr,
60087
+ com2DKhr,
60088
+ com3DKhr,
60089
+ com4DKhr,
60090
+ com1DUsd,
60091
+ com2DUsd,
60092
+ com3DUsd,
60093
+ com4DUsd
60094
+ });
60095
+ const rewardRows = getRewardRows$2({
60096
+ isShow1DKhr,
60097
+ isShow1DUsd,
60098
+ isShow4DKhr,
60099
+ isShow4DUsd,
60100
+ win1DKhr,
60101
+ win2DKhr,
60102
+ win3DKhr,
60103
+ win4DKhr,
60104
+ win1DUsd,
60105
+ win2DUsd,
60106
+ win3DUsd,
60107
+ win4DUsd,
60108
+ reward1DKhr,
60109
+ reward2DKhr,
60110
+ reward3DKhr,
60111
+ reward4DKhr,
60112
+ reward1DUsd,
60113
+ reward2DUsd,
60114
+ reward3DUsd,
60115
+ reward4DUsd,
60116
+ rebateRate1D,
60117
+ rebateRate2D,
60118
+ rebateRate3D,
60119
+ rebateRate4D
60120
+ });
60121
+ const isShow = (value) => !isMix && value;
60122
+ const titleColSpan = isShowUsd ? 2 + mergeAll + mergeKhr + mergeUsd : 2 + mergeKhr * 2;
60123
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsxRuntime.jsx("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { className: "pb-5", children: [
60124
+ renderReportTitleRows({
60125
+ preTitle,
60126
+ lotteryType: type,
60127
+ nickname,
60128
+ username,
60129
+ date,
60130
+ titleColSpan,
60131
+ usernameColSpan: isShowUsd ? mergeAll : mergeKhr,
60132
+ dateColSpan: isShowUsd ? mergeKhr : mergeKhr - 1,
60133
+ dayColSpan: isShowUsd ? mergeUsd : 1,
60134
+ isSend: filter == null ? void 0 : filter.isSend
60135
+ }),
60136
+ renderSectionHeaderRow$2({
60137
+ t: translate,
60138
+ lotteryType: type,
60139
+ isShowUsd,
60140
+ isShow1DKhr,
60141
+ isShow4DKhr,
60142
+ isShow1DUsd,
60143
+ isShow4DUsd
60144
+ }),
60145
+ renderColumnHeaderRow$2({
60146
+ t: translate,
60147
+ isMix,
60148
+ isShowUsd,
60149
+ isShow1DKhr,
60150
+ isShow4DKhr,
60151
+ isShow1DUsd,
60152
+ isShow4DUsd,
60153
+ mergeKhr,
60154
+ mergeUsd
60155
+ }),
60156
+ items && items.map((object, i) => /* @__PURE__ */ React.createElement(
60157
+ MainTableRow$2,
60158
+ __spreadProps$5(__spreadValues$6({
60159
+ isShowUsd,
60160
+ mergeKhr,
60161
+ mergeUsd,
60162
+ isShow
60163
+ }, props), {
60164
+ key: i,
60165
+ index: i + 1,
60166
+ item: props.item,
60167
+ object
60168
+ })
60169
+ )),
60170
+ /* @__PURE__ */ jsxRuntime.jsx(
60171
+ MainTableRow$2,
60172
+ __spreadProps$5(__spreadValues$6({
60173
+ isShowUsd,
60174
+ mergeKhr,
60175
+ mergeUsd,
60176
+ isShow
60177
+ }, props), {
60178
+ total: "\u179F\u179A\u17BB\u1794",
60179
+ item: props.item,
60180
+ object: __spreadValues$6({}, props.item.summary)
60181
+ })
60182
+ ),
60183
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(THF, { colSpan: 10 }) }),
60184
+ renderSummaryBandRow({
60185
+ isShowUsd,
60186
+ khrColSpan: isShowUsd ? mergeAll : mergeKhr + 6,
60187
+ usdColSpan: getAllLength + 6
60188
+ }),
60189
+ renderCalculationRows({
60190
+ rows: commissionRows,
60191
+ id,
60192
+ isShowUsd,
60193
+ layout: summaryRowLayout,
60194
+ resultClassName: "blue-l-h",
60195
+ usdResultClassName: "green-l-h"
60196
+ }),
60197
+ renderCalculationRows({
60198
+ rows: rewardRows,
60199
+ id,
60200
+ isShowUsd,
60201
+ layout: summaryRowLayout,
60202
+ valueClassName: "t-blue",
60203
+ resultClassName: "t-blue b-gray-l"
60204
+ }),
60205
+ renderWinLoseRow({
60206
+ id,
60207
+ isShowUsd,
60208
+ winLoseKhr,
60209
+ winLoseUsd,
60210
+ khrAfterValue: [{ colSpan: isShowUsd ? getAllLength + 4 : mergeKhr + 8 }],
60211
+ usdAfterValue: [{ colSpan: 7 }]
60212
+ })
60213
+ ] }) }) });
60214
+ };
60215
+
60216
+ let MainTableRow$1 = class MainTableRow extends React.Component {
60217
+ render() {
60218
+ const {
60219
+ object: {
60220
+ drawAt,
60221
+ bet2DUsd = 0,
60222
+ bet3DUsd = 0,
60223
+ bet2DKhr = 0,
60224
+ bet3DKhr = 0,
60225
+ win2DKhr = 0,
60226
+ win2DUsd = 0,
60227
+ win3DKhr = 0,
60228
+ win3DUsd = 0,
60229
+ win4DKhr = 0,
60230
+ win4DUsd = 0,
60231
+ bet4DKhr = 0,
60232
+ bet4DUsd = 0
60233
+ },
60234
+ id,
60235
+ total,
60236
+ isMix,
60237
+ isShowUsd
60238
+ } = this.props;
60239
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
60240
+ /* @__PURE__ */ jsxRuntime.jsx(
60241
+ TH,
60242
+ {
60243
+ colSpan: 2,
60244
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
60245
+ children: total ? total : getTime(drawAt)
60246
+ }
60247
+ ),
60248
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
60249
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
60250
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
60251
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
60252
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
60253
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
60254
+ isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { colSpan: 2, id, value: bet2DKhr + bet3DKhr + bet4DKhr, currency: "KHR" }),
60255
+ isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", colSpan: 2, id, value: formatUsd(bet3DUsd + bet2DUsd + bet4DUsd), currency: "USD" }),
60256
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
60257
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
60258
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
60259
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
60260
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
60261
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" })
60262
+ ] });
60263
+ }
60264
+ };
60265
+
60266
+ var __defProp$5 = Object.defineProperty;
60267
+ var __defProps$4 = Object.defineProperties;
60268
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
60269
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
60270
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
60271
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
60272
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
60273
+ var __spreadValues$5 = (a, b) => {
60274
+ for (var prop in b || (b = {}))
60275
+ if (__hasOwnProp$5.call(b, prop))
60276
+ __defNormalProp$5(a, prop, b[prop]);
60277
+ if (__getOwnPropSymbols$5)
60278
+ for (var prop of __getOwnPropSymbols$5(b)) {
60279
+ if (__propIsEnum$5.call(b, prop))
60280
+ __defNormalProp$5(a, prop, b[prop]);
60281
+ }
60282
+ return a;
60283
+ };
60284
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
60285
+ const renderSectionHeaderRow$1 = ({ t, lotteryType, isMix, isShowUsd }) => renderReportSectionHeaderRow({
60286
+ lotteryType,
60287
+ sections: [
60288
+ { key: "bet-khr", colSpan: isMix ? 2 : 3, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
60289
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: isMix ? 2 : 3, label: `${t("labels:mix_daily_report.bet")}(USD)` },
60290
+ { key: "reward-khr", colSpan: 3, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
60291
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: 3, label: `${t("labels:mix_daily_report.reward")}(USD)` }
60292
+ ]
60293
+ });
60294
+ const renderColumnHeaderRow$1 = ({ t, isMix, isShowUsd }) => renderReportColumnHeaderRow([
60295
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
60296
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60297
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60298
+ { key: "bet-4d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60299
+ { key: "mix-khr", isVisible: isMix, colSpan: 2, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
60300
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: 2, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
60301
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60302
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60303
+ { key: "bet-4d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60304
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60305
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60306
+ { key: "reward-4d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60307
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60308
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60309
+ { key: "reward-4d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") }
60310
+ ]);
60311
+ const getCommissionRowLayout$1 = ({ isShowUsd }) => ({
60312
+ khrAfterResult: [{ colSpan: isShowUsd ? 3 : 4 }],
60313
+ usdAfterResult: [{}, {}, {}]
60314
+ });
60315
+ const getMixCommissionRowLayout$1 = ({ isShowUsd }) => ({
60316
+ khrAfterResult: [{ colSpan: isShowUsd ? 2 : 3 }],
60317
+ usdAfterResult: [{}, {}]
60318
+ });
60319
+ const getRewardRowLayout$1 = ({ isMix, isShowUsd }) => ({
60320
+ khrAfterResult: [
60321
+ { colSpan: isShowUsd ? 2 : 3 },
60322
+ ...!isMix ? [{}] : []
60323
+ ],
60324
+ usdAfterResult: [
60325
+ {},
60326
+ {},
60327
+ ...!isMix ? [{}] : []
60328
+ ]
60329
+ });
60330
+ const getWinLoseLayout$1 = ({ isMix, isShowUsd }) => ({
60331
+ khrAfterValue: [
60332
+ { colSpan: isShowUsd ? 4 : 5 },
60333
+ ...!isMix ? [{}] : []
60334
+ ],
60335
+ usdAfterValue: [
60336
+ { colSpan: 4 },
60337
+ ...!isMix ? [{}] : []
60338
+ ]
60339
+ });
60340
+ const getCommissionRows$1 = ({
60341
+ isMix,
60342
+ isShowUsd,
60343
+ bet2DKhr,
60344
+ bet3DKhr,
60345
+ bet4DKhr,
60346
+ bet2DUsd,
60347
+ bet3DUsd,
60348
+ bet4DUsd,
60349
+ com2D,
60350
+ com3D,
60351
+ com4D,
60352
+ com2DKhr,
60353
+ com3DKhr,
60354
+ com4DKhr,
60355
+ com2DUsd,
60356
+ com3DUsd,
60357
+ com4DUsd
60358
+ }) => [
60359
+ ...buildCommissionRows([
60360
+ {
60361
+ isVisible: !isMix,
60362
+ label: "2 \u179B\u17C1\u1781",
60363
+ betAmountKhr: bet2DKhr,
60364
+ comRate: com2D,
60365
+ comAmountKhr: com2DKhr,
60366
+ betAmountUsd: bet2DUsd,
60367
+ comAmountUsd: com2DUsd,
60368
+ className: "animate-slide-u"
60369
+ },
60370
+ {
60371
+ isVisible: !isMix,
60372
+ label: "3 \u179B\u17C1\u1781",
60373
+ betAmountKhr: bet3DKhr,
60374
+ comRate: com3D,
60375
+ comAmountKhr: com3DKhr,
60376
+ betAmountUsd: bet3DUsd,
60377
+ comAmountUsd: com3DUsd
60378
+ },
60379
+ {
60380
+ isVisible: !isMix,
60381
+ label: "4 \u179B\u17C1\u1781",
60382
+ betAmountKhr: bet4DKhr,
60383
+ comRate: com4D,
60384
+ comAmountKhr: com4DKhr,
60385
+ betAmountUsd: bet4DUsd,
60386
+ comAmountUsd: com4DUsd
60387
+ }
60388
+ ]),
60389
+ {
60390
+ isVisible: isMix,
60391
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
60392
+ khrValue: bet2DKhr + bet3DKhr + bet4DKhr,
60393
+ rate: `x ${com2D}/${com3D}/${com4D}`,
60394
+ khrResult: com2DKhr + com3DKhr + com4DKhr,
60395
+ usdValue: formatUsd(bet2DUsd + bet3DUsd + bet4DUsd),
60396
+ usdResult: formatUsd(com2DUsd + com3DUsd + com4DUsd),
60397
+ usdResultClassName: "blue-l-h",
60398
+ layout: getMixCommissionRowLayout$1({ isShowUsd })
60399
+ }
60400
+ ];
60401
+ const getRewardRows$1 = ({
60402
+ win2DKhr,
60403
+ win3DKhr,
60404
+ win4DKhr,
60405
+ win2DUsd,
60406
+ win3DUsd,
60407
+ win4DUsd,
60408
+ reward2DKhr,
60409
+ reward3DKhr,
60410
+ reward4DKhr,
60411
+ reward2DUsd,
60412
+ reward3DUsd,
60413
+ reward4DUsd,
60414
+ rebateRate2D,
60415
+ rebateRate3D,
60416
+ rebateRate4D
60417
+ }) => buildRewardRows([
60418
+ {
60419
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
60420
+ winAmountKhr: win2DKhr,
60421
+ rebateRateKhr: rebateRate2D,
60422
+ rewardAmountKhr: reward2DKhr,
60423
+ winAmountUsd: win2DUsd,
60424
+ rebateRateUsd: rebateRate2D,
60425
+ rewardAmountUsd: reward2DUsd
60426
+ },
60427
+ {
60428
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
60429
+ winAmountKhr: win3DKhr,
60430
+ rebateRateKhr: rebateRate3D,
60431
+ rewardAmountKhr: reward3DKhr,
60432
+ winAmountUsd: win3DUsd,
60433
+ rebateRateUsd: rebateRate3D,
60434
+ rewardAmountUsd: reward3DUsd
60435
+ },
60436
+ {
60437
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
60438
+ winAmountKhr: win4DKhr,
60439
+ rebateRateKhr: rebateRate4D,
60440
+ rewardAmountKhr: reward4DKhr,
60441
+ winAmountUsd: win4DUsd,
60442
+ rebateRateUsd: rebateRate4D,
60443
+ rewardAmountUsd: reward4DUsd
60444
+ }
60445
+ ]);
60446
+ const MainLeap = (props) => {
60447
+ const {
60448
+ t,
60449
+ item: {
60450
+ date,
60451
+ items,
60452
+ username,
60453
+ nickname,
60454
+ summary: {
60455
+ com2DUsd = 0,
60456
+ com3DUsd = 0,
60457
+ com4DUsd = 0,
60458
+ com2DKhr = 0,
60459
+ com3DKhr = 0,
60460
+ com4DKhr = 0,
60461
+ bet2DUsd = 0,
60462
+ bet3DUsd = 0,
60463
+ bet4DUsd = 0,
60464
+ bet2DKhr = 0,
60465
+ bet3DKhr = 0,
60466
+ bet4DKhr = 0,
60467
+ reward2DKhr = 0,
60468
+ reward2DUsd = 0,
60469
+ reward3DUsd = 0,
60470
+ reward3DKhr = 0,
60471
+ reward4DKhr = 0,
60472
+ reward4DUsd = 0,
60473
+ win2DKhr = 0,
60474
+ win2DUsd = 0,
60475
+ win3DKhr = 0,
60476
+ win4DKhr = 0,
60477
+ win3DUsd = 0,
60478
+ win4DUsd = 0,
60479
+ winLoseKhr = 0,
60480
+ winLoseUsd = 0
60481
+ },
60482
+ hasLottery: {
60483
+ rebateRate2D = 0,
60484
+ rebateRate3D = 0,
60485
+ rebateRate4D = 0,
60486
+ com2D = 0,
60487
+ com3D = 0,
60488
+ com4D = 0
60489
+ } = {},
60490
+ isShowUsd
60491
+ },
60492
+ id,
60493
+ isMix,
60494
+ type,
60495
+ mixDailyReport,
60496
+ filter: directFilter,
60497
+ preTitle
60498
+ } = props;
60499
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60500
+ const translate = getMixDailyTranslator(t);
60501
+ const className = getReportClassName(filter);
60502
+ const commissionRows = getCommissionRows$1({
60503
+ isMix,
60504
+ isShowUsd,
60505
+ bet2DKhr,
60506
+ bet3DKhr,
60507
+ bet4DKhr,
60508
+ bet2DUsd,
60509
+ bet3DUsd,
60510
+ bet4DUsd,
60511
+ com2D,
60512
+ com3D,
60513
+ com4D,
60514
+ com2DKhr,
60515
+ com3DKhr,
60516
+ com4DKhr,
60517
+ com2DUsd,
60518
+ com3DUsd,
60519
+ com4DUsd
60520
+ });
60521
+ const rewardRows = getRewardRows$1({
60522
+ win2DKhr,
60523
+ win3DKhr,
60524
+ win4DKhr,
60525
+ win2DUsd,
60526
+ win3DUsd,
60527
+ win4DUsd,
60528
+ reward2DKhr,
60529
+ reward3DKhr,
60530
+ reward4DKhr,
60531
+ reward2DUsd,
60532
+ reward3DUsd,
60533
+ reward4DUsd,
60534
+ rebateRate2D,
60535
+ rebateRate3D,
60536
+ rebateRate4D
60537
+ });
60538
+ const rewardRowLayout = getRewardRowLayout$1({ isMix, isShowUsd });
60539
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsxRuntime.jsx("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { className: "pb-5", children: [
60540
+ renderReportTitleRows({
60541
+ preTitle,
60542
+ lotteryType: type,
60543
+ nickname,
60544
+ username,
60545
+ date,
60546
+ titleColSpan: isShowUsd ? isMix ? 12 : 14 : isMix ? 7 : 8,
60547
+ usernameColSpan: isShowUsd ? 5 : isMix ? 2 : 3,
60548
+ dateColSpan: isShowUsd ? 3 : 2,
60549
+ dayColSpan: isShowUsd ? isMix ? 2 : 4 : 1,
60550
+ isSend: filter == null ? void 0 : filter.isSend
60551
+ }),
60552
+ renderSectionHeaderRow$1({ t: translate, lotteryType: type, isMix, isShowUsd }),
60553
+ renderColumnHeaderRow$1({ t: translate, isMix, isShowUsd }),
60554
+ items && items.map((object, i) => /* @__PURE__ */ React.createElement(
60555
+ MainTableRow$1,
60556
+ __spreadProps$4(__spreadValues$5({
60557
+ isShowUsd
60558
+ }, props), {
60559
+ key: i,
60560
+ index: i + 1,
60561
+ object
60562
+ })
60563
+ )),
60564
+ /* @__PURE__ */ jsxRuntime.jsx(
60565
+ MainTableRow$1,
60566
+ __spreadProps$4(__spreadValues$5({}, props), {
60567
+ isShowUsd,
60568
+ total: "\u179F\u179A\u17BB\u1794",
60569
+ object: __spreadValues$5({}, props.item.summary)
60570
+ })
60571
+ ),
60572
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(THF, { colSpan: 10 }) }),
60573
+ renderSummaryBandRow({
60574
+ isShowUsd,
60575
+ khrColSpan: isShowUsd ? isMix ? 6 : 7 : 8,
60576
+ usdColSpan: isMix ? 6 : 7
60577
+ }),
60578
+ renderCalculationRows({
60579
+ rows: commissionRows,
60580
+ id,
60581
+ isShowUsd,
60582
+ layout: getCommissionRowLayout$1({ isShowUsd }),
60583
+ resultClassName: "blue-l-h",
60584
+ usdResultClassName: "green-l-h"
60585
+ }),
60586
+ renderCalculationRows({
60587
+ rows: rewardRows,
60588
+ id,
60589
+ isShowUsd,
60590
+ layout: rewardRowLayout,
60591
+ valueClassName: "t-blue",
60592
+ resultClassName: "t-blue b-gray-l"
60593
+ }),
60594
+ renderWinLoseRow(__spreadValues$5({
60595
+ id,
60596
+ isShowUsd,
60597
+ winLoseKhr,
60598
+ winLoseUsd
60599
+ }, getWinLoseLayout$1({ isMix, isShowUsd })))
60600
+ ] }) }) });
60601
+ };
60602
+
60603
+ class MainTableRow extends React.Component {
60604
+ render() {
60605
+ const {
60606
+ object: {
60607
+ drawAt,
60608
+ bet2DUsd = 0,
60609
+ bet3DUsd = 0,
60610
+ bet2DKhr = 0,
60611
+ bet3DKhr = 0,
60612
+ win2DKhr = 0,
60613
+ win2DUsd = 0,
60614
+ win3DKhr = 0,
60615
+ win3DUsd = 0,
60616
+ win4DKhr = 0,
60617
+ win4DUsd = 0,
60618
+ bet4DKhr = 0,
60619
+ bet4DUsd = 0,
60620
+ win5DKhr = 0,
60621
+ win5DUsd = 0,
60622
+ bet5DKhr = 0,
60623
+ bet5DUsd = 0
60624
+ },
60625
+ id,
60626
+ total,
60627
+ isMix,
60628
+ isShowUsd,
60629
+ isShow4DUsd,
60630
+ isShow4DKhr,
60631
+ isShow5DUsd,
60632
+ isShow5DKhr
60633
+ } = this.props;
60634
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
60635
+ /* @__PURE__ */ jsxRuntime.jsx(
60636
+ TH,
60637
+ {
60638
+ colSpan: 2,
60639
+ className: `text-center t-blue-vio ${!total ? "t-left" : ""}`,
60640
+ children: total ? total : getTime(drawAt)
60641
+ }
60642
+ ),
60643
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet2DKhr, currency: "KHR" }),
60644
+ !isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet3DKhr, currency: "KHR" }),
60645
+ !isMix && isShow4DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet4DKhr, currency: "KHR" }),
60646
+ !isMix && isShow5DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { id, value: bet5DKhr, currency: "KHR" }),
60647
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet2DUsd, currency: "USD" }),
60648
+ !isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet3DUsd, currency: "USD" }),
60649
+ !isMix && isShowUsd && isShow4DUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet4DUsd, currency: "USD" }),
60650
+ !isMix && isShowUsd && isShow5DUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", id, value: bet5DUsd, currency: "USD" }),
60651
+ isMix && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { colSpan: 2, id, value: bet2DKhr + bet3DKhr + bet4DKhr + bet5DKhr, currency: "KHR" }),
60652
+ isMix && isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h", colSpan: 2, id, value: formatUsd(bet3DUsd + bet2DUsd + bet4DUsd + bet5DUsd), currency: "USD" }),
60653
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win2DKhr, currency: "KHR" }),
60654
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win3DKhr, currency: "KHR" }),
60655
+ isShow4DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win4DKhr, currency: "KHR" }),
60656
+ isShow5DKhr && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "t-blue", id, value: win5DKhr, currency: "KHR" }),
60657
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win2DUsd, currency: "USD" }),
60658
+ isShowUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win3DUsd, currency: "USD" }),
60659
+ isShowUsd && isShow4DUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win4DUsd, currency: "USD" }),
60660
+ isShowUsd && isShow5DUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidth, { className: "green-l-h t-blue", id, value: win5DUsd, currency: "USD" })
60661
+ ] });
60662
+ }
60663
+ }
60664
+
60665
+ var __defProp$4 = Object.defineProperty;
60666
+ var __defProps$3 = Object.defineProperties;
60667
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
60668
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
60669
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
60670
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
60671
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
60672
+ var __spreadValues$4 = (a, b) => {
60673
+ for (var prop in b || (b = {}))
60674
+ if (__hasOwnProp$4.call(b, prop))
60675
+ __defNormalProp$4(a, prop, b[prop]);
60676
+ if (__getOwnPropSymbols$4)
60677
+ for (var prop of __getOwnPropSymbols$4(b)) {
60678
+ if (__propIsEnum$4.call(b, prop))
60679
+ __defNormalProp$4(a, prop, b[prop]);
60680
+ }
60681
+ return a;
60682
+ };
60683
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
60684
+ const renderSectionHeaderRow = ({ t, lotteryType, isMix, isShowUsd, getKHRLength, getUSDLength }) => renderReportSectionHeaderRow({
60685
+ lotteryType,
60686
+ sections: [
60687
+ { key: "bet-khr", colSpan: isMix ? 2 : getKHRLength + 2, label: `${t("labels:mix_daily_report.bet")}(KHR)` },
60688
+ { key: "bet-usd", isVisible: isShowUsd, colSpan: isMix ? 2 : getUSDLength + 2, label: `${t("labels:mix_daily_report.bet")}(USD)` },
60689
+ { key: "reward-khr", colSpan: getKHRLength + 2, label: `${t("labels:mix_daily_report.reward")}(KHR)` },
60690
+ { key: "reward-usd", isVisible: isShowUsd, colSpan: getUSDLength + 2, label: `${t("labels:mix_daily_report.reward")}(USD)` }
60691
+ ]
60692
+ });
60693
+ const renderColumnHeaderRow = ({
60694
+ t,
60695
+ isMix,
60696
+ isShowUsd,
60697
+ isShow4DUsd,
60698
+ isShow4DKhr,
60699
+ isShow5DUsd,
60700
+ isShow5DKhr
60701
+ }) => renderReportColumnHeaderRow([
60702
+ { key: "shift", colSpan: 2, className: "text-center", label: t("labels:mix_daily_report.shift") },
60703
+ { key: "bet-2d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60704
+ { key: "bet-3d-khr", isVisible: !isMix, className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60705
+ { key: "bet-4d-khr", isVisible: !isMix && isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60706
+ { key: "bet-5d-khr", isVisible: !isMix && isShow5DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.five_d") },
60707
+ { key: "mix-khr", isVisible: isMix, colSpan: 2, className: "text-center blue-l-h", label: "\u179A\u17C0\u179B" },
60708
+ { key: "mix-usd", isVisible: isMix && isShowUsd, colSpan: 2, className: "text-center green-l-h", label: "\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A" },
60709
+ { key: "bet-2d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60710
+ { key: "bet-3d-usd", isVisible: !isMix && isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60711
+ { key: "bet-4d-usd", isVisible: !isMix && isShowUsd && isShow4DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60712
+ { key: "bet-5d-usd", isVisible: !isMix && isShowUsd && isShow5DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.five_d") },
60713
+ { key: "reward-2d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.two_d") },
60714
+ { key: "reward-3d-khr", className: "text-center blue-l-h", label: t("labels:mix_daily_report.three_d") },
60715
+ { key: "reward-4d-khr", isVisible: isShow4DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.four_d") },
60716
+ { key: "reward-5d-khr", isVisible: isShow5DKhr, className: "text-center blue-l-h", label: t("labels:mix_daily_report.five_d") },
60717
+ { key: "reward-2d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.two_d") },
60718
+ { key: "reward-3d-usd", isVisible: isShowUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.three_d") },
60719
+ { key: "reward-4d-usd", isVisible: isShowUsd && isShow4DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.four_d") },
60720
+ { key: "reward-5d-usd", isVisible: isShowUsd && isShow5DUsd, className: "text-center green-l-h", label: t("labels:mix_daily_report.five_d") }
60721
+ ]);
60722
+ const getCommissionRowLayout = ({ isShowUsd, getAllLength, getKHRLength }) => ({
60723
+ khrAfterResult: [{ colSpan: isShowUsd ? getAllLength + 2 : getKHRLength * 2 + 2 }],
60724
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60725
+ });
60726
+ const getMixCommissionRowLayout = ({ isShowUsd, getAllLength }) => ({
60727
+ khrAfterResult: [{ colSpan: isShowUsd ? 2 : 3 }],
60728
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60729
+ });
60730
+ const getRewardRowLayout = ({ isMix, isShowUsd, getAllLength, getKHRLength }) => ({
60731
+ khrAfterResult: [{
60732
+ colSpan: isMix ? isShowUsd ? 2 : getKHRLength + 3 : isShowUsd ? getAllLength + 2 : getKHRLength * 2 + 2
60733
+ }],
60734
+ usdAfterResult: getAllLength > 0 ? [{ colSpan: getAllLength }] : []
60735
+ });
60736
+ const getWinLoseLayout = ({ isMix, isShowUsd, getAllLength, getKHRLength }) => ({
60737
+ khrAfterValue: [{
60738
+ colSpan: isMix ? isShowUsd ? 4 : getKHRLength + 5 : isShowUsd ? getAllLength + 4 : getKHRLength * 2 + 4
60739
+ }],
60740
+ usdAfterValue: [{ colSpan: getAllLength + 2 }]
60741
+ });
60742
+ const getCommissionRows = ({
60743
+ isMix,
60744
+ isShow4DKhr,
60745
+ isShow4DUsd,
60746
+ isShow5DKhr,
60747
+ isShow5DUsd,
60748
+ isShowUsd,
60749
+ getAllLength,
60750
+ bet2DKhr,
60751
+ bet3DKhr,
60752
+ bet4DKhr,
60753
+ bet5DKhr,
60754
+ bet2DUsd,
60755
+ bet3DUsd,
60756
+ bet4DUsd,
60757
+ bet5DUsd,
60758
+ com2D,
60759
+ com3D,
60760
+ com4D,
60761
+ com5D,
60762
+ com2DKhr,
60763
+ com3DKhr,
60764
+ com4DKhr,
60765
+ com5DKhr,
60766
+ com2DUsd,
60767
+ com3DUsd,
60768
+ com4DUsd,
60769
+ com5DUsd
60770
+ }) => [
60771
+ ...buildCommissionRows([
60772
+ {
60773
+ isVisible: !isMix,
60774
+ label: "2 \u179B\u17C1\u1781",
60775
+ betAmountKhr: bet2DKhr,
60776
+ comRate: com2D,
60777
+ comAmountKhr: com2DKhr,
60778
+ betAmountUsd: bet2DUsd,
60779
+ comAmountUsd: com2DUsd,
60780
+ className: "animate-slide-u"
60781
+ },
60782
+ {
60783
+ isVisible: !isMix,
60784
+ label: "3 \u179B\u17C1\u1781",
60785
+ betAmountKhr: bet3DKhr,
60786
+ comRate: com3D,
60787
+ comAmountKhr: com3DKhr,
60788
+ betAmountUsd: bet3DUsd,
60789
+ comAmountUsd: com3DUsd
60790
+ },
60791
+ {
60792
+ isVisible: !isMix && (isShow4DKhr || isShow4DUsd),
60793
+ label: "4 \u179B\u17C1\u1781",
60794
+ betAmountKhr: bet4DKhr,
60795
+ comRate: com4D,
60796
+ comAmountKhr: com4DKhr,
60797
+ betAmountUsd: bet4DUsd,
60798
+ comAmountUsd: com4DUsd
60799
+ },
60800
+ {
60801
+ isVisible: !isMix && (isShow5DKhr || isShow5DUsd),
60802
+ label: "5 \u179B\u17C1\u1781",
60803
+ betAmountKhr: bet5DKhr,
60804
+ comRate: com5D,
60805
+ comAmountKhr: com5DKhr,
60806
+ betAmountUsd: bet5DUsd,
60807
+ comAmountUsd: com5DUsd
60808
+ }
60809
+ ]),
60810
+ {
60811
+ isVisible: isMix,
60812
+ label: "\u179B\u17BB\u1799\u179B\u1780\u17CB",
60813
+ khrValue: bet2DKhr + bet3DKhr + bet4DKhr + bet5DKhr,
60814
+ rate: `x ${com2D}/${com3D}${isShow4DKhr ? `/${com4D}` : ""}${isShow5DKhr ? `/${com5D}` : ""}`,
60815
+ khrResult: com2DKhr + com3DKhr + com4DKhr + com5DKhr,
60816
+ usdValue: formatUsd(bet2DUsd + bet3DUsd + bet4DUsd + bet5DUsd),
60817
+ usdRate: `x ${com2D}/${com3D}${isShow4DUsd ? `/${com4D}` : ""}${isShow5DUsd ? `/${com5D}` : ""}`,
60818
+ usdResult: formatUsd(com2DUsd + com3DUsd + com4DUsd + com5DUsd),
60819
+ usdResultClassName: "blue-l-h",
60820
+ layout: getMixCommissionRowLayout({ isShowUsd, getAllLength })
60821
+ }
60822
+ ];
60823
+ const getRewardRows = ({
60824
+ isShow4DKhr,
60825
+ isShow4DUsd,
60826
+ isShow5DKhr,
60827
+ isShow5DUsd,
60828
+ win2DKhr,
60829
+ win3DKhr,
60830
+ win4DKhr,
60831
+ win5DKhr,
60832
+ win2DUsd,
60833
+ win3DUsd,
60834
+ win4DUsd,
60835
+ win5DUsd,
60836
+ reward2DKhr,
60837
+ reward3DKhr,
60838
+ reward4DKhr,
60839
+ reward5DKhr,
60840
+ reward2DUsd,
60841
+ reward3DUsd,
60842
+ reward4DUsd,
60843
+ reward5DUsd,
60844
+ rebateRate2D,
60845
+ rebateRate3D,
60846
+ rebateRate4D,
60847
+ rebateRate5D
60848
+ }) => buildRewardRows([
60849
+ {
60850
+ label: "\u178F\u17D2\u179A\u17BC\u179C 2 \u179B\u17C1\u1781",
60851
+ winAmountKhr: win2DKhr,
60852
+ rebateRateKhr: rebateRate2D,
60853
+ rewardAmountKhr: reward2DKhr,
60854
+ winAmountUsd: win2DUsd,
60855
+ rebateRateUsd: rebateRate2D,
60856
+ rewardAmountUsd: reward2DUsd
60857
+ },
60858
+ {
60859
+ label: "\u178F\u17D2\u179A\u17BC\u179C 3 \u179B\u17C1\u1781",
60860
+ winAmountKhr: win3DKhr,
60861
+ rebateRateKhr: rebateRate3D,
60862
+ rewardAmountKhr: reward3DKhr,
60863
+ winAmountUsd: win3DUsd,
60864
+ rebateRateUsd: rebateRate3D,
60865
+ rewardAmountUsd: reward3DUsd
60866
+ },
60867
+ {
60868
+ isVisible: isShow4DKhr || isShow4DUsd,
60869
+ label: "\u178F\u17D2\u179A\u17BC\u179C 4 \u179B\u17C1\u1781",
60870
+ winAmountKhr: win4DKhr,
60871
+ rebateRateKhr: rebateRate4D,
60872
+ rewardAmountKhr: reward4DKhr,
60873
+ winAmountUsd: win4DUsd,
60874
+ rebateRateUsd: rebateRate4D,
60875
+ rewardAmountUsd: reward4DUsd
60876
+ },
60877
+ {
60878
+ isVisible: isShow5DKhr || isShow5DUsd,
60879
+ label: "\u178F\u17D2\u179A\u17BC\u179C 5 \u179B\u17C1\u1781",
60880
+ winAmountKhr: win5DKhr,
60881
+ rebateRateKhr: rebateRate5D,
60882
+ rewardAmountKhr: reward5DKhr,
60883
+ winAmountUsd: win5DUsd,
60884
+ rebateRateUsd: rebateRate5D,
60885
+ rewardAmountUsd: reward5DUsd
60886
+ }
60887
+ ]);
60888
+ const MainSC = (props) => {
60889
+ const {
60890
+ t,
60891
+ item: {
60892
+ date,
60893
+ items,
60894
+ username,
60895
+ nickname,
60896
+ summary: {
60897
+ com2DUsd = 0,
60898
+ com3DUsd = 0,
60899
+ com4DUsd = 0,
60900
+ com5DUsd = 0,
60901
+ com2DKhr = 0,
60902
+ com3DKhr = 0,
60903
+ com4DKhr = 0,
60904
+ com5DKhr = 0,
60905
+ bet2DUsd = 0,
60906
+ bet3DUsd = 0,
60907
+ bet4DUsd = 0,
60908
+ bet5DUsd = 0,
60909
+ bet2DKhr = 0,
60910
+ bet3DKhr = 0,
60911
+ bet4DKhr = 0,
60912
+ bet5DKhr = 0,
60913
+ reward2DKhr = 0,
60914
+ reward2DUsd = 0,
60915
+ reward3DUsd = 0,
60916
+ reward3DKhr = 0,
60917
+ reward4DKhr = 0,
60918
+ reward4DUsd = 0,
60919
+ reward5DKhr = 0,
60920
+ reward5DUsd = 0,
60921
+ win2DKhr = 0,
60922
+ win2DUsd = 0,
60923
+ win3DKhr = 0,
60924
+ win4DKhr = 0,
60925
+ win5DKhr = 0,
60926
+ win3DUsd = 0,
60927
+ win4DUsd = 0,
60928
+ win5DUsd = 0,
60929
+ winLoseKhr = 0,
60930
+ winLoseUsd = 0
60931
+ },
60932
+ hasLottery: {
60933
+ rebateRate2D = 0,
60934
+ rebateRate3D = 0,
60935
+ rebateRate4D = 0,
60936
+ rebateRate5D = 0,
60937
+ com2D = 0,
60938
+ com3D = 0,
60939
+ com4D = 0,
60940
+ com5D = 0
60941
+ } = {},
60942
+ isShowUsd,
60943
+ isShow4DUsd,
60944
+ isShow4DKhr,
60945
+ isShow5DUsd,
60946
+ isShow5DKhr
60947
+ },
60948
+ id,
60949
+ isMix,
60950
+ type,
60951
+ mixDailyReport,
60952
+ filter: directFilter,
60953
+ preTitle
60954
+ } = props;
60955
+ const filter = directFilter || (mixDailyReport == null ? void 0 : mixDailyReport.filter) || {};
60956
+ const translate = getMixDailyTranslator(t);
60957
+ const className = getReportClassName(filter);
60958
+ const getAllLength = getOptionalDigitLength(isShow4DUsd, isShow4DKhr, isShow5DKhr, isShow5DUsd);
60959
+ const getAllLength2 = getAllLength * 2;
60960
+ const getKHRLength = getOptionalDigitLength(isShow4DKhr, isShow5DKhr);
60961
+ const getUSDLength = getOptionalDigitLength(isShow4DUsd, isShow5DUsd);
60962
+ const commissionRows = getCommissionRows({
60963
+ isMix,
60964
+ isShow4DKhr,
60965
+ isShow4DUsd,
60966
+ isShow5DKhr,
60967
+ isShow5DUsd,
60968
+ isShowUsd,
60969
+ getAllLength,
60970
+ bet2DKhr,
60971
+ bet3DKhr,
60972
+ bet4DKhr,
60973
+ bet5DKhr,
60974
+ bet2DUsd,
60975
+ bet3DUsd,
60976
+ bet4DUsd,
60977
+ bet5DUsd,
60978
+ com2D,
60979
+ com3D,
60980
+ com4D,
60981
+ com5D,
60982
+ com2DKhr,
60983
+ com3DKhr,
60984
+ com4DKhr,
60985
+ com5DKhr,
60986
+ com2DUsd,
60987
+ com3DUsd,
60988
+ com4DUsd,
60989
+ com5DUsd
60990
+ });
60991
+ const rewardRows = getRewardRows({
60992
+ isShow4DKhr,
60993
+ isShow4DUsd,
60994
+ isShow5DKhr,
60995
+ isShow5DUsd,
60996
+ win2DKhr,
60997
+ win3DKhr,
60998
+ win4DKhr,
60999
+ win5DKhr,
61000
+ win2DUsd,
61001
+ win3DUsd,
61002
+ win4DUsd,
61003
+ win5DUsd,
61004
+ reward2DKhr,
61005
+ reward3DKhr,
61006
+ reward4DKhr,
61007
+ reward5DKhr,
61008
+ reward2DUsd,
61009
+ reward3DUsd,
61010
+ reward4DUsd,
61011
+ reward5DUsd,
61012
+ rebateRate2D,
61013
+ rebateRate3D,
61014
+ rebateRate4D,
61015
+ rebateRate5D
61016
+ });
61017
+ const commissionRowLayout = getCommissionRowLayout({ isShowUsd, getAllLength, getKHRLength });
61018
+ const rewardRowLayout = getRewardRowLayout({ isMix, isShowUsd, getAllLength, getKHRLength });
61019
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "wrap-tb", className: "mb-3 mr-3", children: /* @__PURE__ */ jsxRuntime.jsx("table", { id, className: `table table-hover table-striped ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { className: "pb-5", children: [
61020
+ renderReportTitleRows({
61021
+ preTitle,
61022
+ lotteryType: type,
61023
+ nickname,
61024
+ username,
61025
+ date,
61026
+ titleColSpan: isShowUsd ? isMix ? getAllLength + 10 : getAllLength2 + 10 : isMix ? getKHRLength + 6 : getKHRLength * 2 + 6,
61027
+ usernameColSpan: isShowUsd ? isMix ? 4 : getAllLength + 4 : isMix ? 2 : getKHRLength + 2,
61028
+ dateColSpan: isShowUsd ? getKHRLength + 2 : getKHRLength + 1,
61029
+ dayColSpan: isShowUsd ? getUSDLength + 2 : 1,
61030
+ isSend: filter == null ? void 0 : filter.isSend
61031
+ }),
61032
+ renderSectionHeaderRow({ t: translate, lotteryType: type, isMix, isShowUsd, getKHRLength, getUSDLength }),
61033
+ renderColumnHeaderRow({
61034
+ t: translate,
61035
+ isMix,
61036
+ isShowUsd,
61037
+ isShow4DUsd,
61038
+ isShow4DKhr,
61039
+ isShow5DUsd,
61040
+ isShow5DKhr
61041
+ }),
61042
+ items && items.map((object, i) => /* @__PURE__ */ React.createElement(
61043
+ MainTableRow,
61044
+ __spreadProps$3(__spreadValues$4({
61045
+ isShowUsd,
61046
+ isShow4DUsd,
61047
+ isShow4DKhr,
61048
+ isShow5DUsd,
61049
+ isShow5DKhr
61050
+ }, props), {
61051
+ key: i,
61052
+ index: i + 1,
61053
+ object
61054
+ })
61055
+ )),
61056
+ /* @__PURE__ */ jsxRuntime.jsx(
61057
+ MainTableRow,
61058
+ __spreadProps$3(__spreadValues$4({}, props), {
61059
+ isShowUsd,
61060
+ isShow4DUsd,
61061
+ isShow4DKhr,
61062
+ isShow5DUsd,
61063
+ isShow5DKhr,
61064
+ total: "\u179F\u179A\u17BB\u1794",
61065
+ object: __spreadValues$4({}, props.item.summary)
61066
+ })
61067
+ ),
61068
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(THF, { className: "none-event" }) }),
61069
+ renderSummaryBandRow({
61070
+ isShowUsd,
61071
+ khrColSpan: isShowUsd ? isMix ? 6 : getAllLength + 6 : getKHRLength * 2 + 8,
61072
+ usdColSpan: getAllLength + 4
61073
+ }),
61074
+ renderCalculationRows({
61075
+ rows: commissionRows,
61076
+ id,
61077
+ isShowUsd,
61078
+ layout: commissionRowLayout,
61079
+ resultClassName: "blue-l-h",
61080
+ usdResultClassName: "green-l-h"
61081
+ }),
61082
+ renderCalculationRows({
61083
+ rows: rewardRows,
61084
+ id,
61085
+ isShowUsd,
61086
+ layout: rewardRowLayout,
61087
+ valueClassName: "t-blue",
61088
+ resultClassName: "t-blue b-gray-l"
61089
+ }),
61090
+ renderWinLoseRow(__spreadValues$4({
61091
+ id,
61092
+ isShowUsd,
61093
+ winLoseKhr,
61094
+ winLoseUsd
61095
+ }, getWinLoseLayout({ isMix, isShowUsd, getAllLength, getKHRLength })))
61096
+ ] }) }) });
61097
+ };
61098
+
61099
+ var __defProp$3 = Object.defineProperty;
61100
+ var __defProps$2 = Object.defineProperties;
61101
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
61102
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
61103
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
61104
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
61105
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61106
+ var __spreadValues$3 = (a, b) => {
61107
+ for (var prop in b || (b = {}))
61108
+ if (__hasOwnProp$3.call(b, prop))
61109
+ __defNormalProp$3(a, prop, b[prop]);
61110
+ if (__getOwnPropSymbols$3)
61111
+ for (var prop of __getOwnPropSymbols$3(b)) {
61112
+ if (__propIsEnum$3.call(b, prop))
61113
+ __defNormalProp$3(a, prop, b[prop]);
61114
+ }
61115
+ return a;
61116
+ };
61117
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
61118
+ var __publicField = (obj, key, value) => __defNormalProp$3(obj, key + "" , value);
61119
+ class MainTable extends React.Component {
61120
+ constructor() {
61121
+ super(...arguments);
61122
+ __publicField(this, "renderLottery", (data) => {
61123
+ const type = data.lotteryType;
61124
+ const { isMix, filter } = this.props;
61125
+ const preTitle = (filter == null ? void 0 : filter.isSend) ? "\u179F\u17B6\u1784" : "";
61126
+ if (data) {
61127
+ switch (type) {
61128
+ case lType.LEAP:
61129
+ return /* @__PURE__ */ jsxRuntime.jsx(
61130
+ MainLeap,
61131
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61132
+ preTitle,
61133
+ lotteryType: type,
61134
+ type,
61135
+ isMix,
61136
+ item: data
61137
+ })
61138
+ );
61139
+ case lType.SC:
61140
+ return /* @__PURE__ */ jsxRuntime.jsx(
61141
+ MainSC,
61142
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61143
+ preTitle,
61144
+ lotteryType: type,
61145
+ type,
61146
+ isMix,
61147
+ item: data
61148
+ })
61149
+ );
61150
+ default:
61151
+ return /* @__PURE__ */ jsxRuntime.jsx(
61152
+ MainVn,
61153
+ __spreadProps$2(__spreadValues$3({}, this.props), {
61154
+ preTitle,
61155
+ lotteryType: type,
61156
+ type,
61157
+ isMix,
61158
+ item: data
61159
+ })
61160
+ );
61161
+ }
61162
+ }
61163
+ });
61164
+ }
61165
+ render() {
61166
+ const { data } = this.props;
61167
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { children: data && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white d-inline-flex ml-3 mt-3", children: this.renderLottery(data) }) });
61168
+ }
61169
+ }
61170
+
61171
+ const IMAGE_EXPORT_IGNORE_CLASS = "image-export-ignore";
61172
+ const getCanvasScale = () => {
61173
+ const deviceScale = typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1;
61174
+ return Math.max(deviceScale, 3);
61175
+ };
61176
+ const waitForFontsAndImages = async (root) => {
61177
+ var _a, _b;
61178
+ const fontsReady = (_b = (_a = document.fonts) == null ? void 0 : _a.ready) != null ? _b : Promise.resolve();
61179
+ const imgs = Array.from(root.querySelectorAll("img"));
61180
+ const imgReady = imgs.map((img) => {
61181
+ if (img.crossOrigin == null) img.crossOrigin = "anonymous";
61182
+ if (img.complete) return Promise.resolve();
61183
+ return new Promise((resolve) => {
61184
+ img.addEventListener("load", resolve, { once: true });
61185
+ img.addEventListener("error", resolve, { once: true });
61186
+ });
61187
+ });
61188
+ await Promise.all([fontsReady, ...imgReady]);
61189
+ await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
61190
+ };
61191
+ const setIgnoredVisibility = (root, visibility) => {
61192
+ const previousStyles = Array.from(root.querySelectorAll(`.${IMAGE_EXPORT_IGNORE_CLASS}`)).map((node) => ({
61193
+ node,
61194
+ visibility: node.style.visibility
61195
+ }));
61196
+ previousStyles.forEach(({ node }) => {
61197
+ node.style.visibility = visibility;
61198
+ });
61199
+ return () => {
61200
+ previousStyles.forEach(({ node, visibility: previousVisibility }) => {
61201
+ node.style.visibility = previousVisibility;
61202
+ });
61203
+ };
61204
+ };
61205
+ const canvasToBlob = (canvas) => new Promise((resolve) => {
61206
+ if (canvas.toBlob) {
61207
+ canvas.toBlob(resolve, "image/png", 1);
61208
+ return;
61209
+ }
61210
+ fetch(canvas.toDataURL("image/png", 1)).then((response) => response.blob()).then(resolve);
61211
+ });
61212
+ const renderElementToBlob = async (element) => {
61213
+ if (!element) throw new Error("Element not found");
61214
+ const restoreIgnoredVisibility = setIgnoredVisibility(element, "hidden");
61215
+ try {
61216
+ await waitForFontsAndImages(element);
61217
+ const canvas = await html2canvas(element, {
61218
+ scale: getCanvasScale(),
61219
+ useCORS: true,
61220
+ backgroundColor: "#ffffff",
61221
+ logging: false,
61222
+ removeContainer: true,
61223
+ width: element.scrollWidth,
61224
+ height: element.scrollHeight,
61225
+ windowWidth: element.scrollWidth,
61226
+ windowHeight: element.scrollHeight
61227
+ });
61228
+ return canvasToBlob(canvas);
61229
+ } finally {
61230
+ restoreIgnoredVisibility();
61231
+ }
61232
+ };
61233
+ const saveElementAsImage = async (element, fileName = "report.png") => {
61234
+ const blob = await renderElementToBlob(element);
61235
+ if (!blob) throw new Error("Image export unavailable");
61236
+ const url = URL.createObjectURL(blob);
61237
+ const link = document.createElement("a");
61238
+ link.href = url;
61239
+ link.download = fileName;
61240
+ link.click();
61241
+ setTimeout(() => URL.revokeObjectURL(url), 1500);
61242
+ };
61243
+ const copyElementImageToClipboard = async (element) => {
61244
+ var _a;
61245
+ if (!((_a = navigator.clipboard) == null ? void 0 : _a.write) || typeof ClipboardItem === "undefined") {
61246
+ throw new Error("Clipboard image copy is not supported");
61247
+ }
61248
+ const blob = await renderElementToBlob(element);
61249
+ if (!blob) throw new Error("Clipboard image unavailable");
61250
+ await navigator.clipboard.write([
61251
+ new ClipboardItem({ "image/png": blob })
61252
+ ]);
61253
+ };
61254
+
61255
+ const getSummaryImageFileName = (prefix, filter) => {
61256
+ var _a;
61257
+ const user = ((_a = filter == null ? void 0 : filter.user) == null ? void 0 : _a.label) || "all";
61258
+ const date = getDate(filter == null ? void 0 : filter.filterByDate) || "date";
61259
+ return `${prefix}-${user}-${date}`.replace(/[^\w.-]+/g, "-") + ".png";
61260
+ };
61261
+ const notifySuccess = (text) => {
61262
+ PNotify_1.removeAll();
61263
+ PNotify_1.success({ text });
61264
+ };
61265
+ const notifyError = (text) => {
61266
+ PNotify_1.removeAll();
61267
+ PNotify_1.error({ text });
61268
+ };
61269
+ const SummaryImageActions = ({ children, fileName }) => {
61270
+ const exportRef = React.useRef(null);
61271
+ const [isLoading, setIsLoading] = React.useState(false);
61272
+ const handleSaveImage = async () => {
61273
+ setIsLoading(true);
61274
+ try {
61275
+ await saveElementAsImage(exportRef.current, fileName);
61276
+ notifySuccess("Saved image");
61277
+ } catch (error) {
61278
+ notifyError(error.message || "Cannot save image");
61279
+ } finally {
61280
+ setIsLoading(false);
61281
+ }
61282
+ };
61283
+ const handleCopyImage = async () => {
61284
+ setIsLoading(true);
61285
+ try {
61286
+ await copyElementImageToClipboard(exportRef.current);
61287
+ notifySuccess("Copied image");
61288
+ } catch (error) {
61289
+ notifyError(error.message || "Cannot copy image");
61290
+ } finally {
61291
+ setIsLoading(false);
61292
+ }
61293
+ };
61294
+ const actions = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${IMAGE_EXPORT_IGNORE_CLASS} d-flex`, style: {
61295
+ position: "absolute",
61296
+ right: 8,
61297
+ top: "50%",
61298
+ transform: "translateY(-50%)"
61299
+ }, children: [
61300
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", title: "Save Image", className: "btn btn-sm btn-primary mr-1", disabled: isLoading, onClick: handleSaveImage, children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "feather icon-download mr-0" }) }),
61301
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", title: "Copy Image", className: "btn btn-sm btn-info", disabled: isLoading, onClick: handleCopyImage, children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "feather icon-copy mr-0" }) })
61302
+ ] });
61303
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 d-inline-block", ref: exportRef, children: typeof children === "function" ? children(actions) : /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
61304
+ children,
61305
+ actions
61306
+ ] }) });
61307
+ };
61308
+
61309
+ const SummaryRow = ({ id, label, khr, usd, showUsd, className = "", labelClassName = "text-center" }) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
61310
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 4, className: labelClassName, children: label }),
61311
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthB, { colSpan: showUsd ? 3 : 6, className: `${className} t-right`, id, value: khr, currency: "KHR" }),
61312
+ showUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthB, { colSpan: 3, className: `${className} t-right`, id, value: usd, currency: "USD" })
61313
+ ] });
61314
+ const getSummaryUser = ({ data, filter }) => {
61315
+ var _a, _b, _c;
61316
+ const firstItem = ((_a = data == null ? void 0 : data.items) == null ? void 0 : _a[0]) || {};
61317
+ return {
61318
+ label: ((_b = filter == null ? void 0 : filter.user) == null ? void 0 : _b.label) || firstItem.nickname || "N/A",
61319
+ nickname: ((_c = filter == null ? void 0 : filter.user) == null ? void 0 : _c.nickname) || getMemberName(firstItem.username),
61320
+ date: (filter == null ? void 0 : filter.filterByDate) || firstItem.date
61321
+ };
61322
+ };
61323
+ const WinLoseSummary = ({ data, id, filter, showUsd }) => {
61324
+ const {
61325
+ summary: {
61326
+ winLoseKhr = 0,
61327
+ winLoseUsd = 0,
61328
+ shareAmountKhr = 0,
61329
+ shareAmountUsd = 0,
61330
+ oldUsd = 0,
61331
+ oldKhr = 0,
61332
+ giveUsd = 0,
61333
+ giveKhr = 0,
61334
+ borrowUsd = 0,
61335
+ borrowKhr = 0,
61336
+ totalUsd = 0,
61337
+ totalKhr = 0,
61338
+ protestKhr = 0,
61339
+ protestUsd = 0
61340
+ } = {},
61341
+ winLoses = []
61342
+ } = data || {};
61343
+ const user = getSummaryUser({ data, filter });
61344
+ const totalStyle = { borderBottom: "2px solid black", borderTop: "2px solid black" };
61345
+ const summaryValueKhr = (filter == null ? void 0 : filter.isSend) ? winLoseKhr : shareAmountKhr;
61346
+ const summaryValueUsd = (filter == null ? void 0 : filter.isSend) ? winLoseUsd : shareAmountUsd;
61347
+ return /* @__PURE__ */ jsxRuntime.jsx(SummaryImageActions, { fileName: getSummaryImageFileName("win-lose-summary", filter), children: (actions) => /* @__PURE__ */ jsxRuntime.jsx(
61348
+ "table",
61349
+ {
61350
+ id: id ? `${id}-win-lose-summary` : void 0,
61351
+ className: "table table-hover table-bordered table-collapse mb-0",
61352
+ style: { width: "auto", minWidth: 720 },
61353
+ children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { className: "pb-5", children: [
61354
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { className: "animate-slide-up", children: /* @__PURE__ */ jsxRuntime.jsxs(THB, { className: (filter == null ? void 0 : filter.isSend) ? "red-d-h" : "blue-ld-h f-15", colSpan: 10, style: { position: "relative" }, children: [
61355
+ "\u179F\u17BB\u17B8\u1781\u17B6\u178F\u1794\u17D2\u179A\u1785\u17B6\u17C6\u1790\u17D2\u1784\u17C3",
61356
+ actions
61357
+ ] }) }),
61358
+ /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
61359
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 4, children: user.label }),
61360
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 3, children: user.nickname }),
61361
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 3, children: getDate(user.date) })
61362
+ ] }),
61363
+ /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
61364
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { className: "blue-l-h", colSpan: 4, children: "\u1794\u17D2\u179A\u1797\u17C1\u1791\u1786\u17D2\u1793\u17C4\u178F" }),
61365
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { className: "blue-l-h", colSpan: showUsd ? 3 : 6, children: "(\u179A\u17C0\u179B)" }),
61366
+ showUsd && /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 3, className: "green-l-h text-left", children: "(\u178A\u17BB\u179B\u17D2\u179B\u17B6\u179A)" })
61367
+ ] }),
61368
+ winLoses.map(({ winLoseKhr: winLoseKhr2, winLoseUsd: winLoseUsd2, lotteryType }, index) => {
61369
+ const lotteryName = lotteryLabelKH[lotteryType] || lotteryType;
61370
+ const lotteryCode = lotteryLabel[lotteryType] || lotteryType;
61371
+ return /* @__PURE__ */ jsxRuntime.jsx(
61372
+ SummaryRow,
61373
+ {
61374
+ id,
61375
+ label: `\u1786\u17D2\u1793\u17C4\u178F${lotteryName} (${lotteryCode})`,
61376
+ khr: winLoseKhr2,
61377
+ usd: winLoseUsd2,
61378
+ showUsd,
61379
+ labelClassName: "t-left"
61380
+ },
61381
+ `${lotteryType}-${index}`
61382
+ );
61383
+ }),
61384
+ /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up b-vio-b2", children: [
61385
+ /* @__PURE__ */ jsxRuntime.jsx(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" }),
61386
+ /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthB, { className: "t-right f-bold blue-l-h", colSpan: showUsd ? 3 : 6, id, value: summaryValueKhr, currency: "KHR" }),
61387
+ showUsd && /* @__PURE__ */ jsxRuntime.jsx(RenderThWidthB, { colSpan: 3, className: "t-right f-bold green-l-h", id, value: summaryValueUsd, currency: "USD" })
61388
+ ] }),
61389
+ /* @__PURE__ */ jsxRuntime.jsx(SummaryRow, { id, label: "\u1794\u1789\u17D2\u1787\u17B8\u1785\u17B6\u179F\u17CB", khr: oldKhr, usd: oldUsd, showUsd }),
61390
+ /* @__PURE__ */ jsxRuntime.jsx(SummaryRow, { id, label: "\u179B\u17BB\u1799\u179F\u1784", khr: giveKhr, usd: giveUsd, showUsd }),
61391
+ /* @__PURE__ */ jsxRuntime.jsx(SummaryRow, { id, label: "\u179B\u17BB\u1799\u1781\u17D2\u1785\u17B8", khr: borrowKhr, usd: borrowUsd, showUsd }),
61392
+ /* @__PURE__ */ jsxRuntime.jsx(SummaryRow, { id, label: "\u179B\u17BB\u1799\u178F\u179C\u17C9\u17B6", khr: protestKhr, usd: protestUsd, showUsd }),
61393
+ /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "animate-slide-up", children: [
61394
+ /* @__PURE__ */ jsxRuntime.jsx(THB, { colSpan: 4, style: totalStyle, className: "t-center blue-l-h", children: "\u179F\u179A\u17BB\u1794\u1791\u17B6\u17C6\u1784\u17A2\u179F\u17CB" }),
61395
+ /* @__PURE__ */ jsxRuntime.jsx(
61396
+ RenderThWidthB,
61397
+ {
61398
+ colSpan: showUsd ? 3 : 6,
61399
+ style: totalStyle,
61400
+ className: "blue-l-h t-right",
61401
+ id,
61402
+ value: totalKhr,
61403
+ currency: "KHR"
61404
+ }
61405
+ ),
61406
+ showUsd && /* @__PURE__ */ jsxRuntime.jsx(
61407
+ RenderThWidthB,
61408
+ {
61409
+ colSpan: 3,
61410
+ style: totalStyle,
61411
+ className: "green-l-h t-right",
61412
+ id,
61413
+ value: totalUsd,
61414
+ currency: "USD"
61415
+ }
61416
+ )
61417
+ ] })
61418
+ ] })
61419
+ }
61420
+ ) });
61421
+ };
61422
+
61423
+ var __defProp$2 = Object.defineProperty;
61424
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
61425
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
61426
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
61427
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61428
+ var __spreadValues$2 = (a, b) => {
61429
+ for (var prop in b || (b = {}))
61430
+ if (__hasOwnProp$2.call(b, prop))
61431
+ __defNormalProp$2(a, prop, b[prop]);
61432
+ if (__getOwnPropSymbols$2)
61433
+ for (var prop of __getOwnPropSymbols$2(b)) {
61434
+ if (__propIsEnum$2.call(b, prop))
61435
+ __defNormalProp$2(a, prop, b[prop]);
61436
+ }
61437
+ return a;
61438
+ };
61439
+ class Summary extends React.Component {
61440
+ render() {
61441
+ var _a;
61442
+ const {
61443
+ data,
61444
+ filter
61445
+ } = this.props;
61446
+ const showUsd = (data == null ? void 0 : data.isShowUsd) || ((_a = data == null ? void 0 : data.summary) == null ? void 0 : _a.isShowUsd);
61447
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "mix-daily-report", className: "d-inline-block mb-3 mr-3 pb-5 pl-3", children: /* @__PURE__ */ jsxRuntime.jsx(WinLoseSummary, __spreadValues$2({ data, filter, showUsd }, this.props)) });
61448
+ }
61449
+ }
61450
+
61451
+ var __defProp$1 = Object.defineProperty;
61452
+ var __defProps$1 = Object.defineProperties;
61453
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
61454
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
61455
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
61456
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
61457
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61458
+ var __spreadValues$1 = (a, b) => {
61459
+ for (var prop in b || (b = {}))
61460
+ if (__hasOwnProp$1.call(b, prop))
61461
+ __defNormalProp$1(a, prop, b[prop]);
61462
+ if (__getOwnPropSymbols$1)
61463
+ for (var prop of __getOwnPropSymbols$1(b)) {
61464
+ if (__propIsEnum$1.call(b, prop))
61465
+ __defNormalProp$1(a, prop, b[prop]);
61466
+ }
61467
+ return a;
61468
+ };
61469
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
61470
+ class MainTableWrap extends React.Component {
61471
+ render() {
61472
+ var _a;
61473
+ const { data, isMix } = this.props;
61474
+ return /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
61475
+ (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((obj, i) => /* @__PURE__ */ React.createElement(MainTable, __spreadProps$1(__spreadValues$1({}, this.props), { key: i, data: obj, isMix }))),
61476
+ data && /* @__PURE__ */ jsxRuntime.jsx(Summary, __spreadValues$1({ data }, this.props))
61477
+ ] });
61478
+ }
61479
+ }
61480
+
61481
+ var __defProp = Object.defineProperty;
61482
+ var __defProps = Object.defineProperties;
61483
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
61484
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
61485
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
61486
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
61487
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61488
+ var __spreadValues = (a, b) => {
61489
+ for (var prop in b || (b = {}))
61490
+ if (__hasOwnProp.call(b, prop))
61491
+ __defNormalProp(a, prop, b[prop]);
61492
+ if (__getOwnPropSymbols)
61493
+ for (var prop of __getOwnPropSymbols(b)) {
61494
+ if (__propIsEnum.call(b, prop))
61495
+ __defNormalProp(a, prop, b[prop]);
61496
+ }
61497
+ return a;
61498
+ };
61499
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
61500
+ class MainTableWrapExcel extends React.Component {
61501
+ render() {
61502
+ var _a;
61503
+ const { data, id } = this.props;
61504
+ return /* @__PURE__ */ jsxRuntime.jsx("table", { id, children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { children: [
61505
+ (_a = data == null ? void 0 : data.items) == null ? void 0 : _a.map((obj, i) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
61506
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(MainTable, __spreadProps(__spreadValues({}, this.props), { data: obj })) }) }),
61507
+ /* @__PURE__ */ jsxRuntime.jsx("tr", {}),
61508
+ /* @__PURE__ */ jsxRuntime.jsx("tr", {})
61509
+ ] }, i)),
61510
+ /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { children: data && /* @__PURE__ */ jsxRuntime.jsx(Summary, __spreadValues({ data }, this.props)) }) })
61511
+ ] }) });
61512
+ }
61513
+ }
61514
+
59424
61515
  exports.DeleteModal = DeleteModal;
59425
61516
  exports.DeleteTicketButton = DeleteTicketButton;
59426
61517
  exports.DropdownMenu = MoreMenu;
59427
61518
  exports.KPLO = KPLO;
59428
61519
  exports.KPPostCode = KPPostCode;
61520
+ exports.MixDailyReport = MainTableWrap;
61521
+ exports.MixDailyReportExcel = MainTableWrapExcel;
59429
61522
  exports.Printer = Printer;
59430
61523
  exports.ProtestButton = ProtestButton;
59431
61524
  exports.ProtestModal = ProtestModal;
@@ -59442,14 +61535,19 @@ exports.TicketModal = TicketModal;
59442
61535
  exports.TransferModal = TransferModal;
59443
61536
  exports.TransferTicket = TransferTicket;
59444
61537
  exports.clickRemarkBtn = clickRemarkBtn;
61538
+ exports.formatUsd = formatUsd;
61539
+ exports.getMemberName = getMemberName;
59445
61540
  exports.getS3ImgPrint = getS3ImgPrint;
59446
61541
  exports.getStoredIsRemark = getStoredIsRemark;
59447
61542
  exports.isVNType = isVNType;
59448
61543
  exports.lType = lType;
59449
61544
  exports.lotteryLabel = lotteryLabel;
61545
+ exports.lotteryLabelKH = lotteryLabelKH;
59450
61546
  exports.lotteryLabelOnline = lotteryLabelOnline;
59451
61547
  exports.lotteryLabelVN = lotteryLabelVN;
61548
+ exports.lotteryReportLabel = lotteryReportLabel;
59452
61549
  exports.mapBetTitle = mapBetTitle;
59453
61550
  exports.mapLabels = mapLabels;
59454
61551
  exports.mapStrPost = mapStrPost;
61552
+ exports.widthLength = widthLength;
59455
61553
  //# sourceMappingURL=index.cjs.js.map