1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6810],{46810:function(e,n,t){"use strict";t.r(n);var o=t(47568),l=t(14924),i=t(20414),a=t(85893),r=t(67294),s=t(97298),c=t(25675),u=t.n(c),d=t(31555),p=t(14412),h=t(54850),C=t(7145),f=t(36990),m=t(1452),b=t(31126),v=t.n(b),g=t(11163),x=t(74466),_=t(86455),j=t.n(_),B=[{value:f.hB.USDT,label:"USDT",image:"usdt.png",description:"TetherUs"},{value:f.hB.USDC,label:"USDC",image:"usdc.png",description:"USD Coin"},{value:f.hB.BITCOIN,label:"BTC",image:"bitcoin.png",description:"Bitcoin"}];n.default=function(){var e=(0,r.useState)(!1),n=e[0],t=e[1],c=(0,r.useState)(null),b=c[0],_=c[1],S=(0,r.useState)(null),N=S[0],y=S[1],w=(0,r.useState)(null),T=w[0],D=w[1],Z=(0,g.useRouter)(),I=(0,p.f)(),U=I.cryptoModalVisible,k=I.currentCartItem,O=I.setCurrentCartItem,E=I.loggedInUser,F=I.setCartEnable,P=I.setCryptoModalVisible,M=I.totalCartAmount,V=I.promoCode;(0,r.useEffect)((function(){(null===k||void 0===k?void 0:k.length)||F(!1)}),[null===k||void 0===k?void 0:k.length]);var Y=function(){var e=(0,o.Z)((function(){return(0,i.__generator)(this,(function(e){return t(!0),j().fire({title:"",text:"You have selected ".concat(null===b||void 0===b?void 0:b.value," Coin and ").concat(null===T||void 0===T?void 0:T.value," Deposit Network. If you're sure, please confirm this order."),showCancelButton:!0,confirmButtonText:"Yes, Confirm Order",confirmButtonColor:"#FF4800",cancelButtonColor:"#010F35",cancelButtonText:"No, Im'not sure"}).then((function(e){e.isConfirmed?(0,x.Vf)(k,M,E,b,T,O,Z,P,t,f.hL.CRYPTO,(0,x.ne)(),V):e.isDismissed&&t(!1)})),[2]}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(C.Z,{bodyClassName:"px-4 pb-4",onHide:function(){P(!1)},title:"Crypto Payment",open:U,children:[(0,a.jsx)("label",{className:v().label,children:"Select the coin you want to pay"}),(0,a.jsx)(s.ZP,{placeholder:"Select Coin",value:b,className:v().dropdown,options:B,onChange:function(e){var n;_(e);var t=(n={},(0,l.Z)(n,f.hB.USDC,m.wo),(0,l.Z)(n,f.hB.USDT,m.OG),(0,l.Z)(n,f.hB.BITCOIN,m.wu),n);y(t[e.value]),D(null)},getOptionLabel:function(e){return(0,a.jsxs)("div",{className:v().imageCoinWrapper,children:[(0,a.jsx)(u(),{src:"/".concat(e.image),alt:"404",width:20,height:20,objectFit:"contain",layout:"fixed",objectPosition:"center"}),(0,a.jsx)("b",{className:v().coinTitle,children:e.label})," ",(0,a.jsx)("span",{children:e.description})]})}}),N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{className:v().label,children:"Select Deposit Network"}),(0,a.jsx)(s.ZP,{placeholder:"Select Coin",value:T,className:v().dropdown,options:N,onChange:function(e){D(e)},getOptionLabel:function(e){return(0,a.jsxs)(d.Z,{children:[(0,a.jsx)(d.Z,{children:(0,a.jsx)("b",{children:e.value})})," ",(0,a.jsx)(d.Z,{children:e.description})]})}})]}),(0,a.jsx)(h.Z,{loading:n,disabled:n||!T,className:"mt-3",onClick:Y,children:"Make Order"})]})}},31126:function(e){e.exports={label:"style_label__5VB0e",dropdown:"style_dropdown__xecgM",imageCoinWrapper:"style_imageCoinWrapper__oHCDg",coinTitle:"style_coinTitle__Yf_SE"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.