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