60p82u21t54k 1.1.33 → 1.1.35

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.
@@ -77,12 +77,14 @@ const getPreviousMonth = (day) => {
77
77
  date.setDate(1);
78
78
  date.setMonth(month - 1);
79
79
  date.setDate(day);
80
+ date.setHours(12, 0, 0, 0);
80
81
  return getTimeZoneHours(date);
81
82
  };
82
83
  const getCurrentMonth = (day) => {
83
84
  const date = /* @__PURE__ */ new Date();
84
85
  date.setDate(1);
85
86
  date.setDate(day);
87
+ date.setHours(12, 0, 0, 0);
86
88
  return getTimeZoneHours(date);
87
89
  };
88
90
  const getNextMonth = (day) => {
@@ -91,6 +93,7 @@ const getNextMonth = (day) => {
91
93
  date.setDate(1);
92
94
  date.setMonth(month + 1);
93
95
  date.setDate(day);
96
+ date.setHours(12, 0, 0, 0);
94
97
  return getTimeZoneHours(date);
95
98
  };
96
99
  const getPreviousMonday = () => {
@@ -98,6 +101,7 @@ const getPreviousMonday = () => {
98
101
  const dayOfWeek = date.getDay();
99
102
  const daysToSubtract = dayOfWeek === 0 ? 6 + 7 : dayOfWeek - 1 + 7;
100
103
  date.setDate(date.getDate() - daysToSubtract);
104
+ date.setHours(12, 0, 0, 0);
101
105
  return getTimeZoneHours(date);
102
106
  };
103
107
  const getThisMonday = () => {
@@ -105,6 +109,7 @@ const getThisMonday = () => {
105
109
  const dayOfWeek = date.getDay();
106
110
  const daysToSubtract = dayOfWeek === 0 ? 6 : dayOfWeek - 1;
107
111
  date.setDate(date.getDate() - daysToSubtract);
112
+ date.setHours(12, 0, 0, 0);
108
113
  return getTimeZoneHours(date);
109
114
  };
110
115
  const getNextMonday = () => {
@@ -112,20 +117,24 @@ const getNextMonday = () => {
112
117
  const dayOfWeek = date.getDay();
113
118
  const daysToAdd = dayOfWeek === 0 ? 1 : 8 - dayOfWeek;
114
119
  date.setDate(date.getDate() + daysToAdd);
120
+ date.setHours(12, 0, 0, 0);
115
121
  return getTimeZoneHours(date);
116
122
  };
117
- const getYesterday = () => {
123
+ const getYesterday12PM = () => {
118
124
  const date = /* @__PURE__ */ new Date();
119
125
  date.setDate(date.getDate() - 1);
126
+ date.setHours(12, 0, 0, 0);
120
127
  return getTimeZoneHours(date);
121
128
  };
122
- const getToday = () => {
129
+ const getToday12PM = () => {
123
130
  const date = /* @__PURE__ */ new Date();
131
+ date.setHours(12, 0, 0, 0);
124
132
  return getTimeZoneHours(date);
125
133
  };
126
- const getTomorrow = () => {
134
+ const getTomorrow12PM = () => {
127
135
  const date = /* @__PURE__ */ new Date();
128
136
  date.setDate(date.getDate() + 1);
137
+ date.setHours(12, 0, 0, 0);
129
138
  return getTimeZoneHours(date);
130
139
  };
131
140
  const getRemainingTimeAndPercentage = (targetDate, previousTargetDate, nextTargetDate) => {
@@ -155,7 +164,7 @@ const getRemainingTimeAndPercentage = (targetDate, previousTargetDate, nextTarge
155
164
  percentage: progressPercentage
156
165
  };
157
166
  };
158
- const getRemainingTimestampToNextMonthFirstDay = () => {
167
+ const getRemainingTimestampToNextMonthFirstDay12pm = () => {
159
168
  const { remainingTime, percentage } = getRemainingTimeAndPercentage(
160
169
  getCurrentMonth(1),
161
170
  getPreviousMonth(1),
@@ -166,7 +175,7 @@ const getRemainingTimestampToNextMonthFirstDay = () => {
166
175
  monthProgressPercentage: percentage
167
176
  };
168
177
  };
169
- const getRemainingTimestampToNextWeekMonday = () => {
178
+ const getRemainingTimestampToNextWeekMonday12pm = () => {
170
179
  const { remainingTime, percentage } = getRemainingTimeAndPercentage(
171
180
  getThisMonday(),
172
181
  getPreviousMonday(),
@@ -177,11 +186,11 @@ const getRemainingTimestampToNextWeekMonday = () => {
177
186
  weekProgressPercentage: percentage
178
187
  };
179
188
  };
180
- const getRemainingTimestampToTomorrow = () => {
189
+ const getRemainingTimestampToTomorrow12pm = () => {
181
190
  const { remainingTime, percentage } = getRemainingTimeAndPercentage(
182
- getToday(),
183
- getYesterday(),
184
- getTomorrow()
191
+ getToday12PM(),
192
+ getYesterday12PM(),
193
+ getTomorrow12PM()
185
194
  );
186
195
  return {
187
196
  dayRemainingTime: remainingTime,
@@ -291,32 +300,10 @@ const getFormattedAmount = (value, decimalPlaces = 2) => {
291
300
  }
292
301
  return `${parsedValue.toFixed(decimalPlaces).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
293
302
  };
294
- const getImgPath = (initPath, gameId, versioning) => {
295
- const evoId = [
296
- 42563,
297
- 42564,
298
- 42565,
299
- 42566,
300
- 42567,
301
- 42568,
302
- 42569,
303
- 42581,
304
- 42651,
305
- 42652,
306
- 42653,
307
- 42654,
308
- 42655,
309
- 42656
310
- ];
311
- const ppId = [42570, 42571, 42572, 42573];
303
+ const getImgPath = (initPath, versioning) => {
312
304
  let path = initPath;
313
305
  if (!path) return "";
314
- if (evoId.includes(gameId) || ppId.includes(gameId)) {
315
- path = path.replace(".png", `_${gameId}.png`).toLowerCase();
316
- path = `${path}?v=1`;
317
- } else {
318
- path = `${path}${versioning}`;
319
- }
306
+ path = `${path}?ts=${versioning}`;
320
307
  return path;
321
308
  };
322
309
  const getUtcOffset = (timeZone) => {
@@ -491,7 +478,7 @@ const getGameListResponse = (raw) => {
491
478
  trial: (item.flag & 4) > 0,
492
479
  new: (item.flag & 8) > 0
493
480
  },
494
- 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)}`,
495
482
  logoUrl: `/image/platform_logo/${item.img.split("/").pop()}?v=1`,
496
483
  rate: "0.00",
497
484
  jackpotAmount: ""
@@ -516,7 +503,7 @@ const getGameListResponse = (raw) => {
516
503
  trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
517
504
  new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
518
505
  },
519
- 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)}` : "",
520
507
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?v=1`,
521
508
  rate: "0.00",
522
509
  jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
@@ -765,7 +752,7 @@ const getFishGameListResponse = (raw) => {
765
752
  trial: false,
766
753
  new: false
767
754
  },
768
- 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)}`,
769
756
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformMaster}.png?v=1`,
770
757
  rate: "0.00",
771
758
  jackpotAmount: ""
@@ -1541,6 +1528,10 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
1541
1528
  SettingCategory2["changePasswordSetting"] = "change_password_setting";
1542
1529
  SettingCategory2["socialOtpLoginStatus"] = "social_otp_login_status";
1543
1530
  SettingCategory2["forgetPassword"] = "forgetpassword";
1531
+ SettingCategory2["socialPhoneLoginStatus"] = "social_phone_login_status";
1532
+ SettingCategory2["socialUsernameLoginStatus"] = "social_username_login_status";
1533
+ SettingCategory2["cocoEntrance"] = "coco_entrance";
1534
+ SettingCategory2["cocoDomain"] = "coco_domain";
1544
1535
  return SettingCategory2;
1545
1536
  })(SettingCategory || {});
1546
1537
  const modifyVipListRequest = (requests) => {
@@ -1642,19 +1633,19 @@ const modifyVipListResponse = (result) => {
1642
1633
  if (result == null ? void 0 : result.vipBonus) {
1643
1634
  const bonus = result.vipBonus;
1644
1635
  vipList.bonus.day.status = bonus.day.status;
1645
- const { dayRemainingTime, dayProgressPercentage } = getRemainingTimestampToTomorrow();
1636
+ const { dayRemainingTime, dayProgressPercentage } = getRemainingTimestampToTomorrow12pm();
1646
1637
  vipList.bonus.day.timestamp = {
1647
1638
  current: dayRemainingTime,
1648
1639
  percentage: dayProgressPercentage > 100 ? 100 : dayProgressPercentage
1649
1640
  };
1650
1641
  vipList.bonus.week.status = bonus.week.status;
1651
- const { weekRemainingTime, weekProgressPercentage } = getRemainingTimestampToNextWeekMonday();
1642
+ const { weekRemainingTime, weekProgressPercentage } = getRemainingTimestampToNextWeekMonday12pm();
1652
1643
  vipList.bonus.week.timestamp = {
1653
1644
  current: weekRemainingTime,
1654
1645
  percentage: weekProgressPercentage > 100 ? 100 : weekProgressPercentage
1655
1646
  };
1656
1647
  vipList.bonus.month.status = bonus.month.status;
1657
- const { monthRemainingTime, monthProgressPercentage } = getRemainingTimestampToNextMonthFirstDay();
1648
+ const { monthRemainingTime, monthProgressPercentage } = getRemainingTimestampToNextMonthFirstDay12pm();
1658
1649
  vipList.bonus.month.timestamp = {
1659
1650
  current: monthRemainingTime,
1660
1651
  percentage: monthProgressPercentage > 100 ? 100 : monthProgressPercentage
@@ -2011,7 +2002,7 @@ const modifyPromotionResponse = (result) => {
2011
2002
  return result;
2012
2003
  };
2013
2004
  const getGetSettingResponse = (raw) => {
2014
- 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;
2015
2006
  let vipCalculation = 4;
2016
2007
  if (raw.vipcalculation) {
2017
2008
  vipCalculation = Number(raw.vipcalculation);
@@ -2087,7 +2078,11 @@ const getGetSettingResponse = (raw) => {
2087
2078
  forgetPassword: {
2088
2079
  email: raw.forgetpassword == "1" || raw.forgetpassword == "3",
2089
2080
  sms: raw.forgetpassword == "2" || raw.forgetpassword == "3"
2090
- }
2081
+ },
2082
+ socialPhoneLoginStatus: raw.social_phone_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 : ""
2091
2086
  };
2092
2087
  };
2093
2088
  const modifyGetSettingRequest = (requests) => {
@@ -4590,7 +4585,7 @@ const getGetFavouriteGameResponse = (raw) => {
4590
4585
  trial: false,
4591
4586
  new: false
4592
4587
  },
4593
- 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)}`,
4594
4589
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`,
4595
4590
  rate: "0.00",
4596
4591
  jackpotAmount: ""
@@ -5180,7 +5175,7 @@ const getSearchGameByNameResponse = (raw) => {
5180
5175
  trial: false,
5181
5176
  new: false
5182
5177
  },
5183
- 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)}`,
5184
5179
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`,
5185
5180
  rate: "0.00",
5186
5181
  jackpotAmount: ""
@@ -5416,7 +5411,7 @@ const getCasinoGameListResponse = (raw) => {
5416
5411
  trial: false,
5417
5412
  new: false
5418
5413
  },
5419
- 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)}`,
5420
5415
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformMaster}.png?v=1`,
5421
5416
  rate: "0.00",
5422
5417
  jackpotAmount: ""