import{j as n}from"./app-Bup04Qnx.js";import{u as l}from"./useFormBuilder-w_BHcgkC.js";import{F as m}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:r=!1,formOptions:t={},BackButton:i=null}){const o=l({isEdit:r,getProperties:p,formOptions:t}),{data:e,setData:c}=o.form;return n.jsx(m,{...o,BackButton:i})}const p=r=>{const{props:t,data:i,setData:a}=r;return u(t.location),[[{form:"select",props:{name:"user_id",label:"Pengguna",options:t.users,isReactSelect:!0,isVirtualized:!0,handleChange:e=>a("user_id",e==null?void 0:e.value)}},{form:"input",props:{name:"title",label:"Judul",type:"text"}}],[{form:"select",props:{name:"budget_id",label:"Anggaran",options:t.budgets,isReactSelect:!0,isVirtualized:!0,handleChange:e=>a("budget_id",e==null?void 0:e.value)}},{form:"select",props:{name:"transaction_id",label:"Transaksi",options:t.transactions,isReactSelect:!0,isVirtualized:!0,handleChange:e=>a("transaction_id",e==null?void 0:e.value)}},{form:"select",props:{name:"payment_id",label:"Pembayaran",options:t.payments,isReactSelect:!0,isVirtualized:!0,handleChange:e=>a("payment_id",e==null?void 0:e.value)}}],[{form:"input",props:{name:"type",label:"Tipe",type:"text"}},{form:"input",props:{name:"module_type",label:"Tipe Modul",type:"text"}}],[{form:"input",props:{name:"link",label:"Link",type:"text"}},{form:"checkbox",props:{name:"is_read",label:"Sudah Dibaca"}},{form:"input",props:{name:"read_at",label:"Dibaca Pada",type:"date"}}],[{form:"textarea",props:{name:"message",label:"Pesan"}}]]},d=({children:r})=>r(p);s.PropertiesProvider=d;const k=s;export{k as default};
