@jingx/lottery-components-react-jsx 1.0.24 → 1.0.25

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
@@ -31951,13 +31951,6 @@ const THLabel = {
31951
31951
  };
31952
31952
  const isVNType = (lotteryType) => [lType.MC, lType.TN, lType.KH].includes(lotteryType);
31953
31953
  const s3hostPrint = "https://vnonemedia.s3.ap-southeast-1.amazonaws.com/print-logo/";
31954
- const proxifyS3AssetOnLocalhost = (url) => {
31955
- if (typeof window === "undefined") return url;
31956
- const hostname = window.location.hostname;
31957
- const isLocalhost = hostname === "localhost" || hostname === "127.0.0.1";
31958
- if (!isLocalhost) return url;
31959
- return `/__spx_asset_proxy?url=${encodeURIComponent(url)}`;
31960
- };
31961
31954
  const getDomain = (platform) => {
31962
31955
  if (platform) return platform;
31963
31956
  let url = window.location.hostname;
@@ -31966,7 +31959,7 @@ const getDomain = (platform) => {
31966
31959
  let dm = items.reverse()[1];
31967
31960
  return dm;
31968
31961
  };
31969
- const getS3ImgPrint = (platform) => proxifyS3AssetOnLocalhost(s3hostPrint.concat(getDomain(platform)).concat(".png"));
31962
+ const getS3ImgPrint = (platform) => s3hostPrint.concat(getDomain(platform)).concat(".png");
31970
31963
 
31971
31964
  const TicketPrintBody = (props) => {
31972
31965
  const { item, bodyClass, is58, showItemCheckbox = false, selectedIds = [], onToggleItem } = props;
@@ -38128,7 +38121,7 @@ const RenderTitle = ({ lotteryType, className = "", logo, isVN, drawAt }) => {
38128
38121
  const RenderHead$1 = ({ logo, platform }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
38129
38122
  logo && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "mr-2", style: {
38130
38123
  width: "50px"
38131
- }, src: getS3ImgPrint(platform), alt: "__log__" }),
38124
+ }, crossOrigin: "anonymous", src: getS3ImgPrint(platform), alt: "__log__" }),
38132
38125
  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"
38133
38126
  ] });
38134
38127