import{j as e}from"./login-aN2dRsX6.js";import{D as l}from"./DataTable-D2rA17vR.js";import{P as n}from"./page_header-wdV8ucix.js";import{b as s}from"./index-26bvdVY4.js";import{c as m}from"./query-c3dDncii.js";import{L as p}from"./app-gmlkJjeD.js";import{useModalDetailDeposito as c}from"./modalDetailDeposito-D_9qZlKW.js";import{C as u}from"./circle-plus-D9wc3WnO.js";import{E as d}from"./eye-By1xm0Dd.js";import"./search-4uBqei5W.js";import"./createLucideIcon-C44k9nIN.js";import"./delete-PVCdpT-9.js";import"./alert-CsXKWu2a.js";import"./button_submit-wN0ayemz.js";import"./ThemeProvider-Cx_yflmw.js";import"./SelectProdukDeposito-Ct3_Prbe.js";import"./Select-B6FG_hRH.js";import"./defineProperty-DRmM3rRU.js";import"./typeof-QjJsDpFa.js";import"./setPrototypeOf-B4fUID9J.js";import"./index-Ci65TyJp.js";import"./floating-ui.dom-C5vApqfE.js";import"./modalBrowseAnggota-oa-8B_hk.js";import"./Modal-Dn58D0E5.js";import"./modalBrowseRekeningTabungan-1RIamgea.js";import"./SelectProdukTabungan-2_58_DnQ.js";import"./react-number-format.es-iP3AzcWx.js";import"./x-CZwmhdFm.js";import"./save-CB8xeERj.js";const g={0:"SETUP",1:"AKTIF",3:"TUTUP",9:"DELETE"};function H(){const i=m(),r=c({onSubmit:async()=>(await i.refetch(),!0)}),o=[{label:e.jsx("center",{children:"Rekening"}),width:120,align:"center",value:t=>t.rekening},{label:"Nama Anggota",value:t=>{var a;return(a=t.anggota)==null?void 0:a.nama_lengkap}},{label:e.jsx("center",{children:"Tgl Valuta"}),width:120,align:"center",value:t=>t.tgl_valuta},{label:e.jsx("center",{children:"JKW"}),width:80,align:"center",value:t=>t.jkw},{label:e.jsx("center",{children:"Tgl Jtuh Tempo"}),width:120,align:"center",value:t=>t.tgl_jatuh_tempo},{label:e.jsx("center",{children:"Bunga"}),width:80,align:"center",value:t=>{var a;return(a=t.produk)==null?void 0:a.suku_bunga}},{label:e.jsx("center",{children:"Nominal"}),width:150,align:"right",value:t=>s(t.nilai_valuta)},{label:e.jsx("center",{children:"Status"}),width:80,align:"center",value:t=>g[t.status??0]??""},{label:e.jsx("center",{}),width:80,align:"center",value:t=>e.jsx(p,{to:`/app/master/deposito/${t.rekening}`,children:e.jsx(d,{size:18})})}];return e.jsxs("div",{className:"container",children:[e.jsx(n,{title:"Data Deposito",breadcrumb:[{title:"Master",path:"/app/master"},{title:"Deposito",path:"/app/master/deposito"}]}),e.jsx(l,{data:i.data??[],column:o,search:!0,pagination:!0,item_per_page:15,loading:i.isLoading,buttons:e.jsxs("button",{className:"btn btn-primary d-flex gap-2 align-items-center",onClick:()=>r.open(),children:[e.jsx(u,{size:18}),"Tambah Deposito"]})}),r.modal]})}export{H as default};
