From e18dae1f0a69c1abe0e048519fbcde0ed7458bc3 Mon Sep 17 00:00:00 2001 From: Brice Zele Date: Sun, 25 Oct 2020 20:23:02 +0100 Subject: [PATCH] Language correction --- .../app/src/main/assets/index.android.bundle | 44 +++++++++---------- .../app/src/main/res/raw/utils_i18n_en.json | 21 +++++---- .../app/src/main/res/raw/utils_i18n_fr.json | 8 +++- 3 files changed, 41 insertions(+), 32 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index b84ade71..0c983349 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -407,7 +407,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]),s=r(d[1]);Object.defineProperty(e,"__e __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),o=u.default.forwardRef(function(t,o){return u.default.createElement(l.default,(0,f.default)({ref:o},t))});o.defaultProps=l.default.defaultProps,o.propTypes=l.default.publicPropTypes;var p=o;e.default=p},401,[1,6,15,400]); __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 l=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=n(r(d[5])),p=n(r(d[6])),f=n(r(d[7])),s=n(r(d[8])),y=n(r(d[9])),O=r(d[10]),h=t(r(d[11])),v=t(r(d[12])),E=n(r(d[13]));function b(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function T(t){for(var n=1;n2&&void 0!==arguments[2])||arguments[2];var o=u.refs.navigator;void 0!==o&&(console.log("APP HAS LOADED",g.appHasLoaded),g.appHasLoaded?o.dispatch({type:"Navigation/NAVIGATE",routeName:t,params:n}):o.dispatch({type:"Navigation/NAVIGATE",routeName:"first",params:{routeName:t,params:n}}))},u.handleDeepLink=function(t){var n=t.notification.payload.additionalData;switch(console.warn("HANDLE DEEP LINK",n),n.screen){case'historyItemDetails':console.log("History Item"),u.goToScreen(n.screen,{item:n.data});break;default:console.log("Not History Item"),u.goToScreen(n.screen,{id:n.data.id})}},u.onOpened=function(t){t.notification.payload.additionalData;u.handleDeepLink(t),console.log('Message: ',t.notification.payload.body),console.log('Data: ',t.notification.payload.additionalData),console.log('isActive: ',t.notification.isAppInFocus),console.log('openResult: ',t)},console.log("APP PROPS",u.props),g.appHasLoaded=!1,A.default.setLogLevel(6,0),A.default.init("e8e7251f-713d-4658-9510-86d877fa6a7c",{kOSSettingsKeyAutoPrompt:!1,kOSSettingsKeyInAppLaunchURL:!1,kOSSettingsKeyInFocusDisplayOption:2}),A.default.inFocusDisplaying(2),A.default.promptForPushNotificationsWithUserResponse(_e),A.default.addEventListener('received',u.onReceived),A.default.addEventListener('opened',u.onOpened),A.default.addEventListener('ids',u.onIds),u}return(0,s.default)(n,t),(0,u.default)(n,[{key:"componentWillUnmount",value:function(){A.default.removeEventListener('received',this.onReceived),A.default.removeEventListener('opened',this.onOpened),A.default.removeEventListener('ids',this.onIds)}},{key:"onReceived",value:function(t){console.log("Notification received: ",t)}},{key:"render",value:function(){return p.default.createElement(Y.Provider,{store:j.store},p.default.createElement(K.PersistGate,{persistor:j.persistor},p.default.createElement(v.ActionSheetProvider,null,p.default.createElement(Ue,{ref:"navigator"}))))}}]),n})(p.default.Component);e.default=Be;h.StyleSheet.create({container:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#F5FCFF'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},404,[4,1,273,8,9,10,12,13,15,405,18,416,529,530,531,824,941,942,953,954,955,1005,1006,1013,1028,1029,1173,1286,1287,1291,1293,1610,1635,1648,1649,1650,1008,1179,1651,720,1652,1653,1676,1696,1700,1099,1039,1701,1772,1773,1783,1784,1788,1790,1791,1792,1793,1798,1799,1800,1801,1802,1803,1804,1805,1808,1809,1810,1811,1812,1813,1814,1056,1816,1817,1609,1818,1819,1820,1821,1822,1824,1825,774,1826,719,814]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.AppNavigator=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])),s=n(r(d[7])),p=t(r(d[8])),v=r(d[9]),h=r(d[10]),C=r(d[11]),A=n(r(d[12])),N=(n(r(d[13])),n(r(d[14]))),S=n(r(d[15])),b=n(r(d[16])),y=n(r(d[17])),w=n(r(d[18])),D=n(r(d[19])),E=n(r(d[20])),I=n(r(d[21])),O=n(r(d[22])),T=n(r(d[23])),k=n(r(d[24])),M=n(r(d[25])),L=n(r(d[26])),R=n(r(d[27])),P=(n(r(d[28])),n(r(d[29]))),G=n(r(d[30])),U=n(r(d[31])),_=n(r(d[32])),B=n(r(d[33])),z=n(r(d[34])),V=n(r(d[35])),W=n(r(d[36])),F=(r(d[37]),n(r(d[38])),n(r(d[39]))),H=(n(r(d[40])),r(d[41]),n(r(d[42]))),x=n(r(d[43])),q=r(d[44]),K=r(d[45]),j=r(d[46]),Y=n(r(d[47])),J=n(r(d[48])),Q=n(r(d[49])),X=n(r(d[50])),Z=n(r(d[51])),$=n(r(d[52])),ee=n(r(d[53])),te=n(r(d[54])),ae=n(r(d[55])),ne=n(r(d[56])),oe=n(r(d[57])),re=n(r(d[58])),le=n(r(d[59])),ie=n(r(d[60])),de=n(r(d[61])),ue=n(r(d[62])),ce=n(r(d[63])),fe=n(r(d[64])),se=n(r(d[65])),pe=n(r(d[66])),ve=n(r(d[67])),ge=n(r(d[68])),he=n(r(d[69])),me=n(r(d[70])),Ce=n(r(d[71])),Ae=(r(d[72]),n(r(d[73]))),Ne=n(r(d[74])),Se=(n(r(d[75])),n(r(d[76]))),be=n(r(d[77])),ye=n(r(d[78])),we=n(r(d[79])),De=n(r(d[80])),Ee=n(r(d[81])),Ie=n(r(d[82])),Oe=(r(d[83]),r(d[84]),r(d[85]),h.Platform.select({ios:"Press Cmd+R to reload,\nCmd+D or shake for dev menu",android:"Double tap R on your keyboard to reload,\nShake or press menu button for dev menu"}),r(d[86])),Te=(0,C.createStackNavigator)({login:N.default,helpMenu:b.default,help:y.default,forgottenpass:w.default,typeaccountcreate:D.default,simpleusercreate:I.default,step2:E.default,activateaccout:k.default},{headerMode:'none'}),ke=(0,C.createDrawerNavigator)({sta:(0,C.createStackNavigator)({home:G.default,useraccount:{screen:T.default,navigationOptions:{}},walletSelect:x.default,createIdentificationUser:ee.default,modifyIdentificationUser:me.default,notificationview:M.default,configuration:R.default,about:L.default,walletDetailUser:X.default,walletOptionSelect:Z.default,operateurOptionSelect:te.default,operateurOptionSelect:te.default,paiementFacture:ae.default,envoieWalletToWalletUser:ne.default,envoieWalletToCashUser:oe.default,envoieWalletToCardUser:le.default,envoieWalletToBankUser:ie.default,retraitWalletVersCashUser:de.default,retraitCarteVersCashUser:ue.default,retraitCarteVersWalletUser:ce.default,linkCard:re.default,epargnerArgentUser:Ee.default,createGroupNanoCredit:Ce.default,groupNanoCredit:{screen:(0,C.createBottomTabNavigator)({demandeValidationGroupe:{screen:Ae.default,navigationOptions:{tabBarLabel:F.default.t('DEMAND_VALIDATION_GROUP_RECEIVE'),tabBarIcon:function(t){var n=t.focused,o=(t.horizontal,t.tintColor);return p.default.createElement(W.default,{size:20,name:"users-cog",color:n?o:"grey"})}}},myNanoCreditGroup:{screen:be.default,navigationOptions:{tabBarLabel:F.default.t('MY_GROUP'),tabBarIcon:function(t){var n=t.focused,o=(t.horizontal,t.tintColor);return p.default.createElement(W.default,{size:20,name:"users",color:n?o:"grey"})}}}},{headerMode:"none",header:null,headerTitle:null,title:F.default.t('MANAGE_GROUP'),tabBarOptions:{labelStyle:{fontSize:13}}}),navigationOptions:function(){return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:F.default.t('MANAGE_GROUP'),drawerIcon:function(t){t.tintColor;return p.default.createElement(W.default,{name:'account-multiple',size:24})}}}},demandeValidationGroupe:Ne.default,adhererGroupNanoCredit:Se.default,askNanoCredit:ye.default,refundNanoCreditUser:we.default,casserEpargneUser:Ie.default})},{contentComponent:P.default,headerMode:'none',contentOptions:{activeTintColor:Oe.accent}}),Me=(0,C.createDrawerNavigator)({sta:(0,C.createStackNavigator)({home:G.default,useraccount:T.default,walletSelect:x.default,createIdentification:Q.default,validateIdentification:$.default,Historique:{screen:(0,C.createBottomTabNavigator)({myDemand:V.default},{headerMode:"none",header:null,headerTitle:null,headerTitle:F.default.t('CREDIT_MANAGE'),tabBarOptions:{labelStyle:{fontSize:13,fontWeight:"bold"}}}),navigationOptions:function(){return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:F.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(W.default,{name:'credit-card',size:24})}}}},historyItemDetails:U.default,creditrequest:B.default,addNetwork:z.default,updateinformation:O.default,notificationview:M.default,configuration:R.default,about:L.default,walletDetail:H.default,walletDepot:Y.default,walletRetrait:J.default,walletOptionSelect:Z.default,operateurOptionSelect:te.default,paiementFacture:ae.default,retraitEnCashAgent:fe.default,retraitCarteVersCashAgent:se.default,envoieCashVersWalletAgent:pe.default,envoieCashVersAutreWalletAgent:ve.default,envoieCashVersCarteAgent:ge.default,envoiCashVersCashAgent:he.default,createGroupNanoCredit:Ce.default,cautionNanoCreditAgent:De.default})},{contentComponent:P.default,backBehavior:"none",lazy:!1,headerMode:'none',contentOptions:{activeTintColor:Oe.accent}}),Le=(0,C.createDrawerNavigator)({sta:(0,C.createStackNavigator)({home:G.default,useraccount:T.default,walletSelect:x.default,Historique:{screen:(0,C.createBottomTabNavigator)({myDemand:V.default,OthersDemand:V.default},{headerMode:"none",header:null,headerTitle:null,title:F.default.t('CREDIT_MANAGE'),tabBarOptions:{labelStyle:{fontSize:13}}}),navigationOptions:function(){return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:F.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(W.default,{name:'credit-card',size:24})}}}},creditrequest:B.default,historyItemDetails:U.default,superviseurgroup:_.default,notificationview:M.default,configuration:R.default,about:L.default,walletDetail:H.default,walletDepot:Y.default,walletRetrait:J.default})},{contentComponent:P.default,backBehavior:"none",headerMode:'none'}),Re=(0,C.createDrawerNavigator)({sta:(0,C.createStackNavigator)({home:G.default,useraccount:T.default,walletSelect:x.default,Historique:{screen:(0,C.createBottomTabNavigator)({OthersDemand:V.default},{headerMode:"none",header:null,headerTitle:null,title:F.default.t('CREDIT_MANAGE'),tabBarOptions:{labelStyle:{fontSize:13,fontWeight:"bold"}}}),navigationOptions:function(){return{title:F.default.t('CREDIT_MANAGE'),headerMode:"none",header:null,headerTitle:null,drawerIcon:function(t){t.tintColor;return p.default.createElement(W.default,{name:'credit-card',size:24})}}}},creditrequest:B.default,historyItemDetails:U.default,superviseurgroup:_.default,notificationview:M.default,configuration:R.default,about:L.default,walletDetail:H.default,walletDepot:Y.default,walletRetrait:J.default})},{contentComponent:P.default,backBehavior:"none",headerMode:'none'}),Pe=(0,C.createSwitchNavigator)({first:{screen:S.default},App:ke,AgentApp:Me,adminApp:Le,supAdminApp:Re,Auth:Te},{initialRouteName:'first'});e.AppNavigator=Pe;var Ge=(0,C.createAppContainer)(Pe);function Ue(t){}var _e=(function(t){function n(t){var u;return(0,l.default)(this,n),(u=(0,c.default)(this,(0,f.default)(n).call(this,t)))._getOneSignalIds=function(){return new Promise(function(t,n){var l;return o.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,o.default.awrap(h.AsyncStorage.getItem('@config:onesignalIds'));case 3:l=u.sent,t(l),u.next=10;break;case 7:u.prev=7,u.t0=u.catch(0),n(u.t0);case 10:case"end":return u.stop()}},null,null,[[0,7]],Promise)})},u._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(h.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)},u.goToScreen=function(t,n){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var o=u.refs.navigator;void 0!==o&&(console.log("APP HAS LOADED",g.appHasLoaded),g.appHasLoaded?o.dispatch({type:"Navigation/NAVIGATE",routeName:t,params:n}):o.dispatch({type:"Navigation/NAVIGATE",routeName:"first",params:{routeName:t,params:n}}))},u.handleDeepLink=function(t){var n=t.notification.payload.additionalData;switch(console.warn("HANDLE DEEP LINK",n),n.screen){case'historyItemDetails':console.log("History Item"),u.goToScreen(n.screen,{item:n.data});break;default:console.log("Not History Item"),u.goToScreen(n.screen,{id:n.data.id})}},u.onOpened=function(t){t.notification.payload.additionalData;u.handleDeepLink(t),console.log('Message: ',t.notification.payload.body),console.log('Data: ',t.notification.payload.additionalData),console.log('isActive: ',t.notification.isAppInFocus),console.log('openResult: ',t)},console.log("APP PROPS",u.props),g.appHasLoaded=!1,A.default.setLogLevel(6,0),A.default.init("e8e7251f-713d-4658-9510-86d877fa6a7c",{kOSSettingsKeyAutoPrompt:!1,kOSSettingsKeyInAppLaunchURL:!1,kOSSettingsKeyInFocusDisplayOption:2}),A.default.inFocusDisplaying(2),A.default.promptForPushNotificationsWithUserResponse(Ue),A.default.addEventListener('received',u.onReceived),A.default.addEventListener('opened',u.onOpened),A.default.addEventListener('ids',u.onIds),u}return(0,s.default)(n,t),(0,u.default)(n,[{key:"componentWillUnmount",value:function(){A.default.removeEventListener('received',this.onReceived),A.default.removeEventListener('opened',this.onOpened),A.default.removeEventListener('ids',this.onIds)}},{key:"onReceived",value:function(t){console.log("Notification received: ",t)}},{key:"render",value:function(){return p.default.createElement(j.Provider,{store:K.store},p.default.createElement(q.PersistGate,{persistor:K.persistor},p.default.createElement(v.ActionSheetProvider,null,p.default.createElement(Ge,{ref:"navigator"}))))}}]),n})(p.default.Component);e.default=_e;h.StyleSheet.create({container:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#F5FCFF'},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5}})},404,[4,1,273,8,9,10,12,13,15,405,18,416,529,530,531,824,941,942,953,954,955,1005,1006,1013,1028,1029,1173,1286,1287,1291,1293,1610,1635,1648,1649,1650,1008,1179,1651,720,1652,1653,1676,1696,1700,1099,1039,1701,1772,1773,1783,1784,1788,1790,1791,1792,1793,1798,1799,1800,1801,1802,1803,1804,1805,1808,1809,1810,1811,1812,1813,1814,1056,1816,1817,1609,1818,1819,1820,1821,1822,1824,1825,774,1826,719,814]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={ActionSheetProvider:!0,connectActionSheet:!0,useActionSheet:!0};Object.defineProperty(e,"ActionSheetProvider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"connectActionSheet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useActionSheet",{enumerable:!0,get:function(){return u.useActionSheet}});var o=t(r(d[1])),c=t(r(d[2])),u=r(d[3]),f=r(d[4]);Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}}))})},405,[1,406,411,410,415]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),u=n(r(d[3])),c=n(r(d[4])),l=n(r(d[5])),f=n(r(d[6])),h=t(r(d[7])),s=n(r(d[8])),_=r(d[9]),v="/home/bradley/Code/expo/react-native-action-sheet/src/ActionSheetProvider.tsx",p=(function(t){function n(t){var u;return(0,o.default)(this,n),(u=(0,c.default)(this,(0,l.default)(n).call(this,t))).getContext=function(){return{showActionSheetWithOptions:function(t,n){null!==u._actionSheetRef.current&&u._actionSheetRef.current.showActionSheetWithOptions(t,n)}}},u._actionSheetRef=h.createRef(),u}return(0,f.default)(n,t),(0,u.default)(n,[{key:"render",value:function(){return h.createElement(_.Provider,{value:this.getContext(),__source:{fileName:v,lineNumber:29}},h.createElement(s.default,{ref:this._actionSheetRef,__source:{fileName:v,lineNumber:30}},h.Children.only(this.props.children)))}}]),n})(h.Component);e.default=p},406,[4,1,8,9,10,12,13,15,407,410]); __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])),l=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),h=n(r(d[7])),p=t(r(d[8])),v=r(d[9]),f=n(r(d[10])),y="/home/bradley/Code/expo/react-native-action-sheet/src/ActionSheet/index.tsx",_=225,S=195,N=v.Easing.bezier(.25,.46,.45,.94),b=v.Easing.out(N),x=(function(t){function n(){var t,s;(0,o.default)(this,n);for(var h=arguments.length,p=new Array(h),f=0;f1&&void 0!==arguments[1]?arguments[1]:{},v=Object.keys(t);if(0===v.length)throw new Error('You need to add at least one style');var s=b({defaultStyle:v[0],fallbackFamily:function(){return v[0]},glyphValidator:function(){return!0}},n),S=v.reduce(function(n,u){var o=t[u];return n[u]=(0,h.default)(o.glyphMap||{},o.fontFamily||'',o.fontFile||'',o.fontStyle||{}),n},{});function j(t){return Object.keys(t).reduce(function(n,u){return-1!==v.indexOf(u)&&!0===t[u]?u:n},s.defaultStyle)}function I(t){var n=t.name,u=j(t);if(s.glyphValidator(n,u))return S[u];var o=s.fallbackFamily(n);return-1===v.indexOf(o)?s.defaultStyle:S[o]}function P(t){return Object.keys(t).reduce(function(n,u){return-1===v.indexOf(u)&&(n[u]=t[u]),n},{})}function w(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';return-1===v.indexOf(t)?S[s.defaultStyle]:n?I((0,y.default)({name:n},t,!0)):S[j((0,y.default)({},t,!0))]}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',n=(function(n){function y(){return(0,u.default)(this,y),(0,l.default)(this,(0,f.default)(y).apply(this,arguments))}return(0,c.default)(y,n),(0,o.default)(y,[{key:"render",value:function(){var n,u,o=I(this.props),l=(n=o,(u=t).length>0?n[u]:n),f=P(this.props);return p.default.createElement(l,f)}}]),y})(p.PureComponent);return n.propTypes=v.reduce(function(t,n){return t[n]=O.default.bool,t},{}),n.defaultProps=v.reduce(function(t,n){return t[n]=!1,t},{}),n}var T=F();return T.Button=F('Button'),T.TabBarItem=F('TabBarItem'),T.TabBarItemIOS=F('TabBarItemIOS'),T.ToolbarAndroid=F('ToolbarAndroid'),T.getStyledIconSet=w,T.getImageSource=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.DEFAULT_ICON_SIZE,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.DEFAULT_ICON_COLOR;return w(arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.defaultStyle,t).getImageSource(t,n,u)},T.getFontFamily=function(){return w(arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.defaultStyle).getFontFamily()},T.getRawGlyphMap=function(){return w(arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.defaultStyle).getRawGlyphMap()},T.hasIcon=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.defaultStyle;return s.glyphValidator(t,n)},T};var u=n(r(d[2])),o=n(r(d[3])),l=n(r(d[4])),f=n(r(d[5])),c=n(r(d[6])),y=n(r(d[7])),p=t(r(d[8])),O=n(r(d[9])),h=t(r(d[10]));function v(t,n){var u=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),u.push.apply(u,o)}return u}function b(t){for(var n=1;n0?this.state.mynetworks.map(function(n){return t.generateItemNetwork(n)}):this.showLoader():null)))}},{key:"showPhoneSup",value:function(){if(void 0!=this.state.user.phoneTransaction&&null!=this.state.user.phoneTransaction)return h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"phone",size:18})," "+this.state.user.phoneTransaction)}},{key:"getHeaderLeftProfil",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,fontWeight:'bold',textAlign:'center'}},b.default.t("NETWORK")),h.default.createElement(y.Text,{style:{color:'white',fontSize:15,textAlign:'center'}},t.network))}},{key:"getHeaderRight",value:function(t){return h.default.createElement(y.View,{style:{flex:0}})}},{key:"getHeaderRightAgent",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,textAlign:'center',fontWeight:'bold'}},b.default.t("MEMBER_CODE")),h.default.createElement(y.Text,{style:{color:'white',fontSize:13,textAlign:'center'}},t.code_membre))}},{key:"getHeaderLeftAgentProfil",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,fontWeight:'bold',textAlign:'center'}},b.default.t("NETWORK")),h.default.createElement(y.Text,{style:{color:'white',fontSize:13,textAlign:'center'}},t.network))}},{key:"addAgentInformation",value:function(t){if(console.log(t),"geolocated"!==t.category)return h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:'code',size:18,color:R.primaryDark,style:{paddingRight:10}})," "+t.code_parrain),h.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'space-between',width:(0,x.responsiveWidth)(90),marginRight:50}},h.default.createElement(y.Text,{style:{marginLeft:12,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:"group-work",color:R.primaryDark,size:18})," "+(null===t.nbre_reseau||void 0===t.nbre_reseau?0:t.nbre_reseau)+" "+b.default.t("FREE")),h.default.createElement(y.Text,{style:{marginLeft:12,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:"book",color:R.primaryDark,size:18})," "+(null===t.nbre_reseau||void 0===t.nbre_membre?0:t.nbre_membre)+" "+b.default.t("SAVED"))));h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:'code',size:18,color:R.primaryDark,style:{paddingRight:10}})," "+t.code_parrain))}},{key:"mapUser",value:function(t){var n=this,l={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)};return h.default.createElement(k.default,{liteMode:!0,ref:function(t){n.mapRef=t},style:z.map},void 0!==this.state.myPosition?h.default.createElement(k.Marker,{title:"Vous \xeates ici",minZoomLevel:10,coordinate:{longitude:l.longitude,latitude:l.latitude}}):null)}},{key:"showBalance",value:function(t){return h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"folder",size:18})," "+this.state.user.balance+" ")}},{key:"makeGeolocatedNetworkList",value:function(){return h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginRight:10,marginTop:15,marginBottom:5,fontSize:17,fontWeight:'bold',color:'black'}},"Mes reseaux"))}},{key:"generateItemNetwork",value:function(t){var n=this;return h.default.createElement(S.Card,null,h.default.createElement(S.CardTitle,{title:t.name,subtitle:t.phone}),h.default.createElement(S.CardContent,null,h.default.createElement(y.View,{Style:{flex:1}},h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"code",size:18})," "+t.code_membre+" "),h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"people",size:18})," "+t.code_parrain+" "))),h.default.createElement(S.CardAction,{separator:!0,inColumn:!1},h.default.createElement(S.CardButton,{onPress:function(){y.Alert.alert(b.default.t("TITLE_SUPPRESS_CONFIRM"),b.default.t("TEXT_SUPPRESS_CONFIRM"),[{text:b.default.t('NO'),onPress:function(){}},{text:b.default.t("YES"),onPress:function(){(0,p.deleteUser)(t).then(function(){n.setState({isLoading:!0}),n.updateContent(n.state.user)})},style:'cancel'}])},title:b.default.t('DELETE_GEOLOCATED_USER'),color:"crimson"})))}},{key:"showLoader",value:function(){return h.default.createElement(y.View,{style:{height:(0,x.responsiveHeight)(20)}},h.default.createElement(y.ProgressBarAndroid,{style:{justifyContent:"center",alignItems:"center"}}))}}]),n})(h.Component);e.default=L,L.navigatorStyle={navBarHidden:!1,navBarBackgroundColor:R.primaryDark,navBarTextColor:'white',navBarButtonColor:'white',drawUnderStatusBar:!1,statusBarColor:R.primaryDarkAdvanced,statusBarTextColorScheme:'light'},L.navigationOptions=function(t){t.navigation;return{headerTitle:b.default.t('USER_ACCOUNT'),headerStyle:{backgroundColor:R.primary,paddingTop:10},headerTitleStyle:{color:"white"},drawerIcon:function(t){t.tintColor;return h.default.createElement(E.default,{name:'person',size:24})}}};var z=y.StyleSheet.create({userInformation:{backgroundColor:R.primary,flex:1,justifyContent:'center',paddingTop:(0,x.responsiveHeight)(2),paddingBottom:(0,x.responsiveHeight)(5)},map:{height:200,marginRight:(0,x.responsiveWidth)(5),marginLeft:(0,x.responsiveWidth)(5),marginVertical:10},networkInformation:{width:(0,x.responsiveWidth)(100),backgroundColor:'#EEEEEE',flex:1},container:{flex:1,backgroundColor:'#EEEEEE'},contain:{flexDirection:'row',justifyContent:'space-between'},identificationOptionMenuContainer:{flexDirection:'row',paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',marginRight:2.5,alignItems:'center',shadowColor:I.Color.borderColor,borderColor:I.Color.borderColor,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:T.scaleWithPixel(30),height:T.scaleWithPixel(30)},content:{height:T.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5},textInformation:{fontSize:16,color:'white',textAlign:'center'},textInformation2:{fontSize:15,marginTop:7,color:R.primaryDark,marginLeft:10},textTitle:{fontSize:25,color:'white',fontWeight:'bold'},textTitle2:{fontSize:25,color:R.primaryDark,fontWeight:'bold'}})},1013,[4,1,8,10,12,11,9,13,15,18,876,719,1007,535,956,1014,717,1015,536,720,848,774,1016,1026,814,815,816,1027]); +__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 l=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=n(r(d[5])),f=n(r(d[6])),s=n(r(d[7])),h=t(r(d[8])),y=r(d[9]),E=n(r(d[10])),p=r(d[11]),w=r(d[12]),x=r(d[13]),k=t(r(d[14])),T=t(r(d[15])),v=(n(r(d[16])),r(d[17]),n(r(d[18]))),b=n(r(d[19])),C=(r(d[20]),r(d[21])),S=r(d[22]),I=r(d[23]),R=r(d[24]);r(d[25]);r(d[26]);(0,x.responsiveHeight)(100);var L=(function(t){function n(t){var f;return(0,l.default)(this,n),(f=(0,o.default)(this,(0,u.default)(n).call(this,t))).state=f.initState(),C.IlinkEmitter.on("langueChange",f.updateLangue.bind((0,c.default)(f))),(0,p.readUser)().then(function(t){null!==t&&(f.setState({user:t}),f.updateContent(t))}),f}return(0,s.default)(n,t),(0,f.default)(n,null,[{key:"options",value:function(t){return{topBar:{drawBehind:!1,visible:!0,animate:!0,buttonColor:'white',background:{color:R.primaryDark},rightButtons:[]},backButton:{visible:!0,color:"white"},buttonColor:"white",background:{color:R.primaryDark},statusBar:{drawBehind:!1,visible:!0}}}}]),(0,f.default)(n,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('USER_ACCOUNT')}),this.forceUpdate()}},{key:"updateContent",value:function(t){var n=this;(0,w.getAgentNetworksList)(t.agentId).then(function(t){void 0!==t.success&&n.setState({mynetworks:t.networks})}),this.setState({user:t})}},{key:"initState",value:function(){return{user:{},mynetworks:[]}}},{key:"render",value:function(){var t=this,n="",l=this.state.user;return void 0===l.category&&null===l.category||(n='super'===l.category?b.default.t("ADMIN"):'hyper'===l.category?b.default.t("SUPER_ADMIN"):'geolocated'===l.category?b.default.t("GEOLOCATED"):b.default.t("SIMPLE_USER")),h.default.createElement(y.View,{style:z.container},h.default.createElement(y.StatusBar,{backgroundColor:R.primaryDark,barStyle:"light-content",translucent:!1}),h.default.createElement(y.ScrollView,{style:{flex:1,marginTop:-5}},h.default.createElement(y.View,{style:z.userInformation},h.default.createElement(y.ScrollView,null,h.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},h.default.createElement(y.Image,{source:r(d[27]),style:{width:92,height:92}})),h.default.createElement(y.View,{style:{flex:1,flexDirection:'row'}},void 0===l.category||null===l.category?this.getHeaderLeftProfil(l):this.getHeaderLeftAgentProfil(l),h.default.createElement(y.View,{style:{flex:(void 0===l.category||l.category,2)}},h.default.createElement(y.Text,{style:z.textInformation},this.state.user.firstname),h.default.createElement(y.Text,{style:z.textInformation},this.state.user.lastname),h.default.createElement(y.Text,{style:{color:'white',fontSize:17,fontWeight:'bold',textAlign:'center'}},n)),void 0===l.category||null===l.category?this.getHeaderRight(l):this.getHeaderRightAgent(l)))),h.default.createElement(y.View,{style:z.networkInformation},h.default.createElement(y.Text,{style:{marginLeft:10,marginRight:10,marginTop:15,marginBottom:5,fontSize:17,fontWeight:'bold',color:'black'}},b.default.t("ACCOUNT_INFO")),h.default.createElement(v.default,{style:{marginLeft:10,marginRight:10,paddingBottom:20}},h.default.createElement(y.ScrollView,null,void 0!==l.category&&null!==l.category?this.addAgentInformation(l):null,h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"location-on",size:18})," "+this.state.user.country),void 0!==l.balance&&null!==l.balance?this.showBalance(l):null,h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"mail",size:18})," "+this.state.user.email),h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"phone",size:18})," "+this.state.user.phone),this.showPhoneSup(),h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"account-balance-wallet",size:18})," "+this.state.user.network))),'geolocated'===l.category?h.default.createElement(y.Text,{style:{marginLeft:10,marginRight:10,marginTop:15,marginBottom:5,fontSize:17,fontWeight:'bold',color:'black'}},b.default.t("MY_NETWORK")):null,'geolocated'===l.category?this.state.mynetworks.length>0?this.state.mynetworks.map(function(n){return t.generateItemNetwork(n)}):this.showLoader():null)))}},{key:"showPhoneSup",value:function(){if(void 0!=this.state.user.phoneTransaction&&null!=this.state.user.phoneTransaction)return h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"phone",size:18})," "+this.state.user.phoneTransaction)}},{key:"getHeaderLeftProfil",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,fontWeight:'bold',textAlign:'center'}},b.default.t("NETWORK")),h.default.createElement(y.Text,{style:{color:'white',fontSize:15,textAlign:'center'}},t.network))}},{key:"getHeaderRight",value:function(t){return h.default.createElement(y.View,{style:{flex:0}})}},{key:"getHeaderRightAgent",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,textAlign:'center',fontWeight:'bold'}},b.default.t("MEMBER_CODE")),h.default.createElement(y.Text,{style:{color:'white',fontSize:13,textAlign:'center'}},t.code_membre))}},{key:"getHeaderLeftAgentProfil",value:function(t){return h.default.createElement(y.View,{style:{flex:2}},h.default.createElement(y.Text,{style:{color:'white',fontSize:15,fontWeight:'bold',textAlign:'center'}},b.default.t("NETWORK")),h.default.createElement(y.Text,{style:{color:'white',fontSize:13,textAlign:'center'}},t.network))}},{key:"addAgentInformation",value:function(t){if(console.log(t),"geolocated"!==t.category)return h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:'code',size:18,color:R.primaryDark,style:{paddingRight:10}})," "+t.code_parrain),h.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'space-between',width:(0,x.responsiveWidth)(90),marginRight:50}},h.default.createElement(y.Text,{style:{marginLeft:12,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:"group-work",color:R.primaryDark,size:18})," "+(null===t.nbre_reseau||void 0===t.nbre_reseau?0:t.nbre_reseau)+" "+b.default.t("FREE")),h.default.createElement(y.Text,{style:{marginLeft:12,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:"book",color:R.primaryDark,size:18})," "+(null===t.nbre_reseau||void 0===t.nbre_membre?0:t.nbre_membre)+" "+b.default.t("SAVED"))));h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginTop:10,color:R.primaryDark}},h.default.createElement(E.default,{name:'code',size:18,color:R.primaryDark,style:{paddingRight:10}})," "+t.code_parrain))}},{key:"mapUser",value:function(t){var n=this,l={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)};return h.default.createElement(k.default,{liteMode:!0,ref:function(t){n.mapRef=t},style:z.map},void 0!==this.state.myPosition?h.default.createElement(k.Marker,{title:"Vous \xeates ici",minZoomLevel:10,coordinate:{longitude:l.longitude,latitude:l.latitude}}):null)}},{key:"showBalance",value:function(t){return h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"folder",size:18})," "+this.state.user.balance+" ")}},{key:"makeGeolocatedNetworkList",value:function(){return h.default.createElement(y.View,null,h.default.createElement(y.Text,{style:{marginLeft:10,marginRight:10,marginTop:15,marginBottom:5,fontSize:17,fontWeight:'bold',color:'black'}},"Mes reseaux"))}},{key:"generateItemNetwork",value:function(t){var n=this;return h.default.createElement(S.Card,null,h.default.createElement(S.CardTitle,{title:t.name,subtitle:t.phone}),h.default.createElement(S.CardContent,null,h.default.createElement(y.View,{Style:{flex:1}},h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"code",size:18})," "+t.code_membre+" "),h.default.createElement(y.Text,{style:z.textInformation2},h.default.createElement(E.default,{name:"people",size:18})," "+t.code_parrain+" "))),h.default.createElement(S.CardAction,{separator:!0,inColumn:!1},h.default.createElement(S.CardButton,{onPress:function(){y.Alert.alert(b.default.t("TITLE_SUPPRESS_CONFIRM"),b.default.t("TEXT_SUPPRESS_CONFIRM"),[{text:b.default.t('NO'),onPress:function(){}},{text:b.default.t("YES"),onPress:function(){(0,p.deleteUser)(t).then(function(){n.setState({isLoading:!0}),n.updateContent(n.state.user)})},style:'cancel'}])},title:b.default.t('DELETE_GEOLOCATED_USER'),color:"crimson"})))}},{key:"showLoader",value:function(){return h.default.createElement(y.View,{style:{height:(0,x.responsiveHeight)(20)}},h.default.createElement(y.ProgressBarAndroid,{style:{justifyContent:"center",alignItems:"center"}}))}}]),n})(h.Component);e.default=L,L.navigatorStyle={navBarHidden:!1,navBarBackgroundColor:R.primaryDark,navBarTextColor:'white',navBarButtonColor:'white',drawUnderStatusBar:!1,statusBarColor:R.primaryDarkAdvanced,statusBarTextColorScheme:'light'},L.navigationOptions=function(t){t.navigation;return{headerTitle:b.default.t('USER_ACCOUNT'),headerStyle:{backgroundColor:R.primary,paddingTop:10},headerTitleStyle:{color:"white"},drawerIcon:function(t){t.tintColor;return h.default.createElement(E.default,{name:'person',size:24})}}};var z=y.StyleSheet.create({userInformation:{backgroundColor:R.primary,flex:1,justifyContent:'center',paddingTop:(0,x.responsiveHeight)(2),paddingBottom:(0,x.responsiveHeight)(5)},map:{height:200,marginRight:(0,x.responsiveWidth)(5),marginLeft:(0,x.responsiveWidth)(5),marginVertical:10},networkInformation:{width:(0,x.responsiveWidth)(100),backgroundColor:'#EEEEEE',flex:1},container:{flex:1,backgroundColor:'#EEEEEE'},contain:{flexDirection:'row',justifyContent:'space-between'},identificationOptionMenuContainer:{flexDirection:'row',paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',marginRight:2.5,alignItems:'center',shadowColor:I.Color.borderColor,borderColor:I.Color.borderColor,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:T.scaleWithPixel(30),height:T.scaleWithPixel(30)},content:{height:T.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5},textInformation:{fontSize:16,color:'white',textAlign:'center'},textInformation2:{fontSize:15,marginTop:7,color:R.primaryDark,marginLeft:10},textTitle:{fontSize:25,color:'white',fontWeight:'bold'},textTitle2:{fontSize:25,color:R.primaryDark,fontWeight:'bold'}})},1013,[4,1,8,10,12,11,9,13,15,18,835,719,1007,535,956,1014,717,1015,536,720,848,774,1016,1026,814,815,816,1027]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.scrollEnabled=e.getHeightDevice=e.getWidthDevice=e.heightTabView=e.heightHeader=e.scaleWithPixel=e.enableExperimental=void 0;var t=r(d[0]),n=t.PixelRatio.get()/2;e.enableExperimental=function(){'android'===t.Platform.OS&&t.UIManager.setLayoutAnimationEnabledExperimental(!0),t.LayoutAnimation.configureNext(t.LayoutAnimation.Presets.easeInEaseOut)};e.scaleWithPixel=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.2;return t*(n>o?o:n)};var o=function(){var n=t.Dimensions.get('window').width,o=t.Dimensions.get('window').height,s=n>o;if('android'===t.Platform.OS)return 45;if(t.Platform.isPad)return 65;switch(o){case 375:case 414:case 812:case 896:return s?45:88;default:return s?45:65}};e.heightHeader=o;e.heightTabView=function(){var n=t.Dimensions.get('window').height,s=n-o();switch(n){case 375:case 414:case 812:case 896:s-=30}return s};e.getWidthDevice=function(){return t.Dimensions.get('window').width};e.getHeightDevice=function(){return t.Dimensions.get('window').height};e.scrollEnabled=function(n,s){return s>t.Dimensions.get('window').height-o()}},1014,[18]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Typography=e.FontWeight=void 0;var t=r(d[0]),o={thin:"100",ultraLight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",heavy:"800",black:"900"};e.FontWeight=o;var n=t.StyleSheet.create({header:{fontSize:34,fontWeight:o.regular},title1:{fontSize:28,fontWeight:o.regular},title2:{fontSize:22,fontWeight:o.regular},title3:{fontSize:20,fontWeight:o.regular},headline:{fontSize:17,fontWeight:o.regular},body1:{fontSize:17,fontWeight:o.regular},body2:{fontSize:14,fontWeight:o.regular},callout:{fontSize:17,fontWeight:o.regular},subhead:{fontSize:15,fontWeight:o.regular},footnote:{fontSize:13,fontWeight:o.regular},caption1:{fontSize:12,fontWeight:o.regular},caption2:{fontSize:11,fontWeight:o.regular},overline:{fontSize:10,fontWeight:o.regular}});e.Typography=n},1015,[18]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"CardTitle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"CardImage",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"CardContent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"CardAction",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"CardButton",{enumerable:!0,get:function(){return l.default}});var n=t(r(d[1])),u=t(r(d[2])),f=t(r(d[3])),o=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6]))},1016,[1,1017,1018,1019,1020,1021,1022]); @@ -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?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)}),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]); @@ -1647,7 +1647,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{v __d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var o=l(r(d[1])),t=l(r(d[2])),u=l(r(d[3])),n=r(d[4]),c=l(r(d[5])),f=l(r(d[6])),y=l(r(d[7])),C=r(d[8]);function p(l){var c=l.style,p=l.textStyle,b=l.icon,s=l.primary,S=l.primaryIcon,h=l.outline,x=l.outlineIcon,I=l.outlineSecondary,k=l.outlineSecondaryIcon,O=l.small,L=l.light,v=l.gray,P=l.chip,T=l.status,_=l.rate,j=l.rateSmall,E=l.sale,R=l.children,B=(0,t.default)(l,["style","textStyle","icon","primary","primaryIcon","outline","outlineIcon","outlineSecondary","outlineSecondaryIcon","small","light","gray","chip","status","rate","rateSmall","sale","children"]);return u.default.createElement(n.TouchableOpacity,(0,o.default)({},B,{style:n.StyleSheet.flatten([y.default.default,s&&[y.default.primary,{backgroundColor:C.Color.primaryColor}],S&&y.default.primary,h&&[y.default.outline,{borderColor:C.Color.primary,backgroundColor:C.Color.cardBackgroundColor}],x&&y.default.outline,I&&y.default.outlineSecondary,k&&[y.default.outlineSecondary,{borderColor:C.Color.accentColor}],O&&[y.default.small,{backgroundColor:C.Color.primaryColor}],L&&[y.default.light,{backgroundColor:C.Color.primaryColor}],v&&y.default.gray,P&&[y.default.chip,{backgroundColor:C.Color.card,borderColor:C.Color.accentColor}],T&&[y.default.status,{backgroundColor:C.Color.primaryColor}],_&&[y.default.rate,{backgroundColor:C.Color.primaryLightColor}],j&&[y.default.rateSmall,{backgroundColor:C.Color.primaryLightColor}],E&&[y.default.sale,{backgroundColor:C.Color.primaryLightColor}],c]),activeOpacity:.9}),b||null,u.default.createElement(f.default,{style:n.StyleSheet.flatten([s&&y.default.textPrimary,S&&y.default.textPrimary,h&&[y.default.textOutline,{color:C.Color.primaryColor}],x&&[y.default.textOutline,{color:C.Color.primaryColor}],I&&[y.default.textOutlineSecondary,{color:C.Color.accentColor}],k&&[y.default.textOutlineSecondary,{color:C.Color.accentColor}],O&&y.default.textSmall,L&&[y.default.textLight,{color:C.Color.primaryLightColor}],v&&y.default.textGray,P&&[y.default.textChip,{color:C.Color.accentColor}],T&&y.default.textStatus,_&&y.default.textRate,j&&y.default.textRateSmall,E&&y.default.textSale,p]),numberOfLines:1},R||''))}p.propTypes={style:c.default.oneOfType([c.default.object,c.default.array]),textStyle:c.default.oneOfType([c.default.object,c.default.array]),icon:c.default.node,primary:c.default.bool,primaryIcon:c.default.bool,outline:c.default.bool,outlineIcon:c.default.bool,outlineSecondary:c.default.bool,outlineSecondaryIcon:c.default.bool,small:c.default.bool,light:c.default.bool,gray:c.default.bool,chip:c.default.bool,rate:c.default.bool,rateSmall:c.default.bool,status:c.default.bool,sale:c.default.bool},p.defaultProps={style:{},textStyle:{},icon:null,primary:!1,primaryIcon:!1,outline:!1,outlineIcon:!1,outlineSecondary:!1,outlineSecondaryIcon:!1,small:!1,light:!1,gray:!1,chip:!1,status:!1,rate:!1,rateSmall:!1,sale:!1}},1641,[1,6,57,15,18,68,1642,1643,1026]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=t(r(d[1])),o=t(r(d[2])),n=r(d[3]),h=t(r(d[4])),f=r(d[5]);t(r(d[6]));function u(t){var h=t.header,u=t.title1,y=t.title2,b=t.title3,p=t.headline,c=t.body1,s=t.body2,S=t.callout,W=t.subhead,T=t.footnote,v=t.caption1,F=t.caption2,L=t.overline,O=t.thin,k=t.ultraLight,x=t.light,_=t.regular,A=t.medium,j=t.semibold,P=t.bold,E=t.heavy,M=t.black,q=t.numberOfLines,w=(t.textAlign,t.style),z=t.children;return o.default.createElement(n.Text,(0,l.default)({style:n.StyleSheet.flatten([h&&f.Typography.header,u&&f.Typography.title1,y&&f.Typography.title2,b&&f.Typography.title3,p&&f.Typography.headline,c&&f.Typography.body1,s&&f.Typography.body2,S&&f.Typography.callout,W&&f.Typography.subhead,T&&f.Typography.footnote,v&&f.Typography.caption1,F&&f.Typography.caption2,L&&f.Typography.overline,O&&n.StyleSheet.flatten({fontWeight:f.FontWeight.thin}),k&&n.StyleSheet.flatten({fontWeight:f.FontWeight.ultraLight}),x&&n.StyleSheet.flatten({fontWeight:f.FontWeight.light}),_&&n.StyleSheet.flatten({fontWeight:f.FontWeight.regular}),A&&n.StyleSheet.flatten({fontWeight:f.FontWeight.medium}),j&&n.StyleSheet.flatten({fontWeight:f.FontWeight.semibold}),P&&n.StyleSheet.flatten({fontWeight:f.FontWeight.bold}),E&&n.StyleSheet.flatten({fontWeight:f.FontWeight.heavy}),M&&n.StyleSheet.flatten({fontWeight:f.FontWeight.black}),w&&w])},t,{numberOfLines:q}),z)}u.propTypes={header:h.default.bool,title1:h.default.bool,title2:h.default.bool,title3:h.default.bool,headline:h.default.bool,body1:h.default.bool,body2:h.default.bool,callout:h.default.bool,subhead:h.default.bool,footnote:h.default.bool,caption1:h.default.bool,caption2:h.default.bool,overline:h.default.bool,thin:h.default.bool,ultraLight:h.default.bool,light:h.default.bool,regular:h.default.bool,medium:h.default.bool,semibold:h.default.bool,bold:h.default.bool,heavy:h.default.bool,black:h.default.bool,numberOfLines:h.default.number,textAlign:h.default.string,style:h.default.oneOfType([h.default.object,h.default.array]),children:h.default.node},u.defaultProps={header:!1,title1:!1,title2:!1,title3:!1,headline:!1,body1:!1,body2:!1,callout:!1,subhead:!1,footnote:!1,caption1:!1,caption2:!1,overline:!1,thin:!1,ultraLight:!1,light:!1,regular:!1,medium:!1,semibold:!1,bold:!1,heavy:!1,black:!1,numberOfLines:10,textAlign:'left',style:{},children:''}},1642,[1,6,15,18,68,1015,1641]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(r(d[1]));var o=r(d[2]),n=r(d[3]),l=r(d[4]),c=o.StyleSheet.create({default:{flexDirection:'row'},primary:{paddingVertical:5,paddingHorizontal:10,borderRadius:17,alignItems:'center',justifyContent:'center'},textPrimary:o.StyleSheet.flatten([n.Typography.caption1,{color:l.Color.whiteColor}]),outline:{paddingVertical:5,paddingHorizontal:10,borderRadius:16,borderWidth:1,alignItems:'center',justifyContent:'center'},textOutline:n.Typography.caption1,outlineSecondary:{paddingVertical:5,paddingHorizontal:10,borderRadius:17,backgroundColor:l.Color.whiteColor,alignItems:'center',justifyContent:'center'},textOutlineSecondary:n.Typography.caption1,small:{paddingHorizontal:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textSmall:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor}]),light:{padding:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textLight:n.Typography.caption2,gray:{padding:5,backgroundColor:l.Color.fieldColor,borderColor:l.Color.fieldColor,alignItems:'center',justifyContent:'center'},textGray:o.StyleSheet.flatten([n.Typography.caption2]),chip:{paddingVertical:4,paddingHorizontal:6,borderRadius:16,alignItems:'center',justifyContent:'center',borderWidth:.5},textChip:n.Typography.overline,status:{paddingVertical:3,paddingHorizontal:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textStatus:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),rate:{paddingVertical:5,paddingHorizontal:10,borderTopLeftRadius:5,borderBottomLeftRadius:5,borderBottomRightRadius:5,alignItems:'center',justifyContent:'center'},textRate:o.StyleSheet.flatten([n.Typography.headline,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),rateSmall:{borderRadius:3,paddingHorizontal:5,alignItems:'center',justifyContent:'center'},textRateSmall:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),sale:{width:50,height:50,borderRadius:25,alignItems:'center',justifyContent:'center'},textSale:o.StyleSheet.flatten([n.Typography.headline,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}])});e.default=c},1643,[1,15,18,1015,1026]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.optionPaiementFacture=e.optionPaiementEcole=e.optionPaiementAbonnementTV=e.optionPaiementCreditTelephonique=e.optionPaiementEauElectricite=e.optionNanoCreditAgentScreen=e.optionNanoCreditScreen=e.optionIdentificationUserScreen=e.optionIdentificationScreen=e.optionDepotUserScreen=e.optionRetraitUserScreen=e.optionRetraitScreen=e.optionDepotScreen=e.optionWalletToBank=e.displayTransactionType=e.transactionHistoryUser=e.transactionHistoryNanoCreditLabel=e.transactionHistoryIlinkLabel=e.transactionHistoryLabel=e.inputCardSource=e.walletActifData=e.paysDestinationData=e.typeIdIDestinataire=e.typeEpargne=e.typeCaution=e.withdrawalMode=e.identityPieces=e.isEmptyObject=e.isIlinkWorldWallet=e.displayToast=e.isNormalInteger=e.cutStringWithoutDot=e.cutString=e.thousandsSeparators=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),c=r(d[4]),p=(r(d[5]),r(d[6]));e.thousandsSeparators=function(t){var n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),n.join(".")};e.cutString=function(t,n){return null===t?' ':t.slice(0,n)+"..."};e.cutStringWithoutDot=function(t,n){return null===t?' ':""+t.slice(0,n)};e.isNormalInteger=function(t){return!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(t)};e.displayToast=function(t){l.default.show(t,{duration:l.default.durations.LONG,position:l.default.positions.BOTTOM,backgroundColor:c.Color.primaryColor,shadow:!0,animation:!0,hideOnPress:!0,delay:0,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}})};e.isIlinkWorldWallet=function(t){return(0,o.default)(t,'ilink')};e.isEmptyObject=function(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return JSON.stringify(t)===JSON.stringify({})};e.identityPieces=function(){return[{name:n.default.t('IDENTITY_CARD')},{name:n.default.t('PASSEPORT')},{name:n.default.t('OTHER_IDENTITY_PIECE')}]};e.withdrawalMode=function(){return[{name:n.default.t('WITHDRAWAL_IN_CASH')},{name:n.default.t('TRANSFER_IN_ACCOUNT')}]};e.typeCaution=function(){return[{name:n.default.t('GROUP')},{name:n.default.t('INDIVIDUAL')}]};e.typeEpargne=function(){return[{name:n.default.t('SIMPLE')},{name:n.default.t('BLOCKED')}]};e.typeIdIDestinataire=function(){return[{name:n.default.t('PHONE')},{name:n.default.t('CODE_WALLET')}]};e.paysDestinationData=function(){return[{name:'Cameroun'},{name:'Gabon'},{name:'Congo'},{name:'S\xe9n\xe9gal'},{name:'C\xf4te d\'Ivoire'}]};e.walletActifData=function(){return[{name:'UBA'},{name:'SOGO'},{name:'Small World'},{name:'UBA fs iLink'},{name:'iLink World'}]};e.inputCardSource=function(){return[{name:n.default.t('NUMERO_DE_SERIE'),value:'serial-number'},{name:n.default.t('CREDIT_CARD'),value:'credit-card'}]};e.transactionHistoryLabel=function(){return[{icon:'inbox-arrow-up',label:'Source'},{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryIlinkLabel=function(){return[{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryNanoCreditLabel=function(){return[{icon:'cash',label:'Type'},{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryUser=function(){return[{type:'depot',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'},{type:'retrait',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'}]};e.displayTransactionType=function(t){return(0,o.default)(t,'E')?n.default.t('SAVING'):n.default.t('NANO_CREDIT')};var s={title:n.default.t('DEPOSIT_TO_BANK'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 1'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 2'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 3'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 4'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 5'},{type:'WALLET_TO_BANK_USER',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 6'}]};e.optionWalletToBank=s;var E={type:'DEPOT',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.envoieCashVersWalletAgent,icon:'wallet',title:n.default.t('DEPOSIT_CASH_TO_WALLET')},{screen:p.envoieCashVersAutreWalletAgent,icon:'cash-refund',title:n.default.t('DEPOSIT_CASH_TO_OTHER_WALLET')},{screen:p.envoieCashVersCarteAgent,icon:'credit-card',title:n.default.t('DEPOSIT_CASH_TO_VISA')},{screen:p.envoiCashVersCashAgent,icon:'cash-multiple',title:n.default.t('DEPOSIT_CASH_TO_CASH')},{screen:p.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_CASH_TO_BANK'),subScreenOption:s,type:'WALLET_TO_BANK'}]};e.optionDepotScreen=E;var u={type:'RETRAIT',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.retraitEnCashAgent,icon:'cash',title:n.default.t('WITHDRAWAL_IN_CASH')},{screen:p.retraitCarteVersCashAgent,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_CASH_AGENT')}]};e.optionRetraitScreen=u;var T={type:'RETRAIT_USER',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.retraitWalletVersCashUser,icon:'wallet',title:n.default.t('WITHDRAWAL_WALLET_TO_CASH')},{screen:p.retraitCarteVersCashUser,icon:'credit-card-refund',title:n.default.t('WITHDRAWAL_CARD_TO_CASH')},{screen:p.retraitCarteVersWalletUser,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_WALLET')}]};e.optionRetraitUserScreen=T;var O={type:'DEPOT_USER',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.envoieWalletToWalletUser,icon:'wallet',title:n.default.t('DEPOSIT_WALLET_TO_WALLET')},{screen:p.envoieWalletToCashUser,icon:'cash-refund',title:n.default.t('DEPOSIT_TO_CASH')},{screen:p.envoieWalletToCardUser,icon:'credit-card',title:n.default.t('DEPOSIT_TO_CARD')},{type:'WALLET_TO_BANK',screen:p.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_TO_BANK'),subScreenOption:s}]};e.optionDepotUserScreen=O;var A={type:'IDENTIFICATION',title:n.default.t('IDENTIFICATION'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.createIdentification,icon:'pencil-plus',title:n.default.t('CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN')},{screen:p.validateIdentification,icon:'check-circle',title:n.default.t('VALIDATE_IDENTIFICATION_DESCRIPTION')}]};e.optionIdentificationScreen=A;var _={type:'IDENTIFICATION',title:n.default.t('IDENTIFICATION'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.createIdentificationUser,icon:'pencil-plus',title:n.default.t('CREATE_MY_IDENTIFICATION')},{screen:p.modifyIdentificationUser,icon:'pencil',title:n.default.t('MODIFY_IDENTIFICATION')}]};e.optionIdentificationUserScreen=_;var I={type:'NANO_CREDIT',title:n.default.t('NANO_CREDIT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.createGroupNanoCredit,icon:'account-multiple',title:n.default.t('MANAGE_GROUP'),screen:p.groupNanoCredit},{title:n.default.t('DEMAND_NANO_CREDIT'),screen:p.askNanoCredit,icon:'cash'},{title:n.default.t('REFUND_NANO_CREDIT'),screen:p.refundNanoCreditUser,icon:"cash-refund"},{screen:p.epargnerArgentUser,icon:'cash-register',title:n.default.t('SAVE_MONEY')},{screen:p.casserEpargneUser,icon:'cash-multiple',title:n.default.t('BREAK_EPARGNE')}]};e.optionNanoCreditScreen=I;var N={type:'NANO_CREDIT',title:n.default.t('NANO_CREDIT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.cautionNanoCreditAgent,icon:'cash',title:n.default.t('CAUTION_CREDIT')}]};e.optionNanoCreditAgentScreen=N;var k={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 1'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 2'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 3'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 4'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 5'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 6'}]};e.optionPaiementEauElectricite=k;var C={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 1'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 2'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 3'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 4'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 5'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 6'}]};e.optionPaiementCreditTelephonique=C;var f={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 1'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 2'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 3'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 4'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 5'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 6'}]};e.optionPaiementAbonnementTV=f;var b={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 1'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 2'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 3'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 4'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 5'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 6'}]};e.optionPaiementEcole=b;var S={type:'FACTURE',title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{type:'FACTURE_WATER_ELECTRICITY',icon:'water',title:'Paiement eau/\xe9lectricit\xe9',screen:p.operateurOptionSelect,subScreenOption:k},{type:'FACTURE_SCHOOL',icon:'school',title:'Paiement \xe9cole',screen:p.operateurOptionSelect,subScreenOption:b},{type:'FACTURE_PHONE',icon:'phone-classic',title:'Paiement cr\xe9dit t\xe9l\xe9phonique',screen:p.operateurOptionSelect,subScreenOption:C},{type:'FACTURE_TV',icon:'television-classic',title:'Paiement abonnement TV',screen:p.operateurOptionSelect,subScreenOption:f}]};e.optionPaiementFacture=S},1644,[1,720,689,1616,1026,1645,815]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.optionPaiementFacture=e.optionPaiementEcole=e.optionPaiementAbonnementTV=e.optionPaiementCreditTelephonique=e.optionPaiementEauElectricite=e.optionNanoCreditAgentScreen=e.optionNanoCreditScreen=e.optionIdentificationUserScreen=e.optionIdentificationScreen=e.optionDepotUserScreen=e.optionRetraitUserScreen=e.optionRetraitScreen=e.optionDepotScreen=e.optionWalletToBank=e.displayTransactionType=e.transactionHistoryUser=e.transactionHistoryNanoCreditLabel=e.transactionHistoryIlinkLabel=e.transactionHistoryLabel=e.inputCardSource=e.walletActifData=e.paysDestinationData=e.typeIdIDestinataire=e.typeEpargne=e.typeCaution=e.withdrawalMode=e.identityPieces=e.isEmptyObject=e.isIlinkWorldWallet=e.displayToast=e.isNormalInteger=e.cutStringWithoutDot=e.cutString=e.thousandsSeparators=void 0;t(r(d[1]));var n=t(r(d[2])),o=t(r(d[3])),l=r(d[4]),c=(r(d[5]),r(d[6]));e.thousandsSeparators=function(t){var n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),n.join(".")};e.cutString=function(t,n){return null===t?' ':t.slice(0,n)+"..."};e.cutStringWithoutDot=function(t,n){return null===t?' ':""+t.slice(0,n)};e.isNormalInteger=function(t){return!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(t)};e.displayToast=function(t){o.default.show(t,{duration:o.default.durations.LONG,position:o.default.positions.BOTTOM,backgroundColor:l.Color.primaryColor,shadow:!0,animation:!0,hideOnPress:!0,delay:0,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}})};e.isIlinkWorldWallet=function(t){return(0,n.default)(t,'ilink')};e.isEmptyObject=function(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return JSON.stringify(t)===JSON.stringify({})};e.identityPieces=function(){return[{name:'IDENTITY_CARD'},{name:'PASSEPORT'},{name:'OTHER_IDENTITY_PIECE'}]};e.withdrawalMode=function(){return[{name:'WITHDRAWAL_IN_CASH'},{name:'TRANSFER_IN_ACCOUNT'}]};e.typeCaution=function(){return[{name:'GROUP'},{name:'INDIVIDUAL'}]};e.typeEpargne=function(){return[{name:'SIMPLE'},{name:'BLOCKED'}]};e.typeIdIDestinataire=function(){return[{name:'PHONE'},{name:'CODE_WALLET'}]};e.paysDestinationData=function(){return[{name:'Cameroun'},{name:'Gabon'},{name:'Congo'},{name:'S\xe9n\xe9gal'},{name:'C\xf4te d\'Ivoire'}]};e.walletActifData=function(){return[{name:'UBA'},{name:'SOGO'},{name:'Small World'},{name:'UBA fs iLink'},{name:'iLink World'}]};e.inputCardSource=function(){return[{name:'NUMERO_DE_SERIE',value:'serial-number'},{name:'CREDIT_CARD',value:'credit-card'}]};e.transactionHistoryLabel=function(){return[{icon:'inbox-arrow-up',label:'Source'},{icon:'cash',label:'AMOUNT_LABEL'},{icon:'account-arrow-right',label:'DESTINATAIRE'},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryIlinkLabel=function(){return[{icon:'cash',label:'AMOUNT_LABEL'},{icon:'account-arrow-right',label:'DESTINATAIRE'},{icon:'calendar-clock',label:'DATE'}]};e.transactionHistoryNanoCreditLabel=function(){return[{icon:'cash',label:'Type'},{icon:'cash',label:'AMOUNT_LABEL'},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryUser=function(){return[{type:'depot',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'},{type:'retrait',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'}]};e.displayTransactionType=function(t){return(0,n.default)(t,'E')?'SAVING':'NANO_CREDIT'};var p={title:'DEPOSIT_TO_BANK',subTitle:'CHOOSE_OPERATOR',options:[{type:'WALLET_TO_BANK_USER',screen:c.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 1'},{type:'WALLET_TO_BANK_USER',screen:c.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 2'},{type:'WALLET_TO_BANK_USER',screen:c.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 3'},{type:'WALLET_TO_BANK_USER',screen:c.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 4'},{type:'WALLET_TO_BANK_USER',screen:c.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 5'},{type:'WALLET_TO_BANK_USER',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 6'}]};e.optionWalletToBank=p;var E={type:'DEPOT',title:'ENVOIE_ARGENT',subTitle:'CHOOSE_OPTION',options:[{screen:c.envoieCashVersWalletAgent,icon:'wallet',title:'DEPOSIT_CASH_TO_WALLET'},{screen:c.envoieCashVersAutreWalletAgent,icon:'cash-refund',title:'DEPOSIT_CASH_TO_OTHER_WALLET'},{screen:c.envoieCashVersCarteAgent,icon:'credit-card',title:'DEPOSIT_CASH_TO_VISA'},{screen:c.envoiCashVersCashAgent,icon:'cash-multiple',title:'DEPOSIT_CASH_TO_CASH'},{screen:c.operateurOptionSelect,icon:'bank-transfer-in',title:'DEPOSIT_CASH_TO_BANK',subScreenOption:p,type:'WALLET_TO_BANK'}]};e.optionDepotScreen=E;var s={type:'RETRAIT',title:'RETRAIT_ARGENT',subTitle:'CHOOSE_OPTION',options:[{screen:c.retraitEnCashAgent,icon:'cash',title:'WITHDRAWAL_IN_CASH'},{screen:c.retraitCarteVersCashAgent,icon:'credit-card',title:'WITHDRAWAL_CARD_TO_CASH_AGENT'}]};e.optionRetraitScreen=s;var T={type:'RETRAIT_USER',title:'RETRAIT_ARGENT',subTitle:'CHOOSE_OPTION',options:[{screen:c.retraitWalletVersCashUser,icon:'wallet',title:'WITHDRAWAL_WALLET_TO_CASH'},{screen:c.retraitCarteVersCashUser,icon:'credit-card-refund',title:'WITHDRAWAL_CARD_TO_CASH'},{screen:c.retraitCarteVersWalletUser,icon:'credit-card',title:'WITHDRAWAL_CARD_TO_WALLET'}]};e.optionRetraitUserScreen=T;var u={type:'DEPOT_USER',title:'ENVOIE_ARGENT',subTitle:'CHOOSE_OPTION',options:[{screen:c.envoieWalletToWalletUser,icon:'wallet',title:'DEPOSIT_WALLET_TO_WALLET'},{screen:c.envoieWalletToCashUser,icon:'cash-refund',title:'DEPOSIT_TO_CASH'},{screen:c.envoieWalletToCardUser,icon:'credit-card',title:'DEPOSIT_TO_CARD'},{type:'WALLET_TO_BANK',screen:c.operateurOptionSelect,icon:'bank-transfer-in',title:'DEPOSIT_TO_BANK',subScreenOption:p}]};e.optionDepotUserScreen=u;var O={type:'IDENTIFICATION',title:'IDENTIFICATION',subTitle:'CHOOSE_OPTION',options:[{screen:c.createIdentification,icon:'pencil-plus',title:'CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN'},{screen:c.validateIdentification,icon:'check-circle',title:'VALIDATE_IDENTIFICATION_DESCRIPTION'}]};e.optionIdentificationScreen=O;var A={type:'IDENTIFICATION',title:'IDENTIFICATION',subTitle:'CHOOSE_OPTION',options:[{screen:c.createIdentificationUser,icon:'pencil-plus',title:'CREATE_MY_IDENTIFICATION'},{screen:c.modifyIdentificationUser,icon:'pencil',title:'MODIFY_IDENTIFICATION'}]};e.optionIdentificationUserScreen=A;var _={type:'NANO_CREDIT',title:'NANO_CREDIT',subTitle:'CHOOSE_OPTION',options:[{screen:c.createGroupNanoCredit,icon:'account-multiple',title:'MANAGE_GROUP',screen:c.groupNanoCredit},{title:'DEMAND_NANO_CREDIT',screen:c.askNanoCredit,icon:'cash'},{title:'REFUND_NANO_CREDIT',screen:c.refundNanoCreditUser,icon:"cash-refund"},{screen:c.epargnerArgentUser,icon:'cash-register',title:'SAVE_MONEY'},{screen:c.casserEpargneUser,icon:'cash-multiple',title:'BREAK_EPARGNE'}]};e.optionNanoCreditScreen=_;var I={type:'NANO_CREDIT',title:'NANO_CREDIT',subTitle:'CHOOSE_OPTION',options:[{screen:c.cautionNanoCreditAgent,icon:'cash',title:'CAUTION_CREDIT'}]};e.optionNanoCreditAgentScreen=I;var N={title:'PAIEMENT_FACTURE',subTitle:'CHOOSE_OPERATOR',options:[{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 1'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 2'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 3'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 4'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 5'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 6'}]};e.optionPaiementEauElectricite=N;var k={title:'PAIEMENT_FACTURE',subTitle:'CHOOSE_OPERATOR',options:[{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 1'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 2'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 3'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 4'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 5'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 6'}]};e.optionPaiementCreditTelephonique=k;var C={title:'PAIEMENT_FACTURE',subTitle:'CHOOSE_OPERATOR',options:[{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 1'},{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 2'},{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 3'},{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 4'},{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 5'},{type:'PAIEMENT_ABONNEMENT_TV',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 6'}]};e.optionPaiementAbonnementTV=C;var b={title:'PAIEMENT_FACTURE',subTitle:'CHOOSE_OPERATOR',options:[{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 1'},{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 2'},{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 3'},{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 4'},{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 5'},{type:'PAIEMENT_ECOLE',screen:c.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 6'}]};e.optionPaiementEcole=b;var S={type:'FACTURE',title:'PAIEMENT_FACTURE',subTitle:'CHOOSE_OPTION',options:[{type:'FACTURE_WATER_ELECTRICITY',icon:'water',title:'PAIEMENT_EAU_ELECTRICITY',screen:c.operateurOptionSelect,subScreenOption:N},{type:'FACTURE_SCHOOL',icon:'school',title:'PAIEMENT_ECOLE',screen:c.operateurOptionSelect,subScreenOption:b},{type:'FACTURE_PHONE',icon:'phone-classic',title:'PAIEMENT_CREDIT_TELEPHONIQUE',screen:c.operateurOptionSelect,subScreenOption:k},{type:'FACTURE_TV',icon:'television-classic',title:'PAIEMENT_ABONNEMENT_TV',screen:c.operateurOptionSelect,subScreenOption:C}]};e.optionPaiementFacture=S},1644,[1,720,689,1616,1026,1645,815]); __d(function(g,r,i,a,m,e,d){var n,o;n=this,o=function(){var n=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial"}'),o=JSON.parse('{"vi":{"\u0110":"D","\u0111":"d"}}');function t(t,u){if('string'!=typeof t)throw new Error('slugify: string argument expected');var s=o[(u='string'==typeof u?{replacement:u}:u||{}).locale]||{},c=u.replacement||'-',l=t.split('').reduce(function(o,t){return o+(s[t]||n[t]||t)},'').replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,'').trim().replace(new RegExp('[\\s'+c+']+','g'),c);return u.lower&&(l=l.toLowerCase()),u.strict&&(l=l.replace(new RegExp('[^a-zA-Z0-9'+c+']','g'),'')),l}return t.extend=function(o){for(var t in o)n[t]=o[t]},t},'object'==typeof e?(m.exports=o(),m.exports.default=o()):'function'==typeof define&&define.amd?define(o):n.slugify=o()},1645,[]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){var c=((t||0===t?t:'')+'').split('.');return c.length&&(c[0]=c[0].replace(/(\d)(?=(\d{3})+\b)/g,'$1'+(n||','))),c.join('.')}},1646,[]); __d(function(a,i,k,r,t,o,n){t.exports={v:"4.7.0",fr:25,ip:0,op:50,w:120,h:120,nm:"Comp 1",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:4,nm:"ruoi",ks:{o:{a:1,k:[{i:{x:[.833],y:[.967]},o:{x:[.167],y:[.033]},n:["0p833_0p967_0p167_0p033"],t:35,s:[100],e:[0]},{t:49}]},r:{a:0,k:0},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:0,y:0},n:"0p833_0p833_0_0",t:0,s:[57.361,61.016,0],e:[57.699,41.796,0],to:[-4.67500305175781,-4.12800598144531,0],ti:[-13.9099960327148,5.27300262451172,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:10.219,s:[57.699,41.796,0],e:[79.084,33.982,0],to:[12.8159942626953,-4.85800170898438,0],ti:[-4.54498291015625,3.73400115966797,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:19.445,s:[79.084,33.982,0],e:[59.691,9.121,0],to:[6.61601257324219,-5.43799591064453,0],ti:[20.0290069580078,1.20700073242188,0]},{t:35}]},a:{a:0,k:[60.531,10.945,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-.994,0],[0,-.994],[.995,0],[0,.994]],o:[[.995,0],[0,.994],[-.994,0],[0,-.994]],v:[[-.001,-1.801],[1.801,-.001],[-.001,1.801],[-1.801,-.001]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[62.4,13.144],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.422,0],[0,-1.422],[1.421,0],[0,1.422]],o:[[1.421,0],[0,1.422],[-1.422,0],[0,-1.422]],v:[[.001,-2.574],[2.574,0],[.001,2.574],[-2.574,0]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},w:{a:0,k:.7},lc:1,lj:1,ml:10,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[64.145,9.606],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,ix:2,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.996,0],[0,-1.996],[1.996,0],[0,1.996]],o:[[1.996,0],[0,1.996],[-1.996,0],[0,-1.996]],v:[[0,-3.614],[3.614,0],[0,3.614],[-3.614,0]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},w:{a:0,k:.7},lc:1,lj:1,ml:10,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[57.957,10.552],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:3,cix:2,ix:3,mn:"ADBE Vector Group"},{ty:"tr",p:{a:0,k:[60.531,10.941],ix:2},a:{a:0,k:[60.531,10.941],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"ruoi",np:3,cix:2,ix:1,mn:"ADBE Vector Group"}],ip:0,op:50,st:0,bm:0,sr:1},{ddd:0,ind:2,ty:4,nm:"Shape Layer 2",ks:{o:{a:1,k:[{i:{x:[.833],y:[.967]},o:{x:[.167],y:[.033]},n:["0p833_0p967_0p167_0p033"],t:35,s:[100],e:[0]},{t:49}]},r:{a:0,k:0},p:{a:0,k:[-.75,-.75,0]},a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-13.91,5.273],[-4.545,3.734],[20.029,1.207]],o:[[-4.675,-4.128],[12.816,-4.858],[6.616,-5.438],[0,0]],v:[[-7.383,24.76],[-7.046,5.54],[14.34,-2.273],[-3.178,-24.76]],c:!1}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.627,.627,.627,1]},o:{a:0,k:100},w:{a:0,k:1},lc:2,lj:2,d:[{n:"d",nm:"dash",v:{a:0,k:2.028}},{n:"g",nm:"gap",v:{a:0,k:2.028}},{n:"o",nm:"offset",v:{a:0,k:0}}],nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"tr",p:{a:0,k:[67.87,37.631],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.833],y:[.953]},o:{x:[.167],y:[.033]},n:["0p833_0p953_0p167_0p033"],t:0,s:[0],e:[100]},{t:35}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim"}],ip:0,op:50,st:0,bm:0,sr:1},{ddd:0,ind:3,ty:4,nm:"im_emptyBox Outlines",ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[60,60,0]},a:{a:0,k:[60,60,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-.001,-16.607],[-32.143,-.002],[-.001,16.607],[32.144,-.002]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.8,.82,.851,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,55.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[12.856,-23.249],[0,-16.605],[-12.857,-23.249],[-45,-6.641],[-32.144,.001],[-45,6.645],[-12.857,23.249],[0,16.609],[12.856,23.249],[45,6.645],[32.143,.001],[45,-6.641]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.957,.957,.957,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,55.748],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 8",np:2,cix:2,ix:2,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-16.072,24.171],[16.072,11.312],[16.072,-24.171],[-16.072,-24.171]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.902,.914,.929,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[76.072,83.33],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,ix:3,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[-32.143,-24.171],[-32.143,11.311],[-.001,24.171],[32.144,11.311],[32.144,-24.171]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.8,.82,.851,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,83.33],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,ix:4,mn:"ADBE Vector Group"},{ty:"tr",p:{a:0,k:[60,60.186],ix:2},a:{a:0,k:[60,60.186],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"box",np:4,cix:2,ix:1,mn:"ADBE Vector Group"}],ip:0,op:50,st:0,bm:0,sr:1}]}},1647,[]); @@ -1679,7 +1679,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'}})},1673,[4,1,7,57,8,9,10,12,13,15,68,18,1668]); __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)},1674,[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,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}})},1676,[4,1,6,8,9,10,12,11,13,689,553,1030,1032,1033,1034,1035,1036,1037,1038,15,18,936,720,535,1677,878,876,1039,1056,1641,1026,1625,1015,1014,774,1644,1688,744,1607,1690,1691,719,1169,1646,815,1645,816,1692,1693,1694,1695]); +__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,h.default.t('HISTORY_DETAIL')),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,h.default.t('HISTORY_DETAIL')),(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]},h.default.t((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})},h.default.t(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})},h.default.t(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}})},1676,[4,1,6,8,9,10,12,11,13,689,553,1030,1032,1033,1034,1035,1036,1037,1038,15,18,936,720,535,1677,878,876,1039,1056,1641,1026,1625,1015,1014,774,1644,1688,744,1607,1690,1691,719,1169,1646,815,1645,816,1692,1693,1694,1695]); __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]))},1677,[1,1678,1683,1682,1686,1687]); __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}})},1679,[4,1,8,9,10,12,11,13,15,18,1680,1525,1681]); @@ -1704,7 +1704,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.I __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/datas/img",width:1920,height:1280,scales:[1],hash:"e6ade7cb50f92b48c551a0e51bbb5cff",name:"bgprimarycolor",type:"png"})},1698,[175]); __d(function(a,e,s,t,r,h,i){r.exports=e(i[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/datas/img",width:1920,height:1280,scales:[1],hash:"8a6b70645b2552a2a8ff53ee313a20a0",name:"room-6",type:"jpg"})},1699,[175]); __d(function(g,r,i,a,m,e,d){"use strict";e.__esModule=!0,e.PersistGate=void 0;var t=(function(t){if(t&&t.__esModule)return t;var o={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var s=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};s.get||s.set?Object.defineProperty(o,n,s):o[n]=t[n]}return o.default=t,o})(r(d[0]));function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t})(t)}function n(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function s(t,o){for(var n=0;n\/?~]/.test(t)},o.isMontantValid=function(){var t=o.state.montant;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:R.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:o.isNormalInteger(t)?t>parseInt(o.state.comptePrincipal)?{errorMessage:R.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:R.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},o.isNumeroSerieValid=function(){var t=o.state.numeroSerie;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}:o.isNormalInteger(t)?t.length>11?{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}},o.isCreditCardValid=function(){var t=o.state.creditCardInput,l=[];return void 0!==t.status?('incomplete'===t.status.cvc&&l.push(R.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&l.push(R.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&l.push(R.default.t('CARD_NUMBER_ERROR'))):l.push(R.default.t('THIS_FIELD_IS_REQUIRED')),l},o.commissionsLoading=function(){return E.default.createElement(S.ProgressDialog,{visible:o.props.loadingGetCommission,title:R.default.t('LOADING'),message:R.default.t('LOADING_INFO')})},o.modalConfirmTransaction=function(t){var l=t.response.commission,n=t.response.montant_calcule;return console.log("DATA SEND TO CONFIRM DIALOG",t),E.default.createElement(T.default.Container,{useNativeDriver:!0,visible:o.state.isModalConfirmVisible},E.default.createElement(T.default.Title,null,R.default.t('CONFIRM_DEPOSIT')),E.default.createElement(y.View,null,E.default.createElement(y.View,{style:[G.blockView,{borderBottomColor:L.Color.borderColor}]},E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{style:[D.default.body2]},R.default.t('AMOUNT'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},o.state.montant))),E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{tyle:[w.Typography.body2]},R.default.t('COMMISSION_FEES'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},l)))),E.default.createElement(y.View,{style:{paddingVertical:10}},E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{tyle:[w.Typography.body2]},R.default.t('TOTAL'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},n))))),E.default.createElement(T.default.Button,{bold:!0,label:R.default.t('CANCEL_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1})}}),E.default.createElement(T.default.Button,{bold:!0,label:R.default.t('SUBMIT_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),o.props.walletCommissionAmountReset(),(0,p.default)(o.state.facade,'front')?o.props.depositAction({numCarte:o.state.creditCardInput.values.number.replace(/\s/g,''),cvv:o.state.creditCardInput.values.cvc,expiration_date:o.state.creditCardInput.values.expiry,type:"credit",montant:o.state.montant,id_wallet:o.state.id,facade:o.state.facade}):o.props.depositAction({numCarte:o.state.numeroSerie,type:"credit",montant:o.state.montant,id_wallet:o.state.id,facade:o.state.facade})}}))},o.onSubmitDeposit=function(){var t=o.state.creditCardInput;(0,p.default)(o.state.facade,'back')?o.isMontantValid().isValid&&o.isNumeroSerieValid().isValid&&o.state.montant.length>0&&(o.setState({numCarte:o.state.numeroSerie}),o.props.getWalletCommissionAmount({type:"credit",montant:o.state.montant,id_wallet:o.state.id})):o.isMontantValid().isValid&&t.valid&&o.state.montant.length>0?(o.setState({numCarte:parseInt(t.values.number.replace(/ /g,' ')),cvv:t.values.cvc,expiration_date:t.values.expiry}),o.props.getWalletCommissionAmount({type:"credit",montant:o.state.montant,id_wallet:o.state.id})):t.valid||o.setState({displayCardError:!0}),o.setState({isSubmitClick:!0})},o.renderDialogGetCommissionResponse=function(){var t=o.props.errorGetCommission;null!==t&&void 0!==t.data&&y.Alert.alert(R.default.t("ERROR_LABLE"),t.data.error,[{text:R.default.t("OK"),onPress:function(){}}],{cancelable:!1})},o.isHasError=function(){var t=o.props,l=t.error,n=t.result;if(o.state.isDataSubmit)return null!==l?(void 0!==l.data&&(y.Alert.alert(R.default.t("ERROR_LABEL"),l.data.error,[{text:R.default.t("OK"),onPress:function(){}}],{cancelable:!1}),o.props.navigation.state.params.onGoBack(),o.props.navigation.pop()),null):null!==n?(setTimeout(function(){o.props.resetWalletListDetailReducer(),o.props.navigation.state.params.onGoBack(),o.props.navigation.pop()},1500),E.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:(0,A.responsiveWidth)(100),height:(0,A.responsiveHeight)(100),flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(C.default,{style:G.lottie,source:r(d[38]),autoPlay:!0,loop:!0}))):null},o.state={type:"credit",montant:'',numeroSerie:'',numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},comptePrincipal:o.props.navigation.state.params.wallet.balance_princ,id:o.props.navigation.state.params.wallet.id,isModalConfirmVisible:!1,isDataSubmit:!1,isSubmitClick:!1,displayCardError:!1,inputCardSource:(0,N.inputCardSource)(),isDisplaySerialTextInput:!0,facade:"back"},o.props.walletCommissionAmountReset(),o.props.depositActionReset(),M.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,c.default)(o))),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentWillReceiveProps",value:function(t){null!=t.resultGetCommission&&void 0!==t.resultGetCommission.response&&(t.loadingGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:R.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var l=this.props.resultGetCommission;return E.default.createElement(_.Provider,null,E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.StatusBar,{backgroundColor:L.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),E.default.createElement(_.Appbar.Header,{dark:!0,style:{backgroundColor:L.Color.primaryColor}},E.default.createElement(_.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),E.default.createElement(_.Appbar.Content,{title:R.default.t('MAKE_DEPOSIT')})),E.default.createElement(y.View,{style:[G.container]},null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),this.isHasError(),this.commissionsLoading(),this.state.isSubmitClick&&this.renderDialogGetCommissionResponse(),E.default.createElement(y.ScrollView,{style:{padding:20}},E.default.createElement(y.View,{style:{marginTop:20,marginRight:20,marginLeft:20,marginBottom:10}},E.default.createElement(y.Text,{style:{fontWeight:'bold'}},R.default.t('CHANGE_SOURCE_CARD')),E.default.createElement(v.Dropdown,{containerStyle:{marginTop:-20},value:"serial-number",data:this.state.inputCardSource,onChangeText:function(l,n,o){t.setState({isDisplaySerialTextInput:(0,p.default)(l,'serial-number'),facade:(0,p.default)(l,'serial-number')?'back':'front'})},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.name}})),!this.state.isDisplaySerialTextInput&&E.default.createElement(y.View,{style:{marginTop:10}},E.default.createElement(h.CreditCardInput,{validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,labels:{number:R.default.t('CARD_NUMBER_LABEL'),expiry:R.default.t('CARD_EXPIRY_LABEL'),cvc:R.default.t('CARD_CVC_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return E.default.createElement(y.Text,{style:{color:'red',marginLeft:15}},t)})),this.state.isDisplaySerialTextInput&&E.default.createElement(y.View,{style:{marginTop:10,marginRight:20,marginLeft:20}},E.default.createElement(x.default,{borderBottomColor:this.isNumeroSerieValid.isValid?'red':'black',value:this.state.numeroSerie,keyboardType:"numeric",label:R.default.t('NUMERO_DE_SERIE'),style:{marginTop:10},placeholder:R.default.t('NUMERO_DE_SERIE_DESCRIPTION'),onChangeText:function(l){t.setState({numeroSerie:l}),t.isNumeroSerieValid()}}),!this.isNumeroSerieValid().isValid&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},this.isNumeroSerieValid().errorMessage),this.state.isSubmitClick&&0===this.state.numeroSerie.length&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},R.default.t('ENTER_VALID_SERIAL_NUMBER')),E.default.createElement(y.Text,null)),E.default.createElement(y.View,{style:{marginTop:10,marginRight:20,marginLeft:20,marginBottom:10}},E.default.createElement(x.default,{borderBottomColor:this.isMontantValid.isValid?'red':'black',value:this.state.montant,keyboardType:"numeric",label:R.default.t('AMOUNT_LABEL'),style:{marginTop:10},placeholder:R.default.t('AMOUNT_LABEL_DESCRIPTION'),onChangeText:function(l){t.setState({montant:l}),t.isMontantValid()}}),!this.isMontantValid().isValid&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},this.isMontantValid().errorMessage),this.state.isSubmitClick&&0===this.state.montant.length&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},R.default.t('PLEASE_ENTER_THE_AMOUNT')),E.default.createElement(y.Text,null)),E.default.createElement(y.View,{style:{margin:10}},E.default.createElement(I.default,{loading:this.props.loading,outline:!0,onPress:function(){return t.onSubmitDeposit()}},R.default.t('VALIDATE')))))))}}]),l})(E.Component));k.navigatorStyle={navBarBackgroundColor:L.Color.accentLightColor,statusBarColor:L.Color.accentColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},k.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465'}};var P=(0,V.connect)(function(t){return{loading:t.depositReducer.loading,result:t.depositReducer.result,error:t.depositReducer.error,loadingGetCommission:t.walletGetCommission.loadingGetCommission,resultGetCommission:t.walletGetCommission.resultGetCommission,errorGetCommission:t.walletGetCommission.errorGetCommission}},function(t){return(0,b.bindActionCreators)({depositAction:B.depositAction,getWalletCommissionAmount:O.getWalletCommissionAmount,walletCommissionAmountReset:O.walletCommissionAmountReset,resetWalletListDetailReducer:O.resetWalletListDetailReducer,depositActionReset:B.depositActionReset},t)})(k);e.default=P;var G=y.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.containerBackgroundColor},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:15,marginTop:10},contentButtonBottom:{borderTopWidth:1,paddingVertical:10,paddingHorizontal:20,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},blockView:{paddingVertical:10,borderBottomWidth:1},lottie:{width:248,height:248}})},1701,[4,1,8,9,10,12,11,13,689,840,1030,1032,1034,1035,1036,1037,1038,15,18,1702,1625,720,973,1179,535,1513,1039,1056,1767,1769,1770,1026,1015,774,1644,1688,1607,1169,1771]); +__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])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),p=l(r(d[8])),C=l(r(d[9]));r(d[10]),r(d[11]),r(d[12]),r(d[13]),r(d[14]),r(d[15]),r(d[16]);var E=t(r(d[17])),y=r(d[18]),h=r(d[19]),T=l(r(d[20])),R=l(r(d[21])),v=r(d[22]),_=r(d[23]),A=r(d[24]),S=r(d[25]),V=r(d[26]),b=r(d[27]),I=l(r(d[28])),x=l(r(d[29])),D=l(r(d[30])),L=r(d[31]),w=r(d[32]),M=r(d[33]),N=r(d[34]),B=r(d[35]),O=r(d[36]),k=(r(d[37]),y.Dimensions.get("window").width,(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,s.default)(this,(0,u.default)(l).call(this,t))).onCreditCardChange=function(t){console.log(t),o.setState({creditCardInput:t,displayCardError:!1})},o.isNormalInteger=function(t){return!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(t)},o.isMontantValid=function(){var t=o.state.montant;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:R.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:o.isNormalInteger(t)?t>parseInt(o.state.comptePrincipal)?{errorMessage:R.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:R.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},o.isNumeroSerieValid=function(){var t=o.state.numeroSerie;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}:o.isNormalInteger(t)?t.length>11?{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:R.default.t('ENTER_VALID_SERIAL_NUMBER'),isValid:!1}},o.isCreditCardValid=function(){var t=o.state.creditCardInput,l=[];return void 0!==t.status?('incomplete'===t.status.cvc&&l.push(R.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&l.push(R.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&l.push(R.default.t('CARD_NUMBER_ERROR'))):l.push(R.default.t('THIS_FIELD_IS_REQUIRED')),l},o.commissionsLoading=function(){return E.default.createElement(S.ProgressDialog,{visible:o.props.loadingGetCommission,title:R.default.t('LOADING'),message:R.default.t('LOADING_INFO')})},o.modalConfirmTransaction=function(t){var l=t.response.commission,n=t.response.montant_calcule;return console.log("DATA SEND TO CONFIRM DIALOG",t),E.default.createElement(T.default.Container,{useNativeDriver:!0,visible:o.state.isModalConfirmVisible},E.default.createElement(T.default.Title,null,R.default.t('CONFIRM_DEPOSIT')),E.default.createElement(y.View,null,E.default.createElement(y.View,{style:[G.blockView,{borderBottomColor:L.Color.borderColor}]},E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{style:[D.default.body2]},R.default.t('AMOUNT'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},o.state.montant))),E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{tyle:[w.Typography.body2]},R.default.t('COMMISSION_FEES'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},l)))),E.default.createElement(y.View,{style:{paddingVertical:10}},E.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.Text,{tyle:[w.Typography.body2]},R.default.t('TOTAL'))),E.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},E.default.createElement(y.Text,{style:[w.Typography.caption1,L.Color.grayColor]},n))))),E.default.createElement(T.default.Button,{bold:!0,label:R.default.t('CANCEL_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1})}}),E.default.createElement(T.default.Button,{bold:!0,label:R.default.t('SUBMIT_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),o.props.walletCommissionAmountReset(),(0,p.default)(o.state.facade,'front')?o.props.depositAction({numCarte:o.state.creditCardInput.values.number.replace(/\s/g,''),cvv:o.state.creditCardInput.values.cvc,expiration_date:o.state.creditCardInput.values.expiry,type:"credit",montant:o.state.montant,id_wallet:o.state.id,facade:o.state.facade}):o.props.depositAction({numCarte:o.state.numeroSerie,type:"credit",montant:o.state.montant,id_wallet:o.state.id,facade:o.state.facade})}}))},o.onSubmitDeposit=function(){var t=o.state.creditCardInput;(0,p.default)(o.state.facade,'back')?o.isMontantValid().isValid&&o.isNumeroSerieValid().isValid&&o.state.montant.length>0&&(o.setState({numCarte:o.state.numeroSerie}),o.props.getWalletCommissionAmount({type:"credit",montant:o.state.montant,id_wallet:o.state.id})):o.isMontantValid().isValid&&t.valid&&o.state.montant.length>0?(o.setState({numCarte:parseInt(t.values.number.replace(/ /g,' ')),cvv:t.values.cvc,expiration_date:t.values.expiry}),o.props.getWalletCommissionAmount({type:"credit",montant:o.state.montant,id_wallet:o.state.id})):t.valid||o.setState({displayCardError:!0}),o.setState({isSubmitClick:!0})},o.renderDialogGetCommissionResponse=function(){var t=o.props.errorGetCommission;null!==t&&void 0!==t.data&&y.Alert.alert(R.default.t("ERROR_LABLE"),t.data.error,[{text:R.default.t("OK"),onPress:function(){}}],{cancelable:!1})},o.isHasError=function(){var t=o.props,l=t.error,n=t.result;if(o.state.isDataSubmit)return null!==l?(void 0!==l.data&&(y.Alert.alert(R.default.t("ERROR_LABEL"),l.data.error,[{text:R.default.t("OK"),onPress:function(){}}],{cancelable:!1}),o.props.navigation.state.params.onGoBack(),o.props.navigation.pop()),null):null!==n?(setTimeout(function(){o.props.resetWalletListDetailReducer(),o.props.navigation.state.params.onGoBack(),o.props.navigation.pop()},1500),E.default.createElement(y.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:(0,A.responsiveWidth)(100),height:(0,A.responsiveHeight)(100),flex:1,justifyContent:'center',alignItems:'center'}},E.default.createElement(C.default,{style:G.lottie,source:r(d[38]),autoPlay:!0,loop:!0}))):null},o.state={type:"credit",montant:'',numeroSerie:'',numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},comptePrincipal:o.props.navigation.state.params.wallet.balance_princ,id:o.props.navigation.state.params.wallet.id,isModalConfirmVisible:!1,isDataSubmit:!1,isSubmitClick:!1,displayCardError:!1,inputCardSource:(0,N.inputCardSource)(),isDisplaySerialTextInput:!0,facade:"back"},o.props.walletCommissionAmountReset(),o.props.depositActionReset(),M.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,c.default)(o))),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentWillReceiveProps",value:function(t){null!=t.resultGetCommission&&void 0!==t.resultGetCommission.response&&(t.loadingGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:R.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var l=this.props.resultGetCommission;return E.default.createElement(_.Provider,null,E.default.createElement(y.View,{style:{flex:1}},E.default.createElement(y.StatusBar,{backgroundColor:L.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),E.default.createElement(_.Appbar.Header,{dark:!0,style:{backgroundColor:L.Color.primaryColor}},E.default.createElement(_.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),E.default.createElement(_.Appbar.Content,{title:R.default.t('MAKE_DEPOSIT')})),E.default.createElement(y.View,{style:[G.container]},null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),this.isHasError(),this.commissionsLoading(),this.state.isSubmitClick&&this.renderDialogGetCommissionResponse(),E.default.createElement(y.ScrollView,{style:{padding:20}},E.default.createElement(y.View,{style:{marginTop:20,marginRight:20,marginLeft:20,marginBottom:10}},E.default.createElement(y.Text,{style:{fontWeight:'bold'}},R.default.t('CHANGE_SOURCE_CARD')),E.default.createElement(v.Dropdown,{containerStyle:{marginTop:-20},value:"serial-number",data:this.state.inputCardSource,onChangeText:function(l,n,o){t.setState({isDisplaySerialTextInput:(0,p.default)(l,'serial-number'),facade:(0,p.default)(l,'serial-number')?'back':'front'})},valueExtractor:function(t){return t.value},labelExtractor:function(t){return R.default.t(t.name)}})),!this.state.isDisplaySerialTextInput&&E.default.createElement(y.View,{style:{marginTop:10}},E.default.createElement(h.CreditCardInput,{validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,labels:{number:R.default.t('CARD_NUMBER_LABEL'),expiry:R.default.t('CARD_EXPIRY_LABEL'),cvc:R.default.t('CARD_CVC_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return E.default.createElement(y.Text,{style:{color:'red',marginLeft:15}},t)})),this.state.isDisplaySerialTextInput&&E.default.createElement(y.View,{style:{marginTop:10,marginRight:20,marginLeft:20}},E.default.createElement(x.default,{borderBottomColor:this.isNumeroSerieValid.isValid?'red':'black',value:this.state.numeroSerie,keyboardType:"numeric",label:R.default.t('NUMERO_DE_SERIE'),style:{marginTop:10},placeholder:R.default.t('NUMERO_DE_SERIE_DESCRIPTION'),onChangeText:function(l){t.setState({numeroSerie:l}),t.isNumeroSerieValid()}}),!this.isNumeroSerieValid().isValid&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},this.isNumeroSerieValid().errorMessage),this.state.isSubmitClick&&0===this.state.numeroSerie.length&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},R.default.t('ENTER_VALID_SERIAL_NUMBER')),E.default.createElement(y.Text,null)),E.default.createElement(y.View,{style:{marginTop:10,marginRight:20,marginLeft:20,marginBottom:10}},E.default.createElement(x.default,{borderBottomColor:this.isMontantValid.isValid?'red':'black',value:this.state.montant,keyboardType:"numeric",label:R.default.t('AMOUNT_LABEL'),style:{marginTop:10},placeholder:R.default.t('AMOUNT_LABEL_DESCRIPTION'),onChangeText:function(l){t.setState({montant:l}),t.isMontantValid()}}),!this.isMontantValid().isValid&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},this.isMontantValid().errorMessage),this.state.isSubmitClick&&0===this.state.montant.length&&E.default.createElement(y.Text,{style:{color:'red',marginTop:2}},R.default.t('PLEASE_ENTER_THE_AMOUNT')),E.default.createElement(y.Text,null)),E.default.createElement(y.View,{style:{margin:10}},E.default.createElement(I.default,{loading:this.props.loading,outline:!0,onPress:function(){return t.onSubmitDeposit()}},R.default.t('VALIDATE')))))))}}]),l})(E.Component));k.navigatorStyle={navBarBackgroundColor:L.Color.accentLightColor,statusBarColor:L.Color.accentColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},k.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465'}};var P=(0,V.connect)(function(t){return{loading:t.depositReducer.loading,result:t.depositReducer.result,error:t.depositReducer.error,loadingGetCommission:t.walletGetCommission.loadingGetCommission,resultGetCommission:t.walletGetCommission.resultGetCommission,errorGetCommission:t.walletGetCommission.errorGetCommission}},function(t){return(0,b.bindActionCreators)({depositAction:B.depositAction,getWalletCommissionAmount:O.getWalletCommissionAmount,walletCommissionAmountReset:O.walletCommissionAmountReset,resetWalletListDetailReducer:O.resetWalletListDetailReducer,depositActionReset:B.depositActionReset},t)})(k);e.default=P;var G=y.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.containerBackgroundColor},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:15,marginTop:10},contentButtonBottom:{borderTopWidth:1,paddingVertical:10,paddingHorizontal:20,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},blockView:{paddingVertical:10,borderBottomWidth:1},lottie:{width:248,height:248}})},1701,[4,1,8,9,10,12,11,13,689,840,1030,1032,1034,1035,1036,1037,1038,15,18,1702,1625,720,973,1179,535,1513,1039,1056,1767,1769,1770,1026,1015,774,1644,1688,1607,1169,1771]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},1702,[1703]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.CardView=e.LiteCreditCardInput=e.CreditCardInput=void 0;var u=t(r(d[1])),C=t(r(d[2])),f=t(r(d[3])),l=t(r(d[4])),n=(0,u.default)(C.default);e.CreditCardInput=n;var v=(0,u.default)(f.default);e.LiteCreditCardInput=v;var p=l.default;e.CardView=p},1703,[1,1704,1748,1766,1749]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=(function(o){function b(){var t;return(0,s.default)(this,b),(t=(0,c.default)(this,(0,f.default)(b).call(this))).componentDidMount=function(){return setTimeout(function(){t.props.autoFocus&&t.focus("number")})},t.setValues=function(o){var u=O({},t.state.values,{},o),n=t._displayedFields(),s=new h.default(n).formatValues(u),l=new C.default(n,t.props.validatePostalCode).validateValues(s),c=O({values:s},l);t.setState(c),t.props.onChange(c)},t.focus=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"number";t.setState({focused:o})},t._displayedFields=function(){var o=t.props,u=o.requiresName,n=o.requiresCVC,s=o.requiresPostalCode;return(0,y.default)(["number","expiry",n?"cvc":null,u?"name":null,s?"postalCode":null])},t._focusPreviousField=function(o){var u=t._displayedFields(),n=u.indexOf(o),s=u[n-1];s&&t.focus(s)},t._focusNextField=function(o){if("name"!==o){var u=t._displayedFields(),n=u.indexOf(o),s=u[n+1];s&&t.focus(s)}},t._change=function(o,u){t.setValues((0,n.default)({},o,u))},t._onFocus=function(o){t.focus(o),t.props.onFocus(o)},t.state={focused:"",values:{},status:{}},t}return(0,p.default)(b,o),(0,l.default)(b,[{key:"render",value:function(){return v.default.createElement(t,(0,u.default)({},this.props,this.state,{onFocus:this._onFocus,onChange:this._change,onBecomeEmpty:this._focusPreviousField,onBecomeValid:this._focusNextField}))}}]),b})(v.Component);return o.propTypes={autoFocus:b.default.bool,onChange:b.default.func.isRequired,onFocus:b.default.func,requiresName:b.default.bool,requiresCVC:b.default.bool,requiresPostalCode:b.default.bool,validatePostalCode:b.default.func},o.defaultProps={autoFocus:!1,onChange:function(){},onFocus:function(){},requiresName:!1,requiresCVC:!0,requiresPostalCode:!1,validatePostalCode:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.match(/^\d{6}$/)?"valid":t.length>6?"invalid":"incomplete"}},o},e.InjectedProps=void 0;var u=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),l=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),p=o(r(d[8])),v=t(r(d[9])),b=o(r(d[10])),h=o(r(d[11])),C=o(r(d[12])),y=o(r(d[13]));function P(t,o){var u=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),u.push.apply(u,n)}return u}function O(t){for(var o=1;o\/?~]/.test(t)},n.isMontantValid=function(){var t=n.state.montant;return 0==parseInt(t)||t<0?{errorMessage:h.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:n.isNormalInteger(t)?{errorMessage:'',isValid:!0}:{errorMessage:h.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.isCreditCardValid=function(){var t=n.state.creditCardInput,o=[];return void 0!==t.status?('incomplete'===t.status.cvc&&o.push(h.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&o.push(h.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&o.push(h.default.t('CARD_NUMBER_ERROR'))):o.push(h.default.t('THIS_FIELD_IS_REQUIRED')),o},n.commissionsLoading=function(){return C.default.createElement(T.ProgressDialog,{visible:n.props.loadingGetCommission,title:h.default.t('LOADING'),message:h.default.t('LOADING_INFO')})},n.modalConfirmTransaction=function(t){var o=t.response.commission,l=t.response.montant_calcule;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(v.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},C.default.createElement(v.default.Title,null,h.default.t('CONFIRM_WITHDRAWAL')),C.default.createElement(E.View,null,C.default.createElement(E.View,{style:[k.blockView,{borderBottomColor:x.Color.borderColor}]},C.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(E.View,{style:{flex:1}},C.default.createElement(E.Text,{style:[I.default.body2]},h.default.t('AMOUNT'))),C.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(E.Text,{style:[L.Typography.caption1,x.Color.grayColor]},n.state.montant))),C.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(E.View,{style:{flex:1}},C.default.createElement(E.Text,{tyle:[L.Typography.body2]},h.default.t('COMMISSION_FEES'))),C.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(E.Text,{style:[L.Typography.caption1,x.Color.grayColor]},o)))),C.default.createElement(E.View,{style:{paddingVertical:10}},C.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(E.View,{style:{flex:1}},C.default.createElement(E.Text,{tyle:[L.Typography.body2]},h.default.t('TOTAL'))),C.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(E.Text,{style:[L.Typography.caption1,x.Color.grayColor]},l))))),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.walletCommissionAmountReset(),n.props.depositAction({numCarte:n.state.creditCardInput.values.number.replace(/\s/g,''),cvv:n.state.creditCardInput.values.cvc,expiration_date:n.state.creditCardInput.values.expiry,type:"debit",montant:n.state.montant,id_wallet:n.state.id})}}))},n.onSubmitDeposit=function(){var t=n.state.creditCardInput;n.isMontantValid().isValid&&t.valid&&n.state.montant.length>0?(console.log("Is Montant Valid",n.isMontantValid.isValid),console.log("creditCardInput Valid",t.valid),n.setState({numCarte:parseInt(t.values.number.replace(/ /g,' ')),cvv:t.values.cvc,expiration_date:t.values.expiry}),n.props.getWalletCommissionAmount({type:"debit",montant:n.state.montant,id_wallet:n.state.id})):t.valid||n.setState({displayCardError:!0}),n.setState({isSubmitClick:!0})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(h.default.t("ERROR_LABLE"),t.data.error,[{text:h.default.t("OK"),onPress:function(){}}],{cancelable:!1})},n.isHasError=function(){var t=n.props,o=t.error,l=t.result;if(n.state.isDataSubmit)return null!==o?(void 0!==o.data&&(E.Alert.alert(h.default.t("ERROR_LABEL"),o.data.error,[{text:h.default.t("OK"),onPress:function(){}}],{cancelable:!1}),n.props.navigation.state.params.onGoBack(),n.props.navigation.pop()),null):null!==l?(setTimeout(function(){n.props.navigation.state.params.onGoBack(),n.props.navigation.pop()},1500),C.default.createElement(E.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:(0,A.responsiveWidth)(100),height:(0,A.responsiveHeight)(100),flex:1,justifyContent:'center',alignItems:'center'}},C.default.createElement(f.default,{style:k.lottie,source:r(d[35]),autoPlay:!0,loop:!0}))):null},n.state={type:"debit",montant:'',numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},comptePrincipal:n.props.navigation.state.params.wallet.balance_princ,id:n.props.navigation.state.params.wallet.id,isModalConfirmVisible:!1,isDataSubmit:!1,isSubmitClick:!1,displayCardError:!1},n.props.walletCommissionAmountReset(),n.props.depositActionReset(),console.log("Wallet Params",n.props.navigation.state.params.wallet),D.IlinkEmitter.on("langueChange",n.updateLangue.bind((0,c.default)(n))),n}return(0,p.default)(o,t),(0,n.default)(o,[{key:"componentWillReceiveProps",value:function(t){null!=t.resultGetCommission&&void 0!==t.resultGetCommission.response&&(t.loadingGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var o=this.props,l=(o.error,o.resultGetCommission);return C.default.createElement(b.Provider,null,C.default.createElement(E.View,{style:{flex:1}},C.default.createElement(E.StatusBar,{backgroundColor:x.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),C.default.createElement(b.Appbar.Header,{dark:!0,style:{backgroundColor:x.Color.primaryColor}},C.default.createElement(b.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),C.default.createElement(b.Appbar.Content,{title:h.default.t('MAKE_WITHDRAWAL')})),C.default.createElement(E.View,{style:[k.container]},null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),this.isHasError(),this.commissionsLoading(),this.state.isSubmitClick&&this.renderDialogGetCommissionResponse(),C.default.createElement(E.ScrollView,{style:{padding:20}},C.default.createElement(E.View,{style:{marginTop:10}},C.default.createElement(y.CreditCardInput,{validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,labels:{number:h.default.t('CARD_NUMBER_LABEL'),expiry:h.default.t('CARD_EXPIRY_LABEL'),cvc:h.default.t('CARD_CVC_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return C.default.createElement(E.Text,{style:{color:'red',marginLeft:15}},t)})),C.default.createElement(E.View,{style:{margin:20}},C.default.createElement(_.default,{borderBottomColor:this.isMontantValid.isValid?'red':'black',value:this.state.montant,keyboardType:"numeric",label:h.default.t('AMOUNT_LABEL'),style:{marginTop:10},placeholder:h.default.t('AMOUNT_LABEL'),onChangeText:function(o){t.setState({montant:o}),t.isMontantValid()}}),!this.isMontantValid().isValid&&C.default.createElement(E.Text,{style:{color:'red',marginTop:2}},this.isMontantValid().errorMessage),this.state.isSubmitClick&&0===this.state.montant.length&&C.default.createElement(E.Text,{style:{color:'red',marginTop:2}},h.default.t('PLEASE_ENTER_THE_AMOUNT')),C.default.createElement(E.Text,null)),C.default.createElement(E.View,{style:{margin:10}},C.default.createElement(w.default,{loading:this.props.loading,outline:!0,onPress:function(){return t.onSubmitDeposit()}},h.default.t('VALIDATE')))))))}}]),o})(C.Component));B.navigatorStyle={navBarBackgroundColor:x.Color.accentLightColor,statusBarColor:x.Color.accentColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},B.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null}};var O=(0,R.connect)(function(t){return{loading:t.depositReducer.loading,result:t.depositReducer.result,error:t.depositReducer.error,loadingGetCommission:t.walletGetCommission.loadingGetCommission,resultGetCommission:t.walletGetCommission.resultGetCommission,errorGetCommission:t.walletGetCommission.errorGetCommission}},function(t){return(0,V.bindActionCreators)({depositAction:M.depositAction,getWalletCommissionAmount:S.getWalletCommissionAmount,walletCommissionAmountReset:S.walletCommissionAmountReset,resetWalletListDetailReducer:S.resetWalletListDetailReducer,depositActionReset:M.depositActionReset},t)})(B);e.default=O;var k=E.StyleSheet.create({container:{flex:1,backgroundColor:x.Color.containerBackgroundColor},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:15,marginTop:10},contentButtonBottom:{borderTopWidth:1,paddingVertical:10,paddingHorizontal:20,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},blockView:{paddingVertical:10,borderBottomWidth:1},lottie:{width:248,height:248}})},1772,[4,1,8,9,10,12,11,13,840,1030,1032,1034,1035,1036,1037,1038,15,18,1702,1625,720,1179,535,1513,1039,1056,1767,1769,1770,1026,1015,774,1688,1607,1169,1771]); -__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])),l=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=t(r(d[9])),I=r(d[10]),N=(n(r(d[11])),n(r(d[12]))),E=(n(r(d[13])),n(r(d[14])),r(d[15])),y=r(d[16]),S=t(r(d[17])),v=n(r(d[18])),b=n(r(d[19])),C=n(r(d[20])),D=n(r(d[21])),A=r(d[22]),P=n(r(d[23])),k=r(d[24]),w=r(d[25]),T=r(d[26]),x=r(d[27]),O=r(d[28]),R=n(r(d[29])),F=r(d[30]),_=r(d[31]),L=r(d[32]),Y=r(d[33]),M=(r(d[34]),r(d[35]),r(d[36])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,c.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===I.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===I.Platform.OS||!1,dateExpiration:l})},o.onSubmitNextStep=function(){var t=o.state.numeroTelephone;o.props.getNumberResetAction(),o.ckeckIfFieldIsOK(t)?o.numeroTelephoneAnim.shake(800):(o.props.getNumberDetailAction(t),o.setState({triggerNextClick:!0}))},o.onSubmitPrevious=function(){o.setState({displayFirstStep:!o.state.displayFirstStep,displaySecondStep:!o.state.displaySecondStep})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=(t.numeroTelephone,t.numeroIdentite),l=t.dateNaissance,u=t.dateExpiration,c=t.country,f=t.townName,p=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(l)?o.datenaissanceAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(p)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.identityDateExpiryAnim.shake(800):(M(l).format('DD-MM-YYYY'),o.props.createIndentificationAction({lastname:o.state.lastname,firstname:"",birth_date:M(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:M(o.state.dateExpiration).format('DD-MM-YYYY'),phone_number:o.state.numeroTelephone,id_user:o.state.userId})),o.setState({triggerSubmitClick:!0})},o.renderGetNumberResponse=function(){var t=o.props,n=t.resultNumberDetail,s=t.errorNumberDetail;console.log("PROPS",o.props),null!==n&&200===n.status&&(o.setState({lastname:n.response.lastname,userId:n.response.id,displayFirstStep:!o.state.displayFirstStep,displaySecondStep:!o.state.displaySecondStep}),o.props.getNumberResetAction()),null!==s&&(void 0!==s.data?I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){o.props.createIndentificationResetAction(),o.setState({triggerNextClick:!1})}}],{cancelable:!1}):I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){o.props.createIndentificationResetAction()}}],{cancelable:!1}))},o.renderLoader=function(){return h.default.createElement(T.ProgressDialog,{visible:o.props.loading||o.props.loadingNumberDetail,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return h.default.createElement(P.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return h.default.createElement(P.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={enterPhone:null,firstname:null,lastname:null,numeroIdentite:null,dateNaissance:null,dateExpiration:null,numeroTelephone:null,networksinglePickerVisible:!1,confirmpassanim:null,userId:null,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,F.identityPieces)(),identityPiecesName:(0,F.identityPieces)()[0].name,snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,select_network:b.default.t("SELECT_NETWORK"),user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o.props.getNumberResetAction(),o}return(0,p.default)(n,t),(0,u.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,x.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})}),'android'===I.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&I.Alert.alert(b.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.props.getUserIdentificationAction(t.state.user.phone),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=M(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=M(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&R.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:R.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||R.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(I.PermissionsAndroid.request(I.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===I.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),I.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,C.default)(s,o)||((0,w.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,u=o.place_id;n.setState({address:s,textadress:l,place:u});for(var c,f,p=t.results,h=0;h=s.length)break;f=s[u++]}else{if((u=s.next()).done)break;f=u.value}var p=f;p.code_country===c&&(o=!0,n.setState({modalVisible:!1,indicatif:p.code_dial,country:p.name}))}o||I.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,D.default)(t)||(0,C.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return h.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:b.default.t("LOADING_INFO")},h.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},h.default.createElement(I.Text,null,b.default.t("LOADING_DESCRIPTION_COUNTRY")),h.default.createElement(I.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);this.state.showPickerDateNaissance;return h.default.createElement(h.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),(this.props.loading||this.props.loadingNumberDetail)&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),this.state.triggerNextClick&&this.renderGetNumberResponse(),h.default.createElement(I.ScrollView,{style:U.container},this.state.displayFirstStep&&h.default.createElement(h.default.Fragment,null,h.default.createElement(I.Text,{style:U.subbigtitle},b.default.t('CREATE_IDENTIFICATION_TITLE')),h.default.createElement(S.View,{ref:function(n){t.numeroTelephoneAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'phone',label:b.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",value:null===this.state.numeroTelephone?this.state.indicatif:this.state.numeroTelephone,iconSize:20,onChangeText:function(n){t.setState({numeroTelephone:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.countryAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(S.View,{ref:function(n){t.townAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(v.default,{style:U.btnvalide,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},b.default.t('NEXT'))),this.state.displaySecondStep&&h.default.createElement(h.default.Fragment,null,h.default.createElement(S.View,{ref:function(n){t.lastnameAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'user',label:b.default.t('NAME')+" "+b.default.t('AND')+" "+b.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.datenaissanceAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:N.default,iconName:'calendar',label:b.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),h.default.createElement(S.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(S.View,{ref:function(n){t.numeroIdentiteAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'address-card',label:""+b.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentite:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.identityDateExpiryAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:N.default,iconName:'calendar-times-o',label:b.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),h.default.createElement(I.View,{style:{flexDirection:'row',justifyContent:'space-between',flex:1}},h.default.createElement(v.default,{style:U.btnSubmit,textStyle:U.textbtnvalide,onPress:function(){t.onSubmitPrevious()}},b.default.t('PREVIOUS')),h.default.createElement(v.default,{style:U.btnSubmit,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},b.default.t('SUBMIT_LABEL'))))))}}]),n})(h.Component);V.navigatorStyle={navBarBackgroundColor:A.Color.primaryColor,statusBarColor:A.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('CREATION_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:A.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('CREATION_IDENTIFICATION_DESCRIPTION')}};var K=(0,_.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error,loadingNumberDetail:t.getNumberInformationReducer.loading,resultNumberDetail:t.getNumberInformationReducer.result,errorNumberDetail:t.getNumberInformationReducer.error}},function(t){return(0,L.bindActionCreators)({createIndentificationAction:Y.createIndentificationAction,createIndentificationResetAction:Y.createIndentificationResetAction,getNumberDetailAction:Y.getNumberDetailAction,getNumberResetAction:Y.getNumberResetAction,getUserIdentificationAction:Y.getUserIdentificationAction},t)})(V);e.default=K;var U=I.StyleSheet.create({container:{flex:1,backgroundColor:A.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:A.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:A.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,E.responsiveHeight)(2),marginLeft:(0,E.responsiveWidth)(5),marginRight:(0,E.responsiveWidth)(5),borderRadius:5}})},1773,[4,1,6,273,8,9,10,12,13,15,18,68,539,878,835,535,704,751,717,720,689,1611,1026,1774,973,772,1513,719,776,812,1644,1039,1056,1781,814,815,1031]); +__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])),l=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=t(r(d[9])),I=r(d[10]),N=(n(r(d[11])),n(r(d[12]))),E=(n(r(d[13])),n(r(d[14])),r(d[15])),y=r(d[16]),S=t(r(d[17])),v=n(r(d[18])),b=n(r(d[19])),C=n(r(d[20])),D=n(r(d[21])),A=r(d[22]),P=n(r(d[23])),k=r(d[24]),w=r(d[25]),T=r(d[26]),x=r(d[27]),O=r(d[28]),R=n(r(d[29])),F=r(d[30]),_=r(d[31]),L=r(d[32]),Y=r(d[33]),M=(r(d[34]),r(d[35]),r(d[36])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,c.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===I.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===I.Platform.OS||!1,dateExpiration:l})},o.onSubmitNextStep=function(){var t=o.state.numeroTelephone;o.props.getNumberResetAction(),o.ckeckIfFieldIsOK(t)?o.numeroTelephoneAnim.shake(800):(o.props.getNumberDetailAction(t),o.setState({triggerNextClick:!0}))},o.onSubmitPrevious=function(){o.setState({displayFirstStep:!o.state.displayFirstStep,displaySecondStep:!o.state.displaySecondStep})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=(t.numeroTelephone,t.numeroIdentite),l=t.dateNaissance,u=t.dateExpiration,c=t.country,f=t.townName,p=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(l)?o.datenaissanceAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(p)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.identityDateExpiryAnim.shake(800):(M(l).format('DD-MM-YYYY'),o.props.createIndentificationAction({lastname:o.state.lastname,firstname:"",birth_date:M(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:M(o.state.dateExpiration).format('DD-MM-YYYY'),phone_number:o.state.numeroTelephone,id_user:o.state.userId})),o.setState({triggerSubmitClick:!0})},o.renderGetNumberResponse=function(){var t=o.props,n=t.resultNumberDetail,s=t.errorNumberDetail;console.log("PROPS",o.props),null!==n&&200===n.status&&(o.setState({lastname:n.response.lastname,userId:n.response.id,displayFirstStep:!o.state.displayFirstStep,displaySecondStep:!o.state.displaySecondStep}),o.props.getNumberResetAction()),null!==s&&(void 0!==s.data?I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){o.props.createIndentificationResetAction(),o.setState({triggerNextClick:!1})}}],{cancelable:!1}):I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){o.props.createIndentificationResetAction()}}],{cancelable:!1}))},o.renderLoader=function(){return h.default.createElement(T.ProgressDialog,{visible:o.props.loading||o.props.loadingNumberDetail,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return h.default.createElement(P.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return h.default.createElement(P.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={enterPhone:null,firstname:null,lastname:null,numeroIdentite:null,dateNaissance:null,dateExpiration:null,numeroTelephone:null,networksinglePickerVisible:!1,confirmpassanim:null,userId:null,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,F.identityPieces)(),identityPiecesName:b.default.t((0,F.identityPieces)()[0].name),snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,select_network:b.default.t("SELECT_NETWORK"),user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o.props.getNumberResetAction(),o}return(0,p.default)(n,t),(0,u.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,x.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})}),'android'===I.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&I.Alert.alert(b.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.props.getUserIdentificationAction(t.state.user.phone),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=M(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=M(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&R.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:R.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||R.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(I.PermissionsAndroid.request(I.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===I.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),I.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,C.default)(s,o)||((0,w.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,u=o.place_id;n.setState({address:s,textadress:l,place:u});for(var c,f,p=t.results,h=0;h=s.length)break;f=s[u++]}else{if((u=s.next()).done)break;f=u.value}var p=f;p.code_country===c&&(o=!0,n.setState({modalVisible:!1,indicatif:p.code_dial,country:p.name}))}o||I.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,D.default)(t)||(0,C.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return h.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:b.default.t("LOADING_INFO")},h.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},h.default.createElement(I.Text,null,b.default.t("LOADING_DESCRIPTION_COUNTRY")),h.default.createElement(I.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);this.state.showPickerDateNaissance;return h.default.createElement(h.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),(this.props.loading||this.props.loadingNumberDetail)&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),this.state.triggerNextClick&&this.renderGetNumberResponse(),h.default.createElement(I.ScrollView,{style:U.container},this.state.displayFirstStep&&h.default.createElement(h.default.Fragment,null,h.default.createElement(I.Text,{style:U.subbigtitle},b.default.t('CREATE_IDENTIFICATION_TITLE')),h.default.createElement(S.View,{ref:function(n){t.numeroTelephoneAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'phone',label:b.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",value:null===this.state.numeroTelephone?this.state.indicatif:this.state.numeroTelephone,iconSize:20,onChangeText:function(n){t.setState({numeroTelephone:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.countryAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(S.View,{ref:function(n){t.townAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(v.default,{style:U.btnvalide,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},b.default.t('NEXT'))),this.state.displaySecondStep&&h.default.createElement(h.default.Fragment,null,h.default.createElement(S.View,{ref:function(n){t.lastnameAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'user',label:b.default.t('NAME')+" "+b.default.t('AND')+" "+b.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.datenaissanceAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:N.default,iconName:'calendar',label:b.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),h.default.createElement(S.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,E.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(k.Dropdown,{label:b.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return b.default.t(t.name)},labelExtractor:function(t){return b.default.t(t.name)}})),h.default.createElement(S.View,{ref:function(n){t.numeroIdentiteAnim=n}},h.default.createElement(y.Fumi,{iconClass:N.default,iconName:'address-card',label:""+b.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentite:n})},style:U.input})),h.default.createElement(S.View,{ref:function(n){t.identityDateExpiryAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:N.default,iconName:'calendar-times-o',label:b.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),h.default.createElement(I.View,{style:{flexDirection:'row',justifyContent:'space-between',flex:1}},h.default.createElement(v.default,{style:U.btnSubmit,textStyle:U.textbtnvalide,onPress:function(){t.onSubmitPrevious()}},b.default.t('PREVIOUS')),h.default.createElement(v.default,{style:U.btnSubmit,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},b.default.t('SUBMIT_LABEL'))))))}}]),n})(h.Component);V.navigatorStyle={navBarBackgroundColor:A.Color.primaryColor,statusBarColor:A.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('CREATION_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:A.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('CREATION_IDENTIFICATION_DESCRIPTION')}};var K=(0,_.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error,loadingNumberDetail:t.getNumberInformationReducer.loading,resultNumberDetail:t.getNumberInformationReducer.result,errorNumberDetail:t.getNumberInformationReducer.error}},function(t){return(0,L.bindActionCreators)({createIndentificationAction:Y.createIndentificationAction,createIndentificationResetAction:Y.createIndentificationResetAction,getNumberDetailAction:Y.getNumberDetailAction,getNumberResetAction:Y.getNumberResetAction,getUserIdentificationAction:Y.getUserIdentificationAction},t)})(V);e.default=K;var U=I.StyleSheet.create({container:{flex:1,backgroundColor:A.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:A.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:A.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,E.responsiveHeight)(2),marginLeft:(0,E.responsiveWidth)(5),marginRight:(0,E.responsiveWidth)(5),borderRadius:5}})},1773,[4,1,6,273,8,9,10,12,13,15,18,68,539,878,835,535,704,751,717,720,689,1611,1026,1774,973,772,1513,719,776,812,1644,1039,1056,1781,814,815,1031]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u},1774,[1,1775]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=r(d[1]),u=t(r(d[2])),l=t(r(d[3]));function s(t){var u=t.mode,s=t.value,o=t.display;(0,l.default)(s,'A date or time should be specified as `value`.'),(0,l.default)(!(o===n.DISPLAY.calendar&&u===n.ANDROID_MODE.time||o===n.DISPLAY.clock&&u===n.ANDROID_MODE.date),"display: "+o+" and mode: "+u+" cannot be used together.")}function o(t){s(t);var l,o=t.mode,D=t.value,E=t.display,c=t.onChange,_=t.is24Hour,v=t.minimumDate,T=t.maximumDate,p=t.neutralButtonLabel;switch(o){case n.MODE_TIME:l=u.default[n.MODE_TIME].open({value:D,display:E,is24Hour:_,neutralButtonLabel:p});break;case n.MODE_DATE:default:l=u.default[n.MODE_DATE].open({value:D,display:E,minimumDate:v,maximumDate:T,neutralButtonLabel:p})}return l.then(function(t){var u=t.action,l=t.day,s=t.month,o=t.year,E=t.minute,_=t.hour,v=new Date(D),T={type:'set',nativeEvent:{}};switch(u){case n.DATE_SET_ACTION:T.nativeEvent.timestamp=v.setFullYear(o,s,l),c(T,v);break;case n.TIME_SET_ACTION:T.nativeEvent.timestamp=v.setHours(_,E),c(T,v);break;case n.NEUTRAL_BUTTON_ACTION:T.type='neutralButtonPressed',c(T);break;case n.DISMISS_ACTION:default:T.type='dismissed',c(T)}},function(t){throw t}),null}o.defaultProps={display:n.DISPLAY_DEFAULT,mode:n.MODE_DATE}},1775,[1,1776,1777,19]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NEUTRAL_BUTTON_ACTION=e.NEUTRAL_BUTTON_LABEL=e.DISMISS_ACTION=e.TIME_SET_ACTION=e.DATE_SET_ACTION=e.DAY_OF_WEEK=e.ANDROID_MODE=e.DISPLAY=e.DISPLAY_CALENDAR=e.DISPLAY_CLOCK=e.DISPLAY_SPINNER=e.DISPLAY_DEFAULT=e.MODE_DATETIME=e.MODE_TIME=e.MODE_DATE=void 0;e.MODE_DATE='date';e.MODE_TIME='time';e.MODE_DATETIME='datetime';e.DISPLAY_DEFAULT='default';e.DISPLAY_SPINNER='spinner';e.DISPLAY_CLOCK='clock';e.DISPLAY_CALENDAR='calendar';var A=Object.freeze({spinner:'spinner',default:'default',clock:'clock',calendar:'calendar'});e.DISPLAY=A;var _=Object.freeze({date:'date',time:'time'});e.ANDROID_MODE=_;var E=Object.freeze({Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6});e.DAY_OF_WEEK=E;e.DATE_SET_ACTION='dateSetAction';e.TIME_SET_ACTION='timeSetAction';e.DISMISS_ACTION='dismissedAction';e.NEUTRAL_BUTTON_LABEL='neutralButtonLabel';e.NEUTRAL_BUTTON_ACTION='neutralButtonAction'},1776,[]); @@ -1786,25 +1786,25 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.t __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),u=n(r(d[2])),l=n(r(d[3])),o=r(d[4]),s=r(d[5]),c=r(d[6]),f=(function(){function n(){(0,u.default)(this,n)}return(0,l.default)(n,null,[{key:"open",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return(0,c.toMilliseconds)(n,'value'),n.display=n.display||o.DISPLAY_DEFAULT,t.abrupt("return",s.NativeModules.RNTimePickerAndroid.open(n));case 3:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();e.default=f,f.timeSetAction=o.TIME_SET_ACTION,f.dismissedAction=o.DISMISS_ACTION},1780,[1,273,8,9,1776,18,1779]); __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,1677,1014,878,1697,1767,1026,553,1641,774,1702,1015,535,1607,1688,1690,1781,1691,1625,689,744,1038,1037,1030,1032,1034,1035,1036,1033,1039,1056,1644,936,719,1169,1646,815,1645,816,1692,1693,1694,1695]); -__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]),H=l(r(d[30])),U=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)?Object.keys((0,b.default)(t,['id','type','id_epargne','type_historique','date_demande','date_fin','date_remboursement_prevu','date_validation','date_cassation','date_remboursement','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,U.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):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,U.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,H.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,1611,553,1014,1697,1026,744,774,1179,719,1785,530,878,1015,840,1644,1786,1646,1641,1625,1039,1056,535,815,1645]); +__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])),E=l(r(d[11])),h=(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]},E.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",E.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",E.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]},E.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,E.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,E.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})},E.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})},E.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},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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,E.default.t('HISTORY_DETAIL')),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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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]},E.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:E.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})},E.default.t(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},E.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,E.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,E.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]},E.default.t('TRANSACTION_HISTORY'))),o.renderHistoryTransactionList(t)))},o.state={index:0,heightHeader:h.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=h.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:E.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},E.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:E.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:w.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:E.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: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,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: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}})},1783,[4,1,8,9,10,12,11,13,15,18,876,720,1677,1014,878,1697,1767,1026,553,1641,774,1702,1015,535,1607,1688,1690,1781,1691,1625,689,744,1038,1037,1030,1032,1034,1035,1036,1033,1039,1056,1644,936,719,1169,1646,815,1645,816,1692,1693,1694,1695]); +__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]),H=l(r(d[30])),U=l(r(d[31])),B=l(r(d[32])),L=l(r(d[33])),P=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:[Y.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})},x.default.t(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:[Y.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,C.default)(o.state.user.category)?Object.keys((0,b.default)(t,['id','type','id_epargne','type_historique','date_demande','date_fin','date_remboursement_prevu','date_validation','date_cassation','date_remboursement','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,U.default)(t[l],' ')+" "+o.state.wallet.currency_code:(0,h.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):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,U.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(L.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},p.default.createElement(L.default.Title,null,x.default.t('HISTORY_DETAIL')),(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:[Y.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:[Y.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]},x.default.t((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:[Y.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:[Y.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:[Y.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:[Y.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:[Y.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:[Y.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]},x.default.t((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:[Y.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:[Y.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:[Y.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:[Y.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:[Y.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:[Y.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:[Y.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]},x.default.t((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:[Y.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:[Y.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:[Y.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:[Y.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(L.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:[Y.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:x.default.t(this.state.title),subtitle:x.default.t(this.state.subTitle)})),p.default.createElement(E.ScrollView,{style:Y.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:Y.lottie,source:this.state.lottie.source,autoPlay:!0,loop:this.state.lottie.loop}))),p.default.createElement(E.View,{style:[Y.checkDefault,{borderBottomColor:I.Color.borderColor}]},p.default.createElement(E.Text,{style:[R.Typography.title3,R.Typography.semibold]},x.default.t('OPERATIONS'))),(0,H.default)(this.state.options,2).map(function(l,o){return p.default.createElement(E.View,{key:o,style:Y.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,P.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 Y=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,1611,553,1014,1697,1026,744,774,1179,719,1785,530,878,1015,840,1644,1786,1646,1641,1625,1039,1056,535,815,1645]); __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));x0){var o=t.results[0],l=o.address_components,s=o.formatted_address,c=o.place_id;n.setState({address:l,textadress:s,place:c});for(var u,f,p=t.results,h=0;h=l.length)break;f=l[c++]}else{if((c=l.next()).done)break;f=c.value}var p=f;p.code_country===u&&(o=!0,n.setState({modalVisible:!1,indicatif:p.code_dial,country:p.name}))}o||I.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:l}))}},{key:"renderLoaderModal",value:function(){return h.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:E.default.t("LOADING_INFO")},h.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},h.default.createElement(I.Text,null,E.default.t("LOADING_DESCRIPTION_COUNTRY")),h.default.createElement(I.ProgressBarAndroid,null)))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,k.default)(t)||(0,P.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);this.state.showPickerDateNaissance;return h.default.createElement(h.default.Fragment,null,(this.props.loadingUserIndentification||this.props.loadingValidateIdentification)&&this.renderLoader(),this.state.displayImage&&this.renderDialogImage(),this.state.modalVisible&&this.renderLoaderModal(),this.state.triggerSubmitClick&&this.renderGetUserIdentificationResponse(),this.state.triggerValidateClick&&this.renderValidationResponse(),h.default.createElement(I.ScrollView,{style:K.container},h.default.createElement(I.Text,{style:K.subbigtitle},E.default.t('CREATE_IDENTIFICATION_TITLE')),h.default.createElement(C.View,{ref:function(n){t.numeroTelephoneAnim=n}},h.default.createElement(b.Fumi,{iconClass:T.default,iconName:'phone',label:""+E.default.t('PHONE_NUMBER'),iconColor:'#f95a25',keyboardType:"phone-pad",value:null===this.state.numeroTelephone?this.state.indicatif:this.state.numeroTelephone,iconSize:20,onChangeText:function(n){t.setState({numeroTelephone:n})},style:K.input})),this.state.displayUploadButtons&&h.default.createElement(I.View,{style:{marginTop:20,flexDirection:'row'}},h.default.createElement(I.View,{style:[K.contentPicker]},h.default.createElement(I.View,{style:[K.contentPicker]},h.default.createElement(v.TouchableOpacity,{style:[K.contain],onPress:function(){A.default.openCamera({width:200,height:200,cropping:!0,useFrontCamera:!0}).then(function(n){t.createFormData('user_image',n),t.setState({image:n,displayImage:!0})})},activeOpacity:.9},h.default.createElement(I.View,{style:[K.contcontainerCenterentLeft]},h.default.createElement(I.View,null,h.default.createElement(w.default,{name:"account-circle",color:R.Color.whiteColor,style:[K.thumb],size:80}),h.default.createElement(I.View,{style:[K.point,{backgroundColor:R.Color.accentColor}]},h.default.createElement(w.default,{name:"camera-image",color:R.Color.whiteColor,size:20}))))),h.default.createElement(I.Text,{style:(V.Typography.footnote,V.FontWeight.semibold,{color:R.Color.whiteColor})},E.default.t('PROFILE_PICTURE')))),h.default.createElement(I.View,{style:[K.contentPicker]},h.default.createElement(I.View,{style:[K.contentPicker]},h.default.createElement(v.TouchableOpacity,{style:[K.contain],onPress:function(){A.default.openCamera({width:400,height:281,cropping:!0,useFrontCamera:!1}).then(function(n){t.createFormData('document_image_front',n),t.setState({image:n,displayImage:!0})})},activeOpacity:.9},h.default.createElement(I.View,{style:[K.contcontainerCenterentLeft]},h.default.createElement(I.View,null,h.default.createElement(w.default,{name:"credit-card-scan",color:R.Color.whiteColor,style:[K.thumb],size:80}),h.default.createElement(I.View,{style:[K.point,{backgroundColor:R.Color.accentColor}]},h.default.createElement(w.default,{name:"camera-image",color:R.Color.whiteColor,size:20}))))),h.default.createElement(I.Text,{style:(V.Typography.footnote,V.FontWeight.semibold,{color:R.Color.whiteColor})},E.default.t('FRONT_FACE_CB')))),h.default.createElement(I.View,{style:[K.contentPicker]},h.default.createElement(v.TouchableOpacity,{style:[K.contain],onPress:function(){A.default.openCamera({width:400,height:281,cropping:!0,useFrontCamera:!1}).then(function(n){t.createFormData('document_image_back',n),t.setState({image:n,displayImage:!0})})},activeOpacity:.9},h.default.createElement(I.View,{style:[K.contcontainerCenterentLeft]},h.default.createElement(I.View,null,h.default.createElement(w.default,{name:"credit-card-off",color:R.Color.whiteColor,style:[K.thumb],size:80}),h.default.createElement(I.View,{style:[K.point,{backgroundColor:R.Color.accentColor}]},h.default.createElement(w.default,{name:"camera-image",color:R.Color.whiteColor,size:20}))))),h.default.createElement(I.Text,{style:(V.Typography.footnote,V.FontWeight.semibold,{color:R.Color.whiteColor})},E.default.t('BACK_FACE_CB')))),h.default.createElement(p.default,{style:K.btnvalide,textStyle:K.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitValidationClient(),t.state.displayUploadButtons&&t.setState({triggerValidateClick:!0}),t.setState({triggerSubmitClick:!0})}},E.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component));B.navigatorStyle={navBarBackgroundColor:R.Color.primaryColor,statusBarColor:R.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},B.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('VALIDATE_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:R.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('VALIDATE_IDENTIFICATION_DESCRIPTION')}};var z=(0,D.connect)(function(t){return{loadingUserIndentification:t.getUserIdentificationReducer.loading,resultUserIndentification:t.getUserIdentificationReducer.result,errorUserIndentification:t.getUserIdentificationReducer.error,loadingValidateIdentification:t.validateIdentificationReducer.loading,resultValidateIdentification:t.validateIdentificationReducer.result,errorValidateIdentification:t.validateIdentificationReducer.error}},function(t){return(0,U.bindActionCreators)({getUserIdentificationAction:F.getUserIdentificationAction,getUserIdentificationResetAction:F.getUserIdentificationResetAction,validateIdentificationResetAction:F.validateIdentificationResetAction,validateIdentificationAction:F.validateIdentificationAction},t)})(B);e.default=z;var K=I.StyleSheet.create({container:{flex:1,backgroundColor:R.Color.primaryDarkColor},contain:{flexDirection:"row"},containerCenter:{flex:8,flexDirection:"row",justifyContent:"center",alignItems:"center"},thumb:{borderRadius:30,marginRight:10},point:{width:25,height:25,borderRadius:11,alignItems:"center",justifyContent:"center",position:"absolute",right:9,bottom:0},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},contentPicker:{padding:10,borderRadius:8,flex:1,alignItems:"center"},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:R.Color.accentLightColor,height:52},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5},lottie:{width:540,height:300}})},1788,[4,1,273,8,9,10,12,13,717,15,18,751,1625,2,720,1789,535,704,539,876,1026,1611,689,776,719,1015,1039,812,1056,1513,1781,772,814,815,1031]); __d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(r(d[1]));var t=r(d[2]).NativeModules.ImageCropPicker;e.default=t},1789,[1,15,18]); -__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])),l=n(r(d[4])),c=n(r(d[5])),u=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=t(r(d[9])),I=r(d[10]),E=(n(r(d[11])),n(r(d[12]))),v=(n(r(d[13])),n(r(d[14])),r(d[15])),y=r(d[16]),C=t(r(d[17])),N=n(r(d[18])),D=n(r(d[19])),k=n(r(d[20])),w=n(r(d[21])),P=r(d[22]),A=n(r(d[23])),S=r(d[24]),b=r(d[25]),T=r(d[26]),x=r(d[27]),O=r(d[28]),_=n(r(d[29])),F=r(d[30]),R=r(d[31]),L=r(d[32]),M=r(d[33]),Y=(r(d[34]),r(d[35]),r(d[36])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,u.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,w.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===I.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,w.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===I.Platform.OS||!1,dateExpiration:l})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=t.numeroIdentite,l=t.dateNaissance,c=t.dateExpiration,u=t.country,f=t.townName,p=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(l)?o.datenaissanceAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(p)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.identityDateExpiryAnim.shake(800):o.props.createIndentificationAction({lastname:o.state.lastname,firstname:"",birth_date:Y(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:Y(o.state.dateExpiration).format('DD-MM-YYYY'),phone_number:null,id_user:o.state.user.id}),o.setState({triggerSubmitClick:!0})},o.renderLoader=function(){return h.default.createElement(T.ProgressDialog,{visible:o.props.loading,title:D.default.t('LOADING'),message:D.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return h.default.createElement(A.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,w.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return h.default.createElement(A.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,w.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={lastname:'',numeroIdentite:null,dateNaissance:null,dateExpiration:null,networksinglePickerVisible:!1,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,F.identityPieces)(),identityPiecesName:(0,F.identityPieces)()[0].name,snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,select_network:D.default.t("SELECT_NETWORK"),user:null,triggerSubmitClick:!1},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o}return(0,p.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,x.readUser)().then(function(n){if(n&&void 0!==n){var o=null!==n.firstname?n.firstname:'';t.setState({user:n,lastname:o+" "+n.lastname})}}),'android'===I.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&I.Alert.alert(D.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.props.getUserIdentificationAction(t.state.user.phone),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?I.Alert.alert(D.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(D.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=Y(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=Y(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&_.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),Aler.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:_.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||_.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(I.PermissionsAndroid.request(I.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===I.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),I.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,k.default)(s,o)||((0,b.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,c=o.place_id;n.setState({address:s,textadress:l,place:c});for(var u,f,p=t.results,h=0;h=s.length)break;f=s[c++]}else{if((c=s.next()).done)break;f=c.value}var p=f;p.code_country===u&&(o=!0,n.setState({modalVisible:!1,country:p.name}))}o||I.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,w.default)(t)||(0,k.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return h.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:D.default.t("LOADING_INFO")},h.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},h.default.createElement(I.Text,null,D.default.t("LOADING_DESCRIPTION_COUNTRY")),h.default.createElement(I.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;return console.log("STATE",this.state),h.default.createElement(h.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),this.props.loading&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),h.default.createElement(I.ScrollView,{style:U.container},h.default.createElement(I.Text,{style:U.subbigtitle},D.default.t('CREATE_IDENTIFICATION_TITLE')),h.default.createElement(C.View,{ref:function(n){t.lastnameAnim=n}},h.default.createElement(y.Fumi,{iconClass:E.default,iconName:'user',label:D.default.t('NAME')+" "+D.default.t('AND')+" "+D.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:U.input})),h.default.createElement(C.View,{ref:function(n){t.datenaissanceAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar',label:D.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),h.default.createElement(C.View,{ref:function(n){t.countryAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(C.View,{ref:function(n){t.townAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(C.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(C.View,{ref:function(n){t.numeroIdentiteAnim=n}},h.default.createElement(y.Fumi,{iconClass:E.default,iconName:'address-card',label:""+D.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentite:n})},style:U.input})),h.default.createElement(C.View,{ref:function(n){t.identityDateExpiryAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar-times-o',label:D.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),h.default.createElement(N.default,{style:U.btnvalide,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},D.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component);V.navigatorStyle={navBarBackgroundColor:P.Color.primaryColor,statusBarColor:P.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:D.default.t('CREATION_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:P.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:D.default.t('CREATION_IDENTIFICATION_DESCRIPTION')}};var K=(0,R.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error}},function(t){return(0,L.bindActionCreators)({createIndentificationAction:M.createIndentificationAction,createIndentificationResetAction:M.createIndentificationResetAction,getUserIdentificationAction:M.getUserIdentificationAction},t)})(V);e.default=K;var U=I.StyleSheet.create({container:{flex:1,backgroundColor:P.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:P.Color.accentLightColor,height:52},input:{height:60,marginTop:(0,v.responsiveHeight)(2),marginLeft:(0,v.responsiveWidth)(5),marginRight:(0,v.responsiveWidth)(5),borderRadius:5}})},1790,[4,1,6,273,8,9,10,12,13,15,18,68,539,878,835,535,704,751,717,720,689,1611,1026,1774,973,772,1513,719,776,812,1644,1039,1056,1781,814,815,1031]); -__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])),l=o(r(d[3])),c=o(r(d[4])),u=o(r(d[5])),s=o(r(d[6])),f=o(r(d[7])),p=t(r(d[8])),h=r(d[9]),y=r(d[10]),C=o(r(d[11])),b=r(d[12]),w=o(r(d[13])),E=r(d[14]),T=r(d[15]),v=t(r(d[16])),x=r(d[17]),I=(r(d[18]),r(d[19]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,c.default)(this,(0,u.default)(o).call(this,t))).redirectToRoute=function(t){l.props.navigation.push(t.screen,{title:t.title,type:t.type})},l.renderItem=function(t,o){return p.default.createElement(h.TouchableOpacity,{key:o,style:[k.paymentItem,{borderBottomColor:E.Color.borderColor}],onPress:function(){}},p.default.createElement(h.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(h.View,{style:k.iconContent},p.default.createElement(h.Image,{style:{width:48,height:48},source:{uri:t.icon}})),p.default.createElement(h.View,null,p.default.createElement(h.Text,{style:T.Typography.body1},t.title),p.default.createElement(h.Text,{style:T.Typography.footnote},t.title))))},l.renderList=function(){var t=l.state.options;return p.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},t.map(function(t,o){return l.renderItem(t,o)}))},x.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,s.default)(l))),console.log("OPERATEUR OPTION PROPS",l.props),l.state={options:l.props.navigation.state.params.optionSelect.options,title:l.props.navigation.state.params.optionSelect.title,subTitle:l.props.navigation.state.params.optionSelect.subTitle},l}return(0,f.default)(o,t),(0,l.default)(o,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:C.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return p.default.createElement(b.Provider,null,p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.StatusBar,{backgroundColor:E.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),p.default.createElement(b.Appbar.Header,{dark:!0,style:{backgroundColor:E.Color.primaryColor}},p.default.createElement(b.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),p.default.createElement(b.Appbar.Content,{title:this.state.title,subtitle:this.state.subTitle})),p.default.createElement(h.View,{style:k.container},p.default.createElement(h.FlatList,{contentContainerStyle:{paddingHorizontal:20,paddingBottom:10},data:this.state.options,keyExtractor:function(t,o){return o.toString()},renderItem:function(o){var n=o.item;o.index;return p.default.createElement(h.TouchableOpacity,{style:[k.item,{borderBottomColor:E.Color.borderColor}],onPress:function(){t.redirectToRoute(n)}},p.default.createElement(h.View,{style:{flexDirection:'row'}},p.default.createElement(h.Image,{style:{width:30,height:30},source:{uri:n.icon}}),p.default.createElement(h.Text,{style:[T.Typography.body1]},n.title)),p.default.createElement(w.default,{name:"chevron-right",size:20,color:E.Color.primaryColor,enableRTL:!0}))}}))))}}]),o})(p.Component));e.default=I,I.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:C.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(w.default,{name:'credit-card',size:24})}}};var k=h.StyleSheet.create({container:{flex:1},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:"100%",marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},item:{paddingVertical:15,borderBottomWidth:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},lottie:{width:540,height:240},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:E.Color.borderColor,borderColor:E.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:E.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(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12}})},1791,[4,1,8,9,10,12,11,13,15,18,2,720,1179,876,1026,1015,1014,774,815,1645]); +__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])),l=n(r(d[4])),c=n(r(d[5])),u=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=t(r(d[9])),I=r(d[10]),E=(n(r(d[11])),n(r(d[12]))),v=(n(r(d[13])),n(r(d[14])),r(d[15])),y=r(d[16]),C=t(r(d[17])),N=n(r(d[18])),D=n(r(d[19])),k=n(r(d[20])),w=n(r(d[21])),P=r(d[22]),A=n(r(d[23])),S=r(d[24]),b=r(d[25]),T=r(d[26]),x=r(d[27]),O=r(d[28]),_=n(r(d[29])),F=r(d[30]),R=r(d[31]),L=r(d[32]),M=r(d[33]),Y=(r(d[34]),r(d[35]),r(d[36])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,u.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,w.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===I.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,w.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===I.Platform.OS||!1,dateExpiration:l})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=t.numeroIdentite,l=t.dateNaissance,c=t.dateExpiration,u=t.country,f=t.townName,p=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(l)?o.datenaissanceAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(p)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.identityDateExpiryAnim.shake(800):o.props.createIndentificationAction({lastname:o.state.lastname,firstname:"",birth_date:Y(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:Y(o.state.dateExpiration).format('DD-MM-YYYY'),phone_number:null,id_user:o.state.user.id}),o.setState({triggerSubmitClick:!0})},o.renderLoader=function(){return h.default.createElement(T.ProgressDialog,{visible:o.props.loading,title:D.default.t('LOADING'),message:D.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return h.default.createElement(A.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,w.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return h.default.createElement(A.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,w.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={lastname:'',numeroIdentite:null,dateNaissance:null,dateExpiration:null,networksinglePickerVisible:!1,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,F.identityPieces)(),identityPiecesName:D.default.t((0,F.identityPieces)()[0].name),snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,select_network:D.default.t("SELECT_NETWORK"),user:null,triggerSubmitClick:!1},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o}return(0,p.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,x.readUser)().then(function(n){if(n&&void 0!==n){var o=null!==n.firstname?n.firstname:'';t.setState({user:n,lastname:o+" "+n.lastname})}}),'android'===I.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&I.Alert.alert(D.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.props.getUserIdentificationAction(t.state.user.phone),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?I.Alert.alert(D.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(D.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:D.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=Y(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=Y(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&_.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),Aler.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:_.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||_.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(I.PermissionsAndroid.request(I.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===I.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),I.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),I.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,k.default)(s,o)||((0,b.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,c=o.place_id;n.setState({address:s,textadress:l,place:c});for(var u,f,p=t.results,h=0;h=s.length)break;f=s[c++]}else{if((c=s.next()).done)break;f=c.value}var p=f;p.code_country===u&&(o=!0,n.setState({modalVisible:!1,country:p.name}))}o||I.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,w.default)(t)||(0,k.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return h.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:D.default.t("LOADING_INFO")},h.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},h.default.createElement(I.Text,null,D.default.t("LOADING_DESCRIPTION_COUNTRY")),h.default.createElement(I.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;return console.log("STATE",this.state),h.default.createElement(h.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),this.props.loading&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),h.default.createElement(I.ScrollView,{style:U.container},h.default.createElement(I.Text,{style:U.subbigtitle},D.default.t('CREATE_IDENTIFICATION_TITLE')),h.default.createElement(C.View,{ref:function(n){t.lastnameAnim=n}},h.default.createElement(y.Fumi,{iconClass:E.default,iconName:'user',label:D.default.t('NAME')+" "+D.default.t('AND')+" "+D.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:U.input})),h.default.createElement(C.View,{ref:function(n){t.datenaissanceAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar',label:D.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),h.default.createElement(C.View,{ref:function(n){t.countryAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(C.View,{ref:function(n){t.townAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(C.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,v.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(S.Dropdown,{label:D.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return D.default.t(t.name)},labelExtractor:function(t){return D.default.t(t.name)}})),h.default.createElement(C.View,{ref:function(n){t.numeroIdentiteAnim=n}},h.default.createElement(y.Fumi,{iconClass:E.default,iconName:'address-card',label:""+D.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentite:n})},style:U.input})),h.default.createElement(C.View,{ref:function(n){t.identityDateExpiryAnim=n}},h.default.createElement(y.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar-times-o',label:D.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:U.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),h.default.createElement(N.default,{style:U.btnvalide,textStyle:U.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},D.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component);V.navigatorStyle={navBarBackgroundColor:P.Color.primaryColor,statusBarColor:P.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:D.default.t('CREATION_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:P.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:D.default.t('CREATION_IDENTIFICATION_DESCRIPTION')}};var K=(0,R.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error}},function(t){return(0,L.bindActionCreators)({createIndentificationAction:M.createIndentificationAction,createIndentificationResetAction:M.createIndentificationResetAction,getUserIdentificationAction:M.getUserIdentificationAction},t)})(V);e.default=K;var U=I.StyleSheet.create({container:{flex:1,backgroundColor:P.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:P.Color.accentLightColor,height:52},input:{height:60,marginTop:(0,v.responsiveHeight)(2),marginLeft:(0,v.responsiveWidth)(5),marginRight:(0,v.responsiveWidth)(5),borderRadius:5}})},1790,[4,1,6,273,8,9,10,12,13,15,18,68,539,878,835,535,704,751,717,720,689,1611,1026,1774,973,772,1513,719,776,812,1644,1039,1056,1781,814,815,1031]); +__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])),l=o(r(d[3])),c=o(r(d[4])),u=o(r(d[5])),s=o(r(d[6])),f=o(r(d[7])),p=t(r(d[8])),h=r(d[9]),y=r(d[10]),C=o(r(d[11])),b=r(d[12]),w=o(r(d[13])),E=r(d[14]),T=r(d[15]),v=t(r(d[16])),x=r(d[17]),I=(r(d[18]),r(d[19]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,c.default)(this,(0,u.default)(o).call(this,t))).redirectToRoute=function(t){l.props.navigation.push(t.screen,{title:t.title,type:t.type})},l.renderItem=function(t,o){return p.default.createElement(h.TouchableOpacity,{key:o,style:[k.paymentItem,{borderBottomColor:E.Color.borderColor}],onPress:function(){}},p.default.createElement(h.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(h.View,{style:k.iconContent},p.default.createElement(h.Image,{style:{width:48,height:48},source:{uri:t.icon}})),p.default.createElement(h.View,null,p.default.createElement(h.Text,{style:T.Typography.body1},t.title),p.default.createElement(h.Text,{style:T.Typography.footnote},t.title))))},l.renderList=function(){var t=l.state.options;return p.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},t.map(function(t,o){return l.renderItem(t,o)}))},x.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,s.default)(l))),console.log("OPERATEUR OPTION PROPS",l.props),l.state={options:l.props.navigation.state.params.optionSelect.options,title:l.props.navigation.state.params.optionSelect.title,subTitle:l.props.navigation.state.params.optionSelect.subTitle},l}return(0,f.default)(o,t),(0,l.default)(o,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:C.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return p.default.createElement(b.Provider,null,p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.StatusBar,{backgroundColor:E.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),p.default.createElement(b.Appbar.Header,{dark:!0,style:{backgroundColor:E.Color.primaryColor}},p.default.createElement(b.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),p.default.createElement(b.Appbar.Content,{title:C.default.t(this.state.title),subtitle:C.default.t(this.state.subTitle)})),p.default.createElement(h.View,{style:k.container},p.default.createElement(h.FlatList,{contentContainerStyle:{paddingHorizontal:20,paddingBottom:10},data:this.state.options,keyExtractor:function(t,o){return o.toString()},renderItem:function(o){var n=o.item;o.index;return p.default.createElement(h.TouchableOpacity,{style:[k.item,{borderBottomColor:E.Color.borderColor}],onPress:function(){t.redirectToRoute(n)}},p.default.createElement(h.View,{style:{flexDirection:'row'}},p.default.createElement(h.Image,{style:{width:30,height:30},source:{uri:n.icon}}),p.default.createElement(h.Text,{style:[T.Typography.body1]},n.title)),p.default.createElement(w.default,{name:"chevron-right",size:20,color:E.Color.primaryColor,enableRTL:!0}))}}))))}}]),o})(p.Component));e.default=I,I.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:C.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(w.default,{name:'credit-card',size:24})}}};var k=h.StyleSheet.create({container:{flex:1},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:"100%",marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},item:{paddingVertical:15,borderBottomWidth:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},lottie:{width:540,height:240},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:E.Color.borderColor,borderColor:E.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:E.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(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12}})},1791,[4,1,8,9,10,12,11,13,15,18,2,720,1179,876,1026,1015,1014,774,815,1645]); __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])),u=l(r(d[4])),c=l(r(d[5])),f=l(r(d[6])),E=l(r(d[7])),s=t(r(d[8])),p=r(d[9]),T=l(r(d[10])),y=r(d[11]),C=l(r(d[12])),b=r(d[13]),N=r(d[14]),A=l(r(d[15])),h=l(r(d[16])),v=r(d[17]),_=(r(d[18]),r(d[19]),(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,u.default)(this,(0,c.default)(l).call(this,t))).renderLabel=function(){switch(o.state.type){case'PAIEMENT_ECOLE':return T.default.t('IDENTIFIANT_ETUDIANT');case'PAIEMENT_EAU_ELECTRICITE':return T.default.t('NUMERO_ABONNE');case'PAIEMENT_CREDIT_TELEPHONE':return T.default.t('PHONE_NUMBER');case'PAIEMENT_ABONNEMENT_TV':return T.default.t('NUMERO_ABONNE')}},N.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,f.default)(o))),o.state={title:o.props.navigation.state.params.title,type:o.props.navigation.state.params.type},console.log("Paiement facture props",o.props),o}return(0,E.default)(l,t),(0,o.default)(l,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:T.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return s.default.createElement(y.Provider,null,s.default.createElement(p.View,{style:{flex:1}},s.default.createElement(p.StatusBar,{backgroundColor:b.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),s.default.createElement(y.Appbar.Header,{dark:!0,style:{backgroundColor:b.Color.primaryColor}},s.default.createElement(y.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),s.default.createElement(y.Appbar.Content,{title:this.state.title})),s.default.createElement(p.View,{style:I.container},s.default.createElement(v.ScrollView,{style:{padding:20}},s.default.createElement(p.View,{style:{marginTop:10,marginRight:20,marginLeft:20}},s.default.createElement(A.default,{borderBottomColor:'black',keyboardType:"numeric",label:this.renderLabel(),style:{marginTop:10},placeholder:this.renderLabel()})),s.default.createElement(p.View,{style:{marginTop:10,marginRight:20,marginLeft:20,marginBottom:10}},s.default.createElement(A.default,{borderBottomColor:'black',keyboardType:"numeric",label:T.default.t('AMOUNT'),style:{marginTop:10},placeholder:T.default.t('AMOUNT_LABEL_DESCRIPTION')})),s.default.createElement(p.View,{style:{margin:10}},s.default.createElement(h.default,{outline:!0,onPress:function(){}},T.default.t('VALIDATE')))))))}}]),l})(s.Component));e.default=_,_.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:T.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return s.default.createElement(C.default,{name:'credit-card',size:24})}}};var I=p.StyleSheet.create({container:{flex:1,backgroundColor:b.Color.containerBackgroundColor}})},1792,[4,1,8,9,10,12,11,13,15,18,720,1179,876,1026,774,1769,1767,2,815,1645]); -__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])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),y=l(r(d[8])),p=l(r(d[9])),C=t(r(d[10])),T=r(d[11]),E=t(r(d[12])),h=l(r(d[13])),v=l(r(d[14])),A=r(d[15]),W=r(d[16]),w=r(d[17]),S=r(d[18]),R=l(r(d[19])),b=r(d[20]),I=r(d[21]),L=r(d[22]),D=r(d[23]),N=r(d[24]),k=r(d[25]),_=r(d[26]),O=r(d[27]),x=r(d[28]),P=l(r(d[29])),V=r(d[30]),U=(r(d[31]),r(d[32]),(function(t){function l(t){var n;return(0,o.default)(this,l),(n=(0,s.default)(this,(0,u.default)(l).call(this,t))).renderGetActionCountryList=function(){var t=n.props,l=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==l&&void 0!==l.response&&(n.setState({hasLoadActiveCountryList:!1,paysDestination:l.response,paysDestinationSelect:l.response[0].name}),n.state.hasLoadActivePayCountryNetworkList&&n.props.getPayCountryNetworkAction({id_wallet_user:n.state.wallet.id,id_country:l.response[0].id})),null!==o&&(void 0!==o.data?T.Alert.alert(h.default.t('ERROR_LABEL'),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getActiveCountryReset()}}],{cancelable:!1}):T.Alert.alert(h.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:h.default.t("OK"),onPress:function(){n.props.getActiveCountryReset()}}],{cancelable:!1}))},n.renderGetPayCountryNetworkResponse=function(){var t=n.props,l=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;if(null!==l&&void 0!==l.response)if(l.response.length>0){var s=(0,N.isIlinkWorldWallet)(l.response[0].type)?h.default.t('CODE_WALLET'):h.default.t('PHONE');n.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:l.response,walletActifSelect:l.response[0].name,typeIdDestinataireSelect:s,isIlinkWorldWalletSelect:(0,N.isIlinkWorldWallet)(l.response[0].type),modalVisible:!1})}else 0===l.response.length&&n.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1});null!==o&&(void 0!==o.data?T.Alert.alert(h.default.t('ERROR_LABEL'),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getPayCountryNetworkReset()}}],{cancelable:!1}):T.Alert.alert(h.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:h.default.t("OK"),onPress:function(){n.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},n.renderEnvoieWalletToWalletResponse=function(){var t=n.props,l=t.resultEnvoieWalletToWallet,o=t.errorEnvoieWalletToWallet;null!==o&&void 0!==o.data&&T.Alert.alert(h.default.t("ERROR_TRANSFER"),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToWalletReset()}}],{cancelable:!1}),null!==l&&null!==l.response&&T.Alert.alert(h.default.t("SUCCESS_TRANSFER"),l.response,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToWalletReset(),V.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToWalletGetCommission;null!==t&&void 0!==t.data&&T.Alert.alert(h.default.t("ERROR_LABLE"),t.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToWalletReset()}}],{cancelable:!1})},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:h.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,N.isNormalInteger)(t)?t>parseInt(n.state.comptePrincipal)?{errorMessage:h.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:h.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.modalConfirmTransaction=function(t){var l=t.response.frais,o=t.response.montant_net_final,s=t.response.montant_net_init,u=t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(v.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},C.default.createElement(v.default.Title,null,h.default.t('TRANSACTION_DETAIL')),C.default.createElement(T.View,null,C.default.createElement(T.View,{style:[F.blockView,{borderBottomColor:L.Color.borderColor}]},C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{style:[F.body2]},h.default.t('DESTINATAIRE'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},u))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{style:[F.body2]},h.default.t('AMOUNT'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('FEES_AND_TAXES'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(l,' ')+" "+n.state.wallet.currency_code)))),C.default.createElement(T.View,{style:{paddingVertical:10}},C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},h.default.t('NET_AMOUNT'),":")),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]}))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('INIT_COUNTRY'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(s,' ')+" "+n.state.wallet.currency_code))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('FINAL_COUNTRY'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},o))))),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToWalletAction({type:1,id_wallet_user:n.state.wallet.id,final_country:n.state.paysDestination.filter(function(t){return t.name===n.state.paysDestinationSelect})[0].id,id_destinataire:n.state.numeroTelephoneOrWalletCode,type_document_destinataire:n.state.identityPiecesName,id_document_destinataire:n.state.numeroIdentite,network_destinataire:n.state.walletActifs.filter(function(t){return t.name===n.state.walletActifSelect})[0].id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToWalletReset()}}))},n.onSubmitSendWalletToWallet=function(){var t=n.state,l=t.identityPiecesName,o=t.paysDestinationSelect,s=t.numeroIdentite,u=t.walletActifSelect,c=t.typeIdDestinataireSelect,f=t.numeroTelephoneOrWalletCode,y=t.montant,p=t.password;n.ckeckIfFieldIsOK(l)?n.identityPiecesAnim.shake(800):n.ckeckIfFieldIsOK(o)?n.paysDestinationAnim.shake(800):n.ckeckIfFieldIsOK(u)?n.walletActifAnim.shake(800):n.ckeckIfFieldIsOK(c)?n.typeIdDestinataireAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.numeroIdentiteAnim.shake(800):n.ckeckIfFieldIsOK(f)?n.numeroTelephoneAnim.shake(800):n.ckeckIfFieldIsOK(y)||!n.isMontantValid().isValid?(console.log("IS MONTANT VALID",n.isMontantValid()),n.montantAnim.shake(800)):n.ckeckIfFieldIsOK(p)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToWalletAction({type:1,id_wallet_user:n.state.wallet.id,final_country:n.state.paysDestination.filter(function(t){return t.name===n.state.paysDestinationSelect})[0].id,id_destinataire:n.state.numeroTelephoneOrWalletCode,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return C.default.createElement(w.ProgressDialog,{visible:n.state.modalVisible||n.props.loadingEnvoieWalletToWalletGetCommission||n.props.loadingEnvoieWalletToWallet||n.props.loadingCountryByDialCode||n.props.loadingActiveCountryList||n.props.loadingCountryByDialCode,title:h.default.t('LOADING'),message:h.default.t('LOADING_INFO')})},n.state={identityPieces:(0,N.identityPieces)(),identityPiecesName:(0,N.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,typeIdDestinataire:(0,N.typeIdIDestinataire)(),typeIdDestinataireSelect:(0,N.typeIdIDestinataire)()[0].name,numeroTelephoneOrWalletCode:null,numeroIdentite:null,montant:null,password:null,isIlinkWorldWalletSelect:!1,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},n.props.getActiveCountryReset(),n.props.getActiveCountryByDialCodeReset(),n.props.getPayCountryNetworkReset(),n.props.envoieUserWalletToWalletReset(),n.props.getCommissionUserWalletToWalletReset(),n.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",n.props),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(l){l&&void 0!==l&&t.setState({user:l})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToWalletGetCommission&&void 0!==t.resultEnvoieWalletToWalletGetCommission.response&&(t.loadingEnvoieWalletToWalletGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var l=this.props.resultEnvoieWalletToWalletGetCommission;return C.default.createElement(C.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToWalletGetCommission||this.props.loadingEnvoieWalletToWallet||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),C.default.createElement(T.ScrollView,{style:F.container},C.default.createElement(T.Text,{style:F.subbigtitle},h.default.t('ENVOIE_WALLET_TO_WALLET')),C.default.createElement(E.View,{ref:function(l){t.paysDestinationAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(l,o,n){t.props.getPayCountryNetworkReset();var s=n.filter(function(t){return t.name===l});t.setState({paysDestinationSelect:l,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToWalletReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.walletActifAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(l,o,n){var s=n.filter(function(t){return t.name===l}),u=(0,N.isIlinkWorldWallet)(s[0].type)?h.default.t('CODE_WALLET'):h.default.t('PHONE');t.setState({walletActifSelect:l,typeIdDestinataireSelect:u})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.typeIdDestinataireAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{disabled:this.state.isIlinkWorldWalletSelect,label:h.default.t('TYPE_IDENTIFIANT'),data:this.state.typeIdDestinataire,useNativeDriver:!0,value:this.state.typeIdDestinataireSelect,onChangeText:function(l,o,n){t.setState({typeIdDestinataireSelect:l})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.numeroTelephoneAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?'phone':'lock',label:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?h.default.t('PHONE'):h.default.t('CODE_WALLET'),iconColor:'#f95a25',keyboardType:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?'phone-pad':'default',iconSize:20,value:this.state.numeroTelephoneOrWalletCode,onChangeText:function(l){t.setState({numeroTelephoneOrWalletCode:l})},style:F.input})),C.default.createElement(E.View,{ref:function(l){t.identityPiecesAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(l,o,n){t.setState({identityPiecesName:l})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.numeroIdentiteAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'address-card',label:""+h.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(l){t.setState({numeroIdentite:l})},style:F.input})),C.default.createElement(E.View,{ref:function(l){t.montantAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'money',label:h.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(l){t.setState({montant:l})},style:F.input}),C.default.createElement(T.View,{style:{position:'absolute',left:(0,W.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(T.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(T.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(E.View,{ref:function(l){t.passwordAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'lock',label:h.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:F.input})),C.default.createElement(f.default,{style:F.btnvalide,textStyle:F.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},h.default.t('SUBMIT_LABEL'))))}}]),l})(C.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('DEPOSIT_WALLET_TO_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('DEPOSIT_WALLET_TO_WALLET')}};var B=(0,b.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.loading,resultEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.result,errorEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.error,loadingEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.loading,resultEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.result,errorEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.error}},function(t){return(0,I.bindActionCreators)({getActiveCountryByDialCodeAction:_.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:_.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:_.getPayCountryNetworkAction,getPayCountryNetworkReset:_.getPayCountryNetworkReset,getActiveCountryAction:_.getActiveCountryAction,getActiveCountryReset:_.getActiveCountryReset,envoieUserWalletToWalletAction:O.envoieUserWalletToWalletAction,envoieUserWalletToWalletReset:O.envoieUserWalletToWalletReset,getCommissionUserWalletToWalletAction:O.getCommissionUserWalletToWalletAction,getCommissionUserWalletToWalletReset:O.getCommissionUserWalletToWalletReset},t)})(U);e.default=B;var F=T.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,W.responsiveHeight)(2),marginLeft:(0,W.responsiveWidth)(5),marginRight:(0,W.responsiveWidth)(5),borderRadius:5}})},1793,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,814,815]); +__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])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),y=l(r(d[8])),p=l(r(d[9])),C=t(r(d[10])),T=r(d[11]),E=t(r(d[12])),h=l(r(d[13])),v=l(r(d[14])),A=r(d[15]),W=r(d[16]),w=r(d[17]),S=r(d[18]),R=l(r(d[19])),b=r(d[20]),I=r(d[21]),L=r(d[22]),D=r(d[23]),N=r(d[24]),k=r(d[25]),_=r(d[26]),O=r(d[27]),x=r(d[28]),P=l(r(d[29])),V=r(d[30]),U=(r(d[31]),r(d[32]),(function(t){function l(t){var n;return(0,o.default)(this,l),(n=(0,s.default)(this,(0,u.default)(l).call(this,t))).renderGetActionCountryList=function(){var t=n.props,l=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==l&&void 0!==l.response&&(n.setState({hasLoadActiveCountryList:!1,paysDestination:l.response,paysDestinationSelect:l.response[0].name}),n.state.hasLoadActivePayCountryNetworkList&&n.props.getPayCountryNetworkAction({id_wallet_user:n.state.wallet.id,id_country:l.response[0].id})),null!==o&&(void 0!==o.data?T.Alert.alert(h.default.t('ERROR_LABEL'),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getActiveCountryReset()}}],{cancelable:!1}):T.Alert.alert(h.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:h.default.t("OK"),onPress:function(){n.props.getActiveCountryReset()}}],{cancelable:!1}))},n.renderGetPayCountryNetworkResponse=function(){var t=n.props,l=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;if(null!==l&&void 0!==l.response)if(l.response.length>0){var s=(0,N.isIlinkWorldWallet)(l.response[0].type)?h.default.t('CODE_WALLET'):h.default.t('PHONE');n.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:l.response,walletActifSelect:l.response[0].name,typeIdDestinataireSelect:s,isIlinkWorldWalletSelect:(0,N.isIlinkWorldWallet)(l.response[0].type),modalVisible:!1})}else 0===l.response.length&&n.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1});null!==o&&(void 0!==o.data?T.Alert.alert(h.default.t('ERROR_LABEL'),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getPayCountryNetworkReset()}}],{cancelable:!1}):T.Alert.alert(h.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:h.default.t("OK"),onPress:function(){n.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},n.renderEnvoieWalletToWalletResponse=function(){var t=n.props,l=t.resultEnvoieWalletToWallet,o=t.errorEnvoieWalletToWallet;null!==o&&void 0!==o.data&&T.Alert.alert(h.default.t("ERROR_TRANSFER"),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToWalletReset()}}],{cancelable:!1}),null!==l&&null!==l.response&&T.Alert.alert(h.default.t("SUCCESS_TRANSFER"),l.response,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToWalletReset(),V.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToWalletGetCommission;null!==t&&void 0!==t.data&&T.Alert.alert(h.default.t("ERROR_LABLE"),t.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToWalletReset()}}],{cancelable:!1})},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:h.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,N.isNormalInteger)(t)?t>parseInt(n.state.comptePrincipal)?{errorMessage:h.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:h.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.modalConfirmTransaction=function(t){var l=t.response.frais,o=t.response.montant_net_final,s=t.response.montant_net_init,u=t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(v.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},C.default.createElement(v.default.Title,null,h.default.t('TRANSACTION_DETAIL')),C.default.createElement(T.View,null,C.default.createElement(T.View,{style:[F.blockView,{borderBottomColor:L.Color.borderColor}]},C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{style:[F.body2]},h.default.t('DESTINATAIRE'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},u))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{style:[F.body2]},h.default.t('AMOUNT'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('FEES_AND_TAXES'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(l,' ')+" "+n.state.wallet.currency_code)))),C.default.createElement(T.View,{style:{paddingVertical:10}},C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},h.default.t('NET_AMOUNT'),":")),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]}))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('INIT_COUNTRY'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},(0,P.default)(s,' ')+" "+n.state.wallet.currency_code))),C.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(T.View,{style:{flex:1}},C.default.createElement(T.Text,{tyle:[x.Typography.body2]},h.default.t('FINAL_COUNTRY'))),C.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(T.Text,{style:[x.Typography.caption1,L.Color.grayColor]},o))))),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),C.default.createElement(v.default.Button,{bold:!0,label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToWalletAction({type:1,id_wallet_user:n.state.wallet.id,final_country:n.state.paysDestination.filter(function(t){return t.name===n.state.paysDestinationSelect})[0].id,id_destinataire:n.state.numeroTelephoneOrWalletCode,type_document_destinataire:n.state.identityPiecesName,id_document_destinataire:n.state.numeroIdentite,network_destinataire:n.state.walletActifs.filter(function(t){return t.name===n.state.walletActifSelect})[0].id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToWalletReset()}}))},n.onSubmitSendWalletToWallet=function(){var t=n.state,l=t.identityPiecesName,o=t.paysDestinationSelect,s=t.numeroIdentite,u=t.walletActifSelect,c=t.typeIdDestinataireSelect,f=t.numeroTelephoneOrWalletCode,y=t.montant,p=t.password;n.ckeckIfFieldIsOK(l)?n.identityPiecesAnim.shake(800):n.ckeckIfFieldIsOK(o)?n.paysDestinationAnim.shake(800):n.ckeckIfFieldIsOK(u)?n.walletActifAnim.shake(800):n.ckeckIfFieldIsOK(c)?n.typeIdDestinataireAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.numeroIdentiteAnim.shake(800):n.ckeckIfFieldIsOK(f)?n.numeroTelephoneAnim.shake(800):n.ckeckIfFieldIsOK(y)||!n.isMontantValid().isValid?(console.log("IS MONTANT VALID",n.isMontantValid()),n.montantAnim.shake(800)):n.ckeckIfFieldIsOK(p)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToWalletAction({type:1,id_wallet_user:n.state.wallet.id,final_country:n.state.paysDestination.filter(function(t){return t.name===n.state.paysDestinationSelect})[0].id,id_destinataire:n.state.numeroTelephoneOrWalletCode,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return C.default.createElement(w.ProgressDialog,{visible:n.state.modalVisible||n.props.loadingEnvoieWalletToWalletGetCommission||n.props.loadingEnvoieWalletToWallet||n.props.loadingCountryByDialCode||n.props.loadingActiveCountryList||n.props.loadingCountryByDialCode,title:h.default.t('LOADING'),message:h.default.t('LOADING_INFO')})},n.state={identityPieces:(0,N.identityPieces)(),identityPiecesName:h.default.t((0,N.identityPieces)()[0].name),paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,typeIdDestinataire:(0,N.typeIdIDestinataire)(),typeIdDestinataireSelect:(0,N.typeIdIDestinataire)()[0].name,numeroTelephoneOrWalletCode:null,numeroIdentite:null,montant:null,password:null,isIlinkWorldWalletSelect:!1,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},n.props.getActiveCountryReset(),n.props.getActiveCountryByDialCodeReset(),n.props.getPayCountryNetworkReset(),n.props.envoieUserWalletToWalletReset(),n.props.getCommissionUserWalletToWalletReset(),n.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",n.props),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(l){l&&void 0!==l&&t.setState({user:l})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToWalletGetCommission&&void 0!==t.resultEnvoieWalletToWalletGetCommission.response&&(t.loadingEnvoieWalletToWalletGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var l=this.props.resultEnvoieWalletToWalletGetCommission;return C.default.createElement(C.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToWalletGetCommission||this.props.loadingEnvoieWalletToWallet||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),C.default.createElement(T.ScrollView,{style:F.container},C.default.createElement(T.Text,{style:F.subbigtitle},h.default.t('ENVOIE_WALLET_TO_WALLET')),C.default.createElement(E.View,{ref:function(l){t.paysDestinationAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(l,o,n){t.props.getPayCountryNetworkReset();var s=n.filter(function(t){return t.name===l});t.setState({paysDestinationSelect:l,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToWalletReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.walletActifAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(l,o,n){var s=n.filter(function(t){return t.name===l}),u=(0,N.isIlinkWorldWallet)(s[0].type)?h.default.t('CODE_WALLET'):h.default.t('PHONE');t.setState({walletActifSelect:l,typeIdDestinataireSelect:u})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.typeIdDestinataireAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{disabled:this.state.isIlinkWorldWalletSelect,label:h.default.t('TYPE_IDENTIFIANT'),data:this.state.typeIdDestinataire,useNativeDriver:!0,value:this.state.typeIdDestinataireSelect,onChangeText:function(l,o,n){t.setState({typeIdDestinataireSelect:l})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(E.View,{ref:function(l){t.numeroTelephoneAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?'phone':'lock',label:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?h.default.t('PHONE'):h.default.t('CODE_WALLET'),iconColor:'#f95a25',keyboardType:(0,y.default)(this.state.typeIdDestinataireSelect,h.default.t('PHONE'))?'phone-pad':'default',iconSize:20,value:this.state.numeroTelephoneOrWalletCode,onChangeText:function(l){t.setState({numeroTelephoneOrWalletCode:l})},style:F.input})),C.default.createElement(E.View,{ref:function(l){t.identityPiecesAnim=l},style:{width:(0,W.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(A.Dropdown,{label:h.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(l,o,n){t.setState({identityPiecesName:l})},valueExtractor:function(t){return h.default.t(t.name)},labelExtractor:function(t){return h.default.t(t.name)}})),C.default.createElement(E.View,{ref:function(l){t.numeroIdentiteAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'address-card',label:""+h.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(l){t.setState({numeroIdentite:l})},style:F.input})),C.default.createElement(E.View,{ref:function(l){t.montantAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'money',label:h.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(l){t.setState({montant:l})},style:F.input}),C.default.createElement(T.View,{style:{position:'absolute',left:(0,W.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(T.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(T.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(E.View,{ref:function(l){t.passwordAnim=l}},C.default.createElement(S.Fumi,{iconClass:R.default,iconName:'lock',label:h.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:F.input})),C.default.createElement(f.default,{style:F.btnvalide,textStyle:F.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},h.default.t('SUBMIT_LABEL'))))}}]),l})(C.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('DEPOSIT_WALLET_TO_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('DEPOSIT_WALLET_TO_WALLET')}};var B=(0,b.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.loading,resultEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.result,errorEnvoieWalletToWallet:t.envoieUserWalletToWalletReducer.error,loadingEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.loading,resultEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.result,errorEnvoieWalletToWalletGetCommission:t.envoieUserWalletToWalletGetCommissionReducer.error}},function(t){return(0,I.bindActionCreators)({getActiveCountryByDialCodeAction:_.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:_.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:_.getPayCountryNetworkAction,getPayCountryNetworkReset:_.getPayCountryNetworkReset,getActiveCountryAction:_.getActiveCountryAction,getActiveCountryReset:_.getActiveCountryReset,envoieUserWalletToWalletAction:O.envoieUserWalletToWalletAction,envoieUserWalletToWalletReset:O.envoieUserWalletToWalletReset,getCommissionUserWalletToWalletAction:O.getCommissionUserWalletToWalletAction,getCommissionUserWalletToWalletReset:O.getCommissionUserWalletToWalletReset},t)})(U);e.default=B;var F=T.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,W.responsiveHeight)(2),marginLeft:(0,W.responsiveWidth)(5),marginRight:(0,W.responsiveWidth)(5),borderRadius:5}})},1793,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,814,815]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getActiveCountryByDialCodeReset=e.getActiveCountryByDialCodeAction=e.getPayCountryNetworkReset=e.getOtherPayCountryNetworkAction=e.getPayCountryNetworkAction=e.getActiveCountryReset=e.getActiveCountryAction=void 0;var o=t(r(d[1])),n=t(r(d[2])),u=r(d[3]),c=r(d[4]),y=r(d[5]);e.getActiveCountryAction=function(){var t=c.store.getState().authKeyReducer,s=null!==t?t.authKey.token_type+" "+t.authKey.access_token:'';return function(t){t((0,u.fetchActiveCountryListPending)()),(0,o.default)({url:""+y.activeCountryUrl,method:'GET',headers:{Authorization:s,'X-Localization':n.default.currentLocale()}}).then(function(o){console.log(o),t((0,u.fetchActiveCountryListSucsess)(o))}).catch(function(o){o.response?t((0,u.fetchActiveCountryListError)(o.response)):o.request?t((0,u.fetchActiveCountryListError)(o.request)):t((0,u.fetchActiveCountryListError)(o.message))})}};e.getActiveCountryReset=function(){return function(t){t((0,u.fetchActiveCountryListReset)())}};e.getPayCountryNetworkAction=function(t){var s=c.store.getState().authKeyReducer,h=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(c){c((0,u.fetchPayCountryNetworkPending)()),(0,o.default)({url:""+y.payCountryNetworkUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchPayCountryNetworkSucsess)(t))}).catch(function(t){t.response?c((0,u.fetchPayCountryNetworkError)(t.response)):t.request?c((0,u.fetchPayCountryNetworkError)(t.request)):c((0,u.fetchPayCountryNetworkError)(t.message))})}};e.getOtherPayCountryNetworkAction=function(t){var s=c.store.getState().authKeyReducer,h=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(c){c((0,u.fetchPayCountryNetworkPending)()),(0,o.default)({url:""+y.otherPayCountryNetworkUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchPayCountryNetworkSucsess)(t))}).catch(function(t){t.response?c((0,u.fetchPayCountryNetworkError)(t.response)):t.request?c((0,u.fetchPayCountryNetworkError)(t.request)):c((0,u.fetchPayCountryNetworkError)(t.message))})}};e.getPayCountryNetworkReset=function(){return function(t){t((0,u.fetchPayCountryNetworkReset)())}};e.getActiveCountryByDialCodeAction=function(t){var y=c.store.getState().authKeyReducer,s=null!==y?y.authKey.token_type+" "+y.authKey.access_token:'';return function(c){c((0,u.fetchCountryByDialCodePending)()),(0,o.default)({url:activeCountryUrlGET+"/"+t,method:'GET',headers:{Authorization:s,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchCountryByDialCodeSucsess)(t))}).catch(function(t){t.response?c((0,u.fetchCountryByDialCodeError)(t.response)):t.request?c((0,u.fetchCountryByDialCodeError)(t.request)):c((0,u.fetchCountryByDialCodeError)(t.message))})}};e.getActiveCountryByDialCodeReset=function(){return function(t){t((0,u.fetchCountryByDialCodeReset)())}}},1794,[1,1073,720,1795,1099,744]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchCountryByDialCodeReset=e.fetchCountryByDialCodeError=e.fetchCountryByDialCodeSucsess=e.fetchCountryByDialCodePending=e.fetchPayCountryNetworkReset=e.fetchPayCountryNetworkError=e.fetchPayCountryNetworkSucsess=e.fetchPayCountryNetworkPending=e.fetchActiveCountryListReset=e.fetchActiveCountryListError=e.fetchActiveCountryListSucsess=e.fetchActiveCountryListPending=void 0;var t=r(d[0]);e.fetchActiveCountryListPending=function(){return{type:t.ACTIVE_COUNTRY_LIST_PENDING}};e.fetchActiveCountryListSucsess=function(n){return{type:t.ACTIVE_COUNTRY_LIST_SUCCESS,result:n}};e.fetchActiveCountryListError=function(n){return{type:t.ACTIVE_COUNTRY_LIST_ERROR,result:n}};e.fetchActiveCountryListReset=function(){return{type:t.ACTIVE_COUNTRY_LIST_RESET}};e.fetchPayCountryNetworkPending=function(){return{type:t.PAY_COUNTRY_NETWORK_PENDING}};e.fetchPayCountryNetworkSucsess=function(n){return{type:t.PAY_COUNTRY_NETWORK_SUCCESS,result:n}};e.fetchPayCountryNetworkError=function(n){return{type:t.PAY_COUNTRY_NETWORK_ERROR,result:n}};e.fetchPayCountryNetworkReset=function(){return{type:t.PAY_COUNTRY_NETWORK_RESET}};e.fetchCountryByDialCodePending=function(){return{type:t.COUNTRY_BY_DIAL_CODE_PENDING}};e.fetchCountryByDialCodeSucsess=function(n){return{type:t.COUNTRY_BY_DIAL_CODE_SUCCESS,result:n}};e.fetchCountryByDialCodeError=function(t){return{type:COUNTRY_BY_DIAL_CODE_ERROR,result:t}};e.fetchCountryByDialCodeReset=function(){return{type:t.COUNTRY_BY_DIAL_CODE_RESET}}},1795,[1116]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getCommissionUserWalletToCardReset=e.getCommissionUserWalletToCardAction=e.envoieUserWalletToCardReset=e.envoieUserWalletToCardAction=e.getCommissionUserWalletToCashReset=e.getCommissionUserWalletToCashAction=e.envoieUserWalletToCashReset=e.envoieUserWalletToCashAction=e.getCommissionUserWalletToWalletReset=e.getCommissionUserWalletToWalletAction=e.envoieUserWalletToWalletReset=e.envoieUserWalletToWalletAction=void 0;var o=t(r(d[1])),n=t(r(d[2])),s=r(d[3]),l=r(d[4]),c=r(d[5]);e.envoieUserWalletToWalletAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToWalletPending)()),(0,o.default)({url:""+l.envoieUserWalletToWallet,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToWalletSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToWalletError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToWalletError)(t.request)):s((0,c.fetchEnvoieUserWalletToWalletError)(t.message))})}};e.envoieUserWalletToWalletReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToWalletReset)())}};e.getCommissionUserWalletToWalletAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToWalleGetCommissiontPending)()),(0,o.default)({url:""+l.envoieCommissionUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToWalletGetCommissionSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToWalletGetCommissionError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToWalletGetCommissionError)(t.request)):s((0,c.fetchEnvoieUserWalletToWalletGetCommissionError)(t.message))})}};e.getCommissionUserWalletToWalletReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToWalleGetCommissiontReset)())}};e.envoieUserWalletToCashAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToCashPending)()),(0,o.default)({url:""+l.envoieUserWalletToWallet,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToCashSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToCashError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToCashError)(t.request)):s((0,c.fetchEnvoieUserWalletToCashError)(t.message))})}};e.envoieUserWalletToCashReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToCashReset)())}};e.getCommissionUserWalletToCashAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToCashGetCommissiontPending)()),(0,o.default)({url:""+l.envoieCommissionUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToCashGetCommissionSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToCashGetCommissionError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToCashGetCommissionError)(t.request)):s((0,c.fetchEnvoieUserWalletToCashGetCommissionError)(t.message))})}};e.getCommissionUserWalletToCashReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToCashGetCommissiontReset)())}};e.envoieUserWalletToCardAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToCardPending)()),(0,o.default)({url:""+l.envoieUserWalletToWallet,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToCardSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToCardError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToCardError)(t.request)):s((0,c.fetchEnvoieUserWalletToCardError)(t.message))})}};e.envoieUserWalletToCardReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToCardReset)())}};e.getCommissionUserWalletToCardAction=function(t){var u=s.store.getState().authKeyReducer,h=null!==u?u.authKey.token_type+" "+u.authKey.access_token:'';return function(s){s((0,c.fetchEnvoieUserWalletToCardGetCommissiontPending)()),(0,o.default)({url:""+l.envoieCommissionUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':n.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchEnvoieUserWalletToCardGetCommissionSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchEnvoieUserWalletToCardGetCommissionError)(t.response)):t.request?s((0,c.fetchEnvoieUserWalletToCardGetCommissionError)(t.request)):s((0,c.fetchEnvoieUserWalletToCardGetCommissionError)(t.message))})}};e.getCommissionUserWalletToCardReset=function(){return function(t){t((0,c.fetchEnvoieUserWalletToCardGetCommissiontReset)())}}},1796,[1,1073,720,1099,744,1797]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchEnvoieUserWalletToCardGetCommissiontReset=e.fetchEnvoieUserWalletToCardGetCommissionError=e.fetchEnvoieUserWalletToCardGetCommissionSuccess=e.fetchEnvoieUserWalletToCardGetCommissiontPending=e.fetchEnvoieUserWalletToCardReset=e.fetchEnvoieUserWalletToCardError=e.fetchEnvoieUserWalletToCardSuccess=e.fetchEnvoieUserWalletToCardPending=e.fetchEnvoieUserWalletToCashGetCommissiontReset=e.fetchEnvoieUserWalletToCashGetCommissionError=e.fetchEnvoieUserWalletToCashGetCommissionSuccess=e.fetchEnvoieUserWalletToCashGetCommissiontPending=e.fetchEnvoieUserWalletToCashReset=e.fetchEnvoieUserWalletToCashError=e.fetchEnvoieUserWalletToCashSuccess=e.fetchEnvoieUserWalletToCashPending=e.fetchEnvoieUserWalletToWalleGetCommissiontReset=e.fetchEnvoieUserWalletToWalletGetCommissionError=e.fetchEnvoieUserWalletToWalletGetCommissionSuccess=e.fetchEnvoieUserWalletToWalleGetCommissiontPending=e.fetchEnvoieUserWalletToWalletReset=e.fetchEnvoieUserWalletToWalletError=e.fetchEnvoieUserWalletToWalletSuccess=e.fetchEnvoieUserWalletToWalletPending=void 0;var t=r(d[0]);e.fetchEnvoieUserWalletToWalletPending=function(){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_PENDING}};e.fetchEnvoieUserWalletToWalletSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_SUCCESS,result:E}};e.fetchEnvoieUserWalletToWalletError=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_ERROR,result:E}};e.fetchEnvoieUserWalletToWalletReset=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_RESET}};e.fetchEnvoieUserWalletToWalleGetCommissiontPending=function(){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_PENDING}};e.fetchEnvoieUserWalletToWalletGetCommissionSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_SUCCESS,result:E}};e.fetchEnvoieUserWalletToWalletGetCommissionError=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_ERROR,result:E}};e.fetchEnvoieUserWalletToWalleGetCommissiontReset=function(E){return{type:t.ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_RESET}};e.fetchEnvoieUserWalletToCashPending=function(){return{type:t.ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_PENDING}};e.fetchEnvoieUserWalletToCashSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_SUCCESS,result:E}};e.fetchEnvoieUserWalletToCashError=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_ERROR,result:E}};e.fetchEnvoieUserWalletToCashReset=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_RESET}};e.fetchEnvoieUserWalletToCashGetCommissiontPending=function(){return{type:t.ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_PENDING}};e.fetchEnvoieUserWalletToCashGetCommissionSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_SUCCESS,result:E}};e.fetchEnvoieUserWalletToCashGetCommissionError=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_ERROR,result:E}};e.fetchEnvoieUserWalletToCashGetCommissiontReset=function(E){return{type:t.ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_RESET}};e.fetchEnvoieUserWalletToCardPending=function(){return{type:t.ENVOIE_WALLET_TO_CARD_USER_PENDING}};e.fetchEnvoieUserWalletToCardSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_SUCCESS,result:E}};e.fetchEnvoieUserWalletToCardError=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_ERROR,result:E}};e.fetchEnvoieUserWalletToCardReset=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_RESET}};e.fetchEnvoieUserWalletToCardGetCommissiontPending=function(){return{type:t.ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_PENDING}};e.fetchEnvoieUserWalletToCardGetCommissionSuccess=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_SUCCESS,result:E}};e.fetchEnvoieUserWalletToCardGetCommissionError=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_ERROR,result:E}};e.fetchEnvoieUserWalletToCardGetCommissiontReset=function(E){return{type:t.ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_RESET}}},1797,[1130]); -__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])),l=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),y=o(r(d[8])),p=o(r(d[9])),C=t(r(d[10])),h=r(d[11]),T=t(r(d[12])),E=o(r(d[13])),A=o(r(d[14])),v=r(d[15]),w=r(d[16]),R=r(d[17]),S=r(d[18]),b=o(r(d[19])),N=r(d[20]),k=r(d[21]),L=r(d[22]),D=r(d[23]),I=r(d[24]),_=r(d[25]),x=r(d[26]),W=r(d[27]),O=r(d[28]),P=o(r(d[29])),V=r(d[30]),U=(r(d[31]),r(d[32]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderGetActionCountryList=function(){var t=l.props,o=t.resultActiveCountryList,n=t.errorActiveCountryList;null!==o&&void 0!==o.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:o.response,paysDestinationSelect:o.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getPayCountryNetworkAction({id_wallet_user:l.state.wallet.id,id_country:o.response[0].id})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,o=t.resultPayCountryNetwork,n=t.errorPayCountryNetwork;null!==o&&void 0!==o.response&&(o.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:o.response,walletActifSelect:o.response[0].name,modalVisible:!1}):0===o.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,o=t.resultEnvoieWalletToCash,n=t.errorEnvoieWalletToCash;null!==n&&void 0!==n.data&&h.Alert.alert(E.default.t("ERROR_TRANSFER"),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&h.Alert.alert(E.default.t("SUCCESS_TRANSFER"),o.response,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),V.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&h.Alert.alert(E.default.t("ERROR_LABLE"),t.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:E.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:E.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:E.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var o=t.response.frais,n=t.response.montant_net_final,s=t.response.montant_net_init;t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},C.default.createElement(A.default.Title,null,E.default.t('TRANSACTION_DETAIL')),C.default.createElement(h.View,null,C.default.createElement(h.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('DESTINATAIRE'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},l.state.prenoms+" "+l.state.noms))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('AMOUNT'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FEES_AND_TAXES'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(o,' ')+" "+l.state.wallet.currency_code)))),C.default.createElement(h.View,{style:{paddingVertical:10}},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2,O.FontWeight.bold]},E.default.t('NET_AMOUNT'),":")),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]}))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('INIT_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(s,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FINAL_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},n))))),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroTelephone,type_document_destinataire:l.state.identityPiecesName,nom_destinataire:l.state.noms,prenom_destinataire:l.state.prenoms,id_document_destinataire:l.state.numeroIdentite,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitSendWalletToWallet=function(){var t=l.state,o=t.identityPiecesName,n=t.noms,s=t.prenoms,u=t.paysDestinationSelect,c=t.numeroIdentite,f=t.walletActifSelect,y=(t.typeIdDestinataireSelect,t.numeroTelephone),p=t.montant,C=t.password;l.ckeckIfFieldIsOK(o)?l.identityPiecesAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.paysDestinationAnim.shake(800):l.ckeckIfFieldIsOK(f)?l.walletActifAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.firstnameAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.lastnameAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.numeroIdentiteAnim.shake(800):l.ckeckIfFieldIsOK(y)?l.numeroTelephoneAnim.shake(800):l.ckeckIfFieldIsOK(p)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(C)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0})},l.renderLoader=function(){return C.default.createElement(R.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:E.default.t('LOADING'),message:E.default.t('LOADING_INFO')})},l.state={identityPieces:(0,I.identityPieces)(),identityPiecesName:(0,I.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,noms:null,prenoms:null,numeroTelephone:null,numeroIdentite:null,montant:null,password:null,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props),l}return(0,c.default)(o,t),(0,l.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,_.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var o=this.props.resultEnvoieWalletToCashGetCommission;return C.default.createElement(C.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),C.default.createElement(h.ScrollView,{style:B.container},C.default.createElement(h.Text,{style:B.subbigtitle},E.default.t('ENVOIE_WALLET_TO_CASH')),C.default.createElement(T.View,{ref:function(o){t.paysDestinationAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(o,n,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===o});t.setState({paysDestinationSelect:o,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.walletActifAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(o,n,l){t.setState({walletActifSelect:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.firstnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user',label:""+E.default.t('NAME'),iconColor:'#f95a25',iconSize:20,value:this.state.noms,onChangeText:function(o){t.setState({noms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.lastnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+E.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.prenoms,onChangeText:function(o){t.setState({prenoms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.numeroTelephoneAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,E.default.t('PHONE'))?'phone':'lock',label:E.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",iconSize:20,value:this.state.numeroTelephone,onChangeText:function(o){t.setState({numeroTelephone:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.identityPiecesAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(o,n,l){t.setState({identityPiecesName:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.numeroIdentiteAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'address-card',label:""+E.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(o){t.setState({numeroIdentite:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.montantAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'money',label:E.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:B.input}),C.default.createElement(h.View,{style:{position:'absolute',left:(0,w.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(h.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(h.Text,{style:[O.Typography.body1,O.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(T.View,{ref:function(o){t.passwordAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'lock',label:E.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:B.input})),C.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},E.default.t('SUBMIT_LABEL'))))}}]),o})(C.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('DEPOSIT_WALLET_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('DEPOSIT_WALLET_TO_CASH')}};var F=(0,N.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,k.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:x.envoieUserWalletToCashAction,envoieUserWalletToCashReset:x.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:x.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:x.getCommissionUserWalletToCashReset},t)})(U);e.default=F;var B=h.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,w.responsiveHeight)(2),marginLeft:(0,w.responsiveWidth)(5),marginRight:(0,w.responsiveWidth)(5),borderRadius:5}})},1798,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1796,1794,1015,1646,774,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])),l=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),y=o(r(d[8])),C=o(r(d[9])),p=t(r(d[10])),h=r(d[11]),T=t(r(d[12])),E=o(r(d[13])),A=o(r(d[14])),v=r(d[15]),w=r(d[16]),S=r(d[17]),b=r(d[18]),R=o(r(d[19])),k=r(d[20]),N=r(d[21]),L=r(d[22]),D=r(d[23]),I=r(d[24]),_=r(d[25]),x=r(d[26]),W=r(d[27]),V=r(d[28]),O=o(r(d[29])),P=r(d[30]),U=(r(d[31]),r(d[32]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderGetActionCountryList=function(){var t=l.props,o=t.resultActiveCountryList,n=t.errorActiveCountryList;null!==o&&void 0!==o.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:o.response,paysDestinationSelect:o.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getPayCountryNetworkAction({id_wallet_user:l.state.wallet.id,id_country:o.response[0].id})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,o=t.resultPayCountryNetwork,n=t.errorPayCountryNetwork;null!==o&&void 0!==o.response&&(o.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:o.response,walletActifSelect:o.response[0].name,modalVisible:!1}):0===o.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1}),l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset(),l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1})}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,o=t.resultEnvoieWalletToCash,n=t.errorEnvoieWalletToCash;null!==n&&void 0!==n.data&&h.Alert.alert(E.default.t("ERROR_TRANSFER"),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1}),l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&h.Alert.alert(E.default.t("SUCCESS_TRANSFER"),o.response,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),P.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop(),l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1})}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&h.Alert.alert(E.default.t("ERROR_LABLE"),t.data.error,[{text:E.default.t("OK"),onPress:function(){l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1}),l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:E.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:E.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:E.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var o=t.response.frais,n=t.response.montant_net_final,s=t.response.montant_net_init;t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),p.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},p.default.createElement(A.default.Title,null,E.default.t('TRANSACTION_DETAIL')),p.default.createElement(h.View,null,p.default.createElement(h.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{style:[B.body2]},E.default.t('DESTINATAIRE'))),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]},l.state.prenoms+" "+l.state.noms))),p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{style:[B.body2]},E.default.t('AMOUNT'))),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,O.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{tyle:[V.Typography.body2]},E.default.t('FEES_AND_TAXES'))),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,O.default)(o,' ')+" "+l.state.wallet.currency_code)))),p.default.createElement(h.View,{style:{paddingVertical:10}},p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{tyle:[V.Typography.body2,V.FontWeight.bold]},E.default.t('NET_AMOUNT'),":")),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]}))),p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{tyle:[V.Typography.body2]},E.default.t('INIT_COUNTRY'))),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,O.default)(s,' ')+" "+l.state.wallet.currency_code))),p.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.Text,{tyle:[V.Typography.body2]},E.default.t('FINAL_COUNTRY'))),p.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(h.Text,{style:[V.Typography.caption1,L.Color.grayColor]},n))))),p.default.createElement(A.default.Button,{bold:!0,label:E.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isDataSubmit:!1,isModalConfirmVisible:!1,triggerSubmitClick:!1})}}),p.default.createElement(A.default.Button,{bold:!0,label:E.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({triggerSubmitClick:!1,isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroTelephone,type_document_destinataire:l.state.identityPiecesName,nom_destinataire:l.state.noms,prenom_destinataire:l.state.prenoms,id_document_destinataire:l.state.numeroIdentite,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitSendWalletToWallet=function(){var t=l.state,o=t.identityPiecesName,n=t.noms,s=t.prenoms,u=t.paysDestinationSelect,c=t.numeroIdentite,f=t.walletActifSelect,y=(t.typeIdDestinataireSelect,t.numeroTelephone),C=t.montant,p=t.password;l.ckeckIfFieldIsOK(o)?l.identityPiecesAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.paysDestinationAnim.shake(800):l.ckeckIfFieldIsOK(f)?l.walletActifAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.firstnameAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.lastnameAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.numeroIdentiteAnim.shake(800):l.ckeckIfFieldIsOK(y)?l.numeroTelephoneAnim.shake(800):l.ckeckIfFieldIsOK(C)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(p)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0})},l.renderLoader=function(){return p.default.createElement(S.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:E.default.t('LOADING'),message:E.default.t('LOADING_INFO')})},l.state={identityPieces:(0,I.identityPieces)(),identityPiecesName:E.default.t((0,I.identityPieces)()[0].name),paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,noms:null,prenoms:null,numeroTelephone:null,numeroIdentite:null,montant:null,password:null,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props),l}return(0,c.default)(o,t),(0,l.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,_.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var o=this.props.resultEnvoieWalletToCashGetCommission;return p.default.createElement(p.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&!this.state.triggerSubmitClick&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),p.default.createElement(h.ScrollView,{style:B.container},p.default.createElement(h.Text,{style:B.subbigtitle},E.default.t('ENVOIE_WALLET_TO_CASH')),p.default.createElement(T.View,{ref:function(o){t.paysDestinationAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},p.default.createElement(v.Dropdown,{label:E.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(o,n,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===o});t.setState({paysDestinationSelect:o,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),p.default.createElement(T.View,{ref:function(o){t.walletActifAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},p.default.createElement(v.Dropdown,{label:E.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,C.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(o,n,l){t.setState({walletActifSelect:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),p.default.createElement(T.View,{ref:function(o){t.firstnameAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user',label:""+E.default.t('NAME'),iconColor:'#f95a25',iconSize:20,value:this.state.noms,onChangeText:function(o){t.setState({noms:o})},style:B.input})),p.default.createElement(T.View,{ref:function(o){t.lastnameAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+E.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.prenoms,onChangeText:function(o){t.setState({prenoms:o})},style:B.input})),p.default.createElement(T.View,{ref:function(o){t.numeroTelephoneAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,E.default.t('PHONE'))?'phone':'lock',label:E.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",iconSize:20,value:this.state.numeroTelephone,onChangeText:function(o){t.setState({numeroTelephone:o})},style:B.input})),p.default.createElement(T.View,{ref:function(o){t.identityPiecesAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},p.default.createElement(v.Dropdown,{label:E.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(o,n,l){t.setState({identityPiecesName:o})},valueExtractor:function(t){return E.default.t(t.name)},labelExtractor:function(t){return E.default.t(t.name)}})),p.default.createElement(T.View,{ref:function(o){t.numeroIdentiteAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:'address-card',label:""+E.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(o){t.setState({numeroIdentite:o})},style:B.input})),p.default.createElement(T.View,{ref:function(o){t.montantAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:'money',label:E.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:B.input}),p.default.createElement(h.View,{style:{position:'absolute',left:(0,w.responsiveWidth)(82),top:35,flexDirection:'row'}},p.default.createElement(h.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),p.default.createElement(h.Text,{style:[V.Typography.body1,V.FontWeight.bold]},this.state.wallet.currency_code))),p.default.createElement(T.View,{ref:function(o){t.passwordAnim=o}},p.default.createElement(b.Fumi,{iconClass:R.default,iconName:'lock',label:E.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:B.input})),p.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},E.default.t('SUBMIT_LABEL'))))}}]),o})(p.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('DEPOSIT_WALLET_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('DEPOSIT_WALLET_TO_CASH')}};var F=(0,k.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,N.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:x.envoieUserWalletToCashAction,envoieUserWalletToCashReset:x.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:x.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:x.getCommissionUserWalletToCashReset},t)})(U);e.default=F;var B=h.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,w.responsiveHeight)(2),marginLeft:(0,w.responsiveWidth)(5),marginRight:(0,w.responsiveWidth)(5),borderRadius:5}})},1798,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1796,1794,1015,1646,774,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])),u=n(r(d[4])),s=n(r(d[5])),c=n(r(d[6]));r(d[7]),r(d[8]),r(d[9]),r(d[10]),r(d[11]),r(d[12]),r(d[13]);var C=t(r(d[14])),p=r(d[15]),f=r(d[16]),v=n(r(d[17])),h=r(d[18]),R=r(d[19]),E=r(d[20]),b=n(r(d[21])),k=(n(r(d[22])),r(d[23])),_=r(d[24]),y=r(d[25]),A=r(d[26]),I=(r(d[27]),p.Dimensions.get("window").width,(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t))).renderLoader=function(){return C.default.createElement(y.ProgressDialog,{visible:l.props.loading,title:v.default.t('LOADING'),message:v.default.t('LOADING_INFO')})},l.renderDialogResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&p.Alert.alert(v.default.t("ERROR_LABLE"),o.data.error,[{text:v.default.t("OK"),onPress:function(){l.props.linkCardReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&p.Alert.alert(v.default.t("SUCCESS"),n.response,[{text:v.default.t("OK"),onPress:function(){l.props.navigation.pop(),l.props.linkCardReset()}}],{cancelable:!1})},l.onCreditCardChange=function(t){l.setState({creditCardInput:t})},l.isCreditCardValid=function(){var t=l.state.creditCardInput,n=[];return void 0!==t.status?('incomplete'===t.status.cvc&&n.push(v.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&n.push(v.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&n.push(v.default.t('CARD_NUMBER_ERROR'))):n.push(v.default.t('THIS_FIELD_IS_REQUIRED')),n},l.onSubmit=function(){var t=l.state.creditCardInput;t.valid?l.setState({numCarte:parseInt(t.values.number.replace(/\s/g,'')),expiration_date:t.values.expiry},function(){l.props.linkCardAction({numero_carte:l.state.numCarte,expiration_date:l.state.expiration_date},l.state.user.id)}):t.valid||l.setState({displayCardError:!0}),l.setState({isSubmitClick:!0})},l.state={numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},displayCardError:!1,isSubmitClick:!1,user:null},l.props.linkCardReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,A.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"render",value:function(){var t=this;return C.default.createElement(h.Provider,null,C.default.createElement(p.View,{style:{flex:1}},C.default.createElement(p.StatusBar,{backgroundColor:k.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),C.default.createElement(h.Appbar.Header,{dark:!0,style:{backgroundColor:k.Color.primaryColor}},C.default.createElement(h.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),C.default.createElement(h.Appbar.Content,{title:v.default.t('LINK_CARD')})),C.default.createElement(p.View,{style:[D.container]},this.renderLoader(),this.state.isSubmitClick&&this.renderDialogResponse(),C.default.createElement(p.ScrollView,{style:{padding:20}},C.default.createElement(p.View,{style:{marginTop:10}},C.default.createElement(f.CreditCardInput,{validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,requiresCVC:!1,labels:{number:v.default.t('CARD_NUMBER_LABEL'),expiry:v.default.t('CARD_EXPIRY_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return C.default.createElement(p.Text,{style:{color:'red',marginLeft:15}},t)})),C.default.createElement(p.View,{style:{marginTop:20,marginLeft:10,marginRight:10}},C.default.createElement(b.default,{loading:!1,outline:!0,onPress:function(){return t.onSubmit()}},v.default.t('VALIDATE')))))))}}]),n})(C.Component));I.navigatorStyle={navBarBackgroundColor:k.Color.accentLightColor,statusBarColor:k.Color.accentColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},I.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465'}};var S=(0,R.connect)(function(t){return{loading:t.linkCardReduder.loading,result:t.linkCardReduder.result,error:t.linkCardReduder.error}},function(t){return(0,E.bindActionCreators)({linkCardAction:_.linkCardAction,linkCardReset:_.linkCardReset},t)})(I);e.default=S;var D=p.StyleSheet.create({container:{flex:1,backgroundColor:k.Color.containerBackgroundColor},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:15,marginTop:10},contentButtonBottom:{borderTopWidth:1,paddingVertical:10,paddingHorizontal:20,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},blockView:{paddingVertical:10,borderBottomWidth:1},lottie:{width:248,height:248}})},1799,[4,1,8,9,10,12,13,1030,1032,1034,1035,1036,1037,1038,15,18,1702,720,1179,1039,1056,1767,1769,1026,1607,1513,719,1169]); __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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),V=o(r(d[17])),w=r(d[18]),S=r(d[19]),R=r(d[20]),A=o(r(d[21])),_=r(d[22]),x=r(d[23]),k=r(d[24]),U=r(d[25]),L=r(d[26]),O=r(d[27]),D=r(d[28]),I=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[N.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[N.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:2,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,D.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:2,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:k.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,L.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:N.container},T.default.createElement(E.Text,{style:N.subbigtitle},y.default.t('ENVOIE_WALLET_TO_CARD')),T.default.createElement(v.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'credit-card',label:y.default.t('CARD_CVC_LABEL'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.codeCVV,onChangeText:function(o){o.length>3?t.setState({codeCVV:t.state.codeCVV.substring(0,3)}):t.setState({codeCVV:o})},style:N.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));I.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},I.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_WALLET_TO_CARD'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('DEPOSIT_WALLET_TO_CARD')}};var F=(0,S.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,R.bindActionCreators)({envoieUserWalletToCardAction:O.envoieUserWalletToCardAction,envoieUserWalletToCardReset:O.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:O.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:O.getCommissionUserWalletToCardReset},t)})(I);e.default=F;var N=E.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1800,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),w=o(r(d[17])),V=r(d[18]),A=r(d[19]),S=r(d[20]),R=o(r(d[21])),_=r(d[22]),x=r(d[23]),O=r(d[24]),U=r(d[25]),k=r(d[26]),L=r(d[27]),I=r(d[28]),N=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[D.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[D.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:2,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:2,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:O.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:D.container},T.default.createElement(E.Text,{style:D.subbigtitle},y.default.t('ENVOIE_WALLET_TO_BANK')),T.default.createElement(v.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'id-card',label:y.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.codeCVV,onChangeText:function(o){t.setState({codeCVV:o})},style:D.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:D.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:D.input})),T.default.createElement(f.default,{style:D.btnvalide,textStyle:D.textbtnvalide,onPress:function(){}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));N.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},N.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_WALLET_TO_BANK'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('ENVOIE_WALLET_TO_BANK')}};var F=(0,A.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,S.bindActionCreators)({envoieUserWalletToCardAction:L.envoieUserWalletToCardAction,envoieUserWalletToCardReset:L.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:L.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:L.getCommissionUserWalletToCardReset},t)})(N);e.default=F;var D=E.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1801,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),w=o(r(d[17])),V=r(d[18]),S=r(d[19]),A=r(d[20]),R=o(r(d[21])),_=r(d[22]),x=r(d[23]),O=r(d[24]),U=r(d[25]),k=r(d[26]),L=r(d[27]),I=r(d[28]),N=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[F.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[F.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:2,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:2,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:O.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:F.container},T.default.createElement(E.Text,{style:F.subbigtitle},y.default.t('ENVOIE_WALLET_TO_BANK')),T.default.createElement(v.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'id-card',label:y.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.codeCVV,onChangeText:function(o){t.setState({codeCVV:o})},style:F.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:F.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:F.input})),T.default.createElement(f.default,{style:F.btnvalide,textStyle:F.textbtnvalide,onPress:function(){}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));N.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},N.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_WALLET_TO_BANK'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('DEPOSIT_WALLET_TO_BANK')}};var D=(0,S.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,A.bindActionCreators)({envoieUserWalletToCardAction:L.envoieUserWalletToCardAction,envoieUserWalletToCardReset:L.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:L.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:L.getCommissionUserWalletToCardReset},t)})(N);e.default=D;var F=E.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1801,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),v=r(d[11]),E=t(r(d[12])),W=o(r(d[13])),h=o(r(d[14])),y=r(d[15]),b=r(d[16]),A=o(r(d[17])),w=r(d[18]),R=r(d[19]),S=r(d[20]),_=o(r(d[21])),L=r(d[22]),V=r(d[23]),x=r(d[24]),U=r(d[25]),k=r(d[26]),I=r(d[27]),D=r(d[28]),O=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&v.Alert.alert(h.default.t("WITHDRAWAL_ERROR"),l.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&v.Alert.alert(h.default.t("WITHDRAWAL_SUCCESS"),o.response,[{text:h.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&v.Alert.alert(h.default.t("ERROR_LABLE"),t.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(W.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(W.default.Title,null,h.default.t('TRANSACTION_DETAIL')),T.default.createElement(v.View,null,T.default.createElement(v.View,{style:[N.blockView,{borderBottomColor:L.Color.borderColor}]},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{style:[N.body2]},h.default.t('AMOUNT'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,_.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[V.Typography.body2]},h.default.t('FEES_AND_TAXES'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,_.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(v.View,{style:{paddingVertical:10}},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[V.Typography.body2,V.FontWeight.bold]},h.default.t('NET_AMOUNT'),":")),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[V.Typography.caption1,L.Color.grayColor]},(0,_.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(W.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(W.default.Button,{bold:!0,label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:9,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:h.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,D.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:h.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=(t.codeCVV,t.montant),l=t.password;n.ckeckIfFieldIsOK(o)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(l)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:9,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(b.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:h.default.t('LOADING'),message:h.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:x.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WITHDRAWAL_WALLET_TO_CASH')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(v.ScrollView,{style:N.container},T.default.createElement(v.Text,{style:N.subbigtitle},h.default.t('WITHDRAWAL_WALLET_TO_CASH_DESCRIPTION')),T.default.createElement(E.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(w.Fumi,{iconClass:A.default,iconName:'money',label:h.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(v.View,{style:{position:'absolute',left:(0,y.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(v.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(v.Text,{style:[V.Typography.body1,V.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(E.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(w.Fumi,{iconClass:A.default,iconName:'lock',label:h.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},h.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));O.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},O.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WITHDRAWAL_WALLET_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WITHDRAWAL_WALLET_TO_CASH')}};var F=(0,R.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,S.bindActionCreators)({envoieUserWalletToCardAction:I.envoieUserWalletToCardAction,envoieUserWalletToCardReset:I.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:I.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:I.getCommissionUserWalletToCardReset},t)})(O);e.default=F;var N=v.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,y.responsiveHeight)(2),marginLeft:(0,y.responsiveWidth)(5),marginRight:(0,y.responsiveWidth)(5),borderRadius:5}})},1802,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),v=r(d[11]),E=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),W=r(d[15]),b=r(d[16]),A=o(r(d[17])),V=r(d[18]),R=r(d[19]),w=r(d[20]),S=o(r(d[21])),_=r(d[22]),x=r(d[23]),L=r(d[24]),k=r(d[25]),U=r(d[26]),D=r(d[27]),I=r(d[28]),O=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&v.Alert.alert(y.default.t("WITHDRAWAL_ERROR"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&v.Alert.alert(y.default.t("WITHDRAWAL_SUCCESS"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),k.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&v.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(v.View,null,T.default.createElement(v.View,{style:[N.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{style:[N.body2]},y.default.t('AMOUNT'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,S.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,S.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(v.View,{style:{paddingVertical:10}},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,S.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:11,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:11,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(b.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:L.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,U.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('WITHDRAWAL_WALLET_TO_CASH')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(v.ScrollView,{style:N.container},T.default.createElement(v.Text,{style:N.subbigtitle},y.default.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION')),T.default.createElement(E.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'credit-card',label:y.default.t('CARD_CVC_LABEL'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.codeCVV,onChangeText:function(o){o.length>3?t.setState({codeCVV:t.state.codeCVV.substring(0,3)}):t.setState({codeCVV:o})},style:N.input})),T.default.createElement(E.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(v.View,{style:{position:'absolute',left:(0,W.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(v.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(v.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(E.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));O.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},O.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('WITHDRAWAL_CARD_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('WITHDRAWAL_CARD_TO_CASH')}};var F=(0,R.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,w.bindActionCreators)({envoieUserWalletToCardAction:D.envoieUserWalletToCardAction,envoieUserWalletToCardReset:D.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:D.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:D.getCommissionUserWalletToCardReset},t)})(O);e.default=F;var N=v.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,W.responsiveHeight)(2),marginLeft:(0,W.responsiveWidth)(5),marginRight:(0,W.responsiveWidth)(5),borderRadius:5}})},1803,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),v=r(d[11]),E=t(r(d[12])),h=o(r(d[13])),W=o(r(d[14])),y=r(d[15]),b=r(d[16]),A=o(r(d[17])),V=r(d[18]),R=r(d[19]),w=r(d[20]),S=o(r(d[21])),_=r(d[22]),L=r(d[23]),x=r(d[24]),k=r(d[25]),U=r(d[26]),D=r(d[27]),I=r(d[28]),O=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&v.Alert.alert(W.default.t("WITHDRAWAL_ERROR"),l.data.error,[{text:W.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&v.Alert.alert(W.default.t("WITHDRAWAL_SUCCESS"),o.response,[{text:W.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),k.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&v.Alert.alert(W.default.t("ERROR_LABLE"),t.data.error,[{text:W.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,W.default.t('TRANSACTION_DETAIL')),T.default.createElement(v.View,null,T.default.createElement(v.View,{style:[N.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{style:[N.body2]},W.default.t('AMOUNT'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[L.Typography.caption1,_.Color.grayColor]},(0,S.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[L.Typography.body2]},W.default.t('FEES_AND_TAXES'))),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[L.Typography.caption1,_.Color.grayColor]},(0,S.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(v.View,{style:{paddingVertical:10}},T.default.createElement(v.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(v.View,{style:{flex:1}},T.default.createElement(v.Text,{tyle:[L.Typography.body2,L.FontWeight.bold]},W.default.t('NET_AMOUNT'),":")),T.default.createElement(v.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(v.Text,{style:[L.Typography.caption1,_.Color.grayColor]},(0,S.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:W.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:W.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:10,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:W.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:W.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:10,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(b.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:W.default.t('LOADING'),message:W.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:x.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,U.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:W.default.t('WITHDRAWAL_WALLET_TO_CASH')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(v.ScrollView,{style:N.container},T.default.createElement(v.Text,{style:N.subbigtitle},W.default.t('WITHDRAWAL_CARD_TO_WALLET_DESCRIPTION')),T.default.createElement(E.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'credit-card',label:W.default.t('CARD_CVC_LABEL'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.codeCVV,onChangeText:function(o){o.length>3?t.setState({codeCVV:t.state.codeCVV.substring(0,3)}):t.setState({codeCVV:o})},style:N.input})),T.default.createElement(E.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'money',label:W.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(v.View,{style:{position:'absolute',left:(0,y.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(v.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(v.Text,{style:[L.Typography.body1,L.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(E.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(V.Fumi,{iconClass:A.default,iconName:'lock',label:W.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},W.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));O.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},O.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:W.default.t('WITHDRAWAL_CARD_TO_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:W.default.t('WITHDRAWAL_CARD_TO_WALLET')}};var F=(0,R.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,w.bindActionCreators)({envoieUserWalletToCardAction:D.envoieUserWalletToCardAction,envoieUserWalletToCardReset:D.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:D.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:D.getCommissionUserWalletToCardReset},t)})(O);e.default=F;var N=v.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,y.responsiveHeight)(2),marginLeft:(0,y.responsiveWidth)(5),marginRight:(0,y.responsiveWidth)(5),borderRadius:5}})},1804,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,814,815]); @@ -1813,21 +1813,21 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchRetraitCashAgentIdVerificationReset=e.fetchRetraitCashAgentIdVerificationError=e.fetchRetraitCashAgentIdVerificationSuccess=e.fetchRetraitCashAgentIdVerificationPending=void 0;var t=r(d[0]);e.fetchRetraitCashAgentIdVerificationPending=function(){return{type:t.RETRAIT_CASH_AGENT_ID_VERIFICATION_PENDING}};e.fetchRetraitCashAgentIdVerificationSuccess=function(n){return{type:t.RETRAIT_CASH_AGENT_ID_VERIFICATION_SUCCESS,result:n}};e.fetchRetraitCashAgentIdVerificationError=function(n){return{type:t.RETRAIT_CASH_AGENT_ID_VERIFICATION_ERROR,result:n}};e.fetchRetraitCashAgentIdVerificationReset=function(){return{type:t.RETRAIT_CASH_AGENT_ID_VERIFICATION_RESET}}},1807,[1152]); __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])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),C=l(r(d[8])),p=l(r(d[9])),v=t(r(d[10])),T=r(d[11]),E=t(r(d[12])),h=l(r(d[13])),y=l(r(d[14])),R=r(d[15]),b=r(d[16]),W=l(r(d[17])),A=r(d[18]),S=r(d[19]),_=r(d[20]),w=l(r(d[21])),I=r(d[22]),x=r(d[23]),L=r(d[24]),V=r(d[25]),D=r(d[26]),U=r(d[27]),k=r(d[28]),O=r(d[29]),F=(r(d[30]),r(d[31]),(function(t){function l(t){var n;return(0,o.default)(this,l),(n=(0,s.default)(this,(0,u.default)(l).call(this,t))).isCreditCardValid=function(){var t=n.state.creditCardInput,l=[];return void 0!==t.status?('incomplete'===t.status.cvc&&l.push(y.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&l.push(y.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&l.push(y.default.t('CARD_NUMBER_ERROR'))):l.push(y.default.t('THIS_FIELD_IS_REQUIRED')),l},n.onCreditCardChange=function(t){n.setState({creditCardInput:t,displayCardError:!1})},n.renderEnvoieWalletToWalletResponse=function(){var t=n.props,l=t.resultEnvoieWalletToCard,o=t.errorEnvoieWalletToCard;null!==o&&void 0!==o.data&&T.Alert.alert(y.default.t("WITHDRAWAL_ERROR"),o.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==l&&null!==l.response&&T.Alert.alert(y.default.t("WITHDRAWAL_SUCCESS"),l.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),V.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&T.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var l=t.response.frais,o=t.response.montant_net;return v.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},v.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),v.default.createElement(T.View,null,v.default.createElement(T.View,{style:[B.blockView,{borderBottomColor:I.Color.borderColor}]},v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{style:[B.body2]},y.default.t('AMOUNT'))),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[x.Typography.caption1,I.Color.grayColor]},(0,w.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[x.Typography.caption1,I.Color.grayColor]},(0,w.default)(l,' ')+" "+n.state.wallet.currency_code)))),v.default.createElement(T.View,{style:{paddingVertical:10}},v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[x.Typography.caption1,I.Color.grayColor]},(0,w.default)(o,' ')+" "+n.state.wallet.currency_code))))),v.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),v.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:13,numero_carte:n.state.creditCardInput.values.number.replace(/\s/g,''),cvv:n.state.creditCardInput.values.cvc,expiration_date:n.state.creditCardInput.values.expiry,id_wallet_agent:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,O.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,l=t.creditCardInput,o=t.montant,s=t.password;l.valid?n.ckeckIfFieldIsOK(o)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:13,id_wallet_agent:n.state.wallet.id,montant:n.state.montant}):n.codeCVVAnim.shake(800),n.setState({triggerSubmitClick:!0,numCarte:parseInt(l.values.number.replace(/ /g,' ')),cvv:l.values.cvc,expiration_date:l.values.expiry})},n.renderLoader=function(){return v.default.createElement(b.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,montant:'',numeroSerie:'',numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},displayCardError:!1,loading:!1,user:null,displayFirstStep:!0,displaySecondStep:!1,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:L.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,U.readUser)().then(function(l){l&&void 0!==l&&t.setState({user:l})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('WITHDRAWAL_WALLET_TO_CASH')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,l=this.props.resultEnvoieWalletToCardGetCommission;return v.default.createElement(v.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),v.default.createElement(T.ScrollView,{style:B.container},this.state.displayFirstStep&&v.default.createElement(v.default.Fragment,null,v.default.createElement(T.Text,{style:B.subbigtitle},y.default.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION_AGENT')),v.default.createElement(E.View,{ref:function(l){t.codeCVVAnim=l}},v.default.createElement(T.View,{style:{overflow:'hidden',paddingTop:16,backgroundColor:'white',marginTop:(0,R.responsiveHeight)(2),marginLeft:(0,R.responsiveWidth)(5),marginRight:(0,R.responsiveWidth)(5),borderRadius:5}},v.default.createElement(D.LiteCreditCardInput,{inputStyle:{flex:1,color:'black',fontSize:18,padding:7,paddingLeft:0},validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,labels:{number:y.default.t('CARD_NUMBER_LABEL'),expiry:y.default.t('CARD_EXPIRY_LABEL'),cvc:y.default.t('CARD_CVC_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return v.default.createElement(T.Text,{style:{color:'red',marginLeft:15}},t)}))),v.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.state.creditCardInput.valid?t.setState({displayFirstStep:!t.state.displayFirstStep,displaySecondStep:!t.state.displaySecondStep}):t.codeCVVAnim.shake(800)}},y.default.t('NEXT'))),this.state.displaySecondStep&&v.default.createElement(v.default.Fragment,null,v.default.createElement(E.View,{ref:function(l){t.montantAnim=l}},v.default.createElement(A.Fumi,{iconClass:W.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(l){t.setState({montant:l})},style:B.input}),v.default.createElement(T.View,{style:{position:'absolute',left:(0,R.responsiveWidth)(82),top:35,flexDirection:'row'}},v.default.createElement(T.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),v.default.createElement(T.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),v.default.createElement(E.View,{ref:function(l){t.passwordAnim=l}},v.default.createElement(A.Fumi,{iconClass:W.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:B.input})),v.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL')))))}}]),l})(v.Component));F.navigatorStyle={navBarBackgroundColor:I.Color.primaryColor,statusBarColor:I.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('WITHDRAWAL_CARD_TO_CASH_AGENT'),headerTintColor:'white',headerStyle:{backgroundColor:I.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('WITHDRAWAL_CARD_TO_CASH_AGENT')}};var N=(0,S.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,_.bindActionCreators)({envoieUserWalletToCardAction:k.envoieUserWalletToCardAction,envoieUserWalletToCardReset:k.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:k.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:k.getCommissionUserWalletToCardReset},t)})(F);e.default=N;var B=T.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,R.responsiveHeight)(2),marginLeft:(0,R.responsiveWidth)(5),marginRight:(0,R.responsiveWidth)(5),borderRadius:5}})},1808,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,1702,719,1796,1644,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 l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),S=o(r(d[17])),w=r(d[18]),R=r(d[19]),A=r(d[20]),_=o(r(d[21])),x=r(d[22]),O=r(d[23]),V=r(d[24]),U=r(d[25]),k=r(d[26]),L=r(d[27]),I=r(d[28]),D=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net_init;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[N.blockView,{borderBottomColor:x.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[N.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[O.Typography.caption1,x.Color.grayColor]},(0,_.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[O.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[O.Typography.caption1,x.Color.grayColor]},(0,_.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[O.Typography.body2,O.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[O.Typography.caption1,x.Color.grayColor]},(0,_.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:14,user_code:n.state.userCode,id_wallet_agent:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.userCode,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)?n.userCodeAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:14,user_code:o,id_wallet_agent:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,userCode:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:V.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:N.container},T.default.createElement(E.Text,{style:N.subbigtitle},y.default.t('DEPOSIT_CASH_TO_WALLET_DESCRIPTION')),T.default.createElement(v.View,{ref:function(o){t.userCodeAnim=o}},T.default.createElement(w.Fumi,{iconClass:S.default,iconName:'user-secret',label:y.default.t('MEMBER_CODE'),iconColor:'#f95a25',iconSize:20,value:this.state.userCode,onChangeText:function(o){t.setState({userCode:o})},style:N.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(w.Fumi,{iconClass:S.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[O.Typography.body1,O.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(w.Fumi,{iconClass:S.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));D.navigatorStyle={navBarBackgroundColor:x.Color.primaryColor,statusBarColor:x.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},D.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_CASH_TO_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:x.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('DEPOSIT_CASH_TO_WALLET')}};var F=(0,R.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,A.bindActionCreators)({envoieUserWalletToCardAction:L.envoieUserWalletToCardAction,envoieUserWalletToCardReset:L.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:L.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:L.getCommissionUserWalletToCardReset},t)})(D);e.default=F;var N=E.StyleSheet.create({container:{flex:1,backgroundColor:x.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:x.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:x.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1809,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,719,1796,1644,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])),C=n(r(d[8])),p=n(r(d[9])),y=t(r(d[10])),E=r(d[11]),h=t(r(d[12])),T=n(r(d[13])),A=n(r(d[14])),v=r(d[15]),S=r(d[16]),w=r(d[17]),R=r(d[18]),b=n(r(d[19])),D=r(d[20]),N=r(d[21]),L=r(d[22]),_=r(d[23]),k=r(d[24]),I=r(d[25]),W=r(d[26]),O=r(d[27]),P=r(d[28]),x=n(r(d[29])),V=r(d[30]),F=(r(d[31]),r(d[32]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderGetActionCountryList=function(){var t=l.props,n=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==n&&void 0!==n.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:n.response,paysDestinationSelect:n.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getOtherPayCountryNetworkAction({id_wallet_agent:l.state.wallet.id,id_country:n.response[0].id})),null!==o&&(void 0!==o.data?E.Alert.alert(T.default.t('ERROR_LABEL'),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):E.Alert.alert(T.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:T.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,n=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:n.response,walletActifSelect:n.response[0].name,modalVisible:!1}):0===n.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==o&&(void 0!==o.data?E.Alert.alert(T.default.t('ERROR_LABEL'),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):E.Alert.alert(T.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:T.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,n=t.resultEnvoieWalletToCash,o=t.errorEnvoieWalletToCash;null!==o&&void 0!==o.data&&E.Alert.alert(T.default.t("ERROR_TRANSFER"),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&E.Alert.alert(T.default.t("SUCCESS_TRANSFER"),n.response,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),V.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(T.default.t("ERROR_LABLE"),t.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:T.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,k.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:T.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:T.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var n=t.response.frais,o=t.response.montant_net_final;t.response.montant_net_init;return console.log("DATA SEND TO CONFIRM DIALOG",t),y.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},y.default.createElement(A.default.Title,null,T.default.t('TRANSACTION_DETAIL')),y.default.createElement(E.View,null,y.default.createElement(E.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[B.body2]},T.default.t('AMOUNT'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},(0,x.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[P.Typography.body2]},T.default.t('FEES_AND_TAXES'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},(0,x.default)(n,' ')+" "+l.state.wallet.currency_code)))),y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[P.Typography.body2,P.FontWeight.bold]},T.default.t('NET_AMOUNT'),":")),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},""+(0,x.default)(o,' '))))))),y.default.createElement(A.default.Button,{bold:!0,label:T.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),y.default.createElement(A.default.Button,{bold:!0,label:T.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:15,id_wallet_agent:l.state.wallet.id,nom_emetteur:l.state.nomsEmetteur,prenom_emetteur:l.state.prenomsDestinataire,email_emetteur:l.state.emailEmetteur,type_document_emetteur:l.state.identityPiecesNameEmetteur,id_document_emetteur:l.state.numeroIdentiteEmetteur,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroIdentiteDestinataire,type_document_destinataire:l.state.identityPiecesNameEmetteur,nom_destinataire:l.state.nomsDestinataire,prenom_destinataire:l.state.prenomsDestinataire,id_document_destinataire:l.state.numeroIdentiteDestinataire,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitNextStep=function(){var t=l.state,n=t.nomsEmetteur,o=t.prenomsEmetteur,s=t.emailEmetteur,u=t.numeroIdentiteEmetteur;l.ckeckIfFieldIsOK(n)?l.nomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.emailEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.numeroIdentiteEmetteurAnim.shake(800):l.setState({triggerNextClick:!0,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,displayFirstStep:!l.state.displayFirstStep,displaySecondStep:!l.state.displaySecondSte},function(){l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props)})},l.onSubmitCashVersAutreWallet=function(){var t=l.state,n=t.nomsDestinataire,o=t.prenomsDestinataire,s=t.montant,u=t.password,c=t.numeroIdentiteDestinataire;l.ckeckIfFieldIsOK(n)?l.nomDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.identityPiecesDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(s)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(u)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:15,id_wallet_agent:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0,isDataSubmit:!1})},l.renderLoader=function(){return y.default.createElement(w.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:T.default.t('LOADING'),message:T.default.t('LOADING_INFO')})},l.state={identityPiecesEmetteur:(0,k.identityPieces)(),identityPiecesNameEmetteur:(0,k.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,nomsEmetteur:null,prenomsEmetteur:null,emailEmetteur:null,numeroIdentiteEmetteur:null,nomsDestinataire:null,prenomsDestinataire:null,idDestinataire:null,numeroIdentiteDestinataire:null,montant:null,password:null,loading:!1,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,modalVisible:!1,hasLoadActiveCountryList:!1,hasLoadActivePayCountryNetworkList:!1,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:_.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var n=this.props.resultEnvoieWalletToCashGetCommission;return y.default.createElement(y.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==n&&void 0!==n.response&&this.modalConfirmTransaction(n),y.default.createElement(E.ScrollView,{style:B.container},this.state.displayFirstStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(E.Text,{style:B.subbigtitle},T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET_DESCRIPTION')),y.default.createElement(h.View,{ref:function(n){t.nomsEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user',label:""+T.default.t('NAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsEmetteur,onChangeText:function(n){t.setState({nomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('FIRSTNAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsEmetteur,onChangeText:function(n){t.setState({prenomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.emailEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:"envelope",label:T.default.t('EMAIL_EMETTEUR'),iconColor:'#f95a25',keyboardType:"email-address",iconSize:20,value:this.state.emailEmetteur,onChangeText:function(n){t.setState({emailEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesEmetteurAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('PIECE_IDENTITE'),data:this.state.identityPiecesEmetteur,useNativeDriver:!0,value:this.state.identityPiecesNameEmetteur,onChangeText:function(n,o,l){t.setState({identityPiecesNameEmetteur:n,isDataSubmit:!1})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.numeroIdentiteEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'address-card',label:""+T.default.t('NUMERO_IDENTITE_EMETTEUR'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentiteEmetteur:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},T.default.t('NEXT'))),this.state.displaySecondStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(h.View,{ref:function(n){t.nomDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user',label:""+T.default.t('NAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsDestinataire,onChangeText:function(n){t.setState({nomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('FIRSTNAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsDestinataire,onChangeText:function(n){t.setState({prenomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('ID_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentiteDestinataire,onChangeText:function(n){t.setState({numeroIdentiteDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.paysDestinationAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(n,o,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===n});t.setState({paysDestinationSelect:n,hasLoadActivePayCountryNetworkList:!0,isDataSubmit:!1},function(){t.props.getOtherPayCountryNetworkAction({id_wallet_agent:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.walletActifAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(n,o,l){t.setState({isDataSubmit:!1,walletActifSelect:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.montantAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'money',label:T.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:B.input}),y.default.createElement(E.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},y.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),y.default.createElement(E.Text,{style:[P.Typography.body1,P.FontWeight.bold]},this.state.wallet.currency_code))),y.default.createElement(h.View,{ref:function(n){t.passwordAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'lock',label:T.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitCashVersAutreWallet()}},T.default.t('SUBMIT_LABEL')))))}}]),n})(y.Component));F.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET')}};var U=(0,D.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,N.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getOtherPayCountryNetworkAction:W.getOtherPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:O.envoieUserWalletToCashAction,envoieUserWalletToCashReset:O.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:O.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:O.getCommissionUserWalletToCashReset},t)})(F);e.default=U;var B=E.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1810,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,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])),C=n(r(d[8])),p=n(r(d[9])),y=t(r(d[10])),E=r(d[11]),h=t(r(d[12])),T=n(r(d[13])),A=n(r(d[14])),v=r(d[15]),S=r(d[16]),w=r(d[17]),R=r(d[18]),b=n(r(d[19])),D=r(d[20]),N=r(d[21]),L=r(d[22]),_=r(d[23]),k=r(d[24]),I=r(d[25]),W=r(d[26]),O=r(d[27]),P=r(d[28]),x=n(r(d[29])),V=r(d[30]),F=(r(d[31]),r(d[32]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderGetActionCountryList=function(){var t=l.props,n=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==n&&void 0!==n.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:n.response,paysDestinationSelect:n.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getOtherPayCountryNetworkAction({id_wallet_agent:l.state.wallet.id,id_country:n.response[0].id})),null!==o&&(void 0!==o.data?E.Alert.alert(T.default.t('ERROR_LABEL'),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):E.Alert.alert(T.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:T.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,n=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:n.response,walletActifSelect:n.response[0].name,modalVisible:!1}):0===n.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==o&&(void 0!==o.data?E.Alert.alert(T.default.t('ERROR_LABEL'),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):E.Alert.alert(T.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:T.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,n=t.resultEnvoieWalletToCash,o=t.errorEnvoieWalletToCash;null!==o&&void 0!==o.data&&E.Alert.alert(T.default.t("ERROR_TRANSFER"),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&E.Alert.alert(T.default.t("SUCCESS_TRANSFER"),n.response,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),V.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(T.default.t("ERROR_LABLE"),t.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:T.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,k.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:T.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:T.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var n=t.response.frais,o=t.response.montant_net_final;t.response.montant_net_init;return console.log("DATA SEND TO CONFIRM DIALOG",t),y.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},y.default.createElement(A.default.Title,null,T.default.t('TRANSACTION_DETAIL')),y.default.createElement(E.View,null,y.default.createElement(E.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[B.body2]},T.default.t('AMOUNT'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},(0,x.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[P.Typography.body2]},T.default.t('FEES_AND_TAXES'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},(0,x.default)(n,' ')+" "+l.state.wallet.currency_code)))),y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[P.Typography.body2,P.FontWeight.bold]},T.default.t('NET_AMOUNT'),":")),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[P.Typography.caption1,L.Color.grayColor]},""+(0,x.default)(o,' '))))))),y.default.createElement(A.default.Button,{bold:!0,label:T.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),y.default.createElement(A.default.Button,{bold:!0,label:T.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:15,id_wallet_agent:l.state.wallet.id,nom_emetteur:l.state.nomsEmetteur,prenom_emetteur:l.state.prenomsDestinataire,email_emetteur:l.state.emailEmetteur,type_document_emetteur:l.state.identityPiecesNameEmetteur,id_document_emetteur:l.state.numeroIdentiteEmetteur,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroIdentiteDestinataire,type_document_destinataire:l.state.identityPiecesNameEmetteur,nom_destinataire:l.state.nomsDestinataire,prenom_destinataire:l.state.prenomsDestinataire,id_document_destinataire:l.state.numeroIdentiteDestinataire,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitNextStep=function(){var t=l.state,n=t.nomsEmetteur,o=t.prenomsEmetteur,s=t.emailEmetteur,u=t.numeroIdentiteEmetteur;l.ckeckIfFieldIsOK(n)?l.nomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.emailEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.numeroIdentiteEmetteurAnim.shake(800):l.setState({triggerNextClick:!0,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,displayFirstStep:!l.state.displayFirstStep,displaySecondStep:!l.state.displaySecondSte},function(){l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props)})},l.onSubmitCashVersAutreWallet=function(){var t=l.state,n=t.nomsDestinataire,o=t.prenomsDestinataire,s=t.montant,u=t.password,c=t.numeroIdentiteDestinataire;l.ckeckIfFieldIsOK(n)?l.nomDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.identityPiecesDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(s)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(u)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:15,id_wallet_agent:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0,isDataSubmit:!1})},l.renderLoader=function(){return y.default.createElement(w.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:T.default.t('LOADING'),message:T.default.t('LOADING_INFO')})},l.state={identityPiecesEmetteur:(0,k.identityPieces)(),identityPiecesNameEmetteur:T.default.t((0,k.identityPieces)()[0].name),paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,nomsEmetteur:null,prenomsEmetteur:null,emailEmetteur:null,numeroIdentiteEmetteur:null,nomsDestinataire:null,prenomsDestinataire:null,idDestinataire:null,numeroIdentiteDestinataire:null,montant:null,password:null,loading:!1,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,modalVisible:!1,hasLoadActiveCountryList:!1,hasLoadActivePayCountryNetworkList:!1,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:_.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var n=this.props.resultEnvoieWalletToCashGetCommission;return y.default.createElement(y.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==n&&void 0!==n.response&&this.modalConfirmTransaction(n),y.default.createElement(E.ScrollView,{style:B.container},this.state.displayFirstStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(E.Text,{style:B.subbigtitle},T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET_DESCRIPTION')),y.default.createElement(h.View,{ref:function(n){t.nomsEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user',label:""+T.default.t('NAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsEmetteur,onChangeText:function(n){t.setState({nomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('FIRSTNAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsEmetteur,onChangeText:function(n){t.setState({prenomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.emailEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:"envelope",label:T.default.t('EMAIL_EMETTEUR'),iconColor:'#f95a25',keyboardType:"email-address",iconSize:20,value:this.state.emailEmetteur,onChangeText:function(n){t.setState({emailEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesEmetteurAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('PIECE_IDENTITE'),data:this.state.identityPiecesEmetteur,useNativeDriver:!0,value:this.state.identityPiecesNameEmetteur,onChangeText:function(n,o,l){t.setState({identityPiecesNameEmetteur:n,isDataSubmit:!1})},valueExtractor:function(t){return T.default.t(t.name)},labelExtractor:function(t){return T.default.t(t.name)}})),y.default.createElement(h.View,{ref:function(n){t.numeroIdentiteEmetteurAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'address-card',label:""+T.default.t('NUMERO_IDENTITE_EMETTEUR'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentiteEmetteur:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},T.default.t('NEXT'))),this.state.displaySecondStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(h.View,{ref:function(n){t.nomDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user',label:""+T.default.t('NAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsDestinataire,onChangeText:function(n){t.setState({nomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('FIRSTNAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsDestinataire,onChangeText:function(n){t.setState({prenomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesDestinataireAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+T.default.t('ID_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentiteDestinataire,onChangeText:function(n){t.setState({numeroIdentiteDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.paysDestinationAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(n,o,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===n});t.setState({paysDestinationSelect:n,hasLoadActivePayCountryNetworkList:!0,isDataSubmit:!1},function(){t.props.getOtherPayCountryNetworkAction({id_wallet_agent:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.walletActifAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(v.Dropdown,{label:T.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(n,o,l){t.setState({isDataSubmit:!1,walletActifSelect:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.montantAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'money',label:T.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:B.input}),y.default.createElement(E.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},y.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),y.default.createElement(E.Text,{style:[P.Typography.body1,P.FontWeight.bold]},this.state.wallet.currency_code))),y.default.createElement(h.View,{ref:function(n){t.passwordAnim=n}},y.default.createElement(R.Fumi,{iconClass:b.default,iconName:'lock',label:T.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitCashVersAutreWallet()}},T.default.t('SUBMIT_LABEL')))))}}]),n})(y.Component));F.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:T.default.t('DEPOSIT_CASH_TO_OTHER_WALLET')}};var U=(0,D.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,N.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getOtherPayCountryNetworkAction:W.getOtherPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:O.envoieUserWalletToCashAction,envoieUserWalletToCashReset:O.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:O.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:O.getCommissionUserWalletToCashReset},t)})(F);e.default=U;var B=E.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1810,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,814,815]); __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])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),C=l(r(d[8])),p=l(r(d[9])),v=t(r(d[10])),T=r(d[11]),E=t(r(d[12])),h=l(r(d[13])),y=l(r(d[14])),S=r(d[15]),b=r(d[16]),R=l(r(d[17])),W=r(d[18]),_=r(d[19]),A=r(d[20]),w=l(r(d[21])),I=r(d[22]),V=r(d[23]),x=r(d[24]),L=r(d[25]),U=r(d[26]),D=r(d[27]),O=r(d[28]),k=r(d[29]),F=(r(d[30]),r(d[31]),(function(t){function l(t){var n;return(0,o.default)(this,l),(n=(0,s.default)(this,(0,u.default)(l).call(this,t))).isCreditCardValid=function(){var t=n.state.creditCardInput,l=[];return void 0!==t.status?('incomplete'===t.status.cvc&&l.push(y.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&l.push(y.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&l.push(y.default.t('CARD_NUMBER_ERROR'))):l.push(y.default.t('THIS_FIELD_IS_REQUIRED')),l},n.onCreditCardChange=function(t){n.setState({creditCardInput:t,displayCardError:!1})},n.renderEnvoieWalletToWalletResponse=function(){var t=n.props,l=t.resultEnvoieWalletToCard,o=t.errorEnvoieWalletToCard;null!==o&&void 0!==o.data&&T.Alert.alert(y.default.t("WITHDRAWAL_ERROR"),o.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==l&&null!==l.response&&T.Alert.alert(y.default.t("SUCCESS_TRANSFER"),l.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),L.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&T.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var l=t.response.frais,o=t.response.montant_net;return v.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},v.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),v.default.createElement(T.View,null,v.default.createElement(T.View,{style:[B.blockView,{borderBottomColor:I.Color.borderColor}]},v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{style:[B.body2]},y.default.t('AMOUNT'))),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[V.Typography.caption1,I.Color.grayColor]},(0,w.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{tyle:[V.Typography.body2]},y.default.t('FEES_AND_TAXES'))),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[V.Typography.caption1,I.Color.grayColor]},(0,w.default)(l,' ')+" "+n.state.wallet.currency_code)))),v.default.createElement(T.View,{style:{paddingVertical:10}},v.default.createElement(T.View,{style:{flexDirection:'row',marginTop:10}},v.default.createElement(T.View,{style:{flex:1}},v.default.createElement(T.Text,{tyle:[V.Typography.body2,V.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),v.default.createElement(T.View,{style:{flex:1,alignItems:'flex-end'}},v.default.createElement(T.Text,{style:[V.Typography.caption1,I.Color.grayColor]},(0,w.default)(o,' ')+" "+n.state.wallet.currency_code))))),v.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),v.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:16,numero_carte:n.state.creditCardInput.values.number.replace(/\s/g,''),cvv:n.state.creditCardInput.values.cvc,expiration_date:n.state.creditCardInput.values.expiry,id_wallet_agent:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,k.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,l=t.creditCardInput,o=t.montant,s=t.password;l.valid?n.ckeckIfFieldIsOK(o)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:16,id_wallet_agent:n.state.wallet.id,montant:n.state.montant}):n.codeCVVAnim.shake(800),n.setState({triggerSubmitClick:!0,numCarte:parseInt(l.values.number.replace(/ /g,' ')),cvv:l.values.cvc,expiration_date:l.values.expiry})},n.renderLoader=function(){return v.default.createElement(b.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,montant:'',numeroSerie:'',numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},displayCardError:!1,loading:!1,user:null,displayFirstStep:!0,displaySecondStep:!1,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:x.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,D.readUser)().then(function(l){l&&void 0!==l&&t.setState({user:l})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('WITHDRAWAL_WALLET_TO_CASH')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,l=this.props.resultEnvoieWalletToCardGetCommission;return v.default.createElement(v.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),v.default.createElement(T.ScrollView,{style:B.container},this.state.displayFirstStep&&v.default.createElement(v.default.Fragment,null,v.default.createElement(T.Text,{style:B.subbigtitle},y.default.t('DEPOSIT_CASH_TO_VISA_DESCRIPTION')),v.default.createElement(E.View,{ref:function(l){t.codeCVVAnim=l}},v.default.createElement(T.View,{style:{overflow:'hidden',paddingTop:16,backgroundColor:'white',marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}},v.default.createElement(U.LiteCreditCardInput,{inputStyle:{flex:1,color:'black',fontSize:18,padding:7,paddingLeft:0},validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,labels:{number:y.default.t('CARD_NUMBER_LABEL'),expiry:y.default.t('CARD_EXPIRY_LABEL'),cvc:y.default.t('CARD_CVC_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return v.default.createElement(T.Text,{style:{color:'red',marginLeft:15}},t)}))),v.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.state.creditCardInput.valid?t.setState({displayFirstStep:!t.state.displayFirstStep,displaySecondStep:!t.state.displaySecondStep}):t.codeCVVAnim.shake(800)}},y.default.t('NEXT'))),this.state.displaySecondStep&&v.default.createElement(v.default.Fragment,null,v.default.createElement(E.View,{ref:function(l){t.montantAnim=l}},v.default.createElement(W.Fumi,{iconClass:R.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(l){t.setState({montant:l})},style:B.input}),v.default.createElement(T.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},v.default.createElement(T.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),v.default.createElement(T.Text,{style:[V.Typography.body1,V.FontWeight.bold]},this.state.wallet.currency_code))),v.default.createElement(E.View,{ref:function(l){t.passwordAnim=l}},v.default.createElement(W.Fumi,{iconClass:R.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:B.input})),v.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL')))))}}]),l})(v.Component));F.navigatorStyle={navBarBackgroundColor:I.Color.primaryColor,statusBarColor:I.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_CASH_TO_VISA'),headerTintColor:'white',headerStyle:{backgroundColor:I.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('DEPOSIT_CASH_TO_VISA')}};var N=(0,_.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,A.bindActionCreators)({envoieUserWalletToCardAction:O.envoieUserWalletToCardAction,envoieUserWalletToCardReset:O.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:O.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:O.getCommissionUserWalletToCardReset},t)})(F);e.default=N;var B=T.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1811,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,535,1513,539,704,1039,1056,1646,1026,1015,1099,774,1702,719,1796,1644,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])),C=n(r(d[8])),p=n(r(d[9])),y=t(r(d[10])),E=r(d[11]),h=t(r(d[12])),A=n(r(d[13])),v=n(r(d[14])),T=r(d[15]),S=r(d[16]),w=r(d[17]),b=r(d[18]),R=n(r(d[19])),D=r(d[20]),N=r(d[21]),k=r(d[22]),_=r(d[23]),L=r(d[24]),I=r(d[25]),W=r(d[26]),P=r(d[27]),x=r(d[28]),V=n(r(d[29])),O=r(d[30]),F=(r(d[31]),r(d[32]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderGetActionCountryList=function(){var t=l.props,n=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==n&&void 0!==n.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:n.response,paysDestinationSelect:n.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getPayCountryNetworkAction({id_wallet_agent:l.state.wallet.id,id_country:n.response[0].id})),null!==o&&(void 0!==o.data?E.Alert.alert(A.default.t('ERROR_LABEL'),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):E.Alert.alert(A.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:A.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,n=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:n.response,walletActifSelect:n.response[0].name,modalVisible:!1}):0===n.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==o&&(void 0!==o.data?E.Alert.alert(A.default.t('ERROR_LABEL'),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):E.Alert.alert(A.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:A.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,n=t.resultEnvoieWalletToCash,o=t.errorEnvoieWalletToCash;null!==o&&void 0!==o.data&&E.Alert.alert(A.default.t("ERROR_TRANSFER"),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&E.Alert.alert(A.default.t("SUCCESS_TRANSFER"),n.response,[{text:A.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),O.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(A.default.t("ERROR_LABLE"),t.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:A.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,L.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:A.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:A.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var n=t.response.frais,o=t.response.montant_net_final;t.response.montant_net_init;return console.log("DATA SEND TO CONFIRM DIALOG",t),y.default.createElement(v.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},y.default.createElement(v.default.Title,null,A.default.t('TRANSACTION_DETAIL')),y.default.createElement(E.View,null,y.default.createElement(E.View,{style:[B.blockView,{borderBottomColor:k.Color.borderColor}]},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[B.body2]},A.default.t('AMOUNT'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[x.Typography.body2]},A.default.t('FEES_AND_TAXES'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(n,' ')+" "+l.state.wallet.currency_code)))),y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},A.default.t('NET_AMOUNT'),":")),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(o,' ')+"}")))))),y.default.createElement(v.default.Button,{bold:!0,label:A.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),y.default.createElement(v.default.Button,{bold:!0,label:A.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:17,id_wallet_agent:l.state.wallet.id,nom_emetteur:l.state.nomsEmetteur,prenom_emetteur:l.state.prenomsDestinataire,email_emetteur:l.state.emailEmetteur,type_document_emetteur:l.state.identityPiecesNameEmetteur,id_document_emetteur:l.state.numeroIdentiteEmetteur,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroIdentiteEmetteur,type_document_destinataire:l.state.identityPiecesNameEmetteur,nom_destinataire:l.state.nomsDestinataire,prenom_destinataire:l.state.prenomsDestinataire,id_document_destinataire:l.state.numeroIdentiteDestinataire,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitNextStep=function(){var t=l.state,n=t.nomsEmetteur,o=t.prenomsEmetteur,s=t.emailEmetteur,u=t.numeroIdentiteEmetteur;l.ckeckIfFieldIsOK(n)?l.nomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.emailEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.numeroIdentiteEmetteurAnim.shake(800):l.setState({triggerNextClick:!0,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,displayFirstStep:!l.state.displayFirstStep,displaySecondStep:!l.state.displaySecondSte},function(){l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props)})},l.onSubmitCashVersAutreWallet=function(){var t=l.state,n=t.nomsDestinataire,o=t.prenomsDestinataire,s=t.montant,u=t.password,c=t.numeroIdentiteDestinataire;l.ckeckIfFieldIsOK(n)?l.nomDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.identityPiecesDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(s)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(u)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:17,id_wallet_agent:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({isDataSubmit:!1,triggerSubmitClick:!0})},l.renderLoader=function(){return y.default.createElement(w.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:A.default.t('LOADING'),message:A.default.t('LOADING_INFO')})},l.state={identityPiecesEmetteur:(0,L.identityPieces)(),identityPiecesNameEmetteur:(0,L.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,nomsEmetteur:null,prenomsEmetteur:null,emailEmetteur:null,numeroIdentiteEmetteur:null,nomsDestinataire:null,prenomsDestinataire:null,idDestinataire:null,numeroIdentiteDestinataire:null,montant:null,password:null,loading:!1,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,modalVisible:!1,hasLoadActiveCountryList:!1,hasLoadActivePayCountryNetworkList:!1,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:_.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var n=this.props.resultEnvoieWalletToCashGetCommission;return y.default.createElement(y.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==n&&void 0!==n.response&&this.modalConfirmTransaction(n),y.default.createElement(E.ScrollView,{style:B.container},this.state.displayFirstStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(E.Text,{style:B.subbigtitle},A.default.t('ENVOIE_CASH_TO_CASH')),y.default.createElement(h.View,{ref:function(n){t.nomsEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user',label:""+A.default.t('NAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsEmetteur,onChangeText:function(n){t.setState({nomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('FIRSTNAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsEmetteur,onChangeText:function(n){t.setState({prenomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.emailEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:"envelope",label:A.default.t('EMAIL_EMETTEUR'),iconColor:'#f95a25',keyboardType:"email-address",iconSize:20,value:this.state.emailEmetteur,onChangeText:function(n){t.setState({emailEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesEmetteurAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('PIECE_IDENTITE'),data:this.state.identityPiecesEmetteur,useNativeDriver:!0,value:this.state.identityPiecesNameEmetteur,onChangeText:function(n,o,l){t.setState({identityPiecesNameEmetteur:n,isDataSubmit:!1})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.numeroIdentiteEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'address-card',label:""+A.default.t('NUMERO_IDENTITE_EMETTEUR'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentiteEmetteur:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},A.default.t('NEXT'))),this.state.displaySecondStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(h.View,{ref:function(n){t.nomDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user',label:""+A.default.t('NAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsDestinataire,onChangeText:function(n){t.setState({nomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('FIRSTNAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsDestinataire,onChangeText:function(n){t.setState({prenomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentiteDestinataire,onChangeText:function(n){t.setState({numeroIdentiteDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.paysDestinationAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(n,o,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===n});t.setState({paysDestinationSelect:n,hasLoadActivePayCountryNetworkList:!0,isDataSubmit:!1},function(){t.props.getPayCountryNetworkAction({id_wallet_agent:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.walletActifAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(n,o,l){t.setState({walletActifSelect:n,isDataSubmit:!1})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.montantAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'money',label:A.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:B.input}),y.default.createElement(E.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},y.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),y.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),y.default.createElement(h.View,{ref:function(n){t.passwordAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'lock',label:A.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitCashVersAutreWallet()}},A.default.t('SUBMIT_LABEL')))))}}]),n})(y.Component));F.navigatorStyle={navBarBackgroundColor:k.Color.primaryColor,statusBarColor:k.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:A.default.t('DEPOSIT_CASH_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:k.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:A.default.t('DEPOSIT_CASH_TO_CASH')}};var U=(0,D.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,N.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:P.envoieUserWalletToCashAction,envoieUserWalletToCashReset:P.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:P.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:P.getCommissionUserWalletToCashReset},t)})(F);e.default=U;var B=E.StyleSheet.create({container:{flex:1,backgroundColor:k.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:k.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:k.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1812,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,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])),s=n(r(d[3])),l=n(r(d[4])),c=n(r(d[5])),u=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=n(r(d[9])),I=n(r(d[10])),v=n(r(d[11])),D=n(r(d[12])),E=t(r(d[13])),N=r(d[14]),y=t(r(d[15])),C=n(r(d[16])),b=n(r(d[17])),P=r(d[18]),w=r(d[19]),S=r(d[20]),k=r(d[21]),A=r(d[22]),x=n(r(d[23])),T=r(d[24]),O=r(d[25]),_=r(d[26]),F=r(d[27]),R=r(d[28]),Y=r(d[29]),L=r(d[30]),M=r(d[31]),U=(r(d[32]),r(d[33]),r(d[34])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,u.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===N.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===N.Platform.OS||!1,dateExpiration:l})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=t.numeroIdentite,l=t.dateNaissance,c=(t.dateExpiration,t.country),u=t.townName,f=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):(console.log('USER ID',o.state.user.id),U(l).format('DD-MM-YYYY'),o.props.updateIndentificationAction({id:o.state.userIdentificationData.id,lastname:o.state.lastname,firstname:"",birth_date:(0,D.default)(o.state.dateNaissance)?o.dateNaissanceFumiProps.value:U(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:(0,D.default)(o.state.dateExpiration)?o.dateExpirationFumiProps.value:U(o.state.dateExpiration).format('DD-MM-YYYY')})),o.setState({triggerSubmitClick:!0})},o.renderLoader=function(){return E.default.createElement(k.ProgressDialog,{visible:o.props.loading||o.props.loadingNumberDetail,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return E.default.createElement(h.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return E.default.createElement(h.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={enterPhone:null,firstname:null,lastname:null,numeroIdentite:null,dateNaissance:null,dateExpiration:null,numeroTelephone:null,networksinglePickerVisible:!1,confirmpassanim:null,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,R.identityPieces)(),identityPiecesName:(0,R.identityPieces)()[0].name,snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,userIdentificationData:F.store.getState().getUserIdentificationReducer.result.response.data},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o}return(0,p.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var t=this;this.dateNaissanceFumiProps.value=U(this.state.userIdentificationData.birth_date).format('DD-MM-YYYY'),this.dateExpirationFumiProps.value=U(this.state.userIdentificationData.expiry_date_document).format('DD-MM-YYYY'),(0,L.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n,lastname:t.state.userIdentificationData.firstname+' '+t.state.userIdentificationData.lastname,numeroIdentite:t.state.userIdentificationData.id_identity_document})}),'android'===N.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&N.Alert.alert(b.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:b.default.t("OK"),onPress:function(){t.props.getUserIdentificationAction(t.state.user.phone),t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?N.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):N.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=U(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=U(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&C.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),N.Alert.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:C.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||C.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(N.PermissionsAndroid.request(N.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===N.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),N.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),N.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,v.default)(s,o)||((0,M.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,c=o.place_id;n.setState({address:s,textadress:l,place:c});for(var u,f,p=t.results,h=0;h=s.length)break;f=s[c++]}else{if((c=s.next()).done)break;f=c.value}var p=f;p.code_country===u&&(o=!0,n.setState({modalVisible:!1,indicatif:p.code_dial,country:p.name}))}o||N.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,D.default)(t)||(0,v.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return E.default.createElement(P.MaterialDialog,{visible:this.state.modalVisible,title:b.default.t("LOADING_INFO")},E.default.createElement(N.View,{style:{justifyContent:'center',alignItems:'center'}},E.default.createElement(N.Text,null,b.default.t("LOADING_DESCRIPTION_COUNTRY")),E.default.createElement(N.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);this.state.showPickerDateNaissance;return E.default.createElement(E.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),(this.props.loading||this.props.loadingNumberDetail)&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),E.default.createElement(N.ScrollView,{style:W.container},E.default.createElement(y.View,{ref:function(n){t.lastnameAnim=n}},E.default.createElement(A.Fumi,{iconClass:x.default,iconName:'user',label:b.default.t('NAME')+" "+b.default.t('AND')+" "+b.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:W.input})),E.default.createElement(y.View,{ref:function(n){t.datenaissanceAnim=n}},E.default.createElement(A.Fumi,(0,o.default)({iconClass:x.default,iconName:'calendar',label:b.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){N.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),E.default.createElement(y.View,{ref:function(n){t.countryAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),E.default.createElement(y.View,{ref:function(n){t.townAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),E.default.createElement(y.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),E.default.createElement(y.View,{ref:function(n){t.numeroIdentiteAnim=n}},E.default.createElement(A.Fumi,{iconClass:x.default,iconName:'address-card',label:""+b.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentite,onChangeText:function(n){t.setState({numeroIdentite:n})},style:W.input})),E.default.createElement(y.View,{ref:function(n){t.identityDateExpiryAnim=n}},E.default.createElement(A.Fumi,(0,o.default)({iconClass:x.default,iconName:'calendar-times-o',label:b.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){N.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),E.default.createElement(I.default,{style:W.btnvalide,textStyle:W.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},b.default.t('MODIFY'))))}}]),n})(E.Component);V.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('IDENTIFICATION'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('IDENTIFICATION')}};var K=(0,T.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error,loadingNumberDetail:t.getNumberInformationReducer.loading,resultNumberDetail:t.getNumberInformationReducer.result,errorNumberDetail:t.getNumberInformationReducer.error}},function(t){return(0,O.bindActionCreators)({updateIndentificationAction:Y.updateIndentificationAction,createIndentificationResetAction:Y.createIndentificationResetAction,getUserIdentificationAction:Y.getUserIdentificationAction,getNumberDetailAction:Y.getNumberDetailAction,getNumberResetAction:Y.getNumberResetAction},t)})(V);e.default=K;var W=N.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1813,[4,1,6,273,8,9,10,12,13,1774,717,689,1611,15,18,751,812,720,776,973,535,1513,704,539,1039,1056,1026,1099,1644,1781,719,772,814,815,1031]); +__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])),C=n(r(d[8])),p=n(r(d[9])),y=t(r(d[10])),E=r(d[11]),h=t(r(d[12])),A=n(r(d[13])),v=n(r(d[14])),T=r(d[15]),S=r(d[16]),w=r(d[17]),b=r(d[18]),R=n(r(d[19])),D=r(d[20]),N=r(d[21]),k=r(d[22]),_=r(d[23]),L=r(d[24]),I=r(d[25]),W=r(d[26]),P=r(d[27]),x=r(d[28]),V=n(r(d[29])),O=r(d[30]),F=(r(d[31]),r(d[32]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderGetActionCountryList=function(){var t=l.props,n=t.resultActiveCountryList,o=t.errorActiveCountryList;null!==n&&void 0!==n.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:n.response,paysDestinationSelect:n.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getPayCountryNetworkAction({id_wallet_agent:l.state.wallet.id,id_country:n.response[0].id})),null!==o&&(void 0!==o.data?E.Alert.alert(A.default.t('ERROR_LABEL'),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):E.Alert.alert(A.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:A.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,n=t.resultPayCountryNetwork,o=t.errorPayCountryNetwork;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:n.response,walletActifSelect:n.response[0].name,modalVisible:!1}):0===n.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==o&&(void 0!==o.data?E.Alert.alert(A.default.t('ERROR_LABEL'),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):E.Alert.alert(A.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:A.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,n=t.resultEnvoieWalletToCash,o=t.errorEnvoieWalletToCash;null!==o&&void 0!==o.data&&E.Alert.alert(A.default.t("ERROR_TRANSFER"),o.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&E.Alert.alert(A.default.t("SUCCESS_TRANSFER"),n.response,[{text:A.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),O.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(A.default.t("ERROR_LABLE"),t.data.error,[{text:A.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:A.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,L.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:A.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:A.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var n=t.response.frais,o=t.response.montant_net_final;t.response.montant_net_init;return console.log("DATA SEND TO CONFIRM DIALOG",t),y.default.createElement(v.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},y.default.createElement(v.default.Title,null,A.default.t('TRANSACTION_DETAIL')),y.default.createElement(E.View,null,y.default.createElement(E.View,{style:[B.blockView,{borderBottomColor:k.Color.borderColor}]},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[B.body2]},A.default.t('AMOUNT'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[x.Typography.body2]},A.default.t('FEES_AND_TAXES'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(n,' ')+" "+l.state.wallet.currency_code)))),y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{paddingVertical:10}},y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},A.default.t('NET_AMOUNT'),":")),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[x.Typography.caption1,k.Color.grayColor]},(0,V.default)(o,' ')+"}")))))),y.default.createElement(v.default.Button,{bold:!0,label:A.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),y.default.createElement(v.default.Button,{bold:!0,label:A.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:17,id_wallet_agent:l.state.wallet.id,nom_emetteur:l.state.nomsEmetteur,prenom_emetteur:l.state.prenomsDestinataire,email_emetteur:l.state.emailEmetteur,type_document_emetteur:l.state.identityPiecesNameEmetteur,id_document_emetteur:l.state.numeroIdentiteEmetteur,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroIdentiteEmetteur,type_document_destinataire:l.state.identityPiecesNameEmetteur,nom_destinataire:l.state.nomsDestinataire,prenom_destinataire:l.state.prenomsDestinataire,id_document_destinataire:l.state.numeroIdentiteDestinataire,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitNextStep=function(){var t=l.state,n=t.nomsEmetteur,o=t.prenomsEmetteur,s=t.emailEmetteur,u=t.numeroIdentiteEmetteur;l.ckeckIfFieldIsOK(n)?l.nomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.emailEmetteurAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.numeroIdentiteEmetteurAnim.shake(800):l.setState({triggerNextClick:!0,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,displayFirstStep:!l.state.displayFirstStep,displaySecondStep:!l.state.displaySecondSte},function(){l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props)})},l.onSubmitCashVersAutreWallet=function(){var t=l.state,n=t.nomsDestinataire,o=t.prenomsDestinataire,s=t.montant,u=t.password,c=t.numeroIdentiteDestinataire;l.ckeckIfFieldIsOK(n)?l.nomDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.prenomsDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.identityPiecesDestinataireAnim.shake(800):l.ckeckIfFieldIsOK(s)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(u)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:17,id_wallet_agent:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({isDataSubmit:!1,triggerSubmitClick:!0})},l.renderLoader=function(){return y.default.createElement(w.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:A.default.t('LOADING'),message:A.default.t('LOADING_INFO')})},l.state={identityPiecesEmetteur:(0,L.identityPieces)(),identityPiecesNameEmetteur:A.default.t((0,L.identityPieces)()[0].name),paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,nomsEmetteur:null,prenomsEmetteur:null,emailEmetteur:null,numeroIdentiteEmetteur:null,nomsDestinataire:null,prenomsDestinataire:null,idDestinataire:null,numeroIdentiteDestinataire:null,montant:null,password:null,loading:!1,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,modalVisible:!1,hasLoadActiveCountryList:!1,hasLoadActivePayCountryNetworkList:!1,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:_.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var n=this.props.resultEnvoieWalletToCashGetCommission;return y.default.createElement(y.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==n&&void 0!==n.response&&this.modalConfirmTransaction(n),y.default.createElement(E.ScrollView,{style:B.container},this.state.displayFirstStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(E.Text,{style:B.subbigtitle},A.default.t('ENVOIE_CASH_TO_CASH')),y.default.createElement(h.View,{ref:function(n){t.nomsEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user',label:""+A.default.t('NAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsEmetteur,onChangeText:function(n){t.setState({nomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('FIRSTNAME_EMETTEUR'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsEmetteur,onChangeText:function(n){t.setState({prenomsEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.emailEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:"envelope",label:A.default.t('EMAIL_EMETTEUR'),iconColor:'#f95a25',keyboardType:"email-address",iconSize:20,value:this.state.emailEmetteur,onChangeText:function(n){t.setState({emailEmetteur:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesEmetteurAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('PIECE_IDENTITE'),data:this.state.identityPiecesEmetteur,useNativeDriver:!0,value:this.state.identityPiecesNameEmetteur,onChangeText:function(n,o,l){t.setState({identityPiecesNameEmetteur:n,isDataSubmit:!1})},valueExtractor:function(t){return A.default.t(t.name)},labelExtractor:function(t){return A.default.t(t.name)}})),y.default.createElement(h.View,{ref:function(n){t.numeroIdentiteEmetteurAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'address-card',label:""+A.default.t('NUMERO_IDENTITE_EMETTEUR'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentiteEmetteur:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitNextStep()}},A.default.t('NEXT'))),this.state.displaySecondStep&&y.default.createElement(y.default.Fragment,null,y.default.createElement(h.View,{ref:function(n){t.nomDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user',label:""+A.default.t('NAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.nomsDestinataire,onChangeText:function(n){t.setState({nomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.prenomsDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('FIRSTNAME_DESTINATAIRE'),iconColor:'#f95a25',iconSize:20,value:this.state.prenomsDestinataire,onChangeText:function(n){t.setState({prenomsDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.identityPiecesDestinataireAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'user-circle-o',label:""+A.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentiteDestinataire,onChangeText:function(n){t.setState({numeroIdentiteDestinataire:n})},style:B.input})),y.default.createElement(h.View,{ref:function(n){t.paysDestinationAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(n,o,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===n});t.setState({paysDestinationSelect:n,hasLoadActivePayCountryNetworkList:!0,isDataSubmit:!1},function(){t.props.getPayCountryNetworkAction({id_wallet_agent:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.walletActifAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(T.Dropdown,{label:A.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(n,o,l){t.setState({walletActifSelect:n,isDataSubmit:!1})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(n){t.montantAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'money',label:A.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:B.input}),y.default.createElement(E.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},y.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),y.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),y.default.createElement(h.View,{ref:function(n){t.passwordAnim=n}},y.default.createElement(b.Fumi,{iconClass:R.default,iconName:'lock',label:A.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:B.input})),y.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitCashVersAutreWallet()}},A.default.t('SUBMIT_LABEL')))))}}]),n})(y.Component));F.navigatorStyle={navBarBackgroundColor:k.Color.primaryColor,statusBarColor:k.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},F.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:A.default.t('DEPOSIT_CASH_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:k.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:A.default.t('DEPOSIT_CASH_TO_CASH')}};var U=(0,D.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,N.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:P.envoieUserWalletToCashAction,envoieUserWalletToCashReset:P.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:P.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:P.getCommissionUserWalletToCashReset},t)})(F);e.default=U;var B=E.StyleSheet.create({container:{flex:1,backgroundColor:k.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:k.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:k.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1812,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,1625,973,535,1513,704,539,1039,1056,1026,1099,1644,719,1794,1796,1015,1646,774,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])),s=n(r(d[3])),l=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=n(r(d[9])),I=n(r(d[10])),v=n(r(d[11])),D=n(r(d[12])),E=t(r(d[13])),N=r(d[14]),y=t(r(d[15])),C=n(r(d[16])),b=n(r(d[17])),P=r(d[18]),w=r(d[19]),S=r(d[20]),k=r(d[21]),A=r(d[22]),x=n(r(d[23])),T=r(d[24]),O=r(d[25]),_=r(d[26]),F=r(d[27]),R=r(d[28]),Y=r(d[29]),L=r(d[30]),M=r(d[31]),U=(r(d[32]),r(d[33]),r(d[34])),V=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,c.default)(this,(0,f.default)(n).call(this,t))).onChangeDateNaissance=function(t,n){var s=(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,l=n||s;o.setState({showPickerDateNaissance:'ios'===N.Platform.OS||!1,dateNaissance:l})},o.onChangeDateExpiration=function(t,n){var s=(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,l=n||s;o.setState({showPickerDateExpiration:'ios'===N.Platform.OS||!1,dateExpiration:l})},o.onSubmitIdentityClient=function(){var t=o.state,n=t.lastname,s=t.numeroIdentite,l=t.dateNaissance,u=(t.dateExpiration,t.country),c=t.townName,f=t.identityPiecesName;o.ckeckIfFieldIsOK(n)?o.lastnameAnim.shake(800):o.ckeckIfFieldIsOK(u)?o.countryAnim.shake(800):o.ckeckIfFieldIsOK(c)?o.townAnim.shake(800):o.ckeckIfFieldIsOK(f)?o.identityPiecesAnim.shake(800):o.ckeckIfFieldIsOK(s)?o.numeroIdentiteAnim.shake(800):(console.log('USER ID',o.state.user.id),U(l).format('DD-MM-YYYY'),o.props.updateIndentificationAction({id:o.state.userIdentificationData.id,lastname:o.state.lastname,firstname:"",birth_date:(0,D.default)(o.state.dateNaissance)?o.dateNaissanceFumiProps.value:U(o.state.dateNaissance).format('DD-MM-YYYY'),town:o.state.townName,country:o.state.country,identity_document:o.state.identityPiecesName,id_identity_document:o.state.numeroIdentite,expiry_date_document:(0,D.default)(o.state.dateExpiration)?o.dateExpirationFumiProps.value:U(o.state.dateExpiration).format('DD-MM-YYYY')})),o.setState({triggerSubmitClick:!0})},o.renderLoader=function(){return E.default.createElement(k.ProgressDialog,{visible:o.props.loading||o.props.loadingNumberDetail,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return E.default.createElement(h.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return E.default.createElement(h.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,D.default)(o.state.dateExpiration)?new Date:o.state.dateExpiration,mode:"date",maximumDate:new Date(2300,10,20),display:"spinner",onChange:o.onChangeDateExpiration})},o.state={enterPhone:null,firstname:null,lastname:null,numeroIdentite:null,dateNaissance:null,dateExpiration:null,numeroTelephone:null,networksinglePickerVisible:!1,confirmpassanim:null,isLoging:!1,countries:[],town:[],townName:null,country:null,identityPieces:(0,R.identityPieces)(),identityPiecesName:b.default.t((0,R.identityPieces)()[0].name),snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,user:null,triggerSubmitClick:!1,triggerNextClick:!1,displayFirstStep:!0,displaySecondStep:!1,userIdentificationData:F.store.getState().getUserIdentificationReducer.result.response.data},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o}return(0,p.default)(n,t),(0,u.default)(n,[{key:"componentDidMount",value:function(){var t=this;this.dateNaissanceFumiProps.value=U(this.state.userIdentificationData.birth_date).format('DD-MM-YYYY'),this.dateExpirationFumiProps.value=U(this.state.userIdentificationData.expiry_date_document).format('DD-MM-YYYY'),(0,L.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n,lastname:t.state.userIdentificationData.firstname+' '+t.state.userIdentificationData.lastname,numeroIdentite:t.state.userIdentificationData.id_identity_document})}),'android'===N.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"renderCreateIdentificationResponse",value:function(){var t=this,n=this.props,o=n.result,s=n.error;console.log("PROPS",this.props),null!==o&&void 0!==o.response&&N.Alert.alert(b.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:b.default.t("OK"),onPress:function(){t.props.getUserIdentificationAction(t.state.user.phone),t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1}),t.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?N.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):N.Alert.alert(b.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:b.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction()}}],{cancelable:!1}))}},{key:"componentWillUpdate",value:function(t,n){var o=n.dateNaissance||new Date;this.state.showPickerDateNaissance&&(this.dateNaissanceFumiProps.value=U(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=U(n.dateExpiration).format('DD-MM-YYYY'))}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&C.default.clearWatch(this.watchID)}},{key:"showErrorDialog",value:function(){var t=this;this.setState({modalDialog:!1}),N.Alert.alert("Une erreur est survenue","Impossible de r\xe9cuperer des informations du pays verifier que votre gps est activ\xe9,et que vous \xeates connect\xe9 \xe0 internet puis ressayer",[{text:"Recommencer",onPress:function(){t.watchLocation()}},{text:"Annuler",onPress:function(){t.props.navigation.popToTop()}}])}},{key:"watchLocation",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:C.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||C.default.watchPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions);case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestCameraPermission",value:function(){var t=this;return s.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.default.awrap(N.PermissionsAndroid.request(N.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===N.PermissionsAndroid.RESULTS.GRANTED?this.watchLocation():(this.setState({modalDialog:!1}),N.Alert.alert("Echec \xe0 l'autorisation","L'application n'est pas autoris\xe9 \xe0 acceder \xe0 votre position veuillez verifier que votre GPS est activ\xe9 et configurer en mode Haute Precision",[{text:"Ok",onPress:function(){t.props.navigation.popToTop()}}])),n.next=11;break;case 7:n.prev=7,n.t0=n.catch(0),this.setState({modalDialog:!1}),N.Alert.alert("Une erreur est Survenue","Une erreur est survenu lors du demarrage de l'application veuillez relancer l'application",[{text:"Ok",onPress:function(){BackHandler.exitApp()}}]);case 11:case"end":return n.stop()}},null,this,[[0,7]],Promise)}},{key:"treatPosition",value:function(t){var n=this,o=this.state.myPosition,s=t.coords;(0,v.default)(s,o)||((0,M.getPositionInformation)(s).then(function(t){if(void 0!==t.results&&t.results.length>0){var o=t.results[0],s=o.address_components,l=o.formatted_address,u=o.place_id;n.setState({address:s,textadress:l,place:u});for(var c,f,p=t.results,h=0;h=s.length)break;f=s[u++]}else{if((u=s.next()).done)break;f=u.value}var p=f;p.code_country===c&&(o=!0,n.setState({modalVisible:!1,indicatif:p.code_dial,country:p.name}))}o||N.Alert.alert("Impossible de recup\xe9rer vos informations","Nous n'avons pas pu recuperer les informations de votre pays veuillez contacter les administrateurs",[{text:"OK"}])})}}).catch(function(t){n.showErrorDialog()}),this.setState({myPosition:s}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,D.default)(t)||(0,v.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return E.default.createElement(P.MaterialDialog,{visible:this.state.modalVisible,title:b.default.t("LOADING_INFO")},E.default.createElement(N.View,{style:{justifyContent:'center',alignItems:'center'}},E.default.createElement(N.Text,null,b.default.t("LOADING_DESCRIPTION_COUNTRY")),E.default.createElement(N.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);this.state.showPickerDateNaissance;return E.default.createElement(E.default.Fragment,null,this.state.showPickerDateNaissance&&this.renderDateNaissancePicker(),this.state.showPickerDateExpiration&&this.renderDateExpirationPicker(),this.state.modalVisible&&this.renderLoaderModal(),(this.props.loading||this.props.loadingNumberDetail)&&this.renderLoader(),this.state.triggerSubmitClick&&this.renderCreateIdentificationResponse(),E.default.createElement(N.ScrollView,{style:W.container},E.default.createElement(y.View,{ref:function(n){t.lastnameAnim=n}},E.default.createElement(A.Fumi,{iconClass:x.default,iconName:'user',label:b.default.t('NAME')+" "+b.default.t('AND')+" "+b.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:W.input})),E.default.createElement(y.View,{ref:function(n){t.datenaissanceAnim=n}},E.default.createElement(A.Fumi,(0,o.default)({iconClass:x.default,iconName:'calendar',label:b.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){N.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),E.default.createElement(y.View,{ref:function(n){t.countryAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('COUNTRY_CHOICE'),data:this.state.countries,useNativeDriver:!0,value:null===this.state.country?"":this.state.country,onChangeText:function(n,o,s){t.setState({country:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),E.default.createElement(y.View,{ref:function(n){t.townAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('CHOICE_TOWN'),data:this.state.town,useNativeDriver:!0,value:null===this.state.townName?"":this.state.townName,onChangeText:function(n,o,s){t.setState({townName:n})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),E.default.createElement(y.View,{ref:function(n){t.identityPiecesAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(w.Dropdown,{label:b.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(n,o,s){t.setState({identityPiecesName:n})},valueExtractor:function(t){return b.default.t(t.name)},labelExtractor:function(t){return b.default.t(t.name)}})),E.default.createElement(y.View,{ref:function(n){t.numeroIdentiteAnim=n}},E.default.createElement(A.Fumi,{iconClass:x.default,iconName:'address-card',label:""+b.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,value:this.state.numeroIdentite,onChangeText:function(n){t.setState({numeroIdentite:n})},style:W.input})),E.default.createElement(y.View,{ref:function(n){t.identityDateExpiryAnim=n}},E.default.createElement(A.Fumi,(0,o.default)({iconClass:x.default,iconName:'calendar-times-o',label:b.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){N.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),E.default.createElement(I.default,{style:W.btnvalide,textStyle:W.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},b.default.t('MODIFY'))))}}]),n})(E.Component);V.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},V.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('IDENTIFICATION'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('IDENTIFICATION')}};var K=(0,T.connect)(function(t){return{loading:t.createIdentificationReducer.loading,result:t.createIdentificationReducer.result,error:t.createIdentificationReducer.error,loadingNumberDetail:t.getNumberInformationReducer.loading,resultNumberDetail:t.getNumberInformationReducer.result,errorNumberDetail:t.getNumberInformationReducer.error}},function(t){return(0,O.bindActionCreators)({updateIndentificationAction:Y.updateIndentificationAction,createIndentificationResetAction:Y.createIndentificationResetAction,getUserIdentificationAction:Y.getUserIdentificationAction,getNumberDetailAction:Y.getNumberDetailAction,getNumberResetAction:Y.getNumberResetAction},t)})(V);e.default=K;var W=N.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1813,[4,1,6,273,8,9,10,12,13,1774,717,689,1611,15,18,751,812,720,776,973,535,1513,704,539,1039,1056,1026,1099,1644,1781,719,772,814,815,1031]); __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])),l=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),p=o(r(d[7])),f=o(r(d[8])),S=o(r(d[9])),C=t(r(d[10])),h=r(d[11]),_=t(r(d[12])),b=o(r(d[13])),E=r(d[14]),O=r(d[15]),v=r(d[16]),G=o(r(d[17])),R=r(d[18]),k=r(d[19]),y=r(d[20]),I=r(d[21]),T=r(d[22]),A=r(d[23]),w=r(d[24]),F=r(d[25]),N=r(d[26]),D=(r(d[27]),r(d[28]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,s.default)(this,(0,u.default)(o).call(this,t))).isMontantValid=function(){var t=l.state.limitCredit;return parseInt((0,f.default)(t,0))||t<0?{errorMessage:b.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,N.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:b.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderCreateGroupReponse=function(){var t=l.props,o=t.result,n=t.error;null!==n&&void 0!==n.data&&h.Alert.alert(b.default.t("ERROR_CREATION_GROUP"),n.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.createGroupReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&h.Alert.alert(b.default.t("SUCCESS_CREATION_GROUP"),o.response,[{text:b.default.t("OK"),onPress:function(){l.props.createGroupReset(),A.IlinkEmitter.emit("treatNanoGroupDemand"),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitSendWalletToCard=function(){var t=l.state,o=t.codeSponsor1,n=t.codeSponsor2,s=t.nomGroupe,u=t.codeSponsor3,c=t.limitCredit,p=t.password;l.ckeckIfFieldIsOK(s)?l.nomGroupeAnim.shake(800):l.ckeckIfFieldIsOK(c)||!l.isMontantValid().isValid?l.limitCreditAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.codeSponsor1Anim.shake(800):l.ckeckIfFieldIsOK(n)?l.codeSponsor2Anim.shake(800):l.ckeckIfFieldIsOK(u)?l.codeSponsor3Anim.shake(800):l.ckeckIfFieldIsOK(p)?l.passwordAnim.shake(800):l.state.isGroupToModify?l.props.createGroupAction({id_user:l.state.user.id,nom:l.state.nomGroupe,code_group:l.state.codeGroup,code_sponsor1:l.state.codeSponsor1,code_sponsor2:l.state.codeSponsor2,code_sponsor3:l.state.codeSponsor3,password:l.state.password,limite_credit:l.state.limitCredit,code_groupe:l.state.codeGroup},1):l.props.createGroupAction({id_user:l.state.user.id,nom:l.state.nomGroupe,code_sponsor1:l.state.codeSponsor1,code_sponsor2:l.state.codeSponsor2,code_sponsor3:l.state.codeSponsor3,password:l.state.password,limite_credit:l.state.limitCredit},0),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return C.default.createElement(O.ProgressDialog,{visible:l.props.loading||l.props.loadingGetCommission,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},l.state={montant:null,password:null,nomGroupe:null,limitCredit:null,codeSponsor1:null,codeSponsor2:null,codeSponsor3:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,isGroupToModify:!1,wallet:T.store.getState().walletDetailReducer.result.response},l}return(0,c.default)(o,t),(0,l.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,w.readUser)().then(function(o){if(o&&void 0!==o){var n=t.props.navigation.getParam('group',null);(0,S.default)(n)||t.setState({limitCredit:n.limite_credit,nomGroupe:n.nom,codeSponsor1:n.codeSponsor1,codeSponsor2:n.codeSponsor2,codeSponsor3:n.codeSponsor3,codeGroup:n.code_groupe,isGroupToModify:!0}),t.setState({user:o})}})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,S.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,S.default)(t)||(0,f.default)(t.length,0)}},{key:"render",value:function(){var t=this;return C.default.createElement(C.default.Fragment,null,(this.props.loading||this.props.loadingGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderCreateGroupReponse(),C.default.createElement(h.ScrollView,{style:L.container},C.default.createElement(h.Text,{style:L.subbigtitle},b.default.t('GROUP_INFOS')),C.default.createElement(_.View,{ref:function(o){t.nomGroupeAnim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'id-card',label:b.default.t('NOM_GROUP'),iconColor:'#f95a25',iconSize:20,value:this.state.nomGroupe,onChangeText:function(o){t.setState({nomGroupe:o})},style:L.input})),C.default.createElement(_.View,{ref:function(o){t.limitCreditAnim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'money',label:b.default.t('LIMIT_OF_CREDIT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.limitCredit,onChangeText:function(o){t.setState({limitCredit:o})},style:L.input}),C.default.createElement(h.View,{style:{position:'absolute',left:(0,E.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(h.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(h.Text,{style:[I.Typography.body1,I.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(_.View,{ref:function(o){t.codeSponsor1Anim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'user-circle-o',label:b.default.t('CODE_USER_ILINK_SPONSOR_1'),iconColor:'#f95a25',iconSize:20,value:this.state.codeSponsor1,onChangeText:function(o){t.setState({codeSponsor1:o})},style:L.input})),C.default.createElement(_.View,{ref:function(o){t.codeSponsor2Anim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'user-circle-o',label:b.default.t('CODE_USER_ILINK_SPONSOR_2'),iconColor:'#f95a25',iconSize:20,value:this.state.codeSponsor2,onChangeText:function(o){t.setState({codeSponsor2:o})},style:L.input})),C.default.createElement(_.View,{ref:function(o){t.codeSponsor3Anim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'user-circle-o',label:b.default.t('CODE_USER_ILINK_SPONSOR_3'),iconColor:'#f95a25',iconSize:20,value:this.state.codeSponsor3,onChangeText:function(o){t.setState({codeSponsor3:o})},style:L.input})),C.default.createElement(_.View,{ref:function(o){t.passwordAnim=o}},C.default.createElement(v.Fumi,{iconClass:G.default,iconName:'lock',label:b.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:L.input})),C.default.createElement(p.default,{style:L.btnvalide,textStyle:L.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},this.state.isGroupToModify?b.default.t('MODIFY'):b.default.t('SUBMIT_LABEL'))))}}]),o})(C.Component));D.navigatorStyle={navBarBackgroundColor:y.Color.primaryColor,statusBarColor:y.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},D.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('MANAGE_GROUP'),headerTintColor:'white',headerStyle:{backgroundColor:y.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('CREATE_GROUP')}};var x=(0,R.connect)(function(t){return{loading:t.createGroupReducer.loading,result:t.createGroupReducer.result,error:t.createGroupReducer.error}},function(t){return(0,k.bindActionCreators)({createGroupAction:F.createGroupAction,createGroupReset:F.createGroupReset},t)})(D);e.default=x;var L=h.StyleSheet.create({container:{flex:1,backgroundColor:y.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:y.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:y.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,E.responsiveHeight)(2),marginLeft:(0,E.responsiveWidth)(5),marginRight:(0,E.responsiveWidth)(5),borderRadius:5}})},1814,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,535,1513,704,539,1039,1056,1026,1015,1099,774,719,1815,1644,814,815]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getNanoCreditDemandDurationReset=e.getNanoCreditDemandDurationAction=e.askNanoCreditReset=e.askNanoCreditAction=e.joinGroupReset=e.joinGroupAction=e.treatDemandGroupReset=e.cancelDemandGroupAction=e.treatDemandGroupAction=e.createGroupReset=e.createGroupAction=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=r(d[3]),c=r(d[4]),s=r(d[5]);e.createGroupAction=function(t,f){var h=c.store.getState().authKeyReducer,l=null!==h?h.authKey.token_type+" "+h.authKey.access_token:'';return function(c){c((0,u.fetchCreateGroupPending)()),(0,n.default)({url:""+s.groupUrl,method:0===f?'POST':1===f?'PUT':'DELETE',data:t,headers:{Authorization:l,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchCreateGroupSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchCreateGroupError)(t.response)):t.request?c((0,u.fetchCreateGroupError)(t.request)):c((0,u.fetchCreateGroupError)(t.message))})}};e.createGroupReset=function(){return function(t){t((0,u.fetchCreateGroupReset)())}};e.treatDemandGroupAction=function(t){var f=c.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(c){c((0,u.fetchTreatDemandsGroupPending)()),(0,n.default)({url:""+s.treatDemandUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchTreatDemandsGroupSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchTreatDemandsGroupError)(t.response)):t.request?c((0,u.fetchTreatDemandsGroupError)(t.request)):c((0,u.fetchTreatDemandsGroupError)(t.message))})}};e.cancelDemandGroupAction=function(t){var f=c.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(c){c((0,u.fetchTreatDemandsGroupPending)()),(0,n.default)({url:""+s.cancelDemandUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchTreatDemandsGroupSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchTreatDemandsGroupError)(t.response)):t.request?c((0,u.fetchTreatDemandsGroupError)(t.request)):c((0,u.fetchTreatDemandsGroupError)(t.message))})}};e.treatDemandGroupReset=function(){return function(t){t((0,u.fetchTreatDemandsGroupReset)())}};e.joinGroupAction=function(t){var f=c.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(c){c((0,u.fetchJoinGroupPending)()),(0,n.default)({url:""+s.joinGroupUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchJoinGroupSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchJoinGroupError)(t.response)):t.request?c((0,u.fetchJoinGroupError)(t.request)):c((0,u.fetchJoinGroupError)(t.message))})}};e.joinGroupReset=function(){return function(t){t((0,u.fetchJoinGroupReset)())}};e.askNanoCreditAction=function(t){var f=c.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(c){c((0,u.fetchAskNanoCreditPending)()),(0,n.default)({url:""+s.askNanoCreditUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchAskNanoCreditSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchAskNanoCreditError)(t.response)):t.request?c((0,u.fetchAskNanoCreditError)(t.request)):c((0,u.fetchAskNanoCreditError)(t.message))})}};e.askNanoCreditReset=function(){return function(t){t((0,u.fetchAskNanoCreditReset)())}};e.getNanoCreditDemandDurationAction=function(t){var f=c.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(c){c((0,u.fetchGetNanoCreditDemandDurationPending)()),(0,n.default)({url:""+s.getNanoCreditDemandDureationUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),c((0,u.fetchGetNanoCreditDemandDurationSuccess)(t))}).catch(function(t){t.response?c((0,u.fetchGetNanoCreditDemandDurationError)(t.response)):t.request?c((0,u.fetchGetNanoCreditDemandDurationError)(t.request)):c((0,u.fetchGetNanoCreditDemandDurationError)(t.message))})}};e.getNanoCreditDemandDurationReset=function(){return function(t){t((0,u.fetchGetNanoCreditDemandDurationReset)())}}},1815,[1,1073,720,1168,1099,744]); -__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=t(r(d[7])),p=r(d[8]),y=n(r(d[9])),h=n(r(d[10])),E=r(d[11]),v=(r(d[12]),r(d[13]),r(d[14]),n(r(d[15])),n(r(d[16])),n(r(d[17])),r(d[18]));n(r(d[19]));r(d[20]),r(d[21]),r(d[22]),r(d[23]),r(d[24]),r(d[25]),r(d[26]),r(d[27]),r(d[28]);var C=n(r(d[29])),D=r(d[30]),b=(r(d[31]),n(r(d[32]))),A=(r(d[33]),r(d[34]),r(d[35]),n(r(d[36])),r(d[37])),I=n(r(d[38])),T=r(d[39]),x=r(d[40]),S=r(d[41]),w=(r(d[42]),r(d[43])),G=r(d[44]),k=r(d[45]),N=(r(d[46]),r(d[13])),_=r(d[30]);r(d[47]);var V=(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t,!0)))._openMenu=function(){return l.setState({visibleMenu:!0})},l._closeMenu=function(){return l.setState({visibleMenu:!1})},l.getDemandTypeIcon=function(t){switch(t){case'creation':return'account-multiple-plus';case'suppression':return'account-multiple-minus';case'adhesion':return'account-multiple-check';case'nano_credit':return'cash';default:return'account-multiple'}},l.getDemandTypeColor=function(t){switch(t){case'creation':return'green';case'suppression':return'red';case'adhesion':case'nano_credit':default:return k.Color.primaryColor}},l.renderDemandItem=function(t){var n=C.default.tz(t.date_creation_demande,'Etc/GMT+0').format();return n=(0,C.default)(n).fromNow(),f.default.createElement(p.TouchableOpacity,{onPress:function(){l.props.navigation.push(N.demandGroupNanoCreditDetail,{id:t.id})},style:[O.paymentItem]},f.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},f.default.createElement(p.View,{style:O.iconContent},f.default.createElement(h.default,{name:l.getDemandTypeIcon(t.type),color:l.getDemandTypeColor(t.type),size:35}))),f.default.createElement(p.View,{style:O.content},f.default.createElement(p.Text,{style:O.title},t.nom),f.default.createElement(p.Text,{style:O.description},b.default.t('CREATOR')+": "+t.createur),f.default.createElement(p.View,{style:O.timeContent},f.default.createElement(p.View,{style:{alignContent:'flex-start',flex:1,flexDirection:'row'}},f.default.createElement(p.Text,{style:{fontWeight:'bold',marginLeft:20,marginBottom:10,color:3===t.nombre_validation?'green':'red'}},3===t.nombre_validation?b.default.t('VALIDATE'):b.default.t('NO_VALIDATE')," ("+t.nombre_validation+" "+(t.nombre_validation>1?b.default.t('VALIDATIONS'):b.default.t('VALIDATION'))+")")),f.default.createElement(p.View,{style:{alignContent:'flex-end',flex:1,flexDirection:'row'}},f.default.createElement(h.default,{name:"map-marker",style:(O.descriptionIcon,{color:k.Color.accentColor,marginTop:5})}),f.default.createElement(p.Text,{style:O.time},t.country),f.default.createElement(h.default,{name:"clock",style:(O.descriptionIcon,{color:k.Color.accentColor,marginTop:5})}),f.default.createElement(p.Text,{style:O.time}," ",n)))))},l.rendeGetDemandsGroupResponse=function(){var t=l.props,n=t.resultGetDemandsGroup,o=t.errorGetDemandsGroup;return null!==o?void 0!==o.data?f.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(p.Text,{style:w.Typography.body1},o.data.error)):f.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(p.Text,{style:w.Typography.body1},o)):null!==n&&null!==n.response?Array.isArray(n.response)&&n.response.length>0?f.default.createElement(G.ScrollView,{style:{flex:1}},n.response.map(function(t){return l.renderDemandItem(t)})):f.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(p.Text,{style:w.Typography.body1},b.default.t('NO_DEMAND_CREATION_GROUP'))):void 0},l.renderLoader=function(){return f.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?f.default.createElement(f.default.Fragment,null,f.default.createElement(p.ProgressBarAndroid,null),f.default.createElement(p.Text,null,b.default.t('LOADING_DOTS'))):f.default.createElement(f.default.Fragment,null,f.default.createElement(ActivityIndicator,{size:"large",color:'#ccc'}),f.default.createElement(p.Text,null,b.default.t('LOADING_DOTS'))))},l.state={user:{},conserve:[],count:0,translateAnim:new p.Animated.Value(0),visibleMenu:!1,appState:p.AppState.currentState,filter:!1,sortIcons:null,panelVisible:!1,filder_disable:!0,datestartformated:'La date de debut',dateendformated:'La date de fin',datestart:null,dateend:null,isLoaded:!1,isSectionned:!1,isDateTimePickerVisible:!1,isDateEndTimePickerVisible:!1,isDataSubmit:!1,position:0},(0,v.readUser)().then(function(t){l.setState({user:t}),l.props.getNanoCreditDemandsAction(t.id)}),l.props.getNanoCreditDemandsReset(),l.navigation=l.props.navigation,l.currentLocale=I.default.getDeviceLocale().includes("fr")?"fr":"en-gb",l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this.navigation.state.routeName;this.setState({position:"demandeValidationGroupe"===t?0:"myNanoCreditGroup"===t?1:2}),this.animateSlidingUp(!1)}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervaller)}},{key:"animateSlidingUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=(0,E.responsiveHeight)(100),o=t?n:0,l=t?0:n;this.setState({isSliding:t}),this.state.translateAnim.setValue(o),p.Animated.timing(this.state.translateAnim,{toValue:l,duration:500,useNativeDriver:!0}).start()}},{key:"printOptions",value:function(){var t=this;return f.default.createElement(y.default,{buttonColor:D.accent},f.default.createElement(y.default.Item,{buttonColor:D.primary,title:b.default.t('CREATE_GROUP'),onPress:function(){t.props.navigation.push(N.createGroupNanoCredit)}},f.default.createElement(h.default,{name:"account-multiple-plus",style:O.actionButtonIcon})),f.default.createElement(y.default.Item,{buttonColor:D.purpleLight,title:b.default.t('JOIN_GROUP'),onPress:function(){t.props.navigation.push(N.adhererGroupNanoCredit)}},f.default.createElement(h.default,{name:"account-multiple",style:O.actionButtonIcon})))}},{key:"refreshData",value:function(){this.props.getNanoCreditDemandsAction(this.state.user.id)}},{key:"render",value:function(){var t=this;return console.warn("POSITION",this.state.position),f.default.createElement(A.Provider,null,f.default.createElement(p.View,{style:{flex:1}},f.default.createElement(p.StatusBar,{backgroundColor:_.primaryDark,barStyle:"light-content",translucent:!1}),f.default.createElement(A.Appbar.Header,{dark:!0,style:{backgroundColor:_.primary}},f.default.createElement(A.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),f.default.createElement(A.Appbar.Content,{title:b.default.t('MANAGE_GROUP'),subtitle:0===this.state.position?b.default.t('VALIDATION_DEMAND'):b.default.t('DELETE_DEMAND')}),f.default.createElement(A.Appbar.Action,{icon:"refresh",onPress:function(){t.refreshData()}})),0===this.state.position?this.props.loadingGetDemandsGroup?this.renderLoader():this.rendeGetDemandsGroupResponse():null,0===this.state.position&&this.printOptions()))}}]),n})(f.default.Component);V.navigatorStyle={navBarBackgroundColor:D.primary,statusBarColor:D.primaryDark,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF',contextualMenuStatusBarColor:_.accent,contextualMenuBackgroundColor:_.accentLight,contextualMenuButtonsColor:'#ffffff'};var L=(0,x.connect)(function(t){return{loadingGetDemandsGroup:t.getDemandsGroupReducer.loading,resultGetDemandsGroup:t.getDemandsGroupReducer.result,errorGetDemandsGroup:t.getDemandsGroupReducer.error}},function(t){return(0,T.bindActionCreators)({getNanoCreditDemandsAction:S.getNanoCreditDemandsAction,getNanoCreditDemandsReset:S.getNanoCreditDemandsReset},t)})(V);e.default=L;var O=p.StyleSheet.create({slidingup:{position:"absolute",height:(0,E.responsiveHeight)(84),bottom:0,backgroundColor:'white',width:(0,E.responsiveWidth)(100),zIndex:1e3},root:{flex:1},container:{flex:1,backgroundColor:'white',justifyContent:'center',alignItems:'center'},emptylist:{flex:1,justifyContent:'center',alignItems:'center'},backgroundd_drawer:{backgroundColor:'#000'},listbackground:{},actionButtonIcon:{fontSize:20,height:22,color:'white'},descriptionIcon:{fontSize:10,height:12,top:10},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5},dateText:{marginTop:20,marginLeft:(0,E.responsiveWidth)(13),marginBottom:20,fontSize:17},titlecontent:{fontSize:17,marginLeft:(0,E.responsiveWidth)(10),color:'black'},title:{fontSize:20,marginLeft:20,marginTop:20,color:'black',fontWeight:'bold'},content:{flex:1,flexDirection:'column',paddingTop:10},listStyle:{backgroundColor:'white'},bottomSeparator:{width:(0,E.responsiveWidth)(100),height:5,justifyContent:'center',alignSelf:'center',backgroundColor:'#EEE'},title:{color:'#000',paddingLeft:10,fontSize:(0,E.responsiveFontSize)(2.2)},description:{fontSize:(0,E.responsiveFontSize)(1.8),color:'#4f5b62',paddingLeft:10},timeContent:{justifyContent:'space-between',flex:1,marginTop:10,marginBottom:5,flexDirection:'row'},time:{fontWeight:'bold',marginRight:20,marginBottom:10,color:_.accent},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",borderBottomColor:'#EEE',borderBottomWidth:1},iconContent:{width:40,marginRight:5,alignItems:"center"}})},1816,[4,1,8,9,10,12,13,15,18,532,876,535,1288,815,1290,1008,823,717,719,1174,1031,1038,1037,1030,1032,1034,1035,1036,1033,1169,814,943,720,776,848,416,1651,1179,936,1056,1039,1785,774,1015,2,1026,1525,816]); +__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])),p=t(r(d[8])),h=r(d[9]),y=n(r(d[10])),E=n(r(d[11])),v=r(d[12]),C=(r(d[13]),r(d[14]),r(d[15]),n(r(d[16])),n(r(d[17])),n(r(d[18])),r(d[19]));n(r(d[20]));r(d[21]),r(d[22]),r(d[23]),r(d[24]),r(d[25]),r(d[26]),r(d[27]),r(d[28]),r(d[29]);var D=n(r(d[30])),b=r(d[31]),A=(r(d[32]),n(r(d[33]))),I=(r(d[34]),r(d[35]),r(d[36]),n(r(d[37])),r(d[38])),T=n(r(d[39])),x=r(d[40]),S=r(d[41]),w=r(d[42]),G=r(d[43]),k=r(d[44]),N=r(d[45]),L=r(d[46]),_=(r(d[47]),r(d[14])),V=r(d[31]);r(d[48]);var O=(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t,!0)))._openMenu=function(){return l.setState({visibleMenu:!0})},l._closeMenu=function(){return l.setState({visibleMenu:!1})},l.getDemandTypeIcon=function(t){switch(t){case'creation':return'account-multiple-plus';case'suppression':return'account-multiple-minus';case'adhesion':return'account-multiple-check';case'nano_credit':return'cash';default:return'account-multiple'}},l.getDemandTypeColor=function(t){switch(t){case'creation':return'green';case'suppression':return'red';case'adhesion':case'nano_credit':default:return L.Color.primaryColor}},l.renderDemandItem=function(t){var n=D.default.tz(t.date_creation_demande,'Etc/GMT+0').format();return n=(0,D.default)(n).fromNow(),p.default.createElement(h.TouchableOpacity,{onPress:function(){l.props.navigation.push(_.demandGroupNanoCreditDetail,{id:t.id})},style:[R.paymentItem]},p.default.createElement(h.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(h.View,{style:R.iconContent},p.default.createElement(E.default,{name:l.getDemandTypeIcon(t.type),color:l.getDemandTypeColor(t.type),size:35}))),p.default.createElement(h.View,{style:R.content},p.default.createElement(h.Text,{style:R.title},t.nom),p.default.createElement(h.Text,{style:R.description},A.default.t('CREATOR')+": "+t.createur),p.default.createElement(h.View,{style:R.timeContent},p.default.createElement(h.View,{style:{alignContent:'flex-start',flex:1,flexDirection:'row'}},p.default.createElement(h.Text,{style:{fontWeight:'bold',marginLeft:20,marginBottom:10,color:3===t.nombre_validation?'green':'red'}},3===t.nombre_validation?A.default.t('VALIDATE'):A.default.t('NO_VALIDATE')," ("+t.nombre_validation+" "+(t.nombre_validation>1?A.default.t('VALIDATIONS'):A.default.t('VALIDATION'))+")")),p.default.createElement(h.View,{style:{alignContent:'flex-end',flex:1,flexDirection:'row'}},p.default.createElement(E.default,{name:"map-marker",style:(R.descriptionIcon,{color:L.Color.accentColor,marginTop:5})}),p.default.createElement(h.Text,{style:R.time},t.country),p.default.createElement(E.default,{name:"clock",style:(R.descriptionIcon,{color:L.Color.accentColor,marginTop:5})}),p.default.createElement(h.Text,{style:R.time}," ",n)))))},l.rendeGetDemandsGroupResponse=function(){var t=l.props,n=t.resultGetDemandsGroup,o=t.errorGetDemandsGroup;return null!==o?void 0!==o.data?p.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(h.Text,{style:k.Typography.body1},o.data.error)):p.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(h.Text,{style:k.Typography.body1},o)):null!==n&&null!==n.response?Array.isArray(n.response)&&n.response.length>0?p.default.createElement(N.ScrollView,{style:{flex:1}},n.response.map(function(t){return l.renderDemandItem(t)})):p.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(h.Text,{style:k.Typography.body1},A.default.t('NO_DEMAND_CREATION_GROUP'))):void 0},l.renderLoader=function(){return p.default.createElement(h.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===h.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(h.ProgressBarAndroid,null),p.default.createElement(h.Text,null,A.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(h.Text,null,A.default.t('LOADING_DOTS'))))},l.state={user:{},conserve:[],count:0,translateAnim:new h.Animated.Value(0),visibleMenu:!1,appState:h.AppState.currentState,filter:!1,sortIcons:null,panelVisible:!1,filder_disable:!0,datestartformated:'La date de debut',dateendformated:'La date de fin',datestart:null,dateend:null,isLoaded:!1,isSectionned:!1,isDateTimePickerVisible:!1,isDateEndTimePickerVisible:!1,isDataSubmit:!1,position:0},(0,C.readUser)().then(function(t){l.setState({user:t}),l.props.getNanoCreditDemandsAction(t.id)}),G.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,c.default)(l))),l.props.getNanoCreditDemandsReset(),l.navigation=l.props.navigation,l.currentLocale=T.default.getDeviceLocale().includes("fr")?"fr":"en-gb",l}return(0,f.default)(n,t),(0,l.default)(n,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:A.default.t('WALLET')}),this.forceUpdate()}},{key:"componentDidMount",value:function(){var t=this.navigation.state.routeName;this.setState({position:"demandeValidationGroupe"===t?0:"myNanoCreditGroup"===t?1:2}),this.animateSlidingUp(!1)}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervaller)}},{key:"animateSlidingUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=(0,v.responsiveHeight)(100),o=t?n:0,l=t?0:n;this.setState({isSliding:t}),this.state.translateAnim.setValue(o),h.Animated.timing(this.state.translateAnim,{toValue:l,duration:500,useNativeDriver:!0}).start()}},{key:"printOptions",value:function(){var t=this;return p.default.createElement(y.default,{buttonColor:b.accent},p.default.createElement(y.default.Item,{buttonColor:b.primary,title:A.default.t('CREATE_GROUP'),onPress:function(){t.props.navigation.push(_.createGroupNanoCredit)}},p.default.createElement(E.default,{name:"account-multiple-plus",style:R.actionButtonIcon})),p.default.createElement(y.default.Item,{buttonColor:b.purpleLight,title:A.default.t('JOIN_GROUP'),onPress:function(){t.props.navigation.push(_.adhererGroupNanoCredit)}},p.default.createElement(E.default,{name:"account-multiple",style:R.actionButtonIcon})))}},{key:"refreshData",value:function(){this.props.getNanoCreditDemandsAction(this.state.user.id)}},{key:"render",value:function(){var t=this;return console.warn("POSITION",this.state.position),p.default.createElement(I.Provider,null,p.default.createElement(h.View,{style:{flex:1}},p.default.createElement(h.StatusBar,{backgroundColor:V.primaryDark,barStyle:"light-content",translucent:!1}),p.default.createElement(I.Appbar.Header,{dark:!0,style:{backgroundColor:V.primary}},p.default.createElement(I.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),p.default.createElement(I.Appbar.Content,{title:A.default.t('MANAGE_GROUP'),subtitle:0===this.state.position?A.default.t('VALIDATION_DEMAND'):A.default.t('DELETE_DEMAND')}),p.default.createElement(I.Appbar.Action,{icon:"refresh",onPress:function(){t.refreshData()}})),0===this.state.position?this.props.loadingGetDemandsGroup?this.renderLoader():this.rendeGetDemandsGroupResponse():null,0===this.state.position&&this.printOptions()))}}]),n})(p.default.Component);O.navigatorStyle={navBarBackgroundColor:b.primary,statusBarColor:b.primaryDark,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF',contextualMenuStatusBarColor:V.accent,contextualMenuBackgroundColor:V.accentLight,contextualMenuButtonsColor:'#ffffff'};var B=(0,S.connect)(function(t){return{loadingGetDemandsGroup:t.getDemandsGroupReducer.loading,resultGetDemandsGroup:t.getDemandsGroupReducer.result,errorGetDemandsGroup:t.getDemandsGroupReducer.error}},function(t){return(0,x.bindActionCreators)({getNanoCreditDemandsAction:w.getNanoCreditDemandsAction,getNanoCreditDemandsReset:w.getNanoCreditDemandsReset},t)})(O);e.default=B;var R=h.StyleSheet.create({slidingup:{position:"absolute",height:(0,v.responsiveHeight)(84),bottom:0,backgroundColor:'white',width:(0,v.responsiveWidth)(100),zIndex:1e3},root:{flex:1},container:{flex:1,backgroundColor:'white',justifyContent:'center',alignItems:'center'},emptylist:{flex:1,justifyContent:'center',alignItems:'center'},backgroundd_drawer:{backgroundColor:'#000'},listbackground:{},actionButtonIcon:{fontSize:20,height:22,color:'white'},descriptionIcon:{fontSize:10,height:12,top:10},welcome:{fontSize:20,textAlign:'center',margin:10},instructions:{textAlign:'center',color:'#333333',marginBottom:5},dateText:{marginTop:20,marginLeft:(0,v.responsiveWidth)(13),marginBottom:20,fontSize:17},titlecontent:{fontSize:17,marginLeft:(0,v.responsiveWidth)(10),color:'black'},title:{fontSize:20,marginLeft:20,marginTop:20,color:'black',fontWeight:'bold'},content:{flex:1,flexDirection:'column',paddingTop:10},listStyle:{backgroundColor:'white'},bottomSeparator:{width:(0,v.responsiveWidth)(100),height:5,justifyContent:'center',alignSelf:'center',backgroundColor:'#EEE'},title:{color:'#000',paddingLeft:10,fontSize:(0,v.responsiveFontSize)(2.2)},description:{fontSize:(0,v.responsiveFontSize)(1.8),color:'#4f5b62',paddingLeft:10},timeContent:{justifyContent:'space-between',flex:1,marginTop:10,marginBottom:5,flexDirection:'row'},time:{fontWeight:'bold',marginRight:20,marginBottom:10,color:V.accent},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",borderBottomColor:'#EEE',borderBottomWidth:1},iconContent:{width:40,marginRight:5,alignItems:"center"}})},1816,[4,1,8,9,10,12,11,13,15,18,532,876,535,1288,815,1290,1008,823,717,719,1174,1031,1038,1037,1030,1032,1034,1035,1036,1033,1169,814,943,720,776,848,416,1651,1179,936,1056,1039,1785,774,1015,2,1026,1525,816]); __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 l=n(r(d[2])),o=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=t(r(d[8])),y=r(d[9]),D=n(r(d[10])),E=n(r(d[11])),C=r(d[12]),T=n(r(d[13])),h=(r(d[14]),r(d[15])),R=n(r(d[16])),x=r(d[17]),b=r(d[18]),O=(r(d[19]),r(d[20]),r(d[21])),w=r(d[22]),v=n(r(d[23])),G=r(d[24]),L=(n(r(d[25])),r(d[26]),n(r(d[27]))),S=r(d[28]),A=r(d[29]);r(d[30]);function P(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}var _=r(d[31]),j='white',U=r(d[32]),N=(r(d[33]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,c.default)(n).call(this,t))).displayToast=function(t){v.default.show(t,{duration:v.default.durations.LONG,position:v.default.positions.BOTTOM,backgroundColor:G.Color.primaryColor,shadow:!0,animation:!0,hideOnPress:!0,delay:0,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}})},l.onCancelDemand=function(){l.props.treatDemandGroupReset(),l.props.cancelDemandGroupAction({id_demande:l.props.resultGetUniqueDemand.response.id,id_user:l.state.user.id})},l.renderAlertErrorTreatOrCancelDemand=function(){var t=l.props,n=t.errorTreatDemand,o=t.resultTreatDemand;t.resultCancelDemand,t.errorCancelDemand;null!==n&&void 0!==n.data&&y.Alert.alert(R.default.t("ERROR_TREATMENT_DEMAND"),n.data.error,[{text:R.default.t("OK"),onPress:function(){l.props.treatDemandGroupReset()}}],{cancelable:!1}),null!==o&&(console.log("resultTreatDemand",o),200===o.status&&(l.displayToast(o.response),l.props.navigation.goBack(),l.props.treatDemandGroupReset()))},l.renderLabelState=function(t){return 0===t?R.default.t('NO_TREAT'):1===t?R.default.t('TREAT'):R.default.t('REFUSED')},l.renderLoader=function(){return p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===y.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(y.ProgressBarAndroid,null),p.default.createElement(y.Text,null,R.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(y.Text,null,R.default.t('LOADING_DOTS'))))},l.getDemandTypeIcon=function(t){switch(t){case'creation':return'account-multiple-plus';case'suppression':return'account-multiple-minus';case'adhesion':return'account-multiple-check';case'nano_credit':return'cash';default:return'account-multiple'}},l.renderDetail=function(){var t=l.props.resultGetUniqueDemand,n=_.tz(t.response.date_creation_groupe,'Etc/GMT+0').format(),o=_.tz(t.response.date_creation_demande,'Etc/GMT+0').format();return n=_(n),o=_(o),p.default.createElement(y.View,{style:q.container},p.default.createElement(D.default,{style:q.cardcontainer},p.default.createElement(y.Text,{style:{fontSize:17,fontWeight:'bold',color:'black',marginLeft:(0,C.responsiveWidth)(5)}},t.response.nom),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:l.getDemandTypeIcon(t.response.type),size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},R.default.t('TYPE_DEMAND')+": "+t.response.type)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"account",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},R.default.t('CREATOR')+": "+t.response.createur)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"map-marker",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},R.default.t('COUNTRY')+": "+t.response.country))),p.default.createElement(D.default,{style:q.cardcontainer},p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"account-multiple",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},"SPONSOR 1: "+t.response.sponsor1)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"account-multiple",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},"SPONSOR 2: "+t.response.sponsor2)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"account-multiple",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},"SPONSOR 3: "+t.response.sponsor3))),p.default.createElement(D.default,{style:q.cardcontainer},p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"code-tags",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},t.response.code_groupe)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"cash",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},R.default.t('LIMITE_GROUP')+": "+t.response.limite_credit+" "+t.response.currency_code)),p.default.createElement(y.View,{style:{flexDirection:'row',justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"calendar",size:28,color:U.accent,style:{marginLeft:20}}),p.default.createElement(y.Text,{style:q.simpleuser},R.default.t('CREATION_DATE')+": "+n.format(" Do MMMM YYYY \xe0 HH:mm"))),p.default.createElement(y.View,{style:{flexDirection:'row',alignSelf:'flex-end',marginRight:20,justifyContent:'flex-start'}},p.default.createElement(T.default,{name:"update",size:28,color:U.accent}),p.default.createElement(y.Text,{style:{marginLeft:(0,C.responsiveWidth)(2),fontSize:16,color:U.accent}},o.fromNow()))),l.renderBtn())},l.state={displayAmountModifyDialog:!1,user:null,networks:[],loadingTreat:!1,loadingCancel:!1,triggerTreatmentClick:!1,triggerCancelClick:!1,color:j,montant:null,isBtnModifyAmountEnabled:!1,id:l.props.navigation.getParam("id",null)},l.currentLocale=L.default.getDeviceLocale().includes("fr")?"fr":"en-gb",_.locale(l.currentLocale),l.props.getNanoCreditUniqueDemandsReset(),l.props.getNanoCreditUniqueDemandsAction(l.state.id),l}return(0,f.default)(n,t),(0,s.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,h.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"onTreatDemand",value:function(){this.props.treatDemandGroupReset(),this.props.treatDemandGroupAction({id_demande:this.props.resultGetUniqueDemand.response.id,id_user:this.state.user.id})}},{key:"renderBtn",value:function(){var t=this,n=this.props.resultGetUniqueDemand;return 1===n.response.statut?p.default.createElement(E.default,{style:{borderColor:'transparent',borderRadius:6,marginLeft:5,marginRight:5,backgroundColor:'gray'},isLoading:this.props.loadingTreatDemand,onPress:function(){},disabled:!0,textStyle:q.textbtnstyle},this.renderLabelState(n.response.statut)):2===n.response.statut?p.default.createElement(E.default,{style:{borderColor:'transparent',borderRadius:6,marginLeft:5,marginRight:5,backgroundColor:'gray'},onPress:function(){},disabled:!0,textStyle:q.textbtnstyle},this.renderLabelState(n.response.statut)):p.default.createElement(y.View,{style:{flexDirection:'row',paddingTop:10}},p.default.createElement(y.View,{style:{flex:1,alignItems:'center'}},p.default.createElement(E.default,{style:{borderColor:'transparent',borderRadius:6,marginLeft:5,marginRight:5,backgroundColor:'green'},isLoading:this.props.loadingTreatDemand,onPress:function(){t.setState({triggerTreatmentClick:!0}),t.onTreatDemand()},textStyle:q.textbtnstyle},R.default.t('ACTION_TREAT_DEMAND'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'center'}},p.default.createElement(E.default,{style:{borderColor:'transparent',borderRadius:6,marginLeft:5,marginRight:5,backgroundColor:G.Color.redColor},isLoading:this.props.loadingCancelDemand,onPress:function(){t.setState({triggerCancelClick:!0}),t.onCancelDemand()},textStyle:q.textbtnstyle},R.default.t('REFUSER_DEMANDE'))))}},{key:"render",value:function(){return console.log("DEMAND GROUP PROPS",this.props),p.default.createElement(p.default.Fragment,null,(this.state.triggerTreatmentClick||this.state.triggerCancelClick)&&this.renderAlertErrorTreatOrCancelDemand(),this.props.loadingGetUniqueDemand?this.renderLoader():null!=this.props.resultGetUniqueDemand?this.renderDetail():null)}}]),n})(p.Component));N.navigatorStyle={navBarBackgroundColor:U.accentLight,statusBarColor:U.accent,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},N.navigationOptions=function(t){var n=t.navigation;return{drawerLabel:function(){return null},title:R.default.t('GROUP')+' N\xb0'+n.getParam("id","-")}};var k=(0,O.connect)(function(t){return{loadingGetUniqueDemand:t.getUniqueDemandsGroupReducer.loading,resultGetUniqueDemand:t.getUniqueDemandsGroupReducer.result,errorGetUniqueDemand:t.getUniqueDemandsGroupReducer.error,loadingTreatDemand:t.treatDemandGroupReducer.loading,resultTreatDemand:t.treatDemandGroupReducer.result,errorTreatDemand:t.treatDemandGroupReducer.error}},function(t){return(0,w.bindActionCreators)({getNanoCreditUniqueDemandsAction:S.getNanoCreditUniqueDemandsAction,getNanoCreditUniqueDemandsReset:S.getNanoCreditUniqueDemandsReset,treatDemandGroupAction:A.treatDemandGroupAction,cancelDemandGroupAction:A.cancelDemandGroupAction,treatDemandGroupReset:A.treatDemandGroupReset,treatCreditDemand:x.treatCreditDemand,creditDemandResetReducer:x.creditDemandResetReducer,treatCancelDemand:b.treatCancelDemand,creditCancelResetReducer:b.creditCancelResetReducer},t)})(N);e.default=k;var q=y.StyleSheet.create({container:{flex:1},btnstyle:{},inputAmountText:(function(t){for(var n=1;nparseInt(l.state.comptePrincipal)?{errorMessage:b.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:b.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderGetDurationesponse=function(){var t=l.props,n=t.resultGetNanoCreditDuration,o=t.errorGetNanoCreditDuration;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadDuration:!0,durations:n.response,durationSelect:n.response[0].value,modalVisible:!1}):0===n.response.length&&l.setState({hasLoadDuration:!0,durations:[],durationSelect:'',modalVisible:!1})),null!==o&&(void 0!==o.data?D.Alert.alert(b.default.t('ERROR_LABEL'),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}):D.Alert.alert(b.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}))},l.renderAskNanoCreditResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&D.Alert.alert(b.default.t("ERROR_LABLE"),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.askNanoCreditReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&D.Alert.alert(b.default.t("DEMAND_SEND"),n.response,[{text:b.default.t("OK"),onPress:function(){l.props.askNanoCreditReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitSendWalletToCard=function(){var t=l.state,n=t.montant,o=t.typeCautionName,u=t.durationSelect;l.ckeckIfFieldIsOK(o)?l.typeCautionAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.typeCautionAnim.shake(800):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.props.askNanoCreditAction({id_user:l.state.user.id,type_caution:l.state.typeCautionToSend,duree_mois:l.state.durationSelect,montant:l.state.montant,password:l.state.password}),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return h.default.createElement(v.ProgressDialog,{visible:l.props.loading||l.props.loadingGetNanoCredit,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,codeSponsor:null,user:null,montant:null,password:null,durations:[],durationSelect:null,triggerSubmitClick:!1,hasLoadDuration:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,typeCaution:(0,w.typeCaution)(),typeCautionName:(0,w.typeCaution)()[0].name,typeCautionToSend:'groupe',wallet:_.store.getState().walletDetailReducer.result.response},l.props.getNanoCreditDemandDurationReset(),(0,O.readUser)().then(function(t){console.log("USER",t),t&&void 0!==t&&l.props.getNanoCreditDemandDurationAction({id_user:t.id,type:"nano_credit"})}),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,O.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return h.default.createElement(h.default.Fragment,null,(this.props.loading||this.props.loadingGetNanoCredit||this.state.modalVisible)&&this.renderLoader(),this.state.isDataSubmit&&this.renderAskNanoCreditResponse(),!this.state.hasLoadDuration&&this.renderGetDurationesponse(),h.default.createElement(D.ScrollView,{style:F.container},h.default.createElement(D.Text,{style:F.subbigtitle},b.default.t('DEMAND_NANO_CREDIT')),h.default.createElement(N.View,{ref:function(n){t.typeCautionAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(L.Dropdown,{label:b.default.t('DEMAND_DURATION_IN_MONTH'),data:this.state.durations,useNativeDriver:!0,value:null!==this.state.durationSelect?this.state.durationSelect:'',onChangeText:function(n,o,l){t.setState({durationSelect:n})},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.value}})),h.default.createElement(N.View,{ref:function(n){t.typeCautionAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(L.Dropdown,{label:b.default.t('CAUTION_TYPE'),data:this.state.typeCaution,useNativeDriver:!0,value:this.state.typeCautionName,onChangeText:function(n,o,l){n===b.default.t('INDIVIDUAL')?t.setState({typeCautionToSend:'individuel',typeCautionName:b.default.t('INDIVIDUAL')}):t.setState({typeCautionToSend:'groupe',typeCautionName:b.default.t('GROUP')})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),h.default.createElement(N.View,{ref:function(n){t.montantAnim=n}},h.default.createElement(y.Fumi,{iconClass:R.default,iconName:'money',label:b.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:F.input}),h.default.createElement(D.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},h.default.createElement(D.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),h.default.createElement(D.Text,{style:[k.Typography.body1,k.FontWeight.bold]},this.state.wallet.currency_code))),h.default.createElement(N.View,{ref:function(n){t.passwordAnim=n}},h.default.createElement(y.Fumi,{iconClass:R.default,iconName:'lock',label:b.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:F.input})),h.default.createElement(f.default,{style:F.btnvalide,textStyle:F.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},b.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component));x.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},x.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('DEMAND_NANO_CREDIT'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('DEMAND_NANO_CREDIT')}};var V=(0,A.connect)(function(t){return{loading:t.askNanoCreditReducer.loading,result:t.askNanoCreditReducer.result,error:t.askNanoCreditReducer.error,loadingGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.loading,resultGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.result,errorGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.error}},function(t){return(0,E.bindActionCreators)({askNanoCreditAction:I.askNanoCreditAction,askNanoCreditReset:I.askNanoCreditReset,getNanoCreditDemandDurationAction:I.getNanoCreditDemandDurationAction,getNanoCreditDemandDurationReset:I.getNanoCreditDemandDurationReset},t)})(x);e.default=V;var F=D.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1820,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,535,1513,704,539,1039,1056,1026,1015,1099,774,719,1644,1815,973,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])),u=n(r(d[4])),s=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),C=n(r(d[9])),h=t(r(d[10])),D=r(d[11]),N=t(r(d[12])),b=n(r(d[13])),S=r(d[14]),v=r(d[15]),y=r(d[16]),R=n(r(d[17])),A=r(d[18]),E=r(d[19]),T=r(d[20]),k=r(d[21]),_=r(d[22]),O=(r(d[23]),r(d[24])),w=r(d[25]),I=r(d[26]),L=r(d[27]),x=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t))).isMontantValid=function(){var t=l.state.montant;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:b.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,w.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:b.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:b.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderGetDurationesponse=function(){var t=l.props,n=t.resultGetNanoCreditDuration,o=t.errorGetNanoCreditDuration;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadDuration:!0,durations:n.response,durationSelect:n.response[0].value,modalVisible:!1}):0===n.response.length&&l.setState({hasLoadDuration:!0,durations:[],durationSelect:'',modalVisible:!1})),null!==o&&(void 0!==o.data?D.Alert.alert(b.default.t('ERROR_LABEL'),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}):D.Alert.alert(b.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}))},l.renderAskNanoCreditResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&D.Alert.alert(b.default.t("ERROR_LABLE"),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.askNanoCreditReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&D.Alert.alert(b.default.t("DEMAND_SEND"),n.response,[{text:b.default.t("OK"),onPress:function(){l.props.askNanoCreditReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitSendWalletToCard=function(){var t=l.state,n=t.montant,o=t.typeCautionName,u=t.durationSelect;l.ckeckIfFieldIsOK(o)?l.typeCautionAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.typeCautionAnim.shake(800):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.props.askNanoCreditAction({id_user:l.state.user.id,type_caution:l.state.typeCautionToSend,duree_mois:l.state.durationSelect,montant:l.state.montant,password:l.state.password}),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return h.default.createElement(v.ProgressDialog,{visible:l.props.loading||l.props.loadingGetNanoCredit,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,codeSponsor:null,user:null,montant:null,password:null,durations:[],durationSelect:null,triggerSubmitClick:!1,hasLoadDuration:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,typeCaution:(0,w.typeCaution)(),typeCautionName:b.default.t((0,w.typeCaution)()[0].name),typeCautionToSend:'groupe',wallet:_.store.getState().walletDetailReducer.result.response},l.props.getNanoCreditDemandDurationReset(),(0,O.readUser)().then(function(t){console.log("USER",t),t&&void 0!==t&&l.props.getNanoCreditDemandDurationAction({id_user:t.id,type:"nano_credit"})}),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,O.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return console.log(this.state),h.default.createElement(h.default.Fragment,null,(this.props.loading||this.props.loadingGetNanoCredit||this.state.modalVisible)&&this.renderLoader(),this.state.isDataSubmit&&this.renderAskNanoCreditResponse(),!this.state.hasLoadDuration&&this.renderGetDurationesponse(),h.default.createElement(D.ScrollView,{style:F.container},h.default.createElement(D.Text,{style:F.subbigtitle},b.default.t('DEMAND_NANO_CREDIT')),h.default.createElement(N.View,{ref:function(n){t.typeCautionAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(L.Dropdown,{label:b.default.t('DEMAND_DURATION_IN_MONTH'),data:this.state.durations,useNativeDriver:!0,value:null!==this.state.durationSelect?this.state.durationSelect:'',onChangeText:function(n,o,l){t.setState({durationSelect:n})},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.value}})),h.default.createElement(N.View,{ref:function(n){t.typeCautionAnim=n},style:{width:(0,S.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},h.default.createElement(L.Dropdown,{label:b.default.t('CAUTION_TYPE'),data:this.state.typeCaution,useNativeDriver:!0,value:this.state.typeCautionName,onChangeText:function(n,o,l){n===b.default.t('INDIVIDUAL')?t.setState({typeCautionToSend:'individuel',typeCautionName:b.default.t('INDIVIDUAL')}):t.setState({typeCautionToSend:'groupe',typeCautionName:b.default.t('GROUP')})},valueExtractor:function(t){return b.default.t(t.name)},labelExtractor:function(t){return b.default.t(t.name)}})),h.default.createElement(N.View,{ref:function(n){t.montantAnim=n}},h.default.createElement(y.Fumi,{iconClass:R.default,iconName:'money',label:b.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:F.input}),h.default.createElement(D.View,{style:{position:'absolute',left:(0,S.responsiveWidth)(82),top:35,flexDirection:'row'}},h.default.createElement(D.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),h.default.createElement(D.Text,{style:[k.Typography.body1,k.FontWeight.bold]},this.state.wallet.currency_code))),h.default.createElement(N.View,{ref:function(n){t.passwordAnim=n}},h.default.createElement(y.Fumi,{iconClass:R.default,iconName:'lock',label:b.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:F.input})),h.default.createElement(f.default,{style:F.btnvalide,textStyle:F.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},b.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component));x.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},x.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('DEMAND_NANO_CREDIT'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('DEMAND_NANO_CREDIT')}};var V=(0,A.connect)(function(t){return{loading:t.askNanoCreditReducer.loading,result:t.askNanoCreditReducer.result,error:t.askNanoCreditReducer.error,loadingGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.loading,resultGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.result,errorGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.error}},function(t){return(0,E.bindActionCreators)({askNanoCreditAction:I.askNanoCreditAction,askNanoCreditReset:I.askNanoCreditReset,getNanoCreditDemandDurationAction:I.getNanoCreditDemandDurationAction,getNanoCreditDemandDurationReset:I.getNanoCreditDemandDurationReset},t)})(x);e.default=V;var F=D.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,S.responsiveHeight)(2),marginLeft:(0,S.responsiveWidth)(5),marginRight:(0,S.responsiveWidth)(5),borderRadius:5}})},1820,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,535,1513,704,539,1039,1056,1026,1015,1099,774,719,1644,1815,973,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])),u=n(r(d[4])),s=n(r(d[5])),f=n(r(d[6])),c=n(r(d[7])),p=n(r(d[8])),C=n(r(d[9])),h=t(r(d[10])),D=r(d[11]),b=t(r(d[12])),v=n(r(d[13])),R=r(d[14]),k=r(d[15]),F=r(d[16]),S=n(r(d[17])),E=r(d[18]),y=r(d[19]),N=r(d[20]),A=(r(d[21]),r(d[22]),r(d[23])),w=r(d[24]),I=(r(d[25]),r(d[26]),r(d[27])),O=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t))).renderRefundNanoCreditResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&D.Alert.alert(v.default.t("ERROR_LABLE"),o.data.error,[{text:v.default.t("OK"),onPress:function(){l.props.refundCreditDemandUserReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&D.Alert.alert(v.default.t("REFUND_DONE"),n.response,[{text:v.default.t("OK"),onPress:function(){l.props.refundCreditDemandUserReset(),A.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitRefundNanoCredit=function(){var t=l.state,n=t.idDemand,o=t.password;l.ckeckIfFieldIsOK(n)?l.idDemandAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.passwordAnim.shake(800):l.props.refundCreditDemandUserAction({id_user:l.state.user.id,id_demande:l.state.idDemand,password:l.state.password},0),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return h.default.createElement(k.ProgressDialog,{visible:l.props.loading||l.props.loadingGetCommission,title:v.default.t('LOADING'),message:v.default.t('LOADING_INFO')})},l.state={password:null,idDemand:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,isGroupToModify:!1},l}return(0,f.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,w.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:v.default.t('REFUND_NANO_CREDIT')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"render",value:function(){var t=this;return h.default.createElement(h.default.Fragment,null,(this.props.loading||this.props.loadingGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderRefundNanoCreditResponse(),h.default.createElement(D.ScrollView,{style:_.container},h.default.createElement(D.Text,{style:_.subbigtitle},v.default.t('DEMAND_INFO')),h.default.createElement(b.View,{ref:function(n){t.idDemandAnim=n}},h.default.createElement(F.Fumi,{iconClass:S.default,iconName:'id-card',label:v.default.t('ID_DEMAND'),iconColor:'#f95a25',iconSize:20,value:this.state.idDemand,onChangeText:function(n){t.setState({idDemand:n})},style:_.input})),h.default.createElement(b.View,{ref:function(n){t.passwordAnim=n}},h.default.createElement(F.Fumi,{iconClass:S.default,iconName:'lock',label:v.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:_.input})),h.default.createElement(c.default,{style:_.btnvalide,textStyle:_.textbtnvalide,onPress:function(){t.onSubmitRefundNanoCredit()}},this.state.isGroupToModify?v.default.t('MODIFY'):v.default.t('SUBMIT_LABEL'))))}}]),n})(h.Component));O.navigatorStyle={navBarBackgroundColor:N.Color.primaryColor,statusBarColor:N.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},O.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:v.default.t('REFUND_NANO_CREDIT'),headerTintColor:'white',headerStyle:{backgroundColor:N.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:v.default.t('REFUND_NANO_CREDIT')}};var T=(0,E.connect)(function(t){return{loading:t.refundCreditDemandReducer.loading,result:t.refundCreditDemandReducer.result,error:t.refundCreditDemandReducer.error}},function(t){return(0,y.bindActionCreators)({refundCreditDemandUserAction:I.refundCreditDemandUserAction,refundCreditDemandUserReset:I.refundCreditDemandUserReset},t)})(O);e.default=T;var _=D.StyleSheet.create({container:{flex:1,backgroundColor:N.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:N.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:N.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,R.responsiveHeight)(2),marginLeft:(0,R.responsiveWidth)(5),marginRight:(0,R.responsiveWidth)(5),borderRadius:5}})},1821,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,535,1513,704,539,1039,1056,1026,1015,1099,774,719,1815,1644,1785,814,815]); __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])),u=l(r(d[5])),f=l(r(d[6])),c=l(r(d[7])),p=l(r(d[8])),C=l(r(d[9])),y=t(r(d[10])),D=r(d[11]),h=t(r(d[12])),E=l(r(d[13])),T=l(r(d[14])),w=r(d[15]),A=r(d[16]),N=r(d[17]),b=r(d[18]),x=r(d[19]),I=l(r(d[20])),R=r(d[21]),v=r(d[22]),_=r(d[23]),S=r(d[24]),V=r(d[25]),k=r(d[26]),L=r(d[27]),O=r(d[28]),F=l(r(d[29])),M=r(d[30]),W=(r(d[31]),r(d[32]),(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,s.default)(this,(0,u.default)(l).call(this,t))).modalConfirmTransaction=function(t){var l=t.response.id_demande,n=t.response.montant,s=t.response.duree_mois,u=t.response.etat,f=t.response.taxe,c=t.response.interet,p=(t.response.date_demande,t.response.date_remboursement_prevu,t.response.date_remboursement,t.response.retrait_cash),C=t.response.date_creation;return y.default.createElement(E.default.Container,{useNativeDriver:!0,visible:o.state.isModalConfirmVisible},y.default.createElement(E.default.Title,null,T.default.t('DEMAND_DETAIL')),y.default.createElement(D.View,null,y.default.createElement(D.View,{style:[G.blockView,{borderBottomColor:_.Color.borderColor}]},y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{style:[G.body2]},T.default.t('ID_DEMAND'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},l))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{style:[G.body2]},T.default.t('AMOUNT'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},(0,F.default)(n,' ')+" "+o.state.wallet.currency_code))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('TAXES'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},(0,F.default)(f,' ')+" "+o.state.wallet.currency_code))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('INTERET'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},(0,F.default)(c,' ')+" "+o.state.wallet.currency_code))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('WITHDRAWAL_TYPE'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},p?T.default.t('WITHDRAWAL_IN_CASH'):T.default.t('TRANSFER_IN_ACCOUNT')))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('ETAT'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},T.default.t(u)))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('DEMAND_DURATION_IN_MONTH'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},s))),y.default.createElement(D.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(D.View,{style:{flex:1}},y.default.createElement(D.Text,{tyle:[S.Typography.body2]},T.default.t('CREATION_DATE'))),y.default.createElement(D.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(D.Text,{style:[S.Typography.caption1,_.Color.grayColor]},M(C).format('DD-MM-YYYY')))))),y.default.createElement(E.default.Button,{bold:!0,label:T.default.t('CANCEL_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1})}}),y.default.createElement(E.default.Button,{bold:!0,label:T.default.t('SUBMIT_LABEL'),onPress:function(){o.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),o.props.cautionCreditDemandAgentAction({id_demande:o.state.idDemand,id_wallet_agent:o.state.wallet.id,retrait_cash:o.state.withdrawalInCash,password:o.state.password}),o.props.getNanoCreditDemandDetailReset()}}))},o.renderRefundNanoCreditResponse=function(){var t=o.props,l=t.result,n=t.error;null!==n&&void 0!==n.data&&D.Alert.alert(T.default.t("ERROR_LABLE"),n.data.error,[{text:T.default.t("OK"),onPress:function(){o.props.cautionCreditDemandAgentReset(),V.IlinkEmitter.emit("refreshWallet")}}],{cancelable:!1}),null!==l&&null!==l.response&&D.Alert.alert(T.default.t("REFUND_DONE"),l.response,[{text:T.default.t("OK"),onPress:function(){o.props.cautionCreditDemandAgentReset(),V.IlinkEmitter.emit("refreshWallet"),o.props.navigation.pop()}}],{cancelable:!1})},o.onSubmitCautionnerNanoCredit=function(){var t=o.state,l=t.idDemand,n=t.password;o.ckeckIfFieldIsOK(l)?o.idDemandAnim.shake(800):o.ckeckIfFieldIsOK(n)?o.passwordAnim.shake(800):o.props.getNanoCreditDemandDetailAction(o.state.idDemand),o.setState({triggerSubmitClick:!0})},o.renderGetNanoCreditDemandDetailResponse=function(){var t=o.props,l=(t.resultGetNanoCreditDemandDetail,t.errorGetNanoCreditDemandDetail);null!==l&&(void 0!==l.data?D.Alert.alert(T.default.t('ERROR_LABEL'),l.data.error,[{text:T.default.t("OK"),onPress:function(){o.props.getNanoCreditDemandDetailReset()}}],{cancelable:!1}):D.Alert.alert(T.default.t('ERROR_LABEL'),JSON.stringify(l),[{text:T.default.t("OK"),onPress:function(){o.props.getNanoCreditDemandDetailAction()}}],{cancelable:!1}))},o.renderLoader=function(){return y.default.createElement(b.ProgressDialog,{visible:o.props.loading||o.props.loadingGetNanoCreditDemandDetail,title:T.default.t('LOADING'),message:T.default.t('LOADING_INFO')})},o.state={password:null,idDemand:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,withdrawalInCashType:(0,O.withdrawalMode)(),withdrawalInCashTypeName:(0,O.withdrawalMode)()[0].name,isModalConfirmVisible:!1,isGroupToModify:!1,isModalConfirmVisible:!1,withdrawalInCash:!0,wallet:w.store.getState().walletDetailReducer.result.response},o.props.getNanoCreditDemandDetailReset(),o.props.cautionCreditDemandAgentReset(),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,L.readUser)().then(function(l){l&&void 0!==l&&t.setState({user:l})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultGetNanoCreditDemandDetail&&void 0!==t.resultGetNanoCreditDemandDetail.response&&(t.loadingGetNanoCreditDemandDetail||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:T.default.t('REFUND_NANO_CREDIT')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,C.default)(t)||(0,p.default)(t.length,0)}},{key:"render",value:function(){var t=this,l=this.props.resultGetNanoCreditDemandDetail;return y.default.createElement(y.default.Fragment,null,(this.props.loading||this.props.loadingGetNanoCreditDemandDetail)&&this.renderLoader(),this.state.isDataSubmit&&this.renderRefundNanoCreditResponse(),null!==l&&void 0!==l.response&&this.modalConfirmTransaction(l),y.default.createElement(D.ScrollView,{style:G.container},y.default.createElement(D.Text,{style:G.subbigtitle},T.default.t('DEMAND_INFO')),y.default.createElement(h.View,{ref:function(l){t.idDemandAnim=l}},y.default.createElement(x.Fumi,{iconClass:I.default,iconName:'id-card',label:T.default.t('ID_DEMAND'),iconColor:'#f95a25',iconSize:20,value:this.state.idDemand,onChangeText:function(l){t.setState({idDemand:l})},style:G.input})),y.default.createElement(h.View,{ref:function(l){t.typeRetraitAnim=l},style:{width:(0,N.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},y.default.createElement(A.Dropdown,{label:T.default.t('WITHDRAWAL_TYPE'),data:this.state.withdrawalInCashType,useNativeDriver:!0,value:this.state.withdrawalInCashTypeName,onChangeText:function(l,n,o){l===T.default.t('WITHDRAWAL_IN_CASH')?t.setState({withdrawalInCash:!0,withdrawalInCashTypeName:T.default.t('WITHDRAWAL_IN_CASH')}):t.setState({withdrawalInCash:!1,withdrawalInCashTypeName:T.default.t('TRANSFER_IN_ACCOUNT')})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),y.default.createElement(h.View,{ref:function(l){t.passwordAnim=l}},y.default.createElement(x.Fumi,{iconClass:I.default,iconName:'lock',label:T.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:G.input})),y.default.createElement(c.default,{style:G.btnvalide,textStyle:G.textbtnvalide,onPress:function(){t.onSubmitCautionnerNanoCredit()}},this.state.isGroupToModify?T.default.t('MODIFY'):T.default.t('SUBMIT_LABEL'))))}}]),l})(y.Component));W.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},W.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:T.default.t('CAUTION_CREDIT'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:T.default.t('CAUTION_CREDIT')}};var B=(0,R.connect)(function(t){return{loading:t.cautionCreditDemandAgentReducer.loading,result:t.cautionCreditDemandAgentReducer.result,error:t.cautionCreditDemandAgentReducer.error,loadingGetNanoCreditDemandDetail:t.getNanoCreditDemandDetailReducer.loading,resultGetNanoCreditDemandDetail:t.getNanoCreditDemandDetailReducer.result,errorGetNanoCreditDemandDetail:t.getNanoCreditDemandDetailReducer.error}},function(t){return(0,v.bindActionCreators)({cautionCreditDemandAgentAction:k.cautionCreditDemandAgentAction,cautionCreditDemandAgentReset:k.cautionCreditDemandAgentReset,getNanoCreditDemandDetailAction:k.getNanoCreditDemandDetailAction,getNanoCreditDemandDetailReset:k.getNanoCreditDemandDetailReset},t)})(W);e.default=B;var G=D.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,N.responsiveHeight)(2),marginLeft:(0,N.responsiveWidth)(5),marginRight:(0,N.responsiveWidth)(5),borderRadius:5}})},1822,[4,1,8,9,10,12,13,717,689,1611,15,18,751,1625,720,1099,973,535,1513,704,539,1039,1056,1026,1015,774,1823,719,1644,1646,1031,814,815]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getNanoCreditDemandDetailReset=e.getNanoCreditDemandDetailAction=e.cautionCreditDemandAgentReset=e.cautionCreditDemandAgentAction=void 0;var n=r(d[1]),o=t(r(d[2])),c=t(r(d[3])),u=r(d[4]),s=r(d[5]);e.cautionCreditDemandAgentAction=function(t){var l=u.store.getState().authKeyReducer,D=null!==l?l.authKey.token_type+" "+l.authKey.access_token:'';return function(u){u((0,s.fetchCautionCreditDemandAgentPending)()),(0,o.default)({url:n.cautionCreditDemandtUrl,method:'POST',data:t,headers:{Authorization:D,'X-Localization':c.default.currentLocale()}}).then(function(t){console.log(t),u((0,s.fetchCautionCreditDemandAgentSuccess)(t))}).catch(function(t){t.response?u((0,s.fetchCautionCreditDemandAgentError)(t.response)):t.request?u((0,s.fetchCautionCreditDemandAgentError)(t.request)):u((0,s.fetchCautionCreditDemandAgentError)(t.message))})}};e.cautionCreditDemandAgentReset=function(){return function(t){t((0,s.fetchCautionCreditDemandAgentReset)())}};e.getNanoCreditDemandDetailAction=function(t){var l=u.store.getState().authKeyReducer,D=null!==l?l.authKey.token_type+" "+l.authKey.access_token:'';return function(u){u((0,s.fetchGetNanoCreditDemandDetailPending)()),(0,o.default)({url:n.getNanoCreditDemandUrl+"/"+t,method:'GET',headers:{Authorization:D,'X-Localization':c.default.currentLocale()}}).then(function(t){console.log(t),u((0,s.fetchGetNanoCreditDemandDetailSuccess)(t))}).catch(function(t){t.response?u(fetchGetNanoCreditDemandDetailError(t.response)):t.request?u(fetchGetNanoCreditDemandDetailError(t.request)):u(fetchGetNanoCreditDemandDetailError(t.message))})}};e.getNanoCreditDemandDetailReset=function(){return function(t){t((0,s.fetchGetNanoCreditDemandDetailReset)())}}},1823,[1,744,1073,720,1099,1168]); -__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])),p=n(r(d[6])),c=n(r(d[7])),f=n(r(d[8])),h=n(r(d[9])),E=t(r(d[10])),C=r(d[11]),D=t(r(d[12])),b=n(r(d[13])),S=r(d[14]),A=r(d[15]),y=r(d[16]),v=r(d[17]),N=n(r(d[18])),R=r(d[19]),O=r(d[20]),T=r(d[21]),L=r(d[22]),w=r(d[23]),_=r(d[24]),k=r(d[25]),I=r(d[26]),V=r(d[27]),x=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).isMontantValid=function(){var t=l.state.montant;return parseInt((0,f.default)(t,0))||t<0?{errorMessage:b.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,_.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:b.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:b.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderGetDurationesponse=function(){var t=l.props,n=t.resultGetNanoCreditDuration,o=t.errorGetNanoCreditDuration;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadDuration:!0,durations:n.response,durationSelect:n.response[0].value,modalVisible:!1}):0===n.response.length&&l.setState({hasLoadDuration:!0,durations:[],durationSelect:'',modalVisible:!1})),null!==o&&(void 0!==o.data?C.Alert.alert(b.default.t('ERROR_LABEL'),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}):C.Alert.alert(b.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}))},l.renderEpargnerArgentResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&C.Alert.alert(b.default.t("ERROR_LABLE"),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.epargnerArgentUserReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&C.Alert.alert(b.default.t("EPARGNE_DEPOSE"),n.response,[{text:b.default.t("OK"),onPress:function(){l.props.epargnerArgentUserReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitEpargnerArgent=function(){var t=l.state,n=t.montant,o=t.typeEpargneName,s=t.durationSelect;l.ckeckIfFieldIsOK(o)?l.typeEpargneAnim.shake(800):l.ckeckIfFieldIsOK(s)&&l.state.displayDuration?l.durationAnim.shake(800):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.props.epargnerArgentUserAction({id_user:l.state.user.id,type:l.state.typeEpargneToSend,duree_mois:l.state.durationSelect,montant:l.state.montant,password:l.state.password}),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return E.default.createElement(y.ProgressDialog,{visible:l.props.loading||l.props.loadingGetNanoCredit,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,codeSponsor:null,displayDuration:!1,user:null,montant:null,password:null,durations:[],durationSelect:null,triggerSubmitClick:!1,hasLoadDuration:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,typeEpargne:(0,_.typeEpargne)(),typeEpargneName:(0,_.typeEpargne)()[0].name,typeEpargneToSend:'simple',wallet:w.store.getState().walletDetailReducer.result.response},l.props.getNanoCreditDemandDurationReset(),(0,k.readUser)().then(function(t){console.log("USER",t),t&&void 0!==t&&l.props.getNanoCreditDemandDurationAction({id_user:t.id,type:"epargne"})}),l}return(0,p.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('SAVE_MONEY')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return E.default.createElement(E.default.Fragment,null,(this.props.loading||this.props.loadingGetNanoCredit||this.state.modalVisible)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEpargnerArgentResponse(),!this.state.hasLoadDuration&&this.renderGetDurationesponse(),E.default.createElement(C.ScrollView,{style:M.container},E.default.createElement(C.Text,{style:M.subbigtitle},b.default.t('FILL_INFORMATION')),E.default.createElement(D.View,{ref:function(n){t.typeEpargneAnim=n},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(S.Dropdown,{label:b.default.t('SAVE_MONEY_TYPE'),data:this.state.typeEpargne,useNativeDriver:!0,value:this.state.typeEpargneName,onChangeText:function(n,o,l){n===b.default.t('SIMPLE')?t.setState({typeEpargneToSend:'simple',typeEpargneName:b.default.t('SIMPLE'),displayDuration:!1}):t.setState({typeEpargneToSend:'blocked',typeEpargneName:b.default.t('BLOCKED'),displayDuration:!0})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),this.state.displayDuration&&E.default.createElement(D.View,{ref:function(n){t.durationAnim=n},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(S.Dropdown,{label:b.default.t('DEMAND_DURATION_IN_MONTH'),data:this.state.durations,useNativeDriver:!0,value:null!==this.state.durationSelect?this.state.durationSelect:'',onChangeText:function(n,o,l){t.setState({durationSelect:n})},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.value}})),E.default.createElement(D.View,{ref:function(n){t.montantAnim=n}},E.default.createElement(v.Fumi,{iconClass:N.default,iconName:'money',label:b.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:M.input}),E.default.createElement(C.View,{style:{position:'absolute',left:(0,A.responsiveWidth)(82),top:35,flexDirection:'row'}},E.default.createElement(C.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),E.default.createElement(C.Text,{style:[L.Typography.body1,L.FontWeight.bold]},this.state.wallet.currency_code))),E.default.createElement(D.View,{ref:function(n){t.passwordAnim=n}},E.default.createElement(v.Fumi,{iconClass:N.default,iconName:'lock',label:b.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:M.input})),E.default.createElement(c.default,{style:M.btnvalide,textStyle:M.textbtnvalide,onPress:function(){t.onSubmitEpargnerArgent()}},b.default.t('SUBMIT_LABEL'))))}}]),n})(E.Component));x.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},x.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('SAVE_MONEY'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('SAVE_MONEY')}};var F=(0,R.connect)(function(t){return{loading:t.epargnerArgentUserReducer.loading,result:t.epargnerArgentUserReducer.result,error:t.epargnerArgentUserReducer.error,loadingGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.loading,resultGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.result,errorGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.error}},function(t){return(0,O.bindActionCreators)({epargnerArgentUserAction:V.epargnerArgentUserAction,epargnerArgentUserReset:V.epargnerArgentUserReset,getNanoCreditDemandDurationAction:I.getNanoCreditDemandDurationAction,getNanoCreditDemandDurationReset:I.getNanoCreditDemandDurationReset},t)})(x);e.default=F;var M=C.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,A.responsiveHeight)(2),marginLeft:(0,A.responsiveWidth)(5),marginRight:(0,A.responsiveWidth)(5),borderRadius:5}})},1824,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,973,535,1513,704,539,1039,1056,1026,1015,1099,1644,719,1815,1785,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])),p=n(r(d[6])),c=n(r(d[7])),f=n(r(d[8])),h=n(r(d[9])),E=t(r(d[10])),C=r(d[11]),D=t(r(d[12])),b=n(r(d[13])),S=r(d[14]),A=r(d[15]),y=r(d[16]),v=r(d[17]),N=n(r(d[18])),R=r(d[19]),O=r(d[20]),T=r(d[21]),L=r(d[22]),w=r(d[23]),_=r(d[24]),k=r(d[25]),I=r(d[26]),V=r(d[27]),x=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).isMontantValid=function(){var t=l.state.montant;return parseInt((0,f.default)(t,0))||t<0?{errorMessage:b.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,_.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:b.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:b.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderGetDurationesponse=function(){var t=l.props,n=t.resultGetNanoCreditDuration,o=t.errorGetNanoCreditDuration;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadDuration:!0,durations:n.response,durationSelect:n.response[0].value,modalVisible:!1}):0===n.response.length&&l.setState({hasLoadDuration:!0,durations:[],durationSelect:'',modalVisible:!1})),null!==o&&(void 0!==o.data?C.Alert.alert(b.default.t('ERROR_LABEL'),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}):C.Alert.alert(b.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:b.default.t("OK"),onPress:function(){l.props.getNanoCreditDemandDurationReset()}}],{cancelable:!1}))},l.renderEpargnerArgentResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&C.Alert.alert(b.default.t("ERROR_LABLE"),o.data.error,[{text:b.default.t("OK"),onPress:function(){l.props.epargnerArgentUserReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&C.Alert.alert(b.default.t("EPARGNE_DEPOSE"),n.response,[{text:b.default.t("OK"),onPress:function(){l.props.epargnerArgentUserReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitEpargnerArgent=function(){var t=l.state,n=t.montant,o=t.typeEpargneName,s=t.durationSelect;l.ckeckIfFieldIsOK(o)?l.typeEpargneAnim.shake(800):l.ckeckIfFieldIsOK(s)&&l.state.displayDuration?l.durationAnim.shake(800):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.props.epargnerArgentUserAction({id_user:l.state.user.id,type:l.state.typeEpargneToSend,duree_mois:l.state.durationSelect,montant:l.state.montant,password:l.state.password}),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return E.default.createElement(y.ProgressDialog,{visible:l.props.loading||l.props.loadingGetNanoCredit,title:b.default.t('LOADING'),message:b.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,codeSponsor:null,displayDuration:!1,user:null,montant:null,password:null,durations:[],durationSelect:null,triggerSubmitClick:!1,hasLoadDuration:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,typeEpargne:(0,_.typeEpargne)(),typeEpargneName:b.default.t((0,_.typeEpargne)()[0].name),typeEpargneToSend:'simple',wallet:w.store.getState().walletDetailReducer.result.response},l.props.getNanoCreditDemandDurationReset(),(0,k.readUser)().then(function(t){console.log("USER",t),t&&void 0!==t&&l.props.getNanoCreditDemandDurationAction({id_user:t.id,type:"epargne"})}),l}return(0,p.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('SAVE_MONEY')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return E.default.createElement(E.default.Fragment,null,(this.props.loading||this.props.loadingGetNanoCredit||this.state.modalVisible)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEpargnerArgentResponse(),!this.state.hasLoadDuration&&this.renderGetDurationesponse(),E.default.createElement(C.ScrollView,{style:M.container},E.default.createElement(C.Text,{style:M.subbigtitle},b.default.t('FILL_INFORMATION')),E.default.createElement(D.View,{ref:function(n){t.typeEpargneAnim=n},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(S.Dropdown,{label:b.default.t('SAVE_MONEY_TYPE'),data:this.state.typeEpargne,useNativeDriver:!0,value:this.state.typeEpargneName,onChangeText:function(n,o,l){n===b.default.t('SIMPLE')?t.setState({typeEpargneToSend:'simple',typeEpargneName:b.default.t('SIMPLE'),displayDuration:!1}):t.setState({typeEpargneToSend:'blocked',typeEpargneName:b.default.t('BLOCKED'),displayDuration:!0})},valueExtractor:function(t){return b.default.t(t.name)},labelExtractor:function(t){return b.default.t(t.name)}})),this.state.displayDuration&&E.default.createElement(D.View,{ref:function(n){t.durationAnim=n},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},E.default.createElement(S.Dropdown,{label:b.default.t('DEMAND_DURATION_IN_MONTH'),data:this.state.durations,useNativeDriver:!0,value:null!==this.state.durationSelect?this.state.durationSelect:'',onChangeText:function(n,o,l){t.setState({durationSelect:n})},valueExtractor:function(t){return b.default.t(t.value)},labelExtractor:function(t){return b.default.t(t.value)}})),E.default.createElement(D.View,{ref:function(n){t.montantAnim=n}},E.default.createElement(v.Fumi,{iconClass:N.default,iconName:'money',label:b.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:M.input}),E.default.createElement(C.View,{style:{position:'absolute',left:(0,A.responsiveWidth)(82),top:35,flexDirection:'row'}},E.default.createElement(C.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),E.default.createElement(C.Text,{style:[L.Typography.body1,L.FontWeight.bold]},this.state.wallet.currency_code))),E.default.createElement(D.View,{ref:function(n){t.passwordAnim=n}},E.default.createElement(v.Fumi,{iconClass:N.default,iconName:'lock',label:b.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:M.input})),E.default.createElement(c.default,{style:M.btnvalide,textStyle:M.textbtnvalide,onPress:function(){t.onSubmitEpargnerArgent()}},b.default.t('SUBMIT_LABEL'))))}}]),n})(E.Component));x.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},x.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:b.default.t('SAVE_MONEY'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:b.default.t('SAVE_MONEY')}};var F=(0,R.connect)(function(t){return{loading:t.epargnerArgentUserReducer.loading,result:t.epargnerArgentUserReducer.result,error:t.epargnerArgentUserReducer.error,loadingGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.loading,resultGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.result,errorGetNanoCreditDuration:t.getNanoCreditDemandDurationReducer.error}},function(t){return(0,O.bindActionCreators)({epargnerArgentUserAction:V.epargnerArgentUserAction,epargnerArgentUserReset:V.epargnerArgentUserReset,getNanoCreditDemandDurationAction:I.getNanoCreditDemandDurationAction,getNanoCreditDemandDurationReset:I.getNanoCreditDemandDurationReset},t)})(x);e.default=F;var M=C.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,A.responsiveHeight)(2),marginLeft:(0,A.responsiveWidth)(5),marginRight:(0,A.responsiveWidth)(5),borderRadius:5}})},1824,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,973,535,1513,704,539,1039,1056,1026,1015,1099,1644,719,1815,1785,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])),p=n(r(d[8])),h=n(r(d[9])),E=t(r(d[10])),C=r(d[11]),b=t(r(d[12])),v=n(r(d[13])),k=r(d[14]),A=r(d[15]),R=r(d[16]),S=n(r(d[17])),y=r(d[18]),F=r(d[19]),w=r(d[20]),D=(r(d[21]),r(d[22]),r(d[23])),I=r(d[24]),O=(r(d[25]),r(d[26]),r(d[27])),_=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderBreakEpargneRespons=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&C.Alert.alert(v.default.t("ERROR_LABLE"),o.data.error,[{text:v.default.t("OK"),onPress:function(){l.props.casserEpargneUserReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&C.Alert.alert(v.default.t("BREAK_EPARGNE_DONE"),n.response,[{text:v.default.t("OK"),onPress:function(){l.props.casserEpargneUserReset(),D.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitCasserEpargne=function(){var t=l.state,n=t.idEpargne,o=t.password;l.ckeckIfFieldIsOK(n)?l.idEpargneAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.passwordAnim.shake(800):l.props.casserEpargneUserAction({id_user:l.state.user.id,id_epargne:l.state.idEpargne,password:l.state.password},0),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return E.default.createElement(A.ProgressDialog,{visible:l.props.loading||l.props.loadingGetCommission,title:v.default.t('LOADING'),message:v.default.t('LOADING_INFO')})},l.state={password:null,idEpargne:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,isGroupToModify:!1},l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,p.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:v.default.t('REFUND_NANO_CREDIT')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,p.default)(t.length,0)}},{key:"render",value:function(){var t=this;return E.default.createElement(E.default.Fragment,null,(this.props.loading||this.props.loadingGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderBreakEpargneRespons(),E.default.createElement(C.ScrollView,{style:B.container},E.default.createElement(C.Text,{style:B.subbigtitle},v.default.t('DEMAND_INFO')),E.default.createElement(b.View,{ref:function(t){idEpargneAnim=t}},E.default.createElement(R.Fumi,{iconClass:S.default,iconName:'id-card',label:v.default.t('ID_EPARGNE'),iconColor:'#f95a25',iconSize:20,value:this.state.idEpargne,onChangeText:function(n){t.setState({idEpargne:n})},style:B.input})),E.default.createElement(b.View,{ref:function(n){t.passwordAnim=n}},E.default.createElement(R.Fumi,{iconClass:S.default,iconName:'lock',label:v.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:B.input})),E.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,onPress:function(){t.onSubmitCasserEpargne()}},this.state.isGroupToModify?v.default.t('MODIFY'):v.default.t('SUBMIT_LABEL'))))}}]),n})(E.Component));_.navigatorStyle={navBarBackgroundColor:w.Color.primaryColor,statusBarColor:w.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},_.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:v.default.t('BREAK_EPARGNE'),headerTintColor:'white',headerStyle:{backgroundColor:w.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:v.default.t('BREAK_EPARGNE')}};var T=(0,y.connect)(function(t){return{loading:t.casserEpargneUserReducer.loading,result:t.casserEpargneUserReducer.result,error:t.casserEpargneUserReducer.error}},function(t){return(0,F.bindActionCreators)({casserEpargneUserAction:O.casserEpargneUserAction,casserEpargneUserReset:O.casserEpargneUserReset},t)})(_);e.default=T;var B=C.StyleSheet.create({container:{flex:1,backgroundColor:w.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:w.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:w.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,k.responsiveHeight)(2),marginLeft:(0,k.responsiveWidth)(5),marginRight:(0,k.responsiveWidth)(5),borderRadius:5}})},1825,[4,1,8,9,10,12,13,717,689,1611,15,18,751,720,535,1513,704,539,1039,1056,1026,1015,1099,774,719,1815,1644,1785,814,815]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fromLeft=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.layout,o=n.position,u=n.scene,s=u.index,p=t.initWidth,c=o.interpolate({inputRange:[s-1,s,s+1],outputRange:[-p,0,0]}),l=o.interpolate({inputRange:[s-1,s-.99,s],outputRange:[0,1,1]});return{opacity:l,transform:[{translateX:c}]}}}},e.fromTop=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.layout,o=n.position,u=n.scene,s=u.index,p=t.initHeight,c=o.interpolate({inputRange:[s-1,s,s+1],outputRange:[-p,0,0]}),l=o.interpolate({inputRange:[s-1,s-.99,s],outputRange:[0,1,1]});return{opacity:l,transform:[{translateY:c}]}}}},e.fromRight=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.layout,o=n.position,u=n.scene,s=u.index,p=t.initWidth,c=o.interpolate({inputRange:[s-1,s,s+1],outputRange:[p,0,0]}),l=o.interpolate({inputRange:[s-1,s-.99,s],outputRange:[0,1,1]});return{opacity:l,transform:[{translateX:c}]}}}},e.fromBottom=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.layout,o=n.position,u=n.scene,s=u.index,p=t.initHeight,c=o.interpolate({inputRange:[s-1,s,s+1],outputRange:[p,0,0]}),l=o.interpolate({inputRange:[s-1,s-.99,s],outputRange:[0,1,1]});return{opacity:l,transform:[{translateY:c}]}}}},e.fadeIn=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.position,o=n.scene,u=o.index,s=t.interpolate({inputRange:[u-1,u],outputRange:[0,1]});return{opacity:s}}}},e.fadeOut=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.position,o=n.scene,u=o.index,s=t.interpolate({inputRange:[u-1,u,u+1],outputRange:[0,1,0]});return{opacity:s}}}},e.zoomIn=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(t){var o=t.position,u=t.scene,s=u.index,p=0;'ios'!==n.Platform.OS&&(p=.005);var c=o.interpolate({inputRange:[s-1,s],outputRange:[p,1]});return{transform:[{scale:c}]}}}},e.zoomOut=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.position,o=n.scene,u=o.index,s=t.interpolate({inputRange:[u-1,u],outputRange:[10,1]});return{transform:[{scale:s}]}}}},e.flipY=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.position,o=n.scene,u=o.index,s=t.interpolate({inputRange:[u-1,u],outputRange:['180deg','0deg']});return{transform:[{rotateY:s}],backfaceVisibility:'hidden'}}}},e.flipX=function(){return{transitionSpec:{duration:arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,easing:n.Easing.out(n.Easing.poly(4)),timing:n.Animated.timing,useNativeDriver:!0},screenInterpolator:function(n){var t=n.position,o=n.scene,u=o.index,s=t.interpolate({inputRange:[u-1,u],outputRange:['180deg','0deg']});return{transform:[{rotateX:s}],backfaceVisibility:'hidden'}}}};var n=r(d[0])},1826,[18]); __d(function(i,n,d,o,a,e,l){a.exports={name:"iLinkWorld",displayName:"iLinkWorld"}},1827,[]); diff --git a/android/app/src/main/res/raw/utils_i18n_en.json b/android/app/src/main/res/raw/utils_i18n_en.json index db920b93..f46965fb 100644 --- a/android/app/src/main/res/raw/utils_i18n_en.json +++ b/android/app/src/main/res/raw/utils_i18n_en.json @@ -111,7 +111,7 @@ "DEPOSIT_WALLET_TO_BANK": "Your Wallet to bank", "ENVOIE_WALLET_TO_BANK": "Send Wallet to bank", "DEPOSIT_CASH_TO_CASH": "Cash to cash", - "ENVOIE_CASH_TO_CASH": "Send money in cash to cash", + "ENVOIE_CASH_TO_CASH": "Send money from cash to cash", "TRANSACTION_DETAIL": "Transaction detail", "DEMAND_DETAIL": "Demand detail", "CODE_IBAN": "IBAN Code", @@ -140,7 +140,7 @@ "OPEN_ACCOUNT": "Open account", "MANAGE_CREDIT": "Manage credit", "MANAGE_SAVINGS": "Manage savings", - "INIT_COUNTRY": "Departure countryt", + "INIT_COUNTRY": "Departure country", "FINAL_COUNTRY": "Arrival country", "INIT_AMOUNT": "Init amount", "FINAL_AMOUNT": "Final amount", @@ -161,11 +161,15 @@ "DEMAND_NANO_CREDIT": "Nano credit demand", "REFUND_NANO_CREDIT": "Refund nano credit", "REFUND_DONE": "Refund done", - "SAVE_MONEY": "Epargner de l'argent", + "SAVE_MONEY": "Save money", "SAVE_MONEY_TYPE": "Savings type", "CAUTION_CREDIT": "Caution credit demand", "ID_DEMAND": "Demand ID", - + "DATE": "Date", + "PAIEMENT_EAU_ELECTRICITY": "Water/electricity bill", + "PAIEMENT_ECOLE": "School fees", + "PAIEMENT_CREDIT_TELEPHONIQUE": "Phone credit bills", + "PAIEMENT_ABONNEMENT_TV": "TV subscription", "DEMAND_DATE": "Demand date", "DATE_REMBOURSEMENT_PREVU": "Expected refund date", "DATE_REMBOURSEMENT": "Refund date", @@ -174,7 +178,7 @@ "FINAL_DATE": "End date", "CASSATION_DATE": "Cassation date", "VALIDATION_DATE": "Validation date", - + "HISTORY_DETAIL": "History detail", "DEMAND_DURATION_IN_MONTH": "Duration (in months)", "PAIEMENT_FACTURE": "Bill payment", "NUMERO_ABONNE": "Subscriber number", @@ -273,6 +277,7 @@ "IDENTITY_NUMBER": "N° of piece", "IDENTITY_PIECE_EXPIRY_DATE": "Expiry date", "LAST_STEP": "Last step", + "ID_TRANSACTION": "Transaction ID", "ACTIVE_ACCOUNT": "Activate the account !", "ACTIVE_USER": "Active", "LAST_STEP_TEXT": "Activate your account using the verification code that was sent to you on your e-mail address and on your phone number", @@ -437,14 +442,14 @@ "CREATE_MY_IDENTIFICATION": "Create my identification", "NOT_IDENTIFIED": "This number exists, its identification is not yet entered", "NOT_VALIDATED": "Your identicaiton is not yet validated", - "ALREADY_VALIDATED": "The identification of this client has already been validated", + "ALREADY_VALIDATED": "The identification of this customer has already been validated", "MODIFY_IDENTIFICATION": "Modify my identification", "NOT_YET_IDENTIFY": "You are not yet identified", "IDENTIFICATION": " Identification", "CREATION_IDENTIFICATION": "Creation", "CREATION_IDENTIFICATION_CLIENT": "Identify me", - "CREATION_IDENTIFICATION_DESCRIPTION": "Identify a client", - "CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN": "Enter the identity of a client", + "CREATION_IDENTIFICATION_DESCRIPTION": "Identify a customer", + "CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN": "Enter the identity of a customer", "VALIDATE_IDENTIFICATION": "Validation", "VALIDATE_IDENTIFICATION_DESCRIPTION": "Validate an identi...", "IDENTIFICATION_INFORMATION": "Identification information", diff --git a/android/app/src/main/res/raw/utils_i18n_fr.json b/android/app/src/main/res/raw/utils_i18n_fr.json index 0d5d2b66..88d91a39 100644 --- a/android/app/src/main/res/raw/utils_i18n_fr.json +++ b/android/app/src/main/res/raw/utils_i18n_fr.json @@ -172,7 +172,11 @@ "REFUND_DONE": "Remboursement effectué", "CAUTION_CREDIT": "Cautionner une demande de crédit", "ID_DEMAND": "Identifiant de la demande", - + "PAIEMENT_EAU_ELECTRICITY": "Paiement eau/électricité", + "PAIEMENT_ECOLE": "Paiement école", + "PAIEMENT_CREDIT_TELEPHONIQUE": "Paiement crédit téléphonique", + "PAIEMENT_ABONNEMENT_TV": "Paiement abonnement TV", + "DATE": "Date", "DEMAND_DATE": "Date de la demande", "DATE_REMBOURSEMENT_PREVU": "Date de remboursement prévu", "DATE_REMBOURSEMENT": "Date de remboursement", @@ -181,7 +185,7 @@ "FINAL_DATE": "Date de fin", "CASSATION_DATE": "Date de cassation", "VALIDATION_DATE": "Date de validation", - + "HISTORY_DETAIL": "Détail de l'historique", "DEMAND_DURATION_IN_MONTH": "Durée (en mois)", "PAIEMENT_FACTURE": "Paiement de facture", "NUMERO_ABONNE": "Numéro d'abonnée",