{"version":3,"file":"AlertDialog.cjs","sources":["../../../../src/components/overlay/alert-dialog/AlertDialog.tsx"],"sourcesContent":["import { memo } from 'react'\r\n\r\nimport { Dialog } from '@components/overlay/dialog'\r\nimport AlertDialogAction from '@components/overlay/alert-dialog/components/alert-dialog-action/AlertDialogAction.tsx'\r\nimport AlertDialogCancel from '@components/overlay/alert-dialog/components/alert-dialog-cancel/AlertDialogCancel.tsx'\r\nimport type { AlertDialogCompound } from '@components/overlay/alert-dialog/types/AlertDialogCompound.ts'\r\nimport type { AlertDialogProps } from '@components/overlay/alert-dialog/types/AlertDialog.props.ts'\r\n\r\n/**\r\n * A modal confirmation dialog for destructive actions.\r\n *\r\n * It reuses the accessible Dialog slots and adds `Action` and `Cancel`\r\n * buttons with destructive and outlined defaults respectively.\r\n */\r\nconst AlertDialog = memo<AlertDialogProps>((props) => <Dialog {...props} />) as unknown as AlertDialogCompound\r\n\r\nAlertDialog.displayName = 'AlertDialog'\r\nAlertDialog.Trigger = Dialog.Trigger\r\nAlertDialog.Content = Dialog.Content\r\nAlertDialog.Header = Dialog.Header\r\nAlertDialog.Body = Dialog.Body\r\nAlertDialog.Footer = Dialog.Footer\r\nAlertDialog.Title = Dialog.Title\r\nAlertDialog.Description = Dialog.Description\r\nAlertDialog.Close = Dialog.Close\r\nAlertDialog.Action = AlertDialogAction\r\nAlertDialog.Cancel = AlertDialogCancel\r\n\r\nexport { AlertDialog }\r\n"],"names":["AlertDialog","memo","props","Dialog","AlertDialogAction","AlertDialogCancel"],"mappings":"4hDAcMA,EAAcC,EAAAA,KAAwBC,SAAWC,SAAA,CAAQ,GAAGD,EAAO,CAAE,EAE3EF,EAAY,YAAc,cAC1BA,EAAY,QAAUG,EAAAA,OAAO,QAC7BH,EAAY,QAAUG,EAAAA,OAAO,QAC7BH,EAAY,OAASG,EAAAA,OAAO,OAC5BH,EAAY,KAAOG,EAAAA,OAAO,KAC1BH,EAAY,OAASG,EAAAA,OAAO,OAC5BH,EAAY,MAAQG,EAAAA,OAAO,MAC3BH,EAAY,YAAcG,EAAAA,OAAO,YACjCH,EAAY,MAAQG,EAAAA,OAAO,MAC3BH,EAAY,OAASI,EACrBJ,EAAY,OAASK"}