diff --git a/README.md b/README.md index f0c8ff1..00e81c3 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Flexible react google map with more options of search, pick & select. # Getting Started ```javascript -yarn add g-mapify +yarn add @bp/g-mapify ``` or ```javascript -npm i g-mapify +npm i @bp/g-mapify ``` @@ -41,8 +41,8 @@ Basic use: ## Example with options (Search Map) ```javascript import React from 'react'; -import { GMapify } from 'g-mapify'; -import 'g-mapify/dist/index.css'; +import { GMapify } from '@bp/g-mapify'; +import '@bp/g-mapify/dist/index.css'; const App = () => { const onMapSelect = (status, data) => console.warn(status, data); @@ -60,8 +60,8 @@ const App = () => { ## Example with multiple markers ```javascript import React from 'react'; -import { GMapify } from 'g-mapify'; -import 'g-mapify/dist/index.css'; +import { GMapify } from '@bp/g-mapify'; +import '@bp/g-mapify/dist/index.css'; const App = () => { @@ -117,8 +117,8 @@ Support ref to access some functions directly. ```javascript import React from 'react'; - import { GMapify } from 'g-mapify'; - import 'g-mapify/dist/index.css'; + import { GMapify } from '@bp/g-mapify'; + import '@bp/g-mapify/dist/index.css'; const App = () => { const mapRef = useRef(); @@ -153,7 +153,7 @@ Functions are accessible directly: ## Address Formatter You can get City, Pincode, State etc. from *address_components* using **addressFormatter** method. This method transfrom *address_components* array data into *object*. ```javascript -import { GMapify, AddressFormatter } from 'g-mapify' +import { GMapify, AddressFormatter } from '@bp/g-mapify' const onMapSelect = (status, data) => { if (status) { diff --git a/dist/README.md b/dist/README.md new file mode 100644 index 0000000..f0c8ff1 --- /dev/null +++ b/dist/README.md @@ -0,0 +1,188 @@ +# g-mapify [![NPM version](https://img.shields.io/npm/v/g-mapify.svg)](https://www.npmjs.com/package/g-mapify) [![Downloads](http://img.shields.io/npm/dm/g-mapify.svg)](https://npmjs.org/package/g-mapify) [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-) +Flexible react google map with more options of search, pick & select. + +![g-mapify](https://raw.githubusercontent.com/bharatpe/g-mapify/master/g-mapify.png) + + +![g-mapify](https://raw.githubusercontent.com/bharatpe/g-mapify/master/example/images/g-mapify.png) + + +# Getting Started + +```javascript +yarn add g-mapify +``` + +or + +```javascript +npm i g-mapify +``` + + +## Usage +Basic use: +```javascript + import React from 'react'; + import { GMapify } from 'g-mapify'; + import 'g-mapify/dist/index.css'; + + const App = () => { + return ( + + ) + } +``` + +### Example: Basic map +![basic map image](https://raw.githubusercontent.com/bharatpe/g-mapify/master/example/images/basicmap.png?raw=true) + + +## Example with options (Search Map) +```javascript +import React from 'react'; +import { GMapify } from 'g-mapify'; +import 'g-mapify/dist/index.css'; + +const App = () => { + const onMapSelect = (status, data) => console.warn(status, data); + + return ( + + ) +} +``` + #### Note + If *status* is getting *false* that means something happened bad on location search. + +![Map Search image](https://raw.githubusercontent.com/bharatpe/g-mapify/master/example/images/search-map-desktop.png?raw=true) + +## Example with multiple markers +```javascript +import React from 'react'; +import { GMapify } from 'g-mapify'; +import 'g-mapify/dist/index.css'; + +const App = () => { + + const markers = [ + [28.4165425, 77.0437857, "Hello 1"], + [28.415671, 77.0520993, `

Southcity 2

`], + [28.4175717, 77.05284840000002] + ] + + const onMapSelect = (status, data) => console.warn(status, data); + + return ( + + ) +} +``` + +![Map Mutiple markers image](https://raw.githubusercontent.com/bharatpe/g-mapify/master/example/images/markers-map.png?raw=true) + + +## Options +| Props | Description | Default value +|-------------------------------|-------------------------------------------------------|-------------------------------| +|appKey (Mandatory) | google map app key | It's a mandatory value +|lat | default latitude of map | 28.7041 +|lng | default logitude of map | 77.1025 +|mapOptions | google map options that you can change or add more | zoom: 15, zoomControl: false, mapTypeControl: false, fullscreenControl: false, streetViewControl: false, clickableIcons: false, mapTypeId: "roadmap" +|libraries | add more funcationality on google map | places +|mapClassName | custom class name for map element | None +|hasMarker | show marker in map | true +|markerIcon | map marker icon | Blue marker icon +|autoCenter | Auto center map on move or zoom | true +|customMarkers | Multiple custom markers to mark on map | [] (Example : [[lat, lng, content], [lat, lng, content], ...] ) +|allowSinglePopup | Allow to open single popup on click custom marker | true +|hasSearch | apply search in map | false +|mapSearchPlace | map search input box place (required a valid selector name like (#id, .class)) | bottom of the map +|debounceTime | search debounce time (unit *ms*) | 2000 +|inputClassName | custom class name for Search input | None +|searchPlaceHolder | placeholder of search box | Search here +|searchClassName | custom class name of search container | None +|onSelect | trigger whenever map position changed (return *status: [true/false], data: [map data object], mapStatus: [map native status]*)| + +#### Note +When use customMarkers (More than 1) - Make sure autoCenter, hasSearch are set to false. Which dosen't make sense any way with multiple markers. + + +## Using Ref (v2.3.0) +Support ref to access some functions directly. + +```javascript + import React from 'react'; + import { GMapify } from 'g-mapify'; + import 'g-mapify/dist/index.css'; + + const App = () => { + const mapRef = useRef(); + + const getLatLongByName = async () => { + if (mapRef.current) { + try { + const result = await mapRef.current.latLongFromQuery('BharatPe Office Delhi'); + const lat = result[0]?.geometry.location.lat(); + const lng = result[0]?.geometry.location.lng(); + } catch (e) { + // handle error + } + } + }; + + return ( + <> + + + + ) + } +``` +Functions are accessible directly: + +| Function | Description | Parameters | Return Value +|-------------------------------|----------------------------------------------------------|-------------------------------|------------------------- +|latLongFromQuery | Get Map data from address string without showing search | string | `Promise` + + +## Address Formatter +You can get City, Pincode, State etc. from *address_components* using **addressFormatter** method. This method transfrom *address_components* array data into *object*. +```javascript +import { GMapify, AddressFormatter } from 'g-mapify' + +const onMapSelect = (status, data) => { + if (status) { + console.warn('Map Data', data); + + // get formatted address from google map address_components + const formattedAddress = AddressFormatter(data.address_components); + console.warn('formated address', formattedAddress); + } +}; +``` + +## Refer example for all 3 map variations + +![Map variations image](https://raw.githubusercontent.com/bharatpe/g-mapify/master/example/images/example.png?raw=true) + + + +# Releases +Here [Releases](https://github.com/bharatpe/g-mapify/blob/master/releases.md) + + +## Note: For Contributors +This repo build with [create-react-library](https://github.com/transitive-bullshit/create-react-library) + + +## Contributors +Here [Contributors](https://github.com/bharatpe/g-mapify/graphs/contributors) + + +## License +ISC [BharatPe TM](https://github.com/BharatPe) diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..e3137aa --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,5 @@ +declare module '@bp/g-mapify' { + const GMapify: any; + const AddressFormatter: any; + export { GMapify, AddressFormatter }; +} diff --git a/dist/index.js b/dist/index.js index 00f5f20..de9a193 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,10 +1,10 @@ -function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=require("react"),t=e(r),n=e(require("react-dom"));function o(){return(o=Object.assign||function(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&(N=_[0][0],P=_[0][1]);var ne,oe,ae,ce=r.useRef(null),ie=r.useRef(null),se=function(){m&&(ie.current?n.render(t.createElement(W,{value:Y,onClick:function(){return I(!0)},className:g}),ie.current):console.error("mapSearchPlace element not found!","Selector = ",p))},le=function(e,r){var t={lat:e,lng:r};re.setCenter(t),re.panTo(t),X.lat!==t.lat&&X.lng!==t.lng&&(Z("Searching..."),function(e){var r=new window.google.maps.Geocoder;return new Promise(function(t,n){r.geocode({location:e},function(e,r){"OK"===r?e[0]?t(e[0],r):n(-1):n(r)})})}(t).then(function(e,r){Z(e.formatted_address),me(!0,e,r)},function(e){Z("Unable to fetch location"),me(!1,{},e)})),B(t)},ue=function(e){return new Promise(function(r,t){var n={query:e,fields:["name","formatted_address","geometry"]};new window.google.maps.places.PlacesService(re).textSearch(n,function(e,n){n===window.google.maps.places.PlacesServiceStatus.OK?r(e,n):t(n)})})},fe=(ne=function(e){e&&e.length<3||(A(0),j([]),ue(e).then(function(e){j(e),A(1)},function(){A(-1)}))},oe=d,ae=null,function(){for(var e=this,r=arguments.length,t=new Array(r),n=0;n> 🗺🗺🗺 G-Mapify : Version: "+G.version+", Build: production <<"),exports.AddressFormatter=function(e){return void 0===e&&(e=[]),function e(r,t,n){if(void 0===r&&(r=[]),void 0===t&&(t=0),void 0===n&&(n={}),r.length<1)return n;var o=r[t];if(!o)return n;var c=o.long_name;if(r.length>t){for(var i,s=function(e,r){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(o.types);!(i=s()).done;)switch(i.value){case"street_number":case"premise":n.streetNumber=c;break;case"route":n.route=c;break;case"postal_code":n.pin=c;break;case"country":n.country=c;break;case"administrative_area_level_1":n.state=c;break;case"locality":n.locality=c;break;case"sublocality":n.sublocality=n.sublocality?n.sublocality+", "+c:c}return e(r,++t,n)}return n}(e)},exports.GMapify=D; + */function O(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case u:switch(e=e.type){case h:case v:case m:case d:case p:case S:return e;default:switch(e=e&&e.$$typeof){case y:case b:case E:case _:case g:return e;default:return r}}case f:return r}}}function L(e){return O(e)===v}var j={AsyncMode:h,ConcurrentMode:v,ContextConsumer:y,ContextProvider:g,Element:u,ForwardRef:b,Fragment:m,Lazy:E,Memo:_,Portal:f,Profiler:d,StrictMode:p,Suspense:S,isAsyncMode:function(e){return L(e)||O(e)===h},isConcurrentMode:L,isContextConsumer:function(e){return O(e)===y},isContextProvider:function(e){return O(e)===g},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},isForwardRef:function(e){return O(e)===b},isFragment:function(e){return O(e)===m},isLazy:function(e){return O(e)===E},isMemo:function(e){return O(e)===_},isPortal:function(e){return O(e)===f},isProfiler:function(e){return O(e)===d},isStrictMode:function(e){return O(e)===p},isSuspense:function(e){return O(e)===S},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===m||e===v||e===d||e===p||e===S||e===w||"object"==typeof e&&null!==e&&(e.$$typeof===E||e.$$typeof===_||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===N||e.$$typeof===P||e.$$typeof===k||e.$$typeof===C)},typeOf:O};function I(){}function M(){}s(function(e,r){}),s(function(e){e.exports=j}),function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}(),Function.call.bind(Object.prototype.hasOwnProperty),M.resetWarningCache=I;var $=s(function(e){e.exports=function(){function e(e,r,t,n,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:M,resetWarningCache:I};return t.PropTypes=t,t}()}),T=require("./left-arrow~EgzQkufV.svg"),x=function(e){var n=e.placeholder,o=e.className,a=r.useState(!0),c=a[0],s=a[1],l=t.createRef();return r.useEffect(function(){l.current.focus()},[l]),t.createElement("div",{className:i("_14K7s",o,c?"_17s3a":"_23bw5"),onTransitionEnd:function(r){e.onClose()}},t.createElement("div",{className:"_3n9r_"},t.createElement("div",{className:"img-sec",onClick:function(){return s(!1)}},t.createElement("img",{src:T})),t.createElement("input",{type:"text",className:"_1DPib",onChange:function(r){var t;e.onChange(null==r||null===(t=r.target)||void 0===t?void 0:t.value)},ref:l,placeholder:n})),e.children)};x.propTypes={placeHolder:$.string,onChange:$.func,onClose:$.func},x.defaultProps={placeHolder:"Search here",onChange:function(){},onClose:function(){}};var A=require("./marker~fVJYJDHQ.svg"),H={zoom:15,zoomControl:!1,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,mapTypeId:"roadmap"},z=!1,R=!1,q=null,F=[],K=[],U=function(e){if(e)for(var r=0;r0&&(N=_[0][0],P=_[0][1]);var ne,oe,ae,ce=r.useRef(null),se=r.useRef(null),ie=function(){m&&(se.current?n.render(t.createElement(W,{value:B,onClick:function(){return M(!0)},className:g}),se.current):console.error("mapSearchPlace element not found!","Selector = ",p))},le=function(e,r){var t={lat:e,lng:r};re.setCenter(t),re.panTo(t),G.lat!==t.lat&&G.lng!==t.lng&&(Z("Searching..."),me(!0,{geometry:{location:{lat:e,lng:r}}},!0)),Q(t)},ue=function(e){return new Promise(function(r,t){var n={query:e,fields:["name","formatted_address","geometry"]};new window.google.maps.places.PlacesService(re).textSearch(n,function(e,n){n===window.google.maps.places.PlacesServiceStatus.OK?r(e,n):t(n)})})},fe=(ne=function(e){e&&e.length<3||(A(0),L([]),ue(e).then(function(e){L(e),A(1)},function(){A(-1)}))},oe=d,ae=null,function(){for(var e=this,r=arguments.length,t=new Array(r),n=0;nt){for(var s,i=function(e,r){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(o.types);!(s=i()).done;)switch(s.value){case"street_number":case"premise":n.streetNumber=c;break;case"route":n.route=c;break;case"postal_code":n.pin=c;break;case"country":n.country=c;break;case"administrative_area_level_1":n.state=c;break;case"locality":n.locality=c;break;case"sublocality":n.sublocality=n.sublocality?n.sublocality+", "+c:c}return e(r,++t,n)}return n}(e)},exports.GMapify=D; diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index e325c17..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../src/assets/left-arrow.svg","../src/SearchContainer/index.js","../src/utils/debounce.js","../src/constants.js","../src/Gmap/index.js","../src/utils/addressFormatter_.js"],"sourcesContent":["/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/* loaded by smart-asset */\nexport default require(\"./left-arrow~EgzQkufV.svg\")","import React, { useState, useEffect } from \"react\";\nimport styles from \"./style.css\";\nimport cx from \"classnames\";\nimport backArrow from \"../assets/left-arrow.svg\";\nimport PropTypes from \"prop-types\";\n\n/**\n * @name SearchContainer\n * @param {@} props\n * @description Address search container for GMapify\n */\nconst SearchContainer = (props) => {\n const { placeholder, className } = props;\n const [showSearch, setShowSearch] = useState(true);\n const inputRef = React.createRef();\n\n useEffect(() => {\n inputRef.current.focus();\n }, [inputRef]);\n\n /**\n * @name onSearchChange\n * @param {*} event\n * @description On search input change\n */\n const onSearchChange = (event) => {\n console.log(\"Searching ...\", event?.target?.value);\n props.onChange(event?.target?.value);\n };\n\n /**\n * @name onTransitionEndEvent\n * @param {*} event\n * @description On animation end\n */\n const onTransitionEndEvent = (event) => {\n console.log(\"onTransitionEndEvent -> event\", event);\n props.onClose();\n };\n\n return (\n \n
\n
setShowSearch(false)}>\n \n
\n \n
\n {props.children}\n \n );\n};\n\nSearchContainer.propTypes = {\n placeHolder: PropTypes.string,\n onChange: PropTypes.func,\n onClose: PropTypes.func\n};\n\nSearchContainer.defaultProps = {\n placeHolder: \"Search here\",\n onChange: () => {},\n onClose: () => {}\n};\n\nexport default SearchContainer;\n","export default function debounce(callback, timeout) {\n var timeoutRef = null;\n return function (...args) {\n clearTimeout(timeoutRef);\n timeoutRef = setTimeout(() => {\n callback.apply(this, args);\n }, timeout);\n };\n}\n","// Default lat, lng for map\nconst DEFAULT_LAT_LONG = {\n lat: 28.7041,\n lng: 77.1025\n};\n\nconst DEFAULT_DEBOUNCE_TIME = 1000;\nconst DEFAULT_HAS_MARKER = true;\nconst DEFAULT_HAS_SEARCH = false;\nconst DEFAULT_SEARCH_PLACEHOLDER = \"Search here\";\nconst DEFAULT_LIBRARY_MODE = \"places\";\nconst DEFAULT_MARKER_ICON =\n \"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2_hdpi.png\";\n\nconst DEFAULT_MAP_OPTIONS = {\n zoom: 15,\n zoomControl: false,\n mapTypeControl: false,\n fullscreenControl: false,\n streetViewControl: false,\n clickableIcons: false,\n mapTypeId: \"roadmap\"\n};\n\n// Map search API loading state\nconst SEARCH_STATE = {\n LOAD: 1,\n FAIL: -1,\n PROGRESS: 0\n};\n\n// Map message constant\nconst MSG_CONST = {\n NO_FETCH: \"Unable to fetch location\",\n NO_RESULT: \"No Results Found\",\n LOADING: \"Loading...\",\n MAP_NOT_LOADED: \"Map load failed!\"\n};\n\nexport {\n SEARCH_STATE,\n MSG_CONST,\n DEFAULT_LAT_LONG,\n DEFAULT_MAP_OPTIONS,\n DEFAULT_DEBOUNCE_TIME,\n DEFAULT_HAS_MARKER,\n DEFAULT_HAS_SEARCH,\n DEFAULT_SEARCH_PLACEHOLDER,\n DEFAULT_LIBRARY_MODE,\n DEFAULT_MARKER_ICON\n};\n","import React, { useState, useEffect, useRef } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport styles from \"./style.css\";\nimport cx from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport SearchContainer from \"../SearchContainer\";\nimport debounce from \"../utils/debounce\";\nimport {\n SEARCH_STATE,\n MSG_CONST,\n DEFAULT_LAT_LONG,\n DEFAULT_MAP_OPTIONS,\n DEFAULT_DEBOUNCE_TIME,\n DEFAULT_HAS_MARKER,\n DEFAULT_HAS_SEARCH,\n DEFAULT_SEARCH_PLACEHOLDER,\n DEFAULT_LIBRARY_MODE,\n DEFAULT_MARKER_ICON\n} from \"../constants\";\n\nconst SearchInputComponent = (props) => {\n return (\n \n );\n};\n\nconst GMapify = (props) => {\n const {\n appKey,\n lat,\n lng,\n mapOptions,\n mapClassName,\n hasMarker,\n hasSearch,\n mapSearchPlace,\n debounceTime,\n inputClassName,\n markerIcon,\n searchPlaceHolder,\n searchClassName,\n libraries,\n children,\n onSelect\n } = props;\n\n const [searchResults, setSearchResults] = useState([]);\n const [showMapSearch, setShowMapSearch] = useState(false);\n const [searchState, setSearchState] = useState(SEARCH_STATE.LOAD);\n const [isMapLoadingFailed, setIsMapLoadingFailed] = useState(false);\n const [mapLastPosition, setMapLastPosition] = useState({});\n const [addressInput, setAddressInput] = useState(\"\");\n const [mapInstance, setMapInstance] = useState(null);\n\n // store google map render element instance\n const mapElemRef = useRef(null);\n let defaultSearchPlace = useRef(null);\n\n /**\n * @name mapInitSuccess\n * @description google map script file added successfully\n */\n const mapInitSuccess = () => {\n if (mapSearchPlace) {\n defaultSearchPlace = { current: document.querySelector(mapSearchPlace) };\n }\n createMapInstance(lat, lng);\n };\n\n /**\n * @name insertMapScript\n * @description add google map script file to project\n */\n const insertMapScript = () => {\n const isGMapifyScriptAdded = document.head.querySelector(\"#google-map\");\n\n if (!isGMapifyScriptAdded) {\n // error occured in Google Map loading\n window.gm_authFailure = () => {\n setIsMapLoadingFailed(true);\n sendToParent(false, { message: MSG_CONST.MAP_NOT_LOADED }, -1);\n };\n\n const scriptElem = document.createElement(\"script\");\n scriptElem.src = `https://maps.googleapis.com/maps/api/js?key=${appKey}&callback=initMapScript&libraries=${libraries}`;\n scriptElem.setAttribute(\"id\", \"google-map\");\n document.querySelector(\"head\").appendChild(scriptElem);\n } else {\n // skip to add google map script when already added\n mapInitSuccess();\n }\n };\n\n /**\n * @name createMapInstance\n * @param {Float} lat\n * @param {Float} lng\n * @description create map instance\n */\n const createMapInstance = (lat, lng) => {\n if (!window.google) {\n console.error(\"google map library not found!\");\n return;\n }\n\n const center = {\n center: new window.google.maps.LatLng(lat, lng)\n };\n\n // create google map instance\n console.log(\"MAP INSTANXE\", mapElemRef.current);\n\n if (mapElemRef.current) {\n setMapInstance(\n new window.google.maps.Map(mapElemRef.current, {\n ...center,\n ...DEFAULT_MAP_OPTIONS,\n ...mapOptions\n })\n );\n }\n };\n\n /**\n * @name addSearchBox\n * @description add search box to map\n */\n const addSearchBox = () => {\n if (hasSearch) {\n if (defaultSearchPlace.current) {\n ReactDOM.render(\n setShowMapSearch(true)}\n className={inputClassName}\n />,\n defaultSearchPlace.current\n );\n } else {\n console.error(\n \"mapSearchPlace element not found!\",\n \"Selector = \",\n mapSearchPlace\n );\n }\n }\n };\n\n /**\n * @name addEvents\n * @description add events to google map\n */\n const addEvents = () => {\n if (mapInstance && hasMarker) {\n // bind dragend event for fetch map center lat long\n mapInstance.addListener(\"dragend\", () => {\n setMapPosition(mapInstance.center.lat(), mapInstance.center.lng());\n });\n\n // bind zoom change event because always need to zoom from center\n mapInstance.addListener(\"zoom_changed\", () => {\n setMapPosition(mapLastPosition.lat, mapLastPosition.lng);\n });\n }\n };\n\n /**\n * @name removeEvents\n * @description remove events from google map\n */\n const removeEvents = () => {\n if (window.google && mapInstance) {\n window.google.maps.event.clearListeners(mapInstance, \"dragend\");\n window.google.maps.event.clearListeners(mapInstance, \"zoom_changed\");\n }\n };\n\n /**\n * @name setMapPosition\n * @param {Float} lat\n * @param {Float} lng\n * @description set google map position\n */\n const setMapPosition = (lat, lng) => {\n const position = {\n lat: lat,\n lng: lng\n };\n\n mapInstance.setCenter(position);\n mapInstance.panTo(position);\n\n // get address only when previous and current lat/lng different\n if (\n mapLastPosition.lat !== position.lat &&\n mapLastPosition.lng !== position.lng\n ) {\n setAddressInput(MSG_CONST.LOADING);\n addSearchBox();\n\n getAddressFromLatLong(position).then(\n (data, status) => {\n setAddressInput(data.formatted_address);\n\n // update search box\n addSearchBox();\n\n // send to parent\n sendToParent(true, data, status);\n },\n (error) => {\n setAddressInput(MSG_CONST.NO_FETCH);\n\n // update search box\n addSearchBox();\n\n // send to parent\n sendToParent(false, {}, error);\n }\n );\n }\n\n // save map last position\n setMapLastPosition(position);\n };\n\n /**\n * @name getAddressFromLatLong\n * @param {*} position\n * @description get address from Lat Logn (reverse geocoding)\n */\n const getAddressFromLatLong = (position) => {\n var geocoder = new window.google.maps.Geocoder();\n return new Promise((resolve, reject) => {\n geocoder.geocode({ location: position }, function (results, status) {\n if (status === \"OK\") {\n if (results[0]) {\n resolve(results[0], status);\n } else {\n // eslint-disable-next-line prefer-promise-reject-errors\n reject(-1);\n }\n } else {\n reject(status);\n }\n });\n });\n };\n\n /**\n * @name searchByQuery\n * @param {String} query\n * @description search google map address by query\n */\n const searchByQuery = (query) => {\n return new Promise((resolve, reject) => {\n const request = {\n query,\n fields: [\"name\", \"formatted_address\", \"geometry\"]\n };\n\n const service = new window.google.maps.places.PlacesService(mapInstance);\n\n console.log(\"Service\", service, mapInstance);\n\n service.textSearch(request, (results, status) => {\n if (status === window.google.maps.places.PlacesServiceStatus.OK) {\n resolve(results, status);\n } else {\n reject(status);\n }\n });\n });\n };\n\n /**\n * @name searchByQueryDebounce\n * @param {String} query\n * @description searchByQuery with debounce time\n */\n let searchByQueryDebounce = (query) => {\n // minimum 3 characters required to search\n if (query && query.length < 3) {\n return;\n }\n\n setSearchState(SEARCH_STATE.PROGRESS);\n\n // find map address by query\n searchByQuery(query).then(\n (results) => {\n setSearchResults(results);\n setSearchState(SEARCH_STATE.LOAD);\n },\n () => {\n setSearchResults(searchResults);\n setSearchState(SEARCH_STATE.FAIL);\n }\n );\n };\n\n /**\n * @name onChangeAddressInput\n * @param {*} value\n * @description input on address input box\n */\n const onChangeAddressInput = (value) => {\n // find map address by query with debounce time\n searchByQueryDebounce(value);\n };\n\n /**\n * @name sendToParent\n * @param {Boolean} isSuccess\n * @param {*} mapData\n * @param {*} mapStatus\n * @description map data send to parent\n */\n const sendToParent = (isSuccess, mapData, mapStatus) => {\n if (onSelect && typeof onSelect === \"function\") {\n const data = JSON.parse(JSON.stringify(mapData));\n onSelect(isSuccess, data, mapStatus);\n }\n };\n\n /**\n * @name selectMapItem\n * @param {*} event\n * @description select map address item\n */\n const selectMapItem = (event) => {\n const closestLiElem = event.target && event.target.closest(\".mapItem\");\n if (closestLiElem.hasAttribute(\"index\")) {\n const selectedVal =\n searchResults[Number(closestLiElem.getAttribute(\"index\"))];\n\n setShowMapSearch(false);\n\n // set marker and map position according to selected location\n setMapPosition(\n selectedVal.geometry.location.lat(),\n selectedVal.geometry.location.lng()\n );\n }\n };\n\n useEffect(() => {\n if (appKey) {\n // call to insert google map script\n insertMapScript();\n\n // google map callback\n window.initMapScript = () => {\n console.log(\"Map script successfull\");\n mapInitSuccess();\n searchByQueryDebounce = debounce(searchByQueryDebounce, debounceTime);\n };\n\n // Adding debounce to search query\n\n // searchByQueryDebounce = debounce(searchByQueryDebounce, debounceTime);\n } else {\n console.error(\"google map appKey not found!!!\");\n }\n }, [appKey]);\n\n useEffect(() => {\n if (mapInstance) {\n setMapPosition(lat, lng);\n addEvents();\n addSearchBox();\n }\n }, [mapInstance]);\n\n useEffect(() => {\n return () => {\n removeEvents();\n };\n }, []);\n\n return (\n
\n
\n {/* map comming here */}\n
\n\n {/* map marker icon */}\n {hasMarker && !isMapLoadingFailed && (\n \n  \n
\n )}\n\n {hasSearch && !isMapLoadingFailed && !mapSearchPlace && (\n
\n {/* Map default search place here */}\n
\n )}\n\n {/* Render childrens */}\n {children}\n\n {showMapSearch && !isMapLoadingFailed && (\n setShowMapSearch(false)}\n onChange={onChangeAddressInput}\n placeholder={searchPlaceHolder}\n className={searchClassName}\n >\n
\n
\n {searchState === SEARCH_STATE.PROGRESS && \"Loading...\"}\n {searchState === SEARCH_STATE.FAIL && MSG_CONST.NO_RESULT}\n
\n\n \n {searchResults.map((val, index) => {\n return (\n \n
{val.name}
\n
\n {val.formatted_address}\n
\n \n );\n })}\n \n
\n \n )}\n \n );\n};\n\n// define component prop types\nGMapify.propTypes = {\n appKey: PropTypes.string,\n lat: PropTypes.number,\n lng: PropTypes.number,\n mapOptions: PropTypes.object,\n mapClassName: PropTypes.string,\n hasMarker: PropTypes.bool,\n hasSearch: PropTypes.bool,\n mapSearchPlace: PropTypes.string,\n debounceTime: PropTypes.number,\n inputClassName: PropTypes.string,\n markerIcon: PropTypes.string,\n searchPlaceHolder: PropTypes.string,\n searchClassName: PropTypes.string,\n libraries: PropTypes.string,\n onSelect: PropTypes.func,\n children: PropTypes.element\n};\n\n// define default values of prop types\nGMapify.defaultProps = {\n appKey: \"\",\n lat: DEFAULT_LAT_LONG.lat,\n lng: DEFAULT_LAT_LONG.lng,\n mapOptions: {},\n mapClassName: \"\",\n hasMarker: DEFAULT_HAS_MARKER,\n hasSearch: DEFAULT_HAS_SEARCH,\n mapSearchPlace: \"\",\n debounceTime: DEFAULT_DEBOUNCE_TIME, // time in ms\n inputClassName: \"\",\n markerIcon: DEFAULT_MARKER_ICON,\n searchPlaceHolder: DEFAULT_SEARCH_PLACEHOLDER,\n searchClassName: \"\",\n libraries: DEFAULT_LIBRARY_MODE,\n onSelect: () => {},\n children: null\n};\n\nexport default GMapify;\n","// convert google map components array into object for easy to use\nfunction addressFormatter_(components = []) {\n return formatter(components);\n}\n\n// format google map address components using recursion function\nfunction formatter(components = [], currentPos = 0, returnObj = {}) {\n const component = components[currentPos];\n\n if (components.length > currentPos) {\n for (const type of component.types) {\n switch (type) {\n case \"postal_code\":\n returnObj.pin = component.long_name;\n break;\n case \"country\":\n returnObj.country = component.long_name;\n break;\n case \"administrative_area_level_1\":\n returnObj.state = component.long_name;\n break;\n case \"locality\":\n returnObj.locality = component.long_name;\n break;\n case \"sublocality\":\n returnObj.sublocality = returnObj.sublocality\n ? `${returnObj.sublocality}, ${component.long_name}`\n : component.long_name;\n break;\n }\n }\n\n return formatter(components, ++currentPos, returnObj);\n } else {\n return returnObj;\n }\n}\n\nexport default addressFormatter_;\n"],"names":["require$$0","require$$1","ReactPropTypesSecret","has","printWarning","ReactIs","assign","checkPropTypes","require$$2","require","SearchContainer","props","placeholder","className","useState","showSearch","setShowSearch","inputRef","React","createRef","useEffect","current","focus","onSearchChange","event","console","log","target","value","onChange","onTransitionEndEvent","onClose","cx","styles","mapSearchContainer","hide","show","searchHeader","backArrow","searchTextbox","children","propTypes","placeHolder","PropTypes","string","func","defaultProps","debounce","callback","timeout","timeoutRef","args","clearTimeout","setTimeout","apply","DEFAULT_LAT_LONG","lat","lng","DEFAULT_DEBOUNCE_TIME","DEFAULT_HAS_MARKER","DEFAULT_HAS_SEARCH","DEFAULT_SEARCH_PLACEHOLDER","DEFAULT_LIBRARY_MODE","DEFAULT_MARKER_ICON","DEFAULT_MAP_OPTIONS","zoom","zoomControl","mapTypeControl","fullscreenControl","streetViewControl","clickableIcons","mapTypeId","SEARCH_STATE","LOAD","FAIL","PROGRESS","MSG_CONST","NO_FETCH","NO_RESULT","LOADING","MAP_NOT_LOADED","SearchInputComponent","mapTextarea","GMapify","appKey","mapOptions","mapClassName","hasMarker","hasSearch","mapSearchPlace","debounceTime","inputClassName","markerIcon","searchPlaceHolder","searchClassName","libraries","onSelect","searchResults","setSearchResults","showMapSearch","setShowMapSearch","searchState","setSearchState","isMapLoadingFailed","setIsMapLoadingFailed","mapLastPosition","setMapLastPosition","addressInput","setAddressInput","mapInstance","setMapInstance","mapElemRef","useRef","defaultSearchPlace","mapInitSuccess","document","querySelector","createMapInstance","insertMapScript","isGMapifyScriptAdded","head","window","gm_authFailure","sendToParent","message","scriptElem","createElement","src","setAttribute","appendChild","google","error","center","maps","LatLng","Map","addSearchBox","ReactDOM","render","addEvents","addListener","setMapPosition","removeEvents","clearListeners","position","setCenter","panTo","getAddressFromLatLong","then","data","status","formatted_address","geocoder","Geocoder","Promise","resolve","reject","geocode","location","results","searchByQuery","query","request","fields","service","places","PlacesService","textSearch","PlacesServiceStatus","OK","searchByQueryDebounce","length","onChangeAddressInput","isSuccess","mapData","mapStatus","JSON","parse","stringify","selectMapItem","closestLiElem","closest","hasAttribute","selectedVal","Number","getAttribute","geometry","initMapScript","mapContainer","map","backgroundImage","defaultSearchPosition","searchResultContainer","searchLoading","mapItemUL","val","index","mapItem","searchH1","name","searchH2","number","object","bool","element","addressFormatter_","components","formatter","currentPos","returnObj","component","types","type","pin","long_name","country","state","locality","sublocality"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AACa,IAAI,CAAC,CAAC,UAAU,GAAG,OAAO,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CA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AV,GAAwBT,SAAS,CAACS,WAAV,GACjBT,SAAS,CAACS,WADO,UACSR,SAAS,CAACI,SADnB,GAEpBJ,SAAS,CAACI,SAFd;AAGA;AAjBJ;AAmBD;;AAED,WAAOP,SAAS,CAACD,UAAD,EAAa,EAAEE,UAAf,EAA2BC,SAA3B,CAAhB;AACD,GAxBD,MAwBO;AACL,WAAOA,SAAP;AACD;AACF;;;;;"} \ No newline at end of file diff --git a/dist/index.modern.js b/dist/index.modern.js index a654253..7a24301 100644 --- a/dist/index.modern.js +++ b/dist/index.modern.js @@ -1,10 +1,10 @@ -import e,{useState as r,useEffect as n,forwardRef as t,useRef as o,useImperativeHandle as a}from"react";import c from"react-dom";function i(){return(i=Object.assign||function(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,t=new Array(r);ne.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&(O=N[0][0],L=N[0][1]);var ce,ie,le,se=o(null),ue=o(null),me=function(){g&&(ue.current?c.render(e.createElement(G,{value:re,onClick:function(){return x(!0)},className:v}),ue.current):console.error("mapSearchPlace element not found!","Selector = ",y))},fe=function(e,r){var n={lat:e,lng:r};oe.setCenter(n),oe.panTo(n),Y.lat!==n.lat&&Y.lng!==n.lng&&(ne("Searching..."),function(e){var r=new window.google.maps.Geocoder;return new Promise(function(n,t){r.geocode({location:e},function(e,r){"OK"===r?e[0]?n(e[0],r):t(-1):t(r)})})}(n).then(function(e,r){ne(e.formatted_address),ge(!0,e,r)},function(e){ne("Unable to fetch location"),ge(!1,{},e)})),Z(n)},pe=function(e){return new Promise(function(r,n){var t={query:e,fields:["name","formatted_address","geometry"]};new window.google.maps.places.PlacesService(oe).textSearch(t,function(e,t){t===window.google.maps.places.PlacesServiceStatus.OK?r(e,t):n(t)})})},de=(ce=function(e){e&&e.length<3||(q(0),$([]),pe(e).then(function(e){$(e),q(1)},function(){q(-1)}))},ie=h,le=null,function(){for(var e=this,r=arguments.length,n=new Array(r),t=0;tn){for(var c,i=function(e,r){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return l(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,void 0):void 0}}(e))){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(o.types);!(c=i()).done;)switch(c.value){case"street_number":case"premise":t.streetNumber=a;break;case"route":t.route=a;break;case"postal_code":t.pin=a;break;case"country":t.country=a;break;case"administrative_area_level_1":t.state=a;break;case"locality":t.locality=a;break;case"sublocality":t.sublocality=t.sublocality?t.sublocality+", "+a:a}return e(r,++n,t)}return t}(e)},Q=require("../package.json");console.log(" >> 🗺🗺🗺 G-Mapify : Version: "+Q.version+", Build: production <<");export{B as AddressFormatter,X as GMapify}; + */function $(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case p:switch(e=e.type){case w:case S:case g:case h:case y:case C:return e;default:switch(e=e&&e.$$typeof){case b:case _:case P:case N:case v:return e;default:return r}}case d:return r}}}function I(e){return $(e)===S}var M={AsyncMode:w,ConcurrentMode:S,ContextConsumer:b,ContextProvider:v,Element:p,ForwardRef:_,Fragment:g,Lazy:P,Memo:N,Portal:d,Profiler:h,StrictMode:y,Suspense:C,isAsyncMode:function(e){return I(e)||$(e)===w},isConcurrentMode:I,isContextConsumer:function(e){return $(e)===b},isContextProvider:function(e){return $(e)===v},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===p},isForwardRef:function(e){return $(e)===_},isFragment:function(e){return $(e)===g},isLazy:function(e){return $(e)===P},isMemo:function(e){return $(e)===N},isPortal:function(e){return $(e)===d},isProfiler:function(e){return $(e)===h},isStrictMode:function(e){return $(e)===y},isSuspense:function(e){return $(e)===C},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===g||e===S||e===h||e===y||e===C||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===N||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===O||e.$$typeof===L||e.$$typeof===j||e.$$typeof===k)},typeOf:$};function T(){}function x(){}u(function(e,r){}),u(function(e){e.exports=M}),function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}(),Function.call.bind(Object.prototype.hasOwnProperty),x.resetWarningCache=T;var A=u(function(e){e.exports=function(){function e(e,r,t,n,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:x,resetWarningCache:T};return t.PropTypes=t,t}()}),z=require("./left-arrow~EgzQkufV.svg"),H=function(n){var o=n.placeholder,a=n.className,c=r(!0),i=c[0],l=c[1],s=e.createRef();return t(function(){s.current.focus()},[s]),e.createElement("div",{className:m("_14K7s",a,i?"_17s3a":"_23bw5"),onTransitionEnd:function(e){n.onClose()}},e.createElement("div",{className:"_3n9r_"},e.createElement("div",{className:"img-sec",onClick:function(){return l(!1)}},e.createElement("img",{src:z})),e.createElement("input",{type:"text",className:"_1DPib",onChange:function(e){var r;n.onChange(null==e||null===(r=e.target)||void 0===r?void 0:r.value)},ref:s,placeholder:o})),n.children)};H.propTypes={placeHolder:A.string,onChange:A.func,onClose:A.func},H.defaultProps={placeHolder:"Search here",onChange:function(){},onClose:function(){}};var q=require("./marker~fVJYJDHQ.svg"),F={zoom:15,zoomControl:!1,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,mapTypeId:"roadmap"},R=!1,K=!1,U=null,V=[],W=[],D=function(e){if(e)for(var r=0;r0&&(O=N[0][0],L=N[0][1]);var ce,ie,le,se=o(null),ue=o(null),me=function(){g&&(ue.current?c.render(e.createElement(X,{value:re,onClick:function(){return x(!0)},className:v}),ue.current):console.error("mapSearchPlace element not found!","Selector = ",y))},fe=function(e,r){var t={lat:e,lng:r};oe.setCenter(t),oe.panTo(t),G.lat!==t.lat&&G.lng!==t.lng&&(te("Searching..."),ge(!0,{geometry:{location:{lat:e,lng:r}}},!0)),Z(t)},pe=function(e){return new Promise(function(r,t){var n={query:e,fields:["name","formatted_address","geometry"]};new window.google.maps.places.PlacesService(oe).textSearch(n,function(e,n){n===window.google.maps.places.PlacesServiceStatus.OK?r(e,n):t(n)})})},de=(ce=function(e){e&&e.length<3||(q(0),I([]),pe(e).then(function(e){I(e),q(1)},function(){q(-1)}))},ie=h,le=null,function(){for(var e=this,r=arguments.length,t=new Array(r),n=0;nt){for(var c,i=function(e,r){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return l(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(o.types);!(c=i()).done;)switch(c.value){case"street_number":case"premise":n.streetNumber=a;break;case"route":n.route=a;break;case"postal_code":n.pin=a;break;case"country":n.country=a;break;case"administrative_area_level_1":n.state=a;break;case"locality":n.locality=a;break;case"sublocality":n.sublocality=n.sublocality?n.sublocality+", "+a:a}return e(r,++t,n)}return n}(e)};export{Y as AddressFormatter,Q as GMapify}; diff --git a/dist/index.modern.js.map b/dist/index.modern.js.map deleted file mode 100644 index 998edfb..0000000 --- a/dist/index.modern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.modern.js","sources":["../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../src/assets/left-arrow.svg","../src/SearchContainer/index.js","../src/utils/debounce.js","../src/constants.js","../src/Gmap/index.js","../src/utils/addressFormatter_.js"],"sourcesContent":["/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/* loaded by smart-asset */\nexport default require(\"./left-arrow~EgzQkufV.svg\")","import React, { useState, useEffect } from \"react\";\nimport styles from \"./style.css\";\nimport cx from \"classnames\";\nimport backArrow from \"../assets/left-arrow.svg\";\nimport PropTypes from \"prop-types\";\n\n/**\n * @name SearchContainer\n * @param {@} props\n * @description Address search container for GMapify\n */\nconst SearchContainer = (props) => {\n const { placeholder, className } = props;\n const [showSearch, setShowSearch] = useState(true);\n const inputRef = React.createRef();\n\n useEffect(() => {\n inputRef.current.focus();\n }, [inputRef]);\n\n /**\n * @name onSearchChange\n * @param {*} event\n * @description On search input change\n */\n const onSearchChange = (event) => {\n console.log(\"Searching ...\", event?.target?.value);\n props.onChange(event?.target?.value);\n };\n\n /**\n * @name onTransitionEndEvent\n * @param {*} event\n * @description On animation end\n */\n const onTransitionEndEvent = (event) => {\n console.log(\"onTransitionEndEvent -> event\", event);\n props.onClose();\n };\n\n return (\n \n
\n
setShowSearch(false)}>\n \n
\n \n
\n {props.children}\n \n );\n};\n\nSearchContainer.propTypes = {\n placeHolder: PropTypes.string,\n onChange: PropTypes.func,\n onClose: PropTypes.func\n};\n\nSearchContainer.defaultProps = {\n placeHolder: \"Search here\",\n onChange: () => {},\n onClose: () => {}\n};\n\nexport default SearchContainer;\n","export default function debounce(callback, timeout) {\n var timeoutRef = null;\n return function (...args) {\n clearTimeout(timeoutRef);\n timeoutRef = setTimeout(() => {\n callback.apply(this, args);\n }, timeout);\n };\n}\n","// Default lat, lng for map\nconst DEFAULT_LAT_LONG = {\n lat: 28.7041,\n lng: 77.1025\n};\n\nconst DEFAULT_DEBOUNCE_TIME = 1000;\nconst DEFAULT_HAS_MARKER = true;\nconst DEFAULT_HAS_SEARCH = false;\nconst DEFAULT_SEARCH_PLACEHOLDER = \"Search here\";\nconst DEFAULT_LIBRARY_MODE = \"places\";\nconst DEFAULT_MARKER_ICON =\n \"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2_hdpi.png\";\n\nconst DEFAULT_MAP_OPTIONS = {\n zoom: 15,\n zoomControl: false,\n mapTypeControl: false,\n fullscreenControl: false,\n streetViewControl: false,\n clickableIcons: false,\n mapTypeId: \"roadmap\"\n};\n\n// Map search API loading state\nconst SEARCH_STATE = {\n LOAD: 1,\n FAIL: -1,\n PROGRESS: 0\n};\n\n// Map message constant\nconst MSG_CONST = {\n NO_FETCH: \"Unable to fetch location\",\n NO_RESULT: \"No Results Found\",\n LOADING: \"Loading...\",\n MAP_NOT_LOADED: \"Map load failed!\"\n};\n\nexport {\n SEARCH_STATE,\n MSG_CONST,\n DEFAULT_LAT_LONG,\n DEFAULT_MAP_OPTIONS,\n DEFAULT_DEBOUNCE_TIME,\n DEFAULT_HAS_MARKER,\n DEFAULT_HAS_SEARCH,\n DEFAULT_SEARCH_PLACEHOLDER,\n DEFAULT_LIBRARY_MODE,\n DEFAULT_MARKER_ICON\n};\n","import React, { useState, useEffect, useRef } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport styles from \"./style.css\";\nimport cx from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport SearchContainer from \"../SearchContainer\";\nimport debounce from \"../utils/debounce\";\nimport {\n SEARCH_STATE,\n MSG_CONST,\n DEFAULT_LAT_LONG,\n DEFAULT_MAP_OPTIONS,\n DEFAULT_DEBOUNCE_TIME,\n DEFAULT_HAS_MARKER,\n DEFAULT_HAS_SEARCH,\n DEFAULT_SEARCH_PLACEHOLDER,\n DEFAULT_LIBRARY_MODE,\n DEFAULT_MARKER_ICON\n} from \"../constants\";\n\nconst SearchInputComponent = (props) => {\n return (\n \n );\n};\n\nconst GMapify = (props) => {\n const {\n appKey,\n lat,\n lng,\n mapOptions,\n mapClassName,\n hasMarker,\n hasSearch,\n mapSearchPlace,\n debounceTime,\n inputClassName,\n markerIcon,\n searchPlaceHolder,\n searchClassName,\n libraries,\n children,\n onSelect\n } = props;\n\n const [searchResults, setSearchResults] = useState([]);\n const [showMapSearch, setShowMapSearch] = useState(false);\n const [searchState, setSearchState] = useState(SEARCH_STATE.LOAD);\n const [isMapLoadingFailed, setIsMapLoadingFailed] = useState(false);\n const [mapLastPosition, setMapLastPosition] = useState({});\n const [addressInput, setAddressInput] = useState(\"\");\n const [mapInstance, setMapInstance] = useState(null);\n\n // store google map render element instance\n const mapElemRef = useRef(null);\n let defaultSearchPlace = useRef(null);\n\n /**\n * @name mapInitSuccess\n * @description google map script file added successfully\n */\n const mapInitSuccess = () => {\n if (mapSearchPlace) {\n defaultSearchPlace = { current: document.querySelector(mapSearchPlace) };\n }\n createMapInstance(lat, lng);\n };\n\n /**\n * @name insertMapScript\n * @description add google map script file to project\n */\n const insertMapScript = () => {\n const isGMapifyScriptAdded = document.head.querySelector(\"#google-map\");\n\n if (!isGMapifyScriptAdded) {\n // error occured in Google Map loading\n window.gm_authFailure = () => {\n setIsMapLoadingFailed(true);\n sendToParent(false, { message: MSG_CONST.MAP_NOT_LOADED }, -1);\n };\n\n const scriptElem = document.createElement(\"script\");\n scriptElem.src = `https://maps.googleapis.com/maps/api/js?key=${appKey}&callback=initMapScript&libraries=${libraries}`;\n scriptElem.setAttribute(\"id\", \"google-map\");\n document.querySelector(\"head\").appendChild(scriptElem);\n } else {\n // skip to add google map script when already added\n mapInitSuccess();\n }\n };\n\n /**\n * @name createMapInstance\n * @param {Float} lat\n * @param {Float} lng\n * @description create map instance\n */\n const createMapInstance = (lat, lng) => {\n if (!window.google) {\n console.error(\"google map library not found!\");\n return;\n }\n\n const center = {\n center: new window.google.maps.LatLng(lat, lng)\n };\n\n // create google map instance\n console.log(\"MAP INSTANXE\", mapElemRef.current);\n\n if (mapElemRef.current) {\n setMapInstance(\n new window.google.maps.Map(mapElemRef.current, {\n ...center,\n ...DEFAULT_MAP_OPTIONS,\n ...mapOptions\n })\n );\n }\n };\n\n /**\n * @name addSearchBox\n * @description add search box to map\n */\n const addSearchBox = () => {\n if (hasSearch) {\n if (defaultSearchPlace.current) {\n ReactDOM.render(\n setShowMapSearch(true)}\n className={inputClassName}\n />,\n defaultSearchPlace.current\n );\n } else {\n console.error(\n \"mapSearchPlace element not found!\",\n \"Selector = \",\n mapSearchPlace\n );\n }\n }\n };\n\n /**\n * @name addEvents\n * @description add events to google map\n */\n const addEvents = () => {\n if (mapInstance && hasMarker) {\n // bind dragend event for fetch map center lat long\n mapInstance.addListener(\"dragend\", () => {\n setMapPosition(mapInstance.center.lat(), mapInstance.center.lng());\n });\n\n // bind zoom change event because always need to zoom from center\n mapInstance.addListener(\"zoom_changed\", () => {\n setMapPosition(mapLastPosition.lat, mapLastPosition.lng);\n });\n }\n };\n\n /**\n * @name removeEvents\n * @description remove events from google map\n */\n const removeEvents = () => {\n if (window.google && mapInstance) {\n window.google.maps.event.clearListeners(mapInstance, \"dragend\");\n window.google.maps.event.clearListeners(mapInstance, \"zoom_changed\");\n }\n };\n\n /**\n * @name setMapPosition\n * @param {Float} lat\n * @param {Float} lng\n * @description set google map position\n */\n const setMapPosition = (lat, lng) => {\n const position = {\n lat: lat,\n lng: lng\n };\n\n mapInstance.setCenter(position);\n mapInstance.panTo(position);\n\n // get address only when previous and current lat/lng different\n if (\n mapLastPosition.lat !== position.lat &&\n mapLastPosition.lng !== position.lng\n ) {\n setAddressInput(MSG_CONST.LOADING);\n addSearchBox();\n\n getAddressFromLatLong(position).then(\n (data, status) => {\n setAddressInput(data.formatted_address);\n\n // update search box\n addSearchBox();\n\n // send to parent\n sendToParent(true, data, status);\n },\n (error) => {\n setAddressInput(MSG_CONST.NO_FETCH);\n\n // update search box\n addSearchBox();\n\n // send to parent\n sendToParent(false, {}, error);\n }\n );\n }\n\n // save map last position\n setMapLastPosition(position);\n };\n\n /**\n * @name getAddressFromLatLong\n * @param {*} position\n * @description get address from Lat Logn (reverse geocoding)\n */\n const getAddressFromLatLong = (position) => {\n var geocoder = new window.google.maps.Geocoder();\n return new Promise((resolve, reject) => {\n geocoder.geocode({ location: position }, function (results, status) {\n if (status === \"OK\") {\n if (results[0]) {\n resolve(results[0], status);\n } else {\n // eslint-disable-next-line prefer-promise-reject-errors\n reject(-1);\n }\n } else {\n reject(status);\n }\n });\n });\n };\n\n /**\n * @name searchByQuery\n * @param {String} query\n * @description search google map address by query\n */\n const searchByQuery = (query) => {\n return new Promise((resolve, reject) => {\n const request = {\n query,\n fields: [\"name\", \"formatted_address\", \"geometry\"]\n };\n\n const service = new window.google.maps.places.PlacesService(mapInstance);\n\n console.log(\"Service\", service, mapInstance);\n\n service.textSearch(request, (results, status) => {\n if (status === window.google.maps.places.PlacesServiceStatus.OK) {\n resolve(results, status);\n } else {\n reject(status);\n }\n });\n });\n };\n\n /**\n * @name searchByQueryDebounce\n * @param {String} query\n * @description searchByQuery with debounce time\n */\n let searchByQueryDebounce = (query) => {\n // minimum 3 characters required to search\n if (query && query.length < 3) {\n return;\n }\n\n setSearchState(SEARCH_STATE.PROGRESS);\n\n // find map address by query\n searchByQuery(query).then(\n (results) => {\n setSearchResults(results);\n setSearchState(SEARCH_STATE.LOAD);\n },\n () => {\n setSearchResults(searchResults);\n setSearchState(SEARCH_STATE.FAIL);\n }\n );\n };\n\n /**\n * @name onChangeAddressInput\n * @param {*} value\n * @description input on address input box\n */\n const onChangeAddressInput = (value) => {\n // find map address by query with debounce time\n searchByQueryDebounce(value);\n };\n\n /**\n * @name sendToParent\n * @param {Boolean} isSuccess\n * @param {*} mapData\n * @param {*} mapStatus\n * @description map data send to parent\n */\n const sendToParent = (isSuccess, mapData, mapStatus) => {\n if (onSelect && typeof onSelect === \"function\") {\n const data = JSON.parse(JSON.stringify(mapData));\n onSelect(isSuccess, data, mapStatus);\n }\n };\n\n /**\n * @name selectMapItem\n * @param {*} event\n * @description select map address item\n */\n const selectMapItem = (event) => {\n const closestLiElem = event.target && event.target.closest(\".mapItem\");\n if (closestLiElem.hasAttribute(\"index\")) {\n const selectedVal =\n searchResults[Number(closestLiElem.getAttribute(\"index\"))];\n\n setShowMapSearch(false);\n\n // set marker and map position according to selected location\n setMapPosition(\n selectedVal.geometry.location.lat(),\n selectedVal.geometry.location.lng()\n );\n }\n };\n\n useEffect(() => {\n if (appKey) {\n // call to insert google map script\n insertMapScript();\n\n // google map callback\n window.initMapScript = () => {\n console.log(\"Map script successfull\");\n mapInitSuccess();\n searchByQueryDebounce = debounce(searchByQueryDebounce, debounceTime);\n };\n\n // Adding debounce to search query\n\n // searchByQueryDebounce = debounce(searchByQueryDebounce, debounceTime);\n } else {\n console.error(\"google map appKey not found!!!\");\n }\n }, [appKey]);\n\n useEffect(() => {\n if (mapInstance) {\n setMapPosition(lat, lng);\n addEvents();\n addSearchBox();\n }\n }, [mapInstance]);\n\n useEffect(() => {\n return () => {\n removeEvents();\n };\n }, []);\n\n return (\n
\n
\n {/* map comming here */}\n
\n\n {/* map marker icon */}\n {hasMarker && !isMapLoadingFailed && (\n \n  \n
\n )}\n\n {hasSearch && !isMapLoadingFailed && !mapSearchPlace && (\n
\n {/* Map default search place here */}\n
\n )}\n\n {/* Render childrens */}\n {children}\n\n {showMapSearch && !isMapLoadingFailed && (\n setShowMapSearch(false)}\n onChange={onChangeAddressInput}\n placeholder={searchPlaceHolder}\n className={searchClassName}\n >\n
\n
\n {searchState === SEARCH_STATE.PROGRESS && \"Loading...\"}\n {searchState === SEARCH_STATE.FAIL && MSG_CONST.NO_RESULT}\n
\n\n \n {searchResults.map((val, index) => {\n return (\n \n
{val.name}
\n
\n {val.formatted_address}\n
\n \n );\n })}\n \n
\n \n )}\n \n );\n};\n\n// define component prop types\nGMapify.propTypes = {\n appKey: PropTypes.string,\n lat: PropTypes.number,\n lng: PropTypes.number,\n mapOptions: PropTypes.object,\n mapClassName: PropTypes.string,\n hasMarker: PropTypes.bool,\n hasSearch: PropTypes.bool,\n mapSearchPlace: PropTypes.string,\n debounceTime: PropTypes.number,\n inputClassName: PropTypes.string,\n markerIcon: PropTypes.string,\n searchPlaceHolder: PropTypes.string,\n searchClassName: PropTypes.string,\n libraries: PropTypes.string,\n onSelect: PropTypes.func,\n children: PropTypes.element\n};\n\n// define default values of prop types\nGMapify.defaultProps = {\n appKey: \"\",\n lat: DEFAULT_LAT_LONG.lat,\n lng: DEFAULT_LAT_LONG.lng,\n mapOptions: {},\n mapClassName: \"\",\n hasMarker: DEFAULT_HAS_MARKER,\n hasSearch: DEFAULT_HAS_SEARCH,\n mapSearchPlace: \"\",\n debounceTime: DEFAULT_DEBOUNCE_TIME, // time in ms\n inputClassName: \"\",\n markerIcon: DEFAULT_MARKER_ICON,\n searchPlaceHolder: DEFAULT_SEARCH_PLACEHOLDER,\n searchClassName: \"\",\n libraries: DEFAULT_LIBRARY_MODE,\n onSelect: () => {},\n children: null\n};\n\nexport default GMapify;\n","// convert google map components array into object for easy to use\nfunction addressFormatter_(components = []) {\n return formatter(components);\n}\n\n// format google map address components using recursion function\nfunction formatter(components = [], currentPos = 0, returnObj = {}) {\n const component = components[currentPos];\n\n if (components.length > currentPos) {\n for (const type of component.types) {\n switch (type) {\n case \"postal_code\":\n returnObj.pin = component.long_name;\n break;\n case \"country\":\n returnObj.country = component.long_name;\n break;\n case \"administrative_area_level_1\":\n returnObj.state = component.long_name;\n break;\n case \"locality\":\n returnObj.locality = component.long_name;\n break;\n case \"sublocality\":\n returnObj.sublocality = returnObj.sublocality\n ? `${returnObj.sublocality}, ${component.long_name}`\n : component.long_name;\n break;\n }\n }\n\n return formatter(components, ++currentPos, returnObj);\n } else {\n return returnObj;\n }\n}\n\nexport default addressFormatter_;\n"],"names":["require$$0","require$$1","ReactPropTypesSecret","has","printWarning","ReactIs","assign","checkPropTypes","require$$2","require","SearchContainer","props","placeholder","className","showSearch","setShowSearch","useState","inputRef","React","createRef","useEffect","current","focus","onSearchChange","event","console","log","target","value","onChange","onTransitionEndEvent","onClose","cx","styles","mapSearchContainer","hide","show","searchHeader","backArrow","searchTextbox","children","propTypes","placeHolder","PropTypes","string","func","defaultProps","debounce","callback","timeout","timeoutRef","args","clearTimeout","setTimeout","apply","DEFAULT_LAT_LONG","lat","lng","DEFAULT_DEBOUNCE_TIME","DEFAULT_HAS_MARKER","DEFAULT_HAS_SEARCH","DEFAULT_SEARCH_PLACEHOLDER","DEFAULT_LIBRARY_MODE","DEFAULT_MARKER_ICON","DEFAULT_MAP_OPTIONS","zoom","zoomControl","mapTypeControl","fullscreenControl","streetViewControl","clickableIcons","mapTypeId","SEARCH_STATE","LOAD","FAIL","PROGRESS","MSG_CONST","NO_FETCH","NO_RESULT","LOADING","MAP_NOT_LOADED","SearchInputComponent","mapTextarea","GMapify","appKey","mapOptions","mapClassName","hasMarker","hasSearch","mapSearchPlace","debounceTime","inputClassName","markerIcon","searchPlaceHolder","searchClassName","libraries","onSelect","searchResults","setSearchResults","showMapSearch","setShowMapSearch","searchState","setSearchState","isMapLoadingFailed","setIsMapLoadingFailed","mapLastPosition","setMapLastPosition","addressInput","setAddressInput","mapInstance","setMapInstance","mapElemRef","useRef","defaultSearchPlace","mapInitSuccess","document","querySelector","createMapInstance","insertMapScript","isGMapifyScriptAdded","head","window","gm_authFailure","sendToParent","message","scriptElem","createElement","src","setAttribute","appendChild","google","error","center","maps","LatLng","Map","addSearchBox","ReactDOM","render","addEvents","addListener","setMapPosition","removeEvents","clearListeners","position","setCenter","panTo","getAddressFromLatLong","then","data","status","formatted_address","geocoder","Geocoder","Promise","resolve","reject","geocode","location","results","searchByQuery","query","request","fields","service","places","PlacesService","textSearch","PlacesServiceStatus","OK","searchByQueryDebounce","length","onChangeAddressInput","isSuccess","mapData","mapStatus","JSON","parse","stringify","selectMapItem","closestLiElem","closest","hasAttribute","selectedVal","Number","getAttribute","geometry","initMapScript","mapContainer","map","backgroundImage","defaultSearchPosition","searchResultContainer","searchLoading","mapItemUL","val","index","mapItem","searchH1","name","searchH2","number","object","bool","element","addressFormatter_","components","formatter","currentPos","returnObj","component","type","types","pin","long_name","country","state","locality","sublocality"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AACa,IAAI,CAAC,CAAC,UAAU,GAAG,OAAO,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAA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AS,CAACD,UAAD,EAAa,EAAEE,UAAf,EAA2BC,SAA3B,CAAhB;AACD,GAxBD,MAwBO;AACL,WAAOA,SAAP;AACD;AACF;;;;"} \ No newline at end of file diff --git a/dist/package.json b/dist/package.json new file mode 100644 index 0000000..b388424 --- /dev/null +++ b/dist/package.json @@ -0,0 +1,67 @@ +{ + "name": "@bp/g-mapify", + "version": "5.0.0", + "description": "Flexible react google map with more options of search, pick & select.", + "author": "BharatPe TM", + "license": "ISC", + "repository": "https://github.com/bharatpe/g-mapify", + "main": "index.js", + "module": "index.modern.js", + "source": "src/index.js", + "typings": "index.d.ts", + "engines": { + "node": ">=10" + }, + "keywords": [ + "React", + "Google", + "Map", + "react-component", + "google-map-react", + "google-map-mobile", + "flexible-google-map", + "GoogleMap", + "InfoWindow", + "Marker", + "withGoogleMap" + ], + "scripts": { + "build": "microbundle-crl --compress --no-sourcemap --define process.env.NODE_ENV=production --format modern,cjs && npm run postbuild", + "build:dev": "microbundle-crl --compress --no-sourcemap --format modern,cjs", + "start": "microbundle-crl watch --no-compress --format modern,cjs", + "test": "run-s test:unit test:lint test:build", + "test:build": "run-s build", + "test:lint": "eslint .", + "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", + "test:watch": "react-scripts test --env=jsdom", + "predeploy": "cd example && npm install && npm run build", + "publish:fix": "npm publish dist --tag fix", + "publish:latest": "npm publish dist --tag latest", + "postbuild": "npm run copy && node scripts/post-build.js", + "copy": "cp package.json dist/ && cp README.md dist/ && cp index.d.ts dist/" + }, + "peerDependencies": { + "react": "^16.0.0", + "react-dom": "^16.13.1", + "react-scripts": "^3.4.1" + }, + "devDependencies": { + "babel-eslint": "^10.0.3", + "cross-env": "^7.0.2", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.7.0", + "eslint-config-standard": "^14.1.0", + "eslint-config-standard-react": "^9.2.0", + "eslint-plugin-import": "^2.21.2", + "eslint-plugin-node": "^11.0.0", + "eslint-plugin-prettier": "^3.1.4", + "eslint-plugin-promise": "^4.2.1", + "eslint-plugin-react": "^7.17.0", + "eslint-plugin-standard": "^4.0.1", + "gh-pages": "^2.2.0", + "microbundle-crl": "^0.13.10", + "npm-run-all": "^4.1.5", + "prettier": "^2.0.4", + "classnames": "^2.2.6" + } +} diff --git a/example/package.json b/example/package.json index 0974ffb..ba048b4 100644 --- a/example/package.json +++ b/example/package.json @@ -10,11 +10,11 @@ "eject": "react-scripts eject" }, "dependencies": { + "@bp/g-mapify": "^3.0.0", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "classnames": "^2.2.6", - "g-mapify": "file:..", "react": "^16.13.1", "react-dom": "^16.13.1", "react-scripts": "3.4.1" diff --git a/example/src/App.js b/example/src/App.js index 07aa1d8..bff97d3 100644 --- a/example/src/App.js +++ b/example/src/App.js @@ -1,6 +1,6 @@ import React, { useCallback, useState, useRef, useEffect } from "react"; -import { GMapify, AddressFormatter } from "g-mapify"; -import "g-mapify/dist/index.css"; +import { GMapify, AddressFormatter } from "@bp/g-mapify"; +import "@bp/g-mapify/index.css"; import "./index.css"; // import InputDefault from './components/Input'; diff --git a/example/yarn.lock b/example/yarn.lock index 2505029..4726637 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1109,6 +1109,11 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@bp/g-mapify@^3.0.0": + version "3.0.0" + resolved "https://npm.bharatpe.in/@bp/g-mapify/-/g-mapify-3.0.0.tgz#e88ad0ffaa9559418dd1fd652f4faf31d63ffdfb" + integrity sha512-WOr3GonRR3Ildlmb3VJUAVBANOCopTiXqO57rEHB9uRW8zDMtjObPJxA6A4ih6LMPszNkOjAyuWNQzbc+cIv7g== + "@cnakazawa/watch@^1.0.3": version "1.0.4" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" @@ -4788,9 +4793,6 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -"g-mapify@file:..": - version "1.0.0" - gensync@^1.0.0-beta.1: version "1.0.0-beta.1" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" diff --git a/index.d.ts b/index.d.ts index 231ba0a..e3137aa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -declare module 'g-mapify' { +declare module '@bp/g-mapify' { const GMapify: any; const AddressFormatter: any; export { GMapify, AddressFormatter }; diff --git a/package.json b/package.json index 6d43bef..6891096 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "g-mapify", - "version": "2.3.1", + "name": "@bp/g-mapify", + "version": "5.0.0", "description": "Flexible react google map with more options of search, pick & select.", "author": "BharatPe TM", "license": "ISC", @@ -8,7 +8,7 @@ "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/index.js", - "typings": "/index.d.ts", + "typings": "index.d.ts", "engines": { "node": ">=10" }, @@ -26,16 +26,19 @@ "withGoogleMap" ], "scripts": { - "build": "microbundle-crl --compress --no-sourcemap --define process.env.NODE_ENV=production --format modern,cjs", + "build": "microbundle-crl --compress --no-sourcemap --define process.env.NODE_ENV=production --format modern,cjs && npm run postbuild", "build:dev": "microbundle-crl --compress --no-sourcemap --format modern,cjs", "start": "microbundle-crl watch --no-compress --format modern,cjs", - "prepare": "run-s build", "test": "run-s test:unit test:lint test:build", "test:build": "run-s build", "test:lint": "eslint .", "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom", - "predeploy": "cd example && npm install && npm run build" + "predeploy": "cd example && npm install && npm run build", + "publish:fix": "npm publish dist --tag fix", + "publish:latest": "npm publish dist --tag latest", + "postbuild": "npm run copy && node scripts/post-build.js", + "copy": "cp package.json dist/ && cp README.md dist/ && cp index.d.ts dist/" }, "peerDependencies": { "react": "^16.0.0", diff --git a/scripts/post-build.js b/scripts/post-build.js new file mode 100644 index 0000000..ffa474b --- /dev/null +++ b/scripts/post-build.js @@ -0,0 +1,27 @@ +const fs = require("fs"); + +/** + * Change package.json file content. + */ +function updatePackageContent() { + const REPLACE_MAP = { + '"main": "dist/index.js"': '"main": "index.js"', + '"module": "dist/index.modern.js"': '"module": "index.modern.js"' + }; + + var data = fs.readFileSync("./dist/package.json", "utf-8"); + for (const key in REPLACE_MAP) { + data = data.replace(key, REPLACE_MAP[key]); + } + + fs.writeFileSync("./dist/package.json", data, "utf-8"); +} + +/** + * Change the content of dist/build directory after build. + */ +function changeDistContent() { + updatePackageContent(); +} + +changeDistContent(); diff --git a/src/Gmapify/index.js b/src/Gmapify/index.js index 2c73071..807b887 100644 --- a/src/Gmapify/index.js +++ b/src/Gmapify/index.js @@ -23,7 +23,7 @@ import { DEFAULT_SEARCH_PLACEHOLDER, DEFAULT_LIBRARY_MODE } from "../constants"; -import { injectMapScript, getAddressFromLatLong } from "../utils/common"; +import { injectMapScript } from "../utils/common"; import SearchComponent from "../components/SearchComponent"; const GMapify = forwardRef((props, ref) => { @@ -202,20 +202,16 @@ const GMapify = forwardRef((props, ref) => { ) { setAddressInput(MSG_CONST.LOADING); - getAddressFromLatLong(position).then( - (data, status) => { - setAddressInput(data.formatted_address); - - // send to parent - sendToParent(true, data, status); - }, - (error) => { - setAddressInput(MSG_CONST.NO_FETCH); - - // send to parent - sendToParent(false, {}, error); + const data = { + geometry: { + location: { + lat: lat, + lng: lng + } } - ); + }; + sendToParent(true, data, true); + } // save map last position diff --git a/src/index.js b/src/index.js index a4ed244..7cf3125 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,2 @@ export { default as GMapify } from "./Gmapify"; export { default as AddressFormatter } from "./utils/addressFormatter_"; - -const pjson = require("../package.json"); -console.log( - ` >> 🗺🗺🗺 G-Mapify : Version: ${pjson.version}, Build: ${process.env.NODE_ENV} <<` -);