@opexa/portal-sdk 0.0.97 → 0.0.98

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.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var _e = Object.defineProperty;
2
- var Te = (n, e, t) => e in n ? _e(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var c = (n, e, t) => Te(n, typeof e != "symbol" ? e + "" : e, t);
1
+ var Le = Object.defineProperty;
2
+ var Ve = (i, e, t) => e in i ? Le(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var c = (i, e, t) => Ve(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { ObjectId as O } from "@opexa/object-id";
5
- import { ObjectId as ar } from "@opexa/object-id";
5
+ import { ObjectId as Aa } from "@opexa/object-id";
6
6
  const $ = {
7
7
  Account: 8,
8
8
  Deposit: 9,
@@ -13,23 +13,23 @@ const $ = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function i(n, ...e) {
16
+ function o(i, ...e) {
17
17
  let t = "";
18
- for (const [r, a] of n.entries()) {
19
- const s = e.at(r) ?? "";
20
- t = `${t}${a}${s}`;
18
+ for (const [a, r] of i.entries()) {
19
+ const s = e.at(a) ?? "";
20
+ t = `${t}${r}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const ue = i`
24
+ const De = o`
25
25
  fragment FileFragment on File {
26
26
  id
27
27
  url
28
28
  status
29
29
  dateTimeCreated
30
30
  }
31
- `, Me = i`
32
- ${ue}
31
+ `, He = o`
32
+ ${De}
33
33
 
34
34
  query File($id: ObjectId!) {
35
35
  node(id: $id) {
@@ -38,7 +38,7 @@ const ue = i`
38
38
  }
39
39
  }
40
40
  }
41
- `, ve = i`
41
+ `, Ye = o`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const ue = i`
52
52
  }
53
53
  }
54
54
  }
55
- `, Re = i`
55
+ `, Qe = o`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const ue = i`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Ne = i`
65
+ `, je = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const ue = i`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, De = i`
74
+ `, Ke = o`
75
75
  mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
76
76
  redeemPointsToCash(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const ue = i`
79
79
  }
80
80
  }
81
81
  }
82
- `, Ie = i`
82
+ `, ze = o`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,8 +107,8 @@ const ue = i`
107
107
  }
108
108
  }
109
109
  }
110
- `, be = {
111
- current: i`
110
+ `, Oe = {
111
+ current: o`
112
112
  query GameSession($id: ObjectId!) {
113
113
  node(id: $id) {
114
114
  ... on GameSession {
@@ -122,7 +122,7 @@ const ue = i`
122
122
  }
123
123
  }
124
124
  `,
125
- legacy: i`
125
+ legacy: o`
126
126
  query GameSession($id: ObjectId!) {
127
127
  node(id: $id) {
128
128
  ... on GameSession {
@@ -138,7 +138,7 @@ const ue = i`
138
138
  }
139
139
  }
140
140
  `
141
- }, Ee = i`
141
+ }, $e = o`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -146,13 +146,13 @@ const ue = i`
146
146
  }
147
147
  }
148
148
  }
149
- `, Ae = {
150
- current: i`
149
+ `, Ue = {
150
+ current: o`
151
151
  mutation EndGameSession($input: EndGameSessionInput!) {
152
152
  endGameSession(input: $input)
153
153
  }
154
154
  `,
155
- legacy: i`
155
+ legacy: o`
156
156
  mutation EndGameSession($input: EndGameSessionInput!) {
157
157
  endGameSession(input: $input) {
158
158
  ... on GameSessionDoesNotExistError {
@@ -167,7 +167,7 @@ const ue = i`
167
167
  }
168
168
  }
169
169
  `
170
- }, Ge = i`
170
+ }, Je = o`
171
171
  query Announcements($first: Int, $after: Cursor, $filter: AnnouncementFilterInput) {
172
172
  announcements(first: $first, after: $after, filter: $filter) {
173
173
  edges {
@@ -193,7 +193,7 @@ const ue = i`
193
193
  }
194
194
  }
195
195
  }
196
- `, Pe = i`
196
+ `, Xe = o`
197
197
  query WithdrawalRecords($first: Int, $after: Cursor, $filter: WithdrawalRecordFilterInput) {
198
198
  member {
199
199
  withdrawalRecords(first: $first, after: $after, filter: $filter) {
@@ -260,7 +260,7 @@ const ue = i`
260
260
  }
261
261
  }
262
262
  }
263
- `, xe = i`
263
+ `, Ze = o`
264
264
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
265
265
  createGCashWithdrawal(input: $input) {
266
266
  ... on AccountNotVerifiedError {
@@ -283,7 +283,7 @@ const ue = i`
283
283
  }
284
284
  }
285
285
  }
286
- `, We = i`
286
+ `, et = o`
287
287
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
288
288
  createMayaWithdrawal(input: $input) {
289
289
  ... on AccountNotVerifiedError {
@@ -306,7 +306,7 @@ const ue = i`
306
306
  }
307
307
  }
308
308
  }
309
- `, Oe = i`
309
+ `, tt = o`
310
310
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
311
311
  createMayaAppWithdrawal(input: $input) {
312
312
  ... on AccountNotVerifiedError {
@@ -326,7 +326,7 @@ const ue = i`
326
326
  }
327
327
  }
328
328
  }
329
- `, $e = i`
329
+ `, at = o`
330
330
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
331
331
  createBankWithdrawal(input: $input) {
332
332
  ... on MobileNumberNotVerifiedError {
@@ -349,11 +349,11 @@ const ue = i`
349
349
  }
350
350
  }
351
351
  }
352
- `, Ue = i`
352
+ `, rt = o`
353
353
  query RemainingDailyWithdrawalsCount {
354
354
  remainingDailyWithdrawalsCount
355
355
  }
356
- `, Be = i`
356
+ `, nt = o`
357
357
  query DepositRecords($after: Cursor, $first: Int, $filter: DepositRecordFilterInput) {
358
358
  member {
359
359
  depositRecords(after: $after, first: $first, filter: $filter) {
@@ -382,7 +382,7 @@ const ue = i`
382
382
  }
383
383
  }
384
384
  }
385
- `, qe = i`
385
+ `, it = o`
386
386
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
387
387
  createGCashDeposit(input: $input) {
388
388
  ... on DepositPromoMaximumAmountExceededError {
@@ -411,7 +411,7 @@ const ue = i`
411
411
  }
412
412
  }
413
413
  }
414
- `, Fe = i`
414
+ `, ot = o`
415
415
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
416
416
  createMayaDeposit(input: $input) {
417
417
  ... on DepositPromoMaximumAmountExceededError {
@@ -440,7 +440,7 @@ const ue = i`
440
440
  }
441
441
  }
442
442
  }
443
- `, Le = i`
443
+ `, st = o`
444
444
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
445
445
  createMayaAppDeposit(input: $input) {
446
446
  ... on DepositPromoMaximumAmountExceededError {
@@ -469,7 +469,7 @@ const ue = i`
469
469
  }
470
470
  }
471
471
  }
472
- `, Ve = i`
472
+ `, mt = o`
473
473
  mutation CreateAIOQRPHDeposit($input: CreateAIOQRPHDepositInput!) {
474
474
  createAIOQRPHDeposit(input: $input) {
475
475
  ... on DepositPromoMaximumAmountExceededError {
@@ -498,7 +498,7 @@ const ue = i`
498
498
  }
499
499
  }
500
500
  }
501
- `, He = i`
501
+ `, ct = o`
502
502
  mutation CreateAIOOnlineBankDeposit($input: CreateAIOOnlineBankDepositInput!) {
503
503
  createAIOOnlineBankDeposit(input: $input) {
504
504
  ... on DepositPromoMaximumAmountExceededError {
@@ -527,7 +527,7 @@ const ue = i`
527
527
  }
528
528
  }
529
529
  }
530
- `, Ye = i`
530
+ `, lt = o`
531
531
  query Deposit($id: ObjectId!) {
532
532
  node(id: $id) {
533
533
  ... on GCashDeposit {
@@ -571,13 +571,13 @@ const ue = i`
571
571
  }
572
572
  }
573
573
  }
574
- `, Qe = i`
574
+ `, ut = o`
575
575
  query DepositsCount {
576
576
  member {
577
577
  depositsCount
578
578
  }
579
579
  }
580
- `, je = i`
580
+ `, dt = o`
581
581
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
582
582
  member {
583
583
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -618,7 +618,7 @@ const ue = i`
618
618
  }
619
619
  }
620
620
  }
621
- `, Ke = i`
621
+ `, pt = o`
622
622
  query LatestBetRecords {
623
623
  latestBetRecords {
624
624
  id
@@ -638,7 +638,7 @@ const ue = i`
638
638
  dateTimeCreated
639
639
  }
640
640
  }
641
- `, ze = i`
641
+ `, ft = o`
642
642
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
643
643
  member {
644
644
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -664,8 +664,8 @@ const ue = i`
664
664
  }
665
665
  }
666
666
  }
667
- `, fe = i`
668
- ${ue}
667
+ `, Ie = o`
668
+ ${De}
669
669
 
670
670
  fragment PromoFragment on Promo {
671
671
  id
@@ -683,24 +683,24 @@ const ue = i`
683
683
  dateTimeCreated
684
684
  dateTimeLastUpdated
685
685
  }
686
- `, Je = i`
687
- ${fe}
686
+ `, wt = o`
687
+ ${Ie}
688
688
 
689
689
  query Promos {
690
690
  promos {
691
691
  ...PromoFragment
692
692
  }
693
693
  }
694
- `, Xe = i`
695
- ${fe}
694
+ `, ht = o`
695
+ ${Ie}
696
696
 
697
697
  query AvailablePromos($filter: PromoFilterInput) {
698
698
  availablePromos(filter: $filter) {
699
699
  ...PromoFragment
700
700
  }
701
701
  }
702
- `, Se = i`
703
- ${ue}
702
+ `, Be = o`
703
+ ${De}
704
704
 
705
705
  fragment CashbackFragment on Cashback {
706
706
  id
@@ -718,16 +718,16 @@ const ue = i`
718
718
  dateTimeCreated
719
719
  dateTimeLastUpdated
720
720
  }
721
- `, Ze = i`
722
- ${Se}
721
+ `, yt = o`
722
+ ${Be}
723
723
 
724
724
  query Cashbacks {
725
725
  cashbacks {
726
726
  ...CashbackFragment
727
727
  }
728
728
  }
729
- `, et = i`
730
- ${fe}
729
+ `, gt = o`
730
+ ${Ie}
731
731
 
732
732
  query Bonus {
733
733
  bonus {
@@ -755,8 +755,8 @@ const ue = i`
755
755
  dateTimeLastUpdated
756
756
  }
757
757
  }
758
- `, tt = i`
759
- ${Se}
758
+ `, bt = o`
759
+ ${Be}
760
760
 
761
761
  query CashbackBonuses {
762
762
  cashbackBonuses {
@@ -770,7 +770,7 @@ const ue = i`
770
770
  dateTimeLastUpdated
771
771
  }
772
772
  }
773
- `, rt = i`
773
+ `, Et = o`
774
774
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
775
775
  claimCashbackBonus(input: $input) {
776
776
  ... on CashbackBonusDoesNotExistError {
@@ -779,14 +779,14 @@ const ue = i`
779
779
  }
780
780
  }
781
781
  `;
782
- i`
782
+ o`
783
783
  query Member {
784
784
  member {
785
785
  dateTimeLastActive
786
786
  }
787
787
  }
788
788
  `;
789
- const at = i`
789
+ const At = o`
790
790
  query MemberAccount {
791
791
  memberAccount: self {
792
792
  ... on MemberAccount {
@@ -810,8 +810,8 @@ const at = i`
810
810
  }
811
811
  }
812
812
  }
813
- `, nt = i`
814
- ${ue}
813
+ `, St = o`
814
+ ${De}
815
815
 
816
816
  query MemberVerification {
817
817
  memberAccount: self {
@@ -835,7 +835,7 @@ const at = i`
835
835
  }
836
836
  }
837
837
  }
838
- `, ot = i`
838
+ `, kt = o`
839
839
  mutation RegisterMemberAccount(
840
840
  $input: RegisterMemberAccountInput!
841
841
  $referralCode: String
@@ -871,7 +871,7 @@ const at = i`
871
871
  }
872
872
  }
873
873
  }
874
- `, it = i`
874
+ `, Ct = o`
875
875
  mutation RegisterMemberAccountViaMobile(
876
876
  $input: RegisterMemberAccountViaMobileInput!
877
877
  $referralCode: String
@@ -898,7 +898,7 @@ const at = i`
898
898
  }
899
899
  }
900
900
  }
901
- `, st = i`
901
+ `, _t = o`
902
902
  mutation RegisterMemberAccount(
903
903
  $input: RegisterMemberAccountInput_next!
904
904
  $reCAPTCHAResponse: String
@@ -930,7 +930,7 @@ const at = i`
930
930
  }
931
931
  }
932
932
  }
933
- `, mt = i`
933
+ `, Tt = o`
934
934
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
935
935
  registerMayaMemberAccount(input: $input) {
936
936
  ... on AccountNameNotAvailableError {
@@ -938,7 +938,7 @@ const at = i`
938
938
  }
939
939
  }
940
940
  }
941
- `, ct = i`
941
+ `, Mt = o`
942
942
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
943
943
  updateMemberAccount(input: $input) {
944
944
  ... on AccountNameNotAvailableError {
@@ -964,7 +964,7 @@ const at = i`
964
964
  }
965
965
  }
966
966
  }
967
- `, ut = i`
967
+ `, Dt = o`
968
968
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
969
969
  resetPassword(input: $input, verificationCode: $verificationCode) {
970
970
  ... on AccountNotFoundError {
@@ -975,11 +975,11 @@ const at = i`
975
975
  }
976
976
  }
977
977
  }
978
- `, dt = i`
978
+ `, vt = o`
979
979
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
980
980
  deleteMemberAccount(input: $input)
981
981
  }
982
- `, lt = i`
982
+ `, Rt = o`
983
983
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
984
984
  verifyMobileNumber(input: $input) {
985
985
  ... on InvalidSMSVerificationCodeError {
@@ -990,7 +990,7 @@ const at = i`
990
990
  }
991
991
  }
992
992
  }
993
- `, pt = i`
993
+ `, Nt = o`
994
994
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
995
995
  createMemberVerification(input: $input) {
996
996
  ... on FileDoesNotExistError {
@@ -1004,7 +1004,7 @@ const at = i`
1004
1004
  }
1005
1005
  }
1006
1006
  }
1007
- `, ft = i`
1007
+ `, It = o`
1008
1008
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
1009
1009
  updateMemberVerification(input: $input) {
1010
1010
  ... on FileDoesNotExistError {
@@ -1021,7 +1021,7 @@ const at = i`
1021
1021
  }
1022
1022
  }
1023
1023
  }
1024
- `, ht = i`
1024
+ `, Gt = o`
1025
1025
  query ProfileCompletion {
1026
1026
  profileCompletion {
1027
1027
  completionPercentage
@@ -1032,7 +1032,7 @@ const at = i`
1032
1032
  accountPassword
1033
1033
  }
1034
1034
  }
1035
- `, wt = i`
1035
+ `, Pt = o`
1036
1036
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
1037
1037
  sendVerificationCode(input: $input) {
1038
1038
  ... on InvalidPlatformError {
@@ -1043,7 +1043,7 @@ const at = i`
1043
1043
  }
1044
1044
  }
1045
1045
  }
1046
- `, yt = i`
1046
+ `, Wt = o`
1047
1047
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1048
1048
  minimumAmount
1049
1049
  maximumAmount
@@ -1099,12 +1099,12 @@ const at = i`
1099
1099
  multiplier
1100
1100
  }
1101
1101
  }
1102
- `, gt = i`
1102
+ `, xt = o`
1103
1103
  query Platform {
1104
1104
  timezone
1105
1105
  currency
1106
1106
  }
1107
- `, bt = i`
1107
+ `, Ot = o`
1108
1108
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1109
1109
  minimumAmount
1110
1110
  maximumAmount
@@ -1142,6 +1142,12 @@ const at = i`
1142
1142
  mayaAppDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_APP) {
1143
1143
  ...DepositGatewaySettingsCoreData
1144
1144
  }
1145
+ onlineBankDepositGatewaySettings: depositGatewaySettings(gateway: ONLINE_BANK) {
1146
+ ...DepositGatewaySettingsCoreData
1147
+ }
1148
+ qrphDepositGatewaySettings: depositGatewaySettings(gateway: QR_PH) {
1149
+ ...DepositGatewaySettingsCoreData
1150
+ }
1145
1151
  bankWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: BANK) {
1146
1152
  ...WithdrawalGatewaySettingsCoreData
1147
1153
  }
@@ -1154,8 +1160,11 @@ const at = i`
1154
1160
  mayaAppWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA_APP) {
1155
1161
  ...WithdrawalGatewaySettingsCoreData
1156
1162
  }
1163
+ instapayWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: INSTAPAY) {
1164
+ ...WithdrawalGatewaySettingsCoreData
1165
+ }
1157
1166
  }
1158
- `, Et = i`
1167
+ `, $t = o`
1159
1168
  query MayaSession($id: ObjectId!) {
1160
1169
  mayaSession(id: $id) {
1161
1170
  id
@@ -1163,11 +1172,11 @@ const at = i`
1163
1172
  dateTimeCreated
1164
1173
  }
1165
1174
  }
1166
- `, At = i`
1175
+ `, Ut = o`
1167
1176
  mutation ValidateMayaSession {
1168
1177
  validateMayaSession: validMayaSession
1169
1178
  }
1170
- `, St = i`
1179
+ `, Bt = o`
1171
1180
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
1172
1181
  member {
1173
1182
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1192,11 +1201,11 @@ const at = i`
1192
1201
  }
1193
1202
  }
1194
1203
  }
1195
- `, kt = i`
1204
+ `, qt = o`
1196
1205
  query ReferralCode {
1197
1206
  referralCode
1198
1207
  }
1199
- `, Ct = i`
1208
+ `, Ft = o`
1200
1209
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1201
1210
  updateReferralCode(input: $input) {
1202
1211
  ... on ReferralCodeNotAvailableError {
@@ -1204,7 +1213,7 @@ const at = i`
1204
1213
  }
1205
1214
  }
1206
1215
  }
1207
- `, he = i`
1216
+ `, Ge = o`
1208
1217
  fragment ReferralFragment on Referral {
1209
1218
  id
1210
1219
  upline {
@@ -1222,7 +1231,7 @@ const at = i`
1222
1231
  commission
1223
1232
  dateTimeCreated
1224
1233
  }
1225
- `, _t = i`
1234
+ `, Lt = o`
1226
1235
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1227
1236
  member {
1228
1237
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1243,24 +1252,24 @@ const at = i`
1243
1252
  }
1244
1253
  }
1245
1254
 
1246
- ${he}
1247
- `, Tt = i`
1255
+ ${Ge}
1256
+ `, Vt = o`
1248
1257
  query UplinesByName($search: String!, $first: Int) {
1249
1258
  uplinesByName(search: $search, first: $first) {
1250
1259
  ...ReferralFragment
1251
1260
  }
1252
1261
  }
1253
1262
 
1254
- ${he}
1255
- `, Mt = i`
1263
+ ${Ge}
1264
+ `, Ht = o`
1256
1265
  query DownlinesByName($search: String!, $first: Int) {
1257
1266
  downlinesByName(search: $search, first: $first) {
1258
1267
  ...ReferralFragment
1259
1268
  }
1260
1269
  }
1261
1270
 
1262
- ${he}
1263
- `, vt = i`
1271
+ ${Ge}
1272
+ `, Yt = o`
1264
1273
  query ReferralCommission {
1265
1274
  member {
1266
1275
  referralCommission {
@@ -1279,13 +1288,13 @@ const at = i`
1279
1288
  }
1280
1289
  }
1281
1290
  }
1282
- `, Rt = i`
1291
+ `, Qt = o`
1283
1292
  query PointsClubSettings {
1284
1293
  pointsClubSettings {
1285
1294
  multiplier
1286
1295
  }
1287
1296
  }
1288
- `, Nt = i`
1297
+ `, jt = o`
1289
1298
  query Messages($first: Int, $after: Cursor, $filter: MessageFilterInput) {
1290
1299
  messages(first: $first, after: $after, filter: $filter) {
1291
1300
  edges {
@@ -1313,24 +1322,24 @@ const at = i`
1313
1322
  }
1314
1323
  }
1315
1324
  }
1316
- `, Dt = i`
1325
+ `, Kt = o`
1317
1326
  query UnreadMessagesCount($filter: MessageFilterInput) {
1318
1327
  messages(filter: $filter) {
1319
1328
  totalCount
1320
1329
  }
1321
1330
  }
1322
- `, It = i`
1331
+ `, zt = o`
1323
1332
  mutation MarkMessageAsRead($id: ObjectId!) {
1324
1333
  markMessageAsRead(id: $id)
1325
1334
  }
1326
- `, Gt = i`
1335
+ `, Jt = o`
1327
1336
  mutation MarkAllMessageAsRead {
1328
1337
  markAllMessageAsRead
1329
1338
  }
1330
1339
  `;
1331
- function u(n) {
1340
+ function l(i) {
1332
1341
  return {
1333
- name: n,
1342
+ name: i,
1334
1343
  message: {
1335
1344
  AccountNameNotAvailableError: "Username is no longer available",
1336
1345
  AccountNotFoundError: "Account does not exist",
@@ -1380,60 +1389,60 @@ function u(n) {
1380
1389
  InvalidTokenOrSecretAnswerError: "Invalid token or secret answer",
1381
1390
  SessionExpiredError: "Session expired",
1382
1391
  RateLimitExceededError: "Maximum number of requests reached"
1383
- }[n]
1392
+ }[i]
1384
1393
  };
1385
1394
  }
1386
- class Pt {
1395
+ class Xt {
1387
1396
  constructor(e) {
1388
1397
  c(this, "client");
1389
1398
  this.client = e;
1390
1399
  }
1391
1400
  /** aka `Query.self` */
1392
1401
  async memberAccount() {
1393
- const e = await this.client.request(at);
1402
+ const e = await this.client.request(At);
1394
1403
  return e.ok ? {
1395
1404
  ok: !0,
1396
1405
  data: e.data.memberAccount
1397
1406
  } : e;
1398
1407
  }
1399
1408
  async registerMemberAccount(e) {
1400
- const t = await this.client.request(ot, e);
1409
+ const t = await this.client.request(kt, e);
1401
1410
  return t.ok ? t.data.registerMemberAccount ? {
1402
1411
  ok: !1,
1403
- error: u(t.data.registerMemberAccount.__typename)
1412
+ error: l(t.data.registerMemberAccount.__typename)
1404
1413
  } : {
1405
1414
  ok: !0
1406
1415
  } : t;
1407
1416
  }
1408
1417
  async registerMemberAccountViaMobile(e) {
1409
- const t = await this.client.request(it, e);
1418
+ const t = await this.client.request(Ct, e);
1410
1419
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1411
1420
  ok: !1,
1412
- error: u(t.data.registerMemberAccountViaMobile.__typename)
1421
+ error: l(t.data.registerMemberAccountViaMobile.__typename)
1413
1422
  } : {
1414
1423
  ok: !0
1415
1424
  } : t;
1416
1425
  }
1417
1426
  async registerMemberAccount__next(e) {
1418
- const t = await this.client.request(st, e);
1427
+ const t = await this.client.request(_t, e);
1419
1428
  return t.ok ? t.data.registerMemberAccount ? {
1420
1429
  ok: !1,
1421
- error: u(t.data.registerMemberAccount.__typename)
1430
+ error: l(t.data.registerMemberAccount.__typename)
1422
1431
  } : {
1423
1432
  ok: !0
1424
1433
  } : t;
1425
1434
  }
1426
1435
  async updateMemberAccount(e) {
1427
- const t = await this.client.request(ct, e);
1436
+ const t = await this.client.request(Mt, e);
1428
1437
  return t.ok ? t.data.updateMemberAccount ? {
1429
1438
  ok: !1,
1430
- error: u(t.data.updateMemberAccount.__typename)
1439
+ error: l(t.data.updateMemberAccount.__typename)
1431
1440
  } : {
1432
1441
  ok: !0
1433
1442
  } : t;
1434
1443
  }
1435
1444
  async deleteMemberAccount(e) {
1436
- const t = await this.client.request(dt, e);
1445
+ const t = await this.client.request(vt, e);
1437
1446
  return t.ok ? t.data.deleteMemberAccount ? {
1438
1447
  ok: !0
1439
1448
  } : {
@@ -1446,66 +1455,66 @@ class Pt {
1446
1455
  }
1447
1456
  async resetPassword(e) {
1448
1457
  const t = await this.client.request(
1449
- ut,
1458
+ Dt,
1450
1459
  e
1451
1460
  );
1452
1461
  return t.ok ? t.data.resetPassword ? {
1453
1462
  ok: !1,
1454
- error: u(t.data.resetPassword.__typename)
1463
+ error: l(t.data.resetPassword.__typename)
1455
1464
  } : {
1456
1465
  ok: !0
1457
1466
  } : t;
1458
1467
  }
1459
1468
  async profileCompletion() {
1460
- const e = await this.client.request(ht);
1469
+ const e = await this.client.request(Gt);
1461
1470
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1462
1471
  }
1463
1472
  /** @deprecated */
1464
1473
  async platform() {
1465
- return await this.client.request(yt);
1474
+ return await this.client.request(Wt);
1466
1475
  }
1467
1476
  /** @deprecated */
1468
1477
  async sendVerificationCode(e) {
1469
- const t = await this.client.request(wt, e);
1478
+ const t = await this.client.request(Pt, e);
1470
1479
  return t.ok ? t.data.sendVerificationCode ? {
1471
1480
  ok: !1,
1472
- error: u(t.data.sendVerificationCode.__typename)
1481
+ error: l(t.data.sendVerificationCode.__typename)
1473
1482
  } : {
1474
1483
  ok: !0
1475
1484
  } : t;
1476
1485
  }
1477
1486
  async paymentSettings() {
1478
- return await this.client.request(bt);
1487
+ return await this.client.request(Ot);
1479
1488
  }
1480
1489
  async verifyMobileNumber(e) {
1481
- const t = await this.client.request(lt, e);
1490
+ const t = await this.client.request(Rt, e);
1482
1491
  return t.ok ? t.data.verifyMobileNumber ? {
1483
1492
  ok: !1,
1484
- error: u(t.data.verifyMobileNumber.__typename)
1493
+ error: l(t.data.verifyMobileNumber.__typename)
1485
1494
  } : {
1486
1495
  ok: !0
1487
1496
  } : t;
1488
1497
  }
1489
1498
  async createMemberVerification(e) {
1490
- const t = await this.client.request(pt, e);
1499
+ const t = await this.client.request(Nt, e);
1491
1500
  return t.ok ? t.data.createMemberVerification ? {
1492
1501
  ok: !1,
1493
- error: u(t.data.createMemberVerification.__typename)
1502
+ error: l(t.data.createMemberVerification.__typename)
1494
1503
  } : {
1495
1504
  ok: !0
1496
1505
  } : t;
1497
1506
  }
1498
1507
  async updateMemberVerification(e) {
1499
- const t = await this.client.request(ft, e);
1508
+ const t = await this.client.request(It, e);
1500
1509
  return t.ok ? t.data.updateMemberVerification ? {
1501
1510
  ok: !1,
1502
- error: u(t.data.updateMemberVerification.__typename)
1511
+ error: l(t.data.updateMemberVerification.__typename)
1503
1512
  } : {
1504
1513
  ok: !0
1505
1514
  } : t;
1506
1515
  }
1507
1516
  async memberVerification() {
1508
- const e = await this.client.request(nt);
1517
+ const e = await this.client.request(St);
1509
1518
  return e.ok ? {
1510
1519
  ok: !0,
1511
1520
  data: e.data.memberAccount.verification
@@ -1513,7 +1522,7 @@ class Pt {
1513
1522
  }
1514
1523
  async announcements(e) {
1515
1524
  const t = await this.client.request(
1516
- Ge,
1525
+ Je,
1517
1526
  e
1518
1527
  );
1519
1528
  return t.ok ? {
@@ -1522,43 +1531,43 @@ class Pt {
1522
1531
  } : t;
1523
1532
  }
1524
1533
  async registerMayaMemberAccount(e) {
1525
- const t = await this.client.request(mt, e);
1534
+ const t = await this.client.request(Tt, e);
1526
1535
  return t.ok ? t.data.registerMayaMemberAccount ? {
1527
1536
  ok: !1,
1528
- error: u(t.data.registerMayaMemberAccount.__typename)
1537
+ error: l(t.data.registerMayaMemberAccount.__typename)
1529
1538
  } : {
1530
1539
  ok: !0
1531
1540
  } : t;
1532
1541
  }
1533
1542
  async referralCode() {
1534
- const e = await this.client.request(kt);
1543
+ const e = await this.client.request(qt);
1535
1544
  return e.ok ? {
1536
1545
  ok: !0,
1537
1546
  data: e.data.referralCode
1538
1547
  } : e;
1539
1548
  }
1540
1549
  async updateReferralCode(e) {
1541
- const t = await this.client.request(Ct, e);
1550
+ const t = await this.client.request(Ft, e);
1542
1551
  return t.ok ? t.data.updateReferralCode ? {
1543
1552
  ok: !1,
1544
- error: u(t.data.updateReferralCode.__typename)
1553
+ error: l(t.data.updateReferralCode.__typename)
1545
1554
  } : {
1546
1555
  ok: !0
1547
1556
  } : t;
1548
1557
  }
1549
1558
  async pointsClubSettings() {
1550
- const e = await this.client.request(Rt);
1559
+ const e = await this.client.request(Qt);
1551
1560
  return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
1552
1561
  }
1553
1562
  }
1554
- function w(n, e) {
1555
- const t = de[n] ? de[n] : de[500];
1563
+ function h(i, e) {
1564
+ const t = ve[i] ? ve[i] : ve[500];
1556
1565
  return {
1557
1566
  name: t.name,
1558
1567
  message: e ?? t.message
1559
1568
  };
1560
1569
  }
1561
- const de = {
1570
+ const ve = {
1562
1571
  400: { name: "HttpBadRequest", message: "Bad Request" },
1563
1572
  401: { name: "HttpUnauthorized", message: "Unauthorized" },
1564
1573
  403: { name: "HttpForbidden", message: "Forbidden" },
@@ -1567,7 +1576,7 @@ const de = {
1567
1576
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1568
1577
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1569
1578
  };
1570
- class xt {
1579
+ class Zt {
1571
1580
  constructor(e) {
1572
1581
  c(this, "url");
1573
1582
  c(this, "platform");
@@ -1580,33 +1589,33 @@ class xt {
1580
1589
  async createSession(e) {
1581
1590
  const t = new Headers(this.headers);
1582
1591
  if (e.name) {
1583
- const r = `${e.name}:${e.password}`, a = Buffer.from(r).toString("base64");
1584
- t.set("Authorization", `Basic ${a}`);
1592
+ const a = `${e.name}:${e.password}`, r = Buffer.from(a).toString("base64");
1593
+ t.set("Authorization", `Basic ${r}`);
1585
1594
  }
1586
1595
  if (e.mobileNumber) {
1587
- const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
1588
- console.log(`MobileNumberOTP ${a}`), t.set("Authorization", `MobileNumberOTP ${a}`);
1596
+ const a = `${e.mobileNumber}:${e.verificationCode}`, r = Buffer.from(a).toString("base64");
1597
+ console.log(`MobileNumberOTP ${r}`), t.set("Authorization", `MobileNumberOTP ${r}`);
1589
1598
  }
1590
1599
  e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`), e.token && t.set("Authorization", `Token ${e.token}`);
1591
1600
  try {
1592
- const r = await fetch(`${this.url}/sessions`, {
1601
+ const a = await fetch(`${this.url}/sessions`, {
1593
1602
  method: "POST",
1594
1603
  headers: t
1595
- }), a = await r.json();
1596
- return r.ok ? {
1604
+ }), r = await a.json();
1605
+ return a.ok ? {
1597
1606
  ok: !0,
1598
- data: a
1599
- } : a.code === "ACCOUNT_BLACKLISTED" ? {
1607
+ data: r
1608
+ } : r.code === "ACCOUNT_BLACKLISTED" ? {
1600
1609
  ok: !1,
1601
- error: u("AccountBlacklistedError")
1610
+ error: l("AccountBlacklistedError")
1602
1611
  } : {
1603
1612
  ok: !1,
1604
- error: w(r.status)
1613
+ error: h(a.status)
1605
1614
  };
1606
1615
  } catch {
1607
1616
  return {
1608
1617
  ok: !1,
1609
- error: w(500)
1618
+ error: h(500)
1610
1619
  };
1611
1620
  }
1612
1621
  }
@@ -1615,27 +1624,27 @@ class xt {
1615
1624
  if (e.type === "SECURITY_QUESTION") {
1616
1625
  t.set("Authorization", `Bearer ${e.token}`);
1617
1626
  try {
1618
- const r = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1627
+ const a = await fetch(`${this.url}/session/${e.token}/authenticate`, {
1619
1628
  method: "POST",
1620
1629
  headers: t,
1621
1630
  body: JSON.stringify({
1622
1631
  secretAnswer: e.secretAnswer
1623
1632
  })
1624
- }), a = await r.json();
1625
- return r.ok ? {
1633
+ }), r = await a.json();
1634
+ return a.ok ? {
1626
1635
  ok: !0,
1627
- data: a
1628
- } : r.status === 401 || r.status === 403 ? {
1636
+ data: r
1637
+ } : a.status === 401 || a.status === 403 ? {
1629
1638
  ok: !1,
1630
- error: u("InvalidTokenOrSecretAnswerError")
1639
+ error: l("InvalidTokenOrSecretAnswerError")
1631
1640
  } : {
1632
1641
  ok: !1,
1633
- error: w(r.status)
1642
+ error: h(a.status)
1634
1643
  };
1635
1644
  } catch {
1636
1645
  return {
1637
1646
  ok: !1,
1638
- error: w(500)
1647
+ error: h(500)
1639
1648
  };
1640
1649
  }
1641
1650
  }
@@ -1645,27 +1654,27 @@ class xt {
1645
1654
  const t = new Headers(this.headers);
1646
1655
  t.append("Authorization", `Bearer ${e}`);
1647
1656
  try {
1648
- const r = await fetch(`${this.url}/session:refresh`, {
1657
+ const a = await fetch(`${this.url}/session:refresh`, {
1649
1658
  method: "POST",
1650
1659
  headers: t
1651
- }), a = await r.json();
1652
- return r.ok ? {
1660
+ }), r = await a.json();
1661
+ return a.ok ? {
1653
1662
  ok: !0,
1654
- data: a
1655
- } : a.code === "ACCOUNT_BLACKLISTED" ? {
1663
+ data: r
1664
+ } : r.code === "ACCOUNT_BLACKLISTED" ? {
1656
1665
  ok: !1,
1657
- error: u("AccountBlacklistedError")
1658
- } : r.status === 403 || r.status === 401 ? {
1666
+ error: l("AccountBlacklistedError")
1667
+ } : a.status === 403 || a.status === 401 ? {
1659
1668
  ok: !1,
1660
- error: u("InvalidTokenError")
1669
+ error: l("InvalidTokenError")
1661
1670
  } : {
1662
1671
  ok: !1,
1663
- error: w(r.status)
1672
+ error: h(a.status)
1664
1673
  };
1665
1674
  } catch {
1666
1675
  return {
1667
1676
  ok: !1,
1668
- error: w(500)
1677
+ error: h(500)
1669
1678
  };
1670
1679
  }
1671
1680
  }
@@ -1673,13 +1682,13 @@ class xt {
1673
1682
  const t = new Headers(this.headers);
1674
1683
  t.append("Authorization", `Bearer ${e}`);
1675
1684
  try {
1676
- const r = await fetch(`${this.url}/session`, {
1685
+ const a = await fetch(`${this.url}/session`, {
1677
1686
  method: "DELETE",
1678
1687
  headers: t
1679
1688
  });
1680
- return r.ok ? { ok: !0 } : { ok: !1, error: w(r.status) };
1689
+ return a.ok ? { ok: !0 } : { ok: !1, error: h(a.status) };
1681
1690
  } catch {
1682
- return { ok: !1, error: w(500) };
1691
+ return { ok: !1, error: h(500) };
1683
1692
  }
1684
1693
  }
1685
1694
  async verifySession(e) {
@@ -1696,8 +1705,8 @@ class xt {
1696
1705
  }
1697
1706
  async sendVerificationCode(e) {
1698
1707
  if (e.channel === "EMAIL") throw new Error("Email channel is not yet supported");
1699
- function t(r) {
1700
- switch (r) {
1708
+ function t(a) {
1709
+ switch (a) {
1701
1710
  case "MEMBER_NOT_FOUND":
1702
1711
  return "AccountNotFoundError";
1703
1712
  case "RATE_LIMIT_REACH":
@@ -1709,34 +1718,34 @@ class xt {
1709
1718
  }
1710
1719
  }
1711
1720
  try {
1712
- const r = await fetch(`${this.url}/otps`, {
1721
+ const a = await fetch(`${this.url}/otps`, {
1713
1722
  method: "POST",
1714
1723
  headers: this.headers,
1715
1724
  body: JSON.stringify(e)
1716
1725
  });
1717
- if (r.status === 403) {
1718
- const a = await r.json(), s = t(a.message);
1726
+ if (a.status === 403) {
1727
+ const r = await a.json(), s = t(r.message);
1719
1728
  return s ? {
1720
1729
  ok: !1,
1721
- error: u(s)
1730
+ error: l(s)
1722
1731
  } : {
1723
1732
  ok: !1,
1724
- error: w(r.status, a.message)
1733
+ error: h(a.status, r.message)
1725
1734
  };
1726
1735
  }
1727
- return r.ok ? { ok: !0 } : {
1736
+ return a.ok ? { ok: !0 } : {
1728
1737
  ok: !1,
1729
- error: w(r.status)
1738
+ error: h(a.status)
1730
1739
  };
1731
1740
  } catch {
1732
1741
  return {
1733
1742
  ok: !1,
1734
- error: w(500)
1743
+ error: h(500)
1735
1744
  };
1736
1745
  }
1737
1746
  }
1738
1747
  }
1739
- class Wt {
1748
+ class ea {
1740
1749
  constructor(e) {
1741
1750
  c(this, "url");
1742
1751
  c(this, "siteId");
@@ -1751,35 +1760,35 @@ class Wt {
1751
1760
  } : e;
1752
1761
  }
1753
1762
  async games(e) {
1754
- var a, s, m, d, p, f, h, l, k, C, _, T, M, v, y, R, N, A, D, I, G, P, S, x;
1763
+ var r, s, m, u, p, f, w, d, k, C, _, T, M, D, y, v, R, A, N, I, G, P, S, W;
1755
1764
  const t = new URLSearchParams();
1756
- e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (a = e == null ? void 0 : e.filter) == null ? void 0 : a.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (d = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && d.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (p = e == null ? void 0 : e.filter) == null ? void 0 : p.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (l = (h = e == null ? void 0 : e.filter) == null ? void 0 : h.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && C.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (v = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && v.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (R = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.provider) != null && R.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (D = e == null ? void 0 : e.filter) == null ? void 0 : D.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
1765
+ e != null && e.first && t.set("first", e.first.toString()), e != null && e.after && t.set("after", e.after), e != null && e.search && t.set("search", e.search), (s = (r = e == null ? void 0 : e.filter) == null ? void 0 : r.type) != null && s.equal && t.set("filter[type][eq]", e.filter.type.equal), (u = (m = e == null ? void 0 : e.filter) == null ? void 0 : m.type) != null && u.notEqual && t.set("filter[type][neq]", e.filter.type.notEqual), (f = (p = e == null ? void 0 : e.filter) == null ? void 0 : p.type) != null && f.in && t.set("filter[type][in]", e.filter.type.in.join(",")), (d = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && d.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (C = (k = e == null ? void 0 : e.filter) == null ? void 0 : k.provider) != null && C.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (T = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && T.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (D = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && D.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (v = (y = e == null ? void 0 : e.filter) == null ? void 0 : y.provider) != null && v.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (A = (R = e == null ? void 0 : e.filter) == null ? void 0 : R.tags) != null && A.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (I = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.tags) != null && I.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (P = (G = e == null ? void 0 : e.filter) == null ? void 0 : G.tags) != null && P.in && t.set(
1757
1766
  "filter[tags][in]",
1758
1767
  e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1759
- ), (x = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && x.notIn && t.set(
1768
+ ), (W = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && W.notIn && t.set(
1760
1769
  "filter[tags][nin]",
1761
1770
  e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1762
1771
  );
1763
- const r = await this.getJson("/games", t);
1764
- return r.ok ? {
1772
+ const a = await this.getJson("/games", t);
1773
+ return a.ok ? {
1765
1774
  ok: !0,
1766
1775
  data: {
1767
- edges: r.data.data.map((E) => ({
1776
+ edges: a.data.data.map((E) => ({
1768
1777
  node: E,
1769
1778
  cursor: E.cursor
1770
1779
  })),
1771
- totalCount: r.data.totalCount ?? 0,
1780
+ totalCount: a.data.totalCount ?? 0,
1772
1781
  pageInfo: {
1773
- hasNextPage: !!r.data.next,
1774
- endCursor: r.data.next
1782
+ hasNextPage: !!a.data.next,
1783
+ endCursor: a.data.next
1775
1784
  }
1776
1785
  }
1777
- } : r;
1786
+ } : a;
1778
1787
  }
1779
1788
  async game(e) {
1780
- var r;
1789
+ var a;
1781
1790
  const t = await this.getJson(`/games/${e}`);
1782
- return ((r = t.error) == null ? void 0 : r.name) === "HttpNotFound" ? {
1791
+ return ((a = t.error) == null ? void 0 : a.name) === "HttpNotFound" ? {
1783
1792
  ok: !0,
1784
1793
  data: null
1785
1794
  } : t.ok ? {
@@ -1788,7 +1797,7 @@ class Wt {
1788
1797
  } : t;
1789
1798
  }
1790
1799
  async getJson(e, t) {
1791
- const r = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1800
+ const a = new Request(`${this.url}${e}?${(t == null ? void 0 : t.toString()) ?? ""}`, {
1792
1801
  method: "GET",
1793
1802
  headers: {
1794
1803
  Accept: "application/json",
@@ -1798,52 +1807,52 @@ class Wt {
1798
1807
  }
1799
1808
  });
1800
1809
  try {
1801
- const a = await fetch(r);
1802
- return a.ok ? {
1810
+ const r = await fetch(a);
1811
+ return r.ok ? {
1803
1812
  ok: !0,
1804
- data: await a.json()
1813
+ data: await r.json()
1805
1814
  } : {
1806
1815
  ok: !1,
1807
- error: w(a.status)
1816
+ error: h(r.status)
1808
1817
  };
1809
1818
  } catch {
1810
1819
  return {
1811
1820
  ok: !1,
1812
- error: w(500)
1821
+ error: h(500)
1813
1822
  };
1814
1823
  }
1815
1824
  }
1816
1825
  }
1817
- class Ot {
1826
+ class ta {
1818
1827
  constructor(e) {
1819
1828
  c(this, "client");
1820
1829
  this.client = e;
1821
1830
  }
1822
1831
  async file(e) {
1823
- const t = await this.client.request(Me, e);
1832
+ const t = await this.client.request(He, e);
1824
1833
  return t.ok ? {
1825
1834
  ok: !0,
1826
1835
  data: t.data.node
1827
1836
  } : t;
1828
1837
  }
1829
1838
  async uploadPrivateImageFile(e) {
1830
- const t = await this.client.upload(ve, e);
1839
+ const t = await this.client.upload(Ye, e);
1831
1840
  return t.ok ? t.data.uploadPrivateImageFile ? {
1832
1841
  ok: !1,
1833
- error: u(t.data.uploadPrivateImageFile.__typename)
1842
+ error: l(t.data.uploadPrivateImageFile.__typename)
1834
1843
  } : {
1835
1844
  ok: !0
1836
1845
  } : t;
1837
1846
  }
1838
1847
  }
1839
- class $t {
1848
+ class aa {
1840
1849
  constructor(e) {
1841
1850
  c(this, "client");
1842
1851
  this.client = e;
1843
1852
  }
1844
1853
  async gameSession(e) {
1845
1854
  const t = await this.client.request(
1846
- be.legacy,
1855
+ Oe.legacy,
1847
1856
  e
1848
1857
  );
1849
1858
  return t.ok ? {
@@ -1852,16 +1861,16 @@ class $t {
1852
1861
  } : t;
1853
1862
  }
1854
1863
  async createGameSession(e) {
1855
- const t = await this.client.request(Ee, e);
1864
+ const t = await this.client.request($e, e);
1856
1865
  return t.ok ? t.data.createGameSession ? {
1857
1866
  ok: !1,
1858
- error: u(t.data.createGameSession.__typename)
1867
+ error: l(t.data.createGameSession.__typename)
1859
1868
  } : {
1860
1869
  ok: !0
1861
1870
  } : t;
1862
1871
  }
1863
1872
  async endGameSession(e) {
1864
- const t = await this.client.request(Ae.legacy, e);
1873
+ const t = await this.client.request(Ue.legacy, e);
1865
1874
  return t.ok ? t.data.endGameSession ? {
1866
1875
  ok: !1,
1867
1876
  error: {
@@ -1873,98 +1882,98 @@ class $t {
1873
1882
  } : t;
1874
1883
  }
1875
1884
  }
1876
- class Ut {
1885
+ class ra {
1877
1886
  constructor(e) {
1878
1887
  c(this, "client");
1879
1888
  this.client = e;
1880
1889
  }
1881
1890
  async latestBetRecords() {
1882
- const e = await this.client.request(Ke);
1891
+ const e = await this.client.request(pt);
1883
1892
  return e.ok ? {
1884
1893
  ok: !0,
1885
1894
  data: e.data.latestBetRecords
1886
1895
  } : e;
1887
1896
  }
1888
1897
  async platform() {
1889
- const e = await this.client.request(gt);
1898
+ const e = await this.client.request(xt);
1890
1899
  return e.ok ? {
1891
1900
  ok: !0,
1892
1901
  data: e.data
1893
1902
  } : e;
1894
1903
  }
1895
1904
  }
1896
- class Bt {
1905
+ class na {
1897
1906
  constructor(e) {
1898
1907
  c(this, "client");
1899
1908
  this.client = e;
1900
1909
  }
1901
1910
  async betRecords(e) {
1902
1911
  const t = await this.client.request(
1903
- je,
1912
+ dt,
1904
1913
  e
1905
1914
  );
1906
1915
  return t.ok ? { ok: t.ok, data: t.data.member.betRecords } : t;
1907
1916
  }
1908
1917
  async transactionRecords(e) {
1909
- const t = await this.client.request(ze, e);
1918
+ const t = await this.client.request(ft, e);
1910
1919
  return t.ok ? { ok: t.ok, data: t.data.member.transactionRecords } : t;
1911
1920
  }
1912
1921
  async withdrawalRecords(e) {
1913
1922
  const t = await this.client.request(
1914
- Pe,
1923
+ Xe,
1915
1924
  e
1916
1925
  );
1917
1926
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
1918
1927
  }
1919
1928
  async depositRecords(e) {
1920
1929
  const t = await this.client.request(
1921
- Be,
1930
+ nt,
1922
1931
  e
1923
1932
  );
1924
1933
  return t.ok ? { ok: t.ok, data: t.data.member.depositRecords } : t;
1925
1934
  }
1926
1935
  async depositsCount() {
1927
- const e = await this.client.request(Qe);
1936
+ const e = await this.client.request(ut);
1928
1937
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1929
1938
  }
1930
1939
  async pointsWalletTransactions(e) {
1931
- const t = await this.client.request(Ie, e);
1940
+ const t = await this.client.request(ze, e);
1932
1941
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1933
1942
  }
1934
1943
  async activityRecords(e) {
1935
1944
  const t = await this.client.request(
1936
- St,
1945
+ Bt,
1937
1946
  e
1938
1947
  );
1939
1948
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1940
1949
  }
1941
1950
  async referrals(e) {
1942
1951
  const t = await this.client.request(
1943
- _t,
1952
+ Lt,
1944
1953
  e
1945
1954
  );
1946
1955
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1947
1956
  }
1948
1957
  async referralCommission() {
1949
- const e = await this.client.request(vt);
1958
+ const e = await this.client.request(Yt);
1950
1959
  return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
1951
1960
  }
1952
1961
  async uplinesByName(e) {
1953
1962
  const t = await this.client.request(
1954
- Tt,
1963
+ Vt,
1955
1964
  e
1956
1965
  );
1957
1966
  return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
1958
1967
  }
1959
1968
  async downlinesByName(e) {
1960
1969
  const t = await this.client.request(
1961
- Mt,
1970
+ Ht,
1962
1971
  e
1963
1972
  );
1964
1973
  return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
1965
1974
  }
1966
1975
  }
1967
- class qt {
1976
+ class ia {
1968
1977
  constructor(e) {
1969
1978
  c(this, "url");
1970
1979
  this.url = e.url;
@@ -1976,21 +1985,21 @@ class qt {
1976
1985
  ];
1977
1986
  }
1978
1987
  }
1979
- class Ft {
1988
+ class oa {
1980
1989
  constructor(e) {
1981
1990
  c(this, "client");
1982
1991
  this.client = e;
1983
1992
  }
1984
1993
  async messages(e) {
1985
1994
  const t = await this.client.request(
1986
- Nt,
1995
+ jt,
1987
1996
  e
1988
1997
  );
1989
1998
  return t.ok ? { ok: t.ok, data: t.data.messages } : t;
1990
1999
  }
1991
2000
  async unreadMessagesCount(e) {
1992
2001
  const t = await this.client.request(
1993
- Dt,
2002
+ Kt,
1994
2003
  {
1995
2004
  ...e,
1996
2005
  filter: {
@@ -2004,7 +2013,7 @@ class Ft {
2004
2013
  return t.ok ? { ok: t.ok, data: t.data.messages.totalCount } : t;
2005
2014
  }
2006
2015
  async markMessageAsRead(e) {
2007
- const t = await this.client.request(It, e);
2016
+ const t = await this.client.request(zt, e);
2008
2017
  return t.ok ? t.data.markMessageAsRead ? {
2009
2018
  ok: !0
2010
2019
  } : {
@@ -2017,7 +2026,7 @@ class Ft {
2017
2026
  }
2018
2027
  async markAllMessageAsRead() {
2019
2028
  const e = await this.client.request(
2020
- Gt
2029
+ Jt
2021
2030
  );
2022
2031
  return e.ok ? e.data.markAllMessageAsRead ? {
2023
2032
  ok: !0
@@ -2030,35 +2039,35 @@ class Ft {
2030
2039
  } : e;
2031
2040
  }
2032
2041
  }
2033
- class Lt {
2042
+ class sa {
2034
2043
  constructor(e) {
2035
2044
  c(this, "client");
2036
2045
  this.client = e;
2037
2046
  }
2038
2047
  async promos() {
2039
- const e = await this.client.request(Je);
2048
+ const e = await this.client.request(wt);
2040
2049
  return e.ok ? { ok: e.ok, data: e.data.promos } : e;
2041
2050
  }
2042
2051
  async cashbacks() {
2043
- const e = await this.client.request(Ze);
2052
+ const e = await this.client.request(yt);
2044
2053
  return e.ok ? { ok: e.ok, data: e.data.cashbacks } : e;
2045
2054
  }
2046
2055
  async availablePromos(e) {
2047
2056
  const t = await this.client.request(
2048
- Xe,
2057
+ ht,
2049
2058
  e
2050
2059
  );
2051
2060
  return t.ok ? { ok: t.ok, data: t.data.availablePromos } : t;
2052
2061
  }
2053
2062
  async cashbackBonuses() {
2054
- const e = await this.client.request(tt);
2063
+ const e = await this.client.request(bt);
2055
2064
  return e.ok ? { ok: e.ok, data: e.data.cashbackBonuses } : e;
2056
2065
  }
2057
2066
  async claimCashbackBonus(e) {
2058
- const t = await this.client.request(rt, e);
2067
+ const t = await this.client.request(Et, e);
2059
2068
  return t.ok ? t.data.claimCashbackBonus ? {
2060
2069
  ok: !1,
2061
- error: u(t.data.claimCashbackBonus.__typename)
2070
+ error: l(t.data.claimCashbackBonus.__typename)
2062
2071
  } : {
2063
2072
  ok: !0
2064
2073
  } : {
@@ -2067,146 +2076,146 @@ class Lt {
2067
2076
  };
2068
2077
  }
2069
2078
  async bonus() {
2070
- const e = await this.client.request(et);
2079
+ const e = await this.client.request(gt);
2071
2080
  return e.ok ? { ok: e.ok, data: e.data.bonus } : e;
2072
2081
  }
2073
2082
  async wallet() {
2074
- const e = await this.client.request(Re);
2083
+ const e = await this.client.request(Qe);
2075
2084
  return e.ok ? { ok: e.ok, data: e.data.wallet } : e;
2076
2085
  }
2077
2086
  async deposit(e) {
2078
2087
  const t = await this.client.request(
2079
- Ye,
2088
+ lt,
2080
2089
  e
2081
2090
  );
2082
2091
  return t.ok ? { ok: t.ok, data: t.data.node } : t;
2083
2092
  }
2084
2093
  async createGCashDeposit(e) {
2085
- const t = await this.client.request(qe, e);
2094
+ const t = await this.client.request(it, e);
2086
2095
  return t.ok ? t.data.createGCashDeposit ? {
2087
2096
  ok: !1,
2088
- error: u(t.data.createGCashDeposit.__typename)
2097
+ error: l(t.data.createGCashDeposit.__typename)
2089
2098
  } : {
2090
2099
  ok: !0
2091
2100
  } : t;
2092
2101
  }
2093
2102
  async createMayaDeposit(e) {
2094
- const t = await this.client.request(Fe, e);
2103
+ const t = await this.client.request(ot, e);
2095
2104
  return t.ok ? t.data.createMayaDeposit ? {
2096
2105
  ok: !1,
2097
- error: u(t.data.createMayaDeposit.__typename)
2106
+ error: l(t.data.createMayaDeposit.__typename)
2098
2107
  } : {
2099
2108
  ok: !0
2100
2109
  } : t;
2101
2110
  }
2102
2111
  async createAIOQRPHDeposit(e) {
2103
- const t = await this.client.request(Ve, e);
2112
+ const t = await this.client.request(mt, e);
2104
2113
  return t.ok ? t.data.createAIOQRPHDeposit ? {
2105
2114
  ok: !1,
2106
- error: u(t.data.createAIOQRPHDeposit.__typename)
2115
+ error: l(t.data.createAIOQRPHDeposit.__typename)
2107
2116
  } : {
2108
2117
  ok: !0
2109
2118
  } : t;
2110
2119
  }
2111
2120
  async createAIOOnlineBankDeposit(e) {
2112
- const t = await this.client.request(He, e);
2121
+ const t = await this.client.request(ct, e);
2113
2122
  return t.ok ? t.data.createAIOOnlineBankDeposit ? {
2114
2123
  ok: !1,
2115
- error: u(t.data.createAIOOnlineBankDeposit.__typename)
2124
+ error: l(t.data.createAIOOnlineBankDeposit.__typename)
2116
2125
  } : {
2117
2126
  ok: !0
2118
2127
  } : t;
2119
2128
  }
2120
2129
  async createMayaAppDeposit(e) {
2121
- const t = await this.client.request(Le, e);
2130
+ const t = await this.client.request(st, e);
2122
2131
  return t.ok ? t.data.createMayaAppDeposit ? {
2123
2132
  ok: !1,
2124
- error: u(t.data.createMayaAppDeposit.__typename)
2133
+ error: l(t.data.createMayaAppDeposit.__typename)
2125
2134
  } : {
2126
2135
  ok: !0
2127
2136
  } : t;
2128
2137
  }
2129
2138
  async createGCashWithdrawal(e) {
2130
- const t = await this.client.request(xe, e);
2139
+ const t = await this.client.request(Ze, e);
2131
2140
  return t.ok ? t.data.createGCashWithdrawal ? {
2132
2141
  ok: !1,
2133
- error: u(t.data.createGCashWithdrawal.__typename)
2142
+ error: l(t.data.createGCashWithdrawal.__typename)
2134
2143
  } : {
2135
2144
  ok: !0
2136
2145
  } : t;
2137
2146
  }
2138
2147
  async createMayaWithdrawal(e) {
2139
- const t = await this.client.request(We, e);
2148
+ const t = await this.client.request(et, e);
2140
2149
  return t.ok ? t.data.createMayaWithdrawal ? {
2141
2150
  ok: !1,
2142
- error: u(t.data.createMayaWithdrawal.__typename)
2151
+ error: l(t.data.createMayaWithdrawal.__typename)
2143
2152
  } : {
2144
2153
  ok: !0
2145
2154
  } : t;
2146
2155
  }
2147
2156
  async createMayaAppWithdrawal(e) {
2148
- const t = await this.client.request(Oe, e);
2157
+ const t = await this.client.request(tt, e);
2149
2158
  return t.ok ? t.data.createMayaAppWithdrawal ? {
2150
2159
  ok: !1,
2151
- error: u(t.data.createMayaAppWithdrawal.__typename)
2160
+ error: l(t.data.createMayaAppWithdrawal.__typename)
2152
2161
  } : {
2153
2162
  ok: !0
2154
2163
  } : t;
2155
2164
  }
2156
2165
  async createBankWithdrawal(e) {
2157
- const t = await this.client.request($e, e);
2166
+ const t = await this.client.request(at, e);
2158
2167
  return t.ok ? t.data.createBankWithdrawal ? {
2159
2168
  ok: !1,
2160
- error: u(t.data.createBankWithdrawal.__typename)
2169
+ error: l(t.data.createBankWithdrawal.__typename)
2161
2170
  } : {
2162
2171
  ok: !0
2163
2172
  } : t;
2164
2173
  }
2165
2174
  async remainingDailyWithdrawalsCount() {
2166
2175
  const e = await this.client.request(
2167
- Ue
2176
+ rt
2168
2177
  );
2169
2178
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
2170
2179
  }
2171
2180
  async pointsWallet() {
2172
- const e = await this.client.request(Ne);
2181
+ const e = await this.client.request(je);
2173
2182
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
2174
2183
  }
2175
2184
  async redeemPointsToCash(e) {
2176
- const t = await this.client.request(De, e);
2185
+ const t = await this.client.request(Ke, e);
2177
2186
  return t.ok ? t.data.redeemPointsToCash ? {
2178
2187
  ok: !1,
2179
- error: u(t.data.redeemPointsToCash.__typename)
2188
+ error: l(t.data.redeemPointsToCash.__typename)
2180
2189
  } : {
2181
2190
  ok: !0
2182
2191
  } : t;
2183
2192
  }
2184
2193
  async mayaSession(e) {
2185
2194
  const t = await this.client.request(
2186
- Et,
2195
+ $t,
2187
2196
  e
2188
2197
  );
2189
2198
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
2190
2199
  }
2191
2200
  async gameSession(e) {
2192
2201
  const t = await this.client.request(
2193
- be.current,
2202
+ Oe.current,
2194
2203
  e
2195
2204
  );
2196
2205
  return t.ok ? { ok: !0, data: t.data.node } : t;
2197
2206
  }
2198
2207
  async createGameSession(e) {
2199
- const t = await this.client.request(Ee, e);
2208
+ const t = await this.client.request($e, e);
2200
2209
  return t.ok ? t.data.createGameSession ? {
2201
2210
  ok: !1,
2202
- error: u(t.data.createGameSession.__typename)
2211
+ error: l(t.data.createGameSession.__typename)
2203
2212
  } : {
2204
2213
  ok: !0
2205
2214
  } : t;
2206
2215
  }
2207
2216
  async endGameSession(e) {
2208
2217
  const t = await this.client.request(
2209
- Ae.current,
2218
+ Ue.current,
2210
2219
  e
2211
2220
  );
2212
2221
  return t.ok ? t.data.endGameSession ? {
@@ -2221,7 +2230,7 @@ class Lt {
2221
2230
  }
2222
2231
  async validateMayaSession() {
2223
2232
  const e = await this.client.request(
2224
- At
2233
+ Ut
2225
2234
  );
2226
2235
  return e.ok ? e.data.validateMayaSession ? {
2227
2236
  ok: !0
@@ -2234,17 +2243,17 @@ class Lt {
2234
2243
  } : e;
2235
2244
  }
2236
2245
  }
2237
- function we(n) {
2238
- return new Date(n.getTime());
2246
+ function Pe(i) {
2247
+ return new Date(i.getTime());
2239
2248
  }
2240
- function B(n, e) {
2241
- const t = we(n);
2249
+ function B(i, e) {
2250
+ const t = Pe(i);
2242
2251
  return t.setMinutes(t.getMinutes() + e), t;
2243
2252
  }
2244
- function le(n, e) {
2245
- return n.getTime() > e.getTime();
2253
+ function Re(i, e) {
2254
+ return i.getTime() > e.getTime();
2246
2255
  }
2247
- class Vt {
2256
+ class ma {
2248
2257
  constructor(e) {
2249
2258
  c(this, "config");
2250
2259
  c(this, "cache");
@@ -2254,56 +2263,56 @@ class Vt {
2254
2263
  };
2255
2264
  }
2256
2265
  set(e, t) {
2257
- const r = B(/* @__PURE__ */ new Date(), this.config.cacheTime);
2266
+ const a = B(/* @__PURE__ */ new Date(), this.config.cacheTime);
2258
2267
  this.cache[e] = {
2259
2268
  value: t,
2260
- validUntil: r
2269
+ validUntil: a
2261
2270
  };
2262
2271
  }
2263
2272
  get(e) {
2264
2273
  const t = this.cache[e];
2265
- return !t || le(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
2274
+ return !t || Re(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
2266
2275
  }
2267
2276
  }
2268
- function Ht(n, e, t) {
2269
- return n < e ? e : n > t ? t : n;
2277
+ function ca(i, e, t) {
2278
+ return i < e ? e : i > t ? t : i;
2270
2279
  }
2271
- function pe(n) {
2272
- return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
2280
+ function Ne(i) {
2281
+ return Object.prototype.toString.call(i) === "[object Object]" && Object(i) === i;
2273
2282
  }
2274
- function Yt(n) {
2283
+ function la(i) {
2275
2284
  const e = [];
2276
- function t(r, a = []) {
2277
- for (const s in r) {
2278
- const m = r[s];
2279
- pe(m) ? t(m, [...a, s]) : Array.isArray(m) ? t(Qt(m), [...a, s]) : e.push({
2280
- key: [...a, s],
2285
+ function t(a, r = []) {
2286
+ for (const s in a) {
2287
+ const m = a[s];
2288
+ Ne(m) ? t(m, [...r, s]) : Array.isArray(m) ? t(ua(m), [...r, s]) : e.push({
2289
+ key: [...r, s],
2281
2290
  value: m
2282
2291
  });
2283
2292
  }
2284
2293
  }
2285
- return t(n), e;
2294
+ return t(i), e;
2286
2295
  }
2287
- function Qt(n) {
2288
- return n.reduce((e, t, r) => (e[r] = t, e), {});
2296
+ function ua(i) {
2297
+ return i.reduce((e, t, a) => (e[a] = t, e), {});
2289
2298
  }
2290
2299
  class U {
2291
2300
  constructor(e, t) {
2292
2301
  c(this, "url");
2293
2302
  c(this, "options");
2294
2303
  c(this, "middlewares");
2295
- var a;
2296
- const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
2297
- this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
2304
+ var r;
2305
+ const a = new Headers((r = t == null ? void 0 : t.fetchOptions) == null ? void 0 : r.headers);
2306
+ this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: a }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
2298
2307
  }
2299
2308
  async request(e, t) {
2300
- const r = JSON.stringify({ query: e, variables: t }), a = new Headers(this.options.headers);
2301
- a.set("Content-Type", "application/json"), a.set("Accept", "application/json");
2309
+ const a = JSON.stringify({ query: e, variables: t }), r = new Headers(this.options.headers);
2310
+ r.set("Content-Type", "application/json"), r.set("Accept", "application/json");
2302
2311
  const s = await this.runMiddlewares(
2303
2312
  new Request(this.url, {
2304
2313
  ...this.options,
2305
- body: r,
2306
- headers: a,
2314
+ body: a,
2315
+ headers: r,
2307
2316
  method: "POST"
2308
2317
  })
2309
2318
  );
@@ -2311,50 +2320,50 @@ class U {
2311
2320
  }
2312
2321
  /** Single file upload */
2313
2322
  async upload(e, t) {
2314
- const r = this.createUploadBody(e, t), a = new Headers(this.options.headers);
2315
- a.delete("Content-Type");
2323
+ const a = this.createUploadBody(e, t), r = new Headers(this.options.headers);
2324
+ r.delete("Content-Type");
2316
2325
  const s = await this.runMiddlewares(
2317
2326
  new Request(this.url, {
2318
2327
  ...this.options,
2319
- body: r,
2320
- headers: a,
2328
+ body: a,
2329
+ headers: r,
2321
2330
  method: "POST"
2322
2331
  })
2323
2332
  );
2324
2333
  return await this.exec(s);
2325
2334
  }
2326
2335
  async exec(e) {
2327
- var t, r, a, s, m, d;
2336
+ var t, a, r, s, m, u;
2328
2337
  try {
2329
2338
  const p = await fetch(e);
2330
2339
  if (!p.ok)
2331
- return { ok: !1, error: w(p.status) };
2332
- const f = await p.json(), h = f.data, l = (t = f.errors) == null ? void 0 : t.at(0);
2333
- return l ? ((r = l.extensions) == null ? void 0 : r.code) === "FORBIDDEN" || ((a = l.extensions) == null ? void 0 : a.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: w(403, l.message) } : ((s = l.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: w(401, l.message) } : ((m = l.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((d = l.extensions) == null ? void 0 : d.code) === "BAD_REQUEST" ? { ok: !1, error: w(400, l.message) } : {
2340
+ return { ok: !1, error: h(p.status) };
2341
+ const f = await p.json(), w = f.data, d = (t = f.errors) == null ? void 0 : t.at(0);
2342
+ return d ? ((a = d.extensions) == null ? void 0 : a.code) === "FORBIDDEN" || ((r = d.extensions) == null ? void 0 : r.code) === "ACCESS_TOKEN_EXPIRED" ? { ok: !1, error: h(403, d.message) } : ((s = d.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, d.message) } : ((m = d.extensions) == null ? void 0 : m.code) === "BAD_USER_INPUT" || ((u = d.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, d.message) } : {
2334
2343
  ok: !1,
2335
- error: w(500, l.message)
2344
+ error: h(500, d.message)
2336
2345
  } : {
2337
2346
  ok: !0,
2338
- data: h
2347
+ data: w
2339
2348
  };
2340
2349
  } catch {
2341
2350
  return {
2342
2351
  ok: !1,
2343
- error: w(500)
2352
+ error: h(500)
2344
2353
  };
2345
2354
  }
2346
2355
  }
2347
2356
  async runMiddlewares(e) {
2348
2357
  let t = e.clone();
2349
- for (const r of this.middlewares)
2350
- t = await r(t);
2358
+ for (const a of this.middlewares)
2359
+ t = await a(t);
2351
2360
  return t;
2352
2361
  }
2353
2362
  createUploadBody(e, t) {
2354
- const r = Yt(t).filter(
2363
+ const a = la(t).filter(
2355
2364
  (m) => m.value instanceof File || m.value instanceof Blob
2356
- ), a = new FormData();
2357
- a.append(
2365
+ ), r = new FormData();
2366
+ r.append(
2358
2367
  "operations",
2359
2368
  JSON.stringify({
2360
2369
  query: e,
@@ -2362,28 +2371,28 @@ class U {
2362
2371
  })
2363
2372
  );
2364
2373
  const s = {};
2365
- return r.forEach((m, d) => {
2366
- s[d.toString()] = [`variables.${m.key.join(".")}`];
2367
- }), a.append("map", JSON.stringify(s)), r.forEach((m, d) => {
2368
- a.append(d.toString(), m.value);
2369
- }), a;
2374
+ return a.forEach((m, u) => {
2375
+ s[u.toString()] = [`variables.${m.key.join(".")}`];
2376
+ }), r.append("map", JSON.stringify(s)), a.forEach((m, u) => {
2377
+ r.append(u.toString(), m.value);
2378
+ }), r;
2370
2379
  }
2371
2380
  }
2372
- function jt(n) {
2373
- return n === "INR" ? "en-IN" : n === "MYR" ? "en-MY" : n === "IDR" ? "en-ID" : n === "USD" ? "en-US" : "en-PH";
2381
+ function da(i) {
2382
+ return i === "INR" ? "en-IN" : i === "MYR" ? "en-MY" : i === "IDR" ? "en-ID" : i === "USD" ? "en-US" : "en-PH";
2374
2383
  }
2375
- function Kt(n) {
2376
- return n === "en-IN" ? "+91" : n === "en-MY" ? "+60" : n === "en-ID" ? "+62" : n === "en-US" ? "+1" : "+63";
2384
+ function pa(i) {
2385
+ return i === "en-IN" ? "+91" : i === "en-MY" ? "+60" : i === "en-ID" ? "+62" : i === "en-US" ? "+1" : "+63";
2377
2386
  }
2378
- function W(n, e) {
2379
- const t = Kt(e);
2380
- return n.startsWith(t) ? n : n.startsWith(t.substring(1)) ? `+${n}` : n.startsWith("0") ? `${t}${n.substring(1)}` : `${t}${n}`;
2387
+ function x(i, e) {
2388
+ const t = pa(e);
2389
+ return i.startsWith(t) ? i : i.startsWith(t.substring(1)) ? `+${i}` : i.startsWith("0") ? `${t}${i.substring(1)}` : `${t}${i}`;
2381
2390
  }
2382
- async function g(n) {
2383
- const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
2391
+ async function g(i) {
2392
+ const e = new TextEncoder().encode(i), t = await crypto.subtle.digest("SHA-256", e);
2384
2393
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2385
2394
  }
2386
- class ke {
2395
+ class qe {
2387
2396
  constructor(e) {
2388
2397
  c(this, "enabled");
2389
2398
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
@@ -2401,40 +2410,40 @@ class ke {
2401
2410
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2402
2411
  }
2403
2412
  }
2404
- function q(n, e) {
2405
- const t = we(n);
2413
+ function q(i, e) {
2414
+ const t = Pe(i);
2406
2415
  return t.setDate(t.getDate() + e), t;
2407
2416
  }
2408
- function Ce(n) {
2417
+ function Fe(i) {
2409
2418
  return new Promise((e) => {
2410
- setTimeout(e, n);
2419
+ setTimeout(e, i);
2411
2420
  });
2412
2421
  }
2413
- function ge(n, e) {
2422
+ function xe(i, e) {
2414
2423
  const {
2415
2424
  until: t,
2416
- interval: r = 1e3,
2417
- maxAttempt: a = 3
2425
+ interval: a = 1e3,
2426
+ maxAttempt: r = 3
2418
2427
  /**/
2419
2428
  } = e;
2420
- async function s(m, d) {
2421
- const p = d ?? a, f = await n(...m);
2422
- return t(f) ? f : p > 1 ? (await Ce(r * ((a - p) / 2)), s(m, p - 1)) : f;
2429
+ async function s(m, u) {
2430
+ const p = u ?? r, f = await i(...m);
2431
+ return t(f) ? f : p > 1 ? (await Fe(a * ((r - p) / 2)), s(m, p - 1)) : f;
2423
2432
  }
2424
2433
  return async (...m) => await s(m);
2425
2434
  }
2426
- function F(n, e) {
2427
- const t = we(n);
2435
+ function F(i, e) {
2436
+ const t = Pe(i);
2428
2437
  return t.setMinutes(t.getMinutes() - e), t;
2429
2438
  }
2430
- class zt {
2439
+ class fa {
2431
2440
  constructor(e) {
2432
2441
  c(this, "logger");
2433
2442
  c(this, "storageKey", "session");
2434
2443
  c(this, "authService");
2435
2444
  c(this, "walletService");
2436
2445
  c(this, "_refreshing", !1);
2437
- this.authService = e.authService, this.walletService = e.walletService, this.logger = new ke({
2446
+ this.authService = e.authService, this.walletService = e.walletService, this.logger = new qe({
2438
2447
  enabled: e.logs ?? !1
2439
2448
  });
2440
2449
  }
@@ -2445,7 +2454,7 @@ class zt {
2445
2454
  this._refreshing = e;
2446
2455
  }
2447
2456
  async create(e) {
2448
- var a;
2457
+ var r;
2449
2458
  if (this.isServer)
2450
2459
  return this.logger.warn("'localStorage' is not available on the server."), {
2451
2460
  ok: !1,
@@ -2455,16 +2464,16 @@ class zt {
2455
2464
  }
2456
2465
  };
2457
2466
  if (e.type === "MAYA") {
2458
- const m = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
2459
- until: (h) => {
2460
- var l;
2461
- return h.ok && ((l = h.data) == null ? void 0 : l.member) != null;
2467
+ const m = await xe(() => this.walletService.mayaSession({ id: e.sessionId }), {
2468
+ until: (w) => {
2469
+ var d;
2470
+ return w.ok && ((d = w.data) == null ? void 0 : d.member) != null;
2462
2471
  },
2463
2472
  interval: 1e3,
2464
2473
  maxAttempt: 5
2465
2474
  })();
2466
2475
  if (!m.ok) return m;
2467
- if (!((a = m.data) != null && a.member))
2476
+ if (!((r = m.data) != null && r.member))
2468
2477
  return {
2469
2478
  ok: !1,
2470
2479
  error: {
@@ -2472,8 +2481,8 @@ class zt {
2472
2481
  message: "Forbidden"
2473
2482
  }
2474
2483
  };
2475
- const p = await ge(() => this.authService.createSession(e), {
2476
- until: (h) => h.ok,
2484
+ const p = await xe(() => this.authService.createSession(e), {
2485
+ until: (w) => w.ok,
2477
2486
  interval: 1e3,
2478
2487
  maxAttempt: 5
2479
2488
  })();
@@ -2536,13 +2545,13 @@ class zt {
2536
2545
  authenticator: t.data.authenticator
2537
2546
  }
2538
2547
  };
2539
- const r = /* @__PURE__ */ new Date();
2548
+ const a = /* @__PURE__ */ new Date();
2540
2549
  return window.localStorage.setItem(
2541
2550
  this.storageKey,
2542
2551
  JSON.stringify({
2543
2552
  ...t.data,
2544
- accessTokenExpiresAt: B(r, 8).getTime(),
2545
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2553
+ accessTokenExpiresAt: B(a, 8).getTime(),
2554
+ refreshTokenExpiresAt: F(q(a, 30), 2).getTime()
2546
2555
  })
2547
2556
  ), {
2548
2557
  ok: !0,
@@ -2552,13 +2561,13 @@ class zt {
2552
2561
  async createFromAuthenticator(e) {
2553
2562
  const t = await this.authService.authenticate(e);
2554
2563
  if (t.ok) {
2555
- const r = /* @__PURE__ */ new Date();
2564
+ const a = /* @__PURE__ */ new Date();
2556
2565
  return this.isServer ? this.logger.warn("'localStorage' is not available on the server.") : window.localStorage.setItem(
2557
2566
  this.storageKey,
2558
2567
  JSON.stringify({
2559
2568
  ...t.data,
2560
- accessTokenExpiresAt: B(r, 8).getTime(),
2561
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2569
+ accessTokenExpiresAt: B(a, 8).getTime(),
2570
+ refreshTokenExpiresAt: F(q(a, 30), 2).getTime()
2562
2571
  })
2563
2572
  ), { ok: !0 };
2564
2573
  } else
@@ -2571,7 +2580,7 @@ class zt {
2571
2580
  data: null
2572
2581
  };
2573
2582
  if (this.refreshing)
2574
- return await Ce(1e3), await this.get();
2583
+ return await Fe(1e3), await this.get();
2575
2584
  const e = window.localStorage.getItem(this.storageKey);
2576
2585
  if (!e)
2577
2586
  return {
@@ -2579,9 +2588,9 @@ class zt {
2579
2588
  data: null
2580
2589
  };
2581
2590
  try {
2582
- let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2583
- const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2584
- if (le(r, s))
2591
+ let t = JSON.parse(e), a = /* @__PURE__ */ new Date();
2592
+ const r = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2593
+ if (Re(a, s))
2585
2594
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2586
2595
  ok: !1,
2587
2596
  error: {
@@ -2589,7 +2598,7 @@ class zt {
2589
2598
  message: "Session expired."
2590
2599
  }
2591
2600
  };
2592
- if (le(r, a)) {
2601
+ if (Re(a, r)) {
2593
2602
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2594
2603
  const m = await this.authService.refreshSession(t.refreshToken);
2595
2604
  if (this.refreshing = !1, !m.ok)
@@ -2600,11 +2609,11 @@ class zt {
2600
2609
  ok: !0,
2601
2610
  data: t
2602
2611
  });
2603
- this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2612
+ this.logger.success("Session refreshed!"), a = /* @__PURE__ */ new Date(), t = {
2604
2613
  ...t,
2605
2614
  ...m.data,
2606
- accessTokenExpiresAt: B(r, 8).getTime(),
2607
- refreshTokenExpiresAt: F(q(r, 30), 2).getTime()
2615
+ accessTokenExpiresAt: B(a, 8).getTime(),
2616
+ refreshTokenExpiresAt: F(q(a, 30), 2).getTime()
2608
2617
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2609
2618
  }
2610
2619
  return {
@@ -2631,11 +2640,11 @@ class zt {
2631
2640
  (t = e.data) != null && t.accessToken && await this.authService.destroySession(e.data.accessToken), window.localStorage.removeItem(this.storageKey);
2632
2641
  }
2633
2642
  async verify() {
2634
- var r, a, s;
2643
+ var a, r, s;
2635
2644
  if (this.isServer)
2636
2645
  return this.logger.warn("'localStorage' is not available on the server."), !0;
2637
2646
  const e = await this.get();
2638
- if (((r = e.error) == null ? void 0 : r.name) === "InvalidTokenError" || ((a = e.error) == null ? void 0 : a.name) === "SessionExpiredError" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklistedError") return !1;
2647
+ if (((a = e.error) == null ? void 0 : a.name) === "InvalidTokenError" || ((r = e.error) == null ? void 0 : r.name) === "SessionExpiredError" || ((s = e.error) == null ? void 0 : s.name) === "AccountBlacklistedError") return !1;
2639
2648
  if (!e.data) return !0;
2640
2649
  const t = await this.authService.verifySession(e.data.accessToken);
2641
2650
  return t || window.localStorage.removeItem(this.storageKey), t;
@@ -2644,39 +2653,39 @@ class zt {
2644
2653
  return typeof window > "u";
2645
2654
  }
2646
2655
  }
2647
- function b(n) {
2656
+ function b(i) {
2648
2657
  const e = {};
2649
- for (const t in n) {
2650
- const r = n[t];
2651
- if (r !== null && r !== void 0) {
2652
- if (pe(r)) {
2653
- e[t] = b(r);
2658
+ for (const t in i) {
2659
+ const a = i[t];
2660
+ if (a !== null && a !== void 0) {
2661
+ if (Ne(a)) {
2662
+ e[t] = b(a);
2654
2663
  continue;
2655
2664
  }
2656
- if (Array.isArray(r)) {
2657
- e[t] = r.map((a) => pe(a) ? b(a) : a);
2665
+ if (Array.isArray(a)) {
2666
+ e[t] = a.map((r) => Ne(r) ? b(r) : r);
2658
2667
  continue;
2659
2668
  }
2660
- e[t] = r;
2669
+ e[t] = a;
2661
2670
  }
2662
2671
  }
2663
2672
  return e;
2664
2673
  }
2665
- function o(n, e) {
2666
- if (typeof n == "number" && !Number.isNaN(n))
2667
- return n;
2668
- if (typeof n == "string") {
2669
- const t = Number.parseFloat(n);
2674
+ function n(i, e) {
2675
+ if (typeof i == "number" && !Number.isNaN(i))
2676
+ return i;
2677
+ if (typeof i == "string") {
2678
+ const t = Number.parseFloat(i);
2670
2679
  if (!Number.isNaN(t))
2671
2680
  return t;
2672
2681
  }
2673
2682
  return e;
2674
2683
  }
2675
- class Jt {
2684
+ class wa {
2676
2685
  constructor(e) {
2677
2686
  c(this, "staticService");
2678
2687
  const t = (e == null ? void 0 : e.environment) === "development";
2679
- this.staticService = new qt({
2688
+ this.staticService = new ia({
2680
2689
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2681
2690
  });
2682
2691
  }
@@ -2724,90 +2733,117 @@ class Jt {
2724
2733
  }
2725
2734
  /** @deprecated */
2726
2735
  platform(e) {
2727
- var t, r, a, s, m, d, p, f, h, l, k, C, _, T, M, v, y, R, N, A, D, I, G, P, S, x, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ce, ye;
2736
+ var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D, y, v, R, A, N, I, G, P, S, W, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, ae, re, ne, ie, oe, se, me, ce, le, ue, de, pe, fe, we, he, ye, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me, We;
2728
2737
  return {
2729
2738
  timezone: e.timezone,
2730
2739
  currency: e.currency,
2731
2740
  paymentSettings: {
2732
- minimumFirstDepositAmount: o(e.minimumFirstDepositAmount),
2741
+ minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2733
2742
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2734
2743
  depositGateway: {
2735
2744
  bank: {
2736
2745
  androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
2737
- iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2738
- webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2746
+ iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2747
+ webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2739
2748
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2740
- minimumAmount: o((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2741
- maximumAmount: o((d = e.bankDepositGatewaySettings) == null ? void 0 : d.maximumAmount)
2749
+ minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2750
+ maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2742
2751
  },
2743
2752
  gcash: {
2744
2753
  androidEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.androidEnabled) ?? !1,
2745
2754
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2746
- webEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.webEnabled) ?? !1,
2747
- mobileWebEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.mobileWebEnabled) ?? !1,
2748
- minimumAmount: o((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.minimumAmount),
2749
- maximumAmount: o((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2755
+ webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2756
+ mobileWebEnabled: ((d = e.gcashDepositGatewaySettings) == null ? void 0 : d.mobileWebEnabled) ?? !1,
2757
+ minimumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.minimumAmount),
2758
+ maximumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2750
2759
  },
2751
2760
  maya: {
2752
2761
  androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2753
2762
  iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2754
2763
  webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
2755
- mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
2756
- minimumAmount: o((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
2757
- maximumAmount: o((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2764
+ mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
2765
+ minimumAmount: n((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
2766
+ maximumAmount: n((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2758
2767
  },
2759
2768
  mayaApp: {
2760
- androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
2769
+ androidEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.androidEnabled) ?? !1,
2761
2770
  iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
2762
- webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2771
+ webEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
2763
2772
  mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2764
- minimumAmount: o((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
2765
- maximumAmount: o((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
2773
+ minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
2774
+ maximumAmount: n((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
2775
+ },
2776
+ onlineBank: {
2777
+ androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2778
+ iosEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2779
+ webEnabled: ((E = e.onlineBankDepositGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2780
+ mobileWebEnabled: ((L = e.onlineBankDepositGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2781
+ minimumAmount: n((V = e.onlineBankDepositGatewaySettings) == null ? void 0 : V.minimumAmount),
2782
+ maximumAmount: n((H = e.onlineBankDepositGatewaySettings) == null ? void 0 : H.maximumAmount)
2783
+ },
2784
+ qrph: {
2785
+ androidEnabled: ((Y = e.qrphDepositGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2786
+ iosEnabled: ((Q = e.qrphDepositGatewaySettings) == null ? void 0 : Q.iosEnabled) ?? !1,
2787
+ webEnabled: ((j = e.qrphDepositGatewaySettings) == null ? void 0 : j.webEnabled) ?? !1,
2788
+ mobileWebEnabled: ((K = e.qrphDepositGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2789
+ minimumAmount: n((z = e.qrphDepositGatewaySettings) == null ? void 0 : z.minimumAmount),
2790
+ maximumAmount: n((J = e.qrphDepositGatewaySettings) == null ? void 0 : J.maximumAmount)
2766
2791
  }
2767
2792
  },
2768
2793
  withdrawalGateway: {
2769
2794
  bank: {
2770
- androidEnabled: ((S = e.bankWithdrawalGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2771
- iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2772
- webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2773
- mobileWebEnabled: ((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2774
- minimumAmount: o((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.minimumAmount),
2775
- maximumAmount: o((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.maximumAmount)
2795
+ androidEnabled: ((X = e.bankWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2796
+ iosEnabled: ((Z = e.bankWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2797
+ webEnabled: ((ee = e.bankWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2798
+ mobileWebEnabled: ((te = e.bankWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2799
+ minimumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.minimumAmount),
2800
+ maximumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount)
2776
2801
  },
2777
2802
  gcash: {
2778
- androidEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2779
- iosEnabled: ((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.iosEnabled) ?? !1,
2780
- webEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.webEnabled) ?? !1,
2781
- mobileWebEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2782
- minimumAmount: o((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
2783
- maximumAmount: o(
2784
- (J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount,
2803
+ androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2804
+ iosEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
2805
+ webEnabled: ((oe = e.gcashWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2806
+ mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2807
+ minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2808
+ maximumAmount: n(
2809
+ (ce = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
2785
2810
  1e6
2786
2811
  )
2787
2812
  },
2788
2813
  maya: {
2789
- androidEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2790
- iosEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2791
- webEnabled: ((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2792
- mobileWebEnabled: ((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2793
- minimumAmount: o((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2794
- maximumAmount: o((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
2814
+ androidEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.androidEnabled) ?? !1,
2815
+ iosEnabled: ((ue = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2816
+ webEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2817
+ mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
2818
+ minimumAmount: n((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
2819
+ maximumAmount: n((we = e.mayaWithdrawalGatewaySettings) == null ? void 0 : we.maximumAmount)
2795
2820
  },
2796
2821
  mayaApp: {
2797
- androidEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2798
- iosEnabled: ((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2799
- webEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
2800
- mobileWebEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2801
- minimumAmount: o((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2802
- maximumAmount: o(
2803
- (ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
2822
+ androidEnabled: ((he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.androidEnabled) ?? !1,
2823
+ iosEnabled: ((ye = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ye.iosEnabled) ?? !1,
2824
+ webEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.webEnabled) ?? !1,
2825
+ mobileWebEnabled: ((be = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : be.mobileWebEnabled) ?? !1,
2826
+ minimumAmount: n((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.minimumAmount),
2827
+ maximumAmount: n(
2828
+ (Ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ae.maximumAmount,
2829
+ 1e6
2830
+ )
2831
+ },
2832
+ instapay: {
2833
+ androidEnabled: ((Se = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Se.androidEnabled) ?? !1,
2834
+ iosEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.iosEnabled) ?? !1,
2835
+ webEnabled: ((Ce = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Ce.webEnabled) ?? !1,
2836
+ mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
2837
+ minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
2838
+ maximumAmount: n(
2839
+ (Me = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Me.maximumAmount,
2804
2840
  1e6
2805
2841
  )
2806
2842
  }
2807
2843
  }
2808
2844
  },
2809
2845
  pointsClubSettings: {
2810
- multiplier: o((ye = e.pointsClubSettings) == null ? void 0 : ye.multiplier, 0)
2846
+ multiplier: n((We = e.pointsClubSettings) == null ? void 0 : We.multiplier, 0)
2811
2847
  }
2812
2848
  };
2813
2849
  }
@@ -2815,86 +2851,113 @@ class Jt {
2815
2851
  return {
2816
2852
  currency: e.currency,
2817
2853
  timezone: e.timezone,
2818
- locale: jt(e.currency)
2854
+ locale: da(e.currency)
2819
2855
  };
2820
2856
  }
2821
2857
  pointsClubSettings(e) {
2822
2858
  return {
2823
- multiplier: o(e.multiplier, 0)
2859
+ multiplier: n(e.multiplier, 0)
2824
2860
  };
2825
2861
  }
2826
2862
  paymentSettings(e) {
2827
- var t, r, a, s, m, d, p, f, h, l, k, C, _, T, M, v, y, R, N, A, D, I, G, P, S, x, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, re, ae, ne, oe, ie, se, me, ce;
2863
+ var t, a, r, s, m, u, p, f, w, d, k, C, _, T, M, D, y, v, R, A, N, I, G, P, S, W, E, L, V, H, Y, Q, j, K, z, J, X, Z, ee, te, ae, re, ne, ie, oe, se, me, ce, le, ue, de, pe, fe, we, he, ye, ge, be, Ee, Ae, Se, ke, Ce, _e, Te, Me;
2828
2864
  return {
2829
- minimumFirstDepositAmount: o(e.minimumFirstDepositAmount),
2865
+ minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2830
2866
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2831
2867
  depositGateway: {
2832
2868
  bank: {
2833
2869
  androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
2834
- iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2835
- webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2870
+ iosEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.iosEnabled) ?? !1,
2871
+ webEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.webEnabled) ?? !1,
2836
2872
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2837
- minimumAmount: o((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2838
- maximumAmount: o((d = e.bankDepositGatewaySettings) == null ? void 0 : d.maximumAmount)
2873
+ minimumAmount: n((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2874
+ maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2839
2875
  },
2840
2876
  gcash: {
2841
2877
  androidEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.androidEnabled) ?? !1,
2842
2878
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2843
- webEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.webEnabled) ?? !1,
2844
- mobileWebEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.mobileWebEnabled) ?? !1,
2845
- minimumAmount: o((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.minimumAmount),
2846
- maximumAmount: o((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2879
+ webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2880
+ mobileWebEnabled: ((d = e.gcashDepositGatewaySettings) == null ? void 0 : d.mobileWebEnabled) ?? !1,
2881
+ minimumAmount: n((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.minimumAmount),
2882
+ maximumAmount: n((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.maximumAmount)
2847
2883
  },
2848
2884
  maya: {
2849
2885
  androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2850
2886
  iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2851
2887
  webEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.webEnabled) ?? !1,
2852
- mobileWebEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.mobileWebEnabled) ?? !1,
2853
- minimumAmount: o((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
2854
- maximumAmount: o((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2888
+ mobileWebEnabled: ((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.mobileWebEnabled) ?? !1,
2889
+ minimumAmount: n((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.minimumAmount),
2890
+ maximumAmount: n((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2855
2891
  },
2856
2892
  mayaApp: {
2857
- androidEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.androidEnabled) ?? !1,
2893
+ androidEnabled: ((R = e.mayaAppDepositGatewaySettings) == null ? void 0 : R.androidEnabled) ?? !1,
2858
2894
  iosEnabled: ((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.iosEnabled) ?? !1,
2859
- webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2895
+ webEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
2860
2896
  mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2861
- minimumAmount: o((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
2862
- maximumAmount: o((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
2897
+ minimumAmount: n((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.minimumAmount),
2898
+ maximumAmount: n((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.maximumAmount)
2899
+ },
2900
+ onlineBank: {
2901
+ androidEnabled: ((S = e.onlineBankDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2902
+ iosEnabled: ((W = e.onlineBankDepositGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2903
+ webEnabled: ((E = e.onlineBankDepositGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2904
+ mobileWebEnabled: ((L = e.onlineBankDepositGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2905
+ minimumAmount: n((V = e.onlineBankDepositGatewaySettings) == null ? void 0 : V.minimumAmount),
2906
+ maximumAmount: n((H = e.onlineBankDepositGatewaySettings) == null ? void 0 : H.maximumAmount)
2907
+ },
2908
+ qrph: {
2909
+ androidEnabled: ((Y = e.qrphDepositGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2910
+ iosEnabled: ((Q = e.qrphDepositGatewaySettings) == null ? void 0 : Q.iosEnabled) ?? !1,
2911
+ webEnabled: ((j = e.qrphDepositGatewaySettings) == null ? void 0 : j.webEnabled) ?? !1,
2912
+ mobileWebEnabled: ((K = e.qrphDepositGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2913
+ minimumAmount: n((z = e.qrphDepositGatewaySettings) == null ? void 0 : z.minimumAmount),
2914
+ maximumAmount: n((J = e.qrphDepositGatewaySettings) == null ? void 0 : J.maximumAmount)
2863
2915
  }
2864
2916
  },
2865
2917
  withdrawalGateway: {
2866
2918
  bank: {
2867
- androidEnabled: ((S = e.bankWithdrawalGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2868
- iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2869
- webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2870
- mobileWebEnabled: ((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.mobileWebEnabled) ?? !1,
2871
- minimumAmount: o((V = e.bankWithdrawalGatewaySettings) == null ? void 0 : V.minimumAmount),
2872
- maximumAmount: o((H = e.bankWithdrawalGatewaySettings) == null ? void 0 : H.maximumAmount)
2919
+ androidEnabled: ((X = e.bankWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2920
+ iosEnabled: ((Z = e.bankWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2921
+ webEnabled: ((ee = e.bankWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2922
+ mobileWebEnabled: ((te = e.bankWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2923
+ minimumAmount: n((ae = e.bankWithdrawalGatewaySettings) == null ? void 0 : ae.minimumAmount),
2924
+ maximumAmount: n((re = e.bankWithdrawalGatewaySettings) == null ? void 0 : re.maximumAmount)
2873
2925
  },
2874
2926
  gcash: {
2875
- androidEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.androidEnabled) ?? !1,
2876
- iosEnabled: ((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.iosEnabled) ?? !1,
2877
- webEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.webEnabled) ?? !1,
2878
- mobileWebEnabled: ((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2879
- minimumAmount: o((z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
2880
- maximumAmount: o((J = e.gcashWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount, 1e6)
2927
+ androidEnabled: ((ne = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2928
+ iosEnabled: ((ie = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ie.iosEnabled) ?? !1,
2929
+ webEnabled: ((oe = e.gcashWithdrawalGatewaySettings) == null ? void 0 : oe.webEnabled) ?? !1,
2930
+ mobileWebEnabled: ((se = e.gcashWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2931
+ minimumAmount: n((me = e.gcashWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2932
+ maximumAmount: n((ce = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount, 1e6)
2881
2933
  },
2882
2934
  maya: {
2883
- androidEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2884
- iosEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2885
- webEnabled: ((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2886
- mobileWebEnabled: ((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2887
- minimumAmount: o((re = e.mayaWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2888
- maximumAmount: o((ae = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount)
2935
+ androidEnabled: ((le = e.mayaWithdrawalGatewaySettings) == null ? void 0 : le.androidEnabled) ?? !1,
2936
+ iosEnabled: ((ue = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2937
+ webEnabled: ((de = e.mayaWithdrawalGatewaySettings) == null ? void 0 : de.webEnabled) ?? !1,
2938
+ mobileWebEnabled: ((pe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
2939
+ minimumAmount: n((fe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
2940
+ maximumAmount: n((we = e.mayaWithdrawalGatewaySettings) == null ? void 0 : we.maximumAmount)
2889
2941
  },
2890
2942
  mayaApp: {
2891
- androidEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.androidEnabled) ?? !1,
2892
- iosEnabled: ((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.iosEnabled) ?? !1,
2893
- webEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
2894
- mobileWebEnabled: ((se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2895
- minimumAmount: o((me = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : me.minimumAmount),
2896
- maximumAmount: o(
2897
- (ce = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ce.maximumAmount,
2943
+ androidEnabled: ((he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.androidEnabled) ?? !1,
2944
+ iosEnabled: ((ye = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ye.iosEnabled) ?? !1,
2945
+ webEnabled: ((ge = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ge.webEnabled) ?? !1,
2946
+ mobileWebEnabled: ((be = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : be.mobileWebEnabled) ?? !1,
2947
+ minimumAmount: n((Ee = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ee.minimumAmount),
2948
+ maximumAmount: n(
2949
+ (Ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : Ae.maximumAmount,
2950
+ 1e6
2951
+ )
2952
+ },
2953
+ instapay: {
2954
+ androidEnabled: ((Se = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Se.androidEnabled) ?? !1,
2955
+ iosEnabled: ((ke = e.instapayWithdrawalGatewaySettings) == null ? void 0 : ke.iosEnabled) ?? !1,
2956
+ webEnabled: ((Ce = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Ce.webEnabled) ?? !1,
2957
+ mobileWebEnabled: ((_e = e.instapayWithdrawalGatewaySettings) == null ? void 0 : _e.mobileWebEnabled) ?? !1,
2958
+ minimumAmount: n((Te = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Te.minimumAmount),
2959
+ maximumAmount: n(
2960
+ (Me = e.instapayWithdrawalGatewaySettings) == null ? void 0 : Me.maximumAmount,
2898
2961
  1e6
2899
2962
  )
2900
2963
  }
@@ -2926,7 +2989,7 @@ class Jt {
2926
2989
  wallet(e) {
2927
2990
  return {
2928
2991
  id: e.id,
2929
- balance: o(e.balance, 0),
2992
+ balance: n(e.balance, 0),
2930
2993
  currency: e.currency,
2931
2994
  dateTimeCreated: new Date(e.dateTimeCreated),
2932
2995
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2953,7 +3016,7 @@ class Jt {
2953
3016
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2954
3017
  personalInformation: e.personalInformation ?? !1,
2955
3018
  transactionPassword: e.transactionPassword ?? !1,
2956
- completionPercentage: o(e.completionPercentage, 0)
3019
+ completionPercentage: n(e.completionPercentage, 0)
2957
3020
  };
2958
3021
  }
2959
3022
  announcement(e) {
@@ -2975,9 +3038,9 @@ class Jt {
2975
3038
  type: e.type,
2976
3039
  bank: e.bank,
2977
3040
  status: e.status,
2978
- amount: o(e.amount, 0),
2979
- netAmount: o(e.netAmount, 0),
2980
- fee: o(e.fee, 0),
3041
+ amount: n(e.amount, 0),
3042
+ netAmount: n(e.netAmount, 0),
3043
+ fee: n(e.fee, 0),
2981
3044
  reference: e.reference ?? void 0,
2982
3045
  withdrawalNumber: e.withdrawalNumber,
2983
3046
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -3001,9 +3064,9 @@ class Jt {
3001
3064
  id: e.id,
3002
3065
  type: e.type,
3003
3066
  status: e.status,
3004
- amount: o(e.amount, 0),
3005
- fee: o(e.fee, 0),
3006
- netAmount: o(e.netAmount, 0),
3067
+ amount: n(e.amount, 0),
3068
+ fee: n(e.fee, 0),
3069
+ netAmount: n(e.netAmount, 0),
3007
3070
  reference: e.reference ?? void 0,
3008
3071
  depositNumber: e.depositNumber,
3009
3072
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -3012,16 +3075,16 @@ class Jt {
3012
3075
  return b(t);
3013
3076
  }
3014
3077
  betRecord(e) {
3015
- var r;
3078
+ var a;
3016
3079
  const t = {
3017
3080
  id: e.id,
3018
- bet: o(e.bet, 0),
3019
- payout: o(e.payout, 0),
3081
+ bet: n(e.bet, 0),
3082
+ payout: n(e.payout, 0),
3020
3083
  status: e.status,
3021
- jackpotContribution: o(e.jackpotContribution, 0),
3022
- jackpotPayout: o(e.jackpotPayout, 0),
3023
- winloss: o(e.winloss),
3024
- validBet: o(e.validBet, 0),
3084
+ jackpotContribution: n(e.jackpotContribution, 0),
3085
+ jackpotPayout: n(e.jackpotPayout, 0),
3086
+ winloss: n(e.winloss),
3087
+ validBet: n(e.validBet, 0),
3025
3088
  vendorRoundId: e.vendorRoundId ?? void 0,
3026
3089
  game: {
3027
3090
  name: e.game.name,
@@ -3037,7 +3100,7 @@ class Jt {
3037
3100
  contestName: e.contestName ?? void 0,
3038
3101
  externalCategory: e.externalCategory ?? void 0,
3039
3102
  metadata: {
3040
- odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
3103
+ odds: ((a = e.metadata) == null ? void 0 : a.odds) ?? void 0
3041
3104
  }
3042
3105
  };
3043
3106
  return b(t);
@@ -3052,9 +3115,9 @@ class Jt {
3052
3115
  images: this.staticService.gameThumbnails(e.game),
3053
3116
  provider: e.game.provider
3054
3117
  },
3055
- bet: o(e.bet, 0),
3056
- payout: o(e.payout, 0),
3057
- validBet: o(e.validBet, 0),
3118
+ bet: n(e.bet, 0),
3119
+ payout: n(e.payout, 0),
3120
+ validBet: n(e.validBet, 0),
3058
3121
  dateTimeSettled: new Date(e.dateTimeSettled),
3059
3122
  dateTimeCreated: new Date(e.dateTimeCreated)
3060
3123
  };
@@ -3063,9 +3126,9 @@ class Jt {
3063
3126
  const t = {
3064
3127
  id: e.id,
3065
3128
  type: e.type,
3066
- amount: o(e.amount, 0),
3129
+ amount: n(e.amount, 0),
3067
3130
  content: e.content ?? void 0,
3068
- currentBalance: o(e.currentBalance, 0),
3131
+ currentBalance: n(e.currentBalance, 0),
3069
3132
  referenceNumber: e.referenceNumber,
3070
3133
  dateTimeCreated: new Date(e.dateTimeCreated)
3071
3134
  };
@@ -3100,8 +3163,8 @@ class Jt {
3100
3163
  status: e.status,
3101
3164
  description: e.description,
3102
3165
  banner: this.file(e.banner),
3103
- maximumBonusAmount: o(e.maximumBonusAmount),
3104
- minimumBonusAmount: o(e.minimumBonusAmount),
3166
+ maximumBonusAmount: n(e.maximumBonusAmount),
3167
+ minimumBonusAmount: n(e.minimumBonusAmount),
3105
3168
  activationEndDateTime: new Date(e.activationEndDateTime),
3106
3169
  activationStartDateTime: new Date(e.activationStartDateTime),
3107
3170
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -3114,8 +3177,8 @@ class Jt {
3114
3177
  name: e.name,
3115
3178
  description: e.description,
3116
3179
  status: e.status,
3117
- minimumCashback: o(e.minimumCashback, 0),
3118
- maximumMonthlyCashback: o(e.maximumMonthlyCashback),
3180
+ minimumCashback: n(e.minimumCashback, 0),
3181
+ maximumMonthlyCashback: n(e.maximumMonthlyCashback),
3119
3182
  banner: this.file(e.banner),
3120
3183
  activationEndDateTime: new Date(e.activationEndDateTime),
3121
3184
  activationStartDateTime: new Date(e.activationStartDateTime),
@@ -3123,7 +3186,7 @@ class Jt {
3123
3186
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
3124
3187
  turnoverContributionPercentagePerGameProvider: Object.entries(
3125
3188
  e.turnoverContributionPercentagePerGameProvider
3126
- ).reduce((r, [a, s]) => (r[a] = o(s, 0), r), {})
3189
+ ).reduce((a, [r, s]) => (a[r] = n(s, 0), a), {})
3127
3190
  };
3128
3191
  }
3129
3192
  bonus(e) {
@@ -3133,22 +3196,22 @@ class Jt {
3133
3196
  deposit: e.deposit ? {
3134
3197
  type: e.deposit.type,
3135
3198
  status: e.deposit.status,
3136
- fee: o(e.deposit.fee, 0),
3137
- amount: o(e.deposit.amount, 0),
3138
- netAmount: o(e.deposit.netAmount, 0),
3199
+ fee: n(e.deposit.fee, 0),
3200
+ amount: n(e.deposit.amount, 0),
3201
+ netAmount: n(e.deposit.netAmount, 0),
3139
3202
  reference: e.deposit.reference ?? void 0,
3140
3203
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
3141
3204
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
3142
3205
  } : void 0,
3143
- balance: o(e.balance, 0),
3144
- amount: o(e.amount, 0),
3206
+ balance: n(e.balance, 0),
3207
+ amount: n(e.amount, 0),
3145
3208
  expiration: new Date(e.expiration),
3146
- turnoverRequirement: o(e.turnoverRequirement, 0),
3147
- currentTurnoverRequirementContribution: o(
3209
+ turnoverRequirement: n(e.turnoverRequirement, 0),
3210
+ currentTurnoverRequirementContribution: n(
3148
3211
  e.currentTurnoverRequirementContribution,
3149
3212
  0
3150
3213
  ),
3151
- currentTurnoverRequirementContributionPercentage: o(
3214
+ currentTurnoverRequirementContributionPercentage: n(
3152
3215
  e.currentTurnoverRequirementContributionPercentage,
3153
3216
  0
3154
3217
  ),
@@ -3160,8 +3223,8 @@ class Jt {
3160
3223
  cashbackBonus(e) {
3161
3224
  return {
3162
3225
  id: e.id,
3163
- total: o(e.total, 0),
3164
- balance: o(e.balance, 0),
3226
+ total: n(e.total, 0),
3227
+ balance: n(e.balance, 0),
3165
3228
  cashback: this.cashback(e.cashback),
3166
3229
  dateTimeCreated: new Date(e.dateTimeCreated),
3167
3230
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -3179,7 +3242,7 @@ class Jt {
3179
3242
  pointsWallet(e) {
3180
3243
  return {
3181
3244
  id: e.id,
3182
- points: o(e.points, 0),
3245
+ points: n(e.points, 0),
3183
3246
  account: e.account,
3184
3247
  dateTimeCreated: new Date(e.dateTimeCreated)
3185
3248
  };
@@ -3188,8 +3251,8 @@ class Jt {
3188
3251
  return {
3189
3252
  id: e.id,
3190
3253
  type: e.type,
3191
- amount: o(e.amount, 0),
3192
- balance: o(e.balance, 0),
3254
+ amount: n(e.amount, 0),
3255
+ balance: n(e.balance, 0),
3193
3256
  dateTimeCreated: new Date(e.dateTimeCreated)
3194
3257
  };
3195
3258
  }
@@ -3197,7 +3260,7 @@ class Jt {
3197
3260
  const t = {
3198
3261
  id: e.id,
3199
3262
  type: e.type,
3200
- amount: e.amount ? o(e.amount, 0) : void 0,
3263
+ amount: e.amount ? n(e.amount, 0) : void 0,
3201
3264
  domain: e.domain ?? void 0,
3202
3265
  details: e.details,
3203
3266
  dateTimeCreated: new Date(e.dateTimeCreated)
@@ -3210,18 +3273,18 @@ class Jt {
3210
3273
  level: e.level,
3211
3274
  upline: e.upline,
3212
3275
  downline: e.downline,
3213
- turnover: o(e.turnover, 0),
3214
- commission: o(e.commission, 0),
3276
+ turnover: n(e.turnover, 0),
3277
+ commission: n(e.commission, 0),
3215
3278
  dateTimeCreated: new Date(e.dateTimeCreated)
3216
3279
  };
3217
3280
  }
3218
3281
  referralCommission(e) {
3219
3282
  return {
3220
3283
  id: e.id,
3221
- commission: o(e.commission, 0),
3222
- level1Commission: o(e.level1Commission, 0),
3223
- level2Commission: o(e.level2Commission, 0),
3224
- level3Commission: o(e.level3Commission, 0),
3284
+ commission: n(e.commission, 0),
3285
+ level1Commission: n(e.level1Commission, 0),
3286
+ level2Commission: n(e.level2Commission, 0),
3287
+ level3Commission: n(e.level3Commission, 0),
3225
3288
  referralsCount: e.referralsCount,
3226
3289
  level1ReferralsCount: e.level1ReferralsCount,
3227
3290
  level2ReferralsCount: e.level2ReferralsCount,
@@ -3244,7 +3307,7 @@ class Jt {
3244
3307
  };
3245
3308
  }
3246
3309
  }
3247
- class er {
3310
+ class ga {
3248
3311
  constructor(e) {
3249
3312
  c(this, "cmsPortalService");
3250
3313
  c(this, "authService");
@@ -3262,37 +3325,37 @@ class er {
3262
3325
  const {
3263
3326
  /**/
3264
3327
  site: t,
3265
- sitePlatform: r,
3266
- platform: a,
3328
+ sitePlatform: a,
3329
+ platform: r,
3267
3330
  environment: s,
3268
3331
  logs: m
3269
- } = e, d = s === "production";
3270
- this.transformer = new Jt({
3332
+ } = e, u = s === "production";
3333
+ this.transformer = new wa({
3271
3334
  environment: s
3272
- }), this.logger = new ke({
3335
+ }), this.logger = new qe({
3273
3336
  enabled: m ?? !1
3274
3337
  });
3275
- const p = d ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = d ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", h = d ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", l = d ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", k = d ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", C = d ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = d ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = d ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", M = "https://portal-api.opexacms.io/v1", v = new Wt({
3338
+ const p = u ? "https://auth.opexa.io" : "https://auth.development.opexa.io", f = u ? "https://wallet.opexa.io/graphql" : "https://wallet.development.opexa.io/graphql", w = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", d = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", k = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", C = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", _ = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", T = u ? "https://trigger.opexa.io/graphql" : "https://trigger.development.opexa.io/graphql", M = "https://portal-api.opexacms.io/v1", D = new ea({
3276
3339
  url: M,
3277
3340
  site: t,
3278
- platform: r
3341
+ platform: a
3279
3342
  }), y = {
3280
3343
  middlewares: [this.authMiddleware],
3281
3344
  fetchOptions: {
3282
3345
  headers: {
3283
3346
  Role: "MEMBER",
3284
- "Platform-Code": a
3347
+ "Platform-Code": r
3285
3348
  }
3286
3349
  }
3287
- }, R = new $t(new U(_, y)), N = new Ot(new U(C, y)), A = new Lt(new U(f, y)), D = new Pt(new U(l, y)), I = new Bt(new U(h, y)), G = new Ut(new U(k, y)), P = new Ft(new U(T, y)), S = new xt({
3350
+ }, v = new aa(new U(_, y)), R = new ta(new U(C, y)), A = new sa(new U(f, y)), N = new Xt(new U(d, y)), I = new na(new U(w, y)), G = new ra(new U(k, y)), P = new oa(new U(T, y)), S = new Zt({
3288
3351
  url: p,
3289
- platform: a
3290
- }), x = new zt({
3352
+ platform: r
3353
+ }), W = new fa({
3291
3354
  logs: m,
3292
3355
  authService: S,
3293
3356
  walletService: A
3294
3357
  });
3295
- this.authService = S, this.gameService = R, this.fileService = N, this.walletService = A, this.accountService = D, this.reportService = I, this.portalService = G, this.triggerService = P, this.sessionManager = x, this.cmsPortalService = v, this.cache = new Vt();
3358
+ this.authService = S, this.gameService = v, this.fileService = R, this.walletService = A, this.accountService = N, this.reportService = I, this.portalService = G, this.triggerService = P, this.sessionManager = W, this.cmsPortalService = D, this.cache = new ma();
3296
3359
  }
3297
3360
  get authMiddleware() {
3298
3361
  return async (e) => {
@@ -3303,10 +3366,10 @@ class er {
3303
3366
  }
3304
3367
  get locale() {
3305
3368
  return new Promise((e) => {
3306
- const t = "locale", r = this.cache.get(t);
3307
- if (r) return e(r);
3308
- this.platform__next().then((a) => {
3309
- a.ok ? (this.cache.set(t, a.data.locale), e(a.data.locale)) : (this.logger.warn("Failed to fetch currency. Using 'PH' as fallback"), e("en-PH"));
3369
+ const t = "locale", a = this.cache.get(t);
3370
+ if (a) return e(a);
3371
+ this.platform__next().then((r) => {
3372
+ r.ok ? (this.cache.set(t, r.data.locale), e(r.data.locale)) : (this.logger.warn("Failed to fetch currency. Using 'PH' as fallback"), e("en-PH"));
3310
3373
  });
3311
3374
  });
3312
3375
  }
@@ -3340,7 +3403,7 @@ class er {
3340
3403
  case "MOBILE_NUMBER": {
3341
3404
  const t = await this.sessionManager.create({
3342
3405
  type: "MOBILE_NUMBER",
3343
- mobileNumber: W(e.mobileNumber, await this.locale),
3406
+ mobileNumber: x(e.mobileNumber, await this.locale),
3344
3407
  verificationCode: e.verificationCode
3345
3408
  });
3346
3409
  return t.ok ? { ok: !0 } : t;
@@ -3373,13 +3436,13 @@ class er {
3373
3436
  await this.sessionManager.destroy();
3374
3437
  }
3375
3438
  watchSession(e) {
3376
- const t = Ht(e.interval ?? 3e4, 3e4, 6e4);
3377
- let r = null;
3378
- const a = () => setTimeout(async () => {
3379
- await this.sessionManager.verify() || await e.onInvalid(), r = a();
3439
+ const t = ca(e.interval ?? 3e4, 3e4, 6e4);
3440
+ let a = null;
3441
+ const r = () => setTimeout(async () => {
3442
+ await this.sessionManager.verify() || await e.onInvalid(), a = r();
3380
3443
  }, t);
3381
- return r = a(), function() {
3382
- r && clearTimeout(r);
3444
+ return a = r(), function() {
3445
+ a && clearTimeout(a);
3383
3446
  };
3384
3447
  }
3385
3448
  async session() {
@@ -3450,7 +3513,7 @@ class er {
3450
3513
  * @deprecated use `createAccount__next`
3451
3514
  */
3452
3515
  async createAccount(e) {
3453
- const t = e.id ?? O.generate($.Account).toString(), r = await this.accountService.registerMemberAccount({
3516
+ const t = e.id ?? O.generate($.Account).toString(), a = await this.accountService.registerMemberAccount({
3454
3517
  input: {
3455
3518
  id: t,
3456
3519
  btag: e.btag,
@@ -3458,38 +3521,38 @@ class er {
3458
3521
  domain: e.domain,
3459
3522
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
3460
3523
  password: await g(e.password),
3461
- mobileNumber: W(e.mobileNumber, await this.locale)
3524
+ mobileNumber: x(e.mobileNumber, await this.locale)
3462
3525
  },
3463
3526
  referralCode: e.referralCode,
3464
3527
  verificationCode: e.verificationCode,
3465
3528
  reCAPTCHAResponse: e.reCAPTCHAResponse
3466
3529
  });
3467
- return r.ok ? { ok: !0, data: { id: t } } : r;
3530
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3468
3531
  }
3469
3532
  async createAccount__next(e) {
3470
3533
  const t = e.id ?? O.generate($.Account).toString();
3471
3534
  if (e.type === "MOBILE_NUMBER") {
3472
- const a = await this.accountService.registerMemberAccountViaMobile({
3535
+ const r = await this.accountService.registerMemberAccountViaMobile({
3473
3536
  input: {
3474
3537
  id: t,
3475
- mobileNumber: W(e.mobileNumber, await this.locale)
3538
+ mobileNumber: x(e.mobileNumber, await this.locale)
3476
3539
  },
3477
3540
  referralCode: e.referralCode,
3478
3541
  reCAPTCHAResponse: e.reCAPTCHAResponse,
3479
3542
  verificationCode: e.verificationCode
3480
3543
  });
3481
- return a.ok ? { ok: !0, data: { id: t } } : a;
3544
+ return r.ok ? { ok: !0, data: { id: t } } : r;
3482
3545
  }
3483
- const r = await this.accountService.registerMemberAccount__next({
3546
+ const a = await this.accountService.registerMemberAccount__next({
3484
3547
  input: {
3485
3548
  id: t,
3486
3549
  name: e.name,
3487
3550
  password: await g(e.password),
3488
- mobileNumber: e.mobileNumber ? W(e.mobileNumber, await this.locale) : void 0
3551
+ mobileNumber: e.mobileNumber ? x(e.mobileNumber, await this.locale) : void 0
3489
3552
  },
3490
3553
  reCAPTCHAResponse: e.reCAPTCHAResponse
3491
3554
  });
3492
- return r.ok ? { ok: !0, data: { id: t } } : r;
3555
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3493
3556
  }
3494
3557
  async registerMayaAccount(e) {
3495
3558
  return await this.accountService.registerMayaMemberAccount({
@@ -3509,7 +3572,7 @@ class er {
3509
3572
  password: t.password ? await g(t.password) : void 0,
3510
3573
  transactionPassword: t.transactionPassword ? await g(t.transactionPassword) : void 0,
3511
3574
  ...t.mobileNumber && {
3512
- mobileNumber: W(t.mobileNumber, await this.locale)
3575
+ mobileNumber: x(t.mobileNumber, await this.locale)
3513
3576
  },
3514
3577
  secretAnswer: t.secretAnswer ? await g(t.secretAnswer) : void 0
3515
3578
  }
@@ -3531,13 +3594,13 @@ class er {
3531
3594
  } : e;
3532
3595
  }
3533
3596
  async submitVerificationDetails(e) {
3534
- const t = e.id ?? O.generate($.Verification).toString(), r = await this.accountService.createMemberVerification({
3597
+ const t = e.id ?? O.generate($.Verification).toString(), a = await this.accountService.createMemberVerification({
3535
3598
  input: {
3536
3599
  id: t,
3537
3600
  ...e
3538
3601
  }
3539
3602
  });
3540
- return r.ok ? { ok: !0, data: { id: t } } : r;
3603
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3541
3604
  }
3542
3605
  async updateVerificationDetails(e, t) {
3543
3606
  return await this.accountService.updateMemberVerification({
@@ -3552,7 +3615,7 @@ class er {
3552
3615
  async resetPassword(e) {
3553
3616
  return await this.accountService.resetPassword({
3554
3617
  input: {
3555
- mobileNumber: W(e.mobileNumber, await this.locale),
3618
+ mobileNumber: x(e.mobileNumber, await this.locale),
3556
3619
  newPassword: await g(e.newPassword)
3557
3620
  },
3558
3621
  verificationCode: e.verificationCode
@@ -3579,7 +3642,7 @@ class er {
3579
3642
  return await this.accountService.sendVerificationCode({
3580
3643
  input: {
3581
3644
  channel: "SMS",
3582
- recipient: W(e, await this.locale)
3645
+ recipient: x(e, await this.locale)
3583
3646
  }
3584
3647
  });
3585
3648
  }
@@ -3587,7 +3650,7 @@ class er {
3587
3650
  if (e.type === "SMS")
3588
3651
  return this.authService.sendVerificationCode({
3589
3652
  channel: "SMS",
3590
- recipient: W(e.mobileNumber, await this.locale),
3653
+ recipient: x(e.mobileNumber, await this.locale),
3591
3654
  ...e.strict && {
3592
3655
  verificationType: "MEMBER"
3593
3656
  }
@@ -3619,9 +3682,9 @@ class er {
3619
3682
  return t.ok ? {
3620
3683
  ok: !0,
3621
3684
  data: {
3622
- announcements: t.data.edges.map(({ cursor: r, node: a }) => ({
3623
- ...this.transformer.transform.announcement(a),
3624
- cursor: r
3685
+ announcements: t.data.edges.map(({ cursor: a, node: r }) => ({
3686
+ ...this.transformer.transform.announcement(r),
3687
+ cursor: a
3625
3688
  })),
3626
3689
  totalCount: t.data.totalCount,
3627
3690
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3637,46 +3700,46 @@ class er {
3637
3700
  async createWithdrawal(e) {
3638
3701
  const t = e.id ?? O.generate($.Withdrawal).toString();
3639
3702
  if (e.type === "BANK") {
3640
- const r = await this.walletService.createBankWithdrawal({
3703
+ const a = await this.walletService.createBankWithdrawal({
3641
3704
  input: {
3642
3705
  id: t,
3643
3706
  amount: e.amount.toString(),
3644
3707
  transactionPassword: await g(e.transactionPassword)
3645
3708
  }
3646
3709
  });
3647
- if (!r.ok) return r;
3710
+ if (!a.ok) return a;
3648
3711
  }
3649
3712
  if (e.type === "GCASH") {
3650
- const r = await this.walletService.createGCashWithdrawal({
3713
+ const a = await this.walletService.createGCashWithdrawal({
3651
3714
  input: {
3652
3715
  id: t,
3653
3716
  amount: e.amount.toString(),
3654
3717
  transactionPassword: await g(e.transactionPassword),
3655
- recipientMobileNumber: W(e.recipientMobileNumber, await this.locale)
3718
+ recipientMobileNumber: x(e.recipientMobileNumber, await this.locale)
3656
3719
  }
3657
3720
  });
3658
- if (!r.ok) return r;
3721
+ if (!a.ok) return a;
3659
3722
  }
3660
3723
  if (e.type === "MAYA") {
3661
- const r = await this.walletService.createMayaWithdrawal({
3724
+ const a = await this.walletService.createMayaWithdrawal({
3662
3725
  input: {
3663
3726
  id: t,
3664
3727
  amount: e.amount.toString(),
3665
3728
  transactionPassword: await g(e.transactionPassword),
3666
- recipientMobileNumber: W(e.recipientMobileNumber, await this.locale)
3729
+ recipientMobileNumber: x(e.recipientMobileNumber, await this.locale)
3667
3730
  }
3668
3731
  });
3669
- if (!r.ok) return r;
3732
+ if (!a.ok) return a;
3670
3733
  }
3671
3734
  if (e.type === "MAYA_APP") {
3672
- const r = await this.walletService.createMayaAppWithdrawal({
3735
+ const a = await this.walletService.createMayaAppWithdrawal({
3673
3736
  input: {
3674
3737
  id: t,
3675
3738
  amount: e.amount.toString(),
3676
3739
  transactionPassword: await g(e.transactionPassword)
3677
3740
  }
3678
3741
  });
3679
- if (!r.ok) return r;
3742
+ if (!a.ok) return a;
3680
3743
  }
3681
3744
  return { ok: !0, data: { id: t } };
3682
3745
  }
@@ -3685,9 +3748,9 @@ class er {
3685
3748
  return t.ok ? {
3686
3749
  ok: !0,
3687
3750
  data: {
3688
- withdrawalRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3689
- ...this.transformer.transform.withdrawalRecord(a),
3690
- cursor: r
3751
+ withdrawalRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3752
+ ...this.transformer.transform.withdrawalRecord(r),
3753
+ cursor: a
3691
3754
  })),
3692
3755
  totalCount: t.data.totalCount,
3693
3756
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3706,54 +3769,54 @@ class er {
3706
3769
  async createDeposit(e) {
3707
3770
  const t = e.id ?? O.generate($.Deposit).toString();
3708
3771
  if (e.type === "MAYA") {
3709
- const r = await this.walletService.createMayaDeposit({
3772
+ const a = await this.walletService.createMayaDeposit({
3710
3773
  input: {
3711
3774
  id: t,
3712
3775
  amount: e.amount.toString(),
3713
3776
  promo: e.promo
3714
3777
  }
3715
3778
  });
3716
- if (!r.ok) return r;
3779
+ if (!a.ok) return a;
3717
3780
  }
3718
3781
  if (e.type === "MAYA_APP") {
3719
- const r = await this.walletService.createMayaAppDeposit({
3782
+ const a = await this.walletService.createMayaAppDeposit({
3720
3783
  input: {
3721
3784
  id: t,
3722
3785
  amount: e.amount.toString(),
3723
3786
  promo: e.promo
3724
3787
  }
3725
3788
  });
3726
- if (!r.ok) return r;
3789
+ if (!a.ok) return a;
3727
3790
  }
3728
3791
  if (e.type === "GCASH") {
3729
- const r = await this.walletService.createGCashDeposit({
3792
+ const a = await this.walletService.createGCashDeposit({
3730
3793
  input: {
3731
3794
  id: t,
3732
3795
  amount: e.amount.toString(),
3733
3796
  promo: e.promo
3734
3797
  }
3735
3798
  });
3736
- if (!r.ok) return r;
3799
+ if (!a.ok) return a;
3737
3800
  }
3738
3801
  if (e.type === "AIO_ONLINE_BANK") {
3739
- const r = await this.walletService.createAIOOnlineBankDeposit({
3802
+ const a = await this.walletService.createAIOOnlineBankDeposit({
3740
3803
  input: {
3741
3804
  id: t,
3742
3805
  amount: e.amount.toString(),
3743
3806
  promo: e.promo
3744
3807
  }
3745
3808
  });
3746
- if (!r.ok) return r;
3809
+ if (!a.ok) return a;
3747
3810
  }
3748
3811
  if (e.type === "AIO_QRPH") {
3749
- const r = await this.walletService.createAIOQRPHDeposit({
3812
+ const a = await this.walletService.createAIOQRPHDeposit({
3750
3813
  input: {
3751
3814
  id: t,
3752
3815
  amount: e.amount.toString(),
3753
3816
  promo: e.promo
3754
3817
  }
3755
3818
  });
3756
- if (!r.ok) return r;
3819
+ if (!a.ok) return a;
3757
3820
  }
3758
3821
  return { ok: !0, data: { id: t } };
3759
3822
  }
@@ -3769,9 +3832,9 @@ class er {
3769
3832
  return t.ok ? {
3770
3833
  ok: !0,
3771
3834
  data: {
3772
- depositRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3773
- ...this.transformer.transform.depositRecord(a),
3774
- cursor: r
3835
+ depositRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3836
+ ...this.transformer.transform.depositRecord(r),
3837
+ cursor: a
3775
3838
  })),
3776
3839
  totalCount: t.data.totalCount,
3777
3840
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3816,9 +3879,9 @@ class er {
3816
3879
  return t.ok ? {
3817
3880
  ok: !0,
3818
3881
  data: {
3819
- betRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3820
- ...this.transformer.transform.betRecord(a),
3821
- cursor: r
3882
+ betRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3883
+ ...this.transformer.transform.betRecord(r),
3884
+ cursor: a
3822
3885
  })),
3823
3886
  totalCount: t.data.totalCount,
3824
3887
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3843,9 +3906,9 @@ class er {
3843
3906
  return t.ok ? {
3844
3907
  ok: !0,
3845
3908
  data: {
3846
- transactionRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
3847
- ...this.transformer.transform.transactionRecord(a),
3848
- cursor: r
3909
+ transactionRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
3910
+ ...this.transformer.transform.transactionRecord(r),
3911
+ cursor: a
3849
3912
  })),
3850
3913
  totalCount: t.data.totalCount,
3851
3914
  endCursor: t.data.pageInfo.endCursor ?? void 0,
@@ -3913,9 +3976,9 @@ class er {
3913
3976
  return t.ok ? {
3914
3977
  ok: !0,
3915
3978
  data: {
3916
- games: t.data.edges.map(({ cursor: r, node: a }) => ({
3917
- ...this.transformer.transform.game(a),
3918
- cursor: r
3979
+ games: t.data.edges.map(({ cursor: a, node: r }) => ({
3980
+ ...this.transformer.transform.game(r),
3981
+ cursor: a
3919
3982
  })),
3920
3983
  totalCount: t.data.totalCount,
3921
3984
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -3931,27 +3994,27 @@ class er {
3931
3994
  ok: !0,
3932
3995
  data: this.transformer.transform.gameSession(t.data)
3933
3996
  };
3934
- const r = await this.gameService.gameSession({ id: e });
3935
- return r.ok ? {
3997
+ const a = await this.gameService.gameSession({ id: e });
3998
+ return a.ok ? {
3936
3999
  ok: !0,
3937
- data: r.data ? this.transformer.transform.gameSession(r.data) : null
3938
- } : r;
4000
+ data: a.data ? this.transformer.transform.gameSession(a.data) : null
4001
+ } : a;
3939
4002
  }
3940
4003
  async createGameSession(e) {
3941
4004
  const t = e.id ?? O.generate($.GameSession).toString();
3942
4005
  if (e.game.startsWith("SPORTS:")) {
3943
4006
  const f = await O.generateFromKey($.Game, e.game).then(
3944
- (l) => l.toString()
3945
- ), h = await this.gameService.createGameSession({
4007
+ (d) => d.toString()
4008
+ ), w = await this.gameService.createGameSession({
3946
4009
  input: {
3947
4010
  id: t,
3948
4011
  game: f
3949
4012
  }
3950
4013
  });
3951
- return h.ok ? { ok: !0, data: { id: t } } : h;
4014
+ return w.ok ? { ok: !0, data: { id: t } } : w;
3952
4015
  }
3953
- const a = await this.game(e.game);
3954
- if (!a.data)
4016
+ const r = await this.game(e.game);
4017
+ if (!r.data)
3955
4018
  return {
3956
4019
  ok: !1,
3957
4020
  error: {
@@ -3959,7 +4022,7 @@ class er {
3959
4022
  message: "Game does not exist"
3960
4023
  }
3961
4024
  };
3962
- const { provider: s, reference: m } = a.data, p = [
4025
+ const { provider: s, reference: m } = r.data, p = [
3963
4026
  /**/
3964
4027
  "RTG",
3965
4028
  "DARWIN",
@@ -3988,13 +4051,13 @@ class er {
3988
4051
  } : t;
3989
4052
  }
3990
4053
  async uploadImageFile(e) {
3991
- const t = e.id ?? O.generate($.File).toString(), r = await this.fileService.uploadPrivateImageFile({
4054
+ const t = e.id ?? O.generate($.File).toString(), a = await this.fileService.uploadPrivateImageFile({
3992
4055
  input: {
3993
4056
  id: t,
3994
4057
  file: e.file
3995
4058
  }
3996
4059
  });
3997
- return r.ok ? { ok: !0, data: { id: t } } : r;
4060
+ return a.ok ? { ok: !0, data: { id: t } } : a;
3998
4061
  }
3999
4062
  /**/
4000
4063
  /*+----------------------------------------+*/
@@ -4020,9 +4083,9 @@ class er {
4020
4083
  return t.ok ? {
4021
4084
  ok: !0,
4022
4085
  data: {
4023
- pointsWalletTransactions: t.data.edges.map(({ cursor: r, node: a }) => ({
4024
- ...this.transformer.transform.pointsWalletTransaction(a),
4025
- cursor: r
4086
+ pointsWalletTransactions: t.data.edges.map(({ cursor: a, node: r }) => ({
4087
+ ...this.transformer.transform.pointsWalletTransaction(r),
4088
+ cursor: a
4026
4089
  })),
4027
4090
  totalCount: t.data.totalCount,
4028
4091
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4040,9 +4103,9 @@ class er {
4040
4103
  return t.ok ? {
4041
4104
  ok: !0,
4042
4105
  data: {
4043
- activityRecords: t.data.edges.map(({ cursor: r, node: a }) => ({
4044
- ...this.transformer.transform.activityRecord(a),
4045
- cursor: r
4106
+ activityRecords: t.data.edges.map(({ cursor: a, node: r }) => ({
4107
+ ...this.transformer.transform.activityRecord(r),
4108
+ cursor: a
4046
4109
  })),
4047
4110
  totalCount: t.data.totalCount,
4048
4111
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4070,9 +4133,9 @@ class er {
4070
4133
  return t.ok ? {
4071
4134
  ok: !0,
4072
4135
  data: {
4073
- referrals: t.data.edges.map(({ cursor: r, node: a }) => ({
4074
- ...this.transformer.transform.referral(a),
4075
- cursor: r
4136
+ referrals: t.data.edges.map(({ cursor: a, node: r }) => ({
4137
+ ...this.transformer.transform.referral(r),
4138
+ cursor: a
4076
4139
  })),
4077
4140
  totalCount: t.data.totalCount,
4078
4141
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4118,9 +4181,9 @@ class er {
4118
4181
  return t.ok ? {
4119
4182
  ok: !0,
4120
4183
  data: {
4121
- messages: t.data.edges.map(({ cursor: r, node: a }) => ({
4122
- ...this.transformer.transform.message(a),
4123
- cursor: r
4184
+ messages: t.data.edges.map(({ cursor: a, node: r }) => ({
4185
+ ...this.transformer.transform.message(r),
4186
+ cursor: a
4124
4187
  })),
4125
4188
  totalCount: t.data.totalCount,
4126
4189
  hasNextPage: t.data.pageInfo.hasNextPage,
@@ -4139,8 +4202,8 @@ class er {
4139
4202
  }
4140
4203
  }
4141
4204
  export {
4142
- ar as ObjectId,
4205
+ Aa as ObjectId,
4143
4206
  $ as ObjectType,
4144
- er as Sdk
4207
+ ga as Sdk
4145
4208
  };
4146
4209
  //# sourceMappingURL=index.mjs.map