!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={8619:e=>{e.exports=require("@mui/material")},9870:e=>{e.exports=require("i18n-react")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};o.r(r),o.d(r,{default:()=>p});var n=o(2015),a=o.n(n),l=o(9825),i=o.n(l),s=o(8619),c=o(9870),u=o.n(c);const d=({open:e,onClose:t,onConfirm:o,message:r})=>a().createElement(s.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},a().createElement(s.DialogTitle,{id:"alert-dialog-title"},u().translate("alerts.confirm_delete_title")),a().createElement(s.DialogContent,null,a().createElement(s.DialogContentText,{id:"alert-dialog-description"},r||u().translate("alerts.confirm_delete"))),a().createElement(s.DialogActions,null,a().createElement(s.Button,{onClick:t,color:"primary"},u().translate("general.cancel")),a().createElement(s.Button,{onClick:o,color:"error",autoFocus:!0},u().translate("general.delete"))));d.propTypes={open:i().bool.isRequired,onClose:i().func.isRequired,onConfirm:i().func.isRequired,message:i().string},d.defaultProps={message:""};const p=d;return r})()));
//# sourceMappingURL=confirm-delete-dialog.js.map