@opexa/portal-sdk 0.0.96 → 0.0.98

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