"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[1027,1997],{31027:(o,e,n)=>{n.r(e),n.d(e,{default:()=>z});var r=n(31997),i=n(98587),t=n(58168),s=n(51609),a=n(34164),l=n(75659),d=n(9245),c=n(44984),p=n(38413),u=n(92288);function m(o){return(0,u.Ay)("MuiDialogContent",o)}(0,p.A)("MuiDialogContent",["root","dividers"]);var g=n(61435),v=n(10790);const A=["className","dividers"],f=(0,d.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:n}=o;return[e.root,n.dividers&&e.dividers]}})(({theme:o,ownerState:e})=>(0,t.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(o.vars||o).palette.divider}`,borderBottom:`1px solid ${(o.vars||o).palette.divider}`}:{[`.${g.A.root} + &`]:{paddingTop:0}})),b=s.forwardRef(function(o,e){const n=(0,c.b)({props:o,name:"MuiDialogContent"}),{className:r,dividers:s=!1}=n,d=(0,i.A)(n,A),p=(0,t.A)({},n,{dividers:s}),u=(o=>{const{classes:e,dividers:n}=o,r={root:["root",n&&"dividers"]};return(0,l.A)(r,m,e)})(p);return(0,v.jsx)(f,(0,t.A)({className:(0,a.A)(u.root,r),ownerState:p,ref:e},d))});function x(o){return(0,u.Ay)("MuiDialogActions",o)}(0,p.A)("MuiDialogActions",["root","spacing"]);const h=["className","disableSpacing"],C=(0,d.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:n}=o;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:o})=>(0,t.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!o.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),S=s.forwardRef(function(o,e){const n=(0,c.b)({props:o,name:"MuiDialogActions"}),{className:r,disableSpacing:s=!1}=n,d=(0,i.A)(n,h),p=(0,t.A)({},n,{disableSpacing:s}),u=(o=>{const{classes:e,disableSpacing:n}=o,r={root:["root",!n&&"spacing"]};return(0,l.A)(r,x,e)})(p);return(0,v.jsx)(C,(0,t.A)({className:(0,a.A)(u.root,r),ownerState:p,ref:e},d))});var w=n(27723);const z=({isOpen:o,onCancel:e,onConfirm:n,children:i})=>(0,v.jsxs)(r.default,{isOpen:o,title:(0,w.__)("Are you sure?","complianz-gdpr"),onClose:e,children:[(0,v.jsx)(b,{children:i}),(0,v.jsxs)(S,{className:"cmplz-modal-footer",children:[(0,v.jsx)("button",{className:"cmplz-button cmplz-button--secondary",onClick:e,children:(0,w.__)("Cancel","complianz-gdpr")}),(0,v.jsx)("button",{className:"cmplz-button cmplz-button--error",onClick:n,children:(0,w.__)("Confirm","complianz-gdpr")})]})]})},31997:(o,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(77698),i=n(89737),t=n(10790);const s=({isOpen:o,title:e,onClose:n,children:s})=>(0,t.jsxs)(r.A,{className:"cmplz-modal",open:o,onClose:n,sx:{borderRadius:"var(--rsp-border-radius)"},children:[(0,t.jsx)(i.A,{children:e}),s]})}}]);