"use strict";
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.string.iterator.js");
require("core-js/modules/es.weak-map.js");
require("core-js/modules/web.dom-collections.iterator.js");
require("core-js/modules/es.object.get-own-property-descriptor.js");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var bootstrap = _interopRequireWildcard(require("react-bootstrap"));
var _react = _interopRequireDefault(require("react"));
var _reactHotLoader = require("react-hot-loader");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/*
* Copyright (C) 2015 Annie Zhou
* 2016 Sean Burke
* 2016 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
var Alert = bootstrap.Alert,
Button = bootstrap.Button;
/**
* Renders a page allowing the user to sign in to MusicBrainz to
* continue the BookBrainz registration process.
* @returns {ReactElement} an element containing the rendered output.
*/
function RegistrationAuth() {
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
className: "page-header"
}, /*#__PURE__*/_react.default.createElement("h1", null, "Register")), /*#__PURE__*/_react.default.createElement("p", null, "To sign up as an editor of BookBrainz, you need to first have a MusicBrainz account. Please click the button below to sign in or register with MusicBrainz. You\u2019ll then be redirected back to BookBrainz to continue registration!"), /*#__PURE__*/_react.default.createElement(Alert, {
variant: "warning"
}, "If you already registered for BookBrainz, and your account isn\u2019t linked to a MusicBrainz account, please contact us using one of the links on our homepage instead of registering. We\u2019ll update your account details to link your account so that you can sign in."), /*#__PURE__*/_react.default.createElement("div", {
className: "text-center"
}, /*#__PURE__*/_react.default.createElement(Button, {
href: "/auth",
type: "submit"
}, /*#__PURE__*/_react.default.createElement("img", {
alt: "MusicBrainz",
className: "margin-right-0-5",
src: "/images/MusicBrainz_logo_icon.svg"
}), "Sign In or Register with MusicBrainz")));
}
RegistrationAuth.displayName = 'RegistrationForm';
// Export as hot module (see https://github.com/gaearon/react-hot-loader)
var _default = (0, _reactHotLoader.hot)(module)(RegistrationAuth);
exports.default = _default;
//# sourceMappingURL=registration-auth.js.map