PageSourceSearch

https://ant.fun/_next/static/chunks/7623.0d826a710cec03a2.js

js ant.fun collected 2026-09-30 18:51:44 UTC 20,863 bytes, 350 lines download raw bytes

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

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.