@opexa/portal-components 0.0.15 → 0.0.16

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.
Files changed (76) hide show
  1. package/dist/client/hooks/index.d.ts +4 -0
  2. package/dist/client/hooks/useCreateGCashWithdrawalMutation.d.ts +4 -0
  3. package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +1 -0
  4. package/dist/client/hooks/useCreateGCashWithdrawalMutation.mjs +38 -0
  5. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.d.ts +4 -0
  6. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +1 -0
  7. package/dist/client/hooks/useCreateInstapayWithdrawalMutation.mjs +38 -0
  8. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.d.ts +4 -0
  9. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +1 -0
  10. package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.mjs +38 -0
  11. package/dist/client/hooks/useCreateMayaWithdrawalMutation.d.ts +4 -0
  12. package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +1 -0
  13. package/dist/client/hooks/useCreateMayaWithdrawalMutation.mjs +38 -0
  14. package/dist/client/hooks/useDepositQuery.js +1 -1
  15. package/dist/client/hooks/useDepositQuery.mjs +12 -13
  16. package/dist/client/hooks/usePromoQuery.js +1 -1
  17. package/dist/client/hooks/usePromoQuery.mjs +13 -13
  18. package/dist/client-hooks.js +1 -1
  19. package/dist/client-hooks.mjs +84 -76
  20. package/dist/components/DepositWithdrawal/Deposit/AvailablePromos.js +1 -0
  21. package/dist/components/DepositWithdrawal/{AvailablePromos.mjs → Deposit/AvailablePromos.mjs} +31 -31
  22. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  23. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +1 -1
  24. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  25. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +4 -4
  26. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  27. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +1 -1
  28. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  29. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +75 -98
  30. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  31. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +1 -1
  32. package/dist/components/DepositWithdrawal/MayaSessionExpired.d.ts +1 -0
  33. package/dist/components/DepositWithdrawal/MayaSessionExpired.js +1 -0
  34. package/dist/components/DepositWithdrawal/{Deposit/MayaAppDeposit/SessionExpired.mjs → MayaSessionExpired.mjs} +3 -3
  35. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  36. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +23 -17
  37. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.d.ts +1 -0
  38. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +1 -0
  39. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.mjs +205 -0
  40. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.d.ts +1 -0
  41. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +1 -0
  42. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.mjs +264 -0
  43. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.d.ts +1 -0
  44. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.js +1 -0
  45. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal/MayaAppWithdrawal.mjs +186 -0
  46. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.d.ts +1 -0
  47. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.js +1 -0
  48. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal/MayaWithdrawal.mjs +205 -0
  49. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.d.ts +1 -1
  50. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.js +1 -1
  51. package/dist/components/DepositWithdrawal/Withdrawal/Withdrawal.mjs +81 -3
  52. package/dist/components/DepositWithdrawal/utils.d.ts +1 -1
  53. package/dist/components/DepositWithdrawal/utils.js +1 -1
  54. package/dist/components/DepositWithdrawal/utils.mjs +2 -1
  55. package/dist/images/instapay.png.js +1 -0
  56. package/dist/images/instapay.png.mjs +4 -0
  57. package/dist/theme.css +21 -2
  58. package/dist/ui/Field/field.recipe.js +1 -1
  59. package/dist/ui/Field/field.recipe.mjs +3 -3
  60. package/dist/ui/PasswordInput/PasswordInput.d.ts +1 -0
  61. package/dist/ui/PasswordInput/index.d.ts +1 -0
  62. package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +52 -0
  63. package/dist/utils/queryKeys.d.ts +4 -0
  64. package/dist/utils/queryKeys.js +1 -1
  65. package/dist/utils/queryKeys.mjs +50 -38
  66. package/dist/utils.js +1 -1
  67. package/dist/utils.mjs +48 -44
  68. package/package.json +3 -3
  69. package/dist/components/DepositWithdrawal/AvailablePromos.js +0 -1
  70. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.d.ts +0 -1
  71. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/SessionExpired.js +0 -1
  72. package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal.d.ts +0 -1
  73. package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal.d.ts +0 -1
  74. package/dist/components/DepositWithdrawal/Withdrawal/MayaAppWithdrawal.d.ts +0 -1
  75. package/dist/components/DepositWithdrawal/Withdrawal/MayaWithdrawal.d.ts +0 -1
  76. /package/dist/components/DepositWithdrawal/{AvailablePromos.d.ts → Deposit/AvailablePromos.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  const t = () => ["queries/account"], s = () => [
2
2
  "mutations/authenticate"
3
- ], o = (e) => ["queries/availablePromos", e], n = (e) => [
3
+ ], a = (e) => ["queries/availablePromos", e], o = (e) => [
4
4
  "queries/betRecords",
5
5
  e
6
- ], i = () => ["queries/cashbacks"], a = () => [
6
+ ], i = () => ["queries/cashbacks"], n = () => [
7
7
  "mutations/createGameSession"
8
8
  ], r = () => [
9
9
  "mutations/createGCashDeposit"
@@ -18,64 +18,76 @@ const t = () => ["queries/account"], s = () => [
18
18
  ], K = (e) => [
19
19
  "queries/deposit",
20
20
  e
21
- ], m = (e) => ["queries/depositRecords", e], p = () => [
21
+ ], p = (e) => ["queries/depositRecords", e], m = () => [
22
22
  "queries/depositsCount"
23
- ], Q = () => [
23
+ ], d = () => [
24
24
  "mutations/endGameSession"
25
- ], q = (e) => [
25
+ ], M = (e) => [
26
26
  "queries/games",
27
27
  e
28
- ], d = () => [
28
+ ], Q = () => [
29
29
  "queries/instapayBankList"
30
- ], M = () => [
30
+ ], l = () => [
31
31
  "queries/isMayaSessionValidQueryKey"
32
- ], l = (e) => [
32
+ ], q = (e) => [
33
33
  "queries/jackpots",
34
34
  e
35
- ], S = () => [
36
- "queries/memberVerification"
37
35
  ], C = () => [
36
+ "queries/memberVerification"
37
+ ], h = () => [
38
38
  "queries/paymentSettings"
39
- ], D = () => ["queries/platform"], R = (e) => ["queries/promo", e], h = () => ["queries/promos"], k = () => [
39
+ ], S = () => ["queries/platform"], D = (e) => ["queries/promo", e], w = () => ["queries/promos"], W = () => [
40
40
  "mutations/sendVerificationCode"
41
- ], P = () => ["queries/session"], b = () => ["mutations/signIn"], G = () => ["mutations/signOut"], f = () => ["mutations/signUp"], V = () => ["queries/site"], A = () => ["queries/topWins"], B = (e) => [
41
+ ], R = () => ["queries/session"], G = () => ["mutations/signIn"], k = () => ["mutations/signOut"], P = () => ["mutations/signUp"], b = () => ["queries/site"], A = () => ["queries/topWins"], f = (e) => [
42
42
  "queries/tournaments",
43
43
  e
44
- ], w = (e) => ["queries/transactionRecords", e], I = () => ["queries/wallet"], O = (e) => ["queries/withdrawalRecords", e];
44
+ ], I = (e) => ["queries/transactionRecords", e], V = () => ["queries/wallet"], B = (e) => ["queries/withdrawalRecords", e], O = () => [
45
+ "mutations/createGCashWithdrawal"
46
+ ], T = () => [
47
+ "mutations/createMayaWithdrawal"
48
+ ], v = () => [
49
+ "mutations/createMayaAppWithdrawal"
50
+ ], H = () => [
51
+ "mutations/createInstapayWithdrawal"
52
+ ];
45
53
  export {
46
54
  t as getAccountQueryKey,
47
55
  s as getAuthenticateMutationKey,
48
- o as getAvailablePromosQueryKey,
49
- n as getBetRecordsQueryKey,
56
+ a as getAvailablePromosQueryKey,
57
+ o as getBetRecordsQueryKey,
50
58
  i as getCashbacksQueryKey,
51
59
  r as getCreateGCashDepositMutationKey,
52
- a as getCreateGameSessionMutationKey,
60
+ O as getCreateGCashWithdrawalMutationKey,
61
+ n as getCreateGameSessionMutationKey,
62
+ H as getCreateInstapayWithdrawalMutationKey,
53
63
  u as getCreateMayaAppDepositMutationKey,
64
+ v as getCreateMayaAppWithdrawalMutationKey,
54
65
  y as getCreateMayaDepositMutationKey,
66
+ T as getCreateMayaWithdrawalMutationKey,
55
67
  c as getCreateOnlineBankDepositMutationKey,
56
68
  g as getCreateQRPHDepositMutationKey,
57
69
  K as getDepositQueryKey,
58
- m as getDepositRecordsQueryKey,
59
- p as getDepositsCountQueryKey,
60
- Q as getEndGameSessionMutationKey,
61
- q as getGamesQueryKey,
62
- d as getInstapayBankListQueryKey,
63
- M as getIsMayaSessionValidQueryKey,
64
- l as getJackpotsQueryKey,
65
- S as getMemberVerificationQueryKey,
66
- C as getPaymentSettingsQueryKey,
67
- D as getPlatformQueryKey,
68
- R as getPromoQueryKey,
69
- h as getPromosQueryKey,
70
- k as getSendVerificationCodeMutationKey,
71
- P as getSessionQueryKey,
72
- b as getSignInMutationKey,
73
- G as getSignOutMutationKey,
74
- f as getSignUpMutationKey,
75
- V as getSiteQueryKey,
70
+ p as getDepositRecordsQueryKey,
71
+ m as getDepositsCountQueryKey,
72
+ d as getEndGameSessionMutationKey,
73
+ M as getGamesQueryKey,
74
+ Q as getInstapayBankListQueryKey,
75
+ l as getIsMayaSessionValidQueryKey,
76
+ q as getJackpotsQueryKey,
77
+ C as getMemberVerificationQueryKey,
78
+ h as getPaymentSettingsQueryKey,
79
+ S as getPlatformQueryKey,
80
+ D as getPromoQueryKey,
81
+ w as getPromosQueryKey,
82
+ W as getSendVerificationCodeMutationKey,
83
+ R as getSessionQueryKey,
84
+ G as getSignInMutationKey,
85
+ k as getSignOutMutationKey,
86
+ P as getSignUpMutationKey,
87
+ b as getSiteQueryKey,
76
88
  A as getTopWinsQueryKey,
77
- B as getTournamentsQueryKey,
78
- w as getTransactionRecordsQueryKey,
79
- I as getWalletQueryKey,
80
- O as getWithdrawalRecordsQueryKey
89
+ f as getTournamentsQueryKey,
90
+ I as getTransactionRecordsQueryKey,
91
+ V as getWalletQueryKey,
92
+ B as getWithdrawalRecordsQueryKey
81
93
  };
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./utils/anatomyToRecipeSlots.js"),a=require("./utils/capitalize.js"),r=require("./utils/createPoll.js"),y=require("./utils/createSplitProps.js"),o=require("./utils/dataAttr.js"),i=require("./utils/formatNumber.js"),n=require("./utils/getGameImageUrl.js"),u=require("./utils/getLocaleInfo.js"),s=require("./utils/getQueryClient.js"),g=require("./utils/isMobile.js"),K=require("./utils/parseDecimal.js"),e=require("./utils/queryKeys.js");exports.anatomyToRecipeSlots=t.anatomyToRecipeSlots;exports.capitalize=a.capitalize;exports.createPoll=r.createPoll;exports.createSplitProps=y.createSplitProps;exports.dataAttr=o.dataAttr;exports.formatNumber=i.formatNumber;exports.getGameImageUrl=n.getGameImageUrl;exports.getLocaleInfo=u.getLocaleInfo;exports.getQueryClient=s.getQueryClient;exports.onMobileDevice=g.onMobileDevice;exports.parseDecimal=K.parseDecimal;exports.getAccountQueryKey=e.getAccountQueryKey;exports.getAuthenticateMutationKey=e.getAuthenticateMutationKey;exports.getAvailablePromosQueryKey=e.getAvailablePromosQueryKey;exports.getBetRecordsQueryKey=e.getBetRecordsQueryKey;exports.getCashbacksQueryKey=e.getCashbacksQueryKey;exports.getCreateGCashDepositMutationKey=e.getCreateGCashDepositMutationKey;exports.getCreateGameSessionMutationKey=e.getCreateGameSessionMutationKey;exports.getCreateMayaAppDepositMutationKey=e.getCreateMayaAppDepositMutationKey;exports.getCreateMayaDepositMutationKey=e.getCreateMayaDepositMutationKey;exports.getCreateOnlineBankDepositMutationKey=e.getCreateOnlineBankDepositMutationKey;exports.getCreateQRPHDepositMutationKey=e.getCreateQRPHDepositMutationKey;exports.getDepositQueryKey=e.getDepositQueryKey;exports.getDepositRecordsQueryKey=e.getDepositRecordsQueryKey;exports.getDepositsCountQueryKey=e.getDepositsCountQueryKey;exports.getEndGameSessionMutationKey=e.getEndGameSessionMutationKey;exports.getGamesQueryKey=e.getGamesQueryKey;exports.getInstapayBankListQueryKey=e.getInstapayBankListQueryKey;exports.getIsMayaSessionValidQueryKey=e.getIsMayaSessionValidQueryKey;exports.getJackpotsQueryKey=e.getJackpotsQueryKey;exports.getMemberVerificationQueryKey=e.getMemberVerificationQueryKey;exports.getPaymentSettingsQueryKey=e.getPaymentSettingsQueryKey;exports.getPlatformQueryKey=e.getPlatformQueryKey;exports.getPromoQueryKey=e.getPromoQueryKey;exports.getPromosQueryKey=e.getPromosQueryKey;exports.getSendVerificationCodeMutationKey=e.getSendVerificationCodeMutationKey;exports.getSessionQueryKey=e.getSessionQueryKey;exports.getSignInMutationKey=e.getSignInMutationKey;exports.getSignOutMutationKey=e.getSignOutMutationKey;exports.getSignUpMutationKey=e.getSignUpMutationKey;exports.getSiteQueryKey=e.getSiteQueryKey;exports.getTopWinsQueryKey=e.getTopWinsQueryKey;exports.getTournamentsQueryKey=e.getTournamentsQueryKey;exports.getTransactionRecordsQueryKey=e.getTransactionRecordsQueryKey;exports.getWalletQueryKey=e.getWalletQueryKey;exports.getWithdrawalRecordsQueryKey=e.getWithdrawalRecordsQueryKey;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./utils/anatomyToRecipeSlots.js"),a=require("./utils/capitalize.js"),r=require("./utils/createPoll.js"),y=require("./utils/createSplitProps.js"),i=require("./utils/dataAttr.js"),o=require("./utils/formatNumber.js"),n=require("./utils/getGameImageUrl.js"),u=require("./utils/getLocaleInfo.js"),g=require("./utils/getQueryClient.js"),s=require("./utils/isMobile.js"),K=require("./utils/parseDecimal.js"),e=require("./utils/queryKeys.js");exports.anatomyToRecipeSlots=t.anatomyToRecipeSlots;exports.capitalize=a.capitalize;exports.createPoll=r.createPoll;exports.createSplitProps=y.createSplitProps;exports.dataAttr=i.dataAttr;exports.formatNumber=o.formatNumber;exports.getGameImageUrl=n.getGameImageUrl;exports.getLocaleInfo=u.getLocaleInfo;exports.getQueryClient=g.getQueryClient;exports.onMobileDevice=s.onMobileDevice;exports.parseDecimal=K.parseDecimal;exports.getAccountQueryKey=e.getAccountQueryKey;exports.getAuthenticateMutationKey=e.getAuthenticateMutationKey;exports.getAvailablePromosQueryKey=e.getAvailablePromosQueryKey;exports.getBetRecordsQueryKey=e.getBetRecordsQueryKey;exports.getCashbacksQueryKey=e.getCashbacksQueryKey;exports.getCreateGCashDepositMutationKey=e.getCreateGCashDepositMutationKey;exports.getCreateGCashWithdrawalMutationKey=e.getCreateGCashWithdrawalMutationKey;exports.getCreateGameSessionMutationKey=e.getCreateGameSessionMutationKey;exports.getCreateInstapayWithdrawalMutationKey=e.getCreateInstapayWithdrawalMutationKey;exports.getCreateMayaAppDepositMutationKey=e.getCreateMayaAppDepositMutationKey;exports.getCreateMayaAppWithdrawalMutationKey=e.getCreateMayaAppWithdrawalMutationKey;exports.getCreateMayaDepositMutationKey=e.getCreateMayaDepositMutationKey;exports.getCreateMayaWithdrawalMutationKey=e.getCreateMayaWithdrawalMutationKey;exports.getCreateOnlineBankDepositMutationKey=e.getCreateOnlineBankDepositMutationKey;exports.getCreateQRPHDepositMutationKey=e.getCreateQRPHDepositMutationKey;exports.getDepositQueryKey=e.getDepositQueryKey;exports.getDepositRecordsQueryKey=e.getDepositRecordsQueryKey;exports.getDepositsCountQueryKey=e.getDepositsCountQueryKey;exports.getEndGameSessionMutationKey=e.getEndGameSessionMutationKey;exports.getGamesQueryKey=e.getGamesQueryKey;exports.getInstapayBankListQueryKey=e.getInstapayBankListQueryKey;exports.getIsMayaSessionValidQueryKey=e.getIsMayaSessionValidQueryKey;exports.getJackpotsQueryKey=e.getJackpotsQueryKey;exports.getMemberVerificationQueryKey=e.getMemberVerificationQueryKey;exports.getPaymentSettingsQueryKey=e.getPaymentSettingsQueryKey;exports.getPlatformQueryKey=e.getPlatformQueryKey;exports.getPromoQueryKey=e.getPromoQueryKey;exports.getPromosQueryKey=e.getPromosQueryKey;exports.getSendVerificationCodeMutationKey=e.getSendVerificationCodeMutationKey;exports.getSessionQueryKey=e.getSessionQueryKey;exports.getSignInMutationKey=e.getSignInMutationKey;exports.getSignOutMutationKey=e.getSignOutMutationKey;exports.getSignUpMutationKey=e.getSignUpMutationKey;exports.getSiteQueryKey=e.getSiteQueryKey;exports.getTopWinsQueryKey=e.getTopWinsQueryKey;exports.getTournamentsQueryKey=e.getTournamentsQueryKey;exports.getTransactionRecordsQueryKey=e.getTransactionRecordsQueryKey;exports.getWalletQueryKey=e.getWalletQueryKey;exports.getWithdrawalRecordsQueryKey=e.getWithdrawalRecordsQueryKey;
package/dist/utils.mjs CHANGED
@@ -1,60 +1,64 @@
1
- import { anatomyToRecipeSlots as o } from "./utils/anatomyToRecipeSlots.mjs";
2
- import { capitalize as y } from "./utils/capitalize.mjs";
1
+ import { anatomyToRecipeSlots as a } from "./utils/anatomyToRecipeSlots.mjs";
2
+ import { capitalize as o } from "./utils/capitalize.mjs";
3
3
  import { createPoll as i } from "./utils/createPoll.mjs";
4
- import { createSplitProps as n } from "./utils/createSplitProps.mjs";
4
+ import { createSplitProps as g } from "./utils/createSplitProps.mjs";
5
5
  import { dataAttr as s } from "./utils/dataAttr.mjs";
6
6
  import { formatNumber as p } from "./utils/formatNumber.mjs";
7
7
  import { getGameImageUrl as Q } from "./utils/getGameImageUrl.mjs";
8
8
  import { getLocaleInfo as l } from "./utils/getLocaleInfo.mjs";
9
- import { getQueryClient as M } from "./utils/getQueryClient.mjs";
10
- import { onMobileDevice as S } from "./utils/isMobile.mjs";
11
- import { parseDecimal as d } from "./utils/parseDecimal.mjs";
12
- import { getAccountQueryKey as P, getAuthenticateMutationKey as R, getAvailablePromosQueryKey as b, getBetRecordsQueryKey as A, getCashbacksQueryKey as G, getCreateGCashDepositMutationKey as I, getCreateGameSessionMutationKey as h, getCreateMayaAppDepositMutationKey as k, getCreateMayaDepositMutationKey as T, getCreateOnlineBankDepositMutationKey as B, getCreateQRPHDepositMutationKey as V, getDepositQueryKey as W, getDepositRecordsQueryKey as v, getDepositsCountQueryKey as L, getEndGameSessionMutationKey as O, getGamesQueryKey as U, getInstapayBankListQueryKey as w, getIsMayaSessionValidQueryKey as z, getJackpotsQueryKey as E, getMemberVerificationQueryKey as H, getPaymentSettingsQueryKey as J, getPlatformQueryKey as N, getPromoQueryKey as j, getPromosQueryKey as q, getSendVerificationCodeMutationKey as F, getSessionQueryKey as X, getSignInMutationKey as Y, getSignOutMutationKey as Z, getSignUpMutationKey as _, getSiteQueryKey as $, getTopWinsQueryKey as ee, getTournamentsQueryKey as te, getTransactionRecordsQueryKey as oe, getWalletQueryKey as re, getWithdrawalRecordsQueryKey as ye } from "./utils/queryKeys.mjs";
9
+ import { getQueryClient as f } from "./utils/getQueryClient.mjs";
10
+ import { onMobileDevice as d } from "./utils/isMobile.mjs";
11
+ import { parseDecimal as S } from "./utils/parseDecimal.mjs";
12
+ import { getAccountQueryKey as h, getAuthenticateMutationKey as P, getAvailablePromosQueryKey as W, getBetRecordsQueryKey as A, getCashbacksQueryKey as G, getCreateGCashDepositMutationKey as I, getCreateGCashWithdrawalMutationKey as R, getCreateGameSessionMutationKey as b, getCreateInstapayWithdrawalMutationKey as w, getCreateMayaAppDepositMutationKey as k, getCreateMayaAppWithdrawalMutationKey as T, getCreateMayaDepositMutationKey as B, getCreateMayaWithdrawalMutationKey as V, getCreateOnlineBankDepositMutationKey as v, getCreateQRPHDepositMutationKey as L, getDepositQueryKey as O, getDepositRecordsQueryKey as U, getDepositsCountQueryKey as z, getEndGameSessionMutationKey as E, getGamesQueryKey as H, getInstapayBankListQueryKey as J, getIsMayaSessionValidQueryKey as N, getJackpotsQueryKey as j, getMemberVerificationQueryKey as q, getPaymentSettingsQueryKey as F, getPlatformQueryKey as X, getPromoQueryKey as Y, getPromosQueryKey as Z, getSendVerificationCodeMutationKey as _, getSessionQueryKey as $, getSignInMutationKey as ee, getSignOutMutationKey as te, getSignUpMutationKey as ae, getSiteQueryKey as re, getTopWinsQueryKey as oe, getTournamentsQueryKey as ye, getTransactionRecordsQueryKey as ie, getWalletQueryKey as ne, getWithdrawalRecordsQueryKey as ge } from "./utils/queryKeys.mjs";
13
13
  export {
14
- o as anatomyToRecipeSlots,
15
- y as capitalize,
14
+ a as anatomyToRecipeSlots,
15
+ o as capitalize,
16
16
  i as createPoll,
17
- n as createSplitProps,
17
+ g as createSplitProps,
18
18
  s as dataAttr,
19
19
  p as formatNumber,
20
- P as getAccountQueryKey,
21
- R as getAuthenticateMutationKey,
22
- b as getAvailablePromosQueryKey,
20
+ h as getAccountQueryKey,
21
+ P as getAuthenticateMutationKey,
22
+ W as getAvailablePromosQueryKey,
23
23
  A as getBetRecordsQueryKey,
24
24
  G as getCashbacksQueryKey,
25
25
  I as getCreateGCashDepositMutationKey,
26
- h as getCreateGameSessionMutationKey,
26
+ R as getCreateGCashWithdrawalMutationKey,
27
+ b as getCreateGameSessionMutationKey,
28
+ w as getCreateInstapayWithdrawalMutationKey,
27
29
  k as getCreateMayaAppDepositMutationKey,
28
- T as getCreateMayaDepositMutationKey,
29
- B as getCreateOnlineBankDepositMutationKey,
30
- V as getCreateQRPHDepositMutationKey,
31
- W as getDepositQueryKey,
32
- v as getDepositRecordsQueryKey,
33
- L as getDepositsCountQueryKey,
34
- O as getEndGameSessionMutationKey,
30
+ T as getCreateMayaAppWithdrawalMutationKey,
31
+ B as getCreateMayaDepositMutationKey,
32
+ V as getCreateMayaWithdrawalMutationKey,
33
+ v as getCreateOnlineBankDepositMutationKey,
34
+ L as getCreateQRPHDepositMutationKey,
35
+ O as getDepositQueryKey,
36
+ U as getDepositRecordsQueryKey,
37
+ z as getDepositsCountQueryKey,
38
+ E as getEndGameSessionMutationKey,
35
39
  Q as getGameImageUrl,
36
- U as getGamesQueryKey,
37
- w as getInstapayBankListQueryKey,
38
- z as getIsMayaSessionValidQueryKey,
39
- E as getJackpotsQueryKey,
40
+ H as getGamesQueryKey,
41
+ J as getInstapayBankListQueryKey,
42
+ N as getIsMayaSessionValidQueryKey,
43
+ j as getJackpotsQueryKey,
40
44
  l as getLocaleInfo,
41
- H as getMemberVerificationQueryKey,
42
- J as getPaymentSettingsQueryKey,
43
- N as getPlatformQueryKey,
44
- j as getPromoQueryKey,
45
- q as getPromosQueryKey,
46
- M as getQueryClient,
47
- F as getSendVerificationCodeMutationKey,
48
- X as getSessionQueryKey,
49
- Y as getSignInMutationKey,
50
- Z as getSignOutMutationKey,
51
- _ as getSignUpMutationKey,
52
- $ as getSiteQueryKey,
53
- ee as getTopWinsQueryKey,
54
- te as getTournamentsQueryKey,
55
- oe as getTransactionRecordsQueryKey,
56
- re as getWalletQueryKey,
57
- ye as getWithdrawalRecordsQueryKey,
58
- S as onMobileDevice,
59
- d as parseDecimal
45
+ q as getMemberVerificationQueryKey,
46
+ F as getPaymentSettingsQueryKey,
47
+ X as getPlatformQueryKey,
48
+ Y as getPromoQueryKey,
49
+ Z as getPromosQueryKey,
50
+ f as getQueryClient,
51
+ _ as getSendVerificationCodeMutationKey,
52
+ $ as getSessionQueryKey,
53
+ ee as getSignInMutationKey,
54
+ te as getSignOutMutationKey,
55
+ ae as getSignUpMutationKey,
56
+ re as getSiteQueryKey,
57
+ oe as getTopWinsQueryKey,
58
+ ye as getTournamentsQueryKey,
59
+ ie as getTransactionRecordsQueryKey,
60
+ ne as getWalletQueryKey,
61
+ ge as getWithdrawalRecordsQueryKey,
62
+ d as onMobileDevice,
63
+ S as parseDecimal
60
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/components/index.d.ts",
@@ -85,7 +85,7 @@
85
85
  "devDependencies": {
86
86
  "@eslint/eslintrc": "3",
87
87
  "@hookform/resolvers": "5.0.1",
88
- "@opexa/portal-sdk-core": "0.0.22",
88
+ "@opexa/portal-sdk-core": "0.0.23",
89
89
  "@tailwindcss/postcss": "4",
90
90
  "@tanstack/react-query": "5.77.0",
91
91
  "@tanstack/react-query-devtools": "5.77.0",
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "peerDependencies": {
116
116
  "@hookform/resolvers": "^4.0.0",
117
- "@opexa/portal-sdk-core": "^0.0.22",
117
+ "@opexa/portal-sdk-core": "^0.0.23",
118
118
  "@tanstack/react-query": "^5.0.0",
119
119
  "next": "^15.0.0",
120
120
  "react": "^19.0.0",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@ark-ui/react"),h=require("next/image"),q=require("next/link"),g=require("tailwind-merge"),m=require("zustand/shallow");require("@opexa/portal-sdk-core");require("@tanstack/react-query");require("tiny-invariant");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const x=require("../../client/hooks/useAvailablePromosQuery.js"),b=require("../../client/hooks/useControllableState.js");require("lodash-es");require("react");require("@opexa/portal-sdk-core/object-id");const C=require("../../client/hooks/useGlobalStore.js");require("../../client/hooks/useInfiniteQueryHelper.js");require("usehooks-ts");const j=require("../../icons/CheckIcon.js"),v=require("../../icons/ChevronLeftIcon.js"),N=require("../../icons/ChevronRightIcon.js");require("../../ui/AlertDialog/AlertDialog.js");require("../../ui/Avatar/Avatar.js");require("../../ui/Badge/Badge.js");require("../../ui/Button/button.recipe.js");const s=require("../../ui/Checkbox/Checkbox.js");require("../../ui/Clipboard/Clipboard.js");require("../../ui/DatePicker/DatePicker.js");require("../../ui/Dialog/Dialog.js");require("../../ui/Drawer/Drawer.js");require("../../ui/Field/Field.js");const a=require("../../ui/IconButton/IconButton.js");require("../../ui/NumberInput/NumberInput.js");require("../../ui/PinInput/PinInput.js");require("../../ui/Popover/Popover.js");require("../../ui/SegmentGroup/SegmentGroup.js");require("../../ui/Select/Select.js");require("../../ui/Table/Table.js");require("../../ui/Tabs/Tabs.js");function w(l){const n=C.useGlobalStore(m.useShallow(r=>({depositWithdrawal:r.depositWithdrawal}))),t=x.useAvailablePromosQuery().data??[],[o,u]=b.useControllableState({value:l.value,defaultValue:l.defaultValue??null,onChange:l.onChange});return e.jsxs(i.Carousel.Root,{slideCount:t.length,className:l.className,spacing:"16px",slidesPerPage:2,children:[e.jsxs("div",{className:"flex items-center gap-xl",children:[e.jsxs("div",{className:"grow",children:[e.jsx("h2",{className:"text-lg font-semibold leading-tight",children:"Available Promotions"}),e.jsx("p",{className:"text-gray-500 mt-1 text-sm leading-tight",children:"Select a promotion with your deposit. Only one can be active at a time."})]}),e.jsxs(i.Carousel.Control,{children:[e.jsx(i.Carousel.PrevTrigger,{asChild:!0,children:e.jsx(a.IconButton,{variant:"outline",colorScheme:"gray",className:"rounded-r-none border-r-0",children:e.jsx(v.ChevronLeftIcon,{})})}),e.jsx(i.Carousel.NextTrigger,{asChild:!0,children:e.jsx(a.IconButton,{variant:"outline",colorScheme:"gray",className:"rounded-l-none",children:e.jsx(N.ChevronRightIcon,{})})})]})]}),e.jsx(i.Carousel.ItemGroup,{className:"mt-3xl",children:t.map((r,c)=>e.jsx(i.Carousel.Item,{index:c,children:e.jsxs("div",{className:"relative select-none p-0.5",children:[e.jsx("div",{className:g.twMerge("block rounded-lg",r.id===o&&"ring-gray-500/25 ring-2"),children:r.banner.url&&e.jsx(h,{src:r.banner.url,alt:"",width:288,height:184,className:"rounded-lg"})}),e.jsxs(s.Root,{checked:r.id===o,onCheckedChange:d=>{u(d.checked?r.id:null)},className:"absolute right-3 top-3 rounded-md border border-white/50 bg-white/60 p-lg backdrop-blur-sm",children:[e.jsx(s.Control,{className:"bg-white",children:e.jsx(s.Indicator,{asChild:!0,children:e.jsx(j.CheckIcon,{})})}),e.jsx(s.HiddenInput,{})]}),e.jsx(q,{href:`/promos/${r.id}`,className:"absolute bottom-3 right-3 rounded-md border border-white/50 bg-white/60 px-lg py-md text-sm font-semibold backdrop-blur-sm",onClick:()=>{n.depositWithdrawal.setOpen(!1)},children:"Promo Details"})]})},r.id))})]})}exports.AvailablePromos=w;
@@ -1 +0,0 @@
1
- export declare function SessionExpired(): import("react").JSX.Element;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../../../icons/AlertTriangle.js");function s(){return e.jsxs("div",{className:"bg-gray-50 mt-3xl rounded-lg px-5 py-16 lg:mt-4xl",children:[e.jsx(t.AlertTriangleIcon,{className:"text-amber-500 mx-auto size-10"}),e.jsx("h2",{className:"mt-3 text-center text-lg font-semibold",children:"Session Expired"}),e.jsx("p",{className:"text-gray-700 mx-auto mt-2 max-w-[30rem] text-center text-sm",children:"Your session has timed out. To continue with deposits or withdrawals, Please try reloading the app."})]})}exports.SessionExpired=s;