import{j as l,q as o}from"./app-Bup04Qnx.js";import{A as u}from"./AuthenticatedLayout-BdDF4YYO.js";import f from"./Index-DGTY-zuM.js";import{D as x}from"./DetailModalItem-BOaAAJ7m.js";import{S as c}from"./ShowNavigation-DmxeJNqZ.js";import w from"./Index-Cz9YQgbH.js";import"./index-DdNKWgRS.js";import"./clsx-B-dksMZM.js";import"./index-CtjruoRR.js";import"./floating-ui.dom-CwWDmSD9.js";import"./format-CisCU4Rs.js";import"./Table-B-yOTLCP.js";import"./index-Dy_g3AZ5.js";import"./WithModal-CbKxT3eW.js";import"./Select-Cs0aMrtU.js";import"./BaseForm-wkPKZ5Eg.js";import"./table-2-B1MKhBGJ.js";import"./RestoreModal-DxRPbH67.js";import"./DetailModalContent-BPB3mCJa.js";import"./RejectedModal-pIH7niEQ.js";import"./TextArea-DiAj0IR8.js";import"./useFormChange-D35moWjQ.js";import"./eye-COhjizRe.js";function n(e){var a;const t=d();return l.jsx(u,{title:e==null?void 0:e.title,children:l.jsx(c,{links:t,pageUrl:(a=e==null?void 0:e.page)==null?void 0:a.url})})}const g=()=>{const{props:e}=o(),t={wrapperClassName:"flex flew-row flex-wrap justify-between",labelClassName:"flex-1 font-medium text-sm md:text-base",valueClassName:"text-sm md:text-base",emptyCheck:!1};return l.jsx(f.HeaderProvider,{children:a=>{var i;let r=["numbering","action"],m=a.filter(s=>!r.includes(s.type));return l.jsx("div",{children:l.jsx(x,{data:e==null?void 0:e[(i=e==null?void 0:e.page)==null?void 0:i.name],tableHeader:m,rowPropsBase:t,className:"flex flex-col w-full"})})}})},d=(e=null)=>{var r,m,i;const{props:t}=o();return e||(e=(r=t==null?void 0:t.page)==null?void 0:r.url),[{name:"detail",label:"Detail",url:"?show=detail",isDefault:!0,Component:g,wrapperClassName:"w-full max-w-5xl border p-4 mt-2"},{name:"budgetDetail",label:"BudgetDetail",url:`/admin/budgets/${(i=(m=t==null?void 0:t.page)==null?void 0:m.data)==null?void 0:i.id}/budget_details`,isDefault:!0,Component:w,wrapperClassName:"w-full max-w-5xl border p-4 mt-2"}]},b=({children:e})=>{const t=d();return e(t)};n.NavigationProvider=b;const F=n;export{F as default};
