1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[927,2607,4477],{109:(e,t,l)=>{l.d(t,{J:()=>r});var r=function(e){return e[e.Primary=0]="Primary",e[e.PrimaryGradient=1]="PrimaryGradient",e[e.Secondary=2]="Secondary",e[e.Yellow=3]="Yellow",e}({})},1493:(e,t,l)=>{l.d(t,{h:()=>c});var r=l(73712),a=l(12115),n=l(60288),s=l(11665),i=l(72100),o=l(95155),d=(0,n.Rf)((e,t)=>{let{as:l,children:n,className:d,...c}=e,{slots:u,classNames:C,bodyId:h,setBodyMounted:f}=(0,r.k)(),x=(0,s.zD)(t);return(0,a.useEffect)(()=>(f(!0),()=>f(!1)),[f]),(0,o.jsx)(l||"div",{ref:x,className:u.body({class:(0,i.$z)(null==C?void 0:C.body,d)}),id:h,...c,children:n})});d.displayName="HeroUI.ModalBody";var c=d},2391:(e,t,l)=>{l.d(t,{N:()=>r});var r=function(e){return e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e}({})},3128:(e,t,l)=>{l.d(t,{cn:()=>a,i2:()=>n});let r=null,a=e=>{r=e},n=()=>r},3299:(e,t,l)=>{l.d(t,{b:()=>r});var r=function(e){return e.Usdt="USDT",e.Bitcoin="Bitcoin",e.Ethereum="Ethereum",e.Usdc="USDC",e.Trx="TRX",e.Litecoin="Litecoin",e.Dogecoin="Dogecoin",e.Ripple="Ripple",e.BitcoinCash="Bitcoin Cash",e.Pol="POL",e.Solana="Solana",e.BNB="BNB",e.Usd="USD",e.Eur="EUR",e.Gbp="GBP",e}({})},6654:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return a}});let r=l(12115);function a(e,t){let l=(0,r.useRef)(null),a=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=l.current;e&&(l.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(l.current=n(e,r)),t&&(a.current=n(t,r))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let l=e(t);return"function"==typeof l?l:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17652:(e,t,l)=>{l.d(t,{c:()=>n});var r=l(14166);function a(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=a(0,r.c3);a(0,r.kc)},19700:(e,t,l)=>{l.d(t,{k:()=>s});var r=l(34477);let a=(0,r.createServerReference)("7f9c2e10a5d22ebdba5d68b51ec04e079b9c9e1d17",r.callServer,void 0,r.findSourceMapURL,"updateBalance");var n=l(3128);let s=async()=>{await (0,n.i2)()?.getState().actions.refreshBalances(),await a()}},20927:(e,t,l)=>{l.r(t),l.d(t,{default:()=>B});var r=l(95155),a=l(12115),n=l(74870),s=l(66766),i=l(57863),o=l(49670),d=l(68586),c=l(76857);let u=e=>(0,r.jsxs)("svg",{className:e.className,width:"121",height:"24",viewBox:"0 0 121 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M38.366 11.8673C38.366 9.41932 40.27 7.32832 42.82 7.32832C44.469 7.32832 45.489 8.02532 46.288 8.87532L45.472 9.74232C44.792 9.01132 43.976 8.46732 42.803 8.46732C41.035 8.46732 39.692 9.96332 39.692 11.8673C39.692 13.7543 41.069 15.2503 42.871 15.2503C43.976 15.2503 44.792 14.6723 45.489 13.9413L46.339 14.7233C45.472 15.6923 44.435 16.4063 42.803 16.4063C40.287 16.4063 38.366 14.3323 38.366 11.8673ZM47.801 4.57431L49.093 3.94531V9.04532C49.671 8.11032 50.572 7.34532 52.068 7.34532C54.159 7.34532 55.383 8.75632 55.383 10.8303V16.2193H54.091V11.1193C54.091 9.50432 53.224 8.50132 51.694 8.50132C50.198 8.50132 49.093 9.58932 49.093 11.2213V16.2023H47.801V4.57431ZM63.271 13.0063V12.2073C62.455 11.9693 61.588 11.8333 60.738 11.8333C59.123 11.8333 58.205 12.5473 58.205 13.6183C58.205 14.7063 59.208 15.3523 60.381 15.3523C61.979 15.3353 63.271 14.3833 63.271 13.0063ZM56.896 13.6523C56.896 11.7823 58.409 10.8133 60.602 10.8133C61.707 10.8133 62.489 10.9663 63.254 11.1873V10.9153C63.254 9.36832 62.319 8.56932 60.687 8.56932C59.667 8.56932 58.851 8.82432 58.052 9.19832L57.661 8.14432C58.613 7.70232 59.548 7.39632 60.823 7.39632C62.047 7.39
1632 62.999 7.73632 63.628 8.34832C64.24 8.96032 64.529 9.79332 64.529 10.8983V16.2023H63.254V14.9103C62.642 15.6753 61.656 16.3893 60.126 16.3893C58.511 16.3893 56.896 15.4543 56.896 13.6523ZM66.722 7.51532H68.014V9.02832C68.592 8.09332 69.493 7.32832 70.989 7.32832C73.08 7.32832 74.304 8.73932 74.304 10.8133V16.2023H73.012V11.1193C73.012 9.50432 72.145 8.50132 70.615 8.50132C69.119 8.50132 68.014 9.58932 68.014 11.2213V16.2023H66.722V7.51532ZM83.433 11.4083C83.433 9.62332 81.886 8.46732 80.237 8.46732C78.588 8.46732 77.228 9.60632 77.228 11.4253C77.228 13.1763 78.622 14.3833 80.237 14.3833C81.886 14.3833 83.433 13.1933 83.433 11.4083ZM76.31 17.7153L76.905 16.7123C77.891 17.4433 78.996 17.8173 80.237 17.8173C82.141 17.8173 83.399 16.7633 83.399 14.7233V13.7033C82.651 14.7063 81.58 15.5393 79.999 15.5393C77.925 15.5393 75.919 13.9753 75.919 11.4423C75.919 8.90932 77.925 7.34532 79.999 7.34532C81.631 7.34532 82.685 8.14432 83.382 9.09632V7.53232H84.674V14.6893C84.674 16.0323 84.266 17.0523 83.569 17.7663C82.804 18.5483 81.648 18.9223 80.271 18.9223C78.809 18.9223 77.483 18.5143 76.31 17.7153ZM93.344 11.3403C93.191 9.75932 92.29 8.41632 90.573 8.41632C89.077 8.41632 87.938 9.65732 87.751 11.3403H93.344ZM90.811 15.2673C92.001 15.2673 92.834 14.7743 93.548 14.0433L94.347 14.7743C93.48 15.7433 92.409 16.4063 90.777 16.4063C88.397 16.4063 86.442 14.5703 86.442 11.8673C86.442 9.35132 88.21 7.32832 90.607 7.32832C93.174 7.32832 94.653 9.38532 94.653 11.9353C94.653 12.0543 94.653 12.1903 94.636 12.3943H87.751C87.938 14.2133 89.281 15.2673 90.811 15.2673ZM96.455 5.11832L97.747 4.47231V16.1853H96.455V5.11832ZM100.11 4.57431L101.402 3.94531V16.2193H100.11V4.57431ZM103.119 18.4973L103.561 17.4773C103.986 17.6983 104.36 17.8003 104.921 17.8003C105.686 17.8003 106.179 17.3923 106.706 16.1683L102.762 7.51532H104.19L107.335 14.7573L110.123 7.51532H111.5L107.862 16.4913C107.131 18.2933 106.281 18.9393 104.972 18.9393C104.241 18.9393 103.697 18.7863 103.119 18.4973Z",fill:"#F9F9F9"}),(0,r.jsx)("path",{d:"M21.655 19.907C21.468 20.094 21.264 20.264 21.043 20.417C20.618 20.74 20.176 21.012 19.7 21.267C18.765 21.743 17.779 22.1 16.742 22.304C16.487 22.355 16.232 22.406 15.977 22.44L15.586 22.491L15.399 22.508L15.212 22.525L14.821 22.559L14.43 22.576C14.175 22.593 13.903 22.593 13.648 22.61C12.883 22.61 12.118 22.576 11.353 22.508C11.438 22.389 11.523 22.253 11.608 22.117C11.846 21.743 12.067 21.335 12.271 20.927C12.645 20.111 12.934 19.261 13.172 18.411C13.393 17.578 13.665 16.779 13.971 15.963C14.277 15.147 14.634 14.365 15.042 13.6C14.753 13.923 14.498 14.28 14.26 14.654C14.022 15.011 13.784 15.402 13.58 15.776C13.155 16.541 12.781 17.357 12.492 18.173C12.186 18.972 11.863 19.771 11.472 20.502C11.081 21.233 10.605 21.913 10.061 22.559L9.5 23.239L10.384 23.358C11.472 23.511 12.577 23.596 13.682 23.562C13.954 23.545 14.243 23.545 14.515 23.511L14.923 23.477L15.331 23.426C15.603 23.392 15.875 23.324 16.147 23.29C16.419 23.222 16.691 23.171 16.963 23.086C17.235 23.018 17.49 22.916 17.762 22.831C18.017 22.729 18.289 22.627 18.544 22.508C19.054 22.287 19.547 21.998 20.006 21.692C20.465 21.386 20.89 21.029 21.281 20.621C21.655 20.213 21.995 19.788 22.233 19.295C22.046 19.533 21.859 19.737 21.655 19.907ZM27.741 5.236C28.047 4.93 28.455 4.76 28.897 4.76C29.322 4.76 29.73 4.913 30.053 5.236C30.682 5.882 30.682 6.902 30.053 7.548C29.424 8.177 28.387 8.177 27.741 7.548C27.435 7.242 27.265 6.834 27.265 6.392C27.265 5.95 27.435 5.542 27.741 5.236ZM28.897 9.01C29.577 9.01 30.24 8.755 30.75 8.245C31.77 7.208 31.77 5.559 30.75 4.522C29.73 3.502 28.064 3.502 27.044 4.522C26.551 5.015 26.279 5.678 26.279 6.375C26.279 7.072 26.551 7.735 27.044 8.228C27.537 8.738 28.2 9.01 28.897 9.01ZM29.662 12.784C25.905 16.099 24.341 16.405 22.777 15.691L24.477 13.549C24.732 13.243 24.902 12.869 25.004 12.478L25.684 9.605L22.828 10.285C22.437 10.387 22.063 10.557 21.757 10.812L19.615 12.512C18.884 10.948 19.207 9.384 22.505 5.627C25.633 2.074 32.229 1.258 34.184 1.088C34.031 3.043 33.215 9.656 29.662 12.784ZM27.163 17.918C27.129 18.071 27.044 18.224 26.908 18.309C26.517 18.581 25.905 18.955 25.361 19.295L25.395 19.193C25.65 18.156 25.65 17.357 25.395 16.813C2
16.109 16.592 26.874 16.201 27.741 15.606C27.52 16.405 27.282 17.357 27.163 17.918ZM21.23 16.065C21.009 16.354 20.652 16.507 20.295 16.49H20.278H19.428L22.386 12.92L18.816 15.878V15.045V15.011C18.799 14.654 18.952 14.297 19.241 14.076L22.369 11.594C22.573 11.441 22.811 11.322 23.049 11.254L24.324 10.948L24.018 12.223C23.95 12.478 23.848 12.716 23.678 12.92L21.23 16.065ZM16.13 9.911L16.028 9.945C16.351 9.401 16.725 8.789 16.997 8.398C17.082 8.262 17.235 8.177 17.388 8.143C17.949 8.024 18.901 7.786 19.7 7.582C19.105 8.449 18.714 9.231 18.493 9.945C17.966 9.639 17.167 9.639 16.13 9.911ZM34.711 0.0510001C34.354 0.0680001 25.718 0.459 21.757 4.964C21.383 5.389 21.026 5.831 20.669 6.273C20.091 6.426 18.085 6.97 17.201 7.157C16.793 7.242 16.419 7.48 16.181 7.837C15.569 8.721 14.515 10.54 14.481 10.608L13.716 11.917L15.11 11.305C16.028 10.914 17.558 10.506 18.102 10.829C18.187 10.88 18.289 10.982 18.306 11.237C18.323 11.883 18.493 12.512 18.816 13.141L18.629 13.294C18.102 13.719 17.796 14.365 17.83 15.045V17.476H20.261C20.941 17.51 21.587 17.204 22.012 16.677L22.165 16.49C22.794 16.813 23.423 17 24.069 17C24.324 17.017 24.409 17.102 24.477 17.204C24.817 17.748 24.409 19.295 24.001 20.213L23.389 21.607L24.698 20.842C24.783 20.791 26.585 19.737 27.469 19.125C27.809 18.887 28.047 18.53 28.132 18.105C28.319 17.221 28.863 15.198 29.016 14.62C29.424 14.297 29.849 13.923 30.308 13.515C34.796 9.554 35.204 0.901 35.221 0.544L35.238 0L34.711 0.0510001Z",fill:"#10D078"})]}),C=e=>(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(i.A,{htmlTag:d.Y.Span,type:o.H.BodyThreeMedium,className:"!text-text-secondary",children:e.title}),(0,r.jsx)(i.A,{type:o.H.BodyThreeMedium,htmlTag:d.Y.Div,children:e.value})]}),h=()=>(0,r.jsx)("svg",{width:"41",height:"14",viewBox:"0 0 41 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M15.5671 0.729777L10.1993 13.3033H6.69727L4.05578 3.26906C3.89541 2.65101 3.75596 2.42459 3.26824 2.1642C2.47195 1.74008 1.15696 1.34217 0 1.0952L0.0785828 0.729777H5.71584C6.4344 0.729777 7.08036 1.19939 7.24351 2.01179L8.63857 9.2875L12.0864 0.729567L15.5671 0.729777ZM29.2888 9.19818C29.3029 5.87963 24.6148 5.69681 24.6471 4.21438C24.6571 3.76321 25.0946 3.28353 26.0524 3.16109C26.5271 3.10008 27.835 3.05354 29.3185 3.72379L29.9004 1.05746C29.1032 0.773383 28.0776 0.5 26.8015 0.5C23.5268 0.5 21.2223 2.20907 21.2029 4.65632C21.1817 6.46644 22.8478 7.47653 24.103 8.07802C25.3942 8.69397 25.8275 9.0898 25.8226 9.64076C25.8134 10.4842 24.7927 10.8565 23.8388 10.8712C22.1736 10.8964 21.2074 10.4288 20.4371 10.0772L19.8366 12.8318C20.6107 13.1805 22.0395 13.4847 23.5209 13.5C27.0013 13.5 29.2781 11.8121 29.2888 9.19818ZM37.9359 13.3033H41L38.3254 0.729777H35.4973C34.8613 0.729777 34.3249 1.09331 34.0875 1.65224L29.116 13.3033H32.5948L33.2854 11.4253H37.5359L37.9359 13.3033ZM34.2393 8.84828L35.9831 4.12737L36.9867 8.84828H34.2393ZM20.3007 0.729777L17.5611 13.3033H14.2483L16.9889 0.729777H20.3007Z",fill:"#1434CB"})}),f=()=>(0,r.jsxs)("svg",{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M13.36 1.89062H7.67511V12.1053H13.36V1.89062Z",fill:"#FF5F00"}),(0,r.jsx)("path",{d:"M8.03601 6.9985C8.03601 5.0133 8.95641 3.11835 10.5085 1.89114C7.69311 -0.328669 3.59639 0.158605 1.37659 2.99202C-0.825171 5.80738 -0.337896 9.88605 2.49551 12.1059C4.8597 13.9647 8.16233 13.9647 10.5265 12.1059C8.95641 10.8786 8.03601 8.98369 8.03601 6.9985Z",fill:"#EB001B"}),(0,r.jsx)("path",{d:"M21.03 6.9985C21.03 10.5899 18.1244 13.4955 14.533 13.4955C13.0712 13.4955 11.6635 13.0082 10.5266 12.1059C13.3419 9.88605 13.8292 5.80738 11.6094 2.97397C11.2845 2.57693 10.9236 2.19794 10.5266 1.89114C13.3419 -0.328669 17.4386 0.158605 19.6404 2.99202C20.5427 4.12899 21.03 5.53667 21.03 6.9985Z",fill:"#F79E1B"})]});var x=l(99975);let m=()=>(0,r.jsxs)("svg",{width:"32",height:"14",viewBox:"0 0 32 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M6.17977 2.17636C6.54056 1.7251 6.78539 1.11918 6.72082 0.5C6.19268 0.526262 5.54818 0.848434 5.17505 1.30006C4.84001 1.6868 4.54348 2.31809 4.62079 2.91131C5.21365 2.96274 5.80597 2.61497 6.17977 2.17636Z",fill:"#F9F9F9"}),(0,r.jsx)("path",{d:"M6.71406 3.02687C5.85307 2.97559 5.12102 3.51552 4.70986 3.51552C4.29847 3.51552 3.66884 3.05272 2.98784 3.06519C2.10148 3.07821 1.27905 3.57936 0.829259 4.37643C-0.0958803 5.97096 0.585115 8.33621 1.48476 9.63486C1.92165 10.2773 2.44818 10.9848 3.14196 10.9594C3.79746 10.9336 4.0544 10.5349 4.85119 10.5349C5.6474 10.5349 5.87884 10.9594 6.57273 10.9465C7.29231 10.9336 7.74218 10.3037 8.17907 9.66059C8.68026 8.92819 8.88543 8.22099 8.89834 8.18217C8.88543 8.16931 7.51078 7.64196 7.49803 6.06068C7.48505 4.73666 8.57729 4.10688 8.62869 4.06782C8.0119 3.15558 7.04817 3.05272 6.71406 3.02687Z",fill:"#F9F9F9"}),(0,r.jsx)("path",{d:"M14.2109 1.23438C16.0822 1.23438 17.3853 2.52431 17.3853 4.40235C17.3853 6.2871 16.0554 7.58374 14.1639 7.58374H12.092V10.8787H10.595V1.23438H14.2109V1.23438ZM12.092 6.32719H13.8097C15.113 6.32719 15.8548 5.6255 15.8548 4.40905C15.8548 3.19274 15.113 2.49762 13.8164 2.49762H12.092V6.32719Z",fill:"#F9F9F9"}),(0,r.jsx)("path",{d:"M17.7765 8.87848C17.7765 7.64862 18.7189 6.89343 20.3899 6.79984L22.3146 6.68626V6.14495C22.3146 5.36294 21.7865 4.89511 20.9045 4.89511C20.0689 4.89511 19.5475 5.29604 19.4207 5.92437H18.0573C18.1375 4.65442 19.2201 3.71875 20.9579 3.71875C22.6621 3.71875 23.7515 4.62103 23.7515 6.03124V10.8768H22.368V9.72055H22.3347C21.9271 10.5026 21.0381 10.9971 20.1158 10.9971C18.739 10.9971 17.7765 10.1416 17.7765 8.87848ZM22.3146 8.24357V
17.68884L20.5835 7.79571C19.7213 7.85592 19.2335 8.23686 19.2335 8.83838C19.2335 9.45318 19.7414 9.85424 20.5167 9.85424C21.5259 9.85424 22.3146 9.15912 22.3146 8.24357Z",fill:"#F9F9F9"}),(0,r.jsx)("path",{d:"M25.0575 13.4653V12.2956C25.1643 12.3223 25.4048 12.3223 25.5252 12.3223C26.1935 12.3223 26.5545 12.0417 26.775 11.3199C26.775 11.3065 26.9021 10.8921 26.9021 10.8854L24.3624 3.84766H25.9262L27.7042 9.56881H27.7307L29.5087 3.84766H31.0325L28.399 11.2463C27.7978 12.9507 27.1027 13.4987 25.6457 13.4987C25.5253 13.4987 25.1643 13.4853 25.0575 13.4653Z",fill:"#F9F9F9"})]}),p=()=>(0,r.jsxs)("div",{className:"flex justify-center items-center gap-[30px] bg-surface-contrast-light-30 rounded-lg border border-stroke-light p-2.5",children:[(0,r.jsx)(h,{}),(0,r.jsx)(f,{}),(0,r.jsx)(x.A,{}),(0,r.jsx)(m,{})]});var g=l(36034);let v=[{title:"Transaction Fee:",value:"5%"},{title:"Processing Time",value:"- 10 Min"},{title:"Verification",value:"Only First Time"}],b=()=>{let e=(0,g.c)();return(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[v.map(t=>(0,r.jsx)(C,{title:e(t.title),value:e(t.value)},e(t.title))),(0,r.jsx)(p,{})]})};var w=l(3299),L=l(25485);let y=()=>{let[e,t]=(0,a.useState)(""),[l,r]=(0,a.useState)(""),[s,i]=(0,a.useState)(""),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(""),{getSelectedCrypto:C,selectedCryptoName:h,getUserNetworkCryptosMap:f,getUserCryptoNetworksMap:x}=(0,n.A)(),{isGeneratingCryptoCurrency:m}=(0,L.G)(),p=x(),g=C();(0,a.useEffect)(()=>{if(!g)return;let e=p.get(h);if(!e)return;t({TRX:"trx",USDT:"usdtrx",Bitcoin:"btc",Ethereum:"eth",USDC:"usdc",Litecoin:"ltc",Dogecoin:"doge",Ripple:"xrp",POL:"pol",Solana:"sol","Bitcoin Cash":"bch"}[h]);let l=f().get(e[0]?.name)??{destinationTag:"Not Found"};h===w.b.Ripple&&l.destinationTag?i(l.destinationTag):i(""),r(v(e,g.name)??"")},[C,h,p,g,f]),(0,a.useEffect)(()=>{d(!1),u("")},[h]);let v=(e,t)=>{if(1===e.length)return e[0].address;let l="USDC"===t?"ETH":"TRON";return e.find(e=>e.name===l)?.address};return{isBuying:o,onClick:()=>{d(!0),s?u(`https://widget.changelly.com?from=*&to=${e}&amount=150&address=${l}&payment_id=${s}&fromDefault=usd&toDefault=${e}&merchant_id=JwkdinWH7fsV-Gp1&v=3&type=no-rev-share&color=5f41ff&headerId=1&logo=visible&buyButtonTextId=2&readOnlyDestinationAddress=true`):u(`https://widget.changelly.com?from=*&to=${e}&amount=150&address=${l}&fromDefault=usd&toDefault=${e}&merchant_id=JwkdinWH7fsV-Gp1&payment_id=&v=3&type=no-rev-share&color=5f41ff&headerId=1&logo=visible&buyButtonTextId=2`)},buyCryptoUrl:c,isLoading:m}};var j=l(54797),M=l(28149),H=l(6820),N=l(96434),k=l(98321);let B=()=>{let{isBuying:e,onClick:t,buyCryptoUrl:l,isLoading:C}=y(),[h]=(0,a.useState)(M.L),{selectedCryptoName:f,getSelectedCrypto:x}=(0,n.A)(),{open:m}=(0,H.s)(),p=`/icons/crypto/${(0,k.f)(f)}.png`,v=x(),w=(0,g.c)();return(0,r.jsxs)("div",{className:"p-4 h-full flex flex-col justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(!h||!e)&&(0,r.jsxs)("div",{onClick:()=>{h||m(N.l.WalletBuyCryptoSelectDialog,{})},className:"rounded-xl cursor-pointer lg:cursor-auto flex items-center justify-between p-4 w-full bg-surface-contrast-light-20 lg:bg-surface-contrast-black-40 lg:border lg:border-stroke-light",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(s.default,{src:p,width:24,height:24,alt:`${f} Icon`}),(0,r.jsx)(i.A,{type:o.H.LabelOneMedium,htmlTag:d.Y.Div,children:v?.shortName})]}),(0,r.jsx)(j.A,{className:"flex-shrink-0 lg:hidden"})]}),!e&&(0,r.jsxs)("div",{className:"p-4 pb-3 rounded-xl bg-surface-contrast-light-20 flex flex-col gap-5",children:[(0,r.jsx)("div",{className:"flex justify-center pb-1 border-b border-stroke-light",children:(0,r.jsx)(u,{})}),(0,r.jsx)(b,{})]})]}),e&&l&&!C&&(0,r.jsx)("iframe",{className:"mt-4 lg:m-0",width:"100%",style:{flexGrow:"1",height:"400px",borderRadius:"16px"},frameBorder:"none",allow:"camera",src:l,children:w("Can not load widget")}),!e&&(0,r.jsx)(c.default,{isLoading:C,onClick:t,fullWidth:!0,children:w("Buy Now")})]})}},25485:(e,t,l)=>{l.d(t,{G:()=>i});var r=l(12115),a=l(53314),n=l(19700),s=l(74870);let i=()=>{let{selectedCryptoNetworkName:e,getUserNetworkCryptosMap:t,selectedCryptoName:l}=(0,s.A)(),i=t(),[o,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{!o&&l&&e&&(i.has(e)||(d(!0),a.D.generateCryptoNetworkAddress(e).then(()=>(0,n.k)()).finally(()=>d(!1))))},[i,e,l,o]),{isGeneratingCryptoCurrency:o}}},28149:(e,t,l)=>{l.d(t,{L:()=>r});let r=()=>window.matchMedia("(min-width: 1024px)").matches},33793:(e,t,l)=>{l.d(t,{A:()=>C});var r=l(95155),a=l(74632),n=l(74870),s=l(98321),i=l(33190),o=l(6820);let d=()=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M5 12H19",stroke:"#F9F9F9","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M10 7L5 12",stroke:"#F9F9F9","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}
1),(0,r.jsx)("path",{d:"M10 17L5 12",stroke:"#F9F9F9","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]});var c=l(96434),u=l(44562);let C=e=>{let{selectedCryptoName:t}=(0,n.A)(),{close:l}=(0,o.s)(),C=(0,r.jsx)(u.A,{src:`/icons/wallet/${(0,s.f)(t)}.svg`,width:32,height:32,alt:`${t} Icon`}),h=()=>{l(e.id)},f=(0,r.jsx)(i.T,{onPress:h,className:"min-w-0 min-h-0 w-8 h-8 p-1 bg-surface-contrast-light-20 rounded-lg",children:(0,r.jsx)(d,{})});return(0,r.jsxs)(a.A,{size:"full",...e,id:e.id,isOpen:e.isOpen,classNames:{...e.classNames,body:`${e.classNames?.body} gap-0`},header:{title:t,className:"p-4 md:pt-6 md:px-10 pb-0",startContent:f,image:C,...e.header,onCloseButtonClick:()=>{l(c.l.WalletDrawer,!1),h()}},children:[(0,r.jsx)("div",{className:"mt-3 md:mt-4 h-[1px] flex-shrink-0 bg-stroke-light w-full"}),e.children]})}},34477:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return n},findSourceMapURL:function(){return a.findSourceMapURL}});let r=l(53806),a=l(31818),n=l(34979).createServerReference},36034:(e,t,l)=>{l.d(t,{c:()=>n});var r=l(17652),a=l(12115);function n(e){let t=(0,r.c)(e);return(0,a.useCallback)((e,l)=>{let r=e.replaceAll(".","_");return l?t.rich(r,l):t(r)},[t])}},49984:(e,t,l)=>{l.d(t,{A:()=>r});function r(e){return e}},54797:(e,t,l)=>{l.d(t,{A:()=>a});var r=l(95155);let a=e=>(0,r.jsx)("svg",{width:e.width??"24",height:e.height??"24",className:e.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8 10L12 14L16 10",stroke:"#F9F9F9","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})},60343:(e,t,l)=>{l.d(t,{I:()=>C});var r=(0,l(94227).tv)({slots:{base:["absolute","m-0","sm:m-0","overflow-y-auto"]},variants:{size:{xs:{base:"max-w-xs max-h-[20rem]"},sm:{base:"max-w-sm max-h-[24rem]"},md:{base:"max-w-md max-h-[28rem]"},lg:{base:"max-w-lg max-h-[32rem]"},xl:{base:"max-w-xl max-h-[36rem]"},"2xl":{base:"max-w-2xl max-h-[42rem]"},"3xl":{base:"max-w-3xl max-h-[48rem]"},"4xl":{base:"max-w-4xl max-h-[56rem]"},"5xl":{base:"max-w-5xl max-h-[64rem]"},full:{base:"max-w-full max-h-full h-[100dvh] !rounded-none"}},placement:{top:{base:"inset-x-0 top-0 max-w-[none] rounded-t-none"},right:{base:"inset-y-0 right-0 max-h-[none] rounded-r-none"},bottom:{base:"inset-x-0 bottom-0 max-w-[none] rounded-b-none"},left:{base:"inset-y-0 left-0 max-h-[none] rounded-l-none"}}}}),a=l(11665),n=l(12115),s=l(72335),i=l(72100),o=l(60288),d=l(80825),c=l(95155),u=(0,o.Rf)(({children:e,...t},l)=>{let{domRef:o,getModalProps:u}=function(e){let{ref:t,className:l,classNames:o,placement:d="right",scrollBehavior:c="inside",size:u="md",motionProps:C,...h}=e,f=(0,a.zD)(t),x=(0,n.useMemo)(()=>{if(!(0,i.Im)(C))return C;let e="left"===d||"right"===d?"x":"y";return{variants:{enter:{[e]:0,transition:{[e]:{duration:.2,ease:s.xf.easeOut}}},exit:{[e]:"top"===d||"left"===d?"-100%":"100%",transition:{[e]:{duration:.1,ease:s.xf.easeIn}}}}}},[d,C]),m=(0,i.$z)(null==o?void 0:o.base,l),p=(0,n.useMemo)(()=>r({size:u,placement:d}),[u,d]);return{domRef:f,getModalProps:(0,n.useCallback)(()=>({classNames:{...o,base:p.base({class:m})},motionProps:x,scrollBehavior:c,size:u,...h}),[m,o,x,c,u,h])}}({...t,ref:l});return(0,c.jsx)(d.Y,{ref:o,...u(),children:e})});u.displayName="HeroUI.Drawer";var C=u},66766:(e,t,l)=>{l.d(t,{default:()=>a.a});var r=l(71469),a=l.n(r)},71469:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return o},getImageProps:function(){return i}});let r=l(38466),a=l(38883),n=l(33063),s=r._(l(51193));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,l]of Object.entries(t))void 0===l&&delete t[e];return{props:t}}let o=n.Image},76857:(e,t,l)=>{l.d(t,{default:()=>h});var r=l(95155),a=l(33190),n=l(109),s=l(2391),i=l(52596);let o={[n.J.Primary]:"bg-button-primary disabled:cursor-not-allowed enabled:hover:bg-button-primary-hover",[
1n.J.PrimaryGradient]:"bg-button-gradient-primary disabled:cursor-not-allowed enabled:hover:bg-button-primary-hover",[n.J.Secondary]:"bg-button-secondary disabled:cursor-not-allowed enabled:hover:bg-button-secondary-hover",[n.J.Yellow]:"bg-button-gradient-yellow disabled:cursor-not-allowed enabled:hover:bg-button-yellow-hover text-button-black"};var d=l(37122),c=l(49670);let u=(e,t=!1)=>{let l={[s.N.Sm]:`${d.o[c.H.ButtonPrimaryThreeSemiBold]} [&_svg]:w-[20px] [&_svg]:h-[20px] rounded-lg px-4 ${t?"py-1.5":"py-2"}`,[s.N.Md]:`${d.o[c.H.ButtonPrimarySecondSemiBold]} [&_svg]:w-[20px] [&_svg]:h-[20px] rounded-xl px-4 ${t?"py-2.5":"py-[11px]"}`,[s.N.Lg]:`${d.o[c.H.ButtonPrimarySecondSemiBold]} [&_svg]:w-[24px] [&_svg]:h-[24px] rounded-xl px-6 ${t?"py-3":"py-[15px]"}`,[s.N.Xl]:`${d.o[c.H.ButtonPrimaryFirstSemiBold]} [&_svg]:w-[24px] [&_svg]:h-[24px] rounded-xl px-6 ${t?"py-4":"py-[18px]"}`};return(0,i.A)(l[e])},C=({variant:e=n.J.Primary,size:t=s.N.Xl,hasIcon:l=!1,fullWidth:r,isLoading:a,className:d,isDisabled:c=!1})=>(0,i.A)("inline-flex items-center justify-center font-medium focus:outline-none transition h-fit min",o[e],u(t,l),{"w-full":r,"opacity-50 cursor-not-allowed":a||c},d),h=e=>{let t=Object.keys(e).filter(e=>e.startsWith("data-")).reduce((t,l)=>(t[l]=e[l],t),{});return(0,r.jsx)(a.T,{href:e.href,as:e.as,isLoading:e.isLoading,onPress:()=>{e.onClick?.()},startContent:!e.isLoading&&e.leftIcon,endContent:!e.isLoading&&e.rightIcon,disabled:e.isDisabled,type:e.type,spinner:e.spinner,"aria-disabled":e.isDisabled,className:C({variant:e.variant,size:e.size,className:e.className,hasIcon:!!e.leftIcon||!!e.rightIcon,fullWidth:e.fullWidth,isLoading:e.isLoading,isDisabled:e.isDisabled}),...t,children:e.children})}},79203:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});var r=l(95155),a=l(33793),n=l(20927);let s=e=>(0,r.jsx)(a.A,{header:{title:"Buy Crypto",image:null},id:e.id,isOpen:e.isOpen,classNames:{body:"!p-0"},children:(0,r.jsx)(n.default,{})})},99975:(e,t,l)=>{l.d(t,{A:()=>a});var r=l(95155);let a=e=>(0,r.jsxs)("svg",{width:e.width??"24",height:e.height??"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_1748_188072)",children:[(0,r.jsx)("path",{d:"M20.0004 10.0778C20.0004 9.3827 19.9453 8.68384 19.8278 8H10.4004V11.9377H15.799C15.575 13.2077 14.6544 14.4861 13.6004 15.2L13.8012 17.6L16.8004 17.6C18.6917 15.819 20.0004 13.1889 20.0004 10.0778Z",fill:"#4285F4"}),(0,r.jsx)("path",{d:"M10.1556 20C12.8587 20 15.1383 19.1236 16.7992 17.6109L13.5992 15.2C12.7006 15.8036 11.5108 16.0836 10.1593 16.0836C7.54454 16.0836 5.19469 14.3418 4.39922 12H1.19922V14.5491C2.90064 17.8909 6.36607 20 10.1556 20Z",fill:"#34A853"}),(0,r.jsx)("path",{d:"M4.39989 11.9984C3.9414 10.7814 4.1414 9.21546 4.59989 7.99844L4.79989 5.59844L1.19988 5.39844C-0.352531 8.16734 -0.388213 11.6295 1.1642 14.3984L4.39989 11.9984Z",fill:"#FBBC04"}),(0,r.jsx)("path",{d:"M10.3485 3.91492C11.8082 3.89312 13.219 4.42374 14.2761 5.39776L17.1992 2.57383C15.3483 0.894731 12.8917 -0.0284087 10.3485 0.000666546C6.47738 0.000666546 2.93729 2.05634 1.19922 5.4L4.60011 8C5.40895 5.65581 7.67747 3.91492 10.3485 3.91492Z",fill:"#EA4335"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_1748_188072",children:(0,r.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}}]);
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.