1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424],{808:(e,r,i)=>{i.d(r,{L:()=>o});var t=i(12236);let o=t.I4.span` 2 color: var(--privy-color-foreground-3); 3 font-size: 0.75rem; 4 font-weight: 500; 5 line-height: 1.125rem; /* 150% */ 6`},5395:(e,r,i)=>{i.d(r,{S:()=>j});var t=i(67194),o=i(38962),n=i(12236),a=i(79830),l=i(67528),s=i(46310);let d=n.I4.div` 7 /* spacing tokens */ 8 --screen-space: 16px; /* base 1x = 16 */ 9 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 10 11 position: relative; 12 overflow: hidden; 13 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 14 height: 100%; 15 border-radius: var(--privy-border-radius-lg); 16`,c=n.I4.div` 17 display: flex; 18 flex-direction: column; 19 gap: calc(var(--screen-space) * 1.5); 20 width: 100%; 21 background: var(--privy-color-background); 22 padding: 0 var(--screen-space-lg) var(--screen-space); 23 height: 100%; 24 border-radius: var(--privy-border-radius-lg); 25`,p=n.I4.div` 26 position: relative; 27 display: flex; 28 flex-direction: column; 29`,h=(0,n.I4)(l.M)` 30 margin: 0 -8px; 31`,g=n.I4.div` 32 flex: 1 1 auto; 33 display: flex; 34 flex-direction: column; 35 36 /* Enable scrolling */ 37 overflow-y: auto; 38 39 /* Hide scrollbar but keep functionality when scrollable */ 40 /* Add padding for focus outline space, offset with negative margin */ 41 padding: 3px; 42 margin: -3px; 43 44 &::-webkit-scrollbar {
45 display: none; 46 } 47 scrollbar-gutter: stable both-edges; 48 scrollbar-width: none; 49 -ms-overflow-style: none; 50 51 /* Gradient effect for scroll indication */ 52 ${({$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} 53 54 background-repeat: no-repeat; 55 background-size: 56 100% 32px, 57 100% 16px; 58 background-attachment: local, scroll; 59`,u=n.I4.div` 60 display: flex; 61 flex-direction: column; 62 gap: var(--screen-space-lg); 63`,v=n.I4.div` 64 text-align: center; 65 display: flex; 66 flex-direction: column; 67 align-items: center; 68 gap: var(--screen-space); 69`,x=n.I4.div` 70 display: flex; 71 flex-direction: column; 72 gap: 4px; 73`,f=n.I4.h3` 74 && { 75 font-size: 20px; 76 line-height: 32px; 77 font-weight: 500; 78 color: var(--privy-color-foreground); 79 margin: 0; 80 } 81`,y=n.I4.p` 82 && { 83 margin: 0; 84 font-size: 16px; 85 font-weight: 300; 86 line-height: 24px; 87 color: var(--privy-color-foreground); 88 } 89`,m=n.I4.div` 90 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)"}}}; 91 92 border-radius: 50%; 93 width: 64px; 94 height: 64px; 95 display: flex; 96 align-items: center; 97 justify-content: center; 98`,b=n.I4.div` 99 display: flex; 100 align-items: center; 101 justify-content: center; 102 103 img, 104 svg { 105 max-height: 90px; 106 max-width: 180px; 107 } 108`,w=n.I4.div` 109 display: flex; 110 flex-direction: column; 111 justify-content: center; 112 align-items: center; 113 width: 100%; 114 height: 82px; 115 116 > div { 117 position: relative; 118 } 119 120 > div > :first-child { 121 position: relative; 122 } 123 124 > div > :last-child { 125 position: absolute; 126 left: 50%; 127 top: 50%; 128 transform: translate(-50%, -50%); 129 } 130`,j=({children:e,...r})=>(0,t.jsx)(d,{children:(0,t.jsx)(c,{...r,children:e})}),k=n.I4.div` 131 position: absolute; 132 top: 0; 133 left: calc(-1 * var(--screen-space-lg)); 134 width: calc(100% + calc(var(--screen-space-lg) * 2)); 135 height: 4px; 136 background: var(--privy-color-background-2); 137 border-top-left-radius: inherit; 138 border-top-right-radius: inherit; 139 overflow: hidden; 140`,I=(0,n.I4)(l.B)` 141 padding: 0; 142 && a { 143 padding: 0; 144 color: var(--privy-color-foreground-3); 145 } 146`,C=n.I4.div` 147 height: 100%; 148 width: ${({pct:e})=>e}%; 149 background: var(--privy-color-foreground-3); 150 border-radius: 2px; 151 transition: width 300ms ease-in-out; 152`,z=({step:e})=>e?(0,t.jsx)(k,{children:(0,t.jsx)(C,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:i,iconVariant:o,iconLoadingStatus:n,showBack:a,onBack:l,showInfo:s,onInfo:d,showClose:c,onClose:g,step:u,...m})=>(0,t.jsxs)(p,{...m,children:[(0,t.jsx)(h,{backFn:a?l:void 0,infoFn:s?d:void 0,onClose:c?g:void 0,closeable:c}),(i||o||e||r)&&(0,t.jsxs)(v,{children:[i||o?(0,t.jsx)(j.Icon,{icon:i,variant:o,loadingStatus:n}):null,!(!e&&!r)&&(0,t.jsxs)(x,{children:[e&&(0,t.jsx)(f,{children:e}),r&&(0,t.jsx)(y,{children:r})]})]}),u&&(0,t.jsx)(z,{step:u})]}),(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)(u,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(A,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(I,{}),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:""})}:o.isValidElement(e)?{children:e}:{children:o.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)(a.a4,{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)(m,{$variant:r,children:(0,t.jsx)(s.N,{size:"64px"})}):(0,t.jsx)(m,{$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 E=n.I4.div` 153 width: 100%; 154 display: flex; 155 flex-direction: column; 156 gap: calc(var(--screen-space) / 2); 157`,A=n.I4.div` 158 && { 159 margin: 0; 160 width: 100%; 161 text-align: center; 162 color: var(--privy-color-foreground-3); 163 font-size: 14px; 164 line-height: 22px; 165 166 & a { 167 color: var(--privy-color-accent); 168 } 169 } 170`},15420:(e,r,i)=>{i.d(r,{A:()=>t});
170let t=(0,i(46332).A)("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"}]])},28161:(e,r,i)=>{i.d(r,{W:()=>a});var t=i(67194),o=i(69965),n=i(12236);let a=({children:e,theme:r})=>(0,t.jsxs)(l,{$theme:r,children:[(0,t.jsx)(o.A,{width:"20px",height:"20px",color:"var(--privy-color-icon-warning)",strokeWidth:2,style:{flexShrink:0}}),(0,t.jsx)(s,{$theme:r,children:e})]}),l=n.I4.div` 171 display: flex; 172 gap: 0.75rem; 173 background-color: var(--privy-color-warn-bg); 174 align-items: flex-start; 175 padding: 1rem; 176 border-radius: 0.75rem; 177`,s=n.I4.div` 178 color: ${e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"}; 179 font-size: 1rem; 180 font-weight: 400; 181 line-height: 1.5; 182 flex: 1; 183 text-align: left; 184`},29320:(e,r,i)=>{i.d(r,{W:()=>b});var t=i(67194),o=i(33527),n=i(15420),a=i(38962),l=i(12236),s=i(67528),d=i(40805),c=i(808),p=i(63241),h=i(55478);let g=(0,l.I4)(h.B)` 185 && { 186 padding: 0.75rem; 187 height: 56px; 188 } 189`,u=l.I4.div` 190 display: flex; 191 align-items: center; 192 justify-content: space-between; 193 width: 100%; 194`,v=l.I4.div` 195 display: flex; 196 flex-direction: column; 197 gap: 0; 198`,x=l.I4.div` 199 font-size: 12px; 200 line-height: 1rem; 201 color: var(--privy-color-foreground-3); 202`,f=(0,l.I4)(c.L)` 203 text-align: left; 204 margin-bottom: 0.5rem; 205`,y=(0,l.I4)(d.E)` 206 margin-top: 0.25rem; 207`,m=(0,l.I4)(s.S)` 208 && { 209 gap: 0.375rem; 210 font-size: 14px; 211 } 212`,b=({errMsg:e,balance:r,address:i,className:l,title:s,showCopyButton:d=!1})=>{let[c,h]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(c){let e=setTimeout(()=>h(!1),3e3);return()=>clearTimeout(e)}},[c]),(0,t.jsxs)("div",{children:[s&&(0,t.jsx)(f,{children:s}),(0,t.jsx)(g,{className:l,$state:e?"error":void 0,children:(0,t.jsxs)(u,{children:[(0,t.jsxs)(v,{children:[(0,t.jsx)(p.A,{address:i,showCopyIcon:!1}),void 0!==r&&(0,t.jsx)(x,{children:r})]}),d&&(0,t.jsx)(m,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(i).then(()=>h(!0)).catch(console.error)},size:"sm",children:(0,t.jsxs)(t.Fragment,c?{children:["Copied",(0,t.jsx)(o.A,{size:14})]}:{children:["Copy",(0,t.jsx)(n.A,{size:14})]})})]})}),e&&(0,t.jsx)(y,{children:e})]})}},33527:(e,r,i)=>{i.d(r,{A:()=>t});let t=(0,i(46332).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},40805:(e,r,i)=>{i.d(r,{E:()=>o});var t=i(12236);let o=t.I4.span` 213 text-align: left; 214 font-size: 0.75rem; 215 font-weight: 500; 216 line-height: 1.125rem; /* 150% */ 217 218 color: var(--privy-color-error); 219`},46310:(e,r,i)=>{i.d(r,{N:()=>n});var t=i(67194),o=i(12236);let n=({size:e,centerIcon:r})=>(0,t.jsx)(a,{$size:e,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(d,{}),(0,t.jsx)(c,{}),r?(0,t.jsx)(s,{children:r}):null]})}),a=o.I4.div` 220 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 221 222 display: inline-flex; 223 justify-content: center; 224 align-items: center; 225 226 @media all and (display-mode: standalone) { 227 margin-bottom: 30px; 228 } 229`,l=o.I4.div` 230 position: relative; 231 height: var(--spinner-size); 232 width: var(--spinner-size); 233 234 opacity: 1; 235 animation: fadein 200ms ease; 236`,s=o.I4.div` 237 position: absolute; 238 top: 0; 239 right: 0; 240 bottom: 0; 241 left: 0; 242 display: flex; 243 align-items: center; 244 justify-content: center; 245 svg, 246 img { 247 width: calc(var(--spinner-size) * 0.4); 248 height: calc(var(--spinner-size) * 0.4); 249 border-radius: var(--privy-border-radius-full); 250 } 251`,d=o.I4.div` 252 position: absolute; 253 top: 0; 254 right: 0; 255 bottom: 0; 256 left: 0; 257 width: var(--spinner-size); 258 height: var(--spinner-size); 259 260 && { 261 border: 4px solid var(--privy-color-border-default); 262 border-radius: 50%; 263 } 264`,c=o.I4.div` 265 position: absolute; 266 top: 0; 267 right: 0; 268 bottom: 0; 269 left: 0; 270 width: var(--spinner-size); 271 height: var(--spinner-size); 272 animation: spin 1200ms linear infinite; 273 274 && { 275 border: 4px solid; 276 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 277 border-radius: 50%; 278 } 279 280 @keyframes spin { 281 from { 282 transform: rotate(0deg); 283 } 284 to { 285 transform: rotate(360deg); 286 } 287 } 288`}
288,46332:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(38962);let o=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)},n=(...e)=>e.filter((e,r,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===r).join(" ").trim();var a={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:o,className:l="",children:s,iconNode:d,...c},p)=>(0,t.createElement)("svg",{ref:p,...a,width:r,height:r,stroke:e,strokeWidth:o?24*Number(i)/Number(r):i,className:n("lucide",l),...!s&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]])),s=(e,r)=>{let i=(0,t.forwardRef)(({className:i,...a},s)=>(0,t.createElement)(l,{ref:s,iconNode:r,className:n(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...a}));return i.displayName=o(e),i}},55478:(e,r,i)=>{i.d(r,{B:()=>n,a:()=>o});var t=i(12236);let o=(0,t.AH)` 289 && { 290 border-width: 1px; 291 padding: 0.5rem 1rem; 292 } 293 294 width: 100%; 295 text-align: left; 296 border: solid 1px var(--privy-color-foreground-4); 297 border-radius: var(--privy-border-radius-md); 298 display: flex; 299 justify-content: space-between; 300 align-items: center; 301 302 ${e=>"error"===e.$state?"\n border-color: var(--privy-color-error);\n background: var(--privy-color-error-bg);\n ":""} 303`,n=t.I4.div` 304 ${o} 305`},63241:(e,r,i)=>{i.d(r,{A:()=>c});var t=i(67194),o=i(33527),n=i(15420),a=i(38962),l=i(12236),s=i(79830),d=i(67528);let c=({address:e,showCopyIcon:r,url:i,className:l})=>{let[c,u]=(0,a.useState)(!1);function v(r){r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>u(!0)).catch(console.error)}return(0,a.useEffect)(()=>{if(c){let e=setTimeout(()=>u(!1),3e3);return()=>clearTimeout(e)}},[c]),(0,t.jsxs)(p,i?{children:[(0,t.jsx)(g,{title:e,className:l,href:`${i}/address/${e}`,target:"_blank",children:(0,s.D)(e)}),r&&(0,t.jsx)(d.S,{onClick:v,size:"sm",style:{gap:"0.375rem"},children:(0,t.jsxs)(t.Fragment,c?{children:["Copied",(0,t.jsx)(o.A,{size:16})]}:{children:["Copy",(0,t.jsx)(n.A,{size:16})]})})]}:{children:[(0,t.jsx)(h,{title:e,className:l,children:(0,s.D)(e)}),r&&(0,t.jsx)(d.S,{onClick:v,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:(0,t.jsxs)(t.Fragment,c?{children:["Copied",(0,t.jsx)(o.A,{size:14})]}:{children:["Copy",(0,t.jsx)(n.A,{size:14})]})})]})},p=l.I4.span` 306 display: inline-flex; 307 align-items: center; 308 gap: 0.5rem; 309`,h=l.I4.span` 310 font-size: 14px; 311 font-weight: 500; 312 color: var(--privy-color-foreground); 313`,g=l.I4.a` 314 font-size: 14px; 315 color: var(--privy-color-foreground); 316 text-decoration: none; 317 318 &:hover { 319 text-decoration: underline; 320 } 321`},69965:(e,r,i)=>{i.d(r,{A:()=>o});var t=i(38962);let o=t.forwardRef(function({title:e,titleId:r,...i},o){return t.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:o,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))})},84174:(e,r,i)=>{i.d(r,{S:()=>a});var t=i(67194),o=i(67528),n=i(5395);let a=({primaryCta:e,secondaryCta:r,helpText:i,watermark:a=!0,children:l,...s})=>{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:s.id,className:s.className,children:[(0,t.jsx)(n.S.Header,{...s}),l?(0,t.jsx)(n.S.Body,{children:l}):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]})}}
321,84424:(e,r,i)=>{i.r(r),i.d(r,{EmbeddedWalletKeyExportScreen:()=>m,EmbeddedWalletKeyExportView:()=>g,default:()=>m});var t=i(67194),o=i(38962),n=i(12236),a=i(27204),l=i(28161),s=i(29320),d=i(23761),c=i(53427),p=i(26954),h=i(84174);i(81898),i(44726),i(52438);let g=({address:e,accessToken:r,appConfigTheme:i,onClose:o,isLoading:n=!1,exportButtonProps:a,onBack:d})=>(0,t.jsx)(h.S,{title:"Export wallet",subtitle:(0,t.jsxs)(t.Fragment,{children:["Copy either your private key or seed phrase to export your wallet."," ",(0,t.jsx)("a",{href:"https://privy-io.notion.site/Transferring-your-account-9dab9e16c6034a7ab1ff7fa479b02828",target:"blank",rel:"noopener noreferrer",children:"Learn more"})]}),onClose:o,onBack:d,showBack:!!d,watermark:!0,children:(0,t.jsxs)(u,{children:[(0,t.jsx)(l.W,{theme:i,children:"Never share your private key or seed phrase with anyone."}),(0,t.jsx)(s.W,{title:"Your wallet",address:e,showCopyButton:!0}),(0,t.jsx)("div",{style:{width:"100%"},children:n?(0,t.jsx)(v,{}):r&&a&&(0,t.jsx)(y,{accessToken:r,dimensions:{height:"44px"},...a})})]})}),u=n.I4.div` 322 display: flex; 323 flex-direction: column; 324 gap: 1.25rem; 325 text-align: left; 326`,v=()=>(0,t.jsx)(x,{children:(0,t.jsx)(f,{children:"Loading..."})}),x=n.I4.div` 327 display: flex; 328 gap: 12px; 329 height: 44px; 330`,f=n.I4.div` 331 display: flex; 332 align-items: center; 333 justify-content: center; 334 width: 100%; 335 height: 100%; 336 font-size: 16px; 337 font-weight: 500; 338 border-radius: var(--privy-border-radius-md); 339 background-color: var(--privy-color-background-2); 340 color: var(--privy-color-foreground-3); 341`;function y(e){let[r,i]=(0,o.useState)(e.dimensions.width),[n,l]=(0,o.useState)(void 0),s=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(s.current&&void 0===r){let{width:e}=s.current.getBoundingClientRect();i(e)}let e=getComputedStyle(document.documentElement);l({background:e.getPropertyValue("--privy-color-background"),background2:e.getPropertyValue("--privy-color-background-2"),foreground3:e.getPropertyValue("--privy-color-foreground-3"),foregroundAccent:e.getPropertyValue("--privy-color-foreground-accent"),accent:e.getPropertyValue("--privy-color-accent"),accentDark:e.getPropertyValue("--privy-color-accent-dark"),success:e.getPropertyValue("--privy-color-success"),colorScheme:e.getPropertyValue("color-scheme")})},[]);let d="ethereum"===e.chainType&&!e.imported&&!e.isUnifiedWallet;return(0,t.jsx)("div",{ref:s,children:r&&(0,t.jsxs)(b,{children:[(0,t.jsx)("iframe",{style:{position:"absolute",zIndex:1},width:r,height:e.dimensions.height,allow:"clipboard-write self *",src:(0,a.j)({origin:e.origin,path:`/apps/${e.appId}/embedded-wallets/export`,query:e.isUnifiedWallet?{v:"1-unified",wallet_id:e.walletId,client_id:e.appClientId,width:`${r}px`,caid:e.clientAnalyticsId,phrase_export:d,...n}:{v:"1",entropy_id:e.entropyId,entropy_id_verifier:e.entropyIdVerifier,hd_wallet_index:e.hdWalletIndex,chain_type:e.chainType,client_id:e.appClientId,width:`${r}px`,caid:e.clientAnalyticsId,phrase_export:d,...n},hash:{token:e.accessToken}})}),(0,t.jsx)(w,{children:"Loading..."}),d&&(0,t.jsx)(w,{children:"Loading..."})]})})}let m={component:()=>{let[e,r]=(0,o.useState)(null),{authenticated:i,user:n}=(0,p.u)(),{closePrivyModal:a,createAnalyticsEvent:l,clientAnalyticsId:s,client:h}=(0,c.u)(),u=(0,d.u)(),{data:v,onUserCloseViaDialogOrKeybindRef:x}=(0,p.a)(),{onFailure:f,onSuccess:y,origin:m,appId:b,appClientId:w,entropyId:j,entropyIdVerifier:k,walletId:I,hdWalletIndex:C,chainType:z,address:E,isUnifiedWallet:A,imported:S,showBackButton:$}=v.keyExport,B=e=>{a({shouldCallAuthOnSuccess:!1}),f("string"==typeof e?Error(e):e)},T=()=>{a({shouldCallAuthOnSuccess:!1}),y(),l({eventName:"embedded_wallet_key_export_completed",payload:{walletAddress:E}})};return(0,o.useEffect)(()=>{if(!i)return B("User must be authenticated before exporting their wallet");h.getAccessToken().then(r).catch(B)},[i,n]),x.current=T,(0,t.jsx)(g,{address:E,accessToken:e,appConfigTheme:u.appearance.palette.colorScheme,onClose:T,isLoading:!e,onBack:$?T:void 0,exportButtonProps:e?{origin:m,appId:b,appClientId:w,clientAnalyticsId:s,entropyId:j,entropyIdVerifier:k,walletId:I,hdWalletIndex:C,isUnifiedWallet:A,imported:S,chainType:z}:void 0})}},b=n.I4.div` 342 overflow: visible; 343 position: relative; 344 overflow: none; 345 height: 44px; 346 display: flex; 347 gap: 12px; 348`,w=n.I4.div` 349 display: flex; 350 align-items: center; 351 justify-content: center; 352 width: 100%; 353 height: 100%; 354 font-size: 16px; 355 font-weight: 500; 356 border-radius: var(--privy-border-radius-md); 357 background-color: var(--privy-color-background-2); 358 color: var(--privy-color-foreground-3); 359`}}]);
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.