@jingx/lottery-components-react-jsx 1.0.5 → 1.0.6
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 +20 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -46222,7 +46222,7 @@ const SaryPrinter = ({ children }) => {
|
|
|
46222
46222
|
|
|
46223
46223
|
function SaryLeap({ object, isSc }) {
|
|
46224
46224
|
var _a;
|
|
46225
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46225
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46226
46226
|
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "text-danger bg-light-red", colSpan: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-100 row", children: [
|
|
46227
46227
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46228
46228
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "35%" }, className: "d-flex justify-content-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrintLeap, { object, isSc }) }) })
|
|
@@ -46244,7 +46244,7 @@ function SaryLeap({ object, isSc }) {
|
|
|
46244
46244
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: isSc ? twoD : (_e = e.number) == null ? void 0 : _e.slice(-2) })
|
|
46245
46245
|
] }, i);
|
|
46246
46246
|
})
|
|
46247
|
-
] }) })
|
|
46247
|
+
] }) });
|
|
46248
46248
|
}
|
|
46249
46249
|
|
|
46250
46250
|
const baseCellStyle = {
|
|
@@ -46442,9 +46442,7 @@ const ResultDayForm$1 = ({ object }) => {
|
|
|
46442
46442
|
};
|
|
46443
46443
|
|
|
46444
46444
|
const SaryKP = ({ object }) => {
|
|
46445
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46446
|
-
width: "19%"
|
|
46447
|
-
}, children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm$1, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm$1, { object }) });
|
|
46445
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm$1, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm$1, { object }) });
|
|
46448
46446
|
};
|
|
46449
46447
|
|
|
46450
46448
|
const PrintResultTH = ({ list, object }) => {
|
|
@@ -46483,7 +46481,7 @@ const PrintResultTH = ({ list, object }) => {
|
|
|
46483
46481
|
const SaryTH = ({ object }) => {
|
|
46484
46482
|
var _a, _b;
|
|
46485
46483
|
const list = (_b = (_a = object.results) == null ? void 0 : _a.filter((e) => ["A", "B"].includes(e.postCode)).reverse()) != null ? _b : [];
|
|
46486
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46484
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46487
46485
|
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "text-danger bg-light-red", colSpan: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-100 row", children: [
|
|
46488
46486
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46489
46487
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrintResultTH, { object, list }) }) })
|
|
@@ -46494,7 +46492,7 @@ const SaryTH = ({ object }) => {
|
|
|
46494
46492
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: e.thNumber })
|
|
46495
46493
|
] }, i);
|
|
46496
46494
|
})
|
|
46497
|
-
] }) })
|
|
46495
|
+
] }) });
|
|
46498
46496
|
};
|
|
46499
46497
|
|
|
46500
46498
|
const PrintResultNight = ({ object }) => {
|
|
@@ -46696,9 +46694,7 @@ const ResultDayForm = ({ object }) => {
|
|
|
46696
46694
|
};
|
|
46697
46695
|
|
|
46698
46696
|
const SaryVN = ({ object }) => {
|
|
46699
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46700
|
-
width: "19%"
|
|
46701
|
-
}, children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm, { object }) });
|
|
46697
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm, { object }) });
|
|
46702
46698
|
};
|
|
46703
46699
|
|
|
46704
46700
|
const PrintResultKH = ({ object }) => {
|
|
@@ -46738,9 +46734,7 @@ const PrintResultKH = ({ object }) => {
|
|
|
46738
46734
|
|
|
46739
46735
|
const SaryKH = ({ object }) => {
|
|
46740
46736
|
var _a;
|
|
46741
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46742
|
-
width: "19%"
|
|
46743
|
-
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46737
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46744
46738
|
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "text-danger bg-light-red", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-100 row", children: [
|
|
46745
46739
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46746
46740
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrintResultKH, { object }) }) })
|
|
@@ -46752,10 +46746,18 @@ const SaryKH = ({ object }) => {
|
|
|
46752
46746
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: e.threeDigits })
|
|
46753
46747
|
] }, i);
|
|
46754
46748
|
})
|
|
46755
|
-
] }) })
|
|
46749
|
+
] }) });
|
|
46756
46750
|
};
|
|
46757
46751
|
|
|
46758
|
-
const
|
|
46752
|
+
const SaryWrapper = ({ children }) => {
|
|
46753
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { style: {
|
|
46754
|
+
width: "19%",
|
|
46755
|
+
marginRight: "10px",
|
|
46756
|
+
marginBottom: "10px"
|
|
46757
|
+
}, children });
|
|
46758
|
+
};
|
|
46759
|
+
|
|
46760
|
+
const RenderSary = ({ object, type }) => {
|
|
46759
46761
|
switch (type) {
|
|
46760
46762
|
case lType.LEAP:
|
|
46761
46763
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryLeap, { object });
|
|
@@ -46773,6 +46775,9 @@ const SaryLottery = ({ object, type }) => {
|
|
|
46773
46775
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryVN, { object });
|
|
46774
46776
|
}
|
|
46775
46777
|
};
|
|
46778
|
+
const SaryLottery = ({ object, type }) => {
|
|
46779
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderSary, { type, object }) });
|
|
46780
|
+
};
|
|
46776
46781
|
|
|
46777
46782
|
const SaryLeapPrintAll = ({ children, list, isSc }) => {
|
|
46778
46783
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(BasePrinter, { component: /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: list && list.map((e, i) => {
|