import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__ from "@chakra-ui/react";
const DEFAULT_BACKGROUND_IMG_URL = 'https://redpanda-ui-static-assets.s3.us-east-2.amazonaws.com/signup.webp';
const Auth0Modal = ({ children, minHeight = '540px', imageURL = DEFAULT_BACKGROUND_IMG_URL })=>{
    const [isMin500AndMax600, isMax600, isMax500] = (0, __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.useMediaQuery)([
        'screen and (max-width: 600px) and (min-width: 500px)',
        '(max-width: 600px)',
        '(max-width: 500px)'
    ]);
    return /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, {
        minHeight: isMax600 ? '100%' : '100vh',
        height: "fit-content",
        backgroundPosition: "50%",
        backgroundSize: "cover",
        backgroundColor: isMax600 ? '#FFFFFF' : '#F3F3F3',
        backgroundImage: `url(${imageURL})`
    }, /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, {
        as: "main",
        display: "grid",
        gridTemplateRows: "[ left-start center-start right-start ] 1fr [ left-end center-end right-end ]",
        gridTemplateColumns: "[ left-start center-start ] 1fr [ left-end right-start ] 1fr [ center-end right-end ]",
        alignItems: isMin500AndMax600 ? void 0 : 'center',
        justifyContent: isMin500AndMax600 ? void 0 : 'center',
        justifyItems: "center",
        gridColumnGap: "160px",
        columnGap: "160px",
        width: isMin500AndMax600 ? 'auto' : '100%',
        padding: isMax600 ? '0' : '80px',
        margin: isMin500AndMax600 ? '0' : void 0,
        minHeight: isMax500 ? void 0 : '100vh',
        height: "fit-content"
    }, /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, {
        as: "section",
        display: "flex",
        flexDirection: "column",
        height: "auto",
        whiteSpace: "normal",
        borderRadius: isMax500 ? 'initial' : '5px',
        position: "relative",
        width: isMax500 ? '100vw' : '400px',
        gridArea: isMax600 ? 'center' : 'left'
    }, /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, {
        flexGrow: isMax600 ? '1' : void 0,
        display: "flex",
        flexDirection: "column",
        overflow: "hidden",
        position: "relative",
        fontSize: "16px",
        color: "#1e212a",
        backgroundColor: "white",
        boxShadow: isMax600 ? 'none' : '0 12px 40px rgba(0,0,0,0.12)',
        borderRadius: isMax600 ? '0' : '5px',
        border: "0 solid transparent"
    }, /*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Box, {
        display: "flex",
        flexGrow: 1,
        flexDirection: "column",
        justifyContent: isMax600 ? void 0 : 'center',
        minHeight: minHeight,
        position: "relative"
    }, children)))));
};
/* ESM default export */ const Auth0Modal_rslib_entry_ = Auth0Modal;
export { Auth0Modal_rslib_entry_ as default };
