2
2
3
3
function _typeof ( obj ) { "@babel/helpers - typeof" ; 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 ) ; }
4
4
5
- require ( "core-js/modules/es.symbol.js" ) ;
6
-
7
- require ( "core-js/modules/es.object.assign.js" ) ;
8
-
9
- require ( "core-js/modules/es.array.iterator.js" ) ;
10
-
11
- require ( "core-js/modules/es.object.to-string.js" ) ;
12
-
13
- require ( "core-js/modules/es.string.iterator.js" ) ;
14
-
15
- require ( "core-js/modules/es.weak-map.js" ) ;
16
-
17
- require ( "core-js/modules/web.dom-collections.iterator.js" ) ;
18
-
19
- require ( "core-js/modules/es.object.get-own-property-descriptor.js" ) ;
20
-
21
- require ( "core-js/modules/es.symbol.description.js" ) ;
22
-
23
- require ( "core-js/modules/es.symbol.iterator.js" ) ;
24
-
25
5
Object . defineProperty ( exports , "__esModule" , {
26
6
value : true
27
7
} ) ;
28
- exports . default = void 0 ;
29
-
30
- require ( "core-js/modules/es.object.keys.js" ) ;
8
+ exports [ "default" ] = void 0 ;
31
9
32
10
var _react = _interopRequireWildcard ( require ( "react" ) ) ;
33
11
34
12
var _propTypes = _interopRequireDefault ( require ( "prop-types" ) ) ;
35
13
36
14
var _usePlacesWidget2 = _interopRequireDefault ( require ( "./usePlacesWidget" ) ) ;
37
15
38
- function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
16
+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { " default" : obj } ; }
39
17
40
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 ) ; }
41
19
42
- 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 ; }
43
21
44
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 ) ; }
45
23
@@ -56,7 +34,7 @@ function ReactGoogleAutocomplete(props) {
56
34
refProp = props . refProp ,
57
35
rest = _objectWithoutProperties ( props , [ "onPlaceSelected" , "apiKey" , "inputAutocompleteValue" , "options" , "googleMapsScriptBaseUrl" , "refProp" ] ) ;
58
36
59
- var _usePlacesWidget = ( 0 , _usePlacesWidget2 . default ) ( {
37
+ var _usePlacesWidget = ( 0 , _usePlacesWidget2 [ " default" ] ) ( {
60
38
ref : refProp ,
61
39
googleMapsScriptBaseUrl : googleMapsScriptBaseUrl ,
62
40
onPlaceSelected : onPlaceSelected ,
@@ -66,37 +44,37 @@ function ReactGoogleAutocomplete(props) {
66
44
} ) ,
67
45
ref = _usePlacesWidget . ref ;
68
46
69
- return /*#__PURE__*/ _react . default . createElement ( "input" , _extends ( {
47
+ return /*#__PURE__*/ _react [ " default" ] . createElement ( "input" , _extends ( {
70
48
ref : ref
71
49
} , rest ) ) ;
72
50
}
73
51
74
52
ReactGoogleAutocomplete . propTypes = {
75
- apiKey : _propTypes . default . string ,
76
- ref : _propTypes . default . oneOfType ( [ // Either a function
77
- _propTypes . default . func , // Or anything shaped { current: any }
78
- _propTypes . default . shape ( {
79
- 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
80
58
} ) ] ) ,
81
- googleMapsScriptBaseUrl : _propTypes . default . string ,
82
- onPlaceSelected : _propTypes . default . func ,
83
- inputAutocompleteValue : _propTypes . default . string ,
84
- options : _propTypes . default . shape ( {
85
- componentRestrictions : _propTypes . default . object ,
86
- bounds : _propTypes . default . object ,
87
- location : _propTypes . default . object ,
88
- offset : _propTypes . default . number ,
89
- origin : _propTypes . default . object ,
90
- radius : _propTypes . default . number ,
91
- sessionToken : _propTypes . default . object ,
92
- 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 )
93
71
} )
94
72
} ;
95
73
96
74
var _default = /*#__PURE__*/ ( 0 , _react . forwardRef ) ( function ( props , ref ) {
97
- return /*#__PURE__*/ _react . default . createElement ( ReactGoogleAutocomplete , _extends ( { } , props , {
75
+ return /*#__PURE__*/ _react [ " default" ] . createElement ( ReactGoogleAutocomplete , _extends ( { } , props , {
98
76
refProp : ref
99
77
} ) ) ;
100
78
} ) ;
101
79
102
- exports . default = _default ;
80
+ exports [ " default" ] = _default ;
0 commit comments