diff --git a/App.js b/App.js index c8455460..48535931 100644 --- a/App.js +++ b/App.js @@ -438,11 +438,19 @@ class App extends React.Component { goToScreen = (routeName, params, isReset = true) => { const { navigator } = this.refs; - if (typeof this.refs.navigator !== 'undefined') { + if (typeof navigator !== 'undefined') { console.log("APP HAS LOADED", global.appHasLoaded); if (global.appHasLoaded) { - readUser().then((result) => { + + navigator.dispatch({ + type: "Navigation/NAVIGATE", + routeName, + params + }); +/* readUser().then((result) => { if (result === null || result === undefined) { + console.warn("APP HAS LOADED NOTIFICATION PARAMS", params); + navigator.dispatch({ type: "Navigation/NAVIGATE", routeName: "first", @@ -455,9 +463,8 @@ class App extends React.Component { params }); } - }); + }); */ } else { - console.warn("NOTIFICATION PARAMS", params); navigator.dispatch({ type: "Navigation/NAVIGATE", routeName: "first", @@ -471,9 +478,22 @@ class App extends React.Component { const data = openResult.notification.payload.additionalData; //const dataParse = data.replace("'", "\""); console.warn("HANDLE DEEP LINK", data); - this.goToScreen(data.screen, { - id: data.data.id - }); + switch (data.screen) { + case 'historyItemDetails': + console.log("History Item"); + this.goToScreen(data.screen, { + item: data.data + }); + break; + + default: + console.log("Not History Item"); + this.goToScreen(data.screen, { + id: data.data.id + }); + break; + } + /* if (data && data.id) { this.goToScreen(data.screen, { id: data.id, diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 39851802..e70c5b17 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -1296,7 +1296,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.c __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,console.log("USER ID",t.agentId),n={tag:"credit_demands_of_agent",id:t.agentId,lang:c.default.currentLocale(),test:s.isDebugMode},console.log(n),f.next=8,o.default.awrap(fetch(s.demandeActionUrl,{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},body:JSON.stringify(n)}));case 8:return l=f.sent,f.prev=9,console.log(l,"my demande"),f.next=13,o.default.awrap(l.json());case 13:return p=f.sent,console.log(p),f.abrupt("return",p);case 18:return f.prev=18,f.t0=f.catch(9),f.abrupt("return",[]);case 21:case"end":return f.stop()}},null,null,[[9,18]],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)}},1290,[4,1,273,15,720,744,719,746,722]); __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])),c=n(r(d[4])),u=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])),C=r(d[16]),I=n(r(d[17])),A=n(r(d[18])),N=r(d[19]),T=r(d[20]),S=n(r(d[21])),U=(t(r(d[22])),n(r(d[23]))),E=r(d[24]);r(d[14]);r(d[25]);r(d[26]).DBEvents;var O=r(d[15]),w=(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,c.default)(this,(0,u.default)(n).call(this,t))).redirectToScreen=function(t){if(console.log("Item Menu Click",t),null!==l.state.user)switch(l.state.user.category){case"super":case"hyper":"walletSelect"===t&&(t="walletDetail"),l.props.navigation.navigate(t,{agentId:l.state.user.agentId});break;case"geolocated":l.props.navigation.navigate(t);break;default:"walletSelect"===t&&(t="walletDetailUser"),l.props.navigation.navigate(t,{userId:l.state.user.id})}},l._renderItem=function(t){if("creditrequest"===t||'historyItemDetails'===t||'filter'===t||'networks'===t||'walletDetail'===t||'walletDetailUser'===t||'walletDepot'===t||'walletRetrait'===t||'createIdentification'===t||'walletOptionSelect'===t||'validateIdentification'===t||'createIdentificationUser'===t||'operateurOptionSelect'===t||'paiementFacture'===t||'envoieWalletToWalletUser'===t||'envoieWalletToCashUser'===t||'linkCard'===t||'envoieWalletToCardUser'===t||'envoieWalletToBankUser'===t||'retraitWalletVersCashUser'===t||'retraitCarteVersWalletUser'===t||'retraitEnCashAgent'===t||'retraitCarteVersCashAgent'===t||'envoieCashVersWalletAgent'===t||'envoieCashVersAutreWalletAgent'===t||'retraitCarteVersCashUser'===t||'envoiCashVersCashAgent'===t||'envoieCashVersCashAgent'===t||'envoieCashVersCarteAgent'===t||'modifyIdentificationUser'===t||'createGroupNanoCredit'===t||'groupNanoCredit'===t||'demandeValidationGroupe'===t||'adhererGroupNanoCredit'===t||'myNanoCreditGroup'===t||'askNanoCredit'===t||'refundNanoCreditUser'===t||'cautionNanoCreditAgent'===t||'epargnerArgentUser'===t||'askNanoCredit'===t||'casserEpargneUser'===t)return null;l.state.currentId===t.id&&O.accent;return v.default.createElement(h.TouchableOpacity,{onPress:function(){l.props.navigation.toggleDrawer(),l.setState({currentId:t.id}),l.redirectToScreen(t)}},v.default.createElement(h.View,{style:b.content},v.default.createElement(p.default,{name:l.getIcon(t),size:32}),v.default.createElement(h.Text,{style:{marginLeft:20,fontSize:16}},l.getNameItems(t))))},l._onPress=function(t){l.setState({currentId:t.id});var n=l.state.menu.filter(function(t){return t.active})[0];n.active=!1,t.active=!0;var o=[];l.state.menu.forEach(function(l){l.id===n.id?o.push(n):l.id===t.id?o.push(t):o.push(l)}),l.setState({menu:o})},l.state=l.initState(),N.IlinkEmitter.on("menuLink",l.onMenuNavigationEvent.bind((0,s.default)(l))),N.IlinkEmitter.on("userconnect",l.onUserConnect.bind((0,s.default)(l))),N.IlinkEmitter.on("userdisconnect",l.hideSideMenu.bind((0,s.default)(l))),N.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,s.default)(l))),l.configuration=new U.default,(0,C.readUser)().then(function(t){null!==t&&void 0!==t&&l.setState({user:t})}),l}return(0,f.default)(n,t),(0,l.default)(n,[{key:"retrieveAndroidInformation",value:function(){var t=this;return this.configuration._getData().then(function(n){if(n)I.default.locale=n,(0,C.readUser)().then(function(n){setTimeout(function(){t.updateUser(n)},3e3)});else{var o=S.default.getDeviceLocale();I.default.locale=o.toLowerCase(),(0,C.readUser)().then(function(n){setTimeout(function(){t.updateUser(n)},3e3)}).catch(function(n){t.props.navigation.navigate("Auth")})}}).catch(function(n){var o=S.default.getDeviceLocale();I.default.locale=o.toLowerCase(),(0,C.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,C.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:I.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:I.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:I.default.t('WALLET'),id:6,key:6,icon:'md-wallet-outline',active:!1},{title:I.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:I.default.t('ADD_NETWORK'),id:11,key:11,icon:'md-people',active:!1},{title:I.default.t('CHANGE_INFORMATION'),id:13,key:13,icon:'md-person',active:!1},{title:I.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:I.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getSuperUserMenu",value:function(){return[{title:I.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:I.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:I.default.t('WALLET'),id:6,key:6,icon:'md-wallet-outline',active:!1},{title:I.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:I.default.t('GROUP_MANAGE'),id:5,key:5,icon:'md-people',active:!1},{title:I.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:I.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getHyperUsermenu",value:function(){return[{title:I.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:I.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:I.default.t('WALLET'),id:6,key:6,icon:'md-wallet-outline',active:!1},{title:I.default.t('CREDIT_MANAGE'),id:2,key:2,icon:'md-card',active:!1},{title:I.default.t('GROUP_MANAGE'),id:5,key:5,icon:'md-people',active:!1},{title:I.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:I.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"updateUser",value:function(t){var n=[];if(void 0!==t)if(console.log("USER",t.category),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:I.default.t('MAP'),id:0,key:0,icon:'md-map',active:!0},{title:I.default.t('MY_ACCOUNT'),id:1,key:1,icon:'md-person',active:!1},{title:I.default.t('WALLET'),id:6,key:6,icon:'md-wallet-outline',active:!1},{title:I.default.t('NOTIFICATIONS'),id:3,key:3,icon:'md-notifications',active:!1},{title:I.default.t('CONFIGURATIONS'),id:4,icon:'md-settings',active:!1}]}},{key:"getNameItems",value:function(t){var n=t;switch(t){case"home":n=I.default.t('MAP');break;case'useraccount':n=I.default.t('MY_ACCOUNT');break;case'walletSelect':n=I.default.t('WALLET');break;case'Historique':n=I.default.t('CREDIT_MANAGE');break;case"superviseurgroup":n=I.default.t('GROUP_MANAGE');break;case"updateinformation":n=I.default.t("CHANGE_INFORMATION");break;case'notificationview':n=I.default.t('NOTIFICATIONS');break;case'configuration':n=I.default.t('CONFIGURATIONS');break;case'addNetwork':n=I.default.t('ADD_NETWORK');break;case'about':n=I.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'walletSelect':n="md-wallet";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:M.container},v.default.createElement(h.View,{style:M.headercontent},v.default.createElement(h.Text,{style:M.headerTitle},n),v.default.createElement(h.Text,{style:M.headerTitle},o),v.default.createElement(h.Text,{style:M.headerPhone},this.state.user?""+this.state.user.phone:"")),v.default.createElement(E.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:M.btntext,style:M.btnDeconnect,onPress:function(){return t.userDeconnect()}},I.default.t('DISCONNEXION')))}},{key:"userDeconnect",value:function(){var t=this;h.Alert.alert(I.default.t('DISCONNEXION'),I.default.t('DISCONNEXION_TEXT'),[{},{text:I.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:I.default.t('YES'),onPress:function(){(0,C.disconnect)().then(function(){N.IlinkEmitter.emit("userdisconnect"),h.AsyncStorage.clear(),t.props.navigation.navigate("Auth")})}}],{cancelable:!1})}},{key:"watchUser",value:function(){var t=this;(0,C.readUser)().then(function(n){null!==n&&void 0!==n&&n.id!==t.state.user.id&&t.updateUser(n)})}}]),n})(v.Component);e.default=w,w.navigatorStyle={statusBarColor:y.primaryDarkAdvanced};var b=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)}}),M=h.StyleSheet.create({container:{flex:1,backgroundColor:"white"},btnDeconnect:{borderColor:"transparent",marginLeft:20,marginRight:20,backgroundColor:O.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}})},1291,[4,1,8,9,10,12,11,13,15,18,532,878,535,1292,815,814,719,720,717,774,416,936,404,745,2,816,746]); __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},1292,[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]),v=n(r(d[11])),w=n(r(d[12])),k=n(r(d[13])),E=r(d[14]),S=r(d[15]),b=r(d[16]),P=r(d[17]),T=r(d[18]),C=n(r(d[19])),x=n(r(d[20])),I=n(r(d[21])),R=n(r(d[22])),N=r(d[23]),_=n(r(d[24])),O=n(r(d[25])),A=r(d[26]),L=r(d[27]),M=t(r(d[28])),D=n(r(d[29])),B=n(r(d[30])),V=n(r(d[31])),z=n(r(d[32])),F=n(r(d[33])),U=r(d[34]),H=n(r(d[35])),W=n(r(d[36])),j=r(d[37]),K=n(r(d[38])),G=r(d[39]),X=n(r(d[40])),Y=r(d[41]),q=n(r(d[42])),J=(n(r(d[43])),r(d[44])),Q=r(d[45]),Z=r(d[46]);r(d[47]);var $={enableHighAccuracy:!0,timeout:2e4,maximumAge:500,useSignificantChanges:!1,distanceFilter:0},ee=[{label:"mon Reseau",value:0},{label:"Tout",value:1}],te=r(d[48]),ae=r(d[49]),ne=y.Dimensions.get('window'),re=(ne.width,ne.height,(0,S.responsiveHeight)(30)>270?270:(0,S.responsiveHeight)(30)),oe=(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)))._draggedValue=new y.Animated.Value(0),f.renderIcon=function(t){return function(n){n.isActive;return p.default.createElement(B.default,{size:24,color:"white",name:t})}},f.openDrawer=function(){f.props.navigation.openDrawer()},f.onIds=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:console.log('Device info: ',t),y.AsyncStorage.getAllKeys(function(n,l){y.AsyncStorage.multiGet(l,function(n,l){l.map(function(n,l,s){var u;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:u=s[l][0],0===l&&(_.default.isEqual(u,'@config:onesignalIds')||(f._saveOneSignalIds(t.userId),console.log("FIRST LAUNCH",!0),f.onFirstLaunch()));case 2:case"end":return n.stop()}},null,null,null,Promise)})})});case 2:case"end":return n.stop()}},null,null,null,Promise)},f.onFirstLaunch=function(){console.warn("FIRST LAUNCH ON HOME"),(0,T.readUser)().then(function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("USER",t),!t){n.next=7;break}if(void 0===t){n.next=7;break}return n.next=5,o.default.awrap(f._getOneSignalIds());case 5:g.onesignalIds=n.sent,g.onesignalIds&&(console.log("ONESIGNAL",g.onesignalIds),void 0!==t&&(void 0!==t.category?"geolocated"===t.category&&f.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!1}):f.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!1})));case 7:case"end":return n.stop()}},null,null,null,Promise)})},f.saveOneSignal=function(t,n){(0,v.default)({url:t?J.saveOnesignalIds+"/saveUser":J.saveOnesignalIds+"/saveAgent",method:'POST',data:n,headers:{'X-Localization':R.default.currentLocale()}}).then(function(t){console.warn(t),201===t.data.status&&f.renderOneSignalResponse(t.data.error)}).catch(function(t){console.warn(t),t.response?f.renderOneSignalResponse(t.response):t.request?f.renderOneSignalResponse(t.request):f.renderOneSignalResponse(t.message)})},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._getOneSignalIds=function(){return new Promise(function(t,n){var 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('@config:onesignalIds'));case 3:l=s.sent,t(l),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),n(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(R.default.t('EXIT_TITLE'),R.default.t('EXIT_DESC'),[{text:R.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:R.default.t("YES"),onPress:function(){return y.BackHandler.exitApp()}}],{cancelable:!1}),!0},f._getOneSignalIds=function(){return new Promise(function(t,n){var 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('@config:onesignalIds'));case 3:l=s.sent,t(l),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),n(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)})},f._saveOneSignalIds=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('@config:onesignalIds',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.renderOneSignalResponse=function(t){y.Alert.alert(R.default.t('PHISIC_SECURITY'),t,[{text:R.default.t('REFUSED'),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("SUBMIT_LABEL"),onPress:function(){(0,T.readUser)().then(function(t){t&&(void 0!==t.category?f.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!0}):f.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!0}))})}}],{cancelable:!1})},f.onMapReady=function(){(0,T.readUser)().then(function(t){if(t){f.setState({user:t}),f.setState({network:t.network,isSaveOneSignalOK:!0});var n={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)};f.setState({myPosition:n}),f.refocusMap(!1),t.category?(f.setState({loadingDialog:!1}),"geolocated"!==t.category?f.showMyMembers():n.latitude<=0&&n.longitude<=0&&f.props.navigation.push(ae.updateinfo)):'android'===y.Platform.OS?f.requestCameraPermission():(f.getPosition(),f.watchLocation())}}).catch(function(t){console.log("ERROR LOADING USER",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:se.rowContainer},p.default.createElement(y.View,{style:se.iconContainer},p.default.createElement(B.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?te.accent:f.props.colorAccent,size:24})),p.default.createElement(y.Text,{style:b.material.subheading},t.name)))},f.loadMoreIfHasNoPoint=function(){f.state.increasePas===f.filterOptions.length-1?(f.setState({increasePas:0,snack_visible:!0,snack_text_message:R.default.t('NO_NETWORK_MARKER'),isLoadingMap:!1}),setTimeout(function(){f.setState({snack_visible:!1})},5e3)):f.state.increasePas+1!==f.filterOptions.length&&f.setState({increasePas:f.state.increasePas+1,isLoadingMap:!0},function(){f.onLoadMore()})},f.state=f.geInitialState(),f.mounted=!1,N.IlinkEmitter.on("firstlaunch",f.onFirstLaunch),f.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],B.default.getImageSource('md-car',24,'white').then(function(t){f.setState({caricon:t})}),f.makeMarkerInformation=f.makeMarkerInformation.bind((0,c.default)(f)),q.default.addEventListener('ids',f.onIds),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=[],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=23;break}return t.setState({isLoadingMap:!1}),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.filterOptions[t.state.increasePas].value));case 14:p=s.sent,t.treatNewData(h,p,!1),s.next=21;break;case 18:s.prev=18,s.t0=s.catch(11),t.setState({isNeedLoadMore:!1,isLoadingMap:!1});case 21:s.next=24;break;case 23:t.setState({isNeedLoadMore:!0,isLoadingMap:!1});case 24:t.map&&t.map.focusToUser(),n();case 26: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;(0,T.readUser)().then(function(n){return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:n&&void 0!==n&&void 0!==n.phone&&t.props.getAuthApiKey(n.phone);case 1:case"end":return o.stop()}},null,null,null,Promise)}),g.appHasLoaded=!0,console.log("APP HAS LOADED",g.appHasLoaded),this.mounted=!0,this.configuration=new O.default;var n=this.props.navigation;this.markerManager=new W.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,T.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(ae.updateinfo)}else t.getPosition(),t.watchLocation()}),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=V.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,x.default)(t.state.region,{})||(0,x.default)(t.state.region,void 0)||(0,x.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)},$)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,T.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||(u.length>0&&t?(n.setState({filternetwork:u[0],myNetwork:u[0],filternetworkTemp:u[0]}),n.retrieveAllPoint(t)):n.state.user&&(n.state.user.category||y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})))},function(o){y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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"),V.default.getCurrentPosition(function(o){var l=t.state.myPosition,s=o.coords;t.state.oldPosition;if(!(0,x.default)(s,l)&&0!==s.longitude&&0!==s.latitude||l){t.map&&t.map.focusToUser(),(0,P.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,v=0;v=k.length)break;b=k[S++]}else{if((S=k.next()).done)break;b=S.value}var P=b;P.code===f&&(t.setState({indicatif:P.dial_code}),t.getNetworks(P.dial_code))}}}else console.log("on else result null "),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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:12},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)}},$)}},{key:"componentDidDisappear",value:function(){y.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;y.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,T.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(!0)}})}},{key:"componentWillUnmount",value:function(){q.default.removeEventListener('ids',this.onIds),this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&V.default.clearWatch(this.watchID)}}]),(0,f.default)(n,[{key:"makeCardSearch",value:function(){var t=this;return p.default.createElement(y.View,{style:se.topBar},p.default.createElement(U.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:se.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?te.primary:te.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(B.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=Z.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+R.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:le.title},h),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.subtitle2},s.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:le.reseau},s.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},f),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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=Z.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+R.default.t('TO_YOU'),v=null===o.lastname?o.adresse:o.lastname;return p.default.createElement(E.CardView,{style:le.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:le.title},v),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.subtitle2},o.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:le.reseau},o.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},h),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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:le.title},name),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.title},t.adresse),p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.Text,{style:le.reseau},t.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},distanceTxt),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,D.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(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return p.default.createElement(k.default,{ref:function(n){return t.actionButton=n}},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},p.default.createElement(B.default,{name:"filter-list",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#9b59b6",title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},p.default.createElement(B.default,{name:"rss-feed",style:se.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?re:0,l=t?0:re;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(H.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[0,"30%"],renderHeader:function(){return t.markerView()}})}},{key:"geInitialState",value:function(){return{isSaveOneSignalDisplay:!1,region:{latitude:0,longitude:0,latitudeDelta:.015,longitudeDelta:.0121},pas:100,prevRegion:{latitude:0,longitude:0},increasePas:0,isPubShow:!0,loadingDialog:!0,textreach:"",currentNetworkSize:0,markersearchfilter:[],animation:new y.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:ee[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,myPositionMarkerText:R.default.t("YOUR_THERE"),isSaveOneSignalOK:!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(z.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(w.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,T.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(ae.updateinfo)):'android'===y.Platform.OS?t.requestCameraPermission():t.watchLocation())})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(R.default.t("PROBLEM_OCCUR"),R.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),p.default.createElement(H.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(k.default,{size:32,style:{marginRight:15},buttonColor:"white"}),p.default.createElement(k.default,{size:42,renderIcon:function(){return p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:te.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(U.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:te.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(U.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:te.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,S.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},p.default.createElement(y.View,{style:{height:(0,S.responsiveHeight)(30),justifyContent:'center'}},p.default.createElement(y.Text,null,R.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 ",R.default.t("DISTANCE_ARROUND"))),p.default.createElement(y.View,{style:{flexDirection:"row",flex:1}},p.default.createElement(I.default,{style:{flex:1}}),p.default.createElement(I.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(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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:se.container},p.default.createElement(y.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog||this.props.loading?p.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,S.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,S.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},R.default.t("LOADING_DOTS"))):null,p.default.createElement(w.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(R.default.t("PROBLEM_OCCUR"),R.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),p.default.createElement(F.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(L.ProgressDialog,{visible:this.state.showProgress,title:R.default.t("LOADING_PROGRESS"),message:R.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,increasePas: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,P.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(A.MaterialDialog,{visible:this.state.dialogSliderVisible,title:R.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:R.default.t("QUIT_"),okLabel:R.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},p.default.createElement(y.Text,null,R.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 ",R.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(R.default.t("ERROR_FILTER"),R.default.t("ERROR_FILTER_TEXT"),[{text:R.default.t("CANCEL")},{text:R.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(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return p.default.createElement(A.MaterialDialog,{title:R.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:R.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,S.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(I.default,{style:{backgroundColor:te.primary,width:(0,S.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(B.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return p.default.createElement(I.default,{style:{backgroundColor:te.reddeconnect,height:36,width:(0,S.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(B.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return p.default.createElement(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"map",style:se.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:te.accent}},t.network))}},{key:"retrieveAllPoint",value:function(t){var n=this;(0,P.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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,S.responsiveWidth)(90)}},p.default.createElement(I.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(B.default,{name:"refresh",size:32})),p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,S.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,S.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},p.default.createElement(y.Text,{style:{fontSize:12,alignSelf:'center'}},R.default.t("LOADING_TEXT_MARKERS")+" "+this.filterOptions[this.state.increasePas].value+" km "+R.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 Z.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 Z.getDistance(t,u)<=1e3*o&&l.network===n.name});l.setState({currentNetworkSize:y.length,showProgress:!1,currentNetworkMarkers:y})}catch(t){console.debug("after "+t.message)}'geolocated'!==l.state.user.category&&'super'!==l.state.user.category&&'hyper'!==l.state.user.category&&0===p.length&&l.loadMoreIfHasNoPoint(),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],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,v=0;v=k.length)break;b=k[S++]}else{if((S=k.next()).done)break;b=S.value}var P=b;P.code===f&&(s.setState({indicatif:P.dial_code}),s.getNetworks(P.dial_code))}}}else console.log("on treat 1"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1});else console.log("on treat 2"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}).catch(function(n){console.log("on treat 3"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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})(C.default);oe.navigationOptions=function(t){return{headerMode:"none",headerStyle:{display:'none'},header:null,drawerLabel:t.navigation.getParam("name",R.default.t('MAP')),drawerIcon:function(t){var n=t.tintColor;return p.default.createElement(B.default,{name:'map',size:24,color:n})}}},oe.defaultProps={draggableRange:{top:(0,S.responsiveHeight)(30),bottom:0},panel:null};var ie=(0,G.connect)(function(t){return{loading:t.authKeyReducer.loading,authKey:t.authKeyReducer.authKey,error:t.authKeyReducer.error,loadingSaveOneSignal:t.saveOnesignalReducer.loading,resultSaveOneSignal:t.saveOnesignalReducer.result,errorSaveOneSignal:t.saveOnesignalReducer.error}},function(t){return(0,j.bindActionCreators)({getAuthApiKey:K.default,getWalletActivated:X.default,saveOnesignalIdsAction:Y.saveOnesignalIdsAction,saveOnesignalIdsReset:Y.saveOnesignalIdsReset},t)})(oe);e.default=ie;var le=y.StyleSheet.create({solde:{backgroundColor:te.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:te.accent,fontSize:10},container:{flex:1,width:(0,S.responsiveWidth)(95),alignSelf:"center",paddingTop:(0,S.responsiveHeight)(1),marginBottom:(0,S.responsiveHeight)(1),backgroundColor:"white",justifyContent:'flex-start'}}),se=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:te.primary,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:te.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:re,bottom:0,left:(0,S.responsiveWidth)(2.5),width:(0,S.responsiveWidth)(95),zIndex:1},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,S.responsiveWidth)(75),backgroundColor:te.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{color:te.primary,borderColor:te.primary,borderWidth:1,alignSelf:'center',padding:5},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',borderRadius:10,alignItems:'center',marginTop:(0,S.responsiveHeight)(4),width:(0,S.responsiveWidth)(90)},searchInput:{flex:1,fontSize:14},search:{width:(0,S.responsiveWidth)(70),height:(0,S.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,S.responsiveWidth)(100),height:(0,S.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,S.responsiveWidth)(90),height:(0,S.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}})},1293,[4,1,273,8,10,12,11,9,13,15,18,1073,1294,532,536,535,779,772,719,823,689,717,720,774,530,745,776,1513,1518,1519,835,812,834,1520,1179,1524,1577,1056,1605,1039,1607,1072,529,1609,744,821,1604,816,814,815]); +__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]),v=n(r(d[11])),w=n(r(d[12])),k=n(r(d[13])),E=r(d[14]),S=r(d[15]),b=r(d[16]),P=r(d[17]),T=r(d[18]),C=n(r(d[19])),x=n(r(d[20])),I=n(r(d[21])),R=n(r(d[22])),N=r(d[23]),_=n(r(d[24])),O=n(r(d[25])),A=r(d[26]),L=r(d[27]),M=t(r(d[28])),D=n(r(d[29])),B=n(r(d[30])),V=n(r(d[31])),z=n(r(d[32])),F=n(r(d[33])),U=r(d[34]),H=n(r(d[35])),W=n(r(d[36])),j=r(d[37]),K=n(r(d[38])),G=r(d[39]),X=n(r(d[40])),Y=r(d[41]),q=n(r(d[42])),J=(n(r(d[43])),r(d[44])),Q=r(d[45]),Z=r(d[46]);r(d[47]);var $={enableHighAccuracy:!0,timeout:2e4,maximumAge:500,useSignificantChanges:!1,distanceFilter:0},ee=[{label:"mon Reseau",value:0},{label:"Tout",value:1}],te=r(d[48]),ae=r(d[49]),ne=y.Dimensions.get('window'),re=(ne.width,ne.height,(0,S.responsiveHeight)(30)>270?270:(0,S.responsiveHeight)(30)),oe=(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)))._draggedValue=new y.Animated.Value(0),f.renderIcon=function(t){return function(n){n.isActive;return p.default.createElement(B.default,{size:24,color:"white",name:t})}},f.openDrawer=function(){f.props.navigation.openDrawer()},f.onIds=function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:console.log('Device info: ',t),y.AsyncStorage.getAllKeys(function(n,l){y.AsyncStorage.multiGet(l,function(n,l){l.map(function(n,l,s){var u;return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:u=s[l][0],0===l&&(_.default.isEqual(u,'@config:onesignalIds')||(f._saveOneSignalIds(t.userId),console.log("FIRST LAUNCH",!0),f.onFirstLaunch()));case 2:case"end":return n.stop()}},null,null,null,Promise)})})});case 2:case"end":return n.stop()}},null,null,null,Promise)},f.onFirstLaunch=function(){console.warn("FIRST LAUNCH ON HOME"),(0,T.readUser)().then(function(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("USER",t),!t){n.next=7;break}if(void 0===t){n.next=7;break}return n.next=5,o.default.awrap(f._getOneSignalIds());case 5:g.onesignalIds=n.sent,g.onesignalIds&&(console.log("ONESIGNAL",g.onesignalIds),void 0!==t&&(void 0!==t.category?f.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!1}):f.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!1})));case 7:case"end":return n.stop()}},null,null,null,Promise)})},f.saveOneSignal=function(t,n){(0,v.default)({url:t?J.saveOnesignalIds+"/saveUser":J.saveOnesignalIds+"/saveAgent",method:'POST',data:n,headers:{'X-Localization':R.default.currentLocale()}}).then(function(t){console.warn(t),201===t.data.status&&f.renderOneSignalResponse(t.data.error)}).catch(function(t){console.warn(t),t.response?f.renderOneSignalResponse(t.response):t.request?f.renderOneSignalResponse(t.request):f.renderOneSignalResponse(t.message)})},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._getOneSignalIds=function(){return new Promise(function(t,n){var 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('@config:onesignalIds'));case 3:l=s.sent,t(l),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),n(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(R.default.t('EXIT_TITLE'),R.default.t('EXIT_DESC'),[{text:R.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:R.default.t("YES"),onPress:function(){return y.BackHandler.exitApp()}}],{cancelable:!1}),!0},f._getOneSignalIds=function(){return new Promise(function(t,n){var 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('@config:onesignalIds'));case 3:l=s.sent,t(l),s.next=10;break;case 7:s.prev=7,s.t0=s.catch(0),n(s.t0);case 10:case"end":return s.stop()}},null,null,[[0,7]],Promise)})},f._saveOneSignalIds=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('@config:onesignalIds',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.renderOneSignalResponse=function(t){y.Alert.alert(R.default.t('PHISIC_SECURITY'),t,[{text:R.default.t('REFUSED'),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("SUBMIT_LABEL"),onPress:function(){(0,T.readUser)().then(function(t){t&&(void 0!==t.category?f.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!0}):f.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!0}))})}}],{cancelable:!1})},f.onMapReady=function(){(0,T.readUser)().then(function(t){if(t){f.setState({user:t}),f.setState({network:t.network,isSaveOneSignalOK:!0});var n={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)};f.setState({myPosition:n}),f.refocusMap(!1),t.category?(f.setState({loadingDialog:!1}),"geolocated"!==t.category?f.showMyMembers():n.latitude<=0&&n.longitude<=0&&f.props.navigation.push(ae.updateinfo)):'android'===y.Platform.OS?f.requestCameraPermission():(f.getPosition(),f.watchLocation())}}).catch(function(t){console.log("ERROR LOADING USER",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:se.rowContainer},p.default.createElement(y.View,{style:se.iconContainer},p.default.createElement(B.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?te.accent:f.props.colorAccent,size:24})),p.default.createElement(y.Text,{style:b.material.subheading},t.name)))},f.loadMoreIfHasNoPoint=function(){f.state.increasePas===f.filterOptions.length-1?(f.setState({increasePas:0,snack_visible:!0,snack_text_message:R.default.t('NO_NETWORK_MARKER'),isLoadingMap:!1}),setTimeout(function(){f.setState({snack_visible:!1})},5e3)):f.state.increasePas+1!==f.filterOptions.length&&f.setState({increasePas:f.state.increasePas+1,isLoadingMap:!0},function(){f.onLoadMore()})},f.state=f.geInitialState(),f.mounted=!1,N.IlinkEmitter.on("firstlaunch",f.onFirstLaunch),f.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],B.default.getImageSource('md-car',24,'white').then(function(t){f.setState({caricon:t})}),f.makeMarkerInformation=f.makeMarkerInformation.bind((0,c.default)(f)),q.default.addEventListener('ids',f.onIds),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=[],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=23;break}return t.setState({isLoadingMap:!1}),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.filterOptions[t.state.increasePas].value));case 14:p=s.sent,t.treatNewData(h,p,!1),s.next=21;break;case 18:s.prev=18,s.t0=s.catch(11),t.setState({isNeedLoadMore:!1,isLoadingMap:!1});case 21:s.next=24;break;case 23:t.setState({isNeedLoadMore:!0,isLoadingMap:!1});case 24:t.map&&t.map.focusToUser(),n();case 26: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;(0,T.readUser)().then(function(n){return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:n&&void 0!==n&&void 0!==n.phone&&t.props.getAuthApiKey(n.phone);case 1:case"end":return o.stop()}},null,null,null,Promise)}),g.appHasLoaded=!0,console.log("APP HAS LOADED",g.appHasLoaded),this.mounted=!0,this.configuration=new O.default;var n=this.props.navigation;this.markerManager=new W.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,T.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(ae.updateinfo)}else t.getPosition(),t.watchLocation()}),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=V.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,x.default)(t.state.region,{})||(0,x.default)(t.state.region,void 0)||(0,x.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)},$)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,T.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||(u.length>0&&t?(n.setState({filternetwork:u[0],myNetwork:u[0],filternetworkTemp:u[0]}),n.retrieveAllPoint(t)):n.state.user&&(n.state.user.category||y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})))},function(o){y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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"),V.default.getCurrentPosition(function(o){var l=t.state.myPosition,s=o.coords;t.state.oldPosition;if(!(0,x.default)(s,l)&&0!==s.longitude&&0!==s.latitude||l){t.map&&t.map.focusToUser(),(0,P.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,v=0;v=k.length)break;b=k[S++]}else{if((S=k.next()).done)break;b=S.value}var P=b;P.code===f&&(t.setState({indicatif:P.dial_code}),t.getNetworks(P.dial_code))}}}else console.log("on else result null "),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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:12},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)}},$)}},{key:"componentDidDisappear",value:function(){y.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;y.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,T.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(!0)}})}},{key:"componentWillUnmount",value:function(){q.default.removeEventListener('ids',this.onIds),this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&V.default.clearWatch(this.watchID)}}]),(0,f.default)(n,[{key:"makeCardSearch",value:function(){var t=this;return p.default.createElement(y.View,{style:se.topBar},p.default.createElement(U.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:se.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?te.primary:te.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(B.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=Z.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+R.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:le.title},h),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.subtitle2},s.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:le.reseau},s.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},f),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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=Z.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+R.default.t('TO_YOU'),v=null===o.lastname?o.adresse:o.lastname;return p.default.createElement(E.CardView,{style:le.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:le.title},v),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.subtitle2},o.adresse),p.default.createElement(y.View,{style:{flexDirection:"row",alignItems:"center"}},p.default.createElement(y.Text,{style:le.reseau},o.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},h),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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:le.title},name),p.default.createElement(B.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),p.default.createElement(y.Text,{style:le.title},t.adresse),p.default.createElement(y.View,{style:{flexDirection:"row"}},p.default.createElement(y.Text,{style:le.reseau},t.network),p.default.createElement(y.Text,{style:le.solde},R.default.t('SOLDE_UNVAIBLE'))),p.default.createElement(y.Text,{style:le.reseau},distanceTxt),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:(0,S.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),p.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,D.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(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return p.default.createElement(k.default,{ref:function(n){return t.actionButton=n}},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},p.default.createElement(B.default,{name:"filter-list",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#9b59b6",title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},p.default.createElement(B.default,{name:"rss-feed",style:se.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?re:0,l=t?0:re;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(H.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[0,"30%"],renderHeader:function(){return t.markerView()}})}},{key:"geInitialState",value:function(){return{isSaveOneSignalDisplay:!1,region:{latitude:0,longitude:0,latitudeDelta:.015,longitudeDelta:.0121},pas:100,prevRegion:{latitude:0,longitude:0},increasePas:0,isPubShow:!0,loadingDialog:!0,textreach:"",currentNetworkSize:0,markersearchfilter:[],animation:new y.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:ee[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,myPositionMarkerText:R.default.t("YOUR_THERE"),isSaveOneSignalOK:!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(z.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(w.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,T.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(ae.updateinfo)):'android'===y.Platform.OS?t.requestCameraPermission():t.watchLocation())})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),y.Alert.alert(R.default.t("PROBLEM_OCCUR"),R.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),p.default.createElement(H.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(k.default,{size:32,style:{marginRight:15},buttonColor:"white"}),p.default.createElement(k.default,{size:42,renderIcon:function(){return p.default.createElement(B.default,{name:"group-work",style:se.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:te.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(U.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:te.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(U.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:te.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,S.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},p.default.createElement(y.View,{style:{height:(0,S.responsiveHeight)(30),justifyContent:'center'}},p.default.createElement(y.Text,null,R.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 ",R.default.t("DISTANCE_ARROUND"))),p.default.createElement(y.View,{style:{flexDirection:"row",flex:1}},p.default.createElement(I.default,{style:{flex:1}}),p.default.createElement(I.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(I.default,{style:{backgroundColor:"white",width:(0,S.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(B.default,{name:"phone",size:16,color:te.primary,style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,S.responsiveWidth)(2)}},R.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:se.container},p.default.createElement(y.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog||this.props.loading?p.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,S.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,S.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},R.default.t("LOADING_DOTS"))):null,p.default.createElement(w.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(R.default.t("PROBLEM_OCCUR"),R.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),p.default.createElement(F.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(L.ProgressDialog,{visible:this.state.showProgress,title:R.default.t("LOADING_PROGRESS"),message:R.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,increasePas: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,P.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(A.MaterialDialog,{visible:this.state.dialogSliderVisible,title:R.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:R.default.t("QUIT_"),okLabel:R.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},p.default.createElement(y.Text,null,R.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 ",R.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(R.default.t("ERROR_FILTER"),R.default.t("ERROR_FILTER_TEXT"),[{text:R.default.t("CANCEL")},{text:R.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(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"layers",style:se.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return p.default.createElement(A.MaterialDialog,{title:R.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:R.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,S.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(I.default,{style:{backgroundColor:te.primary,width:(0,S.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(B.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return p.default.createElement(I.default,{style:{backgroundColor:te.reddeconnect,height:36,width:(0,S.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(B.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),p.default.createElement(y.Text,{style:{fontSize:15,color:'white',marginLeft:(0,S.responsiveWidth)(2)}},R.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return p.default.createElement(k.default,{buttonColor:te.accent},p.default.createElement(k.default.Item,{buttonColor:"#3498db",title:R.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},p.default.createElement(B.default,{name:"person-pin",style:se.actionButtonIcon})),p.default.createElement(k.default.Item,{buttonColor:te.primary,title:R.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},p.default.createElement(B.default,{name:"map",style:se.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:te.accent}},t.network))}},{key:"retrieveAllPoint",value:function(t){var n=this;(0,P.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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,S.responsiveWidth)(90)}},p.default.createElement(I.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(B.default,{name:"refresh",size:32})),p.default.createElement(y.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,S.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,S.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},p.default.createElement(y.Text,{style:{fontSize:12,alignSelf:'center'}},R.default.t("LOADING_TEXT_MARKERS")+" "+this.filterOptions[this.state.increasePas].value+" km "+R.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 Z.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 Z.getDistance(t,u)<=1e3*o&&l.network===n.name});l.setState({currentNetworkSize:y.length,showProgress:!1,currentNetworkMarkers:y})}catch(t){console.debug("after "+t.message)}'geolocated'!==l.state.user.category&&'super'!==l.state.user.category&&'hyper'!==l.state.user.category&&0===p.length&&l.loadMoreIfHasNoPoint(),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],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,v=0;v=k.length)break;b=k[S++]}else{if((S=k.next()).done)break;b=S.value}var P=b;P.code===f&&(s.setState({indicatif:P.dial_code}),s.getNetworks(P.dial_code))}}}else console.log("on treat 1"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1});else console.log("on treat 2"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.default.t("YES"),onPress:function(){s.treatPosition(t)}}],{cancelable:!1})}).catch(function(n){console.log("on treat 3"),y.Alert.alert(R.default.t("UNABLE_TO_CONNECT_TITLE"),R.default.t('TEXT_NETWORK_UNABLE'),[{text:R.default.t("NO"),onPress:function(){y.BackHandler.exitApp()}},{text:R.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})(C.default);oe.navigationOptions=function(t){return{headerMode:"none",headerStyle:{display:'none'},header:null,drawerLabel:t.navigation.getParam("name",R.default.t('MAP')),drawerIcon:function(t){var n=t.tintColor;return p.default.createElement(B.default,{name:'map',size:24,color:n})}}},oe.defaultProps={draggableRange:{top:(0,S.responsiveHeight)(30),bottom:0},panel:null};var ie=(0,G.connect)(function(t){return{loading:t.authKeyReducer.loading,authKey:t.authKeyReducer.authKey,error:t.authKeyReducer.error,loadingSaveOneSignal:t.saveOnesignalReducer.loading,resultSaveOneSignal:t.saveOnesignalReducer.result,errorSaveOneSignal:t.saveOnesignalReducer.error}},function(t){return(0,j.bindActionCreators)({getAuthApiKey:K.default,getWalletActivated:X.default,saveOnesignalIdsAction:Y.saveOnesignalIdsAction,saveOnesignalIdsReset:Y.saveOnesignalIdsReset},t)})(oe);e.default=ie;var le=y.StyleSheet.create({solde:{backgroundColor:te.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:te.accent,fontSize:10},container:{flex:1,width:(0,S.responsiveWidth)(95),alignSelf:"center",paddingTop:(0,S.responsiveHeight)(1),marginBottom:(0,S.responsiveHeight)(1),backgroundColor:"white",justifyContent:'flex-start'}}),se=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:te.primary,padding:5,color:"white",marginRight:10,fontSize:10,borderRadius:12},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:te.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:re,bottom:0,left:(0,S.responsiveWidth)(2.5),width:(0,S.responsiveWidth)(95),zIndex:1},panelHeader:{height:120,backgroundColor:'#b197fc',alignItems:'center',justifyContent:'center'},favoriteIcon:{left:(0,S.responsiveWidth)(75),backgroundColor:te.primary,width:64,justifyContent:'center',alignContent:'center',bottom:-64,position:'absolute',height:64,padding:8,zIndex:1,borderRadius:32},hambuger:{color:te.primary,borderColor:te.primary,borderWidth:1,alignSelf:'center',padding:5},topBar:{position:'absolute',alignSelf:'center',justifyContent:'center',borderRadius:10,alignItems:'center',marginTop:(0,S.responsiveHeight)(4),width:(0,S.responsiveWidth)(90)},searchInput:{flex:1,fontSize:14},search:{width:(0,S.responsiveWidth)(70),height:(0,S.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,S.responsiveWidth)(100),height:(0,S.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,S.responsiveWidth)(90),height:(0,S.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}})},1293,[4,1,273,8,10,12,11,9,13,15,18,1073,1294,532,536,535,779,772,719,823,689,717,720,774,530,745,776,1513,1518,1519,835,812,834,1520,1179,1524,1577,1056,1605,1039,1607,1072,529,1609,744,821,1604,816,814,815]); __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])),u=o(r(d[4])),l=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),p=t(r(d[8])),h=t(r(d[9])),k=o(r(d[10])),y=r(d[11]),v=r(d[12]),R=o(r(d[13])),b=o(r(d[14])),C=o(r(d[15])),w=(r(d[16]),r(d[17])),M=(o(r(d[18])),r(d[19])),S=(r(d[20]),r(d[21]),(function(t){function o(t){var s;return(0,n.default)(this,o),(s=(0,u.default)(this,(0,l.default)(o).call(this,t))).mapRef=function(t){s.mapview=t},s.getMapRef=function(){return s.mapview},s.state={markers:[],roadReady:!1,isNeedUserFocus:!1,positionMarkerText:b.default.t("YOUR_THERE")},w.IlinkEmitter.on("langueChange",s.updateLangue.bind((0,c.default)(s))),s}return(0,f.default)(o,t),(0,s.default)(o,[{key:"getPositionMarkerText",value:function(){var t=null;switch(b.default.currentLocale()){case"fr":t="Vous \xeates ici";break;case"en":t="Your are here";break;default:t=b.default.t("YOUR_THERE")}return t}},{key:"updateLangue",value:function(){this.setState({positionMarkerText:this.getPositionMarkerText()})}},{key:"componentDidUpdate",value:function(t,o){o.positionMarkerText!==this.state.positionMarkerText&&this.forceUpdate()}},{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),u=o.typeMap,l=o.selectedMarker;return null!==n&&null!==s?p.default.createElement(y.View,{style:N.container},p.default.createElement(h.default,{style:{flex:1},initialRegion:n,mapType:u,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 p.default.createElement(R.default,{isUser:!1,title:o.lastname,isSelected:l&&l.id===o.id,data:o,onPress:function(o,n){return t.props.onMarkerClick(o,n)},network:s})}),this.renderMyPosition(),this.makeDirection())):p.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,u=o.needRoad;if(null!==n&&null!==s&&void 0!==s&&void 0!==n&&u)return setTimeout(function(){t.state.roadReady||(t.setState({roadReady:!0}),t.props.onNeedRoadError())},1e4),p.default.createElement(C.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:M.primary})}},{key:"renderMyPosition",value:function(){var t=this.props,o=t.myPosition;t.myNetwork;if(null!=o)return p.default.createElement(R.default,{isUser:!0,lang:this.props.lang,isNeedFocus:this.state.isNeedUserFocus,title:this.state.positionMarkerText,data:{longitude:o.longitude,latitude:o.latitude}})}}]),o})(p.Component));S.propTypes={markers:k.default.array,map:k.default.object,network:k.default.object,myNetwork:k.default.object,selectedMarker:k.default.object,myPosition:k.default.object,onMarkerClick:k.default.func,initialRegion:k.default.object,typeMap:k.default.string,needRoad:k.default.bool,isNeedUserFocus:k.default.bool,onNeedRoadReady:k.default.func,onNeedRoadError:k.default.func,onMapReady:k.default.func,onLayout:k.default.func},S.defaultProps={isNeedUserFocus:!1};var x=S;e.default=x;var N=y.StyleSheet.create({container:{flex:1,backgroundColor:'#FFF'},myClusterTextStyle:{color:"white"},myClusterStyle:{backgroundColor:M.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,v.responsiveWidth)(75),backgroundColor:M.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,v.responsiveHeight)(4),width:(0,v.responsiveWidth)(95)},searchInput:{width:(0,v.responsiveWidth)(70),fontSize:14},search:{width:(0,v.responsiveWidth)(70),height:(0,v.responsiveHeight)(10),backgroundColor:'#00000000'},map:{width:(0,v.responsiveWidth)(100),height:(0,v.responsiveHeight)(100)},backgroundd_drawer:{backgroundColor:'#000'},cardsearch:{width:(0,v.responsiveWidth)(90),height:(0,v.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}})},1294,[4,1,8,9,10,12,11,13,15,956,68,18,535,1295,720,1299,1301,774,936,814,1297,1298]); __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},1295,[4,1,8,9,10,12,13,15,956,68,18,1296,1297,1298]); __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"})},1296,[175]); @@ -1678,7 +1678,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__e __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])),s=n(r(d[3])),p=n(r(d[4])),l=n(r(d[5])),u=n(r(d[6])),h=n(r(d[7])),c=n(r(d[8])),v=t(r(d[9])),f=n(r(d[10])),y=r(d[11]),b=r(d[12]);function S(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,s)}return o}function w(t){for(var n=1;nMath.abs(b)&&Math.abs(S)>Math.abs(w)&&(Math.abs(y)>h||Math.abs(S)>v)&&(O=Math.round(Math.min(Math.max(0,E-y/Math.abs(y)),p.routes.length-1))),isFinite(O)&&o.props.canJumpToTab(o.props.navigationState.routes[O])||(O=E),o._transitionTo(O,S)}},o._transitionTo=function(t,n){var p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=-t*o.props.layout.width;if(!1===o.props.animationEnabled||!1===p)return o.props.panX.setValue(0),void o.props.offsetX.setValue(l);var u=E.timing,h=(0,s.default)(E,["timing"]),c=o.props.useNativeDriver;y.Animated.parallel([u(o.props.panX,w({},h,{toValue:0,velocity:n,useNativeDriver:c})),u(o.props.offsetX,w({},h,{toValue:l,velocity:n,useNativeDriver:c}))]).start(function(n){if(n.finished){var s=o.props.navigationState.routes[t];o.props.jumpTo(s.key),o.props.onAnimationEnd&&o.props.onAnimationEnd(),o._pendingIndex=null}}),o._pendingIndex=t},o}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidUpdate",value:function(t){t.navigationState.routes.length!==this.props.navigationState.routes.length||t.layout.width!==this.props.layout.width?this._transitionTo(this.props.navigationState.index,void 0,!1):t.navigationState.index!==this.props.navigationState.index&&this.props.navigationState.index!==this._pendingIndex&&this._transitionTo(this.props.navigationState.index)}},{key:"render",value:function(){var t=this,n=this.props,o=n.GestureHandler,s=n.panX,p=n.offsetX,l=n.layout,u=n.navigationState,h=n.swipeEnabled,c=n.children,f=l.width,b=u.routes,S=f*(b.length-1),w=b.length>1?y.Animated.add(s,p).interpolate({inputRange:[-S,0],outputRange:[-S,0],extrapolate:'clamp'}):0;return v.createElement(o.PanGestureHandler,{enabled:0!==l.width&&!1!==h,minDeltaX:10,onGestureEvent:y.Animated.event([{nativeEvent:{translationX:this.props.panX}}],{useNativeDriver:this.props.useNativeDriver}),onHandlerStateChange:this._handleHandlerStateChange},v.createElement(y.Animated.View,{style:[D.sheet,f?{width:b.length*f,transform:[{translateX:w}]}:null]},v.Children.map(c,function(n,o){var s=u.routes[o],p=o===u.index;return v.createElement(y.View,{key:s.key,testID:t.props.getTestID({route:s}),accessibilityElementsHidden:!p,importantForAccessibility:p?'auto':'no-hide-descendants',style:f?{width:f}:p?y.StyleSheet.absoluteFill:null},p||f?n:null)})))}}]),n})(v.Component);e.default=O,O.propTypes=w({},b.PagerRendererPropType,{swipeDistanceThreshold:f.default.number,swipeVelocityThreshold:f.default.number,GestureHandler:f.default.object}),O.defaultProps={canJumpToTab:function(){return!0}};var D=y.StyleSheet.create({sheet:{flex:1,flexDirection:'row',alignItems:'stretch'}})},1672,[4,1,7,57,8,9,10,12,13,15,68,18,1667]); __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=function(t){return function(n){var u=n.route,o=n.jumpTo;return s.createElement(v,{key:u.key,component:t[u.key],route:u,jumpTo:o})}};var u=n(r(d[2])),o=n(r(d[3])),f=n(r(d[4])),l=n(r(d[5])),c=n(r(d[6])),p=n(r(d[7])),s=t(r(d[8])),v=(function(t){function n(){return(0,o.default)(this,n),(0,l.default)(this,(0,c.default)(n).apply(this,arguments))}return(0,p.default)(n,t),(0,f.default)(n,[{key:"render",value:function(){var t=this.props,n=t.component,o=(0,u.default)(t,["component"]);return s.createElement(n,o)}}]),n})(s.PureComponent)},1673,[4,1,57,8,9,10,12,13,15]); __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])),u=n(r(d[4])),c=n(r(d[5])),f=n(r(d[6])),p=n(r(d[7])),s=n(r(d[8])),v=n(r(d[9])),b=t(r(d[10])),h=r(d[11]),C=r(d[12]),y=n(r(d[13])),T=(function(t){function n(){var t,o;(0,c.default)(this,n);for(var l=arguments.length,f=new Array(l),v=0;v13?(0,N.cutString)(t[l],13):t[l]:(0,p.default)(l,'date')?(0,N.cutStringWithoutDot)(t[l],16):t[l]))}))},s.renderModalSuperHyperHistoryDetail=function(){s.state.historyItemDetail;return E.default.createElement(R.default.Container,{useNativeDriver:!0,visible:s.state.displaySuperHyperModalHistory},E.default.createElement(R.default.Title,null,"D\xe9tail de l'historique"),E.default.createElement(h.View,null,E.default.createElement(h.View,{style:[K.blockView,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:[K.body2]},w.default.t('OPERATION'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.operation))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:[K.body2]},w.default.t('TRANSACTION_ID'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.id_transaction))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:[K.body2]},"Date")),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('INIT_COUNTRY'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.init_country))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('AMOUNT'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('FEES_AND_TAXES'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.frais))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('NET_AMOUNT'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_init))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('EMETTEUR'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.emetteur))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('DESTINATAIRE'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.destinataire))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('FINAL_COUNTRY'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.final_country))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('NET_AMOUNT'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_final))),E.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{tyle:[H.Typography.body2]},w.default.t('ACTIVE_WALLET'))),E.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(h.Text,{style:[H.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.reseau_payeur))))),E.default.createElement(R.default.Button,{bold:!0,label:w.default.t('OK'),onPress:function(){s.setState({displaySuperHyperModalHistory:!s.state.displaySuperHyperModalHistory})}}))},s.renderSuperHyperHistoryTransactionList=function(){var t=s.props,l=t.resultHistoryHyperSuper,o=t.errorHistoryHyperSuper;return null!==o?void 0!==o.data?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},o.data.error)):E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},o)):null!==l&&null!==l.response?Array.isArray(l.response)&&l.response.length>0?E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:[K.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,N.transactionHistoryIlinkLabel)().map(function(t,l){return E.default.createElement(h.View,{style:{alignItems:'center'},key:l},E.default.createElement(V.default,{name:t.icon,size:24,color:A.Color.primaryColor}),E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{marginTop:4})},t.label))})),l.response.map(function(t,l){return s.renderSuperHyperHistoryTransactionItem(t,l)})):E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},E.default.createElement(h.Text,{style:H.Typography.body1},w.default.t('NO_WALLET_HISTORY'))):void 0},s.renderSuperHyperHistoryTransaction=function(){return E.default.createElement(E.default.Fragment,null,s.props.loadingHistoryHyperSuper?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===h.Platform.OS?E.default.createElement(E.default.Fragment,null,E.default.createElement(h.ProgressBarAndroid,null),E.default.createElement(h.Text,null,w.default.t('LOADING_DOTS'))):E.default.createElement(E.default.Fragment,null,E.default.createElement(h.ActivityIndicator,{size:"large",color:'#ccc'}),E.default.createElement(h.Text,null,w.default.t('LOADING_DOTS')))):E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:[K.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(h.Text,{style:[H.Typography.title3,H.Typography.semibold]},w.default.t('TRANSACTION_HISTORY'))),s.renderSuperHyperHistoryTransactionList()))},s.renderDetailWallet=function(t){return(0,N.isEmptyObject)(t)?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},w.default.t('NO_WALLET_ACTIVED'))):E.default.createElement(E.default.Fragment,null,s.state.triggerTransferCommission&&s.renderDialogTransferCommissionResponse(),E.default.createElement(h.View,{style:K.container},E.default.createElement(h.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:A.Color.primaryColor,height:140-s.state.scrollHeaderY}}),E.default.createElement(h.ScrollView,{ref:function(t){return s._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:h.Animated.event([{nativeEvent:{contentOffset:{y:s.scrollY}}}],{listener:function(t){s.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},E.default.createElement(h.View,{style:{marginTop:80}},s.renderHeader(t),E.default.createElement(h.View,{style:[K.blockView,{borderBottomColor:A.Color.borderColor}]},s.renderAccountDetail(t),!s.isHomeRootView&&E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:[K.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(h.Text,{style:[H.Typography.title3,H.Typography.semibold]},w.default.t('TRANSACTIONS'))),E.default.createElement(h.View,{style:K.transactionContainer},E.default.createElement(h.View,{style:[K.containerTouch]},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){(0,N.isIlinkWorldWallet)(t.type)?s.props.navigation.push(j.walletOptionSelect,{optionSelect:N.optionDepotScreen,wallet:t,onGoBack:function(){return s.refresh()},lottie:{source:r(d[47]),loop:!1}}):s.props.navigation.push(j.walletDepot,{wallet:t,onGoBack:function(){return s.refresh()}})},activeOpacity:.9},E.default.createElement(V.default,{name:"arrow-bottom-right",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:K.contentTitle},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('DEPOSIT'))),E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5},w.default.t('DEPOSIT_DESCRIPTION')))))),E.default.createElement(h.View,{style:K.containerTouch},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){(0,N.isIlinkWorldWallet)(t.type)?s.props.navigation.push(j.walletOptionSelect,{optionSelect:N.optionRetraitScreen,wallet:t,onGoBack:function(){return s.refresh()},lottie:{source:r(d[47]),loop:!0}}):s.props.navigation.push(j.walletRetrait,{wallet:t,onGoBack:function(){return s.refresh()}})},activeOpacity:.9},E.default.createElement(V.default,{name:"arrow-top-left",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:K.contentTitle},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('WITHDRAWAL'))),E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5},w.default.t('WITHDRAWAL_DESCRIPTION'))))))),(0,N.isIlinkWorldWallet)(t.type)&&E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:K.transactionContainer},E.default.createElement(h.View,{style:[K.containerTouch]},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){s.props.navigation.push(j.walletOptionSelect,{optionSelect:N.optionNanoCreditAgentScreen,wallet:t,lottie:{source:r(d[48]),loop:!0}})},activeOpacity:.9},E.default.createElement(V.default,{name:"cash-multiple",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:{paddingTop:20}},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('NANO_CREDIT')))))),E.default.createElement(h.View,{style:[K.containerTouch]},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){},activeOpacity:.9},E.default.createElement(V.default,{name:"heart-multiple",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:{paddingTop:20}},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('NANO_SANTE'))))))),E.default.createElement(h.View,{style:K.transactionContainer},E.default.createElement(h.View,{style:[K.containerTouch]},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){s.props.navigation.push(j.walletOptionSelect,{optionSelect:N.optionPaiementFacture,onGoBack:function(){return s.refresh()},lottie:{source:r(d[49]),loop:!0}})},activeOpacity:.9},E.default.createElement(V.default,{name:"file-document",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:K.contentTitle},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('PAIEMENT_FACTURE'))),E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),E.default.createElement(h.View,{style:[K.containerTouch]},E.default.createElement(h.TouchableOpacity,{style:K.contain,onPress:function(){s.props.navigation.push(j.walletOptionSelect,{optionSelect:N.optionIdentificationScreen,lottie:{source:r(d[50]),loop:!0}})},activeOpacity:.9},E.default.createElement(V.default,{name:"pencil-plus",color:A.Color.primaryColor,size:30,style:K.imageBanner}),E.default.createElement(h.View,{style:[K.content]},E.default.createElement(h.View,{style:K.contentTitle},E.default.createElement(h.Text,{style:[H.Typography.headline,H.Typography.semibold]},w.default.t('CREATION_IDENTIFICATION_DESCRIPTION'))),E.default.createElement(h.View,{style:{flex:1}},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5})))))))),!s.isHomeRootView&&s.renderHistoryTransaction(t),s.isHomeRootView&&s.renderSuperHyperHistoryTransaction())))))},s.renderHistoryTransactionItem=function(t,l,o){return E.default.createElement(h.TouchableOpacity,{onPress:function(){s.setState({displayModalHistory:!0,historyItemDetail:t})},style:[K.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,N.isIlinkWorldWallet)(o.type)?Object.keys((0,T.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,o){return E.default.createElement(h.View,{style:{alignItems:'center'},key:o},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{marginTop:4})},(0,p.default)(l,'montant')?""+Y(t[l],' '):(0,p.default)(l,'destinataire')?t[l].length>13?(0,N.cutString)(t[l],13):t[l]:(0,p.default)(l,'date')?(0,N.cutStringWithoutDot)(t[l],16):t[l]))}):Object.keys((0,T.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,o){return E.default.createElement(h.View,{style:{alignItems:'center'},key:o},E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{marginTop:4})},(0,p.default)(l,'montant')?""+Y(t[l],' '):(0,p.default)(l,'destinataire')?t[l].length>13?(0,N.cutString)(t[l],13):t[l]:(0,p.default)(l,'date')?(0,N.cutStringWithoutDot)(t[l],16):t[l]))}))},s.renderHistoryTransactionList=function(t){var l=s.props,o=l.resultTransaction,n=l.errorTransaction;return null!==n?void 0!==n.data?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},n.data.error)):E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},n)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:[K.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,N.transactionHistoryIlinkLabel)().map(function(t,l){return E.default.createElement(h.View,{style:{alignItems:'center'},key:l},E.default.createElement(V.default,{name:t.icon,size:24,color:A.Color.primaryColor}),E.default.createElement(h.Text,{style:(H.Typography.overline,A.Color.grayColor,{marginTop:4})},t.label))})),o.response.map(function(l,o){return s.renderHistoryTransactionItem(l,o,t)})):E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},E.default.createElement(h.Text,{style:H.Typography.body1},w.default.t('NO_WALLET_HISTORY'))):void 0},s.renderHistoryTransaction=function(t){return E.default.createElement(E.default.Fragment,null,s.props.loadingTransaction?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===h.Platform.OS?E.default.createElement(E.default.Fragment,null,E.default.createElement(h.ProgressBarAndroid,null),E.default.createElement(h.Text,null,w.default.t('LOADING_DOTS'))):E.default.createElement(E.default.Fragment,null,E.default.createElement(h.ActivityIndicator,{size:"large",color:'#ccc'}),E.default.createElement(h.Text,null,w.default.t('LOADING_DOTS')))):E.default.createElement(E.default.Fragment,null,E.default.createElement(h.View,{style:[K.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(h.Text,{style:[H.Typography.title3,H.Typography.semibold]},w.default.t('TRANSACTION_HISTORY'))),s.renderHistoryTransactionList(t)))},s.renderDialogConfirmTransferCommission=function(){h.Alert.alert(w.default.t("CONFIRM"),w.default.t('CONFIRM_TRANSFER_COMMISSION'),[{text:w.default.t("NO"),onPress:function(){}},{text:w.default.t("YES"),onPress:function(){var t=s.props.result;null!==t&&void 0!==t.response&&s.props.transferCommissionAction(t.response.id),s.setState({triggerTransferCommission:!0})}}],{cancelable:!1})},s.renderDialogTransferCommissionResponse=function(){var t=s.props,l=t.resultTransferCommission,o=t.errorTransferCommission;null!==o&&void 0!==o.data&&h.Alert.alert(w.default.t("ERROR_TRANSFER_COMMISSION"),o.data.error,[{text:w.default.t("OK"),onPress:function(){s.props.resetCommissionReducer()}}],{cancelable:!1}),null!==l&&null!==l.response&&h.Alert.alert(w.default.t("SUCCESS_TRANSFER_COMMISSION"),w.default.t("COMMISSION_TRANSFER_SUCCESS"),[{text:w.default.t("OK"),onPress:function(){s.props.resetCommissionReducer(),s.refresh()}}],{cancelable:!1})},s.state={index:0,routes:[{key:'depot',title:w.default.t('DEPOSIT')},{key:'retrait',title:w.default.t('WITHDRAWAL')}],heightHeader:_.heightHeader(),isModalConfirmVisible:!1,wallet:{currency_code:''},triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,displayModalHistory:!1,displaySuperHyperModalHistory:!1,historyItemDetail:null},s.renderContent=null,z.extend({'+':'plus'}),s.scrollY=new h.Animated.Value(0),s.scrollHeaderY=new h.Animated.Value(0),s.deltaY=new h.Animated.Value(0),s.bgBannerY=new h.Animated.Value(0),s.heightImageBanner=_.scaleWithPixel(250,1),s.marginTopBanner=s.heightImageBanner-s.state.heightHeader-40,s.isHomeRootView=s.props.navigation.state.params.hasOwnProperty('agentId'),v.IlinkEmitter.on("langueChange",s.updateLangue.bind((0,y.default)(s))),s.props.getWalletTransactionHistoryReset(),s.props.depositActionReset(),s.props.resetWalletListDetailReducer(),s.currentLocale=C.default.getDeviceLocale().includes("fr")?"fr":"en-gb",P.locale(s.currentLocale),s.isHomeRootView){var f=s.props.navigation.state.params.agentId;s.props.getWalletDetailActivated(f,!0),s.props.getHyperSuperTransactionHistoryReset()}else s.props.getWalletDetailActivated(s.props.navigation.state.params.wallet.id,!1),(0,N.isIlinkWorldWallet)(s.props.navigation.state.params.wallet.type)?s.props.getWalletTransactionHistory(s.props.navigation.state.params.wallet.id,!0):s.props.getWalletTransactionHistory(s.props.navigation.state.params.wallet.id,!1);return s}return(0,f.default)(l,t),(0,s.default)(l,[{key:"componentDidMount",value:function(){var t=this,l=this.props.result;if(null!==l&&void 0!==l.response){var o=l.response[0];(0,M.readUser)().then(function(o){if(null!==o&&void 0!==o&&void 0!==o.category){switch(o.category){case"super":t.props.getHyperSuperTransactionHistoryAction(l.response.id,!1);break;case"hyper":t.props.getHyperSuperTransactionHistoryAction(l.response.id,!0)}t.setState({})}}),this.setState({wallet:o,isTriggerRefresh:!1})}}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:w.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){return E.default.createElement(E.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),this.state.displaySuperHyperModalHistory&&this.renderModalSuperHyperHistoryDetail(),E.default.createElement(h.StatusBar,{backgroundColor:A.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingTransferCommission?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?E.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(h.Text,{style:H.Typography.body1},w.default.t('NO_WALLET_ACTIVED'))):this.renderDetailWallet(this.props.result.response):null)}}]),l})(E.Component);U.navigatorStyle={navBarBackgroundColor:A.Color.primaryColor,statusBarColor:A.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:w.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:A.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:w.default.t('WALLET')}};var G=(0,S.connect)(function(t){return{loading:t.walletDetailReducer.loading,result:t.walletDetailReducer.result,error:t.walletDetailReducer.error,loadingTransaction:t.walletHistoryReducer.loadingTransaction,resultTransaction:t.walletHistoryReducer.resultTransaction,errorTransaction:t.walletHistoryReducer.errorTransaction,loadingTransferCommission:t.walletTransferCommissionReducer.loadingTransferCommission,resultTransferCommission:t.walletTransferCommissionReducer.resultTransferCommission,errorTransferCommission:t.walletTransferCommissionReducer.errorTransferCommission,loadingHistoryHyperSuper:t.getHyperSuperHistoryReducer.loading,resultHistoryHyperSuper:t.getHyperSuperHistoryReducer.result,errorHistoryHyperSuper:t.getHyperSuperHistoryReducer.error}},function(t){return(0,D.bindActionCreators)({getWalletDetailActivated:k.getWalletDetailActivated,getWalletTransactionHistory:B.getWalletTransactionHistory,transferCommissionAction:F.transferCommissionAction,resetWalletListDetailReducer:k.resetWalletListDetailReducer,resetCommissionReducer:F.resetCommissionReducer,getWalletTransactionHistoryReset:B.getWalletTransactionHistoryReset,depositActionReset:L.depositActionReset,getHyperSuperTransactionHistoryAction:B.getHyperSuperTransactionHistoryAction,getHyperSuperTransactionHistoryReset:B.getHyperSuperTransactionHistoryReset},t)})(U);e.default=G;var K=h.StyleSheet.create({container:{flex:1,backgroundColor:A.Color.containerBackgroundColor},indicator:{height:2},tab:{width:_.getWidthDevice()/2},tabbar:{height:40},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,x.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',paddingTop:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',shadowColor:A.Color.borderColor,borderColor:A.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:A.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:_.scaleWithPixel(30),height:_.scaleWithPixel(30)},content:{height:_.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1675,[4,1,6,8,9,10,12,11,13,689,553,1030,1032,1033,1034,1035,1036,1037,1038,15,18,936,720,535,1676,878,876,1039,1056,1640,1026,1624,1015,1014,774,1643,1687,744,1607,1689,1690,719,1169,1645,815,1644,816,1691,1692,1693,1694]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=l(r(d[2])),n=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),y=l(r(d[6])),u=l(r(d[7])),f=l(r(d[8])),p=l(r(d[9])),T=l(r(d[10]));r(d[11]),r(d[12]),r(d[13]),r(d[14]),r(d[15]),r(d[16]),r(d[17]),r(d[18]);var E=t(r(d[19])),x=r(d[20]),w=l(r(d[21])),h=l(r(d[22])),C=r(d[23]),I=r(d[24]),V=l(r(d[25])),D=l(r(d[26])),b=r(d[27]),_=r(d[28]),S=l(r(d[29])),A=r(d[30]),O=l(r(d[31])),R=r(d[32]),H=t(r(d[33])),N=r(d[34]),v=r(d[35]),L=r(d[36]),W=r(d[37]),M=r(d[38]),k=r(d[39]),B=r(d[40]),F=r(d[41]),P=r(d[42]),U=r(d[43]),Y=r(d[44]),j=r(d[45]);r(d[46]);var z=(function(t){function l(t){var s;if((0,n.default)(this,l),(s=(0,c.default)(this,(0,y.default)(l).call(this,t))).getWalletIcon=function(t){return W.baseUrl+"/datas/img/network/"+j(t.network,{lower:!0})+"-logo.png"},s.getCreationDateToHumanFormat=function(t){var l=P.tz(t,'Etc/GMT+0').format();return P(l).fromNow()},s.handleIndexChange=function(t){return s.setState({index:t})},s.imageScale=function(){return s.scrollY.interpolate({inputRange:[0,100],outputRange:[1,.5],extrapolate:'clamp'})},s.imageTranslateY=function(){return s.scrollY.interpolate({inputRange:[0,100],outputRange:[-5,50],extrapolate:'clamp'})},s.bgHeaderTranslateY=function(){return s.scrollY.interpolate({inputRange:[0,150],outputRange:[-5,0],extrapolate:'clamp'})},s.refresh=function(){s.props.result;if(console.log("STATE NAVIGATION PARAMS REFRESH",s.props.navigation.state),s.isHomeRootView){var t=s.props.navigation.state.params.agentId;s.props.getWalletDetailActivated(t,!0)}else{var l=s.props.navigation.state.params.wallet;s.props.getWalletDetailActivated(l.id,!1),(0,v.isIlinkWorldWallet)(l.type)?s.props.getWalletTransactionHistory(l.id,!0):s.props.getWalletTransactionHistory(l.id,!1),s.setState({isTriggerRefresh:!0})}},s.renderTabBar=function(t){return E.default.createElement(I.TabBar,(0,o.default)({},t,{scrollEnabled:!0,indicatorStyle:[q.indicator,{backgroundColor:A.Color.primaryColor}],style:[q.tabBar,{backgroundColor:A.Color.containerBackgroundColor}],inactiveColor:A.Color.dividerColor,activeColor:A.Color.grayColor,tabStyle:q.tab,renderLabel:function(t){var l=t.route,o=(t.focused,t.color);return E.default.createElement(x.View,{style:{flex:1,width:H.getWidthDevice()/2,alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.headline,style:{color:o}},'depot'===l.key?E.default.createElement(D.default,{name:"arrow-bottom-right",color:o,size:20}):E.default.createElement(D.default,{name:"arrow-top-left",color:o,size:20})," "+l.title))}}))},s.renderHeader=function(t){return E.default.createElement(x.View,{style:[q.containField,{backgroundColor:A.Color.cardBackgroundColor,zIndex:11,shadowColor:A.Color.borderColor,borderColor:A.Color.borderColor}]},E.default.createElement(x.View,{style:[q.contentLeftItem]},E.default.createElement(x.Text,{numberOfLines:1,style:[R.Typography.caption2,R.Typography.semibold]},h.default.t('COUNTRY')),E.default.createElement(x.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:R.Typography.caption1},t.country)),E.default.createElement(x.View,{style:{flex:1,alignItems:'center',justifyContent:'flex-end'}},E.default.createElement(x.Animated.Image,{source:{uri:s.getWalletIcon(t)},style:{width:120,height:120,borderRadius:60,position:'absolute',alignSelf:'center',backgroundColor:A.Color.whiteColor,bottom:70,transform:[{scale:s.imageScale()},{translateY:s.imageTranslateY()}]}}),E.default.createElement(x.View,{style:{marginTop:1,flex:1,alignItems:'center',justifyContent:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold],numberOfLines:1},t.network),E.default.createElement(x.View,{style:{flexDirection:'row'}},E.default.createElement(S.default,{primary:!0,icon:E.default.createElement(D.default,{name:"swap-horizontal",size:20,color:A.Color.whiteColor,style:{marginLeft:15}}),style:{paddingRight:10,width:120,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:A.Color.whiteColor},onPress:function(){var t=s.props.result;null!==t&&void 0!==t.response&&(0===parseInt(t.response.balance_com)?x.Alert.alert(h.default.t("TRANSFER_COMMISSION_IMPOSSIBLE"),h.default.t("COMMISSION_TRANSFER_ERROR_EMPTY"),[{text:h.default.t("OK"),onPress:function(){s.props.resetCommissionReducer()}}],{cancelable:!1}):s.renderDialogConfirmTransferCommission())}},h.default.t('TRANSFER_TO_PRINCIPAL_ACCOUNT')),E.default.createElement(S.default,{icon:E.default.createElement(D.default,{name:"update",size:20,color:A.Color.whiteColor,style:{marginLeft:-15}}),style:{width:110,borderTopLeftRadius:0,borderBottomLeftRadius:0},primary:!0,onPress:function(){s._scrollView.scrollToEnd()}},h.default.t('HISTORY'))))),E.default.createElement(x.View,{style:q.contentLeftItem},E.default.createElement(x.Text,{numberOfLines:1,style:[R.Typography.caption2,R.Typography.semibold]},h.default.t('CREATION_DATE')),E.default.createElement(x.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:R.Typography.caption1},P(t.created_date).format('DD/MM/YYYY'))))},s.renderLoader=function(){return E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===x.Platform.OS?E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ProgressBarAndroid,null),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS'))):E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ActivityIndicator,{size:"large",color:'#ccc'}),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS'))))},s.renderAccountDetail=function(t){return E.default.createElement(x.View,{style:{flexDirection:'row',flex:1,justifyContent:'space-between'}},E.default.createElement(x.View,{style:{flexDirection:'row',alignItems:'center'}},E.default.createElement(x.View,{style:[q.circlePoint,{backgroundColor:A.Color.primaryColor}]},E.default.createElement(V.default,{name:"md-wallet",size:28,color:A.Color.whiteColor})),E.default.createElement(x.View,null,E.default.createElement(x.Text,{style:(R.Typography.title3,A.Color.primaryColor,{marginBottom:3})},h.default.t('PRINCIPAL_ACCOUNT_TITLE')),E.default.createElement(x.Text,{style:[R.Typography.body2]},U(t.balance_princ,' ')+" "+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',alignItems:'center'}},E.default.createElement(x.View,{style:[q.circlePoint,{backgroundColor:A.Color.primaryColor}]},E.default.createElement(V.default,{name:"md-cash",size:28,color:A.Color.whiteColor})),E.default.createElement(x.View,null,E.default.createElement(x.Text,{style:(R.Typography.title3,A.Color.primaryColor,{marginBottom:3})},h.default.t('COMMISSION_ACCOUNT_TITLE')),E.default.createElement(x.Text,{style:R.Typography.body2},U(t.balance_com,' ')+" "+t.currency_code))))},s.renderModalHistoryDetail=function(t){s.state.historyItemDetail;return E.default.createElement(O.default.Container,{useNativeDriver:!0,visible:s.state.displayModalHistory},E.default.createElement(O.default.Title,null,"D\xe9tail de l'historique"),E.default.createElement(x.View,null,E.default.createElement(x.View,{style:[q.blockView,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('OPERATION'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.operation))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('TRANSACTION_ID'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.id_transaction))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},"Date")),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('INIT_COUNTRY'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.init_country))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('FEES_AND_TAXES'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.frais))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('NET_AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_init))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('EMETTEUR'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.emetteur))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('DESTINATAIRE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.destinataire))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('FINAL_COUNTRY'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.final_country))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('NET_AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_final))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('ACTIVE_WALLET'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.reseau_payeur))))),E.default.createElement(O.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){s.setState({displayModalHistory:!s.state.displayModalHistory})}}))},s.renderSuperHyperHistoryTransactionItem=function(t,l){return E.default.createElement(x.TouchableOpacity,{onPress:function(){s.setState({displaySuperHyperModalHistory:!0,historyItemDetail:t})},style:[q.contentService,{borderBottomColor:A.Color.primaryColor}]},Object.keys((0,T.default)(t,['id','id_transaction','montant2','date_cassation','etat','type','date_fin','duree_mois','id_epargne','type_historique','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation','retrait_cash','type_historique','type_caution','id_demande','montant_rembourse','partiellement_rembourse','duree_mois','etat','interet','taxe','date_validation','date_remboursement_prevu','date_remboursement','id_user','id_wallet_agent','id_network','user','user_phone','agent','codeParrain'])).map(function(l,o){return E.default.createElement(x.View,{style:{alignItems:'center'},key:o},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{marginTop:4})},(0,p.default)(l,'montant')?""+U(t[l],' '):(0,p.default)(l,'destinataire')?t[l].length>13?(0,v.cutString)(t[l],13):t[l]:(0,p.default)(l,'date_creation')?(0,v.cutStringWithoutDot)(t[l],16):t[l]))}))},s.renderModalSuperHyperHistoryDetail=function(t){var l=s.state.historyItemDetail;return E.default.createElement(O.default.Container,{useNativeDriver:!0,visible:s.state.displaySuperHyperModalHistory},E.default.createElement(O.default.Title,null,"D\xe9tail de l'historique"),(0,p.default)(l.type_historique,'N')&&E.default.createElement(x.ScrollView,{persistentScrollbar:!0},E.default.createElement(x.View,{style:[q.blockView,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},"Type")),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},(0,v.displayTransactionType)(s.state.historyItemDetail.type_historique)))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('ID_DEMAND'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.id_demande))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('STATUS'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.etat))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('DEMAND_DURATION_IN_MONTH'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.duree_mois))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT_REFUND'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_rembourse+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT_PARTIALLY_REFUND'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.partiellement_rembourse+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('TAXES'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.taxe+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('INTERET'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.interet+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('WITHDRAWAL_IN_CASH'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.retrait_cash+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('CREATION_DATE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_creation))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('DEMAND_DATE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_demande))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('DATE_REMBOURSEMENT_PREVU'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_remboursement_prevu))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('DATE_REMBOURSEMENT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_remboursement))))),(0,p.default)(l.type_historique,'E')&&E.default.createElement(x.View,{style:[q.blockView,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},"Type")),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},(0,v.displayTransactionType)(s.state.historyItemDetail.type_historique)))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('ID_DEMAND'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.id_demande))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('STATUS'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.etat))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('DEMAND_DURATION_IN_MONTH'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.duree_mois))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},"Type")),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.type))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('TAXES'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.taxe+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('INTERET'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.interet+' '+t.currency_code))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('CREATION_DATE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_creation))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('FINAL_DATE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_fin))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('CASSATION_DATE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_cassation)))),(0,p.default)(l.type_historique,'T')&&E.default.createElement(x.View,null,E.default.createElement(x.View,{style:[q.blockView,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('OPERATION'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.operation))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},h.default.t('TRANSACTION_ID'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.id_transaction))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:[q.body2]},"Date")),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.date_creation))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('INIT_COUNTRY'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.init_country))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant2))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('FEES_AND_TAXES'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.frais))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('NET_AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_init))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('EMETTEUR'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.emetteur))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('DESTINATAIRE'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.destinataire))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('FINAL_COUNTRY'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.final_country))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('NET_AMOUNT'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.montant_net_final))),E.default.createElement(x.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{tyle:[R.Typography.body2]},h.default.t('ACTIVE_WALLET'))),E.default.createElement(x.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(x.Text,{style:[R.Typography.caption1,A.Color.grayColor]},s.state.historyItemDetail.reseau_payeur))))),E.default.createElement(O.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){s.setState({displaySuperHyperModalHistory:!s.state.displaySuperHyperModalHistory})}}))},s.renderSuperHyperHistoryTransactionList=function(){var t=s.props,l=t.resultHistoryHyperSuper,o=t.errorHistoryHyperSuper;return null!==o?void 0!==o.data?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},o.data.error)):E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},o)):null!==l&&null!==l.response?Array.isArray(l.response)&&l.response.length>0?E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:[q.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,v.transactionHistoryIlinkLabel)().map(function(t,l){return E.default.createElement(x.View,{style:{alignItems:'center'},key:l},E.default.createElement(D.default,{name:t.icon,size:24,color:A.Color.primaryColor}),E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{marginTop:4})},t.label))})),l.response.map(function(t,l){return s.renderSuperHyperHistoryTransactionItem(t,l)})):E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},E.default.createElement(x.Text,{style:R.Typography.body1},h.default.t('NO_WALLET_HISTORY'))):void 0},s.renderSuperHyperHistoryTransaction=function(){return E.default.createElement(E.default.Fragment,null,s.props.loadingHistoryHyperSuper?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===x.Platform.OS?E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ProgressBarAndroid,null),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS'))):E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ActivityIndicator,{size:"large",color:'#ccc'}),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS')))):E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:[q.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.Text,{style:[R.Typography.title3,R.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),s.renderSuperHyperHistoryTransactionList()))},s.renderDetailWallet=function(t){return(0,v.isEmptyObject)(t)?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):E.default.createElement(E.default.Fragment,null,s.state.triggerTransferCommission&&s.renderDialogTransferCommissionResponse(),E.default.createElement(x.View,{style:q.container},E.default.createElement(x.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:A.Color.primaryColor,height:140-s.state.scrollHeaderY}}),E.default.createElement(x.ScrollView,{ref:function(t){return s._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:x.Animated.event([{nativeEvent:{contentOffset:{y:s.scrollY}}}],{listener:function(t){s.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},E.default.createElement(x.View,{style:{marginTop:80}},s.renderHeader(t),E.default.createElement(x.View,{style:[q.blockView,{borderBottomColor:A.Color.borderColor}]},s.renderAccountDetail(t),!s.isHomeRootView&&E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:[q.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.Text,{style:[R.Typography.title3,R.Typography.semibold]},h.default.t('TRANSACTIONS'))),E.default.createElement(x.View,{style:q.transactionContainer},E.default.createElement(x.View,{style:[q.containerTouch]},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){(0,v.isIlinkWorldWallet)(t.type)?s.props.navigation.push(Y.walletOptionSelect,{optionSelect:v.optionDepotScreen,wallet:t,onGoBack:function(){return s.refresh()},lottie:{source:r(d[47]),loop:!1}}):s.props.navigation.push(Y.walletDepot,{wallet:t,onGoBack:function(){return s.refresh()}})},activeOpacity:.9},E.default.createElement(D.default,{name:"arrow-bottom-right",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:q.contentTitle},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('DEPOSIT'))),E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5},h.default.t('DEPOSIT_DESCRIPTION')))))),E.default.createElement(x.View,{style:q.containerTouch},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){(0,v.isIlinkWorldWallet)(t.type)?s.props.navigation.push(Y.walletOptionSelect,{optionSelect:v.optionRetraitScreen,wallet:t,onGoBack:function(){return s.refresh()},lottie:{source:r(d[47]),loop:!0}}):s.props.navigation.push(Y.walletRetrait,{wallet:t,onGoBack:function(){return s.refresh()}})},activeOpacity:.9},E.default.createElement(D.default,{name:"arrow-top-left",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:q.contentTitle},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('WITHDRAWAL'))),E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5},h.default.t('WITHDRAWAL_DESCRIPTION'))))))),(0,v.isIlinkWorldWallet)(t.type)&&E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:q.transactionContainer},E.default.createElement(x.View,{style:[q.containerTouch]},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){s.props.navigation.push(Y.walletOptionSelect,{optionSelect:v.optionNanoCreditAgentScreen,wallet:t,lottie:{source:r(d[48]),loop:!0}})},activeOpacity:.9},E.default.createElement(D.default,{name:"cash-multiple",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:{paddingTop:20}},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('NANO_CREDIT')))))),E.default.createElement(x.View,{style:[q.containerTouch]},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){},activeOpacity:.9},E.default.createElement(D.default,{name:"heart-multiple",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:{paddingTop:20}},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('NANO_SANTE'))))))),E.default.createElement(x.View,{style:q.transactionContainer},E.default.createElement(x.View,{style:[q.containerTouch]},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){s.props.navigation.push(Y.walletOptionSelect,{optionSelect:v.optionPaiementFacture,onGoBack:function(){return s.refresh()},lottie:{source:r(d[49]),loop:!0}})},activeOpacity:.9},E.default.createElement(D.default,{name:"file-document",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:q.contentTitle},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('PAIEMENT_FACTURE'))),E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),E.default.createElement(x.View,{style:[q.containerTouch]},E.default.createElement(x.TouchableOpacity,{style:q.contain,onPress:function(){s.props.navigation.push(Y.walletOptionSelect,{optionSelect:v.optionIdentificationScreen,lottie:{source:r(d[50]),loop:!0}})},activeOpacity:.9},E.default.createElement(D.default,{name:"pencil-plus",color:A.Color.primaryColor,size:30,style:q.imageBanner}),E.default.createElement(x.View,{style:[q.content]},E.default.createElement(x.View,{style:q.contentTitle},E.default.createElement(x.Text,{style:[R.Typography.headline,R.Typography.semibold]},h.default.t('CREATION_IDENTIFICATION_DESCRIPTION'))),E.default.createElement(x.View,{style:{flex:1}},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{paddingVertical:5}),numberOfLines:5})))))))),!s.isHomeRootView&&s.renderHistoryTransaction(t),s.isHomeRootView&&s.renderSuperHyperHistoryTransaction())))))},s.renderHistoryTransactionItem=function(t,l,o){return E.default.createElement(x.TouchableOpacity,{onPress:function(){s.setState({displayModalHistory:!0,historyItemDetail:t})},style:[q.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,v.isIlinkWorldWallet)(o.type)?Object.keys((0,T.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,o){return E.default.createElement(x.View,{style:{alignItems:'center'},key:o},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{marginTop:4})},(0,p.default)(l,'montant')?""+U(t[l],' '):(0,p.default)(l,'destinataire')?t[l].length>13?(0,v.cutString)(t[l],13):t[l]:(0,p.default)(l,'date')?(0,v.cutStringWithoutDot)(t[l],16):t[l]))}):Object.keys((0,T.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,o){return E.default.createElement(x.View,{style:{alignItems:'center'},key:o},E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{marginTop:4})},(0,p.default)(l,'montant')?""+U(t[l],' '):(0,p.default)(l,'destinataire')?t[l].length>13?(0,v.cutString)(t[l],13):t[l]:(0,p.default)(l,'date')?(0,v.cutStringWithoutDot)(t[l],16):t[l]))}))},s.renderHistoryTransactionList=function(t){var l=s.props,o=l.resultTransaction,n=l.errorTransaction;return null!==n?void 0!==n.data?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},n.data.error)):E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},n)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:[q.contentService,{borderBottomColor:A.Color.primaryColor}]},(0,v.transactionHistoryIlinkLabel)().map(function(t,l){return E.default.createElement(x.View,{style:{alignItems:'center'},key:l},E.default.createElement(D.default,{name:t.icon,size:24,color:A.Color.primaryColor}),E.default.createElement(x.Text,{style:(R.Typography.overline,A.Color.grayColor,{marginTop:4})},t.label))})),o.response.map(function(l,o){return s.renderHistoryTransactionItem(l,o,t)})):E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},E.default.createElement(x.Text,{style:R.Typography.body1},h.default.t('NO_WALLET_HISTORY'))):void 0},s.renderHistoryTransaction=function(t){return E.default.createElement(E.default.Fragment,null,s.props.loadingTransaction?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===x.Platform.OS?E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ProgressBarAndroid,null),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS'))):E.default.createElement(E.default.Fragment,null,E.default.createElement(x.ActivityIndicator,{size:"large",color:'#ccc'}),E.default.createElement(x.Text,null,h.default.t('LOADING_DOTS')))):E.default.createElement(E.default.Fragment,null,E.default.createElement(x.View,{style:[q.checkDefault,{borderBottomColor:A.Color.borderColor}]},E.default.createElement(x.Text,{style:[R.Typography.title3,R.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),s.renderHistoryTransactionList(t)))},s.renderDialogConfirmTransferCommission=function(){x.Alert.alert(h.default.t("CONFIRM"),h.default.t('CONFIRM_TRANSFER_COMMISSION'),[{text:h.default.t("NO"),onPress:function(){}},{text:h.default.t("YES"),onPress:function(){var t=s.props.result;null!==t&&void 0!==t.response&&s.props.transferCommissionAction(t.response.id),s.setState({triggerTransferCommission:!0})}}],{cancelable:!1})},s.renderDialogTransferCommissionResponse=function(){var t=s.props,l=t.resultTransferCommission,o=t.errorTransferCommission;null!==o&&void 0!==o.data&&x.Alert.alert(h.default.t("ERROR_TRANSFER_COMMISSION"),o.data.error,[{text:h.default.t("OK"),onPress:function(){s.props.resetCommissionReducer()}}],{cancelable:!1}),null!==l&&null!==l.response&&x.Alert.alert(h.default.t("SUCCESS_TRANSFER_COMMISSION"),h.default.t("COMMISSION_TRANSFER_SUCCESS"),[{text:h.default.t("OK"),onPress:function(){s.props.resetCommissionReducer(),s.refresh()}}],{cancelable:!1})},s.state={index:0,routes:[{key:'depot',title:h.default.t('DEPOSIT')},{key:'retrait',title:h.default.t('WITHDRAWAL')}],heightHeader:H.heightHeader(),isModalConfirmVisible:!1,wallet:{currency_code:''},triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,displayModalHistory:!1,displaySuperHyperModalHistory:!1,historyItemDetail:null},s.renderContent=null,j.extend({'+':'plus'}),s.scrollY=new x.Animated.Value(0),s.scrollHeaderY=new x.Animated.Value(0),s.deltaY=new x.Animated.Value(0),s.bgBannerY=new x.Animated.Value(0),s.heightImageBanner=H.scaleWithPixel(250,1),s.marginTopBanner=s.heightImageBanner-s.state.heightHeader-40,s.isHomeRootView=s.props.navigation.state.params.hasOwnProperty('agentId'),N.IlinkEmitter.on("langueChange",s.updateLangue.bind((0,u.default)(s))),s.props.getWalletTransactionHistoryReset(),s.props.depositActionReset(),s.props.resetWalletListDetailReducer(),s.currentLocale=w.default.getDeviceLocale().includes("fr")?"fr":"en-gb",P.locale(s.currentLocale),s.isHomeRootView){var f=s.props.navigation.state.params.agentId;s.props.getWalletDetailActivated(f,!0),s.props.getHyperSuperTransactionHistoryReset()}else s.props.getWalletDetailActivated(s.props.navigation.state.params.wallet.id,!1),(0,v.isIlinkWorldWallet)(s.props.navigation.state.params.wallet.type)?s.props.getWalletTransactionHistory(s.props.navigation.state.params.wallet.id,!0):s.props.getWalletTransactionHistory(s.props.navigation.state.params.wallet.id,!1);return s}return(0,f.default)(l,t),(0,s.default)(l,[{key:"componentDidMount",value:function(){var t=this,l=this.props.result;if(null!==l&&void 0!==l.response){var o=l.response[0];(0,F.readUser)().then(function(o){if(null!==o&&void 0!==o&&void 0!==o.category){switch(o.category){case"super":t.props.getHyperSuperTransactionHistoryAction(l.response.id,!1);break;case"hyper":t.props.getHyperSuperTransactionHistoryAction(o.network_id,!0)}t.setState({})}}),this.setState({wallet:o,isTriggerRefresh:!1})}}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){return E.default.createElement(E.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),null!==this.props.result&&this.state.displaySuperHyperModalHistory&&this.renderModalSuperHyperHistoryDetail(this.props.result.response),E.default.createElement(x.StatusBar,{backgroundColor:A.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingTransferCommission?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?E.default.createElement(x.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(x.Text,{style:R.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):this.renderDetailWallet(this.props.result.response):null)}}]),l})(E.Component);z.navigatorStyle={navBarBackgroundColor:A.Color.primaryColor,statusBarColor:A.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},z.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:A.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WALLET')}};var G=(0,b.connect)(function(t){return{loading:t.walletDetailReducer.loading,result:t.walletDetailReducer.result,error:t.walletDetailReducer.error,loadingTransaction:t.walletHistoryReducer.loadingTransaction,resultTransaction:t.walletHistoryReducer.resultTransaction,errorTransaction:t.walletHistoryReducer.errorTransaction,loadingTransferCommission:t.walletTransferCommissionReducer.loadingTransferCommission,resultTransferCommission:t.walletTransferCommissionReducer.resultTransferCommission,errorTransferCommission:t.walletTransferCommissionReducer.errorTransferCommission,loadingHistoryHyperSuper:t.getHyperSuperHistoryReducer.loading,resultHistoryHyperSuper:t.getHyperSuperHistoryReducer.result,errorHistoryHyperSuper:t.getHyperSuperHistoryReducer.error}},function(t){return(0,_.bindActionCreators)({getWalletDetailActivated:M.getWalletDetailActivated,getWalletTransactionHistory:k.getWalletTransactionHistory,transferCommissionAction:B.transferCommissionAction,resetWalletListDetailReducer:M.resetWalletListDetailReducer,resetCommissionReducer:B.resetCommissionReducer,getWalletTransactionHistoryReset:k.getWalletTransactionHistoryReset,depositActionReset:L.depositActionReset,getHyperSuperTransactionHistoryAction:k.getHyperSuperTransactionHistoryAction,getHyperSuperTransactionHistoryReset:k.getHyperSuperTransactionHistoryReset},t)})(z);e.default=G;var q=x.StyleSheet.create({container:{flex:1,backgroundColor:A.Color.containerBackgroundColor},indicator:{height:2},tab:{width:H.getWidthDevice()/2},tabbar:{height:40},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,C.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',paddingTop:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',shadowColor:A.Color.borderColor,borderColor:A.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:A.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:H.scaleWithPixel(30),height:H.scaleWithPixel(30)},content:{height:H.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1675,[4,1,6,8,9,10,12,11,13,689,553,1030,1032,1033,1034,1035,1036,1037,1038,15,18,936,720,535,1676,878,876,1039,1056,1640,1026,1624,1015,1014,774,1643,1687,744,1607,1689,1690,719,1169,1645,815,1644,816,1691,1692,1693,1694]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TabBar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"TabView",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"TabBarIndicator",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"SceneMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ScrollPager",{enumerable:!0,get:function(){return o.default}});var n=t(r(d[1])),u=t(r(d[2])),f=t(r(d[3])),c=t(r(d[4])),o=t(r(d[5]))},1676,[1,1677,1682,1681,1685,1686]); __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])),u=n(r(d[4])),s=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),h=t(r(d[8])),b=r(d[9]),y=n(r(d[10])),p=n(r(d[11])),v=n(r(d[12])),w=n(r(d[13]));function S(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,l)}return o}function T(t){for(var n=1;n1){var o=n.map(function(t,n){return n});return b.default.interpolate(t,{inputRange:o,outputRange:o.map(function(t){return t===l?1:0})})}return 1})),w((0,s.default)(o),"getInactiveOpacity",(0,h.default)(function(t,n,l){if(n.length>1){var o=n.map(function(t,n){return n});return b.default.interpolate(t,{inputRange:o,outputRange:o.map(function(t){return t===l?0:1})})}return 0})),o}return(0,f.default)(n,t),(0,o.default)(n,[{key:"render",value:function(){var t=this.props,n=t.route,l=t.position,o=t.navigationState,u=t.renderLabel,c=t.renderIcon,s=t.renderBadge,f=t.getLabelText,h=t.getTestID,w=t.getAccessibilityLabel,E=t.getAccessible,O=t.activeColor,C=void 0===O?"rgba(255, 255, 255, 1)":O,L=t.inactiveColor,V=void 0===L?"rgba(255, 255, 255, 0.7)":L,I=t.pressColor,P=t.pressOpacity,x=t.labelStyle,T=t.style,A=t.onLayout,R=t.onPress,_=t.onLongPress,j=o.routes.indexOf(n),k=o.index===j,D=this.getActiveOpacity(l,o.routes,j),F=this.getInactiveOpacity(l,o.routes,j),B=null,H=null;if(c){var M=c({route:n,focused:!0,color:C}),q=c({route:n,focused:!1,color:V});null!=q&&null!=M&&(B=y.createElement(p.View,{style:S.icon},y.createElement(b.default.View,{style:{opacity:F}},q),y.createElement(b.default.View,{style:[p.StyleSheet.absoluteFill,{opacity:D}]},M)))}var z=void 0!==u?u:function(t){var n=t.route,l=t.color,o=f({route:n});return'string'==typeof o?y.createElement(b.default.Text,{style:[S.label,B?{marginTop:0}:null,{color:l},x]},o):o};if(z){var G=z({route:n,focused:!0,color:C}),J=z({route:n,focused:!1,color:V});H=y.createElement(p.View,null,y.createElement(b.default.View,{style:{opacity:F}},J),y.createElement(b.default.View,{style:[p.StyleSheet.absoluteFill,{opacity:D}]},G))}var K=p.StyleSheet.flatten(T),N=void 0!==(null===K||void 0===K?void 0:K.width)?null:{flex:1},Q={route:n},U=w(Q);U=void 0!==U?U:f(Q);var W=s?s(Q):null;return y.createElement(v.default,{borderless:!0,testID:h(Q),accessible:E(Q),accessibilityLabel:U,accessibilityTraits:k?['button','selected']:'button',accessibilityComponentType:"button",accessibilityRole:"tab",accessibilityStates:k?['selected']:[],pressColor:I,pressOpacity:P,delayPressIn:0,onLayout:A,onPress:R,onLongPress:_,style:N},y.createElement(p.View,{pointerEvents:"none",style:[S.item,K]},B,H,null!=W?y.createElement(p.View,{style:S.badge},W):null))}}]),n})(y.Component);e.default=E;var S=p.StyleSheet.create({label:{margin:4,backgroundColor:'transparent'},icon:{margin:2},item:{flex:1,alignItems:'center',justifyContent:'center',padding:10,minHeight:48},badge:{position:'absolute',top:0,right:0}})},1678,[4,1,8,9,10,12,11,13,15,18,1679,1525,1680]); @@ -1787,7 +1787,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.validateIdentificationResetAction=e.validateIdentificationAction=e.getUserIdentificationResetAction=e.getUserIdentificationAction=e.getNumberResetAction=e.getNumberDetailAction=e.createIndentificationResetAction=e.updateIndentificationAction=e.createIndentificationAction=void 0;var n=r(d[1]),o=r(d[2]),c=t(r(d[3])),f=t(r(d[4])),u=r(d[5]);e.createIndentificationAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchCreateIdentificationPending)()),(0,c.default)({url:""+n.createIdentificationUrl,method:'POST',headers:{Authorization:l,'X-Localization':f.default.currentLocale()},data:t}).then(function(t){console.log(t),o((0,u.fetchCreateIdentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchCreateIdentificationError)(t.response)):t.request?o((0,u.fetchCreateIdentificationError)(t.request)):o((0,u.fetchCreateIdentificationError)(t.message))})}};e.updateIndentificationAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchCreateIdentificationPending)()),(0,c.default)({url:""+n.createIdentificationUrl,method:'PUT',headers:{Authorization:l,'X-Localization':f.default.currentLocale()},data:t}).then(function(t){console.log(t),o((0,u.fetchCreateIdentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchCreateIdentificationError)(t.response)):t.request?o((0,u.fetchCreateIdentificationError)(t.request)):o((0,u.fetchCreateIdentificationError)(t.message))})}};e.createIndentificationResetAction=function(){return function(t){t((0,u.fetchCreateIdentificationReset)())}};e.getNumberDetailAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchGetNumberInformationPending)()),(0,c.default)({url:n.getNumberInformationUrl+"/"+t,method:'GET',headers:{Authorization:l,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchGetNumberInformationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchGetNumberInformationError)(t.response)):t.request?o((0,u.fetchGetNumberInformationError)(t.request)):o((0,u.fetchGetNumberInformationError)(t.message))})}};e.getNumberResetAction=function(){return function(t){t((0,u.fetchGetNumberInformationReset)())}};e.getUserIdentificationAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchUserIdentificationPending)()),(0,c.default)({url:n.getUserIdentifiedInformationUrl+"/"+t,method:'GET',headers:{Authorization:l,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchUserIdentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchUserIdentificationError)(t.response)):t.request?o((0,u.fetchUserIdentificationError)(t.request)):o((0,u.fetchUserIdentificationError)(t.message))})}};e.getUserIdentificationResetAction=function(){return function(t){t((0,u.fetchUserIdentificationReset)())}};e.validateIdentificationAction=function(t,s){var l=o.store.getState().authKeyReducer,h=null!==l?l.authKey.token_type+" "+l.authKey.access_token:'';return function(o){o((0,u.fetchValidateIndentificationPending)()),(0,c.default)({url:n.validateIdentificationUrl+"/"+s,method:'POST',data:t,headers:{Authorization:h,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchValidateIndentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchValidateIndentificationError)(t.response)):t.request?o((0,u.fetchValidateIndentificationError)(t.request)):o((0,u.fetchValidateIndentificationError)(t.message))})}};e.validateIdentificationResetAction=function(){return function(t){t((0,u.fetchValidateIndentificationReset)())}}},1781,[1,744,1099,1073,720,1782]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchValidateIndentificationReset=e.fetchValidateIndentificationError=e.fetchValidateIndentificationSuccess=e.fetchValidateIndentificationPending=e.fetchUserIdentificationReset=e.fetchUserIdentificationError=e.fetchUserIdentificationSuccess=e.fetchUserIdentificationPending=e.fetchGetNumberInformationReset=e.fetchGetNumberInformationError=e.fetchGetNumberInformationSuccess=e.fetchGetNumberInformationPending=e.fetchCreateIdentificationReset=e.fetchCreateIdentificationError=e.fetchCreateIdentificationSuccess=e.fetchCreateIdentificationPending=void 0;var t=r(d[0]);e.fetchCreateIdentificationPending=function(){return{type:t.CREATE_IDENTIFICATION_PENDING}};e.fetchCreateIdentificationSuccess=function(n){return{type:t.CREATE_IDENTIFICATION_SUCCESS,result:n}};e.fetchCreateIdentificationError=function(n){return{type:t.CREATE_IDENTIFICATION_ERROR,result:n}};e.fetchCreateIdentificationReset=function(){return{type:t.CREATE_IDENTIFICATION_RESET}};e.fetchGetNumberInformationPending=function(){return{type:t.GET_NUMBER_DETAIL_PENDING}};e.fetchGetNumberInformationSuccess=function(n){return{type:t.GET_NUMBER_DETAIL_SUCCESS,result:n}};e.fetchGetNumberInformationError=function(n){return{type:t.GET_NUMBER_DETAIL_ERROR,result:n}};e.fetchGetNumberInformationReset=function(){return{type:t.GET_NUMBER_DETAIL_RESET}};e.fetchUserIdentificationPending=function(){return{type:t.GET_USER_IDENTIFICATION_PENDING}};e.fetchUserIdentificationSuccess=function(n){return{type:t.GET_USER_IDENTIFICATION_SUCCESS,result:n}};e.fetchUserIdentificationError=function(n){return{type:t.GET_USER_IDENTIFICATION_ERROR,result:n}};e.fetchUserIdentificationReset=function(){return{type:t.GET_USER_IDENTIFICATION_RESET}};e.fetchValidateIndentificationPending=function(){return{type:t.VALIDATE_IDENTIFICATION_PENDING}};e.fetchValidateIndentificationSuccess=function(n){return{type:t.VALIDATE_IDENTIFICATION_SUCCESS,result:n}};e.fetchValidateIndentificationError=function(n){return{type:t.VALIDATE_IDENTIFICATION_ERROR,result:n}};e.fetchValidateIndentificationReset=function(){return{type:t.VALIDATE_IDENTIFICATION_RESET}}},1782,[1141]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),u=l(r(d[6])),f=l(r(d[7])),y=t(r(d[8])),p=r(d[9]),T=l(r(d[10])),h=l(r(d[11])),E=(r(d[12]),t(r(d[13]))),C=l(r(d[14])),w=(r(d[15]),l(r(d[16])),r(d[17])),x=l(r(d[18])),I=l(r(d[19])),b=r(d[20]),V=(r(d[21]),r(d[22])),D=r(d[23]),A=r(d[24]),R=r(d[25]),O=r(d[26]),v=r(d[27]),S=r(d[28]),L=l(r(d[29])),_=l(r(d[30])),N=r(d[31]);r(d[32]),r(d[33]),r(d[34]),r(d[35]),r(d[36]),r(d[37]),r(d[38]),r(d[39]);var B=r(d[40]),W=r(d[41]),k=r(d[42]),H=l(r(d[43])),U=r(d[44]),F=r(d[45]),P=r(d[46]),Y=r(d[47]),j=r(d[48]);r(d[49]);var M=(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,s.default)(this,(0,c.default)(l).call(this,t))).getWalletIcon=function(t){return N.baseUrl+"/datas/img/network/"+j(t.network,{lower:!0})+"-logo.png"},o.getCreationDateToHumanFormat=function(t){var l=F.tz(t,'Etc/GMT+0').format();return F(l).fromNow()},o.handleIndexChange=function(t){return o.setState({index:t})},o.imageScale=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[1,.5],extrapolate:'clamp'})},o.imageTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[-5,50],extrapolate:'clamp'})},o.bgHeaderTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,150],outputRange:[-5,0],extrapolate:'clamp'})},o.refresh=function(){var t=o.props.navigation.state.params.userId;o.props.getWalletDetailActivated(t,null)},o.renderHeader=function(t){return y.default.createElement(p.View,{style:[G.containField,{backgroundColor:w.Color.cardBackgroundColor,zIndex:11,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:[G.contentLeftItem]},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.caption2,V.Typography.semibold]},h.default.t('COUNTRY')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},t.country)),y.default.createElement(p.View,{style:{flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Animated.Image,{source:{uri:o.getWalletIcon(t)},style:{width:120,height:120,borderRadius:60,position:'absolute',alignSelf:'center',backgroundColor:w.Color.whiteColor,bottom:70,transform:[{scale:o.imageScale()},{translateY:o.imageTranslateY()}]}}),y.default.createElement(p.View,{style:{marginTop:1,flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold],numberOfLines:1},t.network),y.default.createElement(p.View,{style:{flexDirection:'row'}},y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"link",size:20,color:w.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:w.Color.whiteColor},primary:!0,onPress:function(){o.props.navigation.push(Y.linkCard)}},"\xa0",h.default.t('LINK_CARD')),y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"update",size:20,color:w.Color.whiteColor}),primary:!0,style:{width:110,borderTopLeftRadius:0,borderBottomLeftRadius:0}},"\xa0\xa0",h.default.t('HISTORY'))))),y.default.createElement(p.View,{style:G.contentLeftItem},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.caption2,V.Typography.semibold]},h.default.t('CREATION_DATE')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},F(t.created_date).format('DD/MM/YYYY'))))},o.renderLoader=function(){return y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,h.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,h.default.t('LOADING_DOTS'))))},o.renderAccountDetail=function(t){return y.default.createElement(p.View,{style:{flexDirection:'row',flex:1,justifyContent:'space-between'}},y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-wallet",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},h.default.t('PRINCIPAL_ACCOUNT_TITLE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},P(t.balance,' ')+" "+t.currency_code))),y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-key",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},h.default.t('NUMERO_COMPTE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},t.user_code))))},o.renderDetailWallet=function(t){return(0,k.isEmptyObject)(t)?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):y.default.createElement(y.default.Fragment,null,o.state.triggerTransferCommission&&o.renderDialogTransferCommissionResponse(),y.default.createElement(p.View,{style:G.container},y.default.createElement(p.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:w.Color.primaryColor,height:140-o.state.scrollHeaderY}}),y.default.createElement(p.ScrollView,{ref:function(t){return o._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:p.Animated.event([{nativeEvent:{contentOffset:{y:o.scrollY}}}],{listener:function(t){o.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},y.default.createElement(p.View,{style:{marginTop:80}},o.renderHeader(t),y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},o.renderAccountDetail(t),y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},h.default.t('TRANSACTIONS'))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(Y.walletOptionSelect,{optionSelect:k.optionDepotUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!1}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-bottom-right",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('ENVOIE_ARGENT')))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(Y.walletOptionSelect,{optionSelect:k.optionRetraitUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-top-left",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('RETRAIT_ARGENT'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(Y.walletOptionSelect,{optionSelect:k.optionNanoCreditScreen,wallet:t,lottie:{source:r(d[51]),loop:!0},isNanoCredit:!0})},activeOpacity:.9},y.default.createElement(T.default,{name:"cash-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:{paddingTop:20}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('NANO_CREDIT'))))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){},activeOpacity:.9},y.default.createElement(T.default,{name:"heart-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:{paddingTop:20}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('NANO_SANTE'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(Y.walletOptionSelect,{optionSelect:k.optionPaiementFacture,onGoBack:function(){return o.refresh()},lottie:{source:r(d[52]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"file-document",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('PAIEMENT_FACTURE'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(Y.walletOptionSelect,{optionSelect:k.optionIdentificationUserScreen,lottie:{source:r(d[53]),loop:!0},isIdentified:o.props.resultUserIdentification.response.isIdentified})},activeOpacity:.9},y.default.createElement(T.default,{name:"pencil-plus",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:{paddingTop:20}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},h.default.t('CREATION_IDENTIFICATION_CLIENT'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))))),o.renderHistoryTransaction(t))))))},o.renderModalHistoryDetail=function(){o.state.historyItemDetail;return y.default.createElement(L.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},y.default.createElement(L.default.Title,null,"D\xe9tail de l'historique"),y.default.createElement(p.View,null,y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},h.default.t('OPERATION'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.operation))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},h.default.t('TRANSACTION_ID'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.id_transaction))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},"Date")),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.date))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('INIT_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.init_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('FEES_AND_TAXES'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.frais))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_init))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('EMETTEUR'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.emetteur))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('DESTINATAIRE'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.destinataire))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('FINAL_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.final_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_final))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},h.default.t('ACTIVE_WALLET'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.reseau_payeur))))),y.default.createElement(L.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){o.setState({displayModalHistory:!o.state.displayModalHistory})}}))},o.renderHistoryTransactionItem=function(t,l,n){return y.default.createElement(p.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},Object.keys((0,x.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,n){return y.default.createElement(p.View,{style:{alignItems:'center'},key:n},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},(0,_.default)(l,'montant')?""+P(t[l],' '):(0,_.default)(l,'destinataire')?t[l].length>13?(0,k.cutString)(t[l],13):t[l]:(0,_.default)(l,'date')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderHistoryTransactionList=function(t){var l=o.props,n=l.resultTransaction,s=l.errorTransaction;return null!==s?void 0!==s.data?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s.data.error)):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s)):null!==n&&null!==n.response?Array.isArray(n.response)&&n.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return y.default.createElement(p.View,{style:{alignItems:'center'},key:l},y.default.createElement(T.default,{name:t.icon,size:24,color:w.Color.primaryColor}),y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},t.label))})),n.response.map(function(l,n){return o.renderHistoryTransactionItem(l,n,t)})):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},y.default.createElement(p.Text,{style:V.Typography.body1},h.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransaction=function(t){return y.default.createElement(y.default.Fragment,null,o.props.loadingTransaction?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,h.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,h.default.t('LOADING_DOTS')))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),o.renderHistoryTransactionList(t)))},o.state={index:0,heightHeader:E.heightHeader(),isModalConfirmVisible:!1,wallet:null,triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,user:null,displayModalHistory:!1,historyItemDetail:null,isIdentified:!1,isIdentifiedValidated:!1},j.extend({'+':'plus'}),o.scrollY=new p.Animated.Value(0),o.scrollHeaderY=new p.Animated.Value(0),o.deltaY=new p.Animated.Value(0),o.bgBannerY=new p.Animated.Value(0),o.heightImageBanner=E.scaleWithPixel(250,1),o.marginTopBanner=o.heightImageBanner-o.state.heightHeader-40,o.currentLocale=H.default.getDeviceLocale().includes("fr")?"fr":"en-gb",F.locale(o.currentLocale),b.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),b.IlinkEmitter.on("refreshWallet",o.refresh),o.props.getWalletTransactionHistoryReset(),o.props.depositActionReset(),o.props.resetWalletListDetailReducer(),o.props.getWalletDetailActivated(o.props.navigation.state.params.userId,null),o.props.getUserIdentificationResetAction(),(0,U.readUser)().then(function(t){t&&void 0!==t&&(o.setState({user:t}),o.props.getUserIdentificationAction(t.phone),o.props.getWalletTransactionHistoryUser(t.id))}),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,n=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var o=l.response[0];console.log("WALLET RECUPERER",o),this.setState({wallet:o,isTriggerRefresh:!1})}null!==n&&(console.log("RESULT NUMBER DETAIL",n),void 0!==n.response&&this.setState({isIdentified:n.response.isIdentified,isIdentifiedValidated:n.response.isIdentifiedValidated}))}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){return y.default.createElement(y.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),y.default.createElement(p.StatusBar,{backgroundColor:w.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingUserIdentification?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):this.renderDetailWallet(this.props.result.response):null)}}]),l})(y.Component);M.navigatorStyle={navBarBackgroundColor:w.Color.primaryColor,statusBarColor:w.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},M.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:w.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WALLET')}};var z=(0,B.connect)(function(t){return{loading:t.walletDetailReducer.loading,result:t.walletDetailReducer.result,error:t.walletDetailReducer.error,loadingTransaction:t.walletHistoryReducer.loadingTransaction,resultTransaction:t.walletHistoryReducer.resultTransaction,errorTransaction:t.walletHistoryReducer.errorTransaction,loadingUserIdentification:t.getUserIdentificationReducer.loading,resultUserIdentification:t.getUserIdentificationReducer.result,errorUserIdentification:t.getUserIdentificationReducer.error}},function(t){return(0,W.bindActionCreators)({getWalletDetailActivated:A.getWalletDetailActivated,getWalletTransactionHistoryUser:O.getWalletTransactionHistoryUser,transferCommissionAction:S.transferCommissionAction,resetWalletListDetailReducer:A.resetWalletListDetailReducer,resetCommissionReducer:S.resetCommissionReducer,getWalletTransactionHistoryReset:O.getWalletTransactionHistoryReset,depositActionReset:R.depositActionReset,getUserIdentificationAction:v.getUserIdentificationAction,getUserIdentificationResetAction:v.getUserIdentificationResetAction},t)})(M);e.default=z;var G=p.StyleSheet.create({container:{flex:1,backgroundColor:w.Color.containerBackgroundColor},indicator:{height:2},tab:{width:E.getWidthDevice()/2},tabbar:{height:40},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,D.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',flex:1,paddingTop:10,paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:w.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:E.scaleWithPixel(30),height:E.scaleWithPixel(30)},content:{height:E.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1783,[4,1,8,9,10,12,11,13,15,18,876,720,1676,1014,878,1696,1766,1026,553,1640,774,1701,1015,535,1607,1687,1689,1781,1690,1624,689,744,1038,1037,1030,1032,1034,1035,1036,1033,1039,1056,1643,936,719,1169,1645,815,1644,816,1691,1692,1693,1694]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=l(r(d[2])),n=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),y=l(r(d[6])),u=l(r(d[7])),f=l(r(d[8])),p=t(r(d[9])),E=r(d[10]),T=r(d[11]),w=l(r(d[12])),x=l(r(d[13])),h=l(r(d[14])),C=l(r(d[15])),b=l(r(d[16])),V=t(r(d[17])),I=(r(d[18]),r(d[19])),D=(r(d[20]),r(d[21])),_=r(d[22]),A=r(d[23]),N=r(d[24]),O=l(r(d[25])),v=l(r(d[26])),R=r(d[27]),S=l(r(d[28])),k=r(d[29]),U=l(r(d[30])),H=l(r(d[31])),B=l(r(d[32])),P=l(r(d[33])),L=r(d[34]),M=r(d[35]),j=r(d[36]);function W(t,l){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function F(t){for(var l=1;l0?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[q.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,k.transactionHistoryNanoCreditLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(w.default,{name:t.icon,size:24,color:I.Color.primaryColor}),p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},t.label))})),l.response.map(function(t,l){return o.renderHistoryTransactionItem(t,l)})):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(E.Text,{style:R.Typography.body1},x.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransactionItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[q.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,C.default)(o.state.user.category)?(0,A.readUser)().then(function(l){void 0!==l&&void 0===l.category&&Object.keys((0,b.default)(t,['id','type','id_epargne','date_demande','id_demande','duree_mois','taxe','','date_fin','date_cassation','etat','id_user','id_network','user','partiellement_rembourse','user_phone','type_caution','interet','date_remboursement_prevu','date_remboursement','id_wallet_agent','retrait_cash','codeParrain','agent','montant_rembourse',''])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},(0,h.default)(l,'montant')?" "+(0,H.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):(0,h.default)(l,'type_historique')?(0,k.displayTransactionType)(t[l]):t[l]))})}):Object.keys((0,b.default)(t,['id','retrait_cash','id_demande','montant_rembourse','partiellement_rembourse','duree_mois','etat','interet','taxe','date_validation','date_remboursement_prevu','date_remboursement','id_user','id_wallet_agent','id_network','user','user_phone','agent','codeParrain'])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},(0,h.default)(l,'montant')?" "+(0,H.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):(0,h.default)(l,'type_historique')?(0,k.displayTransactionType)(t[l]):t[l]))}))},o.renderModalHistoryDetail=function(){var t=o.state.historyItemDetail;return p.default.createElement(P.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},p.default.createElement(P.default.Title,null,"D\xe9tail de l'historique"),(0,C.default)(o.state.user.category)?(0,h.default)(t.type_historique,'N')?p.default.createElement(E.ScrollView,{persistentScrollbar:!0},p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_PARTIALLY_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.partiellement_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('WITHDRAWAL_IN_CASH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.retrait_cash+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DEMAND_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT_PREVU'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement_prevu))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement))))):p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.type))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('FINAL_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_fin))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('CASSATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_cassation)))):p.default.createElement(E.ScrollView,{persistentScrollbar:!0},p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_PARTIALLY_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.partiellement_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('WITHDRAWAL_IN_CASH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},1==o.state.historyItemDetail.retrait_cash?x.default.t('YES'):x.default.t('NO')))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('VALIDATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_validation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT_PREVU'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement_prevu))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement))))),p.default.createElement(P.default.Button,{bold:!0,label:x.default.t('OK'),onPress:function(){o.setState({displayModalHistory:!o.state.displayModalHistory})}}))},o.renderHistory=function(){return p.default.createElement(E.View,{style:{backgroundColor:I.Color.containerBackgroundColor,flex:1}},p.default.createElement(E.View,{style:[q.checkDefault,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.Text,{style:[R.Typography.title3,R.Typography.semibold]},x.default.t('TRANSACTION_HISTORY'))),o.props.loadingHistory?p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===E.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ProgressBarAndroid,null),p.default.createElement(E.Text,null,x.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(E.Text,null,x.default.t('LOADING_DOTS')))):!(0,C.default)(o.state.user)&&o.renderHistoryTransactionList())},D.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),o.state={options:o.props.navigation.state.params.optionSelect.options,title:o.props.navigation.state.params.optionSelect.title,subTitle:o.props.navigation.state.params.optionSelect.subTitle,type:o.props.navigation.state.params.optionSelect.type,wallet:o.props.navigation.state.params.wallet,lottie:o.props.navigation.state.params.lottie,onGoBack:o.props.navigation.state.params.onGoBack,isIdentified:o.props.navigation.state.params.isIdentified||null,isNanoCredit:o.props.navigation.state.params.hasOwnProperty('isNanoCredit'),user:null,displayModalHistory:!1,historyItemDetail:null,isDataHasLoaded:!1},console.log("WALLET OPTION PROPS",o.props),D.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),o.props.getNanoCreditAccountReset(),o.props.getNanoCreditUserHistoryReset(),(0,A.readUser)().then(function(t){t&&void 0!==t&&(void 0===t.category?(o.props.getNanoCreditAccountAction(t.id),o.props.getNanoCreditUserHistoryAction(t.id,!0)):'geolocated'===t.category&&o.props.getNanoCreditUserHistoryAction(o.state.wallet.id,!1),o.setState({user:t}))}),o.willFocus=o.props.navigation.addListener('willFocus',function(t){console.log("WIIL FOCUS CALL"),(0,A.readUser)().then(function(t){t&&void 0!==t&&(void 0===t.category?(o.props.getNanoCreditAccountAction(t.id),o.props.getNanoCreditUserHistoryAction(t.id,!0)):'geolocated'===t.category&&o.props.getNanoCreditUserHistoryAction(o.state.wallet.id,!1))})}),o}return(0,f.default)(l,t),(0,s.default)(l,[{key:"renderResultGetNanoCreditAccount",value:function(){var t=this.props.result;console.log("BEFORE",this.props),null!==t&&null!==t.response&&(this.setState({user:F({},this.state.user,{balance_credit:t.response.balance_credit,balance_epargne:t.response.balance_epargne}),isDataHasLoaded:!0}),console.log("AFTER",this.props))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:x.default.t('WALLET')}),this.forceUpdate()}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:x.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return!this.state.isDataHasLoaded&&this.renderResultGetNanoCreditAccount(),p.default.createElement(_.Provider,null,p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.StatusBar,{backgroundColor:I.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),p.default.createElement(_.Appbar.Header,{dark:!0,style:{backgroundColor:I.Color.primaryColor}},p.default.createElement(_.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),p.default.createElement(_.Appbar.Content,{title:this.state.title,subtitle:this.state.subTitle})),p.default.createElement(E.ScrollView,{style:q.container,ref:function(l){return t._scrollView=l}},this.state.displayModalHistory&&this.renderModalHistoryDetail(),p.default.createElement(E.View,null,this.state.isNanoCredit?this.renderAccountDetail():p.default.createElement(E.View,{style:{justifyContent:'center',alignItems:'center'}},p.default.createElement(S.default,{style:q.lottie,source:this.state.lottie.source,autoPlay:!0,loop:this.state.lottie.loop}))),p.default.createElement(E.View,{style:[q.checkDefault,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.Text,{style:[R.Typography.title3,R.Typography.semibold]},x.default.t('OPERATIONS'))),(0,U.default)(this.state.options,2).map(function(l,o){return p.default.createElement(E.View,{key:o,style:q.transactionContainer},1===l.length?l.map(function(l,o){return t.renderItem(l,!0,o)}):l.map(function(l,o){return t.renderItem(l,!1,o)}))}),(0,h.default)(this.props.navigation.state.params.optionSelect.type,'NANO_CREDIT')?this.renderHistory():p.default.createElement(E.View,{style:{flex:1}}))))}}]),l})(p.Component);G.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:x.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(w.default,{name:'credit-card',size:24})}}};var z=(0,L.connect)(function(t){return{loading:t.getNanoCreditAccountUserReducer.loading,result:t.getNanoCreditAccountUserReducer.result,error:t.getNanoCreditAccountUserReducer.error,loadingHistory:t.getNanoCreditHistoryUserReducer.loading,resultHistory:t.getNanoCreditHistoryUserReducer.result,errorHistory:t.getNanoCreditHistoryUserReducer.error}},function(t){return(0,M.bindActionCreators)({getNanoCreditAccountAction:N.getNanoCreditAccountAction,getNanoCreditAccountReset:N.getNanoCreditAccountReset,getNanoCreditUserHistoryAction:N.getNanoCreditUserHistoryAction,getNanoCreditUserHistoryReset:N.getNanoCreditUserHistoryReset},t)})((0,T.connectActionSheet)(G));e.default=z;var q=E.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.containerBackgroundColor,paddingHorizontal:20},item:{paddingVertical:15,borderBottomWidth:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},lottie:{width:540,height:240},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},transactionContainer:{flexDirection:'row',paddingTop:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',shadowColor:I.Color.borderColor,borderColor:I.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:I.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:V.scaleWithPixel(30),height:V.scaleWithPixel(30)},content:{height:V.scaleWithPixel(65),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,j.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10}})},1784,[4,1,7,8,9,10,12,11,13,15,18,405,876,720,689,1773,553,1014,1696,1026,744,774,1179,719,1785,530,878,1015,840,1643,1786,1645,1640,1624,1039,1056,535,815,1644]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=l(r(d[2])),n=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),y=l(r(d[6])),u=l(r(d[7])),f=l(r(d[8])),p=t(r(d[9])),E=r(d[10]),T=r(d[11]),w=l(r(d[12])),x=l(r(d[13])),h=l(r(d[14])),C=l(r(d[15])),b=l(r(d[16])),V=t(r(d[17])),I=(r(d[18]),r(d[19])),D=(r(d[20]),r(d[21])),_=r(d[22]),A=r(d[23]),N=r(d[24]),O=l(r(d[25])),v=l(r(d[26])),R=r(d[27]),S=l(r(d[28])),k=r(d[29]),U=l(r(d[30])),H=l(r(d[31])),B=l(r(d[32])),P=l(r(d[33])),L=r(d[34]),M=r(d[35]),j=r(d[36]);function W(t,l){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function F(t){for(var l=1;l0?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[q.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(w.default,{name:t.icon,size:24,color:I.Color.primaryColor}),p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},t.label))})),l.response.map(function(t,l){return o.renderHistoryTransactionItem(t,l)})):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(E.Text,{style:R.Typography.body1},x.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransactionItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[q.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,C.default)(o.state.user.category)?(0,A.readUser)().then(function(l){void 0!==l&&void 0===l.category&&Object.keys((0,b.default)(t,['id','type','id_epargne','date_demande','id_demande','duree_mois','taxe','','date_fin','date_cassation','etat','id_user','id_network','user','partiellement_rembourse','user_phone','type_caution','interet','date_remboursement_prevu','date_remboursement','id_wallet_agent','retrait_cash','codeParrain','agent','montant_rembourse',''])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},(0,h.default)(l,'montant')?" "+(0,H.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):(0,h.default)(l,'type_historique')?(0,k.displayTransactionType)(t[l]):t[l]))})}):Object.keys((0,b.default)(t,['id','retrait_cash','type_historique','type_caution','id_demande','montant_rembourse','partiellement_rembourse','duree_mois','etat','interet','taxe','date_validation','date_remboursement_prevu','date_remboursement','id_user','id_wallet_agent','id_network','user','user_phone','agent','codeParrain'])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(R.Typography.overline,I.Color.grayColor,{marginTop:4})},(0,h.default)(l,'montant')?" "+(0,H.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderModalHistoryDetail=function(){var t=o.state.historyItemDetail;return p.default.createElement(P.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},p.default.createElement(P.default.Title,null,"D\xe9tail de l'historique"),(0,C.default)(o.state.user.category)?(0,h.default)(t.type_historique,'N')?p.default.createElement(E.ScrollView,{persistentScrollbar:!0},p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_PARTIALLY_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.partiellement_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('WITHDRAWAL_IN_CASH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.retrait_cash+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DEMAND_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT_PREVU'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement_prevu))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement))))):p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.type))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('FINAL_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_fin))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('CASSATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_cassation)))):p.default.createElement(E.ScrollView,{persistentScrollbar:!0},p.default.createElement(E.View,{style:[q.blockView,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},"Type")),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},(0,k.displayTransactionType)(o.state.historyItemDetail.type_historique)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('ID_DEMAND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.id_demande))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('STATUS'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.etat))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('DEMAND_DURATION_IN_MONTH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.duree_mois))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.montant_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('AMOUNT_PARTIALLY_REFUND'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.partiellement_rembourse+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('TAXES'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.taxe+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('INTERET'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.interet+' '+o.state.wallet.currency_code))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('WITHDRAWAL_IN_CASH'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},1==o.state.historyItemDetail.retrait_cash?x.default.t('YES'):x.default.t('NO')))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{style:[q.body2]},x.default.t('CREATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_creation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('VALIDATION_DATE'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_validation))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT_PREVU'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement_prevu))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.Text,{tyle:[R.Typography.body2]},x.default.t('DATE_REMBOURSEMENT'))),p.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(E.Text,{style:[R.Typography.caption1,I.Color.grayColor]},o.state.historyItemDetail.date_remboursement))))),p.default.createElement(P.default.Button,{bold:!0,label:x.default.t('OK'),onPress:function(){o.setState({displayModalHistory:!o.state.displayModalHistory})}}))},o.renderHistory=function(){return p.default.createElement(E.View,{style:{backgroundColor:I.Color.containerBackgroundColor,flex:1}},p.default.createElement(E.View,{style:[q.checkDefault,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.Text,{style:[R.Typography.title3,R.Typography.semibold]},x.default.t('TRANSACTION_HISTORY'))),o.props.loadingHistory?p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===E.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ProgressBarAndroid,null),p.default.createElement(E.Text,null,x.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(E.Text,null,x.default.t('LOADING_DOTS')))):!(0,C.default)(o.state.user)&&o.renderHistoryTransactionList())},D.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),o.state={options:o.props.navigation.state.params.optionSelect.options,title:o.props.navigation.state.params.optionSelect.title,subTitle:o.props.navigation.state.params.optionSelect.subTitle,type:o.props.navigation.state.params.optionSelect.type,wallet:o.props.navigation.state.params.wallet,lottie:o.props.navigation.state.params.lottie,onGoBack:o.props.navigation.state.params.onGoBack,isIdentified:o.props.navigation.state.params.isIdentified||null,isNanoCredit:o.props.navigation.state.params.hasOwnProperty('isNanoCredit'),user:null,displayModalHistory:!1,historyItemDetail:null,isDataHasLoaded:!1},console.log("WALLET OPTION PROPS",o.props),D.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),o.props.getNanoCreditAccountReset(),o.props.getNanoCreditUserHistoryReset(),(0,A.readUser)().then(function(t){t&&void 0!==t&&(void 0===t.category?(o.props.getNanoCreditAccountAction(t.id),o.props.getNanoCreditUserHistoryAction(t.id,!0)):'geolocated'===t.category&&o.props.getNanoCreditUserHistoryAction(o.state.wallet.id,!1),o.setState({user:t}))}),o.willFocus=o.props.navigation.addListener('willFocus',function(t){console.log("WIIL FOCUS CALL"),(0,A.readUser)().then(function(t){t&&void 0!==t&&(void 0===t.category?(o.props.getNanoCreditAccountAction(t.id),o.props.getNanoCreditUserHistoryAction(t.id,!0)):'geolocated'===t.category&&o.props.getNanoCreditUserHistoryAction(o.state.wallet.id,!1))})}),o}return(0,f.default)(l,t),(0,s.default)(l,[{key:"renderResultGetNanoCreditAccount",value:function(){var t=this.props.result;console.log("BEFORE",this.props),null!==t&&null!==t.response&&(this.setState({user:F({},this.state.user,{balance_credit:t.response.balance_credit,balance_epargne:t.response.balance_epargne}),isDataHasLoaded:!0}),console.log("AFTER",this.props))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:x.default.t('WALLET')}),this.forceUpdate()}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:x.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return!this.state.isDataHasLoaded&&this.renderResultGetNanoCreditAccount(),p.default.createElement(_.Provider,null,p.default.createElement(E.View,{style:{flex:1}},p.default.createElement(E.StatusBar,{backgroundColor:I.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),p.default.createElement(_.Appbar.Header,{dark:!0,style:{backgroundColor:I.Color.primaryColor}},p.default.createElement(_.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),p.default.createElement(_.Appbar.Content,{title:this.state.title,subtitle:this.state.subTitle})),p.default.createElement(E.ScrollView,{style:q.container,ref:function(l){return t._scrollView=l}},this.state.displayModalHistory&&this.renderModalHistoryDetail(),p.default.createElement(E.View,null,this.state.isNanoCredit?this.renderAccountDetail():p.default.createElement(E.View,{style:{justifyContent:'center',alignItems:'center'}},p.default.createElement(S.default,{style:q.lottie,source:this.state.lottie.source,autoPlay:!0,loop:this.state.lottie.loop}))),p.default.createElement(E.View,{style:[q.checkDefault,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.Text,{style:[R.Typography.title3,R.Typography.semibold]},x.default.t('OPERATIONS'))),(0,U.default)(this.state.options,2).map(function(l,o){return p.default.createElement(E.View,{key:o,style:q.transactionContainer},1===l.length?l.map(function(l,o){return t.renderItem(l,!0,o)}):l.map(function(l,o){return t.renderItem(l,!1,o)}))}),(0,h.default)(this.props.navigation.state.params.optionSelect.type,'NANO_CREDIT')?this.renderHistory():p.default.createElement(E.View,{style:{flex:1}}))))}}]),l})(p.Component);G.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:x.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(w.default,{name:'credit-card',size:24})}}};var z=(0,L.connect)(function(t){return{loading:t.getNanoCreditAccountUserReducer.loading,result:t.getNanoCreditAccountUserReducer.result,error:t.getNanoCreditAccountUserReducer.error,loadingHistory:t.getNanoCreditHistoryUserReducer.loading,resultHistory:t.getNanoCreditHistoryUserReducer.result,errorHistory:t.getNanoCreditHistoryUserReducer.error}},function(t){return(0,M.bindActionCreators)({getNanoCreditAccountAction:N.getNanoCreditAccountAction,getNanoCreditAccountReset:N.getNanoCreditAccountReset,getNanoCreditUserHistoryAction:N.getNanoCreditUserHistoryAction,getNanoCreditUserHistoryReset:N.getNanoCreditUserHistoryReset},t)})((0,T.connectActionSheet)(G));e.default=z;var q=E.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.containerBackgroundColor,paddingHorizontal:20},item:{paddingVertical:15,borderBottomWidth:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},lottie:{width:540,height:240},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},transactionContainer:{flexDirection:'row',paddingTop:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',shadowColor:I.Color.borderColor,borderColor:I.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:I.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:V.scaleWithPixel(30),height:V.scaleWithPixel(30)},content:{height:V.scaleWithPixel(65),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,j.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10}})},1784,[4,1,7,8,9,10,12,11,13,15,18,405,876,720,689,1773,553,1014,1696,1026,744,774,1179,719,1785,530,878,1015,840,1643,1786,1645,1640,1624,1039,1056,535,815,1644]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getNanoCreditUserHistoryReset=e.getNanoCreditUserHistoryAction=e.getNanoCreditAccountReset=e.getNanoCreditAccountAction=e.casserEpargneUserReset=e.casserEpargneUserAction=e.epargnerArgentUserReset=e.epargnerArgentUserAction=e.refundCreditDemandUserReset=e.refundCreditDemandUserAction=e.getUserGroupDetailReset=e.getUserGroupDetailAction=e.getNanoCreditUniqueDemandsReset=e.getNanoCreditUniqueDemandsAction=e.getNanoCreditDemandsReset=e.getNanoCreditDemandsAction=void 0;var n=t(r(d[1])),o=t(r(d[2])),s=r(d[3]),c=r(d[4]),u=r(d[5]);e.getNanoCreditDemandsAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetDemandsGroupPending)()),(0,n.default)({url:u.getCreditDemand+"/all/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetDemandsGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetDemandsGroupError)(t.response)):t.request?s((0,c.fetchGetDemandsGroupError)(t.request)):s((0,c.fetchGetDemandsGroupError)(t.message))})}};e.getNanoCreditDemandsReset=function(){return function(t){t((0,c.fetchGetDemandsGroupReset)())}};e.getNanoCreditUniqueDemandsAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f&&null!==f.authKey?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetUniqueDemandsGroupPending)()),(0,n.default)({url:u.getCreditDemand+"/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetUniqueDemandsGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetUniqueDemandsGroupError)(t.response)):t.request?s((0,c.fetchGetUniqueDemandsGroupError)(t.request)):s((0,c.fetchGetUniqueDemandsGroupError)(t.message))})}};e.getNanoCreditUniqueDemandsReset=function(){return function(t){t((0,c.fetchGetUniqueDemandsGroupReset)())}};e.getUserGroupDetailAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetUserGroupDetailPending)()),(0,n.default)({url:u.groupUrl+"/my/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetUserGroupDetailSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetUserGroupDetailError)(t.response)):t.request?s((0,c.fetchGetUserGroupDetailError)(t.request)):s((0,c.fetchGetUserGroupDetailError)(t.message))})}};e.getUserGroupDetailReset=function(){return function(t){t((0,c.fetchGetUserGroupDetailReset)())}};e.refundCreditDemandUserAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchCautionCreditDemandUserPending)()),(0,n.default)({url:u.refundCreditDemandUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchCautionCreditDemandUserSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchCautionCreditDemandUserError)(t.response)):t.request?s((0,c.fetchCautionCreditDemandUserError)(t.request)):s((0,c.fetchCautionCreditDemandUserError)(t.message))})}};e.refundCreditDemandUserReset=function(){return function(t){t((0,c.fetchCautionCreditDemandUserReset)())}};e.epargnerArgentUserAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchEpargnerArgentUserPending)()),(0,n.default)({url:u.epargnerArgentUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEpargnerArgentUserSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEpargnerArgentUserError)(t.response)):t.request?s((0,c.fetchEpargnerArgentUserError)(t.request)):s((0,c.fetchEpargnerArgentUserError)(t.message))})}};e.epargnerArgentUserReset=function(){return function(t){t((0,c.fetchEpargnerArgentUserReset)())}};e.casserEpargneUserAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchCasserEpargneUserPending)()),(0,n.default)({url:u.casserEpargneUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchCasserEpargneUserSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchCasserEpargneUserError)(t.response)):t.request?s((0,c.fetchCasserEpargneUserError)(t.request)):s((0,c.fetchCasserEpargneUserError)(t.message))})}};e.casserEpargneUserReset=function(){return function(t){t((0,c.fetchCasserEpargneUserReset)())}};e.getNanoCreditAccountAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetNanoCreditUserAccountPending)()),(0,n.default)({url:u.getNanoCreditAccount+"/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetNanoCreditUserAccountSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetNanoCreditUserAccountError)(t.response)):t.request?s((0,c.fetchGetNanoCreditUserAccountError)(t.request)):s((0,c.fetchGetNanoCreditUserAccountError)(t.message))})}};e.getNanoCreditAccountReset=function(){return function(t){t((0,c.fetchGetNanoCreditUserAccountReset)())}};e.getNanoCreditUserHistoryAction=function(t,f){var h=s.store.getState().authKeyReducer,l=null!==h?h.authKey.token_type+" "+h.authKey.access_token:'';return function(s){s((0,c.fetchGetNanoCreditUserHistoryPending)()),(0,n.default)({url:(f?u.getNanoCreditUserHistoryUrl:u.getNanoCreditAgentHistoryUrl)+"/"+t,method:'GET',headers:{Authorization:l,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetNanoCreditUserHistorySuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetNanoCreditUserHistoryError)(t.response)):t.request?s((0,c.fetchGetNanoCreditUserHistoryError)(t.request)):s((0,c.fetchGetNanoCreditUserHistoryError)(t.message))})}};e.getNanoCreditUserHistoryReset=function(){return function(t){t((0,c.fetchGetNanoCreditUserHistoryReset)())}}},1785,[1,1073,720,1099,1168,744]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=Math.ceil,f=Math.max;m.exports=function(l,v,c){v=(c?t(l,v,c):void 0===v)?1:f(o(v),0);var h=null==l?0:l.length;if(!h||v<1)return[];for(var x=0,M=0,_=Array(u(h/v));x { return { drawerLabel: () => null, - title: "Transaction N°" + navigation.getParam("item", { id: "-" }).id + title: isNil(navigation.getParam("item", null).item) ? + "Transaction N°" + navigation.getParam("item", { id: "-" }).id : + "Transaction N°" + navigation.getParam("item", { id: "-" }).item.id } }; constructor(props) { super(props); this.item = this.props.navigation.getParam("item", null); + if(isNil(this.props.navigation.getParam("item", null).item)) { + this.item = this.props.navigation.getParam("item", null); + } else { + this.item = this.props.navigation.getParam("item", null).item; + } + console.log('HISTORY ITEM PROPS', this.props); let sta = '' if (this.item.status === '1') { typesta = 1 @@ -261,7 +270,8 @@ class HistoryItemDetails extends Component { if (resultTreatDemand.status === 200) { this.displayToast(resultTreatDemand.response); this.props.navigation.goBack(); - this.props.navigation.state.params.onGoBack(); + if(!isNil(this.props.navigation.state.params.onGoBack)) + this.props.navigation.state.params.onGoBack(); this.props.creditCancelResetReducer(); this.props.creditDemandResetReducer(); } @@ -273,7 +283,8 @@ class HistoryItemDetails extends Component { this.displayToast(resultCancelDemand.response); this.props.navigation.goBack(); - this.props.navigation.state.params.onGoBack(); + if(!isNil(this.props.navigation.state.params.onGoBack)) + this.props.navigation.state.params.onGoBack(); this.props.creditCancelResetReducer(); this.props.creditDemandResetReducer(); diff --git a/screens/home/Home.js b/screens/home/Home.js index 83c07cd3..7d2e9397 100644 --- a/screens/home/Home.js +++ b/screens/home/Home.js @@ -189,7 +189,6 @@ class Home extends BaseScreen { console.log("ONESIGNAL", global.onesignalIds); if (user !== undefined) { if (user.category !== undefined) { - if (user.category === "geolocated") { this.saveOneSignal(false, { code_membre: user.code_membre, player_id: global.onesignalIds, @@ -201,7 +200,6 @@ class Home extends BaseScreen { player_id: onesignalIds, set_default: false }); */ - } } else { this.saveOneSignal(true, { user_code: user.user_code, @@ -1572,7 +1570,7 @@ class Home extends BaseScreen { translucent={true} /> {/* Start here to comment */} - { + {/* { (this.state.loadingDialog || this.props.loading) ? { } }]) }} - /> + /> */} {this.makeCardSearch()} {this.makeSlidingUp()} {this.makeDialogLoader()} diff --git a/screens/identification/CreateIdentificationUser.js b/screens/identification/CreateIdentificationUser.js index 29fbf0fa..8ae33834 100644 --- a/screens/identification/CreateIdentificationUser.js +++ b/screens/identification/CreateIdentificationUser.js @@ -24,7 +24,7 @@ import Geolocation from 'react-native-geolocation-service'; import { identityPieces } from '../../utils/UtilsFunction'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { createIndentificationAction, createIndentificationResetAction } from '../../webservice/IdentificationApi'; +import { createIndentificationAction, createIndentificationResetAction, getUserIdentificationAction } from '../../webservice/IdentificationApi'; const GEOLOCATION_OPTIONS = { enableHighAccuracy: true, timeout: 20000, maximumAge: 1000, useSignificantChanges: true }; const moment = require('moment'); @@ -121,6 +121,7 @@ class CreateIdentificationUser extends Component { { text: I18n.t("OK"), onPress: () => { this.props.createIndentificationResetAction(); + this.props.getUserIdentificationAction(this.state.user.phone); this.setState({ triggerSubmitClick: false }); this.props.navigation.pop(); } @@ -580,7 +581,8 @@ const maptStateToProps = state => ({ const mapDispatchToProps = dispatch => bindActionCreators({ createIndentificationAction, - createIndentificationResetAction + createIndentificationResetAction, + getUserIdentificationAction }, dispatch); export default connect(maptStateToProps, mapDispatchToProps)(CreateIdentificationUser); diff --git a/screens/identification/createIdentification.js b/screens/identification/createIdentification.js index e213a0e5..c7a4ebd8 100644 --- a/screens/identification/createIdentification.js +++ b/screens/identification/createIdentification.js @@ -24,7 +24,7 @@ import Geolocation from 'react-native-geolocation-service'; import { identityPieces } from '../../utils/UtilsFunction'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { createIndentificationAction, createIndentificationResetAction, getNumberResetAction, getNumberDetailAction } from '../../webservice/IdentificationApi'; +import { createIndentificationAction, createIndentificationResetAction, getNumberResetAction, getNumberDetailAction, getUserIdentificationAction } from '../../webservice/IdentificationApi'; const GEOLOCATION_OPTIONS = { enableHighAccuracy: true, timeout: 20000, maximumAge: 1000, useSignificantChanges: true }; const moment = require('moment'); @@ -126,6 +126,7 @@ class CreateIdentification extends Component { { text: I18n.t("OK"), onPress: () => { this.props.createIndentificationResetAction(); + this.props.getUserIdentificationAction(this.state.user.phone); this.setState({ triggerSubmitClick: false }); this.props.navigation.pop(); } @@ -704,7 +705,8 @@ const mapDispatchToProps = dispatch => bindActionCreators({ createIndentificationAction, createIndentificationResetAction, getNumberDetailAction, - getNumberResetAction + getNumberResetAction, + getUserIdentificationAction }, dispatch); export default connect(maptStateToProps, mapDispatchToProps)(CreateIdentification); diff --git a/screens/notifications/Notifications.js b/screens/notifications/Notifications.js index 66fc993c..166c645d 100644 --- a/screens/notifications/Notifications.js +++ b/screens/notifications/Notifications.js @@ -107,9 +107,22 @@ class Notifications extends BaseScreen { this.props.navigation.navigate(item.data.screen, { - id: item.data.data.id - })}> + onPress={() => { + switch (item.data.screen) { + case 'historyItemDetails': + this.props.navigation.navigate(item.data.screen, { + item: item.data.data + }); + break; + + default: + this.props.navigation.navigate(item.data.screen, { + id: item.data.data.id + }); + break; + } + + }}> {/* diff --git a/screens/splashscreen/SplashScreen.js b/screens/splashscreen/SplashScreen.js index 96117e0d..0495ebc1 100644 --- a/screens/splashscreen/SplashScreen.js +++ b/screens/splashscreen/SplashScreen.js @@ -54,9 +54,24 @@ export default class SplashScreen extends Component { workUserResult(result) { console.log("SPLASHSCREEN PROPS", this.props); if (typeof this.props.navigation.state.params !== 'undefined') { - this.props.navigation.navigate(this.props.navigation.state.params.routeName, { - id: this.props.navigation.state.params.params.id - }); + if (result === null || result === undefined) { + this.props.navigation.navigate("Auth"); + } else { + switch (this.props.navigation.state.params.routeName) { + case 'historyItemDetails': + this.props.navigation.navigate(this.props.navigation.state.params.routeName, { + item: this.props.navigation.state.params.params + }); + break; + + default: + this.props.navigation.navigate(this.props.navigation.state.params.routeName, { + id: this.props.navigation.state.params.params.id + }); + break; + } + } + } else { var way = ""; var way2 = ""; diff --git a/screens/wallet/WalletDetail.js b/screens/wallet/WalletDetail.js index 48abd43d..e471897a 100644 --- a/screens/wallet/WalletDetail.js +++ b/screens/wallet/WalletDetail.js @@ -631,7 +631,7 @@ class WalletDetail extends Component { return ( { this.setState({ displaySuperHyperModalHistory: true, historyItemDetail: item }) }} style={[styles.contentService, { borderBottomColor: Color.primaryColor }]}> { - Object.keys(omit(item, ['id', 'id_transaction', 'date_cassation', 'etat', 'type', 'date_fin', 'duree_mois', 'id_epargne', 'type_historique', 'frais', 'init_country', 'final_country', 'source', 'emetteur', 'montant_net_final', 'montant_net_init', 'reseau_payeur', 'operation', 'retrait_cash', 'type_historique', 'type_caution', 'id_demande', 'montant_rembourse', 'partiellement_rembourse', 'duree_mois', 'etat', 'interet', 'taxe', 'date_validation', 'date_remboursement_prevu', 'date_remboursement', 'id_user', 'id_wallet_agent', 'id_network', 'user', 'user_phone', 'agent', 'codeParrain'])).map((element, i) => ( + Object.keys(omit(item, ['id', 'id_transaction', 'montant2', 'date_cassation', 'etat', 'type', 'date_fin', 'duree_mois', 'id_epargne', 'type_historique', 'frais', 'init_country', 'final_country', 'source', 'emetteur', 'montant_net_final', 'montant_net_init', 'reseau_payeur', 'operation', 'retrait_cash', 'type_historique', 'type_caution', 'id_demande', 'montant_rembourse', 'partiellement_rembourse', 'duree_mois', 'etat', 'interet', 'taxe', 'date_validation', 'date_remboursement_prevu', 'date_remboursement', 'id_user', 'id_wallet_agent', 'id_network', 'user', 'user_phone', 'agent', 'codeParrain'])).map((element, i) => ( { @@ -915,7 +915,7 @@ class WalletDetail extends Component { {I18n.t('AMOUNT')} - {this.state.historyItemDetail.montant} + {this.state.historyItemDetail.montant2} diff --git a/utils/i18n/en.json b/utils/i18n/en.json index d2695b51..db920b93 100644 --- a/utils/i18n/en.json +++ b/utils/i18n/en.json @@ -427,6 +427,7 @@ "SAVED": "Registered", "CREATE": "Create", "JOIN": "Join", + "INVALID_MONTANT": "Invalid amount", "PROFILE_PICTURE": "Profile picture", "FRONT_FACE_CB": "CB front side", "BACK_FACE_CB": "CB back side",