60p82u21t54k 1.1.33 → 1.1.34

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,
@@ -1541,6 +1550,8 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
1541
1550
  SettingCategory2["changePasswordSetting"] = "change_password_setting";
1542
1551
  SettingCategory2["socialOtpLoginStatus"] = "social_otp_login_status";
1543
1552
  SettingCategory2["forgetPassword"] = "forgetpassword";
1553
+ SettingCategory2["socialPhoneLoginStatus"] = "social_phone_login_status";
1554
+ SettingCategory2["socialUsernameLoginStatus"] = "social_username_login_status";
1544
1555
  return SettingCategory2;
1545
1556
  })(SettingCategory || {});
1546
1557
  const modifyVipListRequest = (requests) => {
@@ -1642,19 +1653,19 @@ const modifyVipListResponse = (result) => {
1642
1653
  if (result == null ? void 0 : result.vipBonus) {
1643
1654
  const bonus = result.vipBonus;
1644
1655
  vipList.bonus.day.status = bonus.day.status;
1645
- const { dayRemainingTime, dayProgressPercentage } = getRemainingTimestampToTomorrow();
1656
+ const { dayRemainingTime, dayProgressPercentage } = getRemainingTimestampToTomorrow12pm();
1646
1657
  vipList.bonus.day.timestamp = {
1647
1658
  current: dayRemainingTime,
1648
1659
  percentage: dayProgressPercentage > 100 ? 100 : dayProgressPercentage
1649
1660
  };
1650
1661
  vipList.bonus.week.status = bonus.week.status;
1651
- const { weekRemainingTime, weekProgressPercentage } = getRemainingTimestampToNextWeekMonday();
1662
+ const { weekRemainingTime, weekProgressPercentage } = getRemainingTimestampToNextWeekMonday12pm();
1652
1663
  vipList.bonus.week.timestamp = {
1653
1664
  current: weekRemainingTime,
1654
1665
  percentage: weekProgressPercentage > 100 ? 100 : weekProgressPercentage
1655
1666
  };
1656
1667
  vipList.bonus.month.status = bonus.month.status;
1657
- const { monthRemainingTime, monthProgressPercentage } = getRemainingTimestampToNextMonthFirstDay();
1668
+ const { monthRemainingTime, monthProgressPercentage } = getRemainingTimestampToNextMonthFirstDay12pm();
1658
1669
  vipList.bonus.month.timestamp = {
1659
1670
  current: monthRemainingTime,
1660
1671
  percentage: monthProgressPercentage > 100 ? 100 : monthProgressPercentage
@@ -2087,7 +2098,9 @@ const getGetSettingResponse = (raw) => {
2087
2098
  forgetPassword: {
2088
2099
  email: raw.forgetpassword == "1" || raw.forgetpassword == "3",
2089
2100
  sms: raw.forgetpassword == "2" || raw.forgetpassword == "3"
2090
- }
2101
+ },
2102
+ socialPhoneLoginStatus: raw.social_phone_login_status == "1" || false,
2103
+ socialUsernameLoginStatus: raw.social_username_login_status == "1" || false
2091
2104
  };
2092
2105
  };
2093
2106
  const modifyGetSettingRequest = (requests) => {