import{j as e}from"./vendor-mui-CBBEb17G.js";import{D as l}from"./DialogContent-asMcp3We.js";import{a as t}from"./vendor-react-BBazpZul.js";import{v as D,dP as m,gd as g,dW as u}from"./index-IP_FWtso.js";const y=({onClose:n,patientId:s})=>{const{getPatientDiseaseAsync:r}=u(),[c,a]=t.useState([]),[f,i]=t.useState(!1),d=async()=>{try{if(!s)return;i(!0);const{data:o}=await r(s);o&&a(o)}finally{i(!1)}};return t.useEffect(()=>{s&&d()},[s]),e.jsx(D,{onClose:n,title:"بیماری های خاص",children:e.jsxs(l,{children:[f&&e.jsx(m,{}),e.jsx(g,{patientDiseas:c,setPatientDisease:a,setHaveAddRequest:()=>{}})]})})};export{y as P};
