!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="85f75de4-2e7b-49b9-9389-4302fbf41ad6",e._sentryDebugIdIdentifier="sentry-dbid-85f75de4-2e7b-49b9-9389-4302fbf41ad6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[266],{4771:function(e,n,i){"use strict";i.d(n,{W:function(){return a}});var o=i(60230),r=i(5805),l=i(90341);function _templateObject(){let e=(0,o._)(["\n /* z-index: 2; */\n width: 100%;\n padding-right: 16px;\n padding-left: 16px;\n margin: 0 auto;\n display: block;\n //align-items: center;\n\n @media only screen and "," {\n max-width: 540px;\n }\n\n @media only screen and "," {\n max-width: 720px;\n }\n\n @media only screen and "," {\n padding-right: 0;\n padding-left: 0;\n max-width: 1100px;\n }\n"]);return _templateObject=function(){return e},e}let a=r.ZP.div.withConfig({componentId:"sc-9f7e9858-0"})(_templateObject(),l.Uh.mobile,l.Uh.tablet,l.Uh.desktop)},36734:function(e,n,i){"use strict";i.d(n,{kT:function(){return p},rs:function(){return A},pG:function(){return P},e0:function(){return K},o1:function(){return j},Iy:function(){return y},P7:function(){return D},R5:function(){return f},bA:function(){return I},TB:function(){return g},mT:function(){return h},vv:function(){return N},WD:function(){return V},w0:function(){return X},IG:function(){return x},of:function(){return m},wU:function(){return Z},W2:function(){return Q},Sf:function(){return U},t_:function(){return F},iz:function(){return W},um:function(){return T},i4:function(){return u},LA:function(){return E},__:function(){return $},jL:function(){return Y},Ew:function(){return M},aV:function(){return v},HC:function(){return O},OP:function(){return k},AO:function(){return C},ib:function(){return H},c7:function(){return S},OJ:function(){return q},nY:function(){return G},Iw:function(){return z},QZ:function(){return et},Gh:function(){return R},XA:function(){return b},gU:function(){return w},YZ:function(){return _},pQ:function(){return L},Nr:function(){return B},oi:function(){return ee},f7:function(){return J}});var o=i(60230),r=i(5805),l=i(62228),a=i(86659),c={src:"/learn/_next/static/media/simpleArrow.fa020c45.svg",height:10,width:6,blurWidth:0,blurHeight:0},s={src:"/learn/_next/static/media/simpleArrow-white.8bd34483.svg",height:10,width:6,blurWidth:0,blurHeight:0},d=i(90341);function _templateObject(){let e=(0,o._)(["\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n position: relative;\n padding: ",";\n display: ",";\n flex-wrap: wrap;\n\n @media (min-width: 768px) {\n max-width: 592px;\n padding: 0;\n }\n\n @media (min-width: 1280px) {\n max-width: 1100px;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n font-family: Inter, sans-serif;\n background-color: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding-top: 24px;\n\n @media (max-width: 767px) {\n flex-direction: column;\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n display: none;\n\n align-items: center;\n justify-content: space-between;\n padding-top: 24px;\n padding-bottom: 24px;\n flex-direction: row;\n\n @media "," {\n display: flex;\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n flex-direction: row;\n\n @media (max-width: 767px) {\n flex-direction: column;\n width: 100%;\n justify-content: flex-start;\n align-items: start;\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n\n @media (max-width: 767px) {\n flex-direction: column;\n width: 100%;\n justify-content: flex-start;\n margin-top: 19px;\n margin-bottom: 27px;\n align-items: center;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n\n @media (max-width: 767px) {\n flex-direction: column;\n width: 100%;\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n display: flex;\n\n @media (max-width: 767px) {\n width: 100%;\n justify-content: space-between;\n margin-top: 24px;\n }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n width: 20px;\n height: 20px;\n margin: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-size: 100%;\n color: #f7f8fa;\n\n &:hover {\n color: #c6d5ea;\n text-decoration: none;\n }\n\n > * {\n flex-shrink: 0;\n }\n\n svg path {\n fill: ",";\n }\n\n &:hover {\n svg path {\n fill: ",";\n }\n }\n\n @media (max-width: 767px) {\n &:first-child {\n margin-left: 0;\n }\n }\n\n @media (min-width: 768px) {\n width: 24px;\n height: 24px;\n }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n font-family: Inter;\n color: #f7f8fa;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n margin: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n color: #c6d5ea;\n text-decoration: none;\n }\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,o._)(["\n width: 63px;\n height: 14px;\n\n @media (min-width: 768px) {\n width: 84px;\n height: 18px;\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n font-size: 11px;\n padding: 4px 0 4px 10px;\n\n @media (min-width: 380px) {\n border-left: 1px solid #859ab5;\n padding: 4px 0 0 10px;\n }\n\n @media (min-width: 768px) {\n font-size: 14px;\n }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,o._)(["\n color: #859ab5;\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n margin: 0;\n\n @media (min-width: 768px) {\n padding: 8px 0 16px;\n }\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,o._)(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,o._)(["\n margin-bottom: 10px;\n\n @media (min-width: 768px) {\n margin-bottom: 8px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n color: ",";\n\n text-decoration: none;\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n\n &:hover {\n color: ",";\n }\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,o._)(["\n margin: 0 11px;\n color: ",";\n font-size: 14px;\nline-height: 160%; \nfont-weight: 500;\n\n &:first-child {\n margin-left: 0;\n }\n\n &:last-child {\n margin-right: 0;\n }\n\n \n"]);return _templateObject16=function(){return e},e}function _templateObject17(){let e=(0,o._)(["\n display: flex;\n color: ",";\n font-size: 12px;\n text-decoration: none;\n line-height: 17px;\n\n &:hover {\n color: ",";\n }\n\n @media (min-width: 768px) {\n font-size: 15px;\n line-height: 21px;\n }\n"]);return _templateObject17=function(){return e},e}function _templateObject18(){let e=(0,o._)([""]);return _templateObject18=function(){return e},e}function _templateObject19(){let e=(0,o._)(["\n width: 167px;\n height: 18px;\n background-size: cover;\n background-repeat: no-repeat;\n background-image: url(",");\n\n @media (min-width: 768px) {\n width: 205px;\n height: 22px;\n }\n"]);return _templateObject19=function(){return e},e}function _templateObject20(){let e=(0,o._)(["\n display: flex;\n\n @media (max-width: 767px) {\n width: 100%;\n flex-direction: column;\n }\n\n @media (min-width: 768px) and (max-width: 1280px) {\n margin-top: 12px;\n }\n"]);return _templateObject20=function(){return e},e}function _templateObject21(){let e=(0,o._)(["\n width: 100%;\n height: 48px;\n background-color: #142444;\n display: flex;\n justify-content: center;\n border-radius: 5px;\n cursor: pointer;\n margin: 4px 0;\n\n @media (min-width: 768px) {\n margin: 0;\n margin-right: 8px;\n\n width: 184px;\n &:hover,\n &:focus {\n background-color: #1b2e53;\n }\n }\n\n @media (min-width: 1280px) {\n width: 152px;\n }\n"]);return _templateObject21=function(){return e},e}function _templateObject22(){let e=(0,o._)(["\n width: 100%;\n height: 48px;\n background-color: #142444;\n display: flex;\n justify-content: center;\n cursor: pointer;\n margin: 4px 0;\n border-radius: 5px;\n\n @media (min-width: 768px) {\n margin: 0;\n margin-left: 8px;\n margin-right: 8px;\n width: 184px;\n\n &:hover,\n &:focus {\n background-color: #1b2e53;\n }\n }\n\n @media (min-width: 1280px) {\n width: 152px;\n }\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){let e=(0,o._)(["\n width: 100%;\n height: 48px;\n background-color: #142444;\n display: flex;\n justify-content: center;\n cursor: pointer;\n margin: 4px 0;\n border-radius: 5px;\n\n @media (min-width: 768px) {\n width: 184px;\n margin: 0;\n margin-left: 8px;\n\n &:hover,\n &:focus {\n background-color: #1b2e53;\n }\n }\n\n @media (min-width: 1280px) {\n width: 152px;\n }\n"]);return _templateObject23=function(){return e},e}function _templateObject24(){let e=(0,o._)(["\n :last-child > div {\n margin-right: 0;\n }\n"]);return _templateObject24=function(){return e},e}function _templateObject25(){let e=(0,o._)(["\n padding-left: 0;\n font-size: 14px;\n line-height: 14px;\n color: #f9fbff;\n display: flex;\n align-items: center;\n transform: scale(0.8);\n\n margin: ",";\n\n column-gap: 8px;\n\n @media (min-width: 768px) {\n transform: none;\n }\n\n @media (min-width: 1280px) {\n margin: 0;\n }\n"]);return _templateObject25=function(){return e},e}function _templateObject26(){let e=(0,o._)(["\n width: 27px;\n height: 18px;\n background-image: url(",");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n display: block;\n\n margin-left: 10px;\n"]);return _templateObject26=function(){return e},e}function _templateObject27(){let e=(0,o._)(["\n width: 40px;\n height: 13px;\n background-image: url(",");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n margin-left: 8px;\n display: block;\n"]);return _templateObject27=function(){return e},e}function _templateObject28(){let e=(0,o._)(["\n font-size: 14px;\n line-height: 22px;\n padding: 4px 0;\n @media (min-width: 768px) {\n display: inline;\n }\n"]);return _templateObject28=function(){return e},e}function _templateObject29(){let e=(0,o._)(["\n display: none;\n width: 100%;\n\n @media (min-width: 768px) {\n display: block;\n }\n\n @media (min-width: 1280px) {\n margin-top: 32px;\n }\n"]);return _templateObject29=function(){return e},e}function _templateObject30(){let e=(0,o._)(["\n width: 50%;\n padding-top: 0;\n padding-bottom: 16px;\n\n @media (min-width: 768px) {\n padding-bottom: unset;\n margin-right: 74px;\n padding-top: 20px;\n width: 25%;\n }\n\n @media (min-width: 768px) and (max-width: 1279px) {\n margin-bottom: 20px;\n &:nth-child(3n) {\n margin-right: 0;\n }\n }\n\n @media (min-width: 1280px) {\n margin-right: 40px;\n padding-top: 0;\n width: 17%;\n\n &:nth-child(5) {\n margin-right: 0;\n }\n }\n\n &:first-child {\n margin-left: 0;\n }\n"]);return _templateObject30=function(){return e},e}function _templateObject31(){let e=(0,o._)(["\n display: none;\n\n @media (min-width: 768px) and (max-width: 1280px) {\n display: block;\n width: 25%;\n }\n\n "," {\n width: 100%;\n margin-right: 0;\n }\n"]);return _templateObject31=function(){return e},e}function _templateObject32(){let e=(0,o._)(["\n width: 100vw;\n background-color: #0b172f;\n padding: 0 0 30px 0;\n\n @media (min-width: 768px) {\n margin-top: 35px;\n }\n\n @media (min-width: 1280px) {\n background-color: #010c22;\n margin-top: 72px;\n }\n"]);return _templateObject32=function(){return e},e}function _templateObject33(){let e=(0,o._)(["\n display: flex;\n"]);return _templateObject33=function(){return e},e}function _templateObject34(){let e=(0,o._)(["\n display: none;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n margin-top: 32px;\n\n @media (min-width: 1280px) {\n display: flex;\n }\n"]);return _templateObject34=function(){return e},e}function _templateObject35(){let e=(0,o._)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: start;\n flex-wrap: wrap;\n padding: 20px 0;\n @media (min-width: 560px) {\n justify-content: space-between;\n }\n @media (max-width: 768px) {\n justify-content: space-between;\n\n .trustpilot-widget {\n transform: scale(0.9);\n position: absolute !important;\n left: 0;\n }\n }\n\n @media (min-width: 1280px) {\n display: none;\n }\n"]);return _templateObject35=function(){return e},e}function _templateObject36(){let e=(0,o._)(["\n width: 100%;\n height: 1px;\n background: #0f1d3a;\n"]);return _templateObject36=function(){return e},e}function _templateObject37(){let e=(0,o._)(["\n width: 100%;\n\n background: ",";\n padding: 12px 16px 24px 16px;\n margin: 20px auto 0 auto;\n display: flex;\n justify-content: center;\n\n @media (min-width: 768px) {\n margin: 0 auto 20px auto;\n }\n\n @media (min-width: 1280px) {\n display: none;\n }\n"]);return _templateObject37=function(){return e},e}function _templateObject38(){let e=(0,o._)(["\n margin-top: 24px;\n display: none;\n\n @media (min-width: 1280px) {\n display: block;\n }\n"]);return _templateObject38=function(){return e},e}function _templateObject39(){let e=(0,o._)(["\n width: 100%;\n display: block;\n\n @media (min-width: 768px) {\n display: none;\n }\n"]);return _templateObject39=function(){return e},e}function _templateObject40(){let e=(0,o._)(["\n padding-top: 20px;\n padding-bottom: 11px;\n"]);return _templateObject40=function(){return e},e}function _templateObject41(){let e=(0,o._)(["\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 9px;\n"]);return _templateObject41=function(){return e},e}function _templateObject42(){let e=(0,o._)(['\n width: 6px;\n height: 10px;\n background-image: url("','");\n transform: ',";\n"]);return _templateObject42=function(){return e},e}function _templateObject43(){let e=(0,o._)([""]);return _templateObject43=function(){return e},e}function _templateObject44(){let e=(0,o._)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n background-color: #0f75fc;\n border-radius: 50%;\n margin-left: 6px;\n\n @media (min-width: 768px) {\n width: 22px;\n height: 22px;\n }\n"]);return _templateObject44=function(){return e},e}function _templateObject45(){let e=(0,o._)(["\n width: 100%;\n @media (min-width: 1280px) {\n > * {\n display: none;\n }\n }\n"]);return _templateObject45=function(){return e},e}function _templateObject46(){let e=(0,o._)(["\n color: #fff;\n text-decoration: none;\n"]);return _templateObject46=function(){return e},e}function _templateObject47(){let e=(0,o._)(["\n width: 100%;\n padding: 0 16px;\n\n @media (min-width: 768px) {\n padding: 0;\n max-width: 592px;\n }\n\n @media (min-width: 1280px) {\n max-width: 190px;\n }\n"]);return _templateObject47=function(){return e},e}function _templateObject48(){let e=(0,o._)(["\n color: #eb5757;\n font-size: 12px;\n line-height: 14px;\n margin-top: 2px;\n"]);return _templateObject48=function(){return e},e}function _templateObject49(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n height: 28px;\n font-family: Inter;\n border-bottom: 1px solid ",";\n\n @media (min-width: 768px) {\n height: 32px;\n max-width: 592px;\n }\n"]);return _templateObject49=function(){return e},e}function _templateObject50(){let e=(0,o._)(["\n width: calc(100% - 24px);\n outline: none;\n border: none;\n background-color: transparent;\n font-size: 12px;\n line-height: 17px;\n color: #ffffff;\n font-family: Inter;\n\n &::placeholder {\n color: #ffffff;\n }\n\n @media (min-width: 768px) {\n font-size: 14px;\n line-height: 14px;\n }\n"]);return _templateObject50=function(){return e},e}function _templateObject51(){let e=(0,o._)(["\n height: 24px;\n width: 24px;\n background-color: transparent;\n border: none;\n opacity: ",";\n cursor: ",";\n"]);return _templateObject51=function(){return e},e}let p=r.ZP.div.withConfig({componentId:"sc-4a94abf3-0"})(_templateObject(),e=>{let{noPadding:n}=e;return!0===n?"0":"0 16px"},e=>{let{display:n}=e;return null!=n?n:"block"}),u=r.ZP.footer.withConfig({componentId:"sc-4a94abf3-1"})(_templateObject1(),e=>e.theme.colors.footer.background),h=r.ZP.div.withConfig({componentId:"sc-4a94abf3-2"})(_templateObject2()),m=r.ZP.div.withConfig({componentId:"sc-4a94abf3-3"})(_templateObject3(),d.Uh.desktop),f=r.ZP.div.withConfig({componentId:"sc-4a94abf3-4"})(_templateObject4()),x=r.ZP.div.withConfig({componentId:"sc-4a94abf3-5"})(_templateObject5()),g=r.ZP.div.withConfig({componentId:"sc-4a94abf3-6"})(_templateObject6()),b=r.ZP.div.withConfig({componentId:"sc-4a94abf3-7"})(_templateObject7()),w=r.ZP.div.withConfig({componentId:"sc-4a94abf3-8"})(_templateObject8(),e=>e.theme.colors.white,e=>e.theme.colors.text.lightBlue),_=r.ZP.div.withConfig({componentId:"sc-4a94abf3-9"})(_templateObject9()),j=r.ZP.div.withConfig({componentId:"sc-4a94abf3-10"})(_templateObject10()),y=r.ZP.div.withConfig({componentId:"sc-4a94abf3-11"})(_templateObject11()),C=r.ZP.p.withConfig({componentId:"sc-4a94abf3-12"})(_templateObject12()),v=r.ZP.ul.withConfig({componentId:"sc-4a94abf3-13"})(_templateObject13()),O=r.ZP.div.withConfig({componentId:"sc-4a94abf3-14"})(_templateObject14()),k=r.ZP.a.withConfig({componentId:"sc-4a94abf3-15"})(_templateObject15(),e=>e.theme.colors.pageContainer,e=>e.theme.colors.text.lightBlue),I=r.ZP.p.withConfig({componentId:"sc-4a94abf3-16"})(_templateObject16(),e=>e.theme.colors.text.lightBlue);r.ZP.a.withConfig({componentId:"sc-4a94abf3-17"})(_templateObject17(),e=>e.theme.colors.white,e=>e.theme.colors.text.lightBlue),r.ZP.a.withConfig({componentId:"sc-4a94abf3-18"})(_templateObject18()),r.ZP.div.withConfig({componentId:"sc-4a94abf3-19"})(_templateObject19(),{src:"/learn/_next/static/media/trustpilot2.90b4b597.svg",height:22,width:205,blurWidth:0,blurHeight:0});let S=r.ZP.div.withConfig({componentId:"sc-4a94abf3-20"})(_templateObject20()),P=r.ZP.a.withConfig({componentId:"sc-4a94abf3-21"})(_templateObject21()),E=r.ZP.a.withConfig({componentId:"sc-4a94abf3-22"})(_templateObject22()),A=r.ZP.a.withConfig({componentId:"sc-4a94abf3-23"})(_templateObject23()),L=r.ZP.a.withConfig({componentId:"sc-4a94abf3-24"})(_templateObject24()),T=r.ZP.div.withConfig({componentId:"sc-4a94abf3-25"})(_templateObject25(),e=>e?"0 auto":"0");r.ZP.a.withConfig({componentId:"sc-4a94abf3-26"})(_templateObject26(),l.Z),r.ZP.a.withConfig({componentId:"sc-4a94abf3-27"})(_templateObject27(),a.Z);let N=r.ZP.span.withConfig({componentId:"sc-4a94abf3-28"})(_templateObject28()),M=r.ZP.div.withConfig({componentId:"sc-4a94abf3-29"})(_templateObject29()),Z=r.ZP.div.withConfig({componentId:"sc-4a94abf3-30"})(_templateObject30()),B=r.ZP.div.withConfig({componentId:"sc-4a94abf3-31"})(_templateObject31(),Z),D=r.ZP.div.withConfig({componentId:"sc-4a94abf3-32"})(_templateObject32()),H=(0,r.ZP)(p).withConfig({componentId:"sc-4a94abf3-33"})(_templateObject33()),F=r.ZP.div.withConfig({componentId:"sc-4a94abf3-34"})(_templateObject34()),z=r.ZP.div.withConfig({componentId:"sc-4a94abf3-35"})(_templateObject35()),W=r.ZP.div.withConfig({componentId:"sc-4a94abf3-36"})(_templateObject36()),R=r.ZP.div.withConfig({componentId:"sc-4a94abf3-37"})(_templateObject37(),e=>{let{isFocus:n}=e;return n?"#5271981A":"#0b172f"}),U=r.ZP.div.withConfig({componentId:"sc-4a94abf3-38"})(_templateObject38()),G=r.ZP.div.withConfig({componentId:"sc-4a94abf3-39"})(_templateObject39()),X=(0,r.ZP)(p).withConfig({componentId:"sc-4a94abf3-40"})(_templateObject40()),V=r.ZP.div.withConfig({componentId:"sc-4a94abf3-41"})(_templateObject41()),K=r.ZP.div.withConfig({componentId:"sc-4a94abf3-42"})(_templateObject42(),e=>{let{isOpen:n}=e;return n?s:c},e=>{let{isOpen:n}=e;return n?"rotate(-90deg)":"rotate(90deg)"});r.ZP.img.withConfig({componentId:"sc-4a94abf3-43"})(_templateObject43());let Y=r.ZP.div.withConfig({componentId:"sc-4a94abf3-44"})(_templateObject44()),q=r.ZP.div.withConfig({componentId:"sc-4a94abf3-45"})(_templateObject45());r.ZP.a.withConfig({componentId:"sc-4a94abf3-46"})(_templateObject46());let Q=r.ZP.div.withConfig({componentId:"sc-4a94abf3-47"})(_templateObject47()),$=r.ZP.div.withConfig({componentId:"sc-4a94abf3-48"})(_templateObject48()),J=r.ZP.div.withConfig({componentId:"sc-4a94abf3-49"})(_templateObject49(),e=>{let{isError:n}=e;return n?"#E15D56":"#859AB5"}),ee=r.ZP.input.withConfig({componentId:"sc-4a94abf3-50"})(_templateObject50()),et=r.ZP.button.withConfig({componentId:"sc-4a94abf3-51"})(_templateObject51(),e=>{let{disabled:n}=e;return n?"0.5":"1"},e=>{let{pointer:n}=e;return n?"pointer":"initial"})},4889:function(e,n,i){"use strict";i.r(n),i.d(n,{NotCookiesComponent:function(){return NotCookiesComponent},NullExchangesComponent:function(){return NullExchangesComponent}});var o=i(60230),r=i(57437),l=i(20640),a=i(45806),c=i(5805),s=i(17870),d=i(2265),p=i(91837),u=i(62545);function _templateObject(){let e=(0,o._)(["\n background-color: ",";\n border: ",";\n position: absolute;\n bottom: 0;\n right: 0px;\n padding: ",";\n border-radius: 8px 0 8px 8px;\n transform: translateY(100%);\n cursor: auto;\n ",";\n ",";\n ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n display: block;\n align-items: center;\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 140%;\n color: ",";\n margin-top: ",";\n margin-left: auto;\n margin-right: auto;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n color: #ffffff;\n height: 48px;\n padding: 0 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 8px;\n font-weight: 500;\n font-size: 14px;\n line-height: 160%;\n cursor: pointer;\n text-align: center;\n user-select: none;\n transition-property: color, background-color;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 75ms;\n width: 540px;\n margin-top: 12px;\n text-decoration: none;\n\n &:hover {\n ",";\n }\n"]);return _templateObject2=function(){return e},e}let NullExchangesComponent=e=>{let{colorScheme:n}=e;return(0,r.jsx)(m,{colorScheme:n,children:"You don't have any exchanges yet."})},NotCookiesComponent=e=>{let{colorScheme:n}=e;return(0,r.jsx)(m,{desktop:!0,colorScheme:n,children:"Please enable cookies to show your exchanges’ history"})};n.default=(0,d.memo)(e=>{var n,i,o;let{colorScheme:c,exchangeList:d}=e;return 0===d.length||(null===(n=d[0])||void 0===n?void 0:n.publicId)==="Loading"?(0,r.jsxs)(h,{colorScheme:c,pad:"repeat",children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(u.NB,{colors:["#0f75fc","#0f75fc","#0f75fc","#0f75fc","#0f75fc"],visible:!0,height:"100",width:"100"})}),(0,r.jsx)(f,{onClick:()=>{(0,s.p)(l.Z.EX_CREATE_EXCHANGE,{stage:1,source:"headerExchangesHistory"})},href:"".concat(p.M5,"/exchange?from=btc&to=eth&amount=0.1&rate=floating"),colorScheme:c,children:"Create a new exchange"})]}):(0,r.jsxs)(h,{colorScheme:c,pad:"repeat",children:[(null===(i=d[0])||void 0===i?void 0:i.publicId)==="Empty"?(0,r.jsx)(NullExchangesComponent,{colorScheme:c}):(null===(o=d[0])||void 0===o?void 0:o.publicId)==="EmptyNotCookie"?(0,r.jsx)(NotCookiesComponent,{colorScheme:c}):d.slice(1).map(e=>(0,r.jsx)(a.ZP,{exchange:e,colorScheme:c},e.publicId)),(0,r.jsx)(f,{onClick:()=>{(0,s.p)(l.Z.EX_CREATE_EXCHANGE,{stage:1,source:"headerExchangesHistory"})},href:"".concat(p.M5,"/exchange?from=btc&to=eth&amount=0.1&rate=floating"),colorScheme:c,children:"Create a new exchange"})]})});let h=c.ZP.div.withConfig({componentId:"sc-c0b148c9-0"})(_templateObject(),e=>{let{colorScheme:n}=e;return"dark"===n?"#123276":"#ffffff"},e=>{let{colorScheme:n}=e;return"dark"===n?"1px solid transparent":"1px solid #ECF1F7"},e=>{let{profile:n,pad:i}=e;return n?"24px 8px":"repeat"===i?"24px 16px":"8px"},e=>{let{pad:n}=e;return"repeat"===n?"display: flex":""},e=>{let{pad:n}=e;return"repeat"===n?"gap: 4px":""},e=>{let{pad:n}=e;return"repeat"===n?"flex-direction: column":""}),m=c.ZP.div.withConfig({componentId:"sc-c0b148c9-1"})(_templateObject1(),e=>{let{colorScheme:n}=e;return"dark"===n?"#c6d5ea":"#3F5878"},e=>{let{desktop:n}=e;return null!=n&&n?"0":"15px"}),f=c.ZP.a.withConfig({componentId:"sc-c0b148c9-2"})(_templateObject2(),e=>{let{colorScheme:n}=e;return"#0F75FC"},e=>{let{colorScheme:n,notChildren:i}=e;return i?" color: #859AB5":""})},45806:function(e,n,i){"use strict";i.d(n,{Xw:function(){return CurrencyLogo},ZP:function(){return ExchangeHistoryList}});var o=i(60230),r=i(57437),l=i(2265),a=i(20640),c=i(5805),s=i(1727),d=i(18950),p=i(33187),u=i(76318),h={src:"/learn/_next/static/media/arrowRightDark.5e656722.svg"},m=i(17870),f=i(16691),x=i.n(f);function _templateObject(){let e=(0,o._)(["\n display: flex;\n text-decoration: none;\n padding: 4px 16px;\n cursor: pointer;\n border-radius: 8px;\n font-weight: 500;\n font-size: 14px;\n line-height: 140%;\n color: ",";\n\n align-items: center;\n gap: 24px;\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 130%;\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n width: 95px;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n display: flex;\n gap: 16px;\n justify-content: center;\n align-items: center;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n width: 24px;\n height: 24px;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n display: flex;\n gap: 8px;\n align-items: center;\n width: 139px;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n display: flex;\n gap: 8px;\n flex-direction: column;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n line-height: 140%;\n text-transform: uppercase;\n color: ",";\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n color: ",";\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n display: inline-block;\n width: 20px;\n height: 20px;\n ",";\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n width: ","px;\n height: ","px;\n object-fit: contain;\n\n @media (min-width: 768px) {\n width: ","px;\n height: ","px;\n }\n\n @media (min-width: 1280px) {\n width: ","px;\n height: ","px;\n }\n"]);return _templateObject9=function(){return e},e}let threePointCut=e=>"".concat(e.slice(0,4),"...").concat(e.slice(-4));function truncateStringAfterDecimal(e,n){let i=e.indexOf(".");if(-1!==i){let o=e.length-i-1;if(o>n)return e.slice(0,i+n+1)}return e}let CurrencyLogo=e=>{var n;let{mSize:i,tSize:o,dSize:a,symbol:c}=e,s=l.useRef(null),d="https://static.simpleswap.io/images/currencies-logo/".concat(c,".svg"),p="https://static.simpleswap.io/images/currencies-logo-old/".concat(null===(n=c[0])||void 0===n?void 0:n.toUpperCase(),".svg");return l.useEffect(()=>{new Promise(e=>{let n=document.createElement("img");n.onerror=()=>{e(!1)},n.onload=()=>{e(!0)},n.src=d}).then(e=>{e||null==s.current||(s.current.src=p)})},[c]),(0,r.jsx)(k,{ref:s,src:d,mSize:i,tSize:o,dSize:a})};var ExchangeHistoryList=e=>{var n,i,o;let{exchange:l,colorScheme:c}=e;return(0,r.jsxs)(g,{colorScheme:c,href:"/exchange?id=".concat(l.publicId),onClick:()=>{(0,m.p)(a.Z.HEADER_DROPDOWN_LINK,{link:"exchangeHistory"})},children:[(0,r.jsxs)(b,{children:["ID: ",threePointCut(l.publicId)," "]}),(0,r.jsxs)(w,{children:[(0,r.jsxs)(j,{children:[(0,r.jsx)(CurrencyLogo,{mSize:24,tSize:24,dSize:24,symbol:null!==(n=l.currencyFrom)&&void 0!==n?n:""}),(0,r.jsxs)(y,{children:[(0,r.jsx)(C,{colorScheme:c,children:l.currencyFrom}),(0,r.jsx)(v,{colorScheme:c,children:truncateStringAfterDecimal(l.amountFrom,8)})]})]}),(0,r.jsx)(_,{src:"".concat("dark"===c?u.Z.src:h.src),width:24,height:24,alt:"exchange from-to"}),(0,r.jsxs)(j,{children:[(0,r.jsx)(CurrencyLogo,{mSize:24,tSize:24,dSize:24,symbol:null!==(i=l.currencyTo)&&void 0!==i?i:""}),(0,r.jsxs)(y,{children:[(0,r.jsx)(C,{colorScheme:c,children:l.currencyTo}),(0,r.jsx)(v,{colorScheme:c,children:truncateStringAfterDecimal(l.amountTo,8)})]})]})]}),(0,r.jsx)(O,{src:"".concat("finished"===l.status?s.Z.src:"dark"===c?d.Z.src:p.Z.src),width:20,height:20,alt:"status is ".concat(null!==(o=l.status)&&void 0!==o?o:"failed")})]},l.publicId)};let g=c.ZP.a.withConfig({componentId:"sc-bfe99a07-0"})(_templateObject(),e=>{let{colorScheme:n}=e;return"dark"===n?"#859AB5":"#3F5878"},e=>{let{colorScheme:n}=e;return"dark"===n?"#FFFFFF":"#252C44"},e=>{let{colorScheme:n}=e;return"dark"===n?"#214992":"#ECF1F7"}),b=c.ZP.div.withConfig({componentId:"sc-bfe99a07-1"})(_templateObject1()),w=c.ZP.div.withConfig({componentId:"sc-bfe99a07-2"})(_templateObject2()),_=(0,c.ZP)(x()).withConfig({componentId:"sc-bfe99a07-3"})(_templateObject3()),j=c.ZP.div.withConfig({componentId:"sc-bfe99a07-4"})(_templateObject4()),y=c.ZP.div.withConfig({componentId:"sc-bfe99a07-5"})(_templateObject5()),C=c.ZP.div.withConfig({componentId:"sc-bfe99a07-6"})(_templateObject6(),e=>{let{colorScheme:n}=e;return"dark"===n?"#C6D5EA":"#3F5878"}),v=c.ZP.div.withConfig({componentId:"sc-bfe99a07-7"})(_templateObject7(),e=>{let{colorScheme:n}=e;return"dark"===n?"#C6D5EA":"#859AB5"}),O=(0,c.ZP)(x()).withConfig({componentId:"sc-bfe99a07-8"})(_templateObject8(),e=>{let{marg:n}=e;return"without"===n?"":"margin-left: 10px"}),k=c.ZP.img.withConfig({componentId:"sc-bfe99a07-9"})(_templateObject9(),e=>{let{mSize:n}=e;return n},e=>{let{mSize:n}=e;return n},e=>{let{mSize:n,tSize:i}=e;return null!=i?i:n},e=>{let{mSize:n,tSize:i}=e;return null!=i?i:n},e=>{var n;let{mSize:i,tSize:o,dSize:r}=e;return null!==(n=null!=r?r:o)&&void 0!==n?n:i},e=>{var n;let{mSize:i,tSize:o,dSize:r}=e;return null!==(n=null!=r?r:o)&&void 0!==n?n:i})},76827:function(e,n,i){"use strict";i.d(n,{mI:function(){return x},wd:function(){return f},F7:function(){return ArticleSection},L6:function(){return g},zV:function(){return j},BJ:function(){return CoinHeading},Y9:function(){return b},H1:function(){return c},H2:function(){return s},H3:function(){return d},H4:function(){return p},oE:function(){return y},QI:function(){return v},gZ:function(){return C},VC:function(){return NavCircleButton},WX:function(){return eY},Qh:function(){return m},Fn:function(){return w},ho:function(){return _},y$:function(){return u},x$:function(){return getArticleUrl}});var o=i(60230),r=i(5805),l=i(90341);function _templateObject(){let e=(0,o._)(["\n font-family: ",";\n font-style: normal;\n line-height: 120%;\n \n color: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n ",";\n font-weight: 400;\n line-height: 120%;\n\n @media only screen and "," {\n font-size: 40px;\n }\n @media only screen and "," {\n font-size: 34px;\n }\n @media only screen and "," {\n font-size: 22px;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n ",";\n font-weight: 600;\n font-size: 24px;\n line-height: 140%;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n ",";\n font-weight: 600;\n font-size: 20px;\n line-height: 188%;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n ",";\n font-weight: 600;\n font-size: 20px;\n line-height: 188%;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n font-family: var(--font-poppins), sans-serif;\n font-style: normal;\n font-weight: 400;\n font-size: 40px;\n line-height: 120%;\n\n\n color: ",";\n"]);return _templateObject5=function(){return e},e}let a=(0,r.iv)(_templateObject(),e=>{let{theme:n}=e;return n.typography.title.fontFamily},e=>{let{theme:n}=e;return n.colors.text.title}),c=r.ZP.h1.withConfig({componentId:"sc-3e833be8-0"})(_templateObject1(),a,l.Uh.desktop,l.Uh.tablet,l.Uh.mobile),s=r.ZP.h1.withConfig({componentId:"sc-3e833be8-1"})(_templateObject2(),a),d=r.ZP.h1.withConfig({componentId:"sc-3e833be8-2"})(_templateObject3(),a),p=r.ZP.h1.withConfig({componentId:"sc-3e833be8-3"})(_templateObject4(),a),u=r.ZP.h3.withConfig({componentId:"sc-3e833be8-4"})(_templateObject5(),e=>{let{theme:n}=e;return n.colors.text.title});var h=i(57437);function NavCircleButton_templateObject(){let e=(0,o._)(["\n background: ",";\n color: ",";\n border: none;\n cursor: pointer;\n margin: 0;\n\n transition: all 0.2s ease-in-out;\n\n &:hover {\n background: ",";\n color: ",";\n }\n\n @media only screen and "," {\n padding: 6px;\n font-size: 12px;\n border-radius: 12px;\n width: 24px;\n height: 24px;\n }\n @media only screen and "," {\n padding: 8px;\n font-size: 16px;\n border-radius: 16px;\n width: 32px;\n height: 32px;\n }\n @media only screen and "," {\n padding: 8px;\n font-size: 16px;\n\n border-radius: 16px;\n width: 32px;\n height: 32px;\n }\n"]);return NavCircleButton_templateObject=function(){return e},e}let m=r.ZP.button.withConfig({componentId:"sc-38adb759-0"})(NavCircleButton_templateObject(),e=>e.theme.colors.input.selectedItem,e=>e.theme.colors.text.darkBlue,e=>e.theme.colors.text.darkBlue,e=>e.theme.colors.white,l.Uh.mobile,l.Uh.tablet,l.Uh.desktop);function NavCircleButton(e){let{children:n,sectionType:i,onClick:o}=e;return(0,h.jsx)(m,{onClick:o,children:n})}function Article_styles_templateObject(){let e=(0,o._)(["\n display: flex;\n position: relative;\n flex-direction: row;\n justify-content: center;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n\n gap: 32px;\n"]);return Article_styles_templateObject=function(){return e},e}function Article_styles_templateObject1(){let e=(0,o._)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n background: ",";\n\n @media only screen and "," {\n padding: 24px 16px;\n border-radius: 16px;\n\n width: 100%;\n }\n @media only screen and "," {\n padding: 32px 24px;\n border-radius: 16px;\n }\n @media only screen and "," {\n padding: 60px 62px;\n border-radius: 32px;\n }\n"]);return Article_styles_templateObject1=function(){return e},e}function Article_styles_templateObject2(){let e=(0,o._)(["\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n box-sizing: border-box;\n\n img {\n margin: 16px 0 8px 0;\n cursor: zoom-in;\n }\n\n p {\n font-weight: 400;\n font-size: 14px;\n line-height: 160%;\n margin-bottom: 8px;\n\n color: ",";\n\n strong {\n font-weight: 700;\n }\n }\n\n ul + p {\n margin-top: 16px;\n }\n\n ul + p > img {\n margin-top: 8px;\n }\n\n ul + figure {\n margin-top: 8px;\n }\n\n p + ul {\n margin-top: 16px;\n }\n\n p:has( > img) + ul {\n margin-top: 0px;\n }\n\n img + img {\n margin-top: 0px;\n }\n\n a {\n color: ",";\n text-decoration: none;\n cursor: pointer;\n }\n\n h2 {\n font-weight: 600;\n font-size: 24px;\n line-height: 140%;\n\n margin-top: 24px;\n margin-bottom: 12px;\n }\n\n h3 {\n font-weight: 600;\n font-size: 20px;\n line-height: 188%;\n\n margin-top: 10px;\n margin-bottom: 8px;\n }\n\n h4 {\n font-weight: 600;\n font-size: 16px;\n line-height: 188%;\n\n margin-top: 12px;\n margin-bottom: 8px;\n }\n\n @media only screen and "," {\n img {\n margin: 16px 0 12px 0;\n }\n\n h2 {\n margin-top: 32px;\n margin-bottom: 16px;\n }\n h3 {\n margin-top: 18px;\n margin-bottom: 10px;\n }\n h4 {\n margin-top: 10px;\n }\n\n p {\n font-weight: 400;\n font-size: 16px;\n line-height: 160%;\n margin-bottom: 8px;\n\n\n color: ",";\n\n strong {\n font-weight: 700;\n }\n }\n }\n\n \n\n figure {\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n\n /* margin-top: 24px; */\n margin-bottom: 12px;\n\n @media only screen and "," {\n flex-direction: column;\n align-items: center;\n }\n\n figcaption {\n text-align: center;\n font-weight: 400;\n font-size: 14px;\n line-height: 160%;\n\n margin-top: 8px;\n\n color: ",";\n }\n }\n\n .coin-heading {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n margin-top: 24px;\n margin-bottom: 16px;\n\n img {\n margin: 0;\n }\n\n .title {\n margin: 0 8px 0 16px;\n line-height: unset;\n }\n\n .subtitle {\n font-weight: 500;\n font-size: 16px;\n color: ",";\n }\n }\n\n h3 + ol#table-of-contents {\n padding-top: 8px;\n }\n\n h3 + .coin-heading {\n margin-top: 0;\n }\n\n figure + .coin-heading {\n margin-top: 4px;\n }\n\n ul {\n margin: 24px 0 0px 20px;\n\n li {\n position: relative;\n margin: 0 0 0 0;\n padding: 0 0 12px 16px;\n line-height: 160%;\n\n &:last-child {\n padding: 0 0 0 16px;\n }\n }\n }\n\n ol#table-of-contents {\n list-style-type: none;\n counter-reset: num;\n padding: 24px 0 5px 0;\n font-size: 16px;\n font-weight: 500;\n margin: 0 0 0 20px;\n\n li {\n position: relative;\n margin: 0 0 0 0;\n padding: 0 0 12px 16px;\n line-height: 160%;\n\n &:last-child {\n padding: 0 0 0 16px;\n }\n\n cursor: pointer;\n\n a {\n transition: color 200ms ease-in-out;\n color: ",";\n\n &:hover {\n color: ",";\n }\n }\n }\n\n li:before {\n content: counter(num) '.';\n counter-increment: num;\n display: inline-block;\n position: absolute;\n top: 0;\n left: -26px;\n width: 20px;\n color: ",";\n text-align: right;\n }\n }\n"]);return Article_styles_templateObject2=function(){return e},e}function Article_styles_templateObject3(){let e=(0,o._)(["\n position: relative;\n width: 100%;\n aspect-ratio: 20 / 9;\n margin-bottom: 32px;\n\n @media only screen and "," {\n font-size: 40px;\n }\n @media only screen and "," {\n font-size: 34px;\n }\n @media only screen and "," {\n font-size: 22px;\n }\n"]);return Article_styles_templateObject3=function(){return e},e}function Article_styles_templateObject4(){let e=(0,o._)(["\n margin: 0 0 24px 0;\n\n @media screen and (min-width: ",") {\n }\n\n @media screen and (min-width: ",") {\n margin: 0 0 32px 0;\n }\n"]);return Article_styles_templateObject4=function(){return e},e}function Article_styles_templateObject5(){let e=(0,o._)(["\n margin: 0 0 12px 0;\n color: var(--general-text-title, #252c44);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: 20px;\n font-weight: 600;\n line-height: 140%;\n\n @media screen and (min-width: ",") {\n margin: 0 0 24px 0;\n }\n\n @media screen and (min-width: ",") {\n font-size: 24px;\n margin: 0 0 32px 0;\n }\n"]);return Article_styles_templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(90deg);\n position: fixed;\n bottom: 28px;\n right: 28px;\n width: 40px;\n height: 40px;\n border-radius: 20px;\n opacity: 0;\n transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;\n opacity: ",";\n visibility: ",";\n z-index: 1000; // portal?\n\n & svg {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (min-width: ",") {\n bottom: 40px;\n right: 40px;\n width: 52px;\n height: 52px;\n border-radius: 26px;\n\n & svg {\n width: 26px;\n height: 26px;\n }\n }\n\n @media screen and (min-width: ",") {\n border-radius: 36px;\n width: 72px;\n height: 72px;\n\n & svg {\n width: 36px;\n height: 36px;\n }\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n border: 1px solid ",";\n border-radius: 16px;\n padding: 16px 16px 8px 16px;\n margin-bottom: 24px;\n\n @media screen and (min-width: ",") {\n padding: 24px 24px 16px 24px;\n margin-bottom: 32px;\n };\n\n @media screen and (min-width: ",") {\n };\n\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 140%;\n color: ",";\n margin-bottom: 12px;\n\n @media screen and (min-width: ",") {\n font-size: 20px;\n margin-bottom: 24px;\n };\n\n @media screen and (min-width: ",") {\n font-size: 24px;\n margin-bottom: 16px;\n };\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n list-style: none;\n\n li {\n color: ",";\n font-size: 14px;\n font-style: normal;\n line-height: 160%;\n margin-bottom: 8px;\n };\n\n & li::before {\n content: '';\n display: inline-block;\n width: 8px;\n height: 8px;\n margin: 0 16px 2px 0;\n border-radius: 50%;\n background-color: #0f75fc;\n };\n\n @media screen and (min-width: ",") {\n\n li {\n font-size: 16px;\n };\n };\n"]);return _templateObject9=function(){return e},e}let f=r.ZP.div.withConfig({componentId:"sc-cba20e43-0"})(Article_styles_templateObject()),x=r.ZP.article.withConfig({componentId:"sc-cba20e43-1"})(Article_styles_templateObject1(),e=>{let{theme:n}=e;return n.colors.white},l.Uh.mobile,l.Uh.tablet,l.Uh.desktop),g=r.ZP.section.withConfig({componentId:"sc-cba20e43-2"})(Article_styles_templateObject2(),e=>{let{theme:n}=e;return n.colors.text.title},e=>{let{theme:n}=e;return n.colors.primary},l.Uh.desktop,e=>{let{theme:n}=e;return n.colors.text.title},l.Uh.mobile,e=>{let{theme:n}=e;return n.colors.text.nullLabel},e=>{let{theme:n}=e;return n.colors.text.nullLabel},e=>{let{theme:n}=e;return n.colors.primary},e=>{let{theme:n}=e;return n.colors.primaryHover},e=>{let{theme:n}=e;return n.colors.primary}),b=r.ZP.div.withConfig({componentId:"sc-cba20e43-3"})(Article_styles_templateObject3(),l.Uh.desktop,l.Uh.tablet,l.Uh.mobile),w=r.ZP.nav.withConfig({componentId:"sc-cba20e43-4"})(Article_styles_templateObject4(),l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),_=r.ZP.h3.withConfig({componentId:"sc-cba20e43-5"})(Article_styles_templateObject5(),l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),j=(0,r.ZP)(m).withConfig({componentId:"sc-cba20e43-6"})(_templateObject6(),e=>{let{isShow:n}=e;return n?1:0},e=>{let{isShow:n}=e;return n?"visible":"hidden"},l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),y=r.ZP.div.withConfig({componentId:"sc-cba20e43-7"})(_templateObject7(),l.rS.colors.text.lightBlue,l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),C=r.ZP.p.withConfig({componentId:"sc-cba20e43-8"})(_templateObject8(),l.rS.colors.text.title,l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),v=r.ZP.ul.withConfig({componentId:"sc-cba20e43-9"})(_templateObject9(),l.rS.colors.text.title,l.rS.breakpoints.desktop.min);var O=i(2265),k=i(88047),I=i(17884),S=i(16691),P=i.n(S),E=i(98536),A=i(26420),L=i(61396),T=i.n(L),N=i(20640),M=i(55281),Z=i(74493),B=i(17870);function RecommendedWidget_templateObject(){let e=(0,o._)([""]);return RecommendedWidget_templateObject=function(){return e},e}function RecommendedWidget_templateObject1(){let e=(0,o._)(["\n font-weight: 700;\n transition: color 200ms ease-in-out;\n color: ",";\n line-height: 140%;\n\n ",":hover & {\n color: ",";\n }\n"]);return RecommendedWidget_templateObject1=function(){return e},e}let D=r.ZP.div.withConfig({componentId:"sc-3f412546-0"})(RecommendedWidget_templateObject()),H=(0,r.ZP)(A.Text14).withConfig({componentId:"sc-3f412546-1"})(RecommendedWidget_templateObject1(),l.rS.colors.text.darkBlue,D,e=>{let{theme:n}=e;return n.colors.primary}),RecommendedWidget=e=>{let{articles:n}=e,handleArticleEvent=(e,n)=>{(0,B.p)(N.Z.LEARN_ARTICLE,{category:e,article:n,source:"recommended"})};return(0,h.jsxs)(k.Paper,{padding:32,children:[(0,h.jsx)(A.Text20,{style:{fontWeight:600,lineHeight:"140%",color:"".concat(l.rS.colors.text.title)},children:"Recommended"}),(0,h.jsx)(I.Stack,{spacing:16,direction:"column",alignItems:"stretch",style:{marginTop:24},children:n.map(e=>{let{id:n,category:i,cover:o,title:r,titleId:l,createdAt:a}=e;return(0,h.jsx)(T(),{prefetch:!1,onClick:()=>{handleArticleEvent(i.replace(" ","_"),n.toString())},href:"".concat((0,k.getArticleUrl)(l,i)),children:(0,h.jsx)(D,{children:(0,h.jsxs)(I.Stack,{direction:"row",spacing:10,children:[(0,h.jsx)(P(),{width:104,height:68,style:{borderRadius:"8px",objectFit:"cover"},src:o.formats.thumbnail.url,alt:r}),(0,h.jsxs)(I.Stack,{spacing:8,direction:"column",alignItems:"flex-start",style:{maxWidth:"176px",wordWrap:"break-word",hyphens:"auto"},children:[(0,h.jsx)(H,{children:r}),(0,h.jsx)("p",{style:{color:"#859AB5",fontSize:"12px"},children:(0,M.Z)((0,Z.Z)(a),"PP")})]})]})})},n)})})]})};var F=i(24033),z=i(4202),W=i(66219),R=i(76180),U=i(37883),G=i(3198);let SatismetrBootstrap=()=>{let e=(0,z.C)(e=>e.thirdParty.statismeter),n=(0,G.I0)(),loadStatismeterScript=async()=>{await new Promise((e,n)=>{window.satismeter=window.satismeter||function(){var e;(window.satismeter.q=(null===(e=window)||void 0===e?void 0:e.satismeter.q)||[]).push(arguments)},window.satismeter.l=new Date;let i=document.createElement("script");i.async=!0,i.src="https://app.satismeter.com/js",i.onload=function(){window.satismeter||(console.log("[Statismeter] Error: could not load SDK"),n(Error("[Statismeter] Error: could not load SDK"))),window.satismeter({writeKey:"pXo8gpqhZ9YL73ro"}),e()},document.body.appendChild(i)})},initStatismeter=async()=>{if("idle"===e.loadingStatus)try{n(W.Nw.loadStatismeter_request()),await (0,U.Z)(),await (0,R.Z)(200),await loadStatismeterScript(),n(W.Nw.loadStatismeter_success())}catch(e){n(W.Nw.loadStatismeter_failure())}};return(0,O.useEffect)(()=>(initStatismeter(),()=>{window.satismeter=()=>{}}),[]),null};var X=i(4771);function Disclaimer_templateObject(){let e=(0,o._)(["\n margin: 2rem 0 2rem 0;\n padding: 0;\n\n @media only screen and "," {\n margin: 2.5rem 0 2.5rem 0;\n }\n\n @media only screen and "," {\n margin: 3rem 0 3rem 0;\n }\n"]);return Disclaimer_templateObject=function(){return e},e}function Disclaimer_templateObject1(){let e=(0,o._)(["\n && {\n padding: 0 0 0 1.5em;\n border-left: 2px solid #0f75fc;\n margin-bottom: 0;\n color: #0f75fc;\n font-style: italic;\n & a {\n font-weight: 600;\n }\n & a:hover {\n text-decoration: underline;\n }\n }\n"]);return Disclaimer_templateObject1=function(){return e},e}function Disclaimer_templateObject2(){let e=(0,o._)(["\n background-color: #f2f7fe;\n padding: 1.5em;\n border-radius: 0.5em;\n cursor: default;\n \n ","\n"]);return Disclaimer_templateObject2=function(){return e},e}let V=(0,r.ZP)(X.W).withConfig({componentId:"sc-bb44c3d6-0"})(Disclaimer_templateObject(),l.Uh.tablet,l.Uh.desktop),K=(0,r.ZP)(A.Text16).withConfig({componentId:"sc-bb44c3d6-1"})(Disclaimer_templateObject1()),Y=r.ZP.article.withConfig({componentId:"sc-bb44c3d6-2"})(Disclaimer_templateObject2(),K),Disclaimer=()=>(0,h.jsx)(V,{className:"article-disclaimer",children:(0,h.jsx)(Y,{children:(0,h.jsxs)(K,{children:["The information in this article is not a piece of financial advice or any other advice of any kind. The reader should be aware of the risks involved in trading cryptocurrencies and make their own informed decisions. SimpleSwap is not responsible for any losses incurred due to such risks. For details, please see our"," ",(0,h.jsx)("a",{href:"https://simpleswap.io/terms-of-service",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})})});var q=i(8730),Q=i(83776),$=i(62682),J={src:"/learn/_next/static/media/copy.bb85c202.svg",height:12,width:12,blurWidth:0,blurHeight:0},ee={src:"/learn/_next/static/media/buy-crypto.6b427be1.svg",height:16,width:16,blurWidth:0,blurHeight:0},et=i(33898),en=i(88356),ei=i(85739),eo=i(91837);function CoinCard_templateObject(){let e=(0,o._)(["\n ","\n\n flex-direction: column;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 140%;\n\n .pointer-text {\n color: ",";\n }\n\n :not(.pointer-text) {\n color: var(--general-text-null-label, #859ab5);\n }\n"]);return CoinCard_templateObject=function(){return e},e}function CoinCard_templateObject1(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 10px;\n padding: 8px 24px;\n box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.03);\n"]);return CoinCard_templateObject1=function(){return e},e}function CoinCard_templateObject2(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n padding: 24px 14px 24px 24px;\n gap: 24px;\n"]);return CoinCard_templateObject2=function(){return e},e}function CoinCard_templateObject3(){let e=(0,o._)(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n .col-header {\n font-size: 10px;\n }\n"]);return CoinCard_templateObject3=function(){return e},e}function CoinCard_templateObject4(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n padding: 0 36px;\n\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 140%;\n\n .pointer-text {\n color: ",";\n }\n\n .copy-icon:hover {\n cursor: pointer;\n filter: brightness(0) saturate(100%) invert(11%) sepia(12%) saturate(2815%) hue-rotate(188deg)\n brightness(94%) contrast(83%);\n }\n"]);return CoinCard_templateObject4=function(){return e},e}function CoinCard_templateObject5(){let e=(0,o._)(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n\n * {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"]);return CoinCard_templateObject5=function(){return e},e}let CoinCard=e=>{let{coin:n,percentage:i,id:o,fiatValue:r,setControlledValue:a,setControlledCoinTo:c}=e,{ticker:s,name:d,network:p,logo:{url:u}}=n,[m,f]=(0,O.useState)(null),[x,g]=(0,O.useState)(null),[b,w]=(0,O.useState)(!1),[_,j]=(0,O.useState)(!1),y=(0,z.C)(e=>e.exchange.fiatPairs),C=(0,z.T)(),v=(0,O.useCallback)((e,n)=>e/100*n,[]);return(0,O.useEffect)(()=>{let e=v(Number(i),r);g(e)},[v,i,r]),(0,O.useEffect)(()=>{x&&(w(!0),(0,et.xC)("usdt",p.toLowerCase(),x).then(e=>{if(null===e){f("not exist");return}if("too small"===e){f("too small");return}"Bitcoin"===d?(f(e.toFixed(6)),C(en.K.setEstimatedCoinToPortfolio({estimatedValue:e.toFixed(6),id:o}))):(f(e.toFixed(2)),C(en.K.setEstimatedCoinToPortfolio({estimatedValue:e.toFixed(2),id:o})))}).catch(()=>{f("-"),w(!1)}).finally(()=>{w(!1)}))},[x]),(0,O.useEffect)(()=>{if(Object.keys(y).length>0){let e=y[eo.DA].includes(p.toLowerCase());j(!e)}},[y,p]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(I.Hide,{when:{mobile:!0},children:(0,h.jsxs)(es,{children:[(0,h.jsxs)(ed,{style:{marginRight:"0px",width:"168px"},children:[(0,h.jsx)(P(),{width:24,height:24,src:u,alt:"coin logo"}),(0,h.jsx)("span",{className:"pointer-text",children:s}),(0,h.jsx)("span",{children:d})]}),(0,h.jsxs)(ed,{style:{marginRight:"0px",width:"158px",overflowX:"clip"},children:[(0,h.jsxs)(Q.Od,{width:"40px",visible:!(m&&"not exist"!==m)||b,children:[_&&(0,h.jsx)(ei.u,{anchorSelect:".warning-estimate",place:"top",content:"Amount is shown for USDT-to-crypto exchanges. The rates for fiat exchanges may differ.",variant:"warning",clickable:!0,style:{backgroundColor:"".concat(l.rS.colors.primaryWhite),padding:"12px 16px",borderRadius:"8px",fontSize:"11px",color:"".concat(l.rS.colors.text.title),width:"180px",whiteSpace:"normal",overflowX:"unset"}}),(0,h.jsxs)("span",{className:"".concat(_?"warning-estimate":""," estimated-tabel-value pointer-text"),children:["≈ ",m]})]}),(0,h.jsx)("span",{children:s})]}),(0,h.jsxs)(ed,{style:{marginRight:"0px",width:"144px"},children:[(0,h.jsxs)("span",{style:{maxWidth:"84px"},className:"pointer-text",children:["≈ $",x]}),_?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(ei.u,{anchorSelect:".warning-icon",place:"top",variant:"warning",clickable:!0,style:{backgroundColor:"".concat(l.rS.colors.primaryWhite),padding:"12px 16px",borderRadius:"8px",fontSize:"11px",color:"".concat(l.rS.colors.text.title),width:"180px",whiteSpace:"normal",overflowX:"unset"},children:["This coin can only be purchased for another crypto (f.e. USDT), not fiat currency. Please, use our"," ",(0,h.jsx)("a",{style:{color:l.rS.colors.primaryHover},href:"https://simpleswap.io/",rel:"noreferrer",children:"main page"})," ","to exchange."]}),(0,h.jsx)("div",{style:{borderRadius:"8px",width:"24px",height:"24px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,h.jsx)(P(),{className:"warning-icon",src:ee,width:16,height:16,alt:"the coin isn't in the exchanger"})})]}):(0,h.jsx)("div",{style:{backgroundColor:"#E2F3F7",borderRadius:"8px",width:"24px",height:"24px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,h.jsx)(P(),{className:"copy-icon",role:"button",onClick:()=>{a(x),c(p.toLowerCase()),navigator.clipboard.writeText(x).then(()=>{console.log("value succesful copied")}).catch(()=>{console.log("you cannot copy this")})},src:J,width:12,height:12,alt:"copy fiat value to clipboard"})})]}),(0,h.jsxs)(ed,{style:{minWidth:"62px",color:"#3F5878"},children:[i,"%"]})]},o)}),(0,h.jsx)(I.Show,{when:{mobile:!0},children:(0,h.jsxs)(er,{children:[(0,h.jsxs)(el,{children:[(0,h.jsx)(P(),{width:24,height:24,src:u,alt:"coin logo"}),(0,h.jsx)("span",{className:"pointer-text",children:s}),(0,h.jsx)("span",{children:d})]}),(0,h.jsxs)(ea,{children:[(0,h.jsxs)(ec,{style:{flex:"2 1 auto"},children:[(0,h.jsx)("p",{className:"col-header",children:"Value"}),(0,h.jsxs)(Q.Od,{width:"40px",visible:!m,children:[(0,h.jsxs)("span",{className:"pointer-text",style:{marginRight:"8px"},children:["≈ ",m]}),(0,h.jsx)("span",{children:s})]})]}),(0,h.jsxs)(ec,{style:{flex:"1 2 auto"},children:[(0,h.jsx)("p",{className:"col-header",children:"Amount"}),(0,h.jsxs)("span",{className:"pointer-text",children:["≈ $",x]})]}),(0,h.jsxs)(ec,{style:{flex:"0 3 auto"},children:[(0,h.jsx)("p",{className:"col-header",children:"Percent"}),(0,h.jsxs)("span",{className:"pointer-text",children:[i,"%"]})]})]})]})})]})},er=r.ZP.div.withConfig({componentId:"sc-a887ff3c-0"})(CoinCard_templateObject(),I.Stack,l.rS.colors.text.darkBlue),el=r.ZP.div.withConfig({componentId:"sc-a887ff3c-1"})(CoinCard_templateObject1()),ea=r.ZP.div.withConfig({componentId:"sc-a887ff3c-2"})(CoinCard_templateObject2()),ec=r.ZP.div.withConfig({componentId:"sc-a887ff3c-3"})(CoinCard_templateObject3()),es=r.ZP.tr.withConfig({componentId:"sc-a887ff3c-4"})(CoinCard_templateObject4(),l.rS.colors.text.darkBlue),ed=r.ZP.td.withConfig({componentId:"sc-a887ff3c-5"})(CoinCard_templateObject5());var ep=i(98605),eu=i(20105),eh=i(96704);eh.kL.register(eh.qi),eh.kL.register(eh.tt),eh.kL.register(eh.u);let em="unknown",PieChartCoins=e=>{let{portfolioData:n,setLegendData:i,fiatValue:o,pieKey:r}=e,a=(0,O.useRef)(),c={data:[],backgroundColor:[],hoverOffset:0,spacing:1,borderRadius:8,borderAlign:"center",borderJoinStyle:"round",offset:4},s={labels:[],label:"Portfolio",datasets:[],realAmount:[],coinName:[],coinStoreIds:[],logos:[]},d={plugins:{tooltip:{backgroundColor:l.rS.colors.text.title,bodyFontSize:14,corenerRadius:4,displayColors:!1,callbacks:{title:()=>"",label:e=>{let n=e.dataIndex,i=s.coinName[n],o=void 0!==s.labels?s.labels[n]:em,r="".concat(o," ").concat(i);return r}}}}};return void 0!==n&&Array.isArray(n)&&(n.forEach(e=>{void 0!==s.labels&&s.labels.push(e.coin.ticker),s.coinName.push(e.coin.name),s.realAmount.push(Number(o)*e.percentage/100),s.logos.push(e.coin.logo.url),s.coinStoreIds.push(e.id.toString()),c.data.push(e.percentage),c.backgroundColor.push(e.coin.color)}),s.datasets.push(c)),(0,h.jsx)(eu.by,{style:{cursor:"pointer"},ref:a,datasetIdKey:null!=r?r:"pie1",data:s,options:d,onClick:e=>{if(void 0!==a.current){let[n]=(0,eu.cX)(a.current,e),o=n.index;i(e=>({...e,isOpen:!0,coinId:s.coinStoreIds[o],ticker:void 0!==s.labels?s.labels[o]:em,name:s.coinName[o],percentage:c.data[o].toString(),realAmount:s.realAmount[o],logo:s.logos[o]}))}}})};PieChartCoins.displayName="PieChart";var ef=i(1807);function PortfolioCalculator_style_templateObject(){let e=(0,o._)(["\n margin-bottom: 24px;\n\n h2 {\n color: var(--general-text-dark-blue, #3f5878);\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n }\n\n @media screen and (min-width: ",") {\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n\n h2 {\n color: var(--general-text-title, #252c44);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: 24px;\n font-weight: 600;\n line-height: 140%;\n }\n }\n"]);return PortfolioCalculator_style_templateObject=function(){return e},e}function PortfolioCalculator_style_templateObject1(){let e=(0,o._)(["\n /* display: block; // allows to use scroll in table\n overflow-y: scroll;\n position: relative;\n height: 480px; */\n border: 1.5px solid var(--general-input-color, #ecf1f7);\n table-layout: auto;\n width: 100%;\n color: var(--general-text-null-label, #859ab5);\n text-align: center;\n border-radius: 16px;\n\n @media screen and (min-width: ",") {\n font-size: 14px;\n font-weight: 500;\n line-height: 140%;\n }\n"]);return PortfolioCalculator_style_templateObject1=function(){return e},e}function PortfolioCalculator_style_templateObject2(){let e=(0,o._)(["\n /* position: sticky;\n top: 0;\n z-index: 2; */\n background-color: ",";\n"]);return PortfolioCalculator_style_templateObject2=function(){return e},e}function PortfolioCalculator_style_templateObject3(){let e=(0,o._)(["\n @media screen and (min-width: ",") {\n display: flex;\n flex-direction: row;\n gap: 8px;\n border-bottom: 1px solid #ecf1f7;\n padding: 20px 36px;\n\n th {\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n font-weight: 500;\n line-height: 140%;\n }\n }\n"]);return PortfolioCalculator_style_templateObject3=function(){return e},e}function PortfolioCalculator_style_templateObject4(){let e=(0,o._)(["\n display: block;\n overflow-y: scroll;\n max-height: 400px;\n scrollbar-width: thin; // firefox\n scrollbar-color: #C6D5EA transparent; // firefox\n\n & td {\n padding: 24px 0 12px 0;\n }\n\n &::-webkit-scrollbar{\n width: 10px\n }\n &::-webkit-scrollbar-track {\n border: 4px solid transparent;\n}\n &::-webkit-scrollbar-thumb {\n background-color: #C6D5EA;\n border-radius: 24px;\n }\n"]);return PortfolioCalculator_style_templateObject4=function(){return e},e}function PortfolioCalculator_style_templateObject5(){let e=(0,o._)(["\n border-radius: 16px;\n background: var(--general-base-white, #fff);\n padding: 16px 24px;\n\n @media screen and (min-width: ",";) {\n padding: 48px 62px 24px 62px;\n }\n"]);return PortfolioCalculator_style_templateObject5=function(){return e},e}function PortfolioCalculator_style_templateObject6(){let e=(0,o._)(["\n flex-direction: row;\n justify-content: ",";\n padding: 56px 62px;\n"]);return PortfolioCalculator_style_templateObject6=function(){return e},e}function PortfolioCalculator_style_templateObject7(){let e=(0,o._)(["\n flex-direction: row;\n justify-content: flex-start;\n padding: 0;\n "]);return PortfolioCalculator_style_templateObject7=function(){return e},e}function PortfolioCalculator_style_templateObject8(){let e=(0,o._)(["\n visibility: ",";\n flex-direction: column;\n align-items: flex-start;\n width: ",";\n margin-left: ",";\n gap: 8px;\n\n p {\n padding: 8px 24px;\n border-radius: 24px;\n\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 140%;\n\n background: var(--general-base-primary-white, #f2f7fe);\n color: var(--general-text-null-label, #859ab5);\n }\n\n .pointer-text {\n color: ",";\n }\n\n .copy-icon:hover {\n cursor: pointer;\n filter: brightness(0) saturate(100%) invert(11%) sepia(12%) saturate(2815%) hue-rotate(188deg)\n brightness(94%) contrast(83%);\n }\n"]);return PortfolioCalculator_style_templateObject8=function(){return e},e}function PortfolioCalculator_style_templateObject9(){let e=(0,o._)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-bottom: 24px;\n\n @media screen and (min-width: ",") {\n margin-bottom: 0;\n flex-direction: row;\n gap: 16px;\n }\n"]);return PortfolioCalculator_style_templateObject9=function(){return e},e}function _templateObject10(){let e=(0,o._)(["\n flex: 1;\n flex-direction: row;\n gap: 4px;\n width: 100%;\n margin-bottom: 16px;\n\n & > div:first-of-type {\n width: 50%;\n }\n\n @media screen and (min-width: ",") {\n margin-bottom: 0;\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,o._)(["\n flex: 1;\n flex-direction: row;\n font-size: 14px;\n gap: 4px;\n width: 100%;\n margin-bottom: 16px;\n "]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,o._)(["\n padding: 24px 16px;\n border-radius: 8px 0 0 8px;\n background-color: #ecf1f7;\n\n color: #3f5878;\n font-size: 14px;\n font-weight: 500;\n line-height: 120%;\n white-space: nowrap;\n\n transition: background 0.2s ease, box-shadow 0.2s ease;\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,o._)(["\n height: 54px;\n border-radius: 0px;\n text-align: right;\n flex: 1 1 50%;\n border-radius: 8px 0 0 8px;\n\n font-size: 14px;\n font-weight: 600;\n line-height: 120%;\n\n &::before {\n content: 'You send';\n color: #3f5878;\n font-size: 10px;\n font-weight: 500;\n line-height: 120%;\n white-space: nowrap;\n padding: 20px 16px;\n }\n\n @media screen and (min-width: ",") {\n font-size: 20px;\n height: 64px;\n\n &::before {\n font-size: 14px;\n line-height: 120%;\n white-space: nowrap;\n padding: 23px 16px;\n }\n }\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,o._)(["\n height: 54px;\n display: block;\n overflow-y: hidden;\n border-radius: 0px;\n text-align: left;\n flex: 1 0 50%;\n border-radius: 8px 0 0 8px;\n padding: 6px 16px;\n\n font-size: 16px;\n font-weight: 600;\n line-height: 120%;\n \n input {\n padding: 0;\n }\n\n & div:hover {\n background-color: unset;\n border-color: unset;\n }\n\n &::before {\n content: 'You send';\n position: absolute;\n color: #3f5878;\n font-size: 12px;\n font-weight: 500;\n line-height: 120%;\n z-index: 1000;\n white-space: nowrap;\n }\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,o._)(["\n flex-direction: row;\n flex: 1 1 50%;\n\n &:hover {\n "," {\n background-color: #e4ebf3;\n border-color: #e4ebf3;\n }\n }\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,o._)(["\n width: 100%;\n\n @media screen and (min-width: ",") {\n width: auto;\n height: auto;\n padding: 20px 46px;\n }\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){let e=(0,o._)(["\n color: var(--general-text-title, #252c44);\n font-size: 14px;\n font-weight: 600;\n line-height: 120%;\n\n @media screen and (min-width: ",") {\n font-size: 18px;\n }\n"]);return _templateObject17=function(){return e},e}function _templateObject18(){let e=(0,o._)(["\n /* flex: 1; */\n pointer-events: none;\n min-width: 92px;\n min-height: 54px;\n height: auto;\n background-color: #ecf1f7;\n padding: 16px 16px;\n\n @media screen and (min-width: ",") {\n height: auto;\n flex: 1 1 50%;\n }\n\n @media screen and (min-width: ",") {\n height: auto;\n padding: 20px 16px;\n }\n"]);return _templateObject18=function(){return e},e}let ex=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-0"})(PortfolioCalculator_style_templateObject(),l.rS.breakpoints.tablet.min),eg=r.ZP.table.withConfig({componentId:"sc-7db11c9d-1"})(PortfolioCalculator_style_templateObject1(),l.rS.breakpoints.desktop.min),eb=(0,r.ZP)("thead").withConfig({componentId:"sc-7db11c9d-2"})(PortfolioCalculator_style_templateObject2(),l.rS.colors.white),ew=(0,r.ZP)("tr").withConfig({componentId:"sc-7db11c9d-3"})(PortfolioCalculator_style_templateObject3(),l.rS.breakpoints.tablet.min),e_=r.ZP.tbody.withConfig({componentId:"sc-7db11c9d-4"})(PortfolioCalculator_style_templateObject4()),ej=r.ZP.section.withConfig({componentId:"sc-7db11c9d-5"})(PortfolioCalculator_style_templateObject5(),l.rS.breakpoints.tablet.min),ey=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-6"})(PortfolioCalculator_style_templateObject6(),e=>{let{isVisible:n}=e;return n?"flex-start":"center"}),eC=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-7"})(PortfolioCalculator_style_templateObject7()),ev=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-8"})(PortfolioCalculator_style_templateObject8(),e=>{let{isVisible:n}=e;return n?"visible":"hidden"},e=>{let{isVisible:n}=e;return n?"auto":"0"},e=>{let{isVisible:n}=e;return n?"60px":"0"},l.rS.colors.text.darkBlue),eO=r.ZP.section.withConfig({componentId:"sc-7db11c9d-9"})(PortfolioCalculator_style_templateObject9(),l.rS.breakpoints.tablet.min),ek=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-10"})(_templateObject10(),l.rS.breakpoints.tablet.min),eI=(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-11"})(_templateObject11()),eS=r.ZP.p.withConfig({componentId:"sc-7db11c9d-12"})(_templateObject12()),eP=(0,r.ZP)(Q.II).withConfig({componentId:"sc-7db11c9d-13"})(_templateObject13(),l.rS.breakpoints.tablet.min),eE=(0,r.ZP)(Q.II).withConfig({componentId:"sc-7db11c9d-14"})(_templateObject14());(0,r.ZP)(I.Stack).withConfig({componentId:"sc-7db11c9d-15"})(_templateObject15(),eS);let eA=(0,r.ZP)(Q.zx).withConfig({componentId:"sc-7db11c9d-16"})(_templateObject16(),l.rS.breakpoints.tablet.min),eL=(0,r.ZP)(ep.QL).withConfig({componentId:"sc-7db11c9d-17"})(_templateObject17(),l.rS.breakpoints.tablet.min),eT=(0,r.ZP)(ep.pb).withConfig({componentId:"sc-7db11c9d-18"})(_templateObject18(),l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min);var eN=i(72720),eM=i(45433);i(94099),i(76088);var eZ=i(62545);let PortfolioCalculator=e=>{let{portfolioData:n}=e,[i,o]=(0,O.useState)({isOpen:!1,coinId:"",ticker:"",name:"",percentage:"",realAmount:0,logo:""}),[r,l]=(0,O.useState)("".concat(1e3)),[a,c]=(0,O.useState)(),[s,d]=(0,O.useState)(),p=(0,z.C)(ef.IC),u=(0,z.C)(ef.oj),m=(0,z.T)();return(0,O.useEffect)(()=>{l(u.toString())},[u]),(0,h.jsxs)(ej,{id:"portfolio-calculator",children:[(0,h.jsxs)(ex,{children:[(0,h.jsx)(A.Title2,{children:"Calculate this portfolio"}),(0,h.jsx)(I.Hide,{when:{mobile:!0},children:(0,h.jsxs)("div",{children:[(0,h.jsxs)(A.Text14,{style:{marginBottom:"4px"},children:["1. Enter a potential investment amount and click ",(0,h.jsx)("b",{children:"Calculate"})]}),(0,h.jsx)(A.Text14,{children:"2. See how much of each coin you’ll need to build this portfolio"})]})})]}),(0,h.jsxs)(eO,{children:[(0,h.jsxs)(ek,{children:[(0,h.jsx)(eP,{type:"text",className:"fiat-input",inputMode:"decimal",defaultValue:"".concat(1e3),maxLength:8,onChange:e=>{var n;l(null===(n=e.target)||void 0===n?void 0:n.value)},value:r}),(0,h.jsxs)(eT,{size:"large",onClick:()=>!1,children:[(0,h.jsx)(ep.tO,{src:"https://static.simpleswap.io/images/currencies-logo/usd.svg",alt:"currency"}),(0,h.jsx)(eL,{children:"USD"})]})]}),(0,h.jsx)(eA,{view:"accent",size:"xl",onClick:()=>{m(en.K.setFiatAmount({fiatAmount:r}))},children:"Calculate"})]}),(0,h.jsxs)(I.Hide,{when:{mobile:!0},children:[(0,h.jsxs)(ey,{isVisible:i.isOpen,children:[(0,h.jsx)("section",{style:{width:"200px",height:"200px"},children:(0,h.jsx)(PieChartCoins,{fiatValue:u,setLegendData:o,portfolioData:n})}),(0,h.jsxs)(ev,{isVisible:i.isOpen,children:[(0,h.jsxs)("p",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"},children:[(0,h.jsx)(P(),{style:{display:"inline"},width:24,height:24,src:i.logo,alt:"coin logo"}),(0,h.jsx)("span",{className:"pointer-text",children:i.ticker}),(0,h.jsx)("span",{children:i.name})]}),(0,h.jsx)(Q.Od,{visible:!p[i.coinId],children:(0,h.jsxs)("p",{style:{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"},children:[(0,h.jsxs)("span",{className:"pointer-text",children:["≈ ",p[i.coinId]]}),(0,h.jsx)("span",{children:i.ticker})]})}),(0,h.jsx)("p",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"},children:(0,h.jsxs)("span",{className:"pointer-text",children:["≈ $",i.realAmount]})}),(0,h.jsxs)("p",{className:"pointer-text",children:[i.percentage,"%"]})]})]}),(0,h.jsxs)(eg,{style:{marginBottom:"12px"},children:[(0,h.jsx)(eb,{children:(0,h.jsxs)(ew,{children:[(0,h.jsx)("th",{style:{marginRight:"0",width:"168px"},children:"Cryptocurrency"}),(0,h.jsx)("th",{style:{marginRight:"0",width:"158px"},children:"Value"}),(0,h.jsx)("th",{style:{marginRight:"0",width:"144px"},children:"Amount"}),(0,h.jsx)("th",{children:"Percent"})]})}),(0,h.jsx)(e_,{children:void 0!==n?n.map(e=>(0,h.jsx)(CoinCard,{coin:e.coin,percentage:e.percentage,id:e.id,fiatValue:u,setControlledValue:c,setControlledCoinTo:d},e.coin.id)):(0,h.jsx)(eZ.NB,{colors:["#0f75fc","#0f75fc","#0f75fc","#0f75fc","#0f75fc"],visible:!0,height:"100",width:"100"})})]})]}),(0,h.jsx)(I.Show,{when:{mobile:!0},children:(0,h.jsx)(eN.tq,{slidesPerView:1,pagination:{clickable:!0},style:{maxWidth:"300px",margin:"0 auto",paddingBottom:"24px",borderRadius:"8px",border:"1px solid #F2F7FE"},modules:[eM.tl],children:void 0!==n?n.map(e=>(0,h.jsx)(eN.o5,{style:{marginBottom:"8px"},children:(0,h.jsx)(CoinCard,{coin:e.coin,percentage:e.percentage,id:e.id,setControlledValue:c,setControlledCoinTo:d,fiatValue:u},e.coin.id)},e.coin.id)):(0,h.jsx)(eZ.NB,{colors:["#0f75fc","#0f75fc","#0f75fc","#0f75fc","#0f75fc"],visible:!0,height:"100",width:"100"})})}),(0,h.jsx)($.default,{controlledInputValue:a,controlledCoinTo:s,currencyType:"fiat",size:"large",eventSource:"learn_article_sidebar"})]})};function AnchorTitlesNavigation_templateObject(){let e=(0,o._)(["\n color: #252c44;\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n margin-bottom: 8px;\n transition: all 200ms ease-in-out;\n\n a {\n cursor: pointer;\n }\n\n strong {\n font-weight: 300;\n }\n\n &:hover {\n color: #0f75fc;\n scale: 1.01;\n font-size: 1em/0.01;\n transform: translateX(4px);\n }\n\n @media screen and (min-width: ",") {\n }\n\n @media screen and (min-width: ",") {\n font-size: 16px;\n }\n"]);return AnchorTitlesNavigation_templateObject=function(){return e},e}function AnchorTitlesNavigation_templateObject1(){let e=(0,o._)(["\n ","\n"]);return AnchorTitlesNavigation_templateObject1=function(){return e},e}function AnchorTitlesNavigation_templateObject2(){let e=(0,o._)(["\n ","\n margin-bottom: 6px;\n margin-left: 26px;\n"]);return AnchorTitlesNavigation_templateObject2=function(){return e},e}function AnchorTitlesNavigation_templateObject3(){let e=(0,o._)(["\n margin-right: 10px;\n color: #0f75fc;\n"]);return AnchorTitlesNavigation_templateObject3=function(){return e},e}function AnchorTitlesNavigation_templateObject4(){let e=(0,o._)(['\n &::before {\n content: "";\n display: inline-block;\n width: 8px;\n height: 8px;\n margin: 0 16px 2px 0;\n border-radius: 50%;\n background-color: #0f75fc;\n }\n']);return AnchorTitlesNavigation_templateObject4=function(){return e},e}let AnchorTitlesNavigation=e=>{let{data:n}=e,i=0;if(null===n)return null;let makeScroll=e=>{if(!e)return null;let n=document.getElementById(e.toString()),i=null==n?void 0:n.offsetTop;window.scrollTo({top:i,behavior:"smooth"})};return(0,h.jsx)("div",{children:Array.isArray(n)&&n.length>0?n.map((e,n)=>{var o,r;return"string"==typeof e.type&&null!==e.type.match(/^h2/)?(i+=1,(0,h.jsx)(eD,{children:(0,h.jsxs)("a",{role:"button",onClick:()=>{(0,B.p)(N.Z.LEARN_IN_ARTICLE_NAVIGATION),makeScroll("table-of-contents-".concat(e.key))},children:[(0,h.jsxs)(eF,{children:[i,"."]}),(0,h.jsx)("span",{children:e.props.children})]})},"".concat(null!==(o=e.key)&&void 0!==o?o:n,"-").concat(e.type))):"string"==typeof e.type&&null!==e.type.match(/^h3/)?(0,h.jsx)(eH,{children:(0,h.jsxs)("a",{role:"button",onClick:()=>{(0,B.p)(N.Z.LEARN_IN_ARTICLE_NAVIGATION),makeScroll("table-of-contents-".concat(e.key))},children:[(0,h.jsx)(ez,{}),(0,h.jsx)("span",{children:e.props.children})]})},"".concat(null!==(r=e.key)&&void 0!==r?r:n,"-").concat(e.type)):null}):(0,h.jsx)(Q.aN,{size:"xl"})})},eB=(0,r.iv)(AnchorTitlesNavigation_templateObject(),l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min),eD=r.ZP.p.withConfig({componentId:"sc-bb69bf67-0"})(AnchorTitlesNavigation_templateObject1(),eB),eH=r.ZP.p.withConfig({componentId:"sc-bb69bf67-1"})(AnchorTitlesNavigation_templateObject2(),eB),eF=r.ZP.span.withConfig({componentId:"sc-bb69bf67-2"})(AnchorTitlesNavigation_templateObject3()),ez=r.ZP.span.withConfig({componentId:"sc-bb69bf67-3"})(AnchorTitlesNavigation_templateObject4());var ArticleFastMenuWidget_ArticleFastMenuWidget=e=>{let{parsedContent:n}=e;return(0,h.jsxs)(k.Paper,{padding:32,children:[(0,h.jsx)(A.Text20,{style:{marginBottom:"16px",fontWeight:"600",lineHeight:"140%"},children:"Navigation"}),(0,h.jsx)(AnchorTitlesNavigation,{data:n})]})},eW={src:"/learn/_next/static/media/arrow-circle-right.45c08651.svg",height:16,width:16,blurWidth:0,blurHeight:0},PortfolioCalculator_AsidePortfolioCalculator=e=>{let{portfolioData:n}=e,[i,o]=(0,O.useState)({isOpen:!1,coinId:"",ticker:"",name:"",percentage:"",realAmount:0,logo:""}),[r,a]=(0,O.useState)("".concat(1e3)),c=(0,z.C)(ef.IC),s=(0,z.C)(ef.oj),d=(0,z.T)();return(0,O.useEffect)(()=>{a(s.toString()),o(e=>({...e,realAmount:Number(s*e.percentage)/100}))},[s]),(0,O.useEffect)(()=>{void 0!==n&&o(e=>({...e,isOpen:!0,coinId:n[0].id,ticker:n[0].coin.ticker,name:n[0].coin.name,percentage:n[0].percentage,realAmount:1e3*n[0].percentage/100,logo:n[0].coin.logo.url}))},[n]),(0,h.jsxs)(k.Paper,{padding:32,children:[(0,h.jsx)(A.Text16,{style:{color:"".concat(l.rS.colors.text.darkBlue),marginBottom:"24px"},children:"Test out this portfolio"}),(0,h.jsxs)(eI,{children:[(0,h.jsx)(eE,{type:"text",className:"fiat-input",inputMode:"decimal",defaultValue:"".concat(1e3),onMouseEnter:()=>!1,onMouseLeave:()=>!1,maxLength:8,onChange:e=>{a(e.target.value)},value:r}),(0,h.jsxs)(eT,{size:"large",onClick:()=>!1,children:[(0,h.jsx)(ep.tO,{src:"https://static.simpleswap.io/images/currencies-logo/usd.svg",alt:"currency",style:{width:"16px",height:"16px"}}),(0,h.jsx)(eL,{style:{fontSize:"inherit"},children:"USD"})]})]}),(0,h.jsx)(eA,{style:{width:"100%",height:"54px",marginBottom:"24px"},view:"accent",size:"xl",onClick:()=>{d(en.K.setFiatAmount({fiatAmount:r}))},children:"Calculate"}),(0,h.jsxs)(eC,{style:{marginBottom:"24px"},children:[(0,h.jsx)("section",{style:{width:"120px",height:"142px",marginLeft:"-8px"},children:(0,h.jsx)(PieChartCoins,{pieKey:"pie-portfolio-aside",fiatValue:s,setLegendData:o,portfolioData:n})}),(0,h.jsxs)(ev,{isVisible:!0,style:{marginLeft:"16px",gap:"2px"},children:[(0,h.jsx)(Q.Od,{visible:!i.name,children:(0,h.jsxs)("p",{style:{display:"flex",flexDirection:"row",padding:"8px 16px",gap:"8px",maxWidth:"152px",fontSize:"12px",width:"152px",borderRadius:"8px",alignItems:"center"},children:[(0,h.jsx)(P(),{style:{display:"inline"},width:16,height:16,src:i.logo,alt:"coin logo"}),(0,h.jsx)("span",{style:{textOverflow:"ellipsis",overflowX:"hidden"},className:"pointer-text",children:i.ticker}),(0,h.jsx)("span",{style:{textOverflow:"ellipsis",overflowX:"hidden"},children:i.name})]})}),(0,h.jsx)(Q.Od,{visible:!c[i.coinId],children:(0,h.jsxs)("p",{style:{display:"flex",flexDirection:"row",gap:"8px",padding:"8px 16px",maxWidth:"152px",width:"152px",fontSize:"12px",borderRadius:"8px",alignItems:"center"},children:[(0,h.jsxs)("span",{className:"pointer-text",children:["≈ ",c[i.coinId]]}),(0,h.jsx)("span",{style:{textOverflow:"ellipsis",overflowX:"hidden"},children:i.ticker})]})}),(0,h.jsx)(Q.Od,{visible:!i.realAmount,children:(0,h.jsx)("p",{style:{display:"flex",flexDirection:"row",gap:"8px",padding:"8px 16px",maxWidth:"152px",width:"152px",fontSize:"12px",borderRadius:"8px",alignItems:"center"},children:(0,h.jsxs)("span",{className:"pointer-text",children:["≈ $",i.realAmount]})})}),(0,h.jsx)(Q.Od,{visible:!i.percentage,children:(0,h.jsxs)("p",{style:{maxWidth:"152px",width:"152px",fontSize:"12px",padding:"8px 16px",borderRadius:"8px"},className:"pointer-text",children:[i.percentage,"%"]})})]})]}),(0,h.jsxs)(I.Stack,{direction:"row",justifyContent:"center",spacing:8,children:[(0,h.jsx)("a",{href:"#portfolio-calculator",style:{color:l.rS.colors.primary,cursor:"pointer"},children:"View full"}),(0,h.jsx)("a",{href:"#portfolio-calculator",children:(0,h.jsx)(P(),{src:eW,alt:"go to portfolio widget",style:{cursor:"pointer"}})})]})]})};let ArticleSection=e=>{var n;let{children:i,articleId:o,article:r,parsedContent:l,recommendedArticles:a}=e,{title:c,createdAt:s,cover:d,portfolio:p}=r,[u,m]=(0,O.useState)(!1),[f,x]=(0,O.useState)(!1),g=(0,F.useRouter)(),b=(0,O.useRef)(null),w="portfolios"===r.category&&Array.isArray(p)&&p.length>1;return(0,O.useEffect)(()=>{let e=new IntersectionObserver((e,n)=>{e.forEach(e=>{e.isIntersecting&&(m(!0),n.unobserve(e.target))})});return null!==b.current&&e.observe(b.current),()=>{null!==b.current&&(e.unobserve(b.current),m(!1))}},[]),(0,O.useEffect)(()=>{let handleScroll=()=>{window.scrollY>500?x(!0):x(!1)};return window.addEventListener("scroll",handleScroll),()=>{window.removeEventListener("scroll",handleScroll)}},[]),(0,h.jsxs)(k.ArticlePageLayout,{children:[(0,h.jsxs)(I.Stack,{direction:"column",spacing:60,style:{flex:"1 1"},children:[(0,h.jsxs)(k.ArticleContainer,{children:[(0,h.jsxs)(I.Stack,{spacing:16,alignItems:"center",children:[(0,h.jsxs)(k.NavCircleButton,{onClick:()=>{g.back()},sectionType:"articles",children:[(0,h.jsx)(q.Z,{})," "]}),(0,h.jsx)(k.H1,{children:c})]}),(0,h.jsx)(k.DateLabel,{date:s,style:{margin:"12px 0 32px"}}),(0,h.jsx)(k.Cover,{children:(0,h.jsx)(P(),{src:d.url,alt:null!==(n="".concat(c))&&void 0!==n?n:"article cover",fill:!0,style:{objectFit:"cover",borderRadius:16},quality:100,id:"cover"})}),r.keyInsights&&(0,h.jsxs)(k.KeyInsightContainer,{children:[(0,h.jsx)(k.KeyInsightTitle,{children:"Key Insights"}),(0,h.jsx)(k.KeyInsightText,{children:r.keyInsights.split("\n").map(e=>(0,h.jsx)("li",{dangerouslySetInnerHTML:{__html:e.slice(1)}},e))})]}),(0,h.jsxs)(k.ArticleStyles,{children:[i,(0,h.jsx)(Disclaimer,{})]}),(0,h.jsx)(k.ShareBar,{ref:b,articleId:o})]}),"portfolios"!==r.category&&(0,h.jsx)("iframe",{id:"simpleswap-frame",name:"SimpleSwap Widget",width:"100%",height:"392px",src:"https://simpleswap.io/widget/98241b32-ac56-41f4-bf22-1bcf5b665923",frameBorder:"0"}),w&&(0,h.jsx)(PortfolioCalculator,{portfolioData:p})]}),(0,h.jsx)(I.Show,{when:{desktop:!0},children:(0,h.jsxs)(I.Stack,{as:"aside",direction:"column",alignItems:"stretch",spacing:32,style:{width:344},children:[(0,h.jsx)(E.Z,{currencyType:"crypto",size:"small",eventSource:"learn_article_bottom"}),(0,h.jsx)(ArticleFastMenuWidget_ArticleFastMenuWidget,{parsedContent:l}),w&&(0,h.jsx)(PortfolioCalculator_AsidePortfolioCalculator,{portfolioData:p}),(0,h.jsx)(RecommendedWidget,{articles:a})]})}),u&&(0,h.jsx)(SatismetrBootstrap,{}),(0,h.jsx)(k.BackToTopButton,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),x(!1)},isShow:f,children:(0,h.jsx)(q.Z,{})})]})};var icons_FacebookIcon=function(e){return(0,h.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,h.jsx)("path",{className:"bg",d:"M0 14c0 7.732 6.268 14 14 14s14-6.268 14-14S21.732 0 14 0 0 6.268 0 14Z",fill:"#1877F2"}),(0,h.jsx)("path",{d:"M21 14c0-3.85-3.15-7-7-7s-7 3.15-7 7c0 3.5 2.537 6.387 5.863 6.913v-4.9h-1.75V14h1.75v-1.575c0-1.75 1.05-2.713 2.625-2.713.787 0 1.575.175 1.575.175v1.75h-.875c-.875 0-1.138.525-1.138 1.05V14h1.925l-.35 2.012h-1.662V21A7.062 7.062 0 0 0 21 14Z",fill:"#fff"})]})},icons_TelegramIcon=function(e){return(0,h.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,h.jsx)("rect",{width:28,height:28,rx:14,fill:"#38AFE3",className:"bg"}),(0,h.jsx)("path",{d:"m11.268 16.58 5.93 4.243c.676.362 1.165.174 1.333-.609l2.414-11.018c.247-.96-.378-1.395-1.025-1.11L5.747 13.38c-.967.376-.962.899-.176 1.132l3.637 1.1 8.42-5.147c.397-.233.762-.108.463.15",fill:"url(#a)"}),(0,h.jsx)("defs",{children:(0,h.jsxs)("linearGradient",{id:"a",x1:11.873,y1:14.555,x2:13.357,y2:19.508,gradientUnits:"userSpaceOnUse",children:[(0,h.jsx)("stop",{stopColor:"#EFF7FC"}),(0,h.jsx)("stop",{offset:1,stopColor:"#fff"})]})})]})},icons_LinkedinIcon=function(e){return(0,h.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,h.jsx)("rect",{className:"bg",width:28,height:28,rx:14,fill:"#0077B5"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.284 7.515c0 .842-.634 1.516-1.652 1.516h-.018C8.634 9.031 8 8.357 8 7.515 8 6.655 8.653 6 9.652 6c.998 0 1.613.655 1.632 1.515Zm-.192 2.713V19h-2.92v-8.772h2.92ZM21.62 19v-5.03c0-2.694-1.44-3.948-3.361-3.948-1.55 0-2.244.852-2.632 1.449v-1.242h-2.92c.04.823 0 8.77 0 8.77h2.92v-4.898c0-.262.02-.523.097-.711.21-.524.691-1.066 1.498-1.066 1.056 0 1.479.804 1.479 1.983V19h2.919Z",fill:"#fff"})]})},eR=i(28811),eU=i.n(eR),icons_XTwitterIcon=function(e){return(0,h.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,h.jsx)("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"white"})})};function ShareBar_templateObject(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n gap: 16px;\n font-weight: 700;\n font-size: 14px;\n margin-left: auto;\n\n svg:hover {\n cursor: pointer;\n\n .bg {\n fill: ",";\n }\n }\n"]);return ShareBar_templateObject=function(){return e},e}let eG=eU()(async()=>await i.e(332).then(i.bind(i,77332)).then(e=>e.FacebookShareButton),{loadableGenerated:{webpack:()=>[77332]}}),eX=eU()(async()=>await i.e(332).then(i.bind(i,77332)).then(e=>e.LinkedinShareButton),{loadableGenerated:{webpack:()=>[77332]}}),eV=eU()(async()=>await i.e(332).then(i.bind(i,77332)).then(e=>e.TelegramShareButton),{loadableGenerated:{webpack:()=>[77332]}}),eK=eU()(async()=>await i.e(332).then(i.bind(i,77332)).then(e=>e.TwitterShareButton),{loadableGenerated:{webpack:()=>[77332]}}),eY=(0,O.forwardRef)((e,n)=>{let i=(0,F.usePathname)(),o=(0,F.useSearchParams)(),r="".concat(eo.M5).concat(i,"?").concat(o.toString());return(0,h.jsxs)(eq,{ref:n,className:"social-share-bar",children:[(0,h.jsx)("span",{children:"Share on:"}),(0,h.jsxs)("div",{style:{display:"flex",gap:"8px",fontSize:28},children:[(0,h.jsx)(eG,{url:r,children:(0,h.jsx)(icons_FacebookIcon,{})}),(0,h.jsx)(eK,{style:{display:"flex",width:"28px",height:"28px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#000"},url:r,children:(0,h.jsx)(icons_XTwitterIcon,{})}),(0,h.jsx)(eV,{url:r,children:(0,h.jsx)(icons_TelegramIcon,{})}),(0,h.jsx)(eX,{url:r,children:(0,h.jsx)(icons_LinkedinIcon,{})})]})]})});eY.displayName="Share Bar";let eq=r.ZP.div.withConfig({componentId:"sc-69819603-0"})(ShareBar_templateObject(),e=>e.theme.colors.primary);function CoinHeading(e){return(0,h.jsxs)("div",{className:"coin-heading",children:[(0,h.jsx)(P(),{src:"/learn/img/coins/".concat(e.coin,".svg"),className:"coin-pic",alt:e.coin,width:32,height:32}),(0,h.jsx)("h3",{className:"title",children:e.title}),(0,h.jsx)("span",{className:"subtitle",children:e.subtitle})]})}let getArticleUrl=(e,n)=>{switch(n){case"portfolios":return"/analytics/portfolios/".concat(e);case"strategies":return"/analytics/strategies/".concat(e);case"tech_analysis":return"/analytics/tech_analysis/".concat(e);case"projects":return"/analytics/projects/".concat(e);case"other":return"/analytics/other/".concat(e);case"defi":return"/analytics/defi/".concat(e)}}},88047:function(e,n,i){"use strict";i.r(n),i.d(n,{ArticleContainer:function(){return tw.mI},ArticlePageLayout:function(){return tw.wd},ArticleSection:function(){return tw.F7},ArticleStyles:function(){return tw.L6},BackToTopButton:function(){return tw.zV},Breadcrumbs:function(){return Breadcrumbs_Breadcrumbs},BreadcrumbsActiveItem:function(){return tI},BreadcrumbsInActiveItem:function(){return tk},BreadcrumbsSeparator:function(){return tS},Card:function(){return Card},CoinHeading:function(){return tw.BJ},Container:function(){return t_.W},Cover:function(){return tw.Y9},DateLabel:function(){return DateLabel},Footer:function(){return Footer_Footer},H1:function(){return tw.H1},H2:function(){return tw.H2},H3:function(){return tw.H3},H4:function(){return tw.H4},Header:function(){return Header},KeyInsightContainer:function(){return tw.oE},KeyInsightText:function(){return tw.QI},KeyInsightTitle:function(){return tw.gZ},LoginButton:function(){return tM},NavCircleButton:function(){return tw.VC},NoScroll:function(){return e5},Paper:function(){return tC},ProductSwitcher:function(){return ProductSwitcher},ShareBar:function(){return tw.WX},StyledIconButton:function(){return tw.Qh},SubHeader:function(){return SubHeader},SubTitleNavigationSection:function(){return tw.Fn},SubTitleNavigationTitle:function(){return tw.ho},Title3:function(){return tw.y$},getArticleUrl:function(){return tw.x$}});var o=i(60230),r=i(57437),l=i(90341),a=i(2265),c=i(16691),s=i.n(c),d={src:"/learn/_next/static/media/logo_SimpleSwap_dark.4245bb7f.svg",height:33,width:145,blurWidth:0,blurHeight:0},p={src:"/learn/_next/static/media/logo_SimpleSwap_light.ae753dc3.svg",height:33,width:145,blurWidth:0,blurHeight:0},u=i(16690),h=i(5805);function _templateObject(){let e=(0,o._)(["\n padding: 12px 0;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n\n z-index: 1;\n\n width: 100%;\n height: auto;\n\n background-color: ",";\n\n border-bottom: ",";\n\n @media (min-width: 1280px) {\n padding: 16px 0;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n display: block;\n /* flex: 1; */\n\n @media screen and (min-width: ",") {\n min-width: 176px;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n /* flex-grow: 0 1 auto; */\n display: block;\n\n /* @media screen and (min-width: ",") {\n min-width: 646px;\n } */\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n display: block;\n margin-left: auto;\n\n @media screen and (min-width: ",") {\n min-width: 225px;\n margin-left: auto;\n }\n"]);return _templateObject3=function(){return e},e}let m=h.ZP.header.withConfig({componentId:"sc-e6f5b764-0"})(_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return"dark"===n?i.colors.exchange.lunchBox.backDish:i.colors.white},e=>{let{colorScheme:n,theme:i}=e;return"dark"===n?"1px solid ".concat(i.colors.exchange.lunchBox.headDivider):"none"}),f=h.ZP.div.withConfig({componentId:"sc-e6f5b764-1"})(_templateObject1(),l.rS.breakpoints.desktop.min),x=h.ZP.div.withConfig({componentId:"sc-e6f5b764-2"})(_templateObject2(),l.rS.breakpoints.desktop.min),g=h.ZP.div.withConfig({componentId:"sc-e6f5b764-3"})(_templateObject3(),l.rS.breakpoints.desktop.min),HeaderLayout=e=>{let{leading:n,central:i,tailing:o,colorScheme:l}=e;return(0,r.jsx)(m,{colorScheme:l,children:(0,r.jsxs)(t_.W,{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(f,{children:n}),(0,r.jsx)(x,{children:i}),(0,r.jsx)(g,{children:o})]})})};var b=i(61396),w=i.n(b);function StyledNavLink_styles_templateObject(){let e=(0,o._)(["\n pointer-events: ",";\n\n color: ",";\n text-decoration: none;\n white-space: nowrap;\n font-weight: 500;\n font-size: 12px;\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n /* padding: 0 12px; */\n margin: ",";\n line-height: 160%;\n\n transition: color 0.2s ease-in-out;\n\n ","\n &:hover {\n color: ",";\n }\n\n @media screen and (min-width: ",") {\n font-size: 14px;\n }\n\n @media screen and (min-width: ",") {\n }\n"]);return StyledNavLink_styles_templateObject=function(){return e},e}let _=h.ZP.div.withConfig({componentId:"sc-1f2ad610-0"})(StyledNavLink_styles_templateObject(),e=>{let{disabled:n}=e;return!0===n?"none":"auto"},e=>{let{colorScheme:n,theme:i,isActive:o}=e;return!0===o?n===l.IC.light?i.colors.text.darkBlue:i.colors.lightGreyBlue:n===l.IC.light?i.colors.text.darkBlue:i.colors.text.lightBlue},e=>{let{label:n}=e;return n&&"Blog"===n?"0 12px 0 10px":"0 12px"},e=>!0===e.withIcon?"\n display: flex;\n align-items: center;\n svg {\n margin-right: 8px;\n }\n ":"",e=>{let{colorScheme:n,theme:i}=e;return n===l.IC.light?i.colors.text.title:i.colors.text.lightBlue},l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min);var j=i(28811),y=i.n(j),C=i(85699),v=i(26420);function DropdownMenu_styles_templateObject(){let e=(0,o._)(["\n position: absolute;\n bottom: 1px;\n right: 0;\n padding: 8px;\n min-width: 180px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n transform: translateY(100%);\n border-radius: 8px 0 8px 8px;\n z-index: -1;\n\n background-color: ",";\n border: 1px solid ",";\n\n /* & > *:not(:last-child) {\n margin-bottom: 8px;\n } */\n"]);return DropdownMenu_styles_templateObject=function(){return e},e}function DropdownMenu_styles_templateObject1(){let e=(0,o._)(["\n p {color: #859AB5}; \n"]);return DropdownMenu_styles_templateObject1=function(){return e},e}function DropdownMenu_styles_templateObject2(){let e=(0,o._)(["\n display: flex;\n width: 100%;\n padding: 8px;\n border-radius: 8px;\n cursor: pointer;\n text-decoration: none;\n\n transition: background-color 0.2s ease-in-out;\n\n ","\n\n ","\n\n &:hover {\n background: ",";\n }\n\n &:hover p {\n color: ",";\n }\n"]);return DropdownMenu_styles_templateObject2=function(){return e},e}function DropdownMenu_styles_templateObject3(){let e=(0,o._)(["\n height: 2px;\n width: 100%;\n background-color: ",";\n position: absolute;\n bottom: -2px;\n right: 0;\n z-index: 1;\n"]);return DropdownMenu_styles_templateObject3=function(){return e},e}let O=h.ZP.div.withConfig({componentId:"sc-e1df6432-0"})(DropdownMenu_styles_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return"light"===n?i.colors.white:i.colors.exchange.lunchBox.headDivider},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.input.color:"transparent"}),k=h.ZP.div.withConfig({componentId:"sc-e1df6432-1"})(DropdownMenu_styles_templateObject2(),e=>e.active&&(0,h.iv)(DropdownMenu_styles_templateObject1()),e=>!0===e.disabled&&"\n opacity: 0.2;\n cursor: not-allowed;\n",e=>"light"===e.colorScheme?e.theme.colors.input.color:e.theme.colors.exchange.button.darkHover,e=>"light"===e.colorScheme?"inherit":e.theme.colors.primaryWhite);h.ZP.div.withConfig({componentId:"sc-e1df6432-2"})(DropdownMenu_styles_templateObject3(),e=>{let{colorScheme:n}=e;return"dark"===n?"transparent":"#ffffff"});var icons_ChevronDownIcon=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.75 3.333 5 7.083l-3.75-3.75"})})},icons_ChevronUpIcon=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M1.25 6.667 5 2.917l3.75 3.75"})})},ExchangeArrowsCircleIconLight=function(e){return(0,r.jsxs)("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M17.0166 4.2998L5.48325 4.2998C4.09991 4.2998 2.98325 5.41647 2.98325 6.7998L2.98325 9.56648",stroke:"#C6D5EA",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.3833 1.6665L17.0166 4.29981L14.3833 6.93318",stroke:"#C6D5EA",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M2.98325 15.6998L14.5166 15.6998C15.8999 15.6998 17.0166 14.5831 17.0166 13.1998L17.0166 10.4331",stroke:"#C6D5EA",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.6167 18.3331L2.98336 15.6998L5.6167 13.0664",stroke:"#C6D5EA",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})},ExchangeArrowsCircleIconDark=function(e){return(0,r.jsxs)("svg",{...e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M17.0166 4.2998L5.48325 4.2998C4.09991 4.2998 2.98325 5.41647 2.98325 6.7998L2.98325 9.56648",stroke:"#3F5878",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.3833 1.6665L17.0166 4.29981L14.3833 6.93318",stroke:"#3F5878",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M2.98325 15.6998L14.5166 15.6998C15.8999 15.6998 17.0166 14.5831 17.0166 13.1998L17.0166 10.4331",stroke:"#3F5878",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.6167 18.3331L2.98336 15.6998L5.6167 13.0664",stroke:"#3F5878",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})};function ButtonContainer_templateObject(){let e=(0,o._)(["\n position: relative;\n z-index: 0;\n"]);return ButtonContainer_templateObject=function(){return e},e}function ButtonContainer_templateObject1(){let e=(0,o._)(["\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n\n padding: 0.625rem 0.75rem;\n\n border-radius: ",";\n //transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;\n\n cursor: pointer;\n outline: none;\n\n box-sizing: border-box;\n\n text-decoration: none;\n white-space: nowrap;\n font-weight: 500;\n font-size: 14px;\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n line-height: 160%;\n\n background-color: ",";\n color: ",";\n border: 1px solid\n ",";\n border-bottom: 1px solid\n ",";\n\n svg {\n color: ",";\n }\n"]);return ButtonContainer_templateObject1=function(){return e},e}let I=h.ZP.div.withConfig({componentId:"sc-3a71ecd0-0"})(ButtonContainer_templateObject()),S=h.ZP.button.withConfig({componentId:"sc-3a71ecd0-1"})(ButtonContainer_templateObject1(),e=>{let{isOpen:n}=e;return n?"8px 8px 0px 0px":"8px"},e=>{let{colorScheme:n,isOpen:i,theme:{colors:o}}=e;return i?n===l.IC.light?o.white:o.exchange.lunchBox.headDivider:"transparent"},e=>{let{colorScheme:n,theme:i,isOpen:o,active:r}=e;return o?n===l.IC.light?i.colors.text.title:i.colors.text.lightBlue:r?i.colors.text.activeLinkGrey:n===l.IC.light?i.colors.text.darkBlue:i.colors.text.lightBlue},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.input.color:"transparent"},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.white:"transparent"},e=>e.theme.colors.text.nullLabel),ButtonContainer=e=>{let{label:n,colorScheme:i,popoverComponent:o,isOpen:l,href:a,active:c,...s}=e,d="Exchange History"===n,p=(0,r.jsxs)(S,{active:c,colorScheme:i,isOpen:l,children:[!d&&n,d&&("dark"===i?(0,r.jsx)(ExchangeArrowsCircleIconLight,{width:19,height:19,style:{marginTop:"0px",display:"inline-block"}}):(0,r.jsx)(ExchangeArrowsCircleIconDark,{width:19,height:19,style:{marginTop:"0px",display:"inline-block"}})),l?(0,r.jsx)(icons_ChevronUpIcon,{height:10,width:10}):(0,r.jsx)(icons_ChevronDownIcon,{height:10,width:10})]});return(0,r.jsxs)(I,{...s,children:[null!==a?(0,r.jsx)(w(),{href:a,children:p}):p,o]})},P=y()(async()=>await i.e(836).then(i.bind(i,72836)),{loadableGenerated:{webpack:()=>[72836]},ssr:!1}),E=y()(async()=>await Promise.resolve().then(i.bind(i,4889)),{loadableGenerated:{webpack:()=>[4889]},ssr:!1}),DropdownMenu=e=>{var n;let{colorScheme:i,link:o,exchangeList:l,active:a,currentLearnRoute:c,...s}=e,{ref:d,isComponentVisible:p,setIsComponentVisible:u}=(0,C.Z)(!1),h="Currencies"===o.label,m="Exchange History"===o.label,f="Business"===o.label;return(0,r.jsx)(ButtonContainer,{label:o.label,href:o.href,isOpen:p,active:a,colorScheme:i,...s,onMouseEnter:e=>{p||e.stopPropagation(),u(!0)},onMouseLeave:()=>{u(!1)},style:h?{marginRight:"-2px"}:f?{marginLeft:"-2px"}:{},popoverComponent:p&&(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)(P,{colorScheme:i}),m&&(0,r.jsx)(E,{exchangeList:null!=l?l:[],colorScheme:i}),!h&&!m&&(0,r.jsx)(O,{ref:d,isOpen:p,colorScheme:i,children:null===(n=o.children)||void 0===n?void 0:n.map(e=>{let n="dark"===i?"text.lightBlue":"text.darkBlue";return!0===e.disabled||null===e.href?(0,r.jsx)(k,{disabled:e.disabled,colorScheme:i,active:c===e.href,children:(0,r.jsx)(v.Text14,{color:n,fontWeight:"medium",children:e.label})},e.id):(0,r.jsx)(w(),{href:e.href,"aria-disabled":e.disabled,prefetch:!1===e.external,children:(0,r.jsx)(k,{active:c===e.href,disabled:e.disabled,colorScheme:i,children:(0,r.jsx)(v.Text14,{color:n,fontWeight:"medium",children:e.label})})},e.id)})})]})})};var A=i(17870),L=i(20640),T=i(85739);function NavLink_templateObject(){let e=(0,o._)(["\n color: ",";\n text-decoration: none;\n font-weight: 500;\n font-size: 12px;\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n padding: 14px 0;\n\n cursor: pointer;\n\n @media screen and (min-width: ",") {\n font-size: 14px;\n }\n\n @media screen and (min-width: ",") {\n }\n"]);return NavLink_templateObject=function(){return e},e}i(36250);let N=h.ZP.span.withConfig({componentId:"sc-a70272f6-0"})(NavLink_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return n===l.IC.light?i.colors.text.darkBlue:i.colors.text.disableTemporary},l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min);function NavLink(e){let{link:n,currentRoute:i,currentLearnRoute:o,colorScheme:c,exchangeList:s}=e,d=void 0!==n.icon&&o===n.href,handleEvent=()=>{var e;(0,A.p)(L.Z.LEARN_SUBHEADER,{section:n.label,active:null===(e=n.disabled)||void 0===e?void 0:e.toString()})};if(!0===n.disabled)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.u,{anchorSelect:".disabled-nav-link",content:"Coming soon!",place:"bottom",style:{backgroundColor:"".concat(l.rS.colors.primaryWhite),padding:"12px 16px",borderRadius:"8px",fontSize:"11px",color:"".concat(l.rS.colors.text.title)}}),(0,r.jsx)(N,{withIcon:d,colorScheme:c,disabled:n.disabled,title:"Coming soon",onClick:handleEvent,className:"disabled-nav-link",children:n.label},n.id)]});if(void 0!==n.children){let e="Analytics"===n.label;return(0,r.jsx)(DropdownMenu,{active:e,currentLearnRoute:o,link:n,colorScheme:c})}if(void 0===n.children&&"Currencies"===n.label)return(0,r.jsx)(DropdownMenu,{active:!1,link:n,colorScheme:c});if(void 0===n.children&&"Exchange History"===n.label)return(0,r.jsx)(DropdownMenu,{active:!1,exchangeList:s,link:n,colorScheme:c});let p=(0,r.jsxs)(_,{label:n.label,isActive:o===n.href,withIcon:d,colorScheme:c,onClick:handleEvent,children:[d?a.cloneElement(n.icon,{width:20,height:20}):null,n.label]});return null!==n.href?(0,r.jsx)(w(),{href:n.href,children:p}):p}function Nav_templateObject(){let e=(0,o._)(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > *:not(:last-child) {\n margin-right: ","px;\n }\n"]);return Nav_templateObject=function(){return e},e}let M=h.ZP.nav.withConfig({componentId:"sc-62602837-0"})(Nav_templateObject(),e=>void 0!==e.gap?e.gap:"0"),Nav=e=>{let{links:n,buildLink:i,colorScheme:o,gap:l,exchangeList:a,...c}=e;return(0,r.jsx)(M,{gap:l,...c,children:n.map(e=>void 0!==e.href?null!=i?i(e):(0,r.jsx)(NavLink,{link:e,colorScheme:o,exchangeList:a,...c},e.id):[(0,r.jsx)("div",{className:e.class},e.id)])})};var Z=i(17884),B=i(83776);function Hamburger_styles_templateObject(){let e=(0,o._)(["\n width: 32px;\n height: 32px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 9px 6px;\n\n &:hover {\n cursor: pointer;\n }\n\n div {\n transition: all 0.1s linear;\n position: relative;\n transform-origin: 5px;\n\n :first-child {\n transform: ",";\n }\n\n :nth-child(2) {\n opacity: ",";\n transform: ",";\n }\n\n :nth-child(3) {\n transform: ",";\n }\n }\n"]);return Hamburger_styles_templateObject=function(){return e},e}function Hamburger_styles_templateObject1(){let e=(0,o._)(["\n width: 20px;\n height: 2px;\n border-radius: 8px;\n background-color: ",";\n"]);return Hamburger_styles_templateObject1=function(){return e},e}let D=h.ZP.div.withConfig({componentId:"sc-78548df0-0"})(Hamburger_styles_templateObject(),e=>{let{isCollapse:n}=e;return n?"rotate(45deg) translate(15%, 15%)":"rotate(0)"},e=>{let{isCollapse:n}=e;return n?"0":"1"},e=>{let{isCollapse:n}=e;return n?"translateX(16px)":"translateX(0)"},e=>{let{isCollapse:n}=e;return n?"rotate(-45deg) translate(15%, -15%)":"rotate(0)"}),H=h.ZP.div.withConfig({componentId:"sc-78548df0-1"})(Hamburger_styles_templateObject1(),e=>{let{colorScheme:n}=e;return"dark"===n?"#ffffff":"#859AB5"}),HamburgerIcon=e=>{let{colorScheme:n,open:i,...o}=e;return(0,r.jsxs)(D,{isCollapse:i,...o,children:[(0,r.jsx)(H,{colorScheme:n}),(0,r.jsx)(H,{colorScheme:n}),(0,r.jsx)(H,{colorScheme:n})]})};function MobileMenu_styles_templateObject(){let e=(0,o._)(["\n position: fixed;\n z-index: 10;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: ",";\n transition: background-color 0.1s ease-in-out;\n visibility: ",";\n"]);return MobileMenu_styles_templateObject=function(){return e},e}function MobileMenu_styles_templateObject1(){let e=(0,o._)(["\n position: fixed;\n right: 0;\n top: 0;\n height: 100%;\n width: 290px;\n padding: 11px 24px;\n background: #010b20;\n z-index: 8;\n transform: ",";\n font-family: Inter, sans-serif;\n transition: transform 0.3s ease-in-out;\n overflow-y: auto;\n overflow-x: hidden;\n\n @media (min-width: 768px) {\n width: 380px;\n padding: 11px 85px 0 48px;\n }\n"]);return MobileMenu_styles_templateObject1=function(){return e},e}let F=h.ZP.div.withConfig({componentId:"sc-639441af-0"})(MobileMenu_styles_templateObject(),e=>{let{isHidden:n}=e;return n?"rgba(1, 11, 32, 0)":"rgba(1, 11, 32, 0.6)"},e=>{let{isClosed:n}=e;return n?"hidden":"visible"}),z=h.ZP.div.withConfig({componentId:"sc-639441af-1"})(MobileMenu_styles_templateObject1(),e=>{let{isHidden:n}=e;return n?"translateX(100%)":"translateX(0)"});var W=i(22261),R=i(2890),U=i.n(R);function NavbarMobileMenu_styles_templateObject(){let e=(0,o._)(["\n color: ",";\n"]);return NavbarMobileMenu_styles_templateObject=function(){return e},e}function NavbarMobileMenu_styles_templateObject1(){let e=(0,o._)(["\n display: block;\n text-decoration: none;\n padding-top: 14px;\n padding-bottom: 14px;\n font-family: var(--font-inter), serif;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 160%;\n color: ",";\n cursor: ",";\n cursor: ",";\n pointer-events: ",";\n user-select: none;\n"]);return NavbarMobileMenu_styles_templateObject1=function(){return e},e}function NavbarMobileMenu_styles_templateObject2(){let e=(0,o._)(["\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n font-size: 12px;\n line-height: 17px;\n"]);return NavbarMobileMenu_styles_templateObject2=function(){return e},e}function NavbarMobileMenu_styles_templateObject3(){let e=(0,o._)(["\n color: #ffffff;\n height: 56px;\n padding: 0 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #0f75fc;\n border-radius: 8px;\n font-weight: 400;\n font-size: 15px;\n line-height: 21px;\n text-decoration: none;\n\n &:hover {\n background-color: #004ad9;\n }\n"]);return NavbarMobileMenu_styles_templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n margin-top: 27px;\n padding: 15px 0;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n display: ",";\n flex-direction: row;\n pointer-events: ",";\n\n @media (min-width: 768px) {\n margin-top: 55px;\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n cursor: pointer;\n transition: margin-left 0.3s ease-in-out;\n font-family: var(--font-inter), serif;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 160%;\n color: ",";\n margin-left: ",";\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n width: 100%;\n height: 1px;\n flex-shrink: 0;\n margin: 2px 0;\n background: #141a2e;\n opacity: ",";\n transition: opacity 0.5s linear;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n display: flex;\n margin-top: 20px;\n flex-direction: column;\n justify-content: space-between;\n opacity: ",";\n transition: opacity 0.2s ease-in-out;\n pointer-events: ",";\n\n @media (min-width: 768px) {\n margin-top: 12px;\n }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n opacity: ",";\n transition: opacity 0.2s ease-in-out;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n width: 100%;\n margin-top: 14px;\n color: #ffffff;\n background-color: #112141;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 32px;\n height: 56px;\n margin-right: 8px;\n font-weight: 400;\n font-size: 15px;\n line-height: 21px;\n text-decoration: none;\n\n &:hover {\n background-color: #1b2b4b;\n }\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,o._)(["\n position: absolute;\n left: 24px;\n z-index: 1;\n animation: productsDash 300ms ease-in-out;\n\n @keyframes productsDash {\n from {\n transform: translateX(100%);\n }\n to {\n transform: none;\n }\n }\n\n @media (min-width: 768px) {\n left: 46px;\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,o._)(["\n position: relative;\n display: flex;\n padding: 12px 0;\n justify-content: ",";\n align-items: center;\n width: 100%;\n opacity: ",";\n transition: opacity 0.1s ease-in-out;\n flex-direction: ",";\n\n @media (min-width: 768px) {\n padding: 14px 0;\n }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n cursor: pointer;\n transition: margin-left 0.3s ease-in-out;\n margin-left: ",";\n font-family: var(--font-inter), serif;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 160%;\n color: #c6d5ea;\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,o._)(["\n display: block;\n text-decoration: none;\n padding-top: 12px;\n padding-bottom: 12px;\n font-family: var(--font-inter), serif;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 160%;\n color: ",";\n cursor: ",";\n\n @media (min-width: 768px) {\n padding-top: 14px;\n padding-bottom: 14px;\n }\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,o._)(["\n width: 100%;\n height: 1px;\n flex-shrink: 0;\n margin: 8px 0;\n background: #141a2e;\n transition: opacity 0.5s linear;\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,o._)(["\n width: 10px;\n height: 10px;\n margin-bottom: -1px;\n background-repeat: no-repeat;\n"]);return _templateObject15=function(){return e},e}let G=h.ZP.div.withConfig({componentId:"sc-c21824ed-0"})(NavbarMobileMenu_styles_templateObject(),e=>U().get(e.theme.colors,void 0!==e.color?e.color:"text.title")),X=h.ZP.a.withConfig({componentId:"sc-c21824ed-1"})(NavbarMobileMenu_styles_templateObject1(),e=>{let{disabled:n}=e;return n?"#152036":"#C6D5EA"},e=>{let{disabled:n}=e;return n?"":"pointer"},e=>{let{disabled:n}=e;return n?"":"pointer"},e=>{let{disabled:n}=e;return n?"none":"inherit"});h.ZP.a.withConfig({componentId:"sc-c21824ed-2"})(NavbarMobileMenu_styles_templateObject2());let V=h.ZP.a.withConfig({componentId:"sc-c21824ed-3"})(NavbarMobileMenu_styles_templateObject3()),K=h.ZP.div.withConfig({componentId:"sc-c21824ed-4"})(_templateObject4(),e=>{let{isHidden:n}=e;return n?"none":"flex"},e=>{let{isHidden:n}=e;return n?"none":"all"}),Y=h.ZP.div.withConfig({componentId:"sc-c21824ed-5"})(_templateObject5(),e=>{let{disabled:n}=e;return n?"#3F5878":"#c6d5ea"},e=>{let{isOpen:n}=e;return n?"16px":"0"}),q=h.ZP.div.withConfig({componentId:"sc-c21824ed-6"})(_templateObject6(),e=>{let{isHidden:n}=e;return n?"0":"1"}),Q=h.ZP.div.withConfig({componentId:"sc-c21824ed-7"})(_templateObject7(),e=>{let{isHidden:n}=e;return n?"0":"1"},e=>{let{isHidden:n}=e;return n?"none":"all"}),$=h.ZP.div.withConfig({componentId:"sc-c21824ed-8"})(_templateObject8(),e=>{let{isHidden:n}=e;return n?"0":"1"}),J=h.ZP.a.withConfig({componentId:"sc-c21824ed-9"})(_templateObject9()),ee=h.ZP.div.withConfig({componentId:"sc-c21824ed-10"})(_templateObject10()),et=h.ZP.div.withConfig({componentId:"sc-c21824ed-11"})(_templateObject11(),e=>{let{isOpen:n}=e;return n?"flex-end":"space-between"},e=>{let{isHidden:n}=e;return!0===n?"0":"1"},e=>{let{isOpen:n}=e;return n?"row-reverse":"row"}),en=h.ZP.div.withConfig({componentId:"sc-c21824ed-12"})(_templateObject12(),e=>{let{isOpen:n}=e;return n?"24px":"0"}),ei=h.ZP.a.withConfig({componentId:"sc-c21824ed-13"})(_templateObject13(),e=>{let{disabled:n}=e;return!0===n?"#152036":"#C6D5EA"},e=>{let{disabled:n}=e;return!0===n?"":"pointer"}),eo=h.ZP.div.withConfig({componentId:"sc-c21824ed-14"})(_templateObject14());h.ZP.div.withConfig({componentId:"sc-c21824ed-15"})(_templateObject15());var er=i(44883),MobileMenu_MobileMenuLink=e=>{let{onClick:n,isOpen:i,link:o}=e;return"Currencies"!==o.label&&void 0===o.children&&null!==o.href?(0,r.jsx)(w(),{href:o.href,prefetch:!1,children:(0,r.jsx)(ei,{children:o.label})}):(0,r.jsxs)(et,{onClick:n,isOpen:i,children:[(0,r.jsx)(en,{isOpen:i,children:o.label}),(0,r.jsx)(G,{color:"text.nullLabel",children:(0,r.jsx)(er.Z,{height:10,width:10})})]})},el=i(8253),ea=i(67142),ec=i(8730),es=i(91837);function DropdownCurrenciesNavListMobile_templateObject(){let e=(0,o._)(["\n width: 248px;\n display: flex;\n flex-direction: column;\n padding: 16xp 0;\n"]);return DropdownCurrenciesNavListMobile_templateObject=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject1(){let e=(0,o._)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: 8px 0;\n"]);return DropdownCurrenciesNavListMobile_templateObject1=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject2(){let e=(0,o._)(["\n color: #c6d5ea;\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n padding: 6px 0;\n text-decoration: none;\n opacity: 0.2;\n"]);return DropdownCurrenciesNavListMobile_templateObject2=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject3(){let e=(0,o._)(["\n display: flex;\n flex-direction: column;\n justify-content: start;\n align-items: start;\n gap: 16px;\n"]);return DropdownCurrenciesNavListMobile_templateObject3=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject4(){let e=(0,o._)(["\n color: #c6d5ea;\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n text-decoration: none;\n display: flex;\n justify-content: start;\n align-items: start;\n gap: 8px;\n padding: 6px 0;\n"]);return DropdownCurrenciesNavListMobile_templateObject4=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject5(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n"]);return DropdownCurrenciesNavListMobile_templateObject5=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject6(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n text-decoration: none;\n color: #c6d5ea;\n"]);return DropdownCurrenciesNavListMobile_templateObject6=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject7(){let e=(0,o._)(["\n width: 24px;\n height: 24px;\n background-image: url('","');\n background-size: 24px;\n background-repeat: no-repeat;\n background-position: center;\n"]);return DropdownCurrenciesNavListMobile_templateObject7=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject8(){let e=(0,o._)(["\n width: 40px;\n height: 24px;\n position: relative;\n display: flex;\n"]);return DropdownCurrenciesNavListMobile_templateObject8=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject9(){let e=(0,o._)(["\n width: 24px;\n height: 24px;\n background-image: url('","');\n background-size: 24px;\n background-repeat: no-repeat;\n background-position: center;\n"]);return DropdownCurrenciesNavListMobile_templateObject9=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject10(){let e=(0,o._)(["\n position: absolute;\n height: 25px;\n width: 25px;\n background-image: url('","');\n background-size: 24px;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 2;\n left: 14px;\n border-radius: 100%;\n background-color: ",";\n"]);return DropdownCurrenciesNavListMobile_templateObject10=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject11(){let e=(0,o._)(["\n padding: 16px 0 8px 0;\n"]);return DropdownCurrenciesNavListMobile_templateObject11=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject12(){let e=(0,o._)(["\n width: 100%;\n height: 1px;\n flex-shrink: 0;\n margin: 2px 0;\n background: #141a2e;\n opacity: ",";\n transition: opacity 0.5s linear;\n"]);return DropdownCurrenciesNavListMobile_templateObject12=function(){return e},e}function DropdownCurrenciesNavListMobile_templateObject13(){let e=(0,o._)(["\n position: absolute;\n left: 24px;\n z-index: 1;\n animation: productsDash 300ms ease-in-out;\n\n @keyframes productsDash {\n from {\n transform: translateX(100%);\n }\n to {\n transform: none;\n }\n }\n\n @media (min-width: 768px) {\n left: 46px;\n }\n"]);return DropdownCurrenciesNavListMobile_templateObject13=function(){return e},e}var ed=(0,a.memo)(()=>(0,r.jsx)(ep,{children:u.SU.map(e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(eu,{children:[(0,r.jsx)(eh,{children:e.name}),(0,r.jsxs)(em,{children:[e.children.map(e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(ef,{href:e.to,onClick:()=>{(0,A.p)(L.Z.HEADER_DROPDOWN_LINK,{link:e.to})},children:[e.icon.length>1?(0,r.jsxs)(ew,{children:[(0,r.jsx)(e_,{iconUrl:e.icon[0]}),(0,r.jsx)(ej,{iconUrl:e.icon[1]})]}):(0,r.jsx)(eb,{iconUrl:e.icon[0]}),(0,r.jsx)(ex,{children:e.nameTitle})]},e.id)})),(0,r.jsx)(eg,{href:e.to,children:e.nameButton})]})]},e.id),(0,r.jsx)(ey,{children:(0,r.jsx)(eC,{isHidden:3===e.id})})]}))}));let ep=h.ZP.div.withConfig({componentId:"sc-9361a737-0"})(DropdownCurrenciesNavListMobile_templateObject()),eu=h.ZP.div.withConfig({componentId:"sc-9361a737-1"})(DropdownCurrenciesNavListMobile_templateObject1()),eh=h.ZP.div.withConfig({componentId:"sc-9361a737-2"})(DropdownCurrenciesNavListMobile_templateObject2()),em=h.ZP.div.withConfig({componentId:"sc-9361a737-3"})(DropdownCurrenciesNavListMobile_templateObject3()),ef=h.ZP.a.withConfig({componentId:"sc-9361a737-4"})(DropdownCurrenciesNavListMobile_templateObject4()),ex=h.ZP.div.withConfig({componentId:"sc-9361a737-5"})(DropdownCurrenciesNavListMobile_templateObject5()),eg=h.ZP.a.withConfig({componentId:"sc-9361a737-6"})(DropdownCurrenciesNavListMobile_templateObject6()),eb=h.ZP.div.withConfig({componentId:"sc-9361a737-7"})(DropdownCurrenciesNavListMobile_templateObject7(),e=>{let{iconUrl:n}=e;return n}),ew=h.ZP.div.withConfig({componentId:"sc-9361a737-8"})(DropdownCurrenciesNavListMobile_templateObject8()),e_=h.ZP.div.withConfig({componentId:"sc-9361a737-9"})(DropdownCurrenciesNavListMobile_templateObject9(),e=>{let{iconUrl:n}=e;return n}),ej=h.ZP.div.withConfig({componentId:"sc-9361a737-10"})(DropdownCurrenciesNavListMobile_templateObject10(),e=>{let{iconUrl:n}=e;return n},e=>{let{colorTheme:n}=e;return"dark"===n?"#123276":"#ffffff"}),ey=h.ZP.div.withConfig({componentId:"sc-9361a737-11"})(DropdownCurrenciesNavListMobile_templateObject11()),eC=h.ZP.div.withConfig({componentId:"sc-9361a737-12"})(DropdownCurrenciesNavListMobile_templateObject12(),e=>{let{isHidden:n}=e;return n?"0":"1"});h.ZP.div.withConfig({componentId:"sc-9361a737-13"})(DropdownCurrenciesNavListMobile_templateObject13());var ev=i(4889),eO=i(1727),ek=i(18950),eI=i(33187),eS=i(76318),eP=i(45806);function ExchangeHistoryListMobile_templateObject(){let e=(0,o._)(["\n width: 248px;\n display: flex;\n flex-direction: column;\n padding: 16px 0;\n"]);return ExchangeHistoryListMobile_templateObject=function(){return e},e}function ExchangeHistoryListMobile_templateObject1(){let e=(0,o._)(["\n color: #c6d5ea;\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n padding: 6px 0;\n text-decoration: none;\n opacity: 0.2;\n"]);return ExchangeHistoryListMobile_templateObject1=function(){return e},e}function ExchangeHistoryListMobile_templateObject2(){let e=(0,o._)(["\n color: #ffffff;\n height: 56px;\n padding: 0 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #0f75fc;\n border-radius: 8px;\n font-weight: 400;\n font-size: 15px;\n line-height: 21px;\n margin-top: ",";\n text-decoration: none;\n\n &:hover {\n background-color: #004ad9;\n }\n"]);return ExchangeHistoryListMobile_templateObject2=function(){return e},e}function ExchangeHistoryListMobile_templateObject3(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n text-decoration: none;\n color: #c6d5ea;\n padding: 16px 0;\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return ExchangeHistoryListMobile_templateObject3=function(){return e},e}function ExchangeHistoryListMobile_templateObject4(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"]);return ExchangeHistoryListMobile_templateObject4=function(){return e},e}function ExchangeHistoryListMobile_templateObject5(){let e=(0,o._)(["\n display: flex;\n justify-content: start;\n flex-direction: column;\n width: 100px;\n"]);return ExchangeHistoryListMobile_templateObject5=function(){return e},e}function ExchangeHistoryListMobile_templateObject6(){let e=(0,o._)(["\n display: flex;\n justify-content: start;\n gap: 8px;\n align-items: center;\n"]);return ExchangeHistoryListMobile_templateObject6=function(){return e},e}function ExchangeHistoryListMobile_templateObject7(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 15px;\n font-style: normal;\n font-weight: 500;\n line-height: 160%;\n color: #859ab5;\n"]);return ExchangeHistoryListMobile_templateObject7=function(){return e},e}function ExchangeHistoryListMobile_templateObject8(){let e=(0,o._)(["\n display: flex;\n gap: 55px;\n"]);return ExchangeHistoryListMobile_templateObject8=function(){return e},e}function ExchangeHistoryListMobile_templateObject9(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n width: 84px;\n"]);return ExchangeHistoryListMobile_templateObject9=function(){return e},e}function ExchangeHistoryListMobile_templateObject10(){let e=(0,o._)(["\n display: flex;\n gap: 4px;\n align-items: center;\n"]);return ExchangeHistoryListMobile_templateObject10=function(){return e},e}function ExchangeHistoryListMobile_templateObject11(){let e=(0,o._)(["\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 130%;\n"]);return ExchangeHistoryListMobile_templateObject11=function(){return e},e}function ExchangeHistoryListMobile_templateObject12(){let e=(0,o._)(["\n width: 24px;\n height: 24px;\n background-repeat: no-repeat;\n background-image: url('","');\n"]);return ExchangeHistoryListMobile_templateObject12=function(){return e},e}function ExchangeHistoryListMobile_templateObject13(){let e=(0,o._)(["\n display: inline-block;\n width: 20px;\n height: 20px;\n ",";\n"]);return ExchangeHistoryListMobile_templateObject13=function(){return e},e}let threePointCut=e=>"".concat(e.slice(0,4),"...").concat(e.slice(-4));function truncateStringAfterDecimal(e,n){let i=e.indexOf(".");if(-1!==i){let o=e.length-i-1;if(o>n)return e.slice(0,i+n+1)}return e}let ExchangeListMobileComponent=e=>{var n,i,o,l,a,c,s;let{exchange:d,colorScheme:p}=e;return(0,r.jsxs)(eN,{href:"/exchange?id=".concat(d.publicId),onClick:()=>{(0,A.p)(L.Z.HEADER_DROPDOWN_LINK,{link:"exchangeHistory"})},children:[(0,r.jsxs)(eM,{children:[(0,r.jsxs)(eZ,{children:[(0,r.jsxs)(eB,{children:[(0,r.jsx)(eP.Xw,{mSize:16,tSize:16,dSize:16,symbol:null!==(o=d.currencyFrom)&&void 0!==o?o:""}),(0,r.jsx)(r.Fragment,{children:null!==(l=null==d?void 0:null===(n=d.currencyFrom)||void 0===n?void 0:n.toUpperCase())&&void 0!==l?l:""})]}),(0,r.jsx)(eD,{children:truncateStringAfterDecimal(d.amountFrom,8)})]}),(0,r.jsx)(eR,{}),(0,r.jsxs)(eZ,{children:[(0,r.jsxs)(eB,{children:[(0,r.jsx)(eP.Xw,{mSize:16,tSize:16,dSize:16,symbol:null!==(a=d.currencyTo)&&void 0!==a?a:""}),(0,r.jsx)(r.Fragment,{children:null!==(c=null==d?void 0:null===(i=d.currencyTo)||void 0===i?void 0:i.toUpperCase())&&void 0!==c?c:""})]}),(0,r.jsx)(eD,{children:truncateStringAfterDecimal(d.amountTo,8)})]})]}),(0,r.jsxs)(eH,{children:[(0,r.jsxs)(eF,{children:["ID: ",(0,r.jsx)(eW,{children:threePointCut(d.publicId)})]}),(0,r.jsxs)(ez,{children:[(0,r.jsx)(eU,{src:"".concat("finished"===d.status?eO.Z.src:"dark"===p?ek.Z.src:eI.Z.src),width:20,height:20,alt:"status is ".concat(null!==(s=d.status)&&void 0!==s?s:"failed"),marg:"without"}),(0,r.jsx)(r.Fragment,{children:"finished"===d.status?"Finished":"In Progress"})]})]})]},d.publicId)};var eE=(0,a.memo)(e=>{var n;let{exchangeList:i}=e,o=l.IC.dark;return i.length&&(null===(n=i[0])||void 0===n?void 0:n.publicId)!=="Loading"?(0,r.jsxs)(eA,{children:[(0,r.jsx)(eL,{children:"Exchange History"}),"Empty"===i[0].publicId?(0,r.jsx)(ev.NullExchangesComponent,{colorScheme:o}):"EmptyNotCookie"===i[0].publicId?(0,r.jsx)(ev.NotCookiesComponent,{colorScheme:o}):i.slice(1).map(e=>(0,r.jsx)(ExchangeListMobileComponent,{exchange:e,colorScheme:o},e.publicId)),(0,r.jsx)(eT,{onClick:()=>{(0,A.p)(L.Z.EX_CREATE_EXCHANGE,{stage:1,source:"headerExchangesHistory"})},hidden:(null==i?void 0:i.length)>0,href:"".concat(es.M5,"/exchange?from=btc&to=eth&amount=0.1&rate=floating"),children:"Create a new exchange"})]}):(0,r.jsxs)(eA,{children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(B.aN,{size:"m"})}),(0,r.jsx)(eT,{onClick:()=>{(0,A.p)(L.Z.EX_CREATE_EXCHANGE,{stage:1,source:"headerExchangesHistory"})},hidden:(null==i?void 0:i.length)>0,href:"".concat(es.M5,"/exchange?from=btc&to=eth&amount=0.1&rate=floating"),children:"Create a new exchange"})]})});let eA=h.ZP.div.withConfig({componentId:"sc-613f74ee-0"})(ExchangeHistoryListMobile_templateObject()),eL=h.ZP.div.withConfig({componentId:"sc-613f74ee-1"})(ExchangeHistoryListMobile_templateObject1()),eT=h.ZP.a.withConfig({componentId:"sc-613f74ee-2"})(ExchangeHistoryListMobile_templateObject2(),e=>{let{hidden:n}=e;return n?"100%":"20%"}),eN=h.ZP.a.withConfig({componentId:"sc-613f74ee-3"})(ExchangeHistoryListMobile_templateObject3()),eM=h.ZP.div.withConfig({componentId:"sc-613f74ee-4"})(ExchangeHistoryListMobile_templateObject4()),eZ=h.ZP.div.withConfig({componentId:"sc-613f74ee-5"})(ExchangeHistoryListMobile_templateObject5()),eB=h.ZP.div.withConfig({componentId:"sc-613f74ee-6"})(ExchangeHistoryListMobile_templateObject6()),eD=h.ZP.div.withConfig({componentId:"sc-613f74ee-7"})(ExchangeHistoryListMobile_templateObject7()),eH=h.ZP.div.withConfig({componentId:"sc-613f74ee-8"})(ExchangeHistoryListMobile_templateObject8()),eF=h.ZP.div.withConfig({componentId:"sc-613f74ee-9"})(ExchangeHistoryListMobile_templateObject9()),ez=h.ZP.div.withConfig({componentId:"sc-613f74ee-10"})(ExchangeHistoryListMobile_templateObject10()),eW=h.ZP.div.withConfig({componentId:"sc-613f74ee-11"})(ExchangeHistoryListMobile_templateObject11()),eR=h.ZP.div.withConfig({componentId:"sc-613f74ee-12"})(ExchangeHistoryListMobile_templateObject12(),eS.Z.src),eU=(0,h.ZP)(s()).withConfig({componentId:"sc-613f74ee-13"})(ExchangeHistoryListMobile_templateObject13(),e=>{let{marg:n}=e;return"without"===n?"":"margin-left: 10px"});var MobileMenu_NavbarMobileMenu=e=>{var n;let{closeMobileMenu:i,profile:o,isMobileMenuRefVisible:l,navbarLinks:c,exchangeList:s}=e,[d,p]=(0,a.useState)(null),toggleProductsMenu=e=>{p(n=>null!=n?null:e)},{t:u}=(0,el.$)("header");return(0,a.useEffect)(()=>{l||p(null)},[l]),(0,r.jsxs)(Z.Stack,{direction:"column",justifyContent:"space-between",alignItems:"stretch",style:{paddingBottom:48,height:"100%"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(Z.Stack,{justifyContent:"flex-end",children:(0,r.jsx)(G,{color:"text.nullLabel",style:{marginLeft:"auto"},children:(0,r.jsx)(ea.Z,{onClick:i,width:32,height:32})})}),(0,r.jsxs)(K,{isHidden:null===d,onClick:()=>{p(null)},children:[(0,r.jsx)(G,{color:"text.darkBlue",children:(0,r.jsx)(ec.Z,{height:10,width:10})}),(0,r.jsx)(Y,{disabled:!0,isOpen:null!=d,children:u("buttons.back")})]}),(0,r.jsx)(q,{isHidden:null==d}),null!=d&&(0,r.jsxs)(ee,{children:["Currencies"===d.label&&(0,r.jsx)(ed,{}),"Exchange History"===d.label&&(0,r.jsx)(eE,{exchangeList:s}),"Currencies"!==d.label&&"Exchange History"!==d.label&&(null==d?void 0:null===(n=d.children)||void 0===n?void 0:n.map(e=>{var n;return(0,r.jsx)(w(),{href:null!==(n=e.href)&&void 0!==n?n:"/",passHref:!0,prefetch:!1,children:(0,r.jsx)(X,{disabled:!0===e.disabled,children:e.label})},e.label)}))]}),(0,r.jsx)(Q,{isHidden:null!==d,children:c.map(e=>void 0!==e.href?(0,r.jsx)(MobileMenu_MobileMenuLink,{link:e,onClick:()=>{toggleProductsMenu(e)},isOpen:(null==d?void 0:d.id)===e.id},e.id):(0,r.jsx)(eo,{},e.id))})]}),(0,r.jsxs)($,{isHidden:null!==d,children:[((null==o?void 0:o.data)===null||(null==o?void 0:o.data)===void 0)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{href:"".concat(es.M5,"/customer-account/signup"),children:u("buttons.register")}),(0,r.jsx)(J,{href:"".concat(es.M5,"/customer-account/signin"),children:u("buttons.login")})]}),!!(null==o?void 0:o.data)&&(0,r.jsx)(V,{href:"".concat(es.M5,"/customer-account/overview"),children:u("buttons.account")})]})]})},eG=i(4202),eX=i(85999),eV=i(18837),eK=i(11490);let fetchProfileInfo=async e=>{e(eX.Nw.fetchProfileInfo_request()),eK.Z.get("accessToken")&&"null"!==eK.Z.get("accessToken")&&eV.Z.get("/api/v3/customers/profile",{headers:{Accept:"application/json","Content-Type":"application/json"}}).then(n=>{let{data:i}=n;e(eX.Nw.fetchProfileInfo_success({data:i}));try{var o,r;(null===(o=window)||void 0===o?void 0:o.mixpanel)&&(window.mixpanel.identify(null==i?void 0:i.publicId),window.mixpanel.people.set({linkedFacebook:!!(null==i?void 0:i.metaId)}),window.mixpanel.people.set({linkedGoogle:!!(null==i?void 0:i.googleId)}),window.mixpanel.people.set({notifyPromo:null==i?void 0:i.notifications}),window.mixpanel.people.set({language:null!==(r=eK.Z.get("NEXT_LOCALE"))&&void 0!==r?r:"en"}))}catch(e){console.log("mixpnale identify error",e)}}).catch(()=>{e(eX.Nw.fetchProfileInfo_failure(!0))}),e(eX.Nw.fetchProfileInfo_failure(!0))};var eY=i(41180),eq=i.n(eY);function DropdownAccount_styles_templateObject(){let e=(0,o._)(["\n position: absolute;\n bottom: 1px;\n right: 0;\n padding: 24px 8px;\n width: 266px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 24px;\n\n transform: translateY(100%);\n border-radius: 8px 0 8px 8px;\n z-index: -1;\n\n background-color: ",";\n border: 1px solid ",";\n\n"]);return DropdownAccount_styles_templateObject=function(){return e},e}function DropdownAccount_styles_templateObject1(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n gap: 12px;\n width: 100%;\n padding: 8px;\n border-radius: 8px;\n cursor: pointer;\n text-decoration: none;\n\n transition: all 0.2s ease-in-out;\n\n ","\n\n color: ",";\n\n p {\n color: ",";\n }\n\n svg {\n color: ",";\n }\n\n &:hover {\n background: ",";\n\n color: ",";\n\n svg {\n color: ",";\n }\n }\n"]);return DropdownAccount_styles_templateObject1=function(){return e},e}function DropdownAccount_styles_templateObject2(){let e=(0,o._)(["\n height: 1px;\n width: 100%;\n background-color: ",";\n border-radius: 8px;\n\n"]);return DropdownAccount_styles_templateObject2=function(){return e},e}function DropdownAccount_styles_templateObject3(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 4px;\n border-radius: 8px;\n\n background-color: ",";\n\n\n"]);return DropdownAccount_styles_templateObject3=function(){return e},e}let eQ=h.ZP.div.withConfig({componentId:"sc-6b82b5a9-0"})(DropdownAccount_styles_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return"light"===n?i.colors.white:i.colors.exchange.lunchBox.headDivider},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.input.color:"transparent"}),e$=h.ZP.div.withConfig({componentId:"sc-6b82b5a9-1"})(DropdownAccount_styles_templateObject1(),e=>!0===e.disabled&&"\n opacity: 0.2;\n cursor: not-allowed;\n",e=>e.colorScheme===l.IC.dark?e.theme.colors.text.lightBlue:e.theme.colors.text.darkBlue,e=>e.colorScheme===l.IC.dark?e.theme.colors.text.lightBlue:e.theme.colors.text.darkBlue,e=>e.theme.colors.text.nullLabel,e=>"light"===e.colorScheme?e.theme.colors.input.color:e.theme.colors.exchange.button.darkHover,e=>e.colorScheme===l.IC.dark?e.theme.colors.white:e.theme.colors.text.title,e=>e.colorScheme===l.IC.dark?e.theme.colors.white:e.theme.colors.text.title),eJ=h.ZP.div.withConfig({componentId:"sc-6b82b5a9-2"})(DropdownAccount_styles_templateObject2(),e=>{let{colorScheme:n,theme:i}=e;return"dark"===n?i.colors.exchange.button.darkHover:i.colors.input.color});h.ZP.div.withConfig({componentId:"sc-6b82b5a9-3"})(DropdownAccount_styles_templateObject3(),e=>e.colorScheme===l.IC.dark?e.theme.colors.exchange.button.darkHover:e.theme.colors.input.color);var icons_ProfileCircleIcon=function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.1 10.65a.806.806 0 0 0-.2 0 2.724 2.724 0 0 1-2.633-2.725A2.73 2.73 0 0 1 10 5.19a2.73 2.73 0 0 1 .1 5.458ZM15.617 16.15A8.279 8.279 0 0 1 10 18.333a8.279 8.279 0 0 1-5.617-2.183c.084-.783.584-1.55 1.475-2.15 2.284-1.517 6.017-1.517 8.284 0 .891.6 1.391 1.367 1.475 2.15Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10 18.334a8.333 8.333 0 1 0 0-16.667 8.333 8.333 0 0 0 0 16.667Z"})]})};function DropdownAccount_ButtonContainer_templateObject(){let e=(0,o._)(["\n position: relative;\n z-index: 0;\n margin-left: auto;\n"]);return DropdownAccount_ButtonContainer_templateObject=function(){return e},e}function DropdownAccount_ButtonContainer_templateObject1(){let e=(0,o._)(["\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: auto;\n\n padding: 12px;\n\n border-radius: 8px 8px 0 0;\n //transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;\n\n cursor: pointer;\n outline: none;\n\n box-sizing: border-box;\n\n text-decoration: none;\n font-weight: 500;\n font-size: 15px;\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n\n background-color: ",";\n color: ",";\n border: 1px solid ",";\n border-bottom: 1px solid ",";\n\n svg {\n color: ","\n }\n\n "]);return DropdownAccount_ButtonContainer_templateObject1=function(){return e},e}let e0=h.ZP.div.withConfig({componentId:"sc-b538eaae-0"})(DropdownAccount_ButtonContainer_templateObject()),e1=h.ZP.button.withConfig({componentId:"sc-b538eaae-1"})(DropdownAccount_ButtonContainer_templateObject1(),e=>{let{colorScheme:n,isOpen:i,theme:{colors:o}}=e;return i?n===l.IC.light?o.white:o.exchange.lunchBox.headDivider:"transparent"},e=>{let{colorScheme:n,theme:i,isOpen:o}=e;return n===l.IC.light?i.colors.text.darkBlue:i.colors.text.lightBlue},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.input.color:"transparent"},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.white:"transparent"},e=>e.theme.colors.text.nullLabel),ButtonContainer_ButtonContainer=e=>{let{label:n,colorScheme:i,popoverComponent:o,isOpen:l,...a}=e;return(0,r.jsxs)(e0,{...a,children:[(0,r.jsxs)(e1,{colorScheme:i,isOpen:l,children:[(0,r.jsx)(icons_ProfileCircleIcon,{height:20,width:20}),n,l?(0,r.jsx)(icons_ChevronUpIcon,{height:10,width:10,style:{margin:6}}):(0,r.jsx)(icons_ChevronDownIcon,{height:10,width:10,style:{margin:6}})]}),o]})};var icons_UserIcon=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M6 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM6 7.25c-2.505 0-4.545 1.68-4.545 3.75 0 .14.11.25.25.25h8.59c.14 0 .25-.11.25-.25 0-2.07-2.04-3.75-4.545-3.75Z"})})},icons_ExportIcon=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 10h7.155M13.834 12.012 15.847 10l-2.013-2.013M9.333 4H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h3.333"})})};let signOut=async()=>await (0,eV.Z)({url:"/auth-service/api/v1.0/sign-out",method:"delete",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json"}}),e2=[{label:"Overview",href:"".concat(es.M5,"/customer-account/overview"),icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.667 5.68V2.653c0-.94-.427-1.32-1.487-1.32h-2.693c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693c1.06.007 1.487-.373 1.487-1.313ZM14.667 13.18v-2.693C14.667 9.427 14.24 9 13.18 9h-2.693C9.427 9 9 9.427 9 10.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693c1.06 0 1.487-.427 1.487-1.487ZM7 5.68V2.653c0-.94-.427-1.32-1.487-1.32H2.82c-1.06 0-1.487.38-1.487 1.32v3.02c0 .947.427 1.32 1.487 1.32h2.693C6.573 7 7 6.62 7 5.68ZM7 13.18v-2.693C7 9.427 6.573 9 5.513 9H2.82c-1.06 0-1.487.427-1.487 1.487v2.693c0 1.06.427 1.487 1.487 1.487h2.693C6.573 14.667 7 14.24 7 13.18Z"})})},{})},{label:"History",href:"".concat(es.M5,"/customer-account/history"),icon:(0,r.jsx)(function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.667 8A6.67 6.67 0 0 1 8 14.666 6.67 6.67 0 0 1 1.333 8 6.67 6.67 0 0 1 8 1.333 6.67 6.67 0 0 1 14.667 8Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.473 10.12 8.407 8.887c-.36-.213-.654-.727-.654-1.147V5.007"})]})},{})},{label:"Loyalty",href:"".concat(es.M5,"/customer-account/loyalty"),icon:(0,r.jsx)(function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.667 6c0 .966-.287 1.853-.78 2.593A4.657 4.657 0 0 1 8.7 10.606c-.227.04-.46.06-.7.06-.24 0-.473-.02-.7-.06a4.657 4.657 0 0 1-3.187-2.013A4.645 4.645 0 0 1 3.333 6 4.663 4.663 0 0 1 8 1.333 4.663 4.663 0 0 1 12.667 6Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m14.167 12.313-1.1.26a.654.654 0 0 0-.494.493l-.233.98a.667.667 0 0 1-1.16.274L8 10.666l-3.18 3.66a.667.667 0 0 1-1.16-.273l-.233-.98a.664.664 0 0 0-.494-.493l-1.1-.26a.669.669 0 0 1-.32-1.12l2.6-2.6A4.657 4.657 0 0 0 7.3 10.613c.227.04.46.06.7.06.24 0 .473-.02.7-.06A4.657 4.657 0 0 0 11.887 8.6l2.6 2.6c.366.36.186.993-.32 1.113Z"})]})},{})},{label:"Payouts",href:"".concat(es.M5,"/customer-account/payouts"),icon:(0,r.jsx)(function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.667 6h-4M14.667 7.314v1.373a.684.684 0 0 1-.667.68h-1.307c-.72 0-1.38-.527-1.44-1.247-.04-.42.12-.813.4-1.086.247-.254.587-.4.96-.4H14a.684.684 0 0 1 .667.68Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M11.653 7.033c-.28.273-.44.667-.4 1.087.06.72.72 1.246 1.44 1.246H14v.967c0 2-1.333 3.333-3.333 3.333h-6c-2 0-3.334-1.333-3.334-3.333V5.666c0-1.813 1.094-3.08 2.794-3.293.173-.027.353-.04.54-.04h6c.173 0 .34.007.5.033 1.72.2 2.833 1.474 2.833 3.3v.967h-1.387c-.373 0-.713.147-.96.4Z"})]})},{})}];var DropdownAccount_DropdownAccount=e=>{let{colorScheme:n,profile:i,...o}=e,l=(0,eG.T)(),{ref:c,isComponentVisible:s,setIsComponentVisible:d}=(0,C.Z)(!1);return(0,r.jsx)(ButtonContainer_ButtonContainer,{label:"My account",isOpen:s,colorScheme:n,...o,onMouseEnter:e=>{s||e.stopPropagation(),d(!0)},onMouseLeave:()=>{d(!1)},popoverComponent:s&&(0,r.jsxs)(eQ,{ref:c,isOpen:s,colorScheme:n,children:[(0,r.jsx)(w(),{href:"".concat(es.M5,"/customer-account/account"),prefetch:!1,children:(0,r.jsxs)(e$,{colorScheme:n,style:{padding:"8px 10px"},children:[(0,r.jsx)(icons_UserIcon,{width:12,height:12,style:{flexShrink:0}}),(0,r.jsx)(v.Text14,{color:"inherit",fontWeight:"medium",style:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginLeft:2,flexGrow:1},children:"Profile"})]})}),(0,r.jsx)(eJ,{colorScheme:n}),(0,r.jsx)(Z.Stack,{direction:"column",spacing:4,alignItems:"stretch",children:null==e2?void 0:e2.map(e=>(0,r.jsx)(w(),{href:e.href,prefetch:!1,children:(0,r.jsxs)(e$,{colorScheme:n,children:[a.cloneElement(e.icon,{width:16,height:16}),(0,r.jsx)(v.Text14,{fontWeight:"medium",children:e.label})]})},e.label))}),(0,r.jsx)(eJ,{colorScheme:n}),(0,r.jsxs)(e$,{colorScheme:n,onClick:()=>{(async()=>{var e,n,i;try{await signOut(),eK.Z.remove("accessToken"),eK.Z.remove("refreshToken"),l(eX.Nw.logout()),(0,A.p)(L.Z.LOG_OUT),null===(n=window)||void 0===n||null===(e=n.mixpanel)||void 0===e||e.reset()}catch(e){(null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.status)===401&&await fetchProfileInfo(l)}})()},children:[(0,r.jsx)(icons_ExportIcon,{width:20,height:20,style:{flexShrink:0}}),(0,r.jsx)(v.Text14,{color:"white",fontWeight:"medium",children:"Log Out"})]})]})})},e3=i(24033);let getExchangeHistory=async()=>{try{var e;let n=await eV.Z.get("/api/v3/exchanges-new/header",{withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json"}});return null!==(e=null==n?void 0:n.data)&&void 0!==e?e:[]}catch(e){return[]}};function Header_templateObject(){let e=(0,o._)(["\n align-items: center;\n font-size: 14px;\n\n .divider {\n width: 1px;\n margin: 0 1px;\n background-color: ",";\n height: 20px;\n }\n"]);return Header_templateObject=function(){return e},e}function Header_templateObject1(){let e=(0,o._)(["\n body {\n width: 100%;\n height: 100%;\n position: fixed;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n }\n"]);return Header_templateObject1=function(){return e},e}let e4=y()(async()=>await i.e(682).then(i.bind(i,99682)),{loadableGenerated:{webpack:()=>[99682]},ssr:!1}),e6=(0,h.ZP)(Nav).withConfig({componentId:"sc-b0d6771-0"})(Header_templateObject(),e=>"dark"===e.colorScheme?e.theme.colors.exchange.button.darkHover:e.theme.colors.text.lightBlue),e5=(0,h.vJ)(Header_templateObject1()),areCookiesEnabled=()=>{try{document.cookie="testcookie=testvalue; SameSite=None; Secure";let e=document.cookie.includes("testcookie=testvalue");return document.cookie="testcookie=; SameSite=None; Secure; expires=Thu, 01 Jan 1970 00:00:00 UTC",e}catch(e){return!1}},Header=e=>{let{colorScheme:n,currentRoute:i,currentLearnRoute:o,isAuthCookie:c}=e,h=n===l.IC.light,m=(0,e3.useRouter)(),f=(0,eG.T)(),x=(0,eG.C)(e=>e.customerAccount.profile),[g,b]=(0,a.useState)([]);(0,a.useEffect)(()=>{var e;(null===(e=window)||void 0===e?void 0:e.mixpanel)!==void 0&&window.mixpanel.track_pageview()},[]),(0,a.useEffect)(function(){let checkExchangeHistory=async()=>{let e=areCookiesEnabled();b([{publicId:"Loading"}]);let n=await getExchangeHistory();0!==n.length||e||b([{publicId:"EmptyNotCookie"}]),n.length>0&&b([{publicId:"Full"},...n]),0===n.length&&b([{publicId:"Empty"}])};return checkExchangeHistory(),()=>{}},[]);let[w,_]=(0,a.useState)(!0),closeMobileMenu=()=>{O(!1)},j=(0,W.QS)({onSwipedRight:closeMobileMenu}),{ref:y,isComponentVisible:v,setIsComponentVisible:O}=(0,C.Z)(!1),changeRouteTo=e=>{m.push(e)};return(0,a.useLayoutEffect)(()=>{"idle"===x.fetchingStatus&&(async()=>{await Promise.all([fetchProfileInfo(f)])})()},[f,x]),(0,a.useEffect)(()=>{v?_(!1):setTimeout(()=>{_(!0)},500)},[v]),(0,r.jsx)(HeaderLayout,{leading:(0,r.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,r.jsx)("a",{href:"/",onClick:()=>{(0,A.p)(L.Z.HEADER_MAIN_LINK,{link:es.M5})},style:{height:"36px"},children:(0,r.jsx)(s(),{src:h?d:p,alt:"logo",style:{}})})}),central:(0,r.jsx)(Z.Show,{when:{desktop:!0},children:(0,r.jsx)(e6,{currentRoute:i,currentLearnRoute:o,colorScheme:n,exchangeList:g,links:u.Gf})}),tailing:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.Show,{when:{desktop:!0},children:c||(null==x?void 0:x.data)!==void 0?(0,r.jsx)(DropdownAccount_DropdownAccount,{profile:x,colorScheme:n}):(0,r.jsxs)(Z.Stack,{spacing:8,children:[(0,r.jsx)(tM,{colorScheme:n,view:"accent",size:"l",className:"".concat(eq()["header_auth-buttons"]," ").concat("dark"===n?eq().login__button_dark:eq().login__button_light),style:{padding:"0px 24px",border:0,marginLeft:"auto"},onClick:()=>{changeRouteTo("".concat(es.M5,"/customer-account/signin"))},children:"Log in"}),(0,r.jsx)(B.zx,{className:"".concat(eq()["header_auth-buttons"]," ").concat(eq()["get-account__button"]),view:"accent",size:"l",style:{fontWeight:500,fontSize:14,padding:"0px 25px",border:0},onClick:()=>{changeRouteTo("".concat(es.M5,"/customer-account/signup"))},children:"Get an account"})]})}),v&&(0,r.jsx)(e5,{}),(0,r.jsxs)(Z.Show,{when:{mobile:!0,tablet:!0},children:[(0,r.jsx)(HamburgerIcon,{open:!w,colorScheme:n,onClick:e=>{v||e.stopPropagation(),O(!0)}}),(0,r.jsx)(e4,{children:(0,r.jsx)(F,{...j,isHidden:!v,isClosed:w,children:(0,r.jsx)(z,{ref:y,isHidden:!v,children:(0,r.jsx)(MobileMenu_NavbarMobileMenu,{isMobileMenuRefVisible:v,profile:x,closeMobileMenu:closeMobileMenu,navbarLinks:u.Gf,exchangeList:g})})})})]})]}),colorScheme:n})};var e8={src:"/learn/_next/static/media/appstore-footer2.73d1b61d.svg",height:48,width:184,blurWidth:0,blurHeight:0},e7={src:"/learn/_next/static/media/googleplay-footer2.588e2962.svg",height:48,width:184,blurWidth:0,blurHeight:0},e9={src:"/learn/_next/static/media/apk-footer2.1c7a5d0e.svg",height:48,width:184,blurWidth:0,blurHeight:0},te=i(62228),tt=i(86659),tn=i(36734);let ti=[{img:{src:"/learn/_next/static/media/twitter2.a99df941.svg",height:24,width:24,blurWidth:0,blurHeight:0},link:"https://twitter.com/SimpleSwap_io",alt:"Twitter"},{img:{src:"/learn/_next/static/media/telegram2.7a62c08e.svg",height:24,width:24,blurWidth:0,blurHeight:0},link:"https://t.me/Simpleswap",alt:"Telegram"},{img:{src:"/learn/_next/static/media/youtube2.c8adb99f.svg",height:24,width:24,blurWidth:0,blurHeight:0},link:"https://www.youtube.com/c/SimpleSwap",alt:"Youtube"},{img:{src:"/learn/_next/static/media/discord2.239d218c.svg",height:24,width:24,blurWidth:0,blurHeight:0},link:"https://discord.gg/3D3JwTnsk5",alt:"Discord"},{img:{src:"/learn/_next/static/media/publish0x.6af3bad0.svg",height:24,width:25,blurWidth:0,blurHeight:0},link:"https://www.publish0x.com/@SimpleSwap",alt:"0x"},{img:{src:"/learn/_next/static/media/tradingView2.555ddcfd.svg",height:24,width:24,blurWidth:0,blurHeight:0},link:"https://www.tradingview.com/u/Rick_SimpleSwap/",alt:"TradingView"}],to="https://simpleswap.io",tr=[{title:"Bitcoin",link:"".concat(to,"/coins/btc")},{title:"Ethereum",link:"".concat(to,"/coins/eth")},{title:"Tezos",link:"".concat(to,"/coins/xtz")},{title:"Monero",link:"".concat(to,"/coins/xmr")},{title:"Cardano",link:"".concat(to,"/coins/ada")},{title:"Solana",link:"".concat(to,"/coins/sol")},{title:"Binance Coin",link:"".concat(to,"/coins/bnb")},{title:"TRON",link:"".concat(to,"/coins/trx")},{title:"Litecoin",link:"".concat(to,"/coins/ltc")},{title:"THETA",link:"".concat(to,"/coins/theta")},{title:"Tether (USDT) Swap",link:"https://simpleswap.io/swap/tether"},{title:"Stablecoins",link:"".concat(to,"/coins/stablecoins")},{title:"All Coins",link:"".concat(to,"/coins")}],tl=[{title:"Loyalty Program",link:"https://simpleswap.io/loyalty"},{title:"Platinum Users",link:"https://simpleswap.io/platinum-users"},{title:"Invite Friends",link:"https://simpleswap.io/invite-friends"}],ta=[{title:"Affiliate program",link:"https://simpleswap.io/affiliate-program"},{title:"Development API",link:"https://api.simpleswap.io"},{title:"Ambassador",link:"https://simpleswap.io/ambassador"}],tc=[{title:"About",link:"https://simpleswap.io/about",isReactPage:!0},{title:"FAQ",link:"https://simpleswap.io/faq",isReactPage:!0},{title:"How it works",link:"https://simpleswap.io/how-it-works",isReactPage:!0},{title:"Contacts",link:"https://simpleswap.io/contacts",isReactPage:!0},{title:"Blog",link:"https://simpleswap.io/blog"},{title:"Mobile App",link:"https://simpleswap.io/mobile-app",isReactPage:!0},{title:"Reviews",link:"https://simpleswap.io/reviews",isReactPage:!0}],ts=[{title:"Terms of Service",link:"https://simpleswap.io/terms-of-service",isReactPage:!0},{title:"Privacy Policy",link:"https://simpleswap.io/privacy-policy",isReactPage:!0},{title:"AML/KYC",link:"https://simpleswap.io/aml-kyc",isReactPage:!0},{title:"Affiliate Terms",link:"https://simpleswap.io/affiliate-terms",isReactPage:!0},{title:"General Risk Warning",link:"https://simpleswap.io/general-risk-warning",isReactPage:!0}],td=[{title:"ETH to BTC",link:"".concat(to,"/crypto-to-crypto/eth-btc")},{title:"BTC to ETH",link:"".concat(to,"/crypto-to-crypto/btc-eth")},{title:"BTC to XMR",link:"".concat(to,"/crypto-to-crypto/btc-xmr")},{title:"BTC to TRX",link:"".concat(to,"/crypto-to-crypto/btc-trx")},{title:"ETH to SOL",link:"".concat(to,"/crypto-to-crypto/eth-sol")},{title:"ETH to BNB",link:"".concat(to,"/crypto-to-crypto/eth-bnb")},{title:"BTC to BNB",link:"".concat(to,"/crypto-to-crypto/btc-bnb")},{title:"BTC to USDT",link:"".concat(to,"/crypto-to-crypto/btc-usdttrc20")},{title:"SOL to NEAR",link:"".concat(to,"/crypto-to-crypto/sol-near")},{title:"Buy Crypto",link:"".concat(to,"/buy-crypto")},{title:"Sell Crypto",link:"".concat(to,"/sell-crypto")},{title:"Crypto Pairs",link:"".concat(to,"/crypto-to-crypto")}];var tp=i(55998);let ExchangeSearch=()=>{let[e,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(""),[l,c]=(0,a.useState)(!1),[s,d]=(0,a.useState)(!1),p=(null==i?void 0:i.length)>=7&&(null==i?void 0:i.length)<=20,checkExchange=()=>{p&&!l&&(c(!0),tp.bl.get("https://simpleswap.io/api/v3/exchanges-new/".concat(i)).then(()=>{window.open("https://simpleswap.io/exchange?id=".concat(i))}).catch(()=>{d(!0)}).finally(()=>{c(!1)}))};return(0,r.jsxs)(tn.W2,{children:[(0,r.jsxs)(tn.f7,{isError:s,children:[(0,r.jsx)(tn.oi,{placeholder:e?"":"Track Exchange ID",value:i,onChange:e=>{let{target:{value:n}}=e;if(n.length>20)return!1;o(n.replace(/\s+/g,"").replace("/","").replace("\\","")),d(!1)},onFocus:()=>{n(!0)},onBlur:()=>{n(!1)},onKeyDown:e=>{let{key:n}=e;"Enter"===n&&checkExchange()}}),(0,r.jsx)(tn.QZ,{disabled:!p,pointer:p&&!l,onClick:checkExchange,"aria-label":"search",children:(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:"M11 17C14.3137 17 17 14.3137 17 11C17 7.68629 14.3137 5 11 5C7.68629 5 5 7.68629 5 11C5 14.3137 7.68629 17 11 17Z",stroke:"#859AB5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M19 19L15.5 15.5",stroke:"#859AB5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),s&&(0,r.jsx)(tn.__,{children:"Your exchange was not found"})]})};var tu=i(34452);let th=y()(async()=>await i.e(588).then(i.bind(i,55588)),{loadableGenerated:{webpack:()=>[55588]},ssr:!1});var Footer_Footer=()=>{let[e,n]=(0,a.useState)(),[i,o]=(0,a.useState)(!1),setCategory=i=>{n(i===e?"":i)},l=(0,tu.cC)(es.Aj);return(0,r.jsx)(tn.i4,{children:(0,r.jsxs)(Z.Stack,{flexWrap:"wrap",justifyContent:"space-between",alignItems:"stretch",children:[(0,r.jsxs)(tn.kT,{children:[(0,r.jsxs)(tn.Iw,{children:[!l&&(0,r.jsx)(th,{}),(0,r.jsxs)(tn.um,{centered:l,children:[(0,r.jsx)(tn.vv,{children:"Buy & sell crypto:"}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:te.Z,alt:"mastercard logo"})}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:tt.Z,alt:"visa logo"})})]})]}),(0,r.jsxs)(tn.of,{children:[(0,r.jsx)(tn.IG,{children:(0,r.jsxs)(tn.c7,{children:[(0,r.jsx)(tn.pG,{href:"https://simpleswap-subdomain.onelink.me/XxkL/85fe1e52",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(s(),{src:e8,alt:"appstore icon"})}),(0,r.jsx)(tn.LA,{href:"https://simpleswap-subdomain.onelink.me/XxkL/4d83a727",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(s(),{src:e7,alt:"googleplay icon"})}),(0,r.jsx)(tn.rs,{href:"/downloads/android/app-release.apk",download:!0,rel:"noopener noreferrer",children:(0,r.jsx)(s(),{src:e9,alt:"apk icon"})})]})}),(0,r.jsx)(tn.TB,{children:!l&&(0,r.jsxs)(tn.um,{children:[(0,r.jsx)(tn.vv,{children:"Buy & sell crypto:"}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:te.Z,alt:"mastercard logo"})}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:tt.Z,alt:"visa logo"})})]})})]})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsx)(tn.OJ,{children:(0,r.jsx)(tn.kT,{children:(0,r.jsx)(tn.Iw,{children:(0,r.jsxs)(tn.c7,{children:[(0,r.jsx)(tn.pG,{href:"https://simpleswap-subdomain.onelink.me/XxkL/85fe1e52",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(s(),{src:e8,alt:"appstore icon"})}),(0,r.jsx)(tn.LA,{href:"https://simpleswap-subdomain.onelink.me/XxkL/4d83a727",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(s(),{src:e7,alt:"googleplay icon"})}),(0,r.jsx)(tn.rs,{href:"/downloads/android/app-release.apk",download:!0,rel:"noopener noreferrer",children:(0,r.jsx)(s(),{src:e9,alt:"apk icon"})})]})})})}),(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(tn.Gh,{isFocus:i,children:(0,r.jsx)(ExchangeSearch,{})})}),(0,r.jsxs)(tn.ib,{children:[(0,r.jsxs)(tn.t_,{children:[l&&(0,r.jsxs)(tn.um,{children:[(0,r.jsx)(tn.vv,{children:"Buy & sell crypto:"}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:te.Z,alt:"mastercard logo"})}),(0,r.jsx)(w(),{href:"https://simpleswap.io/?cur_from=usd&cur_to=btc&amount=150",prefetch:!1,children:(0,r.jsx)(s(),{src:tt.Z,alt:"visa logo"})})]}),!l&&(0,r.jsx)(th,{}),(0,r.jsx)(ExchangeSearch,{})]}),(0,r.jsx)(tn.Ew,{children:(0,r.jsxs)(Z.Stack,{flexWrap:"wrap",alignItems:"stretch",children:[(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"Company & Team"}),(0,r.jsx)(tn.aV,{children:tc.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})})]}),(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"Crypto Pairs"}),(0,r.jsx)(tn.aV,{children:td.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})})]}),(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"Supported Coins"}),(0,r.jsx)(tn.aV,{children:tr.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})})]}),(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"Partnership"}),(0,r.jsx)(tn.aV,{children:ta.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})})]}),(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"Legal Documents"}),(0,r.jsx)(tn.aV,{children:ts.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})}),(0,r.jsxs)(tn.Sf,{children:[(0,r.jsx)(tn.AO,{children:"SimpleSwap Loyalty"}),(0,r.jsx)(tn.aV,{children:tl.map(e=>{let{title:n,link:i,img:o}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsxs)(tn.OP,{href:i,children:[n,!!o&&(0,r.jsx)(tn.jL,{children:(0,r.jsx)(s(),{src:o,alt:n})})]})},i)})})]})]}),(0,r.jsx)(tn.Nr,{children:(0,r.jsxs)(tn.wU,{children:[(0,r.jsx)(tn.AO,{children:"SimpleSwap Coin"}),(0,r.jsx)(tn.aV,{children:tl.map(e=>{let{title:n,link:i,img:o}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsxs)(tn.OP,{href:i,children:[n,!!o&&(0,r.jsx)(tn.jL,{children:(0,r.jsx)(s(),{src:o,alt:n})})]})},i)})})]})})]})})]}),(0,r.jsxs)(tn.nY,{children:[(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("companyTeam")},children:[(0,r.jsx)(tn.AO,{children:"Company & Team"}),(0,r.jsx)(tn.e0,{isOpen:"companyTeam"===e})]}),"companyTeam"===e&&tc.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("cryptoPairs")},children:[(0,r.jsx)(tn.AO,{children:"Crypto Pairs"}),(0,r.jsx)(tn.e0,{isOpen:"cryptoPairs"===e})]}),"cryptoPairs"===e&&td.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("supportedCoins")},children:[(0,r.jsx)(tn.AO,{children:"Supported Coins"}),(0,r.jsx)(tn.e0,{isOpen:"supportedCoins"===e})]}),"supportedCoins"===e&&tr.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("partnership")},children:[(0,r.jsx)(tn.AO,{children:"Partnership"}),(0,r.jsx)(tn.e0,{isOpen:"partnership"===e})]}),"partnership"===e&&ta.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("legacyDocuments")},children:[(0,r.jsx)(tn.AO,{children:"Legal Documents"}),(0,r.jsx)(tn.e0,{isOpen:"legacyDocuments"===e})]}),"legacyDocuments"===e&&ts.map(e=>{let{title:n,link:i}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsx)(tn.OP,{href:i,children:n})},i)})]}),(0,r.jsx)(tn.iz,{}),(0,r.jsxs)(tn.w0,{children:[(0,r.jsxs)(tn.WD,{onClick:()=>{setCategory("simpleSwapCoins")},children:[(0,r.jsx)(tn.AO,{children:"SimpleSwap Coin"}),(0,r.jsx)(tn.e0,{isOpen:"simpleSwapCoins"===e})]}),"simpleSwapCoins"===e&&tl.map(e=>{let{title:n,link:i,img:o}=e;return(0,r.jsx)(tn.HC,{children:(0,r.jsxs)(tn.OP,{href:i,children:[n,!!o&&(0,r.jsx)(tn.jL,{children:(0,r.jsx)(s(),{src:o,alt:n})})]})},i)})]})]}),(0,r.jsx)(tn.P7,{children:(0,r.jsx)(tn.kT,{children:(0,r.jsxs)(tn.mT,{children:[(0,r.jsx)(tn.R5,{children:(0,r.jsx)(tn.bA,{children:"\xa9 2018-2024 SimpleSwap"})}),(0,r.jsx)(tn.TB,{children:(0,r.jsxs)(tn.XA,{children:[ti.map(e=>{let{img:n,link:i,alt:o}=e;return(0,r.jsx)(tn.pQ,{href:i,target:"_blank",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(tn.gU,{children:(0,r.jsx)(s(),{src:n,alt:o})})},i)}),(0,r.jsx)(tn.pQ,{href:"https://simpleswap.io/contacts",target:"_blank",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(tn.YZ,{children:"More"})})]})})]})})})]})})},icons_SwitcherIcon=function(e){return(0,r.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"14",y:"6",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"6",y:"14",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"14",y:"14",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"22",y:"14",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"22",y:"6",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"6",y:"22",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"14",y:"22",width:"4",height:"4",rx:"1",fill:"currentColor"}),(0,r.jsx)("rect",{x:"22",y:"22",width:"4",height:"4",rx:"1",fill:"currentColor"})]})};function ProductSwitcher_styles_templateObject(){let e=(0,o._)(["\n position: absolute;\n bottom: 1px;\n //left: -1px;\n padding: 16px;\n width: 392px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n transform: translateY(100%);\n border-radius: 0 8px 8px 8px;\n z-index: -1;\n\n background-color: ",";\n border: 1px solid ",";\n"]);return ProductSwitcher_styles_templateObject=function(){return e},e}function ProductSwitcher_styles_templateObject1(){let e=(0,o._)(["\n display: flex;\n width: 100%;\n padding: 14px 8px;\n border-radius: 8px;\n cursor: pointer;\n text-decoration: none;\n\n transition: background-color 0.2s ease-in-out;\n\n &:hover {\n background: ",";\n }\n\n &:not(:last-child) {\n margin-bottom: 8px;\n }\n"]);return ProductSwitcher_styles_templateObject1=function(){return e},e}let tm=h.ZP.div.withConfig({componentId:"sc-e2875588-0"})(ProductSwitcher_styles_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return"light"===n?i.colors.white:i.colors.footer.background},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.text.lightBlue:"transparent"}),tf=h.ZP.a.withConfig({componentId:"sc-e2875588-1"})(ProductSwitcher_styles_templateObject1(),e=>"light"===e.colorScheme?e.theme.colors.input.color:e.theme.colors.affiliate.button.dark);function ButtonContainer_styles_templateObject(){let e=(0,o._)(["\n position: relative;\n z-index: 0;\n height: 34px;\n width: 34px;\n"]);return ButtonContainer_styles_templateObject=function(){return e},e}function ButtonContainer_styles_templateObject1(){let e=(0,o._)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n color: ",";\n border: 1px solid ",";\n border-bottom: 1px solid ",";\n border-radius: ",";\n transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;\n\n cursor: pointer;\n outline: none;\n padding: 0;\n\n height: 34px;\n width: 34px;\n\n box-sizing: border-box;\n\n &:hover {\n background-color: ",";\n border: 1px solid ",";\n }\n "]);return ButtonContainer_styles_templateObject1=function(){return e},e}let tx=h.ZP.div.withConfig({componentId:"sc-7e3b8afb-0"})(ButtonContainer_styles_templateObject()),tg=h.ZP.button.withConfig({componentId:"sc-7e3b8afb-1"})(ButtonContainer_styles_templateObject1(),e=>{let{colorScheme:n,isOpen:i,theme:{colors:o}}=e;return i?n===l.IC.light?o.white:o.footer.background:"transparent"},e=>{let{colorScheme:n,theme:{colors:i}}=e;return n===l.IC.light?i.text.darkBlue:i.white},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.text.lightBlue:"transparent"},e=>{let{colorScheme:n,theme:{colors:i},isOpen:o}=e;return o&&n===l.IC.light?i.white:"transparent"},e=>{let{isOpen:n}=e;return n?"4px 4px 0px 0px":"4px"},e=>{let{colorScheme:n,theme:{colors:i}}=e;return n===l.IC.light?i.white:i.footer.background},e=>{let{colorScheme:n,theme:{colors:i}}=e;return n===l.IC.light?i.text.nullLabel:"transparent"}),ButtonContainer_styles_ButtonContainer=e=>{let{icon:n,colorScheme:i,popoverComponent:o,isOpen:l,...a}=e;return(0,r.jsxs)(tx,{...a,children:[(0,r.jsx)(tg,{colorScheme:i,isOpen:l,children:n}),o]})},ProductSwitcher=e=>{let{colorScheme:n,...i}=e,{ref:o,isComponentVisible:l,setIsComponentVisible:a}=(0,C.Z)(!1);return(0,r.jsx)(ButtonContainer_styles_ButtonContainer,{icon:(0,r.jsx)(icons_SwitcherIcon,{width:32,height:32}),isOpen:l,colorScheme:n,...i,onClick:e=>{a(!0)},popoverComponent:l&&(0,r.jsx)(tm,{ref:o,isOpen:l,colorScheme:n,children:tb.map(e=>{let i="dark"===n?"white":"text.darkBlue";return(0,r.jsxs)(tf,{href:e.href,target:"_blanc",colorScheme:n,children:[(0,r.jsx)(s(),{src:e.icon,alt:"ss logo",width:24,height:24}),(0,r.jsxs)(Z.Stack,{direction:"column",alignItems:"flex-start",spacing:4,style:{marginLeft:16},children:[(0,r.jsx)(v.Text14,{color:i,fontWeight:"bold",children:e.title}),(0,r.jsx)(v.Text14,{color:i,children:e.description})]})]},e.title)})})})},tb=[{title:"SimpleSwap Exchange",description:"Exchange 400+ crypto and fiat currencies",href:"https://simpleswap.io",icon:"/learn/img/logos/ssLogo.svg"},{title:"SimpleSwap Affiliate Program",description:"Become our partner and start to make profit",href:"https://simpleswap.io/affiliate-program",icon:"/learn/img/logos/ssLogo.svg"}];var tw=i(76827),t_=i(4771),tj=i(98614),ty=i.n(tj);function Paper_templateObject(){let e=(0,o._)(["\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n padding: ",";\n\n ","\n ","\n"]);return Paper_templateObject=function(){return e},e}function Paper_templateObject1(){let e=(0,o._)(["\n cursor: pointer;\n transition:all 300ms ease-in-out, box-shadow 300ms ease-in-out, scale 400ms ease-in-out;\n\n &:hover {\n box-shadow: ",";\n transform: scale(1.02);\n }\n"]);return Paper_templateObject1=function(){return e},e}function Paper_templateObject2(){let e=(0,o._)(["\n cursor: pointer;\n img {\n transition: all 300ms ease-in-out;\n }\n\n\n &:hover img {\n transform: scale(1.05);\n }\n"]);return Paper_templateObject2=function(){return e},e}let tC=h.ZP.div.withConfig({componentId:"sc-137afa04-0"})(Paper_templateObject(),e=>{let{theme:n,color:i}=e;return void 0!==i?ty()(n.colors,i):n.colors.white},e=>{let{shadow:n,theme:i}=e;return void 0!==n?i.shadows[n]:"none"},e=>void 0!==e.borderRadius?"".concat(e.borderRadius,"px"):"32px",e=>void 0!==e.padding?Array.isArray(e.padding)?e.padding.map(e=>"".concat(e,"px")).join(" "):"".concat(e.padding,"px"):"none",e=>!0===e.isClickable&&tv,e=>!0===e.animateCover&&tO),tv=(0,h.iv)(Paper_templateObject1(),e=>e.theme.shadows[5]),tO=(0,h.iv)(Paper_templateObject2());function BreadcrumbsActiveItem_templateObject(){let e=(0,o._)(["\n color: ",";\n transition: color 0.2s ease-in-out;\n\n &:hover {\n color: ",";\n }\n"]);return BreadcrumbsActiveItem_templateObject=function(){return e},e}function BreadcrumbsActiveItem_templateObject1(){let e=(0,o._)(["\n color: ",";\n\n"]);return BreadcrumbsActiveItem_templateObject1=function(){return e},e}function BreadcrumbsActiveItem_templateObject2(){let e=(0,o._)(["\n color: ",";\n"]);return BreadcrumbsActiveItem_templateObject2=function(){return e},e}let tk=h.ZP.div.withConfig({componentId:"sc-242397bf-0"})(BreadcrumbsActiveItem_templateObject(),e=>{let{theme:n}=e;return n.colors.text.nullLabel},e=>{let{theme:n}=e;return n.colors.text.darkBlue}),tI=h.ZP.span.withConfig({componentId:"sc-242397bf-1"})(BreadcrumbsActiveItem_templateObject1(),e=>{let{theme:n}=e;return n.colors.text.lightBlue}),tS=h.ZP.span.withConfig({componentId:"sc-242397bf-2"})(BreadcrumbsActiveItem_templateObject2(),e=>{let{theme:n,isActive:i}=e;return!0===i?n.colors.text.lightBlue:n.colors.text.nullLabel});var Breadcrumbs_Breadcrumbs=function(e){let{children:n,divider:i}=e,o=a.Children.count(n),l=o-1;return(0,r.jsx)(Z.Stack,{direction:"row",flexWrap:"wrap",spacing:16,style:{userSelect:"none",overflowX:"auto"},children:a.Children.toArray(n).map((e,n)=>(0,r.jsxs)(a.Fragment,{children:[a.cloneElement(e),n{var n,i,o;let{id:a,date:c,title:d,description:p,image:u,...h}=e,m=(0,tP.Z)(l.Uh.tablet),f=(0,tP.Z)(l.Uh.mobile);return m?(0,r.jsx)(tC,{isClickable:!0,as:"article",role:"article",className:"card",borderRadius:32,style:{height:280,overflow:"hidden",...null!=h.style?h.style:{}},children:(0,r.jsxs)(Z.Stack,{spacing:0,alignItems:"center",style:{position:"relative",height:"100%"},children:[(0,r.jsx)(s(),{src:u,alt:null!==(n="".concat(d))&&void 0!==n?n:"cover",width:300,height:200,style:{objectFit:"cover",height:"100%",flex:1}}),(0,r.jsxs)("div",{style:{padding:30,flex:1,maxWidth:"55%"},children:[(0,r.jsx)(DateLabel,{date:c}),(0,r.jsx)(v.CardTitleH3,{style:{margin:"16px 0 8px"},children:d}),(0,r.jsx)(v.Text16,{color:"text.darkBlue",style:{textOverflow:"ellipsis",overflow:"hidden",maxHeight:"104px",display:"-webkit-box",WebkitLineClamp:"4",WebkitBoxOrient:"vertical",color:"".concat(l.rS.colors.text.nullLabel)},children:p})]})]})}):f?(0,r.jsx)(tC,{isClickable:!0,className:"card",borderRadius:16,style:{height:272,overflow:"hidden",...null!=h.style?h.style:{}},children:(0,r.jsxs)(Z.Stack,{spacing:0,direction:"column",alignItems:"stretch",style:{position:"relative",height:"100%"},children:[(0,r.jsx)(s(),{src:u,alt:null!==(i="".concat(d))&&void 0!==i?i:"cover",width:252,height:132,style:{objectFit:"cover",width:"100%",flexShrink:1}}),(0,r.jsxs)("div",{style:{padding:"16px 14px",flexGrow:1,display:"flex",flexDirection:"column"},children:[(0,r.jsx)(DateLabel,{date:c}),(0,r.jsx)(v.CardTitleH3,{style:{margin:"12px 0 8px 0",fontSize:"16px"},truncate:"multiline-ellipsis",children:d}),(0,r.jsx)(v.Text14,{color:"text.darkBlue",truncate:"multiline-ellipsis",style:{textOverflow:"ellipsis",overflow:"hidden",maxHeight:"40px",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},children:p})]})]})}):(0,r.jsx)(tC,{isClickable:!0,className:"card",borderRadius:16,style:{height:"100%",overflow:"hidden",...null!=h.style?h.style:{}},children:(0,r.jsxs)(Z.Stack,{spacing:0,direction:"column",alignItems:"stretch",children:[(0,r.jsx)(s(),{src:u,alt:null!==(o="".concat(d))&&void 0!==o?o:"cover",width:300,height:200,style:{objectFit:"cover",width:"100%",flexShrink:1}}),(0,r.jsxs)("div",{style:{minHeight:184,maxHeight:210,padding:30,flexGrow:1,display:"flex",flexDirection:"column"},children:[(0,r.jsx)(DateLabel,{date:c}),(0,r.jsx)(v.CardTitleH3,{style:{margin:"16px 0 8px"},children:d}),(0,r.jsx)(v.Text16,{className:"article-card-description-".concat(a),color:"text.darkBlue",style:{textOverflow:"ellipsis",overflow:"hidden",color:"".concat(l.rS.colors.text.nullLabel),height:"78px",display:"-webkit-box",flexShrink:1,WebkitLineClamp:d.length>26?d.length>52?"1":"2":"3",WebkitBoxOrient:"vertical"},children:p}),p&&p.length+d.length>100&&(0,r.jsx)(T.u,{anchorSelect:".article-card-description-".concat(a),content:p,place:"top",delayShow:800,opacity:1,style:{backgroundColor:"".concat(l.rS.colors.white),padding:"12px 16px",borderRadius:"8px",fontSize:"14px",color:"".concat(l.rS.colors.text.darkBlue),width:"320px",whiteSpace:"normal",overflowX:"unset"}})]})]})})};var icons_CalendarIcon=function(e){return(0,r.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{d:"M6.66699 1.66663V4.16663",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.333 1.66663V4.16663",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M2.91699 7.57495H17.0837",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17.5 7.08329V14.1666C17.5 16.6666 16.25 18.3333 13.3333 18.3333H6.66667C3.75 18.3333 2.5 16.6666 2.5 14.1666V7.08329C2.5 4.58329 3.75 2.91663 6.66667 2.91663H13.3333C16.25 2.91663 17.5 4.58329 17.5 7.08329Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.0791 11.4167H13.0866",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.0791 13.9167H13.0866",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.99607 11.4167H10.0036",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.99607 13.9167H10.0036",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.91209 11.4167H6.91957",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.91209 13.9167H6.91957",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},tE=i(55281),tA=i(74493);function DateLabel_templateObject(){let e=(0,o._)(["\n font-size: 10px;\n\n @media screen and (min-width: ",") {\n font-size: 12px;\n };\n\n @media screen and (min-width: ",") {\n font-size: 14px;\n }\n"]);return DateLabel_templateObject=function(){return e},e}let DateLabel=e=>{let{date:n,...i}=e,o=(0,tE.Z)((0,tA.Z)(n),"PP");return(0,r.jsxs)(tL,{as:Z.Stack,id:"article-published-date",spacing:8,alignItems:"center",color:"text.nullLabel",fontWeight:"medium",...i,children:[(0,r.jsx)(icons_CalendarIcon,{width:20,height:20}),o]})},tL=(0,h.ZP)(v.Text14).withConfig({componentId:"sc-f9397422-0"})(DateLabel_templateObject(),l.rS.breakpoints.tablet.min,l.rS.breakpoints.desktop.min);function styles_templateObject(){let e=(0,o._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 64px;\n\n background-color: ",";\n\n @media only screen and "," {\n padding: 16px 0;\n }\n"]);return styles_templateObject=function(){return e},e}let tT=h.ZP.div.withConfig({componentId:"sc-4c99af82-0"})(styles_templateObject(),e=>{let{colorScheme:n,theme:i}=e;return"dark"===n?i.colors.exchange.lunchBox.backDish:i.colors.white},l.Uh.desktop);function SubHeader(e){let{currentLearnRoute:n,colorScheme:i}=e;return(0,r.jsx)(tT,{colorScheme:i,children:(0,r.jsx)(t_.W,{style:{display:"flex",alignItems:"center",overflowX:"auto"},children:(0,r.jsx)(Nav,{links:u.Qs,colorScheme:i,currentLearnRoute:n,currentRoute:"/analytics",gap:60})})})}var tN=i(3408);function LoginButton_templateObject(){let e=(0,o._)(["\n background-color: ",";\n border-color: ",";\n color: ",";\n\n font-weight: 500;\n font-size: 14px;\n\n &:hover {\n background-color: "," !important;\n border-color: "," !important;\n\n color: "," !important;\n }\n"]);return LoginButton_templateObject=function(){return e},e}let tM=(0,h.ZP)(tN.zx).withConfig({componentId:"sc-194d0143-0"})(LoginButton_templateObject(),e=>"dark"===e.colorScheme?e.theme.colors.exchange.button.dark:e.theme.colors.input.color,e=>"dark"===e.colorScheme?e.theme.colors.exchange.button.dark:e.theme.colors.input.color,e=>"dark"===e.colorScheme?e.theme.colors.white:e.theme.colors.text.darkBlue,e=>"dark"===e.colorScheme?e.theme.colors.exchange.button.darkHover:e.theme.colors.input.colorHover,e=>"dark"===e.colorScheme?e.theme.colors.exchange.button.darkHover:e.theme.colors.input.colorHover,e=>"dark"===e.colorScheme?e.theme.colors.white:e.theme.colors.text.title)},62096:function(e,n,i){"use strict";i.d(n,{K:function(){return l}});var o=i(60230),r=i(5805);function _templateObject(){let e=(0,o._)(["\n display: flex;\n flex: ",";\n flex-direction: ",";\n align-items: ",";\n flex-wrap: ",";\n justify-content: ",";\n\n gap: ",";\n"]);return _templateObject=function(){return e},e}let l=r.ZP.div.withConfig({componentId:"sc-45208336-0"})(_templateObject(),e=>{var n;return null!==(n=e.flex)&&void 0!==n?n:"none"},e=>{var n;return null!==(n=e.direction)&&void 0!==n?n:"row"},e=>{var n;return null!==(n=e.alignItems)&&void 0!==n?n:"center"},e=>{var n;return null!==(n=e.flexWrap)&&void 0!==n?n:"nowrap"},e=>{var n;return null!==(n=e.justifyContent)&&void 0!==n?n:"flex-start"},e=>{let{spacing:n}=e;return void 0===n?"none":"number"==typeof n?"".concat(n,"px"):n})},17884:function(e,n,i){"use strict";i.r(n),i.d(n,{Columns:function(){return d},Hide:function(){return c},Show:function(){return s},Stack:function(){return o.K}});var o=i(62096),r=i(60230),l=i(5805),a=i(90341);function _templateObject(){let e=(0,r._)(["\n @media only screen and "," {\n display: ",";\n }\n @media only screen and "," {\n display: ",";\n }\n @media only screen and "," {\n display: ",";\n }\n"]);return _templateObject=function(){return e},e}let c=l.ZP.div.withConfig({componentId:"sc-94ec7373-0"})(_templateObject(),a.Uh.mobile,e=>{let{when:n}=e;return!0===n.mobile?"none":"contents"},a.Uh.tablet,e=>{let{when:n}=e;return!0===n.tablet?"none":"contents"},a.Uh.desktop,e=>{let{when:n}=e;return!0===n.desktop?"none":"contents"});function Show_templateObject(){let e=(0,r._)(["\n @media only screen and "," {\n display: ",";\n }\n @media only screen and "," {\n display: ",";\n }\n @media only screen and "," {\n display: ",";\n }\n"]);return Show_templateObject=function(){return e},e}let s=l.ZP.div.withConfig({componentId:"sc-c1d1e2bd-0"})(Show_templateObject(),a.Uh.mobile,e=>!0===e.when.mobile?"contents":"none",a.Uh.tablet,e=>!0===e.when.tablet?"contents":"none",a.Uh.desktop,e=>!0===e.when.desktop?"contents":"none");function Columns_templateObject(){let e=(0,r._)(["\n & > * {\n\n @media only screen and "," {\n width: 100%;\n }\n @media only screen and "," {\n width: 100%;\n }\n @media only screen and "," {\n width: ",";\n }\n }\n"]);return Columns_templateObject=function(){return e},e}let d=(0,l.ZP)(o.K).attrs({spacing:32,alignItems:"stretch",flexWrap:"wrap"}).withConfig({componentId:"sc-5140bfa5-0"})(Columns_templateObject(),a.Uh.mobile,a.Uh.tablet,a.Uh.desktop,e=>{let{amount:n}=e;return"calc((100% - ".concat(n-1," * ").concat(32,"px) / ").concat(n,")")})},26420:function(e,n,i){"use strict";i.r(n),i.d(n,{CardTitleH3:function(){return m},Text14:function(){return C},Text16:function(){return y},Text20:function(){return j},Title1:function(){return f},Title2:function(){return x},Title3:function(){return g},Title4:function(){return b},TitleDashboard:function(){return h},TruncateMultipleStyle:function(){return d},TruncateStyle:function(){return s}});var o=i(60230),r=i(5805),l=i(90341),a=i(2890),c=i.n(a);function _templateObject(){let e=(0,o._)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n display: -webkit-box; /* Enables multiline display */\n -webkit-line-clamp: 3; /* Number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"]);return _templateObject1=function(){return e},e}let s=(0,r.iv)(_templateObject()),d=(0,r.iv)(_templateObject1());function Title_templateObject(){let e=(0,o._)(["\n font-family: ",";\n font-style: normal;\n line-height: 140%;\n\n color: ",";\n ","\n"]);return Title_templateObject=function(){return e},e}function Title_templateObject1(){let e=(0,o._)(["\n font-family: ",";\n font-style: normal;\n line-height: 120%;\n\n color: ",";\n\n ","\n ","\n"]);return Title_templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n ",";\n display: block;\n font-weight: 600;\n line-height: 140%;\n\n @media only screen and "," {\n font-size: ",";\n }\n @media only screen and "," {\n font-size: ",";\n }\n @media only screen and "," {\n font-size: ",";\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n ",";\n display: block;\n font-weight: 600;\n line-height: 140%;\n color: ",";\n\n @media only screen and "," {\n font-size: ",";\n }\n @media only screen and "," {\n font-size: ",";\n }\n @media only screen and "," {\n font-size: ",";\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n ",";\n font-weight: 400;\n font-size: 56px;\n\n @media only screen and "," {\n font-size: 34px;\n text-align: center;\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n ",";\n font-weight: 400;\n font-size: 50px;\n\n @media only screen and "," {\n font-size: 30px;\n text-align: center;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n ",";\n font-weight: 400;\n font-size: 40px;\n\n @media only screen and "," {\n font-size: 24px;\n text-align: center;\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n ",";\n font-family: var(--font-inter), sans-serif;\n font-weight: 400;\n font-size: 34px;\n"]);return _templateObject7=function(){return e},e}let p=(0,r.iv)(Title_templateObject(),e=>{let{theme:n}=e;return n.typography.dashboard.title.fontFamily},e=>c().get(e.theme.colors,void 0!==e.color?e.color:"text.title"),e=>"ellipsis"===e.truncate&&s),u=(0,r.iv)(Title_templateObject1(),e=>{let{theme:n}=e;return n.typography.title.fontFamily},e=>c().get(e.theme.colors,void 0!==e.color?e.color:"text.title"),e=>"ellipsis"===e.truncate&&s,e=>"multiline-ellipsis"===e.truncate&&d),h=r.ZP.h5.withConfig({componentId:"sc-9cd1a2a4-0"})(_templateObject2(),p,l.Uh.mobile,e=>e.theme.typography.dashboard.title.fontSize.mobile,l.Uh.tablet,e=>e.theme.typography.dashboard.title.fontSize.desktop,l.Uh.desktop,e=>e.theme.typography.dashboard.title.fontSize.desktop),m=r.ZP.h3.withConfig({componentId:"sc-9cd1a2a4-1"})(_templateObject3(),p,l.rS.colors.text.title,l.Uh.mobile,e=>e.theme.typography.dashboard.title.fontSize.mobile,l.Uh.tablet,e=>e.theme.typography.dashboard.title.fontSize.desktop,l.Uh.desktop,e=>e.theme.typography.dashboard.title.fontSize.desktop),f=r.ZP.h1.withConfig({componentId:"sc-9cd1a2a4-2"})(_templateObject4(),u,l.Uh.mobile),x=r.ZP.h2.withConfig({componentId:"sc-9cd1a2a4-3"})(_templateObject5(),u,l.Uh.mobile),g=r.ZP.h3.withConfig({componentId:"sc-9cd1a2a4-4"})(_templateObject6(),u,l.Uh.mobile),b=r.ZP.h4.withConfig({componentId:"sc-9cd1a2a4-5"})(_templateObject7(),u);function text_templateObject(){let e=(0,o._)(["\n font-family: var(--font-inter), sans-serif;\n font-style: normal;\n font-weight: ",";\n color: ",";\n\n ","\n ","\n"]);return text_templateObject=function(){return e},e}function text_templateObject1(){let e=(0,o._)(["\n ",";\n\n font-size: 20px;\n line-height: 140%;\n"]);return text_templateObject1=function(){return e},e}function text_templateObject2(){let e=(0,o._)(["\n ",";\n font-weight: 400;\n font-size: 16px;\n line-height: 160%;\n"]);return text_templateObject2=function(){return e},e}function text_templateObject3(){let e=(0,o._)(["\n ",";\n\n font-size: 14px;\n line-height: 140%;\n"]);return text_templateObject3=function(){return e},e}let w={regular:400,medium:500,bold:700},_=(0,r.iv)(text_templateObject(),e=>void 0!==e.fontWeight?w[e.fontWeight]:w.regular,e=>c().get(e.theme.colors,void 0!==e.color?e.color:"text.title",e.color),e=>"ellipsis"===e.truncate&&s,e=>"multiline-ellipsis"===e.truncate&&d),j=r.ZP.p.withConfig({componentId:"sc-feb30a31-0"})(text_templateObject1(),_),y=r.ZP.p.withConfig({componentId:"sc-feb30a31-1"})(text_templateObject2(),_),C=r.ZP.p.withConfig({componentId:"sc-feb30a31-2"})(text_templateObject3(),_)},3408:function(e,n,i){"use strict";i.d(n,{zx:function(){return o.zx}});var o=i(83776)},91837:function(e,n,i){"use strict";i.d(n,{Aj:function(){return s},DA:function(){return c},GD:function(){return a},M5:function(){return l}});var o,r=i(25566);let l=(o="https://simpleswap.io","https://simpleswap.io"),a=r.env.API_HOST;r.env.API_KEY;let c="usd",s="hide-trustpilot-and-bestchange-widgets"},20640:function(e,n){"use strict";n.Z={FIRST_ENTER:"firstEnter",INPUT_AMOUNT_FROM_MAIN_PAGE:"INPUT_AMOUNT_FROM_MAIN_PAGE",TOUCH_DROPDOWN_FROM_MAIN_PAGE:"TOUCH_DROPDOWN_FROM_MAIN_PAGE",TOUCH_DROPDOWN_TO_MAIN_PAGE:"TOUCH_DROPDOWN_TO_MAIN_PAGE",INPUT_ADDRESS_TO_MAIN_PAGE:"INPUT_ADDRESS_TO_MAIN_PAGE",INPUT_RIGHT_ADDRESS_MAIN_PAGE:"INPUT_RIGHT_ADDRESS_MAIN_PAGE",INPUT_FAIL_ADDRESS_MAIN_PAGE:"INPUT_FAIL_ADDRESS_MAIN_PAGE",TOUCH_EXCHANGE_MAIN_PAGE:"TOUCH_EXCHANGE_MAIN_PAGE",COPY_HASH_OUT:"COPY_HASH_OUT",COPY_HASH_TO:"COPY_HASH_TO",TOUCH_SEARCH_EX_ID:"TOUCH_SEARCH_EX_ID",TOUCH_BANNER:"TOUCH_BANNER",CREATE_WIDGET:"CREATE_WIDGET",OPEN_ERROR_CREATING_EXCHANGE_WEB:"OPEN_ERROR_CREATING_EXCHANGE_WEB",TOUCH_EXCHANGE_AGAIN_ON_FINISH:"TOUCH_EXCHANGE_AGAIN_ON_FINISH",EXCHANGE_FIAT:"createExchangeFiat",NPS_GET:"NPS_GET",NPS_FINISH:"NPS_FINISH",REGISTER:"REGISTER",EXCHANGE:"EXCHANGE",TOUCH_COMM_COIN:"TOUCH_COMM_COIN",TOUCH_BUTTON:"TOUCH_BUTTON",CHANGE_LANG:"changeLang",TOUCH_BUTTON_PROMO:"touchPromo",EX_CHANGE_CURRENCY:"changeCurrency",HEADER_MAIN_LINK:"headerMainLink",EX_CHANGE_AMOUNT:"changeAmount",EX_CHANGE_ADDRESS:"changeAddress",EX_OPEN_SCANER:"openScaner",EX_CREATE_EXCHANGE:"createExchange",EX_ADVANCED_WALLETS:"advancedWallets",EX_COPY_ADDRESS:"copyAddress",EX_COPY_DETAILS:"copyDetails",EX_VIZIT_EXPLORER:"visitExplorer",EX_NEED_HELP:"needHelp",EX_SHARE_ON_FINISH:"shareOnFinish",EX_CONFIRM_EXCHANGE_FIAT:"confirmExchangeFiat",LOG_IN:"login",SIGN_UP:"signup",LOG_OUT:"logout",HEADER_DROPDOWN_LINK:"headerDropdownLink",EDIT_PROFILE:"editProfile",EDIT_SOCIAL:"editSocial",EDIT_NOTIFICATIONS:"editNotifications",DOWNLOAD_CSV:"csvDownload",ADD_ADDRESS:"addAddress",PAYOUT_REQUEST:"withdraw",SUB_ACTIVATE:"custActivate",NAV_CLICK:"custNavi",BANNER_CLICK:"custBanner",NEW_EXCHANGE_CLICK:"custCreateExchange",BALANCE_CHANGE:"custDisplayBalance",FILTER_DATE:"custFilterDate",FIAT_CLICK:"custFiatPopup",COPY_PROMOCODE:"copyPromocode",READ_FAQ:"readFAQ",LEARN_OPEN:"learnOpen",LEARN_CATEGORIES:"learnCategories",LEARN_SUBHEADER:"learnSubHeader",LEARN_ARTICLE:"learnArticle",LEARN_ASK_EXPERT:"learnAskExpert",LEARN_VIDEO:"learnVideo",LEARN_IN_ARTICLE_NAVIGATION:"useArticleNavigation"}},8730:function(e,n,i){"use strict";var o=i(57437);i(2265),n.Z=function(e){return(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M10.791 14.065 4.898 8.173l5.893-5.893",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}},44883:function(e,n,i){"use strict";var o=i(57437);i(2265),n.Z=function(e){return(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3.125 1.042 3.75 3.75-3.75 3.75"})})}},67142:function(e,n,i){"use strict";var o=i(57437);i(2265),n.Z=function(e){return(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 24 24 8M24 24 8 8"})})}},16690:function(e,n,i){"use strict";i.d(n,{SU:function(){return f},Qs:function(){return m},Gf:function(){return h}});var o=i(57437),r={src:"/learn/_next/static/media/btc.a7364282.svg"},l={src:"/learn/_next/static/media/eth.61d0b0f1.svg"},a={src:"/learn/_next/static/media/sol.01ed6e4c.svg"},c={src:"/learn/_next/static/media/trx.527d9b99.svg"},s={src:"/learn/_next/static/media/usd.d15256c9.svg"},d={src:"/learn/_next/static/media/xmr.a4863d16.svg"},p={src:"/learn/_next/static/media/bnb.1ebd3c0a.svg"};i(2265);var u=i(91837),icons_VideoIcon=e=>(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("g",{id:"simple/linear/video-square",children:(0,o.jsx)("g",{id:"simple/linear/video-square_2",children:(0,o.jsxs)("g",{id:"video-square",children:[(0,o.jsx)("path",{id:"Vector",d:"M7.49935 18.3333H12.4993C16.666 18.3333 18.3327 16.6666 18.3327 12.5V7.49996C18.3327 3.33329 16.666 1.66663 12.4993 1.66663H7.49935C3.33268 1.66663 1.66602 3.33329 1.66602 7.49996V12.5C1.66602 16.6666 3.33268 18.3333 7.49935 18.3333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{id:"Vector_2",d:"M7.58398 9.99999V8.76666C7.58398 7.17499 8.70898 6.53333 10.084 7.32499L11.1507 7.94166L12.2173 8.55833C13.5923 9.34999 13.5923 10.65 12.2173 11.4417L11.1507 12.0583L10.084 12.675C8.70898 13.4667 7.58398 12.8167 7.58398 11.2333V9.99999Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})})});let h=[{id:"how-it-works",href:"".concat(u.M5,"/how-it-works"),label:"How it works",external:!0},{id:"loyalty",href:null,label:"Customer Benefits",external:!0,children:[{id:"loyalty",href:"".concat(u.M5,"/loyalty"),label:"Loyalty Program",external:!0},{id:"platinum-users",href:"".concat(u.M5,"/platinum-users"),label:"Platinum Users",external:!0},{id:"invite-friends",href:"".concat(u.M5,"/invite-friends"),label:"Invite Friends",external:!0}]},{id:"learn",href:null,label:"Analytics",external:!1,children:[{id:"about",href:"/about",label:"About",external:!1},{id:"analytics",href:"/analytics",label:"Research",external:!1},{id:"videos",href:"/videos",label:"Videos",external:!1,disabled:!1},{id:"blog",href:"".concat(u.M5,"/blog"),label:"Blog",external:!0,disabled:!1},{id:"dashboard",href:"/dashboard",label:"Dashboard",external:!1,disabled:!1},{id:"rates",href:"".concat(u.M5,"/cryptocurrency-rates"),label:"Rates",external:!0,disabled:!1}]},{id:"5",href:null,label:"Currencies",external:!0},{id:"aaa",class:"divider",external:!0},{id:"6",href:null,label:"Business",external:!0,children:[{id:"affiliate-program",href:"".concat(u.M5,"/affiliate-program"),label:"Affiliate Program",external:!0},{id:"ambassadors",href:"".concat(u.M5,"/brand-partners"),label:"Ambassadors",external:!0}]},{id:"7",href:null,label:"Exchange History",external:!0}],m=[{id:"1",href:"/about",label:"About",disabled:!1,icon:(0,o.jsx)(function(e){return(0,o.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M18.334 8.333V12.5c0 4.167-1.667 5.833-5.834 5.833h-5c-4.166 0-5.833-1.666-5.833-5.833v-5c0-4.167 1.667-5.833 5.833-5.833h4.167",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M18.334 8.333H15c-2.5 0-3.333-.833-3.333-3.333V1.667l6.667 6.666ZM5.833 10.833h5M5.833 14.167h3.333",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]})},{})},{id:"2",href:"/analytics",label:"Research",disabled:!1,icon:(0,o.jsx)(function(e){return(0,o.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M7.5 18.333h5c4.167 0 5.833-1.666 5.833-5.833v-5c0-4.167-1.666-5.833-5.833-5.833h-5c-4.167 0-5.833 1.666-5.833 5.833v5c0 4.166 1.666 5.833 5.833 5.833Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M6.108 12.075 8.092 9.5a.837.837 0 0 1 1.175-.15l1.525 1.2a.843.843 0 0 0 1.175-.142l1.925-2.483",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]})},{})},{id:"3",href:"/videos",label:"Videos",disabled:!1,icon:(0,o.jsx)(icons_VideoIcon,{})},{id:"4",href:"/dashboard",label:"Dashboard",disabled:!1,icon:(0,o.jsx)(icons_VideoIcon,{})},{id:"5",href:"".concat(u.M5,"/cryptocurrency-rates"),label:"Rates",disabled:!1}],f=[{id:1,name:"Supported Coins",nameButton:"All Coins",to:"".concat(u.M5,"/coins"),children:[{id:1,nameTitle:"Bitcoin",to:"".concat(u.M5,"/coins/btc"),icon:[r.src]},{id:2,nameTitle:"Ethereum",to:"".concat(u.M5,"/coins/eth"),icon:[l.src]},{id:3,nameTitle:"Binance Coin",to:"".concat(u.M5,"/coins/bnb"),icon:[p.src]},{id:4,nameTitle:"Monero",to:"".concat(u.M5,"/coins/xmr"),icon:[d.src]},{id:5,nameTitle:"Tron",to:"".concat(u.M5,"/coins/trx"),icon:[c.src]},{id:6,nameTitle:"Solana",to:"".concat(u.M5,"/coins/sol"),icon:[a.src]}]},{id:2,name:"Exchange Pairs",nameButton:"All Crypto Pairs",to:"".concat(u.M5,"/crypto-to-crypto"),children:[{id:1,nameTitle:"ETH to BTC",to:"".concat(u.M5,"/crypto-to-crypto/eth-btc"),icon:[l.src,r.src]},{id:2,nameTitle:"BTC to ETH",to:"".concat(u.M5,"/crypto-to-crypto/btc-eth"),icon:[r.src,l.src]},{id:3,nameTitle:"BTC to USDC",to:"".concat(u.M5,"/crypto-to-crypto/btc-usdc"),icon:[r.src,"/learn/_next/static/media/usdc.30e10a58.svg"]},{id:4,nameTitle:"BTC to XMR",to:"".concat(u.M5,"/crypto-to-crypto/btc-xmr"),icon:[r.src,d.src]},{id:5,nameTitle:"USDT to TRX",to:"".concat(u.M5,"/crypto-to-crypto/usdttrc20-trx"),icon:["/learn/_next/static/media/usdttrc20.419b67e3.svg",c.src]},{id:6,nameTitle:"ETH to BNB",to:"".concat(u.M5,"/crypto-to-crypto/eth-bnb"),icon:[l.src,p.src]}]},{id:3,name:"Buy/Sell with Fiat",nameButton:"All Fiat Pairs",to:"".concat(u.M5,"/buy-sell-crypto"),children:[{id:1,nameTitle:"USD to BTC",to:"".concat(u.M5,"/buy-sell-crypto/usd-eth"),icon:[s.src,r.src]},{id:2,nameTitle:"USD to ETH",to:"".concat(u.M5,"/buy-sell-crypto/usd-eth"),icon:[s.src,l.src]},{id:3,nameTitle:"USD to SOL",to:"".concat(u.M5,"/buy-sell-crypto/usd-sol"),icon:[s.src,a.src]},{id:4,nameTitle:"USD to LTC",to:"".concat(u.M5,"/buy-sell-crypto/usd-ltc"),icon:[s.src,"/learn/_next/static/media/ltc.770f9be5.svg"]},{id:5,nameTitle:"USD to BNB",to:"".concat(u.M5,"/buy-sell-crypto/usd-bnb"),icon:[s.src,p.src]},{id:6,nameTitle:"EUR to BTC",to:"".concat(u.M5,"/buy-sell-crypto/eur-btc"),icon:[s.src,"/learn/_next/static/media/eur.bf350454.svg"]}]}]},85999:function(e,n,i){"use strict";i.d(n,{Nw:function(){return l}});var o=i(35014);let r=(0,o.oM)({name:"customerAccount",initialState:{isAuth:!1,email:null,membershipAddress:null,operationsHistory:null,tokenBalance:null,profile:{fetchingStatus:"idle"},linkedSocialNetworks:{fetchingStatus:"idle"},emailLinkingStatus:{fetchingStatus:"idle"},subscriptions:[],activeSubscription:null,cashbackBalanceSwap:null,cashbackBalanceBtc:null,cashbackHistory:[],promoCodes:[]},reducers:{setActiveSocial:(e,n)=>{e.linkedSocialNetworks=n.payload.data},setAuth:(e,n)=>{e.isAuth=n.payload.isAuth},setTokenBalance:(e,n)=>{let{data:i}=n.payload;e.tokenBalance=Number.isNaN(i.balance)?"not_provided":i.balance},setClientInfo:(e,n)=>{e.profile=n.payload.data},setLoyaltySubscriptions:(e,n)=>{e.subscriptions=n.payload.data},setLoyaltySubscriptionInfo:(e,n)=>{e.activeSubscription=n.payload.data},setCashbackBalanceSwap:(e,n)=>{e.cashbackBalanceSwap=n.payload.data},setCashbackBalanceBtc:(e,n)=>{e.cashbackBalanceBtc=n.payload.data},setCashbackHistory:(e,n)=>{e.cashbackHistory=n.payload.data},setOperationsHistory:(e,n)=>{e.operationsHistory=n.payload.data},findExchangeById:(e,n)=>{null===e.operationsHistory?e.operationsHistory={exchanges:n.payload.data.exchanges,amountExchanges:n.payload.data.exchanges.length,currency_to:[],currency_from:[],cashbackTypes:[],status:[]}:(e.operationsHistory.exchanges=n.payload.data.exchanges,e.operationsHistory.amountExchanges=n.payload.data.exchanges.length)},fetchProfileInfo_request:e=>{e.profile.fetchingStatus="request"},fetchProfileInfo_success:(e,n)=>{e.profile.fetchingStatus="success",e.profile.data=n.payload.data},fetchProfileInfo_failure:(e,n)=>{e.profile.fetchingStatus="failure",e.profile.error=n.payload.data},fetchSocialsInfo_request:e=>{e.linkedSocialNetworks.fetchingStatus="request"},fetchSocialsInfo_success:(e,n)=>{e.linkedSocialNetworks.fetchingStatus="success",e.linkedSocialNetworks.data=n.payload.data},fetchSocialsInfo_failure:(e,n)=>{e.linkedSocialNetworks.fetchingStatus="failure",e.linkedSocialNetworks.error=n.payload},fetchEmailLinkingInfo_request:e=>{e.emailLinkingStatus.fetchingStatus="request"},fetchEmailLinkingInfo_success:(e,n)=>{e.emailLinkingStatus.fetchingStatus="success",e.emailLinkingStatus.data=n.payload.data},fetchEmailLinkingInfo_failure:(e,n)=>{e.emailLinkingStatus.fetchingStatus="failure",e.emailLinkingStatus.error=n.payload},logout:e=>{e.profile.data=void 0,e.profile.fetchingStatus="idle"},fetchPromoCodes_success:(e,n)=>{e.promoCodes=n.payload.data}}}),l=r.actions;n.ZP=r.reducer},95355:function(e,n,i){"use strict";i.d(n,{Nw:function(){return l}});var o=i(35014);let r=(0,o.oM)({name:"exchange",initialState:{allCurrenciesList:[],fixedCurrencies:[],allPairsList:{},fixedPairs:{},fiatPairs:{}},reducers:{setAllCurrencies:(e,n)=>{e.allCurrenciesList=n.payload.data},setFixedCurrencies:(e,n)=>{e.fixedCurrencies=n.payload.data},setAllPairs:(e,n)=>{e.allPairsList=n.payload.data.result},setFixedPairs:(e,n)=>{e.fixedPairs=n.payload.data.result},setFiatPairs:(e,n)=>{e.fiatPairs=n.payload.data.result}}}),l=r.actions;n.ZP=r.reducer},4202:function(e,n,i){"use strict";i.d(n,{C:function(){return l},T:function(){return r}});var o=i(3198);let r=o.I0,l=o.v9},88356:function(e,n,i){"use strict";i.d(n,{K:function(){return a}});var o=i(35014);let r={estimatedCoins:{},fiatAmount:1e3,coinsColors:{},isCoinsColorsFulfilled:!1,isRevalidate:!1},l=(0,o.oM)({name:"estimatedPortfolio",initialState:r,reducers:{setEstimatedCoinToPortfolio:(e,n)=>({...e,estimatedCoins:{...e.estimatedCoins,[n.payload.id]:n.payload.estimatedValue}}),setFiatAmount:(e,n)=>({...e,fiatAmount:n.payload.fiatAmount}),setCoinsColors:(e,n)=>{e.coinsColors=n.payload.coinsColors,e.isCoinsColorsFulfilled=!0},revalidatePortfolio:(e,n)=>{e.isRevalidate=n.payload},clearCoinsColors:e=>{e.coinsColors=r.coinsColors,e.isCoinsColorsFulfilled=r.isCoinsColorsFulfilled},clearFiatAmount:e=>({...e,fiatAmount:0}),clearEstimatedCoins:e=>{e.estimatedCoins=r.estimatedCoins,e.fiatAmount=r.fiatAmount}}}),a=l.actions;n.Z=l.reducer},1807:function(e,n,i){"use strict";i.d(n,{IC:function(){return r},J2:function(){return s},KB:function(){return c},oj:function(){return l},xq:function(){return a}});var o=i(76023);let getEstimatedPortfolio=e=>e.estimatedPortfolio,r=(0,o.P1)(getEstimatedPortfolio,e=>e.estimatedCoins),l=(0,o.P1)(getEstimatedPortfolio,e=>e.fiatAmount),a=(0,o.P1)(getEstimatedPortfolio,e=>e.coinsColors),c=(0,o.P1)(getEstimatedPortfolio,e=>e.isCoinsColorsFulfilled),s=(0,o.P1)(getEstimatedPortfolio,e=>e.isRevalidate)},66219:function(e,n,i){"use strict";i.d(n,{Nw:function(){return l}});var o=i(35014);let r=(0,o.oM)({name:"thirdParty",initialState:{amplitude:{id:"amplitude",loadingStatus:"idle"},statismeter:{id:"statismeter",loadingStatus:"idle"},mixpanel:{id:"mixpanel",loadingStatus:"idle"}},reducers:{loadAmplitude_request:e=>{e.amplitude.loadingStatus="request"},loadAmplitude_success:e=>{e.amplitude.loadingStatus="success"},loadAmplitude_failure:e=>{e.amplitude.loadingStatus="failure"},loadStatismeter_request:e=>{e.statismeter.loadingStatus="request"},loadStatismeter_success:e=>{e.statismeter.loadingStatus="success"},loadStatismeter_failure:e=>{e.statismeter.loadingStatus="failure"},loadMixpanel_request:e=>{e.mixpanel.loadingStatus="request"},loadMixpanel_success:e=>{e.mixpanel.loadingStatus="success"},loadMixpanel_failure:e=>{e.mixpanel.loadingStatus="failure"}}}),l=r.actions;n.ZP=r.reducer},55998:function(e,n,i){"use strict";i.d(n,{Zd:function(){return p},bl:function(){return d}});var o,r,l,a=i(91837),c=i(54829),s=i(25566);let d=c.default.create({baseURL:a.M5});c.default.create({baseURL:"".concat(null!==(o=s.env.NEXT_PUBLIC_API_HOST_DEV)&&void 0!==o?o:"https://weblearn-api.lab.simpleswap.dev","/api")});let p=c.default.create({baseURL:"".concat(null!==(l=null!==(r=s.env.NEXT_PUBLIC_API_HOST_DEV)&&void 0!==r?r:a.GD)&&void 0!==l?l:"https://weblearn-api.simpleswap.io","/api")})},18837:function(e,n,i){"use strict";var o=i(54829),r=i(67662),l=i.n(r),a=i(11490),c=i(91837);let s=o.default.create({baseURL:c.M5});null!=a.Z.get("accessToken")&&s.interceptors.request.use(e=>{if(null!=a.Z.get("accessToken")&&"null"!==a.Z.get("accessToken")){var n;e.headers.Authorization="Bearer ".concat(null!==(n=a.Z.get("accessToken"))&&void 0!==n?n:"")}return e});let refreshAuthLogic=async e=>{let n=a.Z.get("refreshToken");null!=n&&await o.default.get("".concat(c.M5,"/auth-service/api/v1.0/refresh-session/").concat(n)).then(async n=>{if(a.Z.set("accessToken",n.data.accessToken),null!==e){var i;e.response.config.headers.Authorization="Bearer ".concat(null!==(i=null==n?void 0:n.data.accessToken)&&void 0!==i?i:"")}a.Z.set("refreshToken",n.data.refreshToken),await Promise.resolve()}).catch(async()=>{a.Z.remove("accessToken"),a.Z.remove("refreshToken"),delete e.response.config.headers.Authorization,await Promise.resolve()})};l()(s,refreshAuthLogic),n.Z=s},33898:function(e,n,i){"use strict";i.d(n,{pf:function(){return getMaxApiBinding},qh:function(){return getEstimatedApiBindingCommission},ut:function(){return getMinApiBinding},xC:function(){return getEstimatedApiBinding}});var o=i(54829),r=i(92164),l=i(55998);let getEstimatedApiBinding=async(e,n,i)=>{let r=null,a="usdterc20",c=o.default.CancelToken.source(),s=setTimeout(()=>{c.cancel()},3e4),d="currencyFrom=".concat(e,"¤cyTo=").concat(n)+"&amount=".concat(i,"&fixed=false"),{data:p}=await getMinApiBinding({symbol:e},{symbol:n});if(null!==p){if(Number(i){var i;let a;let c=o.default.CancelToken.source(),s=setTimeout(()=>{c.cancel()},3e4),[d,p]=[e.symbol,n.symbol],u="?currencyFrom=".concat(d,"¤cyTo=").concat(p,"&fixed=false");try{a=await l.bl.get("api/v3/ranges"+u,{cancelToken:c.token})}catch(e){if(a&&a.status===r.WE.BadRequest)return{data:null}}let h={data:null==a?void 0:null===(i=a.data)||void 0===i?void 0:i.min};return clearTimeout(s),h},getMaxApiBinding=async(e,n)=>{let[i,r]=[e.symbol,n.symbol],a=o.default.CancelToken.source(),c=setTimeout(()=>{a.cancel()},3e4),s=await l.bl.get("/api/v3/ranges",{params:{currencyFrom:i,currencyTo:r,fixed:!1},cancelToken:a.token}),d={data:s.data.max};return clearTimeout(c),d},getEstimatedApiBindingCommission=async(e,n,i,r,a)=>{let[c,s]=[e.symbol.toLowerCase(),n.symbol.toLowerCase()],d="/api/v3",p=o.default.CancelToken.source(),u=setTimeout(()=>{p.cancel()},3e4);l.bl.get("".concat(d,"/estimates"),{params:{currencyFrom:c,currencyTo:s,amount:r,fixed:i},cancelToken:p.token}).then(e=>{let{data:n}=e,{result:{bigCommissionWarning:i}}=n;a(i)}).catch(e=>{console.error(e)});let h=await l.bl.get("".concat(d,"/estimates/estimated"),{params:{currencyFrom:c,currencyTo:s,amount:r,fixed:!1,site:!0},cancelToken:p.token});return clearTimeout(u),h}},90341:function(e,n,i){"use strict";var o,r;i.d(n,{IC:function(){return o},Uh:function(){return c},rS:function(){return s}});let l={desktop:{min:"1280px"},tablet:{min:"768px",max:"1279px"},mobile:{max:"767px"}},a="#0F75FC",c={mobile:"(max-width: ".concat(l.mobile.max,")"),tablet:"(min-width: ".concat(l.tablet.min,") and (max-width: ").concat(l.tablet.max,")"),desktop:"(min-width: ".concat(l.desktop.min,")")},s={colors:{text:{nullLabel:"#859AB5",title:"#252C44",lightBlue:"#C6D5EA",darkBlue:"#3F5878",base:a,disableTemporary:"#C6D5EA20",activeLinkGrey:"#46618C"},input:{selectedItem:"#D7E2F0",color:"#ECF1F7",colorHover:"#E4EBF3"},exchange:{lunchBox:{backDish:"#062763",headDivider:"#123276",sausage3:"#0D3989"},button:{dark:"#173F88",darkHover:"#214992"}},affiliate:{button:{dark:"#1B2B4B"}},notification:{successLigth:"#EBFBF3",success:"#3FBB7D",errorLight:"#FFF0EF",error:"#E15D56"},footer:{background:"#010E27"},primary:a,primaryHover:"#004AD9",primaryInactive:"#7CB2F9",primaryWhite:"#F2F7FE",white:"#FFFFFF",pageContainer:"#F7F8FA",lightGrey:"#ECF1F7",lightGreyHover:"#E4EBF3",lightGreyFilter:"#D7E2F0",gray:"#9FA8B0",lightGreyBlue:"#859AB5",green:"#3FBB7D",greenHover:"#25955D",greenInactive:"#96E5BD",greenWhite:"#EBFBF3",transparent:"transparent",backdropDefault:"rgba(27, 43, 75, 0.4)",dark:"#010b20",creame:"#fbfcfd",dark2:"#1B2B4B",activeTab:"#859AB5"},breakpoints:l,device:c,typography:{title:{fontFamily:"var(--font-poppins), sans-serif"},dashboard:{title:{fontFamily:"Inter, sans-serif",fontSize:{mobile:"16px",desktop:"20px"},fontWeight:600,lineHeight:"140%"}}},shadows:{1:"0px 4px 4px -2px rgba(24, 39, 75, 0.08)",2:"0px 8px 8px -4px rgba(24, 39, 75, 0.08)",3:"0px 8px 16px -6px rgba(24, 39, 75, 0.08)",4:"0px 8px 24px -4px rgba(14, 29, 65, 0.08)",5:"0px 10px 32px -4px rgba(24, 39, 75, 0.1)",6:"0px 12px 42px -4px rgba(24, 39, 75, 0.1)",7:"0px 14px 64px -4px rgba(24, 39, 75, 0.12)",8:"0px 18px 88px -4px rgba(24, 39, 75, 0.14)"},exchangeWidget:{value:"white",background:"#FFFFFF",background1:"#ECF1F7",background1hover:"#E4EBF3",background2:"#C6D5EA4D",arrowBlockBackground:"#ECF1F7",dropdownBackground:"#C6D5EA80",dropdownHoverBackground:"#C6D5EAB3",buttonBackground:"#0F75FC",buttonHoverBackground:"#004AD9",swapRowHoverBackground:"#0F75FC",swapIconColor:"#FFFFFF",checkboxBackground:"#3F5878",checkboxColor:"#FFFFFF",checkboxBorder:"#C6D5EA",checkboxHoverBorder:"#3F5878",goBackBackground:"rgba(198, 213, 234, 0.3)",goBackHoverBackground:"rgba(198, 213, 234, 0.5)",copyIconBackground:"#C6D5EA4D",copyIconHoverBackground:"#2D3D5D",qrCodeHoverIcon:"#1B2B4B",addressBlockBackground:"#ECF1F7",addressBlockText:"#859AB5",currentStep:"#3F5878",allSteps:"#859AB5",text1:"#252C44",text2:"#3F5878",text3:"#859AB5",addressInfoText:"#859AB5",messageTextPlaceholder:"#859AB5",border:"#ECF1F7",inputActiveBorder:"#859AB5",dropdownCoinName:"#859AB5",dropdownSectionTitle:"#3F5878",exchangeIdValue:"#859AB5",rateTextHover:"#3F5878",needHelpHover:"#3F5878",hoverCloseIcon:"#0F75FC",closeIcon:"#3F5878",searchIcon:"#859AB5",copyIcon:"#859AB5",addressInfoCopyIcon:"#859AB5",textLink:"#0F75FC",buttonText:"#FFFFFF",logoColor:"#C6D5EA",logoSubColor:"#1589D4"}};(r=o||(o={})).light="light",r.dark="dark"},17870:function(e,n,i){"use strict";i.d(n,{p:function(){return trackEventMP}});let trackEventMP=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var i;(null===(i=window)||void 0===i?void 0:i.mixpanel)&&window.mixpanel.track(e,n)}catch(e){console.log("mixpanel event error",e)}}},8253:function(e,n,i){"use strict";i.d(n,{t:function(){return t},$:function(){return useTranslation}});var o=JSON.parse('{"cookies":{"title":"We use cookies to ensure you get the best experience.","link":"Learn more","text":"We use cookies and similar technologies to ensure you get the best experience. To learn more about cookies, including how to disable them, view our {{privacyLink}} and {{termsLink}}. By clicking “I Accept” or “X” on this banner, or using our site, you consent to the use of cookies unless you have disabled them.","button":"I Accept"},"title":"SimpleSwap | Cryptocurrency Exchange | Easy way to swap BTC to ETH, XRP, LTC, EOS, XLM","description":"SimpleSwap is a cryptocurrency exchange that allows to swap BTC and altcoins in an easy way. SimpleSwap supports 300+ cryptocurrencies. Make Bitcoin to Ethereum, Litecoin crypto exchanges at the best rates!","ERRORS":{"TEXT_8":"Cryptocurrencies not found","TEXT_3":"Max amount","TEXT_4":"Pair is not supported","TEXT_2":"Min amount","TEXT_5":"Exchange creation error. Please, try again.","TEXT_6":"Cryptocurrency was not found","TEXT_7":"Invalid","TEXT_1":"Invalid address"},"FIELDS":{"TEXT_2":"You get","TEXT_5":"Exchange","TEXT_4":"address","TEXT_3":"Enter the recipient’s","TEXT_1":"You send"},"OTHER":{"TEXT_1":"Type a cryptocurrency or ticker","TEXT_2":"Popular cryptocurrencies","TEXT_3":"All cryptocurrencies","TEXT_4":"Enter","TEXT_5":"(optional)"},"PREFIX":"en","MAIN":{"FLOAT":"Floating rate","FIXED":"Fixed rate","HOW_IT_WORKS":"How it works","TITLE":"Crypto Exchange","TEXT":"Free from sign-up, limits, complications"},"new":{"exchangeDetails":"Add exchange details","popularFiat":"Popular fiat","allFiat":"All fiat","floatingOnly":"Floating rate only","cryptoExchange":"Crypto Exchange","buySellCrypto":"Buy/Sell Crypto","createAnExchange":"Create an exchange"},"step2":{"title":"Recipient info","recipientAddress":"The recipient’s {{currency}} address","button":"Create an exchange","extraId":"Enter the memo (optional)","invalidAddress":"Invalid address","tooltip":"Please be careful not to provide a smart contract instead of your {{currency}} payout address"},"step3":{"title":"Send your BTC","tooltip":"Unspecified Memo when sending a deposit can lead to the loss of funds"},"step4":{"title":"Your BTC transaction is being confirmed","subTitle":"Number of blockchain confrimations:"},"step5":{"title":"Your exchange is in progress"},"step6":{"title":"Your ETH is being sent"},"step7":{"title":"Your exchange was completed"},"stepRefunded":{"title":"Your deposit has been refunded"},"stepVerifying":{"title":"Verification is needed for your transaction"},"stepTimeOver":{"centerTitle":"The time is over","centerSubTitle":"Please, create a new fixed rate exchange.","buttonText":"Start a new exchange"},"stepMessageSent":{"centerTitle":"Thanks!","centerSubTitle":"The message has been sent to the support team. You will get a response within 15 minutes.","buttonText":"Okay"},"newExchange":"Create a new exchange","exchangeId":"Exchange ID:","needHelp":"Need help?","depositAddress":"Deposit Address:","depositMemo":"Deposit memo:","hashIn":"Hash in:","timer":"Timer: ","email":"Email","message":"Message","send":"Send","copied":"Copied","isBigCommission":"When exchanging a small sum, transaction fees can take a large portion of the exchange volume due to high network fees.","header":{"AFF_HEADER_LINKS":{"REFERRAL_LINK":"Referral link","API":"API","BANNERS":"Banners","WIDGET":"Widget","BUTTON":"Button","TOOLS":"Tools","CONTACTS":"Contacts","HOW_TO_START":"How to start"},"AffiliateHeader":{"SS_EXCHANGE":"SimpleSwap Exchange","SH_EXCHANGE":"SimpleHold Wallet","SS_EXCHANGE_DESCRIPTION":"Exchange 500+ crypto and fiat currencies","SH_EXCHANGE_DESCRIPTION":"Light multi-currency wallet for newbies","LOG_IN":"Log in","GET_AFFILIATE_ACCOUNT":"Get affiliate account","PROFILE":"Profile","AFFILIATE_ACCOUNT":"Affiliate account","ALL_PRODUCTS":"All products","YOUR_PROFIT":"your profit","WRITE_MANAGER":"Write to your personal manager","OVERVIEW":"Overview","STATISTICS":"Statistics","WEBTOOLS":"Web Tools","PAYOUTS":"Payouts","BLOG":"SimpleSwap Blog","BLOG_DESCRIPTION":"News and key concepts of the Crypto World"},"PREFIX":"en","Heder":{"Heder":{"BUTTON_1":"How it works","BUTTON_2":"FAQ","BUTTON_3":"Contacts","BUTTON_4":"Affiliate program","BUTTON_5":"Loyalty program","BUTTON_6":"My account"},"Account":{"BUTTON_1":"Exchange history","BUTTON_2":"Account settings","BUTTON_3":"Subscription","BUTTON_4":"Payouts"}},"navs":{"hiw":"How it works","loyalty":"Loyalty program","learn":{"main":"Learn","analytics":"Analytics","about":"About","courses":"Courses","videos":"Videos","tests":"Tests"},"blog":"Blog","faq":"FAQ","contacts":"Contacts","business":"Business","affiliate":"Affiliate Program","ambassadors":"Ambassadors"},"products":{"sh":{"title":"SimpleHold Wallet","description":"Secure crypto wallet & your pass to crypto universe"},"blog":{"title":"SimpleSwap Blog","description":"News and key concepts of the Crypto World"},"affiliate":{"title":"SimpleSwap Affiliate Program","description":"Become our partner and start to make profit"}},"buttons":{"back":"Back","login":"Log in","register":"Get an account","account":"My account","logout":"Log out","products":"All products"},"links":{"profile":"Profile","overview":"Overview","history":"History","loyalty":"Loyalty","payouts":"Payouts"}}}'),r=i(2890),l=i.n(r);function t(e){return l().get(o,e,null)}function useTranslation(e){return{t:function(n){return l().get(o[e],n,"no translation")}}}},85699:function(e,n,i){"use strict";var o=i(2265);n.Z=e=>{let[n,i]=(0,o.useState)(e),r=(0,o.useRef)(null),handleClickOutside=e=>{let n=e.target.getAttribute("role")&&"close-dropdown"===e.target.getAttribute("role");r.current&&(!r.current.contains(e.target)||n)&&i(!1)};return(0,o.useEffect)(()=>(n?document.addEventListener("click",handleClickOutside):document.removeEventListener("click",handleClickOutside),()=>{document.removeEventListener("click",handleClickOutside)}),[n]),{ref:r,isComponentVisible:n,setIsComponentVisible:e=>{i(e)}}}},14074:function(e,n,i){"use strict";var o=i(2265);n.Z=function(e){let getMatches=e=>window.matchMedia(e).matches,[n,i]=(0,o.useState)(getMatches(e));function handleChange(){i(getMatches(e))}return(0,o.useEffect)(()=>{let n=window.matchMedia(e);return handleChange(),n.addListener?n.addListener(handleChange):n.addEventListener("change",handleChange),()=>{n.removeListener?n.removeListener(handleChange):n.removeEventListener("change",handleChange)}},[e]),n}},76180:function(e,n){"use strict";let waitForMs=async e=>{await new Promise(n=>{setTimeout(n,e)})};n.Z=waitForMs},37883:function(e,n){"use strict";let waitForPageLoad=async()=>{await new Promise(e=>{if("complete"===document.readyState){e();return}window.addEventListener("load",()=>{e()})})};n.Z=waitForPageLoad},98605:function(e,n,i){"use strict";i.d(n,{$4:function(){return g},AZ:function(){return d},BZ:function(){return s},II:function(){return p},M1:function(){return j},QL:function(){return x},Wi:function(){return b},X2:function(){return c},eS:function(){return h},hW:function(){return _},iE:function(){return w},oK:function(){return u},pb:function(){return m},tO:function(){return f}});var o=i(60230),r=i(5805),l=i(76750),a=i(90341);function _templateObject(){let e=(0,o._)(["\n display: flex;\n position: relative;\n\n @media screen and (min-width: ",") {\n ",";\n \n /* &.main-page__exchange-to {\n margin-left: 4px;\n };\n \n &.main-page__exchange-from {\n margin-right: 4px;\n }; */\n }\n \n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n display: flex;\n background: ",";\n border-radius: ",";\n padding: 20px 16px 18px;\n align-items: center;\n justify-content: space-between;\n border: ",";\n\n position: relative;\n\n &:hover {\n background: ",";\n }\n\n .exchange-group__label {\n color: ",";\n }\n\n @media only screen and "," {\n height: 56px;\n flex: 0 1 55%;\n padding: 18px 16px ;\n }\n @media only screen and "," {\n height: 56px;\n flex: 1 0;\n padding: 18px 16px ;\n }\n\n @media only screen and "," {\n height: 56px;\n width: ","\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n font-family: Inter;\n font-style: normal;\n font-weight: 500;\n font-size: 10px;\n line-height: 120%;\n user-select: none;\n position: absolute;\n white-space: nowrap;\n left: 16px;\n top: 6px;\n display: ",";\n\n @media (min-width: 470px) {\n font-size: 14px;\n position: initial;\n display: initial;\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n background: transparent;\n border: none;\n outline: none;\n text-align: left;\n font-family: Inter;\n font-style: normal;\n font-weight: 600;\n font-size: 13px;\n line-height: 16px;\n color: ",";\n width: 100%;\n\n @media (min-width: 470px) {\n font-size: 14px;\n text-align: right;\n font-weight: 700;\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n background: transparent;\n border: none;\n outline: none;\n text-align: left;\n font-family: Inter;\n font-style: normal;\n font-weight: 600;\n font-size: 13px;\n line-height: 120%;\n color: ",";\n display: ",";\n align-items: center;\n max-width: 100%;\n overflow: hidden;\n\n @media (min-width: 470px) {\n font-size: 14px;\n text-align: right;\n display: flex;\n font-weight: 700;\n opacity: ",";\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n display: flex;\n width: 5px;\n height: 4px;\n margin: 0 3px 0 0;\n\n @media (min-width: 470px) {\n width: 10px;\n height: 8px;\n margin: 0 4px 0 0;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n background: ",";\n border-left: 1px solid ",";\n border-radius: 0 8px 8px 0;\n display: flex;\n align-items: center;\n position: relative;\n cursor: pointer;\n user-select: none;\n\n &:hover {\n background: ",";\n }\n\n @media only screen and "," {\n /* flex: 0 0 90px; */\n flex: 1 1 auto;\n padding: 20px 16px;\n border-left: 2px solid ",";\n height: 56px;\n }\n @media only screen and "," {\n flex: "," ;\n padding: 20px 16px;\n height: 56px;\n }\n @media only screen and "," {\n padding: 10px 8px;\n height: 56px;\n flex: ",";\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n width: 12px;\n height: 12px;\n object-fit: contain;\n margin-right: 6px;\n\n @media (min-width: 470px) {\n width: 24px;\n height: 24px;\n }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n margin-right: 0px;\n font-family: Inter;\n font-style: normal;\n font-weight: 600;\n font-size: ","px;\n line-height: 16px;\n color: ",";\n\n @media (min-width: 470px) {\n margin-right: 6px;\n font-size: ","px;\n line-height: 20px;\n }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n background: #50af95;\n border-radius: 8px;\n padding: 1px 4px 2px 4px;\n font-family: Inter;\n font-style: normal;\n font-weight: 500;\n font-size: 6px;\n line-height: 120%;\n position: absolute;\n top: 6px;\n left: 8px;\n color: white;\n\n\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,o._)(["\n height: 30px;\n width: 30px;\n position: absolute;\n transform: rotate(-90deg);\n right: 4px;\n\n @media (min-width: 470px) {\n height: 40px;\n width: 40px;\n right: 2px;\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,o._)(["\n background: #fbe4e3;\n padding: 5px 16px;\n z-index: 2;\n border: 1px solid #eac8c0;\n border-radius: 0px 0px 8px 8px;\n font-family: Inter;\n font-weight: 500;\n font-size: 10px;\n line-height: 120%;\n color: #e15d56;\n position: absolute;\n width: calc(100% + 2px);\n left: -1px;\n bottom: -24px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,o._)([""]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,o._)(["\n text-decoration: underline;\n cursor: pointer;\n user-select: none;\n"]);return _templateObject13=function(){return e},e}let c=r.ZP.div.withConfig({componentId:"sc-55048645-0"})(_templateObject(),a.rS.breakpoints.tablet.min,e=>{let{isFiat:n}=e;return n?"flex: 1":""}),s=r.ZP.div.withConfig({componentId:"sc-55048645-1"})(_templateObject1(),e=>{let{isActive:n,theme:i}=e;return n?i.exchangeWidget.background:i.exchangeWidget.background1},e=>{let{withError:n}=e;return n?"8px 0px 0px 0px":"8px 0px 0px 8px"},e=>{let{theme:n,isActive:i}=e;return i?"1px solid ".concat(n.exchangeWidget.inputActiveBorder):"none"},e=>{let{isActive:n,isDisabled:i,theme:o}=e;return i?o.exchangeWidget.background1:n?o.exchangeWidget.background:o.exchangeWidget.background1hover},e=>{let{theme:n}=e;return n.exchangeWidget.text2},a.Uh.mobile,a.Uh.tablet,a.Uh.desktop,e=>{let{size:n}=e;return"large"===n?"55%":"100%"}),d=r.ZP.div.withConfig({componentId:"sc-55048645-2"})(_templateObject2(),e=>{let{hide:n}=e;return n?"none":"initial"}),p=(0,r.ZP)(l.h3).withConfig({componentId:"sc-55048645-3"})(_templateObject3(),e=>{let{theme:n}=e;return n.exchangeWidget.text1}),u=r.ZP.div.withConfig({componentId:"sc-55048645-4"})(_templateObject4(),e=>{let{theme:n}=e;return n.exchangeWidget.text1},e=>{let{hide:n}=e;return n?"none":"flex"},e=>{let{hide:n}=e;return n?"0":"1"}),h=r.ZP.div.withConfig({componentId:"sc-55048645-5"})(_templateObject5()),m=r.ZP.div.withConfig({componentId:"sc-55048645-6"})(_templateObject6(),e=>{let{theme:n}=e;return n.exchangeWidget.dropdownBackground},e=>{let{theme:n}=e;return n.exchangeWidget.background},e=>{let{theme:n}=e;return n.exchangeWidget.dropdownHoverBackground},a.Uh.mobile,e=>{let{theme:n}=e;return n.exchangeWidget.background},a.Uh.tablet,e=>{let{isFiat:n}=e;return n?"0 0 50%":"0 0 215px"},a.Uh.desktop,e=>{let{size:n}=e;return"small"===n?"1 0 124px":"1 0 140px"}),f=r.ZP.img.withConfig({componentId:"sc-55048645-7"})(_templateObject7()),x=r.ZP.span.withConfig({componentId:"sc-55048645-8"})(_templateObject8(),e=>{let{dynamicFontSize:n}=e;return null!=n?n:"12"},e=>{let{theme:n}=e;return n.exchangeWidget.text1},e=>{let{dynamicFontSize:n}=e;return null!=n?n:"14"}),g=r.ZP.div.withConfig({componentId:"sc-55048645-9"})(_templateObject9()),b=r.ZP.div.withConfig({componentId:"sc-55048645-10"})(_templateObject10()),w=r.ZP.div.withConfig({componentId:"sc-55048645-11"})(_templateObject11()),_=r.ZP.div.withConfig({componentId:"sc-55048645-12"})(_templateObject12()),j=r.ZP.div.withConfig({componentId:"sc-55048645-13"})(_templateObject13())},62682:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return WrappedWidget_WrappedWidget}});var o=i(57437),r=i(2265),l=i(95355),a=i(91837);function buildUrl(e,n){let i=new URL(e);return i.search=new URLSearchParams(n).toString(),i}let fetchAllCurrencies=async e=>{let n=await fetch(buildUrl("".concat(a.M5,"/api/v3/currencies"),{fixed:"false",includeDisabled:"false"})),i=await n.json();e(l.Nw.setAllCurrencies({data:i}))},fetchAllPairs=async e=>{await fetch(buildUrl("".concat(a.M5,"/api/v3/pairs"),{fixed:"false"})).then(async e=>await e.json()).then(n=>{e(l.Nw.setAllPairs({data:n}))})},fetchFixedCurrencies=async e=>{await fetch(buildUrl("".concat(a.M5,"/api/v3/currencies"),{fixed:"true",includeDisabled:"false"})).then(async e=>await e.json()).then(n=>{e(l.Nw.setFixedCurrencies({data:n}))})},fetchFixedPairs=async e=>{await fetch(buildUrl("".concat(a.M5,"/api/v3/pairs"),{fixed:"true"})).then(async e=>await e.json()).then(n=>{e(l.Nw.setFixedPairs({data:n}))})},fetchAvailableFiatPairs=async(e,n)=>{await fetch(buildUrl("".concat(a.M5,"/api/v3/pairs"),{type:"pairsToSymbol",symbol:n}),{method:"GET"}).then(async e=>await e.json()).then(n=>e(l.Nw.setFiatPairs({data:n})))};var c=i(4202),s=i(83776),d=i(60230),p=i(5805),u=i(90341),h=i(17884);function _templateObject(){let e=(0,d._)(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n\n gap: 8px;\n "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,d._)(["\n @media only screen and "," {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n\n gap: 8px;\n }\n @media only screen and "," {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n }\n @media only screen and "," {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n\n gap: 8px;\n }\n "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,d._)(["\n @media only screen and "," {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n\n gap: 8px;\n }\n @media only screen and "," {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n }\n @media only screen and "," {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n gap: 8px;\n }\n "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,d._)(["\n flex: 2 0 100%;\n justify-content: flex-end;\n\n @media screen and (min-width: 1280px) {\n flex: 1 0;\n justify-content: ",";\n align-items: stretch;\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,d._)(["\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ",";\n border-radius: 12px;\n cursor: pointer;\n transition: 0.2s;\n\n ","\n &:hover {\n background: ",";\n\n color: ",";\n }\n\n @media (min-width: 1280px) {\n ","\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,d._)(["\n position: relative;\n height: 32px;\n\n &.animate {\n transform: rotate(180deg);\n transition: 0.5s;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,d._)(["\n flex: ",";\n max-width: ",";\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,d._)(["\n flex: 1 0 100%;\n "]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,d._)(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: column;\n gap: 8px;\n margin-bottom: 8px;\n\n @media screen and (min-width: ",") {\n flex-direction: row;\n margin-bottom: 0;\n ","\n }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,d._)(["\n flex: 2 0 100%;\n\n height: 48px;\n border: none;\n background: #0f75fc;\n border-radius: 8px;\n font-family: Inter;\n font-weight: 400;\n font-size: 12px;\n line-height: 130%;\n color: #ffffff;\n\n @media (min-width: 768px) {\n height: 56px;\n font-size: 14px;\n line-height: 160%;\n }\n\n @media (min-width: 1280px) {\n flex: ",";\n &:hover {\n cursor: pointer;\n background: #004ad9;\n }\n }\n"]);return _templateObject9=function(){return e},e}let m=p.ZP.div.withConfig({componentId:"sc-68c11a9a-0"})(e=>{let{size:n,isFiat:i}=e;return"small"===n?(0,p.iv)(_templateObject()):i?(0,p.iv)(_templateObject1(),u.Uh.mobile,u.Uh.tablet,u.Uh.desktop):(0,p.iv)(_templateObject2(),u.Uh.mobile,u.Uh.tablet,u.Uh.desktop)}),f=(0,p.ZP)(h.Stack).withConfig({componentId:"sc-68c11a9a-1"})(_templateObject3(),e=>{let{size:n}=e;return"large"===n?"center":"flex-end"}),x=p.ZP.div.withConfig({componentId:"sc-68c11a9a-2"})(_templateObject4(),e=>{let{theme:n}=e;return n.exchangeWidget.background2},e=>{let{isDisabled:n}=e;return n?"\n pointer-events: none;\n opacity: 0.3;\n ":""},e=>{let{theme:n}=e;return n.exchangeWidget.swapRowHoverBackground},e=>{let{theme:n}=e;return n.exchangeWidget.swapIconColor},e=>{let{isDesktopHorizontal:n}=e;return n?"margin: 16px 8px 0;\n transform: rotate(90deg);":""}),g=p.ZP.div.withConfig({componentId:"sc-68c11a9a-3"})(_templateObject5()),b=p.ZP.div.withConfig({componentId:"sc-68c11a9a-4"})(_templateObject6(),e=>{let{size:n}=e;return"large"===n?"1 1 300px":"1 1 100%"},e=>{let{size:n}=e;return"large"===n?"none":"100%"}),w=(0,p.ZP)(b).withConfig({componentId:"sc-68c11a9a-5"})(_templateObject8(),u.rS.breakpoints.tablet.min,e=>{let{size:n}=e;return"large"===n?(0,p.iv)(_templateObject7()):""}),_=p.ZP.button.withConfig({componentId:"sc-68c11a9a-6"})(_templateObject9(),e=>{let{size:n,isFiat:i}=e;return"small"===n?"1 1 100%":i?"0 1 100%":"0 1 150px"});var WrappedWidget_Bootstrap=e=>{let{children:n,size:i}=e,[l,d]=(0,r.useState)(!1),p=(0,c.T)();return((0,r.useEffect)(()=>{let fetchInitialCurrencies=async()=>await Promise.all([fetchAllCurrencies(p),fetchAllPairs(p),fetchFixedCurrencies(p),fetchFixedPairs(p),fetchAvailableFiatPairs(p,a.DA)]);fetchInitialCurrencies().then(()=>{d(!0)}).catch(e=>{console.log(e)})},[p]),l)?n:(0,o.jsx)(s.Od,{width:"100%",visible:!l,children:(0,o.jsx)(m,{style:{height:"small"===i?"304px":"136px",padding:"40px 32px"},size:i,isFiat:!1,children:(0,o.jsx)(b,{size:i,isFiat:!1})})})},j=i(72053),y=i(8253),C=i(33898);let v=r.createContext({state:{isFiatTab:!1,activeTab:"",isFixed:!1,currencyFrom:null,currencyTo:null,currencyFromValue:"",currencyToValue:"",minAmount:0,maxAmount:0,isAmountLoading:{from:!1,to:!1},isBigCommission:!1},actions:{},error:{from:null,to:null}}),ExchangeProvider=e=>{var n,i,l;let{children:a,defaultActiveTab:s="crypto",controlledValue:d,controlledCoinTo:p}=e,[u]=(0,r.useState)(!1),h=(0,c.C)(e=>e.exchange.allCurrenciesList),[m,f]=(0,r.useState)(()=>"fiat"===s),[x,g]=(0,r.useState)(null!==(n=null==h?void 0:h.find(e=>m?"usd"===e.symbol.toLowerCase():"btc"===e.symbol.toLowerCase()))&&void 0!==n?n:h[0]),[b,w]=(0,r.useState)(null!==(i=null==h?void 0:h.find(e=>m?"btc"===e.symbol.toLowerCase():"eth"===e.symbol.toLowerCase()))&&void 0!==i?i:h[1]),[_,O]=(0,r.useState)("fiat"===s?null!=d?d:500:null!=d?d:.1),[k,I]=(0,r.useState)(null),[S,P]=(0,r.useState)(!1),[E,A]=(0,r.useState)({from:null,to:null}),[L,T]=(0,r.useState)(null),[N,M]=(0,r.useState)(null),[Z,B]=(0,r.useState)({from:0===_,to:!1}),[D,H]=(0,r.useState)(!1),[F,z]=(0,r.useState)(),[W,R]=(0,r.useState)(0),U=(0,r.useCallback)(()=>{S&&(P(!1),A({...E,from:(0,y.t)("ERRORS.TEXT_4")}),B({...Z,to:!1}))},[E,Z,S,y.t]),getMinAmount=()=>{(0,C.ut)(x,b).then(e=>{T(e),null!==e&&Number(_){console.error(e)})},getMaxAmount=()=>{(0,C.pf)(x,b).then(e=>{let{data:n}=e;M(n)})},getEstimated=e=>{S&&P(!1),B({...Z,to:!0}),(null!==E.from||null!==E.to)&&A({from:null,to:null}),(0,C.qh)(x,b,u,e,H).then(e=>{let{data:n}=e;if(null===n||null===L){P(!0);return}+L<+n&&A({from:null,to:null}),B({...Z,to:!1}),I(n)})},updateData=()=>{u&&getMaxAmount(),getMinAmount(),getEstimated(_);let e=setTimeout(()=>{R(e=>e+1)},3e4);z(e)};(0,r.useEffect)(()=>{updateData()},[W]);let setAmountError=()=>{B({...Z,to:!1})},checkMinMaxError=()=>{if(Number.isFinite(_)){let e=Number(_);Number.isFinite(L)&&eNumber(N)&&setAmountError()}},G=(0,j.y1)(e=>{Number.isFinite(L)&&Number(e)Number(N)?(setAmountError(),getMaxAmount()):getEstimated(e),checkMinMaxError()},500),X=(0,j.y1)(e=>{getEstimated(e),getMinAmount()},500);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{updateData()},3e4);z(e)},[]),(0,r.useEffect)(()=>{B({...Z,to:!0}),0===_||Z.to||X(_)},[u,x,b,_]),(0,r.useEffect)(()=>{checkMinMaxError(),u?getMaxAmount():getMinAmount()},[u,x,b]),(0,r.useEffect)(()=>{U()},[U,S]),(0,r.useEffect)(()=>function(){clearTimeout(F)},[]),(0,r.useEffect)(()=>{d&&O(d),p&&w(null==h?void 0:h.find(e=>e.symbol.toLowerCase()===p))},[d,p]),(0,o.jsx)(v.Provider,{value:{state:{isFixed:u,activeTab:s,currencyFrom:x,currencyTo:b,currencyFromValue:_,currencyToValue:k,minAmount:L,maxAmount:N,isAmountLoading:Z,isBigCommission:D,isFiatTab:m},actions:{setAmount:e=>{(0!==_||"00"!==e)&&(O(Number(e)),(null!==E.from||null!==E.to)&&null!==L&&Number(e)>L&&A({from:null,to:null}),0==="".concat(e).length||Number.isNaN(Number(e))||(G(Number(e)),B({...Z,to:!0})))},setCurrencyFrom:e=>{g(e)},setCurrencyTo:e=>{w(e)},setActiveFiatTab:e=>{f(e)}},error:{...E,from:null!==(l=!(null!=L&&+_<+L)&&!(null!=N&&+_>+N)&&!Z.to&&E.from)&&void 0!==l?l:null}},children:a})},formatCurrency=e=>"usdterc20"===e.symbol?{...e,format:{name:"USDT",label:"ERC-20"}}:"usdttrc20"===e.symbol?{...e,format:{name:"USDT",label:"TRC-20"}}:"usdtbep20"===e.symbol?{...e,format:{name:"USDT",label:"BEP-20"}}:"bnb-bsc"===e.symbol?{...e,format:{name:"BNB",label:"BEP-20"}}:"tusd-bep2"===e.symbol?{...e,format:{name:"TUSD",label:"BEP-2"}}:"usdcbep20"===e.symbol?{...e,format:{name:"USDC",label:"BEP-20"}}:e;function styles_templateObject(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 10px 17px;\n background-color: ",";\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n }\n\n @media (min-width: 470px) {\n padding: 8px 174px 8px 24px;\n }\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,d._)(["\n width: 12px;\n height: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n\n @media (min-width: 768px) {\n width: 24px;\n height: 24px;\n }\n"]);return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,d._)(["\n width: 12px;\n height: 12px;\n\n @media (min-width: 470px) {\n width: 24px;\n height: 24px;\n }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,d._)(["\n margin: 0 0 0 8px;\n font-family: Inter;\n font-weight: 600;\n font-size: 12px;\n line-height: 16px;\n color: ",";\n\n @media (min-width: 470px) {\n margin: 0 0 0 16px;\n font-size: 16px;\n line-height: 22px;\n padding-top: 1px;\n }\n"]);return styles_templateObject3=function(){return e},e}function styles_templateObject4(){let e=(0,d._)(["\n margin: 0 0 0 4px;\n font-family: Inter;\n font-weight: 500;\n font-size: 6px;\n line-height: 120%;\n background: #50af95;\n border-radius: 8px;\n padding: 1px 4px 2px 4px;\n color: white;\n\n @media (min-width: 470px) {\n margin: 0 0 0 6px;\n padding: 1px 6px 2px 6px;\n font-size: 10px;\n }\n"]);return styles_templateObject4=function(){return e},e}function styles_templateObject5(){let e=(0,d._)(["\n margin: 0 0 0 8px;\n font-family: Inter;\n font-weight: 500;\n font-size: 10px;\n line-height: 120%;\n color: ",";\n\n @media (min-width: 470px) {\n margin: 0 0 0 16px;\n font-size: 12px;\n }\n"]);return styles_templateObject5=function(){return e},e}function styles_templateObject6(){let e=(0,d._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n @media (min-width: 768px) {\n min-width: 150px;\n }\n"]);return styles_templateObject6=function(){return e},e}let O=p.ZP.div.withConfig({componentId:"sc-7004a5d8-0"})(styles_templateObject(),e=>{let{selected:n,theme:i}=e;return n?i.exchangeWidget.background2:i.exchangeWidget.background},e=>{let{selected:n,theme:i}=e;return n?i.exchangeWidget.background2:i.exchangeWidget.background1}),k=p.ZP.div.withConfig({componentId:"sc-7004a5d8-1"})(styles_templateObject1()),I=p.ZP.img.withConfig({componentId:"sc-7004a5d8-2"})(styles_templateObject2()),S=p.ZP.p.withConfig({componentId:"sc-7004a5d8-3"})(styles_templateObject3(),e=>{let{theme:n}=e;return n.exchangeWidget.text1}),P=p.ZP.p.withConfig({componentId:"sc-7004a5d8-4"})(styles_templateObject4()),E=p.ZP.p.withConfig({componentId:"sc-7004a5d8-5"})(styles_templateObject5(),e=>{let{theme:n}=e;return n.exchangeWidget.dropdownCoinName}),A=p.ZP.div.withConfig({componentId:"sc-7004a5d8-6"})(styles_templateObject6());var components_CoinListItem=e=>{let{className:n,onSelect:i,symbol:r,name:l,image:a,selected:c,format:s}=e;return(0,o.jsxs)(O,{className:n,onClick:i,role:"close-dropdown",selected:c,children:[(0,o.jsxs)(A,{children:[(0,o.jsx)(k,{role:"close-dropdown",children:null!=a?(0,o.jsx)(I,{src:a,role:"close-dropdown"}):null}),(0,o.jsx)(S,{role:"close-dropdown",children:null!=s?s.name:r.toUpperCase()}),null!=s?(0,o.jsx)(P,{role:"close-dropdown",children:s.label}):null]}),(0,o.jsx)(E,{role:"close-dropdown",children:l})]})},icons_CloseIcon=e=>{let{color:n="yellow"}=e;return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 25 24",fill:"none",children:[(0,o.jsx)("rect",{x:"8.7002",y:"15.1133",width:"10.4436",height:"1.25369",rx:"0.626844",transform:"rotate(-45 8.7002 15.1133)",fill:"red"===n?"#E15D56":"#EE9500"}),(0,o.jsx)("rect",{width:"10.4436",height:"1.25369",rx:"0.626844",transform:"matrix(-0.707107 -0.707107 -0.707107 0.707107 16.9717 15.1133)",fill:"red"===n?"#E15D56":"#EE9500"})]})};function CoinsDropdown_styles_templateObject(){let e=(0,d._)(["\n position: absolute;\n width: 100%;\n top: 0;\n left: 0;\n z-index: 2;\n border-radius: 8px;\n background-color: ",";\n box-shadow: 0px 12px 42px -4px rgba(24, 39, 75, 0.12);\n border: 1px solid ",";\n"]);return CoinsDropdown_styles_templateObject=function(){return e},e}function CoinsDropdown_styles_templateObject1(){let e=(0,d._)(["\n border-bottom: 1px solid ",";\n background-color: ",";\n border-radius: 8px 8px 0 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 54px;\n\n @media (min-width: 470px) {\n height: 56px;\n }\n"]);return CoinsDropdown_styles_templateObject1=function(){return e},e}function CoinsDropdown_styles_templateObject2(){let e=(0,d._)(["\n padding: 0;\n background-color: ",";\n max-height: 300px;\n overflow-y: auto;\n border-radius: 0 0 8px 8px;\n\n &.windows {\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n box-shadow: inset 0px 4px 4px rgba(6, 39, 99, 0.1);\n border-radius: 0px;\n padding: 10px 0;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 2px;\n }\n\n &::-webkit-scrollbar-button:single-button {\n background-color: ",";\n display: block;\n border-radius: 0px;\n height: 17px;\n width: 16px;\n background-repeat: no-repeat;\n background-size: 10px 5px;\n background-position: center;\n }\n\n ::-webkit-scrollbar-button:single-button:vertical:decrement {\n background-image: url(",");\n }\n\n ::-webkit-scrollbar-button:single-button:vertical:increment {\n background-image: url(",");\n border-bottom-right-radius: 8px;\n }\n }\n"]);return CoinsDropdown_styles_templateObject2=function(){return e},e}function CoinsDropdown_styles_templateObject3(){let e=(0,d._)(["\n padding: 17px 4px 17px 17px;\n flex-shrink: 0;\n\n @media (min-width: 470px) {\n padding: 20px 8px 20px 24px;\n }\n"]);return CoinsDropdown_styles_templateObject3=function(){return e},e}function CoinsDropdown_styles_templateObject4(){let e=(0,d._)(["\n width: 16px;\n height: 16px;\n\n path {\n stroke: ",";\n }\n\n @media (min-width: 470px) {\n width: 24px;\n height: 24px;\n }\n"]);return CoinsDropdown_styles_templateObject4=function(){return e},e}function CoinsDropdown_styles_templateObject5(){let e=(0,d._)(["\n display: flex;\n flex: 1;\n align-items: center;\n flex-direction: row;\n margin-right: 12px;\n\n @media (min-width: 470px) {\n margin-right: 16px;\n }\n"]);return CoinsDropdown_styles_templateObject5=function(){return e},e}function CoinsDropdown_styles_templateObject6(){let e=(0,d._)(["\n font-family: Inter;\n width: 100%;\n height: 54px;\n margin-right: 12px;\n border: none;\n outline: none;\n font-size: 10px;\n line-height: 120%;\n color: ",";\n background: transparent;\n\n ::placeholder {\n color: ",";\n font-size: 11px;\n }\n\n @media (min-width: 470px) {\n height: 56px;\n font-size: 14px;\n margin-right: 16px;\n }\n"]);return CoinsDropdown_styles_templateObject6=function(){return e},e}function styles_templateObject7(){let e=(0,d._)(["\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n\n rect {\n fill: ",";\n }\n\n &:hover {\n cursor: pointer;\n\n rect {\n fill: ",";\n }\n }\n\n @media (min-width: 470px) {\n width: 32px;\n height: 32px;\n }\n"]);return styles_templateObject7=function(){return e},e}function styles_templateObject8(){let e=(0,d._)(["\n padding: 10px;\n"]);return styles_templateObject8=function(){return e},e}function styles_templateObject9(){let e=(0,d._)(["\n margin: 0;\n text-align: left;\n color: ",";\n font-size: 16px;\n"]);return styles_templateObject9=function(){return e},e}function _templateObject10(){let e=(0,d._)(["\n padding: 16px 17px 4px 17px;\n\n &:first-child {\n padding: 8px 17px 4px 17px;\n }\n\n @media (min-width: 470px) {\n padding: 16px 24px 8px 24px;\n\n &:first-child {\n padding: 16px 24px 8px 24px;\n }\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,d._)(["\n margin: 0;\n font-family: Inter;\n font-weight: 500;\n font-size: 10px;\n line-height: 120%;\n color: ",";\n\n @media (min-width: 470px) {\n font-size: 14px;\n }\n"]);return _templateObject11=function(){return e},e}let L=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-0"})(CoinsDropdown_styles_templateObject(),e=>{let{theme:n}=e;return n.exchangeWidget.background},e=>{let{theme:n}=e;return n.exchangeWidget.background1}),T=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-1"})(CoinsDropdown_styles_templateObject1(),e=>{let{theme:n}=e;return n.exchangeWidget.background1},e=>{let{theme:n}=e;return n.exchangeWidget.background}),N=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-2"})(CoinsDropdown_styles_templateObject2(),e=>{let{theme:n}=e;return n.exchangeWidget.background},e=>{let{theme:n}=e;return n.exchangeWidget.background1},e=>{let{theme:n}=e;return n.exchangeWidget.background2},e=>{let{theme:n}=e;return n.exchangeWidget.background1},{src:"/learn/_next/static/media/scroll-arrow-top.0e5d6f1c.svg",height:5,width:10,blurWidth:0,blurHeight:0},{src:"/learn/_next/static/media/scroll-arrow-bottom.02e27751.svg",height:5,width:10,blurWidth:0,blurHeight:0}),M=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-3"})(CoinsDropdown_styles_templateObject3()),Z=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-4"})(CoinsDropdown_styles_templateObject4(),e=>{let{theme:n}=e;return n.exchangeWidget.searchIcon}),B=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-5"})(CoinsDropdown_styles_templateObject5()),D=p.ZP.input.withConfig({componentId:"sc-ed2d6b83-6"})(CoinsDropdown_styles_templateObject6(),e=>{let{theme:n}=e;return n.exchangeWidget.text1},e=>{let{theme:n}=e;return n.exchangeWidget.text3}),H=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-7"})(styles_templateObject7(),e=>{let{theme:n}=e;return n.exchangeWidget.closeIcon},e=>{let{theme:n}=e;return n.exchangeWidget.hoverCloseIcon}),F=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-8"})(styles_templateObject8()),z=p.ZP.p.withConfig({componentId:"sc-ed2d6b83-9"})(styles_templateObject9(),e=>{let{theme:n}=e;return n.exchangeWidget.text3}),W=p.ZP.div.withConfig({componentId:"sc-ed2d6b83-10"})(_templateObject10()),R=p.ZP.p.withConfig({componentId:"sc-ed2d6b83-11"})(_templateObject11(),e=>{let{theme:n}=e;return n.exchangeWidget.dropdownSectionTitle});var icons_SearchIcon=()=>(0,o.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M7.5 11C9.433 11 11 9.433 11 7.5C11 5.567 9.433 4 7.5 4C5.567 4 4 5.567 4 7.5C4 9.433 5.567 11 7.5 11Z",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 12L10 10",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]}),components_CoinsDropdown=e=>{let{className:n,onSelectCoin:i,onClose:l,data:a=[],selected:c}=e,s=(0,r.useRef)(null),[d,p]=(0,r.useState)(""),[u,h]=(0,r.useState)([{title:"Popular cryptocurrencies",type:"popular",list:[]},{title:"Popular fiat",type:"popularFiat",list:[]},{title:"All cryptocurrencies",type:"all",list:[]},{title:"All fiat",type:"allFiat",list:[]}]);(0,r.useEffect)(()=>{let e=[],n=[],i=[],o=[],r=0!==d.length?a.filter(e=>{let n=e.symbol.toLowerCase().includes(d.toLowerCase().trim()),i=e.name.toLowerCase().includes(d.toLowerCase());return n||i}):a;r.forEach(r=>{r.priority&&!r.isFiat?e.push(r):r.priority&&r.isFiat?i.push(r):r.isFiat?o.push(r):n.push(r)}),h([{title:"Popular cryptocurrencies",type:"popular",list:e},{title:"Popular fiat",type:"popularFiat",list:i},{title:"All cryptocurrencies",type:"all",list:r},{title:"All fiat",type:"allFiat",list:o}])},[a,d]);let m=navigator.appVersion.includes("Win");return(0,o.jsxs)(L,{className:n,children:[(0,o.jsxs)(T,{children:[(0,o.jsx)(M,{children:(0,o.jsx)(Z,{children:(0,o.jsx)(icons_SearchIcon,{})})}),(0,o.jsxs)(B,{children:[(0,o.jsx)(D,{className:"currency-list__search-field",placeholder:"Type a cryptocurrency or ticker",value:d,onChange:e=>{p(e.target.value)},ref:s}),(0,o.jsx)(H,{onClick:l,role:"close-dropdown",children:(0,o.jsx)(icons_CloseIcon,{})})]})]}),(0,o.jsxs)(N,{role:"list","aria-label":"coins-list",className:m?"windows":"",children:[u.map(e=>{let{title:n,list:l}=e;return null!==l&&l.length>0?(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(W,{children:(0,o.jsx)(R,{children:n})}),l.map(e=>{let{symbol:n,name:r}=e,l="https://static.simpleswap.io/images/currencies-logo/".concat(n,".svg");return(0,o.jsx)(components_CoinListItem,{className:"currency-list__item",onSelect:()=>{i({symbol:n.toLowerCase()})},format:e.format,symbol:n,name:r,image:l,selected:c.symbol===n},n)})]},n):null}),0===a.length?(0,o.jsx)(F,{children:(0,o.jsx)(z,{children:"Cryptocurrencies not found"})}):null,0!==d.length&&0===u[0].list.length&&0===u[1].list.length&&0===u[2].list.length&&0===u[3].list.length?(0,o.jsx)(F,{children:(0,o.jsx)(z,{children:"Cryptocurrency was not found"})}):null]})]})};function Spinner_styles_templateObject(){let e=(0,d._)(["\n animation: rotate 1s linear infinite;\n width: ",";\n height: ",";\n\n & .path {\n stroke: ",";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n }\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"]);return Spinner_styles_templateObject=function(){return e},e}let U=p.ZP.svg.withConfig({componentId:"sc-653e6e83-0"})(Spinner_styles_templateObject(),e=>{let{size:n}=e;return"".concat(n,"px")},e=>{let{size:n}=e;return"".concat(n,"px")},e=>{let{color:n}=e;return n});var components_Spinner=e=>{let{size:n,color:i}=e;return(0,o.jsx)(U,{size:n,color:i,children:(0,o.jsx)("circle",{className:"path",cx:n/2,cy:n/2,r:n/2.5,fill:"none",strokeWidth:"2"})})},G=i(98605),icons_TildaIcon=e=>(0,o.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 5 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M0 0.559133C0.169492 0.383489 0.370763 0.246487 0.603814 0.148126C0.836864 0.0497658 1.06992 0.00058548 1.30297 0.00058548C1.59251 -0.00644028 1.87147 0.0497658 2.13983 0.169204L2.9661 0.580211C3.21328 0.692623 3.47987 0.748829 3.76589 0.748829C4.23199 0.748829 4.64336 0.527518 5 0.0848946V1.22834C4.63983 1.6007 4.23552 1.78689 3.78708 1.78689C3.50106 1.78689 3.23446 1.73068 2.98729 1.61827L2.1822 1.2178C1.90325 1.09133 1.61547 1.03162 1.31886 1.03864C1.08581 1.03864 0.849223 1.0966 0.60911 1.21253C0.372528 1.32845 0.169492 1.4918 0 1.70258V0.559133ZM0 2.77225C0.169492 2.5966 0.367232 2.4596 0.59322 2.36124C0.819209 2.26288 1.04873 2.2137 1.28178 2.2137C1.57839 2.20667 1.86617 2.26639 2.14513 2.39286L2.95021 2.79333C3.19739 2.90574 3.46398 2.96194 3.75 2.96194C4.2267 2.96194 4.64336 2.74063 5 2.29801V3.44145C4.63983 3.81382 4.22846 4 3.76589 4C3.47987 4 3.21328 3.94379 2.9661 3.83138L2.13983 3.42037C1.87147 3.30094 1.59251 3.24473 1.30297 3.25176C1.06992 3.25176 0.836864 3.30972 0.603814 3.42564C0.370763 3.54157 0.169492 3.70492 0 3.91569V2.77225Z",fill:"currentColor"})}),icons_SimpleArrowIcon=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 18 18",fill:"none",...e,children:(0,o.jsx)("path",{d:"M9.94493 11.6475L7.30493 9.00004L9.94493 6.35254",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),X=i(85699);let countDynamicFontSize=e=>{if(e.length>3){let n=14,i=e.length-3;for(;i;)n*=.9,i-=1;return n}return 14},ExchangeFormGroup=e=>{let{label:n,type:i,onSelectCoin:l,dropdownList:a,amount:c,minAmount:s,maxAmount:d,setAmount:p,selected:u,isFixed:h,isLoading:m,isToError:f,size:x,isFiat:g}=e,[b,w]=(0,r.useState)(formatCurrency(u)),[_,j]=(0,r.useState)(!1),[y,C]=(0,r.useState)(Number.isFinite(s)&&Number(s)>Number(c)),[v,O]=(0,r.useState)(Number.isFinite(d)&&Number(d){w(formatCurrency(u))},[u]),(0,r.useEffect)(()=>{C(s&&Number(s)>Number(c))},[c,s]),(0,r.useEffect)(()=>{O(d&&Number(d){S(!1)};return(0,o.jsxs)(G.X2,{ref:k,className:"main-page__exchange-group main-page__exchange-".concat(i),isFiat:g,children:[(0,o.jsxs)(G.BZ,{size:x,isActive:_,isDisabled:"to"===i,withError:y||v,children:[(0,o.jsx)(G.AZ,{className:"exchange-group__label",hide:m,children:n}),m?(0,o.jsx)("div",{style:{display:"inline"},children:(0,o.jsx)(components_Spinner,{size:20,color:"#252c44"})}):"from"===i?(0,o.jsx)(G.II,{value:c,role:"textbox","aria-label":"currency-from",isFiat:g,onClick:e=>{e.stopPropagation()},onChange:e=>{p(e.target.value.replace(/,/g,""))},onFocus:()=>{j(!0)},onBlur:()=>{j(!1)}}):(0,o.jsxs)(G.oK,{role:"textbox","aria-label":"currency-to",isFiat:g,hide:m,children:[h||f?null:(0,o.jsxs)(G.eS,{children:[(0,o.jsx)(icons_TildaIcon,{})," "]}),f?"-":Number(c)/1e3>=1?Number(c).toFixed(3):Number(c).toFixed(6)]}),y?(0,o.jsxs)(G.iE,{children:[(0,o.jsx)(G.hW,{children:"Min amount"}),(0,o.jsx)(G.M1,{onClick:()=>{p(s)},children:s})]}):null,v&&h?(0,o.jsxs)(G.iE,{children:[(0,o.jsx)(G.hW,{children:"Max amount"}),(0,o.jsx)(G.M1,{onClick:()=>p(d),children:d})]}):null]}),(0,o.jsxs)(G.pb,{role:"listbox","aria-label":"currency-".concat(i),isFiat:g,size:x,onClick:()=>{S(!0)},children:[(0,o.jsx)(G.tO,{src:"https://static.simpleswap.io/images/currencies-logo/".concat(b.symbol,".svg"),alt:b.symbol}),(0,o.jsx)(G.QL,{role:"presentation","aria-label":"".concat(i,"_ticker"),dynamicFontSize:null!=b.format?countDynamicFontSize(b.format.name):countDynamicFontSize(b.symbol.toUpperCase()),children:null!=b.format?b.format.name:b.symbol.toUpperCase()}),(null==b?void 0:b.format)!=null?(0,o.jsx)(G.$4,{children:b.format.label}):null,(0,o.jsx)(G.Wi,{className:"main-page__dropdown-arrow",children:(0,o.jsx)(icons_SimpleArrowIcon,{})})]}),I?(0,o.jsx)(components_CoinsDropdown,{className:"main-page__dropdown-list",onSelectCoin:e=>{let{symbol:n}=e;onCloseDropdown(),l({symbol:n})},onClose:onCloseDropdown,data:a,selected:u}):null]})};var icons_SwapIcon=e=>(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M8.07565 16.8374C8.02561 16.8889 7.96608 16.9298 7.90049 16.9577C7.8349 16.9856 7.76454 17 7.69349 17C7.62243 17 7.55208 16.9856 7.48649 16.9577C7.42089 16.9298 7.36136 16.8889 7.31132 16.8374L5.1583 14.6387C5.10811 14.5874 5.0683 14.5266 5.04114 14.4596C5.01398 14.3927 5 14.3209 5 14.2484C5 14.1759 5.01398 14.1042 5.04114 14.0372C5.0683 13.9702 5.10811 13.9094 5.1583 13.8581C5.20848 13.8069 5.26806 13.7662 5.33363 13.7385C5.39921 13.7108 5.46949 13.6965 5.54046 13.6965C5.61143 13.6965 5.68171 13.7108 5.74728 13.7385C5.81286 13.7662 5.87244 13.8069 5.92262 13.8581L7.15523 15.1224V9.85096C7.15523 8.83046 7.55219 7.85177 8.25879 7.13017C8.96539 6.40858 9.92375 6.00319 10.923 6.00319C11.0658 6.00319 11.2027 6.0611 11.3036 6.16418C11.4046 6.26727 11.4613 6.40708 11.4613 6.55287C11.4613 6.69865 11.4046 6.83847 11.3036 6.94155C11.2027 7.04464 11.0658 7.10255 10.923 7.10255C10.5696 7.10255 10.2196 7.17364 9.89312 7.31176C9.5666 7.44988 9.26991 7.65233 9.02 7.90754C8.77009 8.16275 8.57185 8.46573 8.4366 8.79919C8.30136 9.13264 8.23174 9.49003 8.23174 9.85096V15.1224L9.46435 13.8581C9.51439 13.8066 9.57392 13.7657 9.63951 13.7378C9.7051 13.7099 9.77546 13.6955 9.84651 13.6955C9.91757 13.6955 9.98792 13.7099 10.0535 13.7378C10.1191 13.7657 10.1786 13.8066 10.2287 13.8581C10.2791 13.9092 10.3192 13.97 10.3465 14.037C10.3738 14.104 10.3879 14.1758 10.3879 14.2484C10.3879 14.321 10.3738 14.3928 10.3465 14.4598C10.3192 14.5268 10.2791 14.5876 10.2287 14.6387L8.07565 16.8374ZM13.7704 8.36132C13.6691 8.46483 13.6121 8.60521 13.6121 8.75159C13.6121 8.89797 13.6691 9.03836 13.7704 9.14187C13.8718 9.24537 14.0092 9.30352 14.1526 9.30352C14.2959 9.30352 14.4334 9.24537 14.5347 9.14187L15.7673 7.8776V13.149C15.7673 13.878 15.4838 14.577 14.9791 15.0925C14.4744 15.6079 13.7898 15.8975 13.0761 15.8975C12.9333 15.8975 12.7964 15.9554 12.6954 16.0584C12.5945 16.1615 12.5378 16.3013 12.5378 16.4471C12.5378 16.5929 12.5945 16.7327 12.6954 16.8358C12.7964 16.9389 12.9333 16.9968 13.0761 16.9968C14.0753 16.9968 15.0337 16.5914 15.7403 15.8698C16.4469 15.1482 16.8439 14.1695 16.8439 13.149V7.8776L18.0765 9.14187C18.1265 9.19339 18.186 9.23428 18.2516 9.26219C18.3172 9.29009 18.3876 9.30446 18.4586 9.30446C18.5297 9.30446 18.6 9.29009 18.6656 9.26219C18.7312 9.23428 18.7907 9.19339 18.8408 9.14187C18.8912 9.09077 18.9313 9.02997 18.9586 8.96299C18.9859 8.896 19 8.82416 19 8.75159C19 8.67903 18.9859 8.60718 18.9586 8.5402C18.9313 8.47322 18.8912 8.41242 18.8408 8.36132L16.6878 6.16259C16.6377 6.11107 16.5782 6.07018 16.5126 6.04227C16.447 6.01437 16.3767 6 16.3056 6C16.2345 6 16.1642 6.01437 16.0986 6.04227C16.033 6.07018 15.9735 6.11107 15.9234 6.16259L13.7704 8.36132Z",fill:"currentColor"})}),V=i(88047),K=i(20640),Y=i(3198),q=i(17870);let Q=["usd","eur","rub","uah","tl","gbp"];var ExchangeWidget_Widget=e=>{var n,i,l,a,s,d,p,u;let{size:h,eventSource:j}=e,{state:{isFixed:y,activeTab:C,currencyFrom:O,currencyTo:k,currencyFromValue:I,currencyToValue:S,minAmount:P,maxAmount:E,isAmountLoading:A},actions:{setCurrencyFrom:L,setAmount:T,setCurrencyTo:N},error:M}=(0,r.useContext)(v),[Z,B]=(0,r.useState)(),[D,H]=(0,r.useState)(!1),F=(0,c.C)(e=>e.exchange.allCurrenciesList),z=(0,c.C)(e=>e.exchange.allPairsList),{utmSource:W,utmMedium:R,utmCampaign:U}=(0,Y.v9)(e=>e.analytics),G=r.useCallback(e=>{var n,i;let o;if(null===z||(o="crypto"===C?(o=F).filter(e=>!Q.includes(e.symbol)):F.filter(e=>e.isFiat),y&&((null==o?void 0:o.length)===0||null==z)))return{data:[],state:"is_loading"};if("to"===e){let e=null!==(n=null==O?void 0:O.symbol)&&void 0!==n?n:"btc";if((null==z?void 0:z[e.toLowerCase()])!==void 0){let n=z[e.toLowerCase()];if(void 0!==n)return{data:F.filter(e=>n.includes(e.symbol)),state:"has_data"}}return{data:[],state:"has_data"}}let r=null!==(i=null==k?void 0:k.symbol)&&void 0!==i?i:"eth",l=Object.keys(z),a=o.filter(e=>l.includes(e.symbol)&&e.symbol!==r);return{data:a,state:"has_data"}},[C,F,z,O,k,y]),X=y&&(0!==P&&+I<+P||0!==E&&+I>+E)||0!==P&&+I<+P||M.from,$=r.useMemo(()=>G("from"),[G]),J=r.useMemo(()=>G("to"),[G]),ee="fiat"===C;return(0,o.jsxs)(m,{as:V.Paper,isFiat:ee,shadow:3,size:h,padding:"crypto"===C?[40,32]:[32,16],children:["crypto"===C&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b,{isFiat:ee,size:h,children:(0,o.jsx)(ExchangeFormGroup,{label:"You send",type:"from",amount:I,minAmount:P,maxAmount:E,setAmount:T,selected:O,onSelectCoin:e=>{let{symbol:n}=e;L(F.find(e=>e.symbol===n))},dropdownList:null!==(s=null===(n=$.data)||void 0===n?void 0:n.map(e=>formatCurrency(e)))&&void 0!==s?s:[],isLoading:A.from,isFixed:y,size:h})}),(0,o.jsx)(f,{size:h,children:(0,o.jsx)(x,{role:"button","aria-label":"swap",isDisabled:!1,isDesktopHorizontal:!1,onClick:()=>{if(A.to)return;null!=Z&&clearTimeout(Z),L(k),N(O),T(I),H(!1),H(!0);let e=setTimeout(()=>{H(!1),B(void 0)},400);B(e)},children:(0,o.jsx)(g,{className:"".concat(D?"animate":""),children:(0,o.jsx)(icons_SwapIcon,{width:32,height:32})})})}),(0,o.jsx)(b,{size:h,children:(0,o.jsx)(ExchangeFormGroup,{label:"You get",type:"to",isFixed:y,amount:S,selected:k,onSelectCoin:e=>{let{symbol:n}=e;N(F.find(e=>e.symbol===n))},isLoading:A.to,dropdownList:null!==(d=null===(i=J.data)||void 0===i?void 0:i.map(e=>formatCurrency(e)))&&void 0!==d?d:[],isToError:X,size:h})})]}),"fiat"===C&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(w,{size:h,isFiat:ee,size:h,children:[(0,o.jsx)(ExchangeFormGroup,{label:"From",type:"from",isFiat:!0,amount:I,minAmount:P,maxAmount:E,setAmount:T,selected:O,onSelectCoin:e=>{let{symbol:n}=e;L(F.find(e=>e.symbol===n))},dropdownList:null!==(p=null===(l=$.data)||void 0===l?void 0:l.map(e=>formatCurrency(e)))&&void 0!==p?p:[],isLoading:A.from,isFixed:y,size:h}),(0,o.jsx)(ExchangeFormGroup,{label:"To",type:"to",isFiat:!0,isFixed:y,amount:S,selected:k,onSelectCoin:e=>{let{symbol:n}=e;N(F.find(e=>e.symbol===n))},isLoading:A.to,dropdownList:null!==(u=null===(a=J.data)||void 0===a?void 0:a.map(e=>formatCurrency(e)))&&void 0!==u?u:[],isToError:X,size:h})]})}),(0,o.jsx)(_,{type:"button",isFiat:ee,onClick:()=>{if(null==O||null==k)return;(0,q.p)(K.Z.EX_CREATE_EXCHANGE,{source:j,from:O.symbol,to:k.symbol,stage:1,utmSource:W,utmMedium:R,utmCampaign:U});let e="https://simpleswap.io/exchange?from=".concat(O.symbol,"&to=").concat(k.symbol,"&amount=").concat(I,"&rate=floating");window.open(e)},size:h,children:"Exchange"})]})},WrappedWidget_WrappedWidget=e=>(0,o.jsx)(WrappedWidget_Bootstrap,{size:e.size,children:(0,o.jsx)(ExchangeProvider,{defaultActiveTab:e.currencyType,controlledValue:e.controlledInputValue,controlledCoinTo:e.controlledCoinTo,children:(0,o.jsx)(ExchangeWidget_Widget,{...e})})})},98536:function(e,n,i){"use strict";i.d(n,{Z:function(){return o.default}});var o=i(62682)},41180:function(e){e.exports={"header_auth-buttons":"header_header_auth-buttons__QZX0G","get-account__button":"header_get-account__button__5Tw_m",login__button_dark:"header_login__button_dark__3eiJ3",login__button_light:"header_login__button_light__z5sZW"}},62228:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/mc-short.e57b5909.svg",height:21,width:28,blurWidth:0,blurHeight:0}},86659:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/visa.e12f2bd6.svg",height:14,width:44,blurWidth:0,blurHeight:0}},76318:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/arrowRightLight.de5e9892.svg",height:24,width:24,blurWidth:0,blurHeight:0}},33187:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/clockDark.e98af051.svg",height:20,width:20,blurWidth:0,blurHeight:0}},18950:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/clockLight.1ade27c1.svg",height:20,width:20,blurWidth:0,blurHeight:0}},1727:function(e,n){"use strict";n.Z={src:"/learn/_next/static/media/greenOk.bdec22eb.svg",height:20,width:20,blurWidth:0,blurHeight:0}}}]);ERROR: learn / _next / static / chunks / 266-f1b3709627e71945.js