From 2d41abca6b6b1142f6830050db7818554514f37b Mon Sep 17 00:00:00 2001 From: Brice Zele Date: Sun, 29 Mar 2020 09:23:08 +0100 Subject: [PATCH] resolving issue about focus on map at first loading --- .../app/src/main/assets/index.android.bundle | 12 +- package.json | 8 +- screens/home/Home.js | 94 +++-- screens/home/IMap.js | 4 +- screens/home/IMarker.js | 321 +++++++++--------- screens/login/ui/Login.ui.js | 3 +- utils/i18n/en.json | 7 +- utils/i18n/fr.json | 5 + webservice/IlinkConstants.js | 4 +- webservice/MapService.js | 160 ++++----- webservice/persistences/Configuration.js | 192 ++++++----- 11 files changed, 426 insertions(+), 384 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 989d4e51..273d5e0a 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -533,7 +533,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.g __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.responsiveFontSize=e.responsiveWidth=e.responsiveHeight=void 0;var n=r(d[0]).Dimensions.get('window'),t=n.height,o=n.width;e.responsiveHeight=function(n){return t*(n/100)};e.responsiveWidth=function(n){return o*(n/100)};e.responsiveFontSize=function(n){var t=1.7777777777777777*o;return Math.sqrt(Math.pow(t,2)+Math.pow(o,2))*(n/100)}},527,[18]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u},528,[1,529]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[2])),p=o(r(d[3])),u=o(r(d[4])),c=o(r(d[5])),l=o(r(d[6])),s=o(r(d[7])),f=r(d[8]),y=t(r(d[9])),b=r(d[10]);function O(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);o&&(p=p.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,p)}return n}var v={name:'CardView',propTypes:(function(t){for(var o=1;o350?350:(0,_.responsiveWidth)(80)),D=(function(t){function n(t){var c;return(0,l.default)(this,n),(c=(0,s.default)(this,(0,u.default)(n).call(this,t))).handlePhoneRef=function(t){return c.phoneRef=t},c.handlePasswordRef=function(t){return c.passRef=t},c._storeData=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.t0=console,n.next=4,o.default.awrap(p.AsyncStorage.setItem('position',JSON.stringify(t)));case 4:n.t1=n.sent,n.t0.warn.call(n.t0,"save result",n.t1),n.next=11;break;case 8:n.prev=8,n.t2=n.catch(0),console.warn("store error",n.t2);case 11:case"end":return n.stop()}},null,null,[[0,8]],Promise)},c._retrieveData=function(){var t,n,l;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,o.default.awrap(p.AsyncStorage.getItem('position'));case 3:null!==(t=s.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,l=JSON.parse(t),c.setState({region:n,oldPosition:l})),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),console.warn(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)},c.StartBackgroundColorAnimation=function(t){c.Animation.setValue(0===t?0:1),c.setState({stateLogin:t,typeaccount:t}),p.Animated.timing(c.Animation,{toValueF:1===t?0:1,duration:500}).start()},c.options=[{label:O.default.t('USER'),value:0},{label:O.default.t('AGENT'),value:1}],c.state=c.initState(),c.Animation=new p.Animated.Value(0),c.BackgroundColorConfig=c.Animation.interpolate({inputRange:[0,.5,1],outputRange:c.state.colorsscheme}),c.BackgroundColorConfigAdmin=c.Animation.interpolate({inputRange:[0,.5,1],outputRange:c.state.colorsscheme.reverse()}),c}return(0,f.default)(n,t),(0,c.default)(n,[{key:"requestCameraPermission",value:function(){var t=this;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if("android"!==p.Platform.OS){n.next=15;break}return n.prev=1,n.next=4,o.default.awrap(p.PermissionsAndroid.request(p.PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,{title:'Cool Photo App Camera Permission',message:"Cool Photo App needs access to your camera so you can take awesome pictures."}));case 4:n.sent===p.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({loadingDialog:!1}),p.Alert.alert(O.default.t("TITLE_UNABLE_TO_AUTORISE"),O.default.t("MISSING_AUTORISATION_LOCATION"),[{text:O.default.t("RESTART"),onPress:function(){t.requestCameraPermission()}},{text:O.default.t("QUIT_"),onPress:function(){p.BackHandler.exitApp()}}],{cancelable:!1})),n.next=13;break;case 8:n.prev=8,n.t0=n.catch(1),console.warn(n.t0),this.setState({loadingDialog:!1}),p.Alert.alert(O.default.t("TITLE_ERROR_SURVENU"),O.default.t("TEXT_ERROR_START_APPLICATION"),[{text:O.default.t("RESTART"),onPress:function(){t.requestCameraPermission()}},{text:O.default.t("QUIT_"),onPress:function(){}}],{cancelable:!1});case 13:n.next=16;break;case 15:this.watchLocation();case 16:case"end":return n.stop()}},null,this,[[1,8]],Promise)}},{key:"showConnexionAlertError",value:function(){var t=this;this.setState({loadingDialog:!1}),p.Alert.alert(O.default.t("TITLE_PROBLE_COME"),O.default.t("TEXT_UNABLE_TO_GET_YOUR_POSITION"),[{text:O.default.t("QUIT_"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("RESTART"),onPress:function(){t.setState({loadingDialog:!0}),t.watchLocation()}}],{cancelable:!1})}},{key:"watchLocation",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null==n?B:n;this.watchID=x.default.getCurrentPosition(function(n){var o=t.state.myPosition,l=n.coords;if(!(0,N.default)(l,o))if(console.warn(l),0!==l.longitude&&0!==l.latitude)t._storeData(l),t.retreiveinformationFromPosition(l);else if(t.state.alreadyRetry)t.state.oldPosition?t.retreiveinformationFromPosition(t.state.oldPosition):x.default.watchPosition(function(n){0!==n.longitude&&0!==n.latitude?(t._storeData(n),t.retreiveinformationFromPosition(n)):p.Alert.alert(O.default.t("UNABLE_GET_INFORMATION"),O.default.t('UNABLE_GET_INFORMATION_TEXT'),[{text:O.default.t("EXIT"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("RESTART"),onPress:function(){t.watchLocation()}}],{cancelable:!1})},function(n){t.setState({loadingDialog:!1}),p.Alert.alert(O.default.t("TITLE_ERROR_SURVENU"),O.default.t("TEXT_ERROR_START_APPLICATION"),[{text:"Ok",onPress:function(){p.BackHandler.exitApp()}}],{cancelable:!1})},B);else{t.setState({alreadyRetry:!0});t.watchLocation({enableHighAccuracy:!1,timeout:2e4,maximumAge:1e3})}},function(n){console.warn(n),p.Alert.alert(O.default.t("UNABLE_GET_INFORMATION"),O.default.t('UNABLE_GET_INFORMATION_TEXT'),[{text:O.default.t("EXIT"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("RESTART"),onPress:function(){t.watchLocation()}}],{cancelable:!1})},o)}},{key:"retreiveinformationFromPosition",value:function(t){var n=this;(0,b.getPositionInformation)(t).then(function(o){if(console.log(o,t),void 0!==o.results){if(o.results.length>0){var l=o.results[0],s=l.address_components,u=l.formatted_address,c=l.place_id;n.setState({address:s,textadress:u,place:c});for(var f,h,p=o.results,E=0;E=_.length)break;y=_[S++]}else{if((S=_.next()).done)break;y=S.value}var C=y;C.code===f&&n.setState({indicatif:C.dial_code,enterPhone:C.dial_code})}}n.setState({phoneEnabled:!0,loadingDialog:!1})}else console.log(t,o),n.showConnexionAlertError()}).catch(function(t){n.setState({phoneEnabled:!0,loadingDialog:!1}),p.Alert.alert(O.default.t("TITLE_PROBLE_COME"),O.default.t("TEXT_UNABLE_TO_GET_COUNTRY_INFO"),[{text:O.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("YES"),onPress:function(){n.watchLocation()}}],{cancelable:!1})})}},{key:"componentDidMount",value:function(){this._retrieveData(),this.requestCameraPermission()}},{key:"componentWillUnmount",value:function(){this.focusListener&&this.focusListener.remove()}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,y.getCountryNetwork)(t).then(function(o){n.reseaux=[];var l=o[0];for(var s in l)""!==l[s]&&l[s].toLowerCase()!==t.toLowerCase()&&n.reseaux.push(l[s]);n.setState({networks:n.reseaux})},function(t){console.log(t)});else;}}]),(0,c.default)(n,[{key:"gotoHome",value:function(){var t,n;return o.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return R.IlinkEmitter.emit("userconnect"),l.next=3,o.default.awrap((0,P.readUser)());case 3:if(t=l.sent,n="",t.category){l.next=9;break}n="App",l.next=17;break;case 9:l.t0=t.category,l.next='geolocated'===l.t0?12:'super'===l.t0?14:16;break;case 12:return n="AgentApp",l.abrupt("break",17);case 14:return n="adminApp",l.abrupt("break",17);case 16:n="supAdminApp";case 17:this.props.navigation.navigate(n);case 18:case"end":return l.stop()}},null,this,null,Promise)}},{key:"gotoTypeCreated",value:function(){this.props.navigation.push(L.typeaccountcreate,{type:this.state.typeaccount})}},{key:"initState",value:function(){return{password:"",typeaccount:0,enterPhone:"",isLoging:!1,phoneEnabled:!1,snackVisible:!1,snackText:'',loadingDialog:!0,stateLogin:-1,colorsscheme:[w.primary,w.primaryDark,w.primaryDarkAdvanced]}}},{key:"render",value:function(){var t=this;return h.default.createElement(p.Animated.View,{style:[W.container,{backgroundColor:this.BackgroundColorConfig}]},h.default.createElement(p.StatusBar,{backgroundColor:w.primaryDark,barStyle:"light-content",translucent:!1}),h.default.createElement(k.default,{visible:this.state.loadingDialog,textContent:O.default.t("LOADING_PROGRESS"),textStyle:{color:'#FFF'}}),h.default.createElement(p.ScrollView,null,h.default.createElement(p.TouchableOpacity,{onPress:function(){t.props.navigation.push(L.helpmenu)}},h.default.createElement(p.View,{style:{alignSelf:'flex-end',justifyContent:'center',alignItems:'center',backgroundColor:w.primaryLight,height:32,borderRadius:12,marginTop:30,marginRight:20}},h.default.createElement(p.Text,{style:{color:'white',fontSize:18,fontWeight:'bold',padding:5}},O.default.t('HELP')))),h.default.createElement(p.View,{style:W.logoContaner},h.default.createElement(p.Image,{style:W.logo,source:r(d[30])})),h.default.createElement(C.View,{ref:this.handlePhoneRef},h.default.createElement(A.Sae,{label:1!==this.state.stateLogin?O.default.t('PHONE_NUMBER'):O.default.t('PHONE_NUMBER_ADMIN'),iconClass:T.default,iconName:'phone',iconColor:'white',keyboardType:"numeric",enabled:this.state.phoneEnabled,style:W.input,autoCapitalize:'none',autoCorrect:!1,value:this.state.enterPhone,ref:function(n){t.numberRef=n},onChangeText:function(n){return t.setState({enterPhone:n})},labelStyle:W.labelInput})),h.default.createElement(C.View,{ref:this.handlePasswordRef},h.default.createElement(A.Sae,{label:O.default.t('PASSWORD'),ref:function(n){t._pass=n},iconClass:T.default,iconName:'lock',style:W.input,iconColor:'white',labelStyle:W.labelInput,autoCapitalize:'none',secureTextEntry:!0,onChangeText:function(n){return t.setState({password:n})},autoCorrect:!1})),h.default.createElement(p.View,{style:H.btnContainer},h.default.createElement(p.TouchableOpacity,{onPress:function(){t.gotoForgottenPass()}},h.default.createElement(p.Text,{style:W.lostpassword},O.default.t("FORGOTTEN_PASSWORD"))),h.default.createElement(p.View,{style:W.contentSwitch},h.default.createElement(v.default,{options:this.options,initial:0,buttonColor:w.accentLight,backgroundColor:w.primaryDark,textColor:"white",bold:!0,hasPadding:!0,height:32,style:W.switch,onPress:function(n){t.StartBackgroundColorAnimation(n)}})),h.default.createElement(S.default,{style:W.loginBtn1,isLoading:this.state.isLoging,onPress:function(){t.connectClicked()}},h.default.createElement(p.Text,{style:W.loginBtnText2},O.default.t("CONNECT_USER"))),h.default.createElement(p.View,{style:H.container},h.default.createElement(p.View,{style:H.line}),h.default.createElement(p.Text,{style:H.text},O.default.t("OR_BIG")),h.default.createElement(p.View,{style:H.line})),h.default.createElement(S.default,{style:W.loginBtn,onPress:function(){t.gotoTypeCreated()}},h.default.createElement(p.Text,{style:W.loginBtnText},O.default.t("CREATE_ACCOUNT")," ")))))}},{key:"gotoForgottenPass",value:function(){this.props.navigation.push(L.forgotpass,{type:this.state.typeaccount})}},{key:"connectClicked",value:function(){var t=this;null===this.state.password||void 0===this.state.password||this.state.password.length<3||this.state.password.lenght<3?this.passRef.shake(800):(this.setState(function(t){return{isLoging:!t.isLoging}}),(0,y.login)(this.state.enterPhone,this.state.password,this.state.typeaccount).then(function(n){if(console.warn(n),1===n.success){t.setState(function(t){return{isLoging:!t.isLoging}});var o=n;o.error?(t.setState(function(t){return{isLoging:!t.isLoging}}),p.Alert.alert(O.default.t("UNABLE_TO_CONNECT_TITLE"),O.default.t('TEXT_NETWORK_UNABLE'),[{text:O.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1})):"1"===o.etat||1===o.etat?((0,y.saveNewuser)(o),t.setState({user:o}),p.Alert.alert(O.default.t("CONNEXION_SUCCESSFUL"),O.default.t("CONNEXION_SUCCESSFULL_TEXT"),[{text:'Ok',onPress:function(){t.setState(function(t){return{isLoging:!t.isLoging}}),t.gotoHome()}}],{cancelable:!1})):'super'!==o.category?t.props.navigation.push(L.activateaccount,{type:t.state.typeaccount,user:o}):0===o.etat_demande||'0'===o.etat_demande?p.Alert.alert(O.default.t('DONT_VALIDATE_ACCOUNT'),O.default.t('UNVALIDATE_ACCOUNT_TEXT'),[{text:'Ok',onPress:function(){}}],{cancelable:!1}):t.props.navigation.push(L.activateaccount,{type:t.state.typeaccount,user:o})}else if(null===n)t.setState(function(t){return{isLoging:!t.isLoging}});else{console.log(n);var l='';switch(n.error){case 1:t.phoneRef.shake(1200),t.passRef.shake(1200),l=O.default.t("UNABLE_TO_CONNECT");break;case-1:t.phoneRef.shake(1200),l=O.default.t('WRONG_PHONE_NUMBER');break;case-2:l=O.default.t('WRONG_PHONE_NUMBER'),t.phoneRef.shake(1200);break;case-3:l=O.default.t("WRONG_PASSWORD"),t.passRef.shake(1200);break;default:t.passRef.shake(1200),l=null}null===l?p.Alert.alert(O.default.t("UNABLE_TO_CONNECT_TITLE"),O.default.t('TEXT_NETWORK_UNABLE'),[{text:O.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1}):(p.Alert.alert(O.default.t("UNABLE_TO_CONNECT_TITLE"),l,[{text:"OK",onPress:function(){}}],{cancelable:!1}),t.setState(function(t){return{isLoging:!t.isLoging,snackVisible:!0,snackText:l}}),setTimeout(function(){t.setState({snackVisible:!1})},2e3))}}).catch(function(n){t.setState(function(t){return{isLoging:!t.isLoging}}),p.Alert.alert(O.default.t("UNABLE_TO_CONNECT_TITLE"),O.default.t('TEXT_NETWORK_UNABLE'),[{text:O.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:O.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1})}))}}]),n})(h.Component);e.LoginUi=D,D.defaultProps={enableHack:!1,geolocationOptions:null};var H=p.StyleSheet.create({line:{height:1.5,flex:1,backgroundColor:'white',marginLeft:30,marginRight:30},text:{color:'white',fontWeight:'bold'},container:{flexDirection:'row',alignItems:'center'},btnContainer:{flexDirection:'column',justifyContent:'center'}}),W=p.StyleSheet.create({container:{flex:1,justifyContent:"center"},switch:{margin:15},contentSwitch:{width:(0,_.responsiveWidth)(70),alignItems:'center',alignSelf:"center",marginTop:10,marginLeft:10},lostpassword:{color:'white',alignSelf:'flex-end',marginTop:60,fontWeight:'bold',marginRight:20},logoContaner:{flexDirection:'row',justifyContent:'center',alignItems:'center'},logo:{width:(0,_.responsiveWidth)(90),resizeMode:"contain"},title:{fontSize:(0,_.responsiveFontSize)(4),alignSelf:'center',fontWeight:'bold',color:'white'},loginBtnText:{color:w.primary,fontWeight:'bold',fontSize:15},loginBtnText2:{color:"white",fontWeight:'bold',fontSize:15},loginBtn:{width:U,height:48,alignSelf:'center',marginTop:20,borderRadius:(0,_.responsiveHeight)(4),backgroundColor:'white',borderColor:'transparent'},loginBtn1:{width:U,marginTop:(0,_.responsiveHeight)(2),height:48,alignSelf:'center',borderRadius:(0,_.responsiveHeight)(4),backgroundColor:w.accentLight,borderColor:'transparent'},input:{width:(0,_.responsiveWidth)(70),alignSelf:'center',marginTop:5},labelInput:{color:"white",fontWeight:'normal'}})},530,[4,1,273,8,10,12,9,13,15,18,68,531,527,696,709,711,743,681,764,765,712,766,711,768,803,804,806,807,808,813,814]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.LoginUi=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),c=n(r(d[5])),u=n(r(d[6])),f=n(r(d[7])),h=t(r(d[8])),p=r(d[9]),E=n(r(d[10])),T=n(r(d[11])),_=r(d[12]),A=r(d[13]),S=n(r(d[14])),y=r(d[15]),C=t(r(d[16])),N=n(r(d[17])),b=r(d[18]),O=n(r(d[19])),v=n(r(d[20])),R=r(d[21]),P=r(d[22]),k=(r(d[23]),n(r(d[24]))),x=n(r(d[25])),w=r(d[26]),L=r(d[27]);r(d[28]);var I=r(d[29]),B={enableHighAccuracy:!0,timeout:2e4},U=(E.default.shape({latitude:E.default.number.isRequired,longitude:E.default.number.isRequired}),E.default.node,E.default.shape({enableHighAccuracy:E.default.bool,timeout:E.default.number,maximumAge:E.default.number}),E.default.number,E.default.bool,(0,_.responsiveWidth)(80)>350?350:(0,_.responsiveWidth)(80)),D=(function(t){function n(t){var u;return(0,l.default)(this,n),(u=(0,s.default)(this,(0,c.default)(n).call(this,t))).handlePhoneRef=function(t){return u.phoneRef=t},u.handlePasswordRef=function(t){return u.passRef=t},u._storeData=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.t0=console,n.next=4,o.default.awrap(p.AsyncStorage.setItem('position',JSON.stringify(t)));case 4:n.t1=n.sent,n.t0.warn.call(n.t0,"save result",n.t1),n.next=11;break;case 8:n.prev=8,n.t2=n.catch(0),console.warn("store error",n.t2);case 11:case"end":return n.stop()}},null,null,[[0,8]],Promise)},u._retrieveData=function(){var t,n,l;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,o.default.awrap(p.AsyncStorage.getItem('position'));case 3:null!==(t=s.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,l=JSON.parse(t),u.setState({region:n,oldPosition:l})),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),console.warn(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)},u.StartBackgroundColorAnimation=function(t){u.Animation.setValue(0===t?0:1),u.setState({stateLogin:t,typeaccount:t}),p.Animated.timing(u.Animation,{toValueF:1===t?0:1,duration:500}).start()},u.options=[{label:v.default.t('USER'),value:0},{label:v.default.t('AGENT'),value:1}],u.state=u.initState(),u.Animation=new p.Animated.Value(0),u.BackgroundColorConfig=u.Animation.interpolate({inputRange:[0,.5,1],outputRange:u.state.colorsscheme}),u.BackgroundColorConfigAdmin=u.Animation.interpolate({inputRange:[0,.5,1],outputRange:u.state.colorsscheme.reverse()}),u}return(0,f.default)(n,t),(0,u.default)(n,[{key:"requestCameraPermission",value:function(){var t=this;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if("android"!==p.Platform.OS){n.next=15;break}return n.prev=1,n.next=4,o.default.awrap(p.PermissionsAndroid.request(p.PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,{title:'Cool Photo App Camera Permission',message:"Cool Photo App needs access to your camera so you can take awesome pictures."}));case 4:n.sent===p.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({loadingDialog:!1}),p.Alert.alert(v.default.t("TITLE_UNABLE_TO_AUTORISE"),v.default.t("MISSING_AUTORISATION_LOCATION"),[{text:v.default.t("RESTART"),onPress:function(){t.requestCameraPermission()}},{text:v.default.t("QUIT_"),onPress:function(){p.BackHandler.exitApp()}}],{cancelable:!1})),n.next=13;break;case 8:n.prev=8,n.t0=n.catch(1),console.warn(n.t0),this.setState({loadingDialog:!1}),p.Alert.alert(v.default.t("TITLE_ERROR_SURVENU"),v.default.t("TEXT_ERROR_START_APPLICATION"),[{text:v.default.t("RESTART"),onPress:function(){t.requestCameraPermission()}},{text:v.default.t("QUIT_"),onPress:function(){}}],{cancelable:!1});case 13:n.next=16;break;case 15:this.watchLocation();case 16:case"end":return n.stop()}},null,this,[[1,8]],Promise)}},{key:"showConnexionAlertError",value:function(){var t=this;this.setState({loadingDialog:!1}),p.Alert.alert(v.default.t("TITLE_PROBLE_COME"),v.default.t("TEXT_UNABLE_TO_GET_YOUR_POSITION"),[{text:v.default.t("QUIT_"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("RESTART"),onPress:function(){t.setState({loadingDialog:!0}),t.watchLocation()}}],{cancelable:!1})}},{key:"watchLocation",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null==n?B:n;this.watchID=x.default.getCurrentPosition(function(n){var o=t.state.myPosition,l=n.coords;if(!(0,N.default)(l,o))if(console.warn(l),0!==l.longitude&&0!==l.latitude)t._storeData(l),t.retreiveinformationFromPosition(l);else if(t.state.alreadyRetry)t.state.oldPosition?t.retreiveinformationFromPosition(t.state.oldPosition):x.default.watchPosition(function(n){0!==n.longitude&&0!==n.latitude?(t._storeData(n),t.retreiveinformationFromPosition(n)):p.Alert.alert(v.default.t("UNABLE_GET_INFORMATION"),v.default.t('UNABLE_GET_INFORMATION_TEXT'),[{text:v.default.t("EXIT"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("RESTART"),onPress:function(){t.watchLocation()}}],{cancelable:!1})},function(n){t.setState({loadingDialog:!1}),p.Alert.alert(v.default.t("TITLE_ERROR_SURVENU"),v.default.t("TEXT_ERROR_START_APPLICATION"),[{text:"Ok",onPress:function(){p.BackHandler.exitApp()}}],{cancelable:!1})},B);else{t.setState({alreadyRetry:!0});t.watchLocation({enableHighAccuracy:!1,timeout:2e4,maximumAge:1e3})}},function(n){console.warn(n),p.Alert.alert(v.default.t("UNABLE_GET_INFORMATION"),v.default.t('UNABLE_GET_INFORMATION_TEXT'),[{text:v.default.t("EXIT"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("RESTART"),onPress:function(){t.watchLocation()}}],{cancelable:!1})},o)}},{key:"retreiveinformationFromPosition",value:function(t){var n=this;(0,b.getPositionInformation)(t).then(function(o){if(console.log(o,t),void 0!==o.results){if(o.results.length>0){var l=o.results[0],s=l.address_components,c=l.formatted_address,u=l.place_id;n.setState({address:s,textadress:c,place:u});for(var f,h,p=o.results,E=0;E=_.length)break;y=_[S++]}else{if((S=_.next()).done)break;y=S.value}var C=y;C.code===f&&(n.setState({indicatif:C.dial_code,enterPhone:C.dial_code}),console.log("DIAL CODE",C.dial_code))}}n.setState({phoneEnabled:!0,loadingDialog:!1})}else console.log(t,o),n.showConnexionAlertError()}).catch(function(t){n.setState({phoneEnabled:!0,loadingDialog:!1}),p.Alert.alert(v.default.t("TITLE_PROBLE_COME"),v.default.t("TEXT_UNABLE_TO_GET_COUNTRY_INFO"),[{text:v.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("YES"),onPress:function(){n.watchLocation()}}],{cancelable:!1})})}},{key:"componentDidMount",value:function(){this._retrieveData(),this.requestCameraPermission()}},{key:"componentWillUnmount",value:function(){this.focusListener&&this.focusListener.remove()}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,y.getCountryNetwork)(t).then(function(o){n.reseaux=[];var l=o[0];for(var s in l)""!==l[s]&&l[s].toLowerCase()!==t.toLowerCase()&&n.reseaux.push(l[s]);n.setState({networks:n.reseaux})},function(t){console.log(t)});else;}}]),(0,u.default)(n,[{key:"gotoHome",value:function(){var t,n;return o.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return R.IlinkEmitter.emit("userconnect"),l.next=3,o.default.awrap((0,P.readUser)());case 3:if(t=l.sent,n="",t.category){l.next=9;break}n="App",l.next=17;break;case 9:l.t0=t.category,l.next='geolocated'===l.t0?12:'super'===l.t0?14:16;break;case 12:return n="AgentApp",l.abrupt("break",17);case 14:return n="adminApp",l.abrupt("break",17);case 16:n="supAdminApp";case 17:this.props.navigation.navigate(n);case 18:case"end":return l.stop()}},null,this,null,Promise)}},{key:"gotoTypeCreated",value:function(){this.props.navigation.push(L.typeaccountcreate,{type:this.state.typeaccount})}},{key:"initState",value:function(){return{password:"",typeaccount:0,enterPhone:"",isLoging:!1,phoneEnabled:!1,snackVisible:!1,snackText:'',loadingDialog:!0,stateLogin:-1,colorsscheme:[w.primary,w.primaryDark,w.primaryDarkAdvanced]}}},{key:"render",value:function(){var t=this;return h.default.createElement(p.Animated.View,{style:[W.container,{backgroundColor:this.BackgroundColorConfig}]},h.default.createElement(p.StatusBar,{backgroundColor:w.primaryDark,barStyle:"light-content",translucent:!1}),h.default.createElement(k.default,{visible:this.state.loadingDialog,textContent:v.default.t("LOADING_PROGRESS"),textStyle:{color:'#FFF'}}),h.default.createElement(p.ScrollView,null,h.default.createElement(p.TouchableOpacity,{onPress:function(){t.props.navigation.push(L.helpmenu)}},h.default.createElement(p.View,{style:{alignSelf:'flex-end',justifyContent:'center',alignItems:'center',backgroundColor:w.primaryLight,height:32,borderRadius:12,marginTop:30,marginRight:20}},h.default.createElement(p.Text,{style:{color:'white',fontSize:18,fontWeight:'bold',padding:5}},v.default.t('HELP')))),h.default.createElement(p.View,{style:W.logoContaner},h.default.createElement(p.Image,{style:W.logo,source:r(d[30])})),h.default.createElement(C.View,{ref:this.handlePhoneRef},h.default.createElement(A.Sae,{label:1!==this.state.stateLogin?v.default.t('PHONE_NUMBER'):v.default.t('PHONE_NUMBER_ADMIN'),iconClass:T.default,iconName:'phone',iconColor:'white',keyboardType:"numeric",enabled:this.state.phoneEnabled,style:W.input,autoCapitalize:'none',autoCorrect:!1,value:this.state.enterPhone,ref:function(n){t.numberRef=n},onChangeText:function(n){return t.setState({enterPhone:n})},labelStyle:W.labelInput})),h.default.createElement(C.View,{ref:this.handlePasswordRef},h.default.createElement(A.Sae,{label:v.default.t('PASSWORD'),ref:function(n){t._pass=n},iconClass:T.default,iconName:'lock',style:W.input,iconColor:'white',labelStyle:W.labelInput,autoCapitalize:'none',secureTextEntry:!0,onChangeText:function(n){return t.setState({password:n})},autoCorrect:!1})),h.default.createElement(p.View,{style:H.btnContainer},h.default.createElement(p.TouchableOpacity,{onPress:function(){t.gotoForgottenPass()}},h.default.createElement(p.Text,{style:W.lostpassword},v.default.t("FORGOTTEN_PASSWORD"))),h.default.createElement(p.View,{style:W.contentSwitch},h.default.createElement(O.default,{options:this.options,initial:0,buttonColor:w.accentLight,backgroundColor:w.primaryDark,textColor:"white",bold:!0,hasPadding:!0,height:32,style:W.switch,onPress:function(n){t.StartBackgroundColorAnimation(n)}})),h.default.createElement(S.default,{style:W.loginBtn1,isLoading:this.state.isLoging,onPress:function(){t.connectClicked()}},h.default.createElement(p.Text,{style:W.loginBtnText2},v.default.t("CONNECT_USER"))),h.default.createElement(p.View,{style:H.container},h.default.createElement(p.View,{style:H.line}),h.default.createElement(p.Text,{style:H.text},v.default.t("OR_BIG")),h.default.createElement(p.View,{style:H.line})),h.default.createElement(S.default,{style:W.loginBtn,onPress:function(){t.gotoTypeCreated()}},h.default.createElement(p.Text,{style:W.loginBtnText},v.default.t("CREATE_ACCOUNT")," ")))))}},{key:"gotoForgottenPass",value:function(){this.props.navigation.push(L.forgotpass,{type:this.state.typeaccount})}},{key:"connectClicked",value:function(){var t=this;null===this.state.password||void 0===this.state.password||this.state.password.length<3||this.state.password.lenght<3?this.passRef.shake(800):(this.setState(function(t){return{isLoging:!t.isLoging}}),(0,y.login)(this.state.enterPhone,this.state.password,this.state.typeaccount).then(function(n){if(console.warn(n),1===n.success){t.setState(function(t){return{isLoging:!t.isLoging}});var o=n;o.error?(t.setState(function(t){return{isLoging:!t.isLoging}}),p.Alert.alert(v.default.t("UNABLE_TO_CONNECT_TITLE"),v.default.t('TEXT_NETWORK_UNABLE'),[{text:v.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1})):"1"===o.etat||1===o.etat?((0,y.saveNewuser)(o),t.setState({user:o}),p.Alert.alert(v.default.t("CONNEXION_SUCCESSFUL"),v.default.t("CONNEXION_SUCCESSFULL_TEXT"),[{text:'Ok',onPress:function(){t.setState(function(t){return{isLoging:!t.isLoging}}),t.gotoHome()}}],{cancelable:!1})):'super'!==o.category?t.props.navigation.push(L.activateaccount,{type:t.state.typeaccount,user:o}):0===o.etat_demande||'0'===o.etat_demande?p.Alert.alert(v.default.t('DONT_VALIDATE_ACCOUNT'),v.default.t('UNVALIDATE_ACCOUNT_TEXT'),[{text:'Ok',onPress:function(){}}],{cancelable:!1}):t.props.navigation.push(L.activateaccount,{type:t.state.typeaccount,user:o})}else if(null===n)t.setState(function(t){return{isLoging:!t.isLoging}});else{console.log(n);var l='';switch(n.error){case 1:t.phoneRef.shake(1200),t.passRef.shake(1200),l=v.default.t("UNABLE_TO_CONNECT");break;case-1:t.phoneRef.shake(1200),l=v.default.t('WRONG_PHONE_NUMBER');break;case-2:l=v.default.t('WRONG_PHONE_NUMBER'),t.phoneRef.shake(1200);break;case-3:l=v.default.t("WRONG_PASSWORD"),t.passRef.shake(1200);break;default:t.passRef.shake(1200),l=null}null===l?p.Alert.alert(v.default.t("UNABLE_TO_CONNECT_TITLE"),v.default.t('TEXT_NETWORK_UNABLE'),[{text:v.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1}):(p.Alert.alert(v.default.t("UNABLE_TO_CONNECT_TITLE"),l,[{text:"OK",onPress:function(){}}],{cancelable:!1}),t.setState(function(t){return{isLoging:!t.isLoging,snackVisible:!0,snackText:l}}),setTimeout(function(){t.setState({snackVisible:!1})},2e3))}}).catch(function(n){t.setState(function(t){return{isLoging:!t.isLoging}}),p.Alert.alert(v.default.t("UNABLE_TO_CONNECT_TITLE"),v.default.t('TEXT_NETWORK_UNABLE'),[{text:v.default.t("NO"),onPress:function(){p.BackHandler.exitApp()}},{text:v.default.t("YES"),onPress:function(){t.connectClicked()}}],{cancelable:!1})}))}}]),n})(h.Component);e.LoginUi=D,D.defaultProps={enableHack:!1,geolocationOptions:null};var H=p.StyleSheet.create({line:{height:1.5,flex:1,backgroundColor:'white',marginLeft:30,marginRight:30},text:{color:'white',fontWeight:'bold'},container:{flexDirection:'row',alignItems:'center'},btnContainer:{flexDirection:'column',justifyContent:'center'}}),W=p.StyleSheet.create({container:{flex:1,justifyContent:"center"},switch:{margin:15},contentSwitch:{width:(0,_.responsiveWidth)(70),alignItems:'center',alignSelf:"center",marginTop:10,marginLeft:10},lostpassword:{color:'white',alignSelf:'flex-end',marginTop:60,fontWeight:'bold',marginRight:20},logoContaner:{flexDirection:'row',justifyContent:'center',alignItems:'center'},logo:{width:(0,_.responsiveWidth)(90),resizeMode:"contain"},title:{fontSize:(0,_.responsiveFontSize)(4),alignSelf:'center',fontWeight:'bold',color:'white'},loginBtnText:{color:w.primary,fontWeight:'bold',fontSize:15},loginBtnText2:{color:"white",fontWeight:'bold',fontSize:15},loginBtn:{width:U,height:48,alignSelf:'center',marginTop:20,borderRadius:(0,_.responsiveHeight)(4),backgroundColor:'white',borderColor:'transparent'},loginBtn1:{width:U,marginTop:(0,_.responsiveHeight)(2),height:48,alignSelf:'center',borderRadius:(0,_.responsiveHeight)(4),backgroundColor:w.accentLight,borderColor:'transparent'},input:{width:(0,_.responsiveWidth)(70),alignSelf:'center',marginTop:5},labelInput:{color:"white",fontWeight:'normal'}})},530,[4,1,273,8,10,12,9,13,15,18,68,531,527,696,709,711,743,681,764,765,712,766,711,768,803,804,806,807,808,813,814]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSource=e.ToolbarAndroid=e.TabBarItemIOS=e.TabBarItem=e.Button=e.default=void 0;var o=t(r(d[1])),u=t(r(d[2])),I=(0,o.default)(u.default,'FontAwesome','FontAwesome.ttf'),n=I;e.default=n;var b=I.Button;e.Button=b;var l=I.TabBarItem;e.TabBarItem=l;var v=I.TabBarItemIOS;e.TabBarItemIOS=v;var B=I.ToolbarAndroid;e.ToolbarAndroid=B;var T=I.getImageSource;e.getImageSource=T},531,[1,532,695]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,o,C,_){var S=C?C.replace(/\.(otf|ttf)$/,''):o,T=y.Platform.select({windows:"/Assets/"+C+"#"+o,android:S,web:S,default:o}),E=h.default.oneOf(Object.keys(t)),A=(function(o){function n(){var t,o;(0,u.default)(this,n);for(var l=arguments.length,f=new Array(l),v=0;v1&&void 0!==arguments[1]?arguments[1]:N,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;(0,I.default)();var u=t[o]||'?';'number'==typeof u&&(u=String.fromCharCode(u));var f=(0,y.processColor)(l),s=u+":"+n+":"+f,c=y.PixelRatio.get();return new Promise(function(t,o){var l=R[s];void 0!==l?!l||l instanceof Error?o(l):t({uri:l,scale:c}):P.getImageForFont(T,u,n,f,function(n,l){var u='string'==typeof n?new Error(n):n;R[s]=l||u||!1,!u&&l?t({uri:l,scale:c}):o(u)})})}return A.Button=(0,b.default)(A),A.TabBarItem=(0,O.default)(E,L),A.TabBarItemIOS=A.TabBarItem,A.ToolbarAndroid=(0,F.default)(E,L),A.getImageSource=L,A.loadFont=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;return'ios'===y.Platform.OS?((0,I.default)(),t?P.loadFontWithFileName.apply(P,(0,n.default)(t.split('.'))):Promise.reject(new Error('Unable to load font, because no file was specified. '))):Promise.resolve()},A.hasIcon=function(o){return Object.prototype.hasOwnProperty.call(t,o)},A.getRawGlyphMap=function(){return t},A.getFontFamily=function(){return T},A},e.DEFAULT_ICON_COLOR=e.DEFAULT_ICON_SIZE=e.NativeIconAPI=void 0;var n=o(r(d[2])),l=o(r(d[3])),u=o(r(d[4])),f=o(r(d[5])),s=o(r(d[6])),c=o(r(d[7])),v=o(r(d[8])),p=t(r(d[9])),h=o(r(d[10])),y=r(d[11]),I=o(r(d[12])),b=o(r(d[13])),O=o(r(d[14])),F=o(r(d[15])),P=y.NativeModules.RNVectorIconsManager||y.NativeModules.RNVectorIconsModule;e.NativeIconAPI=P;var N=12;e.DEFAULT_ICON_SIZE=N;var w='black';e.DEFAULT_ICON_COLOR=w},532,[4,1,33,57,8,9,10,12,13,15,68,533,534,535,680,694]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},533,[18]); @@ -767,7 +767,7 @@ __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{ __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideOutRight=e.slideOutLeft=e.slideOutUp=e.slideOutDown=void 0;var l=t(r(d[1]));function u(t,u){return{from:(0,l.default)({},t,0),to:(0,l.default)({},t,u)}}var s=u('translateY',100);e.slideOutDown=s;var n=u('translateY',-100);e.slideOutUp=n;var o=u('translateX',-100);e.slideOutLeft=o;var O=u('translateX',100);e.slideOutRight=O},761,[1,7]); __d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomInRight=e.zoomInLeft=e.zoomInUp=e.zoomInDown=e.zoomIn=void 0;var t=o(r(d[1])),n=r(d[2]);function l(o,l){var c=Math.min(1,Math.max(-1,l));return{easing:n.Easing.bezier(.175,.885,.32,1),0:(0,t.default)({opacity:0,scale:.1},o,-1e3*c),.6:(0,t.default)({opacity:1,scale:.457},o,l),1:(0,t.default)({scale:1},o,0)}}e.zoomIn={from:{opacity:0,scale:.3},.5:{opacity:1},to:{opacity:1,scale:1}};var c=l('translateY',60);e.zoomInDown=c;var s=l('translateY',-60);e.zoomInUp=s;var z=l('translateX',10);e.zoomInLeft=z;var I=l('translateX',-10);e.zoomInRight=I},762,[1,7,18]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOutRight=e.zoomOutLeft=e.zoomOutUp=e.zoomOutDown=e.zoomOut=void 0;var o=t(r(d[1])),u=r(d[2]);function c(t,c){var l=Math.min(1,Math.max(-1,c));return{easing:u.Easing.bezier(.175,.885,.32,1),0:(0,o.default)({opacity:1,scale:1},t,0),.4:(0,o.default)({opacity:1,scale:.457},t,c),1:(0,o.default)({opacity:0,scale:.1},t,-1e3*l)}}e.zoomOut={from:{opacity:1,scale:1},.5:{opacity:1,scale:.3},to:{opacity:0,scale:0}};var l=c('translateY',60);e.zoomOutDown=l;var n=c('translateY',-60);e.zoomOutUp=n;var s=c('translateX',10);e.zoomOutLeft=s;var z=c('translateX',-10);e.zoomOutRight=z},763,[1,7,18]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.getPositionInformation=e.loadNetwork=e.loadGroupeAgent=e.loadMarkers=e.getMakersFrom=e.getLocalMarkers=void 0;var o=t(r(d[2])),c=(n(r(d[3])),t(r(d[4]))),s=r(d[5]),l=r(d[6]),u=r(d[7]);e.getLocalMarkers=function(){return u.markers.get_all()};e.getMakersFrom=function(n){var t,o;return t=15e3,o=p({tag:'location',type:'all',country:n}),new Promise(function(n,s){setTimeout(function(){s(new Error(c.default.t("TEXT_NETWORK_UNABLE")))},t),o.then(n,s)})};e.loadMarkers=function(n,t,o,c){return(0,s.readUser)().then(function(s){if(void 0!==s){var l={tag:'location',type:'around',page:c,id:s.id,position:n,network:t,distance:o};return p(l)}})};e.loadGroupeAgent=function(n){return p({tag:'location',type:'all_network',codeparrain:n})};e.loadNetwork=function(n,t){return p({tag:'location',type:"all_network_point",id:t,network:n})};e.getPositionInformation=function(n){var t,c;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t="https://maps.googleapis.com/maps/api/geocode/json".concat('?latlng='+n.latitude+","+n.longitude+"&key=AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI"),c=fetch(t,{method:'GET',headers:{Accept:'application/json','Content-Type':'application/json'}}).then(function(n){return n.json()}).then(function(n){return n}).catch(function(n){console.log("error get position"),console.log(n)}),console.warn("freud",c),o.abrupt("return",c);case 4:case"end":return o.stop()}},null,null,null,Promise)};var p=function(n){var t,s,u;return o.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return n.lang=c.default.currentLocale(),n.test=l.isDebugMode,p.next=4,o.default.awrap(fetch(l.MARKER_URL,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(n)}));case 4:return t=p.sent,p.next=7,o.default.awrap(t.text());case 7:return s=p.sent,console.log("response= "+s),p.prev=9,u=JSON.parse(s),p.abrupt("return",u);case 14:throw p.prev=14,p.t0=p.catch(9),console.log("erreur="+s),console.log(t),new Error("Erreur lors de la conversion en json");case 19:throw new Error("Erreur lors de la conversion en json");case 20:case"end":return p.stop()}},null,null,[[9,14]],Promise)}},764,[4,1,273,15,712,711,736,714]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.getPositionInformation=e.loadNetwork=e.loadGroupeAgent=e.loadMarkers=e.getMakersFrom=e.getLocalMarkers=void 0;var o=n(r(d[2])),c=(t(r(d[3])),n(r(d[4]))),u=r(d[5]),s=r(d[6]),l=r(d[7]);e.getLocalMarkers=function(){return l.markers.get_all()};e.getMakersFrom=function(t){var n,o;return n=15e3,o=p({tag:'location',type:'all',country:t}),new Promise(function(t,u){setTimeout(function(){u(new Error(c.default.t("TEXT_NETWORK_UNABLE")))},n),o.then(t,u)})};e.loadMarkers=function(t,n,o,c){return(0,u.readUser)().then(function(u){if(void 0!==u){var s={tag:'location',type:'around',page:c,id:u.id,position:t,network:n,distance:o};return p(s)}})};e.loadGroupeAgent=function(t){return p({tag:'location',type:'all_network',codeparrain:t})};e.loadNetwork=function(t,n){return p({tag:'location',type:"all_network_point",id:n,network:t})};e.getPositionInformation=function(t){var n,c;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n="https://maps.googleapis.com/maps/api/geocode/json".concat('?latlng='+t.latitude+","+t.longitude+"&key=AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI"),c=fetch(n,{method:'GET',headers:{Accept:'application/json','Content-Type':'application/json'}}).then(function(t){return t.json()}).then(function(t){return t}).catch(function(t){console.log("error get position"),console.log(t)}),console.warn("freud",c),o.abrupt("return",c);case 4:case"end":return o.stop()}},null,null,null,Promise)};var p=function(t){var n,u,l;return o.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return t.lang=c.default.currentLocale(),t.test=s.isDebugMode,p.next=4,o.default.awrap(fetch(s.MARKER_URL,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(t)}));case 4:return n=p.sent,p.next=7,o.default.awrap(n.text());case 7:return u=p.sent,p.prev=8,l=JSON.parse(u),p.abrupt("return",l);case 13:throw p.prev=13,p.t0=p.catch(8),new Error("Erreur lors de la conversion en json");case 16:throw new Error("Erreur lors de la conversion en json");case 17:case"end":return p.stop()}},null,null,[[8,13]],Promise)}},764,[4,1,273,15,712,711,736,714]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),p=n(r(d[7])),h=t(r(d[8])),f=r(d[9]),b={button:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center"},containerButton:{flexDirection:"row",flex:1,height:40,justifyContent:"center",alignItems:"center"},animated:{borderWidth:0,position:"absolute"}},v=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,u.default)(this,(0,c.default)(n).call(this,t))).shouldSetResponder=function(t,n){return 1===t.nativeEvent.touches.length&&!(Math.abs(n.dx)<5&&Math.abs(n.dy)<5)},o.responderEnd=function(t,n){if(!o.props.disabled){var l=o._getSwipeDirection(n);"RIGHT"===l&&o.state.selected0&&o.toggleItem(o.state.selected-1)}},o.animate=function(t,n){o.animatedValue.setValue(n),f.Animated.timing(o.animatedValue,{toValue:t,duration:o.props.animationDuration,easing:f.Easing.cubic,useNativeDriver:!0}).start()},o.toggleItem=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=o.props,s=l.options,u=l.returnObject,c=l.onPress;s.length<=1||null===t||isNaN(t)||(o.animate(f.I18nManager.isRTL?-t/s.length:t/s.length,f.I18nManager.isRTL?-o.state.selected/s.length:o.state.selected/s.length),n&&c?c(u?s[t]:s[t].value):console.log("Call onPress with value: ",s[t].value),o.setState({selected:t}))},o.state={selected:o.props.initial?o.props.initial:0},o.animatedValue=new f.Animated.Value(o.props.initial?f.I18nManager.isRTL?-o.props.initial/o.props.options.length:o.props.initial/o.props.options.length:0),o}return(0,p.default)(n,t),(0,s.default)(n,[{key:"componentWillMount",value:function(){this._panResponder=f.PanResponder.create({onStartShouldSetPanResponder:this.shouldSetResponder,onMoveShouldSetPanResponder:this.shouldSetResponder,onPanResponderRelease:this.responderEnd,onPanResponderTerminate:this.responderEnd})}},{key:"componentWillReceiveProps",value:function(t){t.value!==this.props.value&&this.toggleItem(t.value,!this.props.disableValueChangeOnPress)}},{key:"_getSwipeDirection",value:function(t){var n=t.dx,o=t.dy,l=t.vx;return Math.abs(l)>.1&&Math.abs(o)<80?n>0?"RIGHT":"LEFT":null}},{key:"getBgColor",value:function(){var t=this.state.selected,n=this.props,o=n.options,l=n.buttonColor;return o[t].activeColor||l}},{key:"render",value:function(){var t=this,n=this.props,l=n.style,s=n.textStyle,u=n.selectedTextStyle,c=n.imageStyle,p=n.textColor,v=n.selectedColor,y=n.fontSize,C=n.backgroundColor,R=n.borderColor,S=n.borderRadius,x=n.hasPadding,I=n.valuePadding,P=n.height,w=n.bold,E=n.disabled,F=this.props.options.map(function(n,o){return h.default.createElement(f.TouchableOpacity,{key:o,disabled:E,style:b.button,onPress:function(){return t.toggleItem(o)}},"function"==typeof n.customIcon?n.customIcon(t.state.selected==o):n.customIcon,n.imageIcon&&h.default.createElement(f.Image,{source:n.imageIcon,style:[{height:30,width:30,tintColor:t.state.selected==o?v:p},c]}),h.default.createElement(f.Text,{style:[{fontSize:y,fontWeight:w?"bold":"normal",textAlign:"center",color:t.state.selected==o?v:p,backgroundColor:"transparent"},t.state.selected==o?u:s]},n.label))});return h.default.createElement(f.View,{style:[{flexDirection:"row"},l]},h.default.createElement(f.View,(0,o.default)({},this._panResponder.panHandlers,{style:{flex:1}}),h.default.createElement(f.View,{style:{borderRadius:S,backgroundColor:C,height:P},onLayout:function(n){var o=n.nativeEvent.layout.width;t.setState({sliderWidth:o-(x?2:0)})}},h.default.createElement(f.View,{style:{flex:1,flexDirection:"row",borderColor:R||"#c9c9c9",borderRadius:S,borderWidth:x?1:0}},!!this.state.sliderWidth&&h.default.createElement(f.Animated.View,{style:[{height:x?P-4:P,backgroundColor:this.getBgColor(),width:this.state.sliderWidth/this.props.options.length-(x?I:0),transform:[{translateX:this.animatedValue.interpolate({inputRange:[0,1],outputRange:[x?I:0,this.state.sliderWidth-(x?I:0)]})}],borderRadius:S,marginTop:x?I:0},b.animated]}),F))))}}]),n})(h.Component);e.default=v,v.defaultProps={style:{},textStyle:{},selectedTextStyle:{},imageStyle:{},textColor:"#000000",selectedColor:"#FFFFFF",fontSize:14,backgroundColor:"#FFFFFF",borderColor:"#C9C9C9",borderRadius:50,hasPadding:!1,valuePadding:1,height:40,bold:!1,buttonColor:"#BCD635",returnObject:!1,animationDuration:100,disabled:!1,disableValueChangeOnPress:!1}},765,[4,1,6,8,9,10,12,13,15,18]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.IlinkEmitter=e.default=void 0;var u=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),o=(function(t){function o(){return(0,u.default)(this,o),(0,n.default)(this,(0,l.default)(o).apply(this,arguments))}return(0,f.default)(o,t),o})(r(d[5]));e.default=o;var v=new o;e.IlinkEmitter=v},766,[1,8,10,12,13,767]); __d(function(g,r,i,a,m,e,d){'use strict';var t,n='object'==typeof Reflect?Reflect:null,o=n&&'function'==typeof n.apply?n.apply:function(t,n,o){return Function.prototype.apply.call(t,n,o)};t=n&&'function'==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}m.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var f=10;function v(t){if('function'!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,n,o,s){var u,f,h,p;if(v(o),void 0===(f=t._events)?(f=t._events=Object.create(null),t._eventsCount=0):(void 0!==f.newListener&&(t.emit('newListener',n,o.listener?o.listener:o),f=t._events),h=f[n]),void 0===h)h=f[n]=o,++t._eventsCount;else if('function'==typeof h?h=f[n]=s?[o,h]:[h,o]:s?h.unshift(o):h.push(o),(u=l(t))>0&&h.length>u&&!h.warned){h.warned=!0;var c=new Error('Possible EventEmitter memory leak detected. '+h.length+' '+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name='MaxListenersExceededWarning',c.emitter=t,c.type=n,c.count=h.length,p=c,console&&console.warn&&console.warn(p)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,n,o){var s={fired:!1,wrapFn:void 0,target:t,type:n,listener:o},u=p.bind(s);return u.listener=o,s.wrapFn=u,u}function y(t,n,o){var s=t._events;if(void 0===s)return[];var u=s[n];return void 0===u?[]:'function'==typeof u?o?[u.listener||u]:[u]:o?w(u):_(u,u.length)}function L(t){var n=this._events;if(void 0!==n){var o=n[t];if('function'==typeof o)return 1;if(void 0!==o)return o.length}return 0}function _(t,n){for(var o=new Array(n),s=0;s0&&(v=n[0]),v instanceof Error)throw v;var l=new Error('Unhandled error.'+(v?' ('+v.message+')':''));throw l.context=v,l}var h=f[t];if(void 0===h)return!1;if('function'==typeof h)o(h,this,n);else{var p=h.length,c=_(h,p);for(s=0;s=0;f--)if(o[f]===n||o[f].listener===n){l=o[f].listener,u=f;break}if(u<0)return this;0===u?o.shift():b(o,u),1===o.length&&(s[t]=o[0]),void 0!==s.removeListener&&this.emit('removeListener',t,l||n)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var n,o,s;if(void 0===(o=this._events))return this;if(void 0===o.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==o[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete o[t]),this;if(0===arguments.length){var u,f=Object.keys(o);for(s=0;s=0;s--)this.removeListener(t,n[s]);return this},u.prototype.listeners=function(t){return y(this,t,!0)},u.prototype.rawListeners=function(t){return y(this,t,!1)},u.listenerCount=function(t,n){return'function'==typeof t.listenerCount?t.listenerCount(n):L.call(t,n)},u.prototype.listenerCount=L,u.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},767,[]); @@ -812,9 +812,9 @@ __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{ __d(function(r,a,e,c,i,t,d){i.exports={primary:"#6784B1",primaryDark:"#637EA5",primaryDarkAdvanced:"#637B9E",accent:"#D86F22",accentLight:"#e27833",purpleLight:"#9b59b6",primaryLight:"#3498db",reddeconnect:"#ba000d"}},806,[]); __d(function(e,t,i,o,r,s,a){r.exports={discover:"ILink",stackRoot:"stackcenter",historiques:"Historique",options:"menu",drawer:"drawer",credrequester:"creditrequest",login:"Login",first:"Home",typeaccountcreate:"typeaccountcreate",simpleusercreate:"simpleusercreate",splashscreen:"spashscreen",useraccount:"useraccount",configurations:"configuration",notification:"notification",modalhistoryfilter:"filterhistory",superviseurgroup:"superviseurgroup",historyItemDetails:"historyItemDetails",forgotpass:"forgottenpass",confirmcode:"confirmcode",creationstep2:"step2",help:"help",modaloading:"modaloading",activateaccount:"activateaccout",addNetwork:"addNetwork",notificationView:"notificationview",generateNetwork:"generateNetwork",helpmenu:"helpMenu",updateinfo:"updateinformation",intersticielAds:"intersticielAds"}},807,[]); __d(function(g,r,i,a,m,e,d){var f=r(d[0])(r(d[1])),l=r(d[2]),n=r(d[3]),t=r(d[4]),s=r(d[5]);f.default.fallbacks=!0,f.default.translations={en:l,fr:t,ar:n,zh:s}},808,[1,712,809,810,811,812]); -__d(function(e,o,t,E,n,r,a){n.exports={WELCOME:"Welcome to iLink World !",WAITING_LONG:"Waiting for a moment",HELP:"Help",SIMPLE_USER:"Simple User",ABOUT:"About us",ABOUT_TEXT:"iLink is an application that will facilitate your financial transactions near your location, and give you multiservice points near you.",GEOLOCATED_USER:"Geo located user",SUPERVISOR:"Supervisor",AGENT:"Agent",USER:"User",HYPERVISOR:"Hypervisor",OPEN:"Open",POSITION:"My position",TAKE_MY_PLACE:"Take my position",MAP:"The map",BSR:"Good evening",ACCOUNT_CREATED_SUCCESS:"Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page",OR_BIG:"OR",FOR_NUMB:"For the ",FILTER_DATE:"Filter date",SUBTITLE_ACTIVE_ACCOUNT:"Activate your account using the code that was sent on your email or phone number",ASK_FOR_CREDIT:"Apply for credit",ASK_CREDIT:"Credit applications",ASK_SUPERIOR_CREDIT:"Request credit from your manager",ASK_FOR_SUPERVISOR:"Requests from supervisors",ASK_HYPERVISOR:"Become a hypervisor",ASK_FOR_HYPERVISOR:"Ask to become a hypervisor",ASK_SUPERVISOR:"Become a Supervisor",ASK_FOR_SUPERVISOR1:"Ask to become a supervisor",CREDIT_ASK_FROM_MEMBERS:"Credit requests from your members",ASK_MEMBERS:"Membership applications",MY_ACCOUNT:"My account",THE_ACCOUNT:"Account ",NO_GEO_POINT_CODE:"You have no free geolocated point",NO_DEMAND_ADHESION:"You have no membership request",ACTIVATED:"has been activated",CREDIT_MANAGE:"Credit Management",GROUP_MANAGE:"Group Management",NOTIFICATIONS:"Notification",NO_NOTIFICATION:"You haven't any notification",CONFIGURATIONS:"Configuration",LOGOUT:"Sign Out",HINT_HOME_SEARCH:" Find a place, neighborhood or city ",MY_NETWORK:"My network",MY_GROUP:"My group",CHANGE_MAP:"Change map",CHANGE_NETWORK:"Change network",PRINT_ALL:"Show all",PRINT_MY_NETWORK:"View my network",MY_GROUP_MAP:"Map of my group",GROUP_MEMBERS:"The group members",NAME:"Last name(s)",FIRSTNAME:"First name(s) ",ADMIN:"Administrator",SUPER_ADMIN:"Super administrator",GEOLOCATED:"Geo located agent",DELETE_GEOLOCATED_USER:"Delete",ADDRESS:"Address",CREDIT:"Credit",NEXT:"Next",SPONSOR_CODE:"Sponsor Code",SOLDE_UNVAIBLE:"solde unavailable",TEXT_BIG_CREATE_AGENT_1:"Register as Agent",EMAIL:"Email",COUNTRY:"Country",LOADING_INFO:"Loading information...",LOADING_DESCRIPTION_COUNTRY:"Wait a moment ! we collect information about your country...",NETWORK:"Network",PHONE:"Phone",PHONE_NUMBER:"Phone",CHOICE_NETWORK:"Choose a network",COUNTRY_CHOICE:"Choose a country",LAST_STEP:"Last step",ACTIVE_ACCOUNT:"Activate the account !",LAST_STEP_TEXT:"Activate your account using the verification code that was sent to you on your e-mail address and on your phone number",NETWORK_CHOICE:"Choix du r\xe9seau",CHOICE_NETWORK_TEXT:"Define a network to display",NO_NETWORK_CORRESPONDING:"This network has no points",MENU_FILTER:"Distance Filter Menu",MY_DEMAND:"My requests",TEXT_FILTER_DISTANCE:"Set the distance to search (in km)",WAIT_LOADING_POSITION:"We need the position of your workplace",CONNEXION_SUCCESSFUL:"Connection successful!",UNABLE_TO_CONNECT:"The phone number and password are incorrect",TITLE_CHOICE_TYPE_ACCOUNT:"Choose the type of account you want to create",ALREADY_HAVE_AN_ACCOUNT:"Do you already have an account?",AGENT_ACCOUNT:"Agent Account",UNABLE_TO_CONNECT_TITLE:"Unable to connect",DISTANCE_ARROUND:"Around you",UNABLE_TO_CREATE_ACCOUNT:"Can not create an account",TO_YOU:"of you",TREAT_DEMAND:"Already treated",PHONE_NUMBER_ADMIN:"Transaction number",FAILED_TEXT_CONTACT_ADMIN:"Unable to create an account please contact administrators",HYPERVISOR_MUST_VALIDATE_SUPERVISOR:"Your validation code will be sent to you once your Hypervisor validates it",ACCOUNT_SUCCESSFULL_CREATED:"The account was successfully created.\nYou will receive in a few minutes an email and an SMS with your information.\nWe will redirect you to the login page",langue:{french:"French",english:"English"},ERROR_FILTER:"Error occurred during the filter",ERROR_FILTER_TEXT:"Problem encountered while filtering.",YOUR_THERE:"You are here",FILTER:"Filter",QUIT:"Quitter",APP_FULLNAME:"Ilink World",GUIDE_TITLE:"Welcome to the Guide of",GUIDE_USER_SIMPLE:"Guide for a user",GUIDE_AGENT:"Guide for an agent",REPOSITIONNING:"Repositioning",WRONG_PHONE_NUMBER:"Incorrect number!",WRONG_PASSWORD:"Incorrect password!",NETWORK_LOST:"Connection lost!",SHOW:"Show",CALL:"Call",FORGOTTEN_PASSWORD:"Forgot your password?",CONNECT_USER:"Connect",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm the password",PASSWORD_MODIFY:"Change your password",OLD_PASSWORD:"Old password",NEW_PASSWORD:"New password",CONFIRM_NEW_PASSWORD:"Confirm new password",AMOUNT:"Amount",STATUS:"Status",CANCEL:"Exit",TEXT_GUIDE_USER_1:"You have just connected.\n Your location is marked in the center of the map with the indication \"You are here\" ",TEXT_GUIDE_USER_3:"Clicking the '+' button will open the options menu",TEXT_GUIDE_USER_4:"Click on a marker to get the information on a point",TEXT_GUIDE_USER_2:"Click on the menu button at the top right to discover the menu and the disconnection option",TEXT_GUIDE_USER_5:"Click on the 'Filter' option to filter your points according to their distance from you",TEXT_GUIDE_USER_6:"Click on the 'Change network' option to display the points of other networks",TEXT_GUIDE_USER_7:"Click on the option 'Itinerary' to display the path to this point",TEXT_GUIDE_USER_10:"Consult the list of members of your group",TEXT_GUIDE_USER_11:"Click on the profile option to have information link to your account",CATEGORY:"Category",WAY:"Travel",ADD_NETWORK:"Add a network",POINT_NUMBER:"Number of points",SUPERIOR_CODE:"Sponsor code",ADD_SUCCES:"Add Successful",ADD_SUCCESS_TEXT:"The number has been added to the network successfully",MEMBER_CODE:"Member Code",MEMBER_INFO:"Member Information",DEMAND_INFO:"Information on the request",ACCOUNT_NOT_ACTIVE:"Your account is not activated",ENTER_VALIDATION_CODE:"Enter the validation code that was sent to you.",ENTER_VALIDATION_CODE1:"Enter the validation code.",SUPERVISOR_NUMBER:"Number of supervisors",GEOLOCATED_NUMBER:"Number of points per supervisor",ACTIVATE_ACCOUNT:"Activate account",SEND:"Send!",CHANGE_INFORMATION:"Change my information",VALIDATE:"Validate",CONNECT:"Connection",TEXT_BIG_CREATE_1:"Register as a User",TEXT_SUBTITLE_CREATE_1:"Fill in your personal information",USER_ACCOUNT:"User Account",USER_CONNECT:"User Login",GIVE_CONNECT_INFO:"Enter your login information",CREATE_ACCOUNT:"create an account",CHOOSE_LANGUAGE:"Choose the language",MODIFY_PASSWORD:"Forgotten password",CONTACT:"Contact",UPDATE:"... update",FAQ:"FAQ",UPDATE_POSITION_TEXT:"Update my position",YOU_ARE:"Are you?",GIVE_ID_FOR_RECOVERY:"Enter your username, we will send you a new password.",SELECT_ACCOUNT_TYPE:"Select an account type!",BRAVO:"Bravo!",HELP_CONGRAT_MESSAGE:"You now know how to use iLink",REPLAY_HELP:"Review the tutorial",BACK_TO_HELP_HOME:"Return to Help",USE_APP:"Use the application",HIDE_AT_STARTUP:"Hide at next start?",PATH_YOU_ARE:"You are in",PATH_TO_POINT:"From the point you clicked.",PATH_YOU_WILL:"You will be there",PRECISE_SEARCH:"Refine your search",SEARCH_DISTANCE:"Distance",SEARCH_5:"5 km",SEARCH_15:"15 km",SEARCH_20:"20 km",SEARCH_25:"25 km",SEARCH:"Search",SEE_VIDEO:"Watch the video",SEE_TUTO:"See the tutorial",DELETE:"Delete",FREE:"Available",SAVED:"Registered",ACCOUNT_INFO:"My Account Information",REGISTER_YOURSELF:"Register",REGISTRATION:"Registration",CHANGE_LANG_LABEL:"Change language",GIVE_PERSONNAL_INFO:"Fill in your personal information",YOUR_GEOLOCATION:"Your location",HISTORY_REQUEST:"Request History",ASK_REQUEST_HISTORY:"Request a history",GIVE_HISTORY_INFO:"Information about your history",HISTORY_TYPE:"Type",HISTORY_TYPE_ASK:"Requests",REQUEST_RECEIVE:"Requests received",MY_DEMANDE:"My requests",PHONE_TRANSACTION:"Transaction number",DEMAND_TEXT_FIRST_PART:"made a request for",REQUEST_SEND:"Request Sent",DEMAND_RECEIVE:"Requests received",TO_:"credit to",DEMAND_SEND_SUCCESFUL:"Your request has been sent successfully!",SAVE_HISTORY:"Save history",MAKE_REQUEST:"Make a request",DATE_WRONG:"The end date can not be earlier than the start date",LOADING_DOTS:"Loading...",LOADING_PROGRESS:"Loading",EMPTY_LIST_REQUEST:"No request",MEMBER_LIST:"List of members",FREE_CODE_LIST:"List of available codes",NO_ITEM_REQUEST:"No item matches,",MEMBERSHIP_REQUEST:"Membership applications",HISTORY_TYPE_REQUEST:"Queries",TREAT:"Processed",EXIT_TITLE:"Close iLink World!",EXIT_DESC:"Do you really want to close iLink World?",NO_TREAT:"Unprocessed",EXIT:"Close",PERIOD:"Period",DISCONNEXION:"Logout",DISCONNEXION_TEXT:"Are you sure you want to disconnect? This action will erase all your temporary data.",HISTORY_START:"Start",YES:"Yes",NO:"No",CONNEXION_LOST_CHECK:"Lost connection, please check your connection!",ACCOUNT_ACTIVATE_TEXT:"Your account has been activated successfully!",HISTORY_END:"End",DONT_VALIDATE_ACCOUNT:"Account not validated",CONNEXION_SUCCESSFULL_TEXT:"Successful login Welcome to iLink World!",UNVALIDATE_ACCOUNT_TEXT:"Your hypervisor has not yet verified your account",TEXT_NEED_POSITION:"Please update your location!",TITLE_NEED_POSITION:"Your location needs to be updated",POSITION_UPDATE_SUCCESS_TEXT:"Your location has been updated successfully!",UPDATE_SUCCESS:"Successful update!",TITLE_UPDATE_POSITION_FAILED:"Unable to update your location",TEXT_UPDATE_POSITION_FAILED_1:"Unable to retrieve your member code",TEXT_UPDATE_POSITION_FAILED_2:"Unable to retrieve your location",TITLE_ERROR_SURVENU:"An error has occurred!",TITLE_PROBLE_COME:"A problem has been encountered",TEXT_ERROR_START_APPLICATION:"An error occurred while starting iLink World, please restart iLink World",TEXT_UNABLE_TO_GET_YOUR_POSITION:"Unable to retrieve your location, please make sure your GPS is enabled and restart iLink World",RESTART:"REPEAT",TEXT_UNABLE_TO_GET_COUNTRY_INFO:"Unable to retrieve information from your country, check your internet connection, click \" Ok \"to try again,",TITLE_UNABLE_TO_AUTORISE:"Failed to Authorize",MISSING_AUTORISATION_LOCATION:"iLink World is not authorized to access your location, please allow iLink World to access your location and restart iLink World",TEXT_FORGOTTEN_PASSWORD:"Enter your username, we will send you a new password",TEXT_NETWORK_UNABLE:"Network not available, want to try again?",LOADING_TEXT_MARKERS:"More points",LOADING_TEXT_MARKERS_2:"around,",UNABLE_GET_INFORMATION:"Problem of retrieval of information",UNABLE_GET_INFORMATION_TEXT:"Make sure your GPS is turned on and put in high precision mode and restart iLink World",TITLE_HELP_SOON:"Help not available!",HELP_SOON:"A tutorial helping you in understanding the features of the application will soon be available."}},809,[]); +__d(function(e,o,t,E,n,r,a){n.exports={WELCOME:"Welcome to iLink World !",WAITING_LONG:"Waiting for a moment",HELP:"Help",SIMPLE_USER:"Simple User",ABOUT:"About us",ACTION_TREAT_DEMAND:"Treat demand",ABOUT_TEXT:"iLink is an application that will facilitate your financial transactions near your location, and give you multiservice points near you.",GEOLOCATED_USER:"Geo located user",SUPERVISOR:"Supervisor",AGENT:"Agent",USER:"User",HYPERVISOR:"Hypervisor",OPEN:"Open",POSITION:"My position",TAKE_MY_PLACE:"Take my position",MAP:"The map",BSR:"Good evening",ACCOUNT_CREATED_SUCCESS:"Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page",OR_BIG:"OR",FOR_NUMB:"For the ",FILTER_DATE:"Filter date",SUBTITLE_ACTIVE_ACCOUNT:"Activate your account using the code that was sent on your email or phone number",ASK_FOR_CREDIT:"Apply for credit",ASK_CREDIT:"Credit applications",ASK_SUPERIOR_CREDIT:"Request credit from your manager",ASK_FOR_SUPERVISOR:"Requests from supervisors",ASK_HYPERVISOR:"Become a hypervisor",ASK_FOR_HYPERVISOR:"Ask to become a hypervisor",ASK_SUPERVISOR:"Become a Supervisor",ASK_FOR_SUPERVISOR1:"Ask to become a supervisor",CREDIT_ASK_FROM_MEMBERS:"Credit requests from your members",ASK_MEMBERS:"Membership applications",MY_ACCOUNT:"My account",THE_ACCOUNT:"Account ",NO_GEO_POINT_CODE:"You have no free geolocated point",NO_DEMAND_ADHESION:"You have no membership request",ACTIVATED:"has been activated",CREDIT_MANAGE:"Credit Management",GROUP_MANAGE:"Group Management",NOTIFICATIONS:"Notification",NO_NOTIFICATION:"You haven't any notification",CONFIGURATIONS:"Configuration",LOGOUT:"Sign Out",HINT_HOME_SEARCH:" Find a place, neighborhood or city ",MY_NETWORK:"My network",MY_GROUP:"My group",CHANGE_MAP:"Change map",CHANGE_NETWORK:"Change network",PRINT_ALL:"Show all",PRINT_MY_NETWORK:"View my network",MY_GROUP_MAP:"Map of my group",GROUP_MEMBERS:"The group members",NAME:"Last name(s)",FIRSTNAME:"First name(s) ",ADMIN:"Administrator",SUPER_ADMIN:"Super administrator",GEOLOCATED:"Geo located agent",DELETE_GEOLOCATED_USER:"Delete",ADDRESS:"Address",CREDIT:"Credit",NEXT:"Next",SPONSOR_CODE:"Sponsor Code",SOLDE_UNVAIBLE:"solde unavailable",TEXT_BIG_CREATE_AGENT_1:"Register as Agent",EMAIL:"Email",COUNTRY:"Country",LOADING_INFO:"Loading information...",LOADING_DESCRIPTION_COUNTRY:"Wait a moment ! we collect information about your country...",NETWORK:"Network",PHONE:"Phone",PHONE_NUMBER:"Phone",CHOICE_NETWORK:"Choose a network",COUNTRY_CHOICE:"Choose a country",LAST_STEP:"Last step",ACTIVE_ACCOUNT:"Activate the account !",LAST_STEP_TEXT:"Activate your account using the verification code that was sent to you on your e-mail address and on your phone number",NETWORK_CHOICE:"Choix du r\xe9seau",CHOICE_NETWORK_TEXT:"Define a network to display",NO_NETWORK_CORRESPONDING:"This network has no points",MENU_FILTER:"Distance Filter Menu",MY_DEMAND:"My requests",TEXT_FILTER_DISTANCE:"Set the distance to search (in km)",WAIT_LOADING_POSITION:"We need the position of your workplace",CONNEXION_SUCCESSFUL:"Connection successful!",UNABLE_TO_CONNECT:"The phone number and password are incorrect",TITLE_CHOICE_TYPE_ACCOUNT:"Choose the type of account you want to create",ALREADY_HAVE_AN_ACCOUNT:"Do you already have an account?",AGENT_ACCOUNT:"Agent Account",UNABLE_TO_CONNECT_TITLE:"Unable to connect",DISTANCE_ARROUND:"Around you",UNABLE_TO_CREATE_ACCOUNT:"Can not create an account",TO_YOU:"of you",TREAT_DEMAND:"Already treated",PHONE_NUMBER_ADMIN:"Transaction number",FAILED_TEXT_CONTACT_ADMIN:"Unable to create an account please contact administrators",HYPERVISOR_MUST_VALIDATE_SUPERVISOR:"Your validation code will be sent to you once your Hypervisor validates it",ACCOUNT_SUCCESSFULL_CREATED:"The account was successfully created.\nYou will receive in a few minutes an email and an SMS with your information.\nWe will redirect you to the login page",langue:{french:"French",english:"English"},ERROR_FILTER:"Error occurred during the filter",ERROR_FILTER_TEXT:"Problem encountered while filtering.",YOUR_THERE:"You are here",FILTER:"Filter",QUIT:"Quit",QUIT_:"Quit",APP_FULLNAME:"Ilink World",GUIDE_TITLE:"Welcome to the Guide of",GUIDE_USER_SIMPLE:"Guide for a user",GUIDE_AGENT:"Guide for an agent",REPOSITIONNING:"Repositioning",WRONG_PHONE_NUMBER:"Incorrect number!",WRONG_PASSWORD:"Incorrect password!",NETWORK_LOST:"Connection lost!",SHOW:"Show",CALL:"Call",FORGOTTEN_PASSWORD:"Forgot your password?",CONNECT_USER:"Connect",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm the password",PASSWORD_MODIFY:"Change your password",OLD_PASSWORD:"Old password",NEW_PASSWORD:"New password",CONFIRM_NEW_PASSWORD:"Confirm new password",AMOUNT:"Amount",STATUS:"Status",CANCEL:"Exit",TEXT_GUIDE_USER_1:"You have just connected.\n Your location is marked in the center of the map with the indication \"You are here\" ",TEXT_GUIDE_USER_3:"Clicking the '+' button will open the options menu",TEXT_GUIDE_USER_4:"Click on a marker to get the information on a point",TEXT_GUIDE_USER_2:"Click on the menu button at the top right to discover the menu and the disconnection option",TEXT_GUIDE_USER_5:"Click on the 'Filter' option to filter your points according to their distance from you",TEXT_GUIDE_USER_6:"Click on the 'Change network' option to display the points of other networks",TEXT_GUIDE_USER_7:"Click on the option 'Itinerary' to display the path to this point",TEXT_GUIDE_USER_10:"Consult the list of members of your group",TEXT_GUIDE_USER_11:"Click on the profile option to have information link to your account",CATEGORY:"Category",WAY:"Travel",ADD_NETWORK:"Add a network",POINT_NUMBER:"Number of points",SUPERIOR_CODE:"Sponsor code",ADD_SUCCES:"Add Successful",ADD_SUCCESS_TEXT:"The number has been added to the network successfully",MEMBER_CODE:"Member Code",MEMBER_INFO:"Member Information",DEMAND_INFO:"Information on the request",ACCOUNT_NOT_ACTIVE:"Your account is not activated",ENTER_VALIDATION_CODE:"Enter the validation code that was sent to you.",ENTER_VALIDATION_CODE1:"Enter the validation code.",SUPERVISOR_NUMBER:"Number of supervisors",GEOLOCATED_NUMBER:"Number of points per supervisor",ACTIVATE_ACCOUNT:"Activate account",SEND:"Send!",CHANGE_INFORMATION:"Change my information",VALIDATE:"Validate",CONNECT:"Connection",TEXT_BIG_CREATE_1:"Register as a User",TEXT_SUBTITLE_CREATE_1:"Fill in your personal information",USER_ACCOUNT:"User Account",USER_CONNECT:"User Login",GIVE_CONNECT_INFO:"Enter your login information",CREATE_ACCOUNT:"create an account",CHOOSE_LANGUAGE:"Choose the language",MODIFY_PASSWORD:"Forgotten password",CONTACT:"Contact",UPDATE:"... update",FAQ:"FAQ",UPDATE_POSITION_TEXT:"Update my position",YOU_ARE:"Are you?",GIVE_ID_FOR_RECOVERY:"Enter your username, we will send you a new password.",SELECT_ACCOUNT_TYPE:"Select an account type!",BRAVO:"Bravo!",HELP_CONGRAT_MESSAGE:"You now know how to use iLink",REPLAY_HELP:"Review the tutorial",BACK_TO_HELP_HOME:"Return to Help",USE_APP:"Use the application",HIDE_AT_STARTUP:"Hide at next start?",PATH_YOU_ARE:"You are in",PATH_TO_POINT:"From the point you clicked.",PATH_YOU_WILL:"You will be there",PRECISE_SEARCH:"Refine your search",SEARCH_DISTANCE:"Distance",SEARCH_5:"5 km",SEARCH_15:"15 km",SEARCH_20:"20 km",SEARCH_25:"25 km",SEARCH:"Search",SEE_VIDEO:"Watch the video",SEE_TUTO:"See the tutorial",SELECT_NETWORK:"Select your",DELETE:"Delete",FREE:"Available",SAVED:"Registered",ACCOUNT_INFO:"My Account Information",REGISTER_YOURSELF:"Register",REGISTRATION:"Registration",CHANGE_LANG_LABEL:"Change language",GIVE_PERSONNAL_INFO:"Fill in your personal information",YOUR_GEOLOCATION:"Your location",HISTORY_REQUEST:"Request History",ASK_REQUEST_HISTORY:"Request a history",GIVE_HISTORY_INFO:"Information about your history",HISTORY_TYPE:"Type",HISTORY_TYPE_ASK:"Requests",REQUEST_RECEIVE:"Requests received",MY_DEMANDE:"My requests",PHONE_TRANSACTION:"Transaction number",DEMAND_TEXT_FIRST_PART:"made a request for",REQUEST_SEND:"Request Sent",DEMAND_RECEIVE:"Requests received",TO_:"credit to",DEMAND_SEND_SUCCESFUL:"Your request has been sent successfully!",SAVE_HISTORY:"Save history",MAKE_REQUEST:"Make a request",DATE_WRONG:"The end date can not be earlier than the start date",LOADING_DOTS:"Loading...",LOADING_PROGRESS:"Loading",EMPTY_LIST_REQUEST:"No request",MEMBER_LIST:"List of members",FREE_CODE_LIST:"List of available codes",NO_ITEM_REQUEST:"No item matches,",MEMBERSHIP_REQUEST:"Membership applications",HISTORY_TYPE_REQUEST:"Queries",TREAT:"Processed",EXIT_TITLE:"Close iLink World!",EXIT_DESC:"Do you really want to close iLink World?",NO_TREAT:"Unprocessed",EXIT:"Close",PERIOD:"Period",DISCONNEXION:"Logout",DISCONNEXION_TEXT:"Are you sure you want to disconnect? This action will erase all your temporary data.",HISTORY_START:"Start",YES:"Yes",NO:"No",CONNEXION_LOST_CHECK:"Lost connection, please check your connection!",ACCOUNT_ACTIVATE_TEXT:"Your account has been activated successfully!",HISTORY_END:"End",DONT_VALIDATE_ACCOUNT:"Account not validated",CONNEXION_SUCCESSFULL_TEXT:"Successful login Welcome to iLink World!",UNVALIDATE_ACCOUNT_TEXT:"Your hypervisor has not yet verified your account",TEXT_NEED_POSITION:"Please update your location!",TITLE_NEED_POSITION:"Your location needs to be updated",POSITION_UPDATE_SUCCESS_TEXT:"Your location has been updated successfully!",UPDATE_SUCCESS:"Successful update!",TITLE_UPDATE_POSITION_FAILED:"Unable to update your location",TEXT_UPDATE_POSITION_FAILED_1:"Unable to retrieve your member code",TEXT_UPDATE_POSITION_FAILED_2:"Unable to retrieve your location",TITLE_ERROR_SURVENU:"An error has occurred!",TITLE_PROBLE_COME:"A problem has been encountered",TITLE_SUPPRESS_CONFIRM:"Confirm deletion",TEXT_SUPPRESS_CONFIRM:"Do you really want to delete this user ?",TEXT_ERROR_START_APPLICATION:"An error occurred while starting iLink World, please restart iLink World",TEXT_UNABLE_TO_GET_YOUR_POSITION:"Unable to retrieve your location, please make sure your GPS is enabled and restart iLink World",RESTART:"REPEAT",TEXT_UNABLE_TO_GET_COUNTRY_INFO:"Unable to retrieve information from your country, check your internet connection, click \" Ok \"to try again,",TITLE_UNABLE_TO_AUTORISE:"Failed to Authorize",MISSING_AUTORISATION_LOCATION:"iLink World is not authorized to access your location, please allow iLink World to access your location and restart iLink World",TEXT_FORGOTTEN_PASSWORD:"Enter your username, we will send you a new password",TEXT_NETWORK_UNABLE:"Network not available, want to try again?",LOADING_TEXT_MARKERS:"More points",LOADING_TEXT_MARKERS_2:"around,",UNABLE_GET_INFORMATION:"Problem of retrieval of information",UNABLE_GET_INFORMATION_TEXT:"Make sure your GPS is turned on and put in high precision mode and restart iLink World",TITLE_HELP_SOON:"Help not available!",HELP_SOON:"A tutorial helping you in understanding the features of the application will soon be available."}},809,[]); __d(function(E,_,T,O,R,A,N){R.exports={WELCOME:"\u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0643\u0645 \u0641\u064a iLink World!",HELP:"\u0645\u0633\u0627\u0639\u062f\u0629",SIMPLE_USER:"\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0633\u064a\u0637",GEOLOCATED_USER:"\u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u062c\u063a\u0631\u0627\u0641\u064a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",SUPERVISOR:"\u0645\u0634\u0631\u0641",AGENT:"\u0648\u0643\u064a\u0644",USER:"User",HYPERVISOR:"\u0647\u0628\u0631\u0641\u064a\u0633\u0631",OPEN:"\u0627\u0641\u062a\u062d",POSITION:"\u0645\u0648\u0642\u0639\u064a",TAKE_MY_PLACE:"\u062e\u0630 \u0645\u0648\u0642\u0641\u064a",MAP:"\u0627\u0644\u062e\u0631\u064a\u0637\u0629",BSR:"\u0645\u0633\u0627\u0621 \u0627\u0644\u062e\u064a\u0631",OR_BIG:"\u0623\u0648",FOR_NUMB:"\u0644",SUBTITLE_ACTIVE_ACCOUNT:"\u0642\u0645 \u0628\u062a\u0646\u0634\u064a\u0637 \u062d\u0633\u0627\u0628\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0630\u064a \u062a\u0645 \u0625\u0631\u0633\u0627\u0644\u0647 \u0625\u0644\u0649 \u0628\u0631\u064a\u062f\u0643 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0623\u0648 \u0631\u0642\u0645 \u0647\u0627\u062a\u0641\u0643",ASK_FOR_CREDIT:"\u0627\u0644\u062a\u0642\u062f\u0645 \u0628\u0637\u0644\u0628 \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0627\u0626\u062a\u0645\u0627\u0646",ASK_CREDIT:"\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0627\u0626\u062a\u0645\u0627\u0646",ASK_SUPERIOR_CREDIT:"\u0637\u0644\u0628 \u0631\u0635\u064a\u062f \u0645\u0646 \u0645\u062f\u064a\u0631\u0643",ASK_FOR_SUPERVISOR:"\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0645\u0634\u0631\u0641\u064a\u0646",ASK_HYPERVISOR:"\u0643\u0646 \u0645\u0634\u0631\u0641\u064b\u0627 \u0643\u0628\u064a\u0631\u064b\u0627",ASK_FOR_HYPERVISOR:"\u0627\u0637\u0644\u0628 \u0623\u0646 \u062a\u0635\u0628\u062d \u0645\u0634\u0631\u0641\u064b\u0627 \u0643\u0628\u064a\u0631\u064b\u0627",ASK_SUPERVISOR:"\u0643\u0646 \u0645\u0634\u0631\u0641\u064b\u0627",ASK_FOR_SUPERVISOR1:"\u0627\u0633\u0623\u0644 \u0644\u062a\u0635\u0628\u062d \u0645\u0634\u0631\u0641\u064b\u0627",CREDIT_ASK_FROM_MEMBERS:"\u0637\u0644\u0628\u0627\u062a \u0627\u0626\u062a\u0645\u0627\u0646 \u0645\u0646 \u0627\u0644\u0623\u0639\u0636\u0627\u0621",ASK_MEMBERS:"\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0639\u0636\u0648\u064a\u0629",MY_ACCOUNT:"\u062d\u0633\u0627\u0628\u064a",THE_ACCOUNT:"\u0627\u0644\u062d\u0633\u0627\u0628",NO_GEO_POINT_CODE:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0646\u0642\u0637\u0629 \u062a\u062d\u062f\u064a\u062f \u062c\u063a\u0631\u0627\u0641\u064a \u0645\u062c\u0627\u0646\u064a\u0629",NO_DEMAND_ADHESION:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0637\u0644\u0628 \u0639\u0636\u0648\u064a\u0629",ACTIVATED:"\u062a\u0645 \u062a\u0641\u0639\u064a\u0644\u0647",CREDIT_MANAGE:"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0627\u0626\u062a\u0645\u0627\u0646",GROUP_MANAGE:"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",NOTIFICATIONS:"\u0627\u0644\u0625\u062e\u0637\u0627\u0631",CONFIGURATIONS:"\u062a\u0643\u0648\u064a\u0646",LOGOUT:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",HINT_HOME_SEARCH:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0645\u0643\u0627\u0646 \u0623\u0648 \u062d\u064a \u0623\u0648 \u0645\u062f\u064a\u0646\u0629",MY_NETWORK:"\u0634\u0628\u0643\u062a\u064a",MY_GROUP:"\u0645\u062c\u0645\u0648\u0639\u062a\u064a",CHANGE_MAP:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u062e\u0631\u064a\u0637\u0629",CHANGE_NETWORK:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0634\u0628\u0643\u0629",PRINT_ALL:"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0643\u0644",PRINT_MY_NETWORK:"\u0639\u0631\u0636 \u0634\u0628\u0643\u062a\u064a",MY_GROUP_MAP:"\u062e\u0631\u064a\u0637\u0629 \u0645\u062c\u0645\u0648\u0639\u062a\u064a",GROUP_MEMBERS:"\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",NAME:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0627\u0626\u0644\u0629 (\u0627\u0644\u0623\u0633\u0645\u0627\u0621)",FIRSTNAME:"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0623\u0648\u0644 (\u0627\u0644\u0623\u0633\u0645\u0627\u0621)",ADMIN:"\u0627\u0644\u0645\u0633\u0624\u0648\u0644",SUPER_ADMIN:"\u0645\u0634\u0631\u0641 \u0633\u0648\u0628\u0631",GEOLOCATED:"\u0627\u0644\u0648\u0643\u064a\u0644 \u0627\u0644\u062c\u063a\u0631\u0627\u0641\u064a \u0627\u0644\u0645\u062d\u062f\u062f",DELETE_GEOLOCATED_USER:"\u062d\u0630\u0641",ADDRESS:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",CREDIT:"\u0627\u0644\u0627\u0626\u062a\u0645\u0627\u0646",NEXT:"\u0627\u0644\u062a\u0627\u0644\u064a",SPONSOR_CODE:"\u0631\u0645\u0632 \u0627\u0644\u0631\u0627\u0639\u064a",TEXT_BIG_CREATE_AGENT_1:"\u0633\u062c\u0644 \u0643\u0639\u0627\u0645\u0644",EMAIL:"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a",COUNTRY:"\u0627\u0644\u0628\u0644\u062f",LOADING_INFO:"\u062c\u0627\u0631\u064d \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a ...",LOADING_DESCRIPTION_COUNTRY:"\u0627\u0646\u062a\u0638\u0631 \u0644\u062d\u0638\u0629! \u0646\u062d\u0646 \u0646\u062c\u0645\u0639 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0639\u0646 \u0628\u0644\u062f\u0643 ...",NETWORK:"\u0627\u0644\u0634\u0628\u0643\u0629",PHONE:"\u0627\u0644\u0647\u0627\u062a\u0641",PHONE_NUMBER:"\u0627\u0644\u0647\u0627\u062a\u0641",CHOICE_NETWORK:"\u0627\u062e\u062a\u0631 \u0634\u0628\u0643\u0629",COUNTRY_CHOICE:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0628\u0644\u062f",LAST_STEP:"\u0627\u0644\u062e\u0637\u0648\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629",ACTIVE_ACCOUNT:"\u062a\u0646\u0634\u064a\u0637 \u0627\u0644\u062d\u0633\u0627\u0628!",LAST_STEP_TEXT:"\u0642\u0645 \u0628\u062a\u0646\u0634\u064a\u0637 \u062d\u0633\u0627\u0628\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0631\u0645\u0632 \u0627\u0644\u062a\u062d\u0642\u0642 \u0648\u0639\u0646\u0648\u0627\u0646 \u0628\u0631\u064a\u062f\u0643 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0648\u0631\u0642\u0645 \u0647\u0627\u062a\u0641\u0643",NETWORK_CHOICE:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0634\u0628\u0643\u0629",CHOICE_NETWORK_TEXT:"\u062a\u062d\u062f\u064a\u062f \u0634\u0628\u0643\u0629 \u0644\u0639\u0631\u0636\u0647\u0627",NO_NETWORK_CORRESPONDING:"\u0647\u0630\u0647 \u0627\u0644\u0634\u0628\u0643\u0629 \u0644\u0627 \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u0646\u0642\u0627\u0637",MENU_FILTER:"\u0642\u0627\u0626\u0645\u0629 \u0645\u0631\u0634\u062d \u0627\u0644\u0645\u0633\u0627\u0641\u0629",TEXT_FILTER_DISTANCE:"\u0627\u0636\u0628\u0637 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0644\u0644\u0628\u062d\u062b (\u0628\u0627\u0644\u0643\u064a\u0644\u0648\u0645\u062a\u0631\u0627\u062a)",WAIT_LOADING_POSITION:"\u0646\u062d\u0646 \u0628\u062d\u0627\u062c\u0629 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0645\u0643\u0627\u0646 \u0639\u0645\u0644\u0643",CONNECTION_SUCCESSFUL:"\u0627\u062a\u0635\u0627\u0644 \u0646\u0627\u062c\u062d!",UNABLE_TO_CONNECT:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641 \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u064a\u0646",TITLE_CHOICE_TYPE_ACCOUNT:"\u0627\u062e\u062a\u0631 \u0646\u0648\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0630\u064a \u062a\u0631\u064a\u062f \u0625\u0646\u0634\u0627\u0621\u0647",ALREADY_HAVE_AN_ACCOUNT:"\u0647\u0644 \u0644\u062f\u064a\u0643 \u062d\u0633\u0627\u0628 \u0628\u0627\u0644\u0641\u0639\u0644\u061f",AGENT_ACCOUNT:"\u062d\u0633\u0627\u0628 \u0627\u0644\u0648\u0643\u064a\u0644",UNABLE_TO_CONNECT_TITLE:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0627\u0644\u0627\u062a\u0635\u0627\u0644",DISTANCE_ARROUND:"\u0645\u0646 \u062d\u0648\u0644\u0643",UNABLE_TO_CREATE_ACCOUNT:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628",TO_YOU:"\u0645\u0646\u0643\u0645",PHONE_NUMBER_ADMIN:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0629",FAILED_TEXT_CONTACT_ADMIN:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628 \u060c \u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0645\u0633\u0624\u0648\u0644\u064a\u0646",HYPERVISOR_MUST_VALIDATE_SUPERVISOR:"\u0633\u064a\u0643\u0648\u0646 \u0631\u0645\u0632\u0643 \u0627\u0644\u0635\u062d\u064a\u062d \u0647\u0648 \u0623\u0646 \u0645\u0634\u0631\u0641\u0643 \u064a\u0642\u0648\u0645 \u0628\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0635\u062d\u062a\u0647",ACCOUNT_SUCCESSFULL_CREATED:"\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0646\u062c\u0627\u062d. \u0633\u062a\u062a\u0644\u0642\u0649 \u0628\u0636\u0639 \u062f\u0642\u0627\u0626\u0642 \u0625\u0644\u0649 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0648\u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0635\u064a\u0629 \u0627\u0644\u0642\u0635\u064a\u0631\u0629 \u0645\u0639 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643.",langue:{french:"\u0627\u0644\u0641\u0631\u0646\u0633\u064a\u0629",english:"\u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629"},ERROR_FILTER:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u062a\u0635\u0641\u064a\u0629",ERROR_FILTER_TEXT:"\u062d\u062f\u062b\u062a \u0645\u0634\u0643\u0644\u0629 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u062a\u0635\u0641\u064a\u0629.",YOUR_THERE:"\u0623\u0646\u062a \u0647\u0646\u0627","\u0645\u0631\u0634\u062d":"\u062a\u0635\u0641\u064a\u0629",APP_FULLNAME:"Ilink World",GUIDE_TITLE:"\u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0643 \u0641\u064a \u062f\u0644\u064a\u0644",GUIDE_USER_SIMPLE:"\u062f\u0644\u064a\u0644 \u0645\u0633\u062a\u062e\u062f\u0645",GUIDE_AGENT:"\u062f\u0644\u064a\u0644 \u0648\u0643\u064a\u0644","\u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u062f\u064a\u062f \u0645\u0648\u0636\u0639":"\u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u062f\u064a\u062f \u0645\u0648\u0636\u0639",WRONG_PHONE_NUMBER:"\u0627\u0644\u0631\u0642\u0645 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d!",WRONG_PASSWORD:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629!",NETWORK_LOST:"\u0641\u0642\u062f \u0627\u0644\u0627\u062a\u0635\u0627\u0644!",SHOW:"\u0639\u0631\u0636",CALL:"Call",FORGOTTEN_PASSWORD:"\u0647\u0644 \u0646\u0633\u064a\u062a \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u061f",CONNECT_USER:"\u0627\u0644\u0627\u062a\u0635\u0627\u0644",PASSWORD:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",CONFIRM_PASSWORD:"\u062a\u0623\u0643\u064a\u062f \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",PASSWORD_MODIFY:"\u062a\u063a\u064a\u064a\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",OLD_PASSWORD:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u0642\u062f\u064a\u0645\u0629",NEW_PASSWORD:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u062c\u062f\u064a\u062f\u0629",CONFIRM_NEW_PASSWORD:"\u062a\u0623\u0643\u064a\u062f \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062c\u062f\u064a\u062f\u0629",AMOUNT:"\u0627\u0644\u0645\u0628\u0644\u063a",STATUS:"\u0627\u0644\u062d\u0627\u0644\u0629",CANCEL:"\u062e\u0631\u0648\u062c",TEXT_GUIDE_USER_1:"\u0644\u0642\u062f \u0642\u0645\u062a \u0644\u0644\u062a\u0648 \u0628\u0627\u0644\u0627\u062a\u0635\u0627\u0644. \n \u062a\u0645 \u0648\u0636\u0639 \u0639\u0644\u0627\u0645\u0629 \u0639\u0644\u0649 \u0645\u0648\u0642\u0639\u0643 \u0641\u064a \u0648\u0633\u0637 \u0627\u0644\u062e\u0631\u064a\u0637\u0629 \u0645\u0639 \u0627\u0644\u0625\u0634\u0627\u0631\u0629 \" \u0623\u0646\u062a \u0647\u0646\u0627 \"",TEXT_GUIDE_USER_3:"\u0633\u064a\u0624\u062f\u064a \u0627\u0644\u0646\u0642\u0631 \u0641\u0648\u0642 \u0632\u0631 \u0639\u0644\u0627\u0645\u0629 \u0632\u0627\u0626\u062f \u0625\u0644\u0649 \u0641\u062a\u062d \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a",TEXT_GUIDE_USER_4:"\u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u062d\u0648\u0644 \u0646\u0642\u0637\u0629",TEXT_GUIDE_USER_2:"\u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u0632\u0631 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0641\u064a \u0627\u0644\u062c\u0632\u0621 \u0627\u0644\u0639\u0644\u0648\u064a \u0627\u0644\u0623\u064a\u0645\u0646 \u0644\u0627\u0643\u062a\u0634\u0627\u0641 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0648\u062e\u064a\u0627\u0631 \u0642\u0637\u0639 \u0627\u0644\u0627\u062a\u0635\u0627\u0644",TEXT_GUIDE_USER_5:"\u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u062e\u064a\u0627\u0631 \u0627\u0644\u062a\u0635\u0641\u064a\u0629 \u0644\u062a\u0635\u0641\u064a\u0629 \u0627\u0644\u0646\u0642\u0627\u0637 \u0648\u0641\u0642\u064b\u0627 \u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0645\u0646\u0643",TEXT_GUIDE_USER_6:"\u0627\u0646\u0642\u0631 \u0641\u0648\u0642 \u062e\u064a\u0627\u0631 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0634\u0628\u0643\u0629 \u0644\u0639\u0631\u0636 \u0646\u0642\u0627\u0637 \u0627\u0644\u0634\u0628\u0643\u0627\u062a \u0627\u0644\u0623\u062e\u0631\u0649",TEXT_GUIDE_USER_7:"\u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u062e\u064a\u0627\u0631 \u062e\u0637 \u0633\u064a\u0631 \u0627\u0644\u0631\u062d\u0644\u0629 \u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u0633\u0627\u0631 \u0625\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629",TEXT_GUIDE_USER_10:"\u0631\u0627\u062c\u0639 \u0642\u0627\u0626\u0645\u0629 \u0623\u0639\u0636\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u062a\u0643",TEXT_GUIDE_USER_11:"\u0627\u0646\u0642\u0631 \u0641\u0648\u0642 \u062e\u064a\u0627\u0631 \u0645\u0644\u0641 \u0627\u0644\u062a\u0639\u0631\u064a\u0641 \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0631\u0627\u0628\u0637 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0625\u0644\u0649 \u062d\u0633\u0627\u0628\u0643",CATEGORY:"\u0627\u0644\u0641\u0626\u0629",WAY:"\u0627\u0644\u0633\u0641\u0631",ADD_NETWORK:"\u0625\u0636\u0627\u0641\u0629 \u0634\u0628\u0643\u0629",POINT_NUMBER:"\u0639\u062f\u062f \u0627\u0644\u0646\u0642\u0627\u0637",SUPERIOR_CODE:"\u0631\u0645\u0632 \u0627\u0644\u0631\u0627\u0639\u064a",ADD_SUCCES:"\u0625\u0636\u0627\u0641\u0629 \u0646\u0627\u062c\u062d",ADD_SUCCESS_TEXT:"\u062a\u0645\u062a \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0631\u0642\u0645 \u0625\u0644\u0649 \u0627\u0644\u0634\u0628\u0643\u0629 \u0628\u0646\u062c\u0627\u062d",MEMBER_CODE:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0636\u0648",MEMBER_INFO:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0623\u0639\u0636\u0627\u0621",DEMAND_INFO:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0628\u0646\u0627\u0621 \u0639\u0644\u0649 \u0627\u0644\u0637\u0644\u0628",ACCOUNT_NOT_ACTIVE:"\u062d\u0633\u0627\u0628\u0643 \u063a\u064a\u0631 \u0646\u0634\u0637",ENTER_VALIDATION_CODE:"\u0623\u062f\u062e\u0644 \u0631\u0645\u0632 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0635\u062d\u0629 \u0627\u0644\u0630\u064a \u062a\u0645 \u0625\u0631\u0633\u0627\u0644\u0647 \u0625\u0644\u064a\u0643.",ENTER_VALIDATION_CODE1:"\u0623\u062f\u062e\u0644 \u0631\u0645\u0632 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0635\u062d\u0629.",SUPERVISOR_NUMBER:"\u0639\u062f\u062f \u0627\u0644\u0645\u0634\u0631\u0641\u064a\u0646",GEOLOCATED_NUMBER:"\u0639\u062f\u062f \u0627\u0644\u0646\u0642\u0627\u0637 \u0644\u0643\u0644 \u0645\u0634\u0631\u0641",ACTIVATE_ACCOUNT:"\u062a\u0646\u0634\u064a\u0637 \u0627\u0644\u062d\u0633\u0627\u0628",SEND:"\u0625\u0631\u0633\u0627\u0644 !",CHANGE_INFORMATION:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u064a",VALIDATE:"\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0635\u062d\u0629",CONNECT:"\u0635\u0644\u0629",TEXT_BIG_CREATE_1:"\u0633\u062c\u0644 \u0643\u0645\u0633\u062a\u062e\u062f\u0645",TEXT_SUBTITLE_CREATE_1:"\u0627\u0645\u0644\u0623 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643 \u0627\u0644\u0634\u062e\u0635\u064a\u0629",USER_ACCOUNT:"\u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",USER_CONNECT:"\u062a\u0633\u062c\u064a\u0644 \u062f\u062e\u0648\u0644 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",GIVE_CONNECT_INFO:"\u0623\u062f\u062e\u0644 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643",CREATE_ACCOUNT:"\u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628",CHOOSE_LANGUAGE:"\u0627\u062e\u062a\u0631 \u0627\u0644\u0644\u063a\u0629",MODIFY_PASSWORD:"\u0646\u0633\u064a\u062a \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",CONTACT:"\u0627\u062a\u0635\u0627\u0644",UPDATE:"... \u062a\u062d\u062f\u064a\u062b",FAQ:"\u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a",UPDATE_POSITION_TEXT:"\u062a\u062d\u062f\u064a\u062b \u0645\u0648\u0642\u0639\u064a",YOU_ARE:"\u0623\u0646\u062a \u0623\u0646\u062a\u061f",GIVE_ID_FOR_RECOVERY:"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 , \u0648\u0633\u0648\u0641 \u0646\u0631\u0633\u0644 \u0644\u0643 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u062c\u062f\u064a\u062f\u0629.",SELECT_ACCOUNT_TYPE:"\u062d\u062f\u062f \u0646\u0648\u0639 \u0627\u0644\u062d\u0633\u0627\u0628!",BRAVO:"\u0623\u062d\u0633\u0646\u062a !",HELP_CONGRAT_MESSAGE:"\u0623\u0646\u062a \u062a\u0639\u0631\u0641 \u0627\u0644\u0622\u0646 \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 iLink",REPLAY_HELP:"\u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a",BACK_TO_HELP_HOME:"\u0627\u0644\u0631\u062c\u0648\u0639 \u0625\u0644\u0649 \u0627\u0644\u0645\u0633\u0627\u0639\u062f\u0629",USE_APP:"\u0627\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",HIDE_AT_STARTUP:"\u0625\u062e\u0641\u0627\u0621 \u0641\u064a \u0627\u0644\u0628\u062f\u0627\u064a\u0629 \u0627\u0644\u0642\u0627\u062f\u0645\u0629\u061f",PATH_YOU_ARE:"\u0623\u0646\u062a \u0641\u064a",PATH_TO_POINT:"\u0645\u0646 \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062a\u064a \u0642\u0645\u062a \u0628\u0627\u0644\u0646\u0642\u0631 \u0641\u0648\u0642\u0647\u0627.",PATH_YOU_WILL:"\u0623\u0646\u062a \u0633\u062a\u0643\u0648\u0646 \u0647\u0646\u0627\u0643",PRECISE_SEARCH:"\u062a\u062d\u0633\u064a\u0646 \u0628\u062d\u062b\u0643",SEARCH_DISTANCE:"\u0627\u0644\u0645\u0633\u0627\u0641\u0629",SEARCH_5:"5 \u0643\u0645",SEARCH_15:"15 \u0643\u0645",SEARCH_20:"20 \u0643\u0645",SEARCH_25:"25 \u0643\u0645",SEARCH:"\u0628\u062d\u062b",DELETE:"\u062d\u0630\u0641",FREE:"\u0645\u062a\u0627\u062d",SAVED:"\u0645\u0633\u062c\u0644",ACCOUNT_INFO:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u062d\u0633\u0627\u0628\u064a",REGISTER_YOURSELF:"Register","\u0627\u0644\u062a\u0633\u062c\u064a\u0644":"\u0627\u0644\u062a\u0633\u062c\u064a\u0644",CHANGE_LANG_LABEL:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0644\u063a\u0629",GIVE_PERSONNAL_INFO:"\u0627\u0645\u0644\u0623 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643 \u0627\u0644\u0634\u062e\u0635\u064a\u0629",YOUR_GEOLOCATION:"\u0645\u0648\u0642\u0639\u0643",HISTORY_REQUEST:"\u0633\u062c\u0644 \u0627\u0644\u0637\u0644\u0628\u0627\u062a",ASK_REQUEST_HISTORY:"\u0637\u0644\u0628 \u0633\u062c\u0644",GIVE_HISTORY_INFO:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u062d\u0648\u0644 \u062a\u0627\u0631\u064a\u062e\u0643",HISTORY_TYPE:"\u0627\u0644\u0646\u0648\u0639",HISTORY_TYPE_ASK:"\u0627\u0644\u0637\u0644\u0628\u0627\u062a",REQUEST_RECEIVE:"\u0627\u0644\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u0644\u0645\u0629",MY_DEMANDE:"\u0637\u0644\u0628\u0627\u062a\u064a",PHONE_TRANSACTION:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0629",DEMAND_TEXT_FIRST_PART:"\u0642\u062f\u0645 \u0637\u0644\u0628\u064b\u0627",REQUEST_SEND:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628",TO_:"\u0627\u0626\u062a\u0645\u0627\u0646 \u0639\u0644\u0649",DEMAND_SEND_SUCCESFUL:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628\u0643 \u0628\u0646\u062c\u0627\u062d!",SAVE_HISTORY:"\u062d\u0641\u0638 \u0627\u0644\u0633\u062c\u0644",MAKE_REQUEST:"\u062a\u0642\u062f\u064a\u0645 \u0637\u0644\u0628",DATE_WRONG:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u0623\u0646 \u064a\u0643\u0648\u0646 \u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0627\u0646\u062a\u0647\u0627\u0621 \u0623\u0642\u062f\u0645 \u0645\u0646 \u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0628\u062f\u0621",LOADING_DOTS:"\u0627\u0644\u062a\u062d\u0645\u064a\u0644\u0627\u062a ...",EMPTY_LIST_REQUEST:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0637\u0644\u0628",MEMBER_LIST:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0639\u0636\u0627\u0621",FREE_CODE_LIST:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0645\u0648\u0632 \u0627\u0644\u0645\u062a\u0627\u062d\u0629",NO_ITEM_REQUEST:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0639\u0646\u0627\u0635\u0631 \u0645\u0637\u0627\u0628\u0642\u0629 ,",MEMBERSHIP_REQUEST:"\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0639\u0636\u0648\u064a\u0629",HISTORY_TYPE_REQUEST:"\u0627\u0633\u062a\u0639\u0644\u0627\u0645\u0627\u062a",TREAT:"\u0645\u0639\u0627\u0647\u062f\u0629",EXIT_TITLE:"\u0623\u063a\u0644\u0642 iLink World!",EXIT_DESC:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0642\u064b\u0627 \u0625\u063a\u0644\u0627\u0642 iLink World\u061f",NO_TREAT:"\u063a\u064a\u0631 \u0645\u0639\u0627\u0644\u062c",EXIT:"\u0623\u063a\u0644\u0642",PERIOD:"\u0641\u062a\u0631\u0629",Disconnection:"\u0627\u0644\u062e\u0631\u0648\u062c",DISCONNEXION_TEXT:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0628\u0627\u0644\u062a\u0623\u0643\u064a\u062f \u0642\u0637\u0639 \u0627\u0644\u0627\u062a\u0635\u0627\u0644\u061f \u0633\u064a\u0624\u062f\u064a \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621 \u0625\u0644\u0649 \u0645\u0633\u062d \u062c\u0645\u064a\u0639 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0627\u0644\u0645\u0624\u0642\u062a\u0629.",HISTORY_START:"\u0627\u0628\u062f\u0623",YES:"\u0646\u0639\u0645 \u0641\u0639\u0644\u0627",NO:"\u0644\u0627",CONNECTION_LOST_CHECK:"\u0641\u0642\u062f\u062a \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u060c \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u062a\u0635\u0627\u0644\u0643!",ACCOUNT_ACTIVATE_TEXT:"\u062a\u0645 \u062a\u0646\u0634\u064a\u0637 \u062d\u0633\u0627\u0628\u0643 \u0628\u0646\u062c\u0627\u062d!",HISTORY_END:"\u0627\u0644\u0646\u0647\u0627\u064a\u0629",DONT_VALIDATE_ACCOUNT:"\u0627\u0644\u062d\u0633\u0627\u0628 \u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646\u0647",CONNECTION_SUCCESSFULL_TEXT:"\u062a\u0633\u062c\u064a\u0644 \u062f\u062e\u0648\u0644 \u0646\u0627\u062c\u062d \u0645\u0631\u062d\u0628\u064b\u0627 \u0628\u0643 \u0641\u064a iLink World!",UNVALIDATE_ACCOUNT_TEXT:"\u0644\u0645 \u064a\u062f\u0642\u0642 \u0628\u0631\u0646\u0627\u0645\u062c Hypervisor \u0641\u064a \u062d\u0633\u0627\u0628\u0643 \u0628\u0639\u062f",TEXT_NEED_POSITION:"\u0627\u0644\u0631\u062c\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0645\u0648\u0642\u0639\u0643!",TITLE_NEED_POSITION:"\u064a\u0644\u0632\u0645 \u062a\u062d\u062f\u064a\u062b \u0645\u0648\u0642\u0639\u0643",POSITION_UPDATE_SUCCESS_TEXT:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0645\u0648\u0642\u0639\u0643 \u0628\u0646\u062c\u0627\u062d!",UPDATE_SUCCESS:"\u062a\u062d\u062f\u064a\u062b \u0646\u0627\u062c\u062d!",TITLE_UPDATE_POSITION_FAILED:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u062a\u062d\u062f\u064a\u062b \u0645\u0648\u0642\u0639\u0643",TEXT_UPDATE_POSITION_FAILED_1:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0627\u0633\u062a\u0631\u062f\u0627\u062f \u0631\u0645\u0632 \u0627\u0644\u0639\u0636\u0648 \u0627\u0644\u062e\u0627\u0635 \u0628\u0643",TEXT_UPDATE_POSITION_FAILED_2:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0645\u0648\u0642\u0639\u0643",TITLE_ERROR_SURVENU:"\u0644\u0642\u062f \u062d\u062f\u062b \u062e\u0637\u0623!",TITLE_PROBLE_COME:"\u062d\u062f\u062b\u062a \u0645\u0634\u0643\u0644\u0629",TEXT_ERROR_START_APPLICATION:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0628\u062f\u0621 iLink World \u060c \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 iLink World",TEXT_UNABLE_TO_GET_YOUR_POSITION:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0645\u0648\u0642\u0639\u0643 \u060c \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u062a\u0645\u0643\u064a\u0646 GPS \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 \u0648\u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 iLink World",RESTART:"\u0643\u0631\u0631",TEXT_UNABLE_TO_GET_COUNTRY_INFO:"\u063a\u064a\u0631 \u0642\u0627\u062f\u0631 \u0639\u0644\u0649 \u0627\u0633\u062a\u0631\u062f\u0627\u062f \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0645\u0646 \u0628\u0644\u062f\u0643. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u062a\u0635\u0627\u0644\u0643 \u0628\u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a. \u0627\u0646\u0642\u0631 \u0641\u0648\u0642 \u0645\u0648\u0627\u0641\u0642 \u0644\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",TITLE_UNABLE_TO_AUTORISE:"\u0641\u0634\u0644 \u0627\u0644\u062a\u0641\u0648\u064a\u0636",MISSING_AUTORISATION_LOCATION:"iLink World \u063a\u064a\u0631 \u0645\u062e\u0648\u0644 \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0645\u0648\u0642\u0639\u0643 \u060c \u064a\u0631\u062c\u0649 \u0627\u0644\u0633\u0645\u0627\u062d \u0644\u0640 iLink World \u0628\u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0645\u0648\u0642\u0639\u0643 \u0648\u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 iLink World",TEXT_FORGOTTEN_PASSWORD:"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 \u060c \u0648\u0633\u0646\u0631\u0633\u0644 \u0644\u0643 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u062c\u062f\u064a\u062f\u0629",TEXT_NETWORK_UNABLE:"\u0627\u0644\u0634\u0628\u0643\u0629 \u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631\u0629 \u060c \u0647\u0644 \u062a\u0631\u064a\u062f \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649\u061f",LOADING_TEXT_MARKERS:"\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0646\u0642\u0627\u0637",LOADING_TEXT_MARKERS_2:"around\u060c",UNABLE_GET_INFORMATION:"\u0645\u0634\u0643\u0644\u0629 \u0627\u0633\u062a\u0631\u062c\u0627\u0639 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",UNABLE_GET_INFORMATION_TEXT:"\u062a\u0623\u0643\u062f \u0645\u0646 \u062a\u0634\u063a\u064a\u0644 GPS \u0648\u0648\u0636\u0639\u0647 \u0641\u064a \u0648\u0636\u0639 \u0627\u0644\u062f\u0642\u0629 \u0627\u0644\u0639\u0627\u0644\u064a\u0629 \u0648\u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 iLink World",ACCOUNT_CREATED_SUCCESS:"\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0646\u062c\u0627\u062d. \u0633\u0648\u0641 \u062a\u062a\u0644\u0642\u0649 \u0641\u064a \u0628\u0636\u0639 \u062f\u0642\u0627\u0626\u0642 \u0631\u0633\u0627\u0644\u0629 \u0628\u0631\u064a\u062f \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0648\u0631\u0633\u0627\u0644\u0629 \u0646\u0635\u064a\u0629 \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643. \u0633\u0646\u0642\u0648\u0645 \u0628\u0625\u0639\u0627\u062f\u0629 \u062a\u0648\u062c\u064a\u0647\u0643 \u0625\u0644\u0649 \u0635\u0641\u062d\u0629 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",TITLE_HELP_SOON:"\u0645\u0633\u0627\u0639\u062f\u0629 \u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631\u0629!",HELP_SOON:"\u0633\u064a\u0643\u0648\u0646 \u0647\u0646\u0627\u0643 \u0628\u0631\u0646\u0627\u0645\u062c \u062a\u0639\u0644\u064a\u0645\u064a \u064a\u0633\u0627\u0639\u062f\u0643 \u0641\u064a \u0641\u0647\u0645 \u0645\u064a\u0632\u0627\u062a \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0642\u0631\u064a\u0628\u064b\u0627."}},810,[]); -__d(function(e,o,r,i,n,E,s){n.exports={WELCOME:"Bienvenue sur iLink World !",WAITING_LONG:"Veuillez patienter un instant",HELP:"Aide",SIMPLE_USER:"Utilisateur simple",ABOUT:"A Propos",ABOUT_TEXT:"iLink est une application qui facilitera vos transactions financi\xe8res pr\xe8s de votre position, et vous donne les points multiservices pr\xeat de chez vous.",GEOLOCATED_USER:"Utilisateur g\xe9o-localis\xe9",SUPERVISOR:"Superviseur",AGENT:"Agent",USER:"Utilisateur",HYPERVISOR:"Hyperviseur",OPEN:"Ouvert",POSITION:"Ma position",TAKE_MY_PLACE:"Prendre ma position",MAP:"La carte",BSR:"Bonsoir",ACCOUNT_CREATED_SUCCESS:"Le compte a \xe9t\xe9 cr\xe9e avec succ\xe8s.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",OR_BIG:"OU",FOR_NUMB:"Pour le ",FILTER_DATE:"Filtre de date",SUBTITLE_ACTIVE_ACCOUNT:"Activez votre compte \xe0 l'aide du code qui a \xe9t\xe9 envoy\xe9 sur votre mail ou votre num\xe9ro de t\xe9l\xe9phone",ASK_FOR_CREDIT:"Demander du cr\xe9dit",ASK_CREDIT:"Demandes de cr\xe9dit",ASK_SUPERIOR_CREDIT:"Demander du cr\xe9dit \xe0 votre sup\xe9rieur",ASK_FOR_SUPERVISOR:"Demandes de superviseurs",ASK_HYPERVISOR:"Devenir Hyperviseur",ASK_FOR_HYPERVISOR:"Demander \xe0 devenir hyperviseur",ASK_SUPERVISOR:"Devenir Superviseur",ASK_FOR_SUPERVISOR1:"Demander \xe0 devenir superviseur",CREDIT_ASK_FROM_MEMBERS:"Demandes de cr\xe9dit de vos membres",ASK_MEMBERS:"Demandes d'adh\xe9sion",MY_ACCOUNT:"Mon compte",THE_ACCOUNT:"Le compte ",NO_GEO_POINT_CODE:"Vous n'avez aucun point geolocalis\xe9 libre",NO_DEMAND_ADHESION:"Vous n'avez aucune demande d'adhesion",ACTIVATED:"a \xe9t\xe9 activ\xe9",CREDIT_MANAGE:"Gestion de credit",GROUP_MANAGE:"Gestion du groupe",NOTIFICATIONS:"Notification",NO_NOTIFICATION:"Vous n'avez aucune notification",CONFIGURATIONS:"Configuration",LOGOUT:"D\xe9connexion",HINT_HOME_SEARCH:" Chercher un lieu, quartier ou ville ",MY_NETWORK:"Mon R\xe9seau",MY_GROUP:"Mon groupe",CHANGE_MAP:"Changer de carte",CHANGE_NETWORK:"Changer de reseau",PRINT_ALL:"Tout Afficher",PRINT_MY_NETWORK:"Afficher mon reseau",MY_GROUP_MAP:"Carte de mon groupe",GROUP_MEMBERS:"Les membres du groupe",NAME:"Nom (s)",FIRSTNAME:"Pr\xe9nom (s) ",ADMIN:"Administrateur",SUPER_ADMIN:"Super administrateur",GEOLOCATED:"Agent g\xe9o-localis\xe9",DELETE_GEOLOCATED_USER:"Supprimer",ADDRESS:"Adresse",CREDIT:"Cr\xe9dit",NEXT:"Suivant",SPONSOR_CODE:"Code parrain",SOLDE_UNVAIBLE:"solde non disponible",TEXT_BIG_CREATE_AGENT_1:"Inscrivez-vous en comme Agent",EMAIL:"Email",COUNTRY:"Pays",LOADING_INFO:"Chargement des informations...",LOADING_DESCRIPTION_COUNTRY:"Patientez un instant ! nous r\xe9cuperons les informations sur votre pays...",NETWORK:"R\xe9seau",PHONE:"T\xe9lephone",PHONE_NUMBER:"Num\xe9ro de t\xe9l\xe9phone",CHOICE_NETWORK:"Choisissez un r\xe9seau",COUNTRY_CHOICE:"Choisissez un pays",LAST_STEP:"Derniere \xe9tape",ACTIVE_ACCOUNT:"Activez le compte !",LAST_STEP_TEXT:"Activez votre compte \xe0 l'aide du code de validation qui vous a \xe9t\xe9 envoy\xe9 sur votre adresse e-mail et sur votre numero de t\xe9l\xe9phone",NETWORK_CHOICE:"Choix du r\xe9seau",CHOICE_NETWORK_TEXT:"Definir un r\xe9seau \xe0 afficher",NO_NETWORK_CORRESPONDING:"Ce r\xe9seau n'a aucun point",MENU_FILTER:" Menu Filtre de distance",MY_DEMAND:"Mes demandes",TEXT_FILTER_DISTANCE:"Definir la distance \xe0 chercher (en km ) ",WAIT_LOADING_POSITION:"Nous avons besoin de la position de votre lieu de travail",CONNEXION_SUCCESSFUL:"Connexion r\xe9ussie !",UNABLE_TO_CONNECT:"Le num\xe9ro de t\xe9l\xe9phone et le mot de passe sont incorrects",TITLE_CHOICE_TYPE_ACCOUNT:"Choisissez le type de compte que vous souhaitez cr\xe9er",ALREADY_HAVE_AN_ACCOUNT:"Avez-vous d\xe9j\xe0 un compte ?",AGENT_ACCOUNT:"Compte Agent",UNABLE_TO_CONNECT_TITLE:"Impossible de se connecter",DISTANCE_ARROUND:"Autour de vous",UNABLE_TO_CREATE_ACCOUNT:"Impossible de cr\xe9er un compte ",TO_YOU:" de vous",TREAT_DEMAND:"D\xe9j\xe0 trait\xe9",PHONE_NUMBER_ADMIN:"Num\xe9ro de transaction",FAILED_TEXT_CONTACT_ADMIN:"Impossible de cr\xe9er un compte veuillez contacter les administrateurs",HYPERVISOR_MUST_VALIDATE_SUPERVISOR:"Votre code de validation vous sera envoy\xe9 une fois que votre Hyperviseur l'aura valid\xe9",ACCOUNT_SUCCESSFULL_CREATED:"Le compte a \xe9t\xe9 cr\xe9e avec succ\xe8s.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",langue:{french:"Francais",english:"Anglais"},ERROR_FILTER:"Erreur survenue lors du filtre",ERROR_FILTER_TEXT:"Probleme rencontr\xe9 lors du filtrage.",YOUR_THERE:"Vous \xeates ici",FILTER:"Filtrer",QUIT:"Quitter",APP_FULLNAME:"Ilink World",GUIDE_TITLE:"Bienvenue dans le Guide de",GUIDE_USER_SIMPLE:"Guide pour un utilisateur",GUIDE_AGENT:"Guide pour un agent",REPOSITIONNING:"Repositionner",WRONG_PHONE_NUMBER:"Num\xe9ro incorrect !",WRONG_PASSWORD:"Mot de passe incorrect !",NETWORK_LOST:"Connexion perdue !",SHOW:"Afficher",CALL:"Appeler",FORGOTTEN_PASSWORD:"Mots de passe oubli\xe9 ?",CONNECT_USER:"Se connecter",PASSWORD:"Mot de passe",CONFIRM_PASSWORD:"Confirmez le mot de passe",PASSWORD_MODIFY:"Modifiez votre mot de passe",OLD_PASSWORD:"Ancien mot de passe",NEW_PASSWORD:"Nouveau mot de passe",CONFIRM_NEW_PASSWORD:"Confirmerzle nouveau mot de passe",AMOUNT:"Montant",STATUS:"Statut",CANCEL:"Quitter",TEXT_GUIDE_USER_1:"Vous venez de vous Connecter.\n Votre localisation est marqu\xe9e au centre de la carte avec l'indication \"Vous \xeates ici\" ",TEXT_GUIDE_USER_3:"En cliquant sur le bouton '+' vous ouvrirez le menu d'options",TEXT_GUIDE_USER_4:"Cliquez sur un marqueur pour avoir les informations sur un point",TEXT_GUIDE_USER_2:"Cliquez sur le bouton de menu en haut \xe0 droite pour decouvrir le menu et l'option de d\xe9connexion",TEXT_GUIDE_USER_5:"Cliquez sur l'option 'Filtrer' pour filtrer vos points en fonction de leur distance par rapport \xe0 vous",TEXT_GUIDE_USER_6:"Cliquez sur l'option 'Changer de reseau ' pour afficher les points d'autres reseaux",TEXT_GUIDE_USER_7:"Cliquez sur l'option ' Itineraire' pour afficher le chemin \xe0 suivre pour ce rendre vers le point",TEXT_GUIDE_USER_10:"Consultez la liste des membre de votre groupe",TEXT_GUIDE_USER_11:"Cliquez sur l'option de profil pour avoir des informations lier \xe0 votre compte",CATEGORY:"Cat\xe9gorie",WAY:"Itin\xe9raire",ADD_NETWORK:"Ajouter un r\xe9seau",POINT_NUMBER:"Nombres de points",SUPERIOR_CODE:"Code parrain",ADD_SUCCES:"Ajout reussi",ADD_SUCCESS_TEXT:"Le num\xe9ro a \xe9t\xe9 ajout\xe9 au reseau avec succ\xe8s ",MEMBER_CODE:"Code membre",MEMBER_INFO:"Information du membre",DEMAND_INFO:"Information sur la demande",ACCOUNT_NOT_ACTIVE:"Votre compte n'est pas activ\xe9",ENTER_VALIDATION_CODE:"Saisissez le code de validation qui vous a \xe9t\xe9 envoy\xe9.",ENTER_VALIDATION_CODE1:"Saisissez le code de validation.",SUPERVISOR_NUMBER:"Nombre de superviseurs",GEOLOCATED_NUMBER:"Nombre de points par superviseur",ACTIVATE_ACCOUNT:"Activer le compte",SEND:"Envoyer !",CHANGE_INFORMATION:"Modifier mes informations",VALIDATE:"Valider",CONNECT:"Connexion",TEXT_BIG_CREATE_1:"Inscrivez vous en tant qu'Utilisateur",TEXT_SUBTITLE_CREATE_1:"Renseignez vos informations personnelles",USER_ACCOUNT:"Compte Utilisateur",USER_CONNECT:"Connexion utilisateur",GIVE_CONNECT_INFO:"Entrez vos informations de connexion",CREATE_ACCOUNT:"cr\xe9er un compte",CHOOSE_LANGUAGE:"Choisir la langue",MODIFY_PASSWORD:"Mot de passe oubli\xe9",CONTACT:"Contact",UPDATE:"... mise \xe0 jour",FAQ:"FAQ",UPDATE_POSITION_TEXT:"Mettre \xe0 jour ma position",YOU_ARE:"Vous \xeates ?",GIVE_ID_FOR_RECOVERY:"Saisissez votre identifiant, nous vous enverrons un nouveau mot de passe.",SELECT_ACCOUNT_TYPE:"S\xe9lectionnez un type de compte !",BRAVO:"Bravo !",HELP_CONGRAT_MESSAGE:"Vous savez maintenant comment utiliser iLink",REPLAY_HELP:"Revoir le didacticiel",BACK_TO_HELP_HOME:"Revenir \xe0 l'aide",USE_APP:"Utiliser l'application",HIDE_AT_STARTUP:"Masquer au prochain d\xe9marrage ?",PATH_YOU_ARE:"Vous \xeates \xe0 ",PATH_TO_POINT:" du point que vous avez cliqu\xe9.",PATH_YOU_WILL:"Vous y serez en ",PRECISE_SEARCH:"Affinez votre recherche",SEARCH_DISTANCE:"Distance",SEARCH_5:"5 km",SEARCH_15:"15 km",SEARCH_20:"20 km",SEARCH_25:"25 km",SEARCH:"Rechercher",SEE_VIDEO:"Voir la vid\xe9o",SEE_TUTO:"Voir le tutoriel",DELETE:"Supprimer",FREE:"disponibles",SAVED:"enregistr\xe9s",ACCOUNT_INFO:" Information sur mon compte",REGISTER_YOURSELF:"Enregistrez-vous",REGISTRATION:"Inscription",CHANGE_LANG_LABEL:"Changer la langue",GIVE_PERSONNAL_INFO:"Renseignez vos information personnelles",YOUR_GEOLOCATION:"Votre localisation",HISTORY_REQUEST:"Historique des demandes",ASK_REQUEST_HISTORY:"Demander un historique",GIVE_HISTORY_INFO:"Informations sur votre historique",HISTORY_TYPE:"Type",HISTORY_TYPE_ASK:"Demandes",DEMANDE_RECEIVE:"Demandes re\xe7ues",MY_DEMANDE:"Mes demandes",PHONE_TRANSACTION:"Num\xe9ro de transaction",DEMAND_TEXT_FIRST_PART:"a effectu\xe9 une demande de ",DEMANDE_SEND:" Demande Envoy\xe9e",DEMAND_RECEIVE:"Demandes re\xe7ues",TO_:" cr\xe9dit aupr\xe8s de ",DEMAND_SEND_SUCCESFUL:"Votre demande a \xe9t\xe9 envoy\xe9e avec succ\xe8s !",SAVE_HISTORY:"Enregistrer l'historique",MAKE_REQUEST:"Faire une demande",DATE_WRONG:"La date de fin ne peut \xeatre ant\xe9rieure \xe0 la date de d\xe9but",LOADING_DOTS:"Chargement...",LOADING_PROGRESS:"Chargement en cours",EMPTY_LIST_REQUEST:"Aucune demande",MEMBER_LIST:"Liste des membres",FREE_CODE_LIST:"Liste des codes disponibles",NO_ITEM_REQUEST:"Aucun \xe9l\xe9ment ne correspond",MEMBERSHIP_REQUEST:"Demandes d'adh\xe9sion",HISTORY_TYPE_REQUEST:"Requ\xeates",TREAT:"Trait\xe9",EXIT_TITLE:"Fermer iLink World !",EXIT_DESC:"Voulez-vous vraiment fermer iLink World ?",NO_TREAT:"Non trait\xe9",EXIT:"Fermer",PERIOD:"P\xe9riode",DISCONNEXION:"D\xe9connexion",DISCONNEXION_TEXT:"Voulez-vous vraiment vous deconnecter ? Cette action effacera toutes vos donn\xe9es temporaires.",HISTORY_START:"D\xe9but",YES:"Oui",NO:"Non",CONNEXION_LOST_CHECK:"Connexion perdue. Veuillez v\xe9rifier votre connexion !",ACCOUNT_ACTIVATE_TEXT:"Votre compte a \xe9t\xe9 activ\xe9 avec succ\xe8s !",HISTORY_END:"Fin",DONT_VALIDATE_ACCOUNT:"Compte non valid\xe9",CONNEXION_SUCCESSFULL_TEXT:"Connexion r\xe9ussie. Bienvenue dans iLink World ! ",UNVALIDATE_ACCOUNT_TEXT:"Votre hyperviseur n'a pas encore valid\xe9 votre compte",TEXT_NEED_POSITION:"Veuillez mettre \xe0 jour votre position !",TITLE_NEED_POSITION:"Votre position doit \xeatre mise \xe0 jour",POSITION_UPDATE_SUCCESS_TEXT:"Votre position a \xe9t\xe9 mise \xe0 jour avec succ\xe8s !",UPDATE_SUCCESS:"Mise \xe0 jour reussie !",TITLE_UPDATE_POSITION_FAILED:"Impossible de mettre \xe0 jour votre position",TEXT_UPDATE_POSITION_FAILED_1:"Impossible de recuperer votre code membre",TEXT_UPDATE_POSITION_FAILED_2:"Impossible de recuperer votre position",TITLE_ERROR_SURVENU:"Une erreur est survenue !",TITLE_PROBLE_COME:"Un probl\xe8me a \xe9t\xe9 rencontr\xe9",TEXT_ERROR_START_APPLICATION:"Une erreur est survenue au d\xe9marrage de iLink World. Veuillez relancer iLink World",TEXT_UNABLE_TO_GET_YOUR_POSITION:"Impossible de recup\xe9rez votre position. Veuillez verifier que votre GPS est activ\xe9 et relancez iLink World",RESTART:"RECOMMENCER",TEXT_UNABLE_TO_GET_COUNTRY_INFO:"Impossible de recup\xe9rer les informations de votre pays. Verifiez votre connexion internet ! cliquez sur \"Ok\" pour reessayer",TITLE_UNABLE_TO_AUTORISE:"Echec de l'autorisation",MISSING_AUTORISATION_LOCATION:"iLink World n'est pas autoris\xe9 \xe0 acceder \xe0 votre position. Veuillez autoriser iLink World \xe0 acc\xe9der \xe0 votre localisation et relancez iLink World",TEXT_FORGOTTEN_PASSWORD:"Saisissez votre identifiant,nous vous enverrons un nouveau mot de passe\n",TEXT_NETWORK_UNABLE:"R\xe9seau non disponible, voulez vous r\xe9essayer ?",LOADING_TEXT_MARKERS:"Suite des points ",LOADING_TEXT_MARKERS_2:"autour",UNABLE_GET_INFORMATION:"Probl\xe8me de r\xe9cuperation des Informations",UNABLE_GET_INFORMATION_TEXT:"V\xe9rifiez que votre GPS est activ\xe9 et mis en mode haute precision et relancez iLink World",TITLE_HELP_SOON:"Aide non disponible !",HELP_SOON:"Un tutoriel vous aidant dans la compr\xe9hension des fonctionnalit\xe9s de l'application vous sera bient\xf4t mis \xe0 disposition."}},811,[]); +__d(function(e,o,r,i,n,E,s){n.exports={WELCOME:"Bienvenue sur iLink World !",WAITING_LONG:"Veuillez patienter un instant",HELP:"Aide",SIMPLE_USER:"Utilisateur simple",ABOUT:"A Propos",ACTION_TREAT_DEMAND:"Traiter la demande",ABOUT_TEXT:"iLink est une application qui facilitera vos transactions financi\xe8res pr\xe8s de votre position, et vous donne les points multiservices pr\xeat de chez vous.",GEOLOCATED_USER:"Utilisateur g\xe9o-localis\xe9",SUPERVISOR:"Superviseur",AGENT:"Agent",USER:"Utilisateur",HYPERVISOR:"Hyperviseur",OPEN:"Ouvert",POSITION:"Ma position",TAKE_MY_PLACE:"Prendre ma position",MAP:"La carte",BSR:"Bonsoir",ACCOUNT_CREATED_SUCCESS:"Le compte a \xe9t\xe9 cr\xe9e avec succ\xe8s.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",OR_BIG:"OU",FOR_NUMB:"Pour le ",FILTER_DATE:"Filtre de date",SUBTITLE_ACTIVE_ACCOUNT:"Activez votre compte \xe0 l'aide du code qui a \xe9t\xe9 envoy\xe9 sur votre mail ou votre num\xe9ro de t\xe9l\xe9phone",ASK_FOR_CREDIT:"Demander du cr\xe9dit",ASK_CREDIT:"Demandes de cr\xe9dit",ASK_SUPERIOR_CREDIT:"Demander du cr\xe9dit \xe0 votre sup\xe9rieur",ASK_FOR_SUPERVISOR:"Demandes de superviseurs",ASK_HYPERVISOR:"Devenir Hyperviseur",ASK_FOR_HYPERVISOR:"Demander \xe0 devenir hyperviseur",ASK_SUPERVISOR:"Devenir Superviseur",ASK_FOR_SUPERVISOR1:"Demander \xe0 devenir superviseur",CREDIT_ASK_FROM_MEMBERS:"Demandes de cr\xe9dit de vos membres",ASK_MEMBERS:"Demandes d'adh\xe9sion",MY_ACCOUNT:"Mon compte",THE_ACCOUNT:"Le compte ",NO_GEO_POINT_CODE:"Vous n'avez aucun point geolocalis\xe9 libre",NO_DEMAND_ADHESION:"Vous n'avez aucune demande d'adhesion",ACTIVATED:"a \xe9t\xe9 activ\xe9",CREDIT_MANAGE:"Gestion de credit",GROUP_MANAGE:"Gestion du groupe",NOTIFICATIONS:"Notification",NO_NOTIFICATION:"Vous n'avez aucune notification",CONFIGURATIONS:"Configuration",LOGOUT:"D\xe9connexion",HINT_HOME_SEARCH:" Chercher un lieu, quartier ou ville ",MY_NETWORK:"Mon R\xe9seau",MY_GROUP:"Mon groupe",CHANGE_MAP:"Changer de carte",CHANGE_NETWORK:"Changer de reseau",PRINT_ALL:"Tout Afficher",PRINT_MY_NETWORK:"Afficher mon reseau",MY_GROUP_MAP:"Carte de mon groupe",GROUP_MEMBERS:"Les membres du groupe",NAME:"Nom (s)",FIRSTNAME:"Pr\xe9nom (s) ",ADMIN:"Administrateur",SUPER_ADMIN:"Super administrateur",GEOLOCATED:"Agent g\xe9o-localis\xe9",DELETE_GEOLOCATED_USER:"Supprimer",ADDRESS:"Adresse",CREDIT:"Cr\xe9dit",NEXT:"Suivant",SPONSOR_CODE:"Code parrain",SOLDE_UNVAIBLE:"solde non disponible",TEXT_BIG_CREATE_AGENT_1:"Inscrivez-vous en comme Agent",EMAIL:"Email",COUNTRY:"Pays",LOADING_INFO:"Chargement des informations...",LOADING_DESCRIPTION_COUNTRY:"Patientez un instant ! nous r\xe9cuperons les informations sur votre pays...",NETWORK:"R\xe9seau",PHONE:"T\xe9lephone",PHONE_NUMBER:"Num\xe9ro de t\xe9l\xe9phone",CHOICE_NETWORK:"Choisissez un r\xe9seau",COUNTRY_CHOICE:"Choisissez un pays",LAST_STEP:"Derniere \xe9tape",ACTIVE_ACCOUNT:"Activez le compte !",LAST_STEP_TEXT:"Activez votre compte \xe0 l'aide du code de validation qui vous a \xe9t\xe9 envoy\xe9 sur votre adresse e-mail et sur votre numero de t\xe9l\xe9phone",NETWORK_CHOICE:"Choix du r\xe9seau",CHOICE_NETWORK_TEXT:"Definir un r\xe9seau \xe0 afficher",NO_NETWORK_CORRESPONDING:"Ce r\xe9seau n'a aucun point",MENU_FILTER:" Menu Filtre de distance",MY_DEMAND:"Mes demandes",TEXT_FILTER_DISTANCE:"Definir la distance \xe0 chercher (en km ) ",WAIT_LOADING_POSITION:"Nous avons besoin de la position de votre lieu de travail",CONNEXION_SUCCESSFUL:"Connexion r\xe9ussie !",UNABLE_TO_CONNECT:"Le num\xe9ro de t\xe9l\xe9phone et le mot de passe sont incorrects",TITLE_CHOICE_TYPE_ACCOUNT:"Choisissez le type de compte que vous souhaitez cr\xe9er",ALREADY_HAVE_AN_ACCOUNT:"Avez-vous d\xe9j\xe0 un compte ?",AGENT_ACCOUNT:"Compte Agent",UNABLE_TO_CONNECT_TITLE:"Impossible de se connecter",DISTANCE_ARROUND:"Autour de vous",UNABLE_TO_CREATE_ACCOUNT:"Impossible de cr\xe9er un compte ",TO_YOU:" de vous",TREAT_DEMAND:"D\xe9j\xe0 trait\xe9",PHONE_NUMBER_ADMIN:"Num\xe9ro de transaction",FAILED_TEXT_CONTACT_ADMIN:"Impossible de cr\xe9er un compte veuillez contacter les administrateurs",HYPERVISOR_MUST_VALIDATE_SUPERVISOR:"Votre code de validation vous sera envoy\xe9 une fois que votre Hyperviseur l'aura valid\xe9",ACCOUNT_SUCCESSFULL_CREATED:"Le compte a \xe9t\xe9 cr\xe9e avec succ\xe8s.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",langue:{french:"Francais",english:"Anglais"},ERROR_FILTER:"Erreur survenue lors du filtre",ERROR_FILTER_TEXT:"Probleme rencontr\xe9 lors du filtrage.",YOUR_THERE:"Vous \xeates ici",FILTER:"Filtrer",QUIT:"Quitter",QUIT_:"Quitter",APP_FULLNAME:"Ilink World",GUIDE_TITLE:"Bienvenue dans le Guide de",GUIDE_USER_SIMPLE:"Guide pour un utilisateur",GUIDE_AGENT:"Guide pour un agent",REPOSITIONNING:"Repositionner",WRONG_PHONE_NUMBER:"Num\xe9ro incorrect !",WRONG_PASSWORD:"Mot de passe incorrect !",NETWORK_LOST:"Connexion perdue !",SHOW:"Afficher",CALL:"Appeler",FORGOTTEN_PASSWORD:"Mots de passe oubli\xe9 ?",CONNECT_USER:"Se connecter",PASSWORD:"Mot de passe",CONFIRM_PASSWORD:"Confirmez le mot de passe",PASSWORD_MODIFY:"Modifiez votre mot de passe",OLD_PASSWORD:"Ancien mot de passe",NEW_PASSWORD:"Nouveau mot de passe",CONFIRM_NEW_PASSWORD:"Confirmerzle nouveau mot de passe",AMOUNT:"Montant",STATUS:"Statut",CANCEL:"Quitter",TEXT_GUIDE_USER_1:"Vous venez de vous Connecter.\n Votre localisation est marqu\xe9e au centre de la carte avec l'indication \"Vous \xeates ici\" ",TEXT_GUIDE_USER_3:"En cliquant sur le bouton '+' vous ouvrirez le menu d'options",TEXT_GUIDE_USER_4:"Cliquez sur un marqueur pour avoir les informations sur un point",TEXT_GUIDE_USER_2:"Cliquez sur le bouton de menu en haut \xe0 droite pour decouvrir le menu et l'option de d\xe9connexion",TEXT_GUIDE_USER_5:"Cliquez sur l'option 'Filtrer' pour filtrer vos points en fonction de leur distance par rapport \xe0 vous",TEXT_GUIDE_USER_6:"Cliquez sur l'option 'Changer de reseau ' pour afficher les points d'autres reseaux",TEXT_GUIDE_USER_7:"Cliquez sur l'option ' Itineraire' pour afficher le chemin \xe0 suivre pour ce rendre vers le point",TEXT_GUIDE_USER_10:"Consultez la liste des membre de votre groupe",TEXT_GUIDE_USER_11:"Cliquez sur l'option de profil pour avoir des informations lier \xe0 votre compte",CATEGORY:"Cat\xe9gorie",WAY:"Itin\xe9raire",ADD_NETWORK:"Ajouter un r\xe9seau",POINT_NUMBER:"Nombres de points",SUPERIOR_CODE:"Code parrain",ADD_SUCCES:"Ajout reussi",ADD_SUCCESS_TEXT:"Le num\xe9ro a \xe9t\xe9 ajout\xe9 au reseau avec succ\xe8s ",MEMBER_CODE:"Code membre",MEMBER_INFO:"Information du membre",DEMAND_INFO:"Information sur la demande",ACCOUNT_NOT_ACTIVE:"Votre compte n'est pas activ\xe9",ENTER_VALIDATION_CODE:"Saisissez le code de validation qui vous a \xe9t\xe9 envoy\xe9.",ENTER_VALIDATION_CODE1:"Saisissez le code de validation.",SUPERVISOR_NUMBER:"Nombre de superviseurs",GEOLOCATED_NUMBER:"Nombre de points par superviseur",ACTIVATE_ACCOUNT:"Activer le compte",SEND:"Envoyer !",CHANGE_INFORMATION:"Modifier mes informations",VALIDATE:"Valider",CONNECT:"Connexion",TEXT_BIG_CREATE_1:"Inscrivez vous en tant qu'Utilisateur",TEXT_SUBTITLE_CREATE_1:"Renseignez vos informations personnelles",USER_ACCOUNT:"Compte Utilisateur",USER_CONNECT:"Connexion utilisateur",GIVE_CONNECT_INFO:"Entrez vos informations de connexion",CREATE_ACCOUNT:"cr\xe9er un compte",CHOOSE_LANGUAGE:"Choisir la langue",MODIFY_PASSWORD:"Mot de passe oubli\xe9",CONTACT:"Contact",UPDATE:"... mise \xe0 jour",FAQ:"FAQ",UPDATE_POSITION_TEXT:"Mettre \xe0 jour ma position",YOU_ARE:"Vous \xeates ?",GIVE_ID_FOR_RECOVERY:"Saisissez votre identifiant, nous vous enverrons un nouveau mot de passe.",SELECT_ACCOUNT_TYPE:"S\xe9lectionnez un type de compte !",BRAVO:"Bravo !",HELP_CONGRAT_MESSAGE:"Vous savez maintenant comment utiliser iLink",REPLAY_HELP:"Revoir le didacticiel",BACK_TO_HELP_HOME:"Revenir \xe0 l'aide",USE_APP:"Utiliser l'application",HIDE_AT_STARTUP:"Masquer au prochain d\xe9marrage ?",PATH_YOU_ARE:"Vous \xeates \xe0 ",PATH_TO_POINT:" du point que vous avez cliqu\xe9.",PATH_YOU_WILL:"Vous y serez en ",PRECISE_SEARCH:"Affinez votre recherche",SEARCH_DISTANCE:"Distance",SEARCH_5:"5 km",SEARCH_15:"15 km",SEARCH_20:"20 km",SEARCH_25:"25 km",SEARCH:"Rechercher",SEE_VIDEO:"Voir la vid\xe9o",SEE_TUTO:"Voir le tutoriel",SELECT_NETWORK:"S\xe9lectionner votre r\xe9seau",DELETE:"Supprimer",FREE:"disponibles",SAVED:"enregistr\xe9s",ACCOUNT_INFO:" Information sur mon compte",REGISTER_YOURSELF:"Enregistrez-vous",REGISTRATION:"Inscription",CHANGE_LANG_LABEL:"Changer la langue",GIVE_PERSONNAL_INFO:"Renseignez vos information personnelles",YOUR_GEOLOCATION:"Votre localisation",HISTORY_REQUEST:"Historique des demandes",ASK_REQUEST_HISTORY:"Demander un historique",GIVE_HISTORY_INFO:"Informations sur votre historique",HISTORY_TYPE:"Type",HISTORY_TYPE_ASK:"Demandes",DEMANDE_RECEIVE:"Demandes re\xe7ues",MY_DEMANDE:"Mes demandes",PHONE_TRANSACTION:"Num\xe9ro de transaction",DEMAND_TEXT_FIRST_PART:"a effectu\xe9 une demande de ",DEMANDE_SEND:" Demande Envoy\xe9e",DEMAND_RECEIVE:"Demandes re\xe7ues",TO_:" cr\xe9dit aupr\xe8s de ",DEMAND_SEND_SUCCESFUL:"Votre demande a \xe9t\xe9 envoy\xe9e avec succ\xe8s !",SAVE_HISTORY:"Enregistrer l'historique",MAKE_REQUEST:"Faire une demande",DATE_WRONG:"La date de fin ne peut \xeatre ant\xe9rieure \xe0 la date de d\xe9but",LOADING_DOTS:"Chargement...",LOADING_PROGRESS:"Chargement en cours",EMPTY_LIST_REQUEST:"Aucune demande",MEMBER_LIST:"Liste des membres",FREE_CODE_LIST:"Liste des codes disponibles",NO_ITEM_REQUEST:"Aucun \xe9l\xe9ment ne correspond",MEMBERSHIP_REQUEST:"Demandes d'adh\xe9sion",HISTORY_TYPE_REQUEST:"Requ\xeates",TREAT:"Trait\xe9",EXIT_TITLE:"Fermer iLink World !",EXIT_DESC:"Voulez-vous vraiment fermer iLink World ?",NO_TREAT:"Non trait\xe9",EXIT:"Fermer",PERIOD:"P\xe9riode",DISCONNEXION:"D\xe9connexion",DISCONNEXION_TEXT:"Voulez-vous vraiment vous deconnecter ? Cette action effacera toutes vos donn\xe9es temporaires.",HISTORY_START:"D\xe9but",YES:"Oui",NO:"Non",CONNEXION_LOST_CHECK:"Connexion perdue. Veuillez v\xe9rifier votre connexion !",ACCOUNT_ACTIVATE_TEXT:"Votre compte a \xe9t\xe9 activ\xe9 avec succ\xe8s !",HISTORY_END:"Fin",DONT_VALIDATE_ACCOUNT:"Compte non valid\xe9",CONNEXION_SUCCESSFULL_TEXT:"Connexion r\xe9ussie. Bienvenue dans iLink World ! ",UNVALIDATE_ACCOUNT_TEXT:"Votre hyperviseur n'a pas encore valid\xe9 votre compte",TEXT_NEED_POSITION:"Veuillez mettre \xe0 jour votre position !",TITLE_NEED_POSITION:"Votre position doit \xeatre mise \xe0 jour",POSITION_UPDATE_SUCCESS_TEXT:"Votre position a \xe9t\xe9 mise \xe0 jour avec succ\xe8s !",UPDATE_SUCCESS:"Mise \xe0 jour reussie !",TITLE_UPDATE_POSITION_FAILED:"Impossible de mettre \xe0 jour votre position",TEXT_UPDATE_POSITION_FAILED_1:"Impossible de recuperer votre code membre",TEXT_UPDATE_POSITION_FAILED_2:"Impossible de recuperer votre position",TITLE_ERROR_SURVENU:"Une erreur est survenue !",TITLE_PROBLE_COME:"Un probl\xe8me a \xe9t\xe9 rencontr\xe9",TITLE_SUPPRESS_CONFIRM:"Confirmation de suppression",TEXT_SUPPRESS_CONFIRM:"Voulez vous vraiment supprimer cet utilisateur ?",TEXT_ERROR_START_APPLICATION:"Une erreur est survenue au d\xe9marrage de iLink World. Veuillez relancer iLink World",TEXT_UNABLE_TO_GET_YOUR_POSITION:"Impossible de recup\xe9rez votre position. Veuillez verifier que votre GPS est activ\xe9 et relancez iLink World",RESTART:"RECOMMENCER",TEXT_UNABLE_TO_GET_COUNTRY_INFO:"Impossible de recup\xe9rer les informations de votre pays. Verifiez votre connexion internet ! cliquez sur \"Ok\" pour reessayer",TITLE_UNABLE_TO_AUTORISE:"Echec de l'autorisation",MISSING_AUTORISATION_LOCATION:"iLink World n'est pas autoris\xe9 \xe0 acceder \xe0 votre position. Veuillez autoriser iLink World \xe0 acc\xe9der \xe0 votre localisation et relancez iLink World",TEXT_FORGOTTEN_PASSWORD:"Saisissez votre identifiant,nous vous enverrons un nouveau mot de passe\n",TEXT_NETWORK_UNABLE:"R\xe9seau non disponible, voulez vous r\xe9essayer ?",LOADING_TEXT_MARKERS:"Suite des points ",LOADING_TEXT_MARKERS_2:"autour",UNABLE_GET_INFORMATION:"Probl\xe8me de r\xe9cuperation des Informations",UNABLE_GET_INFORMATION_TEXT:"V\xe9rifiez que votre GPS est activ\xe9 et mis en mode haute precision et relancez iLink World",TITLE_HELP_SOON:"Aide non disponible !",HELP_SOON:"Un tutoriel vous aidant dans la compr\xe9hension des fonctionnalit\xe9s de l'application vous sera bient\xf4t mis \xe0 disposition."}},811,[]); __d(function(E,R,_,O,S,A,T){S.exports={WELCOME:"\u6b22\u8fce\u6765\u5230iLink",HELP:"\u5e2e\u52a9\u4f7f\u7528",SIMPLE_USER:"\u7b80\u5355\u7684\u7528\u6237",GEOLOCATED_USER:"\u5730\u7406\u4f4d\u7f6e\u5b9a\u4f4d\u7684\u7528\u6237",SUPERVISOR:"\u76d1",HYPERVISOR:"\u7ba1\u7406\u7a0b\u5e8f",OPEN:"\u5f00\u653e",POSITION:"\u6211\u7684\u4f4d\u7f6e",ASK_FOR_CREDIT:"\u8981\u6c42\u4fe1\u7528",ASK_CREDIT:"\u4fe1\u8d37\u7533\u8bf7",ASK_SUPERIOR_CREDIT:"\u8bf7\u6c42\u60a8\u7684\u7ecf\u7406\u4fe1\u7528",ASK_FOR_SUPERVISOR:"\u4e3b\u7ba1\u7684\u8981\u6c42",ASK_HYPERVISOR:"\u6210\u4e3a\u7ba1\u7406\u7a0b\u5e8f",ASK_FOR_HYPERVISOR:"\u8981\u6c42\u6210\u4e3a\u7ba1\u7406\u7a0b\u5e8f",ASK_SUPERVISOR:"\u6210\u4e3a\u4e3b\u7ba1",ASK_FOR_SUPERVISOR1:"\u8981\u6c42\u6210\u4e3a\u4e00\u540d\u4e3b\u7ba1",CREDIT_ASK_FROM_MEMBERS:"\u6765\u81ea\u60a8\u7684\u4f1a\u5458\u7684\u4fe1\u7528\u7533\u8bf7",ASK_MEMBERS:"\u4f1a\u5458\u7533\u8bf7",MY_ACCOUNT:"\u6211\u7684\u5e10\u6237",LOGOUT:"\u6ce8\u9500",MY_GROUP_MAP:"\u6211\u7684\u5c0f\u7ec4\u5730\u56fe",GROUP_MEMBERS:"\u5c0f\u7ec4\u6210\u5458",NAME:"\u540d",FIRSTNAME:"\u540d\u5b57",ADDRESS:"\u5730\u5740",CREDIT:"\u4fe1\u7528",EMAIL:"\u7535\u5b50\u90ae\u4ef6",COUNTRY:"\u56fd\u5bb6",NETWORK:"\u7f51\u7edc",PHONE:"\u7535\u8bdd",PASSWORD:"\u5bc6\u7801",CONFIRM_PASSWORD:"\u786e\u8ba4\u5bc6\u7801",PASSWORD_MODIFY:"\u66f4\u6539\u60a8\u7684\u5bc6\u7801",OLD_PASSWORD:"\u65e7\u5bc6\u7801",NEW_PASSWORD:"\u65b0\u5bc6\u7801",CONFIRM_NEW_PASSWORD:"\u786e\u8ba4\u65b0\u5bc6\u7801",AMOUNT:"\u91cf",STATUS:"\u72b6\u6001",CATEGORY:"\u7c7b\u522b",POINT_NUMBER:"\u70b9\u6570",SUPERIOR_CODE:"\u8d5e\u52a9\u5546\u4ee3\u7801",MEMBER_CODE:"\u4f1a\u5458\u4ee3\u7801",ACCOUNT_NOT_ACTIVE:"\u60a8\u7684\u5e10\u6237\u672a\u88ab\u6fc0\u6d3b",ENTER_VALIDATION_CODE:"\u8f93\u5165\u53d1\u9001\u7ed9\u60a8\u7684\u9a8c\u8bc1\u7801\u3002",ENTER_VALIDATION_CODE1:"\u8f93\u5165\u9a8c\u8bc1\u7801\u3002",SUPERVISOR_NUMBER:"\u4e3b\u7ba1\u4eba\u6570",GEOLOCATED_NUMBER:"\u6bcf\u4e2a\u4e3b\u7ba1\u7684\u70b9\u6570",ACTIVATE_ACCOUNT:"\u6fc0\u6d3b\u5e10\u6237",SEND:"\u9001\uff01",VALIDATE:"\u9a8c\u8bc1",CONNECT:"\u767b\u5f55",USER_CONNECT:"\u7528\u6237\u767b\u5f55",GIVE_CONNECT_INFO:"\u8f93\u5165\u60a8\u7684\u767b\u5f55\u4fe1\u606f",CREATE_ACCOUNT:"\u6216\u8005\u521b\u5efa\u4e00\u4e2a\u5e10\u6237",MODIFY_PASSWORD:"\u5fd8\u8bb0\u5bc6\u7801",CONTACT:"\u63a5\u89e6",UPDATE:"... \u66f4\u65b0",FAQ:"\u5e38\u95ee\u95ee\u9898",YOU_ARE:"\u4f60\u662f\uff1f",GIVE_ID_FOR_RECOVERY:"\u8f93\u5165\u60a8\u7684\u7528\u6237\u540d\uff0c\u6211\u4eec\u4f1a\u5411\u60a8\u53d1\u9001\u4e00\u4e2a\u65b0\u5bc6\u7801\u3002",SELECT_ACCOUNT_TYPE:"\u9009\u62e9\u4e00\u4e2a\u5e10\u6237\u7c7b\u578b\uff01",BRAVO:"\u606d\u559c\uff01",HELP_CONGRAT_MESSAGE:"\u60a8\u73b0\u5728\u77e5\u9053\u5982\u4f55\u4f7f\u7528iLink",REPLAY_HELP:"\u67e5\u770b\u6559\u7a0b",BACK_TO_HELP_HOME:"\u8fd4\u56de\u5e2e\u52a9",USE_APP:"\u4f7f\u7528\u8be5\u5e94\u7528\u7a0b\u5e8f",HIDE_AT_STARTUP:"\u5728\u4e0b\u6b21\u5f00\u59cb\u65f6\u9690\u85cf\uff1f",PATH_YOU_ARE:"\u4f60\u5728 ",PATH_TO_POINT:" \u4ece\u4f60\u70b9\u51fb\u7684\u70b9\u3002",PATH_YOU_WILL:"\u4f60\u4f1a\u5728\u90a3\u91cc ",PRECISE_SEARCH:"\u4f18\u5316\u60a8\u7684\u641c\u7d22",SEARCH_DISTANCE:"\u8ddd\u79bb",SEARCH_5:"5\u516c\u91cc",SEARCH_15:"15\u516c\u91cc",SEARCH_20:"20\u516c\u91cc",SEARCH_25:"25\u516c\u91cc",SEARCH:"\u641c\u7d22",DELETE:"\u6e05\u9664",REGISTER_YOURSELF:"\u6ce8\u518c",REGISTRATION:"\u6ce8\u518c",GIVE_PERSONNAL_INFO:"\u586b\u5199\u60a8\u7684\u4e2a\u200b\u200b\u4eba\u4fe1\u606f",YOUR_GEOLOCATION:"\u4f60\u7684\u4f4d\u7f6e",REQUEST_HISTORY:"\u8acb\u6c42\u6b77\u53f2\u8a18\u9304",ASK_REQUEST_HISTORY:"\u7d22\u53d6\u6b77\u53f2\u8a18\u9304",GIVE_HISTORY_INFO:"\u6709\u95dc\u60a8\u7684\u6b77\u53f2\u7684\u4fe1\u606f",HISTORY_TYPE:"\u985e\u578b",HISTORY_TYPE_ASK:"\u8acb\u6c42",HISTORY_TYPE_REQUEST:"\u67e5\u8a62",HISTORY_START:"\u958b\u59cb",HISTORY_END:"\u7d50\u675f"}},812,[]); __d(function(e,a,d,o,c,n,i){c.exports=[{name:"Afghanistan",dial_code:"+93",code:"AF"},{name:"\xc5land Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL"},{name:"Algeria",dial_code:"+213",code:"DZ"},{name:"American Samoa",dial_code:"+1684",code:"AS"},{name:"Andorra",dial_code:"+376",code:"AD"},{name:"Angola",dial_code:"+244",code:"AO"},{name:"Anguilla",dial_code:"+1264",code:"AI"},{name:"Antarctica",dial_code:"+672",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG"},{name:"Argentina",dial_code:"+54",code:"AR"},{name:"Armenia",dial_code:"+374",code:"AM"},{name:"Aruba",dial_code:"+297",code:"AW"},{name:"Australia",dial_code:"+61",code:"AU"},{name:"Austria",dial_code:"+43",code:"AT"},{name:"Azerbaijan",dial_code:"+994",code:"AZ"},{name:"Bahamas",dial_code:"+1242",code:"BS"},{name:"Bahrain",dial_code:"+973",code:"BH"},{name:"Bangladesh",dial_code:"+880",code:"BD"},{name:"Barbados",dial_code:"+1246",code:"BB"},{name:"Belarus",dial_code:"+375",code:"BY"},{name:"Belgium",dial_code:"+32",code:"BE"},{name:"Belize",dial_code:"+501",code:"BZ"},{name:"Benin",dial_code:"+229",code:"BJ"},{name:"Bermuda",dial_code:"+1441",code:"BM"},{name:"Bhutan",dial_code:"+975",code:"BT"},{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA"},{name:"Botswana",dial_code:"+267",code:"BW"},{name:"Bouvet Island",dial_code:"+47",code:"BV"},{name:"Brazil",dial_code:"+55",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG"},{name:"Burkina Faso",dial_code:"+226",code:"BF"},{name:"Burundi",dial_code:"+257",code:"BI"},{name:"Cambodia",dial_code:"+855",code:"KH"},{name:"Cameroon",dial_code:"+237",code:"CM"},{name:"Canada",dial_code:"+1",code:"CA"},{name:"Cape Verde",dial_code:"+238",code:"CV"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY"},{name:"Central African Republic",dial_code:"+236",code:"CF"},{name:"Chad",dial_code:"+235",code:"TD"},{name:"Chile",dial_code:"+56",code:"CL"},{name:"China",dial_code:"+86",code:"CN"},{name:"Christmas Island",dial_code:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC"},{name:"Colombia",dial_code:"+57",code:"CO"},{name:"Comoros",dial_code:"+269",code:"KM"},{name:"Congo",dial_code:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK"},{name:"Costa Rica",dial_code:"+506",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR"},{name:"Cuba",dial_code:"+53",code:"CU"},{name:"Cyprus",dial_code:"+357",code:"CY"},{name:"Czech Republic",dial_code:"+420",code:"CZ"},{name:"Denmark",dial_code:"+45",code:"DK"},{name:"Djibouti",dial_code:"+253",code:"DJ"},{name:"Dominica",dial_code:"+1767",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",code:"DO"},{name:"Ecuador",dial_code:"+593",code:"EC"},{name:"Egypt",dial_code:"+20",code:"EG"},{name:"El Salvador",dial_code:"+503",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ"},{name:"Eritrea",dial_code:"+291",code:"ER"},{name:"Estonia",dial_code:"+372",code:"EE"},{name:"Ethiopia",dial_code:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO"},{name:"Fiji",dial_code:"+679",code:"FJ"},{name:"Finland",dial_code:"+358",code:"FI"},{name:"France",dial_code:"+33",code:"FR"},{name:"French Guiana",dial_code:"+594",code:"GF"},{name:"French Polynesia",dial_code:"+689",code:"PF"},{name:"French Southern Territories",dial_code:"+262",code:"TF"},{name:"Gabon",dial_code:"+241",code:"GA"},{name:"Gambia",dial_code:"+220",code:"GM"},{name:"Georgia",dial_code:"+995",code:"GE"},{name:"Germany",dial_code:"+49",code:"DE"},{name:"Ghana",dial_code:"+233",code:"GH"},{name:"Gibraltar",dial_code:"+350",code:"GI"},{name:"Greece",dial_code:"+30",code:"GR"},{name:"Greenland",dial_code:"+299",code:"GL"},{name:"Grenada",dial_code:"+1473",code:"GD"},{name:"Guadeloupe",dial_code:"+590",code:"GP"},{name:"Guam",dial_code:"+1671",code:"GU"},{name:"Guatemala",dial_code:"+502",code:"GT"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW"},{name:"Guyana",dial_code:"+592",code:"GY"},{name:"Haiti",dial_code:"+509",code:"HT"},{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA"},{name:"Honduras",dial_code:"+504",code:"HN"},{name:"Hong Kong",dial_code:"+852",code:"HK"},{name:"Hungary",dial_code:"+36",code:"HU"},{name:"Iceland",dial_code:"+354",code:"IS"},{name:"India",dial_code:"+91",code:"IN"},{name:"Indonesia",dial_code:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR"},{name:"Iraq",dial_code:"+964",code:"IQ"},{name:"Ireland",dial_code:"+353",code:"IE"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL"},{name:"Italy",dial_code:"+39",code:"IT"},{name:"Jamaica",dial_code:"+1876",code:"JM"},{name:"Japan",dial_code:"+81",code:"JP"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO"},{name:"Kazakhstan",dial_code:"+7",code:"KZ"},{name:"Kenya",dial_code:"+254",code:"KE"},{name:"Kiribati",dial_code:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR"},{name:"Kosovo",dial_code:"+383",code:"XK"},{name:"Kuwait",dial_code:"+965",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG"},{name:"Laos",dial_code:"+856",code:"LA"},{name:"Latvia",dial_code:"+371",code:"LV"},{name:"Lebanon",dial_code:"+961",code:"LB"},{name:"Lesotho",dial_code:"+266",code:"LS"},{name:"Liberia",dial_code:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY"},{name:"Liechtenstein",dial_code:"+423",code:"LI"},{name:"Lithuania",dial_code:"+370",code:"LT"},{name:"Luxembourg",dial_code:"+352",code:"LU"},{name:"Macao",dial_code:"+853",code:"MO"},{name:"Macedonia",dial_code:"+389",code:"MK"},{name:"Madagascar",dial_code:"+261",code:"MG"},{name:"Malawi",dial_code:"+265",code:"MW"},{name:"Malaysia",dial_code:"+60",code:"MY"},{name:"Maldives",dial_code:"+960",code:"MV"},{name:"Mali",dial_code:"+223",code:"ML"},{name:"Malta",dial_code:"+356",code:"MT"},{name:"Marshall Islands",dial_code:"+692",code:"MH"},{name:"Martinique",dial_code:"+596",code:"MQ"},{name:"Mauritania",dial_code:"+222",code:"MR"},{name:"Mauritius",dial_code:"+230",code:"MU"},{name:"Mayotte",dial_code:"+262",code:"YT"},{name:"Mexico",dial_code:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM"},{name:"Moldova",dial_code:"+373",code:"MD"},{name:"Monaco",dial_code:"+377",code:"MC"},{name:"Mongolia",dial_code:"+976",code:"MN"},{name:"Montenegro",dial_code:"+382",code:"ME"},{name:"Montserrat",dial_code:"+1664",code:"MS"},{name:"Morocco",dial_code:"+212",code:"MA"},{name:"Mozambique",dial_code:"+258",code:"MZ"},{name:"Myanmar",dial_code:"+95",code:"MM"},{name:"Namibia",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",code:"NR"},{name:"Nepal",dial_code:"+977",code:"NP"},{name:"Netherlands",dial_code:"+31",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN"},{name:"New Caledonia",dial_code:"+687",code:"NC"},{name:"New Zealand",dial_code:"+64",code:"NZ"},{name:"Nicaragua",dial_code:"+505",code:"NI"},{name:"Niger",dial_code:"+227",code:"NE"},{name:"Nigeria",dial_code:"+234",code:"NG"},{name:"Niue",dial_code:"+683",code:"NU"},{name:"Norfolk Island",dial_code:"+672",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP"},{name:"Norway",dial_code:"+47",code:"NO"},{name:"Oman",dial_code:"+968",code:"OM"},{name:"Pakistan",dial_code:"+92",code:"PK"},{name:"Palau",dial_code:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG"},{name:"Paraguay",dial_code:"+595",code:"PY"},{name:"Peru",dial_code:"+51",code:"PE"},{name:"Philippines",dial_code:"+63",code:"PH"},{name:"Pitcairn",dial_code:"+64",code:"PN"},{name:"Poland",dial_code:"+48",code:"PL"},{name:"Portugal",dial_code:"+351",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",code:"PR"},{name:"Qatar",dial_code:"+974",code:"QA"},{name:"Romania",dial_code:"+40",code:"RO"},{name:"Russia",dial_code:"+7",code:"RU"},{name:"Rwanda",dial_code:"+250",code:"RW"},{name:"Reunion",dial_code:"+262",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",code:"LC"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC"},{name:"Samoa",dial_code:"+685",code:"WS"},{name:"San Marino",dial_code:"+378",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",code:"SA"},{name:"Senegal",dial_code:"+221",code:"SN"},{name:"Serbia",dial_code:"+381",code:"RS"},{name:"Seychelles",dial_code:"+248",code:"SC"},{name:"Sierra Leone",dial_code:"+232",code:"SL"},{name:"Singapore",dial_code:"+65",code:"SG"},{name:"Slovakia",dial_code:"+421",code:"SK"},{name:"Slovenia",dial_code:"+386",code:"SI"},{name:"Solomon Islands",dial_code:"+677",code:"SB"},{name:"Somalia",dial_code:"+252",code:"SO"},{name:"South Africa",dial_code:"+27",code:"ZA"},{name:"South Sudan",dial_code:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS"},{name:"Spain",dial_code:"+34",code:"ES"},{name:"Sri Lanka",dial_code:"+94",code:"LK"},{name:"Sudan",dial_code:"+249",code:"SD"},{name:"Suriname",dial_code:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ"},{name:"Swaziland",dial_code:"+268",code:"SZ"},{name:"Sweden",dial_code:"+46",code:"SE"},{name:"Switzerland",dial_code:"+41",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG"},{name:"Tokelau",dial_code:"+690",code:"TK"},{name:"Tonga",dial_code:"+676",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT"},{name:"Tunisia",dial_code:"+216",code:"TN"},{name:"Turkey",dial_code:"+90",code:"TR"},{name:"Turkmenistan",dial_code:"+993",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC"},{name:"Tuvalu",dial_code:"+688",code:"TV"},{name:"Uganda",dial_code:"+256",code:"UG"},{name:"Ukraine",dial_code:"+380",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",code:"AE"},{name:"United Kingdom",dial_code:"+44",code:"GB"},{name:"United States",dial_code:"+1",code:"US"},{name:"Uruguay",dial_code:"+598",code:"UY"},{name:"Uzbekistan",dial_code:"+998",code:"UZ"},{name:"Vanuatu",dial_code:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF"},{name:"Yemen",dial_code:"+967",code:"YE"},{name:"Zambia",dial_code:"+260",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",code:"ZW"}]},813,[]); __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/datas/img",width:464,height:131,scales:[1],hash:"cd059f3761a85df25dd81343dcb711ed",name:"icon3",type:"png"})},814,[175]); @@ -1155,8 +1155,8 @@ __d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';return t.d __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.sendDemandeSpecificque=e.sendDemande=e.updateCreditDemand=e.loadMyDemandeCredit=e.loadDemandeCredit=void 0;var o=n(r(d[2])),c=(t(r(d[3])),n(r(d[4]))),s=r(d[5]),u=r(d[6]);r(d[7]).DBEvents,r(d[8]);e.loadDemandeCredit=function(){var t,n,l,p;return o.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,o.default.awrap((0,u.readUser)());case 2:return t=f.sent,n={tag:"credit_demands",id:t.code_membre,lang:c.default.currentLocale(),test:s.isDebugMode},f.next=6,o.default.awrap(fetch(s.demandeActionUrl,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(n)}));case 6:return l=f.sent,f.prev=7,console.log(l),f.next=11,o.default.awrap(l.json());case 11:return p=f.sent,console.log(p),f.abrupt("return",p);case 16:return f.prev=16,f.t0=f.catch(7),console.log(l.text()),f.abrupt("return",[]);case 20:case"end":return f.stop()}},null,null,[[7,16]],Promise)};e.loadMyDemandeCredit=function(){var t,n,l,p;return o.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,o.default.awrap((0,u.readUser)());case 2:return t=f.sent,n={tag:"credit_demands_of_agent",id:t.agentId,lang:c.default.currentLocale(),test:s.isDebugMode},console.log(n),f.next=7,o.default.awrap(fetch(s.demandeActionUrl,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(n)}));case 7:return l=f.sent,f.prev=8,console.log(l,"my demande"),f.next=12,o.default.awrap(l.json());case 12:return p=f.sent,console.log(p),f.abrupt("return",p);case 17:return f.prev=17,f.t0=f.catch(8),f.abrupt("return",[]);case 20:case"end":return f.stop()}},null,null,[[8,17]],Promise)};e.updateCreditDemand=function(t,n){var o={tag:"update_ask_credit",phone:t,id:n,lang:c.default.currentLocale(),test:s.isDebugMode};return fetch(s.demandeActionUrl,{method:"POST",headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(o)}).then(function(t){return t.json()}).then(function(t){return t}).catch(function(t){console.warn(t)})};e.sendDemande=function(t){var n,l,p,f,h;return o.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,o.default.awrap((0,u.readUser)());case 2:if(void 0===(n=b.sent)||void 0===n.code_parrain||void 0===n.code_membre||n.code_membre===n.code_parrain){b.next=24;break}return l={tag:"ask_credit",phone:n.phone,code:n.code,lang:c.default.currentLocale(),test:s.isDebugMode,montant:t},b.next=7,o.default.awrap(fetch(s.demandeActionUrl,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(l)}));case 7:return p=b.sent,f="",b.prev=9,b.next=12,o.default.awrap(p.text());case 12:return f=b.sent,h=JSON.parse(f),b.abrupt("return",h);case 17:return b.prev=17,b.t0=b.catch(9),console.log(p),console.log("error",f),b.abrupt("return",[]);case 22:b.next=25;break;case 24:return b.abrupt("return",-1);case 25:case"end":return b.stop()}},null,null,[[9,17]],Promise)};e.sendDemandeSpecificque=function(t,n,u){var l,p,f;return o.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l={tag:"ask_credit",phone:n,test:s.isDebugMode,code:u,montant:t,lang:c.default.currentLocale()},h.next=3,o.default.awrap(fetch(s.demandeActionUrl,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(l)}));case 3:return p=h.sent,h.prev=4,h.next=7,o.default.awrap(p.json());case 7:return f=h.sent,console.log(f),h.abrupt("return",f);case 12:return h.prev=12,h.t0=h.catch(4),console.log(p),console.warn(h.t0),h.abrupt("return",[]);case 17:case"end":return h.stop()}},null,null,[[4,12]],Promise)}},1149,[4,1,273,15,712,736,711,738,714]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),u=n(r(d[3])),c=n(r(d[4])),l=n(r(d[5])),s=n(r(d[6])),f=n(r(d[7])),v=t(r(d[8])),h=r(d[9]),p=(n(r(d[10])),n(r(d[11]))),k=r(d[12]),y=(n(r(d[13])),r(d[14]),r(d[15])),I=r(d[16]),N=n(r(d[17])),A=n(r(d[18])),O=r(d[19]),T=r(d[20]),C=n(r(d[21])),E=(t(r(d[22])),n(r(d[23]))),S=r(d[24]);r(d[14]);r(d[25]);r(d[26]).DBEvents;var b=r(d[15]),U=(function(t){function n(t){var u;return(0,o.default)(this,n),(u=(0,c.default)(this,(0,l.default)(n).call(this,t)))._renderItem=function(t){if("creditrequest"===t||'historyItemDetails'===t||'filter'===t||'networks'===t)return null;u.state.currentId===t.id&&b.accent;return v.default.createElement(h.TouchableOpacity,{onPress:function(){u.props.navigation.toggleDrawer(),u.setState({currentId:t.id}),u.props.navigation.navigate(t)}},v.default.createElement(h.View,{style:M.content},v.default.createElement(p.default,{name:u.getIcon(t),size:32}),v.default.createElement(h.Text,{style:{marginLeft:20,fontSize:16}},u.getNameItems(t))))},u._onPress=function(t){u.setState({currentId:t.id});var n=u.state.menu.filter(function(t){return t.active})[0];n.active=!1,t.active=!0;var o=[];u.state.menu.forEach(function(u){u.id===n.id?o.push(n):u.id===t.id?o.push(t):o.push(u)}),u.setState({menu:o})},u.state=u.initState(),O.IlinkEmitter.on("menuLink",u.onMenuNavigationEvent.bind((0,s.default)(u))),O.IlinkEmitter.on("userconnect",u.onUserConnect.bind((0,s.default)(u))),O.IlinkEmitter.on("userdisconnect",u.hideSideMenu.bind((0,s.default)(u))),O.IlinkEmitter.on("langueChange",u.updateLangue.bind((0,s.default)(u))),u.configuration=new E.default,u}return(0,f.default)(n,t),(0,u.default)(n,[{key:"retrieveAndroidInformation",value:function(){var t=this;return this.configuration._getData().then(function(n){if(n)N.default.locale=n,(0,I.readUser)().then(function(n){setTimeout(function(){t.updateUser(n)},3e3)});else{var o=C.default.getDeviceLocale();N.default.locale=o.toLowerCase(),(0,I.readUser)().then(function(n){setTimeout(function(){t.updateUser(n)},3e3)}).catch(function(n){t.props.navigation.navigate("Auth")})}}).catch(function(n){var o=C.default.getDeviceLocale();N.default.locale=o.toLowerCase(),(0,I.readUser)().then(function(n){setTimeout(function(){t.updateUser(n)},3e3)}).catch(function(n){t.props.navigation.navigate("Auth")})}),""}},{key:"componentDidMount",value:function(){var t=this.props.navigation.router.childRouters.sta.childRouters;this.setState({items:t}),this.retrieveAndroidInformation()}},{key:"updateLangue",value:function(){this.setState({lang:"change"}),this.forceUpdate()}},{key:"componentWillUnmount",value:function(){}},{key:"onMenuNavigationEvent",value:function(t){}},{key:"onUserConnect",value:function(){var t=this;(0,I.readUser)().then(function(n){null!==n&&void 0!==n&&t.updateUser(n)})}},{key:"onNavigatorEvent",value:function(t){}},{key:"hideSideMenu",value:function(){}},{key:"initState",value:function(){return{user:null,menu:[],currentId:0}}},{key:"getGeolocatedUserMenu",value:function(){return[{title:N.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:N.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:N.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:N.default.t('ADD_NETWORK'),id:11,key:11,icon:'md-people',active:!1},{title:N.default.t('CHANGE_INFORMATION'),id:13,key:13,icon:'md-person',active:!1},{title:N.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:N.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getSuperUserMenu",value:function(){return[{title:N.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:N.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:N.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:N.default.t('GROUP_MANAGE'),id:5,key:5,icon:'md-people',active:!1},{title:N.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:N.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getHyperUsermenu",value:function(){return[{title:N.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:N.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:N.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:N.default.t('GROUP_MANAGE'),id:5,key:5,icon:'md-people',active:!1},{title:N.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:N.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"updateUser",value:function(t){var n=[];if(void 0!==t)if(void 0!==t.category)switch(t.category){case"geolocated":n=this.getGeolocatedUserMenu();break;case"super":n=this.getSuperUserMenu();break;case"hyper":n=this.getHyperUsermenu()}else n=this.getUserMenu();this.setState({user:t,menu:n})}},{key:"getUserMenu",value:function(){return[{title:N.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:N.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:N.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:N.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getNameItems",value:function(t){var n=t;switch(t){case"home":n=N.default.t('MAP');break;case'useraccount':n=N.default.t('MY_ACCOUNT');break;case'Historique':n=N.default.t('CREDIT_MANAGE');break;case"superviseurgroup":n=N.default.t('GROUP_MANAGE');break;case"updateinformation":n=N.default.t("CHANGE_INFORMATION");break;case'notificationview':n=N.default.t('NOTIFICATIONS');break;case'configuration':n=N.default.t('CONFIGURATIONS');break;case'addNetwork':n=N.default.t('ADD_NETWORK');break;case'about':n=N.default.t('ABOUT')}return n}},{key:"getIcon",value:function(t){var n="md-map";switch(t){case"home":n="md-map";break;case'useraccount':n="md-person";break;case'Historique':n="md-card";break;case"superviseurgroup":n="md-people";break;case'notificationview':n="md-notifications";break;case"updateinformation":n="md-people";break;case'configuration':n='md-settings';break;case'addNetwork':n="md-people";break;case'about':n='md-contacts'}return n}},{key:"render",value:function(){var t=this,n=this.state.user?this.state.user.firstname:"",o=this.state.user?this.state.user.lastname:"";return this.state.lang||"change"===this.state.lang?(setTimeout(function(){return t.setState({lang:""})},500),v.default.createElement(h.View,null)):v.default.createElement(h.View,{style:w.container},v.default.createElement(h.View,{style:w.headercontent},v.default.createElement(h.Text,{style:w.headerTitle},n),v.default.createElement(h.Text,{style:w.headerTitle},o),v.default.createElement(h.Text,{style:w.headerPhone},this.state.user?""+this.state.user.phone:"")),v.default.createElement(S.ScrollView,{style:{flex:1,height:(0,k.responsiveHeight)(40)}},v.default.createElement(T.SafeAreaView,{forceInset:{top:'always',horizontal:'never'}},this.state.items&&Object.keys(this.state.items).map(function(n,o){return t._renderItem(n)}))),v.default.createElement(A.default,{textStyle:w.btntext,style:w.btnDeconnect,onPress:function(){return t.userDeconnect()}},N.default.t('DISCONNEXION')))}},{key:"userDeconnect",value:function(){var t=this;h.Alert.alert(N.default.t('DISCONNEXION'),N.default.t('DISCONNEXION_TEXT'),[{},{text:N.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:N.default.t('YES'),onPress:function(){(0,I.disconnect)().then(function(){O.IlinkEmitter.emit("userdisconnect"),t.props.navigation.navigate("Auth")})}}],{cancelable:!1})}},{key:"watchUser",value:function(){var t=this;(0,I.readUser)().then(function(n){n.id!==t.state.user.id&&null!==n&&void 0!==n&&t.updateUser(n)})}}]),n})(v.Component);e.default=U,U.navigatorStyle={statusBarColor:y.primaryDarkAdvanced};var M=h.StyleSheet.create({content:{width:(0,k.responsiveWidth)(100),height:50,paddingLeft:20,flexDirection:'row',alignItems:'center'},itemText:{color:'#000000',marginLeft:20,fontSize:(0,k.responsiveFontSize)(2)}}),w=h.StyleSheet.create({container:{flex:1,backgroundColor:"white"},btnDeconnect:{borderColor:"transparent",marginLeft:20,marginRight:20,backgroundColor:b.accent},btntext:{color:"white",fontSize:17,fontWeight:"bold"},headerTitle:{fontSize:14,marginBottom:5,color:"white",fontWeight:'bold'},headerPhone:{fontSize:12,marginBottom:20,color:"white",justifyContent:'flex-end'},listMenu:{paddingTop:15},headercontent:{height:(0,k.responsiveHeight)(30),backgroundColor:y.primary,justifyContent:'flex-end',alignItems:'flex-start',paddingLeft:20},backgroundd_drawer:{backgroundColor:'#000'},listbackground:{},actionButtonIcon:{fontSize:20,height:22,color:'white'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},1150,[4,1,8,9,10,12,11,13,15,18,524,871,527,1151,807,806,711,712,709,766,405,930,404,737,2,808,738]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),u=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderMenu=void 0;var n=u(r(d[2])),l=u(r(d[3])),f=u(r(d[4])),o=u(r(d[5])),c=u(r(d[6])),v=t(r(d[7])),p=r(d[8]),s=(u(r(d[9])),(function(t){function u(){return(0,n.default)(this,u),(0,f.default)(this,(0,o.default)(u).apply(this,arguments))}return(0,c.default)(u,t),(0,l.default)(u,[{key:"render",value:function(){return v.default.createElement(p.View,null,v.default.createElement(p.Text,null,"Freud"))}}]),u})(v.PureComponent));e.HeaderMenu=s},1151,[4,1,8,9,10,12,13,15,18,68]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),h=n(r(d[8])),p=t(r(d[9])),y=r(d[10]),k=n(r(d[11])),w=n(r(d[12])),v=r(d[13]),E=r(d[14]),b=r(d[15]),S=r(d[16]),C=r(d[17]),T=n(r(d[18])),P=n(r(d[19])),x=n(r(d[20])),N=n(r(d[21])),R=n(r(d[22])),_=r(d[23]),I=r(d[24]),A=n(r(d[25])),M=n(r(d[26])),L=n(r(d[27])),D=n(r(d[28])),O=n(r(d[29])),B=n(r(d[30])),V=r(d[31]),z=n(r(d[32])),F=n(r(d[33])),U=r(d[34]),H=r(d[35]);r(d[36]);var W={enableHighAccuracy:!0,timeout:2e4,maximumAge:500,useSignificantChanges:!1,distanceFilter:0},j=[{label:"mon Reseau",value:0},{label:"Tout",value:1}],G=r(d[37]),K=r(d[38]),X=y.Dimensions.get('window'),Y=(X.width,X.height,(0,E.responsiveHeight)(30)>270?270:(0,E.responsiveHeight)(30)),q=(function(t){function n(t){var f;return(0,l.default)(this,n),(f=(0,s.default)(this,(0,u.default)(n).call(this,t,!0)))._draggedValue=new y.Animated.Value(0),f.renderIcon=function(t){return function(n){n.isActive;return p.default.createElement(L.default,{size:24,color:"white",name:t})}},f.openDrawer=function(){f.props.navigation.openDrawer()},f._retrieveData=function(){var t,n,l;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,o.default.awrap(y.AsyncStorage.getItem('position'));case 3:null!==(t=s.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,l=JSON.parse(t),f.setState({region:n,oldPosition:l})),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),console.warn(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)},f._storeData=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o.default.awrap(y.AsyncStorage.setItem('position',JSON.stringify(t)));case 3:n.next=8;break;case 5:n.prev=5,n.t0=n.catch(0),console.warn(n.t0);case 8:case"end":return n.stop()}},null,null,[[0,5]],Promise)},f.backPressed=function(){return y.Alert.alert(N.default.t('EXIT_TITLE'),N.default.t('EXIT_DESC'),[{text:N.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:N.default.t("YES"),onPress:function(){return y.BackHandler.exitApp()}}],{cancelable:!1}),!0},f.renderRow=function(t){return p.default.createElement(y.TouchableOpacity,{key:t,onPress:function(){return f.onRowPress(t)}},p.default.createElement(y.View,{style:Z.rowContainer},p.default.createElement(y.View,{style:Z.iconContainer},p.default.createElement(L.default,{name:f.state.filternetworkTemp&&t.name===f.state.filternetworkTemp.name?'radio-button-checked':'radio-button-unchecked',color:f.state.filternetworkTemp&&t.name===f.state.filternetworkTemp.name?G.accent:f.props.colorAccent,size:24})),p.default.createElement(y.Text,{style:b.material.subheading},t.name)))},f.state=f.geInitialState(),f.mounted=!1,f.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],L.default.getImageSource('md-car',24,'white').then(function(t){f.setState({caricon:t})}),f._renderFavoriteIcon=f._renderFavoriteIcon.bind((0,c.default)(f)),f.makeMarkerInformation=f.makeMarkerInformation.bind((0,c.default)(f)),f}return(0,h.default)(n,t),(0,f.default)(n,[{key:"onLoadMore",value:function(){var t=this,n=this.state,l=n.user;n.prevRegion,n.boundarie;void 0!==l.category&&null!==l.category||(this.promiseRegion&&this.promiseRegion.done(),this.promiseRegion=new Promise(function(n,s){var u,c,f,h,p;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.setState({isNeedLoadMore:!1,isLoadingMap:!0}),s.next=3,o.default.awrap(t.mapRef.getCamera());case 3:if(u=s.sent,u.zoom-10,c=[],t.setState({isLoadingMap:!0}),void 0!==t.state.filternetworkTemp&&(f=t.state.filternetworkTemp.id,c=t.state.networks.filter(function(t){return t.id===f})),!(c.length>0)){s.next=24;break}return c[0],h={longitude:l.longitude,latitude:l.latitude},s.prev=11,s.next=14,o.default.awrap(t.loadingMarkers(t.state.myPosition,t.state.filternetwork,t.state.value));case 14:p=s.sent,t.treatNewData(h,p,!1),s.next=22;break;case 18:s.prev=18,s.t0=s.catch(11),console.debug(s.t0.message),t.setState({isNeedLoadMore:!1,isLoadingMap:!1});case 22:s.next=25;break;case 24:t.setState({isNeedLoadMore:!0,isLoadingMap:!1});case 25:t.map&&t.map.focusToUser(),n();case 27:case"end":return s.stop()}},null,null,[[11,18]],Promise)}))}},{key:"onslidingEvent",value:function(t){this.setState({maxHeightSliding:t.nativeEvent.layout.height})}},{key:"componentDidMount",value:function(){var t=this;this.mounted=!0,this.configuration=new R.default;var n=this.props.navigation;this.markerManager=new F.default,this.configuration.getCurrentPubValue().then(function(n){try{var o=parseInt(n);t.setState({isPubShow:o})}catch(t){}}),this.focusListener=n.addListener("didFocus",function(){t.configuration.getCurrentPasValue().then(function(n){try{t.setState({pas:parseInt(n)})}catch(t){}}),t.componentDidAppear()}),this.blurListener=n.addListener("didBlur",function(n){t.componentDidDisappear()}),this._retrieveData(),this.props.coordinate}},{key:"requestCameraPermission",value:function(){var t=this;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o.default.awrap(y.PermissionsAndroid.request(y.PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,{title:'Cool Photo App Camera Permission',message:"Cool Photo App needs access to your camera so you can take awesome pictures."}));case 3:n.sent===y.PermissionsAndroid.RESULTS.GRANTED?((0,C.readUser)().then(function(n){if(n)if(void 0!==n.category&&null!==n.category){var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)},l={latitude:o.latitude,longitude:o.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:o}),t.mapRef.animateToCoordinate({latitude:o.latitude,longitude:o.longitude},1e3),t.mapRef.animateToRegion(l,1e3),t.setState({isLoading:!1,isLoadingMap:!1,loadingDialog:!1}),"geolocated"!==n.category?t.showMyMembers():o.latitude<=0&&o.longitude<=0&&t.props.navigation.push(K.updateinfo)}else t.getPosition(),t.watchLocation()}),console.log("Camera permission granted")):console.log("Camera permission denied"),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),console.log(n.t0);case 10:case"end":return n.stop()}},null,null,[[0,7]],Promise)}},{key:"watchLocation",value:function(){var t=this;this.watchID=D.default.watchPosition(function(n){var o=t.state.myPosition,l=n.coords;t.state.oldPosition;o&&l.longitude===o.longitude&&l.latitude===o.latitude||(0!==l.longitude&&0!==l.latitude&&t._storeData(l),((0,P.default)(t.state.region,{})||(0,P.default)(t.state.region,void 0)||(0,P.default)(t.state.region,null))&&(t.state.myPosition.longitude||t.state.myPosition.latitude||null!==t.mapRef&&void 0!==t.mapRef&&(t.mapRef.animateToRegion({latitude:l.latitude,longitude:l.longitude,latitudeDelta:.03,longitudeDelta:.01},1e3),t.mapRef.animateCamera({center:t.myPosition,pitch:0,heading:0,altitude:0,zoom:12},1e3))),t.setState({region:{latitude:l.latitude,longitude:l.longitude,latitudeDelta:.003,longitudeDelta:.004}}),t.setState({myPosition:l}),t.map&&t.map.focusToUser())},function(t){return console.log("wat s",t)},W)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,C.getCountryNetwork)(t).then(function(o){n.reseaux=[];var l=o;for(var s in l)n.reseaux.push(l[s]);n.setState({networks:n.reseaux});var u=n.reseaux.filter(function(t){return t.name.includes(n.state.network)});void 0!==n.state.user.category&&null!==n.state.user.category||(console.log(n.state.user),u.length>0&&t?(n.setState({filternetwork:u[0],myNetwork:u[0],filternetworkTemp:u[0]}),n.retrieveAllPoint(t)):(console.log("on getnetworks",o),n.state.user&&(n.state.user.category||y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1}))))},function(o){console.log("error getnetwork"+e.message),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})});else{console.log("get network missing pays");y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.requestCameraPermission()}}],{cancelable:!1})}}},{key:"getPosition",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.log("on get position"),D.default.getCurrentPosition(function(o){var l=t.state.myPosition,s=o.coords;t.state.oldPosition;if(!(0,P.default)(s,l)&&0!==s.longitude&&0!==s.latitude||l){t.map&&t.map.focusToUser(),(0,S.getPositionInformation)(s).then(function(o){if(o)if(void 0!==o.results){if(o.results.length>0){var l=o.results[0],s=l.address_components,u=l.formatted_address,c=l.place_id;t.setState({address:s,textadress:u,place:c});for(var f,h,p=o.results,k=0;k=v.length)break;S=v[b++]}else{if((b=v.next()).done)break;S=b.value}var C=S;C.code===f&&(t.setState({indicatif:C.dial_code}),t.getNetworks(C.dial_code))}}}else console.log("on else result null "),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1})});var u={latitude:s.latitude,longitude:s.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:s,region:u}),t.mapRef&&!t.state.myPositionIsAnimated&&(t.mapRef.animateCamera({center:s,pitch:0,heading:0,altitude:5,zoom:13},1e3),t.setState({myPositionIsAnimated:!0}))}else console.warn("errror")},function(n){switch(console.warn(n.message),n.code){case 3:t.state.oldPosition&&t.treatPosition(t.state.oldPosition);break;default:console.log("onjjj",n.message)}},W)}},{key:"componentDidDisappear",value:function(){y.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;y.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,C.readUser)().then(function(n){if(n){if(n.category){t.setState({user:n}),t.setState({network:n.network});var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)};t.setState({myPosition:o})}t.state.myPosition&&t.refocusMap()}})}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&D.default.clearWatch(this.watchID)}}]),(0,f.default)(n,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:N.default.t('MAP')});var t=Math.random();this.setState({lang:t})}},{key:"makeCardSearch",value:function(){var t=this;if(!this.state.isPubShow)return p.default.createElement(y.View,{style:Z.topBar},p.default.createElement(V.Surface,{style:{elevation:4,borderRadius:10}},p.default.createElement(y.View,{style:{flexDirection:'row',alignSelf:'center',justifyContent:'center',flex:1,borderRadius:10,margin:10,alignItems:'center',height:48}},p.default.createElement(y.TouchableOpacity,{onPress:function(){return t.openDrawer()}},p.default.createElement(y.Text,{style:Z.hambuger},"Menu")),p.default.createElement(y.View,{style:{flex:1}}),p.default.createElement(y.Text,{style:{backgroundColor:this.state.myNetwork.id===this.state.filternetwork.id?G.primary:G.accent,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12}},this.state.filternetwork.name?this.state.filternetwork.name:this.state.network),this.renderSupplementInformation()),this.showLoadingMapView()))}},{key:"renderSupplementInformation",value:function(){var t=this;return this.state.user&&"geolocated"===this.state.user.category?p.default.createElement(y.View,null):p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",justifyContent:'center',alignItems:'center',alignSelf:'center'}},p.default.createElement(y.Text,null,this.state.markers.length+" "+(0===this.state.currentNetworkSize?"":"/"+this.state.currentNetworkSize)," ")),p.default.createElement(y.TouchableOpacity,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:12,height:32,width:32,backgroundColor:"white",borderColor:"transparent"}},p.default.createElement(L.default,{name:this.state.markers.length>=this.state.currentNetworkSize?"close":"refresh",size:32,color:this.state.markers.length>=this.state.currentNetworkSize?"red":"grey"})))}},{key:"_renderMarker2",value:function(){var t=this,n=this.state,o=n.currentMarker,l=n.myPosition,s=o,u={latitude:parseFloat(o.latitude),longitude:parseFloat(o.longitude)},c=H.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+N.default.t('TO_YOU'),h=null===s.lastname?s.adresse:s.lastname;return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"white"}},p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center',backgroundColor:"white"}},p.default.createElement(y.Text,{style:Q.title},h),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.subtitle2},s.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:Q.reseau},s.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},f),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(s)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"_renderItemMarkerdetails",value:function(t){var n=this,o=t;if(void 0!==o&&null!==o){var l=this.state,s=l.currentMarker,u=l.myPosition,c={latitude:parseFloat(s.latitude),longitude:parseFloat(s.longitude)},f=H.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+N.default.t('TO_YOU'),k=null===o.lastname?o.adresse:o.lastname;return p.default.createElement(v.CardView,{style:Q.container,cardElevation:2,cardMaxElevation:2,cornerRadius:5},p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},p.default.createElement(y.Text,{style:Q.title},k),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.subtitle2},o.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:Q.reseau},o.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},h),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(o)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}}},{key:"renderCurrentMarker",value:function(t){var n=this;if(t)return p.default.createElement(y.View,null,p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},p.default.createElement(y.Text,{style:Q.title},name),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.title},t.adresse),p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.Text,{style:Q.reseau},t.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},distanceTxt),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(t)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,M.default)(n).catch(function(t){return console.log(t)})}},{key:"makeMarkerInformation",value:function(){var t=this.state,n=t.currentMarker;t.myPosition;return void 0!==n&&null!==n?this._renderItemMarkerdetails(n):p.default.createElement(y.Text,null,"Impossible de'afficher l'element")}},{key:"makeActionButon",value:function(){var t=this.state.user;if(t)switch(t.category){case"super":return this.getSuperActionButton();case"geolocated":return this.geoLocatedAction();case"hyper":return this.getHypervisorActionButton();default:return this.getSimpleActionButton()}}},{key:"getSuperActionButton",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return p.default.createElement(w.default,{ref:function(n){return t.actionButton=n}},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},p.default.createElement(L.default,{name:"filter-list",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#9b59b6",title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},p.default.createElement(L.default,{name:"rss-feed",style:Z.actionButtonIcon})))}},{key:"toggleSlidingUp",value:function(t){var n=this;t&&this.bottomSheetRef?(this.bottomSheetRef.snapTo(1),this.setState({showcurentMarker:t})):t||this.bottomSheetRef.snapTo(0);var o=t?Y:0,l=t?0:Y;this.setState({panelVisible:t}),!t&&this.state.needRoad&&this.setState({needRoad:!1}),this.state.animation.setValue(o),y.Animated.timing(this.state.animation,{toValue:l,duration:200}).start(function(o){!t&&n.map&&n.map.focusToUser()})}},{key:"makeSlidingUp",value:function(){var t=this;return p.default.createElement(z.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[0,"30%"],renderHeader:function(){return t.markerView()}})}},{key:"_renderFavoriteIcon",value:function(){var t=this,n=this.props.draggableRange,o=n.top,l=n.bottom,s=[{scale:this._draggedValue.interpolate({inputRange:[l,o],outputRange:[1,0],extrapolate:'clamp'})}];return p.default.createElement(y.TouchableNativeFeedback,{onPress:function(){t.setState({needRoad:!0})}},p.default.createElement(y.Animated.View,{style:[Z.favoriteIcon,{transform:s}]},p.default.createElement(L.default,{name:"car",size:24,color:"white",style:{alignSelf:'center'}})))}},{key:"geInitialState",value:function(){return{region:{latitude:0,longitude:0,latitudeDelta:.015,longitudeDelta:.0121},pas:100,prevRegion:{latitude:0,longitude:0},isPubShow:!0,loadingDialog:!0,textreach:"",currentNetworkSize:0,markersearchfilter:[],animation:new y.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:j[1],needRoad:!1,initialAnim:!1,filternetwork:{},destinationPosition:{},panelVisible:!1,markers:[],isNeedLoadMore:!1,isLoadingMap:!1,value:5,page:0,valuePosition:0,markerfilter:null,allpoint:[],typeMap:'standard',indexTypeMap:0,user:null,snack_visible:!1,snack_text_message:"",networks:[],dialogSliderVisible:!1,showProgress:!1,myNetwork:{},dialogNetworkVisible:!1}}},{key:"onMarkerPress",value:function(t){console.warn(t),this.setState({currentMarker:t}),this.toggleSlidingUp(!0)}},{key:"onMapTypeChange",value:function(){var t={index:this.state.indexTypeMap,text:this.state.typeMap};switch(t.index=t.index+1,t.index=t.index%3,t.index){default:t.text='standard';break;case 1:t.text='hybrid';break;case 2:t.text="terrain"}this.setState({indexTypeMap:t.index,typeMap:t.text})}},{key:"showInterticiel",value:function(){var t=this;if(this.state.isPubShow)return p.default.createElement(O.default,{closeIntersticiel:function(){return t.setState({isPubShow:!1})},navigation:this.props.navigation})}},{key:"renderBottomHome",value:function(){var t=this;return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"lightblue"}},p.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:function(){(0,C.readUser)().then(function(n){n&&(t.setState({user:n}),t.setState({network:n.network}),n.category?(t.setState({loadingDialog:!1}),"geolocated"!==n.category?t.showMyMembers():myPosition.latitude<=0&&myPosition.longitude<=0&&t.props.navigation.push(K.updateinfo)):'android'===y.Platform.OS?t.requestCameraPermission():(t.getPosition(),t.watchLocation()))})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),p.default.createElement(z.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[60,"30%","100%"],renderHeader:function(){return t.renderHeader()}}))}},{key:"renderInner",value:function(){return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"green"}},p.default.createElement(y.Text,null,"Freud junior"))}},{key:"markerView",value:function(){if(this.state.currentMarker)return this._renderMarker2()}},{key:"renderHeader",value:function(){var t=this;return p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:{position:"absolute",width:32,height:this.state.currentMarker?200:100,bottom:80,right:0,justifyContent:'center'}},p.default.createElement(w.default,{size:32,style:{marginRight:15},buttonColor:"white"}),p.default.createElement(w.default,{size:42,renderIcon:function(){return p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:G.primary})),p.default.createElement(y.View,{style:{flex:1,backgroundColor:"white"}},this.markerView(),this.renderFilterMarker(),p.default.createElement(y.View,{style:{flexDirection:'row',height:60,justifyContent:'space-evenly',alignItems:'flex-end'}},p.default.createElement(y.View,{style:{flexDirection:'row',flex:1,marginBottom:10,justifyContent:'space-around',alignItems:'flex-end'}},p.default.createElement(V.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:G.primary,style:{backgroundColor:"white"},onPress:function(){t.state.showFilterDistance?(t.bottomSheetRef.snapTo(0),t.setState({showFilterDistance:!1})):(t.bottomSheetRef.snapTo(2),t.setState({showFilterDistance:!0}))}}),p.default.createElement(V.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:G.primary},onPress:function(){t.bottomSheetRef.snapTo(2),t.setState({showdialogNetworkVisible:!0})}})),this.makeMarkerButton())))}},{key:"renderFilterMarker",value:function(){var t=this;if(this.state.showFilterDistance)return p.default.createElement(y.View,{style:{height:(0,E.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},p.default.createElement(y.View,{style:{height:(0,E.responsiveHeight)(30),justifyContent:'center'}},p.default.createElement(y.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),p.default.createElement(A.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),p.default.createElement(y.Text,null,p.default.createElement(y.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND"))),p.default.createElement(y.View,{style:{flexDirection:"row",flex:1}},p.default.createElement(x.default,{style:{flex:1}}),p.default.createElement(x.default,{style:{flex:1}})))}},{key:"makeMarkerButton",value:function(){var t=this;return this.state.currentMarker?p.default.createElement(y.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(26),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(marker)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))):p.default.createElement(y.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}})}},{key:"renderOldHome",value:function(){var t=this;return p.default.createElement(y.View,{style:Z.container},p.default.createElement(y.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog?p.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,E.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,E.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},N.default.t("LOADING_DOTS"))):null,p.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:function(){(0,C.readUser)().then(function(n){n&&(t.setState({user:n}),t.setState({network:n.network}),n.category?(t.setState({loadingDialog:!1}),"geolocated"!==n.category?t.showMyMembers():myPosition.latitude<=0&&myPosition.longitude<=0&&t.props.navigation.push(K.updateinfo)):'android'===y.Platform.OS?t.requestCameraPermission():(t.getPosition(),t.watchLocation()))})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),p.default.createElement(B.default,{visible:this.state.snack_visible,textMessage:this.state.snack_text_message,autoHidingTime:5e3}),this.makeActionButon())}},{key:"renderTutoOldHome",value:function(){return p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(CopilotStep,{text:"This is a hello world example!",order:1,name:"hello"},this.makeCardSearch()))}},{key:"render",value:function(){return this.renderOldHome()}},{key:"renderCurrentMarker",value:function(){if(this.state.currentMarker)return p.default.createElement(y.View,{style:{height:200,backgroundColor:'#fff'}},this.makeMarkerInformation())}},{key:"makeDialogLoader",value:function(){return p.default.createElement(I.ProgressDialog,{visible:this.state.showProgress,title:N.default.t("LOADING_PROGRESS"),message:N.default.t("WAITING_LONG"),animationType:"slide",activityIndicatorSize:"large",activityIndicatorColor:"blue"})}},{key:"showMynetworkMap",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null===n?this.state.user:n,l=this.state.myNetwork;return this.setState({filternetwork:l,page:0,filternetworkTemp:l,loadingDialog:!0}),new Promise(function(){void 0!==l?t.loadingMarkers(t.state.myPosition,l,t.state.value).then(function(n){var l=n||[];if(t.setState({loadingDialog:!1}),void 0!==o.category&&null!==o.category){var s=l.filter(function(t){return t.code_parrain===o.code_membre});t.treatNewData(t.state.myPosition,s,!0)}else t.treatNewData(t.state.myPosition,l,!0)}).catch(function(n){t.setState({loadingDialog:!1}),console.log("error j"),console.log(n)}):(t.setState({loadingDialog:!1}),console.log("error no net"))})}},{key:"showMyMembers",value:function(){var t=this,n=this.state.user.code_membre;void 0!==n?(0,S.loadGroupeAgent)(n).then(function(n){if(1===n.success)return t.setState({markers:n.datas})}):console.log("error")}},{key:"slidingComplete",value:function(t){this.setState({value:this.filterOptions[t].value,valuePosition:t})}},{key:"makeDistanceDialog",value:function(){var t=this;return p.default.createElement(_.MaterialDialog,{visible:this.state.dialogSliderVisible,title:N.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:N.default.t("QUIT_"),okLabel:N.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},p.default.createElement(y.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),p.default.createElement(A.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),p.default.createElement(y.Text,null,p.default.createElement(y.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND")))}},{key:"showFilterDialog",value:function(){this.setState({dialogSliderVisible:!0})}},{key:"filterPoint",value:function(){var t,n,l,s,u,c=this;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:t=this.state,n=t.value,l=t.myPosition,t.user,s=t.filternetwork,void 0!==n?(this.setState({page:0}),1e3*n,u=this.state.networks.filter(function(t){return t.id===s.id}),u[0],this.loadingMarkers(l,s,n).then(function(t){c.treatNewData(c.state.prevRegion,t,!0)}).catch(function(t){c.setState({showProgress:!1}),y.Alert.alert(N.default.t("ERROR_FILTER"),N.default.t("ERROR_FILTER_TEXT"),[{text:N.default.t("CANCEL")},{text:N.default.t("RESTART"),onPress:function(){c.filterPoint()}}])})):(this.setState({showProgress:!1}),this.setState({snack_visible:!0,snack_text_message:"impossible de filtrer les \xe9lements"}),setTimeout(function(){c.setState({snack_visible:!1})},5e3));case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"userChangeMarker",value:function(t){var n=this.state.markers[t];if(null!==this.mapRef&&void 0!==this.mapRef){var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude),latitudeDelta:.03,longitudeDelta:.01};this.mapRef.animateToCoordinate({latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)},1e3),this.mapRef.animateToRegion(o,1e3),console.log(n)}}},{key:"geoLocatedAction",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return p.default.createElement(_.MaterialDialog,{title:N.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:N.default.t("CHOICE_NETWORK_TEXT"),onCancel:function(){return t.setState({dialogNetworkVisible:!1})},onOk:function(n){t.setState({dialogNetworkVisible:!1,page:0}),t.setState({showProgress:!0,filternetwork:t.state.filternetworkTemp}),setTimeout(function(){return t.showFilterNetwork()},500)}},p.default.createElement(y.FlatList,{style:{height:(0,E.responsiveHeight)(40)},data:this.state.networks,renderItem:function(n){var o=n.item;return t.renderRow(o)}}))}},{key:"onRowPress",value:function(t){this.setState({filternetworkTemp:t})}},{key:"showNewDialogNetwork",value:function(){this.setState({dialogNetworkVisible:!0})}},{key:"showFilterNetwork",value:function(){var t,n,l,s=this;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:t=this.state,n=t.myPosition,t.user,void 0!==(l=t.filternetwork)?(this.setState({showProgress:!0}),this.loadingMarkers(this.state.myPosition,l,this.state.value,0).then(function(t){s.setState({showProgress:!1}),s.treatNewData(n,t,!0)}).catch(function(t){s.setState({snack_visible:!0,snack_text_message:"Probleme de connexion"}),console.log(t)})):console.log("error no net");case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"showBtnItineraire",value:function(){var t=this;return p.default.createElement(x.default,{style:{backgroundColor:G.primary,width:(0,E.responsiveWidth)(30),height:36,borderRadius:100,marginLeft:5,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!0,showProgress:!0})}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return p.default.createElement(x.default,{style:{backgroundColor:G.reddeconnect,height:36,width:(0,E.responsiveWidth)(30),borderRadius:100,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!1,showProgress:!1})}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"map",style:Z.actionButtonIcon})))}},{key:"moveToMarker",value:function(t){this.mapRef.animateToCoordinate({latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)},1e3),this.setState({textreach:t.lastname,texta:!0}),this.setState({markersearchfilter:[]}),this.onMarkerPress(t)}},{key:"refocusMap",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.mapRef&&void 0!==this.state.myPosition&&this.mapRef.animateCamera({center:{latitude:this.state.myPosition.latitude,longitude:this.state.myPosition.longitude},pitch:0,heading:0},1e3):this.mapRef&&void 0!==this.state.myPosition&&this.mapRef.animateCamera({center:{latitude:this.state.myPosition.latitude,longitude:this.state.myPosition.longitude},pitch:0,heading:0,altitude:5,zoom:12},1e3),this.map&&this.map.focusToUser()}},{key:"renderCardSeashItem",value:function(t){var n=this;return p.default.createElement(y.TouchableOpacity,{key:t.id,style:{margin:5},onPress:function(){n.moveToMarker(t)}},p.default.createElement(y.Text,{style:{flex:1,fontSize:14,color:"#000"}},null===t.firstname?t.adresse:t.firstname),p.default.createElement(y.Text,{style:{flex:1,fontSize:12}},t.lastname),p.default.createElement(y.Text,{style:{flex:1,fontSize:13,alignSelf:'flex-end',color:G.accent}},t.network))}},{key:"retrieveAllPoint",value:function(t){var n=this;(0,S.getMakersFrom)(t).then(function(o){new Promise(function(t,l){try{var s=o.datas;n.setState({allpoint:s,loadingDialog:!1}),t(s)}catch(t){console.warn(t.message),l(new Error(t.message))}}).then(function(t){n.onLoadMore()}).catch(function(o){n.setState({loadingDialog:!1}),console.log("on get marker"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission()}}],{cancelable:!1})})}).catch(function(o){console.log("on retreive>getmarkers",o.message),n.setState({loadingDialog:!1}),n.state.allpoint.length<=0&&(console.log("no point"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.state.allpoint.length<=0&&(n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission())}}],{cancelable:!1}))})}},{key:"showLoadMoreView",value:function(){var t=this;if(this.state.isNeedLoadMore)return p.default.createElement(y.View,{style:{flex:1,flexDirection:'row',width:(0,E.responsiveWidth)(90)}},p.default.createElement(x.default,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:48,height:48,width:48,backgroundColor:"white",borderColor:"transparent",alignItems:"center",justifyContent:"center"}},p.default.createElement(L.default,{name:"refresh",size:32})),p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,E.responsiveWidth)(20),height:30,borderRadius:12,justifyContent:'center',alignItems:'center',alignSelf:'center'}},p.default.createElement(y.Text,null,(this.state.markers.length,this.state.markers.length)," / ",this.state.currentNetworkSize," ")))}},{key:"showLoadingMapView",value:function(){if(this.state.isLoadingMap)return p.default.createElement(y.View,{style:{flexDirection:'row',margin:10,width:(0,E.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},p.default.createElement(y.Text,{style:{fontSize:12,alignSelf:'center'}},N.default.t("LOADING_TEXT_MARKERS")+" "+this.state.value+" km "+N.default.t("DISTANCE_ARROUND")),p.default.createElement(y.ProgressBarAndroid,{style:{alignSelf:'center'}}))}},{key:"loadingMarkers",value:function(t,n,o){var l=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return new Promise(function(u,c){var f=l.state.allpoint,h=void 0!==s?s:l.state.page,p=f.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return H.getDistance(t,u)<=1e3*o&&l.network===n.name}).slice(0,(h+1)*l.state.pas);try{var y=f.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return H.getDistance(t,u)<=1e3*o&&l.network===n.name});l.setState({currentNetworkSize:y.length,currentNetworkMarkers:y})}catch(t){console.debug("after "+t.message)}console.debug("data:",p,"value"+1e3*o),u(p)})}},{key:"treatNewData",value:function(t,n){var o=this,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setState({isLoadingMap:!1});var s=n;if(n.length>0){var u=s;l&&this.setState({showProgress:!1}),u.length>0&&this.setState({markers:u,prevRegion:t}),s.length0){var o=n.results[0],l=o.address_components,u=o.formatted_address,c=o.place_id;s.setState({address:l,textadress:u,place:c});for(var f,h,p=n.results,k=0;k=v.length)break;S=v[b++]}else{if((b=v.next()).done)break;S=b.value}var C=S;C.code===f&&(s.setState({indicatif:C.dial_code}),s.getNetworks(C.dial_code))}}}else console.log("on treat 1"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1});else console.log("on treat 2"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}).catch(function(n){console.log("on treat 3"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}),l={latitude:t.latitude,longitude:t.longitude,latitudeDelta:.03,longitudeDelta:.01},this.setState({myPosition:t,region:l}),this.mapRef&&!this.state.myPositionIsAnimated&&(this.mapRef.animateCamera({center:t,pitch:0,heading:0,altitude:5,zoom:13},1e3),this.setState({myPositionIsAnimated:!0})));case 3:case"end":return o.stop()}},null,this,null,Promise)}}]),n})(T.default);q.navigationOptions=function(t){return{headerMode:"none",headerStyle:{display:'none'},header:null,drawerLabel:t.navigation.getParam("name",N.default.t('MAP')),drawerIcon:function(t){var n=t.tintColor;return p.default.createElement(L.default,{name:'map',size:24,color:n})}}},q.defaultProps={draggableRange:{top:(0,E.responsiveHeight)(30),bottom:0},panel:null};var J=q;e.default=J;var Q=y.StyleSheet.create({solde:{backgroundColor:G.accent,color:"white",marginLeft:10,padding:5,fontSize:9,borderRadius:100},title:{color:'black',marginLeft:10,flex:1,fontSize:11,fontWeight:'bold'},subtitle2:{color:'black',marginLeft:10,flex:1,fontSize:10,fontWeight:'bold'},subtitle:{color:'black',marginLeft:9,fontSize:9},otherInformation:{marginLeft:13,fontSize:9},reseau:{marginLeft:10,fontWeight:'bold',color:G.accent,fontSize:10},container:{flex:1,width:(0,E.responsiveWidth)(95),alignSelf:"center",paddingTop:(0,E.responsiveHeight)(1),marginBottom:(0,E.responsiveHeight)(1),backgroundColor:"white",justifyContent:'flex-start'}}),Z=y.StyleSheet.create({container:{flex:1,backgroundColor:'#FFF'},panelContainer:{position:'absolute',top:0,bottom:0,left:0,right:0},panel:{height:600,padding:20,backgroundColor:'#f7f5eee8'},header:{backgroundColor:'#f7f5eee8',shadowColor:'#000000',paddingTop:20,borderTopLeftRadius:20,borderTopRightRadius:20},panelHandle:{width:40,height:8,borderRadius:4,backgroundColor:'#00000040',marginBottom:10},panelTitle:{fontSize:27,height:35},panelSubtitle:{fontSize:14,color:'gray',height:30,marginBottom:10},panelButton:{padding:20,borderRadius:10,backgroundColor:'#318bfb',alignItems:'center',marginVertical:10},panelButtonTitle:{fontSize:17,fontWeight:'bold',color:'white'},fab:{position:'absolute',margin:16,right:0,bottom:0},networkname:{backgroundColor:G.primary,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:G.accent,height:32,justifyContent:'center',alignItems:'center',width:32,borderRadius:16},rowContainer:{height:52,flex:1,flexDirection:'row',justifyContent:'flex-start',alignItems:'center'},iconContainer:{marginRight:16},mapmarker:{width:52,height:52},slidingup:{backgroundColor:"transparent",position:"absolute",height:Y,bottom:0,left:(0,E.responsiveWidth)(2.5),width:(0,E.responsiveWidth)(95),zIndex:1},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,E.responsiveWidth)(75),backgroundColor:G.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{color:G.primary,borderColor:G.primary,borderWidth:1,alignSelf:'center',padding:5},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',borderRadius:10,alignItems:'center',marginTop:(0,E.responsiveHeight)(4),width:(0,E.responsiveWidth)(90)},searchInput:{flex:1,fontSize:14},search:{width:(0,E.responsiveWidth)(70),height:(0,E.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,E.responsiveWidth)(100),height:(0,E.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,E.responsiveWidth)(90),height:(0,E.responsiveHeight)(10),position:'absolute',alignSelf:'center',marginTop:5},actionButtonIcon:{fontSize:20,height:22,color:'white'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},1152,[4,1,273,8,10,12,11,9,13,15,18,1153,524,528,527,771,764,711,815,681,709,712,737,768,1373,1378,1379,827,804,826,1380,1029,1384,1444,813,1471,808,806,807]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[2])),s=o(r(d[3])),l=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=t(r(d[7])),h=t(r(d[8])),p=o(r(d[9])),y=r(d[10]),k=r(d[11]),v=o(r(d[12])),R=o(r(d[13])),b=o(r(d[14])),C=(r(d[15]),r(d[16])),w=(r(d[17]),r(d[18]),(function(t){function o(t){var s;return(0,n.default)(this,o),(s=(0,l.default)(this,(0,u.default)(o).call(this,t))).mapRef=function(t){s.mapview=t},s.getMapRef=function(){return s.mapview},s.state={markers:[],roadReady:!1,isNeedUserFocus:!1},s}return(0,c.default)(o,t),(0,s.default)(o,[{key:"componentWillReceiveProps",value:function(t,o){var n=this.state.markers,s=t.markers;n.length<=0?this.setState({markers:s}):n.length!==s&&this.setState({markers:s}),this.setState({isNeedUserFocus:t.isNeedUserFocus})}},{key:"render",value:function(){var t=this,o=this.props,n=(o.markers,o.initialRegion),s=(o.myPosition,o.myNetwork),l=o.typeMap,u=o.selectedMarker;return null!==n&&null!==s?f.default.createElement(y.View,{style:N.container},f.default.createElement(h.default,{style:{flex:1},initialRegion:n,mapType:l,ref:function(o){return t.mapview=o},onMapReady:this.props.onMapReady,onRegionChangeComplete:function(o){t.onRegionChangeOver(o)}},this.state.markers.map(function(o,n){return f.default.createElement(v.default,{isUser:!1,title:o.lastname,isSelected:u&&u.id===o.id,data:o,onPress:function(o,n){return t.props.onMarkerClick(o,n)},network:s})}),this.renderMyPosition(),this.makeDirection())):f.default.createElement(y.View,null)}},{key:"focusToUser",value:function(){this.setState({isNeedUserFocus:!0})}},{key:"closeUserFocus",value:function(){this.setState({isNeedUserFocus:!1})}},{key:"onRegionChangeOver",value:function(t){}},{key:"makeDirection",value:function(){var t=this,o=this.props,n=o.myPosition,s=o.selectedMarker,l=o.needRoad;if(null!==n&&null!==s&&void 0!==s&&void 0!==n&&l)return setTimeout(function(){t.state.roadReady||(t.setState({roadReady:!0}),t.props.onNeedRoadError())},1e4),f.default.createElement(b.default,{origin:n,destination:s,apikey:"AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI",strokeWidth:3,onReady:function(o){t.setState({roadReady:!0}),t.props.onNeedRoadReady(o)},onError:function(){t.setState({roadReady:!0}),t.props.onNeedRoadError()},strokeColor:C.primary})}},{key:"renderMyPosition",value:function(){var t=this.props,o=t.myPosition;t.myNetwork;if(null!=o)return f.default.createElement(v.default,{isUser:!0,lang:this.props.lang,isNeedFocus:this.state.isNeedUserFocus,title:R.default.t("YOUR_THERE"),data:{longitude:o.longitude,latitude:o.latitude}})}}]),o})(f.PureComponent));w.propTypes={markers:p.default.array,map:p.default.object,network:p.default.object,myNetwork:p.default.object,selectedMarker:p.default.object,myPosition:p.default.object,onMarkerClick:p.default.func,initialRegion:p.default.object,typeMap:p.default.string,needRoad:p.default.bool,isNeedUserFocus:p.default.bool,onNeedRoadReady:p.default.func,onNeedRoadError:p.default.func,onMapReady:p.default.func},w.defaultProps={isNeedUserFocus:!1};var S=w;e.default=S;var N=y.StyleSheet.create({container:{flex:1,backgroundColor:'#FFF'},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:C.accent,height:32,justifyContent:'center',alignItems:'center',width:32,borderRadius:16},rowContainer:{height:52,flex:1,flexDirection:'row',justifyContent:'flex-start',alignItems:'center'},iconContainer:{marginRight:16},mapmarker:{width:52,height:52},slidingup:{backgroundColor:"transparent",position:"absolute",height:300,bottom:0,right:35,zIndex:1},panel:{flex:1,backgroundColor:'white',position:'relative'},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,k.responsiveWidth)(75),backgroundColor:C.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',alignItems:'center',marginTop:(0,k.responsiveHeight)(4),width:(0,k.responsiveWidth)(95)},searchInput:{width:(0,k.responsiveWidth)(70),fontSize:14},search:{width:(0,k.responsiveWidth)(70),height:(0,k.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,k.responsiveWidth)(100),height:(0,k.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,k.responsiveWidth)(90),height:(0,k.responsiveHeight)(10),position:'absolute',alignSelf:'center',marginTop:5},actionButtonIcon:{fontSize:20,height:22,color:'white'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},1153,[4,1,8,9,10,12,13,15,950,68,18,527,1154,712,1158,1160,806,1156,1157]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),h=n(r(d[8])),p=t(r(d[9])),y=r(d[10]),k=n(r(d[11])),w=n(r(d[12])),v=r(d[13]),E=r(d[14]),b=r(d[15]),S=r(d[16]),C=r(d[17]),T=n(r(d[18])),P=n(r(d[19])),x=n(r(d[20])),N=n(r(d[21])),R=n(r(d[22])),_=r(d[23]),I=r(d[24]),M=n(r(d[25])),A=n(r(d[26])),L=n(r(d[27])),D=n(r(d[28])),O=n(r(d[29])),B=n(r(d[30])),V=r(d[31]),z=n(r(d[32])),F=n(r(d[33])),U=r(d[34]),H=r(d[35]);r(d[36]);var W={enableHighAccuracy:!0,timeout:2e4,maximumAge:500,useSignificantChanges:!1,distanceFilter:0},j=[{label:"mon Reseau",value:0},{label:"Tout",value:1}],G=r(d[37]),K=r(d[38]),X=y.Dimensions.get('window'),Y=(X.width,X.height,(0,E.responsiveHeight)(30)>270?270:(0,E.responsiveHeight)(30)),q=(function(t){function n(t){var f;return(0,l.default)(this,n),(f=(0,s.default)(this,(0,u.default)(n).call(this,t,!0)))._draggedValue=new y.Animated.Value(0),f.renderIcon=function(t){return function(n){n.isActive;return p.default.createElement(L.default,{size:24,color:"white",name:t})}},f.openDrawer=function(){f.props.navigation.openDrawer()},f._retrieveData=function(){var t,n,l;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,o.default.awrap(y.AsyncStorage.getItem('position'));case 3:null!==(t=s.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,l=JSON.parse(t),f.setState({region:n,oldPosition:l})),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),console.warn(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)},f._storeData=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o.default.awrap(y.AsyncStorage.setItem('position',JSON.stringify(t)));case 3:n.next=8;break;case 5:n.prev=5,n.t0=n.catch(0),console.warn(n.t0);case 8:case"end":return n.stop()}},null,null,[[0,5]],Promise)},f.backPressed=function(){return y.Alert.alert(N.default.t('EXIT_TITLE'),N.default.t('EXIT_DESC'),[{text:N.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:N.default.t("YES"),onPress:function(){return y.BackHandler.exitApp()}}],{cancelable:!1}),!0},f.onMapReady=function(){(0,C.readUser)().then(function(t){if(t){f.setState({user:t}),f.setState({network:t.network});var n={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)};f.mapRef.animateCamera({center:{latitude:n.latitude,longitude:n.longitude},pitch:0,heading:0,altitude:5,zoom:12},1e3),t.category?(f.setState({loadingDialog:!1}),"geolocated"!==t.category?f.showMyMembers():n.latitude<=0&&n.longitude<=0&&f.props.navigation.push(K.updateinfo)):'android'===y.Platform.OS?f.requestCameraPermission():(f.getPosition(),f.watchLocation())}}).catch(function(t){console.log(t.message)})},f.renderRow=function(t){return p.default.createElement(y.TouchableOpacity,{key:t,onPress:function(){return f.onRowPress(t)}},p.default.createElement(y.View,{style:Z.rowContainer},p.default.createElement(y.View,{style:Z.iconContainer},p.default.createElement(L.default,{name:f.state.filternetworkTemp&&t.name===f.state.filternetworkTemp.name?'radio-button-checked':'radio-button-unchecked',color:f.state.filternetworkTemp&&t.name===f.state.filternetworkTemp.name?G.accent:f.props.colorAccent,size:24})),p.default.createElement(y.Text,{style:b.material.subheading},t.name)))},f.state=f.geInitialState(),f.mounted=!1,f.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],L.default.getImageSource('md-car',24,'white').then(function(t){f.setState({caricon:t})}),f._renderFavoriteIcon=f._renderFavoriteIcon.bind((0,c.default)(f)),f.makeMarkerInformation=f.makeMarkerInformation.bind((0,c.default)(f)),f}return(0,h.default)(n,t),(0,f.default)(n,[{key:"onLoadMore",value:function(){var t=this,n=this.state,l=n.user;n.prevRegion,n.boundarie;void 0!==l.category&&null!==l.category||(this.promiseRegion&&this.promiseRegion.done(),this.promiseRegion=new Promise(function(n,s){var u,c,f,h,p;return o.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.setState({isNeedLoadMore:!1,isLoadingMap:!0}),s.next=3,o.default.awrap(t.mapRef.getCamera());case 3:if(u=s.sent,u.zoom-10,c=[],t.setState({isLoadingMap:!0}),void 0!==t.state.filternetworkTemp&&(f=t.state.filternetworkTemp.id,c=t.state.networks.filter(function(t){return t.id===f})),!(c.length>0)){s.next=24;break}return c[0],h={longitude:l.longitude,latitude:l.latitude},s.prev=11,s.next=14,o.default.awrap(t.loadingMarkers(t.state.myPosition,t.state.filternetwork,t.state.value));case 14:p=s.sent,t.treatNewData(h,p,!1),s.next=22;break;case 18:s.prev=18,s.t0=s.catch(11),console.debug(s.t0.message),t.setState({isNeedLoadMore:!1,isLoadingMap:!1});case 22:s.next=25;break;case 24:t.setState({isNeedLoadMore:!0,isLoadingMap:!1});case 25:t.map&&t.map.focusToUser(),n();case 27:case"end":return s.stop()}},null,null,[[11,18]],Promise)}))}},{key:"onslidingEvent",value:function(t){this.setState({maxHeightSliding:t.nativeEvent.layout.height})}},{key:"componentDidMount",value:function(){var t=this;this.mounted=!0,this.configuration=new R.default;var n=this.props.navigation;this.markerManager=new F.default,this.configuration.getCurrentPubValue().then(function(n){try{var o=parseInt(n);t.setState({isPubShow:o})}catch(t){}}),this.focusListener=n.addListener("didFocus",function(){t.configuration.getCurrentPasValue().then(function(n){try{t.setState({pas:parseInt(n)})}catch(t){}}),t.componentDidAppear()}),this.blurListener=n.addListener("didBlur",function(n){t.componentDidDisappear()}),this._retrieveData(),this.props.coordinate}},{key:"requestCameraPermission",value:function(){var t=this;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o.default.awrap(y.PermissionsAndroid.request(y.PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,{title:'Cool Photo App Camera Permission',message:"Cool Photo App needs access to your camera so you can take awesome pictures."}));case 3:n.sent===y.PermissionsAndroid.RESULTS.GRANTED?((0,C.readUser)().then(function(n){if(console.log("MAP READY"),n)if(void 0!==n.category&&null!==n.category){var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)},l={latitude:o.latitude,longitude:o.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:o}),t.mapRef.animateToCoordinate({latitude:o.latitude,longitude:o.longitude},1e3),t.mapRef.animateToRegion(l,1e3),t.setState({isLoading:!1,isLoadingMap:!1,loadingDialog:!1}),"geolocated"!==n.category?t.showMyMembers():o.latitude<=0&&o.longitude<=0&&t.props.navigation.push(K.updateinfo)}else t.getPosition(),t.watchLocation()}),console.log("Camera permission granted")):console.log("Camera permission denied"),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),console.log(n.t0);case 10:case"end":return n.stop()}},null,null,[[0,7]],Promise)}},{key:"watchLocation",value:function(){var t=this;this.watchID=D.default.watchPosition(function(n){var o=t.state.myPosition,l=n.coords;t.state.oldPosition;o&&l.longitude===o.longitude&&l.latitude===o.latitude||(0!==l.longitude&&0!==l.latitude&&t._storeData(l),((0,P.default)(t.state.region,{})||(0,P.default)(t.state.region,void 0)||(0,P.default)(t.state.region,null))&&(t.state.myPosition.longitude||t.state.myPosition.latitude||null!==t.mapRef&&void 0!==t.mapRef&&(t.mapRef.animateToRegion({latitude:l.latitude,longitude:l.longitude,latitudeDelta:.03,longitudeDelta:.01},1e3),t.mapRef.animateCamera({center:t.myPosition,pitch:0,heading:0,altitude:0,zoom:12},1e3))),t.setState({region:{latitude:l.latitude,longitude:l.longitude,latitudeDelta:.003,longitudeDelta:.004}}),t.setState({myPosition:l}),t.map&&t.map.focusToUser())},function(t){return console.log("wat s",t)},W)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,C.getCountryNetwork)(t).then(function(o){n.reseaux=[];var l=o;for(var s in l)n.reseaux.push(l[s]);n.setState({networks:n.reseaux});var u=n.reseaux.filter(function(t){return t.name.includes(n.state.network)});void 0!==n.state.user.category&&null!==n.state.user.category||(console.log(n.state.user),u.length>0&&t?(n.setState({filternetwork:u[0],myNetwork:u[0],filternetworkTemp:u[0]}),n.retrieveAllPoint(t)):(console.log("on getnetworks",o),n.state.user&&(n.state.user.category||y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1}))))},function(o){console.log("error getnetwork"+e.message),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})});else{console.log("get network missing pays");y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.requestCameraPermission()}}],{cancelable:!1})}}},{key:"getPosition",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.log("on get position"),D.default.getCurrentPosition(function(o){var l=t.state.myPosition,s=o.coords;t.state.oldPosition;if(!(0,P.default)(s,l)&&0!==s.longitude&&0!==s.latitude||l){t.map&&t.map.focusToUser(),(0,S.getPositionInformation)(s).then(function(o){if(o)if(void 0!==o.results){if(o.results.length>0){var l=o.results[0],s=l.address_components,u=l.formatted_address,c=l.place_id;t.setState({address:s,textadress:u,place:c});for(var f,h,p=o.results,k=0;k=v.length)break;S=v[b++]}else{if((b=v.next()).done)break;S=b.value}var C=S;C.code===f&&(t.setState({indicatif:C.dial_code}),t.getNetworks(C.dial_code))}}}else console.log("on else result null "),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1})});var u={latitude:s.latitude,longitude:s.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:s,region:u}),t.mapRef&&!t.state.myPositionIsAnimated&&(t.mapRef.animateCamera({center:s,pitch:0,heading:0,altitude:5,zoom:13},1e3),t.setState({myPositionIsAnimated:!0}))}else console.warn("errror")},function(n){switch(console.warn(n.message),n.code){case 3:t.state.oldPosition&&t.treatPosition(t.state.oldPosition);break;default:console.log("onjjj",n.message)}},W)}},{key:"componentDidDisappear",value:function(){y.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;y.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,C.readUser)().then(function(n){if(n&&n.category){t.setState({user:n}),t.setState({network:n.network});var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)};t.setState({myPosition:o}),t.refocusMap(!1)}})}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&D.default.clearWatch(this.watchID)}}]),(0,f.default)(n,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:N.default.t('MAP')});var t=Math.random();this.setState({lang:t})}},{key:"makeCardSearch",value:function(){var t=this;if(!this.state.isPubShow)return p.default.createElement(y.View,{style:Z.topBar},p.default.createElement(V.Surface,{style:{elevation:4,borderRadius:10}},p.default.createElement(y.View,{style:{flexDirection:'row',alignSelf:'center',justifyContent:'center',flex:1,borderRadius:10,margin:10,alignItems:'center',height:48}},p.default.createElement(y.TouchableOpacity,{onPress:function(){return t.openDrawer()}},p.default.createElement(y.Text,{style:Z.hambuger},"Menu")),p.default.createElement(y.View,{style:{flex:1}}),p.default.createElement(y.Text,{style:{backgroundColor:this.state.myNetwork.id===this.state.filternetwork.id?G.primary:G.accent,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12}},this.state.filternetwork.name?this.state.filternetwork.name:this.state.network),this.renderSupplementInformation()),this.showLoadingMapView()))}},{key:"renderSupplementInformation",value:function(){var t=this;return this.state.user&&"geolocated"===this.state.user.category?p.default.createElement(y.View,null):p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",justifyContent:'center',alignItems:'center',alignSelf:'center'}},p.default.createElement(y.Text,null,this.state.markers.length+" "+(0===this.state.currentNetworkSize?"":"/"+this.state.currentNetworkSize)," ")),p.default.createElement(y.TouchableOpacity,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:12,height:32,width:32,backgroundColor:"white",borderColor:"transparent"}},p.default.createElement(L.default,{name:this.state.markers.length>=this.state.currentNetworkSize?"close":"refresh",size:32,color:this.state.markers.length>=this.state.currentNetworkSize?"red":"grey"})))}},{key:"_renderMarker2",value:function(){var t=this,n=this.state,o=n.currentMarker,l=n.myPosition,s=o,u={latitude:parseFloat(o.latitude),longitude:parseFloat(o.longitude)},c=H.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+N.default.t('TO_YOU'),h=null===s.lastname?s.adresse:s.lastname;return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"white"}},p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center',backgroundColor:"white"}},p.default.createElement(y.Text,{style:Q.title},h),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.subtitle2},s.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:Q.reseau},s.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},f),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(s)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"_renderItemMarkerdetails",value:function(t){var n=this,o=t;if(void 0!==o&&null!==o){var l=this.state,s=l.currentMarker,u=l.myPosition,c={latitude:parseFloat(s.latitude),longitude:parseFloat(s.longitude)},f=H.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+N.default.t('TO_YOU'),k=null===o.lastname?o.adresse:o.lastname;return p.default.createElement(v.CardView,{style:Q.container,cardElevation:2,cardMaxElevation:2,cornerRadius:5},p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},p.default.createElement(y.Text,{style:Q.title},k),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.subtitle2},o.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:Q.reseau},o.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},h),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(o)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}}},{key:"renderCurrentMarker",value:function(t){var n=this;if(t)return p.default.createElement(y.View,null,p.default.createElement(y.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},p.default.createElement(y.Text,{style:Q.title},name),p.default.createElement(L.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:Q.title},t.adresse),p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.Text,{style:Q.reseau},t.network),p.default.createElement(y.Text,{style:Q.solde},N.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:Q.reseau},distanceTxt),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,E.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(t)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,A.default)(n).catch(function(t){return console.log(t)})}},{key:"makeMarkerInformation",value:function(){var t=this.state,n=t.currentMarker;t.myPosition;return void 0!==n&&null!==n?this._renderItemMarkerdetails(n):p.default.createElement(y.Text,null,"Impossible de'afficher l'element")}},{key:"makeActionButon",value:function(){var t=this.state.user;if(t)switch(t.category){case"super":return this.getSuperActionButton();case"geolocated":return this.geoLocatedAction();case"hyper":return this.getHypervisorActionButton();default:return this.getSimpleActionButton()}}},{key:"getSuperActionButton",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return p.default.createElement(w.default,{ref:function(n){return t.actionButton=n}},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},p.default.createElement(L.default,{name:"filter-list",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#9b59b6",title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},p.default.createElement(L.default,{name:"rss-feed",style:Z.actionButtonIcon})))}},{key:"toggleSlidingUp",value:function(t){var n=this;t&&this.bottomSheetRef?(this.bottomSheetRef.snapTo(1),this.setState({showcurentMarker:t})):t||this.bottomSheetRef.snapTo(0);var o=t?Y:0,l=t?0:Y;this.setState({panelVisible:t}),!t&&this.state.needRoad&&this.setState({needRoad:!1}),this.state.animation.setValue(o),y.Animated.timing(this.state.animation,{toValue:l,duration:200}).start(function(o){!t&&n.map&&n.map.focusToUser()})}},{key:"makeSlidingUp",value:function(){var t=this;return p.default.createElement(z.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[0,"30%"],renderHeader:function(){return t.markerView()}})}},{key:"_renderFavoriteIcon",value:function(){var t=this,n=this.props.draggableRange,o=n.top,l=n.bottom,s=[{scale:this._draggedValue.interpolate({inputRange:[l,o],outputRange:[1,0],extrapolate:'clamp'})}];return p.default.createElement(y.TouchableNativeFeedback,{onPress:function(){t.setState({needRoad:!0})}},p.default.createElement(y.Animated.View,{style:[Z.favoriteIcon,{transform:s}]},p.default.createElement(L.default,{name:"car",size:24,color:"white",style:{alignSelf:'center'}})))}},{key:"geInitialState",value:function(){return{region:{latitude:0,longitude:0,latitudeDelta:.015,longitudeDelta:.0121},pas:100,prevRegion:{latitude:0,longitude:0},isPubShow:!0,loadingDialog:!0,textreach:"",currentNetworkSize:0,markersearchfilter:[],animation:new y.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:j[1],needRoad:!1,initialAnim:!1,filternetwork:{},destinationPosition:{},panelVisible:!1,markers:[],isNeedLoadMore:!1,isLoadingMap:!1,value:5,page:0,valuePosition:0,markerfilter:null,allpoint:[],typeMap:'standard',indexTypeMap:0,user:null,snack_visible:!1,snack_text_message:"",networks:[],dialogSliderVisible:!1,showProgress:!1,myNetwork:{},dialogNetworkVisible:!1}}},{key:"onMarkerPress",value:function(t){console.warn(t),this.setState({currentMarker:t}),this.toggleSlidingUp(!0)}},{key:"onMapTypeChange",value:function(){var t={index:this.state.indexTypeMap,text:this.state.typeMap};switch(t.index=t.index+1,t.index=t.index%3,t.index){default:t.text='standard';break;case 1:t.text='hybrid';break;case 2:t.text="terrain"}this.setState({indexTypeMap:t.index,typeMap:t.text})}},{key:"showInterticiel",value:function(){var t=this;if(this.state.isPubShow)return p.default.createElement(O.default,{closeIntersticiel:function(){return t.setState({isPubShow:!1})},navigation:this.props.navigation})}},{key:"renderBottomHome",value:function(){var t=this;return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"lightblue"}},p.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:function(){(0,C.readUser)().then(function(n){n&&(t.setState({user:n}),t.setState({network:n.network}),n.category?(t.setState({loadingDialog:!1}),"geolocated"!==n.category?t.showMyMembers():myPosition.latitude<=0&&myPosition.longitude<=0&&t.props.navigation.push(K.updateinfo)):'android'===y.Platform.OS?t.requestCameraPermission():(t.getPosition(),t.watchLocation()))})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),p.default.createElement(z.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[60,"30%","100%"],renderHeader:function(){return t.renderHeader()}}))}},{key:"renderInner",value:function(){return p.default.createElement(y.View,{style:{flex:1,backgroundColor:"green"}},p.default.createElement(y.Text,null,"Freud junior"))}},{key:"markerView",value:function(){if(this.state.currentMarker)return this._renderMarker2()}},{key:"renderHeader",value:function(){var t=this;return p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:{position:"absolute",width:32,height:this.state.currentMarker?200:100,bottom:80,right:0,justifyContent:'center'}},p.default.createElement(w.default,{size:32,style:{marginRight:15},buttonColor:"white"}),p.default.createElement(w.default,{size:42,renderIcon:function(){return p.default.createElement(L.default,{name:"group-work",style:Z.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:G.primary})),p.default.createElement(y.View,{style:{flex:1,backgroundColor:"white"}},this.markerView(),this.renderFilterMarker(),p.default.createElement(y.View,{style:{flexDirection:'row',height:60,justifyContent:'space-evenly',alignItems:'flex-end'}},p.default.createElement(y.View,{style:{flexDirection:'row',flex:1,marginBottom:10,justifyContent:'space-around',alignItems:'flex-end'}},p.default.createElement(V.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:G.primary,style:{backgroundColor:"white"},onPress:function(){t.state.showFilterDistance?(t.bottomSheetRef.snapTo(0),t.setState({showFilterDistance:!1})):(t.bottomSheetRef.snapTo(2),t.setState({showFilterDistance:!0}))}}),p.default.createElement(V.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:G.primary},onPress:function(){t.bottomSheetRef.snapTo(2),t.setState({showdialogNetworkVisible:!0})}})),this.makeMarkerButton())))}},{key:"renderFilterMarker",value:function(){var t=this;if(this.state.showFilterDistance)return p.default.createElement(y.View,{style:{height:(0,E.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},p.default.createElement(y.View,{style:{height:(0,E.responsiveHeight)(30),justifyContent:'center'}},p.default.createElement(y.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),p.default.createElement(M.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),p.default.createElement(y.Text,null,p.default.createElement(y.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND"))),p.default.createElement(y.View,{style:{flexDirection:"row",flex:1}},p.default.createElement(x.default,{style:{flex:1}}),p.default.createElement(x.default,{style:{flex:1}})))}},{key:"makeMarkerButton",value:function(){var t=this;return this.state.currentMarker?p.default.createElement(y.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(x.default,{style:{backgroundColor:"white",width:(0,E.responsiveWidth)(26),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(marker)}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"phone",size:16,color:G.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CALL"))))):p.default.createElement(y.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}})}},{key:"renderOldHome",value:function(){var t=this;return p.default.createElement(y.View,{style:Z.container},p.default.createElement(y.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog?p.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,E.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,E.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},N.default.t("LOADING_DOTS"))):null,p.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:'android'===y.Platform.OS?this.onMapReady:null,onLayout:'ios'===y.Platform.OS?this.onMapReady:null,needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),p.default.createElement(B.default,{visible:this.state.snack_visible,textMessage:this.state.snack_text_message,autoHidingTime:5e3}),this.makeActionButon())}},{key:"renderTutoOldHome",value:function(){return p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(CopilotStep,{text:"This is a hello world example!",order:1,name:"hello"},this.makeCardSearch()))}},{key:"render",value:function(){return this.renderOldHome()}},{key:"renderCurrentMarker",value:function(){if(this.state.currentMarker)return p.default.createElement(y.View,{style:{height:200,backgroundColor:'#fff'}},this.makeMarkerInformation())}},{key:"makeDialogLoader",value:function(){return p.default.createElement(I.ProgressDialog,{visible:this.state.showProgress,title:N.default.t("LOADING_PROGRESS"),message:N.default.t("WAITING_LONG"),animationType:"slide",activityIndicatorSize:"large",activityIndicatorColor:"blue"})}},{key:"showMynetworkMap",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null===n?this.state.user:n,l=this.state.myNetwork;return this.setState({filternetwork:l,page:0,filternetworkTemp:l,loadingDialog:!0}),new Promise(function(){void 0!==l?t.loadingMarkers(t.state.myPosition,l,t.state.value).then(function(n){var l=n||[];if(t.setState({loadingDialog:!1}),void 0!==o.category&&null!==o.category){var s=l.filter(function(t){return t.code_parrain===o.code_membre});t.treatNewData(t.state.myPosition,s,!0)}else t.treatNewData(t.state.myPosition,l,!0)}).catch(function(n){t.setState({loadingDialog:!1}),console.log("error j"),console.log(n)}):(t.setState({loadingDialog:!1}),console.log("error no net"))})}},{key:"showMyMembers",value:function(){var t=this,n=this.state.user.code_membre;void 0!==n?(0,S.loadGroupeAgent)(n).then(function(n){if(1===n.success)return t.setState({markers:n.datas})}):console.log("error")}},{key:"slidingComplete",value:function(t){this.setState({value:this.filterOptions[t].value,valuePosition:t})}},{key:"makeDistanceDialog",value:function(){var t=this;return p.default.createElement(_.MaterialDialog,{visible:this.state.dialogSliderVisible,title:N.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:N.default.t("QUIT_"),okLabel:N.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},p.default.createElement(y.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),p.default.createElement(M.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),p.default.createElement(y.Text,null,p.default.createElement(y.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND")))}},{key:"showFilterDialog",value:function(){this.setState({dialogSliderVisible:!0})}},{key:"filterPoint",value:function(){var t,n,l,s,u,c=this;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:t=this.state,n=t.value,l=t.myPosition,t.user,s=t.filternetwork,void 0!==n?(this.setState({page:0}),1e3*n,u=this.state.networks.filter(function(t){return t.id===s.id}),u[0],this.loadingMarkers(l,s,n).then(function(t){c.treatNewData(c.state.prevRegion,t,!0)}).catch(function(t){c.setState({showProgress:!1}),y.Alert.alert(N.default.t("ERROR_FILTER"),N.default.t("ERROR_FILTER_TEXT"),[{text:N.default.t("CANCEL")},{text:N.default.t("RESTART"),onPress:function(){c.filterPoint()}}])})):(this.setState({showProgress:!1}),this.setState({snack_visible:!0,snack_text_message:"impossible de filtrer les \xe9lements"}),setTimeout(function(){c.setState({snack_visible:!1})},5e3));case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"userChangeMarker",value:function(t){var n=this.state.markers[t];if(null!==this.mapRef&&void 0!==this.mapRef){var o={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude),latitudeDelta:.03,longitudeDelta:.01};this.mapRef.animateToCoordinate({latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)},1e3),this.mapRef.animateToRegion(o,1e3),console.log(n)}}},{key:"geoLocatedAction",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"layers",style:Z.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return p.default.createElement(_.MaterialDialog,{title:N.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:N.default.t("CHOICE_NETWORK_TEXT"),onCancel:function(){return t.setState({dialogNetworkVisible:!1})},onOk:function(n){t.setState({dialogNetworkVisible:!1,page:0}),t.setState({showProgress:!0,filternetwork:t.state.filternetworkTemp}),setTimeout(function(){return t.showFilterNetwork()},500)}},p.default.createElement(y.FlatList,{style:{height:(0,E.responsiveHeight)(40)},data:this.state.networks,renderItem:function(n){var o=n.item;return t.renderRow(o)}}))}},{key:"onRowPress",value:function(t){this.setState({filternetworkTemp:t})}},{key:"showNewDialogNetwork",value:function(){this.setState({dialogNetworkVisible:!0})}},{key:"showFilterNetwork",value:function(){var t,n,l,s=this;return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:t=this.state,n=t.myPosition,t.user,void 0!==(l=t.filternetwork)?(this.setState({showProgress:!0}),this.loadingMarkers(this.state.myPosition,l,this.state.value,0).then(function(t){s.setState({showProgress:!1}),s.treatNewData(n,t,!0)}).catch(function(t){s.setState({snack_visible:!0,snack_text_message:"Probleme de connexion"}),console.log(t)})):console.log("error no net");case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"showBtnItineraire",value:function(){var t=this;return p.default.createElement(x.default,{style:{backgroundColor:G.primary,width:(0,E.responsiveWidth)(30),height:36,borderRadius:100,marginLeft:5,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!0,showProgress:!0})}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return p.default.createElement(x.default,{style:{backgroundColor:G.reddeconnect,height:36,width:(0,E.responsiveWidth)(30),borderRadius:100,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!1,showProgress:!1})}},p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(L.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,E.responsiveWidth)(2)}},N.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return p.default.createElement(w.default,{buttonColor:G.accent},p.default.createElement(w.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(L.default,{name:"person-pin",style:Z.actionButtonIcon})),p.default.createElement(w.default.Item,{buttonColor:G.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(L.default,{name:"map",style:Z.actionButtonIcon})))}},{key:"moveToMarker",value:function(t){this.mapRef.animateToCoordinate({latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)},1e3),this.setState({textreach:t.lastname,texta:!0}),this.setState({markersearchfilter:[]}),this.onMarkerPress(t)}},{key:"refocusMap",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.mapRef&&void 0!==this.state.myPosition&&this.mapRef.animateCamera({center:{latitude:this.state.myPosition.latitude,longitude:this.state.myPosition.longitude},pitch:0,heading:0},1e3):this.mapRef&&void 0!==this.state.myPosition&&this.mapRef.animateCamera({center:{latitude:this.state.myPosition.latitude,longitude:this.state.myPosition.longitude},pitch:0,heading:0,altitude:5,zoom:12},1e3),this.map&&this.map.focusToUser()}},{key:"renderCardSeashItem",value:function(t){var n=this;return p.default.createElement(y.TouchableOpacity,{key:t.id,style:{margin:5},onPress:function(){n.moveToMarker(t)}},p.default.createElement(y.Text,{style:{flex:1,fontSize:14,color:"#000"}},null===t.firstname?t.adresse:t.firstname),p.default.createElement(y.Text,{style:{flex:1,fontSize:12}},t.lastname),p.default.createElement(y.Text,{style:{flex:1,fontSize:13,alignSelf:'flex-end',color:G.accent}},t.network))}},{key:"retrieveAllPoint",value:function(t){var n=this;(0,S.getMakersFrom)(t).then(function(o){new Promise(function(t,l){try{var s=o.datas;n.setState({allpoint:s,loadingDialog:!1}),t(s)}catch(t){console.warn(t.message),l(new Error(t.message))}}).then(function(t){n.onLoadMore()}).catch(function(o){n.setState({loadingDialog:!1}),console.log("on get marker"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission()}}],{cancelable:!1})})}).catch(function(o){console.log("on retreive>getmarkers",o.message),n.setState({loadingDialog:!1}),n.state.allpoint.length<=0&&(console.log("no point"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.state.allpoint.length<=0&&(n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission())}}],{cancelable:!1}))})}},{key:"showLoadMoreView",value:function(){var t=this;if(this.state.isNeedLoadMore)return p.default.createElement(y.View,{style:{flex:1,flexDirection:'row',width:(0,E.responsiveWidth)(90)}},p.default.createElement(x.default,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:48,height:48,width:48,backgroundColor:"white",borderColor:"transparent",alignItems:"center",justifyContent:"center"}},p.default.createElement(L.default,{name:"refresh",size:32})),p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,E.responsiveWidth)(20),height:30,borderRadius:12,justifyContent:'center',alignItems:'center',alignSelf:'center'}},p.default.createElement(y.Text,null,(this.state.markers.length,this.state.markers.length)," / ",this.state.currentNetworkSize," ")))}},{key:"showLoadingMapView",value:function(){if(this.state.isLoadingMap)return p.default.createElement(y.View,{style:{flexDirection:'row',margin:10,width:(0,E.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},p.default.createElement(y.Text,{style:{fontSize:12,alignSelf:'center'}},N.default.t("LOADING_TEXT_MARKERS")+" "+this.state.value+" km "+N.default.t("DISTANCE_ARROUND")),p.default.createElement(y.ProgressBarAndroid,{style:{alignSelf:'center'}}))}},{key:"loadingMarkers",value:function(t,n,o){var l=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return new Promise(function(u,c){var f=l.state.allpoint,h=void 0!==s?s:l.state.page,p=f.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return H.getDistance(t,u)<=1e3*o&&l.network===n.name}).slice(0,(h+1)*l.state.pas);try{var y=f.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return H.getDistance(t,u)<=1e3*o&&l.network===n.name});l.setState({currentNetworkSize:y.length,currentNetworkMarkers:y})}catch(t){console.debug("after "+t.message)}console.debug("data:",p,"value"+1e3*o),u(p)})}},{key:"treatNewData",value:function(t,n){var o=this,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setState({isLoadingMap:!1});var s=n;if(n.length>0){var u=s;l&&this.setState({showProgress:!1}),u.length>0&&this.setState({markers:u,prevRegion:t}),s.length0){var o=n.results[0],l=o.address_components,u=o.formatted_address,c=o.place_id;s.setState({address:l,textadress:u,place:c});for(var f,h,p=n.results,k=0;k=v.length)break;S=v[b++]}else{if((b=v.next()).done)break;S=b.value}var C=S;C.code===f&&(s.setState({indicatif:C.dial_code}),s.getNetworks(C.dial_code))}}}else console.log("on treat 1"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1});else console.log("on treat 2"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}).catch(function(n){console.log("on treat 3"),y.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}),l={latitude:t.latitude,longitude:t.longitude,latitudeDelta:.03,longitudeDelta:.01},this.setState({myPosition:t,region:l}),this.mapRef&&!this.state.myPositionIsAnimated&&(this.mapRef.animateCamera({center:t,pitch:0,heading:0,altitude:5,zoom:13},1e3),this.setState({myPositionIsAnimated:!0})));case 3:case"end":return o.stop()}},null,this,null,Promise)}}]),n})(T.default);q.navigationOptions=function(t){return{headerMode:"none",headerStyle:{display:'none'},header:null,drawerLabel:t.navigation.getParam("name",N.default.t('MAP')),drawerIcon:function(t){var n=t.tintColor;return p.default.createElement(L.default,{name:'map',size:24,color:n})}}},q.defaultProps={draggableRange:{top:(0,E.responsiveHeight)(30),bottom:0},panel:null};var J=q;e.default=J;var Q=y.StyleSheet.create({solde:{backgroundColor:G.accent,color:"white",marginLeft:10,padding:5,fontSize:9,borderRadius:100},title:{color:'black',marginLeft:10,flex:1,fontSize:11,fontWeight:'bold'},subtitle2:{color:'black',marginLeft:10,flex:1,fontSize:10,fontWeight:'bold'},subtitle:{color:'black',marginLeft:9,fontSize:9},otherInformation:{marginLeft:13,fontSize:9},reseau:{marginLeft:10,fontWeight:'bold',color:G.accent,fontSize:10},container:{flex:1,width:(0,E.responsiveWidth)(95),alignSelf:"center",paddingTop:(0,E.responsiveHeight)(1),marginBottom:(0,E.responsiveHeight)(1),backgroundColor:"white",justifyContent:'flex-start'}}),Z=y.StyleSheet.create({container:{flex:1,backgroundColor:'#FFF'},panelContainer:{position:'absolute',top:0,bottom:0,left:0,right:0},panel:{height:600,padding:20,backgroundColor:'#f7f5eee8'},header:{backgroundColor:'#f7f5eee8',shadowColor:'#000000',paddingTop:20,borderTopLeftRadius:20,borderTopRightRadius:20},panelHandle:{width:40,height:8,borderRadius:4,backgroundColor:'#00000040',marginBottom:10},panelTitle:{fontSize:27,height:35},panelSubtitle:{fontSize:14,color:'gray',height:30,marginBottom:10},panelButton:{padding:20,borderRadius:10,backgroundColor:'#318bfb',alignItems:'center',marginVertical:10},panelButtonTitle:{fontSize:17,fontWeight:'bold',color:'white'},fab:{position:'absolute',margin:16,right:0,bottom:0},networkname:{backgroundColor:G.primary,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:G.accent,height:32,justifyContent:'center',alignItems:'center',width:32,borderRadius:16},rowContainer:{height:52,flex:1,flexDirection:'row',justifyContent:'flex-start',alignItems:'center'},iconContainer:{marginRight:16},mapmarker:{width:52,height:52},slidingup:{backgroundColor:"transparent",position:"absolute",height:Y,bottom:0,left:(0,E.responsiveWidth)(2.5),width:(0,E.responsiveWidth)(95),zIndex:1},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,E.responsiveWidth)(75),backgroundColor:G.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{color:G.primary,borderColor:G.primary,borderWidth:1,alignSelf:'center',padding:5},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',borderRadius:10,alignItems:'center',marginTop:(0,E.responsiveHeight)(4),width:(0,E.responsiveWidth)(90)},searchInput:{flex:1,fontSize:14},search:{width:(0,E.responsiveWidth)(70),height:(0,E.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,E.responsiveWidth)(100),height:(0,E.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,E.responsiveWidth)(90),height:(0,E.responsiveHeight)(10),position:'absolute',alignSelf:'center',marginTop:5},actionButtonIcon:{fontSize:20,height:22,color:'white'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},1152,[4,1,273,8,10,12,11,9,13,15,18,1153,524,528,527,771,764,711,815,681,709,712,737,768,1373,1378,1379,827,804,826,1380,1029,1384,1444,813,1471,808,806,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[2])),s=o(r(d[3])),l=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=t(r(d[7])),p=t(r(d[8])),h=o(r(d[9])),y=r(d[10]),k=r(d[11]),v=o(r(d[12])),R=o(r(d[13])),b=o(r(d[14])),C=(r(d[15]),r(d[16])),w=(r(d[17]),r(d[18]),(function(t){function o(t){var s;return(0,n.default)(this,o),(s=(0,l.default)(this,(0,u.default)(o).call(this,t))).mapRef=function(t){s.mapview=t},s.getMapRef=function(){return s.mapview},s.state={markers:[],roadReady:!1,isNeedUserFocus:!1},s}return(0,c.default)(o,t),(0,s.default)(o,[{key:"componentWillReceiveProps",value:function(t,o){var n=this.state.markers,s=t.markers;n.length<=0?this.setState({markers:s}):n.length!==s&&this.setState({markers:s}),this.setState({isNeedUserFocus:t.isNeedUserFocus})}},{key:"render",value:function(){var t=this,o=this.props,n=(o.markers,o.initialRegion),s=(o.myPosition,o.myNetwork),l=o.typeMap,u=o.selectedMarker;return null!==n&&null!==s?f.default.createElement(y.View,{style:N.container},f.default.createElement(p.default,{style:{flex:1},initialRegion:n,mapType:l,ref:function(o){return t.mapview=o},onMapReady:this.props.onMapReady,onLayout:this.props.onLayout,onRegionChangeComplete:function(o){t.onRegionChangeOver(o)}},this.state.markers.map(function(o,n){return f.default.createElement(v.default,{isUser:!1,title:o.lastname,isSelected:u&&u.id===o.id,data:o,onPress:function(o,n){return t.props.onMarkerClick(o,n)},network:s})}),this.renderMyPosition(),this.makeDirection())):f.default.createElement(y.View,null)}},{key:"focusToUser",value:function(){this.setState({isNeedUserFocus:!0})}},{key:"closeUserFocus",value:function(){this.setState({isNeedUserFocus:!1})}},{key:"onRegionChangeOver",value:function(t){}},{key:"makeDirection",value:function(){var t=this,o=this.props,n=o.myPosition,s=o.selectedMarker,l=o.needRoad;if(null!==n&&null!==s&&void 0!==s&&void 0!==n&&l)return setTimeout(function(){t.state.roadReady||(t.setState({roadReady:!0}),t.props.onNeedRoadError())},1e4),f.default.createElement(b.default,{origin:n,destination:s,apikey:"AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI",strokeWidth:3,onReady:function(o){t.setState({roadReady:!0}),t.props.onNeedRoadReady(o)},onError:function(){t.setState({roadReady:!0}),t.props.onNeedRoadError()},strokeColor:C.primary})}},{key:"renderMyPosition",value:function(){var t=this.props,o=t.myPosition;t.myNetwork;if(null!=o)return f.default.createElement(v.default,{isUser:!0,lang:this.props.lang,isNeedFocus:this.state.isNeedUserFocus,title:R.default.t("YOUR_THERE"),data:{longitude:o.longitude,latitude:o.latitude}})}}]),o})(f.PureComponent));w.propTypes={markers:h.default.array,map:h.default.object,network:h.default.object,myNetwork:h.default.object,selectedMarker:h.default.object,myPosition:h.default.object,onMarkerClick:h.default.func,initialRegion:h.default.object,typeMap:h.default.string,needRoad:h.default.bool,isNeedUserFocus:h.default.bool,onNeedRoadReady:h.default.func,onNeedRoadError:h.default.func,onMapReady:h.default.func,onLayout:h.default.func},w.defaultProps={isNeedUserFocus:!1};var S=w;e.default=S;var N=y.StyleSheet.create({container:{flex:1,backgroundColor:'#FFF'},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:C.accent,height:32,justifyContent:'center',alignItems:'center',width:32,borderRadius:16},rowContainer:{height:52,flex:1,flexDirection:'row',justifyContent:'flex-start',alignItems:'center'},iconContainer:{marginRight:16},mapmarker:{width:52,height:52},slidingup:{backgroundColor:"transparent",position:"absolute",height:300,bottom:0,right:35,zIndex:1},panel:{flex:1,backgroundColor:'white',position:'relative'},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,k.responsiveWidth)(75),backgroundColor:C.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',alignItems:'center',marginTop:(0,k.responsiveHeight)(4),width:(0,k.responsiveWidth)(95)},searchInput:{width:(0,k.responsiveWidth)(70),fontSize:14},search:{width:(0,k.responsiveWidth)(70),height:(0,k.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,k.responsiveWidth)(100),height:(0,k.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,k.responsiveWidth)(90),height:(0,k.responsiveHeight)(10),position:'absolute',alignSelf:'center',marginTop:5},actionButtonIcon:{fontSize:20,height:22,color:'white'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},1153,[4,1,8,9,10,12,13,15,950,68,18,527,1154,712,1158,1160,806,1156,1157]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),p=t(r(d[7])),f=t(r(d[8])),h=(n(r(d[9])),r(d[10])),v=r(d[11]),k=r(d[12]),y=r(d[13]),w=(function(t){function n(t){var l;(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).handleViewRef=function(t){return l.view=t};var c=l.props.data;return l.state={animation:new h.Animated.Value(0),subanimation:new h.Animated.Value(0),coordinate:{longitude:parseFloat(c.longitude),latitude:parseFloat(c.latitude)}},l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentWillReceiveProps",value:function(t){var n=parseFloat(this.props.data.longitude),o=parseFloat(this.props.data.latitude),l={longitude:parseFloat(t.data.longitude),latitude:parseFloat(t.data.latitude)};n===l.longitude&&o===l.latitude||'android'===h.Platform.OS&&this.markerRef&&this.markerRef._component.animateMarkerToCoordinate(l,500)}},{key:"startAnimation",value:function(){this.state.animation.setValue(0),h.Animated.timing(this.state.animation,{toValue:1,duration:500,easing:h.Easing.linear(),useNativeDriver:!0}).start()}},{key:"render",value:function(){var t=this,n=this.props,o=n.data;n.network,n.isSelected;return o.longitude&&o.latitude?p.default.createElement(f.Marker.Animated,{coordinate:this.state.coordinate.longitude?this.state.coordinate:{longitude:o.longitude,latitude:o.latitude},id:o.id,title:this.props.title,ref:function(n){t.markerRef=n},onPress:function(n){t.props.isUser||t.props.onPress(o)},image:this.getImage(o)}):p.default.createElement(h.View,null)}},{key:"error",value:function(t){console.log("on error render image"),console.log(t)}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(t,n,o){this.props.isUser&&this.markerRef&&this.props.isNeedFocus&&this.markerRef._component.showCallout()}},{key:"getImage",value:function(t){var n=this.props,o=n.isUser,l=n.network;return o?v:l&&t.network===l.name?k:y}},{key:"getIcon",value:function(t){var n=this.props.isSelected;return n?p.default.createElement(h.Animated.View,{style:{width:32,height:32,justifyContent:'center',alignItems:'center',borderRadius:16,backgroundColor:n?"#81D4FAA0":"transparent",transform:[{scaleX:this.animatedValue.interpolate({inputRange:[0,1],outputRange:[1,32]})},{scaleY:this.animatedValue.interpolate({inputRange:[0,1],outputRange:[1,32]})}]}},p.default.createElement(h.Image,{style:{alignSelf:'center'},source:this.getImage(t)})):p.default.createElement(h.Image,{style:{alignSelf:'center'},source:this.getImage(t)})}},{key:"startLoopSelectedAnimation",value:function(){this.state.animation.setValue(0),h.Animated.loop(h.Animated.timing(this.state.subanimation,{toValue:1,duration:1e3,easing:h.Easing.linear(),useNativeDriver:!0}),{iteration:-1}).start()}}]),n})(p.PureComponent),R=(h.StyleSheet.create({container:{flex:1,width:52,height:52},ring:{}}),w);e.default=R},1154,[4,1,8,9,10,12,13,15,950,68,18,1155,1156,1157]); __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/datas/img/png",width:24,height:24,scales:[1],hash:"d06bce4cbcb1e05fdef054d57b75acb3",name:"user_place",type:"png"})},1155,[175]); __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/datas/img/png",width:24,height:24,scales:[1],hash:"c7dbfebac5a740adca4859530374dbd1",name:"home_network",type:"png"})},1156,[175]); diff --git a/package.json b/package.json index 1dbd8041..dd1575d4 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,10 @@ "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest", "postinstall": "node ./fix-android/android-release-fix.js", - "release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/build/intermediates/res/merged/release/ && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd ..", - "debug-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew assembleDebug && cd .." + "release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/build/intermediates/res/merged/release/ && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd .. && adb install android/app/build/outputs/apk/release/app-release.apk", + "debug-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew assembleDebug && cd .. && adb install android/app/build/outputs/apk/debug/app-debug.apk", + "start-emulator": "emulator -avd Nexus_6P_API_29 -dns-server 8.8.8.8", + "run-android": "cd android && ./gradlew clean && cd .. && react-native run-android" }, "dependencies": { "@react-native-community/viewpager": "^3.3.0", @@ -77,4 +79,4 @@ "jest": { "preset": "react-native" } -} +} \ No newline at end of file diff --git a/screens/home/Home.js b/screens/home/Home.js index 2c2a9102..1e2dee75 100644 --- a/screens/home/Home.js +++ b/screens/home/Home.js @@ -172,13 +172,14 @@ class Home extends BaseScreen { } }) + this.componentDidAppear(); - this.componentDidAppear() }); this.blurListener = navigation.addListener("didBlur", (payload) => { this.componentDidDisappear() }) this._retrieveData() + //this.toggleSlidingUp(false) if (this.props.coordinate) return; @@ -196,6 +197,7 @@ class Home extends BaseScreen { ) if (granted === PermissionsAndroid.RESULTS.GRANTED) { readUser().then((user) => { + console.log("MAP READY"); if (user) { if (user.category !== undefined && user.category !== null) { const myPosition = { @@ -227,7 +229,7 @@ class Home extends BaseScreen { } } else { - this.getPosition() + this.getPosition(); this.watchLocation(); } } @@ -417,8 +419,6 @@ class Home extends BaseScreen { if (i.code === shortcountry) { this.setState({ indicatif: i.dial_code }) this.getNetworks(i.dial_code) - - } } @@ -524,6 +524,7 @@ class Home extends BaseScreen { readUser().then((user) => { if (user) { if (user.category) { + this.setState({ user: user }) this.setState({ network: user.network }); @@ -538,11 +539,10 @@ class Home extends BaseScreen { latitudeDelta: 0.03, longitudeDelta: 0.01, } - this.setState({ myPosition: myPosition }); + this.refocusMap(false); } - if (this.state.myPosition) - this.refocusMap() + /*if (Platform.OS === 'android') { // this.requestCameraPermission(); } else { @@ -1182,10 +1182,12 @@ class Home extends BaseScreen { lang={this.state.lang} myPosition={this.state.myPosition} onMapReady={() => { + readUser().then((user) => { if (user) { this.setState({ user: user }) this.setState({ network: user.network }); + if (user.category) { this.setState({ loadingDialog: false }) if (user.category !== "geolocated") { @@ -1376,33 +1378,8 @@ class Home extends BaseScreen { myNetwork={this.state.myNetwork} lang={this.state.lang} myPosition={this.state.myPosition} - onMapReady={() => { - readUser().then((user) => { - if (user) { - this.setState({ user: user }) - this.setState({ network: user.network }); - if (user.category) { - this.setState({ loadingDialog: false }) - if (user.category !== "geolocated") { - this.showMyMembers(); - } else { - if (myPosition.latitude <= 0 && myPosition.longitude <= 0) { - this.props.navigation.push(route.updateinfo); - } - } - } else { - if (Platform.OS === 'android') { - this.requestCameraPermission(); - } else { - this.getPosition(); - this.watchLocation(); - } - } - - } - }) - - }} + onMapReady={Platform.OS === 'android' ? this.onMapReady : null} + onLayout={Platform.OS === 'ios' ? this.onMapReady : null} needRoad={this.state.needRoad} onNeedRoadReady={(data) => { this.setState({ showProgress: false }) @@ -1426,6 +1403,55 @@ class Home extends BaseScreen { ) } + + onMapReady = () => { + + readUser().then((user) => { + if (user) { + this.setState({ user: user }) + this.setState({ network: user.network }); + + const myPosition = { + latitude: parseFloat(user.latitude), + longitude: parseFloat(user.longitude) + } + + this.mapRef.animateCamera({ + center: { + latitude: myPosition.latitude, + longitude: myPosition.longitude + }, + pitch: 0, + heading: 0, + altitude: 5, + + zoom: 12 + }, 1000); + + if (user.category) { + this.setState({ loadingDialog: false }) + if (user.category !== "geolocated") { + this.showMyMembers(); + } else { + if (myPosition.latitude <= 0 && myPosition.longitude <= 0) { + this.props.navigation.push(route.updateinfo); + } + } + } else { + if (Platform.OS === 'android') { + this.requestCameraPermission(); + } else { + this.getPosition(); + this.watchLocation(); + } + } + + } + }) + .catch((error) => { + console.log(error.message) + }); + } renderTutoOldHome() { return ( diff --git a/screens/home/IMap.js b/screens/home/IMap.js index e937363d..d571326a 100644 --- a/screens/home/IMap.js +++ b/screens/home/IMap.js @@ -32,7 +32,8 @@ class IMap extends PureComponent { isNeedUserFocus: PropTypes.bool, onNeedRoadReady: PropTypes.func, onNeedRoadError: PropTypes.func, - onMapReady: PropTypes.func + onMapReady: PropTypes.func, + onLayout: PropTypes.func }; static defaultProps = { @@ -73,6 +74,7 @@ class IMap extends PureComponent { mapType={typeMap} ref={(re) => this.mapview = re} onMapReady={this.props.onMapReady} + onLayout={this.props.onLayout} onRegionChangeComplete={(re) => { this.onRegionChangeOver(re) }}> {this.state.markers.map((item, index) => { return ( diff --git a/screens/home/IMarker.js b/screens/home/IMarker.js index 98552e51..01ec244d 100644 --- a/screens/home/IMarker.js +++ b/screens/home/IMarker.js @@ -1,185 +1,184 @@ -import React,{Component,PureComponent} from 'react'; -import MapView,{Marker,MarkerAnimated,Callout,AnimatedRegion} from "react-native-maps" +import React, { Component, PureComponent } from 'react'; +import MapView, { Marker, MarkerAnimated, Callout, AnimatedRegion } from "react-native-maps" import PropTypes from 'prop-types'; import { - StyleSheet, - View, - Image, - Animated, - Easing, - Platform, - Text, + StyleSheet, + View, + Image, + Animated, + Easing, + Platform, + Text, } from 'react-native'; -const userposi=require('./../../datas/img/png/user_place.png'); -const mnetwork=require('./../../datas/img/png/home_network.png'); -const othernetwork=require('./../../datas/img/png/other_net.png'); -class IMarker extends PureComponent -{ - constructor(props){ - super(props) - const data=this.props.data - this.state={ - animation:new Animated.Value(0), - subanimation:new Animated.Value(0), - coordinate:{ - longitude: parseFloat(data.longitude), - latitude: parseFloat(data.latitude), - } - } -} - componentWillReceiveProps(nextProps) { - const duration = 500 - const oldCoord={ - longitude: parseFloat(this.props.data.longitude), - latitude: parseFloat(this.props.data.latitude), - } - const coord={ - longitude: parseFloat(nextProps.data.longitude), - latitude: parseFloat(nextProps.data.latitude), - } - if (oldCoord.longitude!==coord.longitude || oldCoord.latitude!==coord.latitude) { - if (Platform.OS === 'android') { - if (this.markerRef) { - this.markerRef._component.animateMarkerToCoordinate( - coord, - duration - ); - } - } else { +const userposi = require('./../../datas/img/png/user_place.png'); +const mnetwork = require('./../../datas/img/png/home_network.png'); +const othernetwork = require('./../../datas/img/png/other_net.png'); +class IMarker extends PureComponent { + constructor(props) { + super(props) + const data = this.props.data + this.state = { + animation: new Animated.Value(0), + subanimation: new Animated.Value(0), + coordinate: { + longitude: parseFloat(data.longitude), + latitude: parseFloat(data.latitude), + } + } + } + componentWillReceiveProps(nextProps) { + const duration = 500 + const oldCoord = { + longitude: parseFloat(this.props.data.longitude), + latitude: parseFloat(this.props.data.latitude), + } + const coord = { + longitude: parseFloat(nextProps.data.longitude), + latitude: parseFloat(nextProps.data.latitude), + } + if (oldCoord.longitude !== coord.longitude || oldCoord.latitude !== coord.latitude) { + if (Platform.OS === 'android') { + if (this.markerRef) { + this.markerRef._component.animateMarkerToCoordinate( + coord, + duration + ); + } + } else { /*this.state.coordinate.timing({ cord, duration }).start(); */} - } - } - startAnimation(){ - const initialValue=0 - const finalValue=1 - this.state.animation.setValue(initialValue); //Step 3 - Animated.timing( //Step 4 - this.state.animation, - { - toValue: finalValue, - duration:500, - easing: Easing.linear(), - useNativeDriver:true - } - ).start(); - } - handleViewRef = ref => this.view = ref; - render() { - const {data,network,isSelected}=this.props; - const color=isSelected?"#F48FB1A0":"transparent" - const colorSup=isSelected?"#F06292A0":"transparent" - const display=isSelected?"block":"none"; - if(data.longitude && data.latitude){ - - return ( - { - this.markerRef = re - }} - - onPress={e => { - if (!this.props.isUser) - this.props.onPress(data) - }} - image={this.getImage(data)} - /> + } + } + startAnimation() { + const initialValue = 0 + const finalValue = 1 + this.state.animation.setValue(initialValue); //Step 3 + Animated.timing( //Step 4 + this.state.animation, + { + toValue: finalValue, + duration: 500, + easing: Easing.linear(), + useNativeDriver: true + } + ).start(); + } + handleViewRef = ref => this.view = ref; + render() { + const { data, network, isSelected } = this.props; + const color = isSelected ? "#F48FB1A0" : "transparent" + const colorSup = isSelected ? "#F06292A0" : "transparent" + const display = isSelected ? "block" : "none"; + if (data.longitude && data.latitude) { - ); - } - return () + return ( + { + this.markerRef = re + }} - componentDidMount() { - - - } + onPress={e => { + if (!this.props.isUser) + this.props.onPress(data) + }} + image={this.getImage(data)} + /> - componentDidUpdate(prevProps: Readonly

, prevState: Readonly, snapshot: SS): void { - if(this.props.isUser) - if(this.markerRef && this.props.isNeedFocus){ - this.markerRef._component.showCallout() - } - } + ); + } + return () - getImage(data) { - const {isUser,network}=this.props; - if(isUser){ - return userposi - }else if(network && data.network===network.name){ + } + error(erro) { + console.log("on error render image"); + console.log(erro); + } + + componentDidMount() { + + + } + + componentDidUpdate(prevProps: Readonly

, prevState: Readonly, snapshot: SS): void { + if (this.props.isUser) + if (this.markerRef && this.props.isNeedFocus) { + this.markerRef._component.showCallout() + } + } + + getImage(data) { + const { isUser, network } = this.props; + if (isUser) { + return userposi + } else if (network && data.network === network.name) { return mnetwork - } - return othernetwork - } + } + return othernetwork + } - getIcon(data) { - const {isSelected}=this.props - return isSelected ? ( - - - - ) : (); + getIcon(data) { + const { isSelected } = this.props + return isSelected ? ( + + + + ) : (); - } + } - startLoopSelectedAnimation() { - const initialValue=0 - const finalValue=1 - this.state.animation.setValue(initialValue); //Step 3 - Animated.loop(Animated.timing( //Step 4 - this.state.subanimation, - { - toValue: finalValue, - duration:1000, - easing: Easing.linear(), - useNativeDriver:true - } - ),{iteration:-1}).start(); - } + startLoopSelectedAnimation() { + const initialValue = 0 + const finalValue = 1 + this.state.animation.setValue(initialValue); //Step 3 + Animated.loop(Animated.timing( //Step 4 + this.state.subanimation, + { + toValue: finalValue, + duration: 1000, + easing: Easing.linear(), + useNativeDriver: true + } + ), { iteration: -1 }).start(); + } } const styles = StyleSheet.create({ - container: { - flex:1, - width:52, - height:52 - }, - ring:{ + container: { + flex: 1, + width: 52, + height: 52 + }, + ring: { - } + } }); export default IMarker; \ No newline at end of file diff --git a/screens/login/ui/Login.ui.js b/screens/login/ui/Login.ui.js index 3a5c02cf..90ca6865 100644 --- a/screens/login/ui/Login.ui.js +++ b/screens/login/ui/Login.ui.js @@ -236,7 +236,8 @@ export class LoginUi extends Component { } for (let i of country) { if (i.code === shortcountry) { - this.setState({ indicatif: i.dial_code, enterPhone: i.dial_code }) + this.setState({ indicatif: i.dial_code, enterPhone: i.dial_code }); + console.log("DIAL CODE", i.dial_code); } } } else { diff --git a/utils/i18n/en.json b/utils/i18n/en.json index d53cfa7b..56653a2e 100644 --- a/utils/i18n/en.json +++ b/utils/i18n/en.json @@ -4,6 +4,7 @@ "HELP": "Help", "SIMPLE_USER": "Simple User", "ABOUT": "About us", + "ACTION_TREAT_DEMAND": "Treat demand", "ABOUT_TEXT": "iLink is an application that will facilitate your financial transactions near your location, and give you multiservice points near you.", "GEOLOCATED_USER": "Geo located user", "SUPERVISOR": "Supervisor", @@ -103,7 +104,8 @@ "ERROR_FILTER_TEXT": "Problem encountered while filtering.", "YOUR_THERE": "You are here", "FILTER": "Filter", - "QUIT": "Quitter", + "QUIT": "Quit", + "QUIT_": "Quit", "APP_FULLNAME": "Ilink World", "GUIDE_TITLE": "Welcome to the Guide of", "GUIDE_USER_SIMPLE": "Guide for a user", @@ -187,6 +189,7 @@ "SEARCH": "Search", "SEE_VIDEO": "Watch the video", "SEE_TUTO": "See the tutorial", + "SELECT_NETWORK": "Select your", "DELETE": "Delete", "FREE": "Available", "SAVED": "Registered", @@ -246,6 +249,8 @@ "TEXT_UPDATE_POSITION_FAILED_2": "Unable to retrieve your location", "TITLE_ERROR_SURVENU": "An error has occurred!", "TITLE_PROBLE_COME": "A problem has been encountered", + "TITLE_SUPPRESS_CONFIRM": "Confirm deletion", + "TEXT_SUPPRESS_CONFIRM": "Do you really want to delete this user ?", "TEXT_ERROR_START_APPLICATION": "An error occurred while starting iLink World, please restart iLink World", "TEXT_UNABLE_TO_GET_YOUR_POSITION": "Unable to retrieve your location, please make sure your GPS is enabled and restart iLink World", "RESTART": "REPEAT", diff --git a/utils/i18n/fr.json b/utils/i18n/fr.json index 1dd1c422..11a6997f 100644 --- a/utils/i18n/fr.json +++ b/utils/i18n/fr.json @@ -4,6 +4,7 @@ "HELP": "Aide", "SIMPLE_USER": "Utilisateur simple", "ABOUT": "A Propos", + "ACTION_TREAT_DEMAND": "Traiter la demande", "ABOUT_TEXT": "iLink est une application qui facilitera vos transactions financières près de votre position, et vous donne les points multiservices prêt de chez vous.", "GEOLOCATED_USER": "Utilisateur géo-localisé", "SUPERVISOR": "Superviseur", @@ -104,6 +105,7 @@ "YOUR_THERE": "Vous êtes ici", "FILTER": "Filtrer", "QUIT": "Quitter", + "QUIT_": "Quitter", "APP_FULLNAME": "Ilink World", "GUIDE_TITLE": "Bienvenue dans le Guide de", "GUIDE_USER_SIMPLE": "Guide pour un utilisateur", @@ -187,6 +189,7 @@ "SEARCH": "Rechercher", "SEE_VIDEO": "Voir la vidéo", "SEE_TUTO": "Voir le tutoriel", + "SELECT_NETWORK": "Sélectionner votre réseau", "DELETE": "Supprimer", "FREE": "disponibles", "SAVED": "enregistrés", @@ -246,6 +249,8 @@ "TEXT_UPDATE_POSITION_FAILED_2": "Impossible de recuperer votre position", "TITLE_ERROR_SURVENU": "Une erreur est survenue !", "TITLE_PROBLE_COME": "Un problème a été rencontré", + "TITLE_SUPPRESS_CONFIRM": "Confirmation de suppression", + "TEXT_SUPPRESS_CONFIRM": "Voulez vous vraiment supprimer cet utilisateur ?", "TEXT_ERROR_START_APPLICATION": "Une erreur est survenue au démarrage de iLink World. Veuillez relancer iLink World", "TEXT_UNABLE_TO_GET_YOUR_POSITION": "Impossible de recupérez votre position. Veuillez verifier que votre GPS est activé et relancez iLink World", "RESTART": "RECOMMENCER", diff --git a/webservice/IlinkConstants.js b/webservice/IlinkConstants.js index 50023463..9d552372 100644 --- a/webservice/IlinkConstants.js +++ b/webservice/IlinkConstants.js @@ -5,11 +5,11 @@ export const isDebugMode = false const baseUrl = "https://ilink-app.com/mobilebackend" //base url agent -//const baseUrl="https://ilink-app.com/mobilebackendtest2" +//const baseUrl = "https://ilink-app.com/mobilebackendtest2" //base url agent test //const baseUrl = "https://ilink-app.com/mobilebackendtest" - +// export const adhesionUrl = baseUrl + '/interacted/LoginAction.php'; export const memberActionUrl = baseUrl + '/interacted/MembersAction.php'; export const networkActionUrl = baseUrl + '/interacted/NetworkAction.php'; diff --git a/webservice/MapService.js b/webservice/MapService.js index 9cdd8bd9..f7e2d117 100644 --- a/webservice/MapService.js +++ b/webservice/MapService.js @@ -1,88 +1,92 @@ import React, { Component } from 'react'; -var db=require('./persistences/db.js'); +var db = require('./persistences/db.js'); import I18n from 'react-native-i18n' -import {readUser} from './AuthApi' -import {isDebugMode,MARKER_URL} from "./IlinkConstants"; +import { readUser } from './AuthApi' +import { isDebugMode, MARKER_URL } from "./IlinkConstants"; -let GEOCODDING_URL="https://maps.googleapis.com/maps/api/geocode/json" -let API_KEY="AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI" -export const getLocalMarkers=()=> { - return db.markers.get_all() - } - export const getMakersFrom=function(country){ - let tag={tag:'location',type:'all',country:country} - return timeout(15000,queryMap(tag)) +let GEOCODDING_URL = "https://maps.googleapis.com/maps/api/geocode/json" +let API_KEY = "AIzaSyAYOEp-Pckvc3TwOIulCICokKgmp14rGHI" +export const getLocalMarkers = () => { + return db.markers.get_all() +} +export const getMakersFrom = function (country) { + let tag = { tag: 'location', type: 'all', country: country } + return timeout(15000, queryMap(tag)) } function timeout(ms, promise) { - return new Promise(function(resolve, reject) { - setTimeout(function() { - reject(new Error(I18n.t("TEXT_NETWORK_UNABLE"))) - }, ms) - promise.then(resolve, reject) - }) + return new Promise(function (resolve, reject) { + setTimeout(function () { + reject(new Error(I18n.t("TEXT_NETWORK_UNABLE"))) + }, ms) + promise.then(resolve, reject) + }) } -export const loadMarkers=(position,reseau,distance,page)=>{ - return readUser().then((users)=>{ - let user=users; - if(user!==undefined){ - let tag={tag:'location',type:'around', - page:page, - id:user.id,position:position,network:reseau,distance:distance} +export const loadMarkers = (position, reseau, distance, page) => { + return readUser().then((users) => { + let user = users; + if (user !== undefined) { + let tag = { + tag: 'location', type: 'around', + page: page, + id: user.id, position: position, network: reseau, distance: distance + } return queryMap(tag) - } - }) - -} - -export const loadGroupeAgent=(member_code)=>{ - let data={tag:'location',type:'all_network',codeparrain:member_code} - return queryMap(data) -} -export const loadNetwork=(network,userid)=>{ - let data={tag:'location' ,type:"all_network_point",id:userid,network:network} - return queryMap(data) -} -export const getPositionInformation= async (position)=>{ - let url=GEOCODDING_URL.concat('?latlng='+position.latitude+","+position.longitude+'&key='+API_KEY); - const data=fetch(url,{ method: 'GET', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - },}) - .then((response)=>response.json()) - .then((responseJson)=> - responseJson - ).catch((error)=>{ - console.log("error get position") - console.log(error) - }); - - console.warn("freud",data); - return data; -} -const queryMap= async (data)=>{ - data['lang']=I18n.currentLocale() - data["test"]=isDebugMode - let response=await fetch(MARKER_URL,{ - method: 'POST', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - body: JSON.stringify(data), - - }); - let responseText=await response.text() - console.log("response= "+responseText) - try{ - let responseJson=JSON.parse(responseText) - return responseJson; - }catch(e){ - console.log("erreur="+responseText) - console.log(response) - throw new Error("Erreur lors de la conversion en json") - } - throw new Error("Erreur lors de la conversion en json") + } + }) + +} + +export const loadGroupeAgent = (member_code) => { + let data = { tag: 'location', type: 'all_network', codeparrain: member_code } + return queryMap(data) +} +export const loadNetwork = (network, userid) => { + let data = { tag: 'location', type: "all_network_point", id: userid, network: network } + return queryMap(data) +} +export const getPositionInformation = async (position) => { + let url = GEOCODDING_URL.concat('?latlng=' + position.latitude + "," + position.longitude + '&key=' + API_KEY); + const data = fetch(url, { + method: 'GET', + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }) + .then((response) => response.json()) + .then((responseJson) => + responseJson + ).catch((error) => { + console.log("error get position") + console.log(error) + }); + + console.warn("freud", data); + return data; +} +const queryMap = async (data) => { + data['lang'] = I18n.currentLocale() + data["test"] = isDebugMode + let response = await fetch(MARKER_URL, { + method: 'POST', + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + body: JSON.stringify(data), + + }); + let responseText = await response.text() + //console.log("response= " + responseText) + try { + let responseJson = JSON.parse(responseText) + return responseJson; + } catch (e) { + //console.log("erreur=" + responseText) + //console.log(response) + throw new Error("Erreur lors de la conversion en json") + } + throw new Error("Erreur lors de la conversion en json") } diff --git a/webservice/persistences/Configuration.js b/webservice/persistences/Configuration.js index 929a594b..e5fb4146 100644 --- a/webservice/persistences/Configuration.js +++ b/webservice/persistences/Configuration.js @@ -1,106 +1,104 @@ -import {db} from './db'; -import {AsyncStorage} from 'react-native'; +import { db } from './db'; +import { AsyncStorage } from 'react-native'; -export default class Configuration{ +export default class Configuration { - constructor(){ + constructor() { - } - async getCurrentLangue(){ - const da=await _getData() - if(da)resolve(da) - else reject(da) - - - } - - async getCurrentPasValue(){ - const pasObject=await this._getPasData() - if(pasObject){ - return pasObject.valeur_int; - }else return pasObject; - } - - async getCurrentPubValue(){ - const pasObject=await this._getPubData() - console.warn(pasObject) - if(pasObject){ - return pasObject.valeur_bool; - }else return pasObject; - } - async setPubActive(data){ - try { - if(data.pub){ - await AsyncStorage.setItem('pubObject', JSON.stringify(data.pub)); - db.update({"configuration.pub":{$exists:true}},{configuration:{pub:data.pub}},{upsert:true},(err,num,upsert)=>{ - console.log([err,num,upsert]) - }) - } - } catch (error) { - console.warn(error) - } - - } - _getPubData(){ - return new Promise(async (resolve,reject)=>{ + } + async getCurrentLangue() { + const da = await _getData() + if (da) resolve(da) + else reject(da) + } - try{ - const ty=await AsyncStorage.getItem('pubObject') - resolve(JSON.parse(ty)) - } catch(err){ - reject(err) - + async getCurrentPasValue() { + const pasObject = await this._getPasData() + if (pasObject) { + return pasObject.valeur_int; + } else return pasObject; + } + + async getCurrentPubValue() { + const pasObject = await this._getPubData() + console.warn(pasObject) + if (pasObject) { + return pasObject.valeur_bool; + } else return pasObject; + } + async setPubActive(data) { + try { + if (data.pub) { + await AsyncStorage.setItem('pubObject', JSON.stringify(data.pub)); + db.update({ "configuration.pub": { $exists: true } }, { configuration: { pub: data.pub } }, { upsert: true }, (err, num, upsert) => { + console.log([err, num, upsert]) + }) + } + } catch (error) { + console.warn(error) } - - }) - } - setCurrentLangue(lang){ - this._storeData(lang) - db.update({"configuration.lang":{$exists:true}},{configuration:{lang:lang}},{upsert:true},(err,num,upsert)=>{ - console.log([err,num,upsert]) - }) - } - setCurrentPas=async (pas)=>{ - try { - await AsyncStorage.setItem('@config:pasObject', JSON.stringify(pas.pas)); - } catch (error) { - console.warn(error) - } - db.update({"configuration.pas":{$exists:true}},{configuration:{pas:pas.pas}},{upsert:true},(err,num,upsert)=>{ - console.log([err,num,upsert]) - }) - } - _getPasData= ()=>{ - return new Promise(async (resolve,reject)=>{ - try{ - const ty=await AsyncStorage.getItem('@config:pasObject') - resolve(JSON.parse(ty)) - } catch(err){ - reject(err) - - } - - }) -} - _storeData = async (lang) => { - try { - await AsyncStorage.setItem('@config:lang', lang.value); - } catch (error) { - console.warn(error) - } - }; - _getData= ()=>{ - return new Promise(async (resolve,reject)=>{ + } + _getPubData() { + return new Promise(async (resolve, reject) => { - try{ - const ty=await AsyncStorage.getItem('@config:lang') - resolve(ty) - } catch(err){ - reject(err) - + try { + const ty = await AsyncStorage.getItem('pubObject') + resolve(JSON.parse(ty)) + } catch (err) { + reject(err) + + } + + }) + } + setCurrentLangue(lang) { + this._storeData(lang) + db.update({ "configuration.lang": { $exists: true } }, { configuration: { lang: lang } }, { upsert: true }, (err, num, upsert) => { + console.log([err, num, upsert]) + }) + } + setCurrentPas = async (pas) => { + try { + await AsyncStorage.setItem('@config:pasObject', JSON.stringify(pas.pas)); + } catch (error) { + console.warn(error) } - - }) -} + db.update({ "configuration.pas": { $exists: true } }, { configuration: { pas: pas.pas } }, { upsert: true }, (err, num, upsert) => { + console.log([err, num, upsert]) + }) + } + _getPasData = () => { + return new Promise(async (resolve, reject) => { + + try { + const ty = await AsyncStorage.getItem('@config:pasObject') + resolve(JSON.parse(ty)) + } catch (err) { + reject(err) + + } + + }) + } + _storeData = async (lang) => { + try { + await AsyncStorage.setItem('@config:lang', lang.value); + } catch (error) { + console.warn(error) + } + }; + _getData = () => { + return new Promise(async (resolve, reject) => { + + try { + const ty = await AsyncStorage.getItem('@config:lang') + resolve(ty) + } catch (err) { + reject(err) + + } + + }) + } } \ No newline at end of file