@opexa/portal-components 0.0.11 → 0.0.12

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 (137) hide show
  1. package/dist/components/Account/Account.js +1 -1
  2. package/dist/components/Account/Account.mjs +9 -9
  3. package/dist/components/BetRecords/BetRecords.js +1 -1
  4. package/dist/components/BetRecords/BetRecords.mjs +1 -1
  5. package/dist/components/DepositWithdrawal/AmountChoices.js +1 -1
  6. package/dist/components/DepositWithdrawal/AmountChoices.mjs +1 -1
  7. package/dist/components/DepositWithdrawal/AvailablePromos.js +1 -1
  8. package/dist/components/DepositWithdrawal/AvailablePromos.mjs +17 -17
  9. package/dist/components/DepositWithdrawal/Deposit/Deposit.js +1 -1
  10. package/dist/components/DepositWithdrawal/Deposit/Deposit.mjs +1 -1
  11. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.js +1 -1
  12. package/dist/components/DepositWithdrawal/Deposit/GCashDeposit/GCashDeposit.mjs +45 -45
  13. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.js +1 -1
  14. package/dist/components/DepositWithdrawal/Deposit/MayaAppDeposit/MayaAppDeposit.mjs +46 -46
  15. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.js +1 -1
  16. package/dist/components/DepositWithdrawal/Deposit/MayaDeposit/MayaDeposit.mjs +45 -45
  17. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.js +1 -1
  18. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositForm.mjs +1 -1
  19. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.js +1 -1
  20. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.mjs +1 -1
  21. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.js +1 -1
  22. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositForm.mjs +1 -1
  23. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.js +1 -1
  24. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.mjs +1 -1
  25. package/dist/components/DepositWithdrawal/DepositWithdrawal.js +1 -1
  26. package/dist/components/DepositWithdrawal/DepositWithdrawal.mjs +23 -23
  27. package/dist/components/DepositWithdrawal/PaymentMethods.js +1 -1
  28. package/dist/components/DepositWithdrawal/PaymentMethods.mjs +1 -1
  29. package/dist/components/Disclaimer/useDisclaimer.js +1 -1
  30. package/dist/components/Disclaimer/useDisclaimer.mjs +5 -5
  31. package/dist/components/GameLaunch/GameLaunch.js +1 -1
  32. package/dist/components/GameLaunch/GameLaunch.mjs +22 -22
  33. package/dist/components/GameLaunch/GameLaunchTrigger.js +1 -1
  34. package/dist/components/GameLaunch/GameLaunchTrigger.mjs +11 -11
  35. package/dist/components/Games/Games.js +1 -1
  36. package/dist/components/Games/Games.mjs +11 -10
  37. package/dist/components/JackpotCounter/JackpotCounter.js +1 -1
  38. package/dist/components/JackpotCounter/JackpotCounter.mjs +1 -1
  39. package/dist/components/JackpotCounter/JackpotCounterItem.js +1 -1
  40. package/dist/components/JackpotCounter/JackpotCounterItem.mjs +1 -1
  41. package/dist/components/Promo/PromoContent.js +1 -1
  42. package/dist/components/Promo/PromoContent.mjs +1 -1
  43. package/dist/components/Promos/PromoCarousel.js +1 -1
  44. package/dist/components/Promos/PromoCarousel.mjs +1 -1
  45. package/dist/components/Promos/PromoGrid.js +1 -1
  46. package/dist/components/Promos/PromoGrid.mjs +1 -1
  47. package/dist/components/Protected/Protected.js +1 -1
  48. package/dist/components/Protected/Protected.mjs +1 -1
  49. package/dist/components/SignIn/SignIn.js +1 -1
  50. package/dist/components/SignIn/SignIn.mjs +13 -13
  51. package/dist/components/SignIn/SignInForm.js +1 -1
  52. package/dist/components/SignIn/SignInForm.mjs +31 -31
  53. package/dist/components/SignUp/SignUp.js +1 -1
  54. package/dist/components/SignUp/SignUp.mjs +14 -14
  55. package/dist/components/SignUp/SignUpForm.js +1 -1
  56. package/dist/components/SignUp/SignUpForm.mjs +28 -28
  57. package/dist/components/TopWins/TopWins.js +1 -1
  58. package/dist/components/TopWins/TopWins.mjs +1 -1
  59. package/dist/components/TournamentCounter/TournamentCounter.js +1 -1
  60. package/dist/components/TournamentCounter/TournamentCounter.mjs +1 -1
  61. package/dist/components/TournamentCounter/TournamentCounterItem.js +1 -1
  62. package/dist/components/TournamentCounter/TournamentCounterItem.mjs +1 -1
  63. package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
  64. package/dist/components/TransactionRecords/DepositRecordsTable.mjs +1 -1
  65. package/dist/components/TransactionRecords/TableFilters.js +1 -1
  66. package/dist/components/TransactionRecords/TableFilters.mjs +1 -1
  67. package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
  68. package/dist/components/TransactionRecords/TransactionRecordsTable.mjs +1 -1
  69. package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
  70. package/dist/components/TransactionRecords/WithdrawalRecordsTable.mjs +1 -1
  71. package/dist/handlers.d.ts +1 -1
  72. package/dist/hooks/useCreateGCashDepositMutation.js +1 -1
  73. package/dist/hooks/useCreateGCashDepositMutation.mjs +1 -1
  74. package/dist/hooks/useCreateGameSessionMutation.js +1 -1
  75. package/dist/hooks/useCreateGameSessionMutation.mjs +1 -1
  76. package/dist/hooks/useCreateMayaAppDepositMutation.js +1 -1
  77. package/dist/hooks/useCreateMayaAppDepositMutation.mjs +1 -1
  78. package/dist/hooks/useCreateMayaDepositMutation.js +1 -1
  79. package/dist/hooks/useCreateMayaDepositMutation.mjs +1 -1
  80. package/dist/hooks/useCreateOnlineBankDepositMutation.js +1 -1
  81. package/dist/hooks/useCreateOnlineBankDepositMutation.mjs +1 -1
  82. package/dist/hooks/useCreateQRPHDepositMutation.js +1 -1
  83. package/dist/hooks/useCreateQRPHDepositMutation.mjs +1 -1
  84. package/dist/utils/toaster.d.ts +1 -1
  85. package/dist/utils/toaster.js +1 -1
  86. package/dist/utils/toaster.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/_virtual/_commonjsHelpers.js +0 -1
  89. package/dist/_virtual/_commonjsHelpers.mjs +0 -8
  90. package/dist/_virtual/browser.js +0 -1
  91. package/dist/_virtual/browser.mjs +0 -5
  92. package/dist/_virtual/browser2.js +0 -1
  93. package/dist/_virtual/browser2.mjs +0 -7
  94. package/dist/_virtual/browser3.js +0 -1
  95. package/dist/_virtual/browser3.mjs +0 -4
  96. package/dist/_virtual/browser4.js +0 -1
  97. package/dist/_virtual/browser4.mjs +0 -4
  98. package/dist/_virtual/index.js +0 -1
  99. package/dist/_virtual/index.mjs +0 -7
  100. package/dist/_virtual/index2.js +0 -1
  101. package/dist/_virtual/index2.mjs +0 -4
  102. package/dist/_virtual/index3.js +0 -1
  103. package/dist/_virtual/index3.mjs +0 -4
  104. package/dist/_virtual/index4.js +0 -1
  105. package/dist/_virtual/index4.mjs +0 -4
  106. package/dist/_virtual/index5.js +0 -1
  107. package/dist/_virtual/index5.mjs +0 -4
  108. package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +0 -1
  109. package/dist/node_modules/.pnpm/@ark-ui_react@5.9.2_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@ark-ui/react/dist/components/toast/create-toaster.mjs +0 -6
  110. package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.js +0 -1
  111. package/dist/node_modules/.pnpm/@opexa_portal-sdk-core@0.0.22/node_modules/@opexa/portal-sdk-core/dist/object-id.mjs +0 -66
  112. package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.js +0 -1
  113. package/dist/node_modules/.pnpm/@zag-js_anatomy@1.12.4/node_modules/@zag-js/anatomy/dist/index.mjs +0 -25
  114. package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.js +0 -1
  115. package/dist/node_modules/.pnpm/@zag-js_toast@1.12.4/node_modules/@zag-js/toast/dist/index.mjs +0 -123
  116. package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.js +0 -1
  117. package/dist/node_modules/.pnpm/@zag-js_utils@1.12.4/node_modules/@zag-js/utils/dist/index.mjs +0 -21
  118. package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.js +0 -1
  119. package/dist/node_modules/.pnpm/base-x@4.0.0/node_modules/base-x/src/index.mjs +0 -76
  120. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -1
  121. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs +0 -52
  122. package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.js +0 -1
  123. package/dist/node_modules/.pnpm/bs58@5.0.0/node_modules/bs58/index.mjs +0 -8
  124. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js +0 -6
  125. package/dist/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.mjs +0 -953
  126. package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.js +0 -1
  127. package/dist/node_modules/.pnpm/crypto-hash@1.3.0/node_modules/crypto-hash/browser.mjs +0 -34
  128. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -1
  129. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.mjs +0 -30
  130. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js +0 -2
  131. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.mjs +0 -32
  132. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +0 -1
  133. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs +0 -38
  134. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.js +0 -1
  135. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/react/shallow.mjs +0 -12
  136. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.js +0 -1
  137. package/dist/node_modules/.pnpm/zustand@5.0.5_@types_react@19.0.8_react@19.1.0_use-sync-external-store@1.4.0_react@19.1.0_/node_modules/zustand/esm/vanilla/shallow.mjs +0 -30
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../../../_virtual/_commonjsHelpers.js"),o=require("../../../../../_virtual/browser3.js");var u;function c(){if(u)return o.__exports;u=1;const i=(()=>{if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof a.commonjsGlobal<"u")return a.commonjsGlobal})(),l=s=>{const e=new DataView(s);let t="";for(let r=0;r<e.byteLength;r+=4)t+=e.getUint32(r).toString(16).padStart(8,"0");return t},n=s=>async(e,t)=>{typeof e=="string"&&(e=new i.TextEncoder().encode(e)),t={outputFormat:"hex",...t};const r=await i.crypto.subtle.digest(s,e);return t.outputFormat==="hex"?l(r):r};return o.__exports.sha1=n("SHA-1"),o.__exports.sha256=n("SHA-256"),o.__exports.sha384=n("SHA-384"),o.__exports.sha512=n("SHA-512"),o.__exports}exports.__require=c;
@@ -1,34 +0,0 @@
1
- import { commonjsGlobal as a } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __exports as o } from "../../../../../_virtual/browser3.mjs";
3
- var u;
4
- function l() {
5
- if (u) return o;
6
- u = 1;
7
- const s = (() => {
8
- if (typeof globalThis < "u")
9
- return globalThis;
10
- if (typeof self < "u")
11
- return self;
12
- if (typeof window < "u")
13
- return window;
14
- if (typeof a < "u")
15
- return a;
16
- })(), f = (i) => {
17
- const e = new DataView(i);
18
- let t = "";
19
- for (let r = 0; r < e.byteLength; r += 4)
20
- t += e.getUint32(r).toString(16).padStart(8, "0");
21
- return t;
22
- }, n = (i) => async (e, t) => {
23
- typeof e == "string" && (e = new s.TextEncoder().encode(e)), t = {
24
- outputFormat: "hex",
25
- ...t
26
- };
27
- const r = await s.crypto.subtle.digest(i, e);
28
- return t.outputFormat === "hex" ? f(r) : r;
29
- };
30
- return o.sha1 = n("SHA-1"), o.sha256 = n("SHA-256"), o.sha384 = n("SHA-384"), o.sha512 = n("SHA-512"), o;
31
- }
32
- export {
33
- l as __require
34
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../_virtual/index5.js");/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var d;function q(){return d||(d=1,f.__exports.read=function(s,i,n,w,e){var a,r,M=e*8-w-1,p=(1<<M)-1,_=p>>1,t=-7,o=n?e-1:0,x=n?-1:1,h=s[i+o];for(o+=x,a=h&(1<<-t)-1,h>>=-t,t+=M;t>0;a=a*256+s[i+o],o+=x,t-=8);for(r=a&(1<<-t)-1,a>>=-t,t+=w;t>0;r=r*256+s[i+o],o+=x,t-=8);if(a===0)a=1-_;else{if(a===p)return r?NaN:(h?-1:1)*(1/0);r=r+Math.pow(2,w),a=a-_}return(h?-1:1)*r*Math.pow(2,a-w)},f.__exports.write=function(s,i,n,w,e,a){var r,M,p,_=a*8-e-1,t=(1<<_)-1,o=t>>1,x=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=w?0:a-1,c=w?1:-1,N=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(M=isNaN(i)?1:0,r=t):(r=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-r))<1&&(r--,p*=2),r+o>=1?i+=x/p:i+=x*Math.pow(2,1-o),i*p>=2&&(r++,p/=2),r+o>=t?(M=0,r=t):r+o>=1?(M=(i*p-1)*Math.pow(2,e),r=r+o):(M=i*Math.pow(2,o-1)*Math.pow(2,e),r=0));e>=8;s[n+h]=M&255,h+=c,M/=256,e-=8);for(r=r<<e|M,_+=e;_>0;s[n+h]=r&255,h+=c,r/=256,_-=8);s[n+h-c]|=N*128}),f.__exports}exports.__require=q;
@@ -1,30 +0,0 @@
1
- import { __exports as n } from "../../../../../_virtual/index5.mjs";
2
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
3
- var d;
4
- function q() {
5
- return d ? n : (d = 1, n.read = function(s, a, N, w, M) {
6
- var t, r, h = M * 8 - w - 1, e = (1 << h) - 1, f = e >> 1, i = -7, o = N ? M - 1 : 0, x = N ? -1 : 1, p = s[a + o];
7
- for (o += x, t = p & (1 << -i) - 1, p >>= -i, i += h; i > 0; t = t * 256 + s[a + o], o += x, i -= 8)
8
- ;
9
- for (r = t & (1 << -i) - 1, t >>= -i, i += w; i > 0; r = r * 256 + s[a + o], o += x, i -= 8)
10
- ;
11
- if (t === 0)
12
- t = 1 - f;
13
- else {
14
- if (t === e)
15
- return r ? NaN : (p ? -1 : 1) * (1 / 0);
16
- r = r + Math.pow(2, w), t = t - f;
17
- }
18
- return (p ? -1 : 1) * r * Math.pow(2, t - w);
19
- }, n.write = function(s, a, N, w, M, t) {
20
- var r, h, e, f = t * 8 - M - 1, i = (1 << f) - 1, o = i >> 1, x = M === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = w ? 0 : t - 1, c = w ? 1 : -1, I = a < 0 || a === 0 && 1 / a < 0 ? 1 : 0;
21
- for (a = Math.abs(a), isNaN(a) || a === 1 / 0 ? (h = isNaN(a) ? 1 : 0, r = i) : (r = Math.floor(Math.log(a) / Math.LN2), a * (e = Math.pow(2, -r)) < 1 && (r--, e *= 2), r + o >= 1 ? a += x / e : a += x * Math.pow(2, 1 - o), a * e >= 2 && (r++, e /= 2), r + o >= i ? (h = 0, r = i) : r + o >= 1 ? (h = (a * e - 1) * Math.pow(2, M), r = r + o) : (h = a * Math.pow(2, o - 1) * Math.pow(2, M), r = 0)); M >= 8; s[N + p] = h & 255, p += c, h /= 256, M -= 8)
22
- ;
23
- for (r = r << M | h, f += M; f > 0; s[N + p] = r & 255, p += c, r /= 256, f -= 8)
24
- ;
25
- s[N + p - c] |= I * 128;
26
- }, n);
27
- }
28
- export {
29
- q as __require
30
- };
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../_virtual/_commonjsHelpers.js"),t=require("../../../../../_virtual/browser4.js"),_=require("../../../safe-buffer@5.2.1/node_modules/safe-buffer/index.js");var l;function d(){if(l)return t.__module.exports;l=1;var s=65536,a=4294967295;function m(){throw new Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var f=_.__require().Buffer,e=i.commonjsGlobal.crypto||i.commonjsGlobal.msCrypto;e&&e.getRandomValues?t.__module.exports=c:t.__module.exports=m;function c(r,u){if(r>a)throw new RangeError("requested too many random bytes");var o=f.allocUnsafe(r);if(r>0)if(r>s)for(var n=0;n<r;n+=s)e.getRandomValues(o.slice(n,n+s));else e.getRandomValues(o);return typeof u=="function"?process.nextTick(function(){u(null,o)}):o}return t.__module.exports}exports.__require=d;
@@ -1,32 +0,0 @@
1
- import { commonjsGlobal as f } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as n } from "../../../../../_virtual/browser4.mjs";
3
- import { __require as c } from "../../../safe-buffer@5.2.1/node_modules/safe-buffer/index.mjs";
4
- var a;
5
- function x() {
6
- if (a) return n.exports;
7
- a = 1;
8
- var s = 65536, i = 4294967295;
9
- function m() {
10
- throw new Error(`Secure random number generation is not supported by this browser.
11
- Use Chrome, Firefox or Internet Explorer 11`);
12
- }
13
- var p = c().Buffer, e = f.crypto || f.msCrypto;
14
- e && e.getRandomValues ? n.exports = l : n.exports = m;
15
- function l(r, u) {
16
- if (r > i) throw new RangeError("requested too many random bytes");
17
- var o = p.allocUnsafe(r);
18
- if (r > 0)
19
- if (r > s)
20
- for (var t = 0; t < r; t += s)
21
- e.getRandomValues(o.slice(t, t + s));
22
- else
23
- e.getRandomValues(o);
24
- return typeof u == "function" ? process.nextTick(function() {
25
- u(null, o);
26
- }) : o;
27
- }
28
- return n.exports;
29
- }
30
- export {
31
- x as __require
32
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../_virtual/index2.js"),p=require("../../../buffer@6.0.3/node_modules/buffer/index.js");/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var m;function b(){return m||(m=1,function(c,l){var f=p.__require(),r=f.Buffer;function a(e,u){for(var n in e)u[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?c.exports=f:(a(f,l),l.Buffer=o);function o(e,u,n){return r(e,u,n)}o.prototype=Object.create(r.prototype),a(r,o),o.from=function(e,u,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return r(e,u,n)},o.alloc=function(e,u,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var t=r(e);return u!==void 0?typeof n=="string"?t.fill(u,n):t.fill(u):t.fill(0),t},o.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(e)}}(i.__module,i.__module.exports)),i.__module.exports}exports.__require=b;
@@ -1,38 +0,0 @@
1
- import { __module as a } from "../../../../../_virtual/index2.mjs";
2
- import { __require as s } from "../../../buffer@6.0.3/node_modules/buffer/index.mjs";
3
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
4
- var l;
5
- function w() {
6
- return l ? a.exports : (l = 1, function(p, i) {
7
- var n = s(), e = n.Buffer;
8
- function m(r, f) {
9
- for (var u in r)
10
- f[u] = r[u];
11
- }
12
- e.from && e.alloc && e.allocUnsafe && e.allocUnsafeSlow ? p.exports = n : (m(n, i), i.Buffer = o);
13
- function o(r, f, u) {
14
- return e(r, f, u);
15
- }
16
- o.prototype = Object.create(e.prototype), m(e, o), o.from = function(r, f, u) {
17
- if (typeof r == "number")
18
- throw new TypeError("Argument must not be a number");
19
- return e(r, f, u);
20
- }, o.alloc = function(r, f, u) {
21
- if (typeof r != "number")
22
- throw new TypeError("Argument must be a number");
23
- var t = e(r);
24
- return f !== void 0 ? typeof u == "string" ? t.fill(f, u) : t.fill(f) : t.fill(0), t;
25
- }, o.allocUnsafe = function(r) {
26
- if (typeof r != "number")
27
- throw new TypeError("Argument must be a number");
28
- return e(r);
29
- }, o.allocUnsafeSlow = function(r) {
30
- if (typeof r != "number")
31
- throw new TypeError("Argument must be a number");
32
- return n.SlowBuffer(r);
33
- };
34
- }(a, a.exports), a.exports);
35
- }
36
- export {
37
- w as __require
38
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("../vanilla/shallow.js");function c(t){const e=o.useRef(void 0);return n=>{const r=t(n);return u.shallow(e.current,r)?e.current:e.current=r}}exports.useShallow=c;
@@ -1,12 +0,0 @@
1
- import n from "react";
2
- import { shallow as u } from "../vanilla/shallow.mjs";
3
- function l(e) {
4
- const r = n.useRef(void 0);
5
- return (o) => {
6
- const t = e(o);
7
- return u(r.current, t) ? r.current : r.current = t;
8
- };
9
- }
10
- export {
11
- l as useShallow
12
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=t=>Symbol.iterator in t,c=t=>"entries"in t,f=(t,e)=>{const o=t instanceof Map?t:new Map(t.entries()),i=e instanceof Map?e:new Map(e.entries());if(o.size!==i.size)return!1;for(const[r,n]of o)if(!Object.is(n,i.get(r)))return!1;return!0},b=(t,e)=>{const o=t[Symbol.iterator](),i=e[Symbol.iterator]();let r=o.next(),n=i.next();for(;!r.done&&!n.done;){if(!Object.is(r.value,n.value))return!1;r=o.next(),n=i.next()}return!!r.done&&!!n.done};function p(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:s(t)&&s(e)?c(t)&&c(e)?f(t,e):b(t,e):f({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}exports.shallow=p;
@@ -1,30 +0,0 @@
1
- const s = (t) => Symbol.iterator in t, c = (t) => (
2
- // HACK: avoid checking entries type
3
- "entries" in t
4
- ), f = (t, e) => {
5
- const o = t instanceof Map ? t : new Map(t.entries()), i = e instanceof Map ? e : new Map(e.entries());
6
- if (o.size !== i.size)
7
- return !1;
8
- for (const [r, n] of o)
9
- if (!Object.is(n, i.get(r)))
10
- return !1;
11
- return !0;
12
- }, b = (t, e) => {
13
- const o = t[Symbol.iterator](), i = e[Symbol.iterator]();
14
- let r = o.next(), n = i.next();
15
- for (; !r.done && !n.done; ) {
16
- if (!Object.is(r.value, n.value))
17
- return !1;
18
- r = o.next(), n = i.next();
19
- }
20
- return !!r.done && !!n.done;
21
- };
22
- function p(t, e) {
23
- return Object.is(t, e) ? !0 : typeof t != "object" || t === null || typeof e != "object" || e === null || Object.getPrototypeOf(t) !== Object.getPrototypeOf(e) ? !1 : s(t) && s(e) ? c(t) && c(e) ? f(t, e) : b(t, e) : f(
24
- { entries: () => Object.entries(t) },
25
- { entries: () => Object.entries(e) }
26
- );
27
- }
28
- export {
29
- p as shallow
30
- };