@jingx/lottery-components-react-jsx 1.0.20 → 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 +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -31950,6 +31950,16 @@ const THLabel = {
|
|
|
31950
31950
|
B: "2D"
|
|
31951
31951
|
};
|
|
31952
31952
|
const isVNType = (lotteryType) => [lType.MC, lType.TN, lType.KH].includes(lotteryType);
|
|
31953
|
+
const s3hostPrint = "https://vnonemedia.s3.ap-southeast-1.amazonaws.com/print-logo/";
|
|
31954
|
+
const getDomain = (platform) => {
|
|
31955
|
+
if (platform) return platform;
|
|
31956
|
+
let url = window.location.hostname;
|
|
31957
|
+
if (url.includes("localhost")) return "p99l";
|
|
31958
|
+
let items = url.split(".");
|
|
31959
|
+
let dm = items.reverse()[1];
|
|
31960
|
+
return dm;
|
|
31961
|
+
};
|
|
31962
|
+
const getS3ImgPrint = (platform) => s3hostPrint.concat(getDomain(platform)).concat(".png");
|
|
31953
31963
|
|
|
31954
31964
|
const TicketPrintBody = (props) => {
|
|
31955
31965
|
const { item, bodyClass, is58, showItemCheckbox = false, selectedIds = [], onToggleItem } = props;
|
|
@@ -38110,7 +38120,7 @@ const RenderTitle = ({ lotteryType, className = "", logo, isVN, drawAt }) => {
|
|
|
38110
38120
|
const RenderHead$1 = ({ logo }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
38111
38121
|
logo && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "mr-2", style: {
|
|
38112
38122
|
width: "50px"
|
|
38113
|
-
}, src:
|
|
38123
|
+
}, src: getS3ImgPrint(), alt: "__log__" }),
|
|
38114
38124
|
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"
|
|
38115
38125
|
] });
|
|
38116
38126
|
|
|
@@ -47195,6 +47205,7 @@ exports.THLabel = THLabel;
|
|
|
47195
47205
|
exports.Ticket = Ticket;
|
|
47196
47206
|
exports.TicketModal = TicketModal;
|
|
47197
47207
|
exports.TransferTicket = TransferTicket;
|
|
47208
|
+
exports.getS3ImgPrint = getS3ImgPrint;
|
|
47198
47209
|
exports.isVNType = isVNType;
|
|
47199
47210
|
exports.lType = lType;
|
|
47200
47211
|
exports.lotteryLabel = lotteryLabel;
|