{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/05portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/05portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _slicedToArray from \"C:/Users/user/Desktop/05portreact/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar _excluded = [\"__scopeDialog\"],\n  _excluded2 = [\"forceMount\"],\n  _excluded3 = [\"__scopeDialog\"],\n  _excluded4 = [\"forceMount\"],\n  _excluded5 = [\"__scopeDialog\", \"trapFocus\", \"onOpenAutoFocus\", \"onCloseAutoFocus\"],\n  _excluded6 = [\"__scopeDialog\"],\n  _excluded7 = [\"__scopeDialog\"],\n  _excluded8 = [\"__scopeDialog\"];\nimport $67UHm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { useRef as $67UHm$useRef, createElement as $67UHm$createElement, useCallback as $67UHm$useCallback, forwardRef as $67UHm$forwardRef, Children as $67UHm$Children, useEffect as $67UHm$useEffect, Fragment as $67UHm$Fragment } from \"react\";\nimport { composeEventHandlers as $67UHm$composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs as $67UHm$useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as $67UHm$createContextScope, createContext as $67UHm$createContext } from \"@radix-ui/react-context\";\nimport { useId as $67UHm$useId } from \"@radix-ui/react-id\";\nimport { useControllableState as $67UHm$useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer as $67UHm$DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope as $67UHm$FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as $67UHm$Portal } from \"@radix-ui/react-portal\";\nimport { Presence as $67UHm$Presence } from \"@radix-ui/react-presence\";\nimport { Primitive as $67UHm$Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards as $67UHm$useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll as $67UHm$RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers as $67UHm$hideOthers } from \"aria-hidden\";\nimport { Slot as $67UHm$Slot } from \"@radix-ui/react-slot\";\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';\nvar _$67UHm$createContext = $67UHm$createContextScope($5d3850c4d0b4e6c7$var$DIALOG_NAME),\n  _$67UHm$createContext2 = _slicedToArray(_$67UHm$createContext, 2),\n  $5d3850c4d0b4e6c7$var$createDialogContext = _$67UHm$createContext2[0],\n  $5d3850c4d0b4e6c7$export$cc702773b8ea3e41 = _$67UHm$createContext2[1];\nvar _$5d3850c4d0b4e6c7$va = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME),\n  _$5d3850c4d0b4e6c7$va2 = _slicedToArray(_$5d3850c4d0b4e6c7$va, 2),\n  $5d3850c4d0b4e6c7$var$DialogProvider = _$5d3850c4d0b4e6c7$va2[0],\n  $5d3850c4d0b4e6c7$var$useDialogContext = _$5d3850c4d0b4e6c7$va2[1];\nvar $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = function $5d3850c4d0b4e6c7$export$3ddf2d174ce01153(props) {\n  var __scopeDialog = props.__scopeDialog,\n    children = props.children,\n    openProp = props.open,\n    defaultOpen = props.defaultOpen,\n    onOpenChange = props.onOpenChange,\n    _props$modal = props.modal,\n    modal = _props$modal === void 0 ? true : _props$modal;\n  var triggerRef = $67UHm$useRef(null);\n  var contentRef = $67UHm$useRef(null);\n  var _$67UHm$useControllab = $67UHm$useControllableState({\n      prop: openProp,\n      defaultProp: defaultOpen,\n      onChange: onOpenChange\n    }),\n    _$67UHm$useControllab2 = _slicedToArray(_$67UHm$useControllab, 2),\n    _$67UHm$useControllab3 = _$67UHm$useControllab2[0],\n    open = _$67UHm$useControllab3 === void 0 ? false : _$67UHm$useControllab3,\n    setOpen = _$67UHm$useControllab2[1];\n  return /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogProvider, {\n    scope: __scopeDialog,\n    triggerRef: triggerRef,\n    contentRef: contentRef,\n    contentId: $67UHm$useId(),\n    titleId: $67UHm$useId(),\n    descriptionId: $67UHm$useId(),\n    open: open,\n    onOpenChange: setOpen,\n    onOpenToggle: $67UHm$useCallback(function () {\n      return setOpen(function (prevOpen) {\n        return !prevOpen;\n      });\n    }, [setOpen]),\n    modal: modal\n  }, children);\n};\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, {\n  displayName: $5d3850c4d0b4e6c7$var$DIALOG_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$TRIGGER_NAME = 'DialogTrigger';\nvar $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    triggerProps = _objectWithoutProperties(props, _excluded);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);\n  var composedTriggerRef = $67UHm$useComposedRefs(forwardedRef, context.triggerRef);\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n    type: \"button\",\n    \"aria-haspopup\": \"dialog\",\n    \"aria-expanded\": context.open,\n    \"aria-controls\": context.contentId,\n    \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n  }, triggerProps, {\n    ref: composedTriggerRef,\n    onClick: $67UHm$composeEventHandlers(props.onClick, context.onOpenToggle)\n  }));\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, {\n  displayName: $5d3850c4d0b4e6c7$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';\nvar _$5d3850c4d0b4e6c7$va3 = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {\n    forceMount: undefined\n  }),\n  _$5d3850c4d0b4e6c7$va4 = _slicedToArray(_$5d3850c4d0b4e6c7$va3, 2),\n  $5d3850c4d0b4e6c7$var$PortalProvider = _$5d3850c4d0b4e6c7$va4[0],\n  $5d3850c4d0b4e6c7$var$usePortalContext = _$5d3850c4d0b4e6c7$va4[1];\nvar $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = function $5d3850c4d0b4e6c7$export$dad7c95542bacce0(props) {\n  var __scopeDialog = props.__scopeDialog,\n    forceMount = props.forceMount,\n    children = props.children,\n    container = props.container;\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);\n  return /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$PortalProvider, {\n    scope: __scopeDialog,\n    forceMount: forceMount\n  }, $67UHm$Children.map(children, function (child) {\n    return /*#__PURE__*/$67UHm$createElement($67UHm$Presence, {\n      present: forceMount || context.open\n    }, /*#__PURE__*/$67UHm$createElement($67UHm$Portal, {\n      asChild: true,\n      container: container\n    }, child));\n  }));\n};\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$dad7c95542bacce0, {\n  displayName: $5d3850c4d0b4e6c7$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';\nvar $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n  var _props$forceMount = props.forceMount,\n    forceMount = _props$forceMount === void 0 ? portalContext.forceMount : _props$forceMount,\n    overlayProps = _objectWithoutProperties(props, _excluded2);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n  return context.modal ? /*#__PURE__*/$67UHm$createElement($67UHm$Presence, {\n    present: forceMount || context.open\n  }, /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, $67UHm$babelruntimehelpersesmextends({}, overlayProps, {\n    ref: forwardedRef\n  }))) : null;\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$bd1d06c79be19e17, {\n  displayName: $5d3850c4d0b4e6c7$var$OVERLAY_NAME\n});\nvar $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    overlayProps = _objectWithoutProperties(props, _excluded3);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);\n  return /*#__PURE__*/ (// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n    // ie. when `Overlay` and `Content` are siblings\n    $67UHm$createElement($67UHm$RemoveScroll, {\n      as: $67UHm$Slot,\n      allowPinchZoom: true,\n      shards: [context.contentRef]\n    }, /*#__PURE__*/$67UHm$createElement($67UHm$Primitive.div, $67UHm$babelruntimehelpersesmextends({\n      \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n    }, overlayProps, {\n      ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n      ,\n\n      style: _objectSpread({\n        pointerEvents: 'auto'\n      }, overlayProps.style)\n    })))\n  );\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';\nvar $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n  var _props$forceMount2 = props.forceMount,\n    forceMount = _props$forceMount2 === void 0 ? portalContext.forceMount : _props$forceMount2,\n    contentProps = _objectWithoutProperties(props, _excluded4);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Presence, {\n    present: forceMount || context.open\n  }, context.modal ? /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n    ref: forwardedRef\n  })) : /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n    ref: forwardedRef\n  })));\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$b6d9565de1e068cf, {\n  displayName: $5d3850c4d0b4e6c7$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n  var contentRef = $67UHm$useRef(null);\n  var composedRefs = $67UHm$useComposedRefs(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n  $67UHm$useEffect(function () {\n    var content = contentRef.current;\n    if (content) return $67UHm$hideOthers(content);\n  }, []);\n  return /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n    ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed\n    ,\n\n    trapFocus: context.open,\n    disableOutsidePointerEvents: true,\n    onCloseAutoFocus: $67UHm$composeEventHandlers(props.onCloseAutoFocus, function (event) {\n      var _context$triggerRef$c;\n      event.preventDefault();\n      (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n    }),\n    onPointerDownOutside: $67UHm$composeEventHandlers(props.onPointerDownOutside, function (event) {\n      var originalEvent = event.detail.originalEvent;\n      var ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n      var isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because\n      // it is effectively as if we right-clicked the `Overlay`.\n      if (isRightClick) event.preventDefault();\n    }) // When focus is trapped, a `focusout` event may still happen.\n    ,\n\n    onFocusOutside: $67UHm$composeEventHandlers(props.onFocusOutside, function (event) {\n      return event.preventDefault();\n    })\n  }));\n});\n/* -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n  var hasInteractedOutsideRef = $67UHm$useRef(false);\n  var hasPointerDownOutsideRef = $67UHm$useRef(false);\n  return /*#__PURE__*/$67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n    ref: forwardedRef,\n    trapFocus: false,\n    disableOutsidePointerEvents: false,\n    onCloseAutoFocus: function onCloseAutoFocus(event) {\n      var _props$onCloseAutoFoc;\n      (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n      if (!event.defaultPrevented) {\n        var _context$triggerRef$c2;\n        if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n        event.preventDefault();\n      }\n      hasInteractedOutsideRef.current = false;\n      hasPointerDownOutsideRef.current = false;\n    },\n    onInteractOutside: function onInteractOutside(event) {\n      var _props$onInteractOuts, _context$triggerRef$c3;\n      (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n      if (!event.defaultPrevented) {\n        hasInteractedOutsideRef.current = true;\n        if (event.detail.originalEvent.type === 'pointerdown') hasPointerDownOutsideRef.current = true;\n      } // Prevent dismissing when clicking the trigger.\n      // As the trigger is already setup to close, without doing so would\n      // cause it to close and immediately open.\n      var target = event.target;\n      var targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n      if (targetIsTrigger) event.preventDefault(); // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n      // we will get the pointer down outside event on the trigger, but then a subsequent\n      // focus outside event on the container, we ignore any focus outside event when we've\n      // already had a pointer down outside event.\n      if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) event.preventDefault();\n    }\n  }));\n});\n/* -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    trapFocus = props.trapFocus,\n    onOpenAutoFocus = props.onOpenAutoFocus,\n    onCloseAutoFocus = props.onCloseAutoFocus,\n    contentProps = _objectWithoutProperties(props, _excluded5);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);\n  var contentRef = $67UHm$useRef(null);\n  var composedRefs = $67UHm$useComposedRefs(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be\n  // the last element in the DOM (beacuse of the `Portal`)\n  $67UHm$useFocusGuards();\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Fragment, null, /*#__PURE__*/$67UHm$createElement($67UHm$FocusScope, {\n    asChild: true,\n    loop: true,\n    trapped: trapFocus,\n    onMountAutoFocus: onOpenAutoFocus,\n    onUnmountAutoFocus: onCloseAutoFocus\n  }, /*#__PURE__*/$67UHm$createElement($67UHm$DismissableLayer, $67UHm$babelruntimehelpersesmextends({\n    role: \"dialog\",\n    id: context.contentId,\n    \"aria-describedby\": context.descriptionId,\n    \"aria-labelledby\": context.titleId,\n    \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n  }, contentProps, {\n    ref: composedRefs,\n    onDismiss: function onDismiss() {\n      return context.onOpenChange(false);\n    }\n  }))), false);\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';\nvar $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    titleProps = _objectWithoutProperties(props, _excluded6);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Primitive.h2, $67UHm$babelruntimehelpersesmextends({\n    id: context.titleId\n  }, titleProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$16f7638e4a34b909, {\n  displayName: $5d3850c4d0b4e6c7$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';\nvar $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    descriptionProps = _objectWithoutProperties(props, _excluded7);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Primitive.p, $67UHm$babelruntimehelpersesmextends({\n    id: context.descriptionId\n  }, descriptionProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$94e94c2ec2c954d5, {\n  displayName: $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/\nvar $5d3850c4d0b4e6c7$var$CLOSE_NAME = 'DialogClose';\nvar $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/$67UHm$forwardRef(function (props, forwardedRef) {\n  var __scopeDialog = props.__scopeDialog,\n    closeProps = _objectWithoutProperties(props, _excluded8);\n  var context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);\n  return /*#__PURE__*/$67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n    type: \"button\"\n  }, closeProps, {\n    ref: forwardedRef,\n    onClick: $67UHm$composeEventHandlers(props.onClick, function () {\n      return context.onOpenChange(false);\n    })\n  }));\n});\n/*#__PURE__*/\nObject.assign($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, {\n  displayName: $5d3850c4d0b4e6c7$var$CLOSE_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/\nfunction $5d3850c4d0b4e6c7$var$getState(open) {\n  return open ? 'open' : 'closed';\n}\nvar $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = 'DialogTitleWarning';\nvar _$67UHm$createContext3 = $67UHm$createContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {\n    contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,\n    titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,\n    docsSlug: 'dialog'\n  }),\n  _$67UHm$createContext4 = _slicedToArray(_$67UHm$createContext3, 2),\n  $5d3850c4d0b4e6c7$export$69b62a49393917d6 = _$67UHm$createContext4[0],\n  $5d3850c4d0b4e6c7$var$useWarningContext = _$67UHm$createContext4[1];\nvar $5d3850c4d0b4e6c7$var$TitleWarning = function $5d3850c4d0b4e6c7$var$TitleWarning(_ref) {\n  var titleId = _ref.titleId;\n  var titleWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME);\n  var MESSAGE = \"`\".concat(titleWarningContext.contentName, \"` requires a `\").concat(titleWarningContext.titleName, \"` for the component to be accessible for screen reader users.\\n\\nIf you want to hide the `\").concat(titleWarningContext.titleName, \"`, you can wrap it with our VisuallyHidden component.\\n\\nFor more information, see https://radix-ui.com/primitives/docs/components/\").concat(titleWarningContext.docsSlug);\n  $67UHm$useEffect(function () {\n    if (titleId) {\n      var hasTitle = document.getElementById(titleId);\n      if (!hasTitle) throw new Error(MESSAGE);\n    }\n  }, [MESSAGE, titleId]);\n  return null;\n};\nvar $5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\nvar $5d3850c4d0b4e6c7$var$DescriptionWarning = function $5d3850c4d0b4e6c7$var$DescriptionWarning(_ref2) {\n  var contentRef = _ref2.contentRef,\n    descriptionId = _ref2.descriptionId;\n  var descriptionWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME);\n  var MESSAGE = \"Warning: Missing `Description` or `aria-describedby={undefined}` for {\".concat(descriptionWarningContext.contentName, \"}.\");\n  $67UHm$useEffect(function () {\n    var _contentRef$current;\n    var describedById = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'); // if we have an id and the user hasn't set aria-describedby={undefined}\n    if (descriptionId && describedById) {\n      var hasDescription = document.getElementById(descriptionId);\n      if (!hasDescription) console.warn(MESSAGE);\n    }\n  }, [MESSAGE, contentRef, descriptionId]);\n  return null;\n};\nvar $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;\nvar $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 = $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88;\nvar $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;\nvar $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;\nvar $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;\nvar $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;\nvar $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;\nvar $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;\nexport { $5d3850c4d0b4e6c7$export$cc702773b8ea3e41 as createDialogScope, $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 as Dialog, $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 as DialogTrigger, $5d3850c4d0b4e6c7$export$dad7c95542bacce0 as DialogPortal, $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 as DialogOverlay, $5d3850c4d0b4e6c7$export$b6d9565de1e068cf as DialogContent, $5d3850c4d0b4e6c7$export$16f7638e4a34b909 as DialogTitle, $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 as DialogDescription, $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac as DialogClose, $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 as Root, $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 as Trigger, $5d3850c4d0b4e6c7$export$602eac185826482c as Portal, $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff as Overlay, $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 as Content, $5d3850c4d0b4e6c7$export$f99233281efd08a0 as Title, $5d3850c4d0b4e6c7$export$393edc798c47379d as Description, $5d3850c4d0b4e6c7$export$f39c2d165cd861fe as Close, $5d3850c4d0b4e6c7$export$69b62a49393917d6 as WarningProvider };","map":{"version":3,"names":["$5d3850c4d0b4e6c7$var$DIALOG_NAME","_$67UHm$createContext","$67UHm$createContextScope","_$67UHm$createContext2","_slicedToArray","$5d3850c4d0b4e6c7$var$createDialogContext","$5d3850c4d0b4e6c7$export$cc702773b8ea3e41","_$5d3850c4d0b4e6c7$va","_$5d3850c4d0b4e6c7$va2","$5d3850c4d0b4e6c7$var$DialogProvider","$5d3850c4d0b4e6c7$var$useDialogContext","$5d3850c4d0b4e6c7$export$3ddf2d174ce01153","Dialog","props","__scopeDialog","children","openProp","open","defaultOpen","onOpenChange","modal","_props$modal","triggerRef","$67UHm$useRef","contentRef","_$67UHm$useControllab","$67UHm$useControllableState","prop","defaultProp","onChange","_$67UHm$useControllab2","_$67UHm$useControllab3","setOpen","$67UHm$createElement","scope","contentId","$67UHm$useId","titleId","descriptionId","onOpenToggle","$67UHm$useCallback","prevOpen","Object","assign","displayName","$5d3850c4d0b4e6c7$var$TRIGGER_NAME","$5d3850c4d0b4e6c7$export$2e1e1122cf0cba88","$67UHm$forwardRef","forwardedRef","triggerProps","_objectWithoutProperties","_excluded","context","composedTriggerRef","$67UHm$useComposedRefs","$67UHm$Primitive","button","$67UHm$babelruntimehelpersesmextends","type","$5d3850c4d0b4e6c7$var$getState","ref","onClick","$67UHm$composeEventHandlers","$5d3850c4d0b4e6c7$var$PORTAL_NAME","_$5d3850c4d0b4e6c7$va3","forceMount","undefined","_$5d3850c4d0b4e6c7$va4","$5d3850c4d0b4e6c7$var$PortalProvider","$5d3850c4d0b4e6c7$var$usePortalContext","$5d3850c4d0b4e6c7$export$dad7c95542bacce0","DialogPortal","container","$67UHm$Children","map","child","$67UHm$Presence","present","$67UHm$Portal","asChild","$5d3850c4d0b4e6c7$var$OVERLAY_NAME","$5d3850c4d0b4e6c7$export$bd1d06c79be19e17","portalContext","_props$forceMount","overlayProps","_excluded2","$5d3850c4d0b4e6c7$var$DialogOverlayImpl","_excluded3","$67UHm$RemoveScroll","as","$67UHm$Slot","allowPinchZoom","shards","div","style","_objectSpread","pointerEvents","$5d3850c4d0b4e6c7$var$CONTENT_NAME","$5d3850c4d0b4e6c7$export$b6d9565de1e068cf","_props$forceMount2","contentProps","_excluded4","$5d3850c4d0b4e6c7$var$DialogContentModal","$5d3850c4d0b4e6c7$var$DialogContentNonModal","composedRefs","$67UHm$useEffect","content","current","$67UHm$hideOthers","$5d3850c4d0b4e6c7$var$DialogContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","_context$triggerRef$c","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","isRightClick","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","_props$onCloseAutoFoc","call","defaultPrevented","_context$triggerRef$c2","onInteractOutside","_props$onInteractOuts","_context$triggerRef$c3","target","targetIsTrigger","contains","onOpenAutoFocus","_excluded5","$67UHm$useFocusGuards","$67UHm$Fragment","$67UHm$FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","$67UHm$DismissableLayer","role","id","onDismiss","$5d3850c4d0b4e6c7$var$TITLE_NAME","$5d3850c4d0b4e6c7$export$16f7638e4a34b909","titleProps","_excluded6","h2","$5d3850c4d0b4e6c7$var$DESCRIPTION_NAME","$5d3850c4d0b4e6c7$export$94e94c2ec2c954d5","descriptionProps","_excluded7","p","$5d3850c4d0b4e6c7$var$CLOSE_NAME","$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac","closeProps","_excluded8","getState","$5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME","_$67UHm$createContext3","$67UHm$createContext","contentName","titleName","docsSlug","_$67UHm$createContext4","$5d3850c4d0b4e6c7$export$69b62a49393917d6","$5d3850c4d0b4e6c7$var$useWarningContext","$5d3850c4d0b4e6c7$var$TitleWarning","TitleWarning","_ref","titleWarningContext","MESSAGE","concat","hasTitle","document","getElementById","Error","$5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME","$5d3850c4d0b4e6c7$var$DescriptionWarning","DescriptionWarning","_ref2","descriptionWarningContext","_contentRef$current","describedById","getAttribute","hasDescription","console","warn","$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9","$5d3850c4d0b4e6c7$export$41fb9f06171c75f4","$5d3850c4d0b4e6c7$export$602eac185826482c","$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff","$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2","$5d3850c4d0b4e6c7$export$f99233281efd08a0","$5d3850c4d0b4e6c7$export$393edc798c47379d","$5d3850c4d0b4e6c7$export$f39c2d165cd861fe"],"sources":["C:\\Users\\user\\Desktop\\05portreact\\node_modules\\@radix-ui\\react-dialog\\dist\\packages\\react\\dialog\\src\\index.ts","C:\\Users\\user\\Desktop\\05portreact\\node_modules\\@radix-ui\\react-dialog\\dist\\packages\\react\\dialog\\src\\Dialog.tsx"],"sourcesContent":["export {\n  createDialogScope,\n  //\n  Dialog,\n  DialogTrigger,\n  DialogPortal,\n  DialogOverlay,\n  DialogContent,\n  DialogTitle,\n  DialogDescription,\n  DialogClose,\n  //\n  Root,\n  Trigger,\n  Portal,\n  Overlay,\n  Content,\n  Title,\n  Description,\n  Close,\n  //\n  WarningProvider,\n} from './Dialog';\nexport type {\n  DialogProps,\n  DialogTriggerProps,\n  DialogPortalProps,\n  DialogOverlayProps,\n  DialogContentProps,\n  DialogTitleProps,\n  DialogDescriptionProps,\n  DialogCloseProps,\n} from './Dialog';\n","import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContext, createContextScope } from '@radix-ui/react-context';\nimport { useId } from '@radix-ui/react-id';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { FocusScope } from '@radix-ui/react-focus-scope';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { hideOthers } from 'aria-hidden';\nimport { Slot } 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 * Dialog\n * -----------------------------------------------------------------------------------------------*/\n\nconst DIALOG_NAME = 'Dialog';\n\ntype ScopedProps<P> = P & { __scopeDialog?: Scope };\nconst [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\n\ntype DialogContextValue = {\n  triggerRef: React.RefObject<HTMLButtonElement>;\n  contentRef: React.RefObject<DialogContentElement>;\n  contentId: string;\n  titleId: string;\n  descriptionId: string;\n  open: boolean;\n  onOpenChange(open: boolean): void;\n  onOpenToggle(): void;\n  modal: boolean;\n};\n\nconst [DialogProvider, useDialogContext] = createDialogContext<DialogContextValue>(DIALOG_NAME);\n\ninterface DialogProps {\n  children?: React.ReactNode;\n  open?: boolean;\n  defaultOpen?: boolean;\n  onOpenChange?(open: boolean): void;\n  modal?: boolean;\n}\n\nconst Dialog: React.FC<DialogProps> = (props: ScopedProps<DialogProps>) => {\n  const {\n    __scopeDialog,\n    children,\n    open: openProp,\n    defaultOpen,\n    onOpenChange,\n    modal = true,\n  } = props;\n  const triggerRef = React.useRef<HTMLButtonElement>(null);\n  const contentRef = React.useRef<DialogContentElement>(null);\n  const [open = false, setOpen] = useControllableState({\n    prop: openProp,\n    defaultProp: defaultOpen,\n    onChange: onOpenChange,\n  });\n\n  return (\n    <DialogProvider\n      scope={__scopeDialog}\n      triggerRef={triggerRef}\n      contentRef={contentRef}\n      contentId={useId()}\n      titleId={useId()}\n      descriptionId={useId()}\n      open={open}\n      onOpenChange={setOpen}\n      onOpenToggle={React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])}\n      modal={modal}\n    >\n      {children}\n    </DialogProvider>\n  );\n};\n\nDialog.displayName = DIALOG_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'DialogTrigger';\n\ntype DialogTriggerElement = React.ElementRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface DialogTriggerProps extends PrimitiveButtonProps {}\n\nconst DialogTrigger = React.forwardRef<DialogTriggerElement, DialogTriggerProps>(\n  (props: ScopedProps<DialogTriggerProps>, forwardedRef) => {\n    const { __scopeDialog, ...triggerProps } = props;\n    const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n    const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n    return (\n      <Primitive.button\n        type=\"button\"\n        aria-haspopup=\"dialog\"\n        aria-expanded={context.open}\n        aria-controls={context.contentId}\n        data-state={getState(context.open)}\n        {...triggerProps}\n        ref={composedTriggerRef}\n        onClick={composeEventHandlers(props.onClick, context.onOpenToggle)}\n      />\n    );\n  }\n);\n\nDialogTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'DialogPortal';\n\ntype PortalContextValue = { forceMount?: true };\nconst [PortalProvider, usePortalContext] = createDialogContext<PortalContextValue>(PORTAL_NAME, {\n  forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef<typeof PortalPrimitive>;\ninterface DialogPortalProps extends Omit<PortalProps, 'asChild'> {\n  children?: React.ReactNode;\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst DialogPortal: React.FC<DialogPortalProps> = (props: ScopedProps<DialogPortalProps>) => {\n  const { __scopeDialog, forceMount, children, container } = props;\n  const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n  return (\n    <PortalProvider scope={__scopeDialog} forceMount={forceMount}>\n      {React.Children.map(children, (child) => (\n        <Presence present={forceMount || context.open}>\n          <PortalPrimitive asChild container={container}>\n            {child}\n          </PortalPrimitive>\n        </Presence>\n      ))}\n    </PortalProvider>\n  );\n};\n\nDialogPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/\n\nconst OVERLAY_NAME = 'DialogOverlay';\n\ntype DialogOverlayElement = DialogOverlayImplElement;\ninterface DialogOverlayProps extends DialogOverlayImplProps {\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst DialogOverlay = React.forwardRef<DialogOverlayElement, DialogOverlayProps>(\n  (props: ScopedProps<DialogOverlayProps>, forwardedRef) => {\n    const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n    const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n    const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n    return context.modal ? (\n      <Presence present={forceMount || context.open}>\n        <DialogOverlayImpl {...overlayProps} ref={forwardedRef} />\n      </Presence>\n    ) : null;\n  }\n);\n\nDialogOverlay.displayName = OVERLAY_NAME;\n\ntype DialogOverlayImplElement = React.ElementRef<typeof Primitive.div>;\ntype PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface DialogOverlayImplProps extends PrimitiveDivProps {}\n\nconst DialogOverlayImpl = React.forwardRef<DialogOverlayImplElement, DialogOverlayImplProps>(\n  (props: ScopedProps<DialogOverlayImplProps>, forwardedRef) => {\n    const { __scopeDialog, ...overlayProps } = props;\n    const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n    return (\n      // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n      // ie. when `Overlay` and `Content` are siblings\n      <RemoveScroll as={Slot} allowPinchZoom shards={[context.contentRef]}>\n        <Primitive.div\n          data-state={getState(context.open)}\n          {...overlayProps}\n          ref={forwardedRef}\n          // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n          style={{ pointerEvents: 'auto', ...overlayProps.style }}\n        />\n      </RemoveScroll>\n    );\n  }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'DialogContent';\n\ntype DialogContentElement = DialogContentTypeElement;\ninterface DialogContentProps extends DialogContentTypeProps {\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst DialogContent = React.forwardRef<DialogContentElement, DialogContentProps>(\n  (props: ScopedProps<DialogContentProps>, forwardedRef) => {\n    const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n    const { forceMount = portalContext.forceMount, ...contentProps } = props;\n    const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n    return (\n      <Presence present={forceMount || context.open}>\n        {context.modal ? (\n          <DialogContentModal {...contentProps} ref={forwardedRef} />\n        ) : (\n          <DialogContentNonModal {...contentProps} ref={forwardedRef} />\n        )}\n      </Presence>\n    );\n  }\n);\n\nDialogContent.displayName = CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentTypeElement = DialogContentImplElement;\ninterface DialogContentTypeProps\n  extends Omit<DialogContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {}\n\nconst DialogContentModal = React.forwardRef<DialogContentTypeElement, DialogContentTypeProps>(\n  (props: ScopedProps<DialogContentTypeProps>, forwardedRef) => {\n    const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n    const contentRef = React.useRef<HTMLDivElement>(null);\n    const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n\n    // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n    React.useEffect(() => {\n      const content = contentRef.current;\n      if (content) return hideOthers(content);\n    }, []);\n\n    return (\n      <DialogContentImpl\n        {...props}\n        ref={composedRefs}\n        // we make sure focus isn't trapped once `DialogContent` has been closed\n        // (closed !== unmounted when animating out)\n        trapFocus={context.open}\n        disableOutsidePointerEvents\n        onCloseAutoFocus={composeEventHandlers(props.onCloseAutoFocus, (event) => {\n          event.preventDefault();\n          context.triggerRef.current?.focus();\n        })}\n        onPointerDownOutside={composeEventHandlers(props.onPointerDownOutside, (event) => {\n          const originalEvent = event.detail.originalEvent;\n          const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n          const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\n          // If the event is a right-click, we shouldn't close because\n          // it is effectively as if we right-clicked the `Overlay`.\n          if (isRightClick) event.preventDefault();\n        })}\n        // When focus is trapped, a `focusout` event may still happen.\n        // We make sure we don't trigger our `onDismiss` in such case.\n        onFocusOutside={composeEventHandlers(props.onFocusOutside, (event) =>\n          event.preventDefault()\n        )}\n      />\n    );\n  }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst DialogContentNonModal = React.forwardRef<DialogContentTypeElement, DialogContentTypeProps>(\n  (props: ScopedProps<DialogContentTypeProps>, forwardedRef) => {\n    const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n    const hasInteractedOutsideRef = React.useRef(false);\n    const hasPointerDownOutsideRef = React.useRef(false);\n\n    return (\n      <DialogContentImpl\n        {...props}\n        ref={forwardedRef}\n        trapFocus={false}\n        disableOutsidePointerEvents={false}\n        onCloseAutoFocus={(event) => {\n          props.onCloseAutoFocus?.(event);\n\n          if (!event.defaultPrevented) {\n            if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n            // Always prevent auto focus because we either focus manually or want user agent focus\n            event.preventDefault();\n          }\n\n          hasInteractedOutsideRef.current = false;\n          hasPointerDownOutsideRef.current = false;\n        }}\n        onInteractOutside={(event) => {\n          props.onInteractOutside?.(event);\n\n          if (!event.defaultPrevented) {\n            hasInteractedOutsideRef.current = true;\n            if (event.detail.originalEvent.type === 'pointerdown') {\n              hasPointerDownOutsideRef.current = true;\n            }\n          }\n\n          // Prevent dismissing when clicking the trigger.\n          // As the trigger is already setup to close, without doing so would\n          // cause it to close and immediately open.\n          const target = event.target as HTMLElement;\n          const targetIsTrigger = context.triggerRef.current?.contains(target);\n          if (targetIsTrigger) event.preventDefault();\n\n          // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n          // we will get the pointer down outside event on the trigger, but then a subsequent\n          // focus outside event on the container, we ignore any focus outside event when we've\n          // already had a pointer down outside event.\n          if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) {\n            event.preventDefault();\n          }\n        }}\n      />\n    );\n  }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentImplElement = React.ElementRef<typeof DismissableLayer>;\ntype DismissableLayerProps = Radix.ComponentPropsWithoutRef<typeof DismissableLayer>;\ntype FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>;\ninterface DialogContentImplProps extends Omit<DismissableLayerProps, 'onDismiss'> {\n  /**\n   * When `true`, focus cannot escape the `Content` via keyboard,\n   * pointer, or a programmatic focus.\n   * @defaultValue false\n   */\n  trapFocus?: FocusScopeProps['trapped'];\n\n  /**\n   * Event handler called when auto-focusing on open.\n   * Can be prevented.\n   */\n  onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];\n\n  /**\n   * Event handler called when auto-focusing on close.\n   * Can be prevented.\n   */\n  onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];\n}\n\nconst DialogContentImpl = React.forwardRef<DialogContentImplElement, DialogContentImplProps>(\n  (props: ScopedProps<DialogContentImplProps>, forwardedRef) => {\n    const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n    const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n    const contentRef = React.useRef<HTMLDivElement>(null);\n    const composedRefs = useComposedRefs(forwardedRef, contentRef);\n\n    // Make sure the whole tree has focus guards as our `Dialog` will be\n    // the last element in the DOM (beacuse of the `Portal`)\n    useFocusGuards();\n\n    return (\n      <>\n        <FocusScope\n          asChild\n          loop\n          trapped={trapFocus}\n          onMountAutoFocus={onOpenAutoFocus}\n          onUnmountAutoFocus={onCloseAutoFocus}\n        >\n          <DismissableLayer\n            role=\"dialog\"\n            id={context.contentId}\n            aria-describedby={context.descriptionId}\n            aria-labelledby={context.titleId}\n            data-state={getState(context.open)}\n            {...contentProps}\n            ref={composedRefs}\n            onDismiss={() => context.onOpenChange(false)}\n          />\n        </FocusScope>\n        {process.env.NODE_ENV !== 'production' && (\n          <>\n            <TitleWarning titleId={context.titleId} />\n            <DescriptionWarning contentRef={contentRef} descriptionId={context.descriptionId} />\n          </>\n        )}\n      </>\n    );\n  }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/\n\nconst TITLE_NAME = 'DialogTitle';\n\ntype DialogTitleElement = React.ElementRef<typeof Primitive.h2>;\ntype PrimitiveHeading2Props = Radix.ComponentPropsWithoutRef<typeof Primitive.h2>;\ninterface DialogTitleProps extends PrimitiveHeading2Props {}\n\nconst DialogTitle = React.forwardRef<DialogTitleElement, DialogTitleProps>(\n  (props: ScopedProps<DialogTitleProps>, forwardedRef) => {\n    const { __scopeDialog, ...titleProps } = props;\n    const context = useDialogContext(TITLE_NAME, __scopeDialog);\n    return <Primitive.h2 id={context.titleId} {...titleProps} ref={forwardedRef} />;\n  }\n);\n\nDialogTitle.displayName = TITLE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/\n\nconst DESCRIPTION_NAME = 'DialogDescription';\n\ntype DialogDescriptionElement = React.ElementRef<typeof Primitive.p>;\ntype PrimitiveParagraphProps = Radix.ComponentPropsWithoutRef<typeof Primitive.p>;\ninterface DialogDescriptionProps extends PrimitiveParagraphProps {}\n\nconst DialogDescription = React.forwardRef<DialogDescriptionElement, DialogDescriptionProps>(\n  (props: ScopedProps<DialogDescriptionProps>, forwardedRef) => {\n    const { __scopeDialog, ...descriptionProps } = props;\n    const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n    return <Primitive.p id={context.descriptionId} {...descriptionProps} ref={forwardedRef} />;\n  }\n);\n\nDialogDescription.displayName = DESCRIPTION_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/\n\nconst CLOSE_NAME = 'DialogClose';\n\ntype DialogCloseElement = React.ElementRef<typeof Primitive.button>;\ninterface DialogCloseProps extends PrimitiveButtonProps {}\n\nconst DialogClose = React.forwardRef<DialogCloseElement, DialogCloseProps>(\n  (props: ScopedProps<DialogCloseProps>, forwardedRef) => {\n    const { __scopeDialog, ...closeProps } = props;\n    const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n    return (\n      <Primitive.button\n        type=\"button\"\n        {...closeProps}\n        ref={forwardedRef}\n        onClick={composeEventHandlers(props.onClick, () => context.onOpenChange(false))}\n      />\n    );\n  }\n);\n\nDialogClose.displayName = CLOSE_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open: boolean) {\n  return open ? 'open' : 'closed';\n}\n\nconst TITLE_WARNING_NAME = 'DialogTitleWarning';\n\nconst [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n  contentName: CONTENT_NAME,\n  titleName: TITLE_NAME,\n  docsSlug: 'dialog',\n});\n\ntype TitleWarningProps = { titleId?: string };\n\nconst TitleWarning: React.FC<TitleWarningProps> = ({ titleId }) => {\n  const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n\n  const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n\n  React.useEffect(() => {\n    if (titleId) {\n      const hasTitle = document.getElementById(titleId);\n      if (!hasTitle) throw new Error(MESSAGE);\n    }\n  }, [MESSAGE, titleId]);\n\n  return null;\n};\n\nconst DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\n\ntype DescriptionWarningProps = {\n  contentRef: React.RefObject<DialogContentElement>;\n  descriptionId?: string;\n};\n\nconst DescriptionWarning: React.FC<DescriptionWarningProps> = ({ contentRef, descriptionId }) => {\n  const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n  const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n\n  React.useEffect(() => {\n    const describedById = contentRef.current?.getAttribute('aria-describedby');\n    // if we have an id and the user hasn't set aria-describedby={undefined}\n    if (descriptionId && describedById) {\n      const hasDescription = document.getElementById(descriptionId);\n      if (!hasDescription) console.warn(MESSAGE);\n    }\n  }, [MESSAGE, contentRef, descriptionId]);\n\n  return null;\n};\n\nconst Root = Dialog;\nconst Trigger = DialogTrigger;\nconst Portal = DialogPortal;\nconst Overlay = DialogOverlay;\nconst Content = DialogContent;\nconst Title = DialogTitle;\nconst Description = DialogDescription;\nconst Close = DialogClose;\n\nexport {\n  createDialogScope,\n  //\n  Dialog,\n  DialogTrigger,\n  DialogPortal,\n  DialogOverlay,\n  DialogContent,\n  DialogTitle,\n  DialogDescription,\n  DialogClose,\n  //\n  Root,\n  Trigger,\n  Portal,\n  Overlay,\n  Content,\n  Title,\n  Description,\n  Close,\n  //\n  WarningProvider,\n};\nexport type {\n  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