import{j as i,q as o}from"./app-Bup04Qnx.js";import{A as u}from"./AuthenticatedLayout-BdDF4YYO.js";import c from"./Index-CgBW0f35.js";import{D as f}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";import"./RestoreModal-DxRPbH67.js";import"./DetailModalContent-BPB3mCJa.js";function n(e){var a;const t=m();return i.jsx(u,{title:e==null?void 0:e.title,children:i.jsx(x,{links:t,pageUrl:(a=e==null?void 0:e.page)==null?void 0:a.url})})}const w=()=>{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 i.jsx(c.HeaderProvider,{children:a=>{var r;let l=["numbering","action"],s=a.filter(d=>!l.includes(d.type));return i.jsx("div",{children:i.jsx(f,{data:e==null?void 0:e[(r=e==null?void 0:e.page)==null?void 0:r.name],tableHeader:s,rowPropsBase:t,className:"flex flex-col w-full"})})}})},m=(e=null)=>{var l;const{props:t}=o();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};
