import{j as e,aX as T,T as g,ab as h,br as y,ad as j,c3 as u,a4 as m,c4 as f,p as s}from"./mui-vendor-CkIVaoQP.js";import{r as l}from"./react-vendor-CmFgShSM.js";import{G as a,S as C}from"./index-Cr86_nOs.js";const b=l.forwardRef(function(o,r){return e.jsx(f,{direction:"up",ref:r,...o})});function D({title:i,content:o,actions:r,btnTitle:p,isAccepted:c}){const[d,t]=l.useState(!1),x=()=>{t(!0)},n=()=>{t(!1)};return e.jsxs("div",{children:[e.jsx(a,{container:!0,onClick:x,children:e.jsxs(a,{display:"flex",alignItems:"center",gap:C.TINY,children:[e.jsx(T,{sx:{padding:"0px"},checked:c,color:"success"}),e.jsx(g,{style:{cursor:"pointer"},borderBottom:"1px solid",color:"primary",children:p})]})}),e.jsxs(h,{open:d,TransitionComponent:b,keepMounted:!0,onClose:n,"aria-describedby":"alert-dialog-slide-description",children:[e.jsx(y,{children:i}),e.jsx(j,{children:e.jsx(u,{id:"alert-dialog-slide-description",children:o})}),e.jsx(m,{onClick:n,children:r})]})]})}D.propTypes={title:s.PropTypes.string,content:s.PropTypes.string,btnTitle:s.PropTypes.string,isAccepted:s.PropTypes.bool,actions:s.PropTypes.array};export{D};
