"use strict";
exports.id = 6952;
exports.ids = [6952];
exports.modules = {

/***/ 402391:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "E": () => (/* binding */ LOGIN_STYLE)
/* harmony export */ });
const LOGIN_STYLE = {
    maxWidth: "400px",
    margin: "auto",
    border: "1px solid lightgrey",
    borderRadius: "5px",
    padding: "10px 20px 20px 20px",
    backgroundColor: "#fafafa",
    fontSize: "12pt",
    color: "#606060"
};


/***/ }),

/***/ 446952:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "H": () => (/* binding */ TermsCheckbox),
/* harmony export */   "Z": () => (/* binding */ SignUp)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(920997);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _cocalc_frontend_editors_slate_static_markdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(695379);
/* harmony import */ var _cocalc_frontend_editors_slate_static_markdown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_cocalc_frontend_editors_slate_static_markdown__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(477389);
/* harmony import */ var _cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(545725);
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(antd__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var components_logo_square__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(961429);
/* harmony import */ var components_misc_A__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(940981);
/* harmony import */ var components_share_loading__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(976087);
/* harmony import */ var lib_api_post__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(194184);
/* harmony import */ var lib_use_customize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(117682);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(616689);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_google_recaptcha_v3__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(271704);
/* harmony import */ var react_google_recaptcha_v3__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_google_recaptcha_v3__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(402391);
/* harmony import */ var _sso__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(366009);
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */ 












const LINE = {
    margin: "15px 0"
};
function SignUp(props) {
    const { reCaptchaKey  } = (0,lib_use_customize__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)();
    return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_google_recaptcha_v3__WEBPACK_IMPORTED_MODULE_10__.GoogleReCaptchaProvider, {
        reCaptchaKey: reCaptchaKey,
        children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(SignUp0, {
            ...props
        })
    });
};
function SignUp0({ requiresToken , minimal , onSuccess  }) {
    const { anonymousSignup , siteName , emailSignup , accountCreationInstructions , reCaptchaKey ,  } = (0,lib_use_customize__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)();
    const { 0: terms , 1: setTerms  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(false);
    const { 0: email , 1: setEmail  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)("");
    const { 0: registrationToken , 1: setRegistrationToken  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)("");
    const { 0: password , 1: setPassword  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)("");
    const { 0: firstName , 1: setFirstName  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)("");
    const { 0: lastName , 1: setLastName  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)("");
    const { 0: signingUp , 1: setSigningUp  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(false);
    const { 0: issues , 1: setIssues  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)({});
    const submittable = (0,react__WEBPACK_IMPORTED_MODULE_9__.useRef)(false);
    const { executeRecaptcha  } = (0,react_google_recaptcha_v3__WEBPACK_IMPORTED_MODULE_10__.useGoogleReCaptcha)();
    const { strategies  } = (0,lib_use_customize__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)();
    // Sometimes the user if this component knows requiresToken and sometimes they don't.
    // If they don't, we have to make an API call to figure it out.
    const { 0: requiresToken2 , 1: setRequiresToken2  } = (0,react__WEBPACK_IMPORTED_MODULE_9__.useState)(requiresToken);
    (0,react__WEBPACK_IMPORTED_MODULE_9__.useEffect)(()=>{
        if (requiresToken2 === undefined) {
            (async ()=>{
                try {
                    setRequiresToken2(await (0,lib_api_post__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)("/auth/requires-token"));
                } catch (err) {}
            })();
        }
    }, []);
    // based on email: if user has to sign up via SSO, this will tell which strategy to use.
    const requiredSSO = (0,_sso__WEBPACK_IMPORTED_MODULE_12__/* .useRequiredSSO */ .Ke)(strategies, email);
    if (requiresToken2 === undefined || strategies == null) {
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_share_loading__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {});
    }
    submittable.current = !!(terms && requiredSSO == null && (!requiresToken2 || registrationToken) && email && (0,_cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2__.is_valid_email_address)(email) && password && firstName && lastName);
    async function signUp() {
        if (!submittable.current) return;
        if (signingUp) return;
        setIssues({});
        try {
            setSigningUp(true);
            let reCaptchaToken;
            if (reCaptchaKey) {
                if (!executeRecaptcha) {
                    throw Error("Please wait a few seconds, then try again.");
                }
                reCaptchaToken = await executeRecaptcha("signup");
            }
            const result = await (0,lib_api_post__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)("/auth/sign-up", {
                terms,
                email,
                password,
                firstName,
                lastName,
                registrationToken,
                reCaptchaToken
            });
            if (result.issues && (0,_cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2__.len)(result.issues) > 0) {
                setIssues(result.issues);
            } else {
                onSuccess?.();
            }
        } catch (err) {
            setIssues({
                error: `${err}`
            });
        } finally{
            setSigningUp(false);
        }
    }
    if (!emailSignup && strategies.length == 0) {
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
            style: {
                margin: "30px 15%"
            },
            type: "error",
            showIcon: true,
            message: "No Account Creation Allowed",
            description: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                style: {
                    fontSize: "14pt",
                    marginTop: "20px"
                },
                children: [
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
                        children: "There is no method enabled for creating an account on this server."
                    }),
                    anonymousSignup && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
                        children: [
                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("br", {}),
                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("br", {}),
                            "However, you can still",
                            " ",
                            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                                href: "/auth/try",
                                children: [
                                    "try ",
                                    siteName,
                                    " without creating an account."
                                ]
                            })
                        ]
                    })
                ]
            })
        });
    }
    return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
        style: {
            margin: "30px",
            minHeight: "50vh"
        },
        children: [
            !minimal && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                style: {
                    textAlign: "center",
                    marginBottom: "15px"
                },
                children: [
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_logo_square__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
                        style: {
                            width: "100px",
                            height: "100px",
                            marginBottom: "15px"
                        },
                        priority: true
                    }),
                    /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h1", {
                        children: [
                            "Create a ",
                            siteName,
                            " Account"
                        ]
                    }),
                    accountCreationInstructions && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_cocalc_frontend_editors_slate_static_markdown__WEBPACK_IMPORTED_MODULE_1___default()), {
                        value: accountCreationInstructions
                    })
                ]
            }),
            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                style: _shared__WEBPACK_IMPORTED_MODULE_11__/* .LOGIN_STYLE */ .E,
                children: [
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(TermsCheckbox, {
                        onChange: setTerms,
                        checked: terms,
                        style: {
                            marginTop: "10px",
                            marginBottom: terms ? "10px" : undefined,
                            fontSize: "12pt",
                            color: "#666"
                        }
                    }),
                    /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", {
                        children: [
                            issues.reCaptcha && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
                                style: LINE,
                                type: "error",
                                showIcon: true,
                                message: issues.reCaptcha,
                                description: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
                                    children: "You may have to contact the site administrator."
                                })
                            }),
                            issues.registrationToken && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
                                style: LINE,
                                type: "error",
                                showIcon: true,
                                message: issues.registrationToken,
                                description: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
                                    children: "You may have to contact the site administrator for a registration token."
                                })
                            }),
                            terms && requiresToken2 && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                                style: LINE,
                                children: [
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                                        children: "Registration Token"
                                    }),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Input, {
                                        style: {
                                            fontSize: "12pt"
                                        },
                                        value: registrationToken,
                                        placeholder: "Enter your secret registration token",
                                        onChange: (e)=>setRegistrationToken(e.target.value)
                                    })
                                ]
                            }),
                            terms && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(EmailOrSSO, {
                                email: email,
                                setEmail: setEmail,
                                signUp: signUp,
                                strategies: strategies,
                                hideSSO: requiredSSO != null
                            }),
                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_sso__WEBPACK_IMPORTED_MODULE_12__/* .RequiredSSO */ .Ug, {
                                strategy: requiredSSO
                            }),
                            issues.email && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
                                style: LINE,
                                type: "error",
                                showIcon: true,
                                message: issues.email,
                                description: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
                                    children: [
                                        "Choose a different email address,",
                                        " ",
                                        /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                                            href: "/auth/sign-in",
                                            children: "sign in"
                                        }),
                                        ", or",
                                        " ",
                                        /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                                            href: "/auth/password-reset",
                                            children: "reset your password"
                                        }),
                                        "."
                                    ]
                                })
                            }),
                            terms && email && requiredSSO == null && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                                style: LINE,
                                children: [
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                                        children: "Password"
                                    }),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Input.Password, {
                                        style: {
                                            fontSize: "12pt"
                                        },
                                        value: password,
                                        placeholder: "Password",
                                        autoComplete: "new-password",
                                        onChange: (e)=>setPassword(e.target.value),
                                        onPressEnter: signUp
                                    })
                                ]
                            }),
                            issues.password && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
                                style: LINE,
                                type: "error",
                                showIcon: true,
                                message: issues.email
                            }),
                            terms && email && requiredSSO == null && password?.length >= 6 && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                                style: LINE,
                                children: [
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                                        children: "First name"
                                    }),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Input, {
                                        style: {
                                            fontSize: "12pt"
                                        },
                                        placeholder: "First name",
                                        value: firstName,
                                        onChange: (e)=>setFirstName(e.target.value),
                                        onPressEnter: signUp
                                    })
                                ]
                            }),
                            terms && email && password && requiredSSO == null && firstName && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                                style: LINE,
                                children: [
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                                        children: "Last name"
                                    }),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Input, {
                                        style: {
                                            fontSize: "12pt"
                                        },
                                        placeholder: "Last name",
                                        value: lastName,
                                        onChange: (e)=>setLastName(e.target.value),
                                        onPressEnter: signUp
                                    })
                                ]
                            })
                        ]
                    }),
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
                        style: LINE,
                        children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_3__.Button, {
                            shape: "round",
                            size: "large",
                            disabled: !submittable.current || signingUp,
                            type: "primary",
                            style: {
                                width: "100%",
                                marginTop: "15px"
                            },
                            onClick: signUp,
                            children: [
                                !terms ? "Agree to the terms" : requiresToken2 && !registrationToken ? "Enter the secret registration token" : !email ? "How will you sign in?" : requiredSSO != null ? "You must sign up via SSO" : !password || password.length < 6 ? "Choose password with at least 6 characters" : !firstName ? "Enter your first name above" : !lastName ? "Enter your last name above" : !(0,_cocalc_util_misc__WEBPACK_IMPORTED_MODULE_2__.is_valid_email_address)(email) ? "Enter a valid email address above" : signingUp ? "" : "Sign Up!",
                                signingUp && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
                                    style: {
                                        marginLeft: "15px"
                                    },
                                    children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_share_loading__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
                                        children: "Signing Up..."
                                    })
                                })
                            ]
                        })
                    }),
                    issues.error && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Alert, {
                        style: LINE,
                        type: "error",
                        showIcon: true,
                        message: issues.error
                    })
                ]
            }),
            !minimal && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                style: {
                    ..._shared__WEBPACK_IMPORTED_MODULE_11__/* .LOGIN_STYLE */ .E,
                    backgroundColor: "white",
                    margin: "30px auto",
                    padding: "15px"
                },
                children: [
                    "Already have an account? ",
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                        href: "/auth/sign-in",
                        children: "Sign In"
                    }),
                    anonymousSignup && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                        style: {
                            marginTop: "15px"
                        },
                        children: [
                            "Don't want to provide any information?",
                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("br", {}),
                            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                                href: "/auth/try",
                                children: [
                                    "Try ",
                                    siteName,
                                    " without creating an account."
                                ]
                            })
                        ]
                    })
                ]
            })
        ]
    });
}
function EmailOrSSO(props) {
    const { email , setEmail , signUp , strategies =[] , hideSSO =false  } = props;
    const { emailSignup  } = (0,lib_use_customize__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)();
    function renderSSO() {
        if (strategies.length == 0) return;
        const emailStyle = email ? {
            textAlign: "right",
            marginBottom: "20px"
        } : {};
        const style = {
            display: hideSSO ? "none" : "block",
            ...emailStyle
        };
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
            style: {
                textAlign: "center",
                margin: "20px 0"
            },
            children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_sso__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, {
                size: email ? 24 : undefined,
                style: style
            })
        });
    }
    return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
        children: [
            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                children: hideSSO ? "Sign up using your single-sign-on provider" : strategies.length > 0 && emailSignup ? "Sign up using either your email address or a single-sign-on provider." : emailSignup ? "Enter the email address you will use to sign in." : "Sign up using a single sign on provider."
            }),
            renderSSO(),
            emailSignup && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
                children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(antd__WEBPACK_IMPORTED_MODULE_3__.Input, {
                    style: {
                        fontSize: "12pt"
                    },
                    placeholder: "Email address",
                    autoComplete: "username",
                    value: email,
                    onChange: (e)=>setEmail(e.target.value),
                    onPressEnter: signUp
                })
            })
        ]
    });
}
function TermsCheckbox({ checked , onChange , style  }) {
    return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_3__.Checkbox, {
        checked: checked,
        style: style,
        onChange: (e)=>onChange?.(e.target.checked),
        children: [
            "I agree to the",
            " ",
            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(components_misc_A__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
                external: true,
                href: "/policies/terms",
                children: "Terms of Service"
            }),
            "."
        ]
    });
}


/***/ })

};
;