import{j as t}from"./app-DB4YCWeF.js";import{u as o}from"./useFormBuilder-DOwOU0AC.js";import{a as i}from"./FormBuilder-Dm7wfKiL.js";import{g as p}from"./BaseForm-CkSb_d40.js";import"./useFormChange-B0pYJsvh.js";import"./Input-BfNm_9oA.js";import"./Select-DXXQNVxU.js";import"./index-D_LogWT2.js";import"./Checkbox-Bn48SEXM.js";import"./clsx-B-dksMZM.js";import"./lib-C9iOZMGt.js";function y({isEdit:e=!1}){const a=o({isEdit:e,getProperties:m});return t.jsx(i,{...a})}const m=e=>{const{props:r,data:a}=e;return[[{form:"input",props:{name:"name",label:"Nama"}},{form:"input",props:{name:"phone",label:"No. Hp",type:"tel"}},{form:"select",props:{name:"gender",label:"Jenis Kelamin",options:r.gender,placeholder:"Pilih salah satu"}},{form:"input",props:{type:"date",name:"birth_date",label:"Tanggal Lahir",alt:a.birth_date?p(a.birth_date):""}}],[{form:"textarea",props:{name:"address",label:"Alamat"}}],[{form:"textarea",props:{name:"medical_history",label:"Riwayat Penyakit",heightClassName:"h-44",placeHolder:"Kosongkan jika tidak ada"}},{form:"textarea",props:{name:"medication_allergy",label:"Alergi Obat",heightClassName:"h-44",placeHolder:"Kosongkan jika tidak ada"}}]]};export{y as default};
