@cedros/login-react 0.0.21 → 0.0.23
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.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/login-react.css +1 -1
- package/dist/mobileWalletAdapter-BgWsM7tl.cjs +1 -0
- package/dist/mobileWalletAdapter-BgWsM7tl.cjs.map +1 -0
- package/dist/{mobileWalletAdapter-BWb12c-6.js → mobileWalletAdapter-CDpfbU1R.js} +47 -47
- package/dist/mobileWalletAdapter-CDpfbU1R.js.map +1 -0
- package/dist/solana-only.cjs +1 -1
- package/dist/solana-only.js +1 -1
- package/package.json +1 -1
- package/dist/mobileWalletAdapter-BWb12c-6.js.map +0 -1
- package/dist/mobileWalletAdapter-Dp8OXLey.cjs +0 -1
- package/dist/mobileWalletAdapter-Dp8OXLey.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./useAuth-X6Ds6WW4.cjs"),T=require("./useCedrosLogin-C9MrcZvh.cjs"),e=require("react/jsx-runtime"),l=require("react"),V=require("./LoadingSpinner-d6sSxgQN.cjs"),Fs=require("./sanitization-Bo_tn-L2.cjs"),K=require("./EmailRegisterForm-B1DB-bqe.cjs"),Le=require("./validation-BuGQrA-K.cjs"),G=require("./ErrorMessage-CHbYbVi2.cjs"),Us=require("./GoogleLoginButton-D7CoMXLq.cjs"),$e=require("./mobileWalletAdapter-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./useAuth-X6Ds6WW4.cjs"),T=require("./useCedrosLogin-C9MrcZvh.cjs"),e=require("react/jsx-runtime"),l=require("react"),V=require("./LoadingSpinner-d6sSxgQN.cjs"),Fs=require("./sanitization-Bo_tn-L2.cjs"),K=require("./EmailRegisterForm-B1DB-bqe.cjs"),Le=require("./validation-BuGQrA-K.cjs"),G=require("./ErrorMessage-CHbYbVi2.cjs"),Us=require("./GoogleLoginButton-D7CoMXLq.cjs"),$e=require("./mobileWalletAdapter-BgWsM7tl.cjs"),te=require("./PermissionsSection-BPbE-hNx.cjs"),zt=require("./useSystemSettings-DRrreszl.cjs"),xe=require("./AutosaveStatus-BFj5GIab.cjs"),Ws=require("./useOrgs-DDVRCaVi.cjs"),Oe=require("./AdminDepositList-b2AXtLg0.cjs"),fe=require("./AdminWithdrawalHistory-DL9zbu2b.cjs"),Ee=require("./useUsersStatsSummary-8qY7iP4G.cjs"),Vt=require("./StatsBar-DTUZCwDD.cjs"),ge=require("./plugin-PU2vAozn.cjs"),Ht=require("./AuthenticationSettings-C9f5MKgj.cjs"),Qt=require("./EmbeddedWalletSettings-Bmx8x21f.cjs"),We=require("./EmailSettings-CM5l8qqK.cjs"),_s=require("./CreditSystemSettings-r3gnGjiU.cjs"),Kt=require("./ServerSettings-LIIP5TPz.cjs"),ie=require("./shamir-CiBczzDN.cjs"),Gr=require("./useAdminDeposits-BkkCwHWp.cjs"),Os=require("./WebhookSettings-2p9abGm5.cjs");function qe(s){return s instanceof Uint8Array||ArrayBuffer.isView(s)&&s.constructor.name==="Uint8Array"}function Yt(s,t){return Array.isArray(t)?t.length===0?!0:s?t.every(o=>typeof o=="string"):t.every(o=>Number.isSafeInteger(o)):!1}function $r(s){if(typeof s!="function")throw new Error("function expected");return!0}function ze(s,t){if(typeof t!="string")throw new Error(`${s}: string expected`);return!0}function ke(s){if(!Number.isSafeInteger(s))throw new Error(`invalid integer: ${s}`)}function Ve(s){if(!Array.isArray(s))throw new Error("array expected")}function He(s,t){if(!Yt(!0,t))throw new Error(`${s}: array of strings expected`)}function Gt(s,t){if(!Yt(!1,t))throw new Error(`${s}: array of numbers expected`)}function Jr(...s){const t=n=>n,o=(n,c)=>i=>n(c(i)),a=s.map(n=>n.encode).reduceRight(o,t),r=s.map(n=>n.decode).reduce(o,t);return{encode:a,decode:r}}function Xr(s){const t=typeof s=="string"?s.split(""):s,o=t.length;He("alphabet",t);const a=new Map(t.map((r,n)=>[r,n]));return{encode:r=>(Ve(r),r.map(n=>{if(!Number.isSafeInteger(n)||n<0||n>=o)throw new Error(`alphabet.encode: digit index outside alphabet "${n}". Allowed: ${s}`);return t[n]})),decode:r=>(Ve(r),r.map(n=>{ze("alphabet.decode",n);const c=a.get(n);if(c===void 0)throw new Error(`Unknown letter: "${n}". Allowed: ${s}`);return c}))}}function Zr(s=""){return ze("join",s),{encode:t=>(He("join.decode",t),t.join(s)),decode:t=>(ze("join.decode",t),t.split(s))}}function eo(s,t="="){return ke(s),ze("padding",t),{encode(o){for(He("padding.encode",o);o.length*s%8;)o.push(t);return o},decode(o){He("padding.decode",o);let a=o.length;if(a*s%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;a>0&&o[a-1]===t;a--)if((a-1)*s%8===0)throw new Error("padding: invalid, string has too much padding");return o.slice(0,a)}}}function Rs(s,t,o){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(o<2)throw new Error(`convertRadix: invalid to=${o}, base cannot be less than 2`);if(Ve(s),!s.length)return[];let a=0;const r=[],n=Array.from(s,i=>{if(ke(i),i<0||i>=t)throw new Error(`invalid integer: ${i}`);return i}),c=n.length;for(;;){let i=0,d=!0;for(let h=a;h<c;h++){const p=n[h],m=t*i,f=m+p;if(!Number.isSafeInteger(f)||m/t!==i||f-p!==m)throw new Error("convertRadix: carry overflow");const w=f/o;i=f%o;const g=Math.floor(w);if(n[h]=g,!Number.isSafeInteger(g)||g*o+i!==f)throw new Error("convertRadix: carry overflow");if(d)g?d=!1:a=h;else continue}if(r.push(i),d)break}for(let i=0;i<s.length-1&&s[i]===0;i++)r.push(0);return r.reverse()}const $t=(s,t)=>t===0?s:$t(t,s%t),Qe=(s,t)=>s+(t-$t(s,t)),ns=(()=>{let s=[];for(let t=0;t<40;t++)s.push(2**t);return s})();function Ds(s,t,o,a){if(Ve(s),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(o<=0||o>32)throw new Error(`convertRadix2: wrong to=${o}`);if(Qe(t,o)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${o} carryBits=${Qe(t,o)}`);let r=0,n=0;const c=ns[t],i=ns[o]-1,d=[];for(const h of s){if(ke(h),h>=c)throw new Error(`convertRadix2: invalid data word=${h} from=${t}`);if(r=r<<t|h,n+t>32)throw new Error(`convertRadix2: carry overflow pos=${n} from=${t}`);for(n+=t;n>=o;n-=o)d.push((r>>n-o&i)>>>0);const p=ns[n];if(p===void 0)throw new Error("invalid carry");r&=p-1}if(r=r<<o-n&i,!a&&n>=t)throw new Error("Excess padding");if(!a&&r>0)throw new Error(`Non-zero padding: ${r}`);return a&&n>0&&d.push(r>>>0),d}function so(s){ke(s);const t=2**8;return{encode:o=>{if(!qe(o))throw new Error("radix.encode input should be Uint8Array");return Rs(Array.from(o),t,s)},decode:o=>(Gt("radix.decode",o),Uint8Array.from(Rs(o,s,t)))}}function to(s,t=!1){if(ke(s),s<=0||s>32)throw new Error("radix2: bits should be in (0..32]");if(Qe(8,s)>32||Qe(s,8)>32)throw new Error("radix2: carry overflow");return{encode:o=>{if(!qe(o))throw new Error("radix2.encode input should be Uint8Array");return Ds(Array.from(o),8,s,!t)},decode:o=>(Gt("radix2.decode",o),Uint8Array.from(Ds(o,s,8,t)))}}function ro(s,t){return ke(s),$r(t),{encode(o){if(!qe(o))throw new Error("checksum.encode: input should be Uint8Array");const a=t(o).slice(0,s),r=new Uint8Array(o.length+s);return r.set(o),r.set(a,o.length),r},decode(o){if(!qe(o))throw new Error("checksum.decode: input should be Uint8Array");const a=o.slice(0,-s),r=o.slice(-s),n=t(a).slice(0,s);for(let c=0;c<s;c++)if(n[c]!==r[c])throw new Error("Invalid checksum");return a}}}const De={alphabet:Xr,chain:Jr,checksum:ro,convertRadix:Rs,convertRadix2:Ds,radix:so,radix2:to,join:Zr,padding:eo};const oo=s=>s[0]==="あいこくしん";function no(s){if(typeof s!="string")throw new TypeError("invalid mnemonic type: "+typeof s);return s.normalize("NFKD")}function ao(s){const t=no(s),o=t.split(" ");if(![12,15,18,21,24].includes(o.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:o}}function Jt(s){ie.abytes(s,16,20,24,28,32)}const io=s=>{const t=8-s.length/4;return new Uint8Array([ie.sha256(s)[0]>>t<<t])};function Xt(s){if(!Array.isArray(s)||s.length!==2048||typeof s[0]!="string")throw new Error("Wordlist: expected array of 2048 strings");return s.forEach(t=>{if(typeof t!="string")throw new Error("wordlist: non-string element: "+t)}),De.chain(De.checksum(1,io),De.radix2(11,!0),De.alphabet(s))}function qs(s,t){const{words:o}=ao(s),a=Xt(t).decode(o);return Jt(a),a}function Zt(s,t){return Jt(s),Xt(t).encode(s).join(oo(t)?" ":" ")}function zs(s,t){try{qs(s,t)}catch{return!1}return!0}const he=`abandon
|
|
2
2
|
ability
|
|
3
3
|
able
|
|
4
4
|
about
|
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ import { b as $s, v as Wt } from "./validation-B8kMV3BL.js";
|
|
|
12
12
|
import { E as ee } from "./ErrorMessage-CcEK0pYO.js";
|
|
13
13
|
import { G as Js } from "./GoogleLoginButton-B6qnNMZp.js";
|
|
14
14
|
import { u as Qc } from "./GoogleLoginButton-B6qnNMZp.js";
|
|
15
|
-
import { S as Xs } from "./mobileWalletAdapter-
|
|
16
|
-
import { r as Kc, u as Gc } from "./mobileWalletAdapter-
|
|
15
|
+
import { S as Xs } from "./mobileWalletAdapter-CDpfbU1R.js";
|
|
16
|
+
import { r as Kc, u as Gc } from "./mobileWalletAdapter-CDpfbU1R.js";
|
|
17
17
|
import { c as Zs, d as eo, u as to, a as ro, M as so, I as oo, b as no, P as ao } from "./PermissionsSection-CighC1p6.js";
|
|
18
18
|
import { u as io } from "./useSystemSettings-DBlAMjFi.js";
|
|
19
19
|
import { C as co, S as Kr, a as lo, u as uo, A as ho } from "./AutosaveStatus-vkJxtuEw.js";
|