|
1 |
| -'use strict'; |
| 1 | +"use strict"; |
2 | 2 |
|
3 | 3 | Object.defineProperty(exports, "__esModule", {
|
4 |
| - value: true |
| 4 | + value: true |
5 | 5 | });
|
| 6 | +exports.default = void 0; |
6 | 7 |
|
7 |
| -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); |
| 8 | +var _react = _interopRequireWildcard(require("react")); |
8 | 9 |
|
9 |
| -var _react = require('react'); |
| 10 | +var _reactIntl = require("react-intl"); |
10 | 11 |
|
11 |
| -var _react2 = _interopRequireDefault(_react); |
| 12 | +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } |
12 | 13 |
|
13 |
| -var _reactIntl = require('react-intl'); |
14 |
| - |
15 |
| -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| 14 | +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } |
16 | 15 |
|
17 | 16 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
18 | 17 |
|
19 |
| -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } |
| 18 | +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } |
| 19 | + |
| 20 | +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } |
| 21 | + |
| 22 | +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } |
| 23 | + |
| 24 | +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } |
| 25 | + |
| 26 | +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
| 27 | + |
| 28 | +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } |
| 29 | + |
| 30 | +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } |
20 | 31 |
|
21 |
| -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } |
| 32 | +var Foo = |
| 33 | +/*#__PURE__*/ |
| 34 | +function (_Component) { |
| 35 | + _inherits(Foo, _Component); |
22 | 36 |
|
23 |
| -var Foo = function (_Component) { |
24 |
| - _inherits(Foo, _Component); |
| 37 | + function Foo() { |
| 38 | + _classCallCheck(this, Foo); |
25 | 39 |
|
26 |
| - function Foo() { |
27 |
| - _classCallCheck(this, Foo); |
| 40 | + return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments)); |
| 41 | + } |
28 | 42 |
|
29 |
| - return _possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).apply(this, arguments)); |
| 43 | + _createClass(Foo, [{ |
| 44 | + key: "render", |
| 45 | + value: function render() { |
| 46 | + return _react.default.createElement(_reactIntl.FormattedHTMLMessage, { |
| 47 | + id: "foo.bar.baz", |
| 48 | + defaultMessage: "<h1>Hello World!</h1>" |
| 49 | + }); |
30 | 50 | }
|
| 51 | + }]); |
31 | 52 |
|
32 |
| - _createClass(Foo, [{ |
33 |
| - key: 'render', |
34 |
| - value: function render() { |
35 |
| - return _react2.default.createElement(_reactIntl.FormattedHTMLMessage, { |
36 |
| - id: 'foo.bar.baz', |
37 |
| - defaultMessage: '<h1>Hello World!</h1>' |
38 |
| - }); |
39 |
| - } |
40 |
| - }]); |
41 |
| - |
42 |
| - return Foo; |
| 53 | + return Foo; |
43 | 54 | }(_react.Component);
|
44 | 55 |
|
45 | 56 | exports.default = Foo;
|
0 commit comments