@opexa/portal-sdk 0.0.87 → 0.0.89

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,9 +1,9 @@
1
- var Te = Object.defineProperty;
2
- var _e = (o, e, t) => e in o ? Te(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var m = (o, e, t) => _e(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { ObjectId as k } from "@opexa/object-id";
5
- import { ObjectId as Vt } from "@opexa/object-id";
6
- const T = {
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);
4
+ import { ObjectId as $ } from "@opexa/object-id";
5
+ import { ObjectId as zt } from "@opexa/object-id";
6
+ const U = {
7
7
  Account: 8,
8
8
  Deposit: 9,
9
9
  Withdrawal: 14,
@@ -13,23 +13,23 @@ const T = {
13
13
  GameSession: 204,
14
14
  MayaSession: 230
15
15
  };
16
- function i(o, ...e) {
16
+ function o(n, ...e) {
17
17
  let t = "";
18
- for (const [r, a] of o.entries()) {
18
+ for (const [r, a] of n.entries()) {
19
19
  const s = e.at(r) ?? "";
20
20
  t = `${t}${a}${s}`;
21
21
  }
22
22
  return t.trim();
23
23
  }
24
- const L = 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
- `, ve = i`
32
- ${L}
31
+ `, ve = o`
32
+ ${de}
33
33
 
34
34
  query File($id: ObjectId!) {
35
35
  node(id: $id) {
@@ -38,7 +38,7 @@ const L = i`
38
38
  }
39
39
  }
40
40
  }
41
- `, Me = i`
41
+ `, Me = o`
42
42
  mutation UploadPrivateImageFile($input: UploadFileInput!) {
43
43
  uploadPrivateImageFile(input: $input) {
44
44
  ... on FileFormatNotSupportedError {
@@ -52,7 +52,7 @@ const L = i`
52
52
  }
53
53
  }
54
54
  }
55
- `, Re = i`
55
+ `, Re = o`
56
56
  query Wallet {
57
57
  wallet {
58
58
  id
@@ -62,7 +62,7 @@ const L = i`
62
62
  dateTimeLastUpdated
63
63
  }
64
64
  }
65
- `, Ne = i`
65
+ `, Ne = o`
66
66
  query PointsWallet {
67
67
  pointsWallet {
68
68
  id
@@ -71,7 +71,7 @@ const L = i`
71
71
  dateTimeCreated
72
72
  }
73
73
  }
74
- `, Ie = i`
74
+ `, De = o`
75
75
  mutation RedeemPointsToCash($input: RedeemPointsToCashInput!) {
76
76
  redeemPointsToCash(input: $input) {
77
77
  ... on InsufficientPointsError {
@@ -79,7 +79,7 @@ const L = i`
79
79
  }
80
80
  }
81
81
  }
82
- `, De = i`
82
+ `, Ie = o`
83
83
  query PointsWalletTransactions(
84
84
  $first: Int
85
85
  $after: Cursor
@@ -107,8 +107,8 @@ const L = i`
107
107
  }
108
108
  }
109
109
  }
110
- `, Ee = {
111
- current: i`
110
+ `, be = {
111
+ current: o`
112
112
  query GameSession($id: ObjectId!) {
113
113
  node(id: $id) {
114
114
  ... on GameSession {
@@ -122,7 +122,7 @@ const L = 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 L = i`
138
138
  }
139
139
  }
140
140
  `
141
- }, be = i`
141
+ }, Ee = o`
142
142
  mutation CreateGameSession($input: CreateGameSessionInput!) {
143
143
  createGameSession(input: $input) {
144
144
  ... on GameDoesNotExistError {
@@ -146,13 +146,13 @@ const L = i`
146
146
  }
147
147
  }
148
148
  }
149
- `, Ae = {
150
- current: i`
149
+ `, Se = {
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 L = i`
167
167
  }
168
168
  }
169
169
  `
170
- }, Pe = i`
170
+ }, Ge = 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 L = i`
193
193
  }
194
194
  }
195
195
  }
196
- `, $e = i`
196
+ `, Pe = 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 L = i`
260
260
  }
261
261
  }
262
262
  }
263
- `, xe = i`
263
+ `, We = o`
264
264
  mutation CreateGCashWithdrawal($input: CreateGCashWithdrawalInput!) {
265
265
  createGCashWithdrawal(input: $input) {
266
266
  ... on AccountNotVerifiedError {
@@ -283,7 +283,7 @@ const L = i`
283
283
  }
284
284
  }
285
285
  }
286
- `, Ue = i`
286
+ `, xe = o`
287
287
  mutation CreateMayaWithdrawal($input: CreateMayaWithdrawalInput!) {
288
288
  createMayaWithdrawal(input: $input) {
289
289
  ... on AccountNotVerifiedError {
@@ -306,7 +306,7 @@ const L = i`
306
306
  }
307
307
  }
308
308
  }
309
- `, Ge = i`
309
+ `, $e = o`
310
310
  mutation CreateMayaAppWithdrawal($input: CreateMayaAppWithdrawalInput!) {
311
311
  createMayaAppWithdrawal(input: $input) {
312
312
  ... on AccountNotVerifiedError {
@@ -326,7 +326,7 @@ const L = i`
326
326
  }
327
327
  }
328
328
  }
329
- `, Oe = i`
329
+ `, Ue = o`
330
330
  mutation CreateBankWithdrawal($input: CreateBankWithdrawalInput!) {
331
331
  createBankWithdrawal(input: $input) {
332
332
  ... on MobileNumberNotVerifiedError {
@@ -349,11 +349,11 @@ const L = i`
349
349
  }
350
350
  }
351
351
  }
352
- `, We = i`
352
+ `, Oe = o`
353
353
  query RemainingDailyWithdrawalsCount {
354
354
  remainingDailyWithdrawalsCount
355
355
  }
356
- `, Be = i`
356
+ `, Be = 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 L = i`
382
382
  }
383
383
  }
384
384
  }
385
- `, qe = i`
385
+ `, qe = o`
386
386
  mutation CreateGCashDeposit($input: CreateGCashDepositInput!) {
387
387
  createGCashDeposit(input: $input) {
388
388
  ... on DepositPromoMaximumAmountExceededError {
@@ -411,7 +411,7 @@ const L = i`
411
411
  }
412
412
  }
413
413
  }
414
- `, Fe = i`
414
+ `, Fe = o`
415
415
  mutation CreateMayaDeposit($input: CreateMayaDepositInput!) {
416
416
  createMayaDeposit(input: $input) {
417
417
  ... on DepositPromoMaximumAmountExceededError {
@@ -440,7 +440,7 @@ const L = i`
440
440
  }
441
441
  }
442
442
  }
443
- `, Le = i`
443
+ `, Le = o`
444
444
  mutation CreateMayaAppDeposit($input: CreateMayaAppDepositInput!) {
445
445
  createMayaAppDeposit(input: $input) {
446
446
  ... on DepositPromoMaximumAmountExceededError {
@@ -469,7 +469,7 @@ const L = i`
469
469
  }
470
470
  }
471
471
  }
472
- `, Ve = i`
472
+ `, Ve = o`
473
473
  query Deposit($id: ObjectId!) {
474
474
  node(id: $id) {
475
475
  ... on GCashDeposit {
@@ -501,13 +501,13 @@ const L = i`
501
501
  }
502
502
  }
503
503
  }
504
- `, He = i`
504
+ `, He = o`
505
505
  query DepositsCount {
506
506
  member {
507
507
  depositsCount
508
508
  }
509
509
  }
510
- `, Ye = i`
510
+ `, Ye = o`
511
511
  query BetRecords($first: Int, $after: Cursor, $filter: BetRecordFilterInput) {
512
512
  member {
513
513
  betRecords(first: $first, after: $after, filter: $filter) {
@@ -548,7 +548,7 @@ const L = i`
548
548
  }
549
549
  }
550
550
  }
551
- `, je = i`
551
+ `, je = o`
552
552
  query LatestBetRecords {
553
553
  latestBetRecords {
554
554
  id
@@ -568,7 +568,7 @@ const L = i`
568
568
  dateTimeCreated
569
569
  }
570
570
  }
571
- `, Qe = i`
571
+ `, Qe = o`
572
572
  query TransactionRecords($first: Int, $after: Cursor, $filter: TransactionRecordFilter) {
573
573
  member {
574
574
  transactionRecords(first: $first, after: $after, filter: $filter) {
@@ -594,8 +594,8 @@ const L = i`
594
594
  }
595
595
  }
596
596
  }
597
- `, Y = i`
598
- ${L}
597
+ `, fe = o`
598
+ ${de}
599
599
 
600
600
  fragment PromoFragment on Promo {
601
601
  id
@@ -613,24 +613,24 @@ const L = i`
613
613
  dateTimeCreated
614
614
  dateTimeLastUpdated
615
615
  }
616
- `, Ke = i`
617
- ${Y}
616
+ `, Ke = o`
617
+ ${fe}
618
618
 
619
619
  query Promos {
620
620
  promos {
621
621
  ...PromoFragment
622
622
  }
623
623
  }
624
- `, ze = i`
625
- ${Y}
624
+ `, ze = o`
625
+ ${fe}
626
626
 
627
627
  query AvailablePromos($filter: PromoFilterInput) {
628
628
  availablePromos(filter: $filter) {
629
629
  ...PromoFragment
630
630
  }
631
631
  }
632
- `, Se = i`
633
- ${L}
632
+ `, Ae = o`
633
+ ${de}
634
634
 
635
635
  fragment CashbackFragment on Cashback {
636
636
  id
@@ -648,16 +648,16 @@ const L = i`
648
648
  dateTimeCreated
649
649
  dateTimeLastUpdated
650
650
  }
651
- `, Je = i`
652
- ${Se}
651
+ `, Je = o`
652
+ ${Ae}
653
653
 
654
654
  query Cashbacks {
655
655
  cashbacks {
656
656
  ...CashbackFragment
657
657
  }
658
658
  }
659
- `, Xe = i`
660
- ${Y}
659
+ `, Xe = o`
660
+ ${fe}
661
661
 
662
662
  query Bonus {
663
663
  bonus {
@@ -685,8 +685,8 @@ const L = i`
685
685
  dateTimeLastUpdated
686
686
  }
687
687
  }
688
- `, Ze = i`
689
- ${Se}
688
+ `, Ze = o`
689
+ ${Ae}
690
690
 
691
691
  query CashbackBonuses {
692
692
  cashbackBonuses {
@@ -700,7 +700,7 @@ const L = i`
700
700
  dateTimeLastUpdated
701
701
  }
702
702
  }
703
- `, et = i`
703
+ `, et = o`
704
704
  mutation ClaimCashbackBonus($input: ClaimCashbackBonusInput!) {
705
705
  claimCashbackBonus(input: $input) {
706
706
  ... on CashbackBonusDoesNotExistError {
@@ -709,14 +709,14 @@ const L = i`
709
709
  }
710
710
  }
711
711
  `;
712
- i`
712
+ o`
713
713
  query Member {
714
714
  member {
715
715
  dateTimeLastActive
716
716
  }
717
717
  }
718
718
  `;
719
- const tt = i`
719
+ const tt = o`
720
720
  query MemberAccount {
721
721
  memberAccount: self {
722
722
  ... on MemberAccount {
@@ -740,8 +740,8 @@ const tt = i`
740
740
  }
741
741
  }
742
742
  }
743
- `, rt = i`
744
- ${L}
743
+ `, rt = o`
744
+ ${de}
745
745
 
746
746
  query MemberVerification {
747
747
  memberAccount: self {
@@ -765,7 +765,7 @@ const tt = i`
765
765
  }
766
766
  }
767
767
  }
768
- `, at = i`
768
+ `, at = o`
769
769
  mutation RegisterMemberAccount(
770
770
  $input: RegisterMemberAccountInput!
771
771
  $referralCode: String
@@ -801,7 +801,7 @@ const tt = i`
801
801
  }
802
802
  }
803
803
  }
804
- `, ot = i`
804
+ `, nt = o`
805
805
  mutation RegisterMemberAccountViaMobile(
806
806
  $input: RegisterMemberAccountViaMobileInput!
807
807
  $referralCode: String
@@ -828,7 +828,7 @@ const tt = i`
828
828
  }
829
829
  }
830
830
  }
831
- `, nt = i`
831
+ `, it = o`
832
832
  mutation RegisterMemberAccount(
833
833
  $input: RegisterMemberAccountInput_next!
834
834
  $reCAPTCHAResponse: String
@@ -860,7 +860,7 @@ const tt = i`
860
860
  }
861
861
  }
862
862
  }
863
- `, it = i`
863
+ `, ot = o`
864
864
  mutation RegisterMayaMemberAccount($input: RegisterMayaMemberAccountInput!) {
865
865
  registerMayaMemberAccount(input: $input) {
866
866
  ... on AccountNameNotAvailableError {
@@ -868,7 +868,7 @@ const tt = i`
868
868
  }
869
869
  }
870
870
  }
871
- `, st = i`
871
+ `, st = o`
872
872
  mutation UpdateMemberAccount($input: UpdateMemberAccountInput!) {
873
873
  updateMemberAccount(input: $input) {
874
874
  ... on AccountNameNotAvailableError {
@@ -894,7 +894,7 @@ const tt = i`
894
894
  }
895
895
  }
896
896
  }
897
- `, ct = i`
897
+ `, mt = o`
898
898
  mutation ResetPassword($input: ResetPasswordInput!, $verificationCode: String) {
899
899
  resetPassword(input: $input, verificationCode: $verificationCode) {
900
900
  ... on AccountNotFoundError {
@@ -905,11 +905,11 @@ const tt = i`
905
905
  }
906
906
  }
907
907
  }
908
- `, mt = i`
908
+ `, ct = o`
909
909
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
910
910
  deleteMemberAccount(input: $input)
911
911
  }
912
- `, dt = i`
912
+ `, dt = o`
913
913
  mutation VerifyMobileNumber($input: VerifyMobileNumberInput!) {
914
914
  verifyMobileNumber(input: $input) {
915
915
  ... on InvalidSMSVerificationCodeError {
@@ -920,7 +920,7 @@ const tt = i`
920
920
  }
921
921
  }
922
922
  }
923
- `, ut = i`
923
+ `, ut = o`
924
924
  mutation CreateMemberVerification($input: CreateMemberVerificationInput!) {
925
925
  createMemberVerification(input: $input) {
926
926
  ... on FileDoesNotExistError {
@@ -934,7 +934,7 @@ const tt = i`
934
934
  }
935
935
  }
936
936
  }
937
- `, lt = i`
937
+ `, lt = o`
938
938
  mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
939
939
  updateMemberVerification(input: $input) {
940
940
  ... on FileDoesNotExistError {
@@ -951,7 +951,7 @@ const tt = i`
951
951
  }
952
952
  }
953
953
  }
954
- `, pt = i`
954
+ `, pt = o`
955
955
  query ProfileCompletion {
956
956
  profileCompletion {
957
957
  completionPercentage
@@ -962,7 +962,7 @@ const tt = i`
962
962
  accountPassword
963
963
  }
964
964
  }
965
- `, ft = i`
965
+ `, ft = o`
966
966
  mutation SendVerificationCode($input: SendVerificationCodeInput!) {
967
967
  sendVerificationCode(input: $input) {
968
968
  ... on InvalidPlatformError {
@@ -973,7 +973,7 @@ const tt = i`
973
973
  }
974
974
  }
975
975
  }
976
- `, ht = i`
976
+ `, ht = o`
977
977
  fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
978
978
  minimumAmount
979
979
  maximumAmount
@@ -1029,7 +1029,63 @@ const tt = i`
1029
1029
  multiplier
1030
1030
  }
1031
1031
  }
1032
- `, wt = i`
1032
+ `, wt = o`
1033
+ query Platform {
1034
+ timezone
1035
+ currency
1036
+ }
1037
+ `, yt = o`
1038
+ fragment DepositGatewaySettingsCoreData on DepositGatewaySettings {
1039
+ minimumAmount
1040
+ maximumAmount
1041
+ fixedFee
1042
+ percentageFee
1043
+ webEnabled
1044
+ mobileWebEnabled
1045
+ androidEnabled
1046
+ iosEnabled
1047
+ }
1048
+
1049
+ fragment WithdrawalGatewaySettingsCoreData on WithdrawalGatewaySettings {
1050
+ minimumAmount
1051
+ maximumAmount
1052
+ fixedFee
1053
+ percentageFee
1054
+ webEnabled
1055
+ mobileWebEnabled
1056
+ androidEnabled
1057
+ iosEnabled
1058
+ }
1059
+
1060
+ query PaymentSettings {
1061
+ minimumFirstDepositAmount
1062
+ restrictWithdrawalsToVerifiedMembers
1063
+ bankDepositGatewaySettings: depositGatewaySettings(gateway: BANK) {
1064
+ ...DepositGatewaySettingsCoreData
1065
+ }
1066
+ gcashDepositGatewaySettings: depositGatewaySettings(gateway: GCASH) {
1067
+ ...DepositGatewaySettingsCoreData
1068
+ }
1069
+ mayaDepositGatewaySettings: depositGatewaySettings(gateway: MAYA) {
1070
+ ...DepositGatewaySettingsCoreData
1071
+ }
1072
+ mayaAppDepositGatewaySettings: depositGatewaySettings(gateway: MAYA_APP) {
1073
+ ...DepositGatewaySettingsCoreData
1074
+ }
1075
+ bankWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: BANK) {
1076
+ ...WithdrawalGatewaySettingsCoreData
1077
+ }
1078
+ gcashWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: GCASH) {
1079
+ ...WithdrawalGatewaySettingsCoreData
1080
+ }
1081
+ mayaWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA) {
1082
+ ...WithdrawalGatewaySettingsCoreData
1083
+ }
1084
+ mayaAppWithdrawalGatewaySettings: withdrawalGatewaySettings(gateway: MAYA_APP) {
1085
+ ...WithdrawalGatewaySettingsCoreData
1086
+ }
1087
+ }
1088
+ `, gt = o`
1033
1089
  query MayaSession($id: ObjectId!) {
1034
1090
  mayaSession(id: $id) {
1035
1091
  id
@@ -1037,11 +1093,11 @@ const tt = i`
1037
1093
  dateTimeCreated
1038
1094
  }
1039
1095
  }
1040
- `, yt = i`
1096
+ `, bt = o`
1041
1097
  mutation ValidateMayaSession {
1042
1098
  validateMayaSession: validMayaSession
1043
1099
  }
1044
- `, gt = i`
1100
+ `, Et = o`
1045
1101
  query ActivityRecords($after: Cursor, $first: Int, $filter: ActivityRecordsFilterInput) {
1046
1102
  member {
1047
1103
  activityRecords(after: $after, first: $first, filter: $filter) {
@@ -1066,11 +1122,11 @@ const tt = i`
1066
1122
  }
1067
1123
  }
1068
1124
  }
1069
- `, Et = i`
1125
+ `, St = o`
1070
1126
  query ReferralCode {
1071
1127
  referralCode
1072
1128
  }
1073
- `, bt = i`
1129
+ `, At = o`
1074
1130
  mutation UpdateReferralCode($input: UpdateReferralCodeInput!) {
1075
1131
  updateReferralCode(input: $input) {
1076
1132
  ... on ReferralCodeNotAvailableError {
@@ -1078,7 +1134,7 @@ const tt = i`
1078
1134
  }
1079
1135
  }
1080
1136
  }
1081
- `, j = i`
1137
+ `, he = o`
1082
1138
  fragment ReferralFragment on Referral {
1083
1139
  id
1084
1140
  upline {
@@ -1096,7 +1152,7 @@ const tt = i`
1096
1152
  commission
1097
1153
  dateTimeCreated
1098
1154
  }
1099
- `, At = i`
1155
+ `, Ct = o`
1100
1156
  query Referrals($first: Int, $after: Cursor, $filter: ReferralFilterInput) {
1101
1157
  member {
1102
1158
  referrals(first: $first, after: $after, filter: $filter) {
@@ -1117,24 +1173,24 @@ const tt = i`
1117
1173
  }
1118
1174
  }
1119
1175
 
1120
- ${j}
1121
- `, St = i`
1176
+ ${he}
1177
+ `, kt = o`
1122
1178
  query UplinesByName($search: String!, $first: Int) {
1123
1179
  uplinesByName(search: $search, first: $first) {
1124
1180
  ...ReferralFragment
1125
1181
  }
1126
1182
  }
1127
1183
 
1128
- ${j}
1129
- `, Ct = i`
1184
+ ${he}
1185
+ `, _t = o`
1130
1186
  query DownlinesByName($search: String!, $first: Int) {
1131
1187
  downlinesByName(search: $search, first: $first) {
1132
1188
  ...ReferralFragment
1133
1189
  }
1134
1190
  }
1135
1191
 
1136
- ${j}
1137
- `, kt = i`
1192
+ ${he}
1193
+ `, Tt = o`
1138
1194
  query ReferralCommission {
1139
1195
  member {
1140
1196
  referralCommission {
@@ -1153,10 +1209,16 @@ const tt = i`
1153
1209
  }
1154
1210
  }
1155
1211
  }
1212
+ `, vt = o`
1213
+ query PointsClubSettings {
1214
+ pointsClubSettings {
1215
+ multiplier
1216
+ }
1217
+ }
1156
1218
  `;
1157
- function d(o) {
1219
+ function d(n) {
1158
1220
  return {
1159
- name: o,
1221
+ name: n,
1160
1222
  message: {
1161
1223
  AccountNameNotAvailableError: "Username is no longer available",
1162
1224
  AccountNotFoundError: "Account does not exist",
@@ -1206,12 +1268,12 @@ function d(o) {
1206
1268
  InvalidTokenOrSecretAnswerError: "Invalid token or secret answer",
1207
1269
  SessionExpiredError: "Session expired",
1208
1270
  RateLimitExceededError: "Maximum number of requests reached"
1209
- }[o]
1271
+ }[n]
1210
1272
  };
1211
1273
  }
1212
- class Tt {
1274
+ class Mt {
1213
1275
  constructor(e) {
1214
- m(this, "client");
1276
+ c(this, "client");
1215
1277
  this.client = e;
1216
1278
  }
1217
1279
  /** aka `Query.self` */
@@ -1232,7 +1294,7 @@ class Tt {
1232
1294
  } : t;
1233
1295
  }
1234
1296
  async registerMemberAccountViaMobile(e) {
1235
- const t = await this.client.request(ot, e);
1297
+ const t = await this.client.request(nt, e);
1236
1298
  return t.ok ? t.data.registerMemberAccountViaMobile ? {
1237
1299
  ok: !1,
1238
1300
  error: d(t.data.registerMemberAccountViaMobile.__typename)
@@ -1241,7 +1303,7 @@ class Tt {
1241
1303
  } : t;
1242
1304
  }
1243
1305
  async registerMemberAccount__next(e) {
1244
- const t = await this.client.request(nt, e);
1306
+ const t = await this.client.request(it, e);
1245
1307
  return t.ok ? t.data.registerMemberAccount ? {
1246
1308
  ok: !1,
1247
1309
  error: d(t.data.registerMemberAccount.__typename)
@@ -1259,7 +1321,7 @@ class Tt {
1259
1321
  } : t;
1260
1322
  }
1261
1323
  async deleteMemberAccount(e) {
1262
- const t = await this.client.request(mt, e);
1324
+ const t = await this.client.request(ct, e);
1263
1325
  return t.ok ? t.data.deleteMemberAccount ? {
1264
1326
  ok: !0
1265
1327
  } : {
@@ -1272,7 +1334,7 @@ class Tt {
1272
1334
  }
1273
1335
  async resetPassword(e) {
1274
1336
  const t = await this.client.request(
1275
- ct,
1337
+ mt,
1276
1338
  e
1277
1339
  );
1278
1340
  return t.ok ? t.data.resetPassword ? {
@@ -1286,6 +1348,7 @@ class Tt {
1286
1348
  const e = await this.client.request(pt);
1287
1349
  return e.ok ? { ok: !0, data: e.data.profileCompletion } : e;
1288
1350
  }
1351
+ /** @deprecated */
1289
1352
  async platform() {
1290
1353
  return await this.client.request(ht);
1291
1354
  }
@@ -1299,6 +1362,9 @@ class Tt {
1299
1362
  ok: !0
1300
1363
  } : t;
1301
1364
  }
1365
+ async paymentSettings() {
1366
+ return await this.client.request(yt);
1367
+ }
1302
1368
  async verifyMobileNumber(e) {
1303
1369
  const t = await this.client.request(dt, e);
1304
1370
  return t.ok ? t.data.verifyMobileNumber ? {
@@ -1335,7 +1401,7 @@ class Tt {
1335
1401
  }
1336
1402
  async announcements(e) {
1337
1403
  const t = await this.client.request(
1338
- Pe,
1404
+ Ge,
1339
1405
  e
1340
1406
  );
1341
1407
  return t.ok ? {
@@ -1344,7 +1410,7 @@ class Tt {
1344
1410
  } : t;
1345
1411
  }
1346
1412
  async registerMayaMemberAccount(e) {
1347
- const t = await this.client.request(it, e);
1413
+ const t = await this.client.request(ot, e);
1348
1414
  return t.ok ? t.data.registerMayaMemberAccount ? {
1349
1415
  ok: !1,
1350
1416
  error: d(t.data.registerMayaMemberAccount.__typename)
@@ -1353,14 +1419,14 @@ class Tt {
1353
1419
  } : t;
1354
1420
  }
1355
1421
  async referralCode() {
1356
- const e = await this.client.request(Et);
1422
+ const e = await this.client.request(St);
1357
1423
  return e.ok ? {
1358
1424
  ok: !0,
1359
1425
  data: e.data.referralCode
1360
1426
  } : e;
1361
1427
  }
1362
1428
  async updateReferralCode(e) {
1363
- const t = await this.client.request(bt, e);
1429
+ const t = await this.client.request(At, e);
1364
1430
  return t.ok ? t.data.updateReferralCode ? {
1365
1431
  ok: !1,
1366
1432
  error: d(t.data.updateReferralCode.__typename)
@@ -1368,18 +1434,19 @@ class Tt {
1368
1434
  ok: !0
1369
1435
  } : t;
1370
1436
  }
1437
+ async pointsClubSettings() {
1438
+ const e = await this.client.request(vt);
1439
+ return e.ok ? { ok: !0, data: e.data.pointsClubSettings } : e;
1440
+ }
1371
1441
  }
1372
- function b(o) {
1373
- return o.startsWith("+63") ? o : o.startsWith("63") ? `+${o}` : o.startsWith("0") ? `+63${o.substring(1)}` : `+63${o}`;
1374
- }
1375
- function h(o, e) {
1376
- const t = V[o] ? V[o] : V[500];
1442
+ function w(n, e) {
1443
+ const t = ue[n] ? ue[n] : ue[500];
1377
1444
  return {
1378
1445
  name: t.name,
1379
1446
  message: e ?? t.message
1380
1447
  };
1381
1448
  }
1382
- const V = {
1449
+ const ue = {
1383
1450
  400: { name: "HttpBadRequest", message: "Bad Request" },
1384
1451
  401: { name: "HttpUnauthorized", message: "Unauthorized" },
1385
1452
  403: { name: "HttpForbidden", message: "Forbidden" },
@@ -1388,10 +1455,10 @@ const V = {
1388
1455
  429: { name: "HttpTooManyRequests", message: "Too Many Requests" },
1389
1456
  500: { name: "HttpInternalServerError", message: "Internal Server Error" }
1390
1457
  };
1391
- class _t {
1458
+ class Rt {
1392
1459
  constructor(e) {
1393
- m(this, "url");
1394
- m(this, "platform");
1460
+ c(this, "url");
1461
+ c(this, "platform");
1395
1462
  this.url = e.url, this.platform = e.platform;
1396
1463
  }
1397
1464
  get headers() {
@@ -1405,8 +1472,8 @@ class _t {
1405
1472
  t.set("Authorization", `Basic ${a}`);
1406
1473
  }
1407
1474
  if (e.mobileNumber) {
1408
- const a = `${b(e.mobileNumber)}:${e.verificationCode}`, s = Buffer.from(a).toString("base64");
1409
- console.log(`MobileNumberOTP ${s}`), t.set("Authorization", `MobileNumberOTP ${s}`);
1475
+ const r = `${e.mobileNumber}:${e.verificationCode}`, a = Buffer.from(r).toString("base64");
1476
+ console.log(`MobileNumberOTP ${a}`), t.set("Authorization", `MobileNumberOTP ${a}`);
1410
1477
  }
1411
1478
  e.sessionId && t.set("Authorization", `MayaSession ${e.sessionId}`);
1412
1479
  try {
@@ -1422,12 +1489,12 @@ class _t {
1422
1489
  error: d("AccountBlacklistedError")
1423
1490
  } : {
1424
1491
  ok: !1,
1425
- error: h(r.status)
1492
+ error: w(r.status)
1426
1493
  };
1427
1494
  } catch {
1428
1495
  return {
1429
1496
  ok: !1,
1430
- error: h(500)
1497
+ error: w(500)
1431
1498
  };
1432
1499
  }
1433
1500
  }
@@ -1451,12 +1518,12 @@ class _t {
1451
1518
  error: d("InvalidTokenOrSecretAnswerError")
1452
1519
  } : {
1453
1520
  ok: !1,
1454
- error: h(r.status)
1521
+ error: w(r.status)
1455
1522
  };
1456
1523
  } catch {
1457
1524
  return {
1458
1525
  ok: !1,
1459
- error: h(500)
1526
+ error: w(500)
1460
1527
  };
1461
1528
  }
1462
1529
  }
@@ -1481,12 +1548,12 @@ class _t {
1481
1548
  error: d("InvalidTokenError")
1482
1549
  } : {
1483
1550
  ok: !1,
1484
- error: h(r.status)
1551
+ error: w(r.status)
1485
1552
  };
1486
1553
  } catch {
1487
1554
  return {
1488
1555
  ok: !1,
1489
- error: h(500)
1556
+ error: w(500)
1490
1557
  };
1491
1558
  }
1492
1559
  }
@@ -1498,9 +1565,9 @@ class _t {
1498
1565
  method: "DELETE",
1499
1566
  headers: t
1500
1567
  });
1501
- return r.ok ? { ok: !0 } : { ok: !1, error: h(r.status) };
1568
+ return r.ok ? { ok: !0 } : { ok: !1, error: w(r.status) };
1502
1569
  } catch {
1503
- return { ok: !1, error: h(500) };
1570
+ return { ok: !1, error: w(500) };
1504
1571
  }
1505
1572
  }
1506
1573
  async verifySession(e) {
@@ -1542,26 +1609,26 @@ class _t {
1542
1609
  error: d(s)
1543
1610
  } : {
1544
1611
  ok: !1,
1545
- error: h(r.status, a.message)
1612
+ error: w(r.status, a.message)
1546
1613
  };
1547
1614
  }
1548
1615
  return r.ok ? { ok: !0 } : {
1549
1616
  ok: !1,
1550
- error: h(r.status)
1617
+ error: w(r.status)
1551
1618
  };
1552
1619
  } catch {
1553
1620
  return {
1554
1621
  ok: !1,
1555
- error: h(500)
1622
+ error: w(500)
1556
1623
  };
1557
1624
  }
1558
1625
  }
1559
1626
  }
1560
- class vt {
1627
+ class Nt {
1561
1628
  constructor(e) {
1562
- m(this, "url");
1563
- m(this, "siteId");
1564
- m(this, "platformId");
1629
+ c(this, "url");
1630
+ c(this, "siteId");
1631
+ c(this, "platformId");
1565
1632
  this.url = e.url, this.siteId = e.site, this.platformId = e.platform;
1566
1633
  }
1567
1634
  async self() {
@@ -1572,22 +1639,22 @@ class vt {
1572
1639
  } : e;
1573
1640
  }
1574
1641
  async games(e) {
1575
- var a, s, c, u, p, f, w, l, _, v, M, R, N, E, I, D, S, P, $, x, C, U, O, W;
1642
+ var a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x;
1576
1643
  const t = new URLSearchParams();
1577
- 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), (u = (c = e == null ? void 0 : e.filter) == null ? void 0 : c.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(",")), (l = (w = e == null ? void 0 : e.filter) == null ? void 0 : w.type) != null && l.notIn && t.set("filter[type][nin]", e.filter.type.notIn.join(",")), (v = (_ = e == null ? void 0 : e.filter) == null ? void 0 : _.provider) != null && v.equal && t.set("filter[provider][eq]", e.filter.provider.equal), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notEqual && t.set("filter[provider][neq]", e.filter.provider.notEqual), (E = (N = e == null ? void 0 : e.filter) == null ? void 0 : N.provider) != null && E.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (D = (I = e == null ? void 0 : e.filter) == null ? void 0 : I.provider) != null && D.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (P = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && P.equal && t.set("filter[tags][eq]", e.filter.tags.equal.toLowerCase()), (x = ($ = e == null ? void 0 : e.filter) == null ? void 0 : $.tags) != null && x.notEqual && t.set("filter[tags][neq]", e.filter.tags.notEqual.toLowerCase()), (U = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.tags) != null && U.in && t.set(
1644
+ 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), (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(",")), (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(",")), (k = (C = e == null ? void 0 : e.filter) == null ? void 0 : C.provider) != null && k.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), (y = (v = e == null ? void 0 : e.filter) == null ? void 0 : v.provider) != null && y.in && t.set("filter[provider][in]", e.filter.provider.in.join(",")), (R = (M = e == null ? void 0 : e.filter) == null ? void 0 : M.provider) != null && R.notIn && t.set("filter[provider][nin]", e.filter.provider.notIn.join(",")), (N = (S = e == null ? void 0 : e.filter) == null ? void 0 : S.tags) != null && N.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()), (G = (A = e == null ? void 0 : e.filter) == null ? void 0 : A.tags) != null && G.in && t.set(
1578
1645
  "filter[tags][in]",
1579
- e.filter.tags.in.map((A) => A.toLowerCase()).join(",")
1580
- ), (W = (O = e == null ? void 0 : e.filter) == null ? void 0 : O.tags) != null && W.notIn && t.set(
1646
+ e.filter.tags.in.map((E) => E.toLowerCase()).join(",")
1647
+ ), (x = (W = e == null ? void 0 : e.filter) == null ? void 0 : W.tags) != null && x.notIn && t.set(
1581
1648
  "filter[tags][nin]",
1582
- e.filter.tags.notIn.map((A) => A.toLowerCase()).join(",")
1649
+ e.filter.tags.notIn.map((E) => E.toLowerCase()).join(",")
1583
1650
  );
1584
1651
  const r = await this.getJson("/games", t);
1585
1652
  return r.ok ? {
1586
1653
  ok: !0,
1587
1654
  data: {
1588
- edges: r.data.data.map((A) => ({
1589
- node: A,
1590
- cursor: A.cursor
1655
+ edges: r.data.data.map((E) => ({
1656
+ node: E,
1657
+ cursor: E.cursor
1591
1658
  })),
1592
1659
  totalCount: r.data.totalCount ?? 0,
1593
1660
  pageInfo: {
@@ -1625,19 +1692,19 @@ class vt {
1625
1692
  data: await a.json()
1626
1693
  } : {
1627
1694
  ok: !1,
1628
- error: h(a.status)
1695
+ error: w(a.status)
1629
1696
  };
1630
1697
  } catch {
1631
1698
  return {
1632
1699
  ok: !1,
1633
- error: h(500)
1700
+ error: w(500)
1634
1701
  };
1635
1702
  }
1636
1703
  }
1637
1704
  }
1638
- class Mt {
1705
+ class Dt {
1639
1706
  constructor(e) {
1640
- m(this, "client");
1707
+ c(this, "client");
1641
1708
  this.client = e;
1642
1709
  }
1643
1710
  async file(e) {
@@ -1657,14 +1724,14 @@ class Mt {
1657
1724
  } : t;
1658
1725
  }
1659
1726
  }
1660
- class Rt {
1727
+ class It {
1661
1728
  constructor(e) {
1662
- m(this, "client");
1729
+ c(this, "client");
1663
1730
  this.client = e;
1664
1731
  }
1665
1732
  async gameSession(e) {
1666
1733
  const t = await this.client.request(
1667
- Ee.legacy,
1734
+ be.legacy,
1668
1735
  e
1669
1736
  );
1670
1737
  return t.ok ? {
@@ -1673,7 +1740,7 @@ class Rt {
1673
1740
  } : t;
1674
1741
  }
1675
1742
  async createGameSession(e) {
1676
- const t = await this.client.request(be, e);
1743
+ const t = await this.client.request(Ee, e);
1677
1744
  return t.ok ? t.data.createGameSession ? {
1678
1745
  ok: !1,
1679
1746
  error: d(t.data.createGameSession.__typename)
@@ -1682,7 +1749,7 @@ class Rt {
1682
1749
  } : t;
1683
1750
  }
1684
1751
  async endGameSession(e) {
1685
- const t = await this.client.request(Ae.legacy, e);
1752
+ const t = await this.client.request(Se.legacy, e);
1686
1753
  return t.ok ? t.data.endGameSession ? {
1687
1754
  ok: !1,
1688
1755
  error: {
@@ -1694,9 +1761,9 @@ class Rt {
1694
1761
  } : t;
1695
1762
  }
1696
1763
  }
1697
- class Nt {
1764
+ class Gt {
1698
1765
  constructor(e) {
1699
- m(this, "client");
1766
+ c(this, "client");
1700
1767
  this.client = e;
1701
1768
  }
1702
1769
  async latestBetRecords() {
@@ -1706,10 +1773,17 @@ class Nt {
1706
1773
  data: e.data.latestBetRecords
1707
1774
  } : e;
1708
1775
  }
1776
+ async platform() {
1777
+ const e = await this.client.request(wt);
1778
+ return e.ok ? {
1779
+ ok: !0,
1780
+ data: e.data
1781
+ } : e;
1782
+ }
1709
1783
  }
1710
- class It {
1784
+ class Pt {
1711
1785
  constructor(e) {
1712
- m(this, "client");
1786
+ c(this, "client");
1713
1787
  this.client = e;
1714
1788
  }
1715
1789
  async betRecords(e) {
@@ -1725,7 +1799,7 @@ class It {
1725
1799
  }
1726
1800
  async withdrawalRecords(e) {
1727
1801
  const t = await this.client.request(
1728
- $e,
1802
+ Pe,
1729
1803
  e
1730
1804
  );
1731
1805
  return t.ok ? { ok: t.ok, data: t.data.member.withdrawalRecords } : t;
@@ -1742,45 +1816,45 @@ class It {
1742
1816
  return e.ok ? { ok: e.ok, data: e.data.member.depositsCount } : e;
1743
1817
  }
1744
1818
  async pointsWalletTransactions(e) {
1745
- const t = await this.client.request(De, e);
1819
+ const t = await this.client.request(Ie, e);
1746
1820
  return t.ok ? { ok: t.ok, data: t.data.member.pointsWalletTransactions } : t;
1747
1821
  }
1748
1822
  async activityRecords(e) {
1749
1823
  const t = await this.client.request(
1750
- gt,
1824
+ Et,
1751
1825
  e
1752
1826
  );
1753
1827
  return t.ok ? { ok: t.ok, data: t.data.member.activityRecords } : t;
1754
1828
  }
1755
1829
  async referrals(e) {
1756
1830
  const t = await this.client.request(
1757
- At,
1831
+ Ct,
1758
1832
  e
1759
1833
  );
1760
1834
  return t.ok ? { ok: t.ok, data: t.data.member.referrals } : t;
1761
1835
  }
1762
1836
  async referralCommission() {
1763
- const e = await this.client.request(kt);
1837
+ const e = await this.client.request(Tt);
1764
1838
  return e.ok ? { ok: e.ok, data: e.data.member.referralCommission } : e;
1765
1839
  }
1766
1840
  async uplinesByName(e) {
1767
1841
  const t = await this.client.request(
1768
- St,
1842
+ kt,
1769
1843
  e
1770
1844
  );
1771
1845
  return t.ok ? { ok: t.ok, data: t.data.uplinesByName } : t;
1772
1846
  }
1773
1847
  async downlinesByName(e) {
1774
1848
  const t = await this.client.request(
1775
- Ct,
1849
+ _t,
1776
1850
  e
1777
1851
  );
1778
1852
  return t.ok ? { ok: t.ok, data: t.data.downlinesByName } : t;
1779
1853
  }
1780
1854
  }
1781
- class Dt {
1855
+ class Wt {
1782
1856
  constructor(e) {
1783
- m(this, "url");
1857
+ c(this, "url");
1784
1858
  this.url = e.url;
1785
1859
  }
1786
1860
  gameThumbnails(e) {
@@ -1790,9 +1864,9 @@ class Dt {
1790
1864
  ];
1791
1865
  }
1792
1866
  }
1793
- class Pt {
1867
+ class xt {
1794
1868
  constructor(e) {
1795
- m(this, "client");
1869
+ c(this, "client");
1796
1870
  this.client = e;
1797
1871
  }
1798
1872
  async promos() {
@@ -1869,7 +1943,7 @@ class Pt {
1869
1943
  } : t;
1870
1944
  }
1871
1945
  async createGCashWithdrawal(e) {
1872
- const t = await this.client.request(xe, e);
1946
+ const t = await this.client.request(We, e);
1873
1947
  return t.ok ? t.data.createGCashWithdrawal ? {
1874
1948
  ok: !1,
1875
1949
  error: d(t.data.createGCashWithdrawal.__typename)
@@ -1878,7 +1952,7 @@ class Pt {
1878
1952
  } : t;
1879
1953
  }
1880
1954
  async createMayaWithdrawal(e) {
1881
- const t = await this.client.request(Ue, e);
1955
+ const t = await this.client.request(xe, e);
1882
1956
  return t.ok ? t.data.createMayaWithdrawal ? {
1883
1957
  ok: !1,
1884
1958
  error: d(t.data.createMayaWithdrawal.__typename)
@@ -1887,7 +1961,7 @@ class Pt {
1887
1961
  } : t;
1888
1962
  }
1889
1963
  async createMayaAppWithdrawal(e) {
1890
- const t = await this.client.request(Ge, e);
1964
+ const t = await this.client.request($e, e);
1891
1965
  return t.ok ? t.data.createMayaAppWithdrawal ? {
1892
1966
  ok: !1,
1893
1967
  error: d(t.data.createMayaAppWithdrawal.__typename)
@@ -1896,7 +1970,7 @@ class Pt {
1896
1970
  } : t;
1897
1971
  }
1898
1972
  async createBankWithdrawal(e) {
1899
- const t = await this.client.request(Oe, e);
1973
+ const t = await this.client.request(Ue, e);
1900
1974
  return t.ok ? t.data.createBankWithdrawal ? {
1901
1975
  ok: !1,
1902
1976
  error: d(t.data.createBankWithdrawal.__typename)
@@ -1906,7 +1980,7 @@ class Pt {
1906
1980
  }
1907
1981
  async remainingDailyWithdrawalsCount() {
1908
1982
  const e = await this.client.request(
1909
- We
1983
+ Oe
1910
1984
  );
1911
1985
  return e.ok ? { ok: e.ok, data: e.data.remainingDailyWithdrawalsCount } : e;
1912
1986
  }
@@ -1915,7 +1989,7 @@ class Pt {
1915
1989
  return e.ok ? { ok: e.ok, data: e.data.pointsWallet } : e;
1916
1990
  }
1917
1991
  async redeemPointsToCash(e) {
1918
- const t = await this.client.request(Ie, e);
1992
+ const t = await this.client.request(De, e);
1919
1993
  return t.ok ? t.data.redeemPointsToCash ? {
1920
1994
  ok: !1,
1921
1995
  error: d(t.data.redeemPointsToCash.__typename)
@@ -1925,20 +1999,20 @@ class Pt {
1925
1999
  }
1926
2000
  async mayaSession(e) {
1927
2001
  const t = await this.client.request(
1928
- wt,
2002
+ gt,
1929
2003
  e
1930
2004
  );
1931
2005
  return t.ok ? { ok: t.ok, data: t.data.mayaSession } : t;
1932
2006
  }
1933
2007
  async gameSession(e) {
1934
2008
  const t = await this.client.request(
1935
- Ee.current,
2009
+ be.current,
1936
2010
  e
1937
2011
  );
1938
2012
  return t.ok ? { ok: !0, data: t.data.node } : t;
1939
2013
  }
1940
2014
  async createGameSession(e) {
1941
- const t = await this.client.request(be, e);
2015
+ const t = await this.client.request(Ee, e);
1942
2016
  return t.ok ? t.data.createGameSession ? {
1943
2017
  ok: !1,
1944
2018
  error: d(t.data.createGameSession.__typename)
@@ -1948,7 +2022,7 @@ class Pt {
1948
2022
  }
1949
2023
  async endGameSession(e) {
1950
2024
  const t = await this.client.request(
1951
- Ae.current,
2025
+ Se.current,
1952
2026
  e
1953
2027
  );
1954
2028
  return t.ok ? t.data.endGameSession ? {
@@ -1963,7 +2037,7 @@ class Pt {
1963
2037
  }
1964
2038
  async validateMayaSession() {
1965
2039
  const e = await this.client.request(
1966
- yt
2040
+ bt
1967
2041
  );
1968
2042
  return e.ok ? e.data.validateMayaSession ? {
1969
2043
  ok: !0
@@ -1976,33 +2050,64 @@ class Pt {
1976
2050
  } : e;
1977
2051
  }
1978
2052
  }
1979
- function $t(o, e, t) {
1980
- return o < e ? e : o > t ? t : o;
2053
+ function we(n) {
2054
+ return new Date(n.getTime());
2055
+ }
2056
+ function B(n, e) {
2057
+ const t = we(n);
2058
+ return t.setMinutes(t.getMinutes() + e), t;
2059
+ }
2060
+ function le(n, e) {
2061
+ return n.getTime() > e.getTime();
2062
+ }
2063
+ class $t {
2064
+ constructor(e) {
2065
+ c(this, "config");
2066
+ c(this, "cache");
2067
+ this.cache = {}, this.config = {
2068
+ cacheTime: 5,
2069
+ ...e
2070
+ };
2071
+ }
2072
+ set(e, t) {
2073
+ const r = B(/* @__PURE__ */ new Date(), this.config.cacheTime);
2074
+ this.cache[e] = {
2075
+ value: t,
2076
+ validUntil: r
2077
+ };
2078
+ }
2079
+ get(e) {
2080
+ const t = this.cache[e];
2081
+ return !t || le(/* @__PURE__ */ new Date(), t.validUntil) ? null : t.value;
2082
+ }
2083
+ }
2084
+ function Ut(n, e, t) {
2085
+ return n < e ? e : n > t ? t : n;
1981
2086
  }
1982
- function H(o) {
1983
- return Object.prototype.toString.call(o) === "[object Object]" && Object(o) === o;
2087
+ function pe(n) {
2088
+ return Object.prototype.toString.call(n) === "[object Object]" && Object(n) === n;
1984
2089
  }
1985
- function xt(o) {
2090
+ function Ot(n) {
1986
2091
  const e = [];
1987
2092
  function t(r, a = []) {
1988
2093
  for (const s in r) {
1989
- const c = r[s];
1990
- H(c) ? t(c, [...a, s]) : Array.isArray(c) ? t(Ut(c), [...a, s]) : e.push({
2094
+ const m = r[s];
2095
+ pe(m) ? t(m, [...a, s]) : Array.isArray(m) ? t(Bt(m), [...a, s]) : e.push({
1991
2096
  key: [...a, s],
1992
- value: c
2097
+ value: m
1993
2098
  });
1994
2099
  }
1995
2100
  }
1996
- return t(o), e;
2101
+ return t(n), e;
1997
2102
  }
1998
- function Ut(o) {
1999
- return o.reduce((e, t, r) => (e[r] = t, e), {});
2103
+ function Bt(n) {
2104
+ return n.reduce((e, t, r) => (e[r] = t, e), {});
2000
2105
  }
2001
- class G {
2106
+ class O {
2002
2107
  constructor(e, t) {
2003
- m(this, "url");
2004
- m(this, "options");
2005
- m(this, "middlewares");
2108
+ c(this, "url");
2109
+ c(this, "options");
2110
+ c(this, "middlewares");
2006
2111
  var a;
2007
2112
  const r = new Headers((a = t == null ? void 0 : t.fetchOptions) == null ? void 0 : a.headers);
2008
2113
  this.url = e, this.options = { ...t == null ? void 0 : t.fetchOptions, headers: r }, this.middlewares = (t == null ? void 0 : t.middlewares) ?? [];
@@ -2035,23 +2140,23 @@ class G {
2035
2140
  return await this.exec(s);
2036
2141
  }
2037
2142
  async exec(e) {
2038
- var t, r, a, s, c, u;
2143
+ var t, r, a, s, m, u;
2039
2144
  try {
2040
2145
  const p = await fetch(e);
2041
2146
  if (!p.ok)
2042
- return { ok: !1, error: h(p.status) };
2043
- const f = await p.json(), w = f.data, l = (t = f.errors) == null ? void 0 : t.at(0);
2044
- 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: h(403, l.message) } : ((s = l.extensions) == null ? void 0 : s.code) === "UNAUTHORIZED" ? { ok: !1, error: h(401, l.message) } : ((c = l.extensions) == null ? void 0 : c.code) === "BAD_USER_INPUT" || ((u = l.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: h(400, l.message) } : {
2147
+ return { ok: !1, error: w(p.status) };
2148
+ const f = await p.json(), h = f.data, l = (t = f.errors) == null ? void 0 : t.at(0);
2149
+ 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" || ((u = l.extensions) == null ? void 0 : u.code) === "BAD_REQUEST" ? { ok: !1, error: w(400, l.message) } : {
2045
2150
  ok: !1,
2046
- error: h(500, l.message)
2151
+ error: w(500, l.message)
2047
2152
  } : {
2048
2153
  ok: !0,
2049
- data: w
2154
+ data: h
2050
2155
  };
2051
2156
  } catch {
2052
2157
  return {
2053
2158
  ok: !1,
2054
- error: h(500)
2159
+ error: w(500)
2055
2160
  };
2056
2161
  }
2057
2162
  }
@@ -2062,8 +2167,8 @@ class G {
2062
2167
  return t;
2063
2168
  }
2064
2169
  createUploadBody(e, t) {
2065
- const r = xt(t).filter(
2066
- (c) => c.value instanceof File || c.value instanceof Blob
2170
+ const r = Ot(t).filter(
2171
+ (m) => m.value instanceof File || m.value instanceof Blob
2067
2172
  ), a = new FormData();
2068
2173
  a.append(
2069
2174
  "operations",
@@ -2073,20 +2178,30 @@ class G {
2073
2178
  })
2074
2179
  );
2075
2180
  const s = {};
2076
- return r.forEach((c, u) => {
2077
- s[u.toString()] = [`variables.${c.key.join(".")}`];
2078
- }), a.append("map", JSON.stringify(s)), r.forEach((c, u) => {
2079
- a.append(u.toString(), c.value);
2181
+ return r.forEach((m, u) => {
2182
+ s[u.toString()] = [`variables.${m.key.join(".")}`];
2183
+ }), a.append("map", JSON.stringify(s)), r.forEach((m, u) => {
2184
+ a.append(u.toString(), m.value);
2080
2185
  }), a;
2081
2186
  }
2082
2187
  }
2083
- async function y(o) {
2084
- const e = new TextEncoder().encode(o), t = await crypto.subtle.digest("SHA-256", e);
2188
+ function qt(n) {
2189
+ return n === "INR" ? "en-IN" : n === "MYR" ? "en-MY" : n === "IDR" ? "en-ID" : n === "USD" ? "en-US" : "en-PH";
2190
+ }
2191
+ function Ft(n) {
2192
+ return n === "en-IN" ? "+91" : n === "en-MY" ? "+60" : n === "en-ID" ? "+62" : n === "en-US" ? "+1" : "+63";
2193
+ }
2194
+ function P(n, e) {
2195
+ const t = Ft(e);
2196
+ return n.startsWith(t) ? n : n.startsWith(t.substring(1)) ? `+${n}` : n.startsWith("0") ? `${t}${n.substring(1)}` : `${t}${n}`;
2197
+ }
2198
+ async function g(n) {
2199
+ const e = new TextEncoder().encode(n), t = await crypto.subtle.digest("SHA-256", e);
2085
2200
  return Array.from(new Uint8Array(t)).map((s) => s.toString(16).padStart(2, "0")).join("");
2086
2201
  }
2087
2202
  class Ce {
2088
2203
  constructor(e) {
2089
- m(this, "enabled");
2204
+ c(this, "enabled");
2090
2205
  this.enabled = (e == null ? void 0 : e.enabled) ?? !0;
2091
2206
  }
2092
2207
  info(e) {
@@ -2102,49 +2217,39 @@ class Ce {
2102
2217
  this.enabled && console.log(`\x1B[32m[success] ${e}`);
2103
2218
  }
2104
2219
  }
2105
- function Q(o) {
2106
- return new Date(o.getTime());
2107
- }
2108
- function B(o, e) {
2109
- const t = Q(o);
2220
+ function me(n, e) {
2221
+ const t = we(n);
2110
2222
  return t.setDate(t.getDate() + e), t;
2111
2223
  }
2112
- function q(o, e) {
2113
- const t = Q(o);
2114
- return t.setMinutes(t.getMinutes() + e), t;
2115
- }
2116
- function ye(o, e) {
2117
- return o.getTime() > e.getTime();
2118
- }
2119
- function ke(o) {
2224
+ function ke(n) {
2120
2225
  return new Promise((e) => {
2121
- setTimeout(e, o);
2226
+ setTimeout(e, n);
2122
2227
  });
2123
2228
  }
2124
- function ge(o, e) {
2229
+ function ge(n, e) {
2125
2230
  const {
2126
2231
  until: t,
2127
2232
  interval: r = 1e3,
2128
2233
  maxAttempt: a = 3
2129
2234
  /**/
2130
2235
  } = e;
2131
- async function s(c, u) {
2132
- const p = u ?? a, f = await o(...c);
2133
- return t(f) ? f : p > 1 ? (await ke(r * ((a - p) / 2)), s(c, p - 1)) : f;
2236
+ async function s(m, u) {
2237
+ const p = u ?? a, f = await n(...m);
2238
+ return t(f) ? f : p > 1 ? (await ke(r * ((a - p) / 2)), s(m, p - 1)) : f;
2134
2239
  }
2135
- return async (...c) => await s(c);
2240
+ return async (...m) => await s(m);
2136
2241
  }
2137
- function F(o, e) {
2138
- const t = Q(o);
2242
+ function ce(n, e) {
2243
+ const t = we(n);
2139
2244
  return t.setMinutes(t.getMinutes() - e), t;
2140
2245
  }
2141
- class Gt {
2246
+ class Lt {
2142
2247
  constructor(e) {
2143
- m(this, "logger");
2144
- m(this, "storageKey", "session");
2145
- m(this, "authService");
2146
- m(this, "walletService");
2147
- m(this, "_refreshing", !1);
2248
+ c(this, "logger");
2249
+ c(this, "storageKey", "session");
2250
+ c(this, "authService");
2251
+ c(this, "walletService");
2252
+ c(this, "_refreshing", !1);
2148
2253
  this.authService = e.authService, this.walletService = e.walletService, this.logger = new Ce({
2149
2254
  enabled: e.logs ?? !1
2150
2255
  });
@@ -2166,16 +2271,16 @@ class Gt {
2166
2271
  }
2167
2272
  };
2168
2273
  if (e.type === "MAYA") {
2169
- const c = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
2170
- until: (w) => {
2274
+ const m = await ge(() => this.walletService.mayaSession({ id: e.sessionId }), {
2275
+ until: (h) => {
2171
2276
  var l;
2172
- return w.ok && ((l = w.data) == null ? void 0 : l.member) != null;
2277
+ return h.ok && ((l = h.data) == null ? void 0 : l.member) != null;
2173
2278
  },
2174
2279
  interval: 1e3,
2175
2280
  maxAttempt: 5
2176
2281
  })();
2177
- if (!c.ok) return c;
2178
- if (!((a = c.data) != null && a.member))
2282
+ if (!m.ok) return m;
2283
+ if (!((a = m.data) != null && a.member))
2179
2284
  return {
2180
2285
  ok: !1,
2181
2286
  error: {
@@ -2184,7 +2289,7 @@ class Gt {
2184
2289
  }
2185
2290
  };
2186
2291
  const p = await ge(() => this.authService.createSession(e), {
2187
- until: (w) => w.ok,
2292
+ until: (h) => h.ok,
2188
2293
  interval: 1e3,
2189
2294
  maxAttempt: 5
2190
2295
  })();
@@ -2194,8 +2299,8 @@ class Gt {
2194
2299
  this.storageKey,
2195
2300
  JSON.stringify({
2196
2301
  ...p.data,
2197
- accessTokenExpiresAt: q(f, 8).getTime(),
2198
- refreshTokenExpiresAt: F(B(f, 30), 2).getTime()
2302
+ accessTokenExpiresAt: B(f, 8).getTime(),
2303
+ refreshTokenExpiresAt: ce(me(f, 30), 2).getTime()
2199
2304
  })
2200
2305
  ), {
2201
2306
  ok: !0,
@@ -2205,13 +2310,13 @@ class Gt {
2205
2310
  if (e.type === "MOBILE_NUMBER") {
2206
2311
  const s = await this.authService.createSession(e);
2207
2312
  if (s.ok) {
2208
- const c = /* @__PURE__ */ new Date();
2313
+ const m = /* @__PURE__ */ new Date();
2209
2314
  return window.localStorage.setItem(
2210
2315
  this.storageKey,
2211
2316
  JSON.stringify({
2212
2317
  ...s.data,
2213
- accessTokenExpiresAt: q(c, 8).getTime(),
2214
- refreshTokenExpiresAt: F(B(c, 30), 2).getTime()
2318
+ accessTokenExpiresAt: B(m, 8).getTime(),
2319
+ refreshTokenExpiresAt: ce(me(m, 30), 2).getTime()
2215
2320
  })
2216
2321
  ), {
2217
2322
  ok: !0,
@@ -2234,8 +2339,8 @@ class Gt {
2234
2339
  this.storageKey,
2235
2340
  JSON.stringify({
2236
2341
  ...t.data,
2237
- accessTokenExpiresAt: q(r, 8).getTime(),
2238
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2342
+ accessTokenExpiresAt: B(r, 8).getTime(),
2343
+ refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2239
2344
  })
2240
2345
  ), {
2241
2346
  ok: !0,
@@ -2250,8 +2355,8 @@ class Gt {
2250
2355
  this.storageKey,
2251
2356
  JSON.stringify({
2252
2357
  ...t.data,
2253
- accessTokenExpiresAt: q(r, 8).getTime(),
2254
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2358
+ accessTokenExpiresAt: B(r, 8).getTime(),
2359
+ refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2255
2360
  })
2256
2361
  ), { ok: !0 };
2257
2362
  } else
@@ -2274,7 +2379,7 @@ class Gt {
2274
2379
  try {
2275
2380
  let t = JSON.parse(e), r = /* @__PURE__ */ new Date();
2276
2381
  const a = new Date(t.accessTokenExpiresAt), s = new Date(t.refreshTokenExpiresAt);
2277
- if (ye(r, s))
2382
+ if (le(r, s))
2278
2383
  return this.logger.warn("Session expired. Logging out.."), window.localStorage.removeItem(this.storageKey), {
2279
2384
  ok: !1,
2280
2385
  error: {
@@ -2282,22 +2387,22 @@ class Gt {
2282
2387
  message: "Session expired."
2283
2388
  }
2284
2389
  };
2285
- if (ye(r, a)) {
2390
+ if (le(r, a)) {
2286
2391
  this.logger.info("Refreshing session..."), this.refreshing = !0;
2287
- const c = await this.authService.refreshSession(t.refreshToken);
2288
- if (this.refreshing = !1, !c.ok)
2289
- return this.logger.error(`Failed to refresh session: ${c.error.message}`), c.error.name === "InvalidTokenError" || c.error.name === "AccountBlacklistedError" ? (window.localStorage.removeItem(this.storageKey), {
2392
+ const m = await this.authService.refreshSession(t.refreshToken);
2393
+ if (this.refreshing = !1, !m.ok)
2394
+ return this.logger.error(`Failed to refresh session: ${m.error.message}`), m.error.name === "InvalidTokenError" || m.error.name === "AccountBlacklistedError" ? (window.localStorage.removeItem(this.storageKey), {
2290
2395
  ok: !1,
2291
- error: c.error
2396
+ error: m.error
2292
2397
  }) : (this.logger.warn("Old session returned."), {
2293
2398
  ok: !0,
2294
2399
  data: t
2295
2400
  });
2296
2401
  this.logger.success("Session refreshed!"), r = /* @__PURE__ */ new Date(), t = {
2297
2402
  ...t,
2298
- ...c.data,
2299
- accessTokenExpiresAt: q(r, 8).getTime(),
2300
- refreshTokenExpiresAt: F(B(r, 30), 2).getTime()
2403
+ ...m.data,
2404
+ accessTokenExpiresAt: B(r, 8).getTime(),
2405
+ refreshTokenExpiresAt: ce(me(r, 30), 2).getTime()
2301
2406
  }, window.localStorage.setItem(this.storageKey, JSON.stringify(t));
2302
2407
  }
2303
2408
  return {
@@ -2337,17 +2442,17 @@ class Gt {
2337
2442
  return typeof window > "u";
2338
2443
  }
2339
2444
  }
2340
- function g(o) {
2445
+ function b(n) {
2341
2446
  const e = {};
2342
- for (const t in o) {
2343
- const r = o[t];
2447
+ for (const t in n) {
2448
+ const r = n[t];
2344
2449
  if (r !== null && r !== void 0) {
2345
- if (H(r)) {
2346
- e[t] = g(r);
2450
+ if (pe(r)) {
2451
+ e[t] = b(r);
2347
2452
  continue;
2348
2453
  }
2349
2454
  if (Array.isArray(r)) {
2350
- e[t] = r.map((a) => H(a) ? g(a) : a);
2455
+ e[t] = r.map((a) => pe(a) ? b(a) : a);
2351
2456
  continue;
2352
2457
  }
2353
2458
  e[t] = r;
@@ -2355,21 +2460,21 @@ function g(o) {
2355
2460
  }
2356
2461
  return e;
2357
2462
  }
2358
- function n(o, e) {
2359
- if (typeof o == "number" && !Number.isNaN(o))
2360
- return o;
2361
- if (typeof o == "string") {
2362
- const t = Number.parseFloat(o);
2463
+ function i(n, e) {
2464
+ if (typeof n == "number" && !Number.isNaN(n))
2465
+ return n;
2466
+ if (typeof n == "string") {
2467
+ const t = Number.parseFloat(n);
2363
2468
  if (!Number.isNaN(t))
2364
2469
  return t;
2365
2470
  }
2366
2471
  return e;
2367
2472
  }
2368
- class Ot {
2473
+ class Vt {
2369
2474
  constructor(e) {
2370
- m(this, "staticService");
2475
+ c(this, "staticService");
2371
2476
  const t = (e == null ? void 0 : e.environment) === "development";
2372
- this.staticService = new Dt({
2477
+ this.staticService = new Wt({
2373
2478
  url: t ? "https://static.development.opexa.io" : "https://static.opexa.io"
2374
2479
  });
2375
2480
  }
@@ -2399,7 +2504,10 @@ class Ot {
2399
2504
  pointsWalletTransaction: this.pointsWalletTransaction.bind(this),
2400
2505
  activityRecord: this.activityRecord.bind(this),
2401
2506
  referral: this.referral.bind(this),
2402
- referralCommission: this.referralCommission.bind(this)
2507
+ referralCommission: this.referralCommission.bind(this),
2508
+ platform__next: this.platform__next.bind(this),
2509
+ pointsClubSettings: this.pointsClubSettings.bind(this),
2510
+ paymentSettings: this.paymentSettings.bind(this)
2403
2511
  };
2404
2512
  }
2405
2513
  site(e) {
@@ -2409,15 +2517,16 @@ class Ot {
2409
2517
  logo: e.logo ?? void 0,
2410
2518
  fields: e.config.fields
2411
2519
  };
2412
- return g(t);
2520
+ return b(t);
2413
2521
  }
2522
+ /** @deprecated */
2414
2523
  platform(e) {
2415
- var t, r, a, s, c, u, p, f, w, l, _, v, M, R, N, E, I, D, S, P, $, x, C, U, O, W, A, K, z, J, X, Z, ee, te, re, ae, oe, ne, ie, se, ce, me, de, ue, le, pe, fe, he, we;
2524
+ var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x, E, q, F, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se, ye;
2416
2525
  return {
2417
2526
  timezone: e.timezone,
2418
2527
  currency: e.currency,
2419
2528
  paymentSettings: {
2420
- minimumFirstDepositAmount: n(e.minimumFirstDepositAmount),
2529
+ minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2421
2530
  restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2422
2531
  depositGateway: {
2423
2532
  bank: {
@@ -2425,77 +2534,167 @@ class Ot {
2425
2534
  iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2426
2535
  webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2427
2536
  mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2428
- minimumAmount: n((c = e.bankDepositGatewaySettings) == null ? void 0 : c.minimumAmount),
2429
- maximumAmount: n((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2537
+ minimumAmount: i((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2538
+ maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2430
2539
  },
2431
2540
  gcash: {
2432
2541
  androidEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.androidEnabled) ?? !1,
2433
2542
  iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2434
- webEnabled: ((w = e.gcashDepositGatewaySettings) == null ? void 0 : w.webEnabled) ?? !1,
2543
+ webEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.webEnabled) ?? !1,
2435
2544
  mobileWebEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.mobileWebEnabled) ?? !1,
2436
- minimumAmount: n((_ = e.gcashDepositGatewaySettings) == null ? void 0 : _.minimumAmount),
2437
- maximumAmount: n((v = e.gcashDepositGatewaySettings) == null ? void 0 : v.maximumAmount)
2545
+ minimumAmount: i((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2546
+ maximumAmount: i((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
2438
2547
  },
2439
2548
  maya: {
2440
- androidEnabled: ((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.androidEnabled) ?? !1,
2441
- iosEnabled: ((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.iosEnabled) ?? !1,
2442
- webEnabled: ((N = e.mayaDepositGatewaySettings) == null ? void 0 : N.webEnabled) ?? !1,
2443
- mobileWebEnabled: ((E = e.mayaDepositGatewaySettings) == null ? void 0 : E.mobileWebEnabled) ?? !1,
2444
- minimumAmount: n((I = e.mayaDepositGatewaySettings) == null ? void 0 : I.minimumAmount),
2445
- maximumAmount: n((D = e.mayaDepositGatewaySettings) == null ? void 0 : D.maximumAmount)
2549
+ androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2550
+ iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2551
+ webEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
2552
+ mobileWebEnabled: ((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.mobileWebEnabled) ?? !1,
2553
+ minimumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.minimumAmount),
2554
+ maximumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2446
2555
  },
2447
2556
  mayaApp: {
2448
2557
  androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2449
- iosEnabled: ((P = e.mayaAppDepositGatewaySettings) == null ? void 0 : P.iosEnabled) ?? !1,
2450
- webEnabled: (($ = e.mayaAppDepositGatewaySettings) == null ? void 0 : $.webEnabled) ?? !1,
2451
- mobileWebEnabled: ((x = e.mayaAppDepositGatewaySettings) == null ? void 0 : x.mobileWebEnabled) ?? !1,
2452
- minimumAmount: n((C = e.mayaAppDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2453
- maximumAmount: n((U = e.mayaAppDepositGatewaySettings) == null ? void 0 : U.maximumAmount)
2558
+ iosEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2559
+ webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2560
+ mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2561
+ minimumAmount: i((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
2562
+ maximumAmount: i((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2454
2563
  }
2455
2564
  },
2456
2565
  withdrawalGateway: {
2457
2566
  bank: {
2458
- androidEnabled: ((O = e.bankWithdrawalGatewaySettings) == null ? void 0 : O.androidEnabled) ?? !1,
2459
- iosEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.iosEnabled) ?? !1,
2460
- webEnabled: ((A = e.bankWithdrawalGatewaySettings) == null ? void 0 : A.webEnabled) ?? !1,
2461
- mobileWebEnabled: ((K = e.bankWithdrawalGatewaySettings) == null ? void 0 : K.mobileWebEnabled) ?? !1,
2462
- minimumAmount: n((z = e.bankWithdrawalGatewaySettings) == null ? void 0 : z.minimumAmount),
2463
- maximumAmount: n((J = e.bankWithdrawalGatewaySettings) == null ? void 0 : J.maximumAmount)
2567
+ androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
2568
+ iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2569
+ webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2570
+ mobileWebEnabled: ((q = e.bankWithdrawalGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2571
+ minimumAmount: i((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.minimumAmount),
2572
+ maximumAmount: i((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.maximumAmount)
2464
2573
  },
2465
2574
  gcash: {
2466
- androidEnabled: ((X = e.gcashWithdrawalGatewaySettings) == null ? void 0 : X.androidEnabled) ?? !1,
2467
- iosEnabled: ((Z = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Z.iosEnabled) ?? !1,
2468
- webEnabled: ((ee = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ee.webEnabled) ?? !1,
2469
- mobileWebEnabled: ((te = e.gcashWithdrawalGatewaySettings) == null ? void 0 : te.mobileWebEnabled) ?? !1,
2470
- minimumAmount: n((re = e.gcashWithdrawalGatewaySettings) == null ? void 0 : re.minimumAmount),
2471
- maximumAmount: n(
2472
- (ae = e.gcashWithdrawalGatewaySettings) == null ? void 0 : ae.maximumAmount,
2575
+ androidEnabled: ((V = e.gcashWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
2576
+ iosEnabled: ((H = e.gcashWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2577
+ webEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2578
+ mobileWebEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2579
+ minimumAmount: i((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2580
+ maximumAmount: i(
2581
+ (K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount,
2473
2582
  1e6
2474
2583
  )
2475
2584
  },
2476
2585
  maya: {
2477
- androidEnabled: ((oe = e.mayaWithdrawalGatewaySettings) == null ? void 0 : oe.androidEnabled) ?? !1,
2478
- iosEnabled: ((ne = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ne.iosEnabled) ?? !1,
2479
- webEnabled: ((ie = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ie.webEnabled) ?? !1,
2480
- mobileWebEnabled: ((se = e.mayaWithdrawalGatewaySettings) == null ? void 0 : se.mobileWebEnabled) ?? !1,
2481
- minimumAmount: n((ce = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ce.minimumAmount),
2482
- maximumAmount: n((me = e.mayaWithdrawalGatewaySettings) == null ? void 0 : me.maximumAmount)
2586
+ androidEnabled: ((z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2587
+ iosEnabled: ((J = e.mayaWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2588
+ webEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2589
+ mobileWebEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2590
+ minimumAmount: i((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2591
+ maximumAmount: i((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount)
2483
2592
  },
2484
2593
  mayaApp: {
2485
- androidEnabled: ((de = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : de.androidEnabled) ?? !1,
2486
- iosEnabled: ((ue = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ue.iosEnabled) ?? !1,
2487
- webEnabled: ((le = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : le.webEnabled) ?? !1,
2488
- mobileWebEnabled: ((pe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : pe.mobileWebEnabled) ?? !1,
2489
- minimumAmount: n((fe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : fe.minimumAmount),
2490
- maximumAmount: n(
2491
- (he = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : he.maximumAmount,
2594
+ androidEnabled: ((re = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2595
+ iosEnabled: ((ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
2596
+ webEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2597
+ mobileWebEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2598
+ minimumAmount: i((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
2599
+ maximumAmount: i(
2600
+ (se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount,
2492
2601
  1e6
2493
2602
  )
2494
2603
  }
2495
2604
  }
2496
2605
  },
2497
2606
  pointsClubSettings: {
2498
- multiplier: n((we = e.pointsClubSettings) == null ? void 0 : we.multiplier, 0)
2607
+ multiplier: i((ye = e.pointsClubSettings) == null ? void 0 : ye.multiplier, 0)
2608
+ }
2609
+ };
2610
+ }
2611
+ platform__next(e) {
2612
+ return {
2613
+ currency: e.currency,
2614
+ timezone: e.timezone,
2615
+ locale: qt(e.currency)
2616
+ };
2617
+ }
2618
+ pointsClubSettings(e) {
2619
+ return {
2620
+ multiplier: i(e.multiplier, 0)
2621
+ };
2622
+ }
2623
+ paymentSettings(e) {
2624
+ var t, r, a, s, m, u, p, f, h, l, C, k, _, T, v, y, M, R, S, N, D, I, A, G, W, x, E, q, F, L, V, H, Y, j, Q, K, z, J, X, Z, ee, te, re, ae, ne, ie, oe, se;
2625
+ return {
2626
+ minimumFirstDepositAmount: i(e.minimumFirstDepositAmount),
2627
+ restrictWithdrawalsToVerifiedMembers: e.restrictWithdrawalsToVerifiedMembers,
2628
+ depositGateway: {
2629
+ bank: {
2630
+ androidEnabled: ((t = e.bankDepositGatewaySettings) == null ? void 0 : t.androidEnabled) ?? !1,
2631
+ iosEnabled: ((r = e.bankDepositGatewaySettings) == null ? void 0 : r.iosEnabled) ?? !1,
2632
+ webEnabled: ((a = e.bankDepositGatewaySettings) == null ? void 0 : a.webEnabled) ?? !1,
2633
+ mobileWebEnabled: ((s = e.bankDepositGatewaySettings) == null ? void 0 : s.mobileWebEnabled) ?? !1,
2634
+ minimumAmount: i((m = e.bankDepositGatewaySettings) == null ? void 0 : m.minimumAmount),
2635
+ maximumAmount: i((u = e.bankDepositGatewaySettings) == null ? void 0 : u.maximumAmount)
2636
+ },
2637
+ gcash: {
2638
+ androidEnabled: ((p = e.gcashDepositGatewaySettings) == null ? void 0 : p.androidEnabled) ?? !1,
2639
+ iosEnabled: ((f = e.gcashDepositGatewaySettings) == null ? void 0 : f.iosEnabled) ?? !1,
2640
+ webEnabled: ((h = e.gcashDepositGatewaySettings) == null ? void 0 : h.webEnabled) ?? !1,
2641
+ mobileWebEnabled: ((l = e.gcashDepositGatewaySettings) == null ? void 0 : l.mobileWebEnabled) ?? !1,
2642
+ minimumAmount: i((C = e.gcashDepositGatewaySettings) == null ? void 0 : C.minimumAmount),
2643
+ maximumAmount: i((k = e.gcashDepositGatewaySettings) == null ? void 0 : k.maximumAmount)
2644
+ },
2645
+ maya: {
2646
+ androidEnabled: ((_ = e.mayaDepositGatewaySettings) == null ? void 0 : _.androidEnabled) ?? !1,
2647
+ iosEnabled: ((T = e.mayaDepositGatewaySettings) == null ? void 0 : T.iosEnabled) ?? !1,
2648
+ webEnabled: ((v = e.mayaDepositGatewaySettings) == null ? void 0 : v.webEnabled) ?? !1,
2649
+ mobileWebEnabled: ((y = e.mayaDepositGatewaySettings) == null ? void 0 : y.mobileWebEnabled) ?? !1,
2650
+ minimumAmount: i((M = e.mayaDepositGatewaySettings) == null ? void 0 : M.minimumAmount),
2651
+ maximumAmount: i((R = e.mayaDepositGatewaySettings) == null ? void 0 : R.maximumAmount)
2652
+ },
2653
+ mayaApp: {
2654
+ androidEnabled: ((S = e.mayaAppDepositGatewaySettings) == null ? void 0 : S.androidEnabled) ?? !1,
2655
+ iosEnabled: ((N = e.mayaAppDepositGatewaySettings) == null ? void 0 : N.iosEnabled) ?? !1,
2656
+ webEnabled: ((D = e.mayaAppDepositGatewaySettings) == null ? void 0 : D.webEnabled) ?? !1,
2657
+ mobileWebEnabled: ((I = e.mayaAppDepositGatewaySettings) == null ? void 0 : I.mobileWebEnabled) ?? !1,
2658
+ minimumAmount: i((A = e.mayaAppDepositGatewaySettings) == null ? void 0 : A.minimumAmount),
2659
+ maximumAmount: i((G = e.mayaAppDepositGatewaySettings) == null ? void 0 : G.maximumAmount)
2660
+ }
2661
+ },
2662
+ withdrawalGateway: {
2663
+ bank: {
2664
+ androidEnabled: ((W = e.bankWithdrawalGatewaySettings) == null ? void 0 : W.androidEnabled) ?? !1,
2665
+ iosEnabled: ((x = e.bankWithdrawalGatewaySettings) == null ? void 0 : x.iosEnabled) ?? !1,
2666
+ webEnabled: ((E = e.bankWithdrawalGatewaySettings) == null ? void 0 : E.webEnabled) ?? !1,
2667
+ mobileWebEnabled: ((q = e.bankWithdrawalGatewaySettings) == null ? void 0 : q.mobileWebEnabled) ?? !1,
2668
+ minimumAmount: i((F = e.bankWithdrawalGatewaySettings) == null ? void 0 : F.minimumAmount),
2669
+ maximumAmount: i((L = e.bankWithdrawalGatewaySettings) == null ? void 0 : L.maximumAmount)
2670
+ },
2671
+ gcash: {
2672
+ androidEnabled: ((V = e.gcashWithdrawalGatewaySettings) == null ? void 0 : V.androidEnabled) ?? !1,
2673
+ iosEnabled: ((H = e.gcashWithdrawalGatewaySettings) == null ? void 0 : H.iosEnabled) ?? !1,
2674
+ webEnabled: ((Y = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Y.webEnabled) ?? !1,
2675
+ mobileWebEnabled: ((j = e.gcashWithdrawalGatewaySettings) == null ? void 0 : j.mobileWebEnabled) ?? !1,
2676
+ minimumAmount: i((Q = e.gcashWithdrawalGatewaySettings) == null ? void 0 : Q.minimumAmount),
2677
+ maximumAmount: i((K = e.gcashWithdrawalGatewaySettings) == null ? void 0 : K.maximumAmount, 1e6)
2678
+ },
2679
+ maya: {
2680
+ androidEnabled: ((z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : z.androidEnabled) ?? !1,
2681
+ iosEnabled: ((J = e.mayaWithdrawalGatewaySettings) == null ? void 0 : J.iosEnabled) ?? !1,
2682
+ webEnabled: ((X = e.mayaWithdrawalGatewaySettings) == null ? void 0 : X.webEnabled) ?? !1,
2683
+ mobileWebEnabled: ((Z = e.mayaWithdrawalGatewaySettings) == null ? void 0 : Z.mobileWebEnabled) ?? !1,
2684
+ minimumAmount: i((ee = e.mayaWithdrawalGatewaySettings) == null ? void 0 : ee.minimumAmount),
2685
+ maximumAmount: i((te = e.mayaWithdrawalGatewaySettings) == null ? void 0 : te.maximumAmount)
2686
+ },
2687
+ mayaApp: {
2688
+ androidEnabled: ((re = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : re.androidEnabled) ?? !1,
2689
+ iosEnabled: ((ae = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ae.iosEnabled) ?? !1,
2690
+ webEnabled: ((ne = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ne.webEnabled) ?? !1,
2691
+ mobileWebEnabled: ((ie = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : ie.mobileWebEnabled) ?? !1,
2692
+ minimumAmount: i((oe = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : oe.minimumAmount),
2693
+ maximumAmount: i(
2694
+ (se = e.mayaAppWithdrawalGatewaySettings) == null ? void 0 : se.maximumAmount,
2695
+ 1e6
2696
+ )
2697
+ }
2499
2698
  }
2500
2699
  };
2501
2700
  }
@@ -2519,12 +2718,12 @@ class Ot {
2519
2718
  dateTimeCreated: new Date(e.dateTimeCreated),
2520
2719
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2521
2720
  };
2522
- return g(t);
2721
+ return b(t);
2523
2722
  }
2524
2723
  wallet(e) {
2525
2724
  return {
2526
2725
  id: e.id,
2527
- balance: n(e.balance, 0),
2726
+ balance: i(e.balance, 0),
2528
2727
  currency: e.currency,
2529
2728
  dateTimeCreated: new Date(e.dateTimeCreated),
2530
2729
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2551,7 +2750,7 @@ class Ot {
2551
2750
  mobileNumberVerification: e.mobileNumberVerification ?? !1,
2552
2751
  personalInformation: e.personalInformation ?? !1,
2553
2752
  transactionPassword: e.transactionPassword ?? !1,
2554
- completionPercentage: n(e.completionPercentage, 0)
2753
+ completionPercentage: i(e.completionPercentage, 0)
2555
2754
  };
2556
2755
  }
2557
2756
  announcement(e) {
@@ -2573,9 +2772,9 @@ class Ot {
2573
2772
  type: e.type,
2574
2773
  bank: e.bank,
2575
2774
  status: e.status,
2576
- amount: n(e.amount, 0),
2577
- netAmount: n(e.netAmount, 0),
2578
- fee: n(e.fee, 0),
2775
+ amount: i(e.amount, 0),
2776
+ netAmount: i(e.netAmount, 0),
2777
+ fee: i(e.fee, 0),
2579
2778
  reference: e.reference ?? void 0,
2580
2779
  withdrawalNumber: e.withdrawalNumber,
2581
2780
  recipientMobileNumber: e.recipientMobileNumber ?? void 0,
@@ -2583,7 +2782,7 @@ class Ot {
2583
2782
  dateTimeCreated: new Date(e.dateTimeCreated),
2584
2783
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2585
2784
  };
2586
- return g(t);
2785
+ return b(t);
2587
2786
  }
2588
2787
  deposit(e) {
2589
2788
  const t = {
@@ -2592,34 +2791,34 @@ class Ot {
2592
2791
  status: e.status,
2593
2792
  checkoutUrl: e.checkoutUrl ?? void 0
2594
2793
  };
2595
- return g(t);
2794
+ return b(t);
2596
2795
  }
2597
2796
  depositRecord(e) {
2598
2797
  const t = {
2599
2798
  id: e.id,
2600
2799
  type: e.type,
2601
2800
  status: e.status,
2602
- amount: n(e.amount, 0),
2603
- fee: n(e.fee, 0),
2604
- netAmount: n(e.netAmount, 0),
2801
+ amount: i(e.amount, 0),
2802
+ fee: i(e.fee, 0),
2803
+ netAmount: i(e.netAmount, 0),
2605
2804
  reference: e.reference ?? void 0,
2606
2805
  depositNumber: e.depositNumber,
2607
2806
  dateTimeCreated: new Date(e.dateTimeCreated),
2608
2807
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2609
2808
  };
2610
- return g(t);
2809
+ return b(t);
2611
2810
  }
2612
2811
  betRecord(e) {
2613
2812
  var r;
2614
2813
  const t = {
2615
2814
  id: e.id,
2616
- bet: n(e.bet, 0),
2617
- payout: n(e.payout, 0),
2815
+ bet: i(e.bet, 0),
2816
+ payout: i(e.payout, 0),
2618
2817
  status: e.status,
2619
- jackpotContribution: n(e.jackpotContribution, 0),
2620
- jackpotPayout: n(e.jackpotPayout, 0),
2621
- winloss: n(e.winloss),
2622
- validBet: n(e.validBet, 0),
2818
+ jackpotContribution: i(e.jackpotContribution, 0),
2819
+ jackpotPayout: i(e.jackpotPayout, 0),
2820
+ winloss: i(e.winloss),
2821
+ validBet: i(e.validBet, 0),
2623
2822
  vendorRoundId: e.vendorRoundId ?? void 0,
2624
2823
  game: {
2625
2824
  name: e.game.name,
@@ -2638,7 +2837,7 @@ class Ot {
2638
2837
  odds: ((r = e.metadata) == null ? void 0 : r.odds) ?? void 0
2639
2838
  }
2640
2839
  };
2641
- return g(t);
2840
+ return b(t);
2642
2841
  }
2643
2842
  latestBetRecord(e) {
2644
2843
  return {
@@ -2650,9 +2849,9 @@ class Ot {
2650
2849
  images: this.staticService.gameThumbnails(e.game),
2651
2850
  provider: e.game.provider
2652
2851
  },
2653
- bet: n(e.bet, 0),
2654
- payout: n(e.payout, 0),
2655
- validBet: n(e.validBet, 0),
2852
+ bet: i(e.bet, 0),
2853
+ payout: i(e.payout, 0),
2854
+ validBet: i(e.validBet, 0),
2656
2855
  dateTimeSettled: new Date(e.dateTimeSettled),
2657
2856
  dateTimeCreated: new Date(e.dateTimeCreated)
2658
2857
  };
@@ -2661,13 +2860,13 @@ class Ot {
2661
2860
  const t = {
2662
2861
  id: e.id,
2663
2862
  type: e.type,
2664
- amount: n(e.amount, 0),
2863
+ amount: i(e.amount, 0),
2665
2864
  content: e.content ?? void 0,
2666
- currentBalance: n(e.currentBalance, 0),
2865
+ currentBalance: i(e.currentBalance, 0),
2667
2866
  referenceNumber: e.referenceNumber,
2668
2867
  dateTimeCreated: new Date(e.dateTimeCreated)
2669
2868
  };
2670
- return g(t);
2869
+ return b(t);
2671
2870
  }
2672
2871
  game(e) {
2673
2872
  return {
@@ -2688,7 +2887,7 @@ class Ot {
2688
2887
  dateTimeCreated: new Date(e.dateTimeCreated),
2689
2888
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2690
2889
  };
2691
- return g(t);
2890
+ return b(t);
2692
2891
  }
2693
2892
  promo(e) {
2694
2893
  return {
@@ -2698,8 +2897,8 @@ class Ot {
2698
2897
  status: e.status,
2699
2898
  description: e.description,
2700
2899
  banner: this.file(e.banner),
2701
- maximumBonusAmount: n(e.maximumBonusAmount),
2702
- minimumBonusAmount: n(e.minimumBonusAmount),
2900
+ maximumBonusAmount: i(e.maximumBonusAmount),
2901
+ minimumBonusAmount: i(e.minimumBonusAmount),
2703
2902
  activationEndDateTime: new Date(e.activationEndDateTime),
2704
2903
  activationStartDateTime: new Date(e.activationStartDateTime),
2705
2904
  dateTimeCreated: new Date(e.dateTimeCreated),
@@ -2712,8 +2911,8 @@ class Ot {
2712
2911
  name: e.name,
2713
2912
  description: e.description,
2714
2913
  status: e.status,
2715
- minimumCashback: n(e.minimumCashback, 0),
2716
- maximumMonthlyCashback: n(e.maximumMonthlyCashback),
2914
+ minimumCashback: i(e.minimumCashback, 0),
2915
+ maximumMonthlyCashback: i(e.maximumMonthlyCashback),
2717
2916
  banner: this.file(e.banner),
2718
2917
  activationEndDateTime: new Date(e.activationEndDateTime),
2719
2918
  activationStartDateTime: new Date(e.activationStartDateTime),
@@ -2721,7 +2920,7 @@ class Ot {
2721
2920
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated),
2722
2921
  turnoverContributionPercentagePerGameProvider: Object.entries(
2723
2922
  e.turnoverContributionPercentagePerGameProvider
2724
- ).reduce((r, [a, s]) => (r[a] = n(s, 0), r), {})
2923
+ ).reduce((r, [a, s]) => (r[a] = i(s, 0), r), {})
2725
2924
  };
2726
2925
  }
2727
2926
  bonus(e) {
@@ -2731,35 +2930,35 @@ class Ot {
2731
2930
  deposit: e.deposit ? {
2732
2931
  type: e.deposit.type,
2733
2932
  status: e.deposit.status,
2734
- fee: n(e.deposit.fee, 0),
2735
- amount: n(e.deposit.amount, 0),
2736
- netAmount: n(e.deposit.netAmount, 0),
2933
+ fee: i(e.deposit.fee, 0),
2934
+ amount: i(e.deposit.amount, 0),
2935
+ netAmount: i(e.deposit.netAmount, 0),
2737
2936
  reference: e.deposit.reference ?? void 0,
2738
2937
  dateTimeCreated: new Date(e.deposit.dateTimeCreated),
2739
2938
  dateTimeLastUpdated: new Date(e.deposit.dateTimeLastUpdated)
2740
2939
  } : void 0,
2741
- balance: n(e.balance, 0),
2742
- amount: n(e.amount, 0),
2940
+ balance: i(e.balance, 0),
2941
+ amount: i(e.amount, 0),
2743
2942
  expiration: new Date(e.expiration),
2744
- turnoverRequirement: n(e.turnoverRequirement, 0),
2745
- currentTurnoverRequirementContribution: n(
2943
+ turnoverRequirement: i(e.turnoverRequirement, 0),
2944
+ currentTurnoverRequirementContribution: i(
2746
2945
  e.currentTurnoverRequirementContribution,
2747
2946
  0
2748
2947
  ),
2749
- currentTurnoverRequirementContributionPercentage: n(
2948
+ currentTurnoverRequirementContributionPercentage: i(
2750
2949
  e.currentTurnoverRequirementContributionPercentage,
2751
2950
  0
2752
2951
  ),
2753
2952
  dateTimeCreated: new Date(e.dateTimeCreated),
2754
2953
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
2755
2954
  };
2756
- return g(t);
2955
+ return b(t);
2757
2956
  }
2758
2957
  cashbackBonus(e) {
2759
2958
  return {
2760
2959
  id: e.id,
2761
- total: n(e.total, 0),
2762
- balance: n(e.balance, 0),
2960
+ total: i(e.total, 0),
2961
+ balance: i(e.balance, 0),
2763
2962
  cashback: this.cashback(e.cashback),
2764
2963
  dateTimeCreated: new Date(e.dateTimeCreated),
2765
2964
  dateTimeLastUpdated: new Date(e.dateTimeLastUpdated)
@@ -2772,12 +2971,12 @@ class Ot {
2772
2971
  status: e.status,
2773
2972
  dateTimeCreated: new Date(e.dateTimeCreated)
2774
2973
  };
2775
- return g(t);
2974
+ return b(t);
2776
2975
  }
2777
2976
  pointsWallet(e) {
2778
2977
  return {
2779
2978
  id: e.id,
2780
- points: n(e.points, 0),
2979
+ points: i(e.points, 0),
2781
2980
  account: e.account,
2782
2981
  dateTimeCreated: new Date(e.dateTimeCreated)
2783
2982
  };
@@ -2786,8 +2985,8 @@ class Ot {
2786
2985
  return {
2787
2986
  id: e.id,
2788
2987
  type: e.type,
2789
- amount: n(e.amount, 0),
2790
- balance: n(e.balance, 0),
2988
+ amount: i(e.amount, 0),
2989
+ balance: i(e.balance, 0),
2791
2990
  dateTimeCreated: new Date(e.dateTimeCreated)
2792
2991
  };
2793
2992
  }
@@ -2795,12 +2994,12 @@ class Ot {
2795
2994
  const t = {
2796
2995
  id: e.id,
2797
2996
  type: e.type,
2798
- amount: e.amount ? n(e.amount, 0) : void 0,
2997
+ amount: e.amount ? i(e.amount, 0) : void 0,
2799
2998
  domain: e.domain ?? void 0,
2800
2999
  details: e.details,
2801
3000
  dateTimeCreated: new Date(e.dateTimeCreated)
2802
3001
  };
2803
- return g(t);
3002
+ return b(t);
2804
3003
  }
2805
3004
  referral(e) {
2806
3005
  return {
@@ -2808,18 +3007,18 @@ class Ot {
2808
3007
  level: e.level,
2809
3008
  upline: e.upline,
2810
3009
  downline: e.downline,
2811
- turnover: n(e.turnover, 0),
2812
- commission: n(e.commission, 0),
3010
+ turnover: i(e.turnover, 0),
3011
+ commission: i(e.commission, 0),
2813
3012
  dateTimeCreated: new Date(e.dateTimeCreated)
2814
3013
  };
2815
3014
  }
2816
3015
  referralCommission(e) {
2817
3016
  return {
2818
3017
  id: e.id,
2819
- commission: n(e.commission, 0),
2820
- level1Commission: n(e.level1Commission, 0),
2821
- level2Commission: n(e.level2Commission, 0),
2822
- level3Commission: n(e.level3Commission, 0),
3018
+ commission: i(e.commission, 0),
3019
+ level1Commission: i(e.level1Commission, 0),
3020
+ level2Commission: i(e.level2Commission, 0),
3021
+ level3Commission: i(e.level3Commission, 0),
2823
3022
  referralsCount: e.referralsCount,
2824
3023
  level1ReferralsCount: e.level1ReferralsCount,
2825
3024
  level2ReferralsCount: e.level2ReferralsCount,
@@ -2830,37 +3029,38 @@ class Ot {
2830
3029
  };
2831
3030
  }
2832
3031
  }
2833
- class qt {
3032
+ class jt {
2834
3033
  constructor(e) {
2835
- m(this, "cmsPortalService");
2836
- m(this, "authService");
2837
- m(this, "gameService");
2838
- m(this, "fileService");
2839
- m(this, "walletService");
2840
- m(this, "accountService");
2841
- m(this, "reportService");
2842
- m(this, "portalService");
2843
- m(this, "sessionManager");
2844
- m(this, "transformer");
2845
- m(this, "logger");
3034
+ c(this, "cmsPortalService");
3035
+ c(this, "authService");
3036
+ c(this, "gameService");
3037
+ c(this, "fileService");
3038
+ c(this, "walletService");
3039
+ c(this, "accountService");
3040
+ c(this, "reportService");
3041
+ c(this, "portalService");
3042
+ c(this, "sessionManager");
3043
+ c(this, "transformer");
3044
+ c(this, "logger");
3045
+ c(this, "cache");
2846
3046
  const {
2847
3047
  /**/
2848
3048
  site: t,
2849
3049
  sitePlatform: r,
2850
3050
  platform: a,
2851
3051
  environment: s,
2852
- logs: c
3052
+ logs: m
2853
3053
  } = e, u = s === "production";
2854
- this.transformer = new Ot({
3054
+ this.transformer = new Vt({
2855
3055
  environment: s
2856
3056
  }), this.logger = new Ce({
2857
- enabled: c ?? !1
3057
+ enabled: m ?? !1
2858
3058
  });
2859
- 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", l = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", _ = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", v = u ? "https://file.opexa.io/graphql" : "https://file.development.opexa.io/graphql", M = u ? "https://game.opexa.io/graphql" : "https://game.development.opexa.io/graphql", R = "https://portal-api.opexacms.io/v1", N = new vt({
2860
- url: R,
3059
+ 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", h = u ? "https://report.opexa.io/graphql" : "https://report.development.opexa.io/graphql", l = u ? "https://account.opexa.io/graphql" : "https://account.development.opexa.io/graphql", C = u ? "https://portal.opexa.io/graphql" : "https://portal.development.opexa.io/graphql", k = 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 = "https://portal-api.opexacms.io/v1", v = new Nt({
3060
+ url: T,
2861
3061
  site: t,
2862
3062
  platform: r
2863
- }), E = {
3063
+ }), y = {
2864
3064
  middlewares: [this.authMiddleware],
2865
3065
  fetchOptions: {
2866
3066
  headers: {
@@ -2868,15 +3068,15 @@ class qt {
2868
3068
  "Platform-Code": a
2869
3069
  }
2870
3070
  }
2871
- }, I = new Rt(new G(M, E)), D = new Mt(new G(v, E)), S = new Pt(new G(f, E)), P = new Tt(new G(l, E)), $ = new It(new G(w, E)), x = new Nt(new G(_, E)), C = new _t({
3071
+ }, M = new It(new O(_, y)), R = new Dt(new O(k, y)), S = new xt(new O(f, y)), N = new Mt(new O(l, y)), D = new Pt(new O(h, y)), I = new Gt(new O(C, y)), A = new Rt({
2872
3072
  url: p,
2873
3073
  platform: a
2874
- }), U = new Gt({
2875
- logs: c,
2876
- authService: C,
3074
+ }), G = new Lt({
3075
+ logs: m,
3076
+ authService: A,
2877
3077
  walletService: S
2878
3078
  });
2879
- this.authService = C, this.gameService = I, this.fileService = D, this.walletService = S, this.accountService = P, this.reportService = $, this.portalService = x, this.sessionManager = U, this.cmsPortalService = N;
3079
+ this.authService = A, this.gameService = M, this.fileService = R, this.walletService = S, this.accountService = N, this.reportService = D, this.portalService = I, this.sessionManager = G, this.cmsPortalService = v, this.cache = new $t();
2880
3080
  }
2881
3081
  get authMiddleware() {
2882
3082
  return async (e) => {
@@ -2885,12 +3085,21 @@ class qt {
2885
3085
  return t.data ? (e.headers.append("Authorization", `Bearer ${t.data.accessToken}`), this.logger.info("Session found"), this.logger.success("Added 'Authorization' header")) : this.logger.info("No session found"), e;
2886
3086
  };
2887
3087
  }
3088
+ get locale() {
3089
+ return new Promise((e) => {
3090
+ const t = "locale", r = this.cache.get(t);
3091
+ if (r) return e(r);
3092
+ this.platform__next().then((a) => {
3093
+ 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"));
3094
+ });
3095
+ });
3096
+ }
2888
3097
  async signIn(e) {
2889
3098
  switch (e.type) {
2890
3099
  case "NAME_AND_PASSWORD": {
2891
3100
  const t = await this.sessionManager.create({
2892
3101
  ...e,
2893
- password: await y(e.password)
3102
+ password: await g(e.password)
2894
3103
  });
2895
3104
  return t.ok ? t.data ? {
2896
3105
  ok: !0,
@@ -2905,6 +3114,14 @@ class qt {
2905
3114
  }
2906
3115
  } : t;
2907
3116
  }
3117
+ case "MOBILE_NUMBER": {
3118
+ const t = await this.sessionManager.create({
3119
+ type: "MOBILE_NUMBER",
3120
+ mobileNumber: P(e.mobileNumber, await this.locale),
3121
+ verificationCode: e.verificationCode
3122
+ });
3123
+ return t.ok ? { ok: !0 } : t;
3124
+ }
2908
3125
  default: {
2909
3126
  const t = await this.sessionManager.create(e);
2910
3127
  return t.ok ? { ok: !0 } : t;
@@ -2917,7 +3134,7 @@ class qt {
2917
3134
  return await this.sessionManager.createFromAuthenticator({
2918
3135
  type: "SECURITY_QUESTION",
2919
3136
  token: e.token,
2920
- secretAnswer: await y(e.secretAnswer)
3137
+ secretAnswer: await g(e.secretAnswer)
2921
3138
  });
2922
3139
  default:
2923
3140
  return {
@@ -2933,7 +3150,7 @@ class qt {
2933
3150
  await this.sessionManager.destroy();
2934
3151
  }
2935
3152
  watchSession(e) {
2936
- const t = $t(e.interval ?? 3e4, 3e4, 6e4);
3153
+ const t = Ut(e.interval ?? 3e4, 3e4, 6e4);
2937
3154
  let r = null;
2938
3155
  const a = () => setTimeout(async () => {
2939
3156
  await this.sessionManager.verify() || await e.onInvalid(), r = a();
@@ -2972,6 +3189,7 @@ class qt {
2972
3189
  /*+ PLATFORM +*/
2973
3190
  /*+----------------------------------------+*/
2974
3191
  /**/
3192
+ /** @deprecated */
2975
3193
  async platform() {
2976
3194
  const e = await this.accountService.platform();
2977
3195
  return e.ok ? {
@@ -2979,6 +3197,20 @@ class qt {
2979
3197
  data: this.transformer.transform.platform(e.data)
2980
3198
  } : e;
2981
3199
  }
3200
+ async platform__next() {
3201
+ const e = await this.portalService.platform();
3202
+ return e.ok ? {
3203
+ ok: !0,
3204
+ data: this.transformer.transform.platform__next(e.data)
3205
+ } : e;
3206
+ }
3207
+ async paymentSettings() {
3208
+ const e = await this.accountService.paymentSettings();
3209
+ return e.ok ? {
3210
+ ok: !0,
3211
+ data: this.transformer.transform.paymentSettings(e.data)
3212
+ } : e;
3213
+ }
2982
3214
  /**/
2983
3215
  /*+----------------------------------------+*/
2984
3216
  /*+ ACCOUNT +*/
@@ -2995,15 +3227,15 @@ class qt {
2995
3227
  * @deprecated use `createAccount__next`
2996
3228
  */
2997
3229
  async createAccount(e) {
2998
- const t = e.id ?? k.generate(T.Account).toString(), r = await this.accountService.registerMemberAccount({
3230
+ const t = e.id ?? $.generate(U.Account).toString(), r = await this.accountService.registerMemberAccount({
2999
3231
  input: {
3000
3232
  id: t,
3001
3233
  btag: e.btag,
3002
3234
  name: e.name,
3003
3235
  domain: e.domain,
3004
3236
  birthDay: typeof e.dateOfBirth == "string" ? e.dateOfBirth : e.dateOfBirth.toISOString(),
3005
- password: await y(e.password),
3006
- mobileNumber: b(e.mobileNumber)
3237
+ password: await g(e.password),
3238
+ mobileNumber: P(e.mobileNumber, await this.locale)
3007
3239
  },
3008
3240
  referralCode: e.referralCode,
3009
3241
  verificationCode: e.verificationCode,
@@ -3012,12 +3244,12 @@ class qt {
3012
3244
  return r.ok ? { ok: !0, data: { id: t } } : r;
3013
3245
  }
3014
3246
  async createAccount__next(e) {
3015
- const t = e.id ?? k.generate(T.Account).toString();
3247
+ const t = e.id ?? $.generate(U.Account).toString();
3016
3248
  if (e.type === "MOBILE_NUMBER") {
3017
3249
  const a = await this.accountService.registerMemberAccountViaMobile({
3018
3250
  input: {
3019
3251
  id: t,
3020
- mobileNumber: b(e.mobileNumber)
3252
+ mobileNumber: P(e.mobileNumber, await this.locale)
3021
3253
  },
3022
3254
  referralCode: e.referralCode,
3023
3255
  reCAPTCHAResponse: e.reCAPTCHAResponse,
@@ -3029,8 +3261,8 @@ class qt {
3029
3261
  input: {
3030
3262
  id: t,
3031
3263
  name: e.name,
3032
- password: await y(e.password),
3033
- mobileNumber: e.mobileNumber ? b(e.mobileNumber) : void 0
3264
+ password: await g(e.password),
3265
+ mobileNumber: e.mobileNumber ? P(e.mobileNumber, await this.locale) : void 0
3034
3266
  },
3035
3267
  reCAPTCHAResponse: e.reCAPTCHAResponse
3036
3268
  });
@@ -3040,7 +3272,7 @@ class qt {
3040
3272
  return await this.accountService.registerMayaMemberAccount({
3041
3273
  input: {
3042
3274
  name: e.name,
3043
- password: await y(e.password),
3275
+ password: await g(e.password),
3044
3276
  domain: e.domain
3045
3277
  }
3046
3278
  });
@@ -3051,12 +3283,12 @@ class qt {
3051
3283
  id: e,
3052
3284
  data: {
3053
3285
  ...t,
3054
- password: t.password ? await y(t.password) : void 0,
3055
- transactionPassword: t.transactionPassword ? await y(t.transactionPassword) : void 0,
3286
+ password: t.password ? await g(t.password) : void 0,
3287
+ transactionPassword: t.transactionPassword ? await g(t.transactionPassword) : void 0,
3056
3288
  ...t.mobileNumber && {
3057
- mobileNumber: b(t.mobileNumber)
3289
+ mobileNumber: P(t.mobileNumber, await this.locale)
3058
3290
  },
3059
- secretAnswer: t.secretAnswer ? await y(t.secretAnswer) : void 0
3291
+ secretAnswer: t.secretAnswer ? await g(t.secretAnswer) : void 0
3060
3292
  }
3061
3293
  }
3062
3294
  });
@@ -3076,7 +3308,7 @@ class qt {
3076
3308
  } : e;
3077
3309
  }
3078
3310
  async submitVerificationDetails(e) {
3079
- const t = e.id ?? k.generate(T.Verification).toString(), r = await this.accountService.createMemberVerification({
3311
+ const t = e.id ?? $.generate(U.Verification).toString(), r = await this.accountService.createMemberVerification({
3080
3312
  input: {
3081
3313
  id: t,
3082
3314
  ...e
@@ -3097,8 +3329,8 @@ class qt {
3097
3329
  async resetPassword(e) {
3098
3330
  return await this.accountService.resetPassword({
3099
3331
  input: {
3100
- mobileNumber: b(e.mobileNumber),
3101
- newPassword: await y(e.newPassword)
3332
+ mobileNumber: P(e.mobileNumber, await this.locale),
3333
+ newPassword: await g(e.newPassword)
3102
3334
  },
3103
3335
  verificationCode: e.verificationCode
3104
3336
  });
@@ -3124,7 +3356,7 @@ class qt {
3124
3356
  return await this.accountService.sendVerificationCode({
3125
3357
  input: {
3126
3358
  channel: "SMS",
3127
- recipient: b(e)
3359
+ recipient: P(e, await this.locale)
3128
3360
  }
3129
3361
  });
3130
3362
  }
@@ -3132,7 +3364,7 @@ class qt {
3132
3364
  if (e.type === "SMS")
3133
3365
  return this.authService.sendVerificationCode({
3134
3366
  channel: "SMS",
3135
- recipient: b(e.mobileNumber),
3367
+ recipient: P(e.mobileNumber, await this.locale),
3136
3368
  ...e.strict && {
3137
3369
  verificationType: "MEMBER"
3138
3370
  }
@@ -3182,13 +3414,13 @@ class qt {
3182
3414
  /*+----------------------------------------+*/
3183
3415
  /**/
3184
3416
  async createWithdrawal(e) {
3185
- const t = e.id ?? k.generate(T.Withdrawal).toString();
3417
+ const t = e.id ?? $.generate(U.Withdrawal).toString();
3186
3418
  if (e.type === "BANK") {
3187
3419
  const r = await this.walletService.createBankWithdrawal({
3188
3420
  input: {
3189
3421
  id: t,
3190
3422
  amount: e.amount.toString(),
3191
- transactionPassword: await y(e.transactionPassword)
3423
+ transactionPassword: await g(e.transactionPassword)
3192
3424
  }
3193
3425
  });
3194
3426
  if (!r.ok) return r;
@@ -3198,8 +3430,8 @@ class qt {
3198
3430
  input: {
3199
3431
  id: t,
3200
3432
  amount: e.amount.toString(),
3201
- transactionPassword: await y(e.transactionPassword),
3202
- recipientMobileNumber: b(e.recipientMobileNumber)
3433
+ transactionPassword: await g(e.transactionPassword),
3434
+ recipientMobileNumber: P(e.recipientMobileNumber, await this.locale)
3203
3435
  }
3204
3436
  });
3205
3437
  if (!r.ok) return r;
@@ -3209,8 +3441,8 @@ class qt {
3209
3441
  input: {
3210
3442
  id: t,
3211
3443
  amount: e.amount.toString(),
3212
- transactionPassword: await y(e.transactionPassword),
3213
- recipientMobileNumber: b(e.recipientMobileNumber)
3444
+ transactionPassword: await g(e.transactionPassword),
3445
+ recipientMobileNumber: P(e.recipientMobileNumber, await this.locale)
3214
3446
  }
3215
3447
  });
3216
3448
  if (!r.ok) return r;
@@ -3220,7 +3452,7 @@ class qt {
3220
3452
  input: {
3221
3453
  id: t,
3222
3454
  amount: e.amount.toString(),
3223
- transactionPassword: await y(e.transactionPassword)
3455
+ transactionPassword: await g(e.transactionPassword)
3224
3456
  }
3225
3457
  });
3226
3458
  if (!r.ok) return r;
@@ -3251,7 +3483,7 @@ class qt {
3251
3483
  /*+----------------------------------------+*/
3252
3484
  /**/
3253
3485
  async createDeposit(e) {
3254
- const t = e.id ?? k.generate(T.Deposit).toString();
3486
+ const t = e.id ?? $.generate(U.Deposit).toString();
3255
3487
  if (e.type === "MAYA") {
3256
3488
  const r = await this.walletService.createMayaDeposit({
3257
3489
  input: {
@@ -3465,17 +3697,17 @@ class qt {
3465
3697
  } : r;
3466
3698
  }
3467
3699
  async createGameSession(e) {
3468
- const t = e.id ?? k.generate(T.GameSession).toString();
3700
+ const t = e.id ?? $.generate(U.GameSession).toString();
3469
3701
  if (e.game.startsWith("SPORTS:")) {
3470
- const f = await k.generateFromKey(T.Game, e.game).then(
3702
+ const f = await $.generateFromKey(U.Game, e.game).then(
3471
3703
  (l) => l.toString()
3472
- ), w = await this.gameService.createGameSession({
3704
+ ), h = await this.gameService.createGameSession({
3473
3705
  input: {
3474
3706
  id: t,
3475
3707
  game: f
3476
3708
  }
3477
3709
  });
3478
- return w.ok ? { ok: !0, data: { id: t } } : w;
3710
+ return h.ok ? { ok: !0, data: { id: t } } : h;
3479
3711
  }
3480
3712
  const a = await this.game(e.game);
3481
3713
  if (!a.data)
@@ -3486,7 +3718,7 @@ class qt {
3486
3718
  message: "Game does not exist"
3487
3719
  }
3488
3720
  };
3489
- const { provider: s, reference: c } = a.data, p = [
3721
+ const { provider: s, reference: m } = a.data, p = [
3490
3722
  /**/
3491
3723
  "RTG",
3492
3724
  "DARWIN",
@@ -3495,7 +3727,7 @@ class qt {
3495
3727
  "EVOLUTION",
3496
3728
  "EVOLUTION_NETENT",
3497
3729
  "EVOLUTION_REDTIGER"
3498
- ].includes(s) ? await this.walletService.createGameSession({ input: { id: t, game: c } }) : await this.gameService.createGameSession({ input: { id: t, game: c } });
3730
+ ].includes(s) ? await this.walletService.createGameSession({ input: { id: t, game: m } }) : await this.gameService.createGameSession({ input: { id: t, game: m } });
3499
3731
  return p.ok ? { ok: !0, data: { id: t } } : p;
3500
3732
  }
3501
3733
  async endGameSession(e) {
@@ -3515,7 +3747,7 @@ class qt {
3515
3747
  } : t;
3516
3748
  }
3517
3749
  async uploadImageFile(e) {
3518
- const t = e.id ?? k.generate(T.File).toString(), r = await this.fileService.uploadPrivateImageFile({
3750
+ const t = e.id ?? $.generate(U.File).toString(), r = await this.fileService.uploadPrivateImageFile({
3519
3751
  input: {
3520
3752
  id: t,
3521
3753
  file: e.file
@@ -3628,10 +3860,17 @@ class qt {
3628
3860
  data: t.data.map(this.transformer.transform.referral)
3629
3861
  } : t;
3630
3862
  }
3863
+ async pointsClubSettings() {
3864
+ const e = await this.accountService.pointsClubSettings();
3865
+ return e.ok ? {
3866
+ ok: !0,
3867
+ data: e.data ? this.transformer.transform.pointsClubSettings(e.data) : null
3868
+ } : e;
3869
+ }
3631
3870
  }
3632
3871
  export {
3633
- Vt as ObjectId,
3634
- T as ObjectType,
3635
- qt as Sdk
3872
+ zt as ObjectId,
3873
+ U as ObjectType,
3874
+ jt as Sdk
3636
3875
  };
3637
3876
  //# sourceMappingURL=index.mjs.map