@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.cjs.js
CHANGED
|
@@ -46242,7 +46242,7 @@ const SaryPrinter = ({ children }) => {
|
|
|
46242
46242
|
|
|
46243
46243
|
function SaryLeap({ object, isSc }) {
|
|
46244
46244
|
var _a;
|
|
46245
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46245
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46246
46246
|
/* @__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: [
|
|
46247
46247
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46248
46248
|
/* @__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 }) }) })
|
|
@@ -46264,7 +46264,7 @@ function SaryLeap({ object, isSc }) {
|
|
|
46264
46264
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: isSc ? twoD : (_e = e.number) == null ? void 0 : _e.slice(-2) })
|
|
46265
46265
|
] }, i);
|
|
46266
46266
|
})
|
|
46267
|
-
] }) })
|
|
46267
|
+
] }) });
|
|
46268
46268
|
}
|
|
46269
46269
|
|
|
46270
46270
|
const baseCellStyle = {
|
|
@@ -46462,9 +46462,7 @@ const ResultDayForm$1 = ({ object }) => {
|
|
|
46462
46462
|
};
|
|
46463
46463
|
|
|
46464
46464
|
const SaryKP = ({ object }) => {
|
|
46465
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46466
|
-
width: "19%"
|
|
46467
|
-
}, children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm$1, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm$1, { object }) });
|
|
46465
|
+
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 }) });
|
|
46468
46466
|
};
|
|
46469
46467
|
|
|
46470
46468
|
const PrintResultTH = ({ list, object }) => {
|
|
@@ -46503,7 +46501,7 @@ const PrintResultTH = ({ list, object }) => {
|
|
|
46503
46501
|
const SaryTH = ({ object }) => {
|
|
46504
46502
|
var _a, _b;
|
|
46505
46503
|
const list = (_b = (_a = object.results) == null ? void 0 : _a.filter((e) => ["A", "B"].includes(e.postCode)).reverse()) != null ? _b : [];
|
|
46506
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46504
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46507
46505
|
/* @__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: [
|
|
46508
46506
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46509
46507
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrintResultTH, { object, list }) }) })
|
|
@@ -46514,7 +46512,7 @@ const SaryTH = ({ object }) => {
|
|
|
46514
46512
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: e.thNumber })
|
|
46515
46513
|
] }, i);
|
|
46516
46514
|
})
|
|
46517
|
-
] }) })
|
|
46515
|
+
] }) });
|
|
46518
46516
|
};
|
|
46519
46517
|
|
|
46520
46518
|
const PrintResultNight = ({ object }) => {
|
|
@@ -46716,9 +46714,7 @@ const ResultDayForm = ({ object }) => {
|
|
|
46716
46714
|
};
|
|
46717
46715
|
|
|
46718
46716
|
const SaryVN = ({ object }) => {
|
|
46719
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46720
|
-
width: "19%"
|
|
46721
|
-
}, children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm, { object }) });
|
|
46717
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (object == null ? void 0 : object.isNight) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResultNightForm, { object }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDayForm, { object }) });
|
|
46722
46718
|
};
|
|
46723
46719
|
|
|
46724
46720
|
const PrintResultKH = ({ object }) => {
|
|
@@ -46758,9 +46754,7 @@ const PrintResultKH = ({ object }) => {
|
|
|
46758
46754
|
|
|
46759
46755
|
const SaryKH = ({ object }) => {
|
|
46760
46756
|
var _a;
|
|
46761
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46762
|
-
width: "19%"
|
|
46763
|
-
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46757
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { cellPadding: "5", className: "tb-result mb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
46764
46758
|
/* @__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: [
|
|
46765
46759
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46766
46760
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrintResultKH, { object }) }) })
|
|
@@ -46772,10 +46766,18 @@ const SaryKH = ({ object }) => {
|
|
|
46772
46766
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: e.threeDigits })
|
|
46773
46767
|
] }, i);
|
|
46774
46768
|
})
|
|
46775
|
-
] }) })
|
|
46769
|
+
] }) });
|
|
46776
46770
|
};
|
|
46777
46771
|
|
|
46778
|
-
const
|
|
46772
|
+
const SaryWrapper = ({ children }) => {
|
|
46773
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { style: {
|
|
46774
|
+
width: "19%",
|
|
46775
|
+
marginRight: "10px",
|
|
46776
|
+
marginBottom: "10px"
|
|
46777
|
+
}, children });
|
|
46778
|
+
};
|
|
46779
|
+
|
|
46780
|
+
const RenderSary = ({ object, type }) => {
|
|
46779
46781
|
switch (type) {
|
|
46780
46782
|
case lType.LEAP:
|
|
46781
46783
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryLeap, { object });
|
|
@@ -46793,6 +46795,9 @@ const SaryLottery = ({ object, type }) => {
|
|
|
46793
46795
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryVN, { object });
|
|
46794
46796
|
}
|
|
46795
46797
|
};
|
|
46798
|
+
const SaryLottery = ({ object, type }) => {
|
|
46799
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SaryWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderSary, { type, object }) });
|
|
46800
|
+
};
|
|
46796
46801
|
|
|
46797
46802
|
const SaryLeapPrintAll = ({ children, list, isSc }) => {
|
|
46798
46803
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(BasePrinter, { component: /* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: list && list.map((e, i) => {
|