import{j as e}from"./cm-1.0.63-CSIRHMXC.js";import{r as d}from"./redux-1.0.63-Df-eBzJn.js";import{D as T,B as m}from"./cjs-1.0.63-4A2xol4v.js";import{P as h}from"./ButtonBase-1.0.63-CF10PFMS.js";import{A as j}from"./AdminTheme-1.0.63-DhJ0rrw5.js";import{l as y,C as R}from"./lib-1.0.63-DJZPtMem.js";import{c as v,g as P,D as b,a as M,b as w}from"./DialogContent-1.0.63-B3W-DlSe.js";import{h as U,g as N,i as x,j as u,c as f,l as C,T as D,r as A}from"./Typography-1.0.63-mecuj_Wl.js";function K(o){return U("MuiDialogContentText",o)}N("MuiDialogContentText",["root"]);const S=o=>{const{classes:t}=o,n=C({root:["root"]},K,t);return{...t,...n}},k=u(D,{shouldForwardProp:o=>A(o)||o==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(o,t)=>t.root})({}),B=d.forwardRef(function(t,r){const n=x({props:t,name:"MuiDialogContentText"}),{children:i,className:l,...a}=n,s=S(a);return e.jsx(k,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:a,className:f(s.root,l),...n,classes:s})}),F=o=>{const{classes:t}=o;return C({root:["root"]},P,t)},E=u(D,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(o,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),O=d.forwardRef(function(t,r){const n=x({props:t,name:"MuiDialogTitle"}),{className:i,id:l,...a}=n,s=n,p=F(s),{titleId:g=l}=d.useContext(v);return e.jsx(E,{component:"h2",className:f(p.root,i),ownerState:s,ref:r,variant:"h6",id:l??g,...a})}),I=o=>{const t=d.useRef(null);return e.jsx(T,{nodeRef:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',children:e.jsx(h,{ref:t,...o})})},Q=o=>{var p,g;const{title:t,message:r,open:n,setOpen:i,onConfirm:l,locale:a}=o;let{theme:s}=o;return y.debug(o),s||(s=j),e.jsxs(b,{open:n,onClose:()=>i(!1),PaperComponent:I,"aria-labelledby":"confirm-dialog",closeAfterTransition:!1,children:[e.jsx(O,{sx:{color:(p=s==null?void 0:s.palette)==null?void 0:p.primary.main,marginTop:"10px",cursor:"move"},id:"draggable-dialog-title",children:t}),e.jsx(M,{children:e.jsx(B,{component:"div",sx:{color:(g=s==null?void 0:s.palette)==null?void 0:g.primary.main},children:r})}),e.jsxs(w,{sx:{marginRight:"15px",marginBottom:"15px"},children:[e.jsx(m,{autoFocus:!0,variant:"contained",onClick:c=>{c.stopPropagation(),i(!1),l()},children:(a==null?void 0:a.yes)??"Yes"}),e.jsx(m,{variant:"outlined",onClick:c=>{c.stopPropagation(),i(!1)},children:(a==null?void 0:a.no)??"No"}),o.onKeep&&R.appOrig.appKeep&&e.jsx(m,{variant:"outlined",onClick:c=>{c.stopPropagation(),o.onKeep()},children:"Keep"})]})]})};export{Q as C,O as D,I as P,B as a};
