import{j as i,r as m}from"./login-aN2dRsX6.js";import{m as v}from"./query-c3dDncii.js";import{S as u}from"./Select-B6FG_hRH.js";import{b as S,c as d}from"./index-B595qSOc.js";const r=a=>{var n;const s=(n=v().data)==null?void 0:n.map(e=>({label:`${e.rekening} : ${e.nama}`,value:e.rekening}));return i.jsx(u,{value:(s==null?void 0:s.find(e=>e.value==a.value))??"",isDisabled:a.disable,options:s,placeholder:"Pilih Rekening",onChange:e=>{var c;const l=e;(c=a.onChange)==null||c.call(a,l==null?void 0:l.value)}})},b=a=>{const[t,s]=m.useState(S.find(n=>n.value===a.value)??"");return i.jsx(u,{value:t,isDisabled:a.disable,options:S,placeholder:"Transaksi Bank",onChange:n=>{var l;const e=n;s(e),(l=a.onChange)==null||l.call(a,e==null?void 0:e.value)}})},f=a=>{const[t,s]=m.useState(d.find(n=>n.value===a.value)??"");return i.jsx(u,{value:t,isDisabled:a.disable,options:d,placeholder:"Transaksi Kas",onChange:n=>{var l;const e=n;s(e),(l=a.onChange)==null||l.call(a,e==null?void 0:e.value)}})};export{r as S,f as a,b};
