import{c as p,j as m}from"./index-D9pJRAs5.js";import{OrderForm as n}from"./OrderForm-bkIcaOts.js";import{r as e,b as i}from"./vendor-D6aTFYy9.js";import"./pdf-Bz_mU5mG.js";import"./ui-CtYVlq7P.js";import"./AddCommissionPersonModal-DIaO4FDb.js";import"./AddEditCustomerModal-ISpjRZyp.js";import"./react-barcode-Bay-fcAV.js";import"./browser-JP79f-a9.js";const O=()=>{const[o,t]=e.useState(!0),{paperTypes:r}=p(),s=i();e.useEffect(()=>{console.log("Paper types updated in NewOrder:",r.length)},[r]);const a=()=>{t(!1),s("/dashboard")};return m.jsx(n,{isOpen:o,onClose:a,type:"order"},`order-form-${r.length}`)};export{O as default};
