@@ -5,19 +5,19 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
Object . defineProperty ( exports , "__esModule" , {
6
6
value : true
7
7
} ) ;
8
- exports [ " default" ] = void 0 ;
8
+ exports . default = void 0 ;
9
9
10
10
var _react = _interopRequireWildcard ( require ( "react" ) ) ;
11
11
12
12
var _propTypes = _interopRequireDefault ( require ( "prop-types" ) ) ;
13
13
14
14
var _usePlacesWidget2 = _interopRequireDefault ( require ( "./usePlacesWidget" ) ) ;
15
15
16
- function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { " default" : obj } ; }
16
+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
17
17
18
18
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 ) ; }
19
19
20
- 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 ; }
20
+ 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 ; }
21
21
22
22
function _extends ( ) { _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ; return _extends . apply ( this , arguments ) ; }
23
23
@@ -34,7 +34,7 @@ function ReactGoogleAutocomplete(props) {
34
34
refProp = props . refProp ,
35
35
rest = _objectWithoutProperties ( props , [ "onPlaceSelected" , "apiKey" , "inputAutocompleteValue" , "options" , "googleMapsScriptBaseUrl" , "refProp" ] ) ;
36
36
37
- var _usePlacesWidget = ( 0 , _usePlacesWidget2 [ " default" ] ) ( {
37
+ var _usePlacesWidget = ( 0 , _usePlacesWidget2 . default ) ( {
38
38
ref : refProp ,
39
39
googleMapsScriptBaseUrl : googleMapsScriptBaseUrl ,
40
40
onPlaceSelected : onPlaceSelected ,
@@ -44,37 +44,37 @@ function ReactGoogleAutocomplete(props) {
44
44
} ) ,
45
45
ref = _usePlacesWidget . ref ;
46
46
47
- return /*#__PURE__*/ _react [ " default" ] . createElement ( "input" , _extends ( {
47
+ return /*#__PURE__*/ _react . default . createElement ( "input" , _extends ( {
48
48
ref : ref
49
49
} , rest ) ) ;
50
50
}
51
51
52
52
ReactGoogleAutocomplete . propTypes = {
53
- apiKey : _propTypes [ " default" ] . string ,
54
- ref : _propTypes [ " default" ] . oneOfType ( [ // Either a function
55
- _propTypes [ " default" ] . func , // Or anything shaped { current: any }
56
- _propTypes [ " default" ] . shape ( {
57
- current : _propTypes [ " default" ] . any
53
+ apiKey : _propTypes . default . string ,
54
+ ref : _propTypes . default . oneOfType ( [ // Either a function
55
+ _propTypes . default . func , // Or anything shaped { current: any }
56
+ _propTypes . default . shape ( {
57
+ current : _propTypes . default . any
58
58
} ) ] ) ,
59
- googleMapsScriptBaseUrl : _propTypes [ " default" ] . string ,
60
- onPlaceSelected : _propTypes [ " default" ] . func ,
61
- inputAutocompleteValue : _propTypes [ " default" ] . string ,
62
- options : _propTypes [ " default" ] . shape ( {
63
- componentRestrictions : _propTypes [ " default" ] . object ,
64
- bounds : _propTypes [ " default" ] . object ,
65
- location : _propTypes [ " default" ] . object ,
66
- offset : _propTypes [ " default" ] . number ,
67
- origin : _propTypes [ " default" ] . object ,
68
- radius : _propTypes [ " default" ] . number ,
69
- sessionToken : _propTypes [ " default" ] . object ,
70
- types : _propTypes [ " default" ] . arrayOf ( _propTypes [ " default" ] . string )
59
+ googleMapsScriptBaseUrl : _propTypes . default . string ,
60
+ onPlaceSelected : _propTypes . default . func ,
61
+ inputAutocompleteValue : _propTypes . default . string ,
62
+ options : _propTypes . default . shape ( {
63
+ componentRestrictions : _propTypes . default . object ,
64
+ bounds : _propTypes . default . object ,
65
+ location : _propTypes . default . object ,
66
+ offset : _propTypes . default . number ,
67
+ origin : _propTypes . default . object ,
68
+ radius : _propTypes . default . number ,
69
+ sessionToken : _propTypes . default . object ,
70
+ types : _propTypes . default . arrayOf ( _propTypes . default . string )
71
71
} )
72
72
} ;
73
73
74
74
var _default = /*#__PURE__*/ ( 0 , _react . forwardRef ) ( function ( props , ref ) {
75
- return /*#__PURE__*/ _react [ " default" ] . createElement ( ReactGoogleAutocomplete , _extends ( { } , props , {
75
+ return /*#__PURE__*/ _react . default . createElement ( ReactGoogleAutocomplete , _extends ( { } , props , {
76
76
refProp : ref
77
77
} ) ) ;
78
78
} ) ;
79
79
80
- exports [ " default" ] = _default ;
80
+ exports . default = _default ;
0 commit comments