PageSourceSearch

https://juicebox.money/_next/static/chunks/4059.ce86113bbd60bb14.js

js juicebox.money collected 2026-09-24 17:43:54 UTC 29,432 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4059,9257],{29517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>U});var a=n(95155),l=n(6471),s=n(26011),r=n(12410),i=n(67534),o=n(12115),c=n(47650),d=n(76685),u=n(38251),m=n(11628);function h({url:e,asset:t,onClose:n}){return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:t?`Buy ${t} in the new window`:"Finish in the new window"}),(0,a.jsx)(m.s_,{onClick:n,"aria-label":"Close",className:"-mr-2 -mt-1"})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke-700",children:"Your wallet address is already filled in. Purchases don't always go through on the first try — card declines are common and usually come with no explanation."}),(0,a.jsx)("p",{className:"mt-4 text-sm font-medium text-ink",children:"If it doesn't work"}),(0,a.jsxs)("ul",{className:"mt-1.5 space-y-1.5 text-sm text-smoke-700",children:[(0,a.jsx)("li",{children:"Pick a bank transfer instead of a card if one is offered — it goes through far more often."}),(0,a.jsx)("li",{children:"Try a smaller amount. Small purchases are approved more often."}),(0,a.jsx)("li",{children:"Try a different card, or come back and pick another wallet."})]}),(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-between",children:[(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-smoke-700 underline underline-offset-2 hover:text-ink",children:"Window didn't open?"}),(0,a.jsx)("button",{type:"button",onClick:n,className:"btn-primary h-10 px-5 text-sm",children:"Done"})]})]})}function x({url:e,asset:t,onClose:n}){return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("h2",{className:"font-agrandir text-xl font-medium text-ink",children:t?`Buy ${t}`:"Buy ETH or USDC"}),(0,a.jsx)(m.s_,{onClick:n,"aria-label":"Close",className:"-mr-2 -mt-1"})]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-smoke-700",children:"Your wallet address is already filled in. Come back here when it's done."}),(0,a.jsx)("iframe",{src:e,title:t?`Buy ${t}`:"Buy crypto",className:"mt-3 h-[32rem] w-full rounded-lg border border-smoke-200"}),(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-xs text-smoke-700 underline underline-offset-2 hover:text-ink",children:"Open in a separate window instead"})]})}var p=n(9042),f=n(65564),w=n(22128),b=n(93257);let j={GOOGLE:{fill:"#4285F4",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"},TWITTER:{fill:"currentColor",d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},APPLE:{fill:"currentColor",d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"},DISCORD:{fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},FARCASTER:{fill:"#855DCD",d:"M18.24.24H5.76C2.5789.24 0 2.8188 0 6v12c0 3.1811 2.5789 5.76 5.76 5.76h12.48c3.1812 0 5.76-2.5789 5.76-5.76V6C24 2.8188 21.4212.24 18.24.24m.8155 17.1662v.504c.2868-.0256.5458.1905.5439.479v.5688h-5.1437v-.5688c-.0019-.2885.2576-.5047.5443-.479v-.504c0-.22.1525-.402.358-.458l-.0095-4.3645c-.1589-1.7366-1.6402-3.0979-3.4435-3.0979-1.8038 0-3.2846 1.3613-3.4435 3.0979l-.0096 4.3578c.2276.0424.5318.2083.5395.4648v.504c.2863-.0256.5457.1905.5438.479v.5688H4.3915v-.5688c-.0019-.2885.2575-.5047.5438-.479v-.504c0-.2529.2011-.4548.4536-.4724v-7.895h-.4905L4.2898 7.008l2.6405-.0005V5.0419h9.9495v1.9656h2.8219l-.6091 2.0314h-.4901v7.8949c.2519.0177.453.2195.453.4724"},TELEGRAM:{fill:"#26A5E4",d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.9
162 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"},FACEBOOK:{fill:"#0866FF",d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"}};function y({method:e,className:t="h-5 w-5"}){let n=j[e];return n?(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:t,fill:n.fill,"aria-hidden":"true",children:(0,a.jsx)("path",{d:n.d})}):null}function v({id:e,className:t="h-5 w-5"}){return"safe"===e?(0,a.jsxs)("svg",{viewBox:"0 0 35 35",className:t,"aria-hidden":"true",children:[(0,a.jsx)("rect",{width:"35",height:"35",rx:"17.5",fill:"#12FF80"}),(0,a.jsx)("path",{d:"M28.1421 17.4982H25.5277C24.7469 17.4982 24.1142 18.131 24.1142 18.912V22.7074C24.1142 23.4884 23.4815 24.1212 22.7007 24.1212H12.3C11.5192 24.1212 10.8865 24.7541 10.8865 25.535V28.15C10.8865 28.931 11.5192 29.5638 12.3 29.5638H23.3027C24.0836 29.5638 24.7072 28.931 24.7072 28.15V26.052C24.7072 25.271 25.3399 24.717 26.1207 24.717H28.1415C28.9224 24.717 29.555 24.0842 29.555 23.3032V18.8956C29.555 18.1146 28.9224 17.4982 28.1415 17.4982H28.1421Z",fill:"#121312"}),(0,a.jsx)("path",{d:"M10.8859 12.3032C10.8859 11.5222 11.5186 10.8894 12.2994 10.8894H22.6938C23.4746 10.8894 24.1073 10.2565 24.1073 9.47556V6.86063C24.1073 6.07964 23.4746 5.44681 22.6938 5.44681H11.6969C10.9161 5.44681 10.2834 6.07964 10.2834 6.86063V8.87554C10.2834 9.65652 9.6507 10.2894 8.86988 10.2894H6.85808C6.07727 10.2894 5.44458 10.9222 5.44458 11.7032V16.1155C5.44458 16.8965 6.07991 17.4976 6.86073 17.4976H9.47507C10.2559 17.4976 10.8886 16.8648 10.8886 16.0838L10.8859 12.3037V12.3032Z",fill:"#121312"}),(0,a.jsx)("path",{d:"M16.2696 14.7493H18.7808C19.5992 14.7493 20.2631 15.4139 20.2631 16.2319V18.7437C20.2631 19.5622 19.5986 20.2263 18.7808 20.2263H16.2696C15.4513 20.2263 14.7874 19.5617 14.7874 18.7437V16.2319C14.7874 15.4134 15.4518 14.7493 16.2696 14.7493Z",fill:"#121312"})]}):(0,a.jsxs)("svg",{viewBox:"0 0 24 24",className:t,fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"2.75",y:"5.75",width:"18.5",height:"12.5",rx:"2.25"}),(0,a.jsx)("path",{d:"M2.75 9.25h18.5",strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:"17.25",cy:"14",r:"1.15",fill:"currentColor",stroke:"none"})]})}let g=[".ipfs.inbrowser.link",".ipfs.dweb.link",".ipfs.w3s.link"];function k(e,t,n,a){return`https://${e}.eth.sucks${t||"/"}${n}${a}`}function C(e){let t;try{t=new URL(e)}catch{return e}let n=t.hostname.toLowerCase();for(let e of g)if(n.endsWith(e)&&n.length>e.length)return k(n.slice(0,-e.length),t.pathname,t.search,t.hash);if("ipfs.inbrowser.link"===n){let e=/^\/ipfs\/([^/]+)(\/.*)?$/.exec(t.pathname);if(e)return k(e[1],e[2]||"/",t.search,t.hash)}return e}var N=n(49035),P=n(79468);function E(e){return e.passkeyUrl?{method:"passkey",url:e.passkeyUrl}:e.passwordUrl?{method:"password",url:e.passwordUrl}:e.pinUrl?{method:"PIN",url:e.pinUrl}:null}let A=[{method:"GOOGLE",label:"Google"},{method:"TWITTER",label:"X"},{method:"APPLE",label:"Apple"},{method:"DISCORD",label:"Discord"},{method:"FARCASTER",label:"Farcaster"},{method:"TELEGRAM",label:"Telegram"},{method:"FACEBOOK",label:"Facebook"}],R=new Set(["authenticating_email_phone","authenticating_oauth","processing_authentication","verifying_new_account"]);function S(e){return e?e instanceof Error?e.message:String(e):null}function O({onClose:e,entry:t,onEntryChange:l}){let s,r,i,c=(0,u.getParaClient)(),{connectors:d,connectWith:h}=(0,P.v)(),x=function(){let[e,t]=(0,o.useState)("not-mobile");return(0,o.useEffect)(()=>{var e;let n;if(e=navigator,!/Android|iPhone|iPad|iPod/i.test(e.userAgent||"")&&("MacIntel"!==e.platform||!((e.maxTouchPoints??0)>1)))return;let a=window;if(a.ethereum)return void t("injected");t("checking");let l=!1,s=()=>{void 0!==n&&(window.clearTimeout(n),n=void 0),window.removeEventListener("ethereum#initialized",r),window.removeEventListener("eip6963:announceProvider",r)},r=()=>{l||(l=!0,s(),t("injected"))};return window.addEventListener("ethereum#initialized",r),window.addEventListener("eip6963:announceProvider",r),n=window.setTimeout(()=>{l=!0,s(),t(a.ethereum?"injected":"handoff")},3e3),()=>{l=!0,s()}},[]),e}(),{authenticateWithEmailOrPhoneAsync:j,error:g}=(0,p.b)(),{authenticateWithOAuthAsync:k,error:F}=(0,f.S)(),{verifyNewAccountAsync:T,isPending:L,error:M}=(0,w.I)(),{resendVerificationCodeAsync:_}=(0,b.p)(),[D,I]=(0,o.useState)(""),[U,H]=(0,o.useState)("unauthenticated"),[V,B]=(0,o.useState)(null),[W,$]=(0,o.useState)(!1),[G,z]=(0,o.useState)(!1),[Y,Q]=(0,o.useState)(null),[Z,K]=(0,o.useState)(null),[X,q]=(0,o.useState)(null),[J,ee]=(0,o.useState)(null),[et,en]=(0,o.useState)(null),ea=(0,o.useRef)(null),el=(0,o.useCallback)(()=>{(!ea.current||ea.current.closed)&&(ea.current=window.open("","ParaAuth","popup,width=420,height=560"))},[]),es=(0,o.useCallback)(e=>{if(ea.current&&!ea.current.closed){ea.current.location.replace(e),ea.current.focus();return}ea.current=window.open(e,"ParaAuth","popup,width=420,height=560")},[]),er=(0,o.useRef)(null),ei=(0,o.useRef)(!1),eo=function(e){let t=e.trim();if(!t)return{kind:"empty"};if(t.includes("@"))return/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t)?{kind:"email",email:t}:{kind:"invalid",hint:"That email address looks incomplete."};let n=t.replace(/[\s().-]/g,"");return/^\+\d{6,15}$/.test(n)?{kind:"phone",phone:n}:/^\d{6,15}$/.test(n)?{kind:"invalid",hint:"Add your country code, like +1."}:{kind:"invalid",hint:"Enter an email address or phone number."}}(t);(0,o.useEffect)(()=>{let e=d.find(e=>"walletConnect"===e.id);if(!e)return;let t=!0,a=({type:e,data:a})=>{"display_uri"===e&&"string"==typeof a&&(q(a),n.e(768).then(n.t.bind(n,768,19)).then(e=>e.toDataURL(a,{margin:1,width:320,errorCorrectionLevel:"M"})).then(e=>{t&&K(e)}).catch(()=>{}))};return e.emitter.on("message",a),()=>{t=!1,e.emitter.off("message",a)}},[d]),(0,o.useEffect)(()=>{let t=c.onStatePhaseChange(t=>{H(t.authPhase);let n=t.authStateInfo;n.verificationUrl&&(ee(n.verificationUrl),ea.current?.close(),ea.current=null);let a=E(n);a&&a.url!==er.current&&(er.current=a.url,en(e=>e?.url===a.url&&e.method===a.method?e:a),es(a.url)),"authenticated"!==t.corePhase||ei.current||(ei.current=!0,ee(null),en(null),ea.current?.close(),e())});return()=>{t(),er.current=null}},[c,e,es]);let ec=R.has(U)||L;(0,o.useEffect)(()=>{let t=t=>{"Escape"!==t.key||ec||(t.preventDefault(),e())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[ec,e]);let ed="awaiting_account_verification"===U,eu=(0,o.useCallback)(async()=>
1{if("email"===eo.kind||"phone"===eo.kind){Q(null),B("local");try{await j({auth:"email"===eo.kind?{email:eo.email}:{phone:eo.phone},portalTheme:u.PARA_PORTAL_THEME,sessionPollingCallbacks:{onPoll:()=>{ea.current?.closed&&(ea.current=null)}}})}catch(e){Q(S(e))}finally{B(null)}}},[j,eo]),em=(0,o.useCallback)(async e=>{Q(null),B(e);try{await k({method:e,redirectCallbacks:{onOAuthPopup:e=>{ea.current=e}},oAuthPollingCallbacks:{onPoll:()=>{ea.current?.closed&&(ea.current=null)}}})}catch(e){Q(S(e))}finally{B(null)}},[k]),eh=(0,o.useCallback)(async()=>{Q(null),el();try{let e=await T({verificationCode:D.trim(),portalTheme:u.PARA_PORTAL_THEME}),t=E(e);if(!t)return;er.current=t.url,en(t),es(t.url),await c.waitForWalletCreation({onPoll:()=>{ea.current?.closed&&(ea.current=null)}})}catch(e){Q(S(e))}},[T,D,c,el,es]),ex=Y??S(M)??S(g)??S(F);return J?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:"Enter the code"}),(0,a.jsxs)("p",{className:"mt-1 text-sm text-smoke-700",children:["Sent to ",(0,a.jsx)("span",{className:"font-medium text-ink",children:t.trim()}),"."]}),(0,a.jsxs)("div",{className:"relative mt-4 w-full overflow-hidden",style:{height:"72px"},children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)("span",{className:"animate-pulse text-xs text-smoke-700",children:"Loading secure entry…"})}),(0,a.jsx)("iframe",{src:J,title:"Verification code",className:"absolute left-0 h-72 w-full border-0",style:{to
1p:"-104px"}})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{$(!0),_({type:"SIGNUP"}).catch(()=>$(!1))},className:"mt-3 text-xs text-smoke-700 underline underline-offset-2 hover:text-ink",children:W?"Code resent":"Resend code"})]}):et&&!ed?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:["Continue with your ",et.method]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-smoke-700",children:"Finish signing in securely with Para."})]}),(0,a.jsx)(m.s_,{onClick:e,disabled:ec,"aria-label":"Close",className:"-mr-2 -mt-1"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>es(et.url),className:"btn-primary mt-5 h-10 w-full px-5 text-sm",children:["Open ",et.method]}),(0,a.jsx)("p",{className:"mt-3 text-xs leading-relaxed text-smoke-700",children:"Para opens a secure window because passkeys cannot be used inside this page."})]}):ed?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:"Enter your code"}),(0,a.jsxs)("p",{className:"mt-1 text-sm text-smoke-700",children:["Sent to ",(0,a.jsx)("span",{className:"font-medium text-ink",children:t.trim()}),"."]}),(0,a.jsx)("input",{value:D,onChange:e=>I(e.target.value),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"000000","aria-label":"Verification code",className:"input-well mt-5 w-full px-4 py-3 text-center font-agrandir text-2xl tracking-[0.4em]"}),ex?(0,a.jsx)("p",{className:"mt-2 text-xs text-error-500",children:ex}):null,(0,a.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{$(!0),_({type:"SIGNUP"}).catch(()=>$(!1))},className:"text-xs text-smoke-700 underline underline-offset-2 hover:text-ink",children:W?"Code resent":"Resend code"}),(0,a.jsx)("button",{type:"button",onClick:eh,disabled:L||0===D.trim().length,className:"btn-primary h-10 px-5 text-sm disabled:opacity-60",children:L?"Confirming…":"Confirm"})]}),et?(0,a.jsxs)("p",{className:"mt-3 text-xs leading-relaxed text-smoke-700",children:["Finish setting up your account in the window we opened."," ",(0,a.jsx)("button",{type:"button",onClick:()=>{ea.current=window.open(et.url,"ParaAuth","popup,width=420,height=560")},className:"underline underline-offset-2 hover:text-ink",children:"Don't see it?"})]}):null]}):(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("div",{children:(0,a.jsx)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:"Sign in"})}),(0,a.jsx)(m.s_,{onClick:e,disabled:ec,"aria-label":"Close",className:"-mr-2 -mt-1"})]}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),eu()},className:"mt-5",children:[(0,a.jsx)("input",{type:"text",value:t,onChange:e=>l(e.target.value),placeholder:"[email protected] | +1 222 333 4444","aria-label":"Email address or phone number",autoComplete:"email",autoFocus:!0,className:"input-well w-full px-4 py-3"}),"invalid"===eo.kind&&t.trim().length>3?(0,a.jsx)("p",{className:"mt-1.5 text-xs text-smoke-700",children:eo.hint}):null,(0,a.jsx)("div",{className:"mt-3 flex justify-end",children:(0,a.jsx)("button",{type:"submit",disabled:ec||"email"!==eo.kind&&"phone"!==eo.kind,className:"btn-primary h-10 px-5 text-sm disabled:opacity-60",children:"local"===V?"Sending…":"Continue"})})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-2 mt-5 text-xs text-smoke-500",children:"Or, use socials"}),(0,a.jsx)("div",{className:"scroll-row flex gap-1.5 overflow-x-auto",children:A.map(({method:e,label:t})=>(0,a.jsx)("button",{type:"button",onClick:()=>void em(e),disabled:ec,title:t,"aria-label":t,"aria-busy":V===e,className:"btn-secondary flex h-10 w-10 shrink-0 items-center justify-center !px-0 disabled:opacity-60",children:(0,a.jsx)(y,{method:e,className:`h-5 w-5 shrink-0 ${V===e?"animate-pulse":""}`})},e))}),X?(0,a.jsxs)("div",{className:"mt-4 rounded-lg border border-smoke-200 bg-white p-3 text-center",children:[(0,a.jsx)("p",{className:"text-xs text-smoke-700",children:"Scan with your wallet app, or open it on this device."}),Z?(0,a.jsx)("img",{src:Z,alt:"WalletConnect pairing QR code",className:"mx-auto mt-2 h-40 w-40"}):null,(0,a.jsx)("a",{href:X,className:"btn-primary mt-2 flex h-10 items-center justify-center text-sm no-underline",children:"Open in wallet app"})]}):null,(0,a.jsx)("p",{className:"mb-2 mt-4 text-xs text-smoke-500",children:"... or, a wallet."}),(0,a.jsx)("div",{className:"scroll-row flex min-h-10 gap-1.5 overflow-x-auto",children:d.map(t=>(0,a.jsx)("button",{type:"button",title:t.name,"aria-label":t.name,onClick:()=>
1{h(t.id).then(e).catch(e=>Q(S(e)))},className:"btn-secondary flex h-10 w-10 shrink-0 items-center justify-center !px-0",children:t.icon?(0,a.jsx)("img",{src:t.icon,alt:"",className:"h-5 w-5 shrink-0"}):(0,a.jsx)(v,{id:t.id,className:"h-5 w-5 shrink-0"})},t.id))}),"handoff"===x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mb-2 mt-4 text-xs text-smoke-500",children:"Open in a wallet app"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(r=encodeURIComponent((s=C(window.location.href)).replace(/^https?:\/\//i,"")),i=encodeURIComponent(s),[{name:"MetaMask",url:`https://metamask.app.link/dapp/${r}`},{name:"Coinbase Wallet",url:`https://go.cb-w.com/dapp?cb_url=${i}`},{name:"Trust Wallet",url:`https://link.trustwallet.com/open_url?coin_id=60&url=${i}`}]).map(e=>(0,a.jsx)("a",{href:e.url,className:"btn-secondary flex h-10 items-center px-3 text-xs no-underline",children:e.name},e.name)),"function"==typeof navigator.share?(0,a.jsx)("button",{type:"button",onClick:()=>{navigator.share({title:document.title,url:C(window.location.href)}).catch(e=>{e instanceof Error&&"AbortError"===e.name||console.error("Wallet handoff share failed:",e)})},className:"btn-secondary flex h-10 items-center px-3 text-xs",children:"Other…"}):null]})]}):null]}),ex?(0,a.jsx)("p",{className:"mt-3 text-xs text-error-500",children:ex}):null,(0,a.jsxs)("div",{className:"mt-6 border-t border-smoke-200 pt-3",children:[(0,a.jsx)("button",{type:"button",onClick:()=>z(e=>!e),"aria-expanded":G,className:"text-xs text-smoke-500 underline underline-offset-2 hover:text-smoke-700",children:"View as…"}),G?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-1.5 text-xs text-smoke-500",children:"You can browse the site as if you were a different account."}),(0,a.jsx)(N.K,{onDone:e})]}):null]})]})}var F=n(62451),T=n(50181);let L=[{method:"GOOGLE",label:"Google"},{method:"TWITTER",label:"X"},{method:"APPLE",label:"Apple"},{method:"DISCORD",label:"Discord"},{method:"FARCASTER",label:"Farcaster"},{method:"TELEGRAM",label:"Telegram"},{method:"FACEBOOK",label:"Facebook"}];function M({entry:e,onEntryChange:t}){let n=(0,T.F)((0,F.U)());return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,a.jsx)("div",{children:(0,a.jsx)("h2",{className:"font-agrandir text-2xl font-medium text-ink",children:"Sign in"})})}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),placeholder:"[email protected] | +1 222 333 4444","aria-label":"Email address or phone number",autoComplete:"email",autoFocus:!0,className:"input-well w-full px-4 py-3"}),(0,a.jsx)("div",{className:"mt-3 flex justify-end",children:(0,a.jsx)("button",{type:"button",disabled:!0,"aria-busy":"true",className:"btn-primary h-10 px-5 text-sm disabled:opacity-60",children:"Continue"})})]}),(0,a.jsx)("p",{className:"mb-2 mt-5 text-xs text-smoke-500",children:"Or, use socials"}),(0,a.jsx)("div",{className:"scroll-row flex gap-1.5 overflow-x-auto",children:L.map(({method:e,label:t})=>(0,a.jsx)("button",{type:"button",disabled:!0,title:t,"aria-label":t,className:"btn-secondary flex h-10 w-10 shrink-0 items-center justify-center !px-0 disabled:opacity-60",children:(0,a.jsx)(y,{method:e,className:"h-5 w-5 shrink-0"})},e))}),(0,a.jsx)("p",{className:"mb-2 mt-4 text-xs text-smoke-500",children:"... or, a wallet."}),(0,a.jsx)("div",{className:"scroll-row flex min-h-10 gap-1.5 overflow-x-auto",children:n.map(e=>(0,a.jsx)("button",{type:"button",disabled:!0,title:e.name,"aria-label":e.name,className:"btn-secondary flex h-10 w-10 shrink-0 items-center justify-center !px-0 disabled:opacity-60",children:e.icon?(0,a.jsx)("img",{src:e.icon,alt:"",className:"h-5 w-5 shrink-0"}):(0,a.jsx)(v,{id:e.id,className:"h-5 w-5 shrink-0"})},e.id))})]})}let _=o.useLayoutEffect;function D(e){let t=(0,o.useRef)(!1);return{onMouseDown(e){t.current=e.target===e.currentTarget},onClick(n){let a=t.current&&n.target===n.currentTarget;t.current=!1,a&&e()}}}function I({requestId:e,request:t,onOpenChange:n,onSettled:l,onLive:s,entry:c,onEntryChange:m}){let{address:p}=(0,d.w)(),[f,w]=(0,o.useState)(!1),[b,j]=(0,o.useState)(null),[y,v]=(0,o.useState)(null),[g,k]=(0,o.useState)(!1),C=(0,o.useRef)(0),N=(0,o.useRef)(!1),P=(0,o.useRef)(null),E=(0,o.useCallback)(async e=>{let t=(0,u.getParaClient)();if(!await t.isFullyLoggedIn().catch(()=>!1)){P.current=e,w(!0);return}let n=p??Object.values(t.getWallets()).find(e=>"EVM"===e.type&&e.address)?.address;if(!n)return;let a=r.mI[e.asset],l=i.lg[e.network],s="embed"===e.display,{portalUrl:o,onRampPurchase:c}=await t.initiateOnRampTransaction({externalWalletAddress:n,shouldOpenPopup:!s,params:{type:r.Hi.BUY,provider:r.V4[u.PARA_ONRAMP_PROVIDER],asset:a,network:l,defaultAsset:a,defaultNetwork:l,externalWalletAddress:n,...e.assetQuantity?{assetQuantity:e.assetQuantity}:{},...e.fiatQuantity?{fiat:"USD",fiatQuantity:e.fiatQuantity}:{}}}),d=s&&(0,u.recordOnRampPurchase)(t,c);s&&!d&&window.open(o,"ParaOnRamp","popup,width=420,height=640"),k(d),v("USDC"===e.asset?"USDC":"ETH"),j(o)},[p]);(0,o.useEffect)(()=>
1{if(!(e<=C.current)){if(C.current=e,"auth"===t.kind)return void w(!0);E(t).catch(()=>{})}},[e,t,E]);let A=(0,o.useCallback)(()=>{w(!1);let e=P.current;P.current=null,e?.kind==="addFunds"&&(0,u.getParaClient)().isFullyLoggedIn().then(t=>{if(t)return E(e)}).catch(()=>{})},[E]),R=D(()=>A()),S=D(()=>j(null)),F=f||!!b;return((0,o.useEffect)(()=>s(),[s]),(0,o.useEffect)(()=>{n(F),N.current&&!F&&l(),N.current=F},[F,n,l]),b)?(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center overflow-y-auto bg-slate-900/55 p-6",...S,children:(0,a.jsx)("div",{className:`card w-full p-6 ${g?"max-w-md":"max-w-sm"}`,children:g?(0,a.jsx)(x,{url:b,asset:y??void 0,onClose:()=>j(null)}):(0,a.jsx)(h,{url:b,asset:y??void 0,onClose:()=>j(null)})})}):f?(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center overflow-y-auto bg-slate-900/55 p-6",...R,children:(0,a.jsx)("div",{className:"card w-full max-w-sm p-6",children:(0,a.jsx)(O,{onClose:A,entry:c,onEntryChange:m})})}):null}function U({requestId:e,request:t,onOpenChange:n,onSettled:r,entry:i,onEntryChange:d}){let m=(0,u.getParaClient)(),[h]=(0,o.useState)(()=>{if("u"<typeof document)return null;let e=document.createElement("dialog");return e.className="ui-modal-host",e.tabIndex=-1,e}),[x,p]=(0,o.useState)(!1),[f,w]=(0,o.useState)(!1),b=!f&&"auth"===t.kind&&e>0,j=x||b,y=(0,o.useRef)(n);y.current=n;let v=(0,o.useCallback)(e=>{p(e),y.current(e)},[]),g=(0,o.useCallback)(()=>w(!0),[]);return(_(()=>{if(!h)return;let e=e=>e.preventDefault();return h.addEventListener("cancel",e),document.body.append(h),()=>{h.removeEventListener("cancel",e),h.remove()}},[h]),(0,o.useEffect)(()=>{h&&(j&&!h.open?(h.showModal(),h.focus({preventScroll:!0})):!j&&h.open&&h.close())},[h,j]),h)?(0,c.createPortal)((0,a.jsxs)(l.J,{container:h,children:[b?(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center overflow-y-auto bg-slate-900/55 p-6",children:(0,a.jsx)("div",{className:"card w-full max-w-sm p-6",children:(0,a.jsx)(M,{entry:i,onEntryChange:d})})}):null,(0,a.jsx)(s.s,{paraClientConfig:m,config:{appName:u.PARA_APP.appName},paraModalConfig:{authLayout:["AUTH:FULL"],oAuthMethods:["GOOGLE","TWITTER","APPLE","DISCORD","FARCASTER"],theme:{mode:"light",backgroundColor:"#FFF7E8",foregroundColor:"#1A1A1A",accentColor:"#5777EB",font:"Beatrice",borderRadius:"lg"}},externalWalletConfig:{wallets:[]},children:(0,a.jsx)(I,{requestId:e,request:t,onOpenChange:v,onSettled:r,onLive:g,entry:i,onEntryChange:d})})]}),h):null}},35208:()=>{},38251:(e,t,n)=>{"use strict";let a,l;n.r(t),n.d(t,{PARA_APP:()=>i,PARA_ONRAMP_PROVIDER:()=>c,PARA_PORTAL_THEME:()=>h,createParaWagmiConnector:()=>u,getParaClient:()=>d,recordOnRampPurchase:()=>x});var s=n(85477),r=n(66614);let i={appName:"Juicebox",appDescription:"Fund your thing. Programmable money for projects.",appUrl:"https://juicebox.money"},o=["STRIPE","MOONPAY","RAMP","CDP","MERCURYO"],c=(l=o.find(e=>"CDP"===e))||(console.warn('Ignoring unknown NEXT_PUBLIC_PARA_ONRAMP_PROVIDER "CDP" — using MOONPAY.'),"MOONPAY");function d(){return a??=new r.Ay("PROD","prod_9e0b6a3b4e5aba71ffb7ca2e09796ea1")}function u(e){return(0,s.c)({para:d(),appName:i.appName,options:{},disableModal:!0,transports:e})}let m='ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace',h={backgroundColor:"#FFFFFF",foregroundColor:"#1A1A1A",accentColor:"#FFBB45",mode:"light",borderRadius:"lg",cssOverrides:{fontFamily:m,"--para-font-sans":m}};function x(e,t){try{return e.onRampPopup={window,onRampPurchase:t},e.onRampPopup?.onRampPurchase===t}catch{return!1}}},42363:()=>{},47790:()=>{},49035:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var a=n(95155),l=n(12115),s=n(80339),r=n(83645),i=n(62490);function o({onDone:e}){let{setViewAs:t}=(0,i.d6)(),[n,c]=(0,l.useState)(""),[d,u]=(0,l.useState)(!1),[m,h]=(0,l.useState)(null),x=async a=>{a.preventDefault();let l=n.trim();if(h(null),(0,s.P)(l)){t(l),e();return}if((0,r.oD)(l)){u(!0);try{let n=await (0,r.Zv)(l);if(n){t(n),e();return}h("Could not resolve that ENS name.")}finally{u(!1)}return}h("Enter an address or ENS name.")};return(0,a.jsxs)("form",{onSubmit:x,className:"mt-2 flex items-start gap-2",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("input",{value:n,onChange:e=>c(e.target.value),placeholder:"Address or ENS","aria-label":"Address or ENS name to view as",autoFocus:!0,className:"input-well h-9 w-full px-3 text-sm"}),m?(0,a.jsx)("p",{className:"mt-1.5 text-xs text-error-500",children:m}):null]}),(0,a.jsx)("button",{type:"submit",disabled:d,className:"btn-secondary h-9 shrink-0 px-3 text-xs disabled:opacity-60",children:d?"Resolving…":"View"})]})}},50310:()=>{},73776:()=>{}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.