import{j as a,q as r}from"./app-Bup04Qnx.js";import{A as u}from"./AuthenticatedLayout-BdDF4YYO.js";import f from"./Index-C9smKzZO.js";import{D as x}from"./DetailModalItem-BOaAAJ7m.js";import{S as c}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";import"./RestoreModal-DxRPbH67.js";import"./DetailModalContent-BPB3mCJa.js";function n(e){var i;const t=m();return a.jsx(u,{title:e==null?void 0:e.title,children:a.jsx(c,{links:t,pageUrl:(i=e==null?void 0:e.page)==null?void 0:i.url})})}const w=()=>{const{props:e}=r(),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 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(x,{data:e==null?void 0:e[(o=e==null?void 0:e.page)==null?void 0:o.name],tableHeader:s,rowPropsBase:t,className:"flex flex-col w-full"})})}})},m=(e=null)=>{var l;const{props:t}=r();return e||(e=(l=t==null?void 0:t.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:e})=>{const t=m();return e(t)};n.NavigationProvider=h;const L=n;export{L as default};
