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