'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.cjs');
var reactIcons_esm = require('../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
var index$1 = require('../node_modules/.pnpm/class-variance-authority@0.6.0_typescript@5.4.3/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var dialog_module = require('./dialog.module.css.cjs');

const dialogContent = index$1.cva(dialog_module.default.dialogContent);
const DialogContent = React.forwardRef(({ className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props }, forwardedRef) => {
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(Overlay, { className: overlayClassname, style: overlayStyle, blur: overlayBlur, children: jsxRuntime.jsxRuntimeExports.jsxs(index.Content, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntime.jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.Cross1Icon, {}) }))] }) }) }));
});
const overlay = index$1.cva(dialog_module.default.overlay, {
    variants: {
        blur: {
            true: dialog_module.default.overlayBlur,
        },
    },
});
const Overlay = React.forwardRef(({ className, blur, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Overlay, { ref: ref, className: overlay({ className, blur }), ...props })));
Overlay.displayName = index.Overlay.displayName;
const close = index$1.cva(dialog_module.default.close);
function CloseButton({ children, className, ...props }) {
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Close, { className: close({ className }), ...props, children: children }));
}
const Dialog = Object.assign(index.Root, {
    Trigger: index.Trigger,
    Content: DialogContent,
    Close: index.Close,
    Title: index.Title,
    Description: index.Description,
});

exports.CloseButton = CloseButton;
exports.Dialog = Dialog;
exports.DialogContent = DialogContent;
//# sourceMappingURL=dialog.cjs.map
