{"ast":null,"code":"'use client';\n\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';\nconst DialogRoot = props => React.createElement(DialogPrimitive.Root, {\n  ...props,\n  modal: true\n});\nDialogRoot.displayName = 'DialogRoot';\nconst DialogTrigger = React.forwardRef((props, forwardedRef) => React.createElement(DialogPrimitive.Trigger, {\n  ...props,\n  ref: forwardedRef,\n  asChild: true\n}));\nDialogTrigger.displayName = 'DialogTrigger';\nconst DialogContent = React.forwardRef((props, forwardedRef) => {\n  const {\n    className,\n    forceMount,\n    container,\n    size = dialogContentPropDefs.size.default,\n    ...contentProps\n  } = props;\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, {\n    ...contentProps,\n    ref: forwardedRef,\n    className: classNames('rt-DialogContent', className, withBreakpoints(size, 'rt-r-size'))\n  }))));\n});\nDialogContent.displayName = 'DialogContent';\nconst DialogTitle = React.forwardRef((props, forwardedRef) => React.createElement(DialogPrimitive.Title, {\n  asChild: true\n}, React.createElement(Heading, {\n  size: \"5\",\n  mb: \"3\",\n  trim: \"start\",\n  ...props,\n  ref: forwardedRef\n})));\nDialogTitle.displayName = 'DialogTitle';\nconst DialogDescription = React.forwardRef((props, forwardedRef) => React.createElement(DialogPrimitive.Description, {\n  asChild: true\n}, React.createElement(Text, {\n  as: \"p\",\n  size: \"3\",\n  ...props,\n  ref: forwardedRef\n})));\nDialogDescription.displayName = 'DialogDescription';\nconst DialogClose = React.forwardRef((props, forwardedRef) => React.createElement(DialogPrimitive.Close, {\n  ...props,\n  ref: forwardedRef,\n  asChild: true\n}));\nDialogClose.displayName = 'DialogClose';\nconst 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":["React","classNames","DialogPrimitive","dialogContentPropDefs","withBreakpoints","Heading","Text","Theme","DialogRoot","props","createElement","Root","modal","displayName","DialogTrigger","forwardRef","forwardedRef","Trigger","ref","asChild","DialogContent","className","forceMount","container","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;;AAEZ,OAAO,KAAKA,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;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,KAAK,QAAQ,UAAU;AAMhC,MAAMC,UAAU,GAAIC,KAAsB,IAAKT,KAAA,CAAAU,aAAA,CAACR,eAAe,CAACS,IAAI;EAAA,GAAKF,KAAK;EAAEG,KAAK;AAAA,EAAG;AACxFJ,UAAU,CAACK,WAAW,GAAG,YAAY;AAKrC,MAAMC,aAAa,GAAGd,KAAK,CAACe,UAAU,CACpC,CAACN,KAAK,EAAEO,YAAY,KAAKhB,KAAA,CAAAU,aAAA,CAACR,eAAe,CAACe,OAAO;EAAA,GAAKR,KAAK;EAAES,GAAG,EAAEF,YAAY;EAAEG,OAAO;AAAA,EAAG,CAC3F;AACDL,aAAa,CAACD,WAAW,GAAG,eAAe;AAS3C,MAAMO,aAAa,GAAGpB,KAAK,CAACe,UAAU,CACpC,CAAC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