1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7639],{7639:(e,r,i)=>{i.r(r),i.d(r,{FarcasterSignerStatusScreen:()=>k,FarcasterSignerStatusView:()=>m,default:()=>k});var t=i(95155),o=i(12115),n=i(67884),l=i(51862),a=i(35504),s=i(45812),c=i(66923),d=i(38101),p=i(63092),h=i(69704),g=i(60092),x=i(9879),u=i(84310);i(67454),i(768),i(12100);let v="#8a63d2",m=({appName:e,loading:r,success:i,errorMessage:o,connectUri:l,onBack:p,onClose:h,onOpenFarcaster:g})=>(0,t.jsx)(x.S,n.Fr||r?n.un?{title:o?o.message:"Add a signer to Farcaster",subtitle:o?o.detail:`This will allow ${e} to add casts, likes, follows, and more on your behalf.`,icon:u.F,iconVariant:"loading",iconLoadingStatus:{success:i,fail:!!o},primaryCta:l&&g?{label:"Open Farcaster app",onClick:g}:void 0,onBack:p,onClose:h,watermark:!0}:{title:o?o.message:"Requesting signer from Farcaster",subtitle:o?o.detail:"This should only take a moment",icon:u.F,iconVariant:"loading",iconLoadingStatus:{success:i,fail:!!o},onBack:p,onClose:h,watermark:!0,children:l&&n.Fr&&(0,t.jsx)(f,{children:(0,t.jsx)(c.O,{text:"Take me to Farcaster",url:l,color:v})})}:{title:"Add a signer to Farcaster",subtitle:`This will allow ${e} to add casts, likes, follows, and more on your behalf.`,onBack:p,onClose:h,watermark:!0,children:(0,t.jsxs)(y,{children:[(0,t.jsx)(w,{children:l?(0,t.jsx)(d.Q,{url:l,size:275,squareLogoElement:u.F}):(0,t.jsx)(C,{children:(0,t.jsx)(s.L,{})})}),(0,t.jsxs)(b,{children:[(0,t.jsx)(j,{children:"Or copy this link and paste it into a phone browser to open the Farcaster app."}),l&&(0,t.jsx)(a.C,{text:l,itemName:"link",color:v})]})]})}),f=l.I4.div` 2 margin-top: 24px; 3`,y=l.I4.div` 4 display: flex; 5 flex-direction: column; 6 align-items: center; 7 gap: 24px; 8`,w=l.I4.div` 9 padding: 24px; 10 position: relative; 11 display: flex; 12 align-items: center; 13 justify-content: center; 14 min-height: 275px; 15`,b=l.I4.div` 16 display: flex; 17 flex-direction: column; 18 align-items: center; 19 gap: 16px; 20`,j=l.I4.div` 21 font-size: 0.875rem; 22 text-align: center; 23 color: var(--privy-color-foreground-2); 24`,C=l.I4.div` 25 position: relative; 26 width: 82px; 27 height: 82px; 28`,k={component:()=>{let{lastScreen:e,navigateBack:r,data:i}=(0,g.u)(),n=(0,p.u)(),{requestFarcasterSignerStatus:l,closePrivyModal:a}=(0,h.u)(),[s,c]=(0,o.useState)(void 0),[d,x]=(0,o.useState)(!1),[u,v]=(0,o.useState)(!1),f=(0,o.useRef)([]),y=i?.farcasterSigner;(0,o.useEffect)(()=>{let e=Date.now(),r=setInterval(async()=>{if(!y?.public_key)return clearInterval(r),void c({retryable:!0,message:"Connect failed",detail:"Something went wrong. Please try again."});"approved"===y.status&&(clearInterval(r),x(!1),v(!0),f.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),p.r)));let i=await l(y?.public_key),t=Date.now()-e;"approved"===i.status?(clearInterval(r),x(!1),v(!0),f.current.push(setTimeout(()=>a({shouldCallAuthOnSuccess:!1,isSuccess:!0}),p.r))):t>3e5?(clearInterval(r),c({retryable:!0,message:"Connect failed",detail:"The request timed out. Try again."})):"revoked"===i.status&&(clearInterval(r),c({retryable:!0,message:"Request rejected",detail:"The request was rejected. Please try again."}))},2e3);return()=>{clearInterval(r),f.current.forEach(e=>clearTimeout(e))}},[]);let w="pending_approval"===y?.status?y.signer_approval_url:void 0;return(0,t.jsx)(m,{appName:n.name,loading:d,success:u,errorMessage:s,connectUri:w,onBack:e?r:void 0,onClose:a,onOpenFarcaster:()=>{w&&(window.location.href=w)}})}}},9879:(e,r,i)=>{i.d(r,{S:()=>l});var t=i(95155),o=i(75671),n=i(86321);let l=({primaryCta:e,secondaryCta:r,helpText:i,footerText:l,watermark:a=!0,children:s,...c})=>{let d=e||r?(0,t.jsxs)(t.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,n=i.variant||"primary";return(0,t.jsx)(o.a,{...i,variant:n,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,n=i.variant||"secondary";return(0,t.jsx)(o.a,{...i,variant:n,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,t.jsxs)(n.S,{id:c.id,className:c.className,children:[(0,t.jsx)(n.S.Header,{...c}),s?(0,t.jsx)(n.S.Body,{children:s}):null,i||d||a?(0,t.jsxs)(n.S.Footer,{children:[i?(0,t.jsx)(n.S.HelpText,{children:i}):null,d?(0,t.jsx)(n.S.Actions,{children:d}):null,a?(0,t.jsx)(n.S.Watermark,{}):null]}):null,l?(0,t.jsx)(n.S.FooterText,{children:l}):null]})}},35504:(e,r,i)=>{i.d(r,{C:()=>s});var t=i(95155),o=i(12115),n=i(51862);let l=({style:e,color:r,...i})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:r||"currentColor",style:{height:"1.5rem",width:"1.5rem",...e},...i,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}),a=({color:e,...r})=>(0,t.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve",...r,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:e||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.5
287,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})}),s=e=>{let[r,i]=(0,o.useState)(!1);return(0,t.jsxs)(c,{color:e.color,onClick:()=>{i(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>i(!1),1500)},$justCopied:r,children:[r?(0,t.jsx)(l,{style:{height:"14px",width:"14px"},strokeWidth:"2"}):(0,t.jsx)(a,{style:{height:"14px",width:"14px"}}),r?"Copied":"Copy"," ",e.itemName?e.itemName:"to Clipboard"]})},c=n.I4.button` 29 display: flex; 30 align-items: center; 31 gap: 6px; 32 33 && { 34 margin: 8px 2px; 35 font-size: 14px; 36 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":e.color||"var(--privy-color-foreground-3)"}; 37 font-weight: ${e=>e.$justCopied?"medium":"normal"}; 38 transition: color 350ms ease; 39 40 :focus, 41 :active { 42 background-color: transparent; 43 border: none; 44 outline: none; 45 box-shadow: none; 46 } 47 48 :hover { 49 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":"var(--privy-color-foreground-2)"}; 50 } 51 52 :active { 53 color: 'var(--privy-color-foreground)'; 54 font-weight: medium; 55 } 56 57 @media (max-width: 440px) { 58 margin: 12px 2px; 59 } 60 } 61 62 svg { 63 width: 14px; 64 height: 14px; 65 } 66`},38101:(e,r,i)=>{i.d(r,{Q:()=>m});var t=i(95155),o=i(768),n=i(12115),l=i(51862),a=i(63092),s=i(40258);let c=e=>(0,t.jsx)("svg",{viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("rect",{width:"50",height:"50",fill:"black",rx:10,ry:10})}),d=(e,r,i,t,o)=>{for(let n=r;n<r+t;n++)for(let r=i;r<i+o;r++){let i=e?.[r];i&&i[n]&&(i[n]=0)}return e},p=({x:e,y:r,cellSize:i,bgColor:o,fgColor:n})=>(0,t.jsx)(t.Fragment,{children:[0,1,2].map(l=>(0,t.jsx)("circle",{r:i*(7-2*l)/2,cx:e+7*i/2,cy:r+7*i/2,fill:l%2!=0?o:n},`finder-${e}-${r}-${l}`))}),h=({cellSize:e,matrixSize:r,bgColor:i,fgColor:o})=>(0,t.jsx)(t.Fragment,{children:[[0,0],[(r-7)*e,0],[0,(r-7)*e]].map(([r,n])=>(0,t.jsx)(p,{x:r,y:n,cellSize:e,bgColor:i,fgColor:o},`finder-${r}-${n}`))}),g=({matrix:e,cellSize:r,color:i})=>(0,t.jsx)(t.Fragment,{children:e.map((e,o)=>e.map((e,l)=>e?(0,t.jsx)("rect",{height:r-.4,width:r-.4,x:o*r+.1*r,y:l*r+.1*r,rx:.5*r,ry:.5*r,fill:i},`cell-${o}-${l}`):(0,t.jsx)(n.Fragment,{},`circle-${o}-${l}`)))}),x=({cellSize:e,matrixSize:r,element:i,sizePercentage:o,bgColor:n})=>{if(!i)return(0,t.jsx)(t.Fragment,{});let l=r*(o||.14),a=Math.floor(r/2-l/2),s=Math.floor(r/2+l/2);(s-a)%2!=r%2&&(s+=1);let c=(s-a)*e,d=c-.2*c,p=a*e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:a*e,y:a*e,width:c,height:c,fill:n}),(0,t.jsx)(i,{x:p+.1*c,y:p+.1*c,height:d,width:d})]})},u=e=>{var r,i;let n,l,a=e.outputSize,c=(r=e.url,i=e.errorCorrectionLevel,n=o.create(r,{errorCorrectionLevel:i}).modules,l=d(l=(0,s.w)(Array.from(n.data),n.size),0,0,7,7),l=d(l,l.length-7,0,7,7),d(l,0,l.length-7,7,7)),p=a/c.length,u=(0,s.x)(2*p,{min:.025*a,max:.036*a});return(0,t.jsxs)("svg",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:"100%",width:"100%",padding:`${u}px`},children:[(0,t.jsx)(g,{matrix:c,cellSize:p,color:e.fgColor}),(0,t.jsx)(h,{cellSize:p,matrixSize:c.length,fgColor:e.fgColor,bgColor:e.bgColor}),(0,t.jsx)(x,{cellSize:p,element:e.logo?.element,bgColor:e.bgColor,matrixSize:c.length})]})},v=l.I4.div.attrs({className:"ph-no-capture"})` 67 display: flex; 68 justify-content: center; 69 align-items: center; 70 height: ${e=>`${e.$size}px`}; 71 width: ${e=>`${e.$size}px`}; 72 margin: auto; 73 background-color: ${e=>e.$bgColor}; 74 75 && { 76 border-width: 2px; 77 border-color: ${e=>e.$borderColor}; 78 border-radius: var(--privy-border-radius-md); 79 } 80`,m=e=>{let{appearance:r}=(0,a.u)(),i=e.bgColor||"#FFFFFF",o=e.fgColor||"#000000",n=e.size||160,l="dark"===r.palette.colorScheme?i:o;return(0,t.jsx)(v,{$size:n,$bgColor:i,$fgColor:o,$borderColor:l,children:(0,t.jsx)(u,{url:e.url,logo:e.hideLogo?void 0:{element:e.squareLogoElement??c},outputSize:n,bgColor:i,fgColor:o,errorCorrectionLevel:e.errorCorrectionLevel||"Q"})})}},66923:(e,r,i)=>{i.d(r,{O:()=>l});var t=i(95155),o=i(12115),n=i(51862);let l=e=>{let[r,i]=(0,o.useState)(!1);return(0,t.jsx)(a,{color:e.color,href:e.url,target:"_blank",rel:"noreferrer noopener",onClick:()=>{i(!0),setTimeout(()=>i(!1),1500)},justOpened:r,children:e.text})},a=n.I4.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`},84310:(e,r,i)=>{i.d(r,{F:()=>o});var t=i(95155);let o=e=>(0,t.jsxs)("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#855DCD"}),(0,t.jsxs)("g",{"clip-path":"url(#clip0_1715_1960)",children:[(0,t.jsx)("path",{d:"M4.5 4H28.5V28H4.5V4Z",fill:"#855DCD"}),(0,t.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,t.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
1181.9165C13.2449 21.6464 13.0274 21.4275 12.7591 21.4275H12.1761V10.5725H8.28943Z",fill:"white"}),(0,t.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,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1715_1960",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(4.5 4)"})})})]})},86321:(e,r,i)=>{i.d(r,{S:()=>j});var t=i(95155),o=i(12115),n=i(51862),l=i(45812),a=i(75671),s=i(95119);let c=n.I4.div` 119 /* spacing tokens */ 120 --screen-space: 16px; /* base 1x = 16 */ 121 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 122 123 position: relative; 124 overflow: hidden; 125 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 126 height: 100%; 127 border-radius: var(--privy-border-radius-lg); 128`,d=n.I4.div` 129 display: flex; 130 flex-direction: column; 131 gap: calc(var(--screen-space) * 1.5); 132 width: 100%; 133 background: var(--privy-color-background); 134 padding: 0 var(--screen-space-lg) var(--screen-space); 135 height: 100%; 136 border-radius: var(--privy-border-radius-lg); 137`,p=n.I4.div` 138 position: relative; 139 display: flex; 140 flex-direction: column; 141`,h=(0,n.I4)(a.M)` 142 margin: 0 -8px; 143`,g=n.I4.div` 144 flex: 1 1 auto; 145 display: flex; 146 flex-direction: column; 147 148 /* Enable scrolling */ 149 overflow-y: auto; 150 151 /* Hide scrollbar but keep functionality when scrollable */ 152 /* Add padding for focus outline space, offset with negative margin */ 153 padding: 3px; 154 margin: -3px; 155 156 &::-webkit-scrollbar {
157 display: none; 158 } 159 scrollbar-gutter: stable both-edges; 160 scrollbar-width: none; 161 -ms-overflow-style: none; 162 163 /* Gradient effect for scroll indication */ 164 ${({$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} 165 166 background-repeat: no-repeat; 167 background-size: 168 100% 32px, 169 100% 16px; 170 background-attachment: local, scroll; 171`,x=n.I4.div` 172 display: flex; 173 flex-direction: column; 174 gap: var(--screen-space-lg); 175 margin-top: 1.5rem; 176`,u=n.I4.div` 177 text-align: center; 178 display: flex; 179 flex-direction: column; 180 align-items: center; 181 gap: var(--screen-space); 182`,v=n.I4.div` 183 display: flex; 184 flex-direction: column; 185 gap: 4px; 186`,m=n.I4.h3` 187 && { 188 font-size: 20px; 189 line-height: 32px; 190 font-weight: 500; 191 color: var(--privy-color-foreground); 192 margin: 0; 193 } 194`,f=n.I4.p` 195 && { 196 margin: 0; 197 font-size: 16px; 198 font-weight: 300; 199 line-height: 24px; 200 color: var(--privy-color-foreground); 201 } 202`,y=n.I4.div` 203 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)"}}}; 204 205 border-radius: 50%; 206 width: 64px; 207 height: 64px; 208 display: flex; 209 align-items: center; 210 justify-content: center; 211`,w=n.I4.div` 212 display: flex; 213 align-items: center; 214 justify-content: center; 215 216 img, 217 svg { 218 max-height: 90px; 219 max-width: 180px; 220 } 221`,b=n.I4.div` 222 display: flex; 223 flex-direction: column; 224 justify-content: center; 225 align-items: center; 226 width: 100%; 227 height: 82px; 228 229 > div { 230 position: relative; 231 } 232 233 > div > :first-child { 234 position: relative; 235 } 236 237 > div > :last-child { 238 position: absolute; 239 left: 50%; 240 top: 50%; 241 transform: translate(-50%, -50%); 242 } 243`,j=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),C=n.I4.div` 244 position: absolute; 245 top: 0; 246 left: calc(-1 * var(--screen-space-lg)); 247 width: calc(100% + calc(var(--screen-space-lg) * 2)); 248 height: 4px; 249 background: var(--privy-color-background-2); 250 border-top-left-radius: inherit; 251 border-top-right-radius: inherit; 252 overflow: hidden; 253`,k=(0,n.I4)(a.B)` 254 padding: 0; 255 && a { 256 padding: 0; 257 color: var(--privy-color-foreground-3); 258 } 259`,S=n.I4.div` 260 height: 100%; 261 width: ${({pct:e})=>e}%; 262 background: var(--privy-color-foreground-3); 263 border-radius: 2px; 264 transition: width 300ms ease-in-out; 265`,z=({step:e})=>e?(0,t.jsx)(C,{children:(0,t.jsx)(S,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:i,iconVariant:o,iconLoadingStatus:n,showBack:l,onBack:a,showInfo:s,onInfo:c,showClose:d,onClose:g,step:x,headerTitle:y,eyebrow:w,...b})=>(0,t.jsxs)(p,{...b,children:[(0,t.jsx)(h,{backFn:l?a:void 0,infoFn:s?c:void 0,onClose:d?g:void 0,title:y,eyebrow:w,closeable:d}),(i||o||e||r)&&(0,t.jsxs)(u,{children:[i||o?(0,t.jsx)(j.Icon,{icon:i,variant:o,loadingStatus:n}):null,!(!e&&!r)&&(0,t.jsxs)(v,{children:[e&&(0,t.jsx)(m,{children:e}),r&&(0,t.jsx)(f,{children:r})]})]}),x&&(0,t.jsx)(z,{step:x})]}),(j.Body=o.forwardRef(({children:e,...r},i)=>(0,t.jsx)(g,{ref:i,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,t.jsx)(x,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,t.jsx)($,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(I,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,t.jsx)(F,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(k,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:i})=>"logo"===r&&e?(0,t.jsx)(w,"string"==typeof e?{children:(0,t.jsx)("img",{src:e,alt:""})}:o.isValidElement(e)?{children:e}:{children:o.createElement(e)}):"loading"===r?e?(0,t.jsx)(b,{children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(l.C,{success:i?.success,fail:i?.fail}),"string"==typeof e?(0,t.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,t.jsx)(y,{$variant:r,children:(0,t.jsx)(s.N,{size:"64px"})}):(0,t.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,t.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 $=n.I4.div` 266 width: 100%; 267 display: flex; 268 flex-direction: column; 269 gap: calc(var(--screen-space) / 2); 270`,I=n.I4.div` 271 && { 272 margin: 0; 273 width: 100%; 274 text-align: center; 275 color: var(--privy-color-foreground-2); 276 font-size: 13px; 277 line-height: 20px; 278 279 & a { 280 text-decoration: underline; 281 } 282 } 283`,F=n.I4.div` 284 && { 285 margin-top: -1rem; 286 width: 100%; 287 text-align: center; 288 color: var(--privy-color-foreground-2); 289 font-size: 0.6875rem; // 11px 290 line-height: 1rem; // 16px 291 } 292`}
292,95119:(e,r,i)=>{i.d(r,{N:()=>n});var t=i(95155),o=i(51862);let n=({size:e,centerIcon:r})=>(0,t.jsx)(l,{$size:e,children:(0,t.jsxs)(a,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(d,{}),r?(0,t.jsx)(s,{children:r}):null]})}),l=o.I4.div` 293 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 294 295 display: inline-flex; 296 justify-content: center; 297 align-items: center; 298 299 @media all and (display-mode: standalone) { 300 margin-bottom: 30px; 301 } 302`,a=o.I4.div` 303 position: relative; 304 height: var(--spinner-size); 305 width: var(--spinner-size); 306 307 opacity: 1; 308 animation: fadein 200ms ease; 309`,s=o.I4.div` 310 position: absolute; 311 top: 0; 312 right: 0; 313 bottom: 0; 314 left: 0; 315 display: flex; 316 align-items: center; 317 justify-content: center; 318 svg, 319 img { 320 width: calc(var(--spinner-size) * 0.4); 321 height: calc(var(--spinner-size) * 0.4); 322 border-radius: var(--privy-border-radius-full); 323 } 324`,c=o.I4.div` 325 position: absolute; 326 top: 0; 327 right: 0; 328 bottom: 0; 329 left: 0; 330 width: var(--spinner-size); 331 height: var(--spinner-size); 332 333 && { 334 border: 4px solid var(--privy-color-border-default); 335 border-radius: 50%; 336 } 337`,d=o.I4.div` 338 position: absolute; 339 top: 0; 340 right: 0; 341 bottom: 0; 342 left: 0; 343 width: var(--spinner-size); 344 height: var(--spinner-size); 345 animation: spin 1200ms linear infinite; 346 347 && { 348 border: 4px solid; 349 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 350 border-radius: 50%; 351 } 352 353 @keyframes spin { 354 from { 355 transform: rotate(0deg); 356 } 357 to { 358 transform: rotate(360deg); 359 } 360 } 361`}}]);
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.