@obb871001/api-integration-sdk 1.0.409 → 1.0.410
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/index.cjs +1 -1
- package/dist/index.js +349 -350
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -753,7 +753,7 @@ function Fi({
|
|
|
753
753
|
}
|
|
754
754
|
), t;
|
|
755
755
|
}
|
|
756
|
-
const tr = Yt(null),
|
|
756
|
+
const tr = Yt(null), Am = () => {
|
|
757
757
|
const e = Ui(tr);
|
|
758
758
|
if (!e)
|
|
759
759
|
throw new Error(
|
|
@@ -779,7 +779,7 @@ const tr = Yt(null), Fm = () => {
|
|
|
779
779
|
default:
|
|
780
780
|
return "Tw";
|
|
781
781
|
}
|
|
782
|
-
},
|
|
782
|
+
}, Om = () => {
|
|
783
783
|
const e = (r, u) => !r && !u, n = (r) => r.startsWith("pc.");
|
|
784
784
|
return {
|
|
785
785
|
executeLogout: ({
|
|
@@ -798,7 +798,7 @@ const tr = Yt(null), Fm = () => {
|
|
|
798
798
|
shouldShowErrorNotice: e,
|
|
799
799
|
isMachineDomain: n
|
|
800
800
|
};
|
|
801
|
-
},
|
|
801
|
+
}, Bm = (e) => {
|
|
802
802
|
let n = Number(e);
|
|
803
803
|
return isNaN(n) ? e : new Intl.NumberFormat("en-US", {
|
|
804
804
|
style: "decimal",
|
|
@@ -6423,7 +6423,7 @@ const ha = /* @__PURE__ */ bi(tt), Oa = (e) => {
|
|
|
6423
6423
|
getUserAvatarListApi: z,
|
|
6424
6424
|
updateUserAvatarApi: G
|
|
6425
6425
|
};
|
|
6426
|
-
},
|
|
6426
|
+
}, Hm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6427
6427
|
const { userCurrencyExchangeApi: a } = ne(), { getToken: r } = le(), { enabled: u, ...g } = n, d = !!r?.() && (u ? u.every((l) => l) : !0);
|
|
6428
6428
|
return qn({
|
|
6429
6429
|
queries: [
|
|
@@ -6437,7 +6437,7 @@ const ha = /* @__PURE__ */ bi(tt), Oa = (e) => {
|
|
|
6437
6437
|
}
|
|
6438
6438
|
]
|
|
6439
6439
|
});
|
|
6440
|
-
},
|
|
6440
|
+
}, Wm = ({
|
|
6441
6441
|
refetchInterval: e = 5e4,
|
|
6442
6442
|
trigger: n = [],
|
|
6443
6443
|
enabled: a = !0
|
|
@@ -6453,7 +6453,7 @@ const ha = /* @__PURE__ */ bi(tt), Oa = (e) => {
|
|
|
6453
6453
|
}
|
|
6454
6454
|
]
|
|
6455
6455
|
});
|
|
6456
|
-
},
|
|
6456
|
+
}, zm = ({ enabled: e = !0 } = {}) => {
|
|
6457
6457
|
const {
|
|
6458
6458
|
userInfoApi: n,
|
|
6459
6459
|
userFavoriteGameApi: a,
|
|
@@ -6566,7 +6566,7 @@ const ha = /* @__PURE__ */ bi(tt), Oa = (e) => {
|
|
|
6566
6566
|
queryFn: async () => await a(n),
|
|
6567
6567
|
...e
|
|
6568
6568
|
});
|
|
6569
|
-
},
|
|
6569
|
+
}, Im = ({
|
|
6570
6570
|
options: e = {
|
|
6571
6571
|
betRecord: {},
|
|
6572
6572
|
betRecordDetail: {}
|
|
@@ -7437,10 +7437,10 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7437
7437
|
isInGameBox: r = !1,
|
|
7438
7438
|
currentGamePlatform: u = ""
|
|
7439
7439
|
}) => {
|
|
7440
|
-
const { store: g, lng: U } = le(), { isReady: d, setAsReady: l, isPending: t, setAsPending: i } = Yn(), o = Ze(U), { mutateAsync: s } =
|
|
7440
|
+
const { store: g, lng: U } = le(), { isReady: d, setAsReady: l, isPending: t, setAsPending: i } = Yn(), o = Ze(U), { mutateAsync: s } = as();
|
|
7441
7441
|
return !e || !n || !a ? { handleTransferInGame: () => {
|
|
7442
7442
|
} } : { handleTransferInGame: async () => {
|
|
7443
|
-
|
|
7443
|
+
r && await s({
|
|
7444
7444
|
platform: u
|
|
7445
7445
|
}).then((m) => {
|
|
7446
7446
|
const { code: f, request_id: c } = m;
|
|
@@ -7482,27 +7482,27 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7482
7482
|
getMonthCardInfoApi: n,
|
|
7483
7483
|
withdrawMonthCardApi: a
|
|
7484
7484
|
};
|
|
7485
|
-
}, Ei = ["monthCardInfo"], Wo = (
|
|
7485
|
+
}, Ei = ["monthCardInfo"], Wo = (e) => {
|
|
7486
|
+
const n = j(e, "status", null), a = j(e, "remaining_days", null), r = j(e, "activated_at", null), u = j(e, "is_under_maintenance", 0) === 1, g = j(e, "wagering_progress", []), U = j(e, "daily", []);
|
|
7487
|
+
return {
|
|
7488
|
+
...e,
|
|
7489
|
+
hasActiveCard: n !== null,
|
|
7490
|
+
status: n,
|
|
7491
|
+
remainingDays: a,
|
|
7492
|
+
activatedAt: r,
|
|
7493
|
+
isUnderMaintenance: u,
|
|
7494
|
+
wageringProgress: g,
|
|
7495
|
+
daily: U
|
|
7496
|
+
};
|
|
7497
|
+
}, zo = ({ options: e } = {}) => {
|
|
7486
7498
|
const { getMonthCardInfoApi: n } = ur();
|
|
7487
7499
|
return Q({
|
|
7488
7500
|
queryKey: Ei,
|
|
7489
7501
|
queryFn: n,
|
|
7490
|
-
select:
|
|
7491
|
-
const r = j(a, "status", null), u = j(a, "remaining_days", null), g = j(a, "activated_at", null), U = j(a, "is_under_maintenance", 0) === 1, d = j(a, "wagering_progress", []), l = j(a, "daily", []);
|
|
7492
|
-
return {
|
|
7493
|
-
...a,
|
|
7494
|
-
hasActiveCard: r !== null,
|
|
7495
|
-
status: r,
|
|
7496
|
-
remainingDays: u,
|
|
7497
|
-
activatedAt: g,
|
|
7498
|
-
isUnderMaintenance: U,
|
|
7499
|
-
wageringProgress: d,
|
|
7500
|
-
daily: l
|
|
7501
|
-
};
|
|
7502
|
-
},
|
|
7502
|
+
select: Wo,
|
|
7503
7503
|
...e
|
|
7504
7504
|
});
|
|
7505
|
-
},
|
|
7505
|
+
}, Io = ({ options: e } = {}) => {
|
|
7506
7506
|
const { withdrawMonthCardApi: n } = ur(), a = Da();
|
|
7507
7507
|
return ae({
|
|
7508
7508
|
mutationKey: ["withdrawMonthCard"],
|
|
@@ -7512,15 +7512,15 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7512
7512
|
},
|
|
7513
7513
|
...e
|
|
7514
7514
|
});
|
|
7515
|
-
},
|
|
7515
|
+
}, Vm = ({
|
|
7516
7516
|
options: e = {
|
|
7517
7517
|
monthCardInfo: {},
|
|
7518
7518
|
withdrawMonthCard: {}
|
|
7519
7519
|
}
|
|
7520
7520
|
} = {}) => {
|
|
7521
|
-
const n =
|
|
7521
|
+
const n = zo({
|
|
7522
7522
|
options: e.monthCardInfo
|
|
7523
|
-
}), a =
|
|
7523
|
+
}), a = Io({
|
|
7524
7524
|
options: e.withdrawMonthCard
|
|
7525
7525
|
});
|
|
7526
7526
|
return {
|
|
@@ -7567,70 +7567,70 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7567
7567
|
verifyDonationCodeApi: d,
|
|
7568
7568
|
announcementApi: a
|
|
7569
7569
|
};
|
|
7570
|
-
},
|
|
7570
|
+
}, Vo = ({ options: e } = {}) => {
|
|
7571
7571
|
const { userLoginApi: n } = ne();
|
|
7572
7572
|
return ae({
|
|
7573
7573
|
mutationKey: ["userLogin"],
|
|
7574
7574
|
mutationFn: async (a) => n(a),
|
|
7575
7575
|
...e
|
|
7576
7576
|
});
|
|
7577
|
-
},
|
|
7577
|
+
}, Jo = ({ options: e } = {}) => {
|
|
7578
7578
|
const { userLogoutApi: n } = ne();
|
|
7579
7579
|
return ae({
|
|
7580
7580
|
mutationKey: ["userLogout"],
|
|
7581
7581
|
mutationFn: async () => n(),
|
|
7582
7582
|
...e
|
|
7583
7583
|
});
|
|
7584
|
-
},
|
|
7584
|
+
}, Zo = ({ options: e } = {}) => {
|
|
7585
7585
|
const { userSignUpApi: n } = ne();
|
|
7586
7586
|
return ae({
|
|
7587
7587
|
mutationKey: ["userSignUp"],
|
|
7588
7588
|
mutationFn: async (a) => n(a),
|
|
7589
7589
|
...e
|
|
7590
7590
|
});
|
|
7591
|
-
},
|
|
7591
|
+
}, Ko = ({ options: e } = {}) => {
|
|
7592
7592
|
const { addOrRemoveFavoriteGameApi: n } = ne();
|
|
7593
7593
|
return ae({
|
|
7594
7594
|
mutationKey: ["toggleFavoriteGame"],
|
|
7595
7595
|
mutationFn: async (a) => n(a),
|
|
7596
7596
|
...e
|
|
7597
7597
|
});
|
|
7598
|
-
},
|
|
7598
|
+
}, qo = ({ options: e } = {}) => {
|
|
7599
7599
|
const { updateUserInfoApi: n } = ne();
|
|
7600
7600
|
return ae({
|
|
7601
7601
|
mutationKey: ["updateUserInfo"],
|
|
7602
7602
|
mutationFn: async (a) => n(a),
|
|
7603
7603
|
...e
|
|
7604
7604
|
});
|
|
7605
|
-
},
|
|
7605
|
+
}, $o = ({ options: e } = {}) => {
|
|
7606
7606
|
const { resetUserPasswordApi: n } = ne();
|
|
7607
7607
|
return ae({
|
|
7608
7608
|
mutationKey: ["resetUserPassword"],
|
|
7609
7609
|
mutationFn: async (a) => n(a),
|
|
7610
7610
|
...e
|
|
7611
7611
|
});
|
|
7612
|
-
},
|
|
7612
|
+
}, Qo = ({ options: e } = {}) => {
|
|
7613
7613
|
const { memberInitSetApi: n } = ne();
|
|
7614
7614
|
return ae({
|
|
7615
7615
|
mutationKey: ["memberInitSet"],
|
|
7616
7616
|
mutationFn: async (a) => n(a),
|
|
7617
7617
|
...e
|
|
7618
7618
|
});
|
|
7619
|
-
},
|
|
7619
|
+
}, jo = ({ options: e } = {}) => {
|
|
7620
7620
|
const { setUserTransactionPasswordApi: n } = ne();
|
|
7621
7621
|
return ae({
|
|
7622
7622
|
mutationKey: ["setUserTransactionPassword"],
|
|
7623
7623
|
mutationFn: async (a) => n(a),
|
|
7624
7624
|
...e
|
|
7625
7625
|
});
|
|
7626
|
-
},
|
|
7626
|
+
}, Yo = ({ options: e } = {}) => {
|
|
7627
7627
|
const { resetUserTransactionPasswordApi: n } = ne();
|
|
7628
7628
|
return ae({
|
|
7629
7629
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7630
7630
|
mutationFn: async (a) => n(a),
|
|
7631
7631
|
...e
|
|
7632
7632
|
});
|
|
7633
|
-
},
|
|
7633
|
+
}, Xo = ({ paramsData: e, options: n } = {}) => {
|
|
7634
7634
|
const { userRebateApi: a } = ne(), { getToken: r } = le();
|
|
7635
7635
|
return r?.(), Q({
|
|
7636
7636
|
queryKey: ["userRebate", e],
|
|
@@ -7638,14 +7638,14 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7638
7638
|
enabled: !1,
|
|
7639
7639
|
...n
|
|
7640
7640
|
});
|
|
7641
|
-
},
|
|
7641
|
+
}, es = ({ options: e } = {}) => {
|
|
7642
7642
|
const { userBindBankApi: n } = ne();
|
|
7643
7643
|
return ae({
|
|
7644
7644
|
mutationKey: ["userBindBank"],
|
|
7645
7645
|
mutationFn: async (a) => n({ formData: a }),
|
|
7646
7646
|
...e
|
|
7647
7647
|
});
|
|
7648
|
-
},
|
|
7648
|
+
}, as = ({ options: e } = {}) => {
|
|
7649
7649
|
const { transferInGameApi: n } = ne();
|
|
7650
7650
|
return ae({
|
|
7651
7651
|
mutationKey: ["transferInGame"],
|
|
@@ -7653,7 +7653,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7653
7653
|
retry: !1,
|
|
7654
7654
|
...e
|
|
7655
7655
|
});
|
|
7656
|
-
},
|
|
7656
|
+
}, Jm = ({ options: e } = {}) => {
|
|
7657
7657
|
const { currency: n } = le(), { pointTransferApi: a } = ne();
|
|
7658
7658
|
return ae({
|
|
7659
7659
|
mutationKey: ["pointTransfer"],
|
|
@@ -7663,7 +7663,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7663
7663
|
}),
|
|
7664
7664
|
...e
|
|
7665
7665
|
});
|
|
7666
|
-
},
|
|
7666
|
+
}, Zm = ({ options: e } = {}) => {
|
|
7667
7667
|
const { currency: n } = le(), { checkUserWagerApi: a } = ne();
|
|
7668
7668
|
return Q({
|
|
7669
7669
|
queryKey: ["checkUserWager"],
|
|
@@ -7676,7 +7676,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7676
7676
|
},
|
|
7677
7677
|
...e
|
|
7678
7678
|
});
|
|
7679
|
-
},
|
|
7679
|
+
}, Km = ({ options: e } = {}) => {
|
|
7680
7680
|
const n = Da(), { abandonPointsApi: a } = ne();
|
|
7681
7681
|
return ae({
|
|
7682
7682
|
mutationKey: ["abandonPoint"],
|
|
@@ -7695,105 +7695,105 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7695
7695
|
mutationFn: async (a) => n(a),
|
|
7696
7696
|
...e
|
|
7697
7697
|
});
|
|
7698
|
-
},
|
|
7698
|
+
}, ts = ({ options: e } = {}) => {
|
|
7699
7699
|
const { lineLogin2Api: n } = ne();
|
|
7700
7700
|
return ae({
|
|
7701
7701
|
mutationKey: ["lineLogin"],
|
|
7702
7702
|
mutationFn: async (a) => n(a),
|
|
7703
7703
|
...e
|
|
7704
7704
|
});
|
|
7705
|
-
},
|
|
7705
|
+
}, qm = ({ options: e } = {}) => {
|
|
7706
7706
|
const { machineLoginApi: n } = ne();
|
|
7707
7707
|
return ae({
|
|
7708
7708
|
mutationKey: ["machineLogin"],
|
|
7709
7709
|
mutationFn: async (a) => n(a),
|
|
7710
7710
|
...e
|
|
7711
7711
|
});
|
|
7712
|
-
},
|
|
7712
|
+
}, is = ({ options: e, formData: n } = {}) => {
|
|
7713
7713
|
const { getMachineLoginCodeApi: a } = ne();
|
|
7714
7714
|
return Q({
|
|
7715
7715
|
queryKey: ["getMachineLoginCode"],
|
|
7716
7716
|
queryFn: async () => a(n),
|
|
7717
7717
|
...e
|
|
7718
7718
|
});
|
|
7719
|
-
},
|
|
7719
|
+
}, $m = ({ options: e } = {}) => {
|
|
7720
7720
|
const { currency: n } = le(), { memberTransferApi: a } = ne();
|
|
7721
7721
|
return ae({
|
|
7722
7722
|
mutationKey: ["memberTransfer"],
|
|
7723
7723
|
mutationFn: async (r) => a({ ...r, currency: n }),
|
|
7724
7724
|
...e
|
|
7725
7725
|
});
|
|
7726
|
-
},
|
|
7726
|
+
}, Qm = ({ options: e } = {}) => {
|
|
7727
7727
|
const { currency: n } = le(), { checkMemberTransferApi: a } = ne();
|
|
7728
7728
|
return ae({
|
|
7729
7729
|
mutationKey: ["checkMemberTransfer"],
|
|
7730
7730
|
mutationFn: async (r) => a({ ...r, currency: n }),
|
|
7731
7731
|
...e
|
|
7732
7732
|
});
|
|
7733
|
-
},
|
|
7733
|
+
}, jm = ({ options: e } = {}) => {
|
|
7734
7734
|
const { mobileLoginApi: n } = ne();
|
|
7735
7735
|
return ae({
|
|
7736
7736
|
mutationKey: ["mobileLogin"],
|
|
7737
7737
|
mutationFn: async (a) => n(a),
|
|
7738
7738
|
...e
|
|
7739
7739
|
});
|
|
7740
|
-
},
|
|
7740
|
+
}, Ym = ({ options: e } = {}) => {
|
|
7741
7741
|
const { mobileLoginApiV2: n } = ne();
|
|
7742
7742
|
return ae({
|
|
7743
7743
|
mutationKey: ["mobileLoginV2"],
|
|
7744
7744
|
mutationFn: async (a) => n(a),
|
|
7745
7745
|
...e
|
|
7746
7746
|
});
|
|
7747
|
-
},
|
|
7747
|
+
}, Xm = ({ options: e } = {}) => {
|
|
7748
7748
|
const { mobileRegisterApi: n } = ne();
|
|
7749
7749
|
return ae({
|
|
7750
7750
|
mutationKey: ["mobileRegister"],
|
|
7751
7751
|
mutationFn: async (a) => n(a),
|
|
7752
7752
|
...e
|
|
7753
7753
|
});
|
|
7754
|
-
},
|
|
7754
|
+
}, ns = ({ options: e } = {}) => {
|
|
7755
7755
|
const { bindAccountApi: n } = ne();
|
|
7756
7756
|
return ae({
|
|
7757
7757
|
mutationKey: ["bindAccount"],
|
|
7758
7758
|
mutationFn: async (a) => n(a),
|
|
7759
7759
|
...e
|
|
7760
7760
|
});
|
|
7761
|
-
},
|
|
7761
|
+
}, eu = ({ options: e } = {}) => {
|
|
7762
7762
|
const { sendMobileVerifyCodeApi: n } = ne();
|
|
7763
7763
|
return ae({
|
|
7764
7764
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7765
7765
|
mutationFn: async (a) => n(a),
|
|
7766
7766
|
...e
|
|
7767
7767
|
});
|
|
7768
|
-
},
|
|
7768
|
+
}, au = ({ options: e, paramsData: n } = {}) => {
|
|
7769
7769
|
const { verifyPhoneBarApi: a } = La();
|
|
7770
7770
|
return Q({
|
|
7771
7771
|
queryKey: ["verifyPhoneBar", n],
|
|
7772
7772
|
queryFn: async () => a(n),
|
|
7773
7773
|
...e
|
|
7774
7774
|
});
|
|
7775
|
-
},
|
|
7775
|
+
}, tu = ({ options: e, paramsData: n } = {}) => {
|
|
7776
7776
|
const { verifyDonationCodeApi: a } = La();
|
|
7777
7777
|
return Q({
|
|
7778
7778
|
queryKey: ["verifyDonationCode", n],
|
|
7779
7779
|
queryFn: async () => a(n),
|
|
7780
7780
|
...e
|
|
7781
7781
|
});
|
|
7782
|
-
},
|
|
7782
|
+
}, iu = ({ options: e } = {}) => {
|
|
7783
7783
|
const { createMachineApi: n } = ne();
|
|
7784
7784
|
return ae({
|
|
7785
7785
|
mutationKey: ["createMachine"],
|
|
7786
7786
|
mutationFn: async (a) => n({ formData: a }),
|
|
7787
7787
|
...e
|
|
7788
7788
|
});
|
|
7789
|
-
},
|
|
7789
|
+
}, nu = ({ options: e } = {}) => {
|
|
7790
7790
|
const { verifyResetActionApi: n } = ne();
|
|
7791
7791
|
return ae({
|
|
7792
7792
|
mutationKey: ["verifyResetAction"],
|
|
7793
7793
|
mutationFn: async (a) => n(a),
|
|
7794
7794
|
...e
|
|
7795
7795
|
});
|
|
7796
|
-
},
|
|
7796
|
+
}, ru = ({ options: e, bonusData: n } = {}) => {
|
|
7797
7797
|
const { getJackpotApi: a } = ne();
|
|
7798
7798
|
return Q({
|
|
7799
7799
|
queryKey: ["getJackpotData"],
|
|
@@ -7812,14 +7812,14 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7812
7812
|
},
|
|
7813
7813
|
...e
|
|
7814
7814
|
});
|
|
7815
|
-
},
|
|
7815
|
+
}, lu = ({ options: e } = {}) => {
|
|
7816
7816
|
const { getBetRankingApi: n } = ne();
|
|
7817
7817
|
return Q({
|
|
7818
7818
|
queryKey: ["getBetRankingData"],
|
|
7819
7819
|
queryFn: async () => n(),
|
|
7820
7820
|
...e
|
|
7821
7821
|
});
|
|
7822
|
-
},
|
|
7822
|
+
}, ou = ({ options: e } = {}) => {
|
|
7823
7823
|
const { getUserAvatarListApi: n } = ne();
|
|
7824
7824
|
return Q({
|
|
7825
7825
|
queryKey: ["getAvatarList"],
|
|
@@ -7829,14 +7829,14 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7829
7829
|
// },
|
|
7830
7830
|
...e
|
|
7831
7831
|
});
|
|
7832
|
-
},
|
|
7832
|
+
}, su = ({ options: e } = {}) => {
|
|
7833
7833
|
const { updateUserAvatarApi: n } = ne();
|
|
7834
7834
|
return ae({
|
|
7835
7835
|
mutationKey: ["updateAvatar"],
|
|
7836
7836
|
mutationFn: async (a) => n(a),
|
|
7837
7837
|
...e
|
|
7838
7838
|
});
|
|
7839
|
-
},
|
|
7839
|
+
}, mu = ({
|
|
7840
7840
|
options: e = {
|
|
7841
7841
|
login: {},
|
|
7842
7842
|
logout: {},
|
|
@@ -7850,17 +7850,17 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7850
7850
|
userBindCard: {}
|
|
7851
7851
|
}
|
|
7852
7852
|
} = {}) => {
|
|
7853
|
-
const n =
|
|
7853
|
+
const n = Vo({ options: e.login }), a = Jo({ options: e.logout }), r = Zo({ options: e.register }), u = qo({ options: e.updateUserInfo }), g = Ko({
|
|
7854
7854
|
options: e.toggleFavoriteGame
|
|
7855
|
-
}), U =
|
|
7855
|
+
}), U = $o({
|
|
7856
7856
|
options: e.resetUserPassword
|
|
7857
|
-
}), d =
|
|
7857
|
+
}), d = Qo({
|
|
7858
7858
|
options: e.memberInitSet
|
|
7859
|
-
}), l =
|
|
7859
|
+
}), l = jo({
|
|
7860
7860
|
options: e.setUserTransactionPassword
|
|
7861
|
-
}), t =
|
|
7861
|
+
}), t = Yo({
|
|
7862
7862
|
options: e.resetUserTransactionPassword
|
|
7863
|
-
}), i =
|
|
7863
|
+
}), i = Xo({ options: e.userRebate }), o = es({ options: e.userBindCard });
|
|
7864
7864
|
return {
|
|
7865
7865
|
login: n,
|
|
7866
7866
|
logout: a,
|
|
@@ -7891,7 +7891,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7891
7891
|
UPDATE_EVENT_WALLET: "update_event_wallet",
|
|
7892
7892
|
MONTHLY_CARD_ISSUE_POINT: "monthly_card_issue_point",
|
|
7893
7893
|
EVENT_CLAIMABLE: "event_claimable"
|
|
7894
|
-
},
|
|
7894
|
+
}, rs = 3e4, ls = ({
|
|
7895
7895
|
maintainList: e,
|
|
7896
7896
|
isInGameBox: n,
|
|
7897
7897
|
currentGamePlatform: a
|
|
@@ -7905,7 +7905,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7905
7905
|
show: r,
|
|
7906
7906
|
reason: r ? `在 gamebox 且當前廠商「${a}」在維護清單 → 顯示` : `在 gamebox 但當前廠商「${a ?? "(無)"}」不在維護清單 → 靜默`
|
|
7907
7907
|
};
|
|
7908
|
-
},
|
|
7908
|
+
}, uu = ({
|
|
7909
7909
|
socketUrl: e,
|
|
7910
7910
|
socketHandlers: n = {},
|
|
7911
7911
|
options: a = {},
|
|
@@ -7933,7 +7933,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7933
7933
|
},
|
|
7934
7934
|
retry: !1
|
|
7935
7935
|
}
|
|
7936
|
-
}), { mutateAsync: D } =
|
|
7936
|
+
}), { mutateAsync: D } = ts({
|
|
7937
7937
|
options: {
|
|
7938
7938
|
onSuccess: (L) => {
|
|
7939
7939
|
y.current.onLineLogin?.(L);
|
|
@@ -7961,7 +7961,6 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7961
7961
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
7962
7962
|
} = Bo(e, {
|
|
7963
7963
|
queryParams: { key: "wsky" },
|
|
7964
|
-
onOpen: () => console.log("連線成功"),
|
|
7965
7964
|
shouldReconnect: () => c.current === !1,
|
|
7966
7965
|
reconnectAttempts: 9999,
|
|
7967
7966
|
reconnectInterval: 1e3,
|
|
@@ -7976,7 +7975,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
7976
7975
|
ue(() => {
|
|
7977
7976
|
const L = setInterval(
|
|
7978
7977
|
() => A("ping"),
|
|
7979
|
-
|
|
7978
|
+
rs
|
|
7980
7979
|
);
|
|
7981
7980
|
return () => clearInterval(L);
|
|
7982
7981
|
}, [A]);
|
|
@@ -8109,7 +8108,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8109
8108
|
}), W?.(J));
|
|
8110
8109
|
break;
|
|
8111
8110
|
case Ae.GAME_MAINTAIN: {
|
|
8112
|
-
const fe = J.data, { show: ge } =
|
|
8111
|
+
const fe = J.data, { show: ge } = ls({
|
|
8113
8112
|
maintainList: fe,
|
|
8114
8113
|
// 直接用當前路由判斷是否在 gamebox(不依賴 transferInGamingConfig,
|
|
8115
8114
|
// 因為不是每隻遊戲都會帶入該設定)
|
|
@@ -8248,7 +8247,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8248
8247
|
settleEventApi: g,
|
|
8249
8248
|
memberEventSettleApi: U
|
|
8250
8249
|
};
|
|
8251
|
-
},
|
|
8250
|
+
}, os = ({ paramsData: e, options: n } = {}) => {
|
|
8252
8251
|
const { store: a, lng: r, data2URL: u } = le(), { eventListApi: g } = Ja(), U = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Ze(r);
|
|
8253
8252
|
return Q({
|
|
8254
8253
|
queryKey: ["eventList", e],
|
|
@@ -8386,21 +8385,21 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8386
8385
|
},
|
|
8387
8386
|
...n
|
|
8388
8387
|
});
|
|
8389
|
-
},
|
|
8388
|
+
}, pu = ({ options: e } = {}) => {
|
|
8390
8389
|
const { redeemEventRewardApi: n } = Ja();
|
|
8391
8390
|
return ae({
|
|
8392
8391
|
mutationKey: ["redeemEventReward"],
|
|
8393
8392
|
mutationFn: async (a) => n(a),
|
|
8394
8393
|
...e
|
|
8395
8394
|
});
|
|
8396
|
-
},
|
|
8395
|
+
}, ss = ({ options: e, formData: n } = {}) => {
|
|
8397
8396
|
const { checkCurrentEventProgessApi: a } = Ja();
|
|
8398
8397
|
return Q({
|
|
8399
8398
|
queryKey: ["checkEventProgress"],
|
|
8400
8399
|
queryFn: async () => a(n),
|
|
8401
8400
|
...e
|
|
8402
8401
|
});
|
|
8403
|
-
},
|
|
8402
|
+
}, ms = ({ options: e, formData: n } = {}) => {
|
|
8404
8403
|
const { checkEventStatusApi: a } = Ja();
|
|
8405
8404
|
return Q({
|
|
8406
8405
|
queryKey: ["checkEventStatus"],
|
|
@@ -8408,30 +8407,30 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8408
8407
|
select: (r) => r.data.event_status || r.data,
|
|
8409
8408
|
...e
|
|
8410
8409
|
});
|
|
8411
|
-
},
|
|
8410
|
+
}, gu = ({ options: e } = {}) => {
|
|
8412
8411
|
const { settleEventApi: n } = Ja();
|
|
8413
8412
|
return ae({
|
|
8414
8413
|
mutationKey: ["settleEvent"],
|
|
8415
8414
|
mutationFn: async (a) => n(a),
|
|
8416
8415
|
...e
|
|
8417
8416
|
});
|
|
8418
|
-
},
|
|
8417
|
+
}, du = ({ options: e } = {}) => {
|
|
8419
8418
|
const { memberEventSettleApi: n } = Ja();
|
|
8420
8419
|
return ae({
|
|
8421
8420
|
mutationKey: ["memberEventSettle"],
|
|
8422
8421
|
mutationFn: async (a) => n(a),
|
|
8423
8422
|
...e
|
|
8424
8423
|
});
|
|
8425
|
-
},
|
|
8424
|
+
}, cu = ({
|
|
8426
8425
|
options: e = {
|
|
8427
8426
|
eventList: {},
|
|
8428
8427
|
checkEventProgress: {},
|
|
8429
8428
|
checkEventStatus: {}
|
|
8430
8429
|
}
|
|
8431
8430
|
} = {}) => {
|
|
8432
|
-
const n =
|
|
8431
|
+
const n = os({ options: e.eventList }), a = ss({
|
|
8433
8432
|
options: e.checkEventProgress
|
|
8434
|
-
}), r =
|
|
8433
|
+
}), r = ms({
|
|
8435
8434
|
options: e.checkEventStatus
|
|
8436
8435
|
});
|
|
8437
8436
|
return {
|
|
@@ -8472,7 +8471,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8472
8471
|
settleEventWalletApi: u,
|
|
8473
8472
|
abandonEventWalletApi: g
|
|
8474
8473
|
};
|
|
8475
|
-
},
|
|
8474
|
+
}, fu = ({ gamePlatform: e, params: n } = {}) => {
|
|
8476
8475
|
const { eventWalletListApi: a } = it();
|
|
8477
8476
|
return Q({
|
|
8478
8477
|
queryKey: ["getEventWalletList", e, n],
|
|
@@ -8513,7 +8512,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8513
8512
|
};
|
|
8514
8513
|
}
|
|
8515
8514
|
});
|
|
8516
|
-
},
|
|
8515
|
+
}, _u = () => {
|
|
8517
8516
|
const e = Da(), { enabledEventWalletApi: n } = it();
|
|
8518
8517
|
return ae({
|
|
8519
8518
|
mutationKey: ["enabledEventWallet"],
|
|
@@ -8522,7 +8521,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8522
8521
|
e.invalidateQueries({ queryKey: ["evaluateEventWallet"] });
|
|
8523
8522
|
}
|
|
8524
8523
|
});
|
|
8525
|
-
},
|
|
8524
|
+
}, yu = ({ gamePlatform: e = "", options: n = {} } = {}) => {
|
|
8526
8525
|
const { evaluateEventWalletApi: a } = it();
|
|
8527
8526
|
return Q({
|
|
8528
8527
|
queryKey: ["evaluateEventWallet", e],
|
|
@@ -8538,7 +8537,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8538
8537
|
},
|
|
8539
8538
|
...n
|
|
8540
8539
|
});
|
|
8541
|
-
},
|
|
8540
|
+
}, Uu = () => {
|
|
8542
8541
|
const e = Da(), { settleEventWalletApi: n } = it();
|
|
8543
8542
|
return ae({
|
|
8544
8543
|
mutationKey: ["settleEventWallet"],
|
|
@@ -8547,7 +8546,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8547
8546
|
e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
|
|
8548
8547
|
}
|
|
8549
8548
|
});
|
|
8550
|
-
},
|
|
8549
|
+
}, bu = () => {
|
|
8551
8550
|
const e = Da(), { abandonEventWalletApi: n } = it();
|
|
8552
8551
|
return ae({
|
|
8553
8552
|
mutationKey: ["abandonEventWallet"],
|
|
@@ -8556,7 +8555,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8556
8555
|
e.invalidateQueries({ queryKey: ["getEventWalletList"] }), e.invalidateQueries({ queryKey: ["evaluateEventWallet"] }), e.invalidateQueries({ queryKey: ["playGame"] });
|
|
8557
8556
|
}
|
|
8558
8557
|
});
|
|
8559
|
-
},
|
|
8558
|
+
}, Cu = ({ options: e } = {}) => {
|
|
8560
8559
|
const { lng: n } = le(), { announcementApi: a } = La(), r = Ze(n);
|
|
8561
8560
|
return Q({
|
|
8562
8561
|
queryKey: ["getAnnouncement"],
|
|
@@ -8573,7 +8572,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8573
8572
|
},
|
|
8574
8573
|
...e
|
|
8575
8574
|
});
|
|
8576
|
-
},
|
|
8575
|
+
}, vu = ({ skipPreload: e = !1 } = {}) => {
|
|
8577
8576
|
const { lng: n, data2URL: a } = le(), { commonCarouselApi: r } = La(), u = Ze(n);
|
|
8578
8577
|
return Q({
|
|
8579
8578
|
queryKey: ["getCarouselList", e],
|
|
@@ -8601,7 +8600,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8601
8600
|
};
|
|
8602
8601
|
})
|
|
8603
8602
|
});
|
|
8604
|
-
},
|
|
8603
|
+
}, hu = () => {
|
|
8605
8604
|
const { lng: e, getToken: n } = le(), a = n?.(), { commonMarqueeApi: r } = La(), u = Ze(e);
|
|
8606
8605
|
return Q({
|
|
8607
8606
|
queryKey: ["getMarqueeList", a],
|
|
@@ -8617,7 +8616,7 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8617
8616
|
};
|
|
8618
8617
|
}
|
|
8619
8618
|
});
|
|
8620
|
-
},
|
|
8619
|
+
}, Tu = ({ options: e } = {}) => {
|
|
8621
8620
|
const { rankingGameApi: n } = ne();
|
|
8622
8621
|
return Q({
|
|
8623
8622
|
queryKey: ["rankingGame"],
|
|
@@ -8659,10 +8658,10 @@ const Bo = /* @__PURE__ */ bi(Oo), Ho = ({
|
|
|
8659
8658
|
...e
|
|
8660
8659
|
});
|
|
8661
8660
|
};
|
|
8662
|
-
var
|
|
8663
|
-
if (n && typeof n == "object" || typeof n == "function") for (let u of
|
|
8661
|
+
var us = Object.create, gr = Object.defineProperty, ps = Object.getOwnPropertyDescriptor, gs = Object.getOwnPropertyNames, ds = Object.getPrototypeOf, cs = Object.prototype.hasOwnProperty, fs = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), _s = (e, n, a, r) => {
|
|
8662
|
+
if (n && typeof n == "object" || typeof n == "function") for (let u of gs(n)) !cs.call(e, u) && u !== a && gr(e, u, { get: () => n[u], enumerable: !(r = ps(n, u)) || r.enumerable });
|
|
8664
8663
|
return e;
|
|
8665
|
-
},
|
|
8664
|
+
}, ys = (e, n, a) => (a = e != null ? us(ds(e)) : {}, _s(!e || !e.__esModule ? gr(a, "default", { value: e, enumerable: !0 }) : a, e)), Us = fs((e, n) => {
|
|
8666
8665
|
(function(a, r) {
|
|
8667
8666
|
typeof e == "object" && typeof n < "u" ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (a = typeof globalThis < "u" ? globalThis : a || self, r(a.fastUniqueNumbers = {}));
|
|
8668
8667
|
})(e, function(a) {
|
|
@@ -8691,12 +8690,12 @@ var ms = Object.create, gr = Object.defineProperty, us = Object.getOwnPropertyDe
|
|
|
8691
8690
|
a.addUniqueNumber = s, a.generateUniqueNumber = o;
|
|
8692
8691
|
});
|
|
8693
8692
|
});
|
|
8694
|
-
|
|
8693
|
+
ys(Us());
|
|
8695
8694
|
var ga = (typeof window > "u" ? "undefined" : typeof window) == "object", ta = { setTimeout: ga ? setTimeout.bind(window) : setTimeout, clearTimeout: ga ? clearTimeout.bind(window) : clearTimeout, setInterval: ga ? setInterval.bind(window) : setInterval, clearInterval: ga ? clearInterval.bind(window) : clearInterval };
|
|
8696
|
-
function
|
|
8695
|
+
function bs(e) {
|
|
8697
8696
|
ta.setTimeout = e.setTimeout, ta.clearTimeout = e.clearTimeout, ta.setInterval = e.setInterval, ta.clearInterval = e.clearInterval;
|
|
8698
8697
|
}
|
|
8699
|
-
var Ba = {},
|
|
8698
|
+
var Ba = {}, Cs = class {
|
|
8700
8699
|
name;
|
|
8701
8700
|
closed = !1;
|
|
8702
8701
|
mc = new MessageChannel();
|
|
@@ -8744,14 +8743,14 @@ var Ba = {}, bs = class {
|
|
|
8744
8743
|
dispatchEvent(e) {
|
|
8745
8744
|
return this.mc.port1.dispatchEvent(e);
|
|
8746
8745
|
}
|
|
8747
|
-
},
|
|
8748
|
-
function
|
|
8746
|
+
}, vs = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : Cs;
|
|
8747
|
+
function hs(e = 0) {
|
|
8749
8748
|
return new Promise((n) => ta.setTimeout(n, e));
|
|
8750
8749
|
}
|
|
8751
8750
|
function dr() {
|
|
8752
8751
|
return Math.random().toString(36).substring(2);
|
|
8753
8752
|
}
|
|
8754
|
-
var
|
|
8753
|
+
var Ts = class {
|
|
8755
8754
|
options;
|
|
8756
8755
|
channel;
|
|
8757
8756
|
token = dr();
|
|
@@ -8775,7 +8774,7 @@ var hs = class {
|
|
|
8775
8774
|
};
|
|
8776
8775
|
this.channel.addEventListener("message", n);
|
|
8777
8776
|
try {
|
|
8778
|
-
return this.sendAction(0), await
|
|
8777
|
+
return this.sendAction(0), await hs(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
|
|
8779
8778
|
} catch {
|
|
8780
8779
|
return !1;
|
|
8781
8780
|
}
|
|
@@ -8831,7 +8830,7 @@ var hs = class {
|
|
|
8831
8830
|
}
|
|
8832
8831
|
}
|
|
8833
8832
|
}
|
|
8834
|
-
},
|
|
8833
|
+
}, ks = class {
|
|
8835
8834
|
channel;
|
|
8836
8835
|
options;
|
|
8837
8836
|
elector;
|
|
@@ -8841,9 +8840,9 @@ var hs = class {
|
|
|
8841
8840
|
isLastActive = !1;
|
|
8842
8841
|
constructor(e) {
|
|
8843
8842
|
let { channelName: n } = e;
|
|
8844
|
-
if (this.options = e, this.channel = new
|
|
8843
|
+
if (this.options = e, this.channel = new vs(n), this.registry.set(this.token, 1), e.leaderElection) {
|
|
8845
8844
|
let a = { fallbackInterval: 2e3, responseTime: 100 };
|
|
8846
|
-
this.elector = new
|
|
8845
|
+
this.elector = new Ts(this.channel, a), this.elector.waitForLeadership();
|
|
8847
8846
|
}
|
|
8848
8847
|
this.channel.addEventListener("message", (a) => {
|
|
8849
8848
|
let { action: r, token: u, data: g } = a.data;
|
|
@@ -8933,8 +8932,8 @@ var hs = class {
|
|
|
8933
8932
|
close() {
|
|
8934
8933
|
this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
|
|
8935
8934
|
}
|
|
8936
|
-
},
|
|
8937
|
-
function
|
|
8935
|
+
}, xs = ga ? document : null, Ss = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
8936
|
+
function Ds(e, n) {
|
|
8938
8937
|
let a;
|
|
8939
8938
|
function r(...u) {
|
|
8940
8939
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
@@ -8953,7 +8952,7 @@ function ui(e, n) {
|
|
|
8953
8952
|
};
|
|
8954
8953
|
}
|
|
8955
8954
|
var Se = () => Date.now(), Ha = 2147483647;
|
|
8956
|
-
function
|
|
8955
|
+
function Es({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: a = 0, element: r = xs, events: u = Ss, timers: g = void 0, immediateEvents: U = [], onPresenceChange: d = () => {
|
|
8957
8956
|
}, onPrompt: l = () => {
|
|
8958
8957
|
}, onIdle: t = () => {
|
|
8959
8958
|
}, onActive: i = () => {
|
|
@@ -9006,7 +9005,7 @@ function Ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9006
9005
|
}, [s]);
|
|
9007
9006
|
let he = za(() => {
|
|
9008
9007
|
let K = (Me, ra) => Ue.current(Me, ra);
|
|
9009
|
-
return p > 0 ?
|
|
9008
|
+
return p > 0 ? Ds(K, p) : m > 0 ? ui(K, m) : K;
|
|
9010
9009
|
}, [m, p]), fe = ie();
|
|
9011
9010
|
ue(() => {
|
|
9012
9011
|
b && v && (fe.current = ui(() => {
|
|
@@ -9073,7 +9072,7 @@ function Ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9073
9072
|
}, [T, F]);
|
|
9074
9073
|
ue(() => {
|
|
9075
9074
|
if (p > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
9076
|
-
g &&
|
|
9075
|
+
g && bs(g);
|
|
9077
9076
|
let K = () => {
|
|
9078
9077
|
N.current && N.current.close(), he.cancel && he.cancel(), ge(), Be(!0);
|
|
9079
9078
|
};
|
|
@@ -9081,7 +9080,7 @@ function Ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9081
9080
|
ga && window.removeEventListener("beforeunload", K), N.current && N.current.close(), he.cancel && he.cancel(), ge(), Be(!0);
|
|
9082
9081
|
};
|
|
9083
9082
|
}, []), ue(() => {
|
|
9084
|
-
N.current && N.current.close(), b ? N.current = new
|
|
9083
|
+
N.current && N.current.close(), b ? N.current = new ks({ channelName: C, leaderElection: h, onPrompt: () => {
|
|
9085
9084
|
ze();
|
|
9086
9085
|
}, onIdle: () => {
|
|
9087
9086
|
Ee();
|
|
@@ -9116,15 +9115,15 @@ function Ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
9116
9115
|
} };
|
|
9117
9116
|
return Ge;
|
|
9118
9117
|
}
|
|
9119
|
-
var
|
|
9120
|
-
|
|
9121
|
-
const
|
|
9118
|
+
var Ns = Yt(null);
|
|
9119
|
+
Ns.Consumer;
|
|
9120
|
+
const ku = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Es({
|
|
9122
9121
|
onIdle: e,
|
|
9123
9122
|
onActive: n,
|
|
9124
9123
|
onAction: a,
|
|
9125
9124
|
timeout: r,
|
|
9126
9125
|
throttle: 500
|
|
9127
|
-
}),
|
|
9126
|
+
}), Ls = ({ options: e } = {}) => {
|
|
9128
9127
|
const { commonInboxApi: n } = La(), { getToken: a, lng: r } = le(), u = a?.(), g = Ze(r);
|
|
9129
9128
|
return Q({
|
|
9130
9129
|
queryKey: ["inboxList"],
|
|
@@ -9145,20 +9144,20 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9145
9144
|
enabled: !!u,
|
|
9146
9145
|
...e
|
|
9147
9146
|
});
|
|
9148
|
-
},
|
|
9147
|
+
}, Gs = ({ options: e } = {}) => {
|
|
9149
9148
|
const { commonReadInboxApi: n } = La();
|
|
9150
9149
|
return ae({
|
|
9151
9150
|
mutationKey: ["readInbox"],
|
|
9152
9151
|
mutationFn: async (a) => await n(a),
|
|
9153
9152
|
...e
|
|
9154
9153
|
});
|
|
9155
|
-
},
|
|
9154
|
+
}, xu = ({
|
|
9156
9155
|
options: e = {
|
|
9157
9156
|
inboxList: {},
|
|
9158
9157
|
readInbox: {}
|
|
9159
9158
|
}
|
|
9160
9159
|
} = {}) => {
|
|
9161
|
-
const n =
|
|
9160
|
+
const n = Ls({ options: e.inboxList }), a = Gs({ options: e.readInbox });
|
|
9162
9161
|
return {
|
|
9163
9162
|
inboxListQuery: n,
|
|
9164
9163
|
readInboxMutation: a
|
|
@@ -9173,7 +9172,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9173
9172
|
[e]
|
|
9174
9173
|
)
|
|
9175
9174
|
};
|
|
9176
|
-
},
|
|
9175
|
+
}, Ms = ({
|
|
9177
9176
|
typeConfig: e = {
|
|
9178
9177
|
all: {},
|
|
9179
9178
|
crypto: {},
|
|
@@ -9219,7 +9218,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9219
9218
|
value: "other",
|
|
9220
9219
|
...e.other
|
|
9221
9220
|
}
|
|
9222
|
-
],
|
|
9221
|
+
], Su = ({ options: e, formData: n } = {}) => {
|
|
9223
9222
|
const { lng: a } = le(), { newsListApi: r } = cr(), u = Ze(a);
|
|
9224
9223
|
return Q({
|
|
9225
9224
|
queryKey: ["newsList"],
|
|
@@ -9240,12 +9239,12 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9240
9239
|
return {
|
|
9241
9240
|
...g.data,
|
|
9242
9241
|
data: l,
|
|
9243
|
-
blogType:
|
|
9242
|
+
blogType: Ms({ typeConfig: e?.typeConfig })
|
|
9244
9243
|
};
|
|
9245
9244
|
},
|
|
9246
9245
|
...e
|
|
9247
9246
|
});
|
|
9248
|
-
},
|
|
9247
|
+
}, Du = ({ options: e, formData: n } = {}) => {
|
|
9249
9248
|
const { lng: a } = le(), { newsListApi: r } = cr(), u = Ze(a);
|
|
9250
9249
|
return Q({
|
|
9251
9250
|
queryKey: ["newsList"],
|
|
@@ -9469,14 +9468,14 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9469
9468
|
snCashRecordApi: f,
|
|
9470
9469
|
otherTransactionApi: t
|
|
9471
9470
|
};
|
|
9472
|
-
},
|
|
9471
|
+
}, Rs = ({ options: e } = {}) => {
|
|
9473
9472
|
const { depositApiV1: n } = Fe();
|
|
9474
9473
|
return Q({
|
|
9475
9474
|
queryKey: ["depositV1"],
|
|
9476
9475
|
queryFn: n,
|
|
9477
9476
|
...e
|
|
9478
9477
|
});
|
|
9479
|
-
},
|
|
9478
|
+
}, Ps = ({ paramsData: e, options: n } = {}) => {
|
|
9480
9479
|
const { depositApiV2: a } = Fe();
|
|
9481
9480
|
return Q({
|
|
9482
9481
|
queryKey: ["depositV2", e],
|
|
@@ -9501,119 +9500,119 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9501
9500
|
},
|
|
9502
9501
|
...n
|
|
9503
9502
|
});
|
|
9504
|
-
},
|
|
9503
|
+
}, ws = ({ options: e } = {}) => {
|
|
9505
9504
|
const { depositApi: n } = Fe();
|
|
9506
9505
|
return ae({
|
|
9507
9506
|
mutationKey: ["depositAction"],
|
|
9508
9507
|
mutationFn: async (a) => n(a),
|
|
9509
9508
|
...e
|
|
9510
9509
|
});
|
|
9511
|
-
},
|
|
9510
|
+
}, Fs = ({ options: e } = {}) => {
|
|
9512
9511
|
const { withdrawApi: n } = Fe();
|
|
9513
9512
|
return ae({
|
|
9514
9513
|
mutationKey: ["withdrawAction"],
|
|
9515
9514
|
mutationFn: async (a) => n(a),
|
|
9516
9515
|
...e
|
|
9517
9516
|
});
|
|
9518
|
-
},
|
|
9517
|
+
}, As = ({ paramsData: e, options: n } = {}) => {
|
|
9519
9518
|
const { depositTransactionApi: a } = Fe();
|
|
9520
9519
|
return Q({
|
|
9521
9520
|
queryKey: ["depositTransaction", e],
|
|
9522
9521
|
queryFn: () => a({ paramsData: e }),
|
|
9523
9522
|
...n
|
|
9524
9523
|
});
|
|
9525
|
-
},
|
|
9524
|
+
}, Os = ({ paramsData: e, options: n } = {}) => {
|
|
9526
9525
|
const { eventTransactionApi: a } = Fe();
|
|
9527
9526
|
return Q({
|
|
9528
9527
|
queryKey: ["eventTransaction", e],
|
|
9529
9528
|
queryFn: () => a({ paramsData: e }),
|
|
9530
9529
|
...n
|
|
9531
9530
|
});
|
|
9532
|
-
},
|
|
9531
|
+
}, Bs = ({ options: e } = {}) => {
|
|
9533
9532
|
const { bankDepositApi: n } = Fe();
|
|
9534
9533
|
return ae({
|
|
9535
9534
|
mutationKey: ["bankDeposit"],
|
|
9536
9535
|
mutationFn: async (a) => n(a),
|
|
9537
9536
|
...e
|
|
9538
9537
|
});
|
|
9539
|
-
},
|
|
9538
|
+
}, Hs = ({ paramsData: e, options: n } = {}) => {
|
|
9540
9539
|
const { withdrawTransactionApi: a } = Fe();
|
|
9541
9540
|
return Q({
|
|
9542
9541
|
queryKey: ["withdrawTransaction", e],
|
|
9543
9542
|
queryFn: () => a({ paramsData: e }),
|
|
9544
9543
|
...n
|
|
9545
9544
|
});
|
|
9546
|
-
},
|
|
9545
|
+
}, Eu = ({ options: e } = {}) => {
|
|
9547
9546
|
const { redeemCodeDepositApi: n } = Fe();
|
|
9548
9547
|
return ae({
|
|
9549
9548
|
mutationKey: ["redeemCodeDeposit"],
|
|
9550
9549
|
mutationFn: async (a) => n(a),
|
|
9551
9550
|
...e
|
|
9552
9551
|
});
|
|
9553
|
-
},
|
|
9552
|
+
}, Nu = ({ options: e } = {}) => {
|
|
9554
9553
|
const { invoiceApi: n } = Fe();
|
|
9555
9554
|
return ae({
|
|
9556
9555
|
mutationKey: ["invoiceAction"],
|
|
9557
9556
|
mutationFn: async (a) => n(a),
|
|
9558
9557
|
...e
|
|
9559
9558
|
});
|
|
9560
|
-
},
|
|
9559
|
+
}, Lu = ({ options: e } = {}) => {
|
|
9561
9560
|
const { updateInvoiceApi: n } = Fe();
|
|
9562
9561
|
return ae({
|
|
9563
9562
|
mutationKey: ["updateInvoiceAction"],
|
|
9564
9563
|
mutationFn: async (a) => n(a),
|
|
9565
9564
|
...e
|
|
9566
9565
|
});
|
|
9567
|
-
},
|
|
9566
|
+
}, Gu = ({ options: e, paramsData: n } = {}) => {
|
|
9568
9567
|
const { transactionRecordApi: a } = Fe();
|
|
9569
9568
|
return Q({
|
|
9570
9569
|
queryKey: ["transactionRecord", "deposit"],
|
|
9571
9570
|
queryFn: () => a(n, "deposit"),
|
|
9572
9571
|
...e
|
|
9573
9572
|
});
|
|
9574
|
-
},
|
|
9573
|
+
}, Mu = ({ options: e, paramsData: n } = {}) => {
|
|
9575
9574
|
const { transactionRecordApi: a } = Fe();
|
|
9576
9575
|
return Q({
|
|
9577
9576
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9578
9577
|
queryFn: () => a(n, "withdraw"),
|
|
9579
9578
|
...e
|
|
9580
9579
|
});
|
|
9581
|
-
},
|
|
9580
|
+
}, Ru = ({ options: e, paramsData: n } = {}) => {
|
|
9582
9581
|
const { transactionRecordApi: a } = Fe();
|
|
9583
9582
|
return Q({
|
|
9584
9583
|
queryKey: ["transactionRecord", "event"],
|
|
9585
9584
|
queryFn: () => a(n, "event"),
|
|
9586
9585
|
...e
|
|
9587
9586
|
});
|
|
9588
|
-
},
|
|
9587
|
+
}, Pu = ({ options: e, paramsData: n } = {}) => {
|
|
9589
9588
|
const { transactionRecordApi: a } = Fe();
|
|
9590
9589
|
return Q({
|
|
9591
9590
|
queryKey: ["transactionRecord", "rebate"],
|
|
9592
9591
|
queryFn: () => a(n, "rebate"),
|
|
9593
9592
|
...e
|
|
9594
9593
|
});
|
|
9595
|
-
},
|
|
9594
|
+
}, wu = ({ options: e, paramsData: n } = {}) => {
|
|
9596
9595
|
const { treasureRecordApi: a } = Fe();
|
|
9597
9596
|
return Q({
|
|
9598
9597
|
queryKey: ["treasureRecord", n],
|
|
9599
9598
|
queryFn: () => a(n),
|
|
9600
9599
|
...e
|
|
9601
9600
|
});
|
|
9602
|
-
},
|
|
9601
|
+
}, Fu = ({ options: e, paramsData: n } = {}) => {
|
|
9603
9602
|
const { snCashRecordApi: a } = Fe();
|
|
9604
9603
|
return Q({
|
|
9605
9604
|
queryKey: ["snCashRecord", n],
|
|
9606
9605
|
queryFn: () => a(n),
|
|
9607
9606
|
...e
|
|
9608
9607
|
});
|
|
9609
|
-
},
|
|
9608
|
+
}, Au = ({ options: e, paramsData: n } = {}) => {
|
|
9610
9609
|
const { otherTransactionApi: a } = Fe();
|
|
9611
9610
|
return Q({
|
|
9612
9611
|
queryKey: ["otherTransaction", n],
|
|
9613
9612
|
queryFn: () => a({ paramsData: n }),
|
|
9614
9613
|
...e
|
|
9615
9614
|
});
|
|
9616
|
-
},
|
|
9615
|
+
}, Ou = ({
|
|
9617
9616
|
depositV1: e = {},
|
|
9618
9617
|
depositV2: n = {},
|
|
9619
9618
|
depositTransaction: a = {},
|
|
@@ -9623,7 +9622,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9623
9622
|
eventTransaction: U = {},
|
|
9624
9623
|
withdrawTransaction: d = {}
|
|
9625
9624
|
} = {}) => {
|
|
9626
|
-
const l =
|
|
9625
|
+
const l = Rs(e), t = Ps(n), i = As(a), o = ws(r), s = Fs(u), p = Bs(g), m = Os(U), f = Hs(
|
|
9627
9626
|
d
|
|
9628
9627
|
);
|
|
9629
9628
|
return {
|
|
@@ -9636,10 +9635,10 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9636
9635
|
eventTransaction: m,
|
|
9637
9636
|
withdrawTransaction: f
|
|
9638
9637
|
};
|
|
9639
|
-
}, fr = "3.8.0",
|
|
9638
|
+
}, fr = "3.8.0", Ws = fr, Za = typeof Buffer == "function", An = typeof TextDecoder == "function" ? new TextDecoder("utf-8", { ignoreBOM: !0 }) : void 0, On = typeof TextEncoder == "function" ? new TextEncoder() : void 0, zs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", at = Array.prototype.slice.call(zs), pt = ((e) => {
|
|
9640
9639
|
let n = {};
|
|
9641
9640
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9642
|
-
})(at),
|
|
9641
|
+
})(at), Is = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Oe = String.fromCharCode.bind(String), Bn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), _r = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), yr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Ur = (e) => {
|
|
9643
9642
|
let n, a, r, u, g = "";
|
|
9644
9643
|
const U = e.length % 3;
|
|
9645
9644
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9653,7 +9652,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9653
9652
|
for (let r = 0, u = e.length; r < u; r += 4096)
|
|
9654
9653
|
a.push(Oe.apply(null, e.subarray(r, r + 4096)));
|
|
9655
9654
|
return Ni(a.join(""));
|
|
9656
|
-
}, Qt = (e, n = !1) => n ? _r(ci(e)) : ci(e),
|
|
9655
|
+
}, Qt = (e, n = !1) => n ? _r(ci(e)) : ci(e), Vs = (e) => {
|
|
9657
9656
|
if (e.length < 2) {
|
|
9658
9657
|
var n = e.charCodeAt(0);
|
|
9659
9658
|
return n < 128 ? e : n < 2048 ? Oe(192 | n >>> 6) + Oe(128 | n & 63) : Oe(224 | n >>> 12 & 15) + Oe(128 | n >>> 6 & 63) + Oe(128 | n & 63);
|
|
@@ -9661,7 +9660,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9661
9660
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9662
9661
|
return Oe(240 | n >>> 18 & 7) + Oe(128 | n >>> 12 & 63) + Oe(128 | n >>> 6 & 63) + Oe(128 | n & 63);
|
|
9663
9662
|
}
|
|
9664
|
-
},
|
|
9663
|
+
}, Js = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, br = (e) => e.replace(Js, Vs), Hn = Za ? (e) => Buffer.from(e, "utf8").toString("base64") : On ? (e) => ci(On.encode(e)) : (e) => Ni(br(e)), Va = (e, n = !1) => n ? _r(Hn(e)) : Hn(e), Wn = (e) => Va(e, !0), Zs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ks = (e) => {
|
|
9665
9664
|
switch (e.length) {
|
|
9666
9665
|
case 4:
|
|
9667
9666
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
|
|
@@ -9671,15 +9670,15 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9671
9670
|
default:
|
|
9672
9671
|
return Oe((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9673
9672
|
}
|
|
9674
|
-
}, Cr = (e) => e.replace(
|
|
9675
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
9673
|
+
}, Cr = (e) => e.replace(Zs, Ks), vr = (e) => {
|
|
9674
|
+
if (e = e.replace(/\s+/g, ""), !Is.test(e))
|
|
9676
9675
|
throw new TypeError("malformed base64.");
|
|
9677
9676
|
e += "==".slice(2 - (e.length & 3));
|
|
9678
9677
|
let n, a, r, u = [];
|
|
9679
9678
|
for (let g = 0; g < e.length; )
|
|
9680
9679
|
n = pt[e.charAt(g++)] << 18 | pt[e.charAt(g++)] << 12 | (a = pt[e.charAt(g++)]) << 6 | (r = pt[e.charAt(g++)]), a === 64 ? u.push(Oe(n >> 16 & 255)) : r === 64 ? u.push(Oe(n >> 16 & 255, n >> 8 & 255)) : u.push(Oe(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9681
9680
|
return u.join("");
|
|
9682
|
-
}, Li = typeof atob == "function" ? (e) => atob(yr(e)) : Za ? (e) => Buffer.from(e, "base64").toString("binary") : vr, hr = Za ? (e) => Bn(Buffer.from(e, "base64")) : (e) => Bn(Li(e).split("").map((n) => n.charCodeAt(0))), Tr = (e) => hr(kr(e)),
|
|
9681
|
+
}, Li = typeof atob == "function" ? (e) => atob(yr(e)) : Za ? (e) => Buffer.from(e, "base64").toString("binary") : vr, hr = Za ? (e) => Bn(Buffer.from(e, "base64")) : (e) => Bn(Li(e).split("").map((n) => n.charCodeAt(0))), Tr = (e) => hr(kr(e)), qs = Za ? (e) => Buffer.from(e, "base64").toString("utf8") : An ? (e) => An.decode(hr(e)) : (e) => Cr(Li(e)), kr = (e) => yr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), fi = (e) => qs(kr(e)), $s = (e) => {
|
|
9683
9682
|
if (typeof e != "string")
|
|
9684
9683
|
return !1;
|
|
9685
9684
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9711,11 +9710,11 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9711
9710
|
}), e("toBase64URL", function() {
|
|
9712
9711
|
return Qt(this, !0);
|
|
9713
9712
|
});
|
|
9714
|
-
},
|
|
9713
|
+
}, Qs = () => {
|
|
9715
9714
|
Sr(), Dr();
|
|
9716
|
-
},
|
|
9715
|
+
}, js = {
|
|
9717
9716
|
version: fr,
|
|
9718
|
-
VERSION:
|
|
9717
|
+
VERSION: Ws,
|
|
9719
9718
|
atob: Li,
|
|
9720
9719
|
atobPolyfill: vr,
|
|
9721
9720
|
btoa: Ni,
|
|
@@ -9728,13 +9727,13 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9728
9727
|
utob: br,
|
|
9729
9728
|
btou: Cr,
|
|
9730
9729
|
decode: fi,
|
|
9731
|
-
isValid:
|
|
9730
|
+
isValid: $s,
|
|
9732
9731
|
fromUint8Array: Qt,
|
|
9733
9732
|
toUint8Array: Tr,
|
|
9734
9733
|
extendString: Sr,
|
|
9735
9734
|
extendUint8Array: Dr,
|
|
9736
|
-
extendBuiltins:
|
|
9737
|
-
},
|
|
9735
|
+
extendBuiltins: Qs
|
|
9736
|
+
}, Bu = (e, n) => {
|
|
9738
9737
|
const { playGameApi: a } = hi();
|
|
9739
9738
|
return Q({
|
|
9740
9739
|
queryKey: ["playGame"],
|
|
@@ -9762,7 +9761,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9762
9761
|
supportPortrait: s,
|
|
9763
9762
|
isHtmlCode: m,
|
|
9764
9763
|
gameUrl: p,
|
|
9765
|
-
decodeGameUrl:
|
|
9764
|
+
decodeGameUrl: js.decode(p),
|
|
9766
9765
|
message: f,
|
|
9767
9766
|
betLimitInfo: c
|
|
9768
9767
|
};
|
|
@@ -9776,7 +9775,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9776
9775
|
currentRebateApi: n,
|
|
9777
9776
|
receiveRebateApi: a
|
|
9778
9777
|
};
|
|
9779
|
-
},
|
|
9778
|
+
}, Ys = ({ options: e } = {}) => {
|
|
9780
9779
|
const { currentRebateApi: n } = Er();
|
|
9781
9780
|
return Q({
|
|
9782
9781
|
queryKey: ["currentRebate"],
|
|
@@ -9784,20 +9783,20 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9784
9783
|
select: (a) => Qr(a, ["code", "status"]),
|
|
9785
9784
|
...e
|
|
9786
9785
|
});
|
|
9787
|
-
},
|
|
9786
|
+
}, Xs = ({ options: e } = {}) => {
|
|
9788
9787
|
const { receiveRebateApi: n } = Er();
|
|
9789
9788
|
return ae({
|
|
9790
9789
|
mutationKey: ["receiveRebate"],
|
|
9791
9790
|
mutationFn: async () => n(),
|
|
9792
9791
|
...e
|
|
9793
9792
|
});
|
|
9794
|
-
},
|
|
9793
|
+
}, Hu = ({
|
|
9795
9794
|
options: e = {
|
|
9796
9795
|
currentRebate: {},
|
|
9797
9796
|
receiveRebate: {}
|
|
9798
9797
|
}
|
|
9799
9798
|
} = {}) => {
|
|
9800
|
-
const n =
|
|
9799
|
+
const n = Ys({ options: e.currentRebate }), a = Xs({ options: e.receiveRebate });
|
|
9801
9800
|
return {
|
|
9802
9801
|
currentRebate: n,
|
|
9803
9802
|
receiveRebate: a
|
|
@@ -9821,7 +9820,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9821
9820
|
redeemRewardApi: u,
|
|
9822
9821
|
historyRewardApi: g
|
|
9823
9822
|
};
|
|
9824
|
-
},
|
|
9823
|
+
}, em = ({ options: e, formData: n } = {}) => {
|
|
9825
9824
|
const { rewardListApi: a } = nt();
|
|
9826
9825
|
return Q({
|
|
9827
9826
|
queryKey: ["rewardsList"],
|
|
@@ -9868,35 +9867,35 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9868
9867
|
},
|
|
9869
9868
|
...e
|
|
9870
9869
|
});
|
|
9871
|
-
},
|
|
9870
|
+
}, am = ({ options: e } = {}) => {
|
|
9872
9871
|
const { redeemRewardApi: n } = nt();
|
|
9873
9872
|
return ae({
|
|
9874
9873
|
mutationKey: ["redeemReward"],
|
|
9875
9874
|
mutationFn: async (a) => await n(a),
|
|
9876
9875
|
...e
|
|
9877
9876
|
});
|
|
9878
|
-
},
|
|
9877
|
+
}, tm = ({ options: e } = {}) => {
|
|
9879
9878
|
const { unUsedRewardListApi: n } = nt();
|
|
9880
9879
|
return Q({
|
|
9881
9880
|
queryKey: ["unUsedRewardsList"],
|
|
9882
9881
|
queryFn: n,
|
|
9883
9882
|
...e
|
|
9884
9883
|
});
|
|
9885
|
-
},
|
|
9884
|
+
}, im = ({ options: e } = {}) => {
|
|
9886
9885
|
const { expiredRewardListApi: n } = nt();
|
|
9887
9886
|
return Q({
|
|
9888
9887
|
queryKey: ["expiredRewardsList"],
|
|
9889
9888
|
queryFn: n,
|
|
9890
9889
|
...e
|
|
9891
9890
|
});
|
|
9892
|
-
},
|
|
9891
|
+
}, nm = ({ options: e } = {}) => {
|
|
9893
9892
|
const { historyRewardApi: n } = nt();
|
|
9894
9893
|
return Q({
|
|
9895
9894
|
queryKey: ["historyRewardsList"],
|
|
9896
9895
|
queryFn: n,
|
|
9897
9896
|
...e
|
|
9898
9897
|
});
|
|
9899
|
-
},
|
|
9898
|
+
}, Wu = ({
|
|
9900
9899
|
options: e = {
|
|
9901
9900
|
rewardsList: {},
|
|
9902
9901
|
redeemReward: {},
|
|
@@ -9905,13 +9904,13 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9905
9904
|
historyRewardsList: {}
|
|
9906
9905
|
}
|
|
9907
9906
|
} = {}) => {
|
|
9908
|
-
const n =
|
|
9907
|
+
const n = em({ options: e.rewardsList }), a = am({
|
|
9909
9908
|
options: e.redeemReward
|
|
9910
|
-
}), r =
|
|
9909
|
+
}), r = tm({
|
|
9911
9910
|
options: e.unUsedRewardsList
|
|
9912
|
-
}), u =
|
|
9911
|
+
}), u = im({
|
|
9913
9912
|
options: e.expiredRewardsList
|
|
9914
|
-
}), g =
|
|
9913
|
+
}), g = nm({
|
|
9915
9914
|
options: e.historyRewardsList
|
|
9916
9915
|
});
|
|
9917
9916
|
return {
|
|
@@ -9956,7 +9955,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9956
9955
|
treasureListApi: n,
|
|
9957
9956
|
redeemTreasureApi: a
|
|
9958
9957
|
};
|
|
9959
|
-
},
|
|
9958
|
+
}, zu = ({ paramsData: e, options: n } = {}) => {
|
|
9960
9959
|
const { client: a, lng: r } = le(), u = Ze(r || "tw"), { treasureListApi: g } = Nr();
|
|
9961
9960
|
return Q({
|
|
9962
9961
|
queryKey: ["treasureList", e],
|
|
@@ -9984,7 +9983,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9984
9983
|
},
|
|
9985
9984
|
...n
|
|
9986
9985
|
});
|
|
9987
|
-
},
|
|
9986
|
+
}, Iu = ({ options: e } = {}) => {
|
|
9988
9987
|
const { redeemTreasureApi: n } = Nr();
|
|
9989
9988
|
return ae({
|
|
9990
9989
|
mutationKey: ["redeemTreasure"],
|
|
@@ -9997,7 +9996,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
9997
9996
|
vipListApi: n,
|
|
9998
9997
|
vipInfoApi: a
|
|
9999
9998
|
};
|
|
10000
|
-
},
|
|
9999
|
+
}, Vu = ({ options: e } = {}) => {
|
|
10001
10000
|
const { store: n } = le(), a = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: r } = Lr();
|
|
10002
10001
|
return Q({
|
|
10003
10002
|
queryKey: ["vipInfo"],
|
|
@@ -10022,7 +10021,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10022
10021
|
},
|
|
10023
10022
|
...e
|
|
10024
10023
|
});
|
|
10025
|
-
},
|
|
10024
|
+
}, rm = ({ options: e } = {}) => {
|
|
10026
10025
|
const { store: n } = le(), a = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: r } = Lr();
|
|
10027
10026
|
return Q({
|
|
10028
10027
|
queryKey: ["vipList"],
|
|
@@ -10059,11 +10058,11 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10059
10058
|
},
|
|
10060
10059
|
...e
|
|
10061
10060
|
});
|
|
10062
|
-
},
|
|
10061
|
+
}, Ju = ({ options: e } = {
|
|
10063
10062
|
vipList: {}
|
|
10064
10063
|
}) => ({
|
|
10065
|
-
vipList:
|
|
10066
|
-
}),
|
|
10064
|
+
vipList: rm({ options: e.vipList })
|
|
10065
|
+
}), Zu = ({ onMessage: e } = {}) => {
|
|
10067
10066
|
const [n, a] = ya(!1), [r, u] = ya([]), g = ie(e);
|
|
10068
10067
|
g.current = e;
|
|
10069
10068
|
const U = B((o) => {
|
|
@@ -10111,7 +10110,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10111
10110
|
webViewRestartMoneyMachine: i,
|
|
10112
10111
|
logs: r
|
|
10113
10112
|
};
|
|
10114
|
-
}, gt = "game-icon-ds88",
|
|
10113
|
+
}, gt = "game-icon-ds88", Ku = ({ gameData: e = {} } = {}) => {
|
|
10115
10114
|
const { lng: n } = le(), a = ol(n), {
|
|
10116
10115
|
gameCode: r,
|
|
10117
10116
|
// 遊戲代碼
|
|
@@ -10184,7 +10183,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10184
10183
|
isInvalidBet: y,
|
|
10185
10184
|
haveJackpot: _
|
|
10186
10185
|
};
|
|
10187
|
-
},
|
|
10186
|
+
}, lm = (e, n = !1) => Yr([
|
|
10188
10187
|
"EVO",
|
|
10189
10188
|
"IMSPRIBE",
|
|
10190
10189
|
"SABA",
|
|
@@ -10195,7 +10194,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10195
10194
|
"HACK",
|
|
10196
10195
|
"NAGA",
|
|
10197
10196
|
"RSG"
|
|
10198
|
-
], e) && n ? `${e}_dark` : e,
|
|
10197
|
+
], e) && n ? `${e}_dark` : e, qu = ({ platformData: e, darkMode: n } = {}) => {
|
|
10199
10198
|
const {
|
|
10200
10199
|
SubPlatformEnum: a,
|
|
10201
10200
|
// 子平台枚舉
|
|
@@ -10217,7 +10216,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10217
10216
|
// 臨時維護開始時間
|
|
10218
10217
|
temp_maintenance_end_time: o
|
|
10219
10218
|
// 臨時維護結束時間
|
|
10220
|
-
} = e || {}, s = `${Qe}/${ar}/${
|
|
10219
|
+
} = e || {}, s = `${Qe}/${ar}/${lm(r, n)}.png`;
|
|
10221
10220
|
return {
|
|
10222
10221
|
subPlatformEnum: a,
|
|
10223
10222
|
platformEnum: r,
|
|
@@ -10231,12 +10230,12 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10231
10230
|
tempMaintenanceEndTime: o,
|
|
10232
10231
|
platformImageUrl: s
|
|
10233
10232
|
};
|
|
10234
|
-
},
|
|
10233
|
+
}, om = (e = {}) => !Xt(e) || Pe(e) ? [] : ei(e), zn = (e = []) => !Xe(e) || Pe(e) ? [] : De(e, "platform"), sm = (e = []) => !Xe(e) || Pe(e) ? [] : De(e, "gameTypeName"), mm = (e = []) => !Xe(e) || Pe(e) ? [] : De(e, "game_subtype"), um = (e = {}) => !Xt(e) || Pe(e) ? [] : ei(e), pm = (e = [], n = []) => !Xe(e) || Pe(e) ? {} : !Xe(n) || Pe(n) ? {} : e.reduce((a, r) => {
|
|
10235
10234
|
const u = n.map((g) => g.game_subtype);
|
|
10236
10235
|
return u.forEach((g) => {
|
|
10237
10236
|
a[g] = a[g] || [];
|
|
10238
10237
|
}), u.includes(r.game_subtype) && a[r.game_subtype].push(r), a;
|
|
10239
|
-
}, {}),
|
|
10238
|
+
}, {}), gm = ({
|
|
10240
10239
|
gameTypes: e = [],
|
|
10241
10240
|
platforms: n = [],
|
|
10242
10241
|
gameList: a = {},
|
|
@@ -10251,7 +10250,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10251
10250
|
allPlatforms: u
|
|
10252
10251
|
});
|
|
10253
10252
|
return Pe(d) || (g[U] = d), g;
|
|
10254
|
-
}, {}),
|
|
10253
|
+
}, {}), $u = ({
|
|
10255
10254
|
types: e = [],
|
|
10256
10255
|
platforms: n = [],
|
|
10257
10256
|
allGameType: a = [],
|
|
@@ -10269,9 +10268,9 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10269
10268
|
return Pe(s) ? i : { ...i, [o]: s };
|
|
10270
10269
|
}, {});
|
|
10271
10270
|
return Pe(t) || (g[U] = t), g;
|
|
10272
|
-
}, {}),
|
|
10271
|
+
}, {}), dm = (e = {}) => !Xt(e) || Pe(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([u, g]) => {
|
|
10273
10272
|
a[u] ? a[u] = [...a[u], ...g] : a[u] = g;
|
|
10274
|
-
}), a), {}),
|
|
10273
|
+
}), a), {}), cm = (e = {}) => {
|
|
10275
10274
|
if (!Xt(e) || Pe(e)) return {};
|
|
10276
10275
|
const n = {};
|
|
10277
10276
|
for (const [a, r] of Object.entries(e)) {
|
|
@@ -10282,7 +10281,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10282
10281
|
}
|
|
10283
10282
|
}
|
|
10284
10283
|
return n;
|
|
10285
|
-
},
|
|
10284
|
+
}, fm = ({
|
|
10286
10285
|
allGameList: e = {},
|
|
10287
10286
|
allGamePlatform: n = [],
|
|
10288
10287
|
allGameType: a = [],
|
|
@@ -10295,7 +10294,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10295
10294
|
highlightGames: t = [],
|
|
10296
10295
|
originPlatform: i = []
|
|
10297
10296
|
}) => {
|
|
10298
|
-
const o =
|
|
10297
|
+
const o = om(e), s = zn(n), p = sm(a), m = mm(r), f = zn(i), c = um(d), y = gm({
|
|
10299
10298
|
gameTypes: p,
|
|
10300
10299
|
platforms: s,
|
|
10301
10300
|
gameList: e,
|
|
@@ -10307,7 +10306,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10307
10306
|
...M,
|
|
10308
10307
|
platformImageUrl: A
|
|
10309
10308
|
};
|
|
10310
|
-
}), b =
|
|
10309
|
+
}), b = pm(o, r), C = dm(y), v = cm(C), h = $n(y).reduce(
|
|
10311
10310
|
(M, [A, T]) => {
|
|
10312
10311
|
const x = ei(Xr(T));
|
|
10313
10312
|
return M[A] = x, M;
|
|
@@ -10350,12 +10349,12 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10350
10349
|
favorite: c
|
|
10351
10350
|
}
|
|
10352
10351
|
};
|
|
10353
|
-
},
|
|
10352
|
+
}, Qu = (e = []) => !Xe(e) || Pe(e) ? [] : ei(e, (n) => Pe(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
|
|
10354
10353
|
...n,
|
|
10355
10354
|
...a,
|
|
10356
10355
|
platform: a.SubPlatformEnum,
|
|
10357
10356
|
platformEnum: a.SubPlatformEnum
|
|
10358
|
-
}))),
|
|
10357
|
+
}))), _m = {
|
|
10359
10358
|
platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
|
|
10360
10359
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
10361
10360
|
gameList: {
|
|
@@ -10375,7 +10374,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10375
10374
|
byGameType: {}
|
|
10376
10375
|
},
|
|
10377
10376
|
user: { favorite: [] }
|
|
10378
|
-
},
|
|
10377
|
+
}, ym = ({ enabled: e = !0 } = {}) => {
|
|
10379
10378
|
const { getToken: n } = le(), { userFavoriteGameApi: a, userGameListApi: r } = ne(), { data: u, isLoading: g, error: U, refetch: d } = Q({
|
|
10380
10379
|
queryKey: ["gamesInfo"],
|
|
10381
10380
|
queryFn: async () => {
|
|
@@ -10385,7 +10384,7 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10385
10384
|
} catch (i) {
|
|
10386
10385
|
console.warn("Failed to fetch favorite games:", i);
|
|
10387
10386
|
}
|
|
10388
|
-
return
|
|
10387
|
+
return fm({
|
|
10389
10388
|
allGameList: t.gameTypeGroup || window.gameTypeGroup || {},
|
|
10390
10389
|
allGamePlatform: t.platforms || window.platforms || [],
|
|
10391
10390
|
allGameType: t.gameType || window.gameType || [],
|
|
@@ -10408,12 +10407,12 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
10408
10407
|
refetchOnWindowFocus: !1
|
|
10409
10408
|
});
|
|
10410
10409
|
return {
|
|
10411
|
-
gamesInfo: u ||
|
|
10410
|
+
gamesInfo: u || _m,
|
|
10412
10411
|
isLoading: g,
|
|
10413
10412
|
error: U,
|
|
10414
10413
|
refetch: d
|
|
10415
10414
|
};
|
|
10416
|
-
},
|
|
10415
|
+
}, Um = (e = !1) => {
|
|
10417
10416
|
if (!e && window.gameTypeGroup) {
|
|
10418
10417
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
10419
10418
|
return;
|
|
@@ -36940,18 +36939,18 @@ const Tu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Ds({
|
|
|
36940
36939
|
is_invalid_bet: 0
|
|
36941
36940
|
}
|
|
36942
36941
|
});
|
|
36943
|
-
},
|
|
36942
|
+
}, bm = ({
|
|
36944
36943
|
children: e,
|
|
36945
36944
|
autoFetch: n = !1,
|
|
36946
36945
|
mockData: a = !1
|
|
36947
36946
|
}) => {
|
|
36948
36947
|
ue(() => {
|
|
36949
|
-
a &&
|
|
36948
|
+
a && Um(!0);
|
|
36950
36949
|
}, [a]);
|
|
36951
|
-
const r =
|
|
36950
|
+
const r = ym({ enabled: n });
|
|
36952
36951
|
return /* @__PURE__ */ ce.jsx(tr.Provider, { value: r, children: e });
|
|
36953
36952
|
};
|
|
36954
|
-
function
|
|
36953
|
+
function ju({
|
|
36955
36954
|
children: e,
|
|
36956
36955
|
autoFetchGamesInfo: n = !1,
|
|
36957
36956
|
useMockData: a = !1,
|
|
@@ -36973,7 +36972,7 @@ function Qu({
|
|
|
36973
36972
|
[]
|
|
36974
36973
|
), l = r || d;
|
|
36975
36974
|
return /* @__PURE__ */ ce.jsx(Kr, { client: l, children: /* @__PURE__ */ ce.jsx(Qn.Provider, { value: { client: g, formDataClient: U, ...u }, children: /* @__PURE__ */ ce.jsx(rl, { children: /* @__PURE__ */ ce.jsx(
|
|
36976
|
-
|
|
36975
|
+
bm,
|
|
36977
36976
|
{
|
|
36978
36977
|
autoFetch: n,
|
|
36979
36978
|
mockData: a,
|
|
@@ -36981,14 +36980,14 @@ function Qu({
|
|
|
36981
36980
|
}
|
|
36982
36981
|
) }) }) });
|
|
36983
36982
|
}
|
|
36984
|
-
const
|
|
36983
|
+
const Yu = () => {
|
|
36985
36984
|
const e = Da(), {
|
|
36986
36985
|
mutate: n,
|
|
36987
36986
|
isPending: a,
|
|
36988
36987
|
isSuccess: r,
|
|
36989
36988
|
isError: u,
|
|
36990
36989
|
error: g
|
|
36991
|
-
} =
|
|
36990
|
+
} = ns({
|
|
36992
36991
|
options: {
|
|
36993
36992
|
onSuccess: () => {
|
|
36994
36993
|
e.invalidateQueries({
|
|
@@ -37002,7 +37001,7 @@ const ju = () => {
|
|
|
37002
37001
|
const d = new URLSearchParams(window.location.search), l = d.get("bind_type"), t = d.get("bind_id");
|
|
37003
37002
|
l && t && (U.current = !0, l === "line" ? n({ bindType: l, bindId: t }) : console.warn(`Unsupported bind type: ${l}`));
|
|
37004
37003
|
}, [n]), null;
|
|
37005
|
-
},
|
|
37004
|
+
}, Xu = ({ onFunction: e = () => {
|
|
37006
37005
|
}, buttonProps: n = {} } = {}) => {
|
|
37007
37006
|
const { lineConfig: a } = le(), r = ie(!1), u = j(a, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), t = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = pr({
|
|
37008
37007
|
options: {
|
|
@@ -37042,7 +37041,7 @@ const ju = () => {
|
|
|
37042
37041
|
}
|
|
37043
37042
|
) : null;
|
|
37044
37043
|
};
|
|
37045
|
-
var
|
|
37044
|
+
var Cm = Object.defineProperty, jt = Object.getOwnPropertySymbols, Gr = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, In = (e, n, a) => n in e ? Cm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, _i = (e, n) => {
|
|
37046
37045
|
for (var a in n || (n = {}))
|
|
37047
37046
|
Gr.call(n, a) && In(e, a, n[a]);
|
|
37048
37047
|
if (jt)
|
|
@@ -37594,12 +37593,12 @@ var Sa;
|
|
|
37594
37593
|
})(e.QrSegment || (e.QrSegment = {}));
|
|
37595
37594
|
})(Sa || (Sa = {}));
|
|
37596
37595
|
var Wa = Sa;
|
|
37597
|
-
var
|
|
37596
|
+
var vm = {
|
|
37598
37597
|
L: Wa.QrCode.Ecc.LOW,
|
|
37599
37598
|
M: Wa.QrCode.Ecc.MEDIUM,
|
|
37600
37599
|
Q: Wa.QrCode.Ecc.QUARTILE,
|
|
37601
37600
|
H: Wa.QrCode.Ecc.HIGH
|
|
37602
|
-
}, Rr = 128, Pr = "L", wr = "#FFFFFF", Fr = "#000000", Ar = !1, Or = 1,
|
|
37601
|
+
}, Rr = 128, Pr = "L", wr = "#FFFFFF", Fr = "#000000", Ar = !1, Or = 1, hm = 4, Tm = 0, km = 0.1;
|
|
37603
37602
|
function Br(e, n = 0) {
|
|
37604
37603
|
const a = [];
|
|
37605
37604
|
return e.forEach(function(r, u) {
|
|
@@ -37626,10 +37625,10 @@ function Br(e, n = 0) {
|
|
|
37626
37625
|
function Hr(e, n) {
|
|
37627
37626
|
return e.slice().map((a, r) => r < n.y || r >= n.y + n.h ? a : a.map((u, g) => g < n.x || g >= n.x + n.w ? u : !1));
|
|
37628
37627
|
}
|
|
37629
|
-
function
|
|
37628
|
+
function xm(e, n, a, r) {
|
|
37630
37629
|
if (r == null)
|
|
37631
37630
|
return null;
|
|
37632
|
-
const u = e.length + a * 2, g = Math.floor(n *
|
|
37631
|
+
const u = e.length + a * 2, g = Math.floor(n * km), U = u / n, d = (r.width || g) * U, l = (r.height || g) * U, t = r.x == null ? e.length / 2 - d / 2 : r.x * U, i = r.y == null ? e.length / 2 - l / 2 : r.y * U, o = r.opacity == null ? 1 : r.opacity;
|
|
37633
37632
|
let s = null;
|
|
37634
37633
|
if (r.excavate) {
|
|
37635
37634
|
let m = Math.floor(t), f = Math.floor(i), c = Math.ceil(d + t - m), y = Math.ceil(l + i - f);
|
|
@@ -37638,8 +37637,8 @@ function km(e, n, a, r) {
|
|
|
37638
37637
|
const p = r.crossOrigin;
|
|
37639
37638
|
return { x: t, y: i, h: l, w: d, excavation: s, opacity: o, crossOrigin: p };
|
|
37640
37639
|
}
|
|
37641
|
-
function
|
|
37642
|
-
return n != null ? Math.max(Math.floor(n), 0) : e ?
|
|
37640
|
+
function Sm(e, n) {
|
|
37641
|
+
return n != null ? Math.max(Math.floor(n), 0) : e ? hm : Tm;
|
|
37643
37642
|
}
|
|
37644
37643
|
function Wr({
|
|
37645
37644
|
value: e,
|
|
@@ -37655,7 +37654,7 @@ function Wr({
|
|
|
37655
37654
|
const m = (Array.isArray(e) ? e : [e]).reduce((f, c) => (f.push(...Wa.QrSegment.makeSegments(c)), f), []);
|
|
37656
37655
|
return Wa.QrCode.encodeSegments(
|
|
37657
37656
|
m,
|
|
37658
|
-
|
|
37657
|
+
vm[n],
|
|
37659
37658
|
a,
|
|
37660
37659
|
void 0,
|
|
37661
37660
|
void 0,
|
|
@@ -37664,7 +37663,7 @@ function Wr({
|
|
|
37664
37663
|
}, [e, n, a, d]);
|
|
37665
37664
|
const { cells: t, margin: i, numCells: o, calculatedImageSettings: s } = _e.useMemo(() => {
|
|
37666
37665
|
let p = l.getModules();
|
|
37667
|
-
const m =
|
|
37666
|
+
const m = Sm(r, u), f = p.length + m * 2, c = xm(
|
|
37668
37667
|
p,
|
|
37669
37668
|
U,
|
|
37670
37669
|
m,
|
|
@@ -37685,14 +37684,14 @@ function Wr({
|
|
|
37685
37684
|
calculatedImageSettings: s
|
|
37686
37685
|
};
|
|
37687
37686
|
}
|
|
37688
|
-
var
|
|
37687
|
+
var Dm = (function() {
|
|
37689
37688
|
try {
|
|
37690
37689
|
new Path2D().addPath(new Path2D());
|
|
37691
37690
|
} catch {
|
|
37692
37691
|
return !1;
|
|
37693
37692
|
}
|
|
37694
37693
|
return !0;
|
|
37695
|
-
})(),
|
|
37694
|
+
})(), Em = _e.forwardRef(
|
|
37696
37695
|
function(n, a) {
|
|
37697
37696
|
const r = n, {
|
|
37698
37697
|
value: u,
|
|
@@ -37745,7 +37744,7 @@ var Sm = (function() {
|
|
|
37745
37744
|
const W = window.devicePixelRatio || 1;
|
|
37746
37745
|
w.height = w.width = g * W;
|
|
37747
37746
|
const z = g / T * W;
|
|
37748
|
-
R.scale(z, z), R.fillStyle = d, R.fillRect(0, 0, T, T), R.fillStyle = l,
|
|
37747
|
+
R.scale(z, z), R.fillStyle = d, R.fillRect(0, 0, T, T), R.fillStyle = l, Dm ? R.fill(new Path2D(Br(L, M))) : A.forEach(function(G, N) {
|
|
37749
37748
|
G.forEach(function(S, E) {
|
|
37750
37749
|
S && R.fillRect(E + M, N + M, 1, 1);
|
|
37751
37750
|
});
|
|
@@ -37786,7 +37785,7 @@ var Sm = (function() {
|
|
|
37786
37785
|
), P);
|
|
37787
37786
|
}
|
|
37788
37787
|
);
|
|
37789
|
-
|
|
37788
|
+
Em.displayName = "QRCodeCanvas";
|
|
37790
37789
|
var zr = _e.forwardRef(
|
|
37791
37790
|
function(n, a) {
|
|
37792
37791
|
const r = n, {
|
|
@@ -37865,7 +37864,7 @@ var zr = _e.forwardRef(
|
|
|
37865
37864
|
}
|
|
37866
37865
|
);
|
|
37867
37866
|
zr.displayName = "QRCodeSVG";
|
|
37868
|
-
const
|
|
37867
|
+
const Nm = {
|
|
37869
37868
|
position: "fixed",
|
|
37870
37869
|
top: 0,
|
|
37871
37870
|
left: 0,
|
|
@@ -37878,7 +37877,7 @@ const Em = {
|
|
|
37878
37877
|
justifyContent: "center",
|
|
37879
37878
|
zIndex: 1e4,
|
|
37880
37879
|
gap: "2em"
|
|
37881
|
-
},
|
|
37880
|
+
}, Lm = {
|
|
37882
37881
|
position: "absolute",
|
|
37883
37882
|
top: "20px",
|
|
37884
37883
|
right: "20px",
|
|
@@ -37909,8 +37908,8 @@ const Em = {
|
|
|
37909
37908
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37910
37909
|
expired: "Kode QR telah kedaluwarsa"
|
|
37911
37910
|
}
|
|
37912
|
-
},
|
|
37913
|
-
const { lng: r, getToken: u, lineConfig: g } = le(), [U, d] = ya(300), [l, t] = ya(!1), i = ie(null), o = j(g, "liffId", ""), s = Ze(r), p = u?.(), f = new URLSearchParams(window.location.search).get("mac") || di.get("machine_mac_address") || "", { data: c, isFetching: y } =
|
|
37911
|
+
}, t0 = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
|
|
37912
|
+
const { lng: r, getToken: u, lineConfig: g } = le(), [U, d] = ya(300), [l, t] = ya(!1), i = ie(null), o = j(g, "liffId", ""), s = Ze(r), p = u?.(), f = new URLSearchParams(window.location.search).get("mac") || di.get("machine_mac_address") || "", { data: c, isFetching: y } = is({
|
|
37914
37913
|
formData: {
|
|
37915
37914
|
mac_address: f
|
|
37916
37915
|
},
|
|
@@ -37931,11 +37930,11 @@ const Em = {
|
|
|
37931
37930
|
};
|
|
37932
37931
|
if (!e && (!f || p)) return null;
|
|
37933
37932
|
const C = Vn[s] || Vn.en_US;
|
|
37934
|
-
return n && /* @__PURE__ */ ce.jsxs("div", { style:
|
|
37933
|
+
return n && /* @__PURE__ */ ce.jsxs("div", { style: Nm, children: [
|
|
37935
37934
|
/* @__PURE__ */ ce.jsx(
|
|
37936
37935
|
"div",
|
|
37937
37936
|
{
|
|
37938
|
-
style:
|
|
37937
|
+
style: Lm,
|
|
37939
37938
|
onClick: () => a(!1),
|
|
37940
37939
|
role: "button",
|
|
37941
37940
|
"aria-label": "Close",
|
|
@@ -38431,7 +38430,7 @@ const Em = {
|
|
|
38431
38430
|
]
|
|
38432
38431
|
}
|
|
38433
38432
|
}
|
|
38434
|
-
},
|
|
38433
|
+
}, Gm = (e) => Zn[e] || Zn.zh_TW, Kn = ["privacy", "terms"], $e = {
|
|
38435
38434
|
overlay: "rgba(0, 0, 0, 0.72)",
|
|
38436
38435
|
cardBg: "#1b1b22",
|
|
38437
38436
|
border: "#2c2c36",
|
|
@@ -38442,7 +38441,7 @@ const Em = {
|
|
|
38442
38441
|
accent: "#8b9cff",
|
|
38443
38442
|
tabActive: "#ffffff",
|
|
38444
38443
|
tabInactive: "#8a8a94"
|
|
38445
|
-
},
|
|
38444
|
+
}, i0 = ({
|
|
38446
38445
|
open: e = !1,
|
|
38447
38446
|
onOpenChange: n,
|
|
38448
38447
|
siteName: a = "",
|
|
@@ -38453,7 +38452,7 @@ const Em = {
|
|
|
38453
38452
|
overlayStyle: d = {},
|
|
38454
38453
|
contentStyle: l = {}
|
|
38455
38454
|
}) => {
|
|
38456
|
-
const t = le(), i = g ?? t?.lng, o = Ze(i), s =
|
|
38455
|
+
const t = le(), i = g ?? t?.lng, o = Ze(i), s = Gm(o), p = { siteName: a, siteUrl: r }, m = Kn.includes(u) ? u : "privacy", [f, c] = ya(m), [y, _] = ya(e);
|
|
38457
38456
|
if (e !== y && (_(e), e && c(m)), ue(() => {
|
|
38458
38457
|
if (!e) return;
|
|
38459
38458
|
const v = (D) => {
|
|
@@ -38604,157 +38603,157 @@ const Em = {
|
|
|
38604
38603
|
)
|
|
38605
38604
|
}
|
|
38606
38605
|
);
|
|
38607
|
-
},
|
|
38606
|
+
}, n0 = (e = !1) => {
|
|
38608
38607
|
const [n, a] = ya(e), r = B(() => a(!0), []), u = B(() => a(!1), []), g = B(() => a((d) => !d), []), U = B((d) => a(!!d), []);
|
|
38609
38608
|
return { open: n, setOpen: a, onOpen: r, onClose: u, onToggle: g, onOpenChange: U };
|
|
38610
38609
|
};
|
|
38611
38610
|
export {
|
|
38612
38611
|
Qn as ApiCtx,
|
|
38613
|
-
|
|
38614
|
-
|
|
38612
|
+
ju as ApiProvider,
|
|
38613
|
+
Yu as Bind,
|
|
38615
38614
|
tr as GamesInfoCtx,
|
|
38616
|
-
|
|
38617
|
-
|
|
38615
|
+
Xu as LineLogin,
|
|
38616
|
+
t0 as LineQrCode,
|
|
38618
38617
|
Ei as MONTH_CARD_QUERY_KEY,
|
|
38619
38618
|
Ae as SOCKET_TYPE,
|
|
38620
38619
|
Ya as STATUS_TYPES,
|
|
38621
38620
|
jn as StatusContext,
|
|
38622
38621
|
rl as StatusProvider,
|
|
38623
|
-
|
|
38624
|
-
|
|
38625
|
-
|
|
38622
|
+
i0 as TermsDialog,
|
|
38623
|
+
gm as buildMultiTypes,
|
|
38624
|
+
$u as buildMultiTypesWithSubTypes,
|
|
38626
38625
|
ul as buildSinglePlatformWithSubTypes,
|
|
38627
38626
|
ml as buildSingleType,
|
|
38628
|
-
|
|
38627
|
+
pm as categorizeGames,
|
|
38629
38628
|
Ze as convertLanguageCode,
|
|
38630
38629
|
ol as convertLanguageGameCode,
|
|
38631
|
-
|
|
38632
|
-
|
|
38633
|
-
|
|
38630
|
+
Om as createLogoutHandler,
|
|
38631
|
+
mm as extractGameSubTypeNames,
|
|
38632
|
+
sm as extractGameTypeNames,
|
|
38634
38633
|
zn as extractPlatformNames,
|
|
38635
38634
|
lr as filterGamesByPlatform,
|
|
38636
38635
|
ir as findGameTypeUid,
|
|
38637
38636
|
nr as findPlatformUid,
|
|
38638
38637
|
rr as findSubPlatform,
|
|
38639
|
-
|
|
38640
|
-
|
|
38641
|
-
|
|
38642
|
-
|
|
38643
|
-
|
|
38644
|
-
|
|
38638
|
+
om as flattenAllGames,
|
|
38639
|
+
um as flattenFavoriteGames,
|
|
38640
|
+
Bm as formatNumber,
|
|
38641
|
+
Gm as getTermsContent,
|
|
38642
|
+
dm as groupGamesByPlatform,
|
|
38643
|
+
cm as groupGamesByPlatformAndSubType,
|
|
38645
38644
|
sl as groupGamesBySubType,
|
|
38646
|
-
|
|
38647
|
-
|
|
38645
|
+
lm as handleDarkImage,
|
|
38646
|
+
Um as initMockWindowData,
|
|
38648
38647
|
pi as interpolate,
|
|
38649
|
-
|
|
38650
|
-
|
|
38651
|
-
|
|
38652
|
-
|
|
38653
|
-
|
|
38648
|
+
fm as processGameInfo,
|
|
38649
|
+
Qu as processPlatformData,
|
|
38650
|
+
ls as resolveGameMaintainDisplay,
|
|
38651
|
+
bu as useAbandonEventWallet,
|
|
38652
|
+
Km as useAbandonPoint,
|
|
38654
38653
|
le as useApiContext,
|
|
38655
|
-
|
|
38656
|
-
|
|
38657
|
-
|
|
38658
|
-
|
|
38654
|
+
ou as useAvatarList,
|
|
38655
|
+
Hm as useBalanceGetter,
|
|
38656
|
+
Im as useBet,
|
|
38657
|
+
lu as useBetRankingData,
|
|
38659
38658
|
Do as useBetRecord,
|
|
38660
38659
|
Eo as useBetRecordDetail,
|
|
38661
|
-
|
|
38662
|
-
|
|
38663
|
-
|
|
38664
|
-
|
|
38665
|
-
|
|
38666
|
-
|
|
38667
|
-
|
|
38668
|
-
|
|
38669
|
-
|
|
38670
|
-
|
|
38671
|
-
|
|
38672
|
-
|
|
38673
|
-
|
|
38674
|
-
|
|
38675
|
-
|
|
38676
|
-
|
|
38677
|
-
|
|
38678
|
-
|
|
38679
|
-
|
|
38680
|
-
|
|
38681
|
-
|
|
38682
|
-
|
|
38683
|
-
|
|
38684
|
-
|
|
38685
|
-
|
|
38686
|
-
|
|
38687
|
-
|
|
38688
|
-
|
|
38689
|
-
|
|
38690
|
-
|
|
38691
|
-
|
|
38692
|
-
|
|
38693
|
-
|
|
38694
|
-
|
|
38695
|
-
|
|
38696
|
-
|
|
38697
|
-
|
|
38698
|
-
|
|
38660
|
+
ns as useBindAccount,
|
|
38661
|
+
ss as useCheckCurrentEventProgress,
|
|
38662
|
+
ms as useCheckEventStatus,
|
|
38663
|
+
Qm as useCheckMemberTransfer,
|
|
38664
|
+
Zm as useCheckPlayerWager,
|
|
38665
|
+
uu as useClientWebSocket,
|
|
38666
|
+
iu as useCreateMachine,
|
|
38667
|
+
Ys as useCurrentRebate,
|
|
38668
|
+
ws as useDepositAction,
|
|
38669
|
+
As as useDepositTransaction,
|
|
38670
|
+
Rs as useDepositV1,
|
|
38671
|
+
Ps as useDepositV2,
|
|
38672
|
+
Gu as useDepositWalletLog,
|
|
38673
|
+
n0 as useDisclosure,
|
|
38674
|
+
_u as useEnabledEventWallet,
|
|
38675
|
+
yu as useEvaluateEventWallet,
|
|
38676
|
+
cu as useEvent,
|
|
38677
|
+
os as useEventList,
|
|
38678
|
+
Os as useEventTransaction,
|
|
38679
|
+
Ru as useEventWalletLog,
|
|
38680
|
+
im as useExpiredRewardsList,
|
|
38681
|
+
Ku as useGameConfig,
|
|
38682
|
+
Am as useGameInfoContext,
|
|
38683
|
+
ym as useGamesInfo,
|
|
38684
|
+
Cu as useGetAnnouncement,
|
|
38685
|
+
vu as useGetCarouseList,
|
|
38686
|
+
fu as useGetEventWalletList,
|
|
38687
|
+
is as useGetMachineLoginCode,
|
|
38688
|
+
hu as useGetMarquee,
|
|
38689
|
+
Wm as useGetMemberInfo,
|
|
38690
|
+
Tu as useGetRankingGame,
|
|
38691
|
+
nm as useHistoryRewardsList,
|
|
38692
|
+
ku as useIdleTimeout,
|
|
38693
|
+
xu as useInbox,
|
|
38694
|
+
Ls as useInboxList,
|
|
38695
|
+
zm as useInitializeWithToken,
|
|
38696
|
+
Nu as useInvoiceAction,
|
|
38697
|
+
ru as useJackpotData,
|
|
38699
38698
|
pr as useLineLogin,
|
|
38700
|
-
|
|
38701
|
-
|
|
38702
|
-
|
|
38703
|
-
|
|
38704
|
-
|
|
38705
|
-
|
|
38706
|
-
|
|
38707
|
-
|
|
38708
|
-
|
|
38709
|
-
|
|
38710
|
-
|
|
38711
|
-
|
|
38712
|
-
|
|
38713
|
-
|
|
38714
|
-
|
|
38715
|
-
|
|
38716
|
-
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
|
|
38720
|
-
|
|
38721
|
-
|
|
38722
|
-
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
|
|
38728
|
-
|
|
38729
|
-
|
|
38730
|
-
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
|
|
38699
|
+
ts as useLineLogin2,
|
|
38700
|
+
Vo as useLogin,
|
|
38701
|
+
Jo as useLogout,
|
|
38702
|
+
qm as useMachineLogin,
|
|
38703
|
+
du as useMemberEventSettle,
|
|
38704
|
+
Qo as useMemberInitSet,
|
|
38705
|
+
$m as useMemberTransfer,
|
|
38706
|
+
jm as useMobileLogin,
|
|
38707
|
+
Ym as useMobileLoginV2,
|
|
38708
|
+
Xm as useMobileRegister,
|
|
38709
|
+
Vm as useMonthCard,
|
|
38710
|
+
zo as useMonthCardInfo,
|
|
38711
|
+
Du as useNewsDetail,
|
|
38712
|
+
Su as useNewsList,
|
|
38713
|
+
Au as useOtherTransaction,
|
|
38714
|
+
Ou as usePayment,
|
|
38715
|
+
qu as usePlatformConfig,
|
|
38716
|
+
Bu as usePlayGame,
|
|
38717
|
+
Jm as usePointTransfer,
|
|
38718
|
+
Gs as useReadInbox,
|
|
38719
|
+
Hu as useRebate,
|
|
38720
|
+
Pu as useRebateWalletLog,
|
|
38721
|
+
Xs as useReceiveRebate,
|
|
38722
|
+
Eu as useRedeemCodeDeposit,
|
|
38723
|
+
pu as useRedeemEventReward,
|
|
38724
|
+
am as useRedeemReward,
|
|
38725
|
+
Iu as useRedeemTreasure,
|
|
38726
|
+
$o as useResetUserPassword,
|
|
38727
|
+
Yo as useResetUserTransactionPassword,
|
|
38728
|
+
Wu as useRewards,
|
|
38729
|
+
em as useRewardsList,
|
|
38730
|
+
eu as useSendMobileVerifyCode,
|
|
38731
|
+
jo as useSetUserTransactionPassword,
|
|
38732
|
+
gu as useSettleEvent,
|
|
38733
|
+
Uu as useSettleEventWallet,
|
|
38734
|
+
Zo as useSignUp,
|
|
38735
|
+
Fu as useSnCashRecord,
|
|
38737
38736
|
Yn as useStatus,
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38745
|
-
|
|
38746
|
-
|
|
38747
|
-
|
|
38748
|
-
|
|
38749
|
-
|
|
38750
|
-
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
|
|
38758
|
-
|
|
38759
|
-
|
|
38737
|
+
Ko as useToggleFavoriteGame,
|
|
38738
|
+
as as useTransferInGame,
|
|
38739
|
+
zu as useTreasureList,
|
|
38740
|
+
wu as useTreasureWalletLog,
|
|
38741
|
+
tm as useUnUsedRewardsList,
|
|
38742
|
+
su as useUpdateAvatar,
|
|
38743
|
+
Lu as useUpdateInvoiceAction,
|
|
38744
|
+
qo as useUpdateUserInfo,
|
|
38745
|
+
mu as useUser,
|
|
38746
|
+
es as useUserBindCard,
|
|
38747
|
+
Xo as useUserRebate,
|
|
38748
|
+
tu as useVerifyDonationCode,
|
|
38749
|
+
au as useVerifyPhoneBar,
|
|
38750
|
+
nu as useVerifyResetAction,
|
|
38751
|
+
Ju as useVip,
|
|
38752
|
+
Vu as useVipInfo,
|
|
38753
|
+
rm as useVipList,
|
|
38754
|
+
Zu as useWebView2,
|
|
38755
|
+
Fs as useWithdrawAction,
|
|
38756
|
+
Io as useWithdrawMonthCard,
|
|
38757
|
+
Hs as useWithdrawTransaction,
|
|
38758
|
+
Mu as useWithdrawWalletLog
|
|
38760
38759
|
};
|