1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[371],{26632:function(e,n,l){"use strict";l(67294);var t=l(15043),s=l(60155),a=l(11163),i=l(85893);n.Z=function(e){var n=e.showModal,l=e.setShowModal,o=(0,a.useRouter)();return(0,i.jsx)(t.u_,{title:"Add Payout Method",isOpen:n,onClose:function(){return l(!1)},isLoading:!1,children:(0,i.jsxs)("div",{className:"px-8 py-3",children:[(0,i.jsx)("div",{className:"flex justify-center mb-6",children:(0,i.jsx)("div",{className:"flex items-center bg-yellow-1 p-[6px] rounded-full",children:(0,i.jsx)("div",{className:"text-yellow-3 bg-yellow-2 p-[10px] rounded-full",children:(0,i.jsx)(s.OvZ,{size:20})})})}),(0,i.jsxs)("div",{className:"mb-6 text-center",children:[(0,i.jsx)("h3",{className:"text-2xl font-bold mb-2",children:"One more thing!"}),(0,i.jsxs)("p",{className:"text-grey-7",children:["You need to verify your account before",(0,i.jsx)("br",{}),"you can withdraw coins"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(t.zx,{className:"py-3 text-white font-medium w-full text-center mb-6 block",onClick:function(){l(!1),o.push("/account/verification")},children:"Verify account"}),(0,i.jsx)(t.zx,{transparent:!0,className:"text-main font-medium w-full text-center block",onClick:function(){return l(!1)},children:"Go back"})]})]})})}},95538:function(e,n,l){"use strict";l.d(n,{Z:function(){return P}});var t=l(16835),s=l(38804),a=l(83766),i=l(15043),o=l(12761),r=l(65539),c=l(78115),d=l(41664),u=l.n(d),x=l(11163),m=l(67294),f=l(88767),v=l(14416),h=l(85611),p=l(41229),j=(l(81950),l(87424)),b=l(20866),y=l(85893),g=function(e){var n=e.number,l=e.size,t=e.position,s=e.className,a=e.coinType,r=void 0===a?o.g.COIN_TYPE.SUPERCOIN:a,c=(0,j.wv)().formatCurrency,d=(0,j.gZ)(),u=(0,j._0)();return(0,y.jsxs)("div",{className:"".concat(s," flex items-center"),children:["left"===t?r===o.g.COIN_TYPE.SUPERCOIN?(0,y.jsx)(i.cL,{className:"mr-1"}):(0,y.jsx)(b.Z,{className:"mr-1"}):"",(0,y.jsx)("span",{style:{fontSize:l+"px"},children:(0,p.uf)(n)}),"right"===t?r===o.g.COIN_TYPE.SUPERCOIN?(0,y.jsx)(i.cL,{className:"ml-1"}):(0,y.jsx)(b.Z,{className:"ml-1"}):"",(0,y.jsxs)("div",{className:"ml-3 text-sm font-medium text-grey-6",children:["="," ",(0,y.jsx)("span",{children:c(o.g.COIN_TYPE.SUPERCOIN===r?d.calculate(n):u.calculate(n))})]})]})},N=l(12214),C=l(60155),w=l(2225),_=l(38735),k=l(51180),Z=l(63457),O=l(71782),S=l(5434),E=l(78321),M=l(55678),B=l(30322),P=function(e){var n,l,d,P,z,T,I,A,H,L,D,R,V,Y,W,F,U,X,G,J,Q,q,K,$,ee,ne,le,te,se,ae,ie,oe,re,ce,de,ue,xe,me,fe=e.showModal,ve=e.setShowModal,he=e.customAccount,pe=e.languages,je=(0,v.v9)((function(e){var n;return null===(n=e.payment)||void 0===n?void 0:n.wallet})),be=(0,f.useQueryClient)(),ye=(0,c.Os)(),ge=(0,t.Z)(ye,2),Ne=(ge[0],ge[1]),Ce=(0,v.v9)((function(e){return e.auth})),we=(0,m.useState)(""),_e=we[0],ke=we[1],Ze=(0,x.useRouter)(),Oe=(0,h.e1)().addToast,Se=(0,Z.Z)("(max-width: 767px)"),Ee=(0,m.useState)(!1),Me=Ee[0],Be=Ee[1],Pe=(0,c.rl)(),ze=(0,t.Z)(Pe,3),Te=(ze[0],ze[1]),Ie=ze[2],Ae=(0,c.Bz)(),He=(0,t.Z)(Ae,4),Le=He[0],De=He[1],Re=He[2],Ve=He[3],Ye=(0,c.XU)(),We=Ye.doDeleteBank,Fe=(Ye.isLoading,(0,c.bi)()),Ue=Fe.isLoading,Xe=Fe.mutate,Ge=(null===Te||void 0===Te||null===(n=Te.payment)||void 0===n?void 0:n.data)||[],Je=0==(null===he||void 0===he||null===(l=he.needVerify)||void 0===l||null===(d=l.currently_due)||void 0===d?void 0:d.length),Qe=(0,j.sc)(),qe=(0,j.yh)(),Ke=(0,j.wv)().formatCurrency,$e=(0,j._0)(),en=(0,j.jH)(.05);(0,m.useEffect)((function(){var e,n;!Le&&Ve&&(De&&null!==De&&void 0!==De&&De.success&&(Oe(null!==(e=null===pe||void 0===pe||null===(n=pe.balance_tab)||void 0===n?void 0:n.payout_method_set_as_default_successfully)&&void 0!==e?e:"Payout method set as default successfully",{appearance:"success",autoDismiss:!0}),Ie()))}),[Le]);var nn=(0,m.useMemo)((function(){return null===Ge||void 0===Ge?void 0:Ge.find((function(e){return null===e||void 0===e?void 0:e.default_for_currency}))}),[Ge]);if(null===Ce||void 0===Ce||null===(P=Ce.user)||void 0===P||!P.canWithdraw)return null;var ln=function(e){Re({url:r.ZP.CUSTOM_ACCOUNT.SET_DEFAULT_EXTERNAL_BANK.replace(":id",e)})},tn=function(e){We(e,{onSuccess:function(){var e,n;Oe(null!==(e=null===pe||void 0===pe||null===(n=pe.balance_tab)||void 0===n?void 0:n.payout_method_deleted_successfully)&&void 0!==e?e:"Payout method deleted successfully",{appearance:"success",autoDismiss:!0}),Ie()}})},sn=function(){ke(""),ve(!1)},an=function(){_e>(null===je||void 0===je?void 0:je.joicoinBalance)?(0,M.Am)((0,y.jsx)(B.Z,{type:"error",title:"Insufficient Supercoins",description:"You do not have enough Joicoin to perform this transaction."}),{autoClose:3e3,progressStyle:{background:"none"}}):Ge.find((function(e){return e.default_for_currency}))||0!=Ge.length?Xe({bankId:he.id,amount:_e,currency:Qe.toLowerCase()},{onSuccess:function(e){(0,M.Am)((0,y.jsx)(B.Z,{type:"success",title:"Withdrawal successful!",description:"Your widthdrawal request has been placed successfully"}),{autoClose:3e3,progressStyle:{background:"var(--green-3)"}}
1),ke(""),Ie(),Ne(),be.invalidateQueries("getWallet"),be.invalidateQueries(["WALLET_LIST"]),be.invalidateQueries(N.Z.FINANCE.GET_TRANSACTIONS),be.invalidateQueries([N.Z.ME.ME]),ve(!1)}}):(0,M.Am)((0,y.jsx)(B.Z,{type:"error",title:"Bank account is not available",description:"You have to add a bank account first."}),{autoClose:3e3,progressStyle:{background:"none"}})},on=null===he||void 0===he||null===(z=he.needVerify)||void 0===z||null===(T=z.currently_due)||void 0===T?void 0:T.find((function(e){return"external_account"==e})),rn=(null===he||void 0===he||null===(I=he.needVerify)||void 0===I||null===(A=I.currently_due)||void 0===A?void 0:A.filter((function(e){return"external_account"!=e})).length)>0;return Se?(0,y.jsx)(O.Z,{open:fe,onClose:sn,children:Me?(0,y.jsxs)("div",{className:"flex flex-col p-4 h-screen",children:[(0,y.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,y.jsx)(i.zx,{transparent:!0,onClick:function(){return Be(!1)},children:(0,y.jsx)(S.G1X,{className:"text-grey-4 text-2xl"})}),(0,y.jsx)(u(),{href:"/account/payout",children:(0,y.jsx)("span",{className:"text-primary-5 font-medium text-sm",children:"Add"})})]}),(0,y.jsx)("div",{className:"mt-6",children:null===Ge||void 0===Ge?void 0:Ge.map((function(e,n){return(0,y.jsx)(a.Z,{languages:null===pe||void 0===pe?void 0:pe.payout_method_row,className:"border-b border-gray-100",method:e,makeDefaultPayment:ln,doDelete:tn},n)}))}),(0,y.jsx)(i.zx,{onClick:function(){return Be(!1)},className:"w-full py-3 font-medium text-white mt-auto",children:"Back to payout"})]}):(0,y.jsxs)("div",{className:"flex flex-col p-4 h-screen overflow-scroll",children:[(0,y.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,y.jsx)(i.zx,{transparent:!0,onClick:sn,children:(0,y.jsx)(S.G1X,{className:"text-grey-4 text-2xl"})}),(0,y.jsxs)("div",{className:"bg-primary-0 flex items-center rounded-lg p-3 space-x-2",children:[(0,y.jsx)("span",{className:"text-sm text-grey-7",children:"Current balance"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(w.Z,{}),(0,y.jsx)("span",{className:"text-xs font-medium ml-1",children:(0,p.uf)(null===je||void 0===je?void 0:je.amountBalance)})]}),(0,y.jsx)(b.Z,{amount:(0,p.uf)(null===je||void 0===je?void 0:je.joicoinBalance)})]})]}),(0,y.jsxs)("div",{className:"flex items-center mt-10 space-x-2",children:[(0,y.jsx)("div",{className:"font-semibold text-grey-10 text-2xl",children:"Withdraw"}),(0,y.jsx)(k.Z,{})]}),(0,y.jsx)("div",{className:"flex justify-between items-center mt-4 bg-primary w-full",children:(0,y.jsx)(s.Z,{value:_e,defaultValue:_e,pattern:"[0-9]*",onChange:function(e){ke((function(n){return e.target.validity.valid?Number(e.target.value):n}))},type:"number",containerClass:"w-full bg-primary-0",inputClassName:"bg-primary-0 text-[24px] py-2 text=grey-5 font-semibold text-right",className:"w-full",leftIcon:!0,renderLeftIcon:function(){return(0,y.jsx)(b.Z,{size:24})},placeholder:"100"})}),nn&&(0,y.jsxs)("div",{className:"mt-10",children:[(0,y.jsx)("div",{className:"text-lg font-medium",children:"Payout method"}),(0,y.jsxs)("div",{className:"bg-primary-0 p-3 flex items-center w-full gap-3 rounded-lg",children:[(0,y.jsx)("div",{className:"w-9 h-9 bg-white flex items-center justify-center rounded",children:(0,y.jsx)(E.Z,{})}),(0,y.jsxs)("div",{className:"flex flex-col",children:[(0,y.jsx)("span",{className:"font-medium",children:"Bank account"}),(0,y.jsxs)("span",{children:["**** **** **** ",null===nn||void 0===nn?void 0:nn.last4]})]}),(0,y.jsx)("div",{className:"ml-auto",children:(0,y.jsx)(i.zx,{onClick:function(){return Be(!0)},transparent:!0,className:"text-primary-5 font-medium text-sm",children:"Change"})})]})]}),!nn&&(0,y.jsxs)("div",{className:"bg-yellow-1 flex flex-col gap-2 p-4 rounded",children:[(0,y.jsx)("div",{className:"text-yellow-3 font-medium",children:"Add bank account"}),(0,y.jsx)("div",{className:"text-yellow-3",children:"In order to be able to withdraw your funds, you need to add you bank account details"}),(0,y.jsx)(i.zx,{onClick:function(){return Ze.push("/account/payout")},className:"border-none px-3 py-2 bg-yellow-3 text-white font-medium mt
1-2 self-start",children:"Add"})]}),(0,y.jsxs)("div",{className:"mt-6 flex flex-col w-full gap-2 bg-primary-0 p-4 rounded-lg",children:[(0,y.jsxs)("div",{className:"flex justify-between",children:[(0,y.jsx)("span",{className:"text-sm text-grey-6",children:"Equivalent in"}),(0,y.jsx)("span",{className:"text-grey-7",children:Ke($e.calculate(_e))})]}),(0,y.jsxs)("div",{className:"flex justify-between",children:[(0,y.jsx)("span",{className:"text-sm text-grey-6",children:"Processing fee (5%)"}),(0,y.jsx)("span",{className:" text-grey-7",children:Ke(en.calculate($e.calculate(_e)))})]}),(0,y.jsxs)("div",{className:"flex justify-between",children:[(0,y.jsx)("span",{className:"text-sm text-grey-6 font-semibold",children:"Send to bank account"}),(0,y.jsx)("span",{className:"font-semibold",children:Ke($e.calculate(_e)-en.calculate($e.calculate(_e)))})]})]}),(0,y.jsx)(i.zx,{disabled:!Je||Ue,onClick:an,className:"text-white bg-grey-10 mt-auto w-full text-white font-medium py-3",children:"Withdraw now"})]})}):(0,y.jsx)(i.u_,{title:"Deposit",isOpen:fe,onClose:sn,isLoading:!1,children:(0,y.jsx)("div",{className:"rounded-t md:w-[1024px]",children:(0,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:"flex justify-end items-center border-b border-gray-200 px-6 pb-6 relative",children:[(0,y.jsx)("div",{className:"flex-grow text-xl font-medium text-center absolute left-1/2 -translate-x-1/2",children:null!==(H=null===pe||void 0===pe||null===(L=pe.balance_tab)||void 0===L?void 0:L.withdrawal)&&void 0!==H?H:"Withdrawal"}),(0,y.jsxs)("div",{className:"flex",children:[(0,y.jsxs)("div",{className:"flex items-end flex-col mr-7",children:[(0,y.jsx)("span",{className:"text-xs font-bold",children:null!==(D=null===pe||void 0===pe||null===(R=pe.balance_tab)||void 0===R?void 0:R.coin_balance)&&void 0!==D?D:"Coin Balance"}),(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsxs)("div",{className:"flex items-center gap-1",children:[(0,y.jsx)(w.Z,{}),(0,y.jsx)("span",{className:"text-sm font-medium",children:(0,p.uf)(null===je||void 0===je?void 0:je.amountBalance)})]}),(0,y.jsx)(b.Z,{amount:(0,p.uf)(null===je||void 0===je?void 0:je.joicoinBalance)})]})]}),(0,y.jsx)(i.zx,{onClick:sn,transparent:!0,children:(0,y.jsx)("span",{className:"bg-transparent text-2xl block outline-none focus:outline-none",children:(0,y.jsx)(C.bjh,{className:"rounded-full text-lg text-grey-6"})})})]}),(0,y.jsx)("div",{className:"flex flex-col"})]}),(0,y.jsxs)("div",{className:"grid grid-cols-12",children:[(0,y.jsxs)("div",{className:"p-6 col-span-5",children:[(0,y.jsx)("div",{className:"text-lg font-bold",children:(0,y.jsx)("b",{children:null!==(V=null===pe||void 0===pe||null===(Y=pe.balance_tab)||void 0===Y?void 0:Y.payout_information)&&void 0!==V?V:"Payout information"})}),(0,y.jsx)("div",{className:"mb-6",children:null===Ge||void 0===Ge?void 0:Ge.map((function(e,n){return(0,y.jsx)(a.Z,{languages:null===pe||void 0===pe?void 0:pe.payout_method_row,className:"border-b border-gray-100",method:e,makeDefaultPayment:ln,doDelete:tn},n)}))}),(0,y.jsx)(i.zx,{onClick:function(){Ze.push("/account/payout")},children:(0,y.jsx)("p",{className:"text-white py-2 px-6 font-medium",children:null!==(W=null===pe||void 0===pe||null===(F=pe.balance_tab)||void 0===F?void 0:F.add_payout_method)&&void 0!==W?W:"Add payout method"})})]}),(0,y.jsxs)("div",{className:"p-6 col-span-7 border-l border-gray-200",children:[(on||rn)&&(0,y.jsxs)("div",{className:"text-sm mb-5",children:[(0,y.jsx)("b",{children:null!==(U=null===pe||void 0===pe||null===(X=pe.balance_tab)||void 0===X?void 0:X.you_need_verify_these_information_to_continue_payout)&&void 0!==U?U:"You need verify these information to continue payout"}),(0,y.jsxs)("ul",{children:[on&&(0,y.jsx)(u(),{href:"/account/payout",className:"text-sm text-red-500",children:(0,y.jsx)("a",{children:(0,y.jsxs)("li",{children:["+ ",null!==(G=null===pe||void 0===pe||null===(J=pe.balance_tab)||void 0===J?void 0:J.add_payout_method)&&void 0!==G?G:"Add payout method"]})})}),rn&&(0,y.jsx)(u(),{href:"/account/personal",className:"text-sm text-red-500",children:(0,y.jsx)("a",{children:(0,y.jsxs)("li",{children:["+"," ",null!==(Q=null===pe||void 0===pe||null===(q=pe.balance_tab)||void 0===q?void 0:q.update_account_information)&&void 0!==Q?Q:"Update account information"]})})})]})]}),(0,y.jsx)("p",{className:"text-lg font-bold mb-2",children:(0,y.jsx)("b",{children:null!==(K=null===pe||void 0===pe||null===($=pe.balance_tab)||void 0===$?void 0:$.coin_balance)&&void 0!==K?K:"Coin Balance"})}),(0,y.jsx)(g,{size:"14",number:null===je||void 0===je?void 0:je.joicoinBalance,position:"left",className:"mb-6",coinType:o.g.COIN_TYPE.JOICOIN}),(0,y.jsx)("p",{className:"mb-4",children:null!==(ee=null===pe||void 0===pe||null===(ne=pe.balance_tab)||void 0===ne?void 0:ne.how_much_would_you_like_to_withdraw)&&void 0!==ee?ee:"How much would you like to withdraw?"}),(0,y.jsx)("div",{className:"flex justify-between items-center pb-3 mb-3 border-b border-gray-100",children:(0,y.jsxs)("div",{className:"flex items-center w-full",children:[(0,y.jsx)("label",{htmlFor:"amount",className:"text-sm font-medium",children:null!==(le=null===pe||void 0===pe||null===(te=pe.balance_tab)||void 0===te?void 0:te.withdrawal_amount)&&void 0!==le?le:"Withdrawal amount"}),(0,y.jsxs)("div",{className:"ml-auto flex gap-4",children:[(0,y.jsx)(s.Z,{className:"!ml-auto",id:"amount",renderLeftIcon:function(){return(0,y.jsx)(b.Z,{})},leftIcon:!0,min:1,type:"number",containerClass:"!p-1 bg-grey-2",inputClassName:"!text-sm w-[110px] bg-grey-2 text-right",placeholder:null!==(se=null===pe||void 0===pe||null===(ae=pe.balance_tab)||void 0===ae?void 0:ae.input_amount)&&void 0!==se?se:"Input Amount",value:_e,defaultValue:_e,onChange:function(e){ke(Number(e.target.value))}}),(0,y.jsx)("div",{className:"flex items-center",children:(0,y.jsxs)("span",{className:"text-grey-7 text-sm",children:["= ",Ke($e.calculate(_e))]})})]})]})}),qe&&(0,y.jsxs)("div",{className:"flex justify-end mb-3",children:[(0,y.jsx)(_.Z,{effect:"solid",place:"top",className:"w-[280px] !rounded-lg"}),(0,y.jsxs)("div",{className:"flex text-sm mr-7",children:[null!==(ie=null===pe||void 0===pe||null===(oe=pe.balance_tab)||void 0===oe?void 0:oe.processing_fee)&&void 0!==ie?ie:"Processing fee"," (",o.g.CONVERSION_FEE,")",(0,y.jsx)("div",{className:"cursor-pointer ml-2","data-tip":null!==(re=null===pe||void 0===pe||null===(ce=pe.balance_tab)||void 0===ce?void 0:ce.withdrawal_tooltip)&&void 0!==re?re:"Subject to an exchange fee defined in \u201cTerms & Conditions\u201d and 5% processing fee. ",children:(0,y.jsx)(k.Z,{})})]}),(0,y.jsx)("span",{children:(0,y.jsx)("span",{className:"text-sm font-bold",children:Ke(en.calculate($e.calculate(_e)))})})]}),(0,y.jsxs)("div",{className:"flex justify-between mb-16",children:[(0,y.jsx)("p",{className:"text-base",children:null!==(de=null===pe||void 0===pe||null===(ue=pe.balance_tab)||void 0===ue?void 0:ue.send_to_bank_account)&&void 0!==de?de:"Send to bank account"}),(0,y.jsx)("p",{className:"font-bold",children:Ke(Number($e.calculate(_e)-en.calculate($e.calculate(_e))).toFixed(2))})]}),(0,y.jsx)("div",{className:"flex",children:(0,y.jsx)(i.zx,{className:"w-full",onClick:an,disabled:!Je||Ue,children:(0,y.jsx)("p",{className:"text-white py-2 px-6 font-medium",children:null!==(xe=null===pe||void 0===pe||null===(me=pe.balance_tab)||void 0===me?void 0:me.withdraw)&&void 0!==xe?xe:"Withdraw"})})}),(0,y.jsx)("div",{className:"flex"}),(0,y.jsx)("div",{className:"flex"})]})]})]})})})}},83766:function(e,n,l){"use strict";l(67294);var t=l(89583),s=(l(41229),l(15043),l(78321)),a=l(85893);n.Z=function(e){var n,l,i,o,r=e.className,c=e.method,d=e.doDelete,u=e.makeDefaultPayment,x=e.languages,m=c||{},f=m.default_for_currency,v=m.routing_number,h=m.account_holder_name,p=(m.last4,m.bank_name),j=f;return(0,a.jsx)("div",{className:"py-3 ".concat(r),children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{className:"w-8 h-8 flex items-center justify-center mr-3 border",children:(0,a.jsx)(s.Z,{})}),(0,a.jsxs)("div",{className:"flex flex-col mr-auto",children:[(0,a.jsxs)("p",{className:"font-medium",children:[p,j&&(0,a.jsx)("span",{className:"bg-gray-200 text-black py-1 px-2 ml-3 text-xs inline-block font-bold",children:null!==(n=null===x||void 0===x?void 0:x.default)&&void 0!==n?n:"Default"})]}),(0,a.jsxs)("p",{className:"font-medium",children:[h," - ",v]})]}),(0,a.jsxs)("div",{className:"dropdown inline-block relative",children:[(0,a.jsx)("button",{className:"text-gray-700 font-semibold py-4 px-4 border border-gray-300 rounded inline-flex items-center hover:bg-gray-200",children:(0,a.jsx)(t.LCi,{size:10,
1className:""})}),(0,a.jsxs)("ul",{className:"dropdown-menu absolute hidden border rounded border-gray-300 shadow text-gray-700 z-10 bg-white",children:["true"!==(null===c||void 0===c||null===(l=c.metadata)||void 0===l?void 0:l.isDefault)&&(0,a.jsx)("li",{className:"",children:(0,a.jsx)("button",{className:"bg-white hover:bg-gray-300 py-2 px-4 block whitespace-no-wrap",onClick:function(){return u(c.id)},children:null!==(i=null===x||void 0===x?void 0:x.make_default)&&void 0!==i?i:"Make default"})}),(0,a.jsx)("li",{className:"",children:(0,a.jsx)("button",{className:"bg-white hover:bg-gray-300 py-2 px-4 block whitespace-no-wrap",onClick:function(){return d(c.id)},children:null!==(o=null===x||void 0===x?void 0:x.remove)&&void 0!==o?o:"Remove"})})]})]})]})})}},78321:function(e,n,l){"use strict";var t=l(77191),s=(l(67294),l(85893));n.Z=function(e){return(0,t.Z)(e),(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6795 8.98559C17.1568 4.85786 13.6942 1.82947 9.70095 2.00746C5.70766 2.18545 2.5061 5.51087 2.32379 9.67002V9.70404C2.31547 9.81345 2.31547 9.92285 2.31547 10.0336C2.30654 13.0812 3.96128 15.8691 6.58251 17.2228C6.89393 17.385 7.27255 17.2534 7.42817 16.929C7.58379 16.6046 7.45749 16.2102 7.14607 16.0481C6.40768 15.6641 5.74629 15.137 5.1973 14.4951C5.15545 14.446 5.14515 14.3759 5.17099 14.316C5.19684 14.2561 5.25402 14.2176 5.31706 14.2176H7.03656C7.10063 14.2173 7.15864 14.257 7.18385 14.3183C7.29571 14.5905 7.41739 14.8633 7.54889 15.1368C7.70486 15.4611 8.08362 15.5922 8.39487 15.4297C8.70611 15.2672 8.83198 14.8727 8.67601 14.5485C8.57013 14.3261 8.47129 14.1057 8.3795 13.8874C8.36342 13.8499 8.36159 13.8075 8.37437 13.7686C8.39578 13.7018 8.4066 13.6317 8.40639 13.5612C8.40692 13.3239 8.2845 13.1048 8.08619 12.9881C8.0515 12.9681 8.02524 12.9352 8.01254 12.8961C7.76361 12.1368 7.59776 11.3506 7.51815 10.5526C7.51341 10.5056 7.5281 10.4588 7.55853 10.4237C7.58896 10.3887 7.63227 10.3689 7.67761 10.3691H8.09259C8.32263 10.3768 8.53841 10.2533 8.6556 10.047C8.77279 9.84061 8.77279 9.58416 8.6556 9.37781C8.53841 9.17147 8.32263 9.04799 8.09259 9.05563H7.65904C7.61437 9.05559 7.57175 9.03612 7.54147 9.00192C7.51119 8.96772 7.496 8.92189 7.49957 8.87551C7.55963 8.10995 7.7144 7.35567 7.96003 6.63142C7.98297 6.56502 8.04342 6.52073 8.11117 6.52068H11.9453C12.0129 6.52061 12.0732 6.56499 12.0958 6.63142C12.2374 7.04799 12.3489 7.475 12.4294 7.9089C12.4857 8.21827 12.7452 8.44231 13.0474 8.44257C13.0876 8.44249 13.1277 8.43847 13.1672 8.43056C13.3314 8.39762 13.4763 8.29806 13.57 8.1538C13.6636 8.00954 13.6984 7.83241 13.6667 7.66141C13.6082 7.3501 13.5365 7.04146 13.4515 6.73548C13.4374 6.68509 13.4469 6.63072 13.4771 6.58872C13.5074 6.54673 13.5548 6.52201 13.6052 6.52201H15.4438C15.5 6.52191 15.552 6.55257 15.5809 6.60273C16.0297 7.38425 16.3198 8.25338 16.4333 9.15636C16.4623 9.38873 16.6082 9.5873 16.8159 9.67728C17.0236 9.76725 17.2617 9.73495 17.4403 9.59256C17.619 9.45016 17.7111 9.21929 17.6821 8.98692L17.6795 8.98559ZM7.55721 3.82562C7.62165 3.79751 7.69615 3.81617 7.74127 3.87173C7.7864 3.92728 7.79174 4.0069 7.75446 4.06845C7.55041 4.4063 7.36379 4.75524 7.19538 5.11378C7.16844 5.17105 7.11251 5.2073 7.05129 5.20717H5.95683C5.88985 5.20704 5.83004 5.16349 5.8069 5.09802C5.78375 5.03255 5.80218 4.959 5.85308 4.91365C6.36364 4.46129 6.93853 4.09424 7.55721 3.82562ZM6.60044 12.8387C6.63042 12.7969 6.64011 12.7429 6.6267 12.6926C6.43091 11.9833 6.30011 11.2563 6.23605 10.5212C6.22904 10.435 6.15966 10.3688 6.07659 10.3691H3.75639C3.71173 10.369 3.66905 10.3883 3.63865 10.4224C3.60825 10.4564 3.59289 10.5022 3.59628 10.5486C3.65166 11.329 3.83739 12.0934 4.14511 12.8074C4.17105 12.8671 4.22818 12.9055 4.29113 12.9054H6.47236C6.5228 12.9056 6.57034 12.8809 6.60044 12.8387ZM6.22196 8.90086C6.21655 8.98841 6.14671 9.05648 6.0625 9.0563H3.83259C3.78516 9.05591 3.74026 9.03399 3.70964 8.99626C3.68021 8.95905 3.6676 8.91042 3.67505 8.86284C3.80984 8.06431 4.08351 7.29815 4.48261 6.60206C4.51144 6.55114 4.56418 6.52011 4.62094 6.52068H6.43586C6.4862 6.52089 6.53357 6.54556 6.56394 6.58739C6.59414 6.62941 6.60341 6.68387 6.58891 6.73415C6.39069 7.44019 6.26763 8.16679 6.22196 8.90086ZM8.71518 5.12302C8.74363 5.17498 8.79661 5.20709 8.85404 5.20717H11.2011C11.2587 5.20752 11.312 5.
117548 11.3406 5.12336C11.3691 5.07124 11.3684 5.00714 11.3388 4.95568C11.0163 4.39375 10.6455 3.86346 10.2309 3.37133C10.2011 3.33546 10.158 3.31458 10.1124 3.31396H9.94209C9.89653 3.3145 9.85338 3.33539 9.82362 3.37133C9.40917 3.86338 9.03856 4.39368 8.71635 4.95568C8.68718 5.0072 8.68673 5.07106 8.71518 5.12302ZM12.2962 4.06711C12.2595 4.00558 12.2651 3.92638 12.3101 3.87112C12.3551 3.81587 12.4292 3.79721 12.4935 3.82496C13.1141 4.09344 13.691 4.46072 14.2034 4.91365C14.2549 4.95858 14.2739 5.03238 14.2508 5.09815C14.2277 5.16392 14.1675 5.20753 14.1003 5.20717H12.9956C12.9342 5.20734 12.8781 5.17075 12.8515 5.11311C12.6843 4.75445 12.499 4.40529 12.2962 4.06711Z",fill:"#B7BECB"}),(0,s.jsx)("path",{d:"M9.79636 12.83C9.70425 12.83 9.62959 12.9047 9.62959 12.9968V15.9987C9.62959 16.0908 9.70425 16.1655 9.79636 16.1655H10.7436C10.8357 16.1655 10.9104 16.0908 10.9104 15.9987V12.9968C10.9104 12.9047 10.8357 12.83 10.7436 12.83H9.79636Z",fill:"#B7BECB"}),(0,s.jsx)("path",{d:"M12.1912 12.9968C12.1912 12.9047 12.2659 12.83 12.358 12.83H13.3052C13.3974 12.83 13.472 12.9047 13.472 12.9968V15.9987C13.472 16.0908 13.3974 16.1655 13.3052 16.1655H12.358C12.2659 16.1655 12.1912 16.0908 12.1912 15.9987V12.9968Z",fill:"#B7BECB"}),(0,s.jsx)("path",{d:"M14.9196 12.83C14.8275 12.83 14.7528 12.9047 14.7528 12.9968V15.9987C14.7528 16.0908 14.8275 16.1655 14.9196 16.1655H15.8669C15.959 16.1655 16.0336 16.0908 16.0336 15.9987V12.9968C16.0336 12.9047 15.959 12.83 15.8669 12.83H14.9196Z",fill:"#B7BECB"}),(0,s.jsx)("path",{d:"M16.377 16.9994H9.33246C9.0672 16.9994 8.85215 17.2234 8.85215 17.4997C8.85215 17.776 9.0672 18 9.33246 18H16.377C16.6422 18 16.8573 17.776 16.8573 17.4997C16.8573 17.2234 16.6422 16.9994 16.377 16.9994Z",fill:"#B7BECB"}),(0,s.jsx)("path",{d:"M13.1179 9.56528L16.8175 11.4918H16.8188C16.9515 11.5611 17.0211 11.7163 16.987 11.8668C16.9528 12.0173 16.8238 12.1236 16.6754 12.1236H8.99046C8.84214 12.1233 8.71344 12.0169 8.67944 11.8665C8.64545 11.7161 8.71505 11.5611 8.84765 11.4918L12.546 9.56528C12.7262 9.47252 12.9377 9.47252 13.1179 9.56528Z",fill:"#B7BECB"})]})}},12126:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return ie}});var t=l(67294),s=l(15043),a=l(59499),i=l(16835),o=l(20886),r=l(41609),c=l.n(r),d=l(8494),u=l(78115),x=l(85893),m=function(e){var n,l,t,a=e.languages,i=(0,u.kV)();return(0,x.jsxs)("div",{className:"px-4 flex space-y-4 flex-col w-full m-auto text-center max-w-[220px] md:max-w-[409px] items-center mt-[72px] md:mt-[108px]",children:[(0,x.jsx)("p",{className:"text-2xl font-serif font-bold",children:null!==(n=null===a||void 0===a?void 0:a.you_have_currently_no_transactions)&&void 0!==n?n:"You have currently no transactions"}),(0,x.jsx)("p",{className:"text-grey-7",children:null!==(l=null===a||void 0===a?void 0:a.get_yourself_rolling_by_purchasing_coins)&&void 0!==l?l:"Get yourself rolling by purchasing coins"}),(0,x.jsx)(s.zx,{className:"h-12",onClick:function(){return i(!0)},children:(0,x.jsxs)("p",{className:"text-white px-6 py-1",children:[" ",null!==(t=null===a||void 0===a?void 0:a.buy_coins)&&void 0!==t?t:"Buy coins"]})})]})},f=l(24697),v=l(94184),h=l.n(v),p=l(42708),j=(l(87794),l(12761)),b=(l(54313),l(88767),l(12214)),y=l(18991),g=l(81147),N=l(58868),C=l(64868),w=l(60754),_=l(30381),k=l.n(_);var Z=function(e){var n=e.transactions,l=e.addMonth,s=e.languages,a=(0,t.useRef)(),i=(0,t.useRef)(0),o=(0,t.useRef)(null);return(0,t.useCallback)((function(e){var t,s=n[null!==(t=e.startIndex)&&void 0!==t?t:0];return null===l||void 0===l||l(k()(null===s||void 0===s?void 0:s.createdAt).month()),(0,w.MK)(e)}),[l,n]),(0,N.L)((function(){var e,n;i.current=null!==(e=null===(n=o.current)||void 0===n?void 0:n.offsetTop)&&void 0!==e?e:0}),[]),(0,x.jsx)("div",{className:"mt-2",ref:a,children:(0,x.jsx)("div",{className:"*:absolute *:top-0 *:left-0 *:w-full",children:n.map((function(e,l){var t;return(0,x.jsx)("div",{children:(0,x.jsx)(C.Z,{index:l,prev:n[null!==(t=l-1)&&void 0!==t?t:0],transaction:e,languages:s})},null===e||void 0===e?void 0:e.id)}))})})},O=l(57821),S=l(52543),E=l(41423);function M(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),l.push.apply(l,t)}return l}var B=(0,S.Z)((function(e){return{root:{textTransform:"none",color:"var(--grey-7)",marginLeft:8,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),lineHeight:"18px",minHeight:"30px"},selected:{borderRadius:100,backgroundColor:"#fff",color:"var(--grey-10)"}}}))((function(e){return(0,x.jsx)(E.Z,function(e){for(var n=1;n<arguments.length;n++){var l=null!=arguments[n]?arguments[n]:{};
1n%2?M(Object(l),!0).forEach((function(n){(0,a.Z)(e,n,l[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):M(Object(l)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(l,n))}))}return e}({disableRipple:!0},e))}));function P(e){var n=e.month,l=e.onSelectMonth,t=function(){var e=(new Date).getMonth()+1;return Array.from({length:12},(function(n,l){return(e+l)%12||12}))}(),s=t.indexOf(n);return(0,x.jsx)(O.Z,{TabIndicatorProps:{style:{display:"none"}},value:s,onChange:function(e,n){null===l||void 0===l||l(t[n])},scrollButtons:"off",variant:"scrollable",children:t.map((function(e){return(0,x.jsx)(B,{label:k()().month(e-1).format("MMMM")},e)}))})}var z=function(e){var n=e.onSelectMonth,l=e.onClear,t=e.month;return(0,x.jsx)("header",{className:"sticky border-b border-solid border-[#E8EAEE] bg-grey-2 z-10 top-0 md:top-20 inset-x-0",children:(0,x.jsxs)("div",{className:"pt-4 relative w-full",children:[(0,x.jsxs)("div",{className:"relative mb-4 flex items-center w-full",children:[(0,x.jsx)("button",{onClick:l,type:"button",className:"left-0 ml-4",children:(0,x.jsx)(g.Z,{size:24,fill:"#B7BECB"})}),(0,x.jsx)("div",{className:"font-semibold text-sm absolute left-1/2 -translate-x-1/2 ",children:(0,x.jsx)("span",{children:"Transactions"})})]}),(0,x.jsx)(P,{month:t,onSelectMonth:n})]})})};function T(e){var n=k()().year();return function(e){return k()({month:e-1}).isAfter(k()(),"month")}(e)?n-1:n}var I=l(11163);function A(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),l.push.apply(l,t)}return l}function H(e){for(var n=1;n<arguments.length;n++){var l=null!=arguments[n]?arguments[n]:{};n%2?A(Object(l),!0).forEach((function(n){(0,a.Z)(e,n,l[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):A(Object(l)).forEac
1h((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(l,n))}))}return e}var L=function(e){var n=e.isWalletInView,l=e.className,s=e.children,a=e.languages,r=(0,p.YD)({threshold:.1}),u=r.ref,v=r.inView,N=(0,I.useRouter)(),C=(0,t.useState)(""),w=C[0],_=(C[1],(0,t.useState)(null)),O=_[0],S=_[1],E=(0,t.useState)({}),M=E[0],B=E[1],P=(0,f.Nr)(w,300),A=(0,i.Z)(P,1)[0],L=(0,f.y1)((function(e){return S(e+1)}),100,{leading:!0}),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.variables,l=void 0===n?{}:n,t=e.options;return(0,y.w)([b.Z.FINANCE.GET_TRANSACTIONS,l],{queryURL:j.b.FINANCE.TRANSACTIONS,variables:l,options:t})}({variables:H(H({},M),{},{search:A})}),R=D.data,V=D.fetchNextPage,Y=D.isFetchingNextPage,W=D.hasNextPage,F=D.isLoading,U=(0,t.useCallback)((function(){W&&V()}),[V,W]);(0,t.useEffect)((function(){v&&U()}),[v,U]);var X=(0,t.useMemo)((function(){return F&&!Y?(0,x.jsx)(o.Z,{className:"mt-5"}):c()(R)?(0,x.jsx)(m,{languages:a}):(0,x.jsx)(Z,{addMonth:function(e){return L(e)},transactions:R})}),[L,Y,F,a,R]);return(0,x.jsxs)("div",{className:h()("flex flex-col relative",l),children:[(!n||!c()(M))&&(0,x.jsx)(z,{onClear:function(){c()(M)&&window.scrollTo(0,0),B({})},month:O,onSelectMonth:function(e){var n=function(e,n){return{from:k()({year:n,month:e-1}).startOf("month").format("YYYY-MM-DD"),to:k()({year:n,month:e-1}).endOf("month").format("YYYY-MM-DD")}}(e,T(e));B(n),S(e)}}),(0,x.jsxs)("div",{class:"px-4",children:[c()(M)&&(0,x.jsxs)("div",{className:"px-4 mt-6",children:[(0,x.jsx)("div",{className:"h-10 mb-1",children:(0,x.jsx)("button",{className:"size-6",onClick:function(){return N.back()},children:(0,x.jsx)(g.Z,{fill:"var(--grey-4)",size:24})})}),(0,x.jsx)("h2",{className:"mb-2 text-2xl font-semibold",children:"Wallet"}),s]}),X,W&&(0,x.jsx)("div",{ref:u,className:"flex justify-center items-center py-4",children:(0,x.jsx)(d.Z,{})})]})]})},D=l(41229),R=l(92077),V=l.n(R),Y=l(95538),W=l(26632),F=l(14416),U=l(20866),X=l(89497),G=l(98442),J=(l(56239),l(60155)),Q=l(50555),q=(l(38804),l(87424)),K=(l(16062),l(55678)),$=l(30322),ee=function(e){var n=e.type,l=void 0===n?"supercoins":n,t=e.value,a=e.setValue,i={label:"supercoins"===l?"Supercoins":"Joicoins",icon:"supercoins"===l?(0,x.jsx)(s.cL,{size:24}):(0,x.jsx)(U.Z,{size:24})};return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)("label",{className:"text-sm font-medium",children:i.label}),(0,x.jsxs)("div",{className:"flex bg-primary-0 p-4 items-center rounded",children:[i.icon,(0,x.jsx)("input",{value:t,disabled:"joicoins"===l,onChange:function(e){var n=e.target.value;""!==n?/^\d*\.?\d*$/.test(n)&&a(n.endsWith(".")?n:Number(n)):a("")},className:"bg-transparent *flex-1 text-2xl font-semibold w-full text-right",placeholder:0})]})]})},ne=function(e){var n=e.showModal,l=e.setShowModal,a=(0,G.dD)(),i=(0,F.v9)((function(e){var n;return null===(n=e.payment)||void 0===n?void 0:n.wallet})),o=(0,t.useState)(null),r=o[0],c=o[1],d=(0,t.useState)(0),u=d[0],m=d[1],f=(0,q.gu)().calculate,v=(0,q.Qp)(),h=v.mutate,p=v.isLoading;(0,t.useMemo)((function(){null!==r&&m((0,D.uf)(f(r)))}),[r]);var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;(0,K.Am)((0,x.jsx)($.Z,{type:e,title:n,description:l}),{autoClose:3e3,progressStyle:{background:"none"}})},b=function(){r<=0||u<=0?j("error","Invalid Supercoin value","The Supercoin to be converted must be more than 0."):r>(null===i||void 0===i?void 0:i.amountBalance)?j("warning","Insufficient Supercoins","You do not have enough Supercoins to perform this transaction."):h({amount:r},{onSuccess:function(){j("success","Conversion successful","You have successfully converted your Supercoins to Joicoins."),c("")}})};return(0,x.jsx)(X.Z,{open:n,onClose:function(){return l(!1)},noPadding:!0,children:(0,x.jsxs)("div",{className:"flex flex-col w-full h-full md:w-[644px]",children:[(0,x.jsxs)("div",{className:"flex flex-col m-4 md:m-6 *flex-1",children:[a?(0,x.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,x.jsx)(s.zx,{transparent:!0,onClick:function(){return l(!1)},children:(0,x.jsx)(J.dUf,{size:18,className:"text-grey-4"})}),(0,x.jsxs)("div",{className:"flex bg-primary-0 p-3 rounded-lg gap-2",children:[(0,x.jsx)("span",{className:"text-grey-7 text-xs",children:"Current balance"}),(0,x.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,x.jsx)(s.cL,{}),(0,x.jsx)("p",{className:"text-xs font-serif font-medium text-grey-10",children:(0,D.uf)(null===i||void 0===i?void 0:i.amountBalance)})]}),(0,x.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,x.jsx)(U.Z,{}),(0,x.jsx)("p",{className:"text-xs font-serif text-grey-10",children:(0,D.uf)(null===i||void 0===i?void 0:i.joicoinBalance)})]})]})]}):(0,x.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,x.jsxs)("div",{className:"flex bg-primary-0 p-3 rounded-lg gap-2",children:[(0,x.jsx)("span",{className:"text-grey-7 text-xs",children:"Current balance"}),(0,x.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,x.jsx)(s.cL,{}),(0,x.jsx)("p",{className:"text-xs font-serif font-medium text-grey-10",children:(0,D.uf)(null===i||void 0===i?void 0:i.amountBalance)})]}),(0,x.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,x.jsx)(U.Z,{}),(0,x.jsx)("p",{className:"text-xs font-serif text-grey-10",children:(0,D.uf)(null===i||void 0===i?void 0:i.joicoinBalance)})]})]}),(0,x.jsx)(s.zx,{transparent:!0,onClick:function(){return l(!1)},children:(0,x.jsx)(Q.AC,{})})]}),(0,x.jsxs)("div",{className:"flex items-center gap-3 mt-3 w-full",children:[(0,x.jsx)("h1",{className:"text-2xl font-semibold",children:"Convert"}),(0,x.jsx)(Q.kI,{size:20})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-3 mt-3 w-full",children:[(0,x.jsx)(ee,{value:r,setValue:c,type:"supercoins"}),(0,x.jsx)(ee,{value:u,setValue:m,type:"joicoins"})]}),(0,x.jsx)("div",{className:"text-xs text-grey-7 mt-5",children:"By convert
1ing Supercoins to Joicoins, you acknowledge that this transaction is irreversible. This conversion privilege is granted exclusively to selected creators as a way to utilise Supercoins received from their fanbase. By clicking \u201cConvert now\u201d you agree to those terms."})]}),(0,x.jsx)("div",{className:"p-4 border-t mt-auto",children:(0,x.jsx)(s.zx,{type:"tertiary",disabled:p,className:"bg-black text-white py-3 w-full font-medium",onClick:b,children:"Convert now"})})]})})},le=(0,t.forwardRef)((function(e,n){var l=(0,F.v9)((function(e){var n;return null===(n=e.auth)||void 0===n?void 0:n.user})),a=(0,u.m_)().data,o=(0,u.X1)(),r=(0,i.Z)(o,3),c=(r[0],r[1]),d=(r[2],(0,t.useState)(!1)),m=d[0],f=d[1],v=(0,t.useState)(!1),h=v[0],p=v[1],j=(0,t.useState)(!1),b=j[0],y=j[1],g=(0,u.kV)();return(0,x.jsxs)("div",{ref:n,children:[(0,x.jsxs)("div",{className:"flex w-full justify-between",children:[(0,x.jsxs)("h3",{className:"flex text-[32px] leading-[48px] font-serif font-bold items-center",children:[V()((0,D.FH)(null===a||void 0===a?void 0:a.amountBalance,2)).format("0,0.[00]"),(0,x.jsx)(s.cL,{size:24,className:"mr-2"})]}),(0,x.jsxs)("h3",{className:"flex text-[32px] leading-[48px] font-serif font-bold items-center",children:[V()((0,D.FH)(null===a||void 0===a?void 0:a.joicoinBalance,2)).format("0,0.[00]"),(0,x.jsx)(U.Z,{size:24,className:"ml-2"})]})]}),(0,x.jsxs)("div",{className:"*flex-1 mt-4 flex items-center space-x-4",children:[(0,x.jsx)(s.zx,{onClick:function(){return g(!0)},transparent:!0,className:"text-white bg-grey-10 flex justify-center font-medium text-center rounded-lg w-full py-3 px-4 ",children:"Buy coins"}),(null===l||void 0===l?void 0:l.canWithdraw)&&(0,x.jsx)(s.zx,{onClick:function(){var e,n;(null===c||void 0===c||null===(e=c.needVerify)||void 0===e||null===(n=e.currently_due)||void 0===n?void 0:n.length)>0?p(!0):f(!0)},transparent:!0,className:"border border-grey-10 bg-white flex justify-center text-center rounded-lg w-full py-2 px-3 ",children:"Withdraw"})]}),(null===l||void 0===l?void 0:l.canConvertCoin)&&(0,x.jsx)(s.zx,{type:"secondary",onClick:function(){return y(!0)},className:" flex justify-center text-center font-medium rounded-lg w-full py-2 px-3 mt-4 text-primary-5",children:"Convert to Joicoins"}),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Y.Z,{showModal:m,setShowModal:f,customAccount:c}),(0,x.jsx)(W.Z,{showModal:h,setShowModal:p}),(0,x.jsx)(ne,{showModal:b,setShowModal:y})]})]})}));le.displayName="WalletHeader";var te=(0,t.memo)(le),se=function(e){var n=e.languages,l=(0,p.YD)(),t=l.ref,s=l.inView;return(0,x.jsx)(L,{isWalletInView:s,languages:n,children:(0,x.jsx)(te,{ref:t})})},ae=l(44488),ie=function(e){var n,l=e.setting,t=(0,ae.x)({pageCode:j.g.SCREEN.WALLET}),a=t.isLoading,i=t.data;return a?(0,x.jsx)(o.Z,{}):(0,x.jsx)(s.M5,{cleanCss:!0,bodyClassnames:"pb-12 md:pt-12 pt-6 md:px-0 max-w-[1320px] mx-auto",className:"pb-12 ",title:null!==(n=null===i||void 0===i?void 0:i.creator_title)&&void 0!==n?n:"Creator Content",setting:l,children:(0,x.jsx)(se,{languages:i})})}},32586:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creator/wallet",function(){return l(12126)}])}},function(e){e.O(0,[260,1228,5445,9866,2876,3874,1778,2013,5937,2678,4617,8413,8307,3609,4683,4090,6556,279,5675,4040,2885,1746,9564,436,390,4872,4830,9058,1677,434,9288,7803,9774,2888,179],(function(){return n=32586,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.