import{j as a,q as r}from"./app-Bup04Qnx.js";import{A as u}from"./AuthenticatedLayout-BdDF4YYO.js";import f from"./Index-EuHMgAuQ.js";import{D as c}from"./DetailModalItem-BOaAAJ7m.js";import{S as x}from"./ShowNavigation-DmxeJNqZ.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";function n(t){var i;const e=m();return a.jsx(u,{title:t==null?void 0:t.title,children:a.jsx(x,{links:e,pageUrl:(i=t==null?void 0:t.page)==null?void 0:i.url})})}const w=()=>{const{props:t}=r(),e={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 a.jsx(f.HeaderProvider,{children:i=>{var o;let l=["numbering","action"],s=i.filter(d=>!l.includes(d.type));return a.jsx("div",{children:a.jsx(c,{data:t==null?void 0:t[(o=t==null?void 0:t.page)==null?void 0:o.name],tableHeader:s,rowPropsBase:e,className:"flex flex-col w-full"})})}})},m=(t=null)=>{var l;const{props:e}=r();return t||(t=(l=e==null?void 0:e.page)==null?void 0:l.url),[{name:"detail",label:"Detail",url:"?show=detail",isDefault:!0,Component:w,wrapperClassName:"w-full max-w-5xl border p-4 mt-2"}]},h=({children:t})=>{const e=m();return t(e)};n.NavigationProvider=h;const B=n;export{B as default};
