50p82u21t54k 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/50p82u21t54k.es.js +377 -478
- package/dist/50p82u21t54k.umd.js +1 -1
- package/dist/cmsList/method.d.ts +1 -42
- package/dist/cmsList/method.d.ts.map +1 -1
- package/dist/cmsList/type.d.ts +29 -1
- package/dist/cmsList/type.d.ts.map +1 -1
- package/dist/csLink/method.d.ts +1 -5
- package/dist/csLink/method.d.ts.map +1 -1
- package/dist/csLink/type.d.ts +1 -1
- package/dist/csLink/type.d.ts.map +1 -1
- package/dist/eGame/method.d.ts +2 -20
- package/dist/eGame/method.d.ts.map +1 -1
- package/dist/eGame/type.d.ts +1 -1
- package/dist/eGame/type.d.ts.map +1 -1
- package/dist/fishGames/method.d.ts +1 -29
- package/dist/fishGames/method.d.ts.map +1 -1
- package/dist/fishGames/type.d.ts +4 -4
- package/dist/fishGames/type.d.ts.map +1 -1
- package/dist/getLocale/method.d.ts +1 -13
- package/dist/getLocale/method.d.ts.map +1 -1
- package/dist/getLocale/type.d.ts +1 -1
- package/dist/getLocale/type.d.ts.map +1 -1
- package/dist/getSetting/method.d.ts +1 -1
- package/dist/getSetting/method.d.ts.map +1 -1
- package/dist/home/method.d.ts +1 -3
- package/dist/home/method.d.ts.map +1 -1
- package/dist/home/type.d.ts +18 -4
- package/dist/home/type.d.ts.map +1 -1
- package/dist/hotGames/method.d.ts +1 -36
- package/dist/hotGames/method.d.ts.map +1 -1
- package/dist/hotGames/type.d.ts +21 -20
- package/dist/hotGames/type.d.ts.map +1 -1
- package/dist/login (incomplete)/index.d.ts +1 -0
- package/dist/login (incomplete)/index.d.ts.map +1 -0
- package/dist/login (incomplete)/method.d.ts +1 -0
- package/dist/login (incomplete)/method.d.ts.map +1 -0
- package/dist/login (incomplete)/type.d.ts +1 -0
- package/dist/login (incomplete)/type.d.ts.map +1 -0
- package/dist/promotion/method.d.ts +1 -43
- package/dist/promotion/method.d.ts.map +1 -1
- package/dist/promotion/type.d.ts +1 -1
- package/dist/promotion/type.d.ts.map +1 -1
- package/dist/trialGames/method.d.ts +1 -25
- package/dist/trialGames/method.d.ts.map +1 -1
- package/dist/trialGames/type.d.ts +3 -3
- package/dist/trialGames/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/50p82u21t54k.es.js
CHANGED
|
@@ -1,93 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as
|
|
3
|
-
import
|
|
1
|
+
import L from "axios";
|
|
2
|
+
import { ref as v } from "vue";
|
|
3
|
+
import c from "crypto-js";
|
|
4
4
|
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
|
-
get
|
|
7
|
-
return
|
|
6
|
+
get CmsId() {
|
|
7
|
+
return i;
|
|
8
8
|
},
|
|
9
|
-
get
|
|
9
|
+
get getCmsList() {
|
|
10
10
|
return d;
|
|
11
11
|
}
|
|
12
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
13
|
__proto__: null,
|
|
14
|
-
get
|
|
15
|
-
return U;
|
|
16
|
-
},
|
|
17
|
-
get processFishGame() {
|
|
18
|
-
return f;
|
|
19
|
-
},
|
|
20
|
-
get processFishGamesData() {
|
|
14
|
+
get getHotGames() {
|
|
21
15
|
return _;
|
|
22
16
|
}
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
17
|
+
}, Symbol.toStringTag, { value: "Module" })), N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
get getFishGames() {
|
|
20
|
+
return S;
|
|
21
|
+
}
|
|
22
|
+
}, Symbol.toStringTag, { value: "Module" })), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
23
|
__proto__: null,
|
|
25
24
|
get getTrialGames() {
|
|
26
|
-
return H;
|
|
27
|
-
},
|
|
28
|
-
get processTrialGamesData() {
|
|
29
25
|
return y;
|
|
30
26
|
}
|
|
31
27
|
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
28
|
__proto__: null,
|
|
33
|
-
get
|
|
34
|
-
return
|
|
35
|
-
},
|
|
36
|
-
get processHomeData() {
|
|
37
|
-
return h;
|
|
38
|
-
},
|
|
39
|
-
get processPlatformGame() {
|
|
40
|
-
return u;
|
|
29
|
+
get getPromotion() {
|
|
30
|
+
return b;
|
|
41
31
|
}
|
|
42
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
33
|
__proto__: null,
|
|
44
|
-
get
|
|
45
|
-
return
|
|
34
|
+
get GameType() {
|
|
35
|
+
return P;
|
|
36
|
+
},
|
|
37
|
+
get getHome() {
|
|
38
|
+
return x;
|
|
46
39
|
}
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48
41
|
__proto__: null,
|
|
49
|
-
get
|
|
50
|
-
return
|
|
51
|
-
},
|
|
52
|
-
get processPromotionData() {
|
|
53
|
-
return b;
|
|
42
|
+
get getCurrentLang() {
|
|
43
|
+
return D;
|
|
54
44
|
}
|
|
55
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
+
}, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
56
46
|
__proto__: null,
|
|
57
47
|
get getGetLocale() {
|
|
58
|
-
return
|
|
59
|
-
},
|
|
60
|
-
get processGetLocaleData() {
|
|
61
|
-
return P;
|
|
48
|
+
return J;
|
|
62
49
|
}
|
|
63
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
50
|
+
}, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
51
|
__proto__: null,
|
|
65
52
|
get getCsLink() {
|
|
66
|
-
return
|
|
67
|
-
},
|
|
68
|
-
get processCsLinkData() {
|
|
69
|
-
return G;
|
|
53
|
+
return z;
|
|
70
54
|
}
|
|
71
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
55
|
+
}, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72
56
|
__proto__: null,
|
|
73
57
|
get getEGame() {
|
|
74
|
-
return
|
|
75
|
-
},
|
|
76
|
-
get processEGameData() {
|
|
77
|
-
return L;
|
|
78
|
-
}
|
|
79
|
-
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
|
-
__proto__: null,
|
|
81
|
-
get CmsId() {
|
|
82
|
-
return O;
|
|
83
|
-
},
|
|
84
|
-
get getCmsList() {
|
|
85
|
-
return X;
|
|
86
|
-
},
|
|
87
|
-
get processCsLinkData() {
|
|
88
|
-
return v;
|
|
58
|
+
return V;
|
|
89
59
|
}
|
|
90
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
60
|
+
}, Symbol.toStringTag, { value: "Module" })), u = L.create({
|
|
91
61
|
baseURL: "/apis",
|
|
92
62
|
timeout: 5e3,
|
|
93
63
|
// Request timeout
|
|
@@ -133,155 +103,171 @@ const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
133
103
|
// },
|
|
134
104
|
// },
|
|
135
105
|
});
|
|
136
|
-
|
|
106
|
+
u.interceptors.request.use(
|
|
137
107
|
(e) => e,
|
|
138
108
|
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
139
109
|
);
|
|
140
|
-
|
|
110
|
+
u.interceptors.response.use(
|
|
141
111
|
(e) => e,
|
|
142
112
|
(e) => {
|
|
143
|
-
const
|
|
113
|
+
const s = {
|
|
144
114
|
status: null,
|
|
145
115
|
message: "An error occurred"
|
|
146
116
|
};
|
|
147
|
-
return e.response ? (
|
|
117
|
+
return e.response ? (s.status = e.response.status, s.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(s)), e.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : e.response.status === 404 ? console.error("Resource not found.") : e.response.status >= 500 && console.error("Server error. Please try again later.")) : e.request ? console.error("No response received:", e.request) : console.error("Error setting up request:", e.message), Promise.reject(s);
|
|
148
118
|
}
|
|
149
119
|
);
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
return
|
|
120
|
+
const m = v("");
|
|
121
|
+
function o() {
|
|
122
|
+
return m.value === "" ? 0 : 1;
|
|
153
123
|
}
|
|
154
|
-
const
|
|
155
|
-
home:
|
|
156
|
-
hotGames:
|
|
157
|
-
fishGames:
|
|
158
|
-
trialGames:
|
|
159
|
-
currentLang:
|
|
160
|
-
promotion:
|
|
161
|
-
getLocale:
|
|
162
|
-
csLink:
|
|
163
|
-
eGame:
|
|
164
|
-
cmsList:
|
|
165
|
-
},
|
|
124
|
+
const R = {
|
|
125
|
+
home: j,
|
|
126
|
+
hotGames: A,
|
|
127
|
+
fishGames: N,
|
|
128
|
+
trialGames: G,
|
|
129
|
+
currentLang: T,
|
|
130
|
+
promotion: M,
|
|
131
|
+
getLocale: F,
|
|
132
|
+
csLink: k,
|
|
133
|
+
eGame: B,
|
|
134
|
+
cmsList: E
|
|
135
|
+
}, $ = {
|
|
166
136
|
install(e) {
|
|
167
|
-
e.config.globalProperties.$library =
|
|
137
|
+
e.config.globalProperties.$library = R;
|
|
168
138
|
}
|
|
169
|
-
},
|
|
139
|
+
}, p = (e) => {
|
|
170
140
|
try {
|
|
171
|
-
const
|
|
172
|
-
|
|
141
|
+
const s = JSON.parse(
|
|
142
|
+
c.AES.decrypt(e, m.value, {
|
|
173
143
|
format: {
|
|
174
144
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
145
|
stringify: (a) => {
|
|
176
|
-
const
|
|
177
|
-
ct: a.ciphertext.toString(
|
|
146
|
+
const t = {
|
|
147
|
+
ct: a.ciphertext.toString(c.enc.Base64)
|
|
178
148
|
};
|
|
179
|
-
return a.iv && (
|
|
149
|
+
return a.iv && (t.iv = a.iv.toString()), a.salt && (t.s = a.salt.toString()), JSON.stringify(t);
|
|
180
150
|
},
|
|
181
151
|
parse: (a) => {
|
|
182
|
-
const
|
|
183
|
-
ciphertext:
|
|
152
|
+
const t = JSON.parse(a), n = c.lib.CipherParams.create({
|
|
153
|
+
ciphertext: c.enc.Base64.parse(t.ct)
|
|
184
154
|
});
|
|
185
|
-
return
|
|
155
|
+
return t.iv && (n.iv = c.enc.Hex.parse(t.iv)), t.s && (n.salt = c.enc.Hex.parse(t.s)), n;
|
|
186
156
|
}
|
|
187
157
|
}
|
|
188
|
-
}).toString(
|
|
158
|
+
}).toString(c.enc.Utf8)
|
|
189
159
|
);
|
|
190
|
-
return
|
|
191
|
-
} catch (
|
|
192
|
-
return console.error(
|
|
160
|
+
return s !== "" ? JSON.parse(s) : s;
|
|
161
|
+
} catch (s) {
|
|
162
|
+
return console.error(s), "";
|
|
193
163
|
}
|
|
194
164
|
};
|
|
195
|
-
async function
|
|
165
|
+
async function d(e) {
|
|
166
|
+
const s = {
|
|
167
|
+
status: 200,
|
|
168
|
+
message: "",
|
|
169
|
+
data: null
|
|
170
|
+
};
|
|
171
|
+
try {
|
|
172
|
+
const a = await u.get(`/cmsList?id=${e}`, {
|
|
173
|
+
params: {
|
|
174
|
+
render: o()
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
let t;
|
|
178
|
+
return o() ? t = JSON.parse(p(a.data)) : t = a.data, a.status != 200 ? (s.status = a.status, s.message = "", s) : (s.data = {
|
|
179
|
+
cmsList: t.cmslist.map((n) => ({
|
|
180
|
+
name: n.name ?? "",
|
|
181
|
+
content: n.content ?? "",
|
|
182
|
+
link: n.link ?? "",
|
|
183
|
+
linkTarget: n.link_target ?? "",
|
|
184
|
+
updatedOn: n.updated_on ?? "",
|
|
185
|
+
idCmsCategory: n.id_cms_category ?? 0,
|
|
186
|
+
contentOrg: n.content_org ?? "",
|
|
187
|
+
linkOrg: n.link_org ?? ""
|
|
188
|
+
}))
|
|
189
|
+
}, s);
|
|
190
|
+
} catch (a) {
|
|
191
|
+
const t = a;
|
|
192
|
+
return s.status = t.status || 500, s.message = t.message, s;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
var i = /* @__PURE__ */ ((e) => (e[e.AllCategories = 0] = "AllCategories", e[e.Lotto = 2] = "Lotto", e[e.LiveCasino = 3] = "LiveCasino", e[e.SlotGames = 4] = "SlotGames", e[e.SportsBetting = 5] = "SportsBetting", e[e.LatestAd = 7] = "LatestAd", e[e.Promotions = 8] = "Promotions", e[e.MobileBetting = 9] = "MobileBetting", e[e.ESports = 12] = "ESports", e[e.CardGames = 13] = "CardGames", e[e.FishingGames = 14] = "FishingGames", e[e.BottomRightAd = 16] = "BottomRightAd", e[e.LotteryActivity = 18] = "LotteryActivity", e[e.HomepagePopup = 101] = "HomepagePopup", e[e.LeftAd = 102] = "LeftAd", e[e.RightAd = 103] = "RightAd", e[e.MobileAd = 104] = "MobileAd", e[e.MobilePopup = 105] = "MobilePopup", e[e.BottomLeftAd = 106] = "BottomLeftAd", e[e.InfoGallery = 109] = "InfoGallery", e[e.AgentBackendAd = 114] = "AgentBackendAd", e[e.CheckInBanner = 123] = "CheckInBanner", e[e.PlatformActivities = 128] = "PlatformActivities", e[e.LotterySlogan = 130] = "LotterySlogan", e[e.MobileLotterySlogan = 131] = "MobileLotterySlogan", e[e.PointsMallSlogan = 135] = "PointsMallSlogan", e))(i || {});
|
|
196
|
+
async function _() {
|
|
196
197
|
const e = {
|
|
197
198
|
status: 200,
|
|
198
199
|
message: "",
|
|
199
|
-
data:
|
|
200
|
-
currentPage: 0,
|
|
201
|
-
data: [],
|
|
202
|
-
from: 0,
|
|
203
|
-
lastPage: 0,
|
|
204
|
-
nextPageUrl: "",
|
|
205
|
-
path: "",
|
|
206
|
-
perPage: 0,
|
|
207
|
-
prevPageUrl: "",
|
|
208
|
-
to: 0,
|
|
209
|
-
total: 0
|
|
210
|
-
}
|
|
200
|
+
data: null
|
|
211
201
|
};
|
|
212
202
|
try {
|
|
213
|
-
const
|
|
203
|
+
const s = await u.get("/hotGames", {
|
|
214
204
|
params: {
|
|
215
|
-
render:
|
|
205
|
+
render: o()
|
|
216
206
|
}
|
|
217
207
|
});
|
|
218
208
|
let a;
|
|
219
|
-
return
|
|
220
|
-
|
|
221
|
-
|
|
209
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
|
|
210
|
+
currentPage: a.current_page ?? 0,
|
|
211
|
+
data: a.data.map((t) => ({
|
|
212
|
+
id: t.id ?? 0,
|
|
213
|
+
name: t.name ?? "",
|
|
214
|
+
pfid: t.pfid ?? 0,
|
|
215
|
+
ppname: t.ppname ?? "",
|
|
216
|
+
code: t.code ?? "",
|
|
217
|
+
img: t.img ?? "",
|
|
218
|
+
progressive: t.progressive ?? "",
|
|
219
|
+
ppid: t.ppid ?? 0,
|
|
220
|
+
notry: t.notry === 1,
|
|
221
|
+
productCode: t.product_code ?? "",
|
|
222
|
+
imgSrc: t.imgSrc ?? "",
|
|
223
|
+
imgPf: t.imgPf ?? "",
|
|
224
|
+
favouriteFlag: t.favourite_flag === 1,
|
|
225
|
+
platformStatusFlag: t.platform_status_flag ?? "",
|
|
226
|
+
platformFlagName: t.platform_flag_name ?? "",
|
|
227
|
+
platformStatusParams: {
|
|
228
|
+
eb: t.platform_status_params.eb ?? !1,
|
|
229
|
+
fit: t.platform_status_params.fit ?? !1,
|
|
230
|
+
fs: t.platform_status_params.fs ?? !1
|
|
231
|
+
},
|
|
232
|
+
gameId: t.game_id ?? 0
|
|
233
|
+
})),
|
|
234
|
+
from: a.from ?? 0,
|
|
235
|
+
lastPage: a.last_page ?? 0,
|
|
236
|
+
nextPageUrl: a.next_page_url ?? "",
|
|
237
|
+
path: a.path ?? "",
|
|
238
|
+
perPage: a.per_page ?? 0,
|
|
239
|
+
prevPageUrl: a.prev_page_url ?? "",
|
|
240
|
+
to: a.to ?? 0,
|
|
241
|
+
total: a.total ?? 0
|
|
242
|
+
}, e);
|
|
243
|
+
} catch (s) {
|
|
244
|
+
const a = s;
|
|
222
245
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
223
246
|
}
|
|
224
247
|
}
|
|
225
|
-
|
|
226
|
-
currentPage: e.current_page ?? 0,
|
|
227
|
-
data: e.data.map((t) => ({
|
|
228
|
-
id: t.id ?? 0,
|
|
229
|
-
name: t.name ?? "",
|
|
230
|
-
pfid: t.pfid ?? 0,
|
|
231
|
-
ppname: t.ppname ?? "",
|
|
232
|
-
code: t.code ?? "",
|
|
233
|
-
img: t.img ?? "",
|
|
234
|
-
progressive: t.progressive ?? "",
|
|
235
|
-
ppid: t.ppid ?? 0,
|
|
236
|
-
notry: t.notry === 1,
|
|
237
|
-
productCode: t.product_code ?? "",
|
|
238
|
-
imgSrc: t.imgSrc ?? "",
|
|
239
|
-
imgPf: t.imgPf ?? "",
|
|
240
|
-
favouriteFlag: t.favourite_flag === 1,
|
|
241
|
-
platformStatusFlag: t.platform_status_flag ?? "",
|
|
242
|
-
platformFlagName: t.platform_flag_name ?? "",
|
|
243
|
-
platformStatusParams: {
|
|
244
|
-
eb: t.platform_status_params.eb ?? !1,
|
|
245
|
-
fit: t.platform_status_params.fit ?? !1,
|
|
246
|
-
fs: t.platform_status_params.fs ?? !1
|
|
247
|
-
},
|
|
248
|
-
gameId: t.game_id ?? 0
|
|
249
|
-
})),
|
|
250
|
-
from: e.from ?? 0,
|
|
251
|
-
lastPage: e.last_page ?? 0,
|
|
252
|
-
nextPageUrl: e.next_page_url ?? "",
|
|
253
|
-
path: e.path ?? "",
|
|
254
|
-
perPage: e.per_page ?? 0,
|
|
255
|
-
prevPageUrl: e.prev_page_url ?? "",
|
|
256
|
-
to: e.to ?? 0,
|
|
257
|
-
total: e.total ?? 0
|
|
258
|
-
});
|
|
259
|
-
async function U() {
|
|
248
|
+
async function S() {
|
|
260
249
|
const e = {
|
|
261
250
|
status: 200,
|
|
262
251
|
message: "",
|
|
263
|
-
data:
|
|
264
|
-
hotfish: [],
|
|
265
|
-
data: []
|
|
266
|
-
}
|
|
252
|
+
data: null
|
|
267
253
|
};
|
|
268
254
|
try {
|
|
269
|
-
const
|
|
255
|
+
const s = await u.get("/fishGames", {
|
|
270
256
|
params: {
|
|
271
|
-
render:
|
|
257
|
+
render: o()
|
|
272
258
|
}
|
|
273
259
|
});
|
|
274
260
|
let a;
|
|
275
|
-
return
|
|
276
|
-
|
|
277
|
-
|
|
261
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
|
|
262
|
+
hotfish: a.hotfish.map((t) => f(t)),
|
|
263
|
+
data: a.data.map((t) => f(t))
|
|
264
|
+
}, e);
|
|
265
|
+
} catch (s) {
|
|
266
|
+
const a = s;
|
|
278
267
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
279
268
|
}
|
|
280
269
|
}
|
|
281
|
-
const
|
|
282
|
-
hotfish: e.hotfish.map((t) => f(t)),
|
|
283
|
-
data: e.data.map((t) => f(t))
|
|
284
|
-
}), f = (e) => ({
|
|
270
|
+
const f = (e) => ({
|
|
285
271
|
id: e.id ?? 0,
|
|
286
272
|
name: e.name ?? "",
|
|
287
273
|
ppid: e.pp_id ?? "",
|
|
@@ -303,175 +289,190 @@ const _ = (e) => ({
|
|
|
303
289
|
fs: e.platform_status_params.fs ?? !1
|
|
304
290
|
}
|
|
305
291
|
});
|
|
306
|
-
async function
|
|
292
|
+
async function y() {
|
|
307
293
|
const e = {
|
|
308
294
|
status: 200,
|
|
309
295
|
message: "",
|
|
310
|
-
data:
|
|
296
|
+
data: null
|
|
311
297
|
};
|
|
312
298
|
try {
|
|
313
|
-
const
|
|
299
|
+
const s = await u.get("/trialGames", {
|
|
314
300
|
params: {
|
|
315
|
-
render:
|
|
301
|
+
render: o()
|
|
316
302
|
}
|
|
317
303
|
});
|
|
318
304
|
let a;
|
|
319
|
-
return
|
|
320
|
-
|
|
321
|
-
|
|
305
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = a.map((t) => ({
|
|
306
|
+
ppid: t.ppid ?? 0,
|
|
307
|
+
ppname: t.ppname ?? "",
|
|
308
|
+
games: t.games.map((n) => ({
|
|
309
|
+
id: n.id ?? 0,
|
|
310
|
+
name: n.name ?? "",
|
|
311
|
+
img: n.img ?? "",
|
|
312
|
+
progressive: n.progressive ?? "",
|
|
313
|
+
notry: n.notry === 1,
|
|
314
|
+
imgSrc: n.imgSrc ?? "",
|
|
315
|
+
imgPf: n.imgPf ?? "",
|
|
316
|
+
favouriteFlag: n.favourite_flag === 1,
|
|
317
|
+
platformStatusFflag: n.platform_status_Fflag ?? "",
|
|
318
|
+
platformFlagName: n.platform_flag_name ?? "",
|
|
319
|
+
platformStatusParams: {
|
|
320
|
+
eb: n.platform_status_params.eb ?? !1,
|
|
321
|
+
fit: n.platform_status_params.fit ?? !1,
|
|
322
|
+
fs: n.platform_status_params.fs ?? !1
|
|
323
|
+
},
|
|
324
|
+
ppname: t.ppname ?? ""
|
|
325
|
+
}))
|
|
326
|
+
})), e);
|
|
327
|
+
} catch (s) {
|
|
328
|
+
const a = s;
|
|
322
329
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
323
330
|
}
|
|
324
331
|
}
|
|
325
|
-
|
|
326
|
-
ppid: t.ppid ?? 0,
|
|
327
|
-
ppname: t.ppname ?? "",
|
|
328
|
-
games: t.games.map((a) => ({
|
|
329
|
-
id: a.id ?? 0,
|
|
330
|
-
name: a.name ?? "",
|
|
331
|
-
img: a.img ?? "",
|
|
332
|
-
progressive: a.progressive ?? "",
|
|
333
|
-
notry: a.notry === 1,
|
|
334
|
-
imgSrc: a.imgSrc ?? "",
|
|
335
|
-
imgPf: a.imgPf ?? "",
|
|
336
|
-
favouriteFlag: a.favourite_flag === 1,
|
|
337
|
-
platformStatusFflag: a.platform_status_Fflag ?? "",
|
|
338
|
-
platformFlagName: a.platform_flag_name ?? "",
|
|
339
|
-
platformStatusParams: {
|
|
340
|
-
eb: a.platform_status_params.eb ?? !1,
|
|
341
|
-
fit: a.platform_status_params.fit ?? !1,
|
|
342
|
-
fs: a.platform_status_params.fs ?? !1
|
|
343
|
-
},
|
|
344
|
-
ppname: t.ppname ?? ""
|
|
345
|
-
}))
|
|
346
|
-
}));
|
|
347
|
-
async function q() {
|
|
332
|
+
async function b() {
|
|
348
333
|
const e = {
|
|
349
334
|
status: 200,
|
|
350
335
|
message: "",
|
|
351
|
-
data:
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
EVENT: [],
|
|
358
|
-
ESPORT: [],
|
|
359
|
-
EGAME: [],
|
|
360
|
-
BINGO: []
|
|
361
|
-
},
|
|
362
|
-
mobileBanner: [],
|
|
363
|
-
announcement: [],
|
|
364
|
-
alertAnnouncement: []
|
|
365
|
-
},
|
|
366
|
-
hotGames: {
|
|
367
|
-
status: 200,
|
|
368
|
-
message: "",
|
|
369
|
-
data: {
|
|
370
|
-
currentPage: 0,
|
|
371
|
-
data: [],
|
|
372
|
-
from: 0,
|
|
373
|
-
lastPage: 0,
|
|
374
|
-
nextPageUrl: "",
|
|
375
|
-
path: "",
|
|
376
|
-
perPage: 0,
|
|
377
|
-
prevPageUrl: "",
|
|
378
|
-
to: 0,
|
|
379
|
-
total: 0
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
fishGames: {
|
|
383
|
-
status: 200,
|
|
384
|
-
message: "",
|
|
385
|
-
data: {
|
|
386
|
-
hotfish: [],
|
|
387
|
-
data: []
|
|
336
|
+
data: null
|
|
337
|
+
};
|
|
338
|
+
try {
|
|
339
|
+
const s = await u.get("/promotion", {
|
|
340
|
+
params: {
|
|
341
|
+
render: o()
|
|
388
342
|
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
343
|
+
});
|
|
344
|
+
let a;
|
|
345
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
|
|
346
|
+
objList: a.objList.map((t) => ({
|
|
347
|
+
promoIndex: t.promoindex ?? 0,
|
|
348
|
+
type: t.type ?? 0,
|
|
349
|
+
thumb: t.thumb ?? 0,
|
|
350
|
+
title: t.title ?? "",
|
|
351
|
+
displayTime: t.display_time ?? "",
|
|
352
|
+
handle: t.handle ?? "",
|
|
353
|
+
content: t.content ?? "",
|
|
354
|
+
langList: t.lang_list ?? "",
|
|
355
|
+
agentList: t.agent_list ?? "",
|
|
356
|
+
dateCreated: t.datecreated ?? "",
|
|
357
|
+
updateBy: t.updateby ?? "",
|
|
358
|
+
lastUpdated: t.lastupdated ?? "",
|
|
359
|
+
sequence: t.sequence ?? 0,
|
|
360
|
+
status: t.status === 1,
|
|
361
|
+
timer: t.timer ?? "",
|
|
362
|
+
stime: t.stime ?? "",
|
|
363
|
+
etime: t.etime ?? "",
|
|
364
|
+
smaid: t.smaid ?? "",
|
|
365
|
+
companyIndex: t.companyindex ?? "",
|
|
366
|
+
fileName: t.filename ?? "",
|
|
367
|
+
version: t.version ?? "",
|
|
368
|
+
categoryName: t.category_name ?? "",
|
|
369
|
+
barImg: t.bar_img ?? "",
|
|
370
|
+
buttonImg: t.button_img ?? "",
|
|
371
|
+
promoImg: t.promo_image ?? "",
|
|
372
|
+
catId: t.catid ?? "",
|
|
373
|
+
imageType: t.image_type ?? "",
|
|
374
|
+
image: t.image ?? "",
|
|
375
|
+
isLink: t.isLink,
|
|
376
|
+
latestUpdate: t.latestupdate ?? ""
|
|
377
|
+
})),
|
|
378
|
+
promoCat: a.promoCat.map((t) => ({
|
|
379
|
+
catId: t.catid ?? 0,
|
|
380
|
+
name: t.name ?? "",
|
|
381
|
+
barImg: t.bar_img ?? "",
|
|
382
|
+
buttonImg: t.button_img ?? ""
|
|
383
|
+
})),
|
|
384
|
+
resize: a.resize
|
|
385
|
+
}, e);
|
|
386
|
+
} catch (s) {
|
|
387
|
+
const a = s;
|
|
388
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
async function x() {
|
|
392
|
+
const e = {
|
|
393
|
+
status: 200,
|
|
394
|
+
message: "",
|
|
395
|
+
data: null
|
|
395
396
|
};
|
|
396
397
|
try {
|
|
397
|
-
const [
|
|
398
|
-
|
|
398
|
+
const [
|
|
399
|
+
s,
|
|
400
|
+
a,
|
|
401
|
+
t,
|
|
402
|
+
n,
|
|
403
|
+
h,
|
|
404
|
+
O
|
|
405
|
+
] = await Promise.all([
|
|
406
|
+
u.get("/home", {
|
|
399
407
|
params: {
|
|
400
|
-
render:
|
|
408
|
+
render: o()
|
|
401
409
|
}
|
|
402
410
|
}),
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
n.get("/fishGames", {
|
|
409
|
-
params: {
|
|
410
|
-
render: r()
|
|
411
|
-
}
|
|
412
|
-
}),
|
|
413
|
-
n.get("/trialGames", {
|
|
414
|
-
params: {
|
|
415
|
-
render: r()
|
|
416
|
-
}
|
|
417
|
-
})
|
|
411
|
+
_(),
|
|
412
|
+
S(),
|
|
413
|
+
y(),
|
|
414
|
+
b(),
|
|
415
|
+
d(i.LatestAd)
|
|
418
416
|
]);
|
|
419
|
-
let
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
417
|
+
let l;
|
|
418
|
+
return o() ? l = JSON.parse(p(s.data)) : l = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
|
|
419
|
+
game: {
|
|
420
|
+
SPORT: l.game.SPORT.map((r) => g(r)),
|
|
421
|
+
SPECIAL: l.game.SPECIAL.map((r) => g(r)),
|
|
422
|
+
PVP: l.game.PVP.map((r) => g(r)),
|
|
423
|
+
LIVE: l.game.LIVE.map((r) => g(r)),
|
|
424
|
+
EVENT: l.game.EVENT.map((r) => g(r)),
|
|
425
|
+
ESPORT: l.game.ESPORT.map((r) => g(r)),
|
|
426
|
+
EGAME: l.game.EGAME.map((r) => g(r)),
|
|
427
|
+
BINGO: l.game.BINGO.map((r) => g(r))
|
|
428
|
+
},
|
|
429
|
+
mobileBanner: l.mobileBanner.map((r) => ({
|
|
430
|
+
name: r.name ?? "",
|
|
431
|
+
content: r.content ?? "",
|
|
432
|
+
link: r.link ?? "",
|
|
433
|
+
linkTarget: r.link_target ?? "",
|
|
434
|
+
updatedOn: r.updated_on ?? "",
|
|
435
|
+
idCmsCategory: r.id_cms_category ?? 0,
|
|
436
|
+
contentOrg: r.content_org ?? ""
|
|
437
|
+
})),
|
|
438
|
+
announcement: l.announcement.map((r) => ({
|
|
439
|
+
announcementIndex: r.announcement_index ?? 0,
|
|
440
|
+
announcementEnglish: r.announcement_english ?? "",
|
|
441
|
+
announcementSimplified: r.announcement_simplified ?? "",
|
|
442
|
+
announcementTraditional: r.announcement_traditional ?? "",
|
|
443
|
+
announcementMalay: r.announcement_malay ?? "",
|
|
444
|
+
announcementStatus: r.announcement_status === "1",
|
|
445
|
+
announcementShow: r.announcement_show === "1",
|
|
446
|
+
announcementAlert: r.announcement_alert === "1",
|
|
447
|
+
announcementUser: r.announcement_user === "1",
|
|
448
|
+
announcementSequence: r.announcement_sequence ?? 0,
|
|
449
|
+
announcementCompany: r.announcement_company === "1",
|
|
450
|
+
companyIndex: r.companyindex ?? 0,
|
|
451
|
+
announcementLastUpdated: r.announcement_lastupdated ?? "",
|
|
452
|
+
announcementDateCreated: r.announcement_datecreated ?? "",
|
|
453
|
+
announcementSmaid: r.announcement_smaid ?? "",
|
|
454
|
+
annTimer: r.ann_timer ?? "",
|
|
455
|
+
annStart: r.ann_start ?? "",
|
|
456
|
+
annEnd: r.ann_end ?? "",
|
|
457
|
+
grp: r.grp ?? "",
|
|
458
|
+
time: r.time ?? ""
|
|
459
|
+
})),
|
|
460
|
+
alertAnnouncement: l.alert_announcement.map((r) => ({
|
|
461
|
+
announcementDateCreated: r.announcement_datecreated ?? "",
|
|
462
|
+
announcementSimplified: r.announcement_simplified ?? ""
|
|
463
|
+
})),
|
|
464
|
+
hotGames: a,
|
|
465
|
+
fishGames: t,
|
|
466
|
+
trialGames: n,
|
|
467
|
+
promotion: h,
|
|
468
|
+
cmsList: O
|
|
469
|
+
}, e);
|
|
470
|
+
} catch (s) {
|
|
471
|
+
const a = s;
|
|
425
472
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
426
473
|
}
|
|
427
474
|
}
|
|
428
|
-
const
|
|
429
|
-
game: {
|
|
430
|
-
SPORT: e.game.SPORT.map((t) => u(t)),
|
|
431
|
-
SPECIAL: e.game.SPECIAL.map((t) => u(t)),
|
|
432
|
-
PVP: e.game.PVP.map((t) => u(t)),
|
|
433
|
-
LIVE: e.game.LIVE.map((t) => u(t)),
|
|
434
|
-
EVENT: e.game.EVENT.map((t) => u(t)),
|
|
435
|
-
ESPORT: e.game.ESPORT.map((t) => u(t)),
|
|
436
|
-
EGAME: e.game.EGAME.map((t) => u(t)),
|
|
437
|
-
BINGO: e.game.BINGO.map((t) => u(t))
|
|
438
|
-
},
|
|
439
|
-
mobileBanner: e.mobileBanner.map((t) => ({
|
|
440
|
-
name: t.name ?? "",
|
|
441
|
-
content: t.content ?? "",
|
|
442
|
-
link: t.link ?? "",
|
|
443
|
-
linkTarget: t.link_target ?? "",
|
|
444
|
-
updatedOn: t.updated_on ?? "",
|
|
445
|
-
idCmsCategory: t.id_cms_category ?? 0,
|
|
446
|
-
contentOrg: t.content_org ?? ""
|
|
447
|
-
})),
|
|
448
|
-
announcement: e.announcement.map((t) => ({
|
|
449
|
-
announcementIndex: t.announcement_index ?? 0,
|
|
450
|
-
announcementEnglish: t.announcement_english ?? "",
|
|
451
|
-
announcementSimplified: t.announcement_simplified ?? "",
|
|
452
|
-
announcementTraditional: t.announcement_traditional ?? "",
|
|
453
|
-
announcementMalay: t.announcement_malay ?? "",
|
|
454
|
-
announcementStatus: t.announcement_status === "1",
|
|
455
|
-
announcementShow: t.announcement_show === "1",
|
|
456
|
-
announcementAlert: t.announcement_alert === "1",
|
|
457
|
-
announcementUser: t.announcement_user === "1",
|
|
458
|
-
announcementSequence: t.announcement_sequence ?? 0,
|
|
459
|
-
announcementCompany: t.announcement_company === "1",
|
|
460
|
-
companyIndex: t.companyindex ?? 0,
|
|
461
|
-
announcementLastUpdated: t.announcement_lastupdated ?? "",
|
|
462
|
-
announcementDateCreated: t.announcement_datecreated ?? "",
|
|
463
|
-
announcementSmaid: t.announcement_smaid ?? "",
|
|
464
|
-
annTimer: t.ann_timer ?? "",
|
|
465
|
-
annStart: t.ann_start ?? "",
|
|
466
|
-
annEnd: t.ann_end ?? "",
|
|
467
|
-
grp: t.grp ?? "",
|
|
468
|
-
time: t.time ?? ""
|
|
469
|
-
})),
|
|
470
|
-
alertAnnouncement: e.alert_announcement.map((t) => ({
|
|
471
|
-
announcementDateCreated: t.announcement_datecreated ?? "",
|
|
472
|
-
announcementSimplified: t.announcement_simplified ?? ""
|
|
473
|
-
}))
|
|
474
|
-
}), u = (e) => ({
|
|
475
|
+
const g = (e) => ({
|
|
475
476
|
id: e.id ?? 0,
|
|
476
477
|
idPlatformMaster: e.id_PlatformMaster ?? 0,
|
|
477
478
|
idProductMaster: e.id_ProductMaster ?? 0,
|
|
@@ -514,226 +515,124 @@ const h = (e) => ({
|
|
|
514
515
|
imgSport: e.imgSport ?? "",
|
|
515
516
|
imgTemplate: e.imgTemplate ?? ""
|
|
516
517
|
});
|
|
517
|
-
|
|
518
|
+
var P = /* @__PURE__ */ ((e) => (e.SPORT = "SPORT", e.SPECIAL = "SPECIAL", e.PVP = "PVP", e.LIVE = "LIVE", e.EVENT = "EVENT", e.ESPORT = "ESPORT", e.EGAME = "EGAME", e.BINGO = "BINGO", e))(P || {});
|
|
519
|
+
async function D() {
|
|
518
520
|
const e = {
|
|
519
521
|
status: 200,
|
|
520
522
|
message: "",
|
|
521
523
|
data: ""
|
|
522
524
|
};
|
|
523
525
|
try {
|
|
524
|
-
const
|
|
526
|
+
const s = await u.get("/currentLang", {
|
|
525
527
|
params: {
|
|
526
|
-
render:
|
|
528
|
+
render: o()
|
|
527
529
|
}
|
|
528
530
|
});
|
|
529
531
|
let a;
|
|
530
|
-
return
|
|
531
|
-
} catch (
|
|
532
|
-
const a =
|
|
532
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = a, e);
|
|
533
|
+
} catch (s) {
|
|
534
|
+
const a = s;
|
|
533
535
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
534
536
|
}
|
|
535
537
|
}
|
|
536
|
-
async function
|
|
538
|
+
async function J() {
|
|
537
539
|
const e = {
|
|
538
540
|
status: 200,
|
|
539
541
|
message: "",
|
|
540
|
-
data:
|
|
541
|
-
objList: [],
|
|
542
|
-
promoCat: [],
|
|
543
|
-
resize: 0
|
|
544
|
-
}
|
|
542
|
+
data: null
|
|
545
543
|
};
|
|
546
544
|
try {
|
|
547
|
-
const
|
|
545
|
+
const s = await u.get("/getLocale", {
|
|
548
546
|
params: {
|
|
549
|
-
render:
|
|
547
|
+
render: o()
|
|
550
548
|
}
|
|
551
549
|
});
|
|
552
550
|
let a;
|
|
553
|
-
return
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
displayTime: t.display_time ?? "",
|
|
566
|
-
handle: t.handle ?? "",
|
|
567
|
-
content: t.content ?? "",
|
|
568
|
-
langList: t.lang_list ?? "",
|
|
569
|
-
agentList: t.agent_list ?? "",
|
|
570
|
-
dateCreated: t.datecreated ?? "",
|
|
571
|
-
updateBy: t.updateby ?? "",
|
|
572
|
-
lastUpdated: t.lastupdated ?? "",
|
|
573
|
-
sequence: t.sequence ?? 0,
|
|
574
|
-
status: t.status === 1,
|
|
575
|
-
timer: t.timer ?? "",
|
|
576
|
-
stime: t.stime ?? "",
|
|
577
|
-
etime: t.etime ?? "",
|
|
578
|
-
smaid: t.smaid ?? "",
|
|
579
|
-
companyIndex: t.companyindex ?? "",
|
|
580
|
-
fileName: t.filename ?? "",
|
|
581
|
-
version: t.version ?? "",
|
|
582
|
-
categoryName: t.category_name ?? "",
|
|
583
|
-
barImg: t.bar_img ?? "",
|
|
584
|
-
buttonImg: t.button_img ?? "",
|
|
585
|
-
promoImg: t.promo_image ?? "",
|
|
586
|
-
catId: t.catid ?? "",
|
|
587
|
-
imageType: t.image_type ?? "",
|
|
588
|
-
image: t.image ?? "",
|
|
589
|
-
isLink: t.isLink,
|
|
590
|
-
latestUpdate: t.latestupdate ?? ""
|
|
591
|
-
})),
|
|
592
|
-
promoCat: e.promoCat.map((t) => ({
|
|
593
|
-
catId: t.catid ?? 0,
|
|
594
|
-
name: t.name ?? "",
|
|
595
|
-
barImg: t.bar_img ?? "",
|
|
596
|
-
buttonImg: t.button_img ?? ""
|
|
597
|
-
})),
|
|
598
|
-
resize: e.resize
|
|
599
|
-
});
|
|
600
|
-
async function K() {
|
|
601
|
-
const e = {
|
|
602
|
-
status: 200,
|
|
603
|
-
message: "",
|
|
604
|
-
data: []
|
|
605
|
-
};
|
|
606
|
-
try {
|
|
607
|
-
const t = await n.get("/getLocale", {
|
|
608
|
-
params: {
|
|
609
|
-
render: r()
|
|
551
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = [
|
|
552
|
+
{
|
|
553
|
+
code: "en",
|
|
554
|
+
label: a.en.label ?? ""
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
code: "zh",
|
|
558
|
+
label: a.zh.label ?? ""
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
code: "ms",
|
|
562
|
+
label: a.ms.label ?? ""
|
|
610
563
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
} catch (t) {
|
|
615
|
-
const a = t;
|
|
564
|
+
], e);
|
|
565
|
+
} catch (s) {
|
|
566
|
+
const a = s;
|
|
616
567
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
617
568
|
}
|
|
618
569
|
}
|
|
619
|
-
|
|
620
|
-
{
|
|
621
|
-
code: "en",
|
|
622
|
-
label: e.en.label ?? ""
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
code: "zh",
|
|
626
|
-
label: e.zh.label ?? ""
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
code: "ms",
|
|
630
|
-
label: e.ms.label ?? ""
|
|
631
|
-
}
|
|
632
|
-
];
|
|
633
|
-
async function Q() {
|
|
570
|
+
async function z() {
|
|
634
571
|
const e = {
|
|
635
572
|
status: 200,
|
|
636
573
|
message: "",
|
|
637
|
-
data:
|
|
638
|
-
liveChat: ""
|
|
639
|
-
}
|
|
574
|
+
data: null
|
|
640
575
|
};
|
|
641
576
|
try {
|
|
642
|
-
const
|
|
577
|
+
const s = await u.get("/cslink", {
|
|
643
578
|
params: {
|
|
644
|
-
render:
|
|
579
|
+
render: o()
|
|
645
580
|
}
|
|
646
581
|
});
|
|
647
582
|
let a;
|
|
648
|
-
return
|
|
649
|
-
|
|
650
|
-
|
|
583
|
+
return o() ? a = JSON.parse(p(s.data)) : a = s.data, s.status != 200 ? (e.status = s.status, e.message = "", e) : (e.data = {
|
|
584
|
+
liveChat: a.livechat ?? ""
|
|
585
|
+
}, e);
|
|
586
|
+
} catch (s) {
|
|
587
|
+
const a = s;
|
|
651
588
|
return e.status = a.status || 500, e.message = a.message, e;
|
|
652
589
|
}
|
|
653
590
|
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
});
|
|
657
|
-
async function W(e) {
|
|
658
|
-
const t = {
|
|
591
|
+
async function V(e) {
|
|
592
|
+
const s = {
|
|
659
593
|
status: 200,
|
|
660
594
|
message: "",
|
|
661
|
-
data:
|
|
595
|
+
data: null
|
|
662
596
|
};
|
|
663
597
|
try {
|
|
664
|
-
const a = await
|
|
598
|
+
const a = await u.get(`/egame/json/${e}`, {
|
|
665
599
|
params: {
|
|
666
|
-
render:
|
|
600
|
+
render: o()
|
|
667
601
|
}
|
|
668
602
|
});
|
|
669
|
-
let
|
|
670
|
-
return
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
fs: t.platform_status_params.fs ?? !1
|
|
688
|
-
},
|
|
689
|
-
progressive: t.progressive ?? "",
|
|
690
|
-
gameCategory: t.game_category ?? "",
|
|
691
|
-
ppid: t.pp_id ?? ""
|
|
692
|
-
}));
|
|
693
|
-
var O = /* @__PURE__ */ ((e) => (e[e.AllCategories = 0] = "AllCategories", e[e.Lotto = 2] = "Lotto", e[e.LiveCasino = 3] = "LiveCasino", e[e.SlotGames = 4] = "SlotGames", e[e.SportsBetting = 5] = "SportsBetting", e[e.LatestAd = 7] = "LatestAd", e[e.Promotions = 8] = "Promotions", e[e.MobileBetting = 9] = "MobileBetting", e[e.ESports = 12] = "ESports", e[e.CardGames = 13] = "CardGames", e[e.FishingGames = 14] = "FishingGames", e[e.BottomRightAd = 16] = "BottomRightAd", e[e.LotteryActivity = 18] = "LotteryActivity", e[e.HomepagePopup = 101] = "HomepagePopup", e[e.LeftAd = 102] = "LeftAd", e[e.RightAd = 103] = "RightAd", e[e.MobileAd = 104] = "MobileAd", e[e.MobilePopup = 105] = "MobilePopup", e[e.BottomLeftAd = 106] = "BottomLeftAd", e[e.InfoGallery = 109] = "InfoGallery", e[e.AgentBackendAd = 114] = "AgentBackendAd", e[e.CheckInBanner = 123] = "CheckInBanner", e[e.PlatformActivities = 128] = "PlatformActivities", e[e.LotterySlogan = 130] = "LotterySlogan", e[e.MobileLotterySlogan = 131] = "MobileLotterySlogan", e[e.PointsMallSlogan = 135] = "PointsMallSlogan", e))(O || {});
|
|
694
|
-
async function X(e) {
|
|
695
|
-
const t = {
|
|
696
|
-
status: 200,
|
|
697
|
-
message: "",
|
|
698
|
-
data: {
|
|
699
|
-
cmsList: []
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
try {
|
|
703
|
-
const a = await n.get(`/cmsList?id=${e}`, {
|
|
704
|
-
params: {
|
|
705
|
-
render: r()
|
|
706
|
-
}
|
|
707
|
-
});
|
|
708
|
-
let s;
|
|
709
|
-
return r() ? s = JSON.parse(o(a.data)) : s = a.data, a.status != 200 ? (t.status = a.status, t.message = "", t) : (t.data = v(s), t);
|
|
603
|
+
let t;
|
|
604
|
+
return o() ? t = JSON.parse(p(a.data)) : t = a.data, a.status != 200 ? (s.status = a.status, s.message = "", s) : (s.data = t.map((n) => ({
|
|
605
|
+
gameId: n.game_id ?? "",
|
|
606
|
+
imgSrc: n.imgSrc ?? "",
|
|
607
|
+
imgPf: n.imgPf ?? "",
|
|
608
|
+
name: n.name ?? "",
|
|
609
|
+
favouriteFlag: n.favourite_flag === 1,
|
|
610
|
+
platformStatusFflag: n.platform_status_Fflag ?? "",
|
|
611
|
+
platformFlagName: n.platform_flag_name ?? "",
|
|
612
|
+
platformStatusParams: {
|
|
613
|
+
eb: n.platform_status_params.eb ?? !1,
|
|
614
|
+
fit: n.platform_status_params.fit ?? !1,
|
|
615
|
+
fs: n.platform_status_params.fs ?? !1
|
|
616
|
+
},
|
|
617
|
+
progressive: n.progressive ?? "",
|
|
618
|
+
gameCategory: n.game_category ?? "",
|
|
619
|
+
ppid: n.pp_id ?? ""
|
|
620
|
+
})), s);
|
|
710
621
|
} catch (a) {
|
|
711
|
-
const
|
|
712
|
-
return
|
|
622
|
+
const t = a;
|
|
623
|
+
return s.status = t.status || 500, s.message = t.message, s;
|
|
713
624
|
}
|
|
714
625
|
}
|
|
715
|
-
const v = (e) => ({
|
|
716
|
-
cmsList: e.cmslist.map((t) => ({
|
|
717
|
-
name: t.name ?? "",
|
|
718
|
-
content: t.content ?? "",
|
|
719
|
-
link: t.link ?? "",
|
|
720
|
-
linkTarget: t.link_target ?? "",
|
|
721
|
-
updatedOn: t.updated_on ?? "",
|
|
722
|
-
idCmsCategory: t.id_cms_category ?? 0,
|
|
723
|
-
contentOrg: t.content_org ?? "",
|
|
724
|
-
linkOrg: t.link_org ?? ""
|
|
725
|
-
}))
|
|
726
|
-
});
|
|
727
626
|
export {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
627
|
+
$ as Repository,
|
|
628
|
+
E as cmsList,
|
|
629
|
+
k as csLink,
|
|
630
|
+
T as currentLang,
|
|
631
|
+
B as eGame,
|
|
632
|
+
N as fishGames,
|
|
633
|
+
F as getLocale,
|
|
634
|
+
j as home,
|
|
635
|
+
A as hotGames,
|
|
636
|
+
M as promotion,
|
|
637
|
+
G as trialGames
|
|
739
638
|
};
|