client/components/pages/licensing.js

"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"));
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  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 Col = bootstrap.Col,
  Row = bootstrap.Row;

/**
 * Renders a page containing information about the licensing and copyrights for the content available on the Bookbrainz.
 * @returns {JSX.Element} a React JSX Component
 */
function LicensingPage() {
  var CC0Link = 'http://creativecommons.org/publicdomain/zero/1.0/';
  var CC0Image = 'http://i.creativecommons.org/p/zero/1.0/88x31.png';
  var CCBYSALink = 'http://creativecommons.org/licenses/by-sa/4.0/';
  var CCBYSAImage = 'https://i.creativecommons.org/l/by-sa/4.0/88x31.png';
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
    className: "page-header"
  }, /*#__PURE__*/_react.default.createElement("h1", null, "Licensing")), /*#__PURE__*/_react.default.createElement("p", null, "The BookBrainz core data is licensed under the\xA0", /*#__PURE__*/_react.default.createElement("a", {
    href: CC0Link
  }, "Creative Commons CC0"), " license. The core data includes the following information:"), /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Author"), "\xA0 BBID, aliases, type, begin and end dates, gender and disambiguation comment"), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Edition Group"), "\xA0 BBID, aliases, type and disambiguation comment"), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Edition"), "\xA0 BBID, aliases, begin and end dates, language, status and disambiguation comment"), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Publisher"), "\xA0 BBID, aliases, type, begin and end dates and disambiguation comment"), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Work"), "\xA0 BBID, aliases, languages, type, disambiguation comment"), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Relationship"), "\xA0 ID, type, and entity and text associations")), /*#__PURE__*/_react.default.createElement("p", null, "Other publically available data is licensed under the\xA0", /*#__PURE__*/_react.default.createElement("a", {
    href: CCBYSALink
  }, "Creative Commons CC BY-SA"), " license. If you have any queries about licensing of the public data, please ", /*#__PURE__*/_react.default.createElement("a", {
    href: "mailto:bookbrainz@metabrainz.org"
  }, "ask for clarification"), ". Please see the links below for more details about CC0 and CC BY-SA."), /*#__PURE__*/_react.default.createElement(Row, {
    className: "margin-top-2"
  }, /*#__PURE__*/_react.default.createElement(Col, {
    className: "text-center",
    lg: {
      offset: 2,
      span: 4
    }
  }, /*#__PURE__*/_react.default.createElement("a", {
    href: CC0Link,
    rel: "license"
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
    alt: "CC0",
    src: CC0Image
  })), "CC0")), /*#__PURE__*/_react.default.createElement(Col, {
    className: "text-center",
    lg: 4
  }, /*#__PURE__*/_react.default.createElement("a", {
    href: CCBYSALink,
    rel: "license"
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
    alt: "Creative Commons License",
    src: CCBYSAImage
  })), "CC BY-SA"))));
}
LicensingPage.displayName = 'LicensingPage';
var _default = LicensingPage;
exports.default = _default;
//# sourceMappingURL=licensing.js.map