1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2242],{30496:(e,r,i)=>{i.d(r,{s:()=>n});var t=i(67995);let n=(e,r)=>(0,t.s)(e,r.ethereum.createOnLogin)||(0,t.g)(e,r.solana.createOnLogin)},42242:(e,r,i)=>{i.r(r),i.d(r,{AffirmativeConsentScreen:()=>u,AffirmativeConsentScreenView:()=>v,default:()=>u});var t=i(61913);let n=(0,i(55284).A)("file-check",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);var a=i(80369);i(21773);var o=i(52682),l=i(20389),s=i(83139),c=i(7195),d=i(6067),p=i(67062),h=i(30496),g=i(54623);i(25353),i(43788),i(90207),i(81239),i(78744);let u={component:()=>{let{user:e,logout:r}=(0,p.u)(),{onUserCloseViaDialogOrKeybindRef:i,setModalData:n,navigate:a}=(0,d.u)(),o=(0,s.u)(),{acceptTerms:l,closePrivyModal:g,createAnalyticsEvent:u}=(0,c.u)(),x=e=>{e?.preventDefault(),g({shouldCallAuthOnSuccess:!1}),r()};return i.current=x,(0,t.jsx)(v,{termsAndConditionsUrl:o?.legal.termsAndConditionsUrl,privacyPolicyUrl:o?.legal.privacyPolicyUrl,onAccept:async i=>{i?.preventDefault(),await l(),e&&(0,h.s)(e,o.embeddedWallets)?(n({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),u({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),a("EmbeddedWalletOnAccountCreateScreen")):g()},onDecline:x})}},v=({termsAndConditionsUrl:e,privacyPolicyUrl:r,onAccept:i,onDecline:o,title:s="One last step",subtitle:c="By signing up, you agree to our terms and privacy policy."})=>(0,t.jsx)(g.S,{title:s,subtitle:c,icon:n,primaryCta:{label:"Accept",onClick:i},secondaryCta:{label:"No thanks",onClick:o},watermark:!0,children:(e||r)&&(0,t.jsxs)(x,{children:[e&&(0,t.jsxs)(l.a,{variant:"muted",href:e,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",(0,t.jsx)(a.A,{width:16,height:16,strokeWidth:2.25})]}),r&&(0,t.jsxs)(l.a,{variant:"muted",href:r,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",(0,t.jsx)(a.A,{width:16,height:16,strokeWidth:2.25})]})]})}),x=o.I4.div` 2 display: flex; 3 flex-direction: column; 4 gap: 12px; 5 margin-top: var(--screen-space); 6`},54623:(e,r,i)=>{i.d(r,{S:()=>o});var t=i(61913),n=i(20389),a=i(78286);let o=({primaryCta:e,secondaryCta:r,helpText:i,footerText:o,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,t.jsxs)(t.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,a=i.variant||"primary";return(0,t.jsx)(n.a,{...i,variant:a,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,a=i.variant||"secondary";return(0,t.jsx)(n.a,{...i,variant:a,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,t.jsxs)(a.S,{id:c.id,className:c.className,children:[(0,t.jsx)(a.S.Header,{...c}),s?(0,t.jsx)(a.S.Body,{children:s}):null,i||d||l?(0,t.jsxs)(a.S.Footer,{children:[i?(0,t.jsx)(a.S.HelpText,{children:i}):null,d?(0,t.jsx)(a.S.Actions,{children:d}):null,l?(0,t.jsx)(a.S.Watermark,{}):null]}):null,o?(0,t.jsx)(a.S.FooterText,{children:o}):null]})}},55284:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(21773);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,i)=>i?i.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},a=(...e)=>e.filter((e,r,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===r).join(" ").trim();var o={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 l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:l="",children:s,iconNode:c,...d},p)=>(0,t.createElement)("svg",{ref:p,...o,width:r,height:r,stroke:e,strokeWidth:n?24*Number(i)/Number(r):i,className:a("lucide",l),...!s&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]])),s=(e,r)=>{let i=(0,t.forwardRef)(({className:i,...o},s)=>(0,t.createElement)(l,{ref:s,iconNode:r,className:a(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=n(e),i}},77430:(e,r,i)=>{i.d(r,{N:()=>a});var t=i(61913),n=i(52682);let a=({size:e,centerIcon:r})=>(0,t.jsx)(o,{$size:e,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(d,{}),r?(0,t.jsx)(s,{children:r}):null]})}),o=n.I4.div` 7 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 8 9 display: inline-flex; 10 justify-content: center; 11 align-items: center; 12 13 @media all and (display-mode: standalone) { 14 margin-bottom: 30px; 15 } 16`,l=n.I4.div` 17 position: relative; 18 height: var(--spinner-size); 19 width: var(--spinner-size); 20 21 opacity: 1; 22 animation: fadein 200ms ease; 23`,s=n.I4.div` 24 position: absolute; 25 top: 0; 26 right: 0; 27 bottom: 0; 28 left: 0; 29 display: flex; 30 align-items: center; 31 justify-content: center; 32 svg, 33 img { 34 width: calc(var(--spinner-size) * 0.4); 35 height: calc(var(--spinner-size) * 0.4); 36 border-radius: var(--privy-border-radius-full); 37 } 38`,c=n.I4.div` 39 position: absolute; 40 top: 0; 41 right: 0; 42 bottom: 0; 43 left: 0; 44 width: var(--spinner-size); 45 height: var(--spinner-size); 46 47 && { 48 border: 4px solid var(--privy-color-border-default); 49 border-radius: 50%; 50 } 51`,d=n.I4.div` 52 position: absolute; 53 top: 0; 54 right: 0; 55 bottom: 0; 56 left: 0; 57 width: var(--spinner-size); 58 height: var(--spinner-size); 59 animation: spin 1200ms linear infinite; 60 61 && { 62 border: 4px solid; 63 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 64 border-radius: 50%; 65 } 66 67 @keyframes spin { 68 from { 69 transform: rotate(0deg); 70 } 71 to { 72 transform: rotate(360deg); 73 } 74 } 75`},78286:(e,r,i)=>{i.d(r,{S:()=>j});var t=i(61913),n=i(21773),a=i(52682),o=i(61825),l=i(20389),s=i(77430);let c=a.I4.div` 76 /* spacing tokens */ 77 --screen-space: 16px; /* base 1x = 16 */ 78 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 79 80 position: relative; 81 overflow: hidden; 82 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 83 height: 100%; 84 border-radius: var(--privy-border-radius-lg); 85`,d=a.I4.div` 86 display: flex; 87 flex-direction: column; 88 gap: calc(var(--screen-space) * 1.5); 89 width: 100%; 90 background: var(--privy-color-background); 91 padding: 0 var(--screen-space-lg) var(--screen-space); 92 height: 100%; 93 border-radius: var(--privy-border-radius-lg); 94`,p=a.I4.div` 95 position: relative; 96 display: flex; 97 flex-direction: column; 98`,h=(0,a.I4)(l.M)` 99 margin: 0 -8px; 100`,g=a.I4.div` 101 flex: 1 1 auto; 102 display: flex; 103 flex-direction: column; 104 105 /* Enable scrolling */ 106 overflow-y: auto; 107 108 /* Hide scrollbar but keep functionality when scrollable */ 109 /* Add padding for focus outline space, offset with negative margin */ 110 padding: 3px; 111 margin: -3px; 112 113 &::-webkit-scrollbar {
114 display: none; 115 } 116 scrollbar-gutter: stable both-edges; 117 scrollbar-width: none; 118 -ms-overflow-style: none; 119 120 /* Gradient effect for scroll indication */ 121 ${({$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} 122 123 background-repeat: no-repeat; 124 background-size: 125 100% 32px, 126 100% 16px; 127 background-attachment: local, scroll; 128`,u=a.I4.div` 129 display: flex; 130 flex-direction: column; 131 gap: var(--screen-space-lg); 132 margin-top: 1.5rem; 133`,v=a.I4.div` 134 text-align: center; 135 display: flex; 136 flex-direction: column; 137 align-items: center; 138 gap: var(--screen-space); 139`,x=a.I4.div` 140 display: flex; 141 flex-direction: column; 142 gap: 4px; 143`,f=a.I4.h3` 144 && { 145 font-size: 20px; 146 line-height: 32px; 147 font-weight: 500; 148 color: var(--privy-color-foreground); 149 margin: 0; 150 } 151`,m=a.I4.p` 152 && { 153 margin: 0; 154 font-size: 16px; 155 font-weight: 300; 156 line-height: 24px; 157 color: var(--privy-color-foreground); 158 } 159`,y=a.I4.div` 160 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)"}}}; 161 162 border-radius: 50%; 163 width: 64px; 164 height: 64px; 165 display: flex; 166 align-items: center; 167 justify-content: center; 168`,b=a.I4.div` 169 display: flex; 170 align-items: center; 171 justify-content: center; 172 173 img, 174 svg { 175 max-height: 90px; 176 max-width: 180px; 177 } 178`,w=a.I4.div` 179 display: flex; 180 flex-direction: column; 181 justify-content: center; 182 align-items: center; 183 width: 100%; 184 height: 82px; 185 186 > div { 187 position: relative; 188 } 189 190 > div > :first-child { 191 position: relative; 192 } 193 194 > div > :last-child { 195 position: absolute; 196 left: 50%; 197 top: 50%; 198 transform: translate(-50%, -50%); 199 } 200`,j=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),k=a.I4.div` 201 position: absolute; 202 top: 0; 203 left: calc(-1 * var(--screen-space-lg)); 204 width: calc(100% + calc(var(--screen-space-lg) * 2)); 205 height: 4px; 206 background: var(--privy-color-background-2); 207 border-top-left-radius: inherit; 208 border-top-right-radius: inherit; 209 overflow: hidden; 210`,C=(0,a.I4)(l.B)` 211 padding: 0; 212 && a { 213 padding: 0; 214 color: var(--privy-color-foreground-3); 215 } 216`,I=a.I4.div` 217 height: 100%; 218 width: ${({pct:e})=>e}%; 219 background: var(--privy-color-foreground-3); 220 border-radius: 2px; 221 transition: width 300ms ease-in-out; 222`,A=({step:e})=>e?(0,t.jsx)(k,{children:(0,t.jsx)(I,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:i,iconVariant:n,iconLoadingStatus:a,showBack:o,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:g,step:u,headerTitle:y,eyebrow:b,...w})=>(0,t.jsxs)(p,{...w,children:[(0,t.jsx)(h,{backFn:o?l:void 0,infoFn:s?c:void 0,onClose:d?g:void 0,title:y,eyebrow:b,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(v,{children:[i||n?(0,t.jsx)(j.Icon,{icon:i,variant:n,loadingStatus:a}):null,!(!e&&!r)&&(0,t.jsxs)(x,{children:[e&&(0,t.jsx)(f,{children:e}),r&&(0,t.jsx)(m,{children:r})]})]}),u&&(0,t.jsx)(A,{step:u})]}),(j.Body=n.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)(u,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,t.jsx)(z,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(S,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(C,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:i})=>"logo"===r&&e?(0,t.jsx)(b,"string"==typeof e?{children:(0,t.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,t.jsx)(w,{children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(o.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"}}):n.isValidElement(e)?n.cloneElement(e,{style:{width:"38px",height:"38px"}}):n.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"}}):n.isValidElement(e)?e:n.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 z=a.I4.div` 223 width: 100%; 224 display: flex; 225 flex-direction: column; 226 gap: calc(var(--screen-space) / 2); 227`,S=a.I4.div` 228 && { 229 margin: 0; 230 width: 100%; 231 text-align: center; 232 color: var(--privy-color-foreground-2); 233 font-size: 13px; 234 line-height: 20px; 235 236 & a { 237 text-decoration: underline; 238 } 239 } 240`,E=a.I4.div` 241 && { 242 margin-top: -1rem; 243 width: 100%; 244 text-align: center; 245 color: var(--privy-color-foreground-2); 246 font-size: 0.6875rem; // 11px 247 line-height: 1rem; // 16px 248 } 249`}
249,80369:(e,r,i)=>{i.d(r,{A:()=>t});let t=(0,i(55284).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])}}]);
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.