@jingx/lottery-components-react-jsx 1.0.19 → 1.0.21
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 +14 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -31930,6 +31930,16 @@ const THLabel = {
|
|
|
31930
31930
|
B: "2D"
|
|
31931
31931
|
};
|
|
31932
31932
|
const isVNType = (lotteryType) => [lType.MC, lType.TN, lType.KH].includes(lotteryType);
|
|
31933
|
+
const s3hostPrint = "https://vnonemedia.s3.ap-southeast-1.amazonaws.com/print-logo/";
|
|
31934
|
+
const getDomain = (platform) => {
|
|
31935
|
+
if (platform) return platform;
|
|
31936
|
+
let url = window.location.hostname;
|
|
31937
|
+
if (url.includes("localhost")) return "p99l";
|
|
31938
|
+
let items = url.split(".");
|
|
31939
|
+
let dm = items.reverse()[1];
|
|
31940
|
+
return dm;
|
|
31941
|
+
};
|
|
31942
|
+
const getS3ImgPrint = (platform) => s3hostPrint.concat(getDomain(platform)).concat(".png");
|
|
31933
31943
|
|
|
31934
31944
|
const TicketPrintBody = (props) => {
|
|
31935
31945
|
const { item, bodyClass, is58, showItemCheckbox = false, selectedIds = [], onToggleItem } = props;
|
|
@@ -38090,7 +38100,7 @@ const RenderTitle = ({ lotteryType, className = "", logo, isVN, drawAt }) => {
|
|
|
38090
38100
|
const RenderHead$1 = ({ logo }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
38091
38101
|
logo && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "mr-2", style: {
|
|
38092
38102
|
width: "50px"
|
|
38093
|
-
}, src:
|
|
38103
|
+
}, src: getS3ImgPrint(), alt: "__log__" }),
|
|
38094
38104
|
logo ? "\u1786\u17D2\u1793\u17C4\u178F\u1782\u17D2\u179A\u1794\u17CB\u1794\u17D2\u179A\u1797\u17C1\u1791" : "\u1786\u17D2\u1793\u17C4\u178F\u1795\u17D2\u179F\u1784\u179F\u17C6\u178E\u17B6\u1784"
|
|
38095
38105
|
] });
|
|
38096
38106
|
|
|
@@ -38113,13 +38123,13 @@ const RenderRow = ({ children, label, isShow = true }) => {
|
|
|
38113
38123
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { style: { fontWeight: 600 }, className: "px-0 text-black w-60", children })
|
|
38114
38124
|
] });
|
|
38115
38125
|
};
|
|
38116
|
-
const Ticket = ({ object, lotteryType, plusCount = 1, logo, hideWaterAmount = false, isVN = false }) => {
|
|
38126
|
+
const Ticket = ({ object, lotteryType, plusCount = 1, logo, hideWaterAmount = false, isVN = false, isSend = false }) => {
|
|
38117
38127
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
38118
38128
|
const isShowKhr = ((_a = object == null ? void 0 : object.totalKhr) == null ? void 0 : _a.betAmount) !== ((_b = object == null ? void 0 : object.totalKhr) == null ? void 0 : _b.waterAmount) && ((_c = object == null ? void 0 : object.totalKhr) == null ? void 0 : _c.waterAmount) > 0;
|
|
38119
38129
|
const isShowUsd = ((_d = object == null ? void 0 : object.totalUsd) == null ? void 0 : _d.betAmount) !== ((_e = object == null ? void 0 : object.totalUsd) == null ? void 0 : _e.waterAmount) && ((_f = object == null ? void 0 : object.totalUsd) == null ? void 0 : _f.waterAmount) > 0;
|
|
38120
38130
|
const isNight = object == null ? void 0 : object.isNight;
|
|
38121
38131
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("table", { id: "print-t-58", className: "print-tb-58-1", cellPadding: "7px", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
38122
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, style: { borderBottom: "2px solid black" }, className: "w-100 text-center pt-0 pb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "m-0 f-30 text-black font-weight-bold ff-p-head", children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderHead$1, { logo }) }) }) }),
|
|
38132
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, style: { borderBottom: "2px solid black" }, className: "w-100 text-center pt-0 pb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "m-0 f-30 text-black font-weight-bold ff-p-head", children: isSend ? "\u179B\u17C1\u1781\u179F\u17B6\u1784" : /* @__PURE__ */ jsxRuntimeExports.jsx(RenderHead$1, { logo }) }) }) }),
|
|
38123
38133
|
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { lineHeight: "35px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38124
38134
|
RenderTitle,
|
|
38125
38135
|
{
|
|
@@ -47165,5 +47175,5 @@ const SaryPrintAll = ({ children, list, type }) => {
|
|
|
47165
47175
|
}
|
|
47166
47176
|
};
|
|
47167
47177
|
|
|
47168
|
-
export { KPLO, KPPostCode, Printer, SCPostCode, SaryLottery, SaryPrintAll, THLabel, Ticket, TicketModal, TransferTicket, isVNType, lType, lotteryLabel, lotteryLabelOnline, lotteryLabelVN, mapBetTitle, mapLabels, mapStrPost };
|
|
47178
|
+
export { KPLO, KPPostCode, Printer, SCPostCode, SaryLottery, SaryPrintAll, THLabel, Ticket, TicketModal, TransferTicket, getS3ImgPrint, isVNType, lType, lotteryLabel, lotteryLabelOnline, lotteryLabelVN, mapBetTitle, mapLabels, mapStrPost };
|
|
47169
47179
|
//# sourceMappingURL=index.esm.js.map
|