60p82u21t54k 1.0.23 → 1.1.0

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.
Files changed (48) hide show
  1. package/dist/60p82u21t54k.cjs.js +1 -1
  2. package/dist/60p82u21t54k.es.js +706 -698
  3. package/dist/60p82u21t54k.umd.js +1 -1
  4. package/dist/api/general/type.d.ts +1 -7
  5. package/dist/api/general/type.d.ts.map +1 -1
  6. package/dist/api/login/loginApi.d.ts.map +1 -1
  7. package/dist/core/apiRegistration.d.ts.map +1 -1
  8. package/dist/index.d.ts +0 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/model/getSetting/getGetSettingResponse.d.ts +0 -8
  11. package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
  12. package/dist/model/getSetting/type.d.ts +3 -17
  13. package/dist/model/getSetting/type.d.ts.map +1 -1
  14. package/dist/model/getUserProfile/getGetUserProfileResponse.d.ts.map +1 -1
  15. package/dist/model/getUserProfile/type.d.ts +0 -1
  16. package/dist/model/getUserProfile/type.d.ts.map +1 -1
  17. package/dist/model/paymentsProvider/getPaymentsProviderResponse.d.ts.map +1 -1
  18. package/dist/model/paymentsProvider/type.d.ts +0 -4
  19. package/dist/model/paymentsProvider/type.d.ts.map +1 -1
  20. package/dist/model/vipList/modifyVipListResponse.d.ts.map +1 -1
  21. package/dist/util/tool.d.ts.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/api/socialLogin/index.d.ts +0 -3
  24. package/dist/api/socialLogin/index.d.ts.map +0 -1
  25. package/dist/api/socialLogin/socialLoginApi.d.ts +0 -3
  26. package/dist/api/socialLogin/socialLoginApi.d.ts.map +0 -1
  27. package/dist/api/socialLogin/type.d.ts +0 -5
  28. package/dist/api/socialLogin/type.d.ts.map +0 -1
  29. package/dist/model/submitTacCode/getSubmitTacCodeResponse.d.ts +0 -6
  30. package/dist/model/submitTacCode/getSubmitTacCodeResponse.d.ts.map +0 -1
  31. package/dist/model/submitTacCode/index.d.ts +0 -5
  32. package/dist/model/submitTacCode/index.d.ts.map +0 -1
  33. package/dist/model/submitTacCode/modifySubmitTacCodeRequest.d.ts +0 -3
  34. package/dist/model/submitTacCode/modifySubmitTacCodeRequest.d.ts.map +0 -1
  35. package/dist/model/submitTacCode/modifySubmitTacCodeResponse.d.ts +0 -3
  36. package/dist/model/submitTacCode/modifySubmitTacCodeResponse.d.ts.map +0 -1
  37. package/dist/model/submitTacCode/type.d.ts +0 -3
  38. package/dist/model/submitTacCode/type.d.ts.map +0 -1
  39. package/dist/model/updateRegister/getUpdateRegisterResponse.d.ts +0 -6
  40. package/dist/model/updateRegister/getUpdateRegisterResponse.d.ts.map +0 -1
  41. package/dist/model/updateRegister/index.d.ts +0 -5
  42. package/dist/model/updateRegister/index.d.ts.map +0 -1
  43. package/dist/model/updateRegister/modifyUpdateRegisterRequest.d.ts +0 -3
  44. package/dist/model/updateRegister/modifyUpdateRegisterRequest.d.ts.map +0 -1
  45. package/dist/model/updateRegister/modifyUpdateRegisterResponse.d.ts +0 -3
  46. package/dist/model/updateRegister/modifyUpdateRegisterResponse.d.ts.map +0 -1
  47. package/dist/model/updateRegister/type.d.ts +0 -3
  48. package/dist/model/updateRegister/type.d.ts.map +0 -1
@@ -1,6 +1,43 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3
20
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
21
+ var __async = (__this, __arguments, generator) => {
22
+ return new Promise((resolve, reject) => {
23
+ var fulfilled = (value) => {
24
+ try {
25
+ step(generator.next(value));
26
+ } catch (e) {
27
+ reject(e);
28
+ }
29
+ };
30
+ var rejected = (value) => {
31
+ try {
32
+ step(generator.throw(value));
33
+ } catch (e) {
34
+ reject(e);
35
+ }
36
+ };
37
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
+ step((generator = generator.apply(__this, __arguments)).next());
39
+ });
40
+ };
4
41
  import axios from "axios";
5
42
  class DefaultApiModelRegistry {
6
43
  constructor() {
@@ -52,7 +89,7 @@ const processRequestModifications = (requests) => {
52
89
  return modifiedRequests;
53
90
  };
54
91
  const processResponseModifications = (result) => {
55
- let modifiedResult = { ...result };
92
+ let modifiedResult = __spreadValues({}, result);
56
93
  for (const apiName of Object.keys(result)) {
57
94
  const modifier = apiModelRegistry.getResponseModifier(apiName);
58
95
  if (modifier) {
@@ -62,13 +99,15 @@ const processResponseModifications = (result) => {
62
99
  return modifiedResult;
63
100
  };
64
101
  const getAnnouncementResponse = (raw) => {
65
- return (raw == null ? void 0 : raw.map((item) => {
102
+ var _a;
103
+ return (_a = raw == null ? void 0 : raw.map((item) => {
104
+ var _a2;
66
105
  return {
67
106
  alert: item.announcement_alert === "1",
68
- content: item.announcement_simplified ?? "",
107
+ content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
69
108
  lastUpdatedTime: item.announcement_lastupdated
70
109
  };
71
- })) ?? [];
110
+ })) != null ? _a : [];
72
111
  };
73
112
  const modifyAnnouncementRequest = (requests) => {
74
113
  return requests;
@@ -83,7 +122,7 @@ let currentConfig = {
83
122
  language: "zh"
84
123
  };
85
124
  const setConfig = (newConfig) => {
86
- currentConfig = { ...currentConfig, ...newConfig };
125
+ currentConfig = __spreadValues(__spreadValues({}, currentConfig), newConfig);
87
126
  };
88
127
  const getConfig = () => {
89
128
  return currentConfig;
@@ -121,9 +160,9 @@ function getDefaultOptions$1() {
121
160
  return defaultOptions;
122
161
  }
123
162
  function startOfWeek(date, options) {
124
- var _a, _b, _c, _d;
163
+ var _a, _b, _c, _d, _e, _f, _g, _h;
125
164
  const defaultOptions2 = getDefaultOptions$1();
126
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
165
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
127
166
  const _date = toDate$1(date, options == null ? void 0 : options.in);
128
167
  const day = _date.getDay();
129
168
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -132,7 +171,7 @@ function startOfWeek(date, options) {
132
171
  return _date;
133
172
  }
134
173
  function startOfISOWeek(date, options) {
135
- return startOfWeek(date, { ...options, weekStartsOn: 1 });
174
+ return startOfWeek(date, __spreadProps(__spreadValues({}, options), { weekStartsOn: 1 }));
136
175
  }
137
176
  function getISOWeekYear(date, options) {
138
177
  const _date = toDate$1(date, options == null ? void 0 : options.in);
@@ -713,11 +752,11 @@ function getISOWeek(date, options) {
713
752
  return Math.round(diff / millisecondsInWeek) + 1;
714
753
  }
715
754
  function getWeekYear(date, options) {
716
- var _a, _b, _c, _d;
755
+ var _a, _b, _c, _d, _e, _f, _g, _h;
717
756
  const _date = toDate$1(date, options == null ? void 0 : options.in);
718
757
  const year = _date.getFullYear();
719
758
  const defaultOptions2 = getDefaultOptions$1();
720
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
759
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
721
760
  const firstWeekOfNextYear = constructFrom((options == null ? void 0 : options.in) || date, 0);
722
761
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
723
762
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -735,9 +774,9 @@ function getWeekYear(date, options) {
735
774
  }
736
775
  }
737
776
  function startOfWeekYear(date, options) {
738
- var _a, _b, _c, _d;
777
+ var _a, _b, _c, _d, _e, _f, _g, _h;
739
778
  const defaultOptions2 = getDefaultOptions$1();
740
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
779
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
741
780
  const year = getWeekYear(date, options);
742
781
  const firstWeek = constructFrom((options == null ? void 0 : options.in) || date, 0);
743
782
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -1534,11 +1573,11 @@ const escapedStringRegExp$1 = /^'([^]*?)'?$/;
1534
1573
  const doubleQuoteRegExp$1 = /''/g;
1535
1574
  const unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
1536
1575
  function format$1(date, formatStr, options) {
1537
- var _a, _b, _c, _d, _e, _f, _g, _h;
1576
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
1538
1577
  const defaultOptions2 = getDefaultOptions$1();
1539
- const locale = (options == null ? void 0 : options.locale) ?? defaultOptions2.locale ?? enUS;
1540
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
1541
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_f = (_e = options == null ? void 0 : options.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.weekStartsOn) ?? 0;
1578
+ const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions2.locale) != null ? _b : enUS;
1579
+ const firstWeekContainsDate = (_j = (_i = (_f = (_e = options == null ? void 0 : options.firstWeekContainsDate) != null ? _e : (_d = (_c = options == null ? void 0 : options.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) != null ? _f : defaultOptions2.firstWeekContainsDate) != null ? _i : (_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.firstWeekContainsDate) != null ? _j : 1;
1580
+ const weekStartsOn = (_r = (_q = (_n = (_m = options == null ? void 0 : options.weekStartsOn) != null ? _m : (_l = (_k = options == null ? void 0 : options.locale) == null ? void 0 : _k.options) == null ? void 0 : _l.weekStartsOn) != null ? _n : defaultOptions2.weekStartsOn) != null ? _q : (_p = (_o = defaultOptions2.locale) == null ? void 0 : _o.options) == null ? void 0 : _p.weekStartsOn) != null ? _r : 0;
1542
1581
  const originalDate = toDate$1(date, options == null ? void 0 : options.in);
1543
1582
  if (!isValid(originalDate)) {
1544
1583
  throw new RangeError("Invalid time value");
@@ -2491,9 +2530,9 @@ class DayOfYearParser extends Parser {
2491
2530
  }
2492
2531
  }
2493
2532
  function setDay(date, day, options) {
2494
- var _a, _b, _c, _d;
2533
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2495
2534
  const defaultOptions2 = getDefaultOptions$1();
2496
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
2535
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
2497
2536
  const date_ = toDate$1(date, options == null ? void 0 : options.in);
2498
2537
  const currentDay = date_.getDay();
2499
2538
  const remainder = day % 7;
@@ -3240,12 +3279,12 @@ const doubleQuoteRegExp = /''/g;
3240
3279
  const notWhitespaceRegExp = /\S/;
3241
3280
  const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3242
3281
  function parse(dateStr, formatStr, referenceDate, options) {
3243
- var _a, _b, _c, _d;
3282
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3244
3283
  const invalidDate = () => constructFrom(referenceDate, NaN);
3245
3284
  const defaultOptions2 = getDefaultOptions();
3246
- const locale = defaultOptions2.locale ?? enUS;
3247
- const firstWeekContainsDate = defaultOptions2.firstWeekContainsDate ?? ((_b = (_a = defaultOptions2.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? 1;
3248
- const weekStartsOn = defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
3285
+ const locale = (_a = defaultOptions2.locale) != null ? _a : enUS;
3286
+ const firstWeekContainsDate = (_e = (_d = defaultOptions2.firstWeekContainsDate) != null ? _d : (_c = (_b = defaultOptions2.locale) == null ? void 0 : _b.options) == null ? void 0 : _c.firstWeekContainsDate) != null ? _e : 1;
3287
+ const weekStartsOn = (_i = (_h = defaultOptions2.weekStartsOn) != null ? _h : (_g = (_f = defaultOptions2.locale) == null ? void 0 : _f.options) == null ? void 0 : _g.weekStartsOn) != null ? _i : 0;
3249
3288
  const subFnOptions = {
3250
3289
  firstWeekContainsDate,
3251
3290
  weekStartsOn,
@@ -3343,8 +3382,9 @@ function cleanEscapedString(input) {
3343
3382
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
3344
3383
  }
3345
3384
  function tzIntlTimeZoneName(length, date, options) {
3385
+ var _a;
3346
3386
  const defaultOptions2 = getDefaultOptions();
3347
- const dtf = getDTF(length, options.timeZone, options.locale ?? defaultOptions2.locale);
3387
+ const dtf = getDTF(length, options.timeZone, (_a = options.locale) != null ? _a : defaultOptions2.locale);
3348
3388
  return "formatToParts" in dtf ? partsTimeZone(dtf, date) : hackyTimeZone(dtf, date);
3349
3389
  }
3350
3390
  function partsTimeZone(dtf, date) {
@@ -3617,7 +3657,8 @@ const formatters = {
3617
3657
  }
3618
3658
  };
3619
3659
  function getTimeZoneOffset(timeZone, originalDate) {
3620
- const timeZoneOffset = timeZone ? tzParseTimezone(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE$1 : (originalDate == null ? void 0 : originalDate.getTimezoneOffset()) ?? 0;
3660
+ var _a;
3661
+ const timeZoneOffset = timeZone ? tzParseTimezone(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE$1 : (_a = originalDate == null ? void 0 : originalDate.getTimezoneOffset()) != null ? _a : 0;
3621
3662
  if (Number.isNaN(timeZoneOffset)) {
3622
3663
  throw new RangeError("Invalid time zone specified: " + timeZone);
3623
3664
  }
@@ -3989,7 +4030,7 @@ function toZonedTime(date, timeZone, options) {
3989
4030
  }
3990
4031
  function fromZonedTime(date, timeZone, options) {
3991
4032
  if (typeof date === "string" && !date.match(tzPattern)) {
3992
- return toDate(date, { ...options, timeZone });
4033
+ return toDate(date, __spreadProps(__spreadValues({}, options), { timeZone }));
3993
4034
  }
3994
4035
  date = toDate(date, options);
3995
4036
  const utc = newDateUTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()).getTime();
@@ -4226,17 +4267,13 @@ const isTimeExpired = (targetDate, seconds = 0) => {
4226
4267
  }
4227
4268
  return false;
4228
4269
  };
4229
- const getStringNumericValue = (value) => {
4230
- const numericValue = parseFloat(value.replace(/,/g, "").replace(/[^\d.-]/g, ""));
4231
- return isNaN(numericValue) ? 0 : numericValue;
4232
- };
4233
4270
  const getFormattedAmount = (value, decimalPlaces = 2) => {
4234
4271
  if (Number(value) !== 0 && !Number(value)) {
4235
4272
  return `${value || ""}`;
4236
4273
  }
4237
4274
  const formattedZero = `0${decimalPlaces ? "." + "0".repeat(decimalPlaces) : ""}`;
4238
4275
  const parsedValue = parseFloat(value);
4239
- if (isNaN(parsedValue) || typeof value === "string" && !/^-?[\d.,]+$/.test(value)) {
4276
+ if (isNaN(parsedValue) || typeof value === "string" && /[^\d.,]/.test(value)) {
4240
4277
  return `${formattedZero}`;
4241
4278
  }
4242
4279
  return `${parsedValue.toFixed(decimalPlaces).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
@@ -4270,9 +4307,9 @@ const getImgPath = (initPath, gameId, versioning) => {
4270
4307
  return path;
4271
4308
  };
4272
4309
  const getGameListResponse = (raw) => {
4273
- var _a, _b, _c, _d, _e, _f;
4310
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4274
4311
  return {
4275
- platformGame: ((_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
4312
+ platformGame: (_b = (_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
4276
4313
  var _a2, _b2;
4277
4314
  return {
4278
4315
  code: product.code.toLowerCase(),
@@ -4300,29 +4337,30 @@ const getGameListResponse = (raw) => {
4300
4337
  };
4301
4338
  }) : []
4302
4339
  };
4303
- })) ?? [],
4340
+ })) != null ? _b : [],
4304
4341
  gameList: {
4305
- currentPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.current_page) ?? 1,
4306
- lastPage: ((_c = raw.mdGameLists) == null ? void 0 : _c.last_page) ?? 1,
4307
- data: ((_f = (_e = (_d = raw.mdGameLists) == null ? void 0 : _d.data) == null ? void 0 : _e.map((item) => {
4342
+ currentPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.current_page) != null ? _d : 1,
4343
+ lastPage: (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.last_page) != null ? _f : 1,
4344
+ data: (_j = (_i = (_h = (_g = raw.mdGameLists) == null ? void 0 : _g.data) == null ? void 0 : _h.map((item) => {
4345
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
4308
4346
  return {
4309
- gameId: item.id ?? 0,
4310
- platformId: item.id_PlatformProduct ?? 0,
4311
- platformCode: item.code_PlatformProduct ?? "",
4312
- platformName: item.name_PlatformProduct ?? "",
4313
- name: item.name ?? "",
4347
+ gameId: (_a2 = item.id) != null ? _a2 : 0,
4348
+ platformId: (_b2 = item.id_PlatformProduct) != null ? _b2 : 0,
4349
+ platformCode: (_c2 = item.code_PlatformProduct) != null ? _c2 : "",
4350
+ platformName: (_d2 = item.name_PlatformProduct) != null ? _d2 : "",
4351
+ name: (_e2 = item.name) != null ? _e2 : "",
4314
4352
  flag: {
4315
- value: item.flag ?? 0,
4316
- hot: (item.flag ?? 0 & 2) > 0,
4317
- trial: (item.flag ?? 0 & 4) > 0,
4318
- new: (item.flag ?? 0 & 8) > 0
4353
+ value: (_f2 = item.flag) != null ? _f2 : 0,
4354
+ hot: ((_g2 = item.flag) != null ? _g2 : 0 & 2) > 0,
4355
+ trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
4356
+ new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
4319
4357
  },
4320
- imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[item.mdDomains_id ?? 0]}${getImgPath(item.img ?? "", item.id ?? 0, `?ts=${item.filemtime}`)}` : "",
4358
+ 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}`)}` : "",
4321
4359
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?v=1`,
4322
4360
  rate: "0.00",
4323
- jackpotAmount: item.jackpotAmount ?? ""
4361
+ jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
4324
4362
  };
4325
- })) == null ? void 0 : _f.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) ?? []
4363
+ })) == null ? void 0 : _i.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) != null ? _j : []
4326
4364
  },
4327
4365
  trialGameList: []
4328
4366
  };
@@ -4481,8 +4519,6 @@ var Api = /* @__PURE__ */ ((Api2) => {
4481
4519
  Api2["isMobileRegistered"] = "isMobileRegistered";
4482
4520
  Api2["getActivePlatform"] = "getActivePlatform";
4483
4521
  Api2["agMemberTransaction"] = "agMemberTransaction";
4484
- Api2["submitTacCode"] = "submitTacCode";
4485
- Api2["updateRegister"] = "updateRegister";
4486
4522
  return Api2;
4487
4523
  })(Api || {});
4488
4524
  const modifyGameListRequest = (requests) => {
@@ -4508,36 +4544,35 @@ const modifyGameListResponse = (result) => {
4508
4544
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
4509
4545
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
4510
4546
  gameList.platformGame = gameList.platformGame.map((category) => {
4511
- return {
4512
- ...category,
4547
+ return __spreadProps(__spreadValues({}, category), {
4513
4548
  list: category.list.map((game) => {
4549
+ var _a;
4514
4550
  const turnover = getPlatformTurnoverRate.find(
4515
4551
  (item) => item.id === game.platformId
4516
4552
  );
4517
- return {
4518
- ...game,
4519
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4520
- };
4553
+ return __spreadProps(__spreadValues({}, game), {
4554
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4555
+ });
4521
4556
  })
4522
- };
4557
+ });
4523
4558
  });
4524
4559
  gameList.gameList.data = gameList.gameList.data.map((game) => {
4560
+ var _a;
4525
4561
  const turnover = getPlatformTurnoverRate.find(
4526
4562
  (item) => item.id === game.platformId
4527
4563
  );
4528
- return {
4529
- ...game,
4530
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4531
- };
4564
+ return __spreadProps(__spreadValues({}, game), {
4565
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4566
+ });
4532
4567
  });
4533
4568
  gameList.trialGameList = gameList.trialGameList.map((game) => {
4569
+ var _a;
4534
4570
  const turnover = getPlatformTurnoverRate.find(
4535
4571
  (item) => item.id === game.platformId
4536
4572
  );
4537
- return {
4538
- ...game,
4539
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4540
- };
4573
+ return __spreadProps(__spreadValues({}, game), {
4574
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4575
+ });
4541
4576
  });
4542
4577
  delete result.getPlatformTurnoverRate;
4543
4578
  }
@@ -4546,11 +4581,11 @@ const modifyGameListResponse = (result) => {
4546
4581
  return result;
4547
4582
  };
4548
4583
  const getFishGameListResponse = (raw) => {
4549
- var _a, _b, _c, _d;
4584
+ var _a, _b, _c, _d, _e, _f, _g;
4550
4585
  return {
4551
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
4552
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
4553
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
4586
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
4587
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
4588
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
4554
4589
  return {
4555
4590
  gameId: item.id,
4556
4591
  platformId: item.id_PlatformProduct,
@@ -4568,7 +4603,7 @@ const getFishGameListResponse = (raw) => {
4568
4603
  rate: "0.00",
4569
4604
  jackpotAmount: ""
4570
4605
  };
4571
- })) ?? []
4606
+ })) != null ? _g : []
4572
4607
  };
4573
4608
  };
4574
4609
  const modifyFishGameListRequest = (requests) => {
@@ -4588,73 +4623,72 @@ const modifyFishGameListResponse = (result) => {
4588
4623
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
4589
4624
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
4590
4625
  const tempFishGameList = fishGameList.data.map((gameInfo) => {
4626
+ var _a;
4591
4627
  const turnover = getPlatformTurnoverRate.find(
4592
4628
  (item) => item.id === gameInfo.platformId
4593
4629
  );
4594
- return {
4595
- ...gameInfo,
4596
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4597
- };
4630
+ return __spreadProps(__spreadValues({}, gameInfo), {
4631
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4632
+ });
4598
4633
  });
4599
- result.fishGameList = {
4600
- ...fishGameList,
4634
+ result.fishGameList = __spreadProps(__spreadValues({}, fishGameList), {
4601
4635
  data: tempFishGameList
4602
- };
4636
+ });
4603
4637
  delete result.getPlatformTurnoverRate;
4604
4638
  }
4605
4639
  }
4606
4640
  return result;
4607
4641
  };
4608
4642
  const getCmsListResponse = (raw) => {
4609
- var _a, _b, _c, _d, _e, _f, _g, _h;
4643
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
4610
4644
  return {
4611
- banner: ((_a = raw.mobileBanner) == null ? void 0 : _a.map((item) => {
4645
+ banner: (_b = (_a = raw.mobileBanner) == null ? void 0 : _a.map((item) => {
4612
4646
  return `${item.imagepath}?ts=${item.filemtime}`;
4613
- })) ?? [],
4614
- ad: ((_b = raw.mobileAd) == null ? void 0 : _b.map((item) => {
4647
+ })) != null ? _b : [],
4648
+ ad: (_d = (_c = raw.mobileAd) == null ? void 0 : _c.map((item) => {
4615
4649
  return `${item.imagepath}?ts=${item.filemtime}`;
4616
- })) ?? [],
4617
- about: ((_c = raw.about) == null ? void 0 : _c.map((item) => {
4650
+ })) != null ? _d : [],
4651
+ about: (_f = (_e = raw.about) == null ? void 0 : _e.map((item) => {
4618
4652
  return {
4619
4653
  name: item.name,
4620
4654
  content: item.content,
4621
4655
  link: item.link
4622
4656
  };
4623
- })) ?? [],
4624
- mobileAbout: ((_d = raw.mobileAbout) == null ? void 0 : _d.map((item) => {
4657
+ })) != null ? _f : [],
4658
+ mobileAbout: (_h = (_g = raw.mobileAbout) == null ? void 0 : _g.map((item) => {
4625
4659
  return {
4626
4660
  name: item.name,
4627
4661
  content: item.content,
4628
4662
  link: item.link
4629
4663
  };
4630
- })) ?? [],
4631
- appAd: ((_e = raw.appAd) == null ? void 0 : _e.map((item) => {
4664
+ })) != null ? _h : [],
4665
+ appAd: (_j = (_i = raw.appAd) == null ? void 0 : _i.map((item) => {
4632
4666
  return {
4633
4667
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4634
4668
  link: item.link
4635
4669
  };
4636
- })) ?? [],
4637
- depositHint: ((_f = raw.deposit) == null ? void 0 : _f.map((item) => {
4670
+ })) != null ? _j : [],
4671
+ depositHint: (_l = (_k = raw.deposit) == null ? void 0 : _k.map((item) => {
4638
4672
  return {
4639
4673
  paymentName: item.name,
4640
4674
  path: item.link,
4641
4675
  content: item.content
4642
4676
  };
4643
- })) ?? [],
4644
- eventPopupBotLeft: ((_g = raw.eventPopupBotLeft) == null ? void 0 : _g.map((item) => {
4677
+ })) != null ? _l : [],
4678
+ eventPopupBotLeft: (_n = (_m = raw.eventPopupBotLeft) == null ? void 0 : _m.map((item) => {
4645
4679
  return {
4646
4680
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4647
4681
  link: item.link,
4648
4682
  redirect: item.link_target == 0
4649
4683
  };
4650
- })) ?? [],
4651
- eventPopupBotRight: ((_h = raw.eventPopupBotRight) == null ? void 0 : _h.map((item) => {
4684
+ })) != null ? _n : [],
4685
+ eventPopupBotRight: (_p = (_o = raw.eventPopupBotRight) == null ? void 0 : _o.map((item) => {
4652
4686
  return {
4653
4687
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4654
4688
  link: item.link,
4655
4689
  redirect: item.link_target == 0
4656
4690
  };
4657
- })) ?? []
4691
+ })) != null ? _p : []
4658
4692
  };
4659
4693
  };
4660
4694
  const modifyCmsListRequest = (requests) => {
@@ -4691,8 +4725,9 @@ const DefaultPayment = {
4691
4725
  hintMsg: ""
4692
4726
  };
4693
4727
  const getPaymentsProviderResponse = (raw) => {
4694
- var _a;
4695
- return ((_a = raw.mdPaymentChannels) == null ? void 0 : _a.map((provider) => {
4728
+ var _a, _b;
4729
+ return (_b = (_a = raw.mdPaymentChannels) == null ? void 0 : _a.map((provider) => {
4730
+ var _a2, _b2;
4696
4731
  const paymentList = [];
4697
4732
  switch (provider.name) {
4698
4733
  case PaymentType.default:
@@ -4708,7 +4743,7 @@ const getPaymentsProviderResponse = (raw) => {
4708
4743
  paymentList.push(
4709
4744
  setAuto(
4710
4745
  provider.name,
4711
- provider.bankid ?? 0,
4746
+ (_a2 = provider.bankid) != null ? _a2 : 0,
4712
4747
  provider.paymentmethod.auto,
4713
4748
  raw
4714
4749
  )
@@ -4733,7 +4768,7 @@ const getPaymentsProviderResponse = (raw) => {
4733
4768
  paymentList.push(
4734
4769
  setFixAmount(
4735
4770
  provider.name,
4736
- provider.bankid ?? 0,
4771
+ (_b2 = provider.bankid) != null ? _b2 : 0,
4737
4772
  provider.paymentmethod.fixamount
4738
4773
  )
4739
4774
  );
@@ -4744,7 +4779,7 @@ const getPaymentsProviderResponse = (raw) => {
4744
4779
  imageUrl: `/image/game/native/deposit/sidemenu/${provider.name}.png?${raw.systemtime}`,
4745
4780
  paymentList
4746
4781
  };
4747
- })) ?? [];
4782
+ })) != null ? _b : [];
4748
4783
  };
4749
4784
  const setPromo = (data) => {
4750
4785
  const defaultPromo = {
@@ -4752,11 +4787,7 @@ const setPromo = (data) => {
4752
4787
  name: "excludePromo",
4753
4788
  disabled: true,
4754
4789
  welcomeBonus: false,
4755
- dailyBonus: false,
4756
- minDepositAmount: 0,
4757
- maxPromoAmount: 0,
4758
- percentage: 0,
4759
- description: ""
4790
+ dailyBonus: false
4760
4791
  };
4761
4792
  const promo = data.map((v) => {
4762
4793
  return {
@@ -4764,11 +4795,7 @@ const setPromo = (data) => {
4764
4795
  name: v.promodesc,
4765
4796
  disabled: false,
4766
4797
  welcomeBonus: v.dtype === "5" && v.type === "F",
4767
- dailyBonus: v.dtype === "5" && v.type === "D",
4768
- minDepositAmount: Number(v.min_deposit),
4769
- maxPromoAmount: Number(v.max_promo_amt),
4770
- percentage: Number(v.percentage),
4771
- description: v.tcdesc
4798
+ dailyBonus: v.dtype === "5" && v.type === "D"
4772
4799
  };
4773
4800
  });
4774
4801
  return [defaultPromo, ...promo];
@@ -4847,8 +4874,9 @@ const setManual = (name, data, raw) => {
4847
4874
  type,
4848
4875
  promo: setPromo(data.promo),
4849
4876
  bank: data.bank.map((bank) => {
4850
- const minTransaction = bank.list && bank.list.length > 0 ? bank.list[0].mintransaction ?? "0.00" : "0.00";
4851
- const maxTransaction = bank.list && bank.list.length > 0 ? bank.list[0].maxtransaction ?? "0.00" : "0.00";
4877
+ var _a, _b, _c, _d, _e, _f, _g;
4878
+ const minTransaction = bank.list && bank.list.length > 0 ? (_a = bank.list[0].mintransaction) != null ? _a : "0.00" : "0.00";
4879
+ const maxTransaction = bank.list && bank.list.length > 0 ? (_b = bank.list[0].maxtransaction) != null ? _b : "0.00" : "0.00";
4852
4880
  const { amountList, minAmount, maxAmount } = setMinMax(
4853
4881
  Number(minTransaction),
4854
4882
  Number(maxTransaction),
@@ -4856,11 +4884,11 @@ const setManual = (name, data, raw) => {
4856
4884
  raw.mdBankLevelDetail.deposit_max
4857
4885
  );
4858
4886
  const item = {
4859
- id: bank.bankindex ?? 0,
4860
- bankAccountId: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountindex ?? 0 : 0,
4861
- name: bank.list && bank.list.length > 0 ? bank.list[0].label ?? "" : "",
4862
- accountName: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountname ?? "" : "",
4863
- accountNo: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountno ?? "" : "",
4887
+ id: (_c = bank.bankindex) != null ? _c : 0,
4888
+ bankAccountId: bank.list && bank.list.length > 0 ? (_d = bank.list[0].bankaccountindex) != null ? _d : 0 : 0,
4889
+ name: bank.list && bank.list.length > 0 ? (_e = bank.list[0].label) != null ? _e : "" : "",
4890
+ accountName: bank.list && bank.list.length > 0 ? (_f = bank.list[0].bankaccountname) != null ? _f : "" : "",
4891
+ accountNo: bank.list && bank.list.length > 0 ? (_g = bank.list[0].bankaccountno) != null ? _g : "" : "",
4864
4892
  qrcode: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountdesc : "",
4865
4893
  amountList,
4866
4894
  min: minAmount,
@@ -4890,9 +4918,10 @@ const setOnlineBanking = (name, data, raw) => {
4890
4918
  type,
4891
4919
  promo: setPromo(data.promo),
4892
4920
  bank: data.banklist.map((bank) => {
4921
+ var _a, _b, _c;
4893
4922
  let minTransaction = "0.00";
4894
4923
  let maxTransaction = "0.00";
4895
- const bankIndex = bank.bankindex ?? 0;
4924
+ const bankIndex = (_a = bank.bankindex) != null ? _a : 0;
4896
4925
  for (let i = 0; i < raw.mdGatewayMinMax.length; i++) {
4897
4926
  if (raw.mdGatewayMinMax[i].bankindex == bankIndex.toString()) {
4898
4927
  minTransaction = raw.mdGatewayMinMax[i].min;
@@ -4913,8 +4942,9 @@ const setOnlineBanking = (name, data, raw) => {
4913
4942
  max: maxAmount
4914
4943
  };
4915
4944
  const pg = bank.pg.map((bank2) => {
4916
- const minTransaction2 = bank2.mintransaction ?? "0.00";
4917
- const maxTransaction2 = bank2.maxtransaction ?? "0.00";
4945
+ var _a2, _b2;
4946
+ const minTransaction2 = (_a2 = bank2.mintransaction) != null ? _a2 : "0.00";
4947
+ const maxTransaction2 = (_b2 = bank2.maxtransaction) != null ? _b2 : "0.00";
4918
4948
  const { amountList: amountList2, minAmount: minAmount2, maxAmount: maxAmount2 } = setMinMax(
4919
4949
  Number(minTransaction2),
4920
4950
  Number(maxTransaction2),
@@ -4931,8 +4961,8 @@ const setOnlineBanking = (name, data, raw) => {
4931
4961
  return pg2;
4932
4962
  });
4933
4963
  const item = {
4934
- id: bank.bankindex ?? 0,
4935
- name: bank.banknameenglish ?? "",
4964
+ id: (_b = bank.bankindex) != null ? _b : 0,
4965
+ name: (_c = bank.banknameenglish) != null ? _c : "",
4936
4966
  amountList: [],
4937
4967
  min: 0,
4938
4968
  max: 0,
@@ -4946,20 +4976,22 @@ const setOnlineBanking = (name, data, raw) => {
4946
4976
  return payment;
4947
4977
  };
4948
4978
  const setAuto = (name, bankId, data, raw) => {
4979
+ var _a;
4949
4980
  if (!raw) return DefaultPayment;
4950
4981
  const type = PaymentType.auto;
4951
4982
  let tempBank = [];
4952
- const gatewayMinMax = raw.mdGatewayMinMax ?? [];
4983
+ const gatewayMinMax = (_a = raw.mdGatewayMinMax) != null ? _a : [];
4953
4984
  if (data.bank.length > 0 && raw.mdPGSelection === "1") {
4954
4985
  tempBank = data.bank.map((bank) => {
4986
+ var _a2, _b, _c;
4955
4987
  const { amountList, minAmount, maxAmount } = setMinMax(
4956
- bank.mintransaction ?? 0,
4957
- bank.maxtransaction ?? 0,
4988
+ (_a2 = bank.mintransaction) != null ? _a2 : 0,
4989
+ (_b = bank.maxtransaction) != null ? _b : 0,
4958
4990
  raw.mdBankLevelDetail.onlinepayment_min,
4959
4991
  raw.mdBankLevelDetail.onlinepayment_max
4960
4992
  );
4961
4993
  const item = {
4962
- id: bank.pgindex ?? 0,
4994
+ id: (_c = bank.pgindex) != null ? _c : 0,
4963
4995
  name: bank.bankaccountname || "",
4964
4996
  amountList,
4965
4997
  min: minAmount,
@@ -5067,10 +5099,11 @@ const modifyPaymentsProviderResponse = (result) => {
5067
5099
  const cmsList = result.cmsList;
5068
5100
  result.paymentsProvider = paymentsProvider.map((providerItem) => {
5069
5101
  providerItem.paymentList.map((paymentItem) => {
5102
+ var _a;
5070
5103
  const depositHint = cmsList.depositHint.find(
5071
5104
  (item) => item.path === `/member/deposit/${paymentItem.pathName}`
5072
5105
  );
5073
- paymentItem.hintMsg = (depositHint == null ? void 0 : depositHint.content) ?? "";
5106
+ paymentItem.hintMsg = (_a = depositHint == null ? void 0 : depositHint.content) != null ? _a : "";
5074
5107
  });
5075
5108
  return providerItem;
5076
5109
  });
@@ -5079,15 +5112,15 @@ const modifyPaymentsProviderResponse = (result) => {
5079
5112
  return result;
5080
5113
  };
5081
5114
  const getGetUserProfileResponse = (raw) => {
5115
+ var _a, _b, _c, _d, _e, _f, _g;
5082
5116
  return {
5083
- username: raw.username ?? "",
5084
- birthday: raw.mdUserDetail.dob ?? "",
5085
- dateCreated: raw.mdUserDetail.datecreated ?? "",
5086
- email: raw.mdUserDetail.email ?? "",
5087
- fullName: raw.mdUserDetail.firstname ?? "",
5088
- phoneNumber: raw.mdUserDetail.mobileno ?? "",
5089
- profilePicUrl: raw.mdUserDetail.profile_pic ?? "",
5090
- isPhoneNumVerified: raw.mdUserDetail.isVerify == "1"
5117
+ username: (_a = raw.username) != null ? _a : "",
5118
+ birthday: (_b = raw.mdUserDetail.dob) != null ? _b : "",
5119
+ dateCreated: (_c = raw.mdUserDetail.datecreated) != null ? _c : "",
5120
+ email: (_d = raw.mdUserDetail.email) != null ? _d : "",
5121
+ fullName: (_e = raw.mdUserDetail.firstname) != null ? _e : "",
5122
+ phoneNumber: (_f = raw.mdUserDetail.mobileno) != null ? _f : "",
5123
+ profilePicUrl: (_g = raw.mdUserDetail.profile_pic) != null ? _g : ""
5091
5124
  };
5092
5125
  };
5093
5126
  const modifyGetUserProfileRequest = (requests) => {
@@ -5097,10 +5130,10 @@ const modifyGetUserProfileResponse = (result) => {
5097
5130
  return result;
5098
5131
  };
5099
5132
  const getVipListResponse = (raw) => {
5100
- var _a, _b;
5133
+ var _a, _b, _c, _d;
5101
5134
  return {
5102
- list: ((_a = raw.mdGrade) == null ? void 0 : _a.map((grade) => {
5103
- var _a2, _b2, _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, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja;
5135
+ list: (_b = (_a = raw.mdGrade) == null ? void 0 : _a.map((grade) => {
5136
+ var _a2, _b2, _c2, _d2, _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, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa;
5104
5137
  return {
5105
5138
  id: grade.gradeindex,
5106
5139
  is_current_level: false,
@@ -5129,63 +5162,63 @@ const getVipListResponse = (raw) => {
5129
5162
  benefit_list: {
5130
5163
  daily: {
5131
5164
  isShow: true,
5132
- bonus: getFormattedAmount(((_b2 = (_a2 = grade.benefit) == null ? void 0 : _a2.daily) == null ? void 0 : _b2.bonus) ?? "0"),
5133
- bonus_name: ((_d = (_c = grade.benefit) == null ? void 0 : _c.daily) == null ? void 0 : _d.bonus_name) ?? "",
5134
- turnover: getFormattedAmount(((_f = (_e = grade.benefit) == null ? void 0 : _e.daily) == null ? void 0 : _f.turnover) ?? "0"),
5135
- turnover_name: ((_h = (_g = grade.benefit) == null ? void 0 : _g.daily) == null ? void 0 : _h.turnover_name) ?? ""
5165
+ bonus: getFormattedAmount((_c2 = (_b2 = (_a2 = grade.benefit) == null ? void 0 : _a2.daily) == null ? void 0 : _b2.bonus) != null ? _c2 : "0"),
5166
+ bonus_name: (_f = (_e = (_d2 = grade.benefit) == null ? void 0 : _d2.daily) == null ? void 0 : _e.bonus_name) != null ? _f : "",
5167
+ turnover: getFormattedAmount((_i = (_h = (_g = grade.benefit) == null ? void 0 : _g.daily) == null ? void 0 : _h.turnover) != null ? _i : "0"),
5168
+ turnover_name: (_l = (_k = (_j = grade.benefit) == null ? void 0 : _j.daily) == null ? void 0 : _k.turnover_name) != null ? _l : ""
5136
5169
  },
5137
5170
  monthly: {
5138
5171
  isShow: true,
5139
- bonus: getFormattedAmount(((_j = (_i = grade.benefit) == null ? void 0 : _i.monthly) == null ? void 0 : _j.bonus) ?? "0"),
5140
- bonus_name: ((_l = (_k = grade.benefit) == null ? void 0 : _k.monthly) == null ? void 0 : _l.bonus_name) ?? "",
5141
- turnover: getFormattedAmount(((_n = (_m = grade.benefit) == null ? void 0 : _m.monthly) == null ? void 0 : _n.turnover) ?? "0"),
5142
- turnover_name: ((_p = (_o = grade.benefit) == null ? void 0 : _o.monthly) == null ? void 0 : _p.turnover_name) ?? ""
5172
+ bonus: getFormattedAmount((_o = (_n = (_m = grade.benefit) == null ? void 0 : _m.monthly) == null ? void 0 : _n.bonus) != null ? _o : "0"),
5173
+ bonus_name: (_r = (_q = (_p = grade.benefit) == null ? void 0 : _p.monthly) == null ? void 0 : _q.bonus_name) != null ? _r : "",
5174
+ turnover: getFormattedAmount((_u = (_t = (_s = grade.benefit) == null ? void 0 : _s.monthly) == null ? void 0 : _t.turnover) != null ? _u : "0"),
5175
+ turnover_name: (_x = (_w = (_v = grade.benefit) == null ? void 0 : _v.monthly) == null ? void 0 : _w.turnover_name) != null ? _x : ""
5143
5176
  },
5144
5177
  weekly: {
5145
5178
  isShow: true,
5146
- bonus: getFormattedAmount(((_r = (_q = grade.benefit) == null ? void 0 : _q.weekly) == null ? void 0 : _r.bonus) ?? "0"),
5147
- bonus_name: ((_t = (_s = grade.benefit) == null ? void 0 : _s.weekly) == null ? void 0 : _t.bonus_name) ?? "",
5148
- turnover: getFormattedAmount(((_v = (_u = grade.benefit) == null ? void 0 : _u.weekly) == null ? void 0 : _v.turnover) ?? "0"),
5149
- turnover_name: ((_x = (_w = grade.benefit) == null ? void 0 : _w.weekly) == null ? void 0 : _x.turnover_name) ?? ""
5179
+ bonus: getFormattedAmount((_A = (_z = (_y = grade.benefit) == null ? void 0 : _y.weekly) == null ? void 0 : _z.bonus) != null ? _A : "0"),
5180
+ bonus_name: (_D = (_C = (_B = grade.benefit) == null ? void 0 : _B.weekly) == null ? void 0 : _C.bonus_name) != null ? _D : "",
5181
+ turnover: getFormattedAmount((_G = (_F = (_E = grade.benefit) == null ? void 0 : _E.weekly) == null ? void 0 : _F.turnover) != null ? _G : "0"),
5182
+ turnover_name: (_J = (_I = (_H = grade.benefit) == null ? void 0 : _H.weekly) == null ? void 0 : _I.turnover_name) != null ? _J : ""
5150
5183
  },
5151
5184
  upgrade: {
5152
5185
  isShow: true,
5153
- bonus: getFormattedAmount(((_z = (_y = grade.benefit) == null ? void 0 : _y.upgrade) == null ? void 0 : _z.bonus) ?? "0"),
5154
- bonus_name: ((_B = (_A = grade.benefit) == null ? void 0 : _A.upgrade) == null ? void 0 : _B.bonus_name) ?? "",
5155
- turnover: getFormattedAmount(((_D = (_C = grade.benefit) == null ? void 0 : _C.upgrade) == null ? void 0 : _D.turnover) ?? "0"),
5156
- turnover_name: ((_F = (_E = grade.benefit) == null ? void 0 : _E.upgrade) == null ? void 0 : _F.turnover_name) ?? ""
5186
+ bonus: getFormattedAmount((_M = (_L = (_K = grade.benefit) == null ? void 0 : _K.upgrade) == null ? void 0 : _L.bonus) != null ? _M : "0"),
5187
+ bonus_name: (_P = (_O = (_N = grade.benefit) == null ? void 0 : _N.upgrade) == null ? void 0 : _O.bonus_name) != null ? _P : "",
5188
+ turnover: getFormattedAmount((_S = (_R = (_Q = grade.benefit) == null ? void 0 : _Q.upgrade) == null ? void 0 : _R.turnover) != null ? _S : "0"),
5189
+ turnover_name: (_V = (_U = (_T = grade.benefit) == null ? void 0 : _T.upgrade) == null ? void 0 : _U.turnover_name) != null ? _V : ""
5157
5190
  },
5158
5191
  birthday: {
5159
5192
  isShow: true,
5160
- bonus: getFormattedAmount(((_H = (_G = grade.benefit) == null ? void 0 : _G.birthday) == null ? void 0 : _H.bonus) ?? "0"),
5161
- bonus_name: ((_J = (_I = grade.benefit) == null ? void 0 : _I.birthday) == null ? void 0 : _J.bonus_name) ?? "",
5162
- turnover: getFormattedAmount(((_L = (_K = grade.benefit) == null ? void 0 : _K.birthday) == null ? void 0 : _L.turnover) ?? "0"),
5163
- turnover_name: ((_N = (_M = grade.benefit) == null ? void 0 : _M.birthday) == null ? void 0 : _N.turnover_name) ?? ""
5193
+ bonus: getFormattedAmount((_Y = (_X = (_W = grade.benefit) == null ? void 0 : _W.birthday) == null ? void 0 : _X.bonus) != null ? _Y : "0"),
5194
+ bonus_name: (_$ = (__ = (_Z = grade.benefit) == null ? void 0 : _Z.birthday) == null ? void 0 : __.bonus_name) != null ? _$ : "",
5195
+ turnover: getFormattedAmount((_ca = (_ba = (_aa = grade.benefit) == null ? void 0 : _aa.birthday) == null ? void 0 : _ba.turnover) != null ? _ca : "0"),
5196
+ turnover_name: (_fa = (_ea = (_da = grade.benefit) == null ? void 0 : _da.birthday) == null ? void 0 : _ea.turnover_name) != null ? _fa : ""
5164
5197
  },
5165
5198
  salary_1st: {
5166
5199
  isShow: true,
5167
- bonus: getFormattedAmount(((_P = (_O = grade.benefit) == null ? void 0 : _O.salary_1st) == null ? void 0 : _P.bonus) ?? "0"),
5168
- bonus_name: ((_R = (_Q = grade.benefit) == null ? void 0 : _Q.salary_1st) == null ? void 0 : _R.bonus_name) ?? "",
5169
- turnover: getFormattedAmount(((_T = (_S = grade.benefit) == null ? void 0 : _S.salary_1st) == null ? void 0 : _T.turnover) ?? "0"),
5170
- turnover_name: ((_V = (_U = grade.benefit) == null ? void 0 : _U.salary_1st) == null ? void 0 : _V.turnover_name) ?? ""
5200
+ bonus: getFormattedAmount((_ia = (_ha = (_ga = grade.benefit) == null ? void 0 : _ga.salary_1st) == null ? void 0 : _ha.bonus) != null ? _ia : "0"),
5201
+ bonus_name: (_la = (_ka = (_ja = grade.benefit) == null ? void 0 : _ja.salary_1st) == null ? void 0 : _ka.bonus_name) != null ? _la : "",
5202
+ turnover: getFormattedAmount((_oa = (_na = (_ma = grade.benefit) == null ? void 0 : _ma.salary_1st) == null ? void 0 : _na.turnover) != null ? _oa : "0"),
5203
+ turnover_name: (_ra = (_qa = (_pa = grade.benefit) == null ? void 0 : _pa.salary_1st) == null ? void 0 : _qa.turnover_name) != null ? _ra : ""
5171
5204
  },
5172
5205
  salary_10th: {
5173
5206
  isShow: true,
5174
- bonus: getFormattedAmount(((_X = (_W = grade.benefit) == null ? void 0 : _W.salary_10th) == null ? void 0 : _X.bonus) ?? "0"),
5175
- bonus_name: ((_Z = (_Y = grade.benefit) == null ? void 0 : _Y.salary_10th) == null ? void 0 : _Z.bonus_name) ?? "",
5176
- turnover: getFormattedAmount(((_$ = (__ = grade.benefit) == null ? void 0 : __.salary_10th) == null ? void 0 : _$.turnover) ?? "0"),
5177
- turnover_name: ((_ba = (_aa = grade.benefit) == null ? void 0 : _aa.salary_10th) == null ? void 0 : _ba.turnover_name) ?? ""
5207
+ bonus: getFormattedAmount((_ua = (_ta = (_sa = grade.benefit) == null ? void 0 : _sa.salary_10th) == null ? void 0 : _ta.bonus) != null ? _ua : "0"),
5208
+ bonus_name: (_xa = (_wa = (_va = grade.benefit) == null ? void 0 : _va.salary_10th) == null ? void 0 : _wa.bonus_name) != null ? _xa : "",
5209
+ turnover: getFormattedAmount((_Aa = (_za = (_ya = grade.benefit) == null ? void 0 : _ya.salary_10th) == null ? void 0 : _za.turnover) != null ? _Aa : "0"),
5210
+ turnover_name: (_Da = (_Ca = (_Ba = grade.benefit) == null ? void 0 : _Ba.salary_10th) == null ? void 0 : _Ca.turnover_name) != null ? _Da : ""
5178
5211
  },
5179
5212
  salary_20th: {
5180
5213
  isShow: true,
5181
- bonus: getFormattedAmount(((_da = (_ca = grade.benefit) == null ? void 0 : _ca.salary_20th) == null ? void 0 : _da.bonus) ?? "0"),
5182
- bonus_name: ((_fa = (_ea = grade.benefit) == null ? void 0 : _ea.salary_20th) == null ? void 0 : _fa.bonus_name) ?? "",
5183
- turnover: getFormattedAmount(((_ha = (_ga = grade.benefit) == null ? void 0 : _ga.salary_20th) == null ? void 0 : _ha.turnover) ?? "0"),
5184
- turnover_name: ((_ja = (_ia = grade.benefit) == null ? void 0 : _ia.salary_20th) == null ? void 0 : _ja.turnover_name) ?? ""
5214
+ bonus: getFormattedAmount((_Ga = (_Fa = (_Ea = grade.benefit) == null ? void 0 : _Ea.salary_20th) == null ? void 0 : _Fa.bonus) != null ? _Ga : "0"),
5215
+ bonus_name: (_Ja = (_Ia = (_Ha = grade.benefit) == null ? void 0 : _Ha.salary_20th) == null ? void 0 : _Ia.bonus_name) != null ? _Ja : "",
5216
+ turnover: getFormattedAmount((_Ma = (_La = (_Ka = grade.benefit) == null ? void 0 : _Ka.salary_20th) == null ? void 0 : _La.turnover) != null ? _Ma : "0"),
5217
+ turnover_name: (_Pa = (_Oa = (_Na = grade.benefit) == null ? void 0 : _Na.salary_20th) == null ? void 0 : _Oa.turnover_name) != null ? _Pa : ""
5185
5218
  }
5186
5219
  }
5187
5220
  };
5188
- })) ?? [],
5221
+ })) != null ? _b : [],
5189
5222
  detail: [],
5190
5223
  bonus: {
5191
5224
  month: {
@@ -5280,12 +5313,12 @@ const getVipListResponse = (raw) => {
5280
5313
  }
5281
5314
  }
5282
5315
  },
5283
- tnc: ((_b = raw.mdVipPromo) == null ? void 0 : _b.map((item) => {
5316
+ tnc: (_d = (_c = raw.mdVipPromo) == null ? void 0 : _c.map((item) => {
5284
5317
  return {
5285
5318
  title: item.title,
5286
5319
  content: item.content
5287
5320
  };
5288
- })) ?? []
5321
+ })) != null ? _d : []
5289
5322
  };
5290
5323
  };
5291
5324
  var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
@@ -5309,11 +5342,6 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
5309
5342
  SettingCategory2["facebookPixelIdArr"] = "facebook_pixel_id_arr";
5310
5343
  SettingCategory2["googleAnalyticArr"] = "google_analytic_arr";
5311
5344
  SettingCategory2["agentLinkFirstRedirect"] = "agentlink_first_redirect";
5312
- SettingCategory2["socialFirebaseApikey"] = "social_firebase_apikey";
5313
- SettingCategory2["socialFirebaseProjectId"] = "social_firebase_projectid";
5314
- SettingCategory2["socialFirebaseAppId"] = "social_firebase_appid";
5315
- SettingCategory2["userDetailMobileValidation"] = "userdetailmobilevalidation";
5316
- SettingCategory2["allLiveChats"] = "alllivechats";
5317
5345
  return SettingCategory2;
5318
5346
  })(SettingCategory || {});
5319
5347
  const modifyVipListRequest = (requests) => {
@@ -5381,20 +5409,19 @@ const modifyVipListResponse = (result) => {
5381
5409
  const next_deposit_total = nextItem === void 0 ? "0.00" : nextItem.deposit.total;
5382
5410
  const next_turnover_total = nextItem === void 0 ? "0.00" : nextItem.turnover.total;
5383
5411
  if (i === userVipLevelIndex) {
5384
- c_deposit = `${Math.min(getStringNumericValue(deposit), getStringNumericValue(next_deposit_total))}`;
5385
- c_turnover = `${Math.min(getStringNumericValue(turnover), getStringNumericValue(next_turnover_total))}`;
5412
+ c_deposit = `${Math.min(Number(deposit), Number(next_deposit_total))}`;
5413
+ c_turnover = `${Math.min(Number(turnover), Number(next_turnover_total))}`;
5386
5414
  c_percentage = percentage;
5387
5415
  } else if (i < userVipLevelIndex) {
5388
5416
  c_deposit = item.deposit.total;
5389
5417
  c_turnover = item.turnover.total;
5390
- c_percentage = 100;
5418
+ c_percentage = 1;
5391
5419
  } else if (i > userVipLevelIndex) {
5392
5420
  c_deposit = "0.00";
5393
5421
  c_turnover = "0.00";
5394
5422
  c_percentage = 0;
5395
5423
  }
5396
- vipList.list[i] = {
5397
- ...item,
5424
+ vipList.list[i] = __spreadProps(__spreadValues({}, item), {
5398
5425
  is_current_level: i === userVipLevelIndex,
5399
5426
  deposit: {
5400
5427
  total: next_deposit_total,
@@ -5407,7 +5434,7 @@ const modifyVipListResponse = (result) => {
5407
5434
  current: c_turnover
5408
5435
  },
5409
5436
  percentage: c_percentage
5410
- };
5437
+ });
5411
5438
  }
5412
5439
  }
5413
5440
  delete result.vipStatus;
@@ -5750,7 +5777,7 @@ const getPromotionResponse = (raw) => {
5750
5777
  };
5751
5778
  }),
5752
5779
  list: raw.list.map((promo) => {
5753
- var _a, _b;
5780
+ var _a, _b, _c, _d;
5754
5781
  let time = "";
5755
5782
  if (promo.stime !== "" && promo.etime !== "") {
5756
5783
  time = `${promo.stime} - ${promo.etime}`;
@@ -5768,8 +5795,8 @@ const getPromotionResponse = (raw) => {
5768
5795
  content: promo.content,
5769
5796
  time,
5770
5797
  name: promo.title,
5771
- claimable: ((_a = promo.promo_cash) == null ? void 0 : _a.claimable) ?? false,
5772
- amountDisplay: ((_b = promo.promo_cash) == null ? void 0 : _b.display) ?? ""
5798
+ claimable: (_b = (_a = promo.promo_cash) == null ? void 0 : _a.claimable) != null ? _b : false,
5799
+ amountDisplay: (_d = (_c = promo.promo_cash) == null ? void 0 : _c.display) != null ? _d : ""
5773
5800
  };
5774
5801
  }).sort((a, b) => {
5775
5802
  if (a.claimable && !b.claimable) return -1;
@@ -5785,19 +5812,19 @@ const modifyPromotionResponse = (result) => {
5785
5812
  return result;
5786
5813
  };
5787
5814
  const getGetSettingResponse = (raw) => {
5788
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
5815
+ 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;
5789
5816
  let vipCalculation = 4;
5790
5817
  if (raw.vipcalculation) {
5791
5818
  vipCalculation = Number(raw.vipcalculation);
5792
5819
  }
5793
- let extraLiveChatList = [];
5820
+ let livechatList = [];
5794
5821
  if (raw.extralivechat) {
5795
- extraLiveChatList = JSON.parse(raw.extralivechat);
5822
+ livechatList = JSON.parse(raw.extralivechat);
5796
5823
  }
5797
5824
  return {
5798
5825
  vipCalculation,
5799
- livechat: raw.livechat ?? "",
5800
- extraLiveChatList: extraLiveChatList.filter((item) => item.status == 1).map((item) => {
5826
+ livechat: (_a = raw.livechat) != null ? _a : "",
5827
+ livechatList: livechatList.filter((item) => item.status == 1).map((item) => {
5801
5828
  let imgUrl = item.imgname;
5802
5829
  if (imgUrl.slice(-4) === ".png") {
5803
5830
  imgUrl = item.imgname.slice(0, -4);
@@ -5811,7 +5838,7 @@ const getGetSettingResponse = (raw) => {
5811
5838
  }),
5812
5839
  mobileValidate: raw.mobilevalidate ? raw.mobilevalidate === "1" : false,
5813
5840
  withdrawTAC: raw.withdrawtac ? raw.withdrawtac === "1" : false,
5814
- imageDomain: raw.imagedomain ?? "",
5841
+ imageDomain: (_b = raw.imagedomain) != null ? _b : "",
5815
5842
  withdrawalCodeType: {
5816
5843
  email: (Number(raw.withdrawalcode) & 1) > 0,
5817
5844
  code: (Number(raw.withdrawalcode) & 2) > 0,
@@ -5820,36 +5847,26 @@ const getGetSettingResponse = (raw) => {
5820
5847
  withdrawAlipay: raw.withdrawalipay === "1",
5821
5848
  crypto: raw.crypto === "1",
5822
5849
  forgetUser: {
5823
- email: ((_a = raw.forgetuser) == null ? void 0 : _a.email) ?? false,
5824
- sms: ((_b = raw.forgetuser) == null ? void 0 : _b.sms) ?? false
5850
+ email: (_d = (_c = raw.forgetuser) == null ? void 0 : _c.email) != null ? _d : false,
5851
+ sms: (_f = (_e = raw.forgetuser) == null ? void 0 : _e.sms) != null ? _f : false
5825
5852
  },
5826
5853
  loginCaptcha: raw.logincaptcha ? raw.logincaptcha === "1" : false,
5827
5854
  registerCaptcha: raw.registercaptcha ? raw.registercaptcha === "1" : false,
5828
- telegramAuthDomain: raw.telegramauthdomain ?? "",
5829
- telegramBotId: raw.telegrambotid ?? "",
5830
- whatsappRegister: raw.registerwa ?? "",
5855
+ telegramAuthDomain: (_g = raw.telegramauthdomain) != null ? _g : "",
5856
+ telegramBotId: (_h = raw.telegrambotid) != null ? _h : "",
5857
+ whatsappRegister: (_i = raw.registerwa) != null ? _i : "",
5831
5858
  contactUsSetting: {
5832
- facebook: ((_c = raw.contact_us_setting) == null ? void 0 : _c.facebook) ?? "",
5833
- whatsapp: ((_d = raw.contact_us_setting) == null ? void 0 : _d.whatsapp) ?? "",
5834
- linktr: ((_e = raw.contact_us_setting) == null ? void 0 : _e.linktr) ?? "",
5835
- telegram: ((_f = raw.contact_us_setting) == null ? void 0 : _f.telegram) ?? "",
5836
- website: ((_g = raw.contact_us_setting) == null ? void 0 : _g.website) ?? "",
5837
- youtube: ((_h = raw.contact_us_setting) == null ? void 0 : _h.youtube) ?? ""
5859
+ facebook: (_k = (_j = raw.contact_us_setting) == null ? void 0 : _j.facebook) != null ? _k : "",
5860
+ whatsapp: (_m = (_l = raw.contact_us_setting) == null ? void 0 : _l.whatsapp) != null ? _m : "",
5861
+ linktr: (_o = (_n = raw.contact_us_setting) == null ? void 0 : _n.linktr) != null ? _o : "",
5862
+ telegram: (_q = (_p = raw.contact_us_setting) == null ? void 0 : _p.telegram) != null ? _q : "",
5863
+ website: (_s = (_r = raw.contact_us_setting) == null ? void 0 : _r.website) != null ? _s : "",
5864
+ youtube: (_u = (_t = raw.contact_us_setting) == null ? void 0 : _t.youtube) != null ? _u : ""
5838
5865
  },
5839
- facebookPixelId: raw.facebookpixelid ?? "",
5840
- facebookPixelIdArr: raw.facebook_pixel_id_arr ?? [],
5841
- googleAnalyticArr: raw.google_analytic_arr ?? [],
5842
- agentLinkRedirectPath: raw.agentlink_first_redirect ?? "",
5843
- socialFirebaseApikey: raw.social_firebase_apikey ?? "",
5844
- socialFirebaseProjectId: raw.social_firebase_projectid ?? "",
5845
- socialFirebaseAppId: raw.social_firebase_appid ?? "",
5846
- userDetailMobileValidation: raw.userdetailmobilevalidation ? raw.userdetailmobilevalidation === "1" : false,
5847
- liveChatList: ((_i = raw.alllivechats) == null ? void 0 : _i.map((item) => {
5848
- return {
5849
- name: item.name ?? "",
5850
- url: item.url ?? ""
5851
- };
5852
- })) ?? []
5866
+ facebookPixelId: (_v = raw.facebookpixelid) != null ? _v : "",
5867
+ facebookPixelIdArr: (_w = raw.facebook_pixel_id_arr) != null ? _w : [],
5868
+ googleAnalyticArr: (_x = raw.google_analytic_arr) != null ? _x : [],
5869
+ agentLinkRedirectPath: (_y = raw.agentlink_first_redirect) != null ? _y : ""
5853
5870
  };
5854
5871
  };
5855
5872
  const modifyGetSettingRequest = (requests) => {
@@ -5859,8 +5876,8 @@ const modifyGetSettingResponse = (result) => {
5859
5876
  return result;
5860
5877
  };
5861
5878
  const getGetCountryMobileResponse = (raw) => {
5862
- var _a;
5863
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5879
+ var _a, _b;
5880
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5864
5881
  return {
5865
5882
  code: item.area_code,
5866
5883
  regex: item.regex,
@@ -5868,7 +5885,7 @@ const getGetCountryMobileResponse = (raw) => {
5868
5885
  minLength: item.minlength,
5869
5886
  maxLength: item.maxlength
5870
5887
  };
5871
- })) ?? [];
5888
+ })) != null ? _b : [];
5872
5889
  };
5873
5890
  const modifyGetCountryMobileRequest = (requests) => {
5874
5891
  return requests;
@@ -5907,14 +5924,14 @@ const modifyMainWalletResponse = (result) => {
5907
5924
  return result;
5908
5925
  };
5909
5926
  const getGetLanguageSettingResponse = (raw) => {
5910
- var _a;
5911
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5927
+ var _a, _b;
5928
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5912
5929
  return {
5913
5930
  name: item.title,
5914
5931
  code: item.code,
5915
5932
  iconUrl: item.flag_icon
5916
5933
  };
5917
- })) ?? [];
5934
+ })) != null ? _b : [];
5918
5935
  };
5919
5936
  const modifyGetLanguageSettingRequest = (requests) => {
5920
5937
  return requests;
@@ -5958,14 +5975,14 @@ const modifyGetfourDimensionDataResponse = (result) => {
5958
5975
  return result;
5959
5976
  };
5960
5977
  const getGetCompanyResponse = (raw) => {
5961
- var _a;
5962
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.company_status == 1).map((item) => {
5978
+ var _a, _b;
5979
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.company_status == 1).map((item) => {
5963
5980
  return {
5964
5981
  id: item.company_id,
5965
5982
  name: item.company_name,
5966
5983
  date: []
5967
5984
  };
5968
- })) ?? [];
5985
+ })) != null ? _b : [];
5969
5986
  };
5970
5987
  const modifyGetCompanyRequest = (requests) => {
5971
5988
  return requests;
@@ -5988,16 +6005,16 @@ const modifyGetCompanyResponse = (result) => {
5988
6005
  return result;
5989
6006
  };
5990
6007
  const getSearchResultDateResponse = (raw) => {
5991
- var _a;
5992
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
5993
- var _a2;
6008
+ var _a, _b;
6009
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
6010
+ var _a2, _b2;
5994
6011
  return {
5995
6012
  id: item.key,
5996
- date: ((_a2 = item.draw_date) == null ? void 0 : _a2.map((item2) => {
6013
+ date: (_b2 = (_a2 = item.draw_date) == null ? void 0 : _a2.map((item2) => {
5997
6014
  return convertUnixTimestampToDateString(item2.draw_tmactive);
5998
- })) ?? []
6015
+ })) != null ? _b2 : []
5999
6016
  };
6000
- })) ?? [];
6017
+ })) != null ? _b : [];
6001
6018
  };
6002
6019
  function convertUnixTimestampToDateString(unixTimestamp) {
6003
6020
  const date = new Date(unixTimestamp * 1e3);
@@ -6013,20 +6030,20 @@ const modifySearchResultDateResponse = (result) => {
6013
6030
  return result;
6014
6031
  };
6015
6032
  const getSearchHotResponse = (raw) => {
6016
- var _a;
6017
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
6018
- var _a2;
6033
+ var _a, _b;
6034
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
6035
+ var _a2, _b2;
6019
6036
  return {
6020
6037
  id: item.company_id,
6021
6038
  name: item.company_name,
6022
- list: ((_a2 = item.drawCount) == null ? void 0 : _a2.map((item2) => {
6039
+ list: (_b2 = (_a2 = item.drawCount) == null ? void 0 : _a2.map((item2) => {
6023
6040
  return {
6024
6041
  combination: item2.combination_combination,
6025
6042
  total: item2.total
6026
6043
  };
6027
- })) ?? []
6044
+ })) != null ? _b2 : []
6028
6045
  };
6029
- })) ?? [];
6046
+ })) != null ? _b : [];
6030
6047
  };
6031
6048
  const modifySearchHotRequest = (requests) => {
6032
6049
  const shIndex = requests.findIndex((item) => item.name === Api.searchHot);
@@ -6118,7 +6135,9 @@ const modifySearchByDateResponse = (result) => {
6118
6135
  return result;
6119
6136
  };
6120
6137
  const getUpcomingMatchesResponse = (raw) => {
6121
- return raw.data ? raw.data.filter((item) => !isTimeExpired(item.matchDate, 120)).map((item) => {
6138
+ var _a;
6139
+ return raw.data ? (_a = raw.data.filter((item) => !isTimeExpired(item.matchDate, 120)).map((item) => {
6140
+ var _a2, _b;
6122
6141
  return {
6123
6142
  id: item.id,
6124
6143
  date: formatToISODateTime(convertToUserTimeZone(item.matchDate)),
@@ -6134,17 +6153,17 @@ const getUpcomingMatchesResponse = (raw) => {
6134
6153
  away: {
6135
6154
  id: item.awayid,
6136
6155
  name: item.away,
6137
- score: item.AwayScore ?? 0,
6156
+ score: (_a2 = item.AwayScore) != null ? _a2 : 0,
6138
6157
  logo_url: item.awayLogo
6139
6158
  },
6140
6159
  home: {
6141
6160
  id: item.homeid,
6142
6161
  name: item.home,
6143
- score: item.HomeScore ?? 0,
6162
+ score: (_b = item.HomeScore) != null ? _b : 0,
6144
6163
  logo_url: item.homeLogo
6145
6164
  }
6146
6165
  };
6147
- }) ?? [] : [];
6166
+ })) != null ? _a : [] : [];
6148
6167
  };
6149
6168
  const modifyUpcomingMatchesRequest = (requests) => {
6150
6169
  return requests;
@@ -6153,10 +6172,11 @@ const modifyUpcomingMatchesResponse = (result) => {
6153
6172
  return result;
6154
6173
  };
6155
6174
  const getDepositResponse = (raw) => {
6175
+ var _a, _b;
6156
6176
  return {
6157
6177
  status: raw.status == 1,
6158
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6159
- paymentUrl: raw.urlpayment ?? ""
6178
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6179
+ paymentUrl: (_b = raw.urlpayment) != null ? _b : ""
6160
6180
  };
6161
6181
  };
6162
6182
  const modifyDepositRequest = (requests) => {
@@ -6166,9 +6186,10 @@ const modifyDepositResponse = (result) => {
6166
6186
  return result;
6167
6187
  };
6168
6188
  const getApplyVipBonusResponse = (raw) => {
6189
+ var _a;
6169
6190
  return {
6170
6191
  status: raw.status == 1,
6171
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6192
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6172
6193
  flag: raw.flag
6173
6194
  };
6174
6195
  };
@@ -6179,61 +6200,62 @@ const modifyApplyVipBonusResponse = (result) => {
6179
6200
  return result;
6180
6201
  };
6181
6202
  const getGetBankCardDataResponse = (raw) => {
6182
- var _a, _b, _c, _d, _e;
6203
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
6183
6204
  return {
6184
- bankCard: ((_a = raw.bankCard) == null ? void 0 : _a.map((item) => {
6185
- var _a2, _b2;
6205
+ bankCard: (_b = (_a = raw.bankCard) == null ? void 0 : _a.map((item) => {
6206
+ var _a2, _b2, _c2, _d2;
6186
6207
  return {
6187
6208
  bankIndex: item.bankindex,
6188
6209
  bankProvince: {
6189
6210
  id: item.bankprovince,
6190
- desc: ((_b2 = (_a2 = raw.province) == null ? void 0 : _a2.find(
6211
+ desc: (_c2 = (_b2 = (_a2 = raw.province) == null ? void 0 : _a2.find(
6191
6212
  (provinceItem) => provinceItem.provinceindex == item.bankprovince
6192
- )) == null ? void 0 : _b2.label) ?? ""
6213
+ )) == null ? void 0 : _b2.label) != null ? _c2 : ""
6193
6214
  },
6194
6215
  bankName: item.banknamesimplified,
6195
6216
  bankAccountNo: item.bankaccountno,
6196
- bankUrl: item.bankaddress ?? "",
6217
+ bankUrl: (_d2 = item.bankaddress) != null ? _d2 : "",
6197
6218
  imgUrl: item.img,
6198
6219
  countryIndex: item.countryindex
6199
6220
  };
6200
- })) ?? [],
6201
- bankList: ((_b = raw.bankList) == null ? void 0 : _b.map((item) => {
6221
+ })) != null ? _b : [],
6222
+ bankList: (_d = (_c = raw.bankList) == null ? void 0 : _c.map((item) => {
6223
+ var _a2;
6202
6224
  return {
6203
6225
  bankIndex: item.bankindex,
6204
6226
  bankType: item.bank_type,
6205
6227
  bankName: item.banknamesimplified,
6206
- bankUrl: item.address ?? "",
6228
+ bankUrl: (_a2 = item.address) != null ? _a2 : "",
6207
6229
  swiftCode: item.swiftcode,
6208
6230
  showBind: item.show_bind === "1",
6209
6231
  showDeposit: item.show_deposit === "1",
6210
6232
  countryIndex: item.countryindex
6211
6233
  };
6212
- })) ?? [],
6213
- province: ((_c = raw.province) == null ? void 0 : _c.map((item) => {
6234
+ })) != null ? _d : [],
6235
+ province: (_f = (_e = raw.province) == null ? void 0 : _e.map((item) => {
6214
6236
  return {
6215
6237
  index: item.provinceindex,
6216
6238
  label: item.label,
6217
6239
  countryIndex: item.countryindex
6218
6240
  };
6219
- })) ?? [],
6220
- cryptoAccount: ((_d = raw.mdAccountCrypto) == null ? void 0 : _d.map((item) => {
6241
+ })) != null ? _f : [],
6242
+ cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
6221
6243
  return {
6222
6244
  id: item.crypto_id,
6223
6245
  type: item.type,
6224
6246
  name: item.crypto_name,
6225
6247
  address: item.address
6226
6248
  };
6227
- })) ?? [],
6249
+ })) != null ? _h : [],
6228
6250
  cryptoDetail: {
6229
6251
  limit: raw.mdCryptoDetail.cryptolimit,
6230
- protocol: ((_e = raw.mdCryptoDetail.cryptoprotocol) == null ? void 0 : _e.map((item) => {
6252
+ protocol: (_j = (_i = raw.mdCryptoDetail.cryptoprotocol) == null ? void 0 : _i.map((item) => {
6231
6253
  return {
6232
6254
  id: item.id,
6233
6255
  name: item.name,
6234
6256
  status: item.status == "1"
6235
6257
  };
6236
- })) ?? []
6258
+ })) != null ? _j : []
6237
6259
  },
6238
6260
  alipayData: raw.subWithdrawalAlipayData,
6239
6261
  user: {
@@ -6270,9 +6292,10 @@ const modifyWithdrawalGetResponse = (result) => {
6270
6292
  return result;
6271
6293
  };
6272
6294
  const getBaseResponse = (raw) => {
6295
+ var _a;
6273
6296
  return {
6274
6297
  status: raw.status == 1,
6275
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? ""
6298
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : ""
6276
6299
  };
6277
6300
  };
6278
6301
  const getWithdrawResponse = (raw) => {
@@ -6309,25 +6332,25 @@ var TransactionMethod = /* @__PURE__ */ ((TransactionMethod2) => {
6309
6332
  return TransactionMethod2;
6310
6333
  })(TransactionMethod || {});
6311
6334
  const getTransactionReportResponse = (raw) => {
6312
- var _a, _b, _c, _d, _e, _f;
6335
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
6313
6336
  return {
6314
- statusMode: ((_a = raw.subStatusModes) == null ? void 0 : _a.map((item) => {
6337
+ statusMode: (_b = (_a = raw.subStatusModes) == null ? void 0 : _a.map((item) => {
6315
6338
  return {
6316
6339
  key: item.key,
6317
6340
  value: item.value
6318
6341
  };
6319
- })) ?? [],
6320
- transactionMethod: ((_b = raw.subTransactionMethods) == null ? void 0 : _b.map((item) => {
6342
+ })) != null ? _b : [],
6343
+ transactionMethod: (_d = (_c = raw.subTransactionMethods) == null ? void 0 : _c.map((item) => {
6321
6344
  return {
6322
6345
  key: item.key,
6323
6346
  value: item.value
6324
6347
  };
6325
- })) ?? [],
6348
+ })) != null ? _d : [],
6326
6349
  data: {
6327
- currentPage: ((_c = raw.mdCashLedgers) == null ? void 0 : _c.current_page) ?? 0,
6328
- lastPage: ((_d = raw.mdCashLedgers) == null ? void 0 : _d.last_page) ?? 0,
6329
- data: ((_f = (_e = raw.mdCashLedgers) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
6330
- var _a2, _b2;
6350
+ currentPage: (_f = (_e = raw.mdCashLedgers) == null ? void 0 : _e.current_page) != null ? _f : 0,
6351
+ lastPage: (_h = (_g = raw.mdCashLedgers) == null ? void 0 : _g.last_page) != null ? _h : 0,
6352
+ data: (_k = (_j = (_i = raw.mdCashLedgers) == null ? void 0 : _i.data) == null ? void 0 : _j.map((item) => {
6353
+ var _a2, _b2, _c2;
6331
6354
  return {
6332
6355
  transactionIndex: item.ledgerindex,
6333
6356
  transactionInfo: {
@@ -6338,14 +6361,14 @@ const getTransactionReportResponse = (raw) => {
6338
6361
  statusInfo: {
6339
6362
  id: item.status,
6340
6363
  value: item.status == 1,
6341
- desc: ((_b2 = (_a2 = raw.subStatusModes) == null ? void 0 : _a2.find((subItem) => subItem.key === item.status)) == null ? void 0 : _b2.value) ?? ""
6364
+ desc: (_c2 = (_b2 = (_a2 = raw.subStatusModes) == null ? void 0 : _a2.find((subItem) => subItem.key === item.status)) == null ? void 0 : _b2.value) != null ? _c2 : ""
6342
6365
  },
6343
6366
  amount: getFormattedAmount(item.amount),
6344
6367
  dateTime: item.ledgerdatetime,
6345
6368
  reason: item.reasonsimplified,
6346
6369
  method: item.fundmethod
6347
6370
  };
6348
- })) ?? []
6371
+ })) != null ? _k : []
6349
6372
  }
6350
6373
  };
6351
6374
  };
@@ -6398,22 +6421,23 @@ const modifyChangePasswordResponse = (result) => {
6398
6421
  return result;
6399
6422
  };
6400
6423
  const getWalletResponse = (raw) => {
6401
- return (raw == null ? void 0 : raw.map((item) => {
6402
- var _a;
6424
+ var _a;
6425
+ return (_a = raw == null ? void 0 : raw.map((item) => {
6426
+ var _a2, _b, _c, _d;
6403
6427
  return {
6404
- activeCom: ((_a = item.active_com) == null ? void 0 : _a.map((subItem) => {
6428
+ activeCom: (_b = (_a2 = item.active_com) == null ? void 0 : _a2.map((subItem) => {
6405
6429
  return {
6406
6430
  code: subItem.code,
6407
6431
  name: subItem.name,
6408
6432
  categoryId: subItem.category_id,
6409
6433
  maintenance: subItem.maintenance === 1
6410
6434
  };
6411
- })) ?? [],
6435
+ })) != null ? _b : [],
6412
6436
  platformWallet: getFormattedAmount(item.platformwallet),
6413
- com: item.com ?? "",
6414
- maintenance: item.maintenance ?? false
6437
+ com: (_c = item.com) != null ? _c : "",
6438
+ maintenance: (_d = item.maintenance) != null ? _d : false
6415
6439
  };
6416
- })) ?? [];
6440
+ })) != null ? _a : [];
6417
6441
  };
6418
6442
  const modifyWalletRequest = (requests) => {
6419
6443
  return requests;
@@ -6422,9 +6446,10 @@ const modifyWalletResponse = (result) => {
6422
6446
  return result;
6423
6447
  };
6424
6448
  const getGetEventlistResponse = (raw) => {
6449
+ var _a;
6425
6450
  return {
6426
6451
  status: raw.status == 1,
6427
- message: raw.message ?? "",
6452
+ message: (_a = raw.message) != null ? _a : "",
6428
6453
  data: raw.data.map((item) => {
6429
6454
  return {
6430
6455
  id: item.id,
@@ -6443,16 +6468,16 @@ const modifyGetEventlistResponse = (result) => {
6443
6468
  return result;
6444
6469
  };
6445
6470
  const getGetEventTokenResponse = (raw) => {
6446
- var _a;
6471
+ var _a, _b, _c;
6447
6472
  return {
6448
6473
  status: raw.status == 1,
6449
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6450
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
6474
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6475
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
6451
6476
  return {
6452
6477
  id: item.id,
6453
6478
  tokenAmount: item.token_amount
6454
6479
  };
6455
- })) ?? []
6480
+ })) != null ? _c : []
6456
6481
  };
6457
6482
  };
6458
6483
  const modifyGetEventTokenRequest = (requests) => {
@@ -6462,12 +6487,13 @@ const modifyGetEventTokenResponse = (result) => {
6462
6487
  return result;
6463
6488
  };
6464
6489
  const getGetExtraGameResponse = (raw) => {
6490
+ var _a, _b, _c, _d;
6465
6491
  return {
6466
6492
  status: raw.status == 1,
6467
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6468
- loginId: raw.loginId ?? "",
6469
- password: raw.password ?? "",
6470
- downloadUrl: raw.download_link ?? ""
6493
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6494
+ loginId: (_b = raw.loginId) != null ? _b : "",
6495
+ password: (_c = raw.password) != null ? _c : "",
6496
+ downloadUrl: (_d = raw.download_link) != null ? _d : ""
6471
6497
  };
6472
6498
  };
6473
6499
  const modifyGetExtraGameRequest = (requests) => {
@@ -6477,28 +6503,29 @@ const modifyGetExtraGameResponse = (result) => {
6477
6503
  return result;
6478
6504
  };
6479
6505
  const getMailBoxResponse = (raw) => {
6506
+ var _a, _b;
6480
6507
  return {
6481
- mail: (raw == null ? void 0 : raw.filter((item) => item.type == "1").map((item) => {
6482
- var _a, _b;
6508
+ mail: (_a = raw == null ? void 0 : raw.filter((item) => item.type == "1").map((item) => {
6509
+ var _a2, _b2, _c, _d;
6483
6510
  return {
6484
6511
  messageId: item.msgindex,
6485
6512
  unread: item.status == "0",
6486
6513
  date: convertToUserTimeZone(item.cdate),
6487
- title: ((_a = item.account_message_content) == null ? void 0 : _a.subject) ?? "",
6488
- content: ((_b = item.account_message_content) == null ? void 0 : _b.content) ?? ""
6514
+ title: (_b2 = (_a2 = item.account_message_content) == null ? void 0 : _a2.subject) != null ? _b2 : "",
6515
+ content: (_d = (_c = item.account_message_content) == null ? void 0 : _c.content) != null ? _d : ""
6489
6516
  };
6490
- })) ?? [],
6491
- prize: (raw == null ? void 0 : raw.filter((item) => item.type == "2").map((item) => {
6492
- var _a, _b;
6517
+ })) != null ? _a : [],
6518
+ prize: (_b = raw == null ? void 0 : raw.filter((item) => item.type == "2").map((item) => {
6519
+ var _a2, _b2, _c, _d, _e;
6493
6520
  return {
6494
6521
  messageId: item.msgindex,
6495
6522
  unread: item.status == "0",
6496
6523
  date: convertToUserTimeZone(item.cdate),
6497
- title: ((_a = item.account_message_content) == null ? void 0 : _a.subject) ?? "",
6498
- content: ((_b = item.account_message_content) == null ? void 0 : _b.content) ?? "",
6499
- amount: parseFloat(item.amount ?? "0")
6524
+ title: (_b2 = (_a2 = item.account_message_content) == null ? void 0 : _a2.subject) != null ? _b2 : "",
6525
+ content: (_d = (_c = item.account_message_content) == null ? void 0 : _c.content) != null ? _d : "",
6526
+ amount: parseFloat((_e = item.amount) != null ? _e : "0")
6500
6527
  };
6501
- })) ?? []
6528
+ })) != null ? _b : []
6502
6529
  };
6503
6530
  };
6504
6531
  const modifyMailBoxRequest = (requests) => {
@@ -6868,9 +6895,10 @@ const modifyGetRewardReferralResponse = (result) => {
6868
6895
  return result;
6869
6896
  };
6870
6897
  const getSubmitWithdrawValidateResponse = (raw) => {
6898
+ var _a;
6871
6899
  return {
6872
6900
  status: raw.status == 1,
6873
- message: raw.errormessage ?? ""
6901
+ message: (_a = raw.errormessage) != null ? _a : ""
6874
6902
  };
6875
6903
  };
6876
6904
  const modifySubmitWithdrawValidateRequest = (requests) => {
@@ -6900,9 +6928,10 @@ const modifyGetDepositPromotionResponse = (result) => {
6900
6928
  return result;
6901
6929
  };
6902
6930
  const getGetInviteRewardClaimResponse = (raw) => {
6931
+ var _a;
6903
6932
  return {
6904
6933
  status: raw.status == 1,
6905
- message: raw.msg ?? ""
6934
+ message: (_a = raw.msg) != null ? _a : ""
6906
6935
  };
6907
6936
  };
6908
6937
  const modifyGetInviteRewardClaimRequest = (requests) => {
@@ -6912,9 +6941,10 @@ const modifyGetInviteRewardClaimResponse = (result) => {
6912
6941
  return result;
6913
6942
  };
6914
6943
  const getGetTopupRewardClaimResponse = (raw) => {
6944
+ var _a;
6915
6945
  return {
6916
6946
  status: raw.status == 1,
6917
- message: raw.msg ?? ""
6947
+ message: (_a = raw.msg) != null ? _a : ""
6918
6948
  };
6919
6949
  };
6920
6950
  const modifyGetTopupRewardClaimRequest = (requests) => {
@@ -6924,9 +6954,10 @@ const modifyGetTopupRewardClaimResponse = (result) => {
6924
6954
  return result;
6925
6955
  };
6926
6956
  const getGetTurnOverRewardClaimResponse = (raw) => {
6957
+ var _a;
6927
6958
  return {
6928
6959
  status: raw.status == 1,
6929
- message: raw.msg ?? ""
6960
+ message: (_a = raw.msg) != null ? _a : ""
6930
6961
  };
6931
6962
  };
6932
6963
  const modifyGetTurnOverRewardClaimRequest = (requests) => {
@@ -7040,15 +7071,15 @@ const modifySubmitForgetPasswordResponse = (result) => {
7040
7071
  return result;
7041
7072
  };
7042
7073
  const getGetImageResponse = (raw) => {
7043
- var _a, _b, _c, _d, _e;
7074
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7044
7075
  return {
7045
7076
  status: raw.status == 1,
7046
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7047
- default: ((_a = raw.data) == null ? void 0 : _a.default) ?? [],
7048
- online: ((_b = raw.data) == null ? void 0 : _b.online) ?? [],
7049
- mycard: ((_c = raw.data) == null ? void 0 : _c.mycard) ?? [],
7050
- qrcode: ((_d = raw.data) == null ? void 0 : _d.qrcode) ?? [],
7051
- personal: ((_e = raw.data) == null ? void 0 : _e.personal) ?? []
7077
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7078
+ default: (_c = (_b = raw.data) == null ? void 0 : _b.default) != null ? _c : [],
7079
+ online: (_e = (_d = raw.data) == null ? void 0 : _d.online) != null ? _e : [],
7080
+ mycard: (_g = (_f = raw.data) == null ? void 0 : _f.mycard) != null ? _g : [],
7081
+ qrcode: (_i = (_h = raw.data) == null ? void 0 : _h.qrcode) != null ? _i : [],
7082
+ personal: (_k = (_j = raw.data) == null ? void 0 : _j.personal) != null ? _k : []
7052
7083
  };
7053
7084
  };
7054
7085
  const modifyGetImageRequest = (requests) => {
@@ -7220,14 +7251,14 @@ const modifyReadMailResponse = (result) => {
7220
7251
  return result;
7221
7252
  };
7222
7253
  const getCheckRedpacketValidateResponse = (raw) => {
7223
- var _a;
7254
+ var _a, _b, _c, _d, _e, _f;
7224
7255
  return {
7225
7256
  status: raw.status == 1,
7226
- message: raw.status == 1 ? raw.message ?? "" : raw.errormessage ?? "",
7227
- desc: ((_a = raw.data) == null ? void 0 : _a.bottom_description_setting) ?? "",
7257
+ message: raw.status == 1 ? (_a = raw.message) != null ? _a : "" : (_b = raw.errormessage) != null ? _b : "",
7258
+ desc: (_d = (_c = raw.data) == null ? void 0 : _c.bottom_description_setting) != null ? _d : "",
7228
7259
  unfinishGame: raw.checkgame.unfinishgame == 1,
7229
- ledgerIndex: raw.checkgame.ledgerindex ?? 0,
7230
- amount: raw.checkgame.amount ?? ""
7260
+ ledgerIndex: (_e = raw.checkgame.ledgerindex) != null ? _e : 0,
7261
+ amount: (_f = raw.checkgame.amount) != null ? _f : ""
7231
7262
  };
7232
7263
  };
7233
7264
  const modifyCheckRedpacketValidateRequest = (requests) => {
@@ -7246,10 +7277,11 @@ const modifyRequestTacCodeResponse = (result) => {
7246
7277
  return result;
7247
7278
  };
7248
7279
  const getGetUsernameByReferResponse = (raw) => {
7280
+ var _a;
7249
7281
  return {
7250
7282
  status: raw.status == 1,
7251
7283
  message: raw.message,
7252
- user: raw.user ?? ""
7284
+ user: (_a = raw.user) != null ? _a : ""
7253
7285
  };
7254
7286
  };
7255
7287
  const modifyGetUsernameByReferRequest = (requests) => {
@@ -7259,10 +7291,11 @@ const modifyGetUsernameByReferResponse = (result) => {
7259
7291
  return result;
7260
7292
  };
7261
7293
  const getApplyPromoResponse = (raw) => {
7294
+ var _a, _b;
7262
7295
  return {
7263
7296
  status: raw.status == 1,
7264
- message: raw.msg ?? "",
7265
- amount: raw.amount ?? ""
7297
+ message: (_a = raw.msg) != null ? _a : "",
7298
+ amount: (_b = raw.amount) != null ? _b : ""
7266
7299
  };
7267
7300
  };
7268
7301
  const modifyApplyPromoRequest = (requests) => {
@@ -7281,11 +7314,11 @@ const modifyApplyRedpacketResponse = (result) => {
7281
7314
  return result;
7282
7315
  };
7283
7316
  const getApplySignInResponse = (raw) => {
7284
- var _a;
7317
+ var _a, _b, _c;
7285
7318
  return {
7286
7319
  status: raw.status == 1,
7287
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7288
- dayStreak: ((_a = raw.data) == null ? void 0 : _a.continuousDay) ?? 0
7320
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7321
+ dayStreak: (_c = (_b = raw.data) == null ? void 0 : _b.continuousDay) != null ? _c : 0
7289
7322
  };
7290
7323
  };
7291
7324
  const modifyApplySignInRequest = (requests) => {
@@ -7295,22 +7328,22 @@ const modifyApplySignInResponse = (result) => {
7295
7328
  return result;
7296
7329
  };
7297
7330
  const getGetCountryResponse = (raw) => {
7298
- var _a;
7331
+ var _a, _b, _c;
7299
7332
  return {
7300
7333
  status: raw.status == 1,
7301
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7302
- countryList: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
7303
- var _a2, _b;
7334
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7335
+ countryList: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
7336
+ var _a2, _b2, _c2, _d, _e;
7304
7337
  return {
7305
7338
  countryIndex: item.countryindex,
7306
- currencyName: item.currency_name ?? "",
7339
+ currencyName: (_a2 = item.currency_name) != null ? _a2 : "",
7307
7340
  label: item.label,
7308
7341
  currencyRate: {
7309
- depositCurrencyRate: ((_a2 = item.currency_rate) == null ? void 0 : _a2.currency_rate_deposit) ?? "",
7310
- withdrawCurrencyRate: ((_b = item.currency_rate) == null ? void 0 : _b.currency_rate_withdraw) ?? ""
7342
+ depositCurrencyRate: (_c2 = (_b2 = item.currency_rate) == null ? void 0 : _b2.currency_rate_deposit) != null ? _c2 : "",
7343
+ withdrawCurrencyRate: (_e = (_d = item.currency_rate) == null ? void 0 : _d.currency_rate_withdraw) != null ? _e : ""
7311
7344
  }
7312
7345
  };
7313
- })) ?? []
7346
+ })) != null ? _c : []
7314
7347
  };
7315
7348
  };
7316
7349
  const modifyGetCountryRequest = (requests) => {
@@ -7320,9 +7353,10 @@ const modifyGetCountryResponse = (result) => {
7320
7353
  return result;
7321
7354
  };
7322
7355
  const getSubmitGiftCodeResponse = (raw) => {
7356
+ var _a;
7323
7357
  return {
7324
7358
  status: raw.status == 1,
7325
- message: raw.msg ?? ""
7359
+ message: (_a = raw.msg) != null ? _a : ""
7326
7360
  };
7327
7361
  };
7328
7362
  const modifySubmitGiftCodeRequest = (requests) => {
@@ -7332,12 +7366,13 @@ const modifySubmitGiftCodeResponse = (result) => {
7332
7366
  return result;
7333
7367
  };
7334
7368
  const getPlayGameResponse = (raw) => {
7369
+ var _a, _b, _c, _d;
7335
7370
  return {
7336
7371
  status: raw.status == 1,
7337
- code: raw.code ?? 0,
7338
- message: raw.msg ?? "",
7339
- form: raw.form ?? "",
7340
- gameUrl: raw.data ?? ""
7372
+ code: (_a = raw.code) != null ? _a : 0,
7373
+ message: (_b = raw.msg) != null ? _b : "",
7374
+ form: (_c = raw.form) != null ? _c : "",
7375
+ gameUrl: (_d = raw.data) != null ? _d : ""
7341
7376
  };
7342
7377
  };
7343
7378
  const modifyPlayGameRequest = (requests) => {
@@ -7365,9 +7400,10 @@ const modifyTransferProcessResponse = (result) => {
7365
7400
  return result;
7366
7401
  };
7367
7402
  const getSubmitDepositValidateResponse = (raw) => {
7403
+ var _a;
7368
7404
  return {
7369
7405
  status: raw.status == 1,
7370
- message: raw.errormessage ?? ""
7406
+ message: (_a = raw.errormessage) != null ? _a : ""
7371
7407
  };
7372
7408
  };
7373
7409
  const modifySubmitDepositValidateRequest = (requests) => {
@@ -7377,9 +7413,10 @@ const modifySubmitDepositValidateResponse = (result) => {
7377
7413
  return result;
7378
7414
  };
7379
7415
  const getSubmitTransferCreditValidateResponse = (raw) => {
7416
+ var _a;
7380
7417
  return {
7381
7418
  status: raw.status == 1,
7382
- message: raw.errormessage ?? ""
7419
+ message: (_a = raw.errormessage) != null ? _a : ""
7383
7420
  };
7384
7421
  };
7385
7422
  const modifySubmitTransferCreditValidateRequest = (requests) => {
@@ -7416,15 +7453,15 @@ const modifyFriendListEditResponse = (result) => {
7416
7453
  return result;
7417
7454
  };
7418
7455
  const getGetActivePPResponse = (raw) => {
7419
- var _a;
7456
+ var _a, _b;
7420
7457
  return {
7421
- platformProduct: ((_a = raw.mdPlatformProduct) == null ? void 0 : _a.map((item) => {
7458
+ platformProduct: (_b = (_a = raw.mdPlatformProduct) == null ? void 0 : _a.map((item) => {
7422
7459
  return {
7423
7460
  productMasterId: item.id_ProductMaster,
7424
7461
  name: item.name,
7425
7462
  com: item.com
7426
7463
  };
7427
- })) ?? []
7464
+ })) != null ? _b : []
7428
7465
  };
7429
7466
  };
7430
7467
  const modifyGetActivePPRequest = (requests) => {
@@ -7434,22 +7471,22 @@ const modifyGetActivePPResponse = (result) => {
7434
7471
  return result;
7435
7472
  };
7436
7473
  const getGetActiveProductResponse = (raw) => {
7437
- var _a;
7438
- return ((_a = raw.mdProductMaster) == null ? void 0 : _a.map((item) => {
7439
- var _a2;
7474
+ var _a, _b;
7475
+ return (_b = (_a = raw.mdProductMaster) == null ? void 0 : _a.map((item) => {
7476
+ var _a2, _b2;
7440
7477
  return {
7441
7478
  id: item.id,
7442
7479
  name: item.name,
7443
- product: ((_a2 = item.platformproduct) == null ? void 0 : _a2.map((item2) => {
7480
+ product: (_b2 = (_a2 = item.platformproduct) == null ? void 0 : _a2.map((item2) => {
7444
7481
  return {
7445
7482
  id: item2.id,
7446
7483
  name: item2.name,
7447
7484
  platformId: item2.id_PlatformMaster,
7448
7485
  com: item2.com
7449
7486
  };
7450
- })) ?? []
7487
+ })) != null ? _b2 : []
7451
7488
  };
7452
- })) ?? [];
7489
+ })) != null ? _b : [];
7453
7490
  };
7454
7491
  const modifyGetActiveProductRequest = (requests) => {
7455
7492
  return requests;
@@ -7537,9 +7574,10 @@ const modifyGetVerifyPromoResponse = (result) => {
7537
7574
  return result;
7538
7575
  };
7539
7576
  const getRequestUpdateMobileTacCodeResponse = (raw) => {
7577
+ var _a;
7540
7578
  return {
7541
7579
  status: raw.status == 1,
7542
- message: raw.msg ?? "",
7580
+ message: (_a = raw.msg) != null ? _a : "",
7543
7581
  data: raw.data
7544
7582
  };
7545
7583
  };
@@ -7550,9 +7588,10 @@ const modifyRequestUpdateMobileTacCodeResponse = (result) => {
7550
7588
  return result;
7551
7589
  };
7552
7590
  const getSubmitUpdateMobileTacCodeResponse = (raw) => {
7591
+ var _a;
7553
7592
  return {
7554
7593
  status: raw.status == 1,
7555
- message: raw.msg ?? ""
7594
+ message: (_a = raw.msg) != null ? _a : ""
7556
7595
  };
7557
7596
  };
7558
7597
  const modifySubmitUpdateMobileTacCodeRequest = (requests) => {
@@ -7593,9 +7632,10 @@ const modifySignInRecordResponse = (result) => {
7593
7632
  return result;
7594
7633
  };
7595
7634
  const getReferralProfileResponse = (raw) => {
7635
+ var _a, _b, _c;
7596
7636
  return {
7597
7637
  status: raw.status == 1,
7598
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7638
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7599
7639
  fullName: raw.fullname,
7600
7640
  currentPage: raw.pagination.current_page,
7601
7641
  lastPage: raw.pagination.total_page,
@@ -7605,9 +7645,9 @@ const getReferralProfileResponse = (raw) => {
7605
7645
  upline: raw.my_info.upline,
7606
7646
  referralCode: raw.my_info.referral_code,
7607
7647
  teamMember: raw.my_info.teammember,
7608
- teamPerformance: raw.my_info.teamachieve ?? "",
7648
+ teamPerformance: (_b = raw.my_info.teamachieve) != null ? _b : "",
7609
7649
  downlineMember: raw.my_info.downlineadded,
7610
- downlinePerformance: raw.my_info.downlineachieve ?? "",
7650
+ downlinePerformance: (_c = raw.my_info.downlineachieve) != null ? _c : "",
7611
7651
  validComm: raw.my_info.totalcommission,
7612
7652
  withdrawableComm: raw.my_info.withdrawablecommission
7613
7653
  },
@@ -7646,16 +7686,18 @@ const modifyReferralProfileResponse = (result) => {
7646
7686
  return result;
7647
7687
  };
7648
7688
  const getReferralMemberProfileResponse = (raw) => {
7689
+ var _a, _b;
7649
7690
  return {
7650
7691
  status: raw.status == 1,
7651
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7652
- id: raw.id ?? 0,
7692
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7693
+ id: (_b = raw.id) != null ? _b : 0,
7653
7694
  data: raw.data.map((item) => {
7695
+ var _a2;
7654
7696
  return {
7655
7697
  date: item.date,
7656
7698
  downlineAdded: item.downlineadded,
7657
7699
  commission: item.commission,
7658
- validTurnover: item.validturnover ?? ""
7700
+ validTurnover: (_a2 = item.validturnover) != null ? _a2 : ""
7659
7701
  };
7660
7702
  }),
7661
7703
  currentPage: raw.page,
@@ -7669,9 +7711,10 @@ const modifyReferralMemberProfileResponse = (result) => {
7669
7711
  return result;
7670
7712
  };
7671
7713
  const getRegisterActionResponse = (raw) => {
7714
+ var _a;
7672
7715
  return {
7673
7716
  status: raw.status == "1",
7674
- message: raw.msg ?? "",
7717
+ message: (_a = raw.msg) != null ? _a : "",
7675
7718
  username: raw.accountcode,
7676
7719
  password: raw.password
7677
7720
  };
@@ -7688,11 +7731,11 @@ var TransferMethod = /* @__PURE__ */ ((TransferMethod2) => {
7688
7731
  return TransferMethod2;
7689
7732
  })(TransferMethod || {});
7690
7733
  const getTransferReportResponse = (raw) => {
7691
- var _a;
7734
+ var _a, _b;
7692
7735
  return {
7693
7736
  currentPage: raw.mdGameCreditLimitTransfers.current_page,
7694
7737
  lastPage: raw.mdGameCreditLimitTransfers.last_page,
7695
- data: ((_a = raw.mdGameCreditLimitTransfers.data) == null ? void 0 : _a.map((item) => {
7738
+ data: (_b = (_a = raw.mdGameCreditLimitTransfers.data) == null ? void 0 : _a.map((item) => {
7696
7739
  return {
7697
7740
  transferIndex: item.clindex,
7698
7741
  target: item.com_from !== "" ? item.com_from : item.com_to,
@@ -7700,7 +7743,7 @@ const getTransferReportResponse = (raw) => {
7700
7743
  amount: getFormattedAmount(item.amount),
7701
7744
  dateTime: item.transferdatetime
7702
7745
  };
7703
- })) ?? []
7746
+ })) != null ? _b : []
7704
7747
  };
7705
7748
  };
7706
7749
  const modifyTransferReportRequest = (requests) => {
@@ -7710,11 +7753,11 @@ const modifyTransferReportResponse = (result) => {
7710
7753
  return result;
7711
7754
  };
7712
7755
  const getAgTransferCreditReportResponse = (raw) => {
7713
- var _a;
7756
+ var _a, _b;
7714
7757
  return {
7715
7758
  currentPage: raw.mdAgTransfeReport.current_page,
7716
7759
  lastPage: raw.mdAgTransfeReport.last_page,
7717
- data: ((_a = raw.mdAgTransfeReport.data) == null ? void 0 : _a.map((item) => {
7760
+ data: (_b = (_a = raw.mdAgTransfeReport.data) == null ? void 0 : _a.map((item) => {
7718
7761
  return {
7719
7762
  sender: item.sender,
7720
7763
  receiver: item.receiver,
@@ -7722,7 +7765,7 @@ const getAgTransferCreditReportResponse = (raw) => {
7722
7765
  amount: item.amount,
7723
7766
  dateTime: item.transferdatetime
7724
7767
  };
7725
- })) ?? []
7768
+ })) != null ? _b : []
7726
7769
  };
7727
7770
  };
7728
7771
  const modifyAgTransferCreditReportRequest = (requests) => {
@@ -7732,23 +7775,23 @@ const modifyAgTransferCreditReportResponse = (result) => {
7732
7775
  return result;
7733
7776
  };
7734
7777
  const getBetReportResponse = (raw) => {
7735
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7778
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
7736
7779
  return {
7737
7780
  status: raw.status == 1,
7738
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7781
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7739
7782
  data: {
7740
- total: ((_a = raw.data) == null ? void 0 : _a.total) ? {
7741
- bet: getFormattedAmount(((_b = raw.data) == null ? void 0 : _b.total.bet) ?? 0),
7742
- activeBet: getFormattedAmount(((_c = raw.data) == null ? void 0 : _c.total.activebet) ?? 0),
7743
- validBet: getFormattedAmount(((_d = raw.data) == null ? void 0 : _d.total.validbet) ?? 0),
7744
- payout: getFormattedAmount(((_e = raw.data) == null ? void 0 : _e.total.payout) ?? 0)
7783
+ total: ((_b = raw.data) == null ? void 0 : _b.total) ? {
7784
+ bet: getFormattedAmount((_d = (_c = raw.data) == null ? void 0 : _c.total.bet) != null ? _d : 0),
7785
+ activeBet: getFormattedAmount((_f = (_e = raw.data) == null ? void 0 : _e.total.activebet) != null ? _f : 0),
7786
+ validBet: getFormattedAmount((_h = (_g = raw.data) == null ? void 0 : _g.total.validbet) != null ? _h : 0),
7787
+ payout: getFormattedAmount((_j = (_i = raw.data) == null ? void 0 : _i.total.payout) != null ? _j : 0)
7745
7788
  } : {
7746
7789
  bet: "0.00",
7747
7790
  activeBet: "0.00",
7748
7791
  validBet: "0.00",
7749
7792
  payout: "0.00"
7750
7793
  },
7751
- data: ((_g = (_f = raw.data) == null ? void 0 : _f.sum) == null ? void 0 : _g.map((item) => {
7794
+ data: (_m = (_l = (_k = raw.data) == null ? void 0 : _k.sum) == null ? void 0 : _l.map((item) => {
7752
7795
  return {
7753
7796
  bet: getFormattedAmount(item.bet),
7754
7797
  activeBet: getFormattedAmount(item.activebet),
@@ -7756,8 +7799,8 @@ const getBetReportResponse = (raw) => {
7756
7799
  target: item.name,
7757
7800
  com: item.com
7758
7801
  };
7759
- })) ?? [],
7760
- wagers: ((_i = (_h = raw.data) == null ? void 0 : _h.wagers) == null ? void 0 : _i.map((item) => {
7802
+ })) != null ? _m : [],
7803
+ wagers: (_p = (_o = (_n = raw.data) == null ? void 0 : _n.wagers) == null ? void 0 : _o.map((item) => {
7761
7804
  return {
7762
7805
  payout: getFormattedAmount(item.payout),
7763
7806
  betType: item.betType,
@@ -7769,9 +7812,9 @@ const getBetReportResponse = (raw) => {
7769
7812
  detailSC: item.detailsc,
7770
7813
  resultL: item.resultL
7771
7814
  };
7772
- })) ?? [],
7773
- currentPage: ((_j = raw.data) == null ? void 0 : _j.page.current_page) ?? 1,
7774
- lastPage: ((_k = raw.data) == null ? void 0 : _k.page.last_page) ?? 1
7815
+ })) != null ? _p : [],
7816
+ currentPage: (_r = (_q = raw.data) == null ? void 0 : _q.page.current_page) != null ? _r : 1,
7817
+ lastPage: (_t = (_s = raw.data) == null ? void 0 : _s.page.last_page) != null ? _t : 1
7775
7818
  }
7776
7819
  };
7777
7820
  };
@@ -7782,14 +7825,14 @@ const modifyBetReportResponse = (result) => {
7782
7825
  return result;
7783
7826
  };
7784
7827
  const getGetTwoFactorAuthenticateResponse = (raw) => {
7785
- var _a, _b, _c;
7828
+ var _a, _b, _c, _d, _e, _f, _g;
7786
7829
  return {
7787
7830
  status: raw.status == 1,
7788
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7831
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7789
7832
  data: {
7790
- key: ((_a = raw.data) == null ? void 0 : _a.key) ?? "",
7791
- qrcode: ((_b = raw.data) == null ? void 0 : _b.qrcode) ?? "",
7792
- binded: ((_c = raw.data) == null ? void 0 : _c.binded) ?? false
7833
+ key: (_c = (_b = raw.data) == null ? void 0 : _b.key) != null ? _c : "",
7834
+ qrcode: (_e = (_d = raw.data) == null ? void 0 : _d.qrcode) != null ? _e : "",
7835
+ binded: (_g = (_f = raw.data) == null ? void 0 : _f.binded) != null ? _g : false
7793
7836
  }
7794
7837
  };
7795
7838
  };
@@ -7800,16 +7843,16 @@ const modifyGetTwoFactorAuthenticateResponse = (result) => {
7800
7843
  return result;
7801
7844
  };
7802
7845
  const getGetUserDeviceListResponse = (raw) => {
7803
- var _a;
7846
+ var _a, _b, _c;
7804
7847
  return {
7805
7848
  status: raw.status == 1,
7806
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7807
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
7849
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7850
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
7808
7851
  return {
7809
7852
  deviceName: item.device_name,
7810
7853
  createdAt: item.created_at
7811
7854
  };
7812
- })) ?? []
7855
+ })) != null ? _c : []
7813
7856
  };
7814
7857
  };
7815
7858
  const modifyGetUserDeviceListRequest = (requests) => {
@@ -7837,24 +7880,24 @@ const modifyUnbindUserDeviceResponse = (result) => {
7837
7880
  return result;
7838
7881
  };
7839
7882
  const getSearchNumberHistoryResponse = (raw) => {
7840
- var _a, _b, _c;
7883
+ var _a, _b, _c, _d, _e, _f, _g, _h;
7841
7884
  return {
7842
7885
  status: raw.status == 1,
7843
- message: raw.status == 1 ? raw.message ?? "" : raw.errormessage ?? "",
7886
+ message: raw.status == 1 ? (_a = raw.message) != null ? _a : "" : (_b = raw.errormessage) != null ? _b : "",
7844
7887
  data: {
7845
- companyCount: ((_a = raw.data.companyRCount) == null ? void 0 : _a.map((item) => {
7888
+ companyCount: (_d = (_c = raw.data.companyRCount) == null ? void 0 : _c.map((item) => {
7846
7889
  return {
7847
7890
  key: item.key,
7848
7891
  count: item.count
7849
7892
  };
7850
- })) ?? [],
7851
- prizeCount: ((_b = raw.data.prizeRCount) == null ? void 0 : _b.map((item) => {
7893
+ })) != null ? _d : [],
7894
+ prizeCount: (_f = (_e = raw.data.prizeRCount) == null ? void 0 : _e.map((item) => {
7852
7895
  return {
7853
7896
  key: item.key,
7854
7897
  count: item.count
7855
7898
  };
7856
- })) ?? [],
7857
- list: ((_c = raw.data.list) == null ? void 0 : _c.map((item) => {
7899
+ })) != null ? _f : [],
7900
+ list: (_h = (_g = raw.data.list) == null ? void 0 : _g.map((item) => {
7858
7901
  return {
7859
7902
  dimension: item.combination_dimension,
7860
7903
  combination: item.combination_combination,
@@ -7864,7 +7907,7 @@ const getSearchNumberHistoryResponse = (raw) => {
7864
7907
  companyId: item.company.company_id,
7865
7908
  companyName: item.company.company_name
7866
7909
  };
7867
- })) ?? []
7910
+ })) != null ? _h : []
7868
7911
  }
7869
7912
  };
7870
7913
  };
@@ -7896,9 +7939,10 @@ const modifyChangeWithdrawalCodeResponse = (result) => {
7896
7939
  return result;
7897
7940
  };
7898
7941
  const getCheckRedPacketTokenResponse = (raw) => {
7942
+ var _a;
7899
7943
  return {
7900
7944
  status: raw.status == 1,
7901
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7945
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7902
7946
  tokenAmount: raw.token_amount
7903
7947
  };
7904
7948
  };
@@ -7918,13 +7962,14 @@ const modifySubmitWithdrawalAlipayResponse = (result) => {
7918
7962
  return result;
7919
7963
  };
7920
7964
  const getApplyReliefFundResponse = (raw) => {
7965
+ var _a;
7921
7966
  let amount = 0;
7922
7967
  if (raw.data != null && typeof raw.data === "object") {
7923
7968
  amount = raw.data.amount;
7924
7969
  }
7925
7970
  return {
7926
7971
  status: raw.status,
7927
- message: raw.msg ?? "",
7972
+ message: (_a = raw.msg) != null ? _a : "",
7928
7973
  amount
7929
7974
  };
7930
7975
  };
@@ -7998,33 +8043,34 @@ const modifyGetReliefFundReportResponse = (result) => {
7998
8043
  return result;
7999
8044
  };
8000
8045
  const getGetWeekCardDataResponse = (raw) => {
8001
- var _a, _b, _c, _d;
8046
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8002
8047
  return {
8003
8048
  status: raw.status == 1,
8004
8049
  message: "",
8005
8050
  data: {
8006
8051
  reward: {
8007
- purchasable: ((_a = raw.data) == null ? void 0 : _a.purchasable) ?? false,
8008
- collectable: ((_b = raw.data) == null ? void 0 : _b.collectable) ?? false,
8009
- remainingDay: ((_c = raw.data) == null ? void 0 : _c.remaining) ?? "0"
8052
+ purchasable: (_b = (_a = raw.data) == null ? void 0 : _a.purchasable) != null ? _b : false,
8053
+ collectable: (_d = (_c = raw.data) == null ? void 0 : _c.collectable) != null ? _d : false,
8054
+ remainingDay: (_f = (_e = raw.data) == null ? void 0 : _e.remaining) != null ? _f : "0"
8010
8055
  },
8011
- cardList: ((_d = raw.data) == null ? void 0 : _d.settings.map((item) => {
8056
+ cardList: (_h = (_g = raw.data) == null ? void 0 : _g.settings.map((item) => {
8057
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
8012
8058
  return {
8013
- name: item.settingname ?? "",
8014
- code: item.code ?? "",
8015
- price: item.price ?? "",
8016
- period: item.period ?? "",
8017
- profileId: item.profileid ?? "",
8059
+ name: (_a2 = item.settingname) != null ? _a2 : "",
8060
+ code: (_b2 = item.code) != null ? _b2 : "",
8061
+ price: (_c2 = item.price) != null ? _c2 : "",
8062
+ period: (_d2 = item.period) != null ? _d2 : "",
8063
+ profileId: (_e2 = item.profileid) != null ? _e2 : "",
8018
8064
  dailyReward: {
8019
8065
  amount: item.daily_reward,
8020
- percentage: (Number(item.daily_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8066
+ percentage: (Number((_f2 = item.daily_reward) != null ? _f2 : "") / Number((_g2 = item.price) != null ? _g2 : "") * 100).toFixed(0)
8021
8067
  },
8022
8068
  instantReward: {
8023
8069
  amount: item.instant_reward,
8024
- percentage: (Number(item.instant_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8070
+ percentage: (Number((_h2 = item.instant_reward) != null ? _h2 : "") / Number((_i = item.price) != null ? _i : "") * 100).toFixed(0)
8025
8071
  }
8026
8072
  };
8027
- })) ?? []
8073
+ })) != null ? _h : []
8028
8074
  }
8029
8075
  };
8030
8076
  };
@@ -8035,9 +8081,10 @@ const modifyGetWeekCardDataResponse = (result) => {
8035
8081
  return result;
8036
8082
  };
8037
8083
  const getApplyWeekCardResponse = (raw) => {
8084
+ var _a;
8038
8085
  return {
8039
8086
  status: raw.status == 1,
8040
- message: raw.msg ?? ""
8087
+ message: (_a = raw.msg) != null ? _a : ""
8041
8088
  };
8042
8089
  };
8043
8090
  const modifyApplyWeekCardRequest = (requests) => {
@@ -8047,9 +8094,10 @@ const modifyApplyWeekCardResponse = (result) => {
8047
8094
  return result;
8048
8095
  };
8049
8096
  const getGetWeekCardClaimResponse = (raw) => {
8097
+ var _a;
8050
8098
  return {
8051
8099
  status: raw.status == 1,
8052
- message: raw.msg ?? ""
8100
+ message: (_a = raw.msg) != null ? _a : ""
8053
8101
  };
8054
8102
  };
8055
8103
  const modifyGetWeekCardClaimRequest = (requests) => {
@@ -8059,11 +8107,11 @@ const modifyGetWeekCardClaimResponse = (result) => {
8059
8107
  return result;
8060
8108
  };
8061
8109
  const getTransfersettingResponse = (raw) => {
8062
- var _a, _b;
8110
+ var _a, _b, _c;
8063
8111
  return {
8064
8112
  status: raw.status == 1,
8065
- errorMessage: raw.errormessage ?? "",
8066
- isAutoTransfer: raw.optionkey == "auto" || ((_a = raw.message) == null ? void 0 : _a.optionkey) == "auto" || ((_b = raw.mdAccountSetting) == null ? void 0 : _b.optionkey) == "auto"
8113
+ errorMessage: (_a = raw.errormessage) != null ? _a : "",
8114
+ isAutoTransfer: raw.optionkey == "auto" || ((_b = raw.message) == null ? void 0 : _b.optionkey) == "auto" || ((_c = raw.mdAccountSetting) == null ? void 0 : _c.optionkey) == "auto"
8067
8115
  };
8068
8116
  };
8069
8117
  const modifyTransfersettingRequest = (requests) => {
@@ -8082,12 +8130,13 @@ const modifyTransferResponse = (result) => {
8082
8130
  return result;
8083
8131
  };
8084
8132
  const getGetIncentiveDataResponse = (raw) => {
8133
+ var _a, _b, _c, _d;
8085
8134
  return {
8086
8135
  status: raw.status,
8087
- message: raw.msg ?? "",
8088
- turnover: raw.data ? raw.data.turnover ?? 0 : 0,
8089
- percentage: raw.data ? raw.data.percentage ?? 0 : 0,
8090
- incentive: raw.data ? raw.data.incentive ?? 0 : 0,
8136
+ message: (_a = raw.msg) != null ? _a : "",
8137
+ turnover: raw.data ? (_b = raw.data.turnover) != null ? _b : 0 : 0,
8138
+ percentage: raw.data ? (_c = raw.data.percentage) != null ? _c : 0 : 0,
8139
+ incentive: raw.data ? (_d = raw.data.incentive) != null ? _d : 0 : 0,
8091
8140
  claimable: 0
8092
8141
  };
8093
8142
  };
@@ -8117,13 +8166,14 @@ const modifyGetIncentiveDataResponse = (result) => {
8117
8166
  return result;
8118
8167
  };
8119
8168
  const getGetIncentiveRebateResponse = (raw) => {
8169
+ var _a;
8120
8170
  let amount = "0";
8121
8171
  if (raw.data) {
8122
8172
  amount = raw.data.incentive;
8123
8173
  }
8124
8174
  return {
8125
8175
  status: raw.status,
8126
- message: raw.msg ?? "",
8176
+ message: (_a = raw.msg) != null ? _a : "",
8127
8177
  amount
8128
8178
  };
8129
8179
  };
@@ -8134,13 +8184,14 @@ const modifyGetIncentiveRebateResponse = (result) => {
8134
8184
  return result;
8135
8185
  };
8136
8186
  const getClaimIncentiveRebateResponse = (raw) => {
8187
+ var _a;
8137
8188
  let amount = "0";
8138
8189
  if (raw.data) {
8139
8190
  amount = raw.data.incentive;
8140
8191
  }
8141
8192
  return {
8142
8193
  status: raw.status,
8143
- message: raw.msg ?? "",
8194
+ message: (_a = raw.msg) != null ? _a : "",
8144
8195
  amount
8145
8196
  };
8146
8197
  };
@@ -8193,7 +8244,8 @@ const getGetMissionDataResponse = (raw) => {
8193
8244
  };
8194
8245
  const getDataViaType = (raw, type) => {
8195
8246
  return raw.data.tier.filter((item) => item.type == type).map((item) => {
8196
- const current = Math.min(item.achieve ?? 0, item.requirement);
8247
+ var _a;
8248
+ const current = Math.min((_a = item.achieve) != null ? _a : 0, item.requirement);
8197
8249
  return {
8198
8250
  id: item.transid,
8199
8251
  reward: item.reward,
@@ -8231,9 +8283,10 @@ const modifyGetMissionDataResponse = (result) => {
8231
8283
  return result;
8232
8284
  };
8233
8285
  const getGetMissionClaimResponse = (raw) => {
8286
+ var _a;
8234
8287
  return {
8235
8288
  status: raw.status,
8236
- message: raw.msg ?? ""
8289
+ message: (_a = raw.msg) != null ? _a : ""
8237
8290
  };
8238
8291
  };
8239
8292
  const modifyGetMissionClaimRequest = (requests) => {
@@ -8243,18 +8296,20 @@ const modifyGetMissionClaimResponse = (result) => {
8243
8296
  return result;
8244
8297
  };
8245
8298
  const getRegisterFormResponse = (raw) => {
8299
+ var _a;
8246
8300
  return {
8247
8301
  status: raw.status == 1,
8248
8302
  socialLogin: raw.social_login == 1,
8249
- errorMessage: raw.erorrmessage ?? "",
8303
+ errorMessage: (_a = raw.erorrmessage) != null ? _a : "",
8250
8304
  inputFields: raw.mdSignupForms.map((item) => {
8305
+ var _a2, _b, _c;
8251
8306
  return {
8252
8307
  fieldName: item.fieldname,
8253
8308
  required: item.required == 1,
8254
8309
  regex: item.regex,
8255
- minLength: item.minlen ?? "0",
8256
- maxLength: item.maxlen ?? "0",
8257
- inputHelper: item.inputHelper ?? ""
8310
+ minLength: (_a2 = item.minlen) != null ? _a2 : "0",
8311
+ maxLength: (_b = item.maxlen) != null ? _b : "0",
8312
+ inputHelper: (_c = item.inputHelper) != null ? _c : ""
8258
8313
  };
8259
8314
  })
8260
8315
  };
@@ -8266,9 +8321,10 @@ const modifyRegisterFormResponse = (result) => {
8266
8321
  return result;
8267
8322
  };
8268
8323
  const getGetFavouriteGameResponse = (raw) => {
8324
+ var _a, _b;
8269
8325
  return {
8270
- currentPage: raw.mdGameLists.current_page ?? 0,
8271
- lastPage: raw.mdGameLists.last_page ?? 0,
8326
+ currentPage: (_a = raw.mdGameLists.current_page) != null ? _a : 0,
8327
+ lastPage: (_b = raw.mdGameLists.last_page) != null ? _b : 0,
8272
8328
  data: raw.mdGameLists.data && raw.mdGameLists.data.length > 0 ? raw.mdGameLists.data.map((item) => {
8273
8329
  return {
8274
8330
  gameId: item.id,
@@ -8307,18 +8363,17 @@ const modifyGetFavouriteGameResponse = (result) => {
8307
8363
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
8308
8364
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
8309
8365
  const tempFavouriteGameList = favouriteGameList.data.map((gameInfo) => {
8366
+ var _a;
8310
8367
  const turnover = getPlatformTurnoverRate.find(
8311
8368
  (item) => item.id === gameInfo.platformId
8312
8369
  );
8313
- return {
8314
- ...gameInfo,
8315
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
8316
- };
8370
+ return __spreadProps(__spreadValues({}, gameInfo), {
8371
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
8372
+ });
8317
8373
  });
8318
- result.getFavouriteGame = {
8319
- ...favouriteGameList,
8374
+ result.getFavouriteGame = __spreadProps(__spreadValues({}, favouriteGameList), {
8320
8375
  data: tempFavouriteGameList
8321
- };
8376
+ });
8322
8377
  delete result.getPlatformTurnoverRate;
8323
8378
  }
8324
8379
  }
@@ -8343,11 +8398,11 @@ const modifyRequestForgetUsernameResponse = (result) => {
8343
8398
  return result;
8344
8399
  };
8345
8400
  const getSubmitForgetUsernameResponse = (raw) => {
8346
- var _a;
8401
+ var _a, _b, _c;
8347
8402
  return {
8348
8403
  status: raw.status == 1,
8349
- errorMessage: raw.errormessage ?? "",
8350
- username: ((_a = raw.data) == null ? void 0 : _a.username) ?? ""
8404
+ errorMessage: (_a = raw.errormessage) != null ? _a : "",
8405
+ username: (_c = (_b = raw.data) == null ? void 0 : _b.username) != null ? _c : ""
8351
8406
  };
8352
8407
  };
8353
8408
  const modifySubmitForgetUsernameRequest = (requests) => {
@@ -8363,17 +8418,18 @@ var AccumulateDepositStatus = /* @__PURE__ */ ((AccumulateDepositStatus2) => {
8363
8418
  return AccumulateDepositStatus2;
8364
8419
  })(AccumulateDepositStatus || {});
8365
8420
  const getGetAccumulateDepositDataResponse = (raw) => {
8421
+ var _a, _b, _c, _d;
8366
8422
  if (raw.status == 0) {
8367
8423
  return {
8368
8424
  status: false,
8369
- message: raw.msg ?? "",
8425
+ message: (_a = raw.msg) != null ? _a : "",
8370
8426
  data: null
8371
8427
  };
8372
8428
  }
8373
8429
  let data = null;
8374
8430
  if (raw.data != null) {
8375
- const current = raw.data.achieve ?? 0;
8376
- const total = raw.data.achieve ?? 0;
8431
+ const current = (_b = raw.data.achieve) != null ? _b : 0;
8432
+ const total = (_c = raw.data.achieve) != null ? _c : 0;
8377
8433
  const current_percentage = current / total * 100;
8378
8434
  const collectable = raw.data.tier.filter(
8379
8435
  (item) => item.claimable == "1" && item.collected != "1"
@@ -8398,7 +8454,7 @@ const getGetAccumulateDepositDataResponse = (raw) => {
8398
8454
  }
8399
8455
  return {
8400
8456
  status: true,
8401
- message: raw.msg ?? "",
8457
+ message: (_d = raw.msg) != null ? _d : "",
8402
8458
  data
8403
8459
  };
8404
8460
  };
@@ -8409,9 +8465,10 @@ const modifyGetAccumulateDepositDataResponse = (result) => {
8409
8465
  return result;
8410
8466
  };
8411
8467
  const getGetAccumulateDepositClaimResponse = (raw) => {
8468
+ var _a;
8412
8469
  return {
8413
8470
  status: raw.status == 1,
8414
- message: raw.msg ?? ""
8471
+ message: (_a = raw.msg) != null ? _a : ""
8415
8472
  };
8416
8473
  };
8417
8474
  const modifyGetAccumulateDepositClaimRequest = (requests) => {
@@ -8421,38 +8478,38 @@ const modifyGetAccumulateDepositClaimResponse = (result) => {
8421
8478
  return result;
8422
8479
  };
8423
8480
  const getRebateRefundSettingResponse = (raw) => {
8424
- var _a;
8481
+ var _a, _b, _c;
8425
8482
  return {
8426
8483
  status: raw.status == 1,
8427
- message: raw.msg ?? "",
8428
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
8429
- var _a2;
8484
+ message: (_a = raw.msg) != null ? _a : "",
8485
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
8486
+ var _a2, _b2;
8430
8487
  return {
8431
8488
  name: item.name,
8432
- groups: ((_a2 = item.groups) == null ? void 0 : _a2.map((groupItem) => {
8433
- var _a3;
8489
+ groups: (_b2 = (_a2 = item.groups) == null ? void 0 : _a2.map((groupItem) => {
8490
+ var _a3, _b3;
8434
8491
  return {
8435
8492
  min: groupItem.min,
8436
8493
  max: groupItem.max,
8437
8494
  multiplier: groupItem.multiply,
8438
8495
  name: groupItem.displayName,
8439
- vipSetting: ((_a3 = groupItem.settings) == null ? void 0 : _a3.map((settingItem) => {
8440
- var _a4;
8496
+ vipSetting: (_b3 = (_a3 = groupItem.settings) == null ? void 0 : _a3.map((settingItem) => {
8497
+ var _a4, _b4;
8441
8498
  return {
8442
8499
  name: settingItem.displayName,
8443
8500
  rate: settingItem.percentage,
8444
- platforms: ((_a4 = settingItem.platformProducts) == null ? void 0 : _a4.map((platformItem) => {
8501
+ platforms: (_b4 = (_a4 = settingItem.platformProducts) == null ? void 0 : _a4.map((platformItem) => {
8445
8502
  return {
8446
8503
  name: platformItem.displayName,
8447
8504
  rate: platformItem.percentage
8448
8505
  };
8449
- })) ?? []
8506
+ })) != null ? _b4 : []
8450
8507
  };
8451
- })) ?? []
8508
+ })) != null ? _b3 : []
8452
8509
  };
8453
- })) ?? []
8510
+ })) != null ? _b2 : []
8454
8511
  };
8455
- })) ?? []
8512
+ })) != null ? _c : []
8456
8513
  };
8457
8514
  };
8458
8515
  const modifyRebateRefundSettingRequest = (requests) => {
@@ -8462,14 +8519,14 @@ const modifyRebateRefundSettingResponse = (result) => {
8462
8519
  return result;
8463
8520
  };
8464
8521
  const getGetASCMatchCountResponse = (raw) => {
8465
- var _a, _b, _c;
8522
+ var _a, _b, _c, _d, _e, _f, _g;
8466
8523
  return {
8467
8524
  status: raw.status == 1,
8468
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8525
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8469
8526
  data: {
8470
- live: ((_a = raw.data) == null ? void 0 : _a.l) ?? 0,
8471
- today: ((_b = raw.data) == null ? void 0 : _b.t) ?? 0,
8472
- early: ((_c = raw.data) == null ? void 0 : _c.e) ?? 0
8527
+ live: (_c = (_b = raw.data) == null ? void 0 : _b.l) != null ? _c : 0,
8528
+ today: (_e = (_d = raw.data) == null ? void 0 : _d.t) != null ? _e : 0,
8529
+ early: (_g = (_f = raw.data) == null ? void 0 : _f.e) != null ? _g : 0
8473
8530
  }
8474
8531
  };
8475
8532
  };
@@ -8480,10 +8537,11 @@ const modifyGetASCMatchCountResponse = (result) => {
8480
8537
  return result;
8481
8538
  };
8482
8539
  const getUpdateDeviceTokenResponse = (raw) => {
8540
+ var _a;
8483
8541
  console.log(raw);
8484
8542
  return {
8485
8543
  status: raw.status,
8486
- message: raw.message ?? ""
8544
+ message: (_a = raw.message) != null ? _a : ""
8487
8545
  };
8488
8546
  };
8489
8547
  const modifyUpdateDeviceTokenRequest = (requests) => {
@@ -8493,21 +8551,23 @@ const modifyUpdateDeviceTokenResponse = (result) => {
8493
8551
  return result;
8494
8552
  };
8495
8553
  const getGetCryptoListResponse = (raw) => {
8554
+ var _a, _b;
8496
8555
  return {
8497
8556
  status: raw.status == 1,
8498
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8499
- coinList: raw.data.map((coin) => {
8557
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8558
+ coinList: (_b = raw.data.map((coin) => {
8559
+ var _a2;
8500
8560
  return {
8501
8561
  name: coin.coin,
8502
- protocol: coin.supported_protocols.map((protocol) => {
8562
+ protocol: (_a2 = coin.supported_protocols.map((protocol) => {
8503
8563
  return {
8504
8564
  name: protocol.protocol,
8505
8565
  cryptoId: protocol.crypto_id,
8506
8566
  networkId: protocol.network_id
8507
8567
  };
8508
- }) ?? []
8568
+ })) != null ? _a2 : []
8509
8569
  };
8510
- }) ?? []
8570
+ })) != null ? _b : []
8511
8571
  };
8512
8572
  };
8513
8573
  const modifyGetCryptoListRequest = (requests) => {
@@ -8517,10 +8577,11 @@ const modifyGetCryptoListResponse = (result) => {
8517
8577
  return result;
8518
8578
  };
8519
8579
  const getGetCryptoAddressResponse = (raw) => {
8580
+ var _a, _b;
8520
8581
  return {
8521
8582
  status: raw.status == 1,
8522
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8523
- address: raw.data ?? ""
8583
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8584
+ address: (_b = raw.data) != null ? _b : ""
8524
8585
  };
8525
8586
  };
8526
8587
  const modifyGetCryptoAddressRequest = (requests) => {
@@ -8530,10 +8591,11 @@ const modifyGetCryptoAddressResponse = (result) => {
8530
8591
  return result;
8531
8592
  };
8532
8593
  const getGetPopoutItemResponse = (raw) => {
8594
+ var _a, _b;
8533
8595
  if (raw.status == 0) {
8534
8596
  return {
8535
8597
  status: 0,
8536
- message: raw.msg ?? "",
8598
+ message: (_a = raw.msg) != null ? _a : "",
8537
8599
  data: null
8538
8600
  };
8539
8601
  }
@@ -8548,7 +8610,7 @@ const getGetPopoutItemResponse = (raw) => {
8548
8610
  });
8549
8611
  return {
8550
8612
  status: raw.status,
8551
- message: raw.msg ?? "",
8613
+ message: (_b = raw.msg) != null ? _b : "",
8552
8614
  data: {
8553
8615
  headerList,
8554
8616
  popoutList
@@ -8562,13 +8624,13 @@ const modifyGetPopoutItemResponse = (result) => {
8562
8624
  return result;
8563
8625
  };
8564
8626
  const getGetTurnOverRewardSettingMultResponse = (raw) => {
8565
- var _a;
8566
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
8627
+ var _a, _b;
8628
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
8567
8629
  return {
8568
8630
  name: item.name,
8569
8631
  data: getData(item)
8570
8632
  };
8571
- })) ?? [];
8633
+ })) != null ? _b : [];
8572
8634
  };
8573
8635
  const getData = (category) => {
8574
8636
  const data = [];
@@ -8600,6 +8662,7 @@ const modifyGetTurnOverRewardSettingMultResponse = (result) => {
8600
8662
  return result;
8601
8663
  };
8602
8664
  const getInterestIndexResponse = (raw) => {
8665
+ var _a;
8603
8666
  const detail = {
8604
8667
  minAmount: "0",
8605
8668
  minHours: "0",
@@ -8620,7 +8683,7 @@ const getInterestIndexResponse = (raw) => {
8620
8683
  }
8621
8684
  return {
8622
8685
  status: raw.status == 1,
8623
- message: raw.msg ?? "",
8686
+ message: (_a = raw.msg) != null ? _a : "",
8624
8687
  data: detail
8625
8688
  };
8626
8689
  };
@@ -8631,13 +8694,14 @@ const modifyInterestIndexResponse = (result) => {
8631
8694
  return result;
8632
8695
  };
8633
8696
  const getInterestWalletInfoResponse = (raw) => {
8697
+ var _a, _b, _c, _d;
8634
8698
  return {
8635
8699
  status: raw.status,
8636
- message: raw.msg ?? "",
8700
+ message: (_a = raw.msg) != null ? _a : "",
8637
8701
  data: {
8638
- interestWalletBalance: raw.data.interestWalletBalance ?? "0",
8639
- mainWalletBalance: raw.data.mainWalletBalance ?? "0",
8640
- monthInterestSum: raw.data.monthInterestSum ?? "0",
8702
+ interestWalletBalance: (_b = raw.data.interestWalletBalance) != null ? _b : "0",
8703
+ mainWalletBalance: (_c = raw.data.mainWalletBalance) != null ? _c : "0",
8704
+ monthInterestSum: (_d = raw.data.monthInterestSum) != null ? _d : "0",
8641
8705
  maintainStatus: raw.data.maintainStatus
8642
8706
  }
8643
8707
  };
@@ -8649,9 +8713,10 @@ const modifyInterestWalletInfoResponse = (result) => {
8649
8713
  return result;
8650
8714
  };
8651
8715
  const getInterestTransactionListResponse = (raw) => {
8716
+ var _a;
8652
8717
  return {
8653
8718
  status: raw.status == 1,
8654
- message: raw.msg ?? "",
8719
+ message: (_a = raw.msg) != null ? _a : "",
8655
8720
  data: {
8656
8721
  currentPage: raw.data.current_page,
8657
8722
  lastPage: raw.data.last_page,
@@ -8673,9 +8738,10 @@ const modifyInterestTransactionListResponse = (result) => {
8673
8738
  return result;
8674
8739
  };
8675
8740
  const getInterestTransferInResponse = (raw) => {
8741
+ var _a;
8676
8742
  return {
8677
8743
  status: raw.status == 1,
8678
- message: raw.msg ?? ""
8744
+ message: (_a = raw.msg) != null ? _a : ""
8679
8745
  };
8680
8746
  };
8681
8747
  const modifyInterestTransferInRequest = (requests) => {
@@ -8685,9 +8751,10 @@ const modifyInterestTransferInResponse = (result) => {
8685
8751
  return result;
8686
8752
  };
8687
8753
  const getInterestTransferOutResponse = (raw) => {
8754
+ var _a;
8688
8755
  return {
8689
8756
  status: raw.status == 1,
8690
- message: raw.msg ?? ""
8757
+ message: (_a = raw.msg) != null ? _a : ""
8691
8758
  };
8692
8759
  };
8693
8760
  const modifyInterestTransferOutRequest = (requests) => {
@@ -8697,16 +8764,17 @@ const modifyInterestTransferOutResponse = (result) => {
8697
8764
  return result;
8698
8765
  };
8699
8766
  const getGetWheelDataResponse = (raw) => {
8767
+ var _a, _b;
8700
8768
  if (raw.status == 0) {
8701
8769
  return {
8702
8770
  status: false,
8703
- message: raw.msg ?? "",
8771
+ message: (_a = raw.msg) != null ? _a : "",
8704
8772
  data: null
8705
8773
  };
8706
8774
  }
8707
8775
  return {
8708
8776
  status: raw.status === 1,
8709
- message: raw.msg ?? "",
8777
+ message: (_b = raw.msg) != null ? _b : "",
8710
8778
  data: {
8711
8779
  list: raw.data.list.map((item) => {
8712
8780
  return {
@@ -8731,10 +8799,11 @@ const modifyGetWheelDataResponse = (result) => {
8731
8799
  return result;
8732
8800
  };
8733
8801
  const getGetWheelTicketResponse = (raw) => {
8802
+ var _a, _b;
8734
8803
  return {
8735
8804
  status: raw.status === 1,
8736
- message: raw.msg ?? "",
8737
- data: Number(raw.data ?? "0")
8805
+ message: (_a = raw.msg) != null ? _a : "",
8806
+ data: Number((_b = raw.data) != null ? _b : "0")
8738
8807
  };
8739
8808
  };
8740
8809
  const modifyGetWheelTicketRequest = (requests) => {
@@ -8744,10 +8813,11 @@ const modifyGetWheelTicketResponse = (result) => {
8744
8813
  return result;
8745
8814
  };
8746
8815
  const getSpinWheelResponse = (raw) => {
8816
+ var _a, _b;
8747
8817
  return {
8748
8818
  status: raw.status == 1,
8749
- message: raw.msg ?? "",
8750
- data: raw.data ?? 0
8819
+ message: (_a = raw.msg) != null ? _a : "",
8820
+ data: (_b = raw.data) != null ? _b : 0
8751
8821
  };
8752
8822
  };
8753
8823
  const modifySpinWheelRequest = (requests) => {
@@ -8762,10 +8832,11 @@ var WheelStatus = /* @__PURE__ */ ((WheelStatus2) => {
8762
8832
  return WheelStatus2;
8763
8833
  })(WheelStatus || {});
8764
8834
  const getGetWheelReportResponse = (raw) => {
8835
+ var _a, _b;
8765
8836
  if (raw.status === 0) {
8766
8837
  return {
8767
8838
  status: false,
8768
- message: raw.msg ?? "",
8839
+ message: (_a = raw.msg) != null ? _a : "",
8769
8840
  data: {
8770
8841
  list: [],
8771
8842
  totalPage: 0
@@ -8787,7 +8858,7 @@ const getGetWheelReportResponse = (raw) => {
8787
8858
  }
8788
8859
  return {
8789
8860
  status: raw.status === 1,
8790
- message: raw.msg ?? "",
8861
+ message: (_b = raw.msg) != null ? _b : "",
8791
8862
  data: {
8792
8863
  list,
8793
8864
  totalPage
@@ -8801,33 +8872,34 @@ const modifyGetWheelReportResponse = (result) => {
8801
8872
  return result;
8802
8873
  };
8803
8874
  const getGetWeekCardAllDataResponse = (raw) => {
8804
- var _a, _b, _c, _d;
8875
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8805
8876
  return {
8806
8877
  status: raw.status == 1,
8807
8878
  message: "",
8808
8879
  data: {
8809
8880
  reward: {
8810
- purchasable: ((_a = raw.data) == null ? void 0 : _a.purchasable) ?? false,
8811
- collectable: ((_b = raw.data) == null ? void 0 : _b.collectable) ?? false,
8812
- remainingDay: ((_c = raw.data) == null ? void 0 : _c.remaining) ?? "0"
8881
+ purchasable: (_b = (_a = raw.data) == null ? void 0 : _a.purchasable) != null ? _b : false,
8882
+ collectable: (_d = (_c = raw.data) == null ? void 0 : _c.collectable) != null ? _d : false,
8883
+ remainingDay: (_f = (_e = raw.data) == null ? void 0 : _e.remaining) != null ? _f : "0"
8813
8884
  },
8814
- cardList: ((_d = raw.data) == null ? void 0 : _d.settings.map((item) => {
8885
+ cardList: (_h = (_g = raw.data) == null ? void 0 : _g.settings.map((item) => {
8886
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
8815
8887
  return {
8816
- name: item.settingname ?? "",
8817
- code: item.code ?? "",
8818
- price: item.price ?? "",
8819
- period: item.period ?? "",
8820
- profileId: item.profileid ?? "",
8888
+ name: (_a2 = item.settingname) != null ? _a2 : "",
8889
+ code: (_b2 = item.code) != null ? _b2 : "",
8890
+ price: (_c2 = item.price) != null ? _c2 : "",
8891
+ period: (_d2 = item.period) != null ? _d2 : "",
8892
+ profileId: (_e2 = item.profileid) != null ? _e2 : "",
8821
8893
  dailyReward: {
8822
8894
  amount: item.daily_reward,
8823
- percentage: (Number(item.daily_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8895
+ percentage: (Number((_f2 = item.daily_reward) != null ? _f2 : "") / Number((_g2 = item.price) != null ? _g2 : "") * 100).toFixed(0)
8824
8896
  },
8825
8897
  instantReward: {
8826
8898
  amount: item.instant_reward,
8827
- percentage: (Number(item.instant_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8899
+ percentage: (Number((_h2 = item.instant_reward) != null ? _h2 : "") / Number((_i = item.price) != null ? _i : "") * 100).toFixed(0)
8828
8900
  }
8829
8901
  };
8830
- })) ?? []
8902
+ })) != null ? _h : []
8831
8903
  }
8832
8904
  };
8833
8905
  };
@@ -8838,12 +8910,12 @@ const modifyGetWeekCardAllDataResponse = (result) => {
8838
8910
  return result;
8839
8911
  };
8840
8912
  const getSearchGameByNameResponse = (raw) => {
8841
- var _a, _b, _c, _d;
8913
+ var _a, _b, _c, _d, _e, _f, _g;
8842
8914
  return {
8843
8915
  gameList: {
8844
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
8845
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
8846
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
8916
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
8917
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
8918
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
8847
8919
  return {
8848
8920
  gameId: item.id,
8849
8921
  platformId: item.id_PlatformProduct,
@@ -8861,7 +8933,7 @@ const getSearchGameByNameResponse = (raw) => {
8861
8933
  rate: "0.00",
8862
8934
  jackpotAmount: ""
8863
8935
  };
8864
- })) ?? []
8936
+ })) != null ? _g : []
8865
8937
  }
8866
8938
  };
8867
8939
  };
@@ -8882,32 +8954,31 @@ const modifySearchGameByNameResponse = (result) => {
8882
8954
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
8883
8955
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
8884
8956
  const tempSearchGameList = searchGameList.gameList.data.map((gameInfo) => {
8957
+ var _a;
8885
8958
  const turnover = getPlatformTurnoverRate.find(
8886
8959
  (item) => item.id === gameInfo.platformId
8887
8960
  );
8888
- return {
8889
- ...gameInfo,
8890
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
8891
- };
8961
+ return __spreadProps(__spreadValues({}, gameInfo), {
8962
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
8963
+ });
8892
8964
  });
8893
- result.searchGameByName = {
8894
- ...searchGameList,
8965
+ result.searchGameByName = __spreadProps(__spreadValues({}, searchGameList), {
8895
8966
  data: tempSearchGameList
8896
- };
8967
+ });
8897
8968
  delete result.getPlatformTurnoverRate;
8898
8969
  }
8899
8970
  }
8900
8971
  return result;
8901
8972
  };
8902
8973
  const getCheckGoldEggValidateResponse = (raw) => {
8903
- var _a;
8974
+ var _a, _b, _c, _d, _e;
8904
8975
  return {
8905
8976
  status: raw.status == 1,
8906
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8907
- desc: ((_a = raw.data) == null ? void 0 : _a.bottom_description_setting) ?? "",
8977
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8978
+ desc: (_c = (_b = raw.data) == null ? void 0 : _b.bottom_description_setting) != null ? _c : "",
8908
8979
  unfinishGame: raw.checkgame.unfinishgame == 1,
8909
- ledgerIndex: raw.checkgame.ledgerindex ?? 0,
8910
- amount: raw.checkgame.amount ?? ""
8980
+ ledgerIndex: (_d = raw.checkgame.ledgerindex) != null ? _d : 0,
8981
+ amount: (_e = raw.checkgame.amount) != null ? _e : ""
8911
8982
  };
8912
8983
  };
8913
8984
  const modifyCheckGoldEggValidateRequest = (requests) => {
@@ -8926,9 +8997,10 @@ const modifyApplyGoldEggResponse = (result) => {
8926
8997
  return result;
8927
8998
  };
8928
8999
  const getCheckGoldEggTokenResponse = (raw) => {
9000
+ var _a;
8929
9001
  return {
8930
9002
  status: raw.status == 1,
8931
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
9003
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8932
9004
  tokenAmount: raw.token_amount
8933
9005
  };
8934
9006
  };
@@ -8939,10 +9011,11 @@ const modifyCheckGoldEggTokenResponse = (result) => {
8939
9011
  return result;
8940
9012
  };
8941
9013
  const getGetGoldEggDataResponse = (raw) => {
9014
+ var _a;
8942
9015
  return {
8943
9016
  status: true,
8944
9017
  message: "",
8945
- data: raw.bottomDescription ?? ""
9018
+ data: (_a = raw.bottomDescription) != null ? _a : ""
8946
9019
  };
8947
9020
  };
8948
9021
  const modifyGetGoldEggDataRequest = (requests) => {
@@ -8958,10 +9031,11 @@ var NewbieMissionStatus = /* @__PURE__ */ ((NewbieMissionStatus2) => {
8958
9031
  return NewbieMissionStatus2;
8959
9032
  })(NewbieMissionStatus || {});
8960
9033
  const getGetNewbieMissionDataResponse = (raw) => {
9034
+ var _a, _b, _c;
8961
9035
  if (raw.status == 0 || raw.data == null) {
8962
9036
  return {
8963
9037
  status: false,
8964
- message: raw.msg ?? "",
9038
+ message: (_a = raw.msg) != null ? _a : "",
8965
9039
  data: null
8966
9040
  };
8967
9041
  }
@@ -8973,7 +9047,7 @@ const getGetNewbieMissionDataResponse = (raw) => {
8973
9047
  }
8974
9048
  return {
8975
9049
  status: raw.status == 1,
8976
- message: raw.msg ?? "",
9050
+ message: (_b = raw.msg) != null ? _b : "",
8977
9051
  data: {
8978
9052
  activebet: {
8979
9053
  enabled: raw.data.activebet.enabled,
@@ -8988,7 +9062,7 @@ const getGetNewbieMissionDataResponse = (raw) => {
8988
9062
  },
8989
9063
  verify: raw.data.verify,
8990
9064
  prize: {
8991
- promoAmount: raw.data.promo_amount ?? "",
9065
+ promoAmount: (_c = raw.data.promo_amount) != null ? _c : "",
8992
9066
  status
8993
9067
  }
8994
9068
  }
@@ -9001,10 +9075,11 @@ const modifyGetNewbieMissionDataResponse = (result) => {
9001
9075
  return result;
9002
9076
  };
9003
9077
  const getGetNewbieMissionClaimResponse = (raw) => {
9078
+ var _a, _b, _c;
9004
9079
  if (raw.status == 0 || raw.data == null) {
9005
9080
  return {
9006
9081
  status: false,
9007
- message: raw.msg ?? "",
9082
+ message: (_a = raw.msg) != null ? _a : "",
9008
9083
  data: {
9009
9084
  promoAmount: "0"
9010
9085
  }
@@ -9012,9 +9087,9 @@ const getGetNewbieMissionClaimResponse = (raw) => {
9012
9087
  }
9013
9088
  return {
9014
9089
  status: raw.status == 1,
9015
- message: raw.msg ?? "",
9090
+ message: (_b = raw.msg) != null ? _b : "",
9016
9091
  data: {
9017
- promoAmount: raw.data.promo_amount ?? "0"
9092
+ promoAmount: (_c = raw.data.promo_amount) != null ? _c : "0"
9018
9093
  }
9019
9094
  };
9020
9095
  };
@@ -9025,29 +9100,31 @@ const modifyGetNewbieMissionClaimResponse = (result) => {
9025
9100
  return result;
9026
9101
  };
9027
9102
  const getGetFeedbackResponse = (raw) => {
9103
+ var _a, _b, _c;
9028
9104
  if (raw.status == 0) {
9029
9105
  return {
9030
9106
  status: false,
9031
- message: raw.errormessage ?? "",
9107
+ message: (_a = raw.errormessage) != null ? _a : "",
9032
9108
  data: null
9033
9109
  };
9034
9110
  }
9035
9111
  return {
9036
9112
  status: raw.status == 1,
9037
- message: raw.errormessage ?? "",
9038
- data: raw.data.map((item) => {
9113
+ message: (_b = raw.errormessage) != null ? _b : "",
9114
+ data: (_c = raw.data.map((item) => {
9115
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i;
9039
9116
  return {
9040
- feedbackId: item.feedbackid ?? "",
9041
- accountId: item.accountid ?? "",
9042
- title: item.subject ?? "",
9043
- content: item.content ?? "",
9044
- statusFeedback: item.status ?? "",
9045
- createdOn: item.createdon ?? "",
9046
- replyContent: item.replycontent ?? "",
9047
- replyBy: item.replyby ?? "",
9048
- replyOn: item.replyon ?? ""
9117
+ feedbackId: (_a2 = item.feedbackid) != null ? _a2 : "",
9118
+ accountId: (_b2 = item.accountid) != null ? _b2 : "",
9119
+ title: (_c2 = item.subject) != null ? _c2 : "",
9120
+ content: (_d = item.content) != null ? _d : "",
9121
+ statusFeedback: (_e = item.status) != null ? _e : "",
9122
+ createdOn: (_f = item.createdon) != null ? _f : "",
9123
+ replyContent: (_g = item.replycontent) != null ? _g : "",
9124
+ replyBy: (_h = item.replyby) != null ? _h : "",
9125
+ replyOn: (_i = item.replyon) != null ? _i : ""
9049
9126
  };
9050
- }) ?? []
9127
+ })) != null ? _c : []
9051
9128
  };
9052
9129
  };
9053
9130
  const modifyGetFeedbackRequest = (requests) => {
@@ -9057,9 +9134,10 @@ const modifyGetFeedbackResponse = (result) => {
9057
9134
  return result;
9058
9135
  };
9059
9136
  const getSubmitFeedbackResponse = (raw) => {
9137
+ var _a;
9060
9138
  return {
9061
9139
  status: raw.status == 1,
9062
- message: raw.message ?? ""
9140
+ message: (_a = raw.message) != null ? _a : ""
9063
9141
  };
9064
9142
  };
9065
9143
  const modifySubmitFeedbackRequest = (requests) => {
@@ -9069,11 +9147,11 @@ const modifySubmitFeedbackResponse = (result) => {
9069
9147
  return result;
9070
9148
  };
9071
9149
  const getCasinoGameListResponse = (raw) => {
9072
- var _a, _b, _c, _d;
9150
+ var _a, _b, _c, _d, _e, _f, _g;
9073
9151
  return {
9074
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
9075
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
9076
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
9152
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
9153
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
9154
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
9077
9155
  return {
9078
9156
  gameId: item.id,
9079
9157
  platformId: item.id_PlatformProduct,
@@ -9091,7 +9169,7 @@ const getCasinoGameListResponse = (raw) => {
9091
9169
  rate: "0.00",
9092
9170
  jackpotAmount: ""
9093
9171
  };
9094
- })) ?? []
9172
+ })) != null ? _g : []
9095
9173
  };
9096
9174
  };
9097
9175
  const modifyCasinoGameListRequest = (requests) => {
@@ -9111,28 +9189,28 @@ const modifyCasinoGameListResponse = (result) => {
9111
9189
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
9112
9190
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
9113
9191
  const tempCasinoGameList = casinoGameList.data.map((gameInfo) => {
9192
+ var _a;
9114
9193
  const turnover = getPlatformTurnoverRate.find(
9115
9194
  (item) => item.id === gameInfo.platformId
9116
9195
  );
9117
- return {
9118
- ...gameInfo,
9119
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
9120
- };
9196
+ return __spreadProps(__spreadValues({}, gameInfo), {
9197
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
9198
+ });
9121
9199
  });
9122
- result.casinoGameList = {
9123
- ...casinoGameList,
9200
+ result.casinoGameList = __spreadProps(__spreadValues({}, casinoGameList), {
9124
9201
  data: tempCasinoGameList
9125
- };
9202
+ });
9126
9203
  delete result.getPlatformTurnoverRate;
9127
9204
  }
9128
9205
  }
9129
9206
  return result;
9130
9207
  };
9131
9208
  const getIsMobileRegisteredResponse = (raw) => {
9209
+ var _a;
9132
9210
  console.log(raw);
9133
9211
  return {
9134
9212
  status: raw.status,
9135
- message: raw.msg ?? ""
9213
+ message: (_a = raw.msg) != null ? _a : ""
9136
9214
  };
9137
9215
  };
9138
9216
  const modifyIsMobileRegisteredRequest = (requests) => {
@@ -9142,13 +9220,13 @@ const modifyIsMobileRegisteredResponse = (result) => {
9142
9220
  return result;
9143
9221
  };
9144
9222
  const getGetActivePlatformResponse = (raw) => {
9145
- var _a;
9146
- return ((_a = raw.mdPlatformMaster) == null ? void 0 : _a.map((item) => {
9223
+ var _a, _b;
9224
+ return (_b = (_a = raw.mdPlatformMaster) == null ? void 0 : _a.map((item) => {
9147
9225
  return {
9148
9226
  platformId: item.id,
9149
9227
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`
9150
9228
  };
9151
- })) ?? [];
9229
+ })) != null ? _b : [];
9152
9230
  };
9153
9231
  const modifyGetActivePlatformRequest = (requests) => {
9154
9232
  return requests;
@@ -9156,43 +9234,25 @@ const modifyGetActivePlatformRequest = (requests) => {
9156
9234
  const modifyGetActivePlatformResponse = (result) => {
9157
9235
  return result;
9158
9236
  };
9159
- const getSubmitTacCodeResponse = (raw) => {
9160
- return getBaseResponse(raw);
9161
- };
9162
- const modifySubmitTacCodeRequest = (requests) => {
9163
- return requests;
9164
- };
9165
- const modifySubmitTacCodeResponse = (result) => {
9166
- return result;
9167
- };
9168
- const getUpdateRegisterResponse = (raw) => {
9169
- return getBaseResponse(raw);
9170
- };
9171
- const modifyUpdateRegisterRequest = (requests) => {
9172
- return requests;
9173
- };
9174
- const modifyUpdateRegisterResponse = (result) => {
9175
- return result;
9176
- };
9177
9237
  const getAgMemberTransactionResponse = (raw) => {
9178
- var _a;
9238
+ var _a, _b, _c, _d, _e, _f;
9179
9239
  if (raw.status == 0) {
9180
9240
  return {
9181
9241
  status: raw.status == 0,
9182
- message: raw.message ?? "",
9242
+ message: (_a = raw.message) != null ? _a : "",
9183
9243
  data: null
9184
9244
  };
9185
9245
  }
9186
9246
  if (!raw.data.status) {
9187
9247
  return {
9188
9248
  status: raw.data.status,
9189
- message: raw.data.msg ?? "",
9249
+ message: (_b = raw.data.msg) != null ? _b : "",
9190
9250
  data: null
9191
9251
  };
9192
9252
  }
9193
9253
  return {
9194
9254
  status: raw.status == 1 && raw.data.status,
9195
- message: raw.message ?? raw.data.msg ?? "",
9255
+ message: (_d = (_c = raw.message) != null ? _c : raw.data.msg) != null ? _d : "",
9196
9256
  data: {
9197
9257
  paging: {
9198
9258
  currentPage: raw.data.paging.current_page,
@@ -9200,7 +9260,7 @@ const getAgMemberTransactionResponse = (raw) => {
9200
9260
  totalPage: raw.data.paging.total_page,
9201
9261
  totalRecord: raw.data.paging.total_record
9202
9262
  },
9203
- transaction: ((_a = raw.data.transaction) == null ? void 0 : _a.map((item) => {
9263
+ transaction: (_f = (_e = raw.data.transaction) == null ? void 0 : _e.map((item) => {
9204
9264
  return {
9205
9265
  accountCode: item.accountcode,
9206
9266
  amount: item.amount,
@@ -9215,7 +9275,7 @@ const getAgMemberTransactionResponse = (raw) => {
9215
9275
  transactionLabel: item.transactionlabel,
9216
9276
  transactionIndex: item.transactionindex
9217
9277
  };
9218
- })) ?? []
9278
+ })) != null ? _f : []
9219
9279
  }
9220
9280
  };
9221
9281
  };
@@ -10145,18 +10205,6 @@ const registerAllApiModels = () => {
10145
10205
  modifyAgMemberTransactionRequest,
10146
10206
  modifyAgMemberTransactionResponse
10147
10207
  );
10148
- apiModelRegistry.register(
10149
- Api.submitTacCode,
10150
- getSubmitTacCodeResponse,
10151
- modifySubmitTacCodeRequest,
10152
- modifySubmitTacCodeResponse
10153
- );
10154
- apiModelRegistry.register(
10155
- Api.updateRegister,
10156
- getUpdateRegisterResponse,
10157
- modifyUpdateRegisterRequest,
10158
- modifyUpdateRegisterResponse
10159
- );
10160
10208
  } catch (error) {
10161
10209
  console.error("❌ Failed to register API models:", error);
10162
10210
  }
@@ -10249,14 +10297,14 @@ axiosInstance.interceptors.response.use(
10249
10297
  return Promise.reject(errorResponse);
10250
10298
  }
10251
10299
  );
10252
- const post = async (requests) => {
10300
+ const post = (requests) => __async(void 0, null, function* () {
10253
10301
  const modifiedRequests = processRequestModifications(requests);
10254
10302
  const requestData = modifiedRequests.map((item) => ({
10255
10303
  name: item.name,
10256
10304
  query: btoa(item.query)
10257
10305
  }));
10258
10306
  const payload = { requests: requestData };
10259
- const response = await axiosInstance.post(
10307
+ const response = yield axiosInstance.post(
10260
10308
  `/graph/jwt`,
10261
10309
  stringToBytes(JSON.stringify(payload))
10262
10310
  );
@@ -10284,7 +10332,7 @@ const post = async (requests) => {
10284
10332
  }
10285
10333
  result.result = processResponseModifications(result.result);
10286
10334
  return result;
10287
- };
10335
+ });
10288
10336
  const api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10289
10337
  __proto__: null,
10290
10338
  post
@@ -10308,18 +10356,18 @@ const DefaultAutoRegisterData = {
10308
10356
  }
10309
10357
  }
10310
10358
  };
10311
- const autoRegisterApi = async () => {
10312
- let result = {
10359
+ const autoRegisterApi = () => __async(void 0, null, function* () {
10360
+ var _a;
10361
+ let result = __spreadValues({
10313
10362
  status: 200,
10314
- message: "",
10315
- ...DefaultAutoRegisterData
10316
- };
10363
+ message: ""
10364
+ }, DefaultAutoRegisterData);
10317
10365
  try {
10318
- const request = await axiosInstance.get("/graph/autoregister");
10366
+ const request = yield axiosInstance.get("/graph/autoregister");
10319
10367
  const output = request.data;
10320
10368
  result.data = {
10321
10369
  status: output.status == 1,
10322
- message: output.message ?? "",
10370
+ message: (_a = output.message) != null ? _a : "",
10323
10371
  data: {
10324
10372
  account: output.data.accountcode,
10325
10373
  password: output.data.password,
@@ -10328,14 +10376,13 @@ const autoRegisterApi = async () => {
10328
10376
  };
10329
10377
  } catch (error) {
10330
10378
  const extendedError = error;
10331
- result = {
10379
+ result = __spreadValues({
10332
10380
  status: extendedError.status || 500,
10333
- message: error.message,
10334
- ...DefaultAutoRegisterData
10335
- };
10381
+ message: error.message
10382
+ }, DefaultAutoRegisterData);
10336
10383
  }
10337
10384
  return result;
10338
- };
10385
+ });
10339
10386
  const DefaultGetMaintenanceModeData = {
10340
10387
  data: {
10341
10388
  status: false,
@@ -10347,35 +10394,33 @@ const DefaultGetMaintenanceModeData = {
10347
10394
  }
10348
10395
  }
10349
10396
  };
10350
- const getMaintenanceModeApi = async () => {
10351
- var _a, _b, _c;
10352
- let result = {
10397
+ const getMaintenanceModeApi = () => __async(void 0, null, function* () {
10398
+ var _a, _b, _c, _d, _e, _f;
10399
+ let result = __spreadValues({
10353
10400
  status: 200,
10354
- message: "",
10355
- ...DefaultGetMaintenanceModeData
10356
- };
10401
+ message: ""
10402
+ }, DefaultGetMaintenanceModeData);
10357
10403
  try {
10358
- const request = await axiosInstance.get("/graph/getMaintenanceMode");
10404
+ const request = yield axiosInstance.get("/graph/getMaintenanceMode");
10359
10405
  const output = request.data;
10360
10406
  result.data = {
10361
10407
  status: output.status == 1,
10362
- message: output.msg ?? "",
10408
+ message: (_a = output.msg) != null ? _a : "",
10363
10409
  data: {
10364
- isMaintenance: ((_a = output.data) == null ? void 0 : _a.maintenanceMode) == "1",
10365
- startTime: ((_b = output.data) == null ? void 0 : _b.startTime) ?? "",
10366
- endTime: ((_c = output.data) == null ? void 0 : _c.endTime) ?? ""
10410
+ isMaintenance: ((_b = output.data) == null ? void 0 : _b.maintenanceMode) == "1",
10411
+ startTime: (_d = (_c = output.data) == null ? void 0 : _c.startTime) != null ? _d : "",
10412
+ endTime: (_f = (_e = output.data) == null ? void 0 : _e.endTime) != null ? _f : ""
10367
10413
  }
10368
10414
  };
10369
10415
  } catch (error) {
10370
10416
  const extendedError = error;
10371
- result = {
10417
+ result = __spreadValues({
10372
10418
  status: extendedError.status || 500,
10373
- message: error.message,
10374
- ...DefaultGetMaintenanceModeData
10375
- };
10419
+ message: error.message
10420
+ }, DefaultGetMaintenanceModeData);
10376
10421
  }
10377
10422
  return result;
10378
- };
10423
+ });
10379
10424
  const DefaultjackpotData = {
10380
10425
  data: {
10381
10426
  startTimestamp: 0,
@@ -10384,14 +10429,13 @@ const DefaultjackpotData = {
10384
10429
  updateInterval: 0
10385
10430
  }
10386
10431
  };
10387
- const jackpotDataApi = async () => {
10388
- let result = {
10432
+ const jackpotDataApi = () => __async(void 0, null, function* () {
10433
+ let result = __spreadValues({
10389
10434
  status: 200,
10390
- message: "",
10391
- ...DefaultjackpotData
10392
- };
10435
+ message: ""
10436
+ }, DefaultjackpotData);
10393
10437
  try {
10394
- const request = await axiosInstance.get("/api/jackpotData");
10438
+ const request = yield axiosInstance.get("/api/jackpotData");
10395
10439
  const output = request.data;
10396
10440
  result.data = {
10397
10441
  startTimestamp: output.startTimestamp,
@@ -10401,15 +10445,15 @@ const jackpotDataApi = async () => {
10401
10445
  };
10402
10446
  } catch (error) {
10403
10447
  const extendedError = error;
10404
- result = {
10448
+ result = __spreadValues({
10405
10449
  status: extendedError.status || 500,
10406
- message: error.message,
10407
- ...DefaultjackpotData
10408
- };
10450
+ message: error.message
10451
+ }, DefaultjackpotData);
10409
10452
  }
10410
10453
  return result;
10411
- };
10412
- const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10454
+ });
10455
+ const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0, null, function* () {
10456
+ var _a, _b;
10413
10457
  let result = {
10414
10458
  status: 200,
10415
10459
  message: "",
@@ -10419,7 +10463,7 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10419
10463
  }
10420
10464
  };
10421
10465
  try {
10422
- const request = await axiosInstance.post(`/loadgame/${gameId}`, {
10466
+ const request = yield axiosInstance.post(`/loadgame/${gameId}`, {
10423
10467
  wanturl: 1,
10424
10468
  extra: {
10425
10469
  Stage: stage,
@@ -10433,8 +10477,8 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10433
10477
  status: 200,
10434
10478
  message: "",
10435
10479
  data: {
10436
- message: output.msg ?? "",
10437
- urlLink: output.data ?? ""
10480
+ message: (_a = output.msg) != null ? _a : "",
10481
+ urlLink: (_b = output.data) != null ? _b : ""
10438
10482
  }
10439
10483
  };
10440
10484
  } catch (error) {
@@ -10449,8 +10493,8 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10449
10493
  };
10450
10494
  }
10451
10495
  return result;
10452
- };
10453
- const loginApi = async (username, password, type = "") => {
10496
+ });
10497
+ const loginApi = (username, password, type = "") => __async(void 0, null, function* () {
10454
10498
  let result = {
10455
10499
  status: 200,
10456
10500
  message: ""
@@ -10463,7 +10507,7 @@ const loginApi = async (username, password, type = "") => {
10463
10507
  if (type !== "") {
10464
10508
  payload.type = type;
10465
10509
  }
10466
- await axiosInstance.post("/graph/auth/sesh", payload);
10510
+ yield axiosInstance.post("/graph/auth/sesh", payload);
10467
10511
  result = {
10468
10512
  status: 200,
10469
10513
  message: ""
@@ -10476,14 +10520,14 @@ const loginApi = async (username, password, type = "") => {
10476
10520
  };
10477
10521
  }
10478
10522
  return result;
10479
- };
10480
- const logoutApi = async () => {
10523
+ });
10524
+ const logoutApi = () => __async(void 0, null, function* () {
10481
10525
  let result = {
10482
10526
  status: 200,
10483
10527
  message: ""
10484
10528
  };
10485
10529
  try {
10486
- await axiosInstance.post("/graph/auth/sesh/logout");
10530
+ yield axiosInstance.post("/graph/auth/sesh/logout");
10487
10531
  } catch (error) {
10488
10532
  const extendedError = error;
10489
10533
  result = {
@@ -10492,14 +10536,14 @@ const logoutApi = async () => {
10492
10536
  };
10493
10537
  }
10494
10538
  return result;
10495
- };
10496
- const rename = async (fullname) => {
10539
+ });
10540
+ const rename = (fullname) => __async(void 0, null, function* () {
10497
10541
  let result = {
10498
10542
  status: 200,
10499
10543
  message: ""
10500
10544
  };
10501
10545
  try {
10502
- const request = await axiosInstance.post("/graph/rename", {
10546
+ const request = yield axiosInstance.post("/graph/rename", {
10503
10547
  fullname
10504
10548
  });
10505
10549
  if (false) ;
@@ -10516,48 +10560,47 @@ const rename = async (fullname) => {
10516
10560
  };
10517
10561
  }
10518
10562
  return result;
10519
- };
10563
+ });
10520
10564
  const DefaultSetLocaleData = {
10521
10565
  data: {
10522
10566
  status: false,
10523
10567
  message: ""
10524
10568
  }
10525
10569
  };
10526
- const setLocaleApi = async (localeCode, udid) => {
10527
- let result = {
10570
+ const setLocaleApi = (localeCode, udid) => __async(void 0, null, function* () {
10571
+ var _a;
10572
+ let result = __spreadValues({
10528
10573
  status: 200,
10529
- message: "",
10530
- ...DefaultSetLocaleData
10531
- };
10574
+ message: ""
10575
+ }, DefaultSetLocaleData);
10532
10576
  try {
10533
- const request = await axiosInstance.post("/graph/setlocale", {
10577
+ const request = yield axiosInstance.post("/graph/setlocale", {
10534
10578
  language: localeCode,
10535
- udid: udid ?? ""
10579
+ udid: udid != null ? udid : ""
10536
10580
  });
10537
10581
  const output = JSON.parse(
10538
10582
  atob(request.data.responses[0].attributes)
10539
10583
  );
10540
10584
  result.data = {
10541
10585
  status: output.status == 1,
10542
- message: output.message ?? ""
10586
+ message: (_a = output.message) != null ? _a : ""
10543
10587
  };
10544
10588
  } catch (error) {
10545
10589
  const extendedError = error;
10546
- result = {
10590
+ result = __spreadValues({
10547
10591
  status: extendedError.status || 500,
10548
- message: error.message,
10549
- ...DefaultSetLocaleData
10550
- };
10592
+ message: error.message
10593
+ }, DefaultSetLocaleData);
10551
10594
  }
10552
10595
  return result;
10553
- };
10554
- const telegramLoginApi = async (data) => {
10596
+ });
10597
+ const telegramLoginApi = (data) => __async(void 0, null, function* () {
10555
10598
  let result = {
10556
10599
  status: 200,
10557
10600
  message: ""
10558
10601
  };
10559
10602
  try {
10560
- await axiosInstance.post("/loginVia/telegram", data);
10603
+ yield axiosInstance.post("/loginVia/telegram", data);
10561
10604
  result = {
10562
10605
  status: 200,
10563
10606
  message: ""
@@ -10570,41 +10613,7 @@ const telegramLoginApi = async (data) => {
10570
10613
  };
10571
10614
  }
10572
10615
  return result;
10573
- };
10574
- const DefaultSocialLoginData = {
10575
- data: {
10576
- status: false,
10577
- message: ""
10578
- }
10579
- };
10580
- const socialLoginApi = async (loginToken, loginEmail, loginMethod) => {
10581
- let result = {
10582
- status: 200,
10583
- message: "",
10584
- ...DefaultSocialLoginData
10585
- };
10586
- try {
10587
- const payload = {
10588
- token: loginToken,
10589
- email: loginEmail,
10590
- social_type: loginMethod
10591
- };
10592
- const request = await axiosInstance.post("/graph/socialLogin", payload);
10593
- const output = request.data;
10594
- result.data = {
10595
- status: output.status == 1,
10596
- message: output.errormessage ?? ""
10597
- };
10598
- } catch (error) {
10599
- const extendedError = error;
10600
- result = {
10601
- status: extendedError.status || 500,
10602
- message: error.message,
10603
- ...DefaultSocialLoginData
10604
- };
10605
- }
10606
- return result;
10607
- };
10616
+ });
10608
10617
  export {
10609
10618
  AccumulateDepositStatus,
10610
10619
  Api,
@@ -10628,6 +10637,5 @@ export {
10628
10637
  post,
10629
10638
  rename,
10630
10639
  setLocaleApi,
10631
- socialLoginApi,
10632
10640
  telegramLoginApi
10633
10641
  };