"use strict";
// The require scope
var __webpack_require__ = {};
/************************************************************************/ // webpack/runtime/define_property_getters
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
// webpack/runtime/has_own_property
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
// webpack/runtime/make_namespace_object
(()=>{
    // define __esModule on exports
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
/************************************************************************/ var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
    default: ()=>/* binding */ Auth0Modal_rslib_entry_
});
const react_namespaceObject = require("@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, react_namespaceObject.useMediaQuery)([
        'screen and (max-width: 600px) and (min-width: 500px)',
        '(max-width: 600px)',
        '(max-width: 500px)'
    ]);
    return /*#__PURE__*/ React.createElement(react_namespaceObject.Box, {
        minHeight: isMax600 ? '100%' : '100vh',
        height: "fit-content",
        backgroundPosition: "50%",
        backgroundSize: "cover",
        backgroundColor: isMax600 ? '#FFFFFF' : '#F3F3F3',
        backgroundImage: `url(${imageURL})`
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.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(react_namespaceObject.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(react_namespaceObject.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(react_namespaceObject.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;
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
