50p82u21t54k 0.0.21 → 0.0.22
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 +415 -171
- package/dist/50p82u21t54k.umd.js +1 -1
- package/dist/cmsList/index.d.ts +3 -0
- package/dist/cmsList/index.d.ts.map +1 -0
- package/dist/cmsList/method.d.ts +45 -0
- package/dist/cmsList/method.d.ts.map +1 -0
- package/dist/cmsList/type.d.ts +19 -0
- package/dist/cmsList/type.d.ts.map +1 -0
- package/dist/csLink/index.d.ts +3 -0
- package/dist/csLink/index.d.ts.map +1 -0
- package/dist/csLink/method.d.ts +8 -0
- package/dist/csLink/method.d.ts.map +1 -0
- package/dist/csLink/type.d.ts +9 -0
- package/dist/csLink/type.d.ts.map +1 -0
- package/dist/eGame/index.d.ts +3 -0
- package/dist/eGame/index.d.ts.map +1 -0
- package/dist/eGame/method.d.ts +22 -0
- package/dist/eGame/method.d.ts.map +1 -0
- package/dist/eGame/type.d.ts +24 -0
- package/dist/eGame/type.d.ts.map +1 -0
- package/dist/fishGames/type.d.ts +2 -2
- package/dist/fishGames/type.d.ts.map +1 -1
- package/dist/getLocale/index.d.ts +3 -0
- package/dist/getLocale/index.d.ts.map +1 -0
- package/dist/getLocale/method.d.ts +16 -0
- package/dist/getLocale/method.d.ts.map +1 -0
- package/dist/getLocale/type.d.ts +10 -0
- package/dist/getLocale/type.d.ts.map +1 -0
- package/dist/hotGames/type.d.ts +2 -2
- package/dist/hotGames/type.d.ts.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +6 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/trialGames/type.d.ts +2 -2
- package/dist/trialGames/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/getLocale (incomplete)/index.d.ts +0 -1
- package/dist/getLocale (incomplete)/index.d.ts.map +0 -1
- package/dist/getLocale (incomplete)/method.d.ts +0 -1
- package/dist/getLocale (incomplete)/method.d.ts.map +0 -1
- package/dist/getLocale (incomplete)/type.d.ts +0 -1
- package/dist/getLocale (incomplete)/type.d.ts.map +0 -1
package/dist/50p82u21t54k.es.js
CHANGED
|
@@ -1,50 +1,93 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import N from "axios";
|
|
2
|
+
import { ref as A } from "vue";
|
|
3
|
+
import p from "crypto-js";
|
|
4
|
+
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
get getHotGames() {
|
|
7
|
-
return
|
|
7
|
+
return z;
|
|
8
8
|
},
|
|
9
9
|
get processHotGamesData() {
|
|
10
|
-
return
|
|
10
|
+
return d;
|
|
11
11
|
}
|
|
12
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
13
|
__proto__: null,
|
|
14
14
|
get getFishGames() {
|
|
15
|
-
return
|
|
15
|
+
return U;
|
|
16
16
|
},
|
|
17
17
|
get processFishGame() {
|
|
18
|
-
return
|
|
18
|
+
return f;
|
|
19
19
|
},
|
|
20
20
|
get processFishGamesData() {
|
|
21
21
|
return _;
|
|
22
22
|
}
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
24
|
__proto__: null,
|
|
25
25
|
get getTrialGames() {
|
|
26
|
-
return
|
|
26
|
+
return H;
|
|
27
27
|
},
|
|
28
28
|
get processTrialGamesData() {
|
|
29
|
-
return
|
|
29
|
+
return y;
|
|
30
30
|
}
|
|
31
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
32
|
__proto__: null,
|
|
33
33
|
get getHome() {
|
|
34
|
-
return
|
|
34
|
+
return q;
|
|
35
35
|
},
|
|
36
36
|
get processHomeData() {
|
|
37
|
-
return
|
|
37
|
+
return h;
|
|
38
38
|
},
|
|
39
39
|
get processPlatformGame() {
|
|
40
|
-
return
|
|
40
|
+
return u;
|
|
41
41
|
}
|
|
42
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
42
|
+
}, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
43
|
__proto__: null,
|
|
44
44
|
get getCurrentLang() {
|
|
45
|
-
return
|
|
45
|
+
return V;
|
|
46
|
+
}
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48
|
+
__proto__: null,
|
|
49
|
+
get getPromotion() {
|
|
50
|
+
return $;
|
|
51
|
+
},
|
|
52
|
+
get processPromotionData() {
|
|
53
|
+
return b;
|
|
54
|
+
}
|
|
55
|
+
}, Symbol.toStringTag, { value: "Module" })), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
56
|
+
__proto__: null,
|
|
57
|
+
get getGetLocale() {
|
|
58
|
+
return K;
|
|
59
|
+
},
|
|
60
|
+
get processGetLocaleData() {
|
|
61
|
+
return P;
|
|
62
|
+
}
|
|
63
|
+
}, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
|
+
__proto__: null,
|
|
65
|
+
get getCsLink() {
|
|
66
|
+
return Q;
|
|
67
|
+
},
|
|
68
|
+
get processCsLinkData() {
|
|
69
|
+
return G;
|
|
70
|
+
}
|
|
71
|
+
}, Symbol.toStringTag, { value: "Module" })), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72
|
+
__proto__: null,
|
|
73
|
+
get getEGame() {
|
|
74
|
+
return W;
|
|
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;
|
|
46
89
|
}
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })), n =
|
|
90
|
+
}, Symbol.toStringTag, { value: "Module" })), n = N.create({
|
|
48
91
|
baseURL: "/apis",
|
|
49
92
|
timeout: 5e3,
|
|
50
93
|
// Request timeout
|
|
@@ -97,54 +140,59 @@ n.interceptors.request.use(
|
|
|
97
140
|
n.interceptors.response.use(
|
|
98
141
|
(e) => e,
|
|
99
142
|
(e) => {
|
|
100
|
-
const
|
|
143
|
+
const t = {
|
|
101
144
|
status: null,
|
|
102
145
|
message: "An error occurred"
|
|
103
146
|
};
|
|
104
|
-
return e.response ? (
|
|
147
|
+
return e.response ? (t.status = e.response.status, t.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(t)), 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(t);
|
|
105
148
|
}
|
|
106
149
|
);
|
|
107
|
-
const
|
|
150
|
+
const S = A("");
|
|
108
151
|
function r() {
|
|
109
|
-
return
|
|
152
|
+
return S.value === "" ? 0 : 1;
|
|
110
153
|
}
|
|
111
|
-
const
|
|
112
|
-
home:
|
|
113
|
-
hotGames:
|
|
114
|
-
fishGames:
|
|
115
|
-
trialGames:
|
|
116
|
-
currentLang:
|
|
117
|
-
|
|
154
|
+
const J = {
|
|
155
|
+
home: M,
|
|
156
|
+
hotGames: E,
|
|
157
|
+
fishGames: T,
|
|
158
|
+
trialGames: j,
|
|
159
|
+
currentLang: F,
|
|
160
|
+
promotion: k,
|
|
161
|
+
getLocale: D,
|
|
162
|
+
csLink: B,
|
|
163
|
+
eGame: x,
|
|
164
|
+
cmsList: R
|
|
165
|
+
}, w = {
|
|
118
166
|
install(e) {
|
|
119
|
-
e.config.globalProperties.$library =
|
|
167
|
+
e.config.globalProperties.$library = J;
|
|
120
168
|
}
|
|
121
|
-
},
|
|
169
|
+
}, o = (e) => {
|
|
122
170
|
try {
|
|
123
|
-
const
|
|
124
|
-
|
|
171
|
+
const t = JSON.parse(
|
|
172
|
+
p.AES.decrypt(e, S.value, {
|
|
125
173
|
format: {
|
|
126
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
127
|
-
stringify: (
|
|
175
|
+
stringify: (a) => {
|
|
128
176
|
const s = {
|
|
129
|
-
ct:
|
|
177
|
+
ct: a.ciphertext.toString(p.enc.Base64)
|
|
130
178
|
};
|
|
131
|
-
return
|
|
179
|
+
return a.iv && (s.iv = a.iv.toString()), a.salt && (s.s = a.salt.toString()), JSON.stringify(s);
|
|
132
180
|
},
|
|
133
|
-
parse: (
|
|
134
|
-
const s = JSON.parse(
|
|
135
|
-
ciphertext:
|
|
181
|
+
parse: (a) => {
|
|
182
|
+
const s = JSON.parse(a), l = p.lib.CipherParams.create({
|
|
183
|
+
ciphertext: p.enc.Base64.parse(s.ct)
|
|
136
184
|
});
|
|
137
|
-
return s.iv && (
|
|
185
|
+
return s.iv && (l.iv = p.enc.Hex.parse(s.iv)), s.s && (l.salt = p.enc.Hex.parse(s.s)), l;
|
|
138
186
|
}
|
|
139
187
|
}
|
|
140
|
-
}).toString(
|
|
188
|
+
}).toString(p.enc.Utf8)
|
|
141
189
|
);
|
|
142
|
-
return
|
|
143
|
-
} catch (
|
|
144
|
-
return console.error(
|
|
190
|
+
return t !== "" ? JSON.parse(t) : t;
|
|
191
|
+
} catch (t) {
|
|
192
|
+
return console.error(t), "";
|
|
145
193
|
}
|
|
146
194
|
};
|
|
147
|
-
async function
|
|
195
|
+
async function z() {
|
|
148
196
|
const e = {
|
|
149
197
|
status: 200,
|
|
150
198
|
message: "",
|
|
@@ -162,42 +210,42 @@ async function F() {
|
|
|
162
210
|
}
|
|
163
211
|
};
|
|
164
212
|
try {
|
|
165
|
-
const
|
|
213
|
+
const t = await n.get("/hotGames", {
|
|
166
214
|
params: {
|
|
167
215
|
render: r()
|
|
168
216
|
}
|
|
169
217
|
});
|
|
170
|
-
let
|
|
171
|
-
return r() ?
|
|
172
|
-
} catch (
|
|
173
|
-
const
|
|
174
|
-
return e.status =
|
|
218
|
+
let a;
|
|
219
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = d(a), e);
|
|
220
|
+
} catch (t) {
|
|
221
|
+
const a = t;
|
|
222
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
175
223
|
}
|
|
176
224
|
}
|
|
177
|
-
const
|
|
225
|
+
const d = (e) => ({
|
|
178
226
|
currentPage: e.current_page ?? 0,
|
|
179
|
-
data: e.data.map((
|
|
180
|
-
id:
|
|
181
|
-
name:
|
|
182
|
-
pfid:
|
|
183
|
-
ppname:
|
|
184
|
-
code:
|
|
185
|
-
img:
|
|
186
|
-
progressive:
|
|
187
|
-
ppid:
|
|
188
|
-
notry:
|
|
189
|
-
productCode:
|
|
190
|
-
imgSrc:
|
|
191
|
-
imgPf:
|
|
192
|
-
favouriteFlag:
|
|
193
|
-
platformStatusFlag:
|
|
194
|
-
platformFlagName:
|
|
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 ?? "",
|
|
195
243
|
platformStatusParams: {
|
|
196
|
-
eb:
|
|
197
|
-
fit:
|
|
198
|
-
fs:
|
|
244
|
+
eb: t.platform_status_params.eb ?? !1,
|
|
245
|
+
fit: t.platform_status_params.fit ?? !1,
|
|
246
|
+
fs: t.platform_status_params.fs ?? !1
|
|
199
247
|
},
|
|
200
|
-
gameId:
|
|
248
|
+
gameId: t.game_id ?? 0
|
|
201
249
|
})),
|
|
202
250
|
from: e.from ?? 0,
|
|
203
251
|
lastPage: e.last_page ?? 0,
|
|
@@ -208,7 +256,7 @@ const i = (e) => ({
|
|
|
208
256
|
to: e.to ?? 0,
|
|
209
257
|
total: e.total ?? 0
|
|
210
258
|
});
|
|
211
|
-
async function
|
|
259
|
+
async function U() {
|
|
212
260
|
const e = {
|
|
213
261
|
status: 200,
|
|
214
262
|
message: "",
|
|
@@ -218,22 +266,22 @@ async function C() {
|
|
|
218
266
|
}
|
|
219
267
|
};
|
|
220
268
|
try {
|
|
221
|
-
const
|
|
269
|
+
const t = await n.get("/fishGames", {
|
|
222
270
|
params: {
|
|
223
271
|
render: r()
|
|
224
272
|
}
|
|
225
273
|
});
|
|
226
|
-
let
|
|
227
|
-
return r() ?
|
|
228
|
-
} catch (
|
|
229
|
-
const
|
|
230
|
-
return e.status =
|
|
274
|
+
let a;
|
|
275
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = _(a), e);
|
|
276
|
+
} catch (t) {
|
|
277
|
+
const a = t;
|
|
278
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
231
279
|
}
|
|
232
280
|
}
|
|
233
281
|
const _ = (e) => ({
|
|
234
|
-
hotfish: e.hotfish.map((
|
|
235
|
-
data: e.data.map((
|
|
236
|
-
}),
|
|
282
|
+
hotfish: e.hotfish.map((t) => f(t)),
|
|
283
|
+
data: e.data.map((t) => f(t))
|
|
284
|
+
}), f = (e) => ({
|
|
237
285
|
id: e.id ?? 0,
|
|
238
286
|
name: e.name ?? "",
|
|
239
287
|
ppid: e.pp_id ?? "",
|
|
@@ -255,48 +303,48 @@ const _ = (e) => ({
|
|
|
255
303
|
fs: e.platform_status_params.fs ?? !1
|
|
256
304
|
}
|
|
257
305
|
});
|
|
258
|
-
async function
|
|
306
|
+
async function H() {
|
|
259
307
|
const e = {
|
|
260
308
|
status: 200,
|
|
261
309
|
message: "",
|
|
262
310
|
data: []
|
|
263
311
|
};
|
|
264
312
|
try {
|
|
265
|
-
const
|
|
313
|
+
const t = await n.get("/trialGames", {
|
|
266
314
|
params: {
|
|
267
315
|
render: r()
|
|
268
316
|
}
|
|
269
317
|
});
|
|
270
|
-
let
|
|
271
|
-
return r() ?
|
|
272
|
-
} catch (
|
|
273
|
-
const
|
|
274
|
-
return e.status =
|
|
318
|
+
let a;
|
|
319
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = y(a), e);
|
|
320
|
+
} catch (t) {
|
|
321
|
+
const a = t;
|
|
322
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
275
323
|
}
|
|
276
324
|
}
|
|
277
|
-
const
|
|
278
|
-
ppid:
|
|
279
|
-
ppname:
|
|
280
|
-
games:
|
|
281
|
-
id:
|
|
282
|
-
name:
|
|
283
|
-
img:
|
|
284
|
-
progressive:
|
|
285
|
-
notry:
|
|
286
|
-
imgSrc:
|
|
287
|
-
imgPf:
|
|
288
|
-
favouriteFlag:
|
|
289
|
-
platformStatusFflag:
|
|
290
|
-
platformFlagName:
|
|
325
|
+
const y = (e) => e.map((t) => ({
|
|
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 ?? "",
|
|
291
339
|
platformStatusParams: {
|
|
292
|
-
eb:
|
|
293
|
-
fit:
|
|
294
|
-
fs:
|
|
340
|
+
eb: a.platform_status_params.eb ?? !1,
|
|
341
|
+
fit: a.platform_status_params.fit ?? !1,
|
|
342
|
+
fs: a.platform_status_params.fs ?? !1
|
|
295
343
|
},
|
|
296
|
-
ppname:
|
|
344
|
+
ppname: t.ppname ?? ""
|
|
297
345
|
}))
|
|
298
346
|
}));
|
|
299
|
-
async function
|
|
347
|
+
async function q() {
|
|
300
348
|
const e = {
|
|
301
349
|
status: 200,
|
|
302
350
|
message: "",
|
|
@@ -346,7 +394,7 @@ async function D() {
|
|
|
346
394
|
}
|
|
347
395
|
};
|
|
348
396
|
try {
|
|
349
|
-
const [
|
|
397
|
+
const [t, a, s, l] = await Promise.all([
|
|
350
398
|
n.get("/home", {
|
|
351
399
|
params: {
|
|
352
400
|
render: r()
|
|
@@ -368,62 +416,62 @@ async function D() {
|
|
|
368
416
|
}
|
|
369
417
|
})
|
|
370
418
|
]);
|
|
371
|
-
let
|
|
372
|
-
return r() ? (
|
|
373
|
-
|
|
374
|
-
)) : (
|
|
375
|
-
} catch (
|
|
376
|
-
const
|
|
377
|
-
return e.status =
|
|
419
|
+
let c, g, i, m;
|
|
420
|
+
return r() ? (c = JSON.parse(o(t.data)), g = JSON.parse(o(a.data)), i = JSON.parse(o(s.data)), m = JSON.parse(
|
|
421
|
+
o(l.data)
|
|
422
|
+
)) : (c = t.data, g = a.data, i = s.data, m = l.data), t.status != 200 ? (e.status = t.status, e.message = "") : e.data = h(c), a.status != 200 ? (e.hotGames.status = a.status, e.hotGames.message = "") : e.hotGames.data = d(g), s.status != 200 ? (e.fishGames.status = s.status, e.fishGames.message = "") : e.fishGames.data = _(i), l.status != 200 ? (e.trialGames.status = l.status, e.trialGames.message = "") : e.trialGames.data = y(m), e;
|
|
423
|
+
} catch (t) {
|
|
424
|
+
const a = t;
|
|
425
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
378
426
|
}
|
|
379
427
|
}
|
|
380
|
-
const
|
|
428
|
+
const h = (e) => ({
|
|
381
429
|
game: {
|
|
382
|
-
SPORT: e.game.SPORT.map((
|
|
383
|
-
SPECIAL: e.game.SPECIAL.map((
|
|
384
|
-
PVP: e.game.PVP.map((
|
|
385
|
-
LIVE: e.game.LIVE.map((
|
|
386
|
-
EVENT: e.game.EVENT.map((
|
|
387
|
-
ESPORT: e.game.ESPORT.map((
|
|
388
|
-
EGAME: e.game.EGAME.map((
|
|
389
|
-
BINGO: e.game.BINGO.map((
|
|
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))
|
|
390
438
|
},
|
|
391
|
-
mobileBanner: e.mobileBanner.map((
|
|
392
|
-
name:
|
|
393
|
-
content:
|
|
394
|
-
link:
|
|
395
|
-
linkTarget:
|
|
396
|
-
updatedOn:
|
|
397
|
-
idCmsCategory:
|
|
398
|
-
contentOrg:
|
|
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 ?? ""
|
|
399
447
|
})),
|
|
400
|
-
announcement: e.announcement.map((
|
|
401
|
-
announcementIndex:
|
|
402
|
-
announcementEnglish:
|
|
403
|
-
announcementSimplified:
|
|
404
|
-
announcementTraditional:
|
|
405
|
-
announcementMalay:
|
|
406
|
-
announcementStatus:
|
|
407
|
-
announcementShow:
|
|
408
|
-
announcementAlert:
|
|
409
|
-
announcementUser:
|
|
410
|
-
announcementSequence:
|
|
411
|
-
announcementCompany:
|
|
412
|
-
companyIndex:
|
|
413
|
-
announcementLastUpdated:
|
|
414
|
-
announcementDateCreated:
|
|
415
|
-
announcementSmaid:
|
|
416
|
-
annTimer:
|
|
417
|
-
annStart:
|
|
418
|
-
annEnd:
|
|
419
|
-
grp:
|
|
420
|
-
time:
|
|
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 ?? ""
|
|
421
469
|
})),
|
|
422
|
-
alertAnnouncement: e.alert_announcement.map((
|
|
423
|
-
announcementDateCreated:
|
|
424
|
-
announcementSimplified:
|
|
470
|
+
alertAnnouncement: e.alert_announcement.map((t) => ({
|
|
471
|
+
announcementDateCreated: t.announcement_datecreated ?? "",
|
|
472
|
+
announcementSimplified: t.announcement_simplified ?? ""
|
|
425
473
|
}))
|
|
426
|
-
}),
|
|
474
|
+
}), u = (e) => ({
|
|
427
475
|
id: e.id ?? 0,
|
|
428
476
|
idPlatformMaster: e.id_PlatformMaster ?? 0,
|
|
429
477
|
idProductMaster: e.id_ProductMaster ?? 0,
|
|
@@ -466,30 +514,226 @@ const P = (e) => ({
|
|
|
466
514
|
imgSport: e.imgSport ?? "",
|
|
467
515
|
imgTemplate: e.imgTemplate ?? ""
|
|
468
516
|
});
|
|
469
|
-
async function
|
|
517
|
+
async function V() {
|
|
470
518
|
const e = {
|
|
471
519
|
status: 200,
|
|
472
520
|
message: "",
|
|
473
521
|
data: ""
|
|
474
522
|
};
|
|
475
523
|
try {
|
|
476
|
-
const
|
|
524
|
+
const t = await n.get("/currentLang", {
|
|
477
525
|
params: {
|
|
478
526
|
render: r()
|
|
479
527
|
}
|
|
480
528
|
});
|
|
481
|
-
let
|
|
482
|
-
return r() ?
|
|
529
|
+
let a;
|
|
530
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = a, e);
|
|
531
|
+
} catch (t) {
|
|
532
|
+
const a = t;
|
|
533
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
async function $() {
|
|
537
|
+
const e = {
|
|
538
|
+
status: 200,
|
|
539
|
+
message: "",
|
|
540
|
+
data: {
|
|
541
|
+
objList: [],
|
|
542
|
+
promoCat: [],
|
|
543
|
+
resize: 0
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
try {
|
|
547
|
+
const t = await n.get("/promotion", {
|
|
548
|
+
params: {
|
|
549
|
+
render: r()
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
let a;
|
|
553
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = b(a), e);
|
|
554
|
+
} catch (t) {
|
|
555
|
+
const a = t;
|
|
556
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
const b = (e) => ({
|
|
560
|
+
objList: e.objList.map((t) => ({
|
|
561
|
+
promoIndex: t.promoindex ?? 0,
|
|
562
|
+
type: t.type ?? 0,
|
|
563
|
+
thumb: t.thumb ?? 0,
|
|
564
|
+
title: t.title ?? "",
|
|
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()
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
let a;
|
|
613
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = P(a), e);
|
|
614
|
+
} catch (t) {
|
|
615
|
+
const a = t;
|
|
616
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
const P = (e) => [
|
|
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() {
|
|
634
|
+
const e = {
|
|
635
|
+
status: 200,
|
|
636
|
+
message: "",
|
|
637
|
+
data: {
|
|
638
|
+
liveChat: ""
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
try {
|
|
642
|
+
const t = await n.get("/cslink", {
|
|
643
|
+
params: {
|
|
644
|
+
render: r()
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
let a;
|
|
648
|
+
return r() ? a = JSON.parse(o(t.data)) : a = t.data, t.status != 200 ? (e.status = t.status, e.message = "", e) : (e.data = G(a), e);
|
|
649
|
+
} catch (t) {
|
|
650
|
+
const a = t;
|
|
651
|
+
return e.status = a.status || 500, e.message = a.message, e;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
const G = (e) => ({
|
|
655
|
+
liveChat: e.livechat ?? ""
|
|
656
|
+
});
|
|
657
|
+
async function W(e) {
|
|
658
|
+
const t = {
|
|
659
|
+
status: 200,
|
|
660
|
+
message: "",
|
|
661
|
+
data: []
|
|
662
|
+
};
|
|
663
|
+
try {
|
|
664
|
+
const a = await n.get(`/egame/json/${e}`, {
|
|
665
|
+
params: {
|
|
666
|
+
render: r()
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
let s;
|
|
670
|
+
return r() ? s = JSON.parse(o(a.data)) : s = a.data, a.status != 200 ? (t.status = a.status, t.message = "", t) : (t.data = L(s), t);
|
|
483
671
|
} catch (a) {
|
|
484
|
-
const
|
|
485
|
-
return
|
|
672
|
+
const s = a;
|
|
673
|
+
return t.status = s.status || 500, t.message = s.message, t;
|
|
486
674
|
}
|
|
487
675
|
}
|
|
676
|
+
const L = (e) => e.map((t) => ({
|
|
677
|
+
gameId: t.game_id ?? "",
|
|
678
|
+
imgSrc: t.imgSrc ?? "",
|
|
679
|
+
imgPf: t.imgPf ?? "",
|
|
680
|
+
name: t.name ?? "",
|
|
681
|
+
favouriteFlag: t.favourite_flag === 1,
|
|
682
|
+
platformStatusFflag: t.platform_status_Fflag ?? "",
|
|
683
|
+
platformFlagName: t.platform_flag_name ?? "",
|
|
684
|
+
platformStatusParams: {
|
|
685
|
+
eb: t.platform_status_params.eb ?? !1,
|
|
686
|
+
fit: t.platform_status_params.fit ?? !1,
|
|
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);
|
|
710
|
+
} catch (a) {
|
|
711
|
+
const s = a;
|
|
712
|
+
return t.status = s.status || 500, t.message = s.message, t;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
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
|
+
});
|
|
488
727
|
export {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
728
|
+
w as Repository,
|
|
729
|
+
R as cmsList,
|
|
730
|
+
B as csLink,
|
|
731
|
+
F as currentLang,
|
|
732
|
+
x as eGame,
|
|
733
|
+
T as fishGames,
|
|
734
|
+
D as getLocale,
|
|
735
|
+
M as home,
|
|
736
|
+
E as hotGames,
|
|
737
|
+
k as promotion,
|
|
738
|
+
j as trialGames
|
|
495
739
|
};
|
package/dist/50p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],c):(s=typeof globalThis<"u"?globalThis:s||self,c(s["50p82u21t54k"]={},s.axios,s.Vue,s.CryptoJS))})(this,function(s,c,E,m){"use strict";const G=Object.freeze(Object.defineProperty({__proto__:null,get getHotGames(){return D},get processHotGamesData(){return g}},Symbol.toStringTag,{value:"Module"})),y=Object.freeze(Object.defineProperty({__proto__:null,get getFishGames(){return R},get processFishGame(){return d},get processFishGamesData(){return f}},Symbol.toStringTag,{value:"Module"})),O=Object.freeze(Object.defineProperty({__proto__:null,get getTrialGames(){return x},get processTrialGamesData(){return i}},Symbol.toStringTag,{value:"Module"})),v=Object.freeze(Object.defineProperty({__proto__:null,get getHome(){return L},get processHomeData(){return T},get processPlatformGame(){return u}},Symbol.toStringTag,{value:"Module"})),b=Object.freeze(Object.defineProperty({__proto__:null,get getCurrentLang(){return M}},Symbol.toStringTag,{value:"Module"})),o=c.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});o.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),o.interceptors.response.use(e=>e,e=>{const a={status:null,message:"An error occurred"};return e.response?(a.status=e.response.status,a.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(a)),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(a)});const N=E.ref("");function r(){return N.value===""?0:1}const F={home:v,hotGames:G,fishGames:y,trialGames:O,currentLang:b},j={install(e){e.config.globalProperties.$library=F}},l=e=>{try{const a=JSON.parse(m.AES.decrypt(e,N.value,{format:{stringify:t=>{const n={ct:t.ciphertext.toString(m.enc.Base64)};return t.iv&&(n.iv=t.iv.toString()),t.salt&&(n.s=t.salt.toString()),JSON.stringify(n)},parse:t=>{const n=JSON.parse(t),p=m.lib.CipherParams.create({ciphertext:m.enc.Base64.parse(n.ct)});return n.iv&&(p.iv=m.enc.Hex.parse(n.iv)),n.s&&(p.salt=m.enc.Hex.parse(n.s)),p}}}).toString(m.enc.Utf8));return a!==""?JSON.parse(a):a}catch(a){return console.error(a),""}};async function D(){const e={status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}};try{const a=await o.get("/hotGames",{params:{render:r()}});let t;return r()?t=JSON.parse(l(a.data)):t=a.data,a.status!=200?(e.status=a.status,e.message="",e):(e.data=g(t),e)}catch(a){const t=a;return e.status=t.status||500,e.message=t.message,e}}const g=e=>({currentPage:e.current_page??0,data:e.data.map(a=>({id:a.id??0,name:a.name??"",pfid:a.pfid??0,ppname:a.ppname??"",code:a.code??"",img:a.img??"",progressive:a.progressive??"",ppid:a.ppid??0,notry:a.notry===1,productCode:a.product_code??"",imgSrc:a.imgSrc??"",imgPf:a.imgPf??"",favouriteFlag:a.favourite_flag===1,platformStatusFlag:a.platform_status_flag??"",platformFlagName:a.platform_flag_name??"",platformStatusParams:{eb:a.platform_status_params.eb??!1,fit:a.platform_status_params.fit??!1,fs:a.platform_status_params.fs??!1},gameId:a.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0});async function R(){const e={status:200,message:"",data:{hotfish:[],data:[]}};try{const a=await o.get("/fishGames",{params:{render:r()}});let t;return r()?t=JSON.parse(l(a.data)):t=a.data,a.status!=200?(e.status=a.status,e.message="",e):(e.data=f(t),e)}catch(a){const t=a;return e.status=t.status||500,e.message=t.message,e}}const f=e=>({hotfish:e.hotfish.map(a=>d(a)),data:e.data.map(a=>d(a))}),d=e=>({id:e.id??0,name:e.name??"",ppid:e.pp_id??"",img:e.img??"",desc:e.desc??"",ppname:e.pp_name??"",platformCode:e.platform_code??"",code:e.code??"",flag:e.flag??0,gameId:e.game_id??0,imgSrc:e.imgSrc??"",imgPf:e.imgPf??"",favouriteFlag:e.favourite_flag===1,platformStatusFflag:e.platform_status_Fflag??"",platformFlagName:e.platform_flag_name??"",platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1}});async function x(){const e={status:200,message:"",data:[]};try{const a=await o.get("/trialGames",{params:{render:r()}});let t;return r()?t=JSON.parse(l(a.data)):t=a.data,a.status!=200?(e.status=a.status,e.message="",e):(e.data=i(t),e)}catch(a){const t=a;return e.status=t.status||500,e.message=t.message,e}}const i=e=>e.map(a=>({ppid:a.ppid??0,ppname:a.ppname??"",games:a.games.map(t=>({id:t.id??0,name:t.name??"",img:t.img??"",progressive:t.progressive??"",notry:t.notry===1,imgSrc:t.imgSrc??"",imgPf:t.imgPf??"",favouriteFlag:t.favourite_flag===1,platformStatusFflag:t.platform_status_Fflag??"",platformFlagName:t.platform_flag_name??"",platformStatusParams:{eb:t.platform_status_params.eb??!1,fit:t.platform_status_params.fit??!1,fs:t.platform_status_params.fs??!1},ppname:a.ppname??""}))}));async function L(){const e={status:200,message:"",data:{game:{SPORT:[],SPECIAL:[],PVP:[],LIVE:[],EVENT:[],ESPORT:[],EGAME:[],BINGO:[]},mobileBanner:[],announcement:[],alertAnnouncement:[]},hotGames:{status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},fishGames:{status:200,message:"",data:{hotfish:[],data:[]}},trialGames:{status:200,message:"",data:[]}};try{const[a,t,n,p]=await Promise.all([o.get("/home",{params:{render:r()}}),o.get("/hotGames",{params:{render:r()}}),o.get("/fishGames",{params:{render:r()}}),o.get("/trialGames",{params:{render:r()}})]);let _,h,S,P;return r()?(_=JSON.parse(l(a.data)),h=JSON.parse(l(t.data)),S=JSON.parse(l(n.data)),P=JSON.parse(l(p.data))):(_=a.data,h=t.data,S=n.data,P=p.data),a.status!=200?(e.status=a.status,e.message=""):e.data=T(_),t.status!=200?(e.hotGames.status=t.status,e.hotGames.message=""):e.hotGames.data=g(h),n.status!=200?(e.fishGames.status=n.status,e.fishGames.message=""):e.fishGames.data=f(S),p.status!=200?(e.trialGames.status=p.status,e.trialGames.message=""):e.trialGames.data=i(P),e}catch(a){const t=a;return e.status=t.status||500,e.message=t.message,e}}const T=e=>({game:{SPORT:e.game.SPORT.map(a=>u(a)),SPECIAL:e.game.SPECIAL.map(a=>u(a)),PVP:e.game.PVP.map(a=>u(a)),LIVE:e.game.LIVE.map(a=>u(a)),EVENT:e.game.EVENT.map(a=>u(a)),ESPORT:e.game.ESPORT.map(a=>u(a)),EGAME:e.game.EGAME.map(a=>u(a)),BINGO:e.game.BINGO.map(a=>u(a))},mobileBanner:e.mobileBanner.map(a=>({name:a.name??"",content:a.content??"",link:a.link??"",linkTarget:a.link_target??"",updatedOn:a.updated_on??"",idCmsCategory:a.id_cms_category??0,contentOrg:a.content_org??""})),announcement:e.announcement.map(a=>({announcementIndex:a.announcement_index??0,announcementEnglish:a.announcement_english??"",announcementSimplified:a.announcement_simplified??"",announcementTraditional:a.announcement_traditional??"",announcementMalay:a.announcement_malay??"",announcementStatus:a.announcement_status==="1",announcementShow:a.announcement_show==="1",announcementAlert:a.announcement_alert==="1",announcementUser:a.announcement_user==="1",announcementSequence:a.announcement_sequence??0,announcementCompany:a.announcement_company==="1",companyIndex:a.companyindex??0,announcementLastUpdated:a.announcement_lastupdated??"",announcementDateCreated:a.announcement_datecreated??"",announcementSmaid:a.announcement_smaid??"",annTimer:a.ann_timer??"",annStart:a.ann_start??"",annEnd:a.ann_end??"",grp:a.grp??"",time:a.time??""})),alertAnnouncement:e.alert_announcement.map(a=>({announcementDateCreated:a.announcement_datecreated??"",announcementSimplified:a.announcement_simplified??""}))}),u=e=>({id:e.id??0,idPlatformMaster:e.id_PlatformMaster??0,idProductMaster:e.id_ProductMaster??0,name:e.name??"",shortName:e.shortName??"",img:e.img??"",mobileUrl:e.mobileUrl??"",url:e.url??"",desc:e.desc??"",seq:e.seq??0,flag:e.flag??0,status:e.status??"",createdBy:e.created_by??0,createdOn:e.created_on??"",categoryID:e.categoryid??0,com:e.com??"",cur:e.cur??"",pt:e.pt??"",ppName:e.pp_name??"",ppImage:e.pp_image??"",platformCode:e.platform_code??"",platformName:e.platform_name??"",classIcon:e.class_icon??"",productCode:e.product_code??"",productName:e.product_name??"",gameID:e.game_id??0,fAuth:e.fAuth??!1,platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1},loginFlag:e.login_flag==="1",link:e.link??"",favouriteFlag:e.favourite_flag===1,platformStatusFlag:e.platform_status_flag??"",platformFlagName:e.platform_flag_name??"",homeLogo:e.home_logo??"",imgPf:e.imgPf??"",imgSport:e.imgSport??"",imgTemplate:e.imgTemplate??""});async function M(){const e={status:200,message:"",data:""};try{const a=await o.get("/currentLang",{params:{render:r()}});let t;return r()?t=JSON.parse(l(a.data)):t=a.data,a.status!=200?(e.status=a.status,e.message="",e):(e.data=t,e)}catch(a){const t=a;return e.status=t.status||500,e.message=t.message,e}}s.Repository=j,s.currentLang=b,s.fishGames=y,s.home=v,s.hotGames=G,s.trialGames=O,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(n,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],p):(n=typeof globalThis<"u"?globalThis:n||self,p(n["50p82u21t54k"]={},n.axios,n.Vue,n.CryptoJS))})(this,function(n,p,U,g){"use strict";const P=Object.freeze(Object.defineProperty({__proto__:null,get getHotGames(){return J},get processHotGamesData(){return i}},Symbol.toStringTag,{value:"Module"})),b=Object.freeze(Object.defineProperty({__proto__:null,get getFishGames(){return H},get processFishGame(){return f},get processFishGamesData(){return m}},Symbol.toStringTag,{value:"Module"})),G=Object.freeze(Object.defineProperty({__proto__:null,get getTrialGames(){return V},get processTrialGamesData(){return d}},Symbol.toStringTag,{value:"Module"})),L=Object.freeze(Object.defineProperty({__proto__:null,get getHome(){return $},get processHomeData(){return M},get processPlatformGame(){return l}},Symbol.toStringTag,{value:"Module"})),v=Object.freeze(Object.defineProperty({__proto__:null,get getCurrentLang(){return K}},Symbol.toStringTag,{value:"Module"})),O=Object.freeze(Object.defineProperty({__proto__:null,get getPromotion(){return Q},get processPromotionData(){return k}},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,get getGetLocale(){return W},get processGetLocaleData(){return F}},Symbol.toStringTag,{value:"Module"})),T=Object.freeze(Object.defineProperty({__proto__:null,get getCsLink(){return X},get processCsLinkData(){return D}},Symbol.toStringTag,{value:"Module"})),A=Object.freeze(Object.defineProperty({__proto__:null,get getEGame(){return Y},get processEGameData(){return B}},Symbol.toStringTag,{value:"Module"})),j=Object.freeze(Object.defineProperty({__proto__:null,get CmsId(){return R},get getCmsList(){return Z},get processCsLinkData(){return z}},Symbol.toStringTag,{value:"Module"})),o=p.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});o.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),o.interceptors.response.use(e=>e,e=>{const t={status:null,message:"An error occurred"};return e.response?(t.status=e.response.status,t.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(t)),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(t)});const E=U.ref("");function r(){return E.value===""?0:1}const q={home:L,hotGames:P,fishGames:b,trialGames:G,currentLang:v,promotion:O,getLocale:N,csLink:T,eGame:A,cmsList:j},x={install(e){e.config.globalProperties.$library=q}},u=e=>{try{const t=JSON.parse(g.AES.decrypt(e,E.value,{format:{stringify:a=>{const s={ct:a.ciphertext.toString(g.enc.Base64)};return a.iv&&(s.iv=a.iv.toString()),a.salt&&(s.s=a.salt.toString()),JSON.stringify(s)},parse:a=>{const s=JSON.parse(a),c=g.lib.CipherParams.create({ciphertext:g.enc.Base64.parse(s.ct)});return s.iv&&(c.iv=g.enc.Hex.parse(s.iv)),s.s&&(c.salt=g.enc.Hex.parse(s.s)),c}}}).toString(g.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}};async function J(){const e={status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}};try{const t=await o.get("/hotGames",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=i(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const i=e=>({currentPage:e.current_page??0,data:e.data.map(t=>({id:t.id??0,name:t.name??"",pfid:t.pfid??0,ppname:t.ppname??"",code:t.code??"",img:t.img??"",progressive:t.progressive??"",ppid:t.ppid??0,notry:t.notry===1,productCode:t.product_code??"",imgSrc:t.imgSrc??"",imgPf:t.imgPf??"",favouriteFlag:t.favourite_flag===1,platformStatusFlag:t.platform_status_flag??"",platformFlagName:t.platform_flag_name??"",platformStatusParams:{eb:t.platform_status_params.eb??!1,fit:t.platform_status_params.fit??!1,fs:t.platform_status_params.fs??!1},gameId:t.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0});async function H(){const e={status:200,message:"",data:{hotfish:[],data:[]}};try{const t=await o.get("/fishGames",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=m(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const m=e=>({hotfish:e.hotfish.map(t=>f(t)),data:e.data.map(t=>f(t))}),f=e=>({id:e.id??0,name:e.name??"",ppid:e.pp_id??"",img:e.img??"",desc:e.desc??"",ppname:e.pp_name??"",platformCode:e.platform_code??"",code:e.code??"",flag:e.flag??0,gameId:e.game_id??0,imgSrc:e.imgSrc??"",imgPf:e.imgPf??"",favouriteFlag:e.favourite_flag===1,platformStatusFflag:e.platform_status_Fflag??"",platformFlagName:e.platform_flag_name??"",platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1}});async function V(){const e={status:200,message:"",data:[]};try{const t=await o.get("/trialGames",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=d(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const d=e=>e.map(t=>({ppid:t.ppid??0,ppname:t.ppname??"",games:t.games.map(a=>({id:a.id??0,name:a.name??"",img:a.img??"",progressive:a.progressive??"",notry:a.notry===1,imgSrc:a.imgSrc??"",imgPf:a.imgPf??"",favouriteFlag:a.favourite_flag===1,platformStatusFflag:a.platform_status_Fflag??"",platformFlagName:a.platform_flag_name??"",platformStatusParams:{eb:a.platform_status_params.eb??!1,fit:a.platform_status_params.fit??!1,fs:a.platform_status_params.fs??!1},ppname:t.ppname??""}))}));async function $(){const e={status:200,message:"",data:{game:{SPORT:[],SPECIAL:[],PVP:[],LIVE:[],EVENT:[],ESPORT:[],EGAME:[],BINGO:[]},mobileBanner:[],announcement:[],alertAnnouncement:[]},hotGames:{status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},fishGames:{status:200,message:"",data:{hotfish:[],data:[]}},trialGames:{status:200,message:"",data:[]}};try{const[t,a,s,c]=await Promise.all([o.get("/home",{params:{render:r()}}),o.get("/hotGames",{params:{render:r()}}),o.get("/fishGames",{params:{render:r()}}),o.get("/trialGames",{params:{render:r()}})]);let _,y,S,h;return r()?(_=JSON.parse(u(t.data)),y=JSON.parse(u(a.data)),S=JSON.parse(u(s.data)),h=JSON.parse(u(c.data))):(_=t.data,y=a.data,S=s.data,h=c.data),t.status!=200?(e.status=t.status,e.message=""):e.data=M(_),a.status!=200?(e.hotGames.status=a.status,e.hotGames.message=""):e.hotGames.data=i(y),s.status!=200?(e.fishGames.status=s.status,e.fishGames.message=""):e.fishGames.data=m(S),c.status!=200?(e.trialGames.status=c.status,e.trialGames.message=""):e.trialGames.data=d(h),e}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const M=e=>({game:{SPORT:e.game.SPORT.map(t=>l(t)),SPECIAL:e.game.SPECIAL.map(t=>l(t)),PVP:e.game.PVP.map(t=>l(t)),LIVE:e.game.LIVE.map(t=>l(t)),EVENT:e.game.EVENT.map(t=>l(t)),ESPORT:e.game.ESPORT.map(t=>l(t)),EGAME:e.game.EGAME.map(t=>l(t)),BINGO:e.game.BINGO.map(t=>l(t))},mobileBanner:e.mobileBanner.map(t=>({name:t.name??"",content:t.content??"",link:t.link??"",linkTarget:t.link_target??"",updatedOn:t.updated_on??"",idCmsCategory:t.id_cms_category??0,contentOrg:t.content_org??""})),announcement:e.announcement.map(t=>({announcementIndex:t.announcement_index??0,announcementEnglish:t.announcement_english??"",announcementSimplified:t.announcement_simplified??"",announcementTraditional:t.announcement_traditional??"",announcementMalay:t.announcement_malay??"",announcementStatus:t.announcement_status==="1",announcementShow:t.announcement_show==="1",announcementAlert:t.announcement_alert==="1",announcementUser:t.announcement_user==="1",announcementSequence:t.announcement_sequence??0,announcementCompany:t.announcement_company==="1",companyIndex:t.companyindex??0,announcementLastUpdated:t.announcement_lastupdated??"",announcementDateCreated:t.announcement_datecreated??"",announcementSmaid:t.announcement_smaid??"",annTimer:t.ann_timer??"",annStart:t.ann_start??"",annEnd:t.ann_end??"",grp:t.grp??"",time:t.time??""})),alertAnnouncement:e.alert_announcement.map(t=>({announcementDateCreated:t.announcement_datecreated??"",announcementSimplified:t.announcement_simplified??""}))}),l=e=>({id:e.id??0,idPlatformMaster:e.id_PlatformMaster??0,idProductMaster:e.id_ProductMaster??0,name:e.name??"",shortName:e.shortName??"",img:e.img??"",mobileUrl:e.mobileUrl??"",url:e.url??"",desc:e.desc??"",seq:e.seq??0,flag:e.flag??0,status:e.status??"",createdBy:e.created_by??0,createdOn:e.created_on??"",categoryID:e.categoryid??0,com:e.com??"",cur:e.cur??"",pt:e.pt??"",ppName:e.pp_name??"",ppImage:e.pp_image??"",platformCode:e.platform_code??"",platformName:e.platform_name??"",classIcon:e.class_icon??"",productCode:e.product_code??"",productName:e.product_name??"",gameID:e.game_id??0,fAuth:e.fAuth??!1,platformStatusParams:{eb:e.platform_status_params.eb??!1,fit:e.platform_status_params.fit??!1,fs:e.platform_status_params.fs??!1},loginFlag:e.login_flag==="1",link:e.link??"",favouriteFlag:e.favourite_flag===1,platformStatusFlag:e.platform_status_flag??"",platformFlagName:e.platform_flag_name??"",homeLogo:e.home_logo??"",imgPf:e.imgPf??"",imgSport:e.imgSport??"",imgTemplate:e.imgTemplate??""});async function K(){const e={status:200,message:"",data:""};try{const t=await o.get("/currentLang",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=a,e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}async function Q(){const e={status:200,message:"",data:{objList:[],promoCat:[],resize:0}};try{const t=await o.get("/promotion",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=k(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const k=e=>({objList:e.objList.map(t=>({promoIndex:t.promoindex??0,type:t.type??0,thumb:t.thumb??0,title:t.title??"",displayTime:t.display_time??"",handle:t.handle??"",content:t.content??"",langList:t.lang_list??"",agentList:t.agent_list??"",dateCreated:t.datecreated??"",updateBy:t.updateby??"",lastUpdated:t.lastupdated??"",sequence:t.sequence??0,status:t.status===1,timer:t.timer??"",stime:t.stime??"",etime:t.etime??"",smaid:t.smaid??"",companyIndex:t.companyindex??"",fileName:t.filename??"",version:t.version??"",categoryName:t.category_name??"",barImg:t.bar_img??"",buttonImg:t.button_img??"",promoImg:t.promo_image??"",catId:t.catid??"",imageType:t.image_type??"",image:t.image??"",isLink:t.isLink,latestUpdate:t.latestupdate??""})),promoCat:e.promoCat.map(t=>({catId:t.catid??0,name:t.name??"",barImg:t.bar_img??"",buttonImg:t.button_img??""})),resize:e.resize});async function W(){const e={status:200,message:"",data:[]};try{const t=await o.get("/getLocale",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=F(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const F=e=>[{code:"en",label:e.en.label??""},{code:"zh",label:e.zh.label??""},{code:"ms",label:e.ms.label??""}];async function X(){const e={status:200,message:"",data:{liveChat:""}};try{const t=await o.get("/cslink",{params:{render:r()}});let a;return r()?a=JSON.parse(u(t.data)):a=t.data,t.status!=200?(e.status=t.status,e.message="",e):(e.data=D(a),e)}catch(t){const a=t;return e.status=a.status||500,e.message=a.message,e}}const D=e=>({liveChat:e.livechat??""});async function Y(e){const t={status:200,message:"",data:[]};try{const a=await o.get(`/egame/json/${e}`,{params:{render:r()}});let s;return r()?s=JSON.parse(u(a.data)):s=a.data,a.status!=200?(t.status=a.status,t.message="",t):(t.data=B(s),t)}catch(a){const s=a;return t.status=s.status||500,t.message=s.message,t}}const B=e=>e.map(t=>({gameId:t.game_id??"",imgSrc:t.imgSrc??"",imgPf:t.imgPf??"",name:t.name??"",favouriteFlag:t.favourite_flag===1,platformStatusFflag:t.platform_status_Fflag??"",platformFlagName:t.platform_flag_name??"",platformStatusParams:{eb:t.platform_status_params.eb??!1,fit:t.platform_status_params.fit??!1,fs:t.platform_status_params.fs??!1},progressive:t.progressive??"",gameCategory:t.game_category??"",ppid:t.pp_id??""}));var R=(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))(R||{});async function Z(e){const t={status:200,message:"",data:{cmsList:[]}};try{const a=await o.get(`/cmsList?id=${e}`,{params:{render:r()}});let s;return r()?s=JSON.parse(u(a.data)):s=a.data,a.status!=200?(t.status=a.status,t.message="",t):(t.data=z(s),t)}catch(a){const s=a;return t.status=s.status||500,t.message=s.message,t}}const z=e=>({cmsList:e.cmslist.map(t=>({name:t.name??"",content:t.content??"",link:t.link??"",linkTarget:t.link_target??"",updatedOn:t.updated_on??"",idCmsCategory:t.id_cms_category??0,contentOrg:t.content_org??"",linkOrg:t.link_org??""}))});n.Repository=x,n.cmsList=j,n.csLink=T,n.currentLang=v,n.eGame=A,n.fishGames=b,n.getLocale=N,n.home=L,n.hotGames=P,n.promotion=O,n.trialGames=G,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cmsList/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CmsListData, CmsListResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export declare enum CmsId {
|
|
4
|
+
AllCategories = 0,// 全部類別
|
|
5
|
+
Lotto = 2,// 彩票游戏 (Lotto Games)
|
|
6
|
+
LiveCasino = 3,// 真人娱乐 (Live Casino)
|
|
7
|
+
SlotGames = 4,// 电子游艺 (Electronic Games)
|
|
8
|
+
SportsBetting = 5,// 体育博彩 (Sports Betting)
|
|
9
|
+
LatestAd = 7,// 最新广告 (Latest Ad)
|
|
10
|
+
Promotions = 8,// 优惠活动 (Promotions)
|
|
11
|
+
MobileBetting = 9,// 手机投注 (Mobile Betting)
|
|
12
|
+
ESports = 12,// 电竞赛事 (ESports)
|
|
13
|
+
CardGames = 13,// 棋牌游戏 (Card Games)
|
|
14
|
+
FishingGames = 14,// 捕鱼游戏 (Fishing Games)
|
|
15
|
+
BottomRightAd = 16,// 右下广告 (Bottom Right Ad)
|
|
16
|
+
LotteryActivity = 18,// 抽奖活动 (Lottery Activity)
|
|
17
|
+
HomepagePopup = 101,// 首页弹窗 (Homepage Popup)
|
|
18
|
+
LeftAd = 102,// 左边广告 (Left Ad)
|
|
19
|
+
RightAd = 103,// 右边广告 (Right Ad)
|
|
20
|
+
MobileAd = 104,// 手机广告 (Mobile Ad)
|
|
21
|
+
MobilePopup = 105,// 手机弹窗 (Mobile Popup)
|
|
22
|
+
BottomLeftAd = 106,// 左下广告 (Bottom Left Ad)
|
|
23
|
+
InfoGallery = 109,// 资讯图库 (Info Gallery)
|
|
24
|
+
AgentBackendAd = 114,// 代理后台广告 (Agent Backend Ad)
|
|
25
|
+
CheckInBanner = 123,// 签到横幅 (Check-In Banner)
|
|
26
|
+
PlatformActivities = 128,// 平台活动 (Platform Activities)
|
|
27
|
+
LotterySlogan = 130,// 抽奖Slogan (Lottery Slogan)
|
|
28
|
+
MobileLotterySlogan = 131,// 手机版抽奖Slogan (Mobile Lottery Slogan)
|
|
29
|
+
PointsMallSlogan = 135
|
|
30
|
+
}
|
|
31
|
+
export type RawCmsListResponse = {
|
|
32
|
+
cmslist: {
|
|
33
|
+
name: string;
|
|
34
|
+
content: string;
|
|
35
|
+
link: string;
|
|
36
|
+
link_target: number;
|
|
37
|
+
updated_on: string;
|
|
38
|
+
id_cms_category: number;
|
|
39
|
+
content_org: string;
|
|
40
|
+
link_org: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
export declare function getCmsList(id: CmsId): Promise<CmsListResponse>;
|
|
44
|
+
export declare const processCsLinkData: (raw: RawCmsListResponse) => CmsListData;
|
|
45
|
+
//# sourceMappingURL=method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/cmsList/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAGrD,oBAAY,KAAK;IACf,aAAa,IAAI,CAAE,OAAO;IAC1B,KAAK,IAAI,CAAE,qBAAqB;IAChC,UAAU,IAAI,CAAE,qBAAqB;IACrC,SAAS,IAAI,CAAE,0BAA0B;IACzC,aAAa,IAAI,CAAE,wBAAwB;IAC3C,QAAQ,IAAI,CAAE,mBAAmB;IACjC,UAAU,IAAI,CAAE,oBAAoB;IACpC,aAAa,IAAI,CAAE,wBAAwB;IAC3C,OAAO,KAAK,CAAE,iBAAiB;IAC/B,SAAS,KAAK,CAAE,oBAAoB;IACpC,YAAY,KAAK,CAAE,uBAAuB;IAC1C,aAAa,KAAK,CAAE,yBAAyB;IAC7C,eAAe,KAAK,CAAE,0BAA0B;IAChD,aAAa,MAAM,CAAE,wBAAwB;IAC7C,MAAM,MAAM,CAAE,iBAAiB;IAC/B,OAAO,MAAM,CAAE,kBAAkB;IACjC,QAAQ,MAAM,CAAE,mBAAmB;IACnC,WAAW,MAAM,CAAE,sBAAsB;IACzC,YAAY,MAAM,CAAE,wBAAwB;IAC5C,WAAW,MAAM,CAAE,sBAAsB;IACzC,cAAc,MAAM,CAAE,4BAA4B;IAClD,aAAa,MAAM,CAAE,yBAAyB;IAC9C,kBAAkB,MAAM,CAAE,6BAA6B;IACvD,aAAa,MAAM,CAAE,4BAA4B;IACjD,mBAAmB,MAAM,CAAE,sCAAsC;IACjE,gBAAgB,MAAM;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;QACvB,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,EAAE,MAAM,CAAA;KACjB,EAAE,CAAA;CACJ,CAAA;AAED,wBAAsB,UAAU,CAAC,EAAE,EAAE,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,CAwCpE;AAED,eAAO,MAAM,iBAAiB,QAAS,kBAAkB,KAAG,WAe3D,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseType } from '../util/type';
|
|
2
|
+
|
|
3
|
+
export type CmsListResponse = BaseType & {
|
|
4
|
+
data: CmsListData;
|
|
5
|
+
};
|
|
6
|
+
export type CmsListData = {
|
|
7
|
+
cmsList: CmsInfo[];
|
|
8
|
+
};
|
|
9
|
+
export type CmsInfo = {
|
|
10
|
+
name: string;
|
|
11
|
+
content: string;
|
|
12
|
+
link: string;
|
|
13
|
+
linkTarget: number;
|
|
14
|
+
updatedOn: string;
|
|
15
|
+
idCmsCategory: number;
|
|
16
|
+
contentOrg: string;
|
|
17
|
+
linkOrg: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/cmsList/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,EAAE,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/csLink/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CsLinkData, CsLinkResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export type RawCsLinkResponse = {
|
|
4
|
+
livechat: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getCsLink(): Promise<CsLinkResponse>;
|
|
7
|
+
export declare const processCsLinkData: (raw: RawCsLinkResponse) => CsLinkData;
|
|
8
|
+
//# sourceMappingURL=method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/csLink/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAGnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC,CAwCzD;AAED,eAAO,MAAM,iBAAiB,QAAS,iBAAiB,KAAG,UAI1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/csLink/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG;IACtC,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eGame/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EGameData, EGameResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export type RawEGameResponse = {
|
|
4
|
+
game_id: number;
|
|
5
|
+
imgSrc: string;
|
|
6
|
+
imgPf: string;
|
|
7
|
+
name: string;
|
|
8
|
+
favourite_flag: number;
|
|
9
|
+
platform_status_Fflag: string;
|
|
10
|
+
platform_flag_name: string;
|
|
11
|
+
platform_status_params: {
|
|
12
|
+
eb: boolean;
|
|
13
|
+
fit: boolean;
|
|
14
|
+
fs: boolean;
|
|
15
|
+
};
|
|
16
|
+
progressive: string;
|
|
17
|
+
game_category: string;
|
|
18
|
+
pp_id: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function getEGame(ppid: number): Promise<EGameResponse>;
|
|
21
|
+
export declare const processEGameData: (raw: RawEGameResponse[]) => EGameData[];
|
|
22
|
+
//# sourceMappingURL=method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/eGame/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAGjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,sBAAsB,EAAE;QACtB,EAAE,EAAE,OAAO,CAAA;QACX,GAAG,EAAE,OAAO,CAAA;QACZ,EAAE,EAAE,OAAO,CAAA;KACZ,CAAA;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAsCnE;AAED,eAAO,MAAM,gBAAgB,QAAS,gBAAgB,EAAE,KAAG,SAAS,EAoBnE,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseType } from '../util/type';
|
|
2
|
+
|
|
3
|
+
export type EGameResponse = BaseType & {
|
|
4
|
+
data: EGameData[];
|
|
5
|
+
};
|
|
6
|
+
export type EGameData = {
|
|
7
|
+
gameId: number;
|
|
8
|
+
imgSrc: string;
|
|
9
|
+
imgPf: string;
|
|
10
|
+
name: string;
|
|
11
|
+
favouriteFlag: boolean;
|
|
12
|
+
platformStatusFflag: string;
|
|
13
|
+
platformFlagName: string;
|
|
14
|
+
platformStatusParams: PlatformStatusParam;
|
|
15
|
+
progressive: string;
|
|
16
|
+
gameCategory: string;
|
|
17
|
+
ppid: string;
|
|
18
|
+
};
|
|
19
|
+
export type PlatformStatusParam = {
|
|
20
|
+
eb: boolean;
|
|
21
|
+
fit: boolean;
|
|
22
|
+
fs: boolean;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/eGame/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACrC,IAAI,EAAE,SAAS,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
|
package/dist/fishGames/type.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export type FishGame = {
|
|
|
23
23
|
favouriteFlag: boolean;
|
|
24
24
|
platformStatusFflag: string;
|
|
25
25
|
platformFlagName: string;
|
|
26
|
-
platformStatusParams:
|
|
26
|
+
platformStatusParams: PlatformStatusParam;
|
|
27
27
|
};
|
|
28
|
-
export type
|
|
28
|
+
export type PlatformStatusParam = {
|
|
29
29
|
eb: boolean;
|
|
30
30
|
fit: boolean;
|
|
31
31
|
fs: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/fishGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/fishGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getLocale/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GetLocaleData, GetLocaleResponse } from './type';
|
|
2
|
+
|
|
3
|
+
export type RawGetLocaleResponse = {
|
|
4
|
+
en: {
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
zh: {
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
ms: {
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare function getGetLocale(): Promise<GetLocaleResponse>;
|
|
15
|
+
export declare const processGetLocaleData: (raw: RawGetLocaleResponse) => GetLocaleData[];
|
|
16
|
+
//# sourceMappingURL=method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/getLocale/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAGzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE;QACF,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,EAAE,EAAE;QACF,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,EAAE,EAAE;QACF,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAsC/D;AAED,eAAO,MAAM,oBAAoB,QAAS,oBAAoB,KAAG,aAAa,EAe7E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/getLocale/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,aAAa,EAAE,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
|
package/dist/hotGames/type.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type HotGamesData = {
|
|
|
21
21
|
favouriteFlag: boolean;
|
|
22
22
|
platformStatusFlag: string;
|
|
23
23
|
platformFlagName: string;
|
|
24
|
-
platformStatusParams:
|
|
24
|
+
platformStatusParams: PlatformStatusParam;
|
|
25
25
|
gameId: number;
|
|
26
26
|
}[];
|
|
27
27
|
from: number;
|
|
@@ -33,7 +33,7 @@ export type HotGamesData = {
|
|
|
33
33
|
to: number;
|
|
34
34
|
total: number;
|
|
35
35
|
};
|
|
36
|
-
export type
|
|
36
|
+
export type PlatformStatusParam = {
|
|
37
37
|
eb: boolean;
|
|
38
38
|
fit: boolean;
|
|
39
39
|
fs: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/hotGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,OAAO,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,aAAa,EAAE,OAAO,CAAA;QACtB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,gBAAgB,EAAE,MAAM,CAAA;QACxB,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/hotGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,OAAO,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,aAAa,EAAE,OAAO,CAAA;QACtB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,gBAAgB,EAAE,MAAM,CAAA;QACxB,oBAAoB,EAAE,mBAAmB,CAAA;QACzC,MAAM,EAAE,MAAM,CAAA;KACf,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,23 @@ import * as hotGames from './hotGames';
|
|
|
3
3
|
import * as fishGames from './fishGames';
|
|
4
4
|
import * as trialGames from './trialGames';
|
|
5
5
|
import * as currentLang from './currentLang';
|
|
6
|
-
|
|
6
|
+
import * as promotion from './promotion';
|
|
7
|
+
import * as getLocale from './getLocale';
|
|
8
|
+
import * as csLink from './csLink';
|
|
9
|
+
import * as eGame from './eGame';
|
|
10
|
+
import * as cmsList from './cmsList';
|
|
11
|
+
export { home, hotGames, fishGames, trialGames, currentLang, promotion, getLocale, csLink, eGame, cmsList, };
|
|
7
12
|
export type RepositoryType = {
|
|
8
13
|
home: typeof home;
|
|
9
14
|
hotGames: typeof hotGames;
|
|
10
15
|
fishGames: typeof fishGames;
|
|
11
16
|
trialGames: typeof trialGames;
|
|
12
17
|
currentLang: typeof currentLang;
|
|
18
|
+
promotion: typeof promotion;
|
|
19
|
+
getLocale: typeof getLocale;
|
|
20
|
+
csLink: typeof csLink;
|
|
21
|
+
eGame: typeof eGame;
|
|
22
|
+
cmsList: typeof cmsList;
|
|
13
23
|
};
|
|
14
24
|
export { default as Repository } from './plugin';
|
|
15
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,MAAM,EACN,KAAK,EACL,OAAO,GACR,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAO3B,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,UAAU,EAAE,OAAO,UAAU,CAAA;IAC7B,WAAW,EAAE,OAAO,WAAW,CAAA;IAC/B,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,MAAM,EAAE,OAAO,MAAM,CAAA;IACrB,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,OAAO,EAAE,OAAO,OAAO,CAAA;CACxB,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { home, hotGames, fishGames, trialGames, currentLang } from './index';
|
|
2
|
+
import { home, hotGames, fishGames, trialGames, currentLang, promotion, getLocale, csLink, eGame, cmsList } from './index';
|
|
3
3
|
|
|
4
4
|
export declare const gKey: import('vue').Ref<string>;
|
|
5
5
|
export declare function getRender(): number;
|
|
@@ -9,6 +9,11 @@ export declare const Repository: {
|
|
|
9
9
|
fishGames: typeof fishGames;
|
|
10
10
|
trialGames: typeof trialGames;
|
|
11
11
|
currentLang: typeof currentLang;
|
|
12
|
+
promotion: typeof promotion;
|
|
13
|
+
getLocale: typeof getLocale;
|
|
14
|
+
csLink: typeof csLink;
|
|
15
|
+
eGame: typeof eGame;
|
|
16
|
+
cmsList: typeof cmsList;
|
|
12
17
|
};
|
|
13
18
|
declare const _default: {
|
|
14
19
|
install(app: App): void;
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAO,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,IAAI,2BAAU,CAAA;AAE3B,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAO,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,IAAI,2BAAU,CAAA;AAE3B,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,MAAM,EACN,KAAK,EACL,OAAO,EACR,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,UAAU;;;;;;;;;;;CAWtB,CAAA;;iBAGc,GAAG;;AADlB,wBAIC"}
|
|
@@ -19,10 +19,10 @@ export type TrialGames = {
|
|
|
19
19
|
favouriteFlag: boolean;
|
|
20
20
|
platformStatusFflag: string;
|
|
21
21
|
platformFlagName: string;
|
|
22
|
-
platformStatusParams:
|
|
22
|
+
platformStatusParams: PlatformStatusParam;
|
|
23
23
|
ppname: string;
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type PlatformStatusParam = {
|
|
26
26
|
eb: boolean;
|
|
27
27
|
fit: boolean;
|
|
28
28
|
fs: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/trialGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,cAAc,EAAE,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/trialGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,cAAc,EAAE,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getLocale (incomplete)/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=method.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/getLocale (incomplete)/method.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/getLocale (incomplete)/type.ts"],"names":[],"mappings":""}
|