"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__, {
    AuthenticationMethod: ()=>/* binding */ AuthenticationMethod,
    default: ()=>/* binding */ Auth0_stories_rslib_entry_,
    Email: ()=>/* binding */ Email,
    Login: ()=>/* binding */ Login
});
const react_namespaceObject = require("@chakra-ui/react");
const external_react_namespaceObject = require("react");
const external_Auth0Button_js_namespaceObject = require("./Auth0Button.js");
var external_Auth0Button_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0Button_js_namespaceObject);
const external_Auth0Header_js_namespaceObject = require("./Auth0Header.js");
var external_Auth0Header_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0Header_js_namespaceObject);
const external_Auth0Input_js_namespaceObject = require("./Auth0Input.js");
var external_Auth0Input_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0Input_js_namespaceObject);
const external_Auth0Modal_js_namespaceObject = require("./Auth0Modal.js");
var external_Auth0Modal_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0Modal_js_namespaceObject);
const external_Auth0ModalBody_js_namespaceObject = require("./Auth0ModalBody.js");
var external_Auth0ModalBody_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0ModalBody_js_namespaceObject);
const external_Auth0ModalDescription_js_namespaceObject = require("./Auth0ModalDescription.js");
var external_Auth0ModalDescription_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0ModalDescription_js_namespaceObject);
const external_Auth0Divider_js_namespaceObject = require("./Auth0Divider.js");
var external_Auth0Divider_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0Divider_js_namespaceObject);
const external_Auth0ModalHeading_js_namespaceObject = require("./Auth0ModalHeading.js");
var external_Auth0ModalHeading_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0ModalHeading_js_namespaceObject);
const external_Auth0ModalLink_js_namespaceObject = require("./Auth0ModalLink.js");
var external_Auth0ModalLink_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0ModalLink_js_namespaceObject);
const external_Auth0ModalText_js_namespaceObject = require("./Auth0ModalText.js");
var external_Auth0ModalText_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0ModalText_js_namespaceObject);
const external_Auth0SubmitButton_js_namespaceObject = require("./Auth0SubmitButton.js");
var external_Auth0SubmitButton_js_default = /*#__PURE__*/ __webpack_require__.n(external_Auth0SubmitButton_js_namespaceObject);
/* ESM default export */ const Auth0_stories_rslib_entry_ = {
    title: 'components/Auth0',
    component: ()=>{
    // no op
    },
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/DbDByXJashIVQ2v10PhdLH/Login?node-id=63%3A60&mode=dev'
        }
    }
};
const Login = {
    render: ()=>{
        const [emailAddress, setEmailAddress] = (0, external_react_namespaceObject.useState)('');
        return /*#__PURE__*/ React.createElement(external_Auth0Modal_js_default(), null, /*#__PURE__*/ React.createElement(external_Auth0Header_js_default(), {
            withLogo: true
        }, /*#__PURE__*/ React.createElement(external_Auth0ModalHeading_js_default(), null, "Welcome"), /*#__PURE__*/ React.createElement(external_Auth0ModalDescription_js_default(), null, "Log in to Redpanda (dev) to continue to Redpanda Cloud.")), /*#__PURE__*/ React.createElement(external_Auth0ModalBody_js_default(), null, /*#__PURE__*/ React.createElement(react_namespaceObject.chakra.form, {
            method: "POST",
            "data-form-primary": "true"
        }, /*#__PURE__*/ React.createElement(external_Auth0Input_js_default(), {
            placeholder: "Email address",
            onChange: (event)=>setEmailAddress(event.target.value),
            value: emailAddress
        }), /*#__PURE__*/ React.createElement(external_Auth0SubmitButton_js_default(), {
            type: "submit"
        }, "Continue")), /*#__PURE__*/ React.createElement(external_Auth0ModalText_js_default(), null, "Don't have an account?", /*#__PURE__*/ React.createElement(external_Auth0ModalLink_js_default(), {
            isExternal: true,
            href: "https://redpanda.com/",
            "aria-label": "sign-up-link"
        }, "Sign up")), /*#__PURE__*/ React.createElement(external_Auth0Divider_js_default(), {
            text: "Or"
        }), /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
            marginTop: "24px",
            marginBottom: "0",
            spacing: "8px"
        }, /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "google-oauth2"
        }, "Continue with Google"), /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "github"
        }, "Continue with GitHub"))));
    }
};
const Email = {
    render: ()=>{
        const [emailAddress, setEmailAddress] = (0, external_react_namespaceObject.useState)('');
        return /*#__PURE__*/ React.createElement(external_Auth0Modal_js_default(), {
            minHeight: "470px"
        }, /*#__PURE__*/ React.createElement(external_Auth0Header_js_default(), {
            withLogo: true
        }, /*#__PURE__*/ React.createElement(external_Auth0ModalHeading_js_default(), null, "Log in"), /*#__PURE__*/ React.createElement(external_Auth0ModalDescription_js_default(), null, "Enter your email address to log in to Redpanda Cloud")), /*#__PURE__*/ React.createElement(external_Auth0ModalBody_js_default(), null, /*#__PURE__*/ React.createElement(react_namespaceObject.chakra.form, {
            method: "POST",
            "data-form-primary": "true"
        }, /*#__PURE__*/ React.createElement(external_Auth0Input_js_default(), {
            placeholder: "Enter your email address",
            onChange: (event)=>setEmailAddress(event.target.value),
            value: emailAddress
        }), /*#__PURE__*/ React.createElement(external_Auth0SubmitButton_js_default(), {
            type: "submit"
        }, "Continue")), /*#__PURE__*/ React.createElement(external_Auth0ModalText_js_default(), null, "Don't have an account?", /*#__PURE__*/ React.createElement(external_Auth0ModalLink_js_default(), {
            isExternal: true,
            href: "https://redpanda.com/try-redpanda",
            "aria-label": "sign-up-link"
        }, "Contact us"))));
    }
};
const AuthenticationMethod = {
    render: ()=>/*#__PURE__*/ React.createElement(external_Auth0Modal_js_default(), {
            minHeight: "470px"
        }, /*#__PURE__*/ React.createElement(external_Auth0Header_js_default(), {
            withLogo: true
        }, /*#__PURE__*/ React.createElement(external_Auth0ModalHeading_js_default(), null, "Log in"), /*#__PURE__*/ React.createElement(external_Auth0ModalDescription_js_default(), null, "Choose an authentication method to log in to Redpanda Cloud")), /*#__PURE__*/ React.createElement(external_Auth0ModalBody_js_default(), null, /*#__PURE__*/ React.createElement(react_namespaceObject.Stack, {
            marginBottom: "0",
            spacing: "12px"
        }, /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "google-oauth2"
        }, "Google"), /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "github"
        }, "GitHub"), /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "oidc"
        }, "Okta"), /*#__PURE__*/ React.createElement(external_Auth0Button_js_default(), {
            provider: "Username-Password-Authentication"
        }, "Email and password"))))
};
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
});
