{"ast":null,"code":"'use client';\n\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/05portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _objectSpread from \"C:/Users/user/Desktop/05portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nvar _excluded = [\"className\", \"forceMount\", \"container\", \"size\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { dialogContentPropDefs } from './dialog.props';\nimport { withBreakpoints } from '../helpers';\nimport { Heading } from './heading';\nimport { Text } from './text';\nimport { Theme } from '../theme';\nvar DialogRoot = function DialogRoot(props) {\n  return React.createElement(DialogPrimitive.Root, _objectSpread(_objectSpread({}, props), {}, {\n    modal: true\n  }));\n};\nDialogRoot.displayName = 'DialogRoot';\nvar DialogTrigger = React.forwardRef(function (props, forwardedRef) {\n  return React.createElement(DialogPrimitive.Trigger, _objectSpread(_objectSpread({}, props), {}, {\n    ref: forwardedRef,\n    asChild: true\n  }));\n});\nDialogTrigger.displayName = 'DialogTrigger';\nvar DialogContent = React.forwardRef(function (props, forwardedRef) {\n  var className = props.className,\n    forceMount = props.forceMount,\n    container = props.container,\n    _props$size = props.size,\n    size = _props$size === void 0 ? dialogContentPropDefs.size.default : _props$size,\n    contentProps = _objectWithoutProperties(props, _excluded);\n  return React.createElement(DialogPrimitive.Portal, {\n    container: container,\n    forceMount: forceMount\n  }, React.createElement(Theme, {\n    asChild: true\n  }, React.createElement(DialogPrimitive.Overlay, {\n    className: \"rt-DialogOverlay\"\n  }, React.createElement(DialogPrimitive.Content, _objectSpread(_objectSpread({}, contentProps), {}, {\n    ref: forwardedRef,\n    className: classNames('rt-DialogContent', className, withBreakpoints(size, 'rt-r-size'))\n  })))));\n});\nDialogContent.displayName = 'DialogContent';\nvar DialogTitle = React.forwardRef(function (props, forwardedRef) {\n  return React.createElement(DialogPrimitive.Title, {\n    asChild: true\n  }, React.createElement(Heading, _objectSpread(_objectSpread({\n    size: \"5\",\n    mb: \"3\",\n    trim: \"start\"\n  }, props), {}, {\n    ref: forwardedRef\n  })));\n});\nDialogTitle.displayName = 'DialogTitle';\nvar DialogDescription = React.forwardRef(function (props, forwardedRef) {\n  return React.createElement(DialogPrimitive.Description, {\n    asChild: true\n  }, React.createElement(Text, _objectSpread(_objectSpread({\n    as: \"p\",\n    size: \"3\"\n  }, props), {}, {\n    ref: forwardedRef\n  })));\n});\nDialogDescription.displayName = 'DialogDescription';\nvar DialogClose = React.forwardRef(function (props, forwardedRef) {\n  return React.createElement(DialogPrimitive.Close, _objectSpread(_objectSpread({}, props), {}, {\n    ref: forwardedRef,\n    asChild: true\n  }));\n});\nDialogClose.displayName = 'DialogClose';\nvar Dialog = Object.assign({}, {\n  Root: DialogRoot,\n  Trigger: DialogTrigger,\n  Content: DialogContent,\n  Title: DialogTitle,\n  Description: DialogDescription,\n  Close: DialogClose\n});\nexport { Dialog, DialogRoot, DialogTrigger, DialogContent, DialogTitle, DialogDescription, DialogClose };","map":{"version":3,"names":["_objectWithoutProperties","_objectSpread","_excluded","React","classNames","DialogPrimitive","dialogContentPropDefs","withBreakpoints","Heading","Text","Theme","DialogRoot","props","createElement","Root","modal","displayName","DialogTrigger","forwardRef","forwardedRef","Trigger","ref","asChild","DialogContent","className","forceMount","container","_props$size","size","default","contentProps","Portal","Overlay","Content","DialogTitle","Title","mb","trim","DialogDescription","Description","as","DialogClose","Close","Dialog","Object","assign"],"sources":["../../../src/components/dialog.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AAAC,OAAAA,wBAAA;AAAA,OAAAC,aAAA;AAAA,IAAAC,SAAA;AAEb,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,eAAe,MAAM,wBAAwB;AACzD,SAASC,qBAAqB,QAAQ,gBAAgB;AACtD,SAASC,eAAe,QAAQ,YAAY;AAC5C,SAASC,OAAO,QAAQ,WAAW;AACn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