60p82u21t54k 1.1.34 → 1.1.36

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.
@@ -300,32 +300,10 @@ const getFormattedAmount = (value, decimalPlaces = 2) => {
300
300
  }
301
301
  return `${parsedValue.toFixed(decimalPlaces).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
302
302
  };
303
- const getImgPath = (initPath, gameId, versioning) => {
304
- const evoId = [
305
- 42563,
306
- 42564,
307
- 42565,
308
- 42566,
309
- 42567,
310
- 42568,
311
- 42569,
312
- 42581,
313
- 42651,
314
- 42652,
315
- 42653,
316
- 42654,
317
- 42655,
318
- 42656
319
- ];
320
- const ppId = [42570, 42571, 42572, 42573];
303
+ const getImgPath = (initPath, versioning) => {
321
304
  let path = initPath;
322
305
  if (!path) return "";
323
- if (evoId.includes(gameId) || ppId.includes(gameId)) {
324
- path = path.replace(".png", `_${gameId}.png`).toLowerCase();
325
- path = `${path}?v=1`;
326
- } else {
327
- path = `${path}${versioning}`;
328
- }
306
+ path = `${path}?ts=${versioning}`;
329
307
  return path;
330
308
  };
331
309
  const getUtcOffset = (timeZone) => {
@@ -500,7 +478,7 @@ const getGameListResponse = (raw) => {
500
478
  trial: (item.flag & 4) > 0,
501
479
  new: (item.flag & 8) > 0
502
480
  },
503
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.id_GameMaster, `?ts=${item.filemtime}`)}`,
481
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
504
482
  logoUrl: `/image/platform_logo/${item.img.split("/").pop()}?v=1`,
505
483
  rate: "0.00",
506
484
  jackpotAmount: ""
@@ -525,7 +503,7 @@ const getGameListResponse = (raw) => {
525
503
  trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
526
504
  new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
527
505
  },
528
- imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[(_j2 = item.mdDomains_id) != null ? _j2 : 0]}${getImgPath((_k = item.img) != null ? _k : "", (_l = item.id) != null ? _l : 0, `?ts=${item.filemtime}`)}` : "",
506
+ imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[(_j2 = item.mdDomains_id) != null ? _j2 : 0]}${getImgPath((_k = item.img) != null ? _k : "", (_l = item.filemtime) != null ? _l : 0)}` : "",
529
507
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?v=1`,
530
508
  rate: "0.00",
531
509
  jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
@@ -774,7 +752,7 @@ const getFishGameListResponse = (raw) => {
774
752
  trial: false,
775
753
  new: false
776
754
  },
777
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.id, `?ts=${item.filemtime}`)}`,
755
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
778
756
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformMaster}.png?v=1`,
779
757
  rate: "0.00",
780
758
  jackpotAmount: ""
@@ -1552,6 +1530,8 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
1552
1530
  SettingCategory2["forgetPassword"] = "forgetpassword";
1553
1531
  SettingCategory2["socialPhoneLoginStatus"] = "social_phone_login_status";
1554
1532
  SettingCategory2["socialUsernameLoginStatus"] = "social_username_login_status";
1533
+ SettingCategory2["cocoEntrance"] = "coco_entrance";
1534
+ SettingCategory2["cocoDomain"] = "coco_domain";
1555
1535
  return SettingCategory2;
1556
1536
  })(SettingCategory || {});
1557
1537
  const modifyVipListRequest = (requests) => {
@@ -2022,7 +2002,7 @@ const modifyPromotionResponse = (result) => {
2022
2002
  return result;
2023
2003
  };
2024
2004
  const getGetSettingResponse = (raw) => {
2025
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
2005
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E;
2026
2006
  let vipCalculation = 4;
2027
2007
  if (raw.vipcalculation) {
2028
2008
  vipCalculation = Number(raw.vipcalculation);
@@ -2100,7 +2080,9 @@ const getGetSettingResponse = (raw) => {
2100
2080
  sms: raw.forgetpassword == "2" || raw.forgetpassword == "3"
2101
2081
  },
2102
2082
  socialPhoneLoginStatus: raw.social_phone_login_status == "1" || false,
2103
- socialUsernameLoginStatus: raw.social_username_login_status == "1" || false
2083
+ socialUsernameLoginStatus: raw.social_username_login_status == "1" || false,
2084
+ cocoEntrance: raw.coco_entrance == "1" || false,
2085
+ cocoDomain: (_E = raw.coco_domain) != null ? _E : ""
2104
2086
  };
2105
2087
  };
2106
2088
  const modifyGetSettingRequest = (requests) => {
@@ -4603,7 +4585,7 @@ const getGetFavouriteGameResponse = (raw) => {
4603
4585
  trial: false,
4604
4586
  new: false
4605
4587
  },
4606
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.id, `?ts=${item.filemtime}`)}`,
4588
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
4607
4589
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`,
4608
4590
  rate: "0.00",
4609
4591
  jackpotAmount: ""
@@ -5193,7 +5175,7 @@ const getSearchGameByNameResponse = (raw) => {
5193
5175
  trial: false,
5194
5176
  new: false
5195
5177
  },
5196
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.id, `?ts=${item.filemtime}`)}`,
5178
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
5197
5179
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`,
5198
5180
  rate: "0.00",
5199
5181
  jackpotAmount: ""
@@ -5429,7 +5411,7 @@ const getCasinoGameListResponse = (raw) => {
5429
5411
  trial: false,
5430
5412
  new: false
5431
5413
  },
5432
- imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.id, `?ts=${item.filemtime}`)}`,
5414
+ imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
5433
5415
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformMaster}.png?v=1`,
5434
5416
  rate: "0.00",
5435
5417
  jackpotAmount: ""