PageSourceSearch

https://trade.zipmex.com/_next/static/chunks/4153.63a8d8e8b46970c4.js

js zipmex.com collected 2026-09-28 06:44:18 UTC 17,488 bytes, 386 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4153],{16127:(e,r,t)=>{t.d(r,{A:()=>c,C:()=>d,S:()=>f});var i=t(42073),n=t(54002),o=t(13741),a=t(28290),l=t(28884),s=t(89338);let c=({currency:e="usd",value:r,onChange:t,inputMode:n="decimal",autoFocus:a})=>{let[s,c]=(0,o.useState)("0"),d=(0,o.useRef)(null),u=r??s,g=l.w[e]?.symbol??"$",v=(0,o.useCallback)(e=>{let r=e.target.value,i=(r=r.replace(/[^\d.]/g,"")).split(".");i.length>2&&(r=i[0]+"."+i.slice(1).join("")),2===i.length&&i[1].length>2&&(r=`${i[0]}.${i[1].slice(0,2)}`),r.length>1&&"0"===r[0]&&"."!==r[1]&&(r=r.slice(1)),(""===r||"."===r)&&(r="0"),t?t(r):c(r)},[t]),x=(0,o.useCallback)(e=>{!(["Delete","Backspace","Tab","Escape","Enter",".","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)||(e.ctrlKey||e.metaKey)&&["a","c","v","x"].includes(e.key.toLowerCase()))&&(e.key>="0"&&e.key<="9"||e.preventDefault())},[]),f=(0,o.useMemo)(()=>(u.includes("."),u),[u]);return(0,i.jsxs)(p,{onClick:()=>d.current?.focus(),children:[(0,i.jsx)(h,{children:g}),f,(0,i.jsx)("input",{ref:d,type:"text",inputMode:n,value:f,onChange:v,onKeyDown:x,autoFocus:a,placeholder:"0",style:{width:1,height:"1rem",opacity:0,alignSelf:"center",fontSize:"1rem"}}),(0,i.jsx)(h,{style:{opacity:0},children:g})]})},d=({selectedAsset:e,onEditSourceAsset:r})=>{let{icon:t}=l.w[e];return(0,i.jsxs)(u,{onClick:r,children:[(0,i.jsx)(g,{children:t}),(0,i.jsx)(v,{children:e.toLocaleUpperCase()}),(0,i.jsx)(x,{children:(0,i.jsx)(n.A,{})})]})},p=a.I4.span`
2  background-color: var(--privy-color-background);
3  width: 100%;
4  text-align: center;
5  border: none;
6  font-kerning: none;
7  font-feature-settings: 'calt' off;
8  display: flex;
9  justify-content: center;
10  align-items: flex-start;
11  cursor: pointer;
12
13  &:focus {
14    outline: none !important;
15    border: none !important;
16    box-shadow: none !important;
17  }
18
19  && {
20    color: var(--privy-color-foreground);
21    font-size: 3.75rem;
22    font-style: normal;
23    font-weight: 600;
24    line-height: 5.375rem;
25  }
26`,h=a.I4.span`
27  color: var(--privy-color-foreground);
28  font-kerning: none;
29  font-feature-settings: 'calt' off;
30  font-size: 1rem;
31  font-style: normal;
32  font-weight: 600;
33  line-height: 1.5rem;
34  margin-top: 0.75rem;
35`,u=a.I4.button`
36  display: flex;
37  align-items: center;
38  justify-content: space-between;
39  width: auto;
40  gap: 0.5rem;
41  border: 1px solid var(--privy-color-border-default);
42  border-radius: var(--privy-border-radius-full);
43
44  && {
45    margin: auto;
46    padding: 0.5rem 1rem;
47  }
48`,g=a.I4.div`
49  svg {
50    width: 1rem;
51    height: 1rem;
52    border-radius: var(--privy-border-radius-full);
53    overflow: hidden;
54    border: solid 0.1px var(--privy-color-border-default);
55  }
56`,v=a.I4.span`
57  color: var(--privy-color-foreground);
58  font-kerning: none;
59  font-feature-settings: 'calt' off;
60  font-size: 0.875rem;
61  font-style: normal;
62  font-weight: 500;
63  line-height: 1.375rem;
64`,x=a.I4.div`
65  color: var(--privy-color-foreground);
66
67  svg {
68    width: 1.25rem;
69    height: 1.25rem;
70  }
71`,f=({opts:e,isLoading:r,onSelectSource:t})=>(0,i.jsx)(s.S,{showClose:!1,showBack:!0,onBack:()=>t(e.source.selectedAsset),title:"Select currency",children:(0,i.jsx)(m,{children:e.source.assets.map(e=>{let{icon:n,name:o}=l.w[e];return(0,i.jsx)(y,{onClick:()=>t(e),disabled:r,children:(0,i.jsxs)(b,{children:[(0,i.jsx)(w,{children:n}),(0,i.jsxs)(j,{children:[(0,i.jsx)(k,{children:o}),(0,i.jsx)(I,{children:e.toLocaleUpperCase()})]})]})},e)})})}),m=a.I4.div`
72  display: flex;
73  flex-direction: column;
74  gap: 0.75rem;
75  width: 100%;
76  max-height: 20.875rem;
77  overflow-y: auto;
78  scrollbar-width: none;
79
80  &::-webkit-scrollbar {
81    display: none;
82  }
83`,y=a.I4.button`
84  border-color: var(--privy-color-border-default);
85  border-width: 1px;
86  border-radius: var(--privy-border-radius-mdlg);
87  border-style: solid;
88  display: flex;
89
90  && {
91    padding: 0.75rem 1rem;
92  }
93`,b=a.I4.div`
94  display: flex;
95  align-items: center;
96  gap: 1rem;
97  width: 100%;
98`,w=a.I4.div`
99  svg {
100    width: 2.25rem;
101    height: 2.25rem;
102    border-radius: var(--privy-border-radius-full);
103    overflow: hidden;
104    border: solid 0.1px var(--privy-color-border-default);
105  }
106`,j=a.I4.div`
107  display: flex;
108  flex-direction: column;
109  align-items: flex-start;
110  gap: 0.125rem;
111`,k=a.I4.span`
112  color: var(--privy-color-foreground);
113  font-size: 0.875rem;
114  font-weight: 600;
115  line-height: 1.25rem;
116`,I=a.I4.span`
117  color: var(--privy-color-foreground-3);
118  font-size: 0.75rem;
119  font-weight: 400;
120  line-height: 1.125rem;
121`},24269:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(55258).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"}]])},27014:(e,r,t)=>{t.d(r,{w:()=>n});var i=t(21872);let n=async({operation:e,until:r,delay:t,interval:n,attempts:o,signal:a})=>{let l,s;t&&await (0,i.y)(t);let c=0;for(;c<o;){if(a?.aborted)return{status:"aborted",result:l,attempts:c,error:s};c++;try{if(s=void 0,l=await e(),r(l))return{status:"success",result:l,attempts:c};c<o&&await (0,i.y)(n)}catch(e){e instanceof Error&&(s=e),c<o&&await (0,i.y)(n)}}return{status:"max_attempts",result:l,attempts:c,error:s}}},29042:(e,r,t)=>{t.d(r,{C:()=>h,a:()=>u});var i=t(42073),n=t(48516),o=t(24269),a=t(13741),l=t(28290);let s=l.I4.button`
122  display: flex;
123  align-items: center;
124  justify-content: end;
125  gap: 0.5rem;
126
127  svg {
128    width: 0.875rem;
129    height: 0.875rem;
130  }
131`,c=l.I4.span`
132  display: flex;
133  align-items: center;
134  gap: 0.25rem;
135  font-size: 0.875rem;
136  color: var(--privy-color-foreground-2);
137`,d=(0,l.I4)(n.A)`
138  color: var(--privy-color-icon-success);
139  flex-shrink: 0;
140`,p=(0,l.I4)(o.A)`
141  color: var(--privy-color-icon-muted);
142  flex-shrink: 0;
143`;function h({children:e,iconOnly:r,value:t,hideCopyIcon:n,iconSize:o=14,...l}){let[h,u]=(0,a.useState)(!1);return(0,i.jsxs)(s,{...l,onClick:()=>{navigator.clipboard.writeText(t||("string"==typeof e?e:"")).catch(console.error),u(!0),setTimeout(()=>u(!1),1500)},children:[e," ",h?(0,i.jsxs)(c,{children:[(0,i.jsx)(d,{size:o})," ",!r&&"Copied"]}):!n&&(0,i.jsx)(p,{size:o})]})}let u=({value:e,includeChildren:r,children:t,...n})=>{let[o,l]=(0,a.useState)(!1),h=()=>{navigator.clipboard.writeText(e).catch(console.error),l(!0),setTimeout(()=>l(!1),1500)};return(0,i.jsxs)(i.Fragment,{children:[r?(0,i.jsx)(s,{...n,onClick:h,children:t}):(0,i.jsx)(i.Fragment,{children:t}),(0,i.jsx)(s,{...n,onClick:h,children:o?(0,i.jsx)(c,{children:(0,i.jsx)(d,{})}):(0,i.jsx)(p,{})})]})}},42315:(e,r,t)=>{t.d(r,{S:()=>j});var i=t(42073),n=t(13741),o=t(28290),a=t(3503),l=t(72339),s=t(83664);let c=o.I4.div`
144  /* spacing tokens */
145  --screen-space: 16px; /* base 1x = 16 */
146  --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */
147
148  position: relative;
149  overflow: hidden;
150  margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */
151  height: 100%;
152  border-radius: var(--privy-border-radius-lg);
153`,d=o.I4.div`
154  display: flex;
155  flex-direction: column;
156  gap: calc(var(--screen-space) * 1.5);
157  width: 100%;
158  background: var(--privy-color-background);
159  padding: 0 var(--screen-space-lg) var(--screen-space);
160  height: 100%;
161  border-radius: var(--privy-border-radius-lg);
162`,p=o.I4.div`
163  position: relative;
164  display: flex;
165  flex-direction: column;
166`,h=(0,o.I4)(l.M)`
167  margin: 0 -8px;
168`,u=o.I4.div`
169  flex: 1 1 auto;
170  display: flex;
171  flex-direction: column;
172
173  /* Enable scrolling */
174  overflow-y: auto;
175
176  /* Hide scrollbar but keep functionality when scrollable */
177  /* Add padding for focus outline space, offset with negative margin */
178  padding: 3px;
179  margin: -3px;
180
181  &::-webkit-scrollbar {
182    display: none;
183  }
184  scrollbar-gutter: stable both-edges;
185  scrollbar-width: none;
186  -ms-overflow-style: none;
187
188  /* Gradient effect for scroll indication */
189  ${({$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}
190
191  background-repeat: no-repeat;
192  background-size:
193    100% 32px,
194    100% 16px;
195  background-attachment: local, scroll;
196`,g=o.I4.div`
197  display: flex;
198  flex-direction: column;
199  gap: var(--screen-space-lg);
200  margin-top: 1.5rem;
201`,v=o.I4.div`
202  text-align: center;
203  display: flex;
204  flex-direction: column;
205  align-items: center;
206  gap: var(--screen-space);
207`,x=o.I4.div`
208  display: flex;
209  flex-direction: column;
210  gap: 4px;
211`,f=o.I4.h3`
212  && {
213    font-size: 20px;
214    line-height: 32px;
215    font-weight: 500;
216    color: var(--privy-color-foreground);
217    margin: 0;
218  }
219`,m=o.I4.p`
220  && {
221    margin: 0;
222    font-size: 16px;
223    font-weight: 300;
224    line-height: 24px;
225    color: var(--privy-color-foreground);
226  }
227`,y=o.I4.div`
228  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)"}}};
229
230  border-radius: 50%;
231  width: 64px;
232  height: 64px;
233  display: flex;
234  align-items: center;
235  justify-content: center;
236`,b=o.I4.div`
237  display: flex;
238  align-items: center;
239  justify-content: center;
240
241  img,
242  svg {
243    max-height: 90px;
244    max-width: 180px;
245  }
246`,w=o.I4.div`
247  display: flex;
248  flex-direction: column;
249  justify-content: center;
250  align-items: center;
251  width: 100%;
252  height: 82px;
253
254  > div {
255    position: relative;
256  }
257
258  > div > :first-child {
259    position: relative;
260  }
261
262  > div > :last-child {
263    position: absolute;
264    left: 50%;
265    top: 50%;
266    transform: translate(-50%, -50%);
267  }
268`,j=({children:e,...r})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...r,children:e})}),k=o.I4.div`
269  position: absolute;
270  top: 0;
271  left: calc(-1 * var(--screen-space-lg));
272  width: calc(100% + calc(var(--screen-space-lg) * 2));
273  height: 4px;
274  background: var(--privy-color-background-2);
275  border-top-left-radius: inherit;
276  border-top-right-radius: inherit;
277  overflow: hidden;
278`,I=(0,o.I4)(l.B)`
279  padding: 0;
280  && a {
281    padding: 0;
282    color: var(--privy-color-foreground-3);
283  }
284`,C=o.I4.div`
285  height: 100%;
286  width: ${({pct:e})=>e}%;
287  background: var(--privy-color-foreground-3);
288  border-radius: 2px;
289  transition: width 300ms ease-in-out;
290`,z=({step:e})=>e?(0,i.jsx)(k,{children:(0,i.jsx)(C,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:t,iconVariant:n,iconLoadingStatus:o,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:u,step:g,headerTitle:y,eyebrow:b,...w})=>(0,i.jsxs)(p,{...w,children:[(0,i.jsx)(h,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?u:void 0,title:y,eyebrow:b,closeable:d}),(t||n||e||r)&&(0,i.jsxs)(v,{children:[t||n?(0,i.jsx)(j.Icon,{icon:t,variant:n,loadingStatus:o}):null,!(!e&&!r)&&(0,i.jsxs)(x,{children:[e&&(0,i.jsx)(f,{children:e}),r&&(0,i.jsx)(m,{children:r})]})]}),g&&(0,i.jsx)(z,{step:g})]}),(j.Body=n.forwardRef(({children:e,...r},t)=>(0,i.jsx)(u,{ref:t,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,i.jsx)(A,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,i.jsx)(S,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,i.jsx)(E,{...r,children:e}),j.Watermark=()=>(0,i.jsx)(I,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,i.jsx)(b,"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)(w,{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)(y,{$variant:r,children:(0,i.jsx)(s.N,{size:"64px"})}):(0,i.jsx)(y,{$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 A=o.I4.div`
291  width: 100%;
292  display: flex;
293  flex-direction: column;
294  gap: calc(var(--screen-space) / 2);
295`,S=o.I4.div`
296  && {
297    margin: 0;
298    width: 100%;
299    text-align: center;
300    color: var(--privy-color-foreground-2);
301    font-size: 13px;
302    line-height: 20px;
303
304    & a {
305      text-decoration: underline;
306    }
307  }
308`,E=o.I4.div`
309  && {
310    margin-top: -1rem;
311    width: 100%;
312    text-align: center;
313    color: var(--privy-color-foreground-2);
314    font-size: 0.6875rem; // 11px
315    line-height: 1rem; // 16px
316  }
317`},48516:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(55258).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},54002:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(55258).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},55258:(e,r,t)=>{t.d(r,{A:()=>s});var i=t(13741);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:c="",children:d,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",c),...!d&&!(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(d)?d:[d]])}),s=(e,r)=>{let t=(0,i.forwardRef)((t,a)=>{let{className:s,...c}=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),...c})});return t.displayName=n(e),t}},66229:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(55258).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},83664:(e,r,t)=>{t.d(r,{N:()=>o});var i=t(42073),n=t(28290);let o=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(l,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(s,{children:r}):null]})}),a=n.I4.div`
318  --spinner-size: ${e=>e.$size?e.$size:"96px"};
319
320  display: inline-flex;
321  justify-content: center;
322  align-items: center;
323
324  @media all and (display-mode: standalone) {
325    margin-bottom: 30px;
326  }
327`,l=n.I4.div`
328  position: relative;
329  height: var(--spinner-size);
330  width: var(--spinner-size);
331
332  opacity: 1;
333  animation: fadein 200ms ease;
334`,s=n.I4.div`
335  position: absolute;
336  top: 0;
337  right: 0;
338  bottom: 0;
339  left: 0;
340  display: flex;
341  align-items: center;
342  justify-content: center;
343  svg,
344  img {
345    width: calc(var(--spinner-size) * 0.4);
346    height: calc(var(--spinner-size) * 0.4);
347    border-radius: var(--privy-border-radius-full);
348  }
349`,c=n.I4.div`
350  position: absolute;
351  top: 0;
352  right: 0;
353  bottom: 0;
354  left: 0;
355  width: var(--spinner-size);
356  height: var(--spinner-size);
357
358  && {
359    border: 4px solid var(--privy-color-border-default);
360    border-radius: 50%;
361  }
362`,d=n.I4.div`
363  position: absolute;
364  top: 0;
365  right: 0;
366  bottom: 0;
367  left: 0;
368  width: var(--spinner-size);
369  height: var(--spinner-size);
370  animation: spin 1200ms linear infinite;
371
372  && {
373    border: 4px solid;
374    border-color: var(--privy-color-icon-subtle) transparent transparent transparent;
375    border-radius: 50%;
376  }
377
378  @keyframes spin {
379    from {
380      transform: rotate(0deg);
381    }
382    to {
383      transform: rotate(360deg);
384    }
385  }
386`},89338:(e,r,t)=>{t.d(r,{S:()=>a});var i=t(42073),n=t(72339),o=t(42315);let a=({primaryCta:e,secondaryCta:r,helpText:t,footerText:a,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,o=t.variant||"primary";return(0,i.jsx)(n.a,{...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.a,{...t,variant:o,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,i.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,i.jsx)(o.S.Header,{...c}),s?(0,i.jsx)(o.S.Body,{children:s}):null,t||d||l?(0,i.jsxs)(o.S.Footer,{children:[t?(0,i.jsx)(o.S.HelpText,{children:t}):null,d?(0,i.jsx)(o.S.Actions,{children:d}):null,l?(0,i.jsx)(o.S.Watermark,{}):null]}):null,a?(0,i.jsx)(o.S.FooterText,{children:a}):null]})}}}]);

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.