"use strict";
// The require scope
var __webpack_require__ = {};
/************************************************************************/ // webpack/runtime/compat_get_default_export
(()=>{
    // getDefaultExport function for compatibility with non-ESM modules
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
// 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 */ MarketplaceLogin_rslib_entry_
});
const react_namespaceObject = require("@chakra-ui/react");
const external_yup_namespaceObject = require("yup");
const Logo_js_namespaceObject = require("../../components/Logo/Logo.js");
var Logo_js_default = /*#__PURE__*/ __webpack_require__.n(Logo_js_namespaceObject);
const TextDivider_js_namespaceObject = require("../../components/TextDivider/TextDivider.js");
var TextDivider_js_default = /*#__PURE__*/ __webpack_require__.n(TextDivider_js_namespaceObject);
const Avatars_js_namespaceObject = require("../../components/Avatars/Avatars.js");
var Avatars_js_default = /*#__PURE__*/ __webpack_require__.n(Avatars_js_namespaceObject);
const Form_js_namespaceObject = require("../../components/Form/Form.js");
var Form_js_default = /*#__PURE__*/ __webpack_require__.n(Form_js_namespaceObject);
const MarketplaceLogin = ()=>/*#__PURE__*/ React.createElement(react_namespaceObject.Flex, {
        width: "full",
        minHeight: "100vh"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Box, {
        flex: 6
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Container, {
        px: 14,
        pt: 50
    }, /*#__PURE__*/ React.createElement(Logo_js_default(), {
        height: 32,
        alt: "Redpanda Logo"
    }), /*#__PURE__*/ React.createElement(react_namespaceObject.Spacer, {
        height: 6
    }), /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        spacing: 6
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        spacing: 2
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Heading, {
        as: "h1",
        size: "lg"
    }, "Sign up"), /*#__PURE__*/ React.createElement(react_namespaceObject.Text, {
        fontWeight: "light"
    }, "Already have an account? ", /*#__PURE__*/ React.createElement(react_namespaceObject.Link, null, "Log in"))), /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
        spacing: 3
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        leftIcon: /*#__PURE__*/ React.createElement(react_namespaceObject.Image, {
            src: Avatars_js_default().githubIconSvg,
            alt: "GitHub logo"
        }),
        variant: "outline"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Text, {
        hideBelow: "sm"
    }, "Sign up with Github")), /*#__PURE__*/ React.createElement(react_namespaceObject.Button, {
        leftIcon: /*#__PURE__*/ React.createElement(react_namespaceObject.Image, {
            src: Avatars_js_default().googleIconSvg,
            alt: "Google logo"
        }),
        variant: "outline"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Text, {
        hideBelow: "sm"
    }, "Sign up with Google"))), /*#__PURE__*/ React.createElement(TextDivider_js_default(), {
        text: "or"
    }), /*#__PURE__*/ React.createElement(Form_js_default(), {
        onValid: (values)=>console.log('onValid values: ', values),
        onInvalid: (values)=>console.warn('onInvalid values: ', values),
        fields: [
            {
                name: 'email',
                inputMode: 'email',
                fieldType: 'text',
                label: 'Enter email',
                schema: external_yup_namespaceObject.string().required('This field is required'),
                showRequiredIndicator: false
            },
            {
                name: 'password',
                inputMode: 'password',
                fieldType: 'text',
                label: 'Create password',
                schema: external_yup_namespaceObject.string().required('This field is required'),
                showRequiredIndicator: false
            },
            {
                name: 'termsOfService',
                fieldType: 'checkbox',
                label: '',
                defaultChecked: false,
                text: /*#__PURE__*/ React.createElement(react_namespaceObject.Text, null, "I agree to the", ' ', /*#__PURE__*/ React.createElement(react_namespaceObject.Link, {
                    isExternal: true,
                    href: "https://redpanda.com/terms-of-use"
                }, "terms of service"), ' ', "and", ' ', /*#__PURE__*/ React.createElement(react_namespaceObject.Link, {
                    isExternal: true,
                    href: "https://redpanda.com/privacy-policy"
                }, "privacy policy")),
                schema: external_yup_namespaceObject.string().required('This field is required'),
                showRequiredIndicator: false
            }
        ],
        button: {
            label: 'confirm_login_marketplace',
            text: 'Sign up with email',
            spanFullWidth: true,
            variant: 'outline',
            colorScheme: 'blackAlpha.500'
        },
        developerView: true
    })))), /*#__PURE__*/ React.createElement(react_namespaceObject.Flex, {
        backgroundColor: "brand.50",
        pt: 24,
        px: 8,
        flex: 7,
        justifyContent: "center",
        alignItems: "flex-start",
        hideBelow: "lg"
    }, /*#__PURE__*/ React.createElement(react_namespaceObject.Image, {
        height: "400px",
        src: Avatars_js_default().cloudPandaSvg,
        alt: "Cloud Panda"
    })));
/* ESM default export */ const MarketplaceLogin_rslib_entry_ = MarketplaceLogin;
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
});
