PageSourceSearch

https://amind.ai/_next/static/chunks/2057.e5abcaae0e3f839f.js

js amind.ai collected 2026-10-05 11:49:06 UTC 12,747 bytes, 252 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2057],{12318:(e,r,i)=>{i.d(r,{S:()=>j});var t=i(95155),n=i(12115),a=i(66908),o=i(47640),l=i(53215),s=i(95119);let c=a.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`,d=a.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`,p=a.I4.div`
21  position: relative;
22  display: flex;
23  flex-direction: column;
24`,h=(0,a.I4)(l.M)`
25  margin: 0 -8px;
26`,g=a.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`,u=a.I4.div`
55  display: flex;
56  flex-direction: column;
57  gap: var(--screen-space-lg);
58  margin-top: 1.5rem;
59`,x=a.I4.div`
60  text-align: center;
61  display: flex;
62  flex-direction: column;
63  align-items: center;
64  gap: var(--screen-space);
65`,v=a.I4.div`
66  display: flex;
67  flex-direction: column;
68  gap: 4px;
69`,f=a.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=a.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`,y=a.I4.div`
86  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)"}}};
87
88  border-radius: 50%;
89  width: 64px;
90  height: 64px;
91  display: flex;
92  align-items: center;
93  justify-content: center;
94`,b=a.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`,w=a.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`,j=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),k=a.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`,L=(0,a.I4)(l.B)`
137  padding: 0;
138  && a {
139    padding: 0;
140    color: var(--privy-color-foreground-3);
141  }
142`,C=a.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`,I=({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:n,iconLoadingStatus:a,showBack:o,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:g,step:u,headerTitle:y,...b})=>(0,t.jsxs)(p,{...b,children:[(0,t.jsx)(h,{backFn:o?l:void 0,infoFn:s?c:void 0,onClose:d?g:void 0,title:y,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(x,{children:[i||n?(0,t.jsx)(j.Icon,{icon:i,variant:n,loadingStatus:a}):null,!(!e&&!r)&&(0,t.jsxs)(v,{children:[e&&(0,t.jsx)(f,{children:e}),r&&(0,t.jsx)(m,{children:r})]})]}),u&&(0,t.jsx)(I,{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)(S,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(z,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(L,{}),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.N,{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 S=a.I4.div`
149  width: 100%;
150  display: flex;
151  flex-direction: column;
152  gap: calc(var(--screen-space) / 2);
153`,z=a.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`,E=a.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`}
175,30024:(e,r,i)=>{i.d(r,{S:()=>o});var t=i(95155),n=i(53215),a=i(12318);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]})}},32057:(e,r,i)=>{i.r(r),i.d(r,{ConnectLedgerScreen:()=>h,ConnectLedgerScreenComponent:()=>p,ConnectLedgerScreenView:()=>d,default:()=>h});var t=i(95155);let n=(0,i(78340).A)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);var a=i(66908),o=i(62145),l=i(30024),s=i(80714);i(12115),i(12100),i(67884),i(4154),i(82849),i(95236);let c=e=>(0,t.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.625 12.48 397.647 399.546",width:"2500",height:"674",preserveAspectRatio:"none",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"#333745",d:"M 333.9 12.8 L 150.9 12.8 L 150.9 258.4 L 396.5 258.4 L 396.5 76.7 C 396.6 42.2 368.4 12.8 333.9 12.8 Z M 94.7 12.8 L 64 12.8 C 29.5 12.8 0 40.9 0 76.8 L 0 107.5 L 94.7 107.5 L 94.7 12.8 Z M 0 165 L 94.7 165 L 94.7 259.7 L 0 259.7 L 0 165 Z M 301.9 410.6 L 332.6 410.6 C 367.1 410.6 396.6 382.5 396.6 346.6 L 396.6 316 L 301.9 316 L 301.9 410.6 Z M 150.9 316 L 245.6 316 L 245.6 410.7 L 150.9 410.7 L 150.9 316 Z M 0 316 L 0 346.7 C 0 381.2 28.1 410.7 64 410.7 L 94.7 410.7 L 94.7 316 L 0 316 Z"})})}),d=({onContinueWithLedger:e,onContinueWithoutLedger:r,title:i="Phantom supports Ledger",subtitle:a="Are you using a Ledger hardware wallet?\nContinue to sign with Ledger"})=>(0,t.jsx)(l.S,{title:i,subtitle:(0,t.jsx)(u,{children:a}),primaryCta:{label:"Continue with Ledger",onClick:e},secondaryCta:{label:"Continue without Ledger",onClick:r},watermark:!0,children:(0,t.jsxs)(g,{children:[(0,t.jsx)(s.H,{style:{width:"48px",height:"48px"}}),(0,t.jsx)(n,{strokeWidth:2,color:"var(--privy-color-icon-subtle)",width:22,height:22}),(0,t.jsx)(c,{style:{width:"48px",height:"48px"}})]})});function p(){let{data:e,setModalData:r,navigate:i}=(0,o.a)();return(0,t.jsx)(d,{onContinueWithLedger:function(){r({...e,login:{...e?.login,isSigningInWithLedgerSolana:!0}}),i("ConnectionStatusScreen")},onContinueWithoutLedger:function(){r({...e,login:{...e?.login,isSigningInWithLedgerSolana:!1}}),i("ConnectionStatusScreen")}})}let h={component:p},g=a.I4.div`
176  display: flex;
177  align-items: center;
178  justify-content: center;
179  gap: 8px;
180  margin-bottom: var(--screen-space);
181`,u=a.I4.span`
182  white-space: pre-wrap;
183`},78340:(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=(...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}}
183,95119:(e,r,i)=>{i.d(r,{N:()=>a});var t=i(95155),n=i(66908);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`
184  --spinner-size: ${e=>e.$size?e.$size:"96px"};
185
186  display: inline-flex;
187  justify-content: center;
188  align-items: center;
189
190  @media all and (display-mode: standalone) {
191    margin-bottom: 30px;
192  }
193`,l=n.I4.div`
194  position: relative;
195  height: var(--spinner-size);
196  width: var(--spinner-size);
197
198  opacity: 1;
199  animation: fadein 200ms ease;
200`,s=n.I4.div`
201  position: absolute;
202  top: 0;
203  right: 0;
204  bottom: 0;
205  left: 0;
206  display: flex;
207  align-items: center;
208  justify-content: center;
209  svg,
210  img {
211    width: calc(var(--spinner-size) * 0.4);
212    height: calc(var(--spinner-size) * 0.4);
213    border-radius: var(--privy-border-radius-full);
214  }
215`,c=n.I4.div`
216  position: absolute;
217  top: 0;
218  right: 0;
219  bottom: 0;
220  left: 0;
221  width: var(--spinner-size);
222  height: var(--spinner-size);
223
224  && {
225    border: 4px solid var(--privy-color-border-default);
226    border-radius: 50%;
227  }
228`,d=n.I4.div`
229  position: absolute;
230  top: 0;
231  right: 0;
232  bottom: 0;
233  left: 0;
234  width: var(--spinner-size);
235  height: var(--spinner-size);
236  animation: spin 1200ms linear infinite;
237
238  && {
239    border: 4px solid;
240    border-color: var(--privy-color-icon-subtle) transparent transparent transparent;
241    border-radius: 50%;
242  }
243
244  @keyframes spin {
245    from {
246      transform: rotate(0deg);
247    }
248    to {
249      transform: rotate(360deg);
250    }
251  }
252`}}]);

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.