import{j as t}from"./login-aN2dRsX6.js";import{D as o}from"./DataTable-D2rA17vR.js";import{P as n}from"./page_header-wdV8ucix.js";import{useModalDetailAnggota as l}from"./modalDetailAnggota-BUvGhB2H.js";import{a as m}from"./query-c3dDncii.js";/* empty css               */import{C as p}from"./circle-plus-D9wc3WnO.js";import{E as s}from"./eye-By1xm0Dd.js";import"./app-gmlkJjeD.js";import"./search-4uBqei5W.js";import"./createLucideIcon-C44k9nIN.js";import"./delete-PVCdpT-9.js";import"./index-26bvdVY4.js";import"./alert-CsXKWu2a.js";import"./button_submit-wN0ayemz.js";import"./ThemeProvider-Cx_yflmw.js";import"./SelectStatusMarital-C6h8syhN.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"./SelectPenghasilan-BG5dzgjR.js";import"./Modal-Dn58D0E5.js";import"./image-plus-BeDf1ZRb.js";import"./trash-CTcWUXGP.js";import"./x-CZwmhdFm.js";import"./save-CB8xeERj.js";function W(){const e=m(),r=l({onSubmit:async()=>(await e.refetch(),!0)}),i=[{label:t.jsx("center",{children:"ID"}),width:120,align:"center",value:a=>a.id},{label:"Nama Lengkap",value:a=>a.nama_lengkap},{label:"Alamat",value:a=>a.alamat},{label:t.jsx("center",{children:"RT"}),width:80,align:"center",value:a=>a.rt},{label:t.jsx("center",{children:"RW"}),width:80,align:"center",value:a=>a.rw},{label:"Kelurahan",value:a=>a.kelurahan},{label:"Kecamatan",value:a=>a.kecamatan},{label:t.jsx("center",{}),width:80,align:"center",value:a=>t.jsx("span",{className:"c-pointer",onClick:()=>r.open(a==null?void 0:a.id),children:t.jsx(s,{size:18})})}];return t.jsxs("div",{className:"container",children:[t.jsx(n,{title:"Data Anggota",breadcrumb:[{title:"Master",path:"/app/master"},{title:"Anggota",path:"/app/master/anggota"}]}),t.jsx(o,{data:e.data??[],column:i,search:!0,pagination:!0,item_per_page:15,loading:e.isLoading,buttons:t.jsxs("button",{className:"btn btn-primary d-flex gap-2 align-items-center",onClick:()=>r.open(),children:[t.jsx(p,{size:18}),"Tambah Anggota"]})}),r.modal]})}export{W as default};
