client/components/pages/registration-auth.js

"use strict";

require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.object.get-own-property-descriptor.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");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var bootstrap = _interopRequireWildcard(require("react-bootstrap"));
var _react = _interopRequireDefault(require("react"));
var _reactI18next = require("react-i18next");
var cache;
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
/*
 * 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() {
  var _useTranslation = (0, _reactI18next.useTranslation)(),
    translate = _useTranslation.t;
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
    className: "page-header"
  }, /*#__PURE__*/_react.default.createElement("h1", null, translate('pages.registration.heading'))), /*#__PURE__*/_react.default.createElement("p", null, translate('pages.registration.authIntroText')), /*#__PURE__*/_react.default.createElement(Alert, {
    variant: "warning"
  }, translate('pages.registration.authWarningAlert')), /*#__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"
  }), translate('pages.registration.authButtonText'))));
}
RegistrationAuth.displayName = 'RegistrationForm';
var _default = exports.default = RegistrationAuth;
//# sourceMappingURL=registration-auth.js.map