1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4328],{6228:(e,r,i)=>{i.d(r,{S:()=>o});var t=i(95155),n=i(87932),a=i(60095);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.B,{...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.B,{...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]})}},24328:(e,r,i)=>{i.r(r),i.d(r,{EmbeddedWalletCreatedScreen:()=>p,EmbeddedWalletCreatedScreenView:()=>d,default:()=>p});var t=i(95155),n=i(24381),a=i(12115),o=i(97987),l=i(43425),s=i(17801),c=i(6228);i(50205);let d=({title:e,description:r,onClose:i})=>(0,t.jsx)(c.S,{title:e,subtitle:r,icon:n.A,iconVariant:"success",watermark:!0,onBack:i}),p={component:()=>{let{user:e}=(0,o.u)(),{closePrivyModal:r,isNewUserThisSession:i,updateWallets:n}=(0,l.u)(),{data:c,onUserCloseViaDialogOrKeybindRef:p}=(0,s.u)(),u=(0,o.a)(),{onSuccess:h,onFailure:g,callAuthOnSuccessOnClose:v}=c.createWallet,x=()=>{let i=(0,o.M)(e)??(0,o.N)(e);e&&i?(n(),h({user:e,account:i})):g(Error("Failed to create wallet")),r({shouldCallAuthOnSuccess:v})};(0,a.useEffect)(()=>{let e=setTimeout(x,o.T);return()=>clearTimeout(e)},[]),p.current=x;let f=i&&!((e?.linkedAccounts?.length??0)>1);return(0,t.jsx)(d,{title:f?"Welcome"+(u?.name?` to ${u?.name}`:""):"All set!",description:f?"You've successfully created an account.":"Your account is secured.",onClose:x})}}},24381:(e,r,i)=>{i.d(r,{A:()=>t});let t=(0,i(42407).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},39725:(e,r,i)=>{i.d(r,{N:()=>a});var t=i(95155),n=i(11069);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` 2 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 3 4 display: inline-flex; 5 justify-content: center; 6 align-items: center; 7 8 @media all and (display-mode: standalone) { 9 margin-bottom: 30px; 10 } 11`,l=n.I4.div` 12 position: relative; 13 height: var(--spinner-size); 14 width: var(--spinner-size); 15 16 opacity: 1; 17 animation: fadein 200ms ease; 18`,s=n.I4.div` 19 position: absolute; 20 inset: 0; 21 display: flex; 22 align-items: center; 23 justify-content: center; 24 svg, 25 img { 26 width: calc(var(--spinner-size) * 0.4); 27 height: calc(var(--spinner-size) * 0.4); 28 border-radius: var(--privy-border-radius-full); 29 } 30`,c=n.I4.div` 31 position: absolute; 32 inset: 0; 33 width: var(--spinner-size); 34 height: var(--spinner-size); 35 36 && { 37 border: 4px solid var(--privy-color-border-default); 38 border-radius: 50%; 39 } 40`,d=n.I4.div` 41 position: absolute; 42 inset: 0; 43 width: var(--spinner-size); 44 height: var(--spinner-size); 45 animation: spin 1200ms linear infinite; 46 47 && { 48 border: 4px solid; 49 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 50 border-radius: 50%; 51 } 52 53 @keyframes spin { 54 from { 55 transform: rotate(0deg); 56 } 57 to { 58 transform: rotate(360deg); 59 } 60 } 61`},42407:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(12115);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=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.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)((e,r)=>{let{color:i="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:p,...u}=e;return(0,t.createElement)("svg",{ref:r,...o,width:n,height:n,stroke:i,strokeWidth:s?24*Number(l)/Number(n):l,className:a("lucide",c),...!d&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(u)&&{"aria-hidden":"true"},...u},[...p.map(e=>{let[r,i]=e;return(0,t.createElement)(r,i)}),...Array.isArray(d)?d:[d]])}),s=(e,r)=>{let i=(0,t.forwardRef)((i,o)=>{let{className:s,...c}=i;return(0,t.createElement)(l,{ref:o,iconNode:r,className:a("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...c})});return i.displayName=n(e),i}},60095:(e,r,i)=>{i.d(r,{S:()=>k}
61);var t=i(95155),n=i(12115),a=i(11069),o=i(24636),l=i(1441),s=i(87932),c=i(39725);let d=a.I4.div` 62 /* spacing tokens */ 63 --screen-space: 16px; /* base 1x = 16 */ 64 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 65 66 position: relative; 67 overflow: hidden; 68 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 69 height: 100%; 70 border-radius: var(--privy-border-radius-lg); 71`,p=a.I4.div` 72 display: flex; 73 flex-direction: column; 74 gap: calc(var(--screen-space) * 1.5); 75 width: 100%; 76 background: var(--privy-color-background); 77 padding: 0 var(--screen-space-lg) var(--screen-space); 78 height: 100%; 79 border-radius: var(--privy-border-radius-lg); 80`,u=a.I4.div` 81 position: relative; 82 display: flex; 83 flex-direction: column; 84`,h=(0,a.I4)(s.M)` 85 margin: 0 -8px; 86`,g=a.I4.div` 87 flex: 1 1 auto; 88 display: flex; 89 flex-direction: column; 90 91 /* Enable scrolling */ 92 overflow-y: auto; 93 94 /* Hide scrollbar but keep functionality when scrollable */ 95 /* Add padding for focus outline space, offset with negative margin */ 96 padding: 3px; 97 margin: -3px; 98 99 &::-webkit-scrollbar {
100 display: none; 101 } 102 scrollbar-gutter: stable both-edges; 103 scrollbar-width: none; 104 -ms-overflow-style: none; 105 106 /* Gradient effect for scroll indication */ 107 ${({$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} 108 109 background-repeat: no-repeat; 110 background-size: 111 100% 32px, 112 100% 16px; 113 background-attachment: local, scroll; 114`,v=a.I4.div` 115 display: flex; 116 flex-direction: column; 117 gap: var(--screen-space-lg); 118 margin-top: 1.5rem; 119`,x=a.I4.div` 120 text-align: center; 121 display: flex; 122 flex-direction: column; 123 align-items: center; 124 gap: var(--screen-space); 125`,f=a.I4.div` 126 display: flex; 127 flex-direction: column; 128 gap: 4px; 129`,m=a.I4.h3` 130 && { 131 font-size: 20px; 132 line-height: 32px; 133 font-weight: 500; 134 color: var(--privy-color-foreground); 135 margin: 0; 136 } 137`,y=a.I4.p` 138 && { 139 margin: 0; 140 font-size: 16px; 141 font-weight: 300; 142 line-height: 24px; 143 color: var(--privy-color-foreground); 144 } 145`,b=a.I4.div` 146 background: ${({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg)";case"warning":return"var(--privy-color-warn)";case"error":return"var(--privy-color-error-bg)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}}; 147 148 border-radius: 50%; 149 width: 64px; 150 height: 64px; 151 display: flex; 152 align-items: center; 153 justify-content: center; 154`,w=a.I4.div` 155 display: flex; 156 align-items: center; 157 justify-content: center; 158 159 img, 160 svg { 161 max-height: 90px; 162 max-width: 180px; 163 } 164`,j=a.I4.div` 165 display: flex; 166 flex-direction: column; 167 justify-content: center; 168 align-items: center; 169 width: 100%; 170 height: 82px; 171 172 > div { 173 position: relative; 174 } 175 176 > div > :first-child { 177 position: relative; 178 } 179 180 > div > :last-child { 181 position: absolute; 182 left: 50%; 183 top: 50%; 184 transform: translate(-50%, -50%); 185 } 186`,k=({children:e,...r})=>(0,t.jsx)(d,{children:(0,t.jsx)(p,{...r,children:e})}),I=a.I4.div` 187 position: absolute; 188 top: 0; 189 left: calc(-1 * var(--screen-space-lg)); 190 width: calc(100% + calc(var(--screen-space-lg) * 2)); 191 height: 4px; 192 background: var(--privy-color-background-2); 193 border-top-left-radius: inherit; 194 border-top-right-radius: inherit; 195 overflow: hidden; 196`,S=(0,a.I4)(l.B)` 197 padding: 0; 198 && a { 199 padding: 0; 200 color: var(--privy-color-foreground-3); 201 } 202`,z=a.I4.div` 203 height: 100%; 204 width: ${({pct:e})=>e}%; 205 background: var(--privy-color-foreground-3); 206 border-radius: 2px; 207 transition: width 300ms ease-in-out; 208`,C=({step:e})=>e?(0,t.jsx)(I,{children:(0,t.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;k.Header=({title:e,subtitle:r,icon:i,iconVariant:n,iconLoadingStatus:a,showBack:o,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:p,step:g,headerTitle:v,eyebrow:b,...w})=>(0,t.jsxs)(u,{...w,children:[(0,t.jsx)(h,{backFn:o?l:void 0,infoFn:s?c:void 0,onClose:d?p:void 0,title:v,eyebrow:b,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(x,{children:[i||n?(0,t.jsx)(k.Icon,{icon:i,variant:n,loadingStatus:a}):null,!(!e&&!r)&&(0,t.jsxs)(f,{children:[e&&(0,t.jsx)(m,{children:e}),r&&(0,t.jsx)(y,{children:r})]})]}),g&&(0,t.jsx)(C,{step:g})]}),(k.Body=n.forwardRef(({children:e,...r},i)=>(0,t.jsx)(g,{ref:i,...r,children:e}))).displayName="Screen.Body",k.Footer=({children:e,...r})=>(0,t.jsx)(v,{id:"privy-content-footer-container",...r,children:e}),k.Actions=({children:e,...r})=>(0,t.jsx)(A,{...r,children:e}),k.HelpText=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),k.FooterText=({children:e,...r})=>(0,t.jsx)($,{...r,children:e}),k.Watermark=()=>(0,t.jsx)(S,{}),k.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:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,t.jsx)(j,{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)(b,{$variant:r,children:(0,t.jsx)(c.N,{size:"64px"})}):(0,t.jsx)(b,{$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 A=a.I4.div` 209 width: 100%; 210 display: flex; 211 flex-direction: column; 212 gap: calc(var(--screen-space) / 2); 213`,E=a.I4.div` 214 && { 215 margin: 0; 216 width: 100%; 217 text-align: center; 218 color: var(--privy-color-foreground-2); 219 font-size: 13px; 220 line-height: 20px; 221 222 & a { 223 text-decoration: underline; 224 } 225 } 226`,$=a.I4.div` 227 && { 228 margin-top: -1rem; 229 width: 100%; 230 text-align: center; 231 color: var(--privy-color-foreground-2); 232 font-size: 0.6875rem; /* 11px */ 233 line-height: 1rem; /* 16px */ 234 } 235`}}]);
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.