PageSourceSearch

https://mrhaven.io/_next/static/chunks/7446.15906b10b655827a.js

js mrhaven.io collected 2026-10-05 09:36:23 UTC 26,436 bytes, 24 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4b821591-53e3-4a90-bca6-c227ac1b0966",e._sentryDebugIdIdentifier="sentry-dbid-4b821591-53e3-4a90-bca6-c227ac1b0966")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7446],{30288:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(71532).Z)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},25511:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(71532).Z)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},3782:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(71532).Z)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},79807:function(e,t,a){var i=a(14192);let l=i.forwardRef(function(e,t){let{title:a,titleId:l,...n}=e;return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":l},n),a?i.createElement("title",{id:l},a):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"}))});t.Z=l},91124:function(e,t,a){a.d(t,{C:function(){return x}});var i=a(10387),l=a(30288),n=a(14192),r=a(48274),s=a(51547),o=a(67301),c=a(33625),d=a(8191),u=a(29527),p=a(93239),h=a(26838),g=a(97799),f=a(97291);let x=(0,n.forwardRef)((e,t)=>{let[a,r]=(0,n.useState)(e.defaultValue||""),[g,x]=(0,n.useState)(""),[j,v]=(0,n.use
1State)(!1),{authenticated:b}=(0,d.u)(),{initLoginWithEmail:k}=(0,o.u)(),{navigate:C,setModalData:S,currentScreen:M,data:T}=(0,d.a)(),{enabled:E,token:L}=(0,c.a)(),[A,V]=(0,n.useState)(!1),{accountType:W}=(0,u.F)(),D=(0,s.u)();(0,n.useEffect)(()=>{!a&&D.disablePlusEmails&&T?.inlineError?.error instanceof o.c&&T?.inlineError?.error.privyErrorCode===o.b.DISALLOWED_PLUS_EMAIL&&!g&&x("Please enter a valid email address without a '+'."),g&&x("")},[a]);let P=(0,u.a1)(a),I=j||!P,N=()=>{S({login:T?.login,inlineError:void 0}),!E||L||b?(v(!0),k({email:a,captchaToken:L,disableSignup:T?.login?.disableSignup,withPrivyUi:!0}).then(()=>{C("AwaitingPasswordlessCodeScreen")}).catch(e=>{S({errorModalData:{error:e,previousScreen:M||"LandingScreen"}}),C("ErrorScreen")}).finally(()=>{v(!1)})):(S({captchaModalData:{callback:e=>k({email:a,captchaToken:e,withPrivyUi:!0}),userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),C("CaptchaScreen"))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m,{children:[g&&(0,i.jsx)(f.E,{style:{display:"block",marginTop:"0.25rem",textAlign:"left"},children:g}),(0,i.jsxs)(y,{stacked:e.stacked,$error:!!g,children:[(0,i.jsx)(w,{children:(0,i.jsx)(l.Z,{})}),(0,i.jsx)("input",{ref:t,id:"email-input",className:"login-method-button",type:"email",placeholder:"[email protected]",onFocus:()=>V(!0),onChange:e=>r(e.target.value),onKeyUp:e=>{"Enter"===e.key&&N()},value:a,autoComplete:"email"}),"email"!==W||A?e.stacked?(0,i.jsx)("span",{}):(0,i.jsx)(p.E,{isSubmitting:j,onClick:N,disabled:I,children:"Submit"}):(0,i.jsx)(h.C,{color:"gray",children:"Recent"})]})]}),e.stacked?(0,i.jsx)(p.P,{loadingText:null,loading:j,disabled:I,onClick:N,style:{width:"100%"},children:"Submit"}):null]})}),m=g.I,y=g.a,w=(0,r.zo)(u.V)`
2  display: inline-flex;
3`},27446:function(e,t,a){a.d(t,{C:function(){return ee},L:function(){return G}});var i=a(10387),l=a(14192);let n=l.forwardRef(function(e,t){let{title:a,titleId:i,...n}=e;return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},n),a?l.createElement("title",{id:i},a):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});var r=a(48274),s=a(93239),o=a(51547),c=a(29527),d=a(67301),u=a(8191),p=a(33625),h=a(23910),g=a(30288),f=a(25511);let x=(0,a(71532).Z)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var m=a(91124),y=a(26838),w=a(6581);let j=(e,t=!0)=>e.reduce((e,a)=>({...e,[a]:t}),{});var v=a(75571),b=a(79807),k=a(14974),C=a(54475),S=a(99962),M=a(244),T=a(83278),E=a(76110),L=a(16244);let A=()=>{let e=(0,o.u)(),t=e?.appearance?.logo,a=`${e?.name} logo`,n={maxHeight:"90px",maxWidth:"180px"};return t?"string"==typeof t?(0,i.jsx)("img",{src:t,alt:a,style:n}):"svg"===t.type||"img"===t.type?l.cloneElement(t,{alt:a,style:n}):(console.warn("`config.appearance.logo` must be a string, or an SVG / IMG element. Nothing will be rendered."),null):null},V=r.zo.div`
4  display: flex;
5  flex-direction: column;
6  align-items: center;
7  padding: 24px 0;
8  flex-grow: 1;
9  justify-content: center;
10`,W=({name:e,logoUrl:t,size:a="38px"})=>"string"==typeof t?(0,i.jsx)("img",{src:t,alt:`${e??"Provider app"} logo`,style:{width:a,height:a,maxHeight:"90px",maxWidth:"180px",borderRadius:"8px"}}):(0,i.jsx)("span",{}),D=({appId:e})=>{let[t,a]=(0,l.useState)(void 0),{startCrossAppAuthFlow:n,authenticated:r}=(0,u.u)(),{data:s}=(0,u.a)(),{client:o}=(0,d.u)();return(0,l.useEffect)(()=>{(async()=>{o&&a(await o.getCrossAppProviderDetails(e))})()},[o]),(0,i.jsx)(c.U,{onClick:()=>n({appId:e,action:r?"link":"login",disableSignup:s?.login?.disableSignup}),disabled:!t,children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{name:t.name,logoUrl:t.icon_url||void 0,size:"24px"})," ",t.name]}):(0,i.jsx)(c.G,{})})},P=({isEditable:e,setIsEditable:t,defaultValue:a})=>{let n=(0,l.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.H,{$if:!e,children:(0,i.jsx)(m.C,{ref:n,defaultValue:a})}),(0,i.jsx)(c.H,{$if:e,children:(0,i.jsxs)(c.U,{onClick:()=>{t(),setTimeout(()=>{n.current?.focus()},0)},children:[(0,i.jsx)(c.V,{children:(0,i.jsx)(g.Z,{})}),"Continue with Email"]})})]})},I=()=>{let[e,t]=(0,l.useState)(!1),{currentScreen:a,navigate:n,setModalData:r,data:s}=(0,u.a)(),{enabled:o,token:h}=(0,p.a)(),{initLoginWithFarcaster:g}=(0,d.u)(),{accountType:f}=(0,c.F)();return(0,i.jsxs)(c.U,{onClick:async()=>{t(!0);try{o&&!h?(r({captchaModalData:{callback:e=>g(e,s?.login?.disableSignup),userIntentRequired:!0,onSuccessNavigateTo:"FarcasterConnectStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),n("CaptchaScreen")):(await g(h,s?.login?.disableSignup),n("FarcasterConnectStatusScreen"))}
10catch(e){r({errorModalData:{error:e,previousScreen:a||"LandingScreen"}}),n("ErrorScreen")}finally{t(!1)}},disabled:!1,children:[(0,i.jsx)(w.F,{width:32,height:32})," Farcaster",e&&(0,i.jsx)(c.G,{}),"farcaster"===f&&(0,i.jsx)(N,{color:"gray",children:"Recent"})]})},N=(0,r.zo)(y.C)`
11  margin-left: auto;
12`,H=({...e})=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_2856_1743)",children:[(0,i.jsx)("path",{d:"M22.1673 8.24075V16.3642C22.1673 17.3256 21.3421 18.105 20.3241 18.105H17.0028M22.1673 8.24075C22.1673 7.27936 21.3421 6.5 20.3241 6.5H11.5302M22.1673 8.24075V8.42852C22.1673 9.03302 21.8352 9.59423 21.2901 9.91105L15.1463 13.4818C14.5539 13.8261 13.8067 13.8261 13.2143 13.4818L10.1621 11.5401",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3.12913 6.64816C0.508085 12.9507 3.49251 20.1847 9.79504 22.8057L11.5068 23.5176C12.4522 23.9108 13.7783 23.2222 14.1714 22.2768L14.6054 21.2333C14.7687 20.8406 14.6438 20.3871 14.3024 20.1334L11.2872 17.8927C10.9878 17.6702 10.5843 17.6488 10.2632 17.8384L9.11575 18.5156C8.78274 18.7121 8.3597 18.6844 8.07552 18.4221C5.94293 16.4542 4.77629 13.6264 4.90096 10.7273C4.91757 10.3409 5.19796 10.023 5.57269 9.92753L6.86381 9.59869C7.22522 9.50664 7.49627 9.20696 7.55169 8.83815L8.10986 5.12321C8.17306 4.70259 7.94188 4.29293 7.54915 4.1296L6.50564 3.69564C5.56026 3.30248 4.23416 3.99103 3.84101 4.9364L3.12913 6.64816Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_2856_1743",children:(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"24",height:"24",rx:"6",fill:"white"})})})]}),F=({chainType:e,withPadding:t})=>{let a="";return a="ethereum-only"===e||"ethereum-and-solana"===e?"Rainbow, Phantom, or Coinbase Wallet":"Phantom or Solflare",(0,i.jsx)(c.W,{$withPadding:t,children:(0,i.jsxs)(c.X,{children:[(0,i.jsx)(v.Z,{style:{color:"var(--privy-color-warn)",height:48,width:48}}),(0,i.jsx)("h3",{children:"No wallets available"}),(0,i.jsxs)("p",{children:["Please download an external wallet provider, like ",a,"."]})]})},"empty-wallet-state")},_=()=>{let{enabled:e,token:t}=(0,p.a)(),{navigate:a,setModalData:n,data:r}=(0,u.a)(),s=(0,o.u)(),{initLoginWithPasskey:h}=(0,d.u)(),g=()=>{s.loginConfig.passkeysForSignupEnabled?a("PasskeySelectSignupOrLogin"):(async()=>{e&&!t?(n({passkeyAuthModalData:{passkeySignupFlow:!1},captchaModalData:{callback:e=>h({captchaToken:e,withPrivyUi:!0}),userIntentRequired:!1,onSuccessNavigateTo:"PasskeyStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),a("CaptchaScreen")):(await h({withPrivyUi:!0,captchaToken:t}),n({passkeyAuthModalData:{passkeySignupFlow:!1}}),a("PasskeyStatusScreen"))})()};return 0===(0,l.useMemo)(()=>{let e=r?.login?.loginMethods;return e?e.filter(e=>"passkey"!==e).length:Object.entries(s.loginMethods).filter(([e,t])=>t).filter(([e])=>"passkey"!==e).length},[s.loginMethods,r?.login])?(0,i.jsxs)(c.U,{onClick:g,children:[(0,i.jsx)(b.Z,{})," Continue with passkey"]}):(0,i.jsx)(k.L,{as:"button",onClick:g,size:"sm",variant:"navigation",style:{width:"100%",justifyContent:"center"},children:"I have a passkey"})},U=({isEditable:e,setIsEditable:t,defaultValue:a})=>{let n=(0,l.useRef)(null),{authenticated:r}=(0,u.u)(),{navigate:s,setModalData:h,currentScreen:g,data:x}=(0,u.a)(),{initLoginWithSms:m}=(0,d.u)(),{enabled:y,token:w}=(0,p.a)(),{whatsAppEnabled:j}=(0,o.u)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.H,{$if:!e,children:(0,i.jsx)(C.C,{ref:n,onSubmit:async function({qualifiedPhoneNumber:e}){if(!y||w||r)try{await m({phoneNumber:e,captchaToken:w,withPrivyUi:!0,disableSignup:x?.login?.disableSignup}),s("AwaitingPasswordlessCodeScreen")}catch(e){h({errorModalData:{error:e,previousScreen:g||"LandingScreen"}}),s("ErrorScreen")}else h({captchaModalData:{callback:t=>m({phoneNumber:e,captchaToken:t,withPrivyUi:!0,disableSignup:x?.login?.disableSignup}),userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),s("CaptchaScreen")}
12,defaultValue:a})}),(0,i.jsx)(c.H,{$if:e,children:(0,i.jsxs)(c.U,{onClick:()=>{t(),setTimeout(()=>{n.current?.focus()},0)},children:[(0,i.jsx)(c.V,{children:(0,i.jsx)(f.Z,{})}),"Continue with ",j?"WhatsApp":"SMS"]})})]})},O={apple:{logo:S.A,displayName:"Apple"},discord:{logo:S.D,displayName:"Discord"},github:{logo:S.b,displayName:"GitHub"},google:{logo:S.G,displayName:"Google"},linkedin:{logo:S.L,displayName:"LinkedIn"},spotify:{logo:S.S,displayName:"Spotify"},instagram:{logo:S.I,displayName:"Instagram"},twitter:{logo:S.a,displayName:"Twitter"},tiktok:{logo:S.T,displayName:"TikTok"},line:{logo:M.L,displayName:"LINE"},twitch:{logo:M.T,displayName:"Twitch"}},R=({provider:e})=>{let{enabled:t,token:a}=(0,p.a)(),{navigate:n,setModalData:r,data:s}=(0,u.a)(),[h,g]=(0,l.useState)(!1),f=(0,o.u)(),{initLoginWithOAuth:x}=(0,d.u)(),{accountType:m}=(0,c.F)(),y=(0,l.useMemo)(()=>m&&"guest"!==m&&"authorization_key"!==m&&"cross_app"!==m?(0,p.t)(m):null,[m]),{displayName:w,logo:j}=(0,l.useMemo)(()=>{if((0,u.i)(e)){let t=f.customOAuthProviders.find(t=>t.provider===e),a=t.provider_icon_url,l=t.provider_display_name;return{displayName:l,logo:({style:e})=>(0,i.jsx)("img",{alt:`${l} logo`,src:a,style:e})}}return O[e]},[e,f.customOAuthProviders]);return(0,i.jsxs)(c.U,{onClick:()=>{g(!0),setTimeout(()=>{g(!1)},2e3),t&&!a?(r({captchaModalData:{callback:t=>x(e,t,s?.login?.disableSignup),userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:"ErrorScreen"}}),n("CaptchaScreen")):x(e,void 0,s?.login?.disableSignup)},disabled:h,children:[(0,i.jsx)(c.V,{$fullSize:!0,children:(0,i.jsx)(j,{style:{width:"32px",height:"32px"}})}),w,y?.loginMethod===e&&(0,i.jsx)(Z,{color:"gray",children:"Recent"})]})},Z=(0,r.zo)(y.C)`
13  margin-left: auto;
14`,z=()=>{let{enabled:e,token:t}=(0,p.a)(),{navigate:a,setModalData:n,data:r}=(0,u.a)(),[s,o]=(0,l.useState)(!1),{initLoginWithTelegram:h}=(0,d.u)(),{accountType:g}=(0,c.F)();async function f(e){try{await h(e,r?.login?.disableSignup),n({telegramAuthModalData:{seamlessAuth:!1}}),a("TelegramAuthScreen")}catch(e){console.error(e),o(!1)}}return(0,i.jsxs)(c.U,{onClick:async function(){if(o(!0),e&&!t)return n({captchaModalData:{callback:f,userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:"ErrorScreen"}}),void a("CaptchaScreen");await f(t)},disabled:s,children:[(0,i.jsx)(T.T,{width:32,height:32}),"Telegram","telegram"===g&&(0,i.jsx)($,{color:"gray",children:"Recent"})]})},$=(0,r.zo)(y.C)`
15  margin-left: auto;
16`,q=({onClick:e,text:t,icon:a})=>(0,i.jsxs)(c.U,{onClick:e,children:[(0,i.jsx)(c.V,{children:a}),(0,i.jsx)(c.Y,{children:t})]}),G=({connectOnly:e})=>{let{closePrivyModal:t}=(0,d.u)(),{data:a,setModalData:n,onUserCloseViaDialogOrKeybindRef:r,navigate:g}=(0,u.a)(),f=(0,o.u)(),x=a?.login,m=f.appearance.walletList,y=x?.walletChainType??f.appearance.walletChainType,{accountType:w,walletClientType:v,chainType:b}=(0,c.F)(),k=(0,l.useMemo)(()=>w&&"guest"!==w&&"authorization_key"!==w&&"cross_app"!==w?(0,p.t)(w):null,[w]),{email:C,sms:S,google:M,twitter:T,discord:V,github:W,spotify:N,instagram:H,tiktok:O,line:Z,twitch:$,linkedin:G,apple:ee,wallet:et,farcaster:ea,telegram:ei}=(0,l.useMemo)(()=>x?.loginMethods?j(x.loginMethods,!0):null,[x])??f.loginMethods,{wallets:el}=(0,h.u)({enabled:(0,c.e)(et?m:[]),walletList:m,walletChainType:y}),en=f.customOAuthProviders,er=f.crossAppProviders,{passkey:es}=f.loginMethods,eo=[C&&"email",S&&"sms",M&&"google",T&&"twitter",V&&"discord",W&&"github",N&&"spotify",H&&"instagram",O&&"tiktok",Z&&"line",$&&"twitch",G&&"linkedin",ee&&"apple",ea&&"farcaster",ei&&"telegram",...en.map(e=>e.provider),...er].filter(e=>!!e),ec=eo.length>0,ed=(0,l.useMemo)(()=>et&&!ec?"web3-first":et&&f?.appearance.loginGroupPriority||"web2-first",[et,ec,f?.appearance.loginGroupPriority]),eu=f?.appearance.hideDirectWeb2Inputs,[ep,eh]=(0,l.useState)("default"),[eg,ef]=(0,l.useState)(Q({mostRecentlyUsedAccountType:w,smsAvailable:S,emailAvailable:C,prefilledType:x?.prefill?.type}));(0,l.useEffect)(()=>{ef(Q({mostRecentlyUsedAccountType:w,smsAvailable:S,emailAvailable:C,prefilledType:x?.prefill?.type}))},[C,S,w]);let ex=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{eh("default")},150)};r.current=ex;let em=[];v&&et?em.push(v):k?.loginMethod&&eo.includes(k.loginMethod)&&em.push(k.loginMethod);let ey=t=>{if("email"===t)return(0,i.jsx)(P,{isEditable:"email"===eg,setIsEditable:()=>{ef("email")},defaultValue:"email"===x?.prefill?.type?x.prefill.value:void 0},t);
16if("sms"===t)return(0,i.jsx)(U,{isEditable:"sms"===eg,setIsEditable:()=>{ef("sms")},defaultValue:"phone"===x?.prefill?.type?x.prefill.value:void 0},t);if("apple"===t)return(0,i.jsx)(R,{provider:"apple"},t);if("discord"===t)return(0,i.jsx)(R,{provider:"discord"},t);if("farcaster"===t)return(0,i.jsx)(I,{},t);if("github"===t)return(0,i.jsx)(R,{provider:"github"},t);if("google"===t)return(0,i.jsx)(R,{provider:"google"},t);if("linkedin"===t)return(0,i.jsx)(R,{provider:"linkedin"},t);if("tiktok"===t)return(0,i.jsx)(R,{provider:"tiktok"},t);if("line"===t)return(0,i.jsx)(R,{provider:"line"},t);if("twitch"===t)return(0,i.jsx)(R,{provider:"twitch"},t);if("spotify"===t)return(0,i.jsx)(R,{provider:"spotify"},t);if("instagram"===t)return(0,i.jsx)(R,{provider:"instagram"},t);if("twitter"===t)return(0,i.jsx)(R,{provider:"twitter"},t);if("telegram"===t)return(0,i.jsx)(z,{},t);if((0,u.i)(t))return(0,i.jsx)(R,{provider:t},t);if(t.startsWith("privy:")){let e=t.split(":")[1];if(!e)throw Error("Invalid cross-app provider format. App ID missing.");return(0,i.jsx)(D,{appId:e},t)}let a=el.findIndex(({id:e})=>e===h.c.normalize(t)),l="solana"===b?"solana-only":"ethereum-only";return(0,i.jsx)(h.d,{recent:!0,index:a,data:{wallets:el,walletChainType:l,handleWalletClick(t){n(e=>({...e,externalConnectWallet:{walletList:m,walletChainType:l,preSelectedWalletId:t.id}})),g(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}})},ew=el.filter(e=>e.id!==h.c.normalize(v||"")),ej=ew.map((t,a)=>(0,i.jsx)(h.d,{index:a,data:{walletChainType:y,wallets:ew,handleWalletClick(t){n(e=>({...e,externalConnectWallet:{walletList:m,walletChainType:y,preSelectedWalletId:t.id}})),g(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}},t.id)),ev=eo.filter(e=>e!==k?.loginMethod).flatMap(ey),eb=em.flatMap(ey);"web3-first"===ed&&"default"===ep?ej.unshift(...eb):"web2-first"===ed&&ev.unshift(...eb);let ek="web2-overflow"===ep?()=>eh("default"):void 0,eC=eo.filter(e=>"email"!==e&&"sms"!==e),eS=Y({priority:ed,email:C,sms:S,social:eC}),eM=X({priority:ed,email:C,sms:S,social:eC}),eT=(0,i.jsx)(E.W,{text:J({priority:ed}),onClick:()=>{n({...a,externalConnectWallet:{walletChainType:x?.walletChainType??f.appearance.walletChainType}}),g(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}),eE=(0,i.jsx)(q,{text:eS,icon:eM,onClick:()=>eh("web2-overflow")}),eL=eu?0:1,eA=et&&ej.length>0,eV=0===ev.length&&et&&0===ej.length,eW=5-(eA?1:0),eD="default"===ep&&f?.appearance.logo,eP="default"===ep&&f.appearance.loginMessage;return(0,i.jsxs)(L.S,{title:f.appearance.landingHeader,icon:eD?(0,i.jsx)(A,{}):void 0,iconVariant:eD?"logo":void 0,onClose:ex,showClose:!0,onBack:ek,showBack:!!ek,helpText:f||es&&"default"===ep?(0,i.jsxs)(i.Fragment,{children:[es&&"default"===ep&&!f.globalDisablePasskeys&&(0,i.jsx)(_,{}),f&&(0,i.jsx)(s.T,{app:f})]}):void 0,watermark:!0,children:[eP&&("string"==typeof f.appearance.loginMessage?(0,i.jsx)(B,{children:f.appearance.loginMessage}):(0,i.jsx)(K,{children:f.appearance.loginMessage})),(0,i.jsx)(c.Z,{$colorScheme:f.appearance.palette.colorScheme,children:"default"===ep&&"web2-first"===ed?(0,i.jsxs)(i.Fragment,{children:[ev.length>eW?ev.slice(0,eW-1):ev,ev.length>eW&&eE,eA&&eT,eV&&(0,i.jsx)(F,{chainType:f.appearance.walletChainType})]}):"default"===ep&&"web3-first"===ed?(0,i.jsxs)(i.Fragment,{children:[et&&(0,i.jsxs)(i.Fragment,{children:[ej.length>eW?ej.slice(0,eW-1):ej,ej.length>eW&&eT]}),ev.length>eL&&eE,ev.length===eL&&ev[0],eV&&(0,i.jsx)(F,{chainType:f.appearance.walletChainType})]}):"web2-overflow"===ep?(0,i.jsx)(i.Fragment,{children:"web3-first"===ed?ev:ev.slice(3)}):null})]})},B=r.zo.div`
17  text-align: center;
18  font-size: 14px;
19  margin-bottom: 24px;
20`,K=r.zo.div`
21  margin-bottom: 24px;
22`,Y=({priority:e,email:t,sms:a,social:i})=>"web2-first"===e?"Other socials":t&&a&&i.length>0||t&&i.length>0?"Log in with email or socials":a&&i.length>0?"Log in with sms or socials":t&&a?"Continue with email or sms":t?"Continue with email":a?"Continue with sms":"Log in with a social account",X=({priority:e,email:t,sms:a,social:l})=>"web2-first"===e||l.length>0?(0,i.jsx)(x,{}):t&&a?(0,i.jsx)(H,{}):t?(0,i.jsx)(g.Z,{}):a?(0,i.jsx)(f.Z,{}):null,J=({priority:e})=>"web2-first"===e?"Continue with a wallet":"Other wallets",Q=({mostRecentlyUsedAccountType:e,smsAvailable:t,emailAvailable:a,prefilledType:i})=>
22a&&("email"===e&&"phone"!==i||"email"===i)||!t||"phone"!==e&&"phone"!==i?"email":"sms",ee=({connectOnly:e})=>{let{closePrivyModal:t,connectors:a}=(0,d.u)(),{data:r,setModalData:g,onUserCloseViaDialogOrKeybindRef:f,navigate:x}=(0,u.a)(),m=(0,o.u)(),y=m.appearance.palette.colorScheme,{accountType:w,walletClientType:j}=(0,c.F)(),v=(0,l.useMemo)(()=>w&&"guest"!==w&&"authorization_key"!==w&&"cross_app"!==w?(0,p.t)(w):null,[w]),b=m.loginMethodsAndOrder?.primary??[],k=m.loginMethodsAndOrder?.overflow??[],C=(0,l.useMemo)(()=>[...b,...k],[b,k]),S=m.loginMethods.passkey,M=r?.login,T=[];j&&C.includes(j)?T.push(j):w&&C.includes(v?.loginMethod)&&T.push(v?.loginMethod);let[E,L]=(0,l.useState)("default"),[A,V]=(0,l.useState)(Q({mostRecentlyUsedAccountType:w,smsAvailable:C.includes("sms"),emailAvailable:C.includes("email"),prefilledType:M?.prefill?.type}));(0,l.useEffect)(()=>{V(Q({mostRecentlyUsedAccountType:w,smsAvailable:C.includes("sms"),emailAvailable:C.includes("email"),prefilledType:M?.prefill?.type}))},[C,w]),(0,l.useEffect)(()=>{"phone"===w&&V("sms");let e=C.indexOf("sms"),t=C.indexOf("email");e>-1&&e<t&&V("sms")},[w,b,k]);let W=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{L("default")},150)};f.current=W;let{listings:N}=(0,c.d)(),H=t=>{if("email"===t)return(0,i.jsx)(P,{isEditable:"email"===A,setIsEditable:()=>{V("email")},defaultValue:"email"===M?.prefill?.type?M.prefill.value:void 0},t);if("sms"===t)return(0,i.jsx)(U,{isEditable:"sms"===A,setIsEditable:()=>{V("sms")},defaultValue:"phone"===M?.prefill?.type?M.prefill.value:void 0},t);if("apple"===t)return(0,i.jsx)(R,{provider:"apple"},t);if("discord"===t)return(0,i.jsx)(R,{provider:"discord"},t);if("farcaster"===t)return(0,i.jsx)(I,{},t);if("github"===t)return(0,i.jsx)(R,{provider:"github"},t);if("google"===t)return(0,i.jsx)(R,{provider:"google"},t);if("linkedin"===t)return(0,i.jsx)(R,{provider:"linkedin"},t);if("spotify"===t)return(0,i.jsx)(R,{provider:"spotify"},t);if("instagram"===t)return(0,i.jsx)(R,{provider:"instagram"},t);if("tiktok"===t)return(0,i.jsx)(R,{provider:"tiktok"},t);if("line"===t)return(0,i.jsx)(R,{provider:"line"},t);if("twitch"===t)return(0,i.jsx)(R,{provider:"twitch"},t);if("twitter"===t)return(0,i.jsx)(R,{provider:"twitter"},t);if("telegram"===t)return(0,i.jsx)(z,{},t);if(t.startsWith("privy:"))return(0,i.jsx)(D,{appId:t.replace("privy:","")},t);let l=m.appearance.walletChainType,n=new h.c(l,[t]).getWallets(a,N);return n.wallets.map((t,a)=>(0,i.jsx)(h.d,{index:a,data:{wallets:n.wallets,walletChainType:l,handleWalletClick(t){g(e=>({...e,externalConnectWallet:{walletList:C,walletChainType:l,preSelectedWalletId:t.id}})),x(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}},t.id+a))},F=T.flatMap(H),O=b.filter(e=>e!==j&&e!==v?.loginMethod).flatMap(H),Z=k.filter(e=>e!==j&&e!==v?.loginMethod).flatMap(H),[$,G]=(0,c._)([...F,...O,...Z],et({primary:O.length+F.length,overflow:Z.length}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.M,{title:m.appearance.landingHeader,onClose:W,backFn:"default"===E?void 0:()=>{L("default")}}),"default"===E&&(0,i.jsx)(ea,{}),"default"===E&&("string"==typeof m.appearance.loginMessage?(0,i.jsx)(c.$,{children:m.appearance.loginMessage}):m.appearance.loginMessage),(0,i.jsx)(c.a0,{style:{overflow:"hidden"},children:(0,i.jsxs)(c.Z,{$colorScheme:y,children:["default"===E&&(0,i.jsxs)(i.Fragment,{children:[$,G.length>0&&(0,i.jsx)(q,{text:"More options",icon:(0,i.jsx)(n,{}),onClick:()=>L("overflow")})]}),"overflow"===E&&(0,i.jsx)(i.Fragment,{children:G}),S&&"default"===E&&(0,i.jsx)(_,{})]})}),m&&(0,i.jsx)(s.T,{app:m}),(0,i.jsx)(s.B,{})]})},et=({primary:e,overflow:t})=>e<5?e:5===e&&0===t?5:4,ea=(0,r.zo)(e=>{let t=(0,o.u)();return t?.appearance.logo?(0,i.jsx)(V,{...e,children:(0,i.jsx)(A,{})}):null})`
23  margin-bottom: 16px;
24`},76110:function(e,t,a){a.d(t,{W:function(){return r}});var i=a(10387),l=a(3782),n=a(29527);let r=({onClick:e,text:t})=>(0,i.jsxs)(n.U,{onClick:e,children:[(0,i.jsx)(n.V,{children:(0,i.jsx)(l.Z,{})}),(0,i.jsx)(n.Y,{children:t})]})},6581:function(e,t,a){a.d(t,{F:function(){return l}});var i=a(10387);let l=e=>(0,i.jsxs)("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#855DCD"}),(0,i.jsxs)("g",{"clip-path":"url(#clip0_1715_1960)",children:[(0,i.jsx)("path",{d:"M4.5 4H28.5V28H4.5V4Z",fill:"#855DCD"}),(0,i.jsx)("path",{d:"M11.1072 8.42105H21.6983V23.5789H20.1437V16.6357H20.1284C19.9566 14.7167 18.3542 13.2129 16.4028 13.2129C14.4514 13.2129 12.849 14.7167 12.6771 16.6357H12.6619V23.5789H11.1072V8.42105Z",fill:"white"}),(0,i.jsx)("path",{d:"M8.28943 10.5725L8.92101 12.7239H9.45542V21.4275C9.1871 21.4275 8.96959 21.6464 8.96959 21.9165V22.5032H8.87242C8.60411 22.5032 8.38659 22.7221 8.38659 22.9922V23.5789H13.8279V22.9922C13.8279 22.7221 13.6104 22.5032 13.3421 22.5032H13.2449V2
241.9165C13.2449 21.6464 13.0274 21.4275 12.7591 21.4275H12.1761V10.5725H8.28943Z",fill:"white"}),(0,i.jsx)("path",{d:"M20.2408 21.4275C19.9725 21.4275 19.755 21.6464 19.755 21.9165V22.5032H19.6579C19.3895 22.5032 19.172 22.7221 19.172 22.9922V23.5789H24.6133V22.9922C24.6133 22.7221 24.3958 22.5032 24.1275 22.5032H24.0303V21.9165C24.0303 21.6464 23.8128 21.4275 23.5445 21.4275V12.7239H24.0789L24.7105 10.5725H20.8238V21.4275H20.2408Z",fill:"white"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1715_1960",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(4.5 4)"})})})]})},83278:function(e,t,a){a.d(t,{T:function(){return l}});var i=a(10387);function l(e){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:[(0,i.jsx)("rect",{width:"512",height:"512",rx:"15%",fill:"#37aee2"}),(0,i.jsx)("path",{fill:"#c8daea",d:"M199 404c-11 0-10-4-13-14l-32-105 245-144"}),(0,i.jsx)("path",{fill:"#a9c9dd",d:"M199 404c7 0 11-4 16-8l45-43-56-34"}),(0,i.jsx)("path",{fill:"#f6fbfe",d:"M204 319l135 99c14 9 26 4 30-14l55-258c5-22-9-32-24-25L79 245c-21 8-21 21-4 26l83 26 190-121c9-5 17-3 11 4"})]})}}}]);

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.