1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8934],{79205:function(e,r,t){t.d(r,{Z:function(){return u}});var i=t(2265);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()),a=e=>{let r=n(e);return r.charAt(0).toUpperCase()+r.slice(1)},l=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()},s=e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,i.forwardRef)((e,r)=>{let{color:t="currentColor",size:o=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:d="",children:u,iconNode:p,...h}=e;return(0,i.createElement)("svg",{ref:r,...c,width:o,height:o,stroke:t,strokeWidth:a?24*Number(n)/Number(o):n,className:l("lucide",d),...!u&&!s(h)&&{"aria-hidden":"true"},...h},[...p.map(e=>{let[r,t]=e;return(0,i.createElement)(r,t)}),...Array.isArray(u)?u:[u]])}),u=(e,r)=>{let t=(0,i.forwardRef)((t,n)=>{let{className:s,...c}=t;return(0,i.createElement)(d,{ref:n,iconNode:r,className:l("lucide-".concat(o(a(e))),"lucide-".concat(e),s),...c})});return t.displayName=a(e),t}},30401:function(e,r,t){t.d(r,{Z:function(){return i}});let i=(0,t(79205).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},78867:function(e,r,t){t.d(r,{Z:function(){return i}});let i=(0,t(79205).Z)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},38934:function(e,r,t){t.r(r),t.d(r,{FarcasterConnectStatusScreen:function(){return F},FarcasterConnectStatusView:function(){return $},default:function(){return F}});
1var i=t(57437),o=t(2265),n=t(97048),a=t(80717),l=t(15588),s=t(87519),c=t(22058),d=t(30401),u=t(78867),p=t(74002),h=t(28642),g=t(28071),x=t(6140),f=t(22121),v=t(38551),m=t(23931),y=t(48684);t(87336),t(35819),t(29155),t(64131),t(84250);let b=a.zo.div` 2 width: 100%; 3`,w=a.zo.div` 4 display: flex; 5 align-items: center; 6 justify-content: space-between; 7 gap: 0.75rem; 8 padding: 0.75rem; 9 height: 56px; 10 background: ${e=>e.$disabled?"var(--privy-color-background-2)":"var(--privy-color-background)"}; 11 border: 1px solid var(--privy-color-foreground-4); 12 border-radius: var(--privy-border-radius-md); 13 14 &:hover { 15 border-color: ${e=>e.$disabled?"var(--privy-color-foreground-4)":"var(--privy-color-foreground-3)"}; 16 } 17`,j=a.zo.div` 18 flex: 1; 19 min-width: 0; 20 display: flex; 21 align-items: center; 22`,z=a.zo.span` 23 display: block; 24 font-size: 16px; 25 line-height: 24px; 26 color: ${e=>e.$disabled?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"}; 27 overflow: hidden; 28 text-overflow: ellipsis; 29 /* Use single-line truncation without nowrap to respect container width */ 30 display: -webkit-box; 31 -webkit-line-clamp: 1; 32 -webkit-box-orient: vertical; 33 word-break: break-all; 34 35 @media (min-width: 441px) { 36 font-size: 14px; 37 line-height: 20px; 38 } 39`,C=(0,a.zo)(z)` 40 color: var(--privy-color-foreground-3); 41 font-style: italic; 42`,k=(0,a.zo)(h.L)` 43 margin-bottom: 0.5rem; 44`,S=(0,a.zo)(p.S)` 45 && { 46 gap: 0.375rem; 47 font-size: 14px; 48 flex-shrink: 0; 49 } 50`,E=({value:e,title:r,placeholder:t,className:n,showCopyButton:a=!0,truncate:l,maxLength:s=40,disabled:c=!1})=>{var p;let[h,g]=(0,o.useState)(!1),x=l&&e?(p=(p=e).startsWith("https://")?p.slice(8):p).length<=s?p:"middle"===l?`${p.slice(0,Math.ceil(s/2)-2)}...${p.slice(-(Math.floor(s/2)-1))}`:`${p.slice(0,s-3)}...`:e;return(0,o.useEffect)(()=>{if(h){let e=setTimeout(()=>g(!1),3e3);return()=>clearTimeout(e)}},[h]),(0,i.jsxs)(b,{className:n,children:[r&&(0,i.jsx)(k,{children:r}),(0,i.jsxs)(w,{$disabled:c,children:[(0,i.jsx)(j,{children:e?(0,i.jsx)(z,{$disabled:c,title:e,children:x}):(0,i.jsx)(C,{$disabled:c,children:t||"No value"})}),a&&e&&(0,i.jsx)(S,{onClick:function(r){r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>g(!0)).catch(console.error)},size:"sm",children:(0,i.jsxs)(i.Fragment,h?{children:["Copied",(0,i.jsx)(d.Z,{size:14})]}:{children:["Copy",(0,i.jsx)(u.Z,{size:14})]})})]})]})},$=({connectUri:e,loading:r,success:t,errorMessage:o,onBack:a,onClose:d,onOpenFarcaster:u})=>(0,i.jsx)(m.S,n.tq||r?n.gn?{title:o?o.message:"Sign in with Farcaster",subtitle:o?o.detail:"To sign in with Farcaster, please open the Farcaster app.",icon:y.F,iconVariant:"loading",iconLoadingStatus:{success:t,fail:!!o},primaryCta:e&&u?{label:"Open Farcaster app",onClick:u}:void 0,onBack:a,onClose:d,watermark:!0}:{title:o?o.message:"Signing in with Farcaster",subtitle:o?o.detail:"This should only take a moment",icon:y.F,iconVariant:"loading",iconLoadingStatus:{success:t,fail:!!o},onBack:a,onClose:d,watermark:!0,children:e&&n.tq&&(0,i.jsx)(T,{children:(0,i.jsx)(s.O,{text:"Take me to Farcaster",url:e,color:"#8a63d2"})})}:{title:"Sign in with Farcaster",subtitle:"Scan with your phone's camera to continue.",onBack:a,onClose:d,watermark:!0,children:(0,i.jsxs)(A,{children:[(0,i.jsx)(L,{children:e?(0,i.jsx)(c.Q,{url:e,size:275,squareLogoElement:y.F}):(0,i.jsx)(V,{children:(0,i.jsx)(l.L,{})})}),(0,i.jsxs)(N,{children:[(0,i.jsx)(_,{children:"Or copy this link and paste it into a phone browser to open the Farcaster app."}),e&&(0,i.jsx)(E,{value:e,truncate:"end",maxLength:30,showCopyButton:!0,disabled:!0})]})]})}),F={component:()=>{let{authenticated:e,logout:r,ready:t,user:n}=(0,f.u)(),{lastScreen:a,navigate:l,navigateBack:s,setModalData:c}=(0,f.a)(),d=(0,g.u)(),{getAuthFlow:u,loginWithFarcaster:p,closePrivyModal:h,createAnalyticsEvent:m}=(0,x.u)(),[y,b]=(0,o.useState)(void 0),[w,j]=(0,o.useState)(!1),[z,C]=(0,o.useState)(!1),k=(0,o.useRef)([]),S=u(),E=S?.meta.connectUri;return(0,o.useEffect)(()=>{let e=Date.now(),r=setInterval(async()=>{let t=await S.pollForReady.execute(),i=Date.now()-e;if(t){clearInterval(r),j(!0);try{await p(),C(!0)}catch(r){let e={retryable:!1,message:"Authentication failed"};if(r?.privyErrorCode===x.c.ALLOWLIST_REJECTED)return void l("AllowlistRejectionScreen");if(r?.privyErrorCode===x.c.USER_LIMIT_REACHED)return console.error(new x.k(r).toString()),void l("UserLimitReachedScreen");if(r?.privyErrorCode===x.c.USER_DOES_NOT_EXIST)return void l("AccountNotFoundScreen");if(r?.privyErrorCode===x.c.LINKED_TO_ANOTHER_USER)e.detail=r.message??"This account has already been linked to another user.";else{if(r?.privyErrorCode===x.c.ACCOUNT_TRANSFER_REQUIRED&&r.data?.data?.nonce)return c({accountTransfer:{nonce:r.data?.data?.nonce,account:r.data?.data?.subject,displayName:r.data?.data?.account?.displayName,linkMethod:"farcaster",embeddedWalletAddress:r.data?.data?.otherUser?.embeddedWalletAddress,farcasterEmbeddedAddress:r.data?.data?.otherUser?.farcasterEmbeddedAddress}}),void l("LinkConflictScreen");r?.privyErrorCode===x.c.INVALID_CREDENTIALS?(e.retryable=!0,e.detail="Something went wrong. Try again."):r?.privyErrorCode===x.c.TOO_MANY_REQUESTS&&(e.detail="Too many requests. Please wait before trying again.")}b(e)}}else i>12e4&&(clearInterval(r),b({retryable:!0,message:"Authentication failed",detail
50:"The request timed out. Try again."}))},2e3);return()=>{clearInterval(r),k.current.forEach(e=>clearTimeout(e))}},[]),(0,o.useEffect)(()=>{if(t&&e&&z&&n){if(d?.legal.requireUsersAcceptTerms&&!n.hasAcceptedTerms){let e=setTimeout(()=>{l("AffirmativeConsentScreen")},g.q);return()=>clearTimeout(e)}z&&((0,v.s)(n,d.embeddedWallets)?k.current.push(setTimeout(()=>{c({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),m({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"FarcasterConnectStatusScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),l("EmbeddedWalletOnAccountCreateScreen")},g.q)):k.current.push(setTimeout(()=>h({shouldCallAuthOnSuccess:!0,isSuccess:!0}),g.q)))}},[z,t,e,n]),(0,i.jsx)($,{connectUri:E,loading:w,success:z,errorMessage:y,onBack:a?s:void 0,onClose:h,onOpenFarcaster:()=>{E&&(window.location.href=E)}})}},T=a.zo.div` 51 margin-top: 24px; 52`,A=a.zo.div` 53 display: flex; 54 flex-direction: column; 55 align-items: center; 56 gap: 24px; 57`,L=a.zo.div` 58 display: flex; 59 align-items: center; 60 justify-content: center; 61 min-height: 275px; 62`,N=a.zo.div` 63 display: flex; 64 flex-direction: column; 65 align-items: center; 66 gap: 16px; 67`,_=a.zo.div` 68 font-size: 0.875rem; 69 text-align: center; 70 color: var(--privy-color-foreground-2); 71`,V=a.zo.div` 72 position: relative; 73 width: 82px; 74 height: 82px; 75`},28642:function(e,r,t){t.d(r,{L:function(){return o}});var i=t(80717);let o=i.zo.span` 76 color: var(--privy-color-foreground-3); 77 font-size: 0.75rem; 78 font-weight: 500; 79 line-height: 1.125rem; /* 150% */ 80`},87519:function(e,r,t){t.d(r,{O:function(){return a}});var i=t(57437),o=t(2265),n=t(80717);let a=e=>{let[r,t]=(0,o.useState)(!1);return(0,i.jsx)(l,{color:e.color,href:e.url,target:"_blank",rel:"noreferrer noopener",onClick:()=>{t(!0),setTimeout(()=>t(!1),1500)},justOpened:r,children:e.text})},l=n.zo.a` 81 display: flex; 82 align-items: center; 83 gap: 6px; 84 85 && { 86 margin: 8px 2px; 87 font-size: 14px; 88 color: ${e=>e.justOpened?"var(--privy-color-foreground)":e.color||"var(--privy-color-foreground-3)"}; 89 font-weight: ${e=>e.justOpened?"medium":"normal"}; 90 transition: color 350ms ease; 91 92 :focus, 93 :active { 94 background-color: transparent; 95 border: none; 96 outline: none; 97 box-shadow: none; 98 } 99 100 :hover { 101 color: ${e=>e.justOpened?"var(--privy-color-foreground)":"var(--privy-color-foreground-2)"}; 102 } 103 104 :active { 105 color: 'var(--privy-color-foreground)'; 106 font-weight: medium; 107 } 108 109 @media (max-width: 440px) { 110 margin: 12px 2px; 111 } 112 } 113 114 svg { 115 width: 14px; 116 height: 14px; 117 } 118`},22058:function(e,r,t){t.d(r,{Q:function(){return m}});
118var i=t(57437),o=t(35819),n=t(2265),a=t(80717),l=t(28071),s=t(9228);let c=()=>(0,i.jsx)("svg",{width:"200",height:"200",viewBox:"-77 -77 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px"},children:(0,i.jsx)("rect",{width:"50",height:"50",fill:"black",rx:10,ry:10})}),d=(e,r,t,i,o)=>{for(let n=r;n<r+i;n++)for(let r=t;r<t+o;r++){let t=e?.[r];t&&t[n]&&(t[n]=0)}return e},u=(e,r)=>{let t=o.create(e,{errorCorrectionLevel:r}).modules,i=(0,s.D)(Array.from(t.data),t.size);return i=d(i,0,0,7,7),i=d(i,i.length-7,0,7,7),d(i,0,i.length-7,7,7)},p=({x:e,y:r,cellSize:t,bgColor:o,fgColor:n})=>(0,i.jsx)(i.Fragment,{children:[0,1,2].map(a=>(0,i.jsx)("circle",{r:t*(7-2*a)/2,cx:e+7*t/2,cy:r+7*t/2,fill:a%2!=0?o:n},`finder-${e}-${r}-${a}`))}),h=({cellSize:e,matrixSize:r,bgColor:t,fgColor:o})=>(0,i.jsx)(i.Fragment,{children:[[0,0],[(r-7)*e,0],[0,(r-7)*e]].map(([r,n])=>(0,i.jsx)(p,{x:r,y:n,cellSize:e,bgColor:t,fgColor:o},`finder-${r}-${n}`))}),g=({matrix:e,cellSize:r,color:t})=>(0,i.jsx)(i.Fragment,{children:e.map((e,o)=>e.map((e,a)=>e?(0,i.jsx)("rect",{height:r-.4,width:r-.4,x:o*r+.1*r,y:a*r+.1*r,rx:.5*r,ry:.5*r,fill:t},`cell-${o}-${a}`):(0,i.jsx)(n.Fragment,{},`circle-${o}-${a}`)))}),x=({cellSize:e,matrixSize:r,element:t,sizePercentage:o,bgColor:n})=>{if(!t)return(0,i.jsx)(i.Fragment,{});let a=r*(o||.14),l=Math.floor(r/2-a/2),s=Math.floor(r/2+a/2);(s-l)%2!=r%2&&(s+=1);let c=(s-l)*e,d=c-.2*c,u=l*e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("rect",{x:l*e,y:l*e,width:c,height:c,fill:n}),(0,i.jsx)(t,{x:u+.1*c,y:u+.1*c,height:d,width:d})]})},f=e=>{let r=e.outputSize,t=u(e.url,e.errorCorrectionLevel),o=r/t.length,n=(0,s.E)(2*o,{min:.025*r,max:.036*r});return(0,i.jsxs)("svg",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:"100%",width:"100%",padding:`${n}px`},children:[(0,i.jsx)(g,{matrix:t,cellSize:o,color:e.fgColor}),(0,i.jsx)(h,{cellSize:o,matrixSize:t.length,fgColor:e.fgColor,bgColor:e.bgColor}),(0,i.jsx)(x,{cellSize:o,element:e.logo?.element,bgColor:e.bgColor,matrixSize:t.length})]})},v=a.zo.div.attrs({className:"ph-no-capture"})` 119 display: flex; 120 justify-content: center; 121 align-items: center; 122 height: ${e=>`${e.$size}px`}; 123 width: ${e=>`${e.$size}px`}; 124 margin: auto; 125 background-color: ${e=>e.$bgColor}; 126 127 && { 128 border-width: 2px; 129 border-color: ${e=>e.$borderColor}; 130 border-radius: var(--privy-border-radius-md); 131 } 132`,m=e=>{let{appearance:r}=(0,l.u)(),t=e.bgColor||"#FFFFFF",o=e.fgColor||"#000000",n=e.size||160,a="dark"===r.palette.colorScheme?t:o;return(0,i.jsx)(v,{$size:n,$bgColor:t,$fgColor:o,$borderColor:a,children:(0,i.jsx)(f,{url:e.url,logo:{element:e.squareLogoElement??c},outputSize:n,bgColor:t,fgColor:o,errorCorrectionLevel:e.errorCorrectionLevel||"Q"})})}},57656:function(e,r,t){t.d(r,{S:function(){return j}});var i=t(57437),o=t(2265),n=t(80717),a=t(15588),l=t(74002),s=t(20278);let c=n.zo.div` 133 /* spacing tokens */ 134 --screen-space: 16px; /* base 1x = 16 */ 135 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 136 137 position: relative; 138 overflow: hidden; 139 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 140 height: 100%; 141 border-radius: var(--privy-border-radius-lg); 142`,d=n.zo.div` 143 display: flex; 144 flex-direction: column; 145 gap: calc(var(--screen-space) * 1.5); 146 width: 100%; 147 background: var(--privy-color-background); 148 padding: 0 var(--screen-space-lg) var(--screen-space); 149 height: 100%; 150 border-radius: var(--privy-border-radius-lg); 151`,u=n.zo.div` 152 position: relative; 153 display: flex; 154 flex-direction: column; 155`,p=(0,n.zo)(l.M)` 156 margin: 0 -8px; 157`,h=n.zo.div` 158 flex: 1 1 auto; 159 display: flex; 160 flex-direction: column; 161 162 /* Enable scrolling */ 163 overflow-y: auto; 164 165 /* Hide scrollbar but keep functionality when scrollable */ 166 /* Add padding for focus outline space, offset with negative margin */ 167 padding: 3px; 168 margin: -3px; 169 170 &::-webkit-scrollbar {
171 display: none; 172 } 173 scrollbar-gutter: stable both-edges; 174 scrollbar-width: none; 175 -ms-overflow-style: none; 176 177 /* Gradient effect for scroll indication */ 178 ${({$colorScheme:e})=>"light"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0} 179 180 background-repeat: no-repeat; 181 background-size: 182 100% 32px, 183 100% 16px; 184 background-attachment: local, scroll; 185`,g=n.zo.div` 186 display: flex; 187 flex-direction: column; 188 gap: var(--screen-space-lg); 189 margin-top: 1.5rem; 190`,x=n.zo.div` 191 text-align: center; 192 display: flex; 193 flex-direction: column; 194 align-items: center; 195 gap: var(--screen-space); 196`,f=n.zo.div` 197 display: flex; 198 flex-direction: column; 199 gap: 4px; 200`,v=n.zo.h3` 201 && { 202 font-size: 20px; 203 line-height: 32px; 204 font-weight: 500; 205 color: var(--privy-color-foreground); 206 margin: 0; 207 } 208`,m=n.zo.p` 209 && { 210 margin: 0; 211 font-size: 16px; 212 font-weight: 300; 213 line-height: 24px; 214 color: var(--privy-color-foreground); 215 } 216`,y=n.zo.div` 217 background: ${({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}}; 218 219 border-radius: 50%; 220 width: 64px; 221 height: 64px; 222 display: flex; 223 align-items: center; 224 justify-content: center; 225`,b=n.zo.div` 226 display: flex; 227 align-items: center; 228 justify-content: center; 229 230 img, 231 svg { 232 max-height: 90px; 233 max-width: 180px; 234 } 235`,w=n.zo.div` 236 display: flex; 237 flex-direction: column; 238 justify-content: center; 239 align-items: center; 240 width: 100%; 241 height: 82px; 242 243 > div { 244 position: relative; 245 } 246 247 > div > :first-child { 248 position: relative; 249 } 250 251 > div > :last-child { 252 position: absolute; 253 left: 50%; 254 top: 50%; 255 transform: translate(-50%, -50%); 256 } 257`,j=({children:e,...r})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...r,children:e})}),z=n.zo.div` 258 position: absolute; 259 top: 0; 260 left: calc(-1 * var(--screen-space-lg)); 261 width: calc(100% + calc(var(--screen-space-lg) * 2)); 262 height: 4px; 263 background: var(--privy-color-background-2); 264 border-top-left-radius: inherit; 265 border-top-right-radius: inherit; 266 overflow: hidden; 267`,C=(0,n.zo)(l.B)` 268 padding: 0; 269 && a { 270 padding: 0; 271 color: var(--privy-color-foreground-3); 272 } 273`,k=n.zo.div` 274 height: 100%; 275 width: ${({pct:e})=>e}%; 276 background: var(--privy-color-foreground-3); 277 border-radius: 2px; 278 transition: width 300ms ease-in-out; 279`,S=({step:e})=>e?(0,i.jsx)(z,{children:(0,i.jsx)(k,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:t,iconVariant:o,iconLoadingStatus:n,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:h,step:g,headerTitle:y,...b})=>(0,i.jsxs)(u,{...b,children:[(0,i.jsx)(p,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?h:void 0,title:y,closeable:d}),(t||o||e||r)&&(0,i.jsxs)(x,{children:[t||o?(0,i.jsx)(j.Icon,{icon:t,variant:o,loadingStatus:n}):null,!(!e&&!r)&&(0,i.jsxs)(f,{children:[e&&(0,i.jsx)(v,{children:e}),r&&(0,i.jsx)(m,{children:r})]})]}),g&&(0,i.jsx)(S,{step:g})]}),(j.Body=o.forwardRef(({children:e,...r},t)=>(0,i.jsx)(h,{ref:t,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,i.jsx)(E,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,i.jsx)($,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,i.jsx)(F,{...r,children:e}),j.Watermark=()=>(0,i.jsx)(C,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:o.isValidElement(e)?{children:e}:{children:o.createElement(e)}):"loading"===r?e?(0,i.jsx)(w,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(a.N,{success:t?.success,fail:t?.fail}),"string"==typeof e?(0,i.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):o.isValidElement(e)?o.cloneElement(e,{style:{width:"38px",height:"38px"}}):o.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(y,{$variant:r,children:(0,i.jsx)(s.N,{size:"64px"})}):(0,i.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):o.isValidElement(e)?e:o.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))});let E=n.zo.div` 280 width: 100%; 281 display: flex; 282 flex-direction: column; 283 gap: calc(var(--screen-space) / 2); 284`,$=n.zo.div` 285 && { 286 margin: 0; 287 width: 100%; 288 text-align: center; 289 color: var(--privy-color-foreground-2); 290 font-size: 13px; 291 line-height: 20px; 292 293 & a { 294 text-decoration: underline; 295 } 296 } 297`,F=n.zo.div` 298 && { 299 margin-top: -1rem; 300 width: 100%; 301 text-align: center; 302 color: var(--privy-color-foreground-2); 303 font-size: 0.6875rem; // 11px 304 line-height: 1rem; // 16px 305 } 306`},23931:function(e,r,t){t.d(r,{S:function(){return a}});var i=t(57437),o=t(74002),n=t(57656);let a=({primaryCta:e,secondaryCta:r,helpText:t,footerText:a,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,n=t.variant||"primary";return(0,i.jsx)(o.a,{...t,variant:n,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,n=t.variant||"secondary";return(0,i.jsx)(o.a,{...t,variant:n,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,i.jsxs)(n.S,{id:c.id,className:c.className,children:[(0,i.jsx)(n.S.Header,{...c}),s?(0,i.jsx)(n.S.Body,{children:s}):null,t||d||l?(0,i.jsxs)(n.S.Footer,{children:[t?(0,i.jsx)(n.S.HelpText,{children:t}):null,d?(0,i.jsx)(n.S.Actions,{children:d}):null,l?(0,i.jsx)(n.S.Watermark,{}):null]}):null,a?(0,i.jsx)(n.S.FooterText,{children:a}):null]})}},48684:function(e,r,t){t.d(r,{F:function(){return o}});var i=t(57437);let o=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
3061.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)"})})})]})},20278:function(e,r,t){t.d(r,{N:function(){return n}});var i=t(57437),o=t(80717);let n=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(l,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(s,{children:r}):null]})}),a=o.zo.div` 307 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 308 309 display: inline-flex; 310 justify-content: center; 311 align-items: center; 312 313 @media all and (display-mode: standalone) { 314 margin-bottom: 30px; 315 } 316`,l=o.zo.div` 317 position: relative; 318 height: var(--spinner-size); 319 width: var(--spinner-size); 320 321 opacity: 1; 322 animation: fadein 200ms ease; 323`,s=o.zo.div` 324 position: absolute; 325 top: 0; 326 right: 0; 327 bottom: 0; 328 left: 0; 329 display: flex; 330 align-items: center; 331 justify-content: center; 332 svg, 333 img { 334 width: calc(var(--spinner-size) * 0.4); 335 height: calc(var(--spinner-size) * 0.4); 336 border-radius: var(--privy-border-radius-full); 337 } 338`,c=o.zo.div` 339 position: absolute; 340 top: 0; 341 right: 0; 342 bottom: 0; 343 left: 0; 344 width: var(--spinner-size); 345 height: var(--spinner-size); 346 347 && { 348 border: 4px solid var(--privy-color-border-default); 349 border-radius: 50%; 350 } 351`,d=o.zo.div` 352 position: absolute; 353 top: 0; 354 right: 0; 355 bottom: 0; 356 left: 0; 357 width: var(--spinner-size); 358 height: var(--spinner-size); 359 animation: spin 1200ms linear infinite; 360 361 && { 362 border: 4px solid; 363 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 364 border-radius: 50%; 365 } 366 367 @keyframes spin { 368 from { 369 transform: rotate(0deg); 370 } 371 to { 372 transform: rotate(360deg); 373 } 374 } 375`},38551:function(e,r,t){t.d(r,{s:function(){return o}});var i=t(6540);let o=(e,r)=>(0,i.s)(e,r.ethereum.createOnLogin)||(0,i.k)(e,r.solana.createOnLogin)}}]); 376//# sourceMappingURL=8934.ae84b0067434e3ed.js.map
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.