{"ast":null,"code":"'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { alertDialogContentPropDefs } from './alert-dialog.props';\nimport { withBreakpoints } from '../helpers';\nimport { Heading } from './heading';\nimport { Text } from './text';\nimport { Theme } from '../theme';\nconst AlertDialogRoot = props => React.createElement(AlertDialogPrimitive.Root, {\n  ...props\n});\nAlertDialogRoot.displayName = 'AlertDialogRoot';\nconst AlertDialogTrigger = React.forwardRef((props, forwardedRef) => React.createElement(AlertDialogPrimitive.Trigger, {\n  ...props,\n  ref: forwardedRef,\n  asChild: true\n}));\nAlertDialogTrigger.displayName = 'AlertDialogTrigger';\nconst AlertDialogContent = React.forwardRef((props, forwardedRef) => {\n  const {\n    className,\n    forceMount,\n    container,\n    size = alertDialogContentPropDefs.size.default,\n    ...contentProps\n  } = props;\n  return React.createElement(AlertDialogPrimitive.Portal, {\n    container: container,\n    forceMount: forceMount\n  }, React.createElement(Theme, {\n    asChild: true\n  }, React.createElement(AlertDialogPrimitive.Overlay, {\n    className: \"rt-DialogOverlay rt-AlertDialogOverlay\"\n  }, React.createElement(AlertDialogPrimitive.Content, {\n    ...contentProps,\n    ref: forwardedRef,\n    className: classNames('rt-DialogContent', 'rt-AlertDialogContent', className, withBreakpoints(size, 'rt-r-size'))\n  }))));\n});\nAlertDialogContent.displayName = 'AlertDialogContent';\nconst AlertDialogTitle = React.forwardRef((props, forwardedRef) => React.createElement(AlertDialogPrimitive.Title, {\n  asChild: true\n}, React.createElement(Heading, {\n  size: \"5\",\n  mb: \"3\",\n  trim: \"start\",\n  ...props,\n  ref: forwardedRef\n})));\nAlertDialogTitle.displayName = 'AlertDialogTitle';\nconst AlertDialogDescription = React.forwardRef((props, forwardedRef) => React.createElement(AlertDialogPrimitive.Description, {\n  asChild: true\n}, React.createElement(Text, {\n  as: \"p\",\n  size: \"3\",\n  ...props,\n  ref: forwardedRef\n})));\nAlertDialogDescription.displayName = 'AlertDialogDescription';\nconst AlertDialogAction = React.forwardRef((props, forwardedRef) => React.createElement(AlertDialogPrimitive.Action, {\n  ...props,\n  ref: forwardedRef,\n  asChild: true\n}));\nAlertDialogAction.displayName = 'AlertDialogAction';\nconst AlertDialogCancel = React.forwardRef((props, forwardedRef) => React.createElement(AlertDialogPrimitive.Cancel, {\n  ...props,\n  ref: forwardedRef,\n  asChild: true\n}));\nAlertDialogCancel.displayName = 'AlertDialogCancel';\nconst AlertDialog = Object.assign({}, {\n  Root: AlertDialogRoot,\n  Trigger: AlertDialogTrigger,\n  Content: AlertDialogContent,\n  Title: AlertDialogTitle,\n  Description: AlertDialogDescription,\n  Action: AlertDialogAction,\n  Cancel: AlertDialogCancel\n});\nexport { AlertDialog, AlertDialogRoot, AlertDialogTrigger, AlertDialogContent, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel };","map":{"version":3,"names":["React","classNames","AlertDialogPrimitive","alertDialogContentPropDefs","withBreakpoints","Heading","Text","Theme","AlertDialogRoot","props","createElement","Root","displayName","AlertDialogTrigger","forwardRef","forwardedRef","Trigger","ref","asChild","AlertDialogContent","className","forceMount","container","size","default","contentProps","Portal","Overlay","Content","AlertDialogTitle","Title","mb","trim","AlertDialogDescription","Description","as","AlertDialogAction","Action","AlertDialogCancel","Cancel","AlertDialog","Object","assign"],"sources":["../../../src/components/alert-dialog.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,oBAAoB,MAAM,8BAA8B;AACpE,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,eAAe,QAAQ,YAAY;AAC5C,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,KAAK,QAAQ,UAAU;AAMhC,MAAMC,eAAe,GAAgCC,KAAK,IACxDT,KAAA,CAAAU,aAAA,C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