import{j as m}from"./app-Bup04Qnx.js";import{u as i}from"./useFormBuilder-w_BHcgkC.js";import{F as n}from"./FormBuilder-B6qVpe84.js";import{u}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 s({isEdit:t=!1,formOptions:r={},BackButton:e=null}){const o=i({isEdit:t,getProperties:p,formOptions:r}),{data:f,setData:c}=o.form;return m.jsx(n,{...o,BackButton:e})}const p=t=>{const{props:r,data:e,setData:a}=t;return u(r.location),[[{form:"input",props:{name:"code",label:"Kode",type:"text"}},{form:"input",props:{name:"name",label:"Nama",type:"text"}}],[{form:"input",props:{name:"address",label:"Alamat",type:"text"}},{form:"select",props:{name:"status",label:"Status",options:r.status,prefix:"company.status"}}]]},l=({children:t})=>t(p);s.PropertiesProvider=l;const S=s;export{S as default};
