1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[866],{8719:function(e,l,a){a.d(l,{Z:function(){return WalletInfo}});var s=a(5893),t=a(7294),n=a(5150),i=a(8985),r=a(9473),o=a(7765),d=a(5005),c=a(8837),x=a(1555),h=a(4051),m=a(9573),p=a(6338),u=a(2175),f=a(6310),j=a(3830),N=a(7039),w=a(7471),b=a(6515);function DropdownField(e){var l;let{className:a="",classNameLabel:t="",classNameDropdown:i="",formik:r,label:o,name:d,options:c=[{key:"Please Select",value:null}],optionsLabel:x="label",values:h,placeholder:m="Please Select",onChange:p,errors:u,touched:f,disabled:j,span:N}=e;return(0,s.jsxs)("div",{className:a,children:[(0,s.jsx)("label",{className:"form-label ".concat(t),children:o}),(0,s.jsx)(b.Z,{className:"mb-3",children:(0,s.jsxs)(w.Z,{disabled:j,children:[(0,s.jsx)(w.Z.Toggle,{className:"form-input ".concat(i),style:{zIndex:"1",textAlign:"center"},children:h&&d&&h[d]?null===(l=h[d])||void 0===l?void 0:l.key:m}),!j&&(0,s.jsx)(w.Z.Menu,{children:c.map((e,l)=>{var a;return(0,s.jsx)(w.Z.Item,{className:(null===(a=h[d])||void 0===a?void 0:a.key)===e.key?"active":"",onClick:()=>{r?r.setFieldValue(d,e):p&&p(e)},children:N?(0,s.jsx)("span",{children:e[x]}):e[x]},l)})})]})}),u&&u[d]&&f&&f[d]&&(0,s.jsx)("div",{className:"error-msg",children:(0,s.jsx)(n.Z,{text:u[d]})})]})}function ModalAddCrypto(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:c}=(0,m.$G)(),[x,w]=(0,t.useState)(!1),{chainOption:b}=(0,r.v9)(e=>e.common),C=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),walletAddress:f.Z_().required("Please enter your wallet address"),chainType:f.Z_().required("Please select chain type")}),[y,v]=(0,t.useState)({withdrawInfoName:"",walletAddress:"",chainType:null,withdrawType:"CRYPTO_WITHDRAW"}),g=(0,u.TA)({enableReinitialize:!0,initialValues:y,validationSchema:C,onSubmit:e=>{w(!0),i((0,o.Pf)({...e,withdrawInfoName:e.withdrawInfoName,walletAddress:e.walletAddress,chainType:e.chainType})).unwrap().then(e=>{w(!1),(0,N.x9)(c("Create Crypto Wallet Success")),a(),g.resetForm()}).catch(e=>{var l,a;w(!1);let s=null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.message;(0,N._N)(c("Create Crypto Wallet Fail"),s)})}}),{handleSubmit:Z,handleChange:A,values:k,errors:F,touched:I}=g;return(0,t.useEffect)(()=>{if(l)return()=>g.resetForm()},[l]),(0,s.jsx)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:(0,s.jsxs)(p.Z.Body,{children:[(0,s.jsx)("div",{className:"modal-close-btn",onClick:()=>a(),children:"\xd7"}),(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:Z,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Add New Crypto Wallet"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:A,placeholder:c("Fill in wallet name"),values:k.withdrawInfoName,errors:F,touched:I})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"walletAddress",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Wallet Address"}),onChange:A,placeholder:c("Please enter wallet address"),values:k.walletAddress,errors:F,touched:I})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(DropdownField,{name:"chainType",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Chain Type"}),placeholder:"Please Select",values:{chainType:{key:k.chainType}},options:b,optionsLabel:"chain",onChange:e=>{g.setFieldValue("chainType",e.chain)},errors:F,touched:I})})}),(0,s.jsx)(h.Z,{className:"m-0 buttons",children:(0,s.jsx)(d.Z,{type:"submit",className:"mt-4 form-button",disabled:x,children:(0,s.jsx)("label",{style:{padding:"6px 12px"},children:(0,s.jsx)(n.Z,{text:"Confirm"})})})})]})})]})})}function ModalEditCrypto(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:c}=(0,m.$G)(),[x,w]=(0,t.useState)(!1),{chainOption:b}=(0,r.v9)(e=>e.common),C=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),walletAddress:f.Z_().required("Please enter your wallet address"),chainType:f.Z_().required("Please select chain type")}),y={withdrawInfoName:l.withdrawInfoName,walletAddress:l.walletAddress,chainType:l.chainType,withdrawType:"CRYPTO_WITHDRAW"},v=(0,u.TA)({enableReinitialize:!0,initialValues:y,validationSchema:C,onSubmit:e=>{w(!0),i((0,o.Pf)({...e,id:l.id})).unwrap().then(e=>{w(!1),(0,N.x9)(c("Edit Crypto Wallet Success")),a()}).catch(e=>{var l,a;w(!1);let s=null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.message;(0,N._N)(c("Edit Crypto Wallet Fail"),s)})}}),{handleSubmit:g,handleChange:Z,setFieldValue:A,values:k,errors:F,touched:I}=v;return(0,s.jsx)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:(0,s.jsxs)(p.Z.Body,{children:[(0,s.jsx)("div",{className:"modal-close-btn",onClick:()=>a(),children:"\xd7"}),(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:g,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Edit Crypto Wallet"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:Z,placeholder:c("Fill in wallet name"),values:k.withdrawInfoName,errors:F,touched:I})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"walletAddress",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Wallet Address"}),onChange:Z,placeholder:c("Please enter wallet address"),values:k.walletAddress,errors:F,touched:I})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(DropdownField,{name:"chainType",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Chain Type"}),options:b,placeholder:"Please Select Chain Type",values:{chainType:{key:k.chainType}},optionsLabel:"chain",onChange:e=>{v.setFieldValue("chainType",e.chain)},errors:F,touched:I})})}),(0,s.jsx)(h.Z,{className:"m-0 buttons",children:(0,s.jsx)(d.Z,{type:"submit",className:"mt-4 form-button",disabled:x,children:(0,s.jsx)("label",{style:{padding:"6px 12px"},children:(0,s.jsx)(n.Z,{text:"Confirm"})})})})]})})]})})}function ModalDeleteCrypto(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:c}=(0,m.$G)(),[x,w]=(0,t.useState)(!1),{chainOption:b}=(0,r.v9)(e=>e.common),C=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),walletAddress:f.Z_().required("Please enter your wallet address"),chainType:f.Z_().required("Please select chain type")}),y={withdrawInfoName:l.withdrawInfoName,walletAddress:l.walletAddress,chainType:l.chainType,withdrawType:"CRYPTO_WITHDRAW"},v=(0,u.TA)({enableReinitialize:!0,initialValues:y,validationSchema:C,onSubmit:e=>{w(!0),i((0,o.YW)({...e,id:l.id})).unwrap().then(e=>{w(!1),(0,N.x9)(c("Delete Crypto Wallet Success")),a()}).catch(e=>{w(!1);let{message:l}=e;(0,N._N)(c("Delete Crypto Wallet Fail"),l)})}}),{handleSubmit:g,handleChange:Z,values:A,errors:k,touched:F}=v;return(0,s.jsx)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:(0,s.jsxs)(p.Z.Body,{children:[(0,s.jsx)("div",{className:"modal-close-btn",onClick:()=>a(),children:"\xd7"}),(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:g,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Do You Want To Delete Below Crypto Wallet ?"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:Z,placeholder:c("Fill in wallet name"),values:A.withdrawInfoName,disabled:!0})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"walletAddress",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Wallet Address"}),onChange:Z,placeholder:c("Please enter wallet address"),values:A.walletAddress,disabled:!0})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(DropdownField,{name:"chainType",className:"mt-4",label:(0,s.jsx)(n.Z,{text:"Chain Type"}),options:b,placeholder:"Please Select Chain Type",values:{chainType:{key:A.chainType}},optionsLabel:"chain",onChange:e=>{v.setFieldValue("chainType",e.chain)},disabled:!0})})}),(0,s.jsx)(h.Z,{className:"m-0 buttons",children:(0,s.jsx)(d.Z,{type:"submit",className:"mt-4 form-button",disabled:x,children:(0,s.jsx)("label",{style:{padding:"6px 12px"},children:(0,s.jsx)(n.Z,{text:"Confirm"})})})})]})})]})})}var C=a(5324);function Crypto(){let[e,l]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!1),[p,u]=(0,t.useState)(!1),{smBreakPoint:f,mdBreakPoint:j}=(0,C.Z)(),{bankInfo:N,currentPage:w,length:b,total:y}=(0,r.v9)(e=>e.profile),handleShowEditModal=e=>{i(e)},handleShowDeleteModal=e=>{u(e)},{t:v}=(0,m.$G)(),g=(0,r.I0)(),walletCryptoInfo=()=>{g((0,o.rH)({withdrawType:"CRYPTO_WITHDRAW",page:w,size:99999,status:"APPROVED"}))};return(0,t.useEffect)(()=>{walletCryptoInfo()},[g,w,b]),(0,s.jsxs)(s.Fragment,{children:[N.length>0?N.map((e,l)=>(0,s.jsx)(c.Z,{className:"d-flex",style:{width:"100%",marginTop:"15p
1x",padding:"15px 15px 25px 15px",flexDirection:"column",gap:"15px",borderRadius:"20px",background:"rgba(255, 255, 255, 0.15)",color:"#fff",cursor:"pointer"},onClick:l=>{l.stopPropagation(),handleShowEditModal(e)},children:(0,s.jsxs)(h.Z,{children:[(0,s.jsxs)(x.Z,{lg:6,children:[(0,s.jsx)("label",{style:{fontSize:"14px",fontWeight:"600"},children:e.withdrawInfoName}),(0,s.jsxs)("div",{style:{fontSize:"12px",fontWeight:"400",paddingTop:"15px",paddingBottom:"8px"},children:[v("Wallet Address"),":"," ",e.walletAddress?e.walletAddress:"-"]}),(0,s.jsxs)("div",{style:{fontSize:"12px",fontWeight:"400"},children:[v("Chain type"),": ",e.chainType]})]}),(0,s.jsx)(x.Z,{lg:6,className:"delete-crypto",style:{justifyContent:"end",display:"flex",position:j?"absolute":null,left:j?"-12px":null},children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",cursor:"pointer",onClick:l=>{l.stopPropagation(),handleShowDeleteModal(e)},children:[(0,s.jsx)("path",{d:"M15.554 3.45108H12.5374V2.39062C12.537 2.05507 12.4036 1.73337 12.1663 1.4961C11.929 1.25883 11.6073 1.12537 11.2718 1.125H6.72836C6.39281 1.12537 6.07111 1.25883 5.83383 1.4961C5.59656 1.73337 5.4631 2.05507 5.46274 2.39062V3.45108H2.44617C2.25969 3.45108 2.08084 3.52516 1.94898 3.65702C1.81712 3.78888 1.74304 3.96773 1.74304 4.15421C1.74304 4.34069 1.81712 4.51953 1.94898 4.65139C2.08084 4.78325 2.25969 4.85733 2.44617 4.85733H15.554C15.7404 4.85733 15.9193 4.78325 16.0511 4.65139C16.183 4.51953 16.2571 4.34069 16.2571 4.15421C16.2571 3.96773 16.183 3.78888 16.0511 3.65702C15.9193 3.52516 15.7404 3.45108 15.554 3.45108ZM6.86899 3.45108V2.53125H11.1311V3.45108H6.86899Z",fill:"#d3ff00"}),(0,s.jsx)("path",{d:"M14.358 5.75269C14.2657 5.75268 14.1743 5.77086 14.089 5.80619C14.0036 5.84153 13.9261 5.89332 13.8608 5.95861C13.7955 6.0239 13.7437 6.10142 13.7084 6.18673C13.6731 6.27204 13.6549 6.36347 13.6549 6.45581V13.8128C13.6424 14.2634 13.4518 14.6906 13.1249 15.001C12.798 15.3114 12.3615 15.4796 11.9108 15.4687H6.08917C5.63854 15.4796 5.20198 15.3114 4.8751 15.001C4.54821 14.6906 4.35763 14.2634 4.34509 13.8128V6.45581C4.34509 6.26933 4.27101 6.09049 4.13915 5.95863C4.00729 5.82676 3.82845 5.75269 3.64197 5.75269C3.45549 5.75269 3.27664 5.82676 3.14478 5.95863C3.01292 6.09049 2.93884 6.26933 2.93884 6.45581V13.8128C2.95159 14.6363 3.29039 15.4211 3.88096 15.9952C4.47153 16.5692 5.26565 16.8856 6.08917 16.875H11.9108C12.7343 16.8856 13.5285 16.5692 14.119 15.9952C14.7096 15.4211 15.0484 14.6363 15.0612 13.8128V6.45581C15.0612 6.36347 15.043 6.27204 15.0076 6.18673C14.9723 6.10142 14.9205 6.0239 14.8552 5.95861C14.7899 5.89332 14.7124 5.84153 14.6271 5.80619C14.5418 5.77086 14.4504 5.75268 14.358 5.75269Z",fill:"#d3ff00"}),(0,s.jsx)("path",{d:"M7.68054 13.1674V7.27979C7.68054 7.0933 7.60646 6.91446 7.4746 6.7826C7.34274 6.65074 7.1639 6.57666 6.97742 6.57666C6.79094 6.57666 6.61209 6.65074 6.48023 6.7826C6.34837 6.91446 6.27429 7.0933 6.27429 7.27979V13.1674C6.27429 13.3538 6.34837 13.5327 6.48023 13.6645C6.61209 13.7964 6.79094 13.8705 6.97742 13.8705C7.1639 13.8705 7.34274 13.7964 7.4746 13.6645C7.60646 13.5327 7.68054 13.3538 7.68054 13.1674Z",fill:"#d3ff00"}),(0,s.jsx)("path",{d:"M11.7257 13.1674V7.27979C11.7257 7.0933 11.6516 6.91446 11.5198 6.7826C11.3879 6.65074 11.2091 6.57666 11.0226 6.57666C10.8361 6.57666 10.6573 6.65074 10.5254 6.7826C10.3935 6.91446 10.3195 7.0933 10.3195 7.27979V13.1674C10.3195 13.3538 10.3935 13.5327 10.5254 13.6645C10.6573 13.7964 10.8361 13.8705 11.0226 13.8705C11.2091 13.8705 11.3879 13.7964 11.5198 13.6645C11.6516 13.5327 11.7257 13.3538 11.7257 13.1674Z",fill:"#d3ff00"})]})})]})})):(0,s.jsx)(h.Z,{className:"d-flex justify-content-center m-0",style:f?{padding:"5em"}:{padding:"10em"},children:(0,s.jsx)("div",{className:"w-auto d-grid",children:(0,s.jsx)("span",{className:"text-center text-empty",children:(0,s.jsx)(n.Z,{text:"No Records"})})})}),N.length<1?(0,s.jsx)(h.Z,{className:"m-0 buttons",children:(0,s.jsx)(d.Z,{className:"mt-4 button-form",onClick:()=>{l(!0)},children:(0,s.jsx)("label",{children:(0,s.jsx)(n.Z,{text:"Add New"})})})}):"",(0,s.jsx)(ModalAddCrypto,{showModal:e,handleClose:()=>{l(!1),walletCryptoInfo()}}),(0,s.jsx)(ModalEditCrypto,{showModal:a,handleClose:()=>{i(!1),walletCryptoInfo()}}),(0,s.jsx)(ModalDeleteCrypto,{showModal:p,handleClose:()=>{u(!1),walletCryptoInfo()}})]})}a(5675);var y=a(4309),v=a(7729),g=a(9366);function ModalAddFiat(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:d}=(0,m.$G)(),[c,w]=(0,t.useState)(!1),{xsBreakPoint:b,smBreakPoint:Z,mdBreakPoint:A}=(0,C.Z)(),k=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),bankName:f.Z_().required("Please enter bank name"),bankAccountName:f.Z_().required("Please enter bank account name"),bankAccountNo:f.Z_().required("Please enter bank account number")}),[F,I]=(0,t.useState)({withdrawType:"FIAT_WITHDRAW",bankName:"",bankAccountName:"",bankAccountNo:"",withdrawInfoName:""}),S=(0,u.TA)({enableReinitialize:!0,initialValues:F,validationSchema:k,onSubmit:e=>{w(!0),i((0,o.Pf)({...e,withdrawInfoName:e.withdrawInfoName,bankAccountName:e.bankAccountName,bankName:e.bankName,bankAccountNo:e.bankAccountNo})).unwrap().then(e=>{w(!1),(0,N.x9)(d("Create Fiat Wallet Success")),a(),S.resetForm()}).catch(e=>{var l;let{response:a}=e;w(!1);let s=null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.message;(0,N._N)(d("Create Fiat Wallet Fail"),s)})},onChange:e=>{S.handleChange(e)}}),{handleSubmit:P,handleChange:T,setFieldValue:W,values:R,errors:_,touched:z}=S;return(0,t.useEffect)(()=>()=>I({withdrawType:"FIAT_WITHDRAW",bankName:"",bankAccountName:"",bankAccountNo:"",withdrawInfoName:""}),[]),(0,t.useEffect)(()=>
1{if(l)return()=>S.resetForm()},[l]),(0,s.jsxs)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:[(0,s.jsx)(y.Z,{}),(0,s.jsx)(p.Z.Body,{style:{zIndex:"1",padding:Z?"0":"40px"},className:"modal-background-img",children:(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:P,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Add New Bank"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:T,placeholder:d("Fill in wallet name"),values:R.withdrawInfoName,errors:_,touched:z})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankName",label:(0,s.jsx)(n.Z,{text:"Bank Name"}),onChange:T,placeholder:d("Fill in bank name"),values:R.bankName,errors:_,touched:z})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountName",label:(0,s.jsx)(n.Z,{text:"Bank Account Name"}),onChange:T,placeholder:d("Fill in bank account name"),values:R.bankAccountName,errors:_,touched:z})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountNo",label:(0,s.jsx)(n.Z,{text:"Bank Account Number"}),onChange:T,placeholder:d("Fill in bank account number"),values:R.bankAccountNo,errors:_,touched:z})})}),(0,s.jsxs)(h.Z,{className:"m-0 buttons d-flex pt-3",style:{position:"relative"},children:[(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:a,children:(0,s.jsx)(g.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",zIndex:"2",textAlign:"center",color:" #CE38DF",position:"relative",fontFamily:"Poppins",fontSize:" 14px",fontWeight:"600"},onClick:a,children:(0,s.jsx)(n.Z,{text:"Cancel"})})]})}),(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:A?"35px":"0"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:P,children:(0,s.jsx)(v.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",color:" #ffffff",fontFamily:"Poppins",fontSize:" 14px",fontStyle:"normal",fontWeight:"600",position:"relative"},onClick:P,children:(0,s.jsx)(n.Z,{text:"Confirm"})})]})})]})]})})})]})}function ModalEditFiat(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:d}=(0,m.$G)(),{xsBreakPoint:c,smBreakPoint:w,mdBreakPoint:b}=(0,C.Z)(),[Z,A]=(0,t.useState)(!1),k=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),bankName:f.Z_().required("Please enter bank name"),bankAccountName:f.Z_().required("Please enter bank account name"),bankAccountNo:f.Z_().required("Please enter bank account number")}),F={withdrawType:"FIAT_WITHDRAW",bankName:l.bankName,bankAccountName:l.bankAccName,bankAccountNo:l.bankAccNo,withdrawInfoName:l.withdrawInfoName},I=(0,u.TA)({enableReinitialize:!0,initialValues:F,validationSchema:k,onSubmit:e=>{A(!0),i((0,o.Pf)({...e,id:l.id})).unwrap().then(e=>{A(!1),(0,N.x9)(d("Edit Fiat Wallet Success")),a()}).catch(e=>{var l;let{response:a}=e;A(!1);let s=null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.message;(0,N._N)(d("Edit Fiat Wallet Fail"),s)})},onChange:e=>{I.handleChange(e)}}),{handleSubmit:S,handleChange:P,values:T,errors:W,touched:R}=I;return(0,s.jsxs)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:[(0,s.jsx)(y.Z,{}),(0,s.jsx)(p.Z.Body,{style:{zIndex:"1",padding:w?"0":"40px"},className:"modal-background-img",children:(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:S,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Edit Bank"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:P,placeholder:d("Fill in wallet name"),values:T.withdrawInfoName,errors:W,touched:R})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankName",label:(0,s.jsx)(n.Z,{text:"Bank Name"}),onChange:P,placeholder:d("Fill in bank name"),values:T.bankName,errors:W,touched:R})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountName",label:(0,s.jsx)(n.Z,{text:"Bank Account Name"}),onChange:P,placeholder:d("Fill in bank account name"),values:T.bankAccountName,errors:W,touched:R})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountNo",label:(0,s.jsx)(n.Z,{text:"Bank Account Number"}),onChange:P,placeholder:d("Fill in bank account number"),values:T.bankAccountNo,errors:W,touched:R})})}),(0,s.jsxs)(h.Z,{className:"m-0 buttons d-flex pt-3",style:{position:"relative"},children:[(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:a,children:(0,s.jsx)(g.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",zIndex:"2",textAlign:"center",color:" #CE38DF",position:"relative",fontFamily:"Poppins",fontSize:" 14px",fontWeight:"600"},onClick:a,children:(0,s.jsx)(n.Z,{text:"Cancel"})})]})}),(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:b?"35px":"0"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:S,children:(0,s.jsx)(v.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",color:" #ffffff",fontFamily:"Poppins",fontSize:" 14px",fontStyle:"normal",fontWeight:"600",position:"relative"},onClick:S,children:(0,s.jsx)(n.Z,{text:"Confirm"})})]})})]})]})})})]})}function ModalDeleteFiat(e){let{showModal:l,handleClose:a}=e,i=(0,r.I0)(),{t:d}=(0,m.$G)(),{xsBreakPoint:c,smBreakPoint:w,mdBreakPoint:b}=(0,C.Z)(),[Z,A]=(0,t.useState)(!1),k=f.Ry().shape({withdrawInfoName:f.Z_().required("Please enter withdraw info name"),bankName:f.Z_().required("Please enter bank name"),bankAccountName:f.Z_().required("Please enter bank account name"),bankAccountNo:f.Z_().required("Please enter bank account number")}),F={withdrawType:"FIAT_WITHDRAW",bankName:l.bankName,bankAccountName:l.bankAccName,bankAccountNo:l.bankAccNo,withdrawInfoName:l.withdrawInfoName},I=(0,u.TA)({enableReinitialize:!0,initialValues:F,validationSchema:k,onSubmit:e=>{A(!0),i((0,o.YW)({...e,id:l.id})).unwrap().then(e=>{A(!1),(0,N.x9)(d("Delete Fiat Wallet Success")),a()}).catch(e=>{A(!1);let{message:l}=null==e?void 0:e.data;(0,N._N)(d("Delete Fiat Wallet Fail"),l)})},onChange:e=>{I.handleChange(e)}}),{handleSubmit:S,handleChange:P,setFieldValue:T,values:W,errors:R,touched:_}=I;return(0,s.jsxs)(p.Z,{show:l,onHide:a,className:"gradient-modal",children:[(0,s.jsx)(y.Z,{}),(0,s.jsx)(p.Z.Body,{style:{zIndex:"1",padding:w?"0":"40px"},className:"modal-background-img",children:(0,s.jsx)("div",{className:"main-content",children:(0,s.jsxs)("form",{className:"form-group register m-0",onSubmit:S,children:[(0,s.jsx)("label",{className:"header-form-label",style:{paddingBottom:"25px"},children:(0,s.jsx)(n.Z,{text:"Do You Want To Delete Below Fiat Wallet ?"})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"withdrawInfoName",label:(0,s.jsx)(n.Z,{text:"Wallet Name"}),onChange:P,placeholder:d("Fill in wallet name"),values:W.withdrawInfoName,disabled:!0})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankName",label:(0,s.jsx)(n.Z,{text:"Bank Name"}),onChange:P,placeholder:d("Fill in bank name"),values:W.bankName,disabled:!0})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountName",label:(0,s.jsx)(n.Z,{text:"Bank Account Name"}),onChange:P,placeholder:d("Fill in bank account name"),values:W.bankAccountName,disabled:!0})})}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(j.Z,{type:"text",name:"bankAccountNo",label:(0,s.jsx)(n.Z,{text:"Bank Account Number"}),onChange:P,placeholder:d("Fill in bank account number"),values:W.bankAccountNo,disabled:!0})})}),(0,s.jsxs)(h.Z,{className:"m-0 buttons d-flex pt-3",style:{position:"relative"},children:[(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:a,children:(0,s.jsx)(g.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",zIndex:"2",textAlign:"center",color:" #CE38DF",position:"relative",fontFamily:"Poppins",fontSize:" 14px",fontWeight:"600"},onClick:a,children:(0,s.jsx)(n.Z,{text:"Cancel"})})]})}),(0,s.jsx)(x.Z,{xs:12,sm:12,md:12,lg:6,style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:b?"35px":"0"},children:(0,s.jsxs)("div",{style:{position:"relative",width:"100%",justifyContent:"center",display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute"},onClick:S,children:(0,s.jsx)(v.Z,{})}),(0,s.jsx)("label",{style:{cursor:"pointer",color:" #ffffff",fontFamily:"Poppins",fontSize:" 14px",fontStyle:"normal",fontWeight:"600",position:"relative"},onClick:S,children:(0,s.jsx)(n.Z,{text:"Confirm"})})]})})]})]})})})]})}a(9842);var Z=a(7519);function Fiat(){let[e,l]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!1),[d,p]=(0,t.useState)(!1),{smBreakPoint:u}=(0,C.Z)(),{bankInfo:f,currentPage:j,length:N,total:w}=(0,r.v9)(e=>e.profile),handleShowAddModal=()=>{l(!0)},handleShowEditModal=e=>{i(e)},handleShowDeleteModal=e=>{p(e)},{t:b}=(0,m.$G)(),y=(0,r.I0)(),walletFiatInfo=()=>{y((0,o.rH)({withdrawType:"FIAT_WITHDRAW",page:j,size:99999,status:"APPROVED"}))};return(0,t.useEffect)(()=>{walletFiatInfo()},[y,j,N]),(0,s.jsxs)(s.Fragment,{children:[f.length>0?f.map((e,l)=>(0,s.jsx)(c.Z,{className:"d-flex",style:{width:"100%",marginTop:"15p
1x",padding:"15px 15px 25px 15px",flexDirection:"column",gap:"15px",borderRadius:"20px",background:"rgba(255, 255, 255, 0.15)",color:"#fff",cursor:"pointer"},onClick:l=>{l.stopPropagation(),handleShowEditModal(e)},children:(0,s.jsxs)(h.Z,{children:[(0,s.jsxs)(x.Z,{children:[(0,s.jsx)("label",{style:{fontSize:"14px",fontWeight:"600"},children:e.withdrawInfoName}),(0,s.jsxs)("div",{style:{fontSize:"12px",fontWeight:"400",paddingTop:"15px"},children:[b("Bank Name"),": ",e.bankName]}),(0,s.jsxs)("div",{style:{fontSize:"12px",fontWeight:"400",paddingTop:"8px",paddingBottom:"8px"},children:[b("Bank Account Name"),": ",e.bankAccName]}),(0,s.jsxs)("div",{style:{fontSize:"12px",fontWeight:"400"},children:[b("Bank Account Number"),": ",e.bankAccNo]})]}),(0,s.jsx)(x.Z,{className:"delete-crypto",style:{justifyContent:"end",display:"flex"},children:(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",cursor:"pointer",onClick:l=>{l.stopPropagation(),handleShowDeleteModal(e)},children:[(0,s.jsx)("path",{d:"M15.554 3.45108H12.5374V2.39062C12.537 2.05507 12.4036 1.73337 12.1663 1.4961C11.929 1.25883 11.6073 1.12537 11.2718 1.125H6.72836C6.39281 1.12537 6.07111 1.25883 5.83383 1.4961C5.59656 1.73337 5.4631 2.05507 5.46274 2.39062V3.45108H2.44617C2.25969 3.45108 2.08084 3.52516 1.94898 3.65702C1.81712 3.78888 1.74304 3.96773 1.74304 4.15421C1.74304 4.34069 1.81712 4.51953 1.94898 4.65139C2.08084 4.78325 2.25969 4.85733 2.44617 4.85733H15.554C15.7404 4.85733 15.9193 4.78325 16.0511 4.65139C16.183 4.51953 16.2571 4.34069 16.2571 4.15421C16.2571 3.96773 16.183 3.78888 16.0511 3.65702C15.9193 3.52516 15.7404 3.45108 15.554 3.45108ZM6.86899 3.45108V2.53125H11.1311V3.45108H6.86899Z",fill:"#F7A6FF"}),(0,s.jsx)("path",{d:"M14.358 5.75269C14.2657 5.75268 14.1743 5.77086 14.089 5.80619C14.0036 5.84153 13.9261 5.89332 13.8608 5.95861C13.7955 6.0239 13.7437 6.10142 13.7084 6.18673C13.6731 6.27204 13.6549 6.36347 13.6549 6.45581V13.8128C13.6424 14.2634 13.4518 14.6906 13.1249 15.001C12.798 15.3114 12.3615 15.4796 11.9108 15.4687H6.08917C5.63854 15.4796 5.20198 15.3114 4.8751 15.001C4.54821 14.6906 4.35763 14.2634 4.34509 13.8128V6.45581C4.34509 6.26933 4.27101 6.09049 4.13915 5.95863C4.00729 5.82676 3.82845 5.75269 3.64197 5.75269C3.45549 5.75269 3.27664 5.82676 3.14478 5.95863C3.01292 6.09049 2.93884 6.26933 2.93884 6.45581V13.8128C2.95159 14.6363 3.29039 15.4211 3.88096 15.9952C4.47153 16.5692 5.26565 16.8856 6.08917 16.875H11.9108C12.7343 16.8856 13.5285 16.5692 14.119 15.9952C14.7096 15.4211 15.0484 14.6363 15.0612 13.8128V6.45581C15.0612 6.36347 15.043 6.27204 15.0076 6.18673C14.9723 6.10142 14.9205 6.0239 14.8552 5.95861C14.7899 5.89332 14.7124 5.84153 14.6271 5.80619C14.5418 5.77086 14.4504 5.75268 14.358 5.75269Z",fill:"#F7A6FF"}),(0,s.jsx)("path",{d:"M7.68054 13.1674V7.27979C7.68054 7.0933 7.60646 6.91446 7.4746 6.7826C7.34274 6.65074 7.1639 6.57666 6.97742 6.57666C6.79094 6.57666 6.61209 6.65074 6.48023 6.7826C6.34837 6.91446 6.27429 7.0933 6.27429 7.27979V13.1674C6.27429 13.3538 6.34837 13.5327 6.48023 13.6645C6.61209 13.7964 6.79094 13.8705 6.97742 13.8705C7.1639 13.8705 7.34274 13.7964 7.4746 13.6645C7.60646 13.5327 7.68054 13.3538 7.68054 13.1674Z",fill:"#F7A6FF"}),(0,s.jsx)("path",{d:"M11.7257 13.1674V7.27979C11.7257 7.0933 11.6516 6.91446 11.5198 6.7826C11.3879 6.65074 11.2091 6.57666 11.0226 6.57666C10.8361 6.57666 10.6573 6.65074 10.5254 6.7826C10.3935 6.91446 10.3195 7.0933 10.3195 7.27979V13.1674C10.3195 13.3538 10.3935 13.5327 10.5254 13.6645C10.6573 13.7964 10.8361 13.8705 11.0226 13.8705C11.2091 13.8705 11.3879 13.7964 11.5198 13.6645C11.6516 13.5327 11.7257 13.3538 11.7257 13.1674Z",fill:"#F7A6FF"})]})})]})})):(0,s.jsx)(h.Z,{className:"d-flex justify-content-center m-0",style:u?{padding:"5em"}:{padding:"10em"},children:(0,s.jsx)("div",{className:"w-auto d-grid",children:(0,s.jsx)("span",{className:"text-center text-white",children:(0,s.jsx)(n.Z,{text:"No Records"})})})}),f.length<1?(0,s.jsxs)(h.Z,{className:"m-0 buttons",children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute",transform:"translate(-50%,0)",bottom:u?"-7%":"-4%",left:"50%"},onClick:handleShowAddModal,children:(0,s.jsx)(Z.Z,{})}
1),(0,s.jsx)("label",{style:{position:"relative",cursor:"pointer",zIndex:"2",textAlign:"center",color:"#FFFFFF"},onClick:handleShowAddModal,children:(0,s.jsx)(n.Z,{text:"Add New"})})]}):"",(0,s.jsx)(ModalAddFiat,{showModal:e,handleClose:()=>{l(!1),walletFiatInfo()}}),(0,s.jsx)(ModalEditFiat,{showModal:a,handleClose:()=>{i(!1),walletFiatInfo()}}),(0,s.jsx)(ModalDeleteFiat,{showModal:d,handleClose:()=>{p(!1),walletFiatInfo()}})]})}function WalletInfo(){(0,r.I0)();let[e,l]=(0,t.useState)("fiat"),{withdrawType:a,status:o}=(0,r.v9)(e=>e.profile);return(0,s.jsxs)("div",{className:"bank-container pt-2",children:[(0,s.jsx)(i.Z,{defaultIndex:0,callback:e=>l(e),controlRef:(0,t.useRef)(),segments:[{label:(0,s.jsx)("div",{onClick:()=>{l("fiat")},children:(0,s.jsx)(n.Z,{text:"Fiat"})}),value:"fiat",ref:(0,t.useRef)()}]}),"crypto"===e&&(0,s.jsx)(Crypto,{}),"fiat"===e&&(0,s.jsx)(Fiat,{})]})}},8090:function(e,l,a){a.d(l,{Z:function(){return ChangePassword}});var s=a(5893),t=a(2175),n=a(6310),i=a(7294),r=a(7039),o=a(1555),d=a(4051),c=a(1163),x=a(5150),h=a(9573),m=a(3830),p=a(9473),u=a(7765),f=a(4783),j=a(7519),N=a(5324),w=a(1954);function ChangePassword(){let{t:e}=(0,h.$G)(),l=(0,p.I0)(),a=(0,c.useRouter)(),[b,C]=(0,i.useState)(!1),{smBreakPoint:y}=(0,N.Z)(),v=n.Ry().shape({currentPassword:n.Z_().required("Please enter current password"),password:n.Z_().notOneOf([n.iH("currentPassword"),null],"Password must be different").required(),password2:n.Z_().required("Please confirm your password")}),g=(0,t.TA)({enableReinitialize:!0,initialValues:{currentPassword:"",password:"",password2:""},validationSchema:v,onSubmit:s=>{C(!0),l((0,u.Cp)({...s})).unwrap().then(s=>{C(!0),(0,r.x9)(e("Change Password Success")),localStorage.clear(),a.push("/"),l((0,f._e)())}).catch(e=>{var l,a;C(!1);let s=null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.message;(0,r._N)(s)})}}),{handleSubmit:Z,handleChange:A,values:k,errors:F,touched:I}=g;return(0,s.jsx)("div",{className:"pt-4",children:(0,s.jsxs)("form",{onSubmit:Z,children:[(0,s.jsxs)(d.Z,{children:[(0,s.jsxs)(o.Z,{className:"col-12",children:[(0,s.jsx)("label",{className:"profile-label",children:e("Current Password")}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(m.Z,{type:"password",name:"currentPassword",onChange:A,placeholder:e("Please enter current password"),values:k.currentPassword,errors:F,touched:I})})})]}),(0,s.jsxs)(o.Z,{className:"col-12",children:[(0,s.jsx)("label",{className:"profile-label",children:e("New Password")}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(m.Z,{type:"password",name:"password",onChange:A,placeholder:e("Please enter new password"),values:k.password,errors:F,touched:I})})})]}),(0,s.jsxs)(o.Z,{className:"col-12",children:[(0,s.jsx)("label",{className:"profile-label",children:e("Confirm New Password")}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(m.Z,{type:"password",name:"password2",onChange:A,placeholder:e("Please enter confirm new password"),values:k.password2,errors:F,touched:I})})})]})]}),(0,s.jsx)(d.Z,{children:(0,s.jsx)(o.Z,{className:"mt-4",style:{textAlign:"center",opacity:b?"0.6":"1"},children:(0,s.jsxs)("div",{style:{position:"relative"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute",transform:"translate(-50%,-50%)",top:"60%",left:"50%"},onClick:Z,children:(0,s.jsx)(j.Z,{})}),(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-center gap-2",children:[b&&(0,s.jsx)("div",{className:"d-flex align-items-center",children:(0,s.jsx)(w.JO,{icon:"eos-icons:loading",width:25,color:"#fff",style:{zIndex:"15"}})}),(0,s.jsx)("div",{children:(0,s.jsx)("label",{style:{cursor:"pointer",zIndex:"2",textAlign:"center",color:"#FFFFFF",position:"relative"},onClick:Z,children:(0,s.jsx)(x.Z,{text:"Submit"})})})]})]})})})]})})}},6019:function(e,l,a){a.d(l,{Z:function(){return Profile}});var s=a(5893),t=a(2175),n=a(7294),i=a(7039),r=a(1555),o=a(4051),d=a(5150),c=a(9573),x=a(3830),h=a(9473),m=a(7765),p=a(7519),u=a(1954),f=
1a(9569);function Profile(){let{userInfo:e}=(0,h.v9)(e=>e.common),[l,a]=(0,n.useState)(!1),j=(0,h.I0)(),{t:N}=(0,c.$G)(),w={username:e.username,fullName:e.fullName,phone:e.phone},b=(0,t.TA)({enableReinitialize:!0,initialValues:w,onSubmit:e=>{a(!0),j((0,m.gS)({...e})).unwrap().then(e=>{a(!1),(0,i.x9)(N("Edit Profile Success"))}).catch(e=>{a(!1),(0,i._N)(e.message)})}}),{handleSubmit:C,handleChange:y,values:v,errors:g,touched:Z}=b;return(0,n.useEffect)(()=>{j((0,f.bG)())},[]),(0,s.jsx)("div",{className:"pt-4",children:(0,s.jsxs)("form",{onSubmit:C,children:[(0,s.jsxs)(o.Z,{children:[(0,s.jsxs)(r.Z,{className:"col-12",children:[(0,s.jsx)("label",{htmlFor:"promotion",className:"profile-label",children:N("Username")}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(x.Z,{type:"text",name:"username",onChange:y,values:v.username,errors:g,touched:Z,disabled:!0})})})]}),(0,s.jsxs)(r.Z,{className:"col-12",children:[(0,s.jsx)("label",{htmlFor:"promotion",className:"profile-label",children:N("Full Name")}),(0,s.jsx)("div",{className:"profile-field",children:(0,s.jsx)("div",{className:"profile-input",children:(0,s.jsx)(x.Z,{type:"text",name:"fullName",onChange:y,values:v.fullName,errors:g,touched:Z})})})]})]}),(0,s.jsx)(o.Z,{children:(0,s.jsx)(r.Z,{className:"mt-4",style:{textAlign:"center",opacity:l?"0.6":"1"},children:(0,s.jsxs)("div",{style:{position:"relative"},children:[(0,s.jsx)("div",{style:{cursor:"pointer",position:"absolute",transform:"translate(-50%,-50%)",top:"55%",left:"50%"},onClick:C,children:(0,s.jsx)(p.Z,{})}),(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-center gap-2",children:[l&&(0,s.jsx)("div",{className:"d-flex align-items-center",children:(0,s.jsx)(u.JO,{icon:"eos-icons:loading",width:25,color:"#fff",style:{zIndex:"15"}})}),(0,s.jsx)("div",{children:(0,s.jsx)("label",{style:{cursor:"pointer",zIndex:"2",textAlign:"center",color:"#FFFFFF",position:"relative"},children:(0,s.jsx)(d.Z,{text:"Submit"})})})]})]})})})]})})}},951:function(e,l,a){a.d(l,{Z:function(){return ProfileHeader}});var s=a(5893),t=a(5675),n=a.n(t),i={src:"/_next/static/media/accountProfile.a7f67846.png",height:183,width:355,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAfUlEQVR42mNABk3ZO/Xbc4+Jogiun3WT7f/b/+w95Qecoz26LmSETl+1feFLuRNbXvPuWvaEg2Hd7FsmmxfcrVo66cKs9tLNz/trd1/cOP92z4Z5txo3zrttw9BVfoq/Oe+o/KzWhyINaQcdWrJP6rYXXxRpLTgu21tyiRUAg3k5lAY3YTsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},r=a(7693),o=a(5005),d=a(5150),c=a(1163);function ProfileHeader(){let e=(0,c.useRouter)();return(0,s.jsxs)("div",{className:"d-flex gap-3",children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,s.jsxs)(o.Z,{onClick:()=>e.push("/"),style:{background:"#FFFFFF",borderRadius:"5px",cursor:"pointer",gap:"15px",display:"flex",alignItems:"center",padding:"5px 15px",clipPath:"polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%)"},children:[(0,s.jsx)(n(),{src:r.Z,width:10,height:10}),(0,s.jsx)("label",{style:{color:"#190F33",cursor:"pointer"},children:(0,s.jsx)(d.Z,{text:"Back"})})]})}),(0,s.jsx)("div",{className:"d-flex",style:{alignItems:"center"},children:(0,s.jsx)(n(),{src:i,width:157,height:64})})]})}}}]);
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.