PageSourceSearch

https://hype.meme/_next/static/chunks/7644.b4fcdf51d038b9e5.js

js hype.meme collected 2026-10-02 14:58:45 UTC 25,709 bytes, 24 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7644],{89345:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(79205).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"}]])},33388:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(79205).Z)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},91804:function(e,t,a){a.d(t,{Z:function(){return i}});let i=(0,a(79205).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"}]])},72664:function(e,t,a){a.d(t,{C:function(){return y}});var i=a(57437),l=a(89345),n=a(2265),r=a(89618),s=a(77482),o=a(87624),c=a(65988),d=a(64092),u=a(25113),p=a(75869),h=a(34783),g=a(57286),m=a(43867),f=a(14364),x=a(70547);let y=(0,n.forwardRef)((e,t)=>{let[a,r]=(0,n.useState)(e.defaultValue||""),[f,y]=(0,n.useState)(""),[k,C]=(0,n.useState)(!1),{authenticated:b}=(0,u.u)(),{initLoginWithEmail:S}=(0,c.u)(),{navigate:M,setModalData:T,currentScreen:A,data:E}=(0,d.u)(),{enabled:L,token:W}=(0,o.a)(),[P,H]=(0,n.useState)(!1),{accountType:N}=(0,p.g)(),V=(0,s.u)(),D=(0,h.v)(a)&&(V.disablePlusEmails&&a.includes("+")?(f||y("Please enter a valid email address without a '+'."),!1):(f&&y(""),!0)),I=k||!D,F=()=>{I||(T({login:E?.login,inlineError:void 0}),!L||W||b?(C(!0),S({email:a,captchaToken:W,disableSignup:E?.login?.disableSignup,withPrivyUi:!0}).then(()=>{M("AwaitingPasswordlessCodeScreen")}).catch(e=>{T({errorModalData:{error:e,previousScreen:A||"LandingScreen"}}),M("ErrorScreen")}).finally(()=>{C(!1)})):(T({captchaModalData:{callback:e=>S({email:a,captchaToken:e,withPrivyUi:!0}),userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),M("CaptchaScreen")))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(w,{children:[f&&(0,i.jsx)(x.E,{style:{display:"block",marginTop:"0.25rem",textAlign:"left"},children:f}),(0,i.jsxs)(j,{stacked:e.stacked,$error:!!f,children:[(0,i.jsx)(v,{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:()=>H(!0),onChange:e=>r(e.target.value),onKeyUp:e=>{"Enter"===e.key&&F()},value:a,autoComplete:"email"}),"email"!==N||P?e.stacked?(0,i.jsx)("span",{}):(0,i.jsx)(g.E,{isSubmitting:k,onClick:F,disabled:I,children:"Submit"}):(0,i.jsx)(m.C,{color:"gray",children:"Recent"})]})]}),e.stacked?(0,i.jsx)(g.P,{loadingText:null,loading:k,disabled:I,onClick:F,style:{width:"100%"},children:"Submit"}):null]})}),w=f.I,j=f.a,v=(0,r.zo)(p.m)`
2  display: inline-flex;
3`},27644:function(e,t,a){a.d(t,{C:function(){return el},L:function(){return Q}});var i=a(57437),l=a(2265);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(89618),s=a(57286),o=a(77482),c=a(51838),d=a(65988),u=a(64092),p=a(87624),h=a(50303),g=a(75869),m=a(34783),f=a(25113),x=a(36818),y=a(89345),w=a(33388);let j=(0,a(79205).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 v=a(72664),k=a(43867),C=a(48684);let b=(e,t=!0)=>e.reduce((e,a)=>({...e,[a]:t}),{});var S=a(32454),M=a(52295),T=a(19146),A=a(33525),E=a(50233),L=a(2324),W=a(24942),P=a(23175),H=a(69716);let N=()=>{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`,D=({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",{}),I=({appId:e})=>
10{let[t,a]=(0,l.useState)(void 0),{startCrossAppAuthFlow:n}=(0,x.d)(),{authenticated:r}=(0,f.u)(),{data:s}=(0,u.u)(),{client:o}=(0,d.u)();return(0,l.useEffect)(()=>{(async()=>{o&&a(await o.getCrossAppProviderDetails(e))})()},[o]),(0,i.jsx)(g.l,{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)(g.m,{$fullSize:!0,children:(0,i.jsx)(D,{name:t.name,logoUrl:t.icon_url||void 0,size:"32px"})}),t.name]}):(0,i.jsx)(g.B,{})})},F=({isEditable:e,setIsEditable:t,defaultValue:a})=>{let n=(0,l.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.H,{$if:!e,children:(0,i.jsx)(v.C,{ref:n,defaultValue:a})}),(0,i.jsx)(g.H,{$if:e,children:(0,i.jsxs)(g.l,{onClick:()=>{t(),setTimeout(()=>{n.current?.focus()},0)},children:[(0,i.jsx)(g.m,{children:(0,i.jsx)(y.Z,{})}),"Continue with Email"]})})]})},O=()=>{let[e,t]=(0,l.useState)(!1),{currentScreen:a,navigate:n,setModalData:r,data:s}=(0,u.u)(),{enabled:o,token:c}=(0,p.a)(),{initLoginWithFarcaster:h}=(0,d.u)(),{accountType:m}=(0,g.g)();return(0,i.jsxs)(g.l,{onClick:async()=>{t(!0);try{o&&!c?(r({captchaModalData:{callback:e=>h(e,s?.login?.disableSignup),userIntentRequired:!0,onSuccessNavigateTo:"FarcasterConnectStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),n("CaptchaScreen")):(await h(c,s?.login?.disableSignup),n("FarcasterConnectStatusScreen"))}catch(e){r({errorModalData:{error:e,previousScreen:a||"LandingScreen"}}),n("ErrorScreen")}finally{t(!1)}},disabled:!1,children:[(0,i.jsx)(C.F,{width:32,height:32})," Farcaster",e&&(0,i.jsx)(g.B,{}),"farcaster"===m&&(0,i.jsx)(R,{color:"gray",children:"Recent"})]})},R=(0,r.zo)(k.C)`
11  margin-left: auto;
12`,_=({...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"})})})]}),Z=({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)(g.E,{$withPadding:t,children:(0,i.jsxs)(g.n,{children:[(0,i.jsx)(S.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")},z=()=>{let{enabled:e,token:t}=(0,p.a)(),{navigate:a,setModalData:n,data:r}=(0,u.u)(),s=(0,o.u)(),{initLoginWithPasskey:c}=(0,d.u)(),h=()=>{s.loginConfig.passkeysForSignupEnabled?a("PasskeySelectSignupOrLogin"):(async()=>{e&&!t?(n({passkeyAuthModalData:{passkeySignupFlow:!1},captchaModalData:{callback:e=>c({captchaToken:e,withPrivyUi:!0}),userIntentRequired:!1,onSuccessNavigateTo:"PasskeyStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),a("CaptchaScreen")):(await c({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)(g.l,{onClick:h,children:[(0,i.jsx)(M.Z,{})," Continue with passkey"]}):(0,i.jsx)(T.L,{as:"button",onClick:h,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,f.u)(),{navigate:s,setModalData:c,currentScreen:h,data:m}=(0,u.u)(),{initLoginWithSms:x}=(0,d.u)(),{enabled:y,token:j}=(0,p.a)(),{whatsAppEnabled:v}=(0,o.u)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.H,{$if:!e,children:(0,i.jsx)(A.C,{ref:n,onSubmit:async function({qualifiedPhoneNumber:e}){if(!y||j||r)try{await x({phoneNumber:e,captchaToken:j,withPrivyUi:!0,disableSignup:m?.login?.disableSignup}),s("AwaitingPasswordlessCodeScreen")}
12catch(e){c({errorModalData:{error:e,previousScreen:h||"LandingScreen"}}),s("ErrorScreen")}else c({captchaModalData:{callback:t=>x({phoneNumber:e,captchaToken:t,withPrivyUi:!0,disableSignup:m?.login?.disableSignup}),userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),s("CaptchaScreen")},defaultValue:a})}),(0,i.jsx)(g.H,{$if:e,children:(0,i.jsxs)(g.l,{onClick:()=>{t(),setTimeout(()=>{n.current?.focus()},0)},children:[(0,i.jsx)(g.m,{children:(0,i.jsx)(w.Z,{})}),"Continue with ",v?"WhatsApp":"SMS"]})})]})},$={apple:{logo:E.A,displayName:"Apple"},discord:{logo:E.D,displayName:"Discord"},github:{logo:E.b,displayName:"GitHub"},google:{logo:E.G,displayName:"Google"},linkedin:{logo:E.L,displayName:"LinkedIn"},spotify:{logo:E.S,displayName:"Spotify"},instagram:{logo:E.I,displayName:"Instagram"},telegram:{logo:W.T,displayName:"Telegram"},twitter:{logo:E.a,displayName:"Twitter"},tiktok:{logo:E.T,displayName:"TikTok"},line:{logo:L.L,displayName:"LINE"},twitch:{logo:L.T,displayName:"Twitch"}},q=({provider:e})=>{let{enabled:t,token:a}=(0,p.a)(),{navigate:n,setModalData:r,data:s}=(0,u.u)(),[c,h]=(0,l.useState)(!1),m=(0,o.u)(),{initLoginWithOAuth:x}=(0,d.u)(),{accountType:y}=(0,g.g)(),w=(0,l.useMemo)(()=>y&&"guest"!==y&&"authorization_key"!==y&&"cross_app"!==y?(0,p.t)(y):null,[y]),{displayName:j,logo:v}=(0,l.useMemo)(()=>{if((0,f.i)(e)){let t=m.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 $[e]},[e,m.customOAuthProviders]);return(0,i.jsxs)(g.l,{onClick:()=>{h(!0),setTimeout(()=>{h(!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:c,children:[(0,i.jsx)(g.m,{$fullSize:!0,children:(0,i.jsx)(v,{style:{width:"32px",height:"32px"}})}),j,w?.loginMethod===e&&(0,i.jsx)(B,{color:"gray",children:"Recent"})]})},B=(0,r.zo)(k.C)`
13  margin-left: auto;
14`,G=()=>{let{enabled:e,token:t}=(0,p.a)(),{navigate:a,setModalData:n,data:r}=(0,u.u)(),[s,o]=(0,l.useState)(!1),{initLoginWithTelegram:c}=(0,d.u)(),{accountType:h}=(0,g.g)();async function m(e){try{await c(e,r?.login?.disableSignup),n({telegramAuthModalData:{seamlessAuth:!1}}),a("TelegramAuthScreen")}catch(e){console.error(e),o(!1)}}return(0,i.jsxs)(g.l,{onClick:async function(){if(o(!0),e&&!t)return n({captchaModalData:{callback:m,userIntentRequired:!0,onSuccessNavigateTo:null,onErrorNavigateTo:"ErrorScreen"}}),void a("CaptchaScreen");await m(t)},disabled:s,children:[(0,i.jsx)(W.T,{width:32,height:32}),"Telegram","telegram"===h&&(0,i.jsx)(K,{color:"gray",children:"Recent"})]})},K=(0,r.zo)(k.C)`
15  margin-left: auto;
16`,J=({onClick:e,text:t,icon:a})=>(0,i.jsxs)(g.l,{onClick:e,children:[(0,i.jsx)(g.m,{children:a}),(0,i.jsx)(g.G,{children:t})]}),Q=({connectOnly:e})=>{let{closePrivyModal:t}=(0,d.u)(),{data:a,setModalData:n,onUserCloseViaDialogOrKeybindRef:r,navigate:m}=(0,u.u)(),x=(0,o.u)(),y=a?.login,w=x.appearance.walletList,j=y?.walletChainType??x.appearance.walletChainType,{accountType:v,walletClientType:k,chainType:C}=(0,g.g)(),S=(0,l.useMemo)(()=>v&&"guest"!==v&&"authorization_key"!==v&&"cross_app"!==v?(0,p.t)(v):null,[v]),{email:M,sms:T,google:A,twitter:E,discord:L,github:W,spotify:V,instagram:D,tiktok:R,line:_,twitch:$,linkedin:B,apple:K,wallet:Q,farcaster:el,telegram:en}=(0,l.useMemo)(()=>y?.loginMethods?b(y.loginMethods,!0):null,[y])??x.loginMethods,{wallets:er}=(0,h.u)({enabled:(0,c.s)(Q?w:[]),walletList:w,walletChainType:j}),es=x.customOAuthProviders,eo=x.crossAppProviders,{passkey:ec}=x.loginMethods,ed=[M&&"email",T&&"sms",A&&"google",E&&"twitter",L&&"discord",W&&"github",V&&"spotify",D&&"instagram",R&&"tiktok",_&&"line",$&&"twitch",B&&"linkedin",K&&"apple",el&&"farcaster",en&&"telegram",...es.map(e=>e.provider),...eo].filter(e=>!!e),eu=ed.length>0,ep=(0,l.useMemo)(()=>Q&&!eu?"web3-first":Q&&x?.appearance.loginGroupPriority||"web2-first",[Q,eu,x?.appearance.loginGroupPriority]),eh=x?.appearance.hideDirectWeb2Inputs,[eg,em]=(0,l.useState)("default"),[ef,ex]=(0,l.useState)(ei({mostRecentlyUsedAccountType:v,smsAvailable:T,emailAvailable:M,prefilledType:y?.prefill?.type}));(0,l.useEffect)(()=>{ex(ei({mostRecentlyUsedAccountType:v,smsAvailable:T,emailAvailable:M,prefilledType:y?.prefill?.type}))},[M,T,v]);let ey=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{em("default")},150)};r.current=ey;let ew=[];k&&Q?ew.push(k):S?.loginMethod&&ed.includes(S.loginMethod)&&ew.push(S.loginMethod);let ej=t=>{if("email"===t)return(0,i.jsx)(F,{isEditable:"email"===ef,setIsEditable:()=>{ex("email")},defaultValue:"email"===y?.prefill?.type?y.prefill.value:void 0},t);
16if("sms"===t)return(0,i.jsx)(U,{isEditable:"sms"===ef,setIsEditable:()=>{ex("sms")},defaultValue:"phone"===y?.prefill?.type?y.prefill.value:void 0},t);if("apple"===t)return(0,i.jsx)(q,{provider:"apple"},t);if("discord"===t)return(0,i.jsx)(q,{provider:"discord"},t);if("farcaster"===t)return(0,i.jsx)(O,{},t);if("github"===t)return(0,i.jsx)(q,{provider:"github"},t);if("google"===t)return(0,i.jsx)(q,{provider:"google"},t);if("linkedin"===t)return(0,i.jsx)(q,{provider:"linkedin"},t);if("tiktok"===t)return(0,i.jsx)(q,{provider:"tiktok"},t);if("line"===t)return(0,i.jsx)(q,{provider:"line"},t);if("twitch"===t)return(0,i.jsx)(q,{provider:"twitch"},t);if("spotify"===t)return(0,i.jsx)(q,{provider:"spotify"},t);if("instagram"===t)return(0,i.jsx)(q,{provider:"instagram"},t);if("twitter"===t)return(0,i.jsx)(q,{provider:"twitter"},t);if("telegram"===t)return x.loginConfig.telegramHasHmacCredentials?(0,i.jsx)(G,{},t):(0,i.jsx)(q,{provider:"telegram"},t);if((0,f.i)(t))return(0,i.jsx)(q,{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)(I,{appId:e},t)}let a=er.findIndex(({id:e})=>e===h.W.normalize(t)),l="solana"===C?"solana-only":"ethereum-only";return(0,i.jsx)(h.a,{recent:!0,index:a,data:{wallets:er,walletChainType:l,handleWalletClick(t){n(e=>({...e,externalConnectWallet:{walletList:w,walletChainType:l,preSelectedWalletId:t.id}})),m(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}})},ev=er.filter(e=>e.id!==h.W.normalize(k||"")),ek=ev.map((t,a)=>(0,i.jsx)(h.a,{index:a,data:{walletChainType:j,wallets:ev,handleWalletClick(t){n(e=>({...e,externalConnectWallet:{walletList:w,walletChainType:j,preSelectedWalletId:t.id}})),m(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}},t.id)),eC=ed.filter(e=>e!==S?.loginMethod).flatMap(ej),eb=ew.flatMap(ej);"web3-first"===ep&&"default"===eg?ek.unshift(...eb):"web2-first"===ep&&eC.unshift(...eb);let eS="web2-overflow"===eg?()=>em("default"):void 0,eM=ed.filter(e=>"email"!==e&&"sms"!==e),eT=ee({priority:ep,email:M,sms:T,social:eM}),eA=et({priority:ep,email:M,sms:T,social:eM}),eE=(0,i.jsx)(P.W,{text:ea({priority:ep}),onClick:()=>{n({...a,externalConnectWallet:{walletChainType:y?.walletChainType??x.appearance.walletChainType}}),m(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}),eL=(0,i.jsx)(J,{text:eT,icon:eA,onClick:()=>em("web2-overflow")}),eW=eh?0:1,eP=Q&&ek.length>0,eH=0===eC.length&&Q&&0===ek.length,eN=5-(eP?1:0),eV="default"===eg&&x?.appearance.logo,eD="default"===eg&&x.appearance.loginMessage;return(0,i.jsxs)(H.S,{title:x.appearance.landingHeader,icon:eV?(0,i.jsx)(N,{}):void 0,iconVariant:eV?"logo":void 0,onClose:ey,showClose:!0,onBack:eS,showBack:!!eS,helpText:x||ec&&"default"===eg?(0,i.jsxs)(i.Fragment,{children:[ec&&"default"===eg&&!x.globalDisablePasskeys&&(0,i.jsx)(z,{}),x&&(0,i.jsx)(s.T,{app:x})]}):void 0,watermark:!0,children:[eD&&("string"==typeof x.appearance.loginMessage?(0,i.jsx)(X,{children:x.appearance.loginMessage}):(0,i.jsx)(Y,{children:x.appearance.loginMessage})),(0,i.jsx)(g.o,{$colorScheme:x.appearance.palette.colorScheme,children:"default"===eg&&"web2-first"===ep?(0,i.jsxs)(i.Fragment,{children:[eC.length>eN?eC.slice(0,eN-1):eC,eC.length>eN&&eL,eP&&eE,eH&&(0,i.jsx)(Z,{chainType:x.appearance.walletChainType})]}):"default"===eg&&"web3-first"===ep?(0,i.jsxs)(i.Fragment,{children:[Q&&(0,i.jsxs)(i.Fragment,{children:[ek.length>eN?ek.slice(0,eN-1):ek,ek.length>eN&&eE]}),eC.length>eW&&eL,eC.length===eW&&eC[0],eH&&(0,i.jsx)(Z,{chainType:x.appearance.walletChainType})]}):"web2-overflow"===eg?(0,i.jsx)(i.Fragment,{children:"web3-first"===ep?eC:eC.slice(3)}):null})]})},X=r.zo.div`
17  text-align: center;
18  font-size: 14px;
19  margin-bottom: 24px;
20`,Y=r.zo.div`
21  margin-bottom: 24px;
22`,ee=({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",et=({priority:e,email:t,sms:a,social:l})=>"web2-first"===e||l.length>0?(0,i.jsx)(j,{}):t&&a?(0,i.jsx)(_,{}):t?(0,i.jsx)(y.Z,{}):a?(0,i.jsx)(w.Z,{}):null,ea=({priority:e})=>"web2-first"===e?"Continue with a wallet":"Other wallets",ei=({mostRecentlyUsedAccountType:e,smsAvailable:t,emailAvailable:a,prefilledType:i})=>
22a&&("email"===e&&"phone"!==i||"email"===i)||!t||"phone"!==e&&"phone"!==i?"email":"sms",el=({connectOnly:e})=>{let{closePrivyModal:t,connectors:a}=(0,d.u)(),{data:r,setModalData:f,onUserCloseViaDialogOrKeybindRef:x,navigate:y}=(0,u.u)(),w=(0,o.u)(),j=w.appearance.palette.colorScheme,{accountType:v,walletClientType:k}=(0,g.g)(),C=(0,l.useMemo)(()=>v&&"guest"!==v&&"authorization_key"!==v&&"cross_app"!==v?(0,p.t)(v):null,[v]),b=w.loginMethodsAndOrder?.primary??[],S=w.loginMethodsAndOrder?.overflow??[],M=(0,l.useMemo)(()=>[...b,...S],[b,S]),T=w.loginMethods.passkey,A=r?.login,E=[];k&&M.includes(k)?E.push(k):v&&M.includes(C?.loginMethod)&&E.push(C?.loginMethod);let[L,W]=(0,l.useState)("default"),[P,H]=(0,l.useState)(ei({mostRecentlyUsedAccountType:v,smsAvailable:M.includes("sms"),emailAvailable:M.includes("email"),prefilledType:A?.prefill?.type}));(0,l.useEffect)(()=>{H(ei({mostRecentlyUsedAccountType:v,smsAvailable:M.includes("sms"),emailAvailable:M.includes("email"),prefilledType:A?.prefill?.type}))},[M,v]),(0,l.useEffect)(()=>{"phone"===v&&H("sms");let e=M.indexOf("sms"),t=M.indexOf("email");e>-1&&e<t&&H("sms")},[v,b,S]);let N=()=>{t({shouldCallAuthOnSuccess:!0}),setTimeout(()=>{W("default")},150)};x.current=N;let{listings:V}=(0,c.u)(),D=t=>{if("email"===t)return(0,i.jsx)(F,{isEditable:"email"===P,setIsEditable:()=>{H("email")},defaultValue:"email"===A?.prefill?.type?A.prefill.value:void 0},t);if("sms"===t)return(0,i.jsx)(U,{isEditable:"sms"===P,setIsEditable:()=>{H("sms")},defaultValue:"phone"===A?.prefill?.type?A.prefill.value:void 0},t);if("apple"===t)return(0,i.jsx)(q,{provider:"apple"},t);if("discord"===t)return(0,i.jsx)(q,{provider:"discord"},t);if("farcaster"===t)return(0,i.jsx)(O,{},t);if("github"===t)return(0,i.jsx)(q,{provider:"github"},t);if("google"===t)return(0,i.jsx)(q,{provider:"google"},t);if("linkedin"===t)return(0,i.jsx)(q,{provider:"linkedin"},t);if("spotify"===t)return(0,i.jsx)(q,{provider:"spotify"},t);if("instagram"===t)return(0,i.jsx)(q,{provider:"instagram"},t);if("tiktok"===t)return(0,i.jsx)(q,{provider:"tiktok"},t);if("line"===t)return(0,i.jsx)(q,{provider:"line"},t);if("twitch"===t)return(0,i.jsx)(q,{provider:"twitch"},t);if("twitter"===t)return(0,i.jsx)(q,{provider:"twitter"},t);if("telegram"===t)return w.loginConfig.telegramHasHmacCredentials?(0,i.jsx)(G,{},t):(0,i.jsx)(q,{provider:"telegram"},t);if(t.startsWith("privy:"))return(0,i.jsx)(I,{appId:t.replace("privy:","")},t);let l=w.appearance.walletChainType,n=new h.W(l,[t]).getWallets(a,V);return n.wallets.map((t,a)=>(0,i.jsx)(h.a,{index:a,data:{wallets:n.wallets,walletChainType:l,handleWalletClick(t){f(e=>({...e,externalConnectWallet:{walletList:M,walletChainType:l,preSelectedWalletId:t.id}})),y(e?"ConnectOnlyLandingScreen":"AuthenticateWithWalletScreen")}}},t.id+a))},R=E.flatMap(D),_=b.filter(e=>e!==k&&e!==C?.loginMethod).flatMap(D),Z=S.filter(e=>e!==k&&e!==C?.loginMethod).flatMap(D),[$,B]=(0,m.r)([...R,..._,...Z],en({primary:_.length+R.length,overflow:Z.length}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.M,{title:w.appearance.landingHeader,onClose:N,backFn:"default"===L?void 0:()=>{W("default")}}),"default"===L&&(0,i.jsx)(er,{}),"default"===L&&("string"==typeof w.appearance.loginMessage?(0,i.jsx)(g.S,{children:w.appearance.loginMessage}):w.appearance.loginMessage),(0,i.jsx)(g.A,{style:{overflow:"hidden"},children:(0,i.jsxs)(g.o,{$colorScheme:j,children:["default"===L&&(0,i.jsxs)(i.Fragment,{children:[$,B.length>0&&(0,i.jsx)(J,{text:"More options",icon:(0,i.jsx)(n,{}),onClick:()=>W("overflow")})]}),"overflow"===L&&(0,i.jsx)(i.Fragment,{children:B}),T&&"default"===L&&(0,i.jsx)(z,{})]})}),w&&(0,i.jsx)(s.T,{app:w}),(0,i.jsx)(s.B,{})]})},en=({primary:e,overflow:t})=>e<5?e:5===e&&0===t?5:4,er=(0,r.zo)(e=>{let t=(0,o.u)();return t?.appearance.logo?(0,i.jsx)(V,{...e,children:(0,i.jsx)(N,{})}):null})`
23  margin-bottom: 16px;
24`},23175:function(e,t,a){a.d(t,{W:function(){return r}});var i=a(57437),l=a(91804),n=a(75869);let r=({onClick:e,text:t})=>(0,i.jsxs)(n.l,{onClick:e,children:[(0,i.jsx)(n.m,{children:(0,i.jsx)(l.Z,{})}),(0,i.jsx)(n.G,{children:t})]})},48684:function(e,t,a){a.d(t,{F:function(){return l}});var i=a(57437);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)"})})})]})},52295:function(e,t,a){var i=a(2265);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}}]);

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.