import{ac as i,ci as p,a as m,eE as x,cV as h,eM as C,p as f,j as t,C as j,eN as E,S as y}from"./bundle.CHKSNOJF.js";function S(){const{documentTitle:r}=i("edit_product"),{id:c}=p(),s=m(),{data:e}=x({id:c}),d=h(),{setErrors:n,setProduct:a,product:o,errors:u}=d,l=C({setErrors:n,setProduct:a});return f.useEffect(()=>{e&&a(e.data.data)},[e]),t.jsx(t.Fragment,{children:e&&o?t.jsx(j,{title:e.data.data.product_key||r,className:"shadow-sm",style:{borderColor:s.$24},headerStyle:{borderColor:s.$20},children:t.jsx(E,{product:o,errors:u,handleChange:l,type:"edit"})}):t.jsx(y,{})})}export{S as default};
