(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5557:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9211)}])},3589:function(){},9211:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return T},default:function(){return P}});var l=t(5893);t(5675);var n=t(7294),o=t(607),s=t(5836),i=t(6157),r=t(8263),c=t(3533),d=t(8802),u=t(6274),h=t(796),p=t(5007),v=t(3724),m=t(25),x=t(7415),f=t(695),j=t(1163),w=t(3050);t(3589);var g=t(9523),y=t(1828),b=t(5031),N=t(1664),k=t.n(N),S=e=>{let{bannerRef:a}=e,t=(0,p.v9)(e=>{var a;return null==e?void 0:null===(a=e.user)||void 0===a?void 0:a.userData});return(0,l.jsxs)("div",{className:"banner-bg",children:[(0,l.jsx)("h3",{className:"banner-title",children:"convert money from one form to another."}),(0,l.jsx)("p",{className:"banner-text",children:"the future of money exchange."}),(0,l.jsx)("p",{className:"banner-text",children:"powered by you."}),t?(0,l.jsxs)(k(),{className:"banner-btn",onClick:()=>{a.current&&a.current.scrollIntoView({behavior:"smooth"})},href:"".concat(b.v,"/register"),children:["start trading ",(0,l.jsx)(y.hjJ,{})]}):(0,l.jsxs)(k(),{className:"banner-btn",href:"".concat(b.v,"/register"),children:["get started ",(0,l.jsx)(y.hjJ,{})]})]})},C=t(881);let{Option:_}=o.default;function Z(e){var a,t,y,b,N,k;let{initialDealsList:Z}=e,[L,B]=(0,n.useState)(!1),[T,P]=(0,n.useState)(!1),[I,U]=(0,n.useState)("high to low"),[R,E]=(0,n.useState)("filter by: high to low"),[q,F]=(0,n.useState)(!1),[D,A]=(0,n.useState)("all"),[G,V]=(0,n.useState)("source"),[W,H]=(0,n.useState)("destination"),[M,O]=(0,n.useState)(""),[z,J]=(0,n.useState)(!1),X=(0,p.I0)(),K=(0,p.v9)(e=>e.data.dealsList)||Z,[Q,Y]=(0,n.useState)((null==K?void 0:K.data)||(null==Z?void 0:Z.data)||[]),$=(0,n.useRef)(),ee=(0,j.useRouter)(),ea=(0,n.useRef)(null);(0,n.useEffect)(()=>{Z||(null==K?void 0:K.length)!==0?J(!1):J(!0)},[Z,K]),(0,n.useEffect)(()=>{Z&&X((0,g.xq)(Z))},[Z,X]);let et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"all",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"all",i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"all",r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return P(!0),m.eE.get("/deals?page=".concat(e,"&newest=").concat(a,"&low2high=").concat(t,"&high2low=").concat(l,"&location=").concat(n,"&source=").concat("bank account"===o.toLowerCase()?"bank account":"source"===o.toLowerCase()?"all":o.toLowerCase(),"&destination=").concat("bank account"===i.toLowerCase()?"bank account":"destination"===i.toLowerCase()?"all":i.toLowerCase())).then(function(e){var a;P(!1),r?el(e.data):X((0,g.xq)(null==e?void 0:e.data)),Y(null===(a=e.data)||void 0===a?void 0:a.data)}).catch(function(e){var a,t,l,n;(null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.message)?s.ZP.error(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:l.message):X((0,g.nB)(!0)),B(!1)})},el=e=>{let a=null==K?void 0:K.data,t=null==e?void 0:e.data,l=a.concat(t);e.data=l,X((0,g.xq)(e)),B(!1)},en=e=>{A(e)},eo=()=>{F(!0)},es=(e,a)=>{if(X((0,g.xq)(null)),"select pair"===a)et(),V("all"),H("all");else if("source"===e){V(a);let e="source"===a.toLowerCase()?"bank account":a,t="destination"===W.toLowerCase()?"bank account":W,l=D||"all",n="/results?source=".concat(encodeURIComponent(e),"&destination=").concat(encodeURIComponent(t),"&location=").concat(encodeURIComponent(l));ee.push(n)}else{H(a);let e="source"===G.toLowerCase()?"bank account":G,t="destination"===a.toLowerCase()?"bank account":a,l=D||"all",n="/results?source=".concat(encodeURIComponent(e),"&destination=").concat(encodeURIComponent(t),"&location=").concat(encodeURIComponent(l));ee.push(n)}};return(0,l.jsxs)("div",{className:"deals-parent",ref:ea,children:[(0,l.jsx)(w.Z,{}),(0,l.jsx)(i.Z,{title:"input location",open:q,onOk:()=>{F(!1),X((0,g.xq)(null)),E("filter by location: ".concat(D)),et(1,0,0,0,D,G||"all",W||"all")},onCancel:()=>{F(!1)},okText:"ok",cancelText:"cancel",width:350,children:(0,l.jsx)(r.Z,{placeholder:"enter location",onChange:e=>{en(e.target.value)}})}),(0,l.jsxs)("div",{className:"deals-container",children:[(0,l.jsx)(S,{bannerRef:$}),(0,l.jsxs)("div",{className:"deals-wrapper",children:[(0,l.jsxs)("div",{className:"switch-bar",children:[(0,l.jsxs)("div",{className:"top-bar",children:[(0,l.jsx)("div",{className:"left",ref:$,children:"deals"}),(0,l.jsx)("div",{className:"right",children:(0,l.jsxs)("div",{className:"filter-by",children:[(0,l.jsx)("div",{className:"filter-text",children:R}),(0,l.jsxs)(o.default,{suffixIcon:(0,l.jsx)(u.Z,{}),placeholder:"filter by...",optionFilterProp:"children",defaultValue:I,onChange:e=>{U(null),"newest"===e?(A("all"),E("filter by: newest"),O(e),X((0,g.xq)(null)),et(1,1,0,0,D,G||"all",W||"all")):"highToLow"===e?(A("all"),E("filter by score: high to low"),O(e),X((0,g.xq)(null)),et(1,0,0,1,D,G||"all",W||"all")):"lowToHigh"===e?(A("all"),E("filter by score: low to high"),O(e),X((0,g.xq)(null)),et(1,0,1,0,D,G||"all",W||"all")):"location"===e&&(eo(),O("location"))},children:[(0,l.jsx)(_,{value:"newest",children:"newest"}),(0,l.jsx)(_,{value:"lowToHigh",children:"score: low to high"}),(0,l.jsx)(_,{value:"highToLow",children:"score: high to low"}),(0,l.jsx)(_,{value:"location",children:"location"})]})]})})]}),(0,l.jsx)(d.Z,{}),(0,l.jsxs)("div",{className:"instrument-select",children:[(0,l.jsxs)("div",{className:"select-box",children:[(0,l.jsx)("p",{className:"pair",children:"i have"}),(0,l.jsx)(o.default,{suffixIcon:(0,l.jsx)(u.Z,{style:{strokeWidth:"50",stroke:"#ed1450"}}),placeholder:"select pair",defaultValue:"all",value:G,onChange:e=>{es("source",e)},style:{width:"100%"},children:C.a.map(e=>(0,l.jsx)(_,{value:e,children:e}))})]}),(0,l.jsx)("div",{className:"arrows",children:(0,l.jsx)(h.Z,{style:{fontSize:"inherit",strokeWidth:"15",stroke:"#ed1450"}})}),(0,l.jsxs)("div",{className:"select-box",children:[(0,l.jsx)("p",{className:"pair",children:"i need"}),(0,l.jsx)(o.default,{suffixIcon:(0,l.jsx)(u.Z,{style:{stroke:"#ed1450",strokeWidth:"50"}}),placeholder:"select pair",defaultValue:"all",value:W,onChange:e=>{es("destination",e)},style:{width:"100%"},children:C.a.map(e=>(0,l.jsx)(_,{value:e,children:e}))})]})]})]}),T?(0,l.jsx)(v.Z,{}):null,z||(null==K?void 0:null===(a=K.data)||void 0===a?void 0:a.length)===0?(0,l.jsxs)("div",{className:"no-result",children:[(0,l.jsx)("div",{className:"svg-container"}),(0,l.jsx)("div",{className:"no-result-text",children:"no deal found"}),(0,l.jsx)("div",{className:"no-result-text-bottom",children:"try another combination"})]}):null,z?null:(0,l.jsx)("div",{className:"deals-list",children:"newest"===M?(0,l.jsx)(l.Fragment,{children:null==K?void 0:K.data.map((e,a)=>(0,l.jsx)(x.Z,{item:e},a))}):"lowToHigh"===M?(0,l.jsx)(l.Fragment,{children:null==K?void 0:null===(t=K.data)||void 0===t?void 0:t.slice().sort((e,a)=>{var t,l;return(null==e?void 0:null===(t=e.dealer_reputation_data)||void 0===t?void 0:t.trust_score)-(null==a?void 0:null===(l=a.dealer_reputation_data)||void 0===l?void 0:l.trust_score)}).map((e,a)=>(0,l.jsx)(x.Z,{item:e},a))}):"highToLow"===M?(0,l.jsx)(l.Fragment,{children:K&&(null==K?void 0:null===(y=K.data)||void 0===y?void 0:y.slice().sort((e,a)=>{var t,l;return(null==a?void 0:null===(t=a.dealer_reputation_data)||void 0===t?void 0:t.trust_score)-(null==e?void 0:null===(l=e.dealer_reputation_data)||void 0===l?void 0:l.trust_score)}).map((e,a)=>(0,l.jsx)(x.Z,{item:e},a)))}):(0,l.jsx)(l.Fragment,{children:K&&K.data&&K.data.length>0?(0,l.jsx)(l.Fragment,{children:K.data.map((e,a)=>(0,l.jsx)(x.Z,{item:e},a))}):""})}),K&&(null==K?void 0:K.meta)&&(null==K?void 0:null===(b=K.meta)||void 0===b?void 0:b.hasNext)&&(0,l.jsxs)("div",{className:"load-more",children:[(0,l.jsx)(c.ZP,{loading:L,type:"default",className:"login-form-button short",onClick:()=>{B(!0),et(K.meta.page+1,1,0,0,location,G||"all",W||"all",!0)},style:{fontWeight:"500",color:"#ed1450"},children:"load more"}),(0,l.jsx)("div",{className:"results-count",children:"showing 1 - ".concat(K.meta.end," of ").concat(K.meta.total," deals.")})]}),K&&(null==K?void 0:null===(N=K.data)||void 0===N?void 0:N.length)!==0&&!(null==K?void 0:null===(k=K.meta)||void 0===k?void 0:k.hasNext)&&(0,l.jsx)("div",{className:"list-end",children:"looks like you've reached the end"})]})]}),(0,l.jsx)(f.Z,{})]})}var L=t(9008),B=t.n(L),T=!0;function P(e){let{initialDealsList:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(B(),{children:[(0,l.jsx)("title",{children:"Lily.africa: Trade Bitcoin, USDT, Gift Cards, Fiat, E-currencies & More"}),(0,l.jsx)("meta",{name:"description",content:"Buy, Sell & Swap funds from the best merchants & vendors in Africa via over 100 different methods. buy, sell & swap zelle, paypal, cashapp, neteller, crypto, moneygram, gift cards, bank funds, etc with secure escrow and excellent support."}),(0,l.jsx)("meta",{name:"keywords",content:"buy bitcoin, sell bitcoin, buy paypal, sell paypal, swap bank fund to paypal, swap paypal to cashapp, swap venmo to paypal, swap paypal to venmo, swap cashapp to paypal, swap moneygram to paypal, swap paypal to moneygram, swap bitcoin to paypal, swap paypal to bitcoin, swap moneygram to cashapp, swap cashapp to moneygram, swap cashapp to bitcoin, swap bitcoin to cashapp, swap skrill to cashapp, swap cashapp to skrill, swap giftcard to paypal, swap paypal to giftcard "}),(0,l.jsx)("meta",{itemprop:"name",content:"Lily Africa"}),(0,l.jsx)("meta",{itemprop:"url",content:"https://lily.africa/"}),(0,l.jsx)("meta",{name:"description",content:"Buy, Sell & Swap Bitcoin, USDT, Gift cards, PayPal, Zelle, Payonner, Bank funds, etc from the best merchants & vendors in Africa via over 100 different methods. Buy, Sell & Swap Zelle, Paypal, Cashapp, Neteller, Bitcoin, USDT, Moneygram, Gift cards, Bank funds, etc with secure escrow and excellent support."}),(0,l.jsx)("meta",{name:"author",content:"Lily Africa"}),(0,l.jsx)("meta",{name:"robots",content:"index,follow"}),(0,l.jsx)("meta",{property:"og:title",content:"Lily.africa: Buy, Sell & Swap funds globally via over 100 methods."}),(0,l.jsx)("meta",{property:"og:description",content:"Buy, Sell & Swap Bitcoin, USDT, Gift cards, PayPal, Zelle, Payonner, Bank funds, etc from the best merchants & vendors in Africa via over 100 different methods. Buy, Sell & Swap Zelle, Paypal, Cashapp, Neteller, Bitcoin, USDT, Moneygram, Gift cards, Bank funds, etc with secure escrow and excellent support."})]}),(0,l.jsx)("main",{className:"flex min-h-screen flex-col items-center justify-between p-24",children:(0,l.jsx)(Z,{initialDealsList:a})})]})}}},function(e){e.O(0,[660,509,738,594,791,163,913,408,713,611,71,888,774,179],function(){return e(e.s=5557)}),_N_E=e.O()}]);