1import{e as C,cH as Z,g as me,j as s,I as de,t as c,eJ as H}from"./index-ePwWFRi3.js";import{d as oe}from"./Add-urbzbthg.js";import{d as ce}from"./accountDelete-B3XeU5sB.js";import{g as ue,p as he,R as Q}from"./paytm-gxniUHLZ.js";import{I as d}from"./InputTemplate-v8zoEUgR.js";import{T as ne}from"./TabPanel-Bk-AkiHp.js";import{f as je}from"./Withdrawal-CuMweITv.js";import{B as o}from"./Button-DVnPiWzl.js";import{T as xe}from"./Tabs-DCI78MlZ.js";import{F as U}from"./FormControlLabel-BOH9ehJP.js";import"./SwitchBase-BgTth2vt.js";import"./useControlled-DDD53nha.js";import"./useFormControl-CPUvMcaJ.js";import"./createSvgIcon-DkzKZIln.js";import"./agpayKeywordMapping-DFDetvEU.js";import"./UserRouter-CzzbX84q.js";import"./___vite-browser-external_commonjs-proxy-DwoBiO5t.js";import"./DialogActions-1l5OBIzS.js";import"./CustomButton-BtaGzRdp.js";import"./trackApkDownload-PL4YyPKe.js";import"./Tab-Bd-U1Dre.js";import"./debounce-DtXjJkxj.js";const le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAcCAYAAADlXHhOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAWwSURBVHgB7VlLbBtFGP7jPBqUR1dCIkggxXlWubSbC48L3RxaOBHnjkh6oieSqBJHanNEQnVu3OJIcODUwAnRQxwOSJyyqYRCnnZu9QHVealp4iR832p2NV6vvXZpadr4k0aenfnnn3//+V+zFqmjjlcZDdUSZjKZ6PHxsRWJRMyGhobLHDs7O9s5OTlJn56e2kNDQ1mpowShCl5fX7eg0LtoViU6KJuKnh4cHLSlDg9lFby0tGR0dnbOohuT2pDc3d1NDA8P56WOYAWvrKxEW1paFtCN6uPbD3fk8KAgVz58U0KQPTo6GqmHjQAFl1Ou/eCR/PLdmtO/dqNLRu9ckRDYsOSRi27JEf9Ac3NzXHzKJcwbb8vN271Of/lBThZ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DEjgVS8qAtzg2F9sP/wxVMPiFF+ORCC8SWakRtCK3j8w9icy/DAtybo542dCPJYoHw9c4ZLhGZSK5ZbF2HLrYRphK6bSIr6kAFnmV3AzwGEWI4DNr/Mm9vb1bRVUEte8miecBCJpwY+OLgJJ3Tj3GoZz7ohIOXjBZDQ8erjooKsgptRSv0Cs+QSuGDK4RTbHMIx/G446ODqvkXguCOBZcZ6AOY37ziz7JbR3ggnG5ZI4lDxQQr7A8zwNgB1fjcq7NvECL0pPkFJ5NuGiaD7CqCSQ+9pm9mXBs7D3vuipoZygLFDavyea4Oq1VufkI6CxMsTlWjZZiHzR2oVCo6IXwviSs31YVCWXIuzIEfnBnXAHBgl6O1AK+EA4q9iyx9HVDxf/kYBlJxhKpDQmcaFzqcBD6pyetGQE/7tZ+gUwQ5OFic7Da5IuMua8iavnb3kAsMvlRiAU+x9CnYm3GqXo4qKOO1xH/Aj79I++hREknAAAAAElFTkSuQmCC",Ke=({index:R,paymentOption:m,setPaymentOption:h,setUpiOption:y,tabValue:x,UpiOption:J,accountDetails:u,selectedAccountId:f,setDeleteId:X,setSelectedAccountId:V,setShowDeleteModal:L,loading:r,setAddAccount:W,setWithdrawAmount:P,setWithdrawNotes:_,submitOnlinePayment:pe,submitPayment:O,withdrawAmount:$,withdrawNotes:g,addAccount:l,accountNumber:p,setAccountNumber:n,submitDetails:b,bankName:D,branchName:a,holderName:N,ifscCode:ee,setBankName:F,setBranchName:E,setHolderName:j,setIfscCode:I,displayName:S,setDisplayName:A,setAccountDetails:se,paymentMethodsInfo:v,langData:e})=>{const[t,ie]=C.useState([]);C.useEffect(()=>{if(v.hasOwnProperty(Z.PGMAN)){const i=v[Z.PGMAN];ie(i)}},[v]),C.useEffect(()=>{x===R&&je(m,se)},[x]);const re=i=>{switch(i){case H.BANK_TRANSFER:return s.jsx(s.Fragment,{children:s.jsx(U,{value:"end",control:s.jsx(Q,{}),label:e==null?void 0:e.bank_transfer,checked:m==="BANK_TRANSFER",onChange:()=>{h("BANK_TRANSFER"),y("")},className:"radio"})});case H.UPI:return s.jsx(s.Fragment,{children:s.jsx(U,{value:"end",control:s.jsx(Q,{}),label:e==null?void 0:e.upi_method,checked:m==="GPAY",onChange:()=>{y("UPI"),h("GPAY")},className:"radio"})});default:return null}};return me(),s.jsx(s.Fragment,{children:s.jsx("div",{className:"support-container",children:s.jsx(de,{className:"as-ctn withdraw-ctn",children:s.jsxs(ne,{value:x,index:R,className:"payment-options",children:[s.jsxs("div",{className:"payment-option-title",children:[s.jsx("div",{className:"pay-method",children:e==null?void 0:e.pay_method}),t&&t.length>0&&t.map(i=>re(i))]}),s.jsxs("div",{children:[J?s.jsx(s.Fragment,{children:s.jsxs("div",{className:"upi-options",children:[s.jsx(o,{className:m==="GPAY"?"active payment-btn":"payment-btn",onClick:()=>h("GPAY"),children:s.jsx("img",{className:"payment-icon",alt:"gpay",src:ue,loading:"lazy"})}),s.jsx(o,{className:m==="PHONEPE"?"active payment-btn":"payment-btn",onClick:()=>h("PHONEPE"),children:s.jsx("img",{className:"payment-icon",alt:"phonepay",src:le,loading:"lazy"})}),s.jsx(o,{className:m==="PAYTM_WALLET"?"active payment-btn":"payment-btn",onClick:()=>h("PAYTM_WALLET"),children:s.jsx("img",{className:"payment-icon",alt:"paytm",src:he,loading:"lazy",height:30})})]})}):null,(u==null?void 0:u.length)>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"payment-form-divider"}),s.jsxs("div",{className:"payment-option-title",children:[e==null?void 0:e.select_payment_options,":"]})]}
1):null,s.jsxs("div",{className:"account-details-ctn",children:[s.jsx(xe,{value:1,variant:"scrollable",scrollButtons:"off",className:"actions-list",children:s.jsx(s.Fragment,{children:u==null?void 0:u.map(i=>{var k,T,w,G,B,Y,q,K,z;return s.jsx(s.Fragment,{children:s.jsx(s.Fragment,{children:s.jsx("div",{className:"account-btn-ctn",children:s.jsxs(o,{className:((k=i==null?void 0:i.id)==null?void 0:k.toString())===f?"active account-detail-withdraw":"account-detail-withdraw",onClick:()=>{var M;return V((M=i==null?void 0:i.id)==null?void 0:M.toString())},children:[s.jsxs("div",{className:m==="BANK_TRANSFER"?"delete-btn-ctn-div":"delete-btn-ctn-div-upi",children:[s.jsx("div",{}),s.jsx("div",{className:"account-number",children:m==="BANK_TRANSFER"&&s.jsx("div",{className:"account-ifsc",children:(T=i==null?void 0:i.queueMethodDetails)==null?void 0:T.ifscCode})}),s.jsx(o,{className:"method-delete-btn",onClick:()=>{L(!0),X(i==null?void 0:i.id)},children:s.jsx("img",{src:ce})})]}),s.jsx("div",{className:"account-name-new-ctn",children:s.jsx("div",{className:"account-name-new",children:(w=i==null?void 0:i.queueMethodDetails)==null?void 0:w.accountNumber})}),s.jsx("div",{className:"account-number",children:(G=i==null?void 0:i.queueMethodDetails)==null?void 0:G.upiId}),s.jsx("div",{className:"account-number",children:(B=i==null?void 0:i.queueMethodDetails)==null?void 0:B.phoneNumber}),s.jsxs("div",{className:"account-number-bank",children:[(Y=i==null?void 0:i.queueMethodDetails)==null?void 0:Y.bankName,(q=i==null?void 0:i.queueMethodDetails)!=null&&q.bankName?",":null," ",(K=i==null?void 0:i.queueMethodDetails)==null?void 0:K.branchName]}),s.jsx("div",{className:"account-name-bottom",children:(z=i==null?void 0:i.queueMethodDetails)==null?void 0:z.accountHolderName})]})})})})})})}),m?s.jsxs(o,{title:"Add Account",onClick:()=>{W(!0)},className:"add-btn",children:[s.jsxs("div",{className:"add-account ",children:[s.jsx(oe,{})," "]}),s.jsxs("div",{className:"add-new-accnt",children:[e==null?void 0:e.add_new_account," "]})]}):null]})]}),f?s.jsx(s.Fragment,{children:s.jsxs("form",{className:"account-inputs",onSubmit:i=>{O(i)},children:[s.jsx("div",{className:"payment-option-title",children:e==null?void 0:e.enter_payment_details}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.enter_amount,value:$,placeholder:e==null?void 0:e.enter_withdraw_amount,onChange:i=>P(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.enter_notes,value:g,placeholder:e==null?void 0:e.enter_notes,onChange:i=>_(i)})}),s.jsxs("div",{className:"submit-ctn",children:[s.jsx(o,{className:"reset-payment-btn",type:"submit",disabled:!!r,endIcon:r?s.jsx(c,{name:"lines-small"}):"",onClick:()=>{P(""),_("")},children:e==null?void 0:e.reset}),s.jsx(o,{className:"submit-payment-btn",type:"submit",disabled:!!r,endIcon:r?s.jsx(c,{name:"lines-small"}):"",children:e==null?void 0:e.submit})]})]})}):null,m==="BANK_TRANSFER"&&l&&s.jsxs("form",{className:"account-inputs",onSubmit:i=>b(i),children:[s.jsx("div",{className:"payment-option-title",children:e==null?void 0:e.enter_bank_details}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.account_no,value:p,placeholder:e==null?void 0:e.enter_account_no,onChange:i=>n(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.account_holder_name,value:N,placeholder:e==null?void 0:e.account_holder_name,onChange:i=>j(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.bank_name,value:D,placeholder:e==null?void 0:e.bank_name,onChange:i=>F(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.branch_name,value:a,placeholder:e==null?void 0:e.branch_name,onChange:i=>E(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.ifsc_no,value:ee,placeholder:e==null?void 0:e.ifsc_code,onChange:i=>I(i)})}),s.jsxs("div",{className:"submit-ctn",children:[s.jsx(o,{className:"reset-payment-btn",type:"submit",endIcon:r?s.jsx(c,{name:"lines-small"}):"",disabled:!!r,onClick:()=>{n(""),j(""),F(""),E(""),I("")},children:e==null?void 0:e.reset}),s.jsx(o,{className:"submit-payment-btn",type:"submit",endIcon:r?s.jsx(c,{name:"lines-small"}):"",disabled:!!r,children:e==null?void 0:e.save})]})]}),m==="PAYTM_WALLET"&&l&&s.jsxs("form",{className:"account-inputs",onSubmit:i=>b(i),children:[s.jsx("div",{className:"payment-option-title",children:e==null?void 0:e.enter_details}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.phone_number,value:p,placeholder:e==null?void 0:e.enter_phone_number_txt,onChange:i=>n(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.account_holder_name,value:N,placeholder:e==null?void 0:e.account_holder_name,onChange:i=>j(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.display_name,value:S,placeholder:e==null?void 0:e.display_name,onChange:i=>A(i)})}),s.jsx("div",{className:"submit-ctn",children:s.jsx(o,{className:"submit-payment-btn",type:"submit",endIcon:r?s.jsx(c,{name:"lines-small"}):"",disabled:!!r,children:e==null?void 0:e.save})})]}),(m==="GPAY"||m==="PHONEPE")&&l&&s.jsx(s.Fragment,{children:s.jsxs("form",{className:"account-inputs",onSubmit:i=>b(i),children:[s.jsx("div",{className:"payment-option-title",children:e==null?void 0:e["Enter UPI Details"]}
1)," ",s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.enter_upi_id,value:p,placeholder:e==null?void 0:e.upi_id,onChange:i=>n(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.account_holder_name,value:N,placeholder:e==null?void 0:e.account_holder_name,onChange:i=>j(i)})}),s.jsx("div",{className:"account-input",children:s.jsx(d,{label:e==null?void 0:e.display_name,value:S,placeholder:e==null?void 0:e.display_name,onChange:i=>A(i)})}),s.jsxs("div",{className:"submit-ctn",children:[s.jsx(o,{className:"reset-payment-btn",type:"submit",endIcon:r?s.jsx(c,{name:"lines-small"}):"",disabled:!!r,onClick:()=>{A(""),j(""),n("")},children:e==null?void 0:e.reset}),s.jsx(o,{className:"submit-payment-btn",type:"submit",endIcon:r?s.jsx(c,{name:"lines-small"}):"",disabled:!!r,children:e==null?void 0:e.save})]})]})})]})})})})};export{Ke as default};
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.