1+ "use strict" ;
2+
3+ Object . defineProperty ( exports , "__esModule" , {
4+ value :true
5+ } ) ;
6+ exports . default = void 0 ;
7+
8+ var _react = _interopRequireWildcard ( require ( "react" ) ) ;
9+
10+ var _reactIntl = require ( "react-intl" ) ;
11+
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 ; } }
13+
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 ) ; }
15+
16+ function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
17+
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 ) ; }
31+
32+ var Foo =
33+ /*#__PURE__*/
34+ function ( _Component ) {
35+ _inherits ( Foo , _Component ) ;
36+
37+ function Foo ( ) {
38+ _classCallCheck ( this , Foo ) ;
39+
40+ return _possibleConstructorReturn ( this , _getPrototypeOf ( Foo ) . apply ( this , arguments ) ) ;
41+ }
42+
43+ _createClass ( Foo , [ {
44+ key :"render" ,
45+ value :function render ( ) {
46+ var msgs = {
47+ baz :this . props . intl . formatMessage ( {
48+ "id" :"foo.bar.baz" ,
49+ "defaultMessage" :"Hello World!"
50+ } ) ,
51+ biff :this . props . intl . formatMessage ( {
52+ "id" :"foo.bar.biff" ,
53+ "defaultMessage" :"Hello Nurse!"
54+ } )
55+ } ;
56+ return _react . default . createElement ( "div" , null , _react . default . createElement ( "h1" , null , msgs . header ) , _react . default . createElement ( "p" , null , msgs . content ) ) ;
57+ }
58+ } ] ) ;
59+
60+ return Foo ;
61+ } ( _react . Component ) ;
62+
63+ var _default = ( 0 , _reactIntl . injectIntl ) ( Foo ) ;
64+
65+ exports . default = _default ;