import{j as m}from"./app-Bup04Qnx.js";import{u as s}from"./useFormBuilder-w_BHcgkC.js";import{F as u}from"./FormBuilder-B6qVpe84.js";import{u as l}from"./format-CisCU4Rs.js";import"./useFormChange-D35moWjQ.js";import"./Input-Bs1ncZB7.js";import"./BaseForm-wkPKZ5Eg.js";import"./Select-Cs0aMrtU.js";import"./index-CtjruoRR.js";import"./floating-ui.dom-CwWDmSD9.js";import"./TextArea-DiAj0IR8.js";import"./clsx-B-dksMZM.js";import"./index-Dy_g3AZ5.js";function i({isEdit:t=!1,formOptions:r={},BackButton:n=null}){const a=s({isEdit:t,getProperties:p,formOptions:r}),{data:e,setData:c}=a.form;return m.jsx(u,{...a,BackButton:n})}const p=t=>{const{props:r,data:n,setData:o}=t;return l(r.location),[[{form:"select",props:{name:"company_id",label:"Perusahaan",options:r.companies,isReactSelect:!0,isVirtualized:!0,handleChange:e=>o("company_id",e==null?void 0:e.value)}},{form:"input",props:{name:"code",label:"Kode",type:"text"}}],[{form:"select",props:{name:"user_id",label:"Pengguna",options:r.users,isReactSelect:!0,isVirtualized:!0,handleChange:e=>o("user_id",e==null?void 0:e.value)}},{form:"select",props:{name:"department_id",label:"Departemen",options:r.departments,isReactSelect:!0,isVirtualized:!0,handleChange:e=>o("department_id",e==null?void 0:e.value)}}],[{form:"input",props:{name:"debit_amount",label:"Debit",type:"number"}},{form:"input",props:{name:"credit_amount",label:"Kredit",type:"number"}}],[{form:"input",props:{name:"year",label:"Tahun",type:"number"}},{form:"input",props:{name:"month",label:"Bulan",type:"number"}}]]},d=({children:t})=>t(p);i.PropertiesProvider=d;const R=i;export{R as default};
