Commit 1de9f815 authored by Theerathat Pornprinya's avatar Theerathat Pornprinya

Preliminary Archive

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"h":"11ae2b24e576fd90b6b6","c":{"5":false}}
\ No newline at end of file
This diff is collapsed.
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = require('semantic-ui-react');
var _routes = require('../routes');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _jsxFileName = '/Users/theerathat2008/filmchainethereum/components/Header.js';
exports.default = function () {
return _react2.default.createElement(_semanticUiReact.Menu, { style: { marginTop: '10px' }, __source: {
fileName: _jsxFileName,
lineNumber: 7
}
}, _react2.default.createElement(_routes.Link, { route: '/', __source: {
fileName: _jsxFileName,
lineNumber: 8
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 9
}
}, _react2.default.createElement(_semanticUiReact.Header, {
__source: {
fileName: _jsxFileName,
lineNumber: 10
}
}, 'FilmChain Marketplace'))), _react2.default.createElement(_semanticUiReact.Menu.Item, {
__source: {
fileName: _jsxFileName,
lineNumber: 13
}
}, _react2.default.createElement(_semanticUiReact.Input, { className: 'icon', icon: 'search', placeholder: 'Search...', __source: {
fileName: _jsxFileName,
lineNumber: 14
}
})), _react2.default.createElement(_semanticUiReact.Menu.Menu, { position: 'right', __source: {
fileName: _jsxFileName,
lineNumber: 17
}
}, _react2.default.createElement(_routes.Link, { route: '/', __source: {
fileName: _jsxFileName,
lineNumber: 18
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 19
}
}, 'Home')), _react2.default.createElement('a', { href: 'https://www.imdb.com/news/movie', target: '_blank', className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 24
}
}, 'News'), _react2.default.createElement(_semanticUiReact.Dropdown, { item: true, text: 'About', __source: {
fileName: _jsxFileName,
lineNumber: 29
}
}, _react2.default.createElement(_semanticUiReact.Dropdown.Menu, {
__source: {
fileName: _jsxFileName,
lineNumber: 30
}
}, _react2.default.createElement(_routes.Link, { route: '/how-it-works', __source: {
fileName: _jsxFileName,
lineNumber: 31
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 32
}
}, 'How it works?')), _react2.default.createElement(_routes.Link, { route: '/reviews', __source: {
fileName: _jsxFileName,
lineNumber: 36
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 37
}
}, 'Reviews')), _react2.default.createElement(_routes.Link, { route: '/articles', __source: {
fileName: _jsxFileName,
lineNumber: 41
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 42
}
}, 'FAQ')))), _react2.default.createElement(_semanticUiReact.Dropdown, { item: true, text: 'Contact Us', __source: {
fileName: _jsxFileName,
lineNumber: 49
}
}, _react2.default.createElement(_semanticUiReact.Dropdown.Menu, {
__source: {
fileName: _jsxFileName,
lineNumber: 50
}
}, _react2.default.createElement(_semanticUiReact.Dropdown.Item, { color: 'facebook', __source: {
fileName: _jsxFileName,
lineNumber: 51
}
}, _react2.default.createElement(_semanticUiReact.Icon, { name: 'medium', __source: {
fileName: _jsxFileName,
lineNumber: 52
}
}), _react2.default.createElement('a', { href: 'https://medium.com/@BigCouch', target: '_blank', __source: {
fileName: _jsxFileName,
lineNumber: 53
}
}, 'Medium')), _react2.default.createElement(_semanticUiReact.Dropdown.Item, { color: 'twitter', __source: {
fileName: _jsxFileName,
lineNumber: 57
}
}, _react2.default.createElement(_semanticUiReact.Icon, { name: 'twitter', __source: {
fileName: _jsxFileName,
lineNumber: 58
}
}), _react2.default.createElement('a', { href: 'https://twitter.com/bigcouchfilms', target: '_blank', __source: {
fileName: _jsxFileName,
lineNumber: 59
}
}, 'Twitter')), _react2.default.createElement(_semanticUiReact.Dropdown.Item, { color: 'mail', __source: {
fileName: _jsxFileName,
lineNumber: 61
}
}, _react2.default.createElement(_semanticUiReact.Icon, { name: 'mail', __source: {
fileName: _jsxFileName,
lineNumber: 62
}
}), _react2.default.createElement(_routes.Link, { route: '/contact-us', __source: {
fileName: _jsxFileName,
lineNumber: 63
}
}, 'E-mail')))), _react2.default.createElement(_semanticUiReact.Dropdown, { item: true, text: 'Account', __source: {
fileName: _jsxFileName,
lineNumber: 70
}
}, _react2.default.createElement(_semanticUiReact.Dropdown.Menu, {
__source: {
fileName: _jsxFileName,
lineNumber: 71
}
}, _react2.default.createElement(_routes.Link, { route: '/user/show', __source: {
fileName: _jsxFileName,
lineNumber: 72
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 73
}
}, 'View Your Account')), _react2.default.createElement(_routes.Link, { route: '/reviews', __source: {
fileName: _jsxFileName,
lineNumber: 77
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 78
}
}, 'Settings')), _react2.default.createElement(_routes.Link, { route: '/user/signup', __source: {
fileName: _jsxFileName,
lineNumber: 82
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 83
}
}, 'Sign Up')), _react2.default.createElement(_routes.Link, { route: '/user/login', __source: {
fileName: _jsxFileName,
lineNumber: 87
}
}, _react2.default.createElement('a', { className: 'item', __source: {
fileName: _jsxFileName,
lineNumber: 88
}
}, 'Login')), _react2.default.createElement(_semanticUiReact.Dropdown.Item, {
__source: {
fileName: _jsxFileName,
lineNumber: 92
}
}, 'Logout'))), _react2.default.createElement(_routes.Link, { route: '/products/new', __source: {
fileName: _jsxFileName,
lineNumber: 97
}
}, _react2.default.createElement('a', { className: 'item', color: 'red', __source: {
fileName: _jsxFileName,
lineNumber: 98
}
}, 'Sell'))));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVud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QUFBLEFBQUMsOEJBQUssT0FBTixBQUFZO2dCQUFaO2tCQUFBLEFBQ0U7QUFERjtxQkFDRSxjQUFBLE9BQUcsV0FBSCxBQUFhO2dCQUFiO2tCQUFBO0FBQUE7S0FaSixBQVdFLEFBQ0UsQUFJRiw2QkFBQSxBQUFDLDhCQUFLLE9BQU4sQUFBWTtnQkFBWjtrQkFBQSxBQUNFO0FBREY7cUJBQ0UsY0FBQSxPQUFHLFdBQUgsQUFBYTtnQkFBYjtrQkFBQTtBQUFBO0tBakJKLEFBZ0JFLEFBQ0UsQUFJRiwyQkFBQyxjQUFELDBCQUFBLEFBQVU7O2dCQUFWO2tCQUFBO0FBQUE7QUFBQSxLQTNFTixBQXFERSxBQUNFLEFBcUJFLEFBS0osNkJBQUEsQUFBQyw4QkFBSyxPQUFOLEFBQVk7Z0JBQVo7a0JBQUEsQUFDRTtBQURGO3FCQUNFLGNBQUEsT0FBRyxXQUFILEFBQWEsUUFBTyxPQUFwQixBQUEwQjtnQkFBMUI7a0JBQUE7QUFBQTtLQTVGUixBQUNFLEFBVUUsQUFnRkUsQUFDRSxBQU9UO0FBcEdEIiwiZmlsZSI6IkhlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvdGhlZXJhdGhhdDIwMDgvZmlsbWNoYWluZXRoZXJldW0ifQ==
\ No newline at end of file
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = require('semantic-ui-react');
var _head = require('next/dist/lib/head.js');
var _head2 = _interopRequireDefault(_head);
var _Header = require('./Header');
var _Header2 = _interopRequireDefault(_Header);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _jsxFileName = '/Users/theerathat2008/filmchainethereum/components/Layout.js';
exports.default = function (props) {
return _react2.default.createElement(_semanticUiReact.Container, {
__source: {
fileName: _jsxFileName,
lineNumber: 8
}
}, _react2.default.createElement(_head2.default, {
__source: {
fileName: _jsxFileName,
lineNumber: 9
}
}, _react2.default.createElement('link', { rel: 'stylesheet', href: '//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css', __source: {
fileName: _jsxFileName,
lineNumber: 10
}
})), _react2.default.createElement(_Header2.default, {
__source: {
fileName: _jsxFileName,
lineNumber: 12
}
}), props.children);
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvTGF5b3V0LmpzIl0sIm5hbWVzIjpbIlJlYWN0IiwiQ29udGFpbmVyIiwiSGVhZCIsIkhlYWRlciIsInByb3BzIiwiY2hpbGRyZW4iXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLEFBQU87Ozs7QUFDUCxBQUFTOztBQUNULEFBQU87Ozs7QUFDUCxBQUFPLEFBQVksQUFFbkI7Ozs7Ozs7O2tCQUFlLGlCQUFTLEFBQ3RCO3lCQUNFLEFBQUM7O2dCQUFEO2tCQUFBLEFBQ0U7QUFERjtBQUFBLEdBQUEsa0JBQ0UsQUFBQzs7Z0JBQUQ7a0JBQUEsQUFDRTtBQURGO0FBQUEsNkNBQ1EsS0FBTixBQUFVLGNBQWEsTUFBdkIsQUFBNEI7Z0JBQTVCO2tCQUZKLEFBQ0UsQUFDRSxBQUVGO0FBRkU7dUJBRUYsQUFBQzs7Z0JBQUQ7a0JBSkYsQUFJRSxBQUNDO0FBREQ7QUFBQSxZQUxKLEFBQ0UsQUFLUyxBQUlaO0FBWEQiLCJmaWxlIjoiTGF5b3V0LmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy90aGVlcmF0aGF0MjAwOC9maWxtY2hhaW5ldGhlcmV1bSJ9
\ No newline at end of file
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _semanticUiReact = require('semantic-ui-react');
var _marketplace = require('../ethereum/marketplace');
var _marketplace2 = _interopRequireDefault(_marketplace);
var _web = require('../ethereum/web3');
var _web2 = _interopRequireDefault(_web);
var _routes = require('../routes');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _jsxFileName = '/Users/theerathat2008/filmchainethereum/components/OfferForm.js';
var OfferForm = function (_Component) {
(0, _inherits3.default)(OfferForm, _Component);
function OfferForm() {
var _ref,
_this2 = this;
var _temp, _this, _ret;
(0, _classCallCheck3.default)(this, OfferForm);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = OfferForm.__proto__ || (0, _getPrototypeOf2.default)(OfferForm)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
value: '',
description: '',
errorMessage: '',
loading: false
}, _this.onSubmit = function () {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(event) {
var marketplace, accounts;
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
event.preventDefault();
marketplace = (0, _marketplace2.default)(_this.props.address);
_this.setState({ loading: true, errorMessage: '' });
_context.prev = 3;
_context.next = 6;
return _web2.default.eth.getAccounts();
case 6:
accounts = _context.sent;
_context.next = 9;
return marketplace.methods.makeOffer(_this.state.description).send({
from: accounts[0],
value: _web2.default.utils.toWei(_this.state.value, 'ether')
});
case 9:
_routes.Router.replaceRoute('/products/' + _this.props.address);
_context.next = 15;
break;
case 12:
_context.prev = 12;
_context.t0 = _context['catch'](3);
_this.setState({ errorMessage: _context.t0.message });
case 15:
_this.setState({ loading: false, value: '', description: '' });
case 16:
case 'end':
return _context.stop();
}
}
}, _callee, _this2, [[3, 12]]);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}(), _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
}
(0, _createClass3.default)(OfferForm, [{
key: 'render',
value: function render() {
var _this3 = this;
return _react2.default.createElement(_semanticUiReact.Form, { onSubmit: this.onSubmit, error: !!this.state.errorMessage, __source: {
fileName: _jsxFileName,
lineNumber: 39
}
}, _react2.default.createElement(_semanticUiReact.Form.Field, {
__source: {
fileName: _jsxFileName,
lineNumber: 40
}
}, _react2.default.createElement('label', {
__source: {
fileName: _jsxFileName,
lineNumber: 41
}
}, 'You can also make an offer to this product'), _react2.default.createElement(_semanticUiReact.Input, {
value: this.state.value,
onChange: function onChange(event) {
return _this3.setState({ value: event.target.value });
},
label: 'ether',
labelPosition: 'right',
__source: {
fileName: _jsxFileName,
lineNumber: 42
}
}), _react2.default.createElement('label', {
__source: {
fileName: _jsxFileName,
lineNumber: 48
}
}, 'Description of your offer'), _react2.default.createElement(_semanticUiReact.Input, {
value: this.state.description,
onChange: function onChange(event) {
return _this3.setState({ description: event.target.value });
},
__source: {
fileName: _jsxFileName,
lineNumber: 49
}
})), _react2.default.createElement(_semanticUiReact.Message, { error: true, header: 'Oops!', content: this.state.errorMessage, __source: {
fileName: _jsxFileName,
lineNumber: 55
}
}), _react2.default.createElement(_semanticUiReact.Button, { secondary: true, loading: this.state.loading, __source: {
fileName: _jsxFileName,
lineNumber: 56
}
}, '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lsbWNoYWluZXRoZXJldW0ifQ==
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _web = require('./web3');
var _web2 = _interopRequireDefault(_web);
var _Marketplace = require('./build/Marketplace.json');
var _Marketplace2 = _interopRequireDefault(_Marketplace);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (address) {
return new _web2.default.eth.Contract(JSON.parse(_Marketplace2.default.interface), address);
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV0aGVyZXVtL21hcmtldHBsYWNlLmpzIl0sIm5hbWVzIjpbIndlYjMiLCJNYXJrZXRwbGFjZSIsImFkZHJlc3MiLCJldGgiLCJDb250cmFjdCIsIkpTT04iLCJwYXJzZSIsImludGVyZmFjZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsQUFBTyxBQUFQLEFBQWlCLEFBQWpCOzs7O0FBQ0EsQUFBTyxBQUFQLEFBQXdCLEFBQXhCLEFBRUE7Ozs7OztrQkFBZSxVQUFDLEFBQUQsU0FBYSxBQUMxQjtTQUFPLElBQUksY0FBSyxBQUFMLElBQVMsQUFBYixTQUNMLEtBQUssQUFBTCxNQUFXLHNCQUFZLEFBQXZCLEFBREssWUFFTCxBQUZLLEFBQVAsQUFJRDtBQUxEIiwiZmlsZSI6Im1hcmtldHBsYWNlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy90aGVlcmF0aGF0MjAwOC9maWxtY2hhaW5ldGhlcmV1bSJ9
\ No newline at end of file
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _web = require('./web3');
var _web2 = _interopRequireDefault(_web);
var _CreateProduct = require('./build/CreateProduct.json');
var _CreateProduct2 = _interopRequireDefault(_CreateProduct);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var instance = new _web2.default.eth.Contract(JSON.parse(_CreateProduct2.default.interface), '0x13cf4f41d7A0Fe06C4D8cC92dC5Ef6087C8Ec955');
exports.default = instance;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV0aGVyZXVtL25ld3Byb2R1Y3QuanMiXSwibmFtZXMiOlsid2ViMyIsIkNyZWF0ZVByb2R1Y3QiLCJpbnN0YW5jZSIsImV0aCIsIkNvbnRyYWN0IiwiSlNPTiIsInBhcnNlIiwiaW50ZXJmYWNlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxBQUFPLEFBQVAsQUFBaUIsQUFBakI7Ozs7QUFFQSxBQUFPLEFBQVAsQUFBMEIsQUFBMUI7Ozs7OztBQUVBLElBQU0sV0FBVyxJQUFJLGNBQUssQUFBTCxJQUFTLEFBQWIsU0FDZixLQUFLLEFBQUwsTUFBVyx3QkFBYyxBQUF6QixBQURlLFlBRWYsQUFGZSxBQUFqQixBQUtBOztrQkFBZSxBQUFmIiwiZmlsZSI6Im5ld3Byb2R1Y3QuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3RoZWVyYXRoYXQyMDA4L2ZpbG1jaGFpbmV0aGVyZXVtIn0=
\ No newline at end of file
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _web = require('web3');
var _web2 = _interopRequireDefault(_web);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var web3 = void 0;
if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') {
// We are in the browser or metamask has already injected web3
web3 = new _web2.default(window.web3.currentProvider);
} else {
// We are on the server or use is not running metamask
var provider = new _web2.default.providers.HttpProvider('https://rinkeby.infura.io/v3/8586865a669c410592a233683a10ddbf');
web3 = new _web2.default(provider);
}
exports.default = web3;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV0aGVyZXVtL3dlYjMuanMiXSwibmFtZXMiOlsiV2ViMyIsIndlYjMiLCJ3aW5kb3ciLCJjdXJyZW50UHJvdmlkZXIiLCJwcm92aWRlciIsInByb3ZpZGVycyIsIkh0dHBQcm92aWRlciJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsQUFBTyxBQUFQOzs7Ozs7QUFFQSxJQUFJLFlBQUo7O0FBRUEsSUFBSSxPQUFPLEFBQVAsV0FBa0IsQUFBbEIsZUFBaUMsT0FBTyxPQUFPLEFBQWQsU0FBdUIsQUFBNUQsYUFBeUUsQUFDdkU7QUFDQTtTQUFPLEFBQUksQUFBSixrQkFBUyxPQUFPLEFBQVAsS0FBWSxBQUFyQixBQUFQLEFBQ0Q7QUFIRCxPQUdPLEFBQ0w7QUFDQTtNQUFNLFdBQVcsSUFBSSxjQUFLLEFBQUwsVUFBZSxBQUFuQixhQUNmLEFBRGUsQUFBakIsQUFHQTtTQUFPLEFBQUksQUFBSixrQkFBUyxBQUFULEFBQVAsQUFDRDtBQUVEOztrQkFBZSxBQUFmIiwiZmlsZSI6IndlYjMuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3RoZWVyYXRoYXQyMDA4L2ZpbG1jaGFpbmV0aGVyZXVtIn0=
\ No newline at end of file
'use strict';
module.exports = require('next/dist/server/document.js');
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9uZXh0L2Rpc3QvcGFnZXMvX2RvY3VtZW50LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJyZXF1aXJlIl0sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sQUFBUCxVQUFpQixBQUFqQiIsImZpbGUiOiJfZG9jdW1lbnQuanM/ZW50cnkiLCJzb3VyY2VSb290IjoiL1VzZXJzL3RoZWVyYXRoYXQyMDA4L2ZpbG1jaGFpbmV0aGVyZXVtIn0=
\ No newline at end of file
'use strict';
module.exports = require('next/dist/lib/error.js');
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9uZXh0L2Rpc3QvcGFnZXMvX2Vycm9yLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJyZXF1aXJlIl0sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sQUFBUCxVQUFpQixBQUFqQiIsImZpbGUiOiJfZXJyb3IuanM/ZW50cnkiLCJzb3VyY2VSb290IjoiL1VzZXJzL3RoZWVyYXRoYXQyMDA4L2ZpbG1jaGFpbmV0aGVyZXVtIn0=
\ No newline at end of file
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);