{"ast":null,"code":"import $4k4D0$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { createElement as $4k4D0$createElement, forwardRef as $4k4D0$forwardRef, useRef as $4k4D0$useRef, useEffect as $4k4D0$useEffect } from \"react\";\nimport { createContextScope as $4k4D0$createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs as $4k4D0$useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createDialogScope as $4k4D0$createDialogScope, Root as $4k4D0$Root, Trigger as $4k4D0$Trigger, Portal as $4k4D0$Portal, Overlay as $4k4D0$Overlay, WarningProvider as $4k4D0$WarningProvider, Content as $4k4D0$Content, Title as $4k4D0$Title, Description as $4k4D0$Description, Close as $4k4D0$Close } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers as $4k4D0$composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Slottable as $4k4D0$Slottable } from \"@radix-ui/react-slot\";\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialog\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$ROOT_NAME = 'AlertDialog';\nconst [$905f4ae918aab1aa$var$createAlertDialogContext, $905f4ae918aab1aa$export$b8891880751c2c5b] = $4k4D0$createContextScope($905f4ae918aab1aa$var$ROOT_NAME, [$4k4D0$createDialogScope]);\nconst $905f4ae918aab1aa$var$useDialogScope = $4k4D0$createDialogScope();\nconst $905f4ae918aab1aa$export$de466dd8317b0b75 = props => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...alertDialogProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Root, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, alertDialogProps, {\n    modal: true\n  }));\n};\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$de466dd8317b0b75, {\n  displayName: $905f4ae918aab1aa$var$ROOT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTrigger\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$TRIGGER_NAME = 'AlertDialogTrigger';\nconst $905f4ae918aab1aa$export$6edd7a623ef0f40b = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...triggerProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Trigger, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, triggerProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$6edd7a623ef0f40b, {\n  displayName: $905f4ae918aab1aa$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogPortal\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$PORTAL_NAME = 'AlertDialogPortal';\nconst $905f4ae918aab1aa$export$660f2bfdb986706c = props => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...portalProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Portal, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, portalProps));\n};\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$660f2bfdb986706c, {\n  displayName: $905f4ae918aab1aa$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogOverlay\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$OVERLAY_NAME = 'AlertDialogOverlay';\nconst $905f4ae918aab1aa$export$a707a4895ce23256 = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...overlayProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Overlay, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, overlayProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$a707a4895ce23256, {\n  displayName: $905f4ae918aab1aa$var$OVERLAY_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogContent\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$CONTENT_NAME = 'AlertDialogContent';\nconst [$905f4ae918aab1aa$var$AlertDialogContentProvider, $905f4ae918aab1aa$var$useAlertDialogContentContext] = $905f4ae918aab1aa$var$createAlertDialogContext($905f4ae918aab1aa$var$CONTENT_NAME);\nconst $905f4ae918aab1aa$export$94e6af45f0af4efd = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    children: children,\n    ...contentProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  const contentRef = $4k4D0$useRef(null);\n  const composedRefs = $4k4D0$useComposedRefs(forwardedRef, contentRef);\n  const cancelRef = $4k4D0$useRef(null);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$WarningProvider, {\n    contentName: $905f4ae918aab1aa$var$CONTENT_NAME,\n    titleName: $905f4ae918aab1aa$var$TITLE_NAME,\n    docsSlug: \"alert-dialog\"\n  }, /*#__PURE__*/$4k4D0$createElement($905f4ae918aab1aa$var$AlertDialogContentProvider, {\n    scope: __scopeAlertDialog,\n    cancelRef: cancelRef\n  }, /*#__PURE__*/$4k4D0$createElement($4k4D0$Content, $4k4D0$babelruntimehelpersesmextends({\n    role: \"alertdialog\"\n  }, dialogScope, contentProps, {\n    ref: composedRefs,\n    onOpenAutoFocus: $4k4D0$composeEventHandlers(contentProps.onOpenAutoFocus, event => {\n      var _cancelRef$current;\n      event.preventDefault();\n      (_cancelRef$current = cancelRef.current) === null || _cancelRef$current === void 0 || _cancelRef$current.focus({\n        preventScroll: true\n      });\n    }),\n    onPointerDownOutside: event => event.preventDefault(),\n    onInteractOutside: event => event.preventDefault()\n  }), /*#__PURE__*/$4k4D0$createElement($4k4D0$Slottable, null, children), false)));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$94e6af45f0af4efd, {\n  displayName: $905f4ae918aab1aa$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTitle\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$TITLE_NAME = 'AlertDialogTitle';\nconst $905f4ae918aab1aa$export$225e0da62d314b7 = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...titleProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Title, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, titleProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$225e0da62d314b7, {\n  displayName: $905f4ae918aab1aa$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogDescription\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$DESCRIPTION_NAME = 'AlertDialogDescription';\nconst $905f4ae918aab1aa$export$a23b55cde55ad9a5 = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...descriptionProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Description, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, descriptionProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$a23b55cde55ad9a5, {\n  displayName: $905f4ae918aab1aa$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogAction\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$ACTION_NAME = 'AlertDialogAction';\nconst $905f4ae918aab1aa$export$b454f818c58ee85d = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...actionProps\n  } = props;\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Close, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, actionProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$b454f818c58ee85d, {\n  displayName: $905f4ae918aab1aa$var$ACTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogCancel\n * -----------------------------------------------------------------------------------------------*/\nconst $905f4ae918aab1aa$var$CANCEL_NAME = 'AlertDialogCancel';\nconst $905f4ae918aab1aa$export$2f67a923571aaea0 = /*#__PURE__*/$4k4D0$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeAlertDialog: __scopeAlertDialog,\n    ...cancelProps\n  } = props;\n  const {\n    cancelRef: cancelRef\n  } = $905f4ae918aab1aa$var$useAlertDialogContentContext($905f4ae918aab1aa$var$CANCEL_NAME, __scopeAlertDialog);\n  const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n  const ref = $4k4D0$useComposedRefs(forwardedRef, cancelRef);\n  return /*#__PURE__*/$4k4D0$createElement($4k4D0$Close, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, cancelProps, {\n    ref: ref\n  }));\n});\n/*#__PURE__*/\nObject.assign($905f4ae918aab1aa$export$2f67a923571aaea0, {\n  displayName: $905f4ae918aab1aa$var$CANCEL_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */\nconst $905f4ae918aab1aa$var$DescriptionWarning = ({\n  contentRef: contentRef\n}) => {\n  const MESSAGE = `\\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\` by passing a \\`${$905f4ae918aab1aa$var$DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n  $4k4D0$useEffect(() => {\n    var _contentRef$current;\n    const hasDescription = document.getElementById((_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'));\n    if (!hasDescription) console.warn(MESSAGE);\n  }, [MESSAGE, contentRef]);\n  return null;\n};\nconst $905f4ae918aab1aa$export$be92b6f5f03c0fe9 = $905f4ae918aab1aa$export$de466dd8317b0b75;\nconst $905f4ae918aab1aa$export$41fb9f06171c75f4 = $905f4ae918aab1aa$export$6edd7a623ef0f40b;\nconst $905f4ae918aab1aa$export$602eac185826482c = $905f4ae918aab1aa$export$660f2bfdb986706c;\nconst $905f4ae918aab1aa$export$c6fdb837b070b4ff = $905f4ae918aab1aa$export$a707a4895ce23256;\nconst $905f4ae918aab1aa$export$7c6e2c02157bb7d2 = $905f4ae918aab1aa$export$94e6af45f0af4efd;\nconst $905f4ae918aab1aa$export$e19cd5f9376f8cee = $905f4ae918aab1aa$export$b454f818c58ee85d;\nconst $905f4ae918aab1aa$export$848c9b7ead0df967 = $905f4ae918aab1aa$export$2f67a923571aaea0;\nconst $905f4ae918aab1aa$export$f99233281efd08a0 = $905f4ae918aab1aa$export$225e0da62d314b7;\nconst $905f4ae918aab1aa$export$393edc798c47379d = $905f4ae918aab1aa$export$a23b55cde55ad9a5;\nexport { $905f4ae918aab1aa$export$b8891880751c2c5b as createAlertDialogScope, $905f4ae918aab1aa$export$de466dd8317b0b75 as AlertDialog, $905f4ae918aab1aa$export$6edd7a623ef0f40b as AlertDialogTrigger, $905f4ae918aab1aa$export$660f2bfdb986706c as AlertDialogPortal, $905f4ae918aab1aa$export$a707a4895ce23256 as AlertDialogOverlay, $905f4ae918aab1aa$export$94e6af45f0af4efd as AlertDialogContent, $905f4ae918aab1aa$export$b454f818c58ee85d as AlertDialogAction, $905f4ae918aab1aa$export$2f67a923571aaea0 as AlertDialogCancel, $905f4ae918aab1aa$export$225e0da62d314b7 as AlertDialogTitle, $905f4ae918aab1aa$export$a23b55cde55ad9a5 as AlertDialogDescription, $905f4ae918aab1aa$export$be92b6f5f03c0fe9 as Root, $905f4ae918aab1aa$export$41fb9f06171c75f4 as Trigger, $905f4ae918aab1aa$export$602eac185826482c as Portal, $905f4ae918aab1aa$export$c6fdb837b070b4ff as Overlay, $905f4ae918aab1aa$export$7c6e2c02157bb7d2 as Content, $905f4ae918aab1aa$export$e19cd5f9376f8cee as Action, $905f4ae918aab1aa$export$848c9b7ead0df967 as Cancel, $905f4ae918aab1aa$export$f99233281efd08a0 as Title, $905f4ae918aab1aa$export$393edc798c47379d as Description };","map":{"version":3,"names":["$905f4ae918aab1aa$var$ROOT_NAME","$905f4ae918aab1aa$var$createAlertDialogContext","$905f4ae918aab1aa$export$b8891880751c2c5b","$4k4D0$createContextScope","$4k4D0$createDialogScope","$905f4ae918aab1aa$var$useDialogScope","$905f4ae918aab1aa$export$de466dd8317b0b75","props","__scopeAlertDialog","alertDialogProps","dialogScope","$4k4D0$createElement","$4k4D0$Root","$4k4D0$babelruntimehelpersesmextends","modal","Object","assign","displayName","$905f4ae918aab1aa$var$TRIGGER_NAME","$905f4ae918aab1aa$export$6edd7a623ef0f40b","$4k4D0$forwardRef","forwardedRef","triggerProps","$4k4D0$Trigger","ref","$905f4ae918aab1aa$var$PORTAL_NAME","$905f4ae918aab1aa$export$660f2bfdb986706c","portalProps","$4k4D0$Portal","$905f4ae918aab1aa$var$OVERLAY_NAME","$905f4ae918aab1aa$export$a707a4895ce23256","overlayProps","$4k4D0$Overlay","$905f4ae918aab1aa$var$CONTENT_NAME","$905f4ae918aab1aa$var$AlertDialogContentProvider","$905f4ae918aab1aa$var$useAlertDialogContentContext","$905f4ae918aab1aa$export$94e6af45f0af4efd","children","contentProps","contentRef","$4k4D0$useRef","composedRefs","$4k4D0$useComposedRefs","cancelRef","$4k4D0$WarningProvider","contentName","titleName","$905f4ae918aab1aa$var$TITLE_NAME","docsSlug","scope","$4k4D0$Content","role","onOpenAutoFocus","$4k4D0$composeEventHandlers","event","_cancelRef$current","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","$4k4D0$Slottable","$905f4ae918aab1aa$export$225e0da62d314b7","titleProps","$4k4D0$Title","$905f4ae918aab1aa$var$DESCRIPTION_NAME","$905f4ae918aab1aa$export$a23b55cde55ad9a5","descriptionProps","$4k4D0$Description","$905f4ae918aab1aa$var$ACTION_NAME","$905f4ae918aab1aa$export$b454f818c58ee85d","actionProps","$4k4D0$Close","$905f4ae918aab1aa$var$CANCEL_NAME","$905f4ae918aab1aa$export$2f67a923571aaea0","cancelProps","$905f4ae918aab1aa$var$DescriptionWarning","DescriptionWarning","MESSAGE","$4k4D0$useEffect","_contentRef$current","hasDescription","document","getElementById","getAttribute","console","warn","$905f4ae918aab1aa$export$be92b6f5f03c0fe9","$905f4ae918aab1aa$export$41fb9f06171c75f4","$905f4ae918aab1aa$export$602eac185826482c","$905f4ae918aab1aa$export$c6fdb837b070b4ff","$905f4ae918aab1aa$export$7c6e2c02157bb7d2","$905f4ae918aab1aa$export$e19cd5f9376f8cee","$905f4ae918aab1aa$export$848c9b7ead0df967","$905f4ae918aab1aa$export$f99233281efd08a0","$905f4ae918aab1aa$export$393edc798c47379d"],"sources":["C:\\Users\\user\\Desktop\\03portreact\\node_modules\\@radix-ui\\react-alert-dialog\\dist\\packages\\react\\alert-dialog\\src\\index.ts","C:\\Users\\user\\Desktop\\03portreact\\node_modules\\@radix-ui\\react-alert-dialog\\dist\\packages\\react\\alert-dialog\\src\\AlertDialog.tsx"],"sourcesContent":["export {\n  createAlertDialogScope,\n  //\n  AlertDialog,\n  AlertDialogTrigger,\n  AlertDialogPortal,\n  AlertDialogOverlay,\n  AlertDialogContent,\n  AlertDialogAction,\n  AlertDialogCancel,\n  AlertDialogTitle,\n  AlertDialogDescription,\n  //\n  Root,\n  Trigger,\n  Portal,\n  Overlay,\n  Content,\n  Action,\n  Cancel,\n  Title,\n  Description,\n} from './AlertDialog';\nexport type {\n  AlertDialogProps,\n  AlertDialogTriggerProps,\n  AlertDialogPortalProps,\n  AlertDialogOverlayProps,\n  AlertDialogContentProps,\n  AlertDialogActionProps,\n  AlertDialogCancelProps,\n  AlertDialogTitleProps,\n  AlertDialogDescriptionProps,\n} from './AlertDialog';\n","import * as React from 'react';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { createDialogScope } from '@radix-ui/react-dialog';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { Slottable } from '@radix-ui/react-slot';\n\nimport type * as Radix from '@radix-ui/react-primitive';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialog\n * -----------------------------------------------------------------------------------------------*/\n\nconst ROOT_NAME = 'AlertDialog';\n\ntype ScopedProps<P> = P & { __scopeAlertDialog?: Scope };\nconst [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n  createDialogScope,\n]);\nconst useDialogScope = createDialogScope();\n\ntype DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;\ninterface AlertDialogProps extends Omit<DialogProps, 'modal'> {}\n\nconst AlertDialog: React.FC<AlertDialogProps> = (props: ScopedProps<AlertDialogProps>) => {\n  const { __scopeAlertDialog, ...alertDialogProps } = props;\n  const dialogScope = useDialogScope(__scopeAlertDialog);\n  return <DialogPrimitive.Root {...dialogScope} {...alertDialogProps} modal={true} />;\n};\n\nAlertDialog.displayName = ROOT_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTrigger\n * -----------------------------------------------------------------------------------------------*/\nconst TRIGGER_NAME = 'AlertDialogTrigger';\n\ntype AlertDialogTriggerElement = React.ElementRef<typeof DialogPrimitive.Trigger>;\ntype DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;\ninterface AlertDialogTriggerProps extends DialogTriggerProps {}\n\nconst AlertDialogTrigger = React.forwardRef<AlertDialogTriggerElement, AlertDialogTriggerProps>(\n  (props: ScopedProps<AlertDialogTriggerProps>, forwardedRef) => {\n    const { __scopeAlertDialog, ...triggerProps } = props;\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    return <DialogPrimitive.Trigger {...dialogScope} {...triggerProps} ref={forwardedRef} />;\n  }\n);\n\nAlertDialogTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'AlertDialogPortal';\n\ntype DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;\ninterface AlertDialogPortalProps extends DialogPortalProps {}\n\nconst AlertDialogPortal: React.FC<AlertDialogPortalProps> = (\n  props: ScopedProps<AlertDialogPortalProps>\n) => {\n  const { __scopeAlertDialog, ...portalProps } = props;\n  const dialogScope = useDialogScope(__scopeAlertDialog);\n  return <DialogPrimitive.Portal {...dialogScope} {...portalProps} />;\n};\n\nAlertDialogPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogOverlay\n * -----------------------------------------------------------------------------------------------*/\n\nconst OVERLAY_NAME = 'AlertDialogOverlay';\n\ntype AlertDialogOverlayElement = React.ElementRef<typeof DialogPrimitive.Overlay>;\ntype DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;\ninterface AlertDialogOverlayProps extends DialogOverlayProps {}\n\nconst AlertDialogOverlay = React.forwardRef<AlertDialogOverlayElement, AlertDialogOverlayProps>(\n  (props: ScopedProps<AlertDialogOverlayProps>, forwardedRef) => {\n    const { __scopeAlertDialog, ...overlayProps } = props;\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    return <DialogPrimitive.Overlay {...dialogScope} {...overlayProps} ref={forwardedRef} />;\n  }\n);\n\nAlertDialogOverlay.displayName = OVERLAY_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'AlertDialogContent';\n\ntype AlertDialogContentContextValue = {\n  cancelRef: React.MutableRefObject<AlertDialogCancelElement | null>;\n};\n\nconst [AlertDialogContentProvider, useAlertDialogContentContext] =\n  createAlertDialogContext<AlertDialogContentContextValue>(CONTENT_NAME);\n\ntype AlertDialogContentElement = React.ElementRef<typeof DialogPrimitive.Content>;\ntype DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;\ninterface AlertDialogContentProps\n  extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {}\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n  (props: ScopedProps<AlertDialogContentProps>, forwardedRef) => {\n    const { __scopeAlertDialog, children, ...contentProps } = props;\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    const contentRef = React.useRef<AlertDialogContentElement>(null);\n    const composedRefs = useComposedRefs(forwardedRef, contentRef);\n    const cancelRef = React.useRef<AlertDialogCancelElement | null>(null);\n\n    return (\n      <DialogPrimitive.WarningProvider\n        contentName={CONTENT_NAME}\n        titleName={TITLE_NAME}\n        docsSlug=\"alert-dialog\"\n      >\n        <AlertDialogContentProvider scope={__scopeAlertDialog} cancelRef={cancelRef}>\n          <DialogPrimitive.Content\n            role=\"alertdialog\"\n            {...dialogScope}\n            {...contentProps}\n            ref={composedRefs}\n            onOpenAutoFocus={composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n              event.preventDefault();\n              cancelRef.current?.focus({ preventScroll: true });\n            })}\n            onPointerDownOutside={(event) => event.preventDefault()}\n            onInteractOutside={(event) => event.preventDefault()}\n          >\n            {/**\n             * We have to use `Slottable` here as we cannot wrap the `AlertDialogContentProvider`\n             * around everything, otherwise the `DescriptionWarning` would be rendered straight away.\n             * This is because we want the accessibility checks to run only once the content is actually\n             * open and that behaviour is already encapsulated in `DialogContent`.\n             */}\n            <Slottable>{children}</Slottable>\n            {process.env.NODE_ENV === 'development' && (\n              <DescriptionWarning contentRef={contentRef} />\n            )}\n          </DialogPrimitive.Content>\n        </AlertDialogContentProvider>\n      </DialogPrimitive.WarningProvider>\n    );\n  }\n);\n\nAlertDialogContent.displayName = CONTENT_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTitle\n * -----------------------------------------------------------------------------------------------*/\n\nconst TITLE_NAME = 'AlertDialogTitle';\n\ntype AlertDialogTitleElement = React.ElementRef<typeof DialogPrimitive.Title>;\ntype DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;\ninterface AlertDialogTitleProps extends DialogTitleProps {}\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n  (props: ScopedProps<AlertDialogTitleProps>, forwardedRef) => {\n    const { __scopeAlertDialog, ...titleProps } = props;\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    return <DialogPrimitive.Title {...dialogScope} {...titleProps} ref={forwardedRef} />;\n  }\n);\n\nAlertDialogTitle.displayName = TITLE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogDescription\n * -----------------------------------------------------------------------------------------------*/\n\nconst DESCRIPTION_NAME = 'AlertDialogDescription';\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;\ntype DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;\ninterface AlertDialogDescriptionProps extends DialogDescriptionProps {}\n\nconst AlertDialogDescription = React.forwardRef<\n  AlertDialogDescriptionElement,\n  AlertDialogDescriptionProps\n>((props: ScopedProps<AlertDialogDescriptionProps>, forwardedRef) => {\n  const { __scopeAlertDialog, ...descriptionProps } = props;\n  const dialogScope = useDialogScope(__scopeAlertDialog);\n  return <DialogPrimitive.Description {...dialogScope} {...descriptionProps} ref={forwardedRef} />;\n});\n\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogAction\n * -----------------------------------------------------------------------------------------------*/\n\nconst ACTION_NAME = 'AlertDialogAction';\n\ntype AlertDialogActionElement = React.ElementRef<typeof DialogPrimitive.Close>;\ntype DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;\ninterface AlertDialogActionProps extends DialogCloseProps {}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n  (props: ScopedProps<AlertDialogActionProps>, forwardedRef) => {\n    const { __scopeAlertDialog, ...actionProps } = props;\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    return <DialogPrimitive.Close {...dialogScope} {...actionProps} ref={forwardedRef} />;\n  }\n);\n\nAlertDialogAction.displayName = ACTION_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogCancel\n * -----------------------------------------------------------------------------------------------*/\n\nconst CANCEL_NAME = 'AlertDialogCancel';\n\ntype AlertDialogCancelElement = React.ElementRef<typeof DialogPrimitive.Close>;\ninterface AlertDialogCancelProps extends DialogCloseProps {}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n  (props: ScopedProps<AlertDialogCancelProps>, forwardedRef) => {\n    const { __scopeAlertDialog, ...cancelProps } = props;\n    const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n    const dialogScope = useDialogScope(__scopeAlertDialog);\n    const ref = useComposedRefs(forwardedRef, cancelRef);\n    return <DialogPrimitive.Close {...dialogScope} {...cancelProps} ref={ref} />;\n  }\n);\n\nAlertDialogCancel.displayName = CANCEL_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype DescriptionWarningProps = {\n  contentRef: React.RefObject<AlertDialogContentElement>;\n};\n\nconst DescriptionWarning: React.FC<DescriptionWarningProps> = ({ contentRef }) => {\n  const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n\n  React.useEffect(() => {\n    const hasDescription = document.getElementById(\n      contentRef.current?.getAttribute('aria-describedby')!\n    );\n    if (!hasDescription) console.warn(MESSAGE);\n  }, [MESSAGE, contentRef]);\n\n  return null;\n};\n\nconst Root = AlertDialog;\nconst Trigger = AlertDialogTrigger;\nconst Portal = AlertDialogPortal;\nconst Overlay = AlertDialogOverlay;\nconst Content = AlertDialogContent;\nconst Action = AlertDialogAction;\nconst Cancel = AlertDialogCancel;\nconst Title = AlertDialogTitle;\nconst Description = AlertDialogDescription;\n\nexport {\n  createAlertDialogScope,\n  //\n  AlertDialog,\n  AlertDialogTrigger,\n  AlertDialogPortal,\n  AlertDialogOverlay,\n  AlertDialogContent,\n  AlertDialogAction,\n  AlertDialogCancel,\n  AlertDialogTitle,\n  AlertDialogDescription,\n  //\n  Root,\n  Trigger,\n  Portal,\n  Overlay,\n  Content,\n  Action,\n  Cancel,\n  Title,\n  Description,\n};\nexport type {\n  AlertDialogProps,\n  AlertDialogTriggerProps,\n  AlertDialogPortalProps,\n  AlertDialogOverlayProps,\n  AlertDialogContentProps,\n  AlertDialogActionProps,\n  AlertDialogCancelProps,\n  AlertDialogTitleProps,\n  AlertDialogDescriptionProps,\n};\n"],"mappings":";;;;;;;;ACWA;;;AAIA,MAAMA,+BAAS,GAAG,aAAlB;AAGA,MAAM,CAACC,8CAAD,EAA2BC,yCAA3B,IAAqDC,yBAAkB,CAACH,+BAAD,EAAY,CACvFI,wBADuF,CAAZ,CAA7E;AAGA,MAAMC,oCAAc,GAAGD,wBAAiB,EAAxC;AAKA,MAAME,yCAAuC,GAAIC,KAAD,IAA0C;EACxF,MAAM;wBAAEC,kBAAF;IAAsB,GAAGC;EAAH,CAAtB,GAA8CF,KAApD;EACA,MAAMG,WAAW,GAAGL,oCAAc,CAACG,kBAAD,CAAlC;EACA,oBAAOG,oBAAA,CAACC,WAAD,EAAAC,oCAAA,KAA0BH,WAA1B,EAA2CD,gBAA3C,EAAP;IAAoEK,KAAK,EAAE;GAApE,EAAP;CAHF;AAMA;AAAAC,MAAA,CAAAC,MAAA,CAAAV,yCAAA;EAAAW,WAAA,EAAAjB;CAAA;AAEA;;;AAGA,MAAMkB,kCAAY,GAAG,oBAArB;AAMA,MAAMC,yCAAkB,gBAAGC,iBAAA,CACzB,CAACb,KAAD,EAA8Cc,YAA9C,KAA+D;EAC7D,MAAM;wBAAEb,kBAAF;IAAsB,GAAGc;EAAH,CAAtB,GAA0Cf,KAAhD;EACA,MAAMG,WAAW,GAAGL,oCAAc,CAACG,kBAAD,CAAlC;EACA,oBAAOG,oBAAA,CAACY,cAAD,EAAAV,oCAAA,KAA6BH,WAA7B,EAA8CY,YAA9C,EAAP;IAAmEE,GAAG,EAAEH;GAAjE,EAAP;CAJuB,CAA3B;AAQA;AAAAN,MAAA,CAAA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