From 08c803faa08652a831488ddada8ef529b0bbc048 Mon Sep 17 00:00:00 2001 From: Brice Zele Date: Mon, 25 Apr 2022 18:02:03 +0100 Subject: [PATCH] =?UTF-8?q?Historique=20corrig=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/main/assets/index.android.bundle | 34 +++++++++---------- .../app/src/main/res/raw/utils_i18n_fr.json | 4 ++- .../agent/HistoriqueNanoSanteAgentScreen.js | 12 +++---- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 5c8fe6b2..90e9e8ba 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -410,7 +410,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},404,[1,6,15,403]); __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=l.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}}))},l.handleDeepLink=function(t){var n=t.notification.payload.additionalData;switch(console.warn("HANDLE DEEP LINK",n),n.screen){case'historyItemDetails':console.log("History Item"),l.goToScreen(n.screen,{item:n.data});break;default:console.log("Not History Item"),l.goToScreen(n.screen,{id:n.data.id})}},l.onOpened=function(t){t.notification.payload.additionalData;l.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",l.props),g.appHasLoaded=!1,C.default.setLogLevel(6,0),Oe.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,f.default)(l))),C.default.init("ab02121a-ecec-424f-910a-2709ef85698d",{kOSSettingsKeyAutoPrompt:!1,kOSSettingsKeyInAppLaunchURL:!1,kOSSettingsKeyInFocusDisplayOption:2}),C.default.inFocusDisplaying(2),C.default.promptForPushNotificationsWithUserResponse(rt),C.default.addEventListener('received',l.onReceived),C.default.addEventListener('opened',l.onOpened),C.default.addEventListener('ids',l.onIds),l}return(0,s.default)(S,t),(0,l.default)(S,[{key:"updateLangue",value:function(){this.forceUpdate()}},{key:"componentWillUnmount",value:function(){C.default.removeEventListener('received',this.onReceived),C.default.removeEventListener('opened',this.onOpened),C.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(at,{ref:"navigator"}))))}}]),S})(p.default.Component);function rt(t){}e.default=nt;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}})},407,[1,276,8,9,10,12,11,13,15,408,18,419,530,531,824,950,951,962,963,964,1014,1015,1021,1038,1039,1194,1307,1308,1309,1434,1449,1462,1464,1465,1016,720,1468,1494,1495,1105,1049,1496,1567,1568,1578,1581,1587,1589,1590,1593,1594,1599,1600,1601,1602,1603,1604,1605,1606,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1624,1625,773,1626,1627,1628,1735,1736,1737,1740,1741,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,814]); +__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 n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),f=t(r(d[5])),c=t(r(d[6])),s=t(r(d[7])),p=t(r(d[8])),S=r(d[9]),v=r(d[10]),h=r(d[11]),E=t(r(d[12])),C=t(r(d[13])),A=t(r(d[14])),I=t(r(d[15])),N=t(r(d[16])),T=t(r(d[17])),O=t(r(d[18])),D=t(r(d[19])),y=t(r(d[20])),w=t(r(d[21])),b=t(r(d[22])),R=t(r(d[23])),U=t(r(d[24])),_=t(r(d[25])),B=t(r(d[26])),L=t(r(d[27])),P=t(r(d[28])),k=t(r(d[29])),M=t(r(d[30])),F=t(r(d[31])),G=t(r(d[32])),V=t(r(d[33])),H=t(r(d[34])),W=t(r(d[35])),z=t(r(d[36])),x=t(r(d[37])),q=r(d[38]),Y=r(d[39]),K=r(d[40]),X=t(r(d[41])),j=t(r(d[42])),Z=t(r(d[43])),J=t(r(d[44])),Q=t(r(d[45])),$=t(r(d[46])),ee=t(r(d[47])),te=t(r(d[48])),ae=t(r(d[49])),ne=t(r(d[50])),re=t(r(d[51])),oe=t(r(d[52])),le=t(r(d[53])),ie=t(r(d[54])),de=t(r(d[55])),ue=t(r(d[56])),fe=t(r(d[57])),ce=t(r(d[58])),se=t(r(d[59])),pe=t(r(d[60])),Se=t(r(d[61])),ve=t(r(d[62])),ge=t(r(d[63])),he=t(r(d[64])),me=t(r(d[65])),Ee=t(r(d[66])),Ce=t(r(d[67])),Ae=t(r(d[68])),Ie=t(r(d[69])),Ne=t(r(d[70])),Te=t(r(d[71])),Oe=t(r(d[72])),De=t(r(d[73])),ye=t(r(d[74])),we=r(d[75]),be=t(r(d[76])),Re=t(r(d[77])),Ue=t(r(d[78])),_e=t(r(d[79])),Be=t(r(d[80])),Le=t(r(d[81])),Pe=t(r(d[82])),ke=t(r(d[83])),Me=t(r(d[84])),Fe=t(r(d[85])),Ge=t(r(d[86])),Ve=t(r(d[87])),He=t(r(d[88])),We=t(r(d[89])),ze=t(r(d[90])),xe=t(r(d[91])),qe=t(r(d[92])),Ye=t(r(d[93])),Ke=t(r(d[94])),Xe=t(r(d[95])),je=(v.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[96])),Ze=(0,h.createStackNavigator)({login:C.default,helpMenu:I.default,help:N.default,forgottenpass:T.default,typeaccountcreate:O.default,simpleusercreate:y.default,step2:D.default,activateaccout:R.default},{headerMode:'none'}),Je=(0,h.createDrawerNavigator)({sta:(0,h.createStackNavigator)({home:P.default,useraccount:{screen:b.default,navigationOptions:{}},walletSelect:x.default,createIdentificationUser:ee.default,modifyIdentificationUser:he.default,notificationview:U.default,configuration:B.default,about:_.default,walletDetailUser:J.default,walletOptionSelect:Q.default,operateurOptionSelect:te.default,paiementFacture:ae.default,envoieWalletToWalletUser:ne.default,envoieWalletToCashUser:re.default,envoieWalletToCardUser:le.default,envoieWalletToBankUser:ie.default,insuranceSubscriptionScreen:{screen:Ue.default,navigationOptions:function(){return{headerTitle:W.default.t('SUBSCRIBE_ASSURANCE'),title:W.default.t('SUBSCRIBE_ASSURANCE')}}},addBeneficiaryScreen:{screen:_e.default,navigationOptions:function(){return{headerTitle:W.default.t('ADD_SUBSCRIBE'),title:W.default.t('ADD_SUBSCRIBE')}}},activateBuySubscriptionScreen:{screen:Be.default,navigationOptions:function(){return{headerTitle:W.default.t('ACTIVATE_INSSURANCE'),title:W.default.t('ACTIVATE_INSSURANCE')}}},renewAssuranceScreen:{screen:xe.default,navigationOptions:function(){return{headerTitle:W.default.t('RENEW_INSSURANCE'),title:W.default.t('RENEW_INSSURANCE')}}},deleteBeneficiaryScreen:{screen:We.default,navigationOptions:function(){return{headerTitle:W.default.t('DELETE_SUBSCRIBE'),title:W.default.t('DELETE_SUBSCRIBE')}}},stopSubscriptionScreen:{screen:ze.default,navigationOptions:function(){return{headerTitle:W.default.t('STOP_SUBSCRIBE'),title:W.default.t('STOP_SUBSCRIBE')}}},validateConsultationScreen:Pe.default,validateConsultationDetailScreen:ke.default,historiqueNanoSanteUserScreen:Ve.default,retraitWalletVersCashUser:de.default,retraitCarteVersCashUser:ue.default,retraitCarteVersWalletUser:fe.default,linkCard:oe.default,reattachAccountUser:Re.default,epargnerArgentUser:De.default,createGroupNanoCredit:me.default,groupNanoCredit:{screen:(0,h.createBottomTabNavigator)({demandeValidationGroupe:{screen:Ee.default,navigationOptions:{tabBarLabel:W.default.t('DEMAND_VALIDATION_GROUP_RECEIVE'),tabBarIcon:function(t){var n=t.focused,o=(t.horizontal,t.tintColor);return p.default.createElement(H.default,{size:20,name:"users-cog",color:n?o:"grey"})}}},myNanoCreditGroup:{screen:Ie.default,navigationOptions:{tabBarLabel:W.default.t('MY_GROUP'),tabBarIcon:function(t){var n=t.focused,o=(t.horizontal,t.tintColor);return p.default.createElement(H.default,{size:20,name:"users",color:n?o:"grey"})}}}},{headerMode:"none",header:null,headerTitle:null,title:W.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:W.default.t('MANAGE_GROUP'),drawerIcon:function(t){t.tintColor;return p.default.createElement(H.default,{name:'account-multiple',size:24})}}}},demandeValidationGroupe:Ce.default,adhererGroupNanoCredit:Ae.default,askNanoCredit:Ne.default,refundNanoCreditUser:Te.default,casserEpargneUser:ye.default,webviewScreen:qe.default,PDFViewerScreen:Xe.default})},{contentComponent:L.default,headerMode:'none',contentOptions:{activeTintColor:je.accent}}),Qe=(0,h.createDrawerNavigator)({sta:(0,h.createStackNavigator)({home:P.default,useraccount:b.default,webviewScreen:qe.default,walletSelect:x.default,createIdentification:Z.default,validateIdentification:$.default,Historique:{screen:(0,h.createBottomTabNavigator)({myDemand:V.default},{headerMode:"none",header:null,headerTitle:W.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:W.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(H.default,{name:'credit-card',size:24})}}}},historyItemDetails:k.default,creditrequest:F.default,saisirFeuilleSoinScreen:{screen:Le.default,navigationOptions:function(){return{headerTitle:W.default.t('SAISIR_FEUILLE_SOIN'),title:W.default.t('SAISIR_FEUILLE_SOIN'),headerStyle:{marginTop:20}}}},executerPrescriptionScreen:{screen:Me.default,navigationOptions:function(){return{headerTitle:W.default.t('EXECUTER_PRESCRIPTION'),title:W.default.t('EXECUTER_PRESCRIPTION'),headerStyle:{marginTop:20}}}},modifierExecutionPrescriptionScreen:{screen:Ge.default,navigationOptions:function(){return{headerTitle:W.default.t('MODIFY_CONSULTATION'),title:W.default.t('MODIFY_CONSULTATION'),headerStyle:{marginTop:20}}}},modifierFeuilleSoinScreen:{screen:Fe.default,navigationOptions:function(){return{headerTitle:W.default.t('MODIFY_EXECUTION'),title:W.default.t('MODIFY_EXECUTION'),headerStyle:{marginTop:20}}}},demandeAutorisationSoinScreen:{screen:He.default,navigationOptions:function(){return{headerTitle:W.default.t('DEMAND_AUTORIZATION_HEALTH'),title:W.default.t('DEMAND_AUTORIZATION_HEALTH'),headerStyle:{marginTop:20}}}},historiqueNanoSanteAgentScreen:{screen:Ye.default,navigationOptions:function(){return{headerTitle:W.default.t('HISTORY'),title:W.default.t('HISTORY'),headerStyle:{marginTop:20}}}},addNetwork:G.default,updateinformation:w.default,notificationview:U.default,configuration:B.default,about:_.default,walletDetail:z.default,walletDepot:X.default,walletRetrait:j.default,walletOptionSelect:Q.default,operateurOptionSelect:te.default,paiementFacture:ae.default,retraitEnCashAgent:ce.default,retraitCarteVersCashAgent:se.default,envoieCashVersWalletAgent:pe.default,envoieCashVersAutreWalletAgent:Se.default,envoieCashVersCarteAgent:ve.default,envoiCashVersCashAgent:ge.default,envoieWalletToBankAgent:be.default,createGroupNanoCredit:me.default,cautionNanoCreditAgent:Oe.default,PDFViewerScreen:Xe.default})},{contentComponent:L.default,backBehavior:"none",lazy:!1,headerMode:'none',contentOptions:{activeTintColor:je.accent}}),$e=(0,h.createDrawerNavigator)({sta:(0,h.createStackNavigator)({home:P.default,useraccount:b.default,walletSelect:x.default,Historique:{screen:(0,h.createBottomTabNavigator)({myDemand:V.default,OthersDemand:V.default},{headerMode:"none",header:null,headerTitle:null,title:W.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:W.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return p.default.createElement(H.default,{name:'credit-card',size:24})}}}},creditrequest:F.default,historyItemDetails:k.default,superviseurgroup:M.default,notificationview:U.default,configuration:B.default,about:_.default,walletDetail:z.default,walletDepot:X.default,walletRetrait:j.default,historiqueNanoSanteSuperHyperScreen:Ke.default,webviewScreen:qe.default,PDFViewerScreen:Xe.default})},{contentComponent:L.default,backBehavior:"none",headerMode:'none'}),et=(0,h.createDrawerNavigator)({sta:(0,h.createStackNavigator)({home:P.default,useraccount:b.default,walletSelect:x.default,Historique:{screen:(0,h.createBottomTabNavigator)({OthersDemand:V.default},{headerMode:"none",header:null,headerTitle:null,title:W.default.t('CREDIT_MANAGE'),tabBarOptions:{labelStyle:{fontSize:13,fontWeight:"bold"}}}),navigationOptions:function(){return{title:W.default.t('CREDIT_MANAGE'),headerMode:"none",header:null,headerTitle:null,drawerIcon:function(t){t.tintColor;return p.default.createElement(H.default,{name:'credit-card',size:24})}}}},creditrequest:F.default,historyItemDetails:k.default,superviseurgroup:M.default,notificationview:U.default,configuration:B.default,about:_.default,walletDetail:z.default,walletDepot:X.default,walletRetrait:j.default,historiqueNanoSanteSuperHyperScreen:Ke.default,webviewScreen:qe.default,PDFViewerScreen:Xe.default})},{contentComponent:L.default,backBehavior:"none",headerMode:'none'}),tt=(0,h.createSwitchNavigator)({first:{screen:A.default},App:Je,AgentApp:Qe,adminApp:$e,supAdminApp:et,Auth:Ze},{initialRouteName:'first'}),at=(0,h.createAppContainer)(tt),nt=(function(t){function h(t){var l;return(0,o.default)(this,h),(l=(0,u.default)(this,(0,f.default)(h).call(this,t)))._getOneSignalIds=function(){return new Promise(function(t,o){var l;return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,n.default.awrap(v.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),o(u.t0);case 10:case"end":return u.stop()}},null,null,[[0,7]],Promise)})},l._saveOneSignalIds=function(t){return n.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,n.default.awrap(v.AsyncStorage.setItem('@config:onesignalIds',t));case 3:o.next=8;break;case 5:o.prev=5,o.t0=o.catch(0),console.warn(o.t0);case 8:case"end":return o.stop()}},null,null,[[0,5]],Promise)},l.goToScreen=function(t,n){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var o=l.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}}))},l.handleDeepLink=function(t){var n=t.notification.payload.additionalData;switch(console.warn("HANDLE DEEP LINK",n),n.screen){case'historyItemDetails':console.log("History Item"),l.goToScreen(n.screen,{item:n.data});break;default:console.log("Not History Item"),l.goToScreen(n.screen,{id:n.data.id})}},l.onOpened=function(t){t.notification.payload.additionalData;l.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",l.props),g.appHasLoaded=!1,E.default.setLogLevel(6,0),we.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,c.default)(l))),E.default.init("ab02121a-ecec-424f-910a-2709ef85698d",{kOSSettingsKeyAutoPrompt:!1,kOSSettingsKeyInAppLaunchURL:!1,kOSSettingsKeyInFocusDisplayOption:2}),E.default.inFocusDisplaying(2),E.default.promptForPushNotificationsWithUserResponse(rt),E.default.addEventListener('received',l.onReceived),E.default.addEventListener('opened',l.onOpened),E.default.addEventListener('ids',l.onIds),l}return(0,s.default)(h,t),(0,l.default)(h,[{key:"updateLangue",value:function(){this.forceUpdate()}},{key:"componentWillUnmount",value:function(){E.default.removeEventListener('received',this.onReceived),E.default.removeEventListener('opened',this.onOpened),E.default.removeEventListener('ids',this.onIds)}},{key:"onReceived",value:function(t){console.log("Notification received: ",t)}},{key:"render",value:function(){return p.default.createElement(K.Provider,{store:Y.store},p.default.createElement(q.PersistGate,{persistor:Y.persistor},p.default.createElement(S.ActionSheetProvider,null,p.default.createElement(at,{ref:"navigator"}))))}}]),h})(p.default.Component);function rt(t){}e.default=nt;v.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}})},407,[1,276,8,9,10,12,11,13,15,408,18,419,530,531,824,950,951,962,963,964,1014,1015,1021,1038,1039,1194,1307,1308,1309,1434,1449,1462,1464,1465,1016,720,1468,1494,1495,1105,1049,1496,1567,1568,1578,1581,1587,1589,1590,1593,1594,1599,1600,1601,1602,1603,1604,1605,1606,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1624,1625,773,1626,1627,1628,1735,1736,1737,1740,1741,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,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]}}))})},408,[1,409,414,413,418]); __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 c=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),f=n(r(d[5])),l=n(r(d[6])),s=t(r(d[7])),h=n(r(d[8])),v=r(d[9]),_="/home/runner/work/react-native-action-sheet/react-native-action-sheet/src/ActionSheetProvider.tsx";function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}var y=(function(t){(0,u.default)(N,t);var n,y,R=(n=N,y=p(),function(){var t,c=(0,l.default)(n);if(y){var o=(0,l.default)(this).constructor;t=Reflect.construct(c,arguments,o)}else t=c.apply(this,arguments);return(0,f.default)(this,t)});function N(t){var n;return(0,c.default)(this,N),(n=R.call(this,t))._actionSheetRef=s.createRef(),n._context={showActionSheetWithOptions:function(t,c){null!=n._actionSheetRef.current&&n._actionSheetRef.current.showActionSheetWithOptions(t,c)}},n}return(0,o.default)(N,[{key:"getContext",value:function(){return this._context}},{key:"render",value:function(){return s.createElement(v.Provider,{value:this._context,__source:{fileName:_,lineNumber:34,columnNumber:7}},s.createElement(h.default,{ref:this._actionSheetRef,useNativeDriver:this.props.useNativeDriver,__source:{fileName:_,lineNumber:35,columnNumber:9}},s.Children.only(this.props.children)))}}]),N})(s.Component);e.default=y},409,[4,1,8,9,13,10,12,15,410,413]); __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])),h=t(r(d[8])),p=r(d[9]),v=n(r(d[10])),y="/home/runner/work/react-native-action-sheet/react-native-action-sheet/src/ActionSheet/index.tsx";function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}var b=225,S=195,A=p.Easing.bezier(.25,.46,.45,.94),N=p.Easing.out(A),w='Escape',C=(function(t){(0,u.default)(V,t);var n,C,E=(n=V,C=_(),function(){var t,o=(0,f.default)(n);if(C){var s=(0,f.default)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,c.default)(this,t)});function V(){var t;(0,o.default)(this,V);for(var n=arguments.length,s=new Array(n),u=0;u270?270:(0,C.responsiveHeight)(30)),me=(function(t){function n(t){var o;return(0,s.default)(this,n),(o=(0,u.default)(this,(0,c.default)(n).call(this,t)))._draggedValue=new w.Animated.Value(0),o.renderIcon=function(t){return function(n){n.isActive;return y.default.createElement(z.default,{size:24,color:"white",name:t})}},o.openDrawer=function(){o.props.navigation.openDrawer()},o.onIds=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:console.log('Device info: ',t),w.AsyncStorage.getAllKeys(function(n,s){w.AsyncStorage.multiGet(s,function(n,s){s.map(function(n,s,u){var c;return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:c=u[s][0],0===s&&(D.default.isEqual(c,'@config:onesignalIds')||(o._saveOneSignalIds(t.userId),console.log("FIRST LAUNCH",!0),o.onFirstLaunch()));case 2:case"end":return n.stop()}},null,null,null,Promise)})})});case 2:case"end":return n.stop()}},null,null,null,Promise)},o.onFirstLaunch=function(){console.warn("FIRST LAUNCH ON HOME"),(0,R.readUser)().then(function(t){return l.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,l.default.awrap(o._getOneSignalIds());case 5:g.onesignalIds=n.sent,g.onesignalIds&&(console.log("ONESIGNAL",g.onesignalIds),void 0!==t&&(void 0!==t.category?o.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!1}):o.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)})},o.saveOneSignal=function(t,n){(0,v.default)({url:t?Z.saveOnesignalIds+"/saveUser":Z.saveOnesignalIds+"/saveAgent",method:'POST',data:n,headers:{'X-Localization':N.default.currentLocale()}}).then(function(t){console.warn(t),201===t.data.status&&o.renderOneSignalResponse(t.data.error)}).catch(function(t){console.warn(t),t.response?o.renderOneSignalResponse(t.response):t.request?o.renderOneSignalResponse(t.request):o.renderOneSignalResponse(t.message)})},o._retrieveData=function(){var t,n,s;return l.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,l.default.awrap(w.AsyncStorage.getItem('position'));case 3:null!==(t=u.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,s=JSON.parse(t),o.setState({region:n,oldPosition:s})),u.next=10;break;case 7:u.prev=7,u.t0=u.catch(0),console.warn(u.t0);case 10:case"end":return u.stop()}},null,null,[[0,7]],Promise)},o._getOneSignalIds=function(){return new Promise(function(t,n){var o;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,l.default.awrap(w.AsyncStorage.getItem('@config:onesignalIds'));case 3:o=s.sent,t(o),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)})},o._storeData=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.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)},o.backPressed=function(){return w.Alert.alert(N.default.t('EXIT_TITLE'),N.default.t('EXIT_DESC'),[{text:N.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:N.default.t("YES"),onPress:function(){return w.BackHandler.exitApp()}}],{cancelable:!1}),!0},o._getOneSignalIds=function(){return new Promise(function(t,n){var o;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,l.default.awrap(w.AsyncStorage.getItem('@config:onesignalIds'));case 3:o=s.sent,t(o),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)})},o._saveOneSignalIds=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.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)},o.renderOneSignalResponse=function(t){w.Alert.alert(N.default.t('PHISIC_SECURITY'),t,[{text:N.default.t('REFUSED'),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("SUBMIT_LABEL"),onPress:function(){(0,R.readUser)().then(function(t){t&&(void 0!==t.category?o.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!0}):o.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!0}))})}}],{cancelable:!1})},o.onMapReady=function(){console.log("MAP READY CALL"),(0,R.readUser)().then(function(t){if(t){o.setState({user:t}),o.setState({network:t.network,isSaveOneSignalOK:!0});var n={latitude:D.default.isNil(t.latitude)?0:parseFloat(t.latitude),longitude:D.default.isNil(t.longitude)?0:parseFloat(t.longitude)};o.setState({myPosition:n}),o.refocusMap(!1),t.category?(o.setState({loadingDialog:!1}),"geolocated"!==t.category?o.showMyMembers():n.latitude<=0&&n.longitude<=0&&o.props.navigation.push(ce.updateinfo)):'android'===w.Platform.OS?o.requestCameraPermission():(o.getPosition(),o.watchLocation())}}).catch(function(t){console.log("ERROR LOADING USER",t.message)})},o.renderRow=function(t){return y.default.createElement(w.TouchableOpacity,{key:t,onPress:function(){return o.onRowPress(t)}},y.default.createElement(w.View,{style:ye.rowContainer},y.default.createElement(w.View,{style:ye.iconContainer},y.default.createElement(z.default,{name:o.state.filternetworkTemp&&t.name===o.state.filternetworkTemp.name?'radio-button-checked':'radio-button-unchecked',color:o.state.filternetworkTemp&&t.name===o.state.filternetworkTemp.name?de.accent:o.props.colorAccent,size:24})),y.default.createElement(w.Text,{style:b.material.subheading},t.name)))},o.loadMoreIfHasNoPoint=function(){o.state.increasePas===o.filterOptions.length-1?(o.setState({increasePas:0,snack_visible:!0,snack_text_message:N.default.t('NO_NETWORK_MARKER'),isLoadingMap:!1}),setTimeout(function(){o.setState({snack_visible:!1})},5e3)):o.state.increasePas+1!==o.filterOptions.length&&o.setState({increasePas:o.state.increasePas+1,isLoadingMap:!0},function(){o.onLoadMore()})},o.state=o.geInitialState(),o.mounted=!1,o.configuration=new O.default,A.IlinkEmitter.on("firstlaunch",o.onFirstLaunch),o.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],z.default.getImageSource('md-car',24,'white').then(function(t){o.setState({caricon:t})}),o.makeMarkerInformation=o.makeMarkerInformation.bind((0,f.default)(o)),J.default.addEventListener('ids',o.onIds),g.appHasLoaded=!0,o.configuration._getPubData().then(function(t){console.log("PUBLICITE function: ",t),o.setState({publicite:t})}).catch(function(t){console.log("PUBLICITE Error: ",t)}),o}return(0,p.default)(n,t),(0,h.default)(n,[{key:"onLoadMore",value:function(){var t=this,n=this.state,o=n.user;n.prevRegion,n.boundarie;void 0!==o.category&&null!==o.category||(this.promiseRegion&&this.promiseRegion.done(),this.promiseRegion=new Promise(function(n,s){var u,c,f,h,p;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.setState({isNeedLoadMore:!1,isLoadingMap:!0}),s.next=3,l.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:o.longitude,latitude:o.latitude},s.prev=11,s.next=14,l.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,R.readUser)().then(function(n){return l.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;var n=this.props.navigation;this.markerManager=new G.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:"componentWillReceiveProps",value:function(t){var n=this;null!==t.resultSearchUserByName&&this.setState({displayDialogResultSearch:!0}),null!==t.resultGetQRCodeDetail&&null!==t.resultGetQRCodeDetail.response&&this.setState({userName:''+t.resultGetQRCodeDetail.response.phone}),null!==t.errorGetQRCodeDetail&&void 0!==t.errorGetQRCodeDetail.data&&w.Alert.alert(N.default.t("ERROR_LABEL"),t.errorGetQRCodeDetail.data.error,[{text:N.default.t("OK"),onPress:function(){n.setState({displayPhoneField:!1,userName:''}),n.props.searchUserReset(),n.props.getQRCodeDetailReset()}}],{cancelable:!1})}},{key:"requestCameraPermission",value:function(){var t=this;return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.PermissionsAndroid.request(w.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===w.PermissionsAndroid.RESULTS.GRANTED&&(0,R.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?(console.log("THIS IS CALL"),t.showMyMembers()):o.latitude<=0&&o.longitude<=0&&t.props.navigation.push(ce.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)},se)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,R.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||w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})))},function(o){w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})});else{console.log("get network missing pays");w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.requestCameraPermission()}}],{cancelable:!1})}}},{key:"getPosition",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.log("on get position"),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,y=0;y=k.length)break;C=k[E++]}else{if((E=k.next()).done)break;C=E.value}var b=C;b.code===f&&(t.setState({indicatif:b.dial_code}),t.getNetworks(b.dial_code))}}}else console.log("on else result null "),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1})});var u={latitude:s.latitude,longitude:s.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:s,region:u}),t.mapRef&&!t.state.myPositionIsAnimated&&(t.mapRef.animateCamera({center:s,pitch:0,heading:0,altitude:5,zoom: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)}},se)}},{key:"componentDidDisappear",value:function(){w.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;w.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,R.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(){J.default.removeEventListener('ids',this.onIds),this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&V.default.clearWatch(this.watchID)}}]),(0,h.default)(n,[{key:"makeCardSearch",value:function(){var t=this;return y.default.createElement(w.View,{style:ye.topBar},y.default.createElement(W.Surface,{style:{elevation:4,borderRadius:10}},y.default.createElement(w.View,{style:{flexDirection:'row',alignSelf:'center',justifyContent:'center',flex:1,borderRadius:10,margin:10,alignItems:'center',height:48}},y.default.createElement(w.TouchableOpacity,{onPress:function(){return t.openDrawer()}},y.default.createElement(w.Text,{style:ye.hambuger},"Menu")),y.default.createElement(w.View,{style:{flex:1}}),y.default.createElement(w.Text,{style:{backgroundColor:this.state.myNetwork.id===this.state.filternetwork.id?de.primary:de.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?y.default.createElement(w.View,null):y.default.createElement(w.View,{style:{flexDirection:"row"}},y.default.createElement(w.View,{style:{backgroundColor:"#FFFFFFA0",justifyContent:'center',alignItems:'center',alignSelf:'center'}},y.default.createElement(w.Text,null,this.state.markers.length+" "+(0===this.state.currentNetworkSize?"":"/"+this.state.currentNetworkSize)," ")),y.default.createElement(w.TouchableOpacity,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:12,height:32,width:32,backgroundColor:"white",borderColor:"transparent"}},y.default.createElement(z.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=le.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+N.default.t('TO_YOU'),h=null===s.lastname?s.adresse:s.lastname;return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"white"}},y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center',backgroundColor:"white"}},y.default.createElement(w.Text,{style:pe.title},h),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.subtitle2},s.adresse),y.default.createElement(w.View,{style:{flexDirection:"row",alignItems:"center"}},y.default.createElement(w.Text,{style:pe.reseau},s.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},f),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(s)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"_renderItemMarkerdetails",value:function(t){var n=this,o=t;if(void 0!==o&&null!==o){var l=this.state,s=l.currentMarker,u=l.myPosition,c={latitude:parseFloat(s.latitude),longitude:parseFloat(s.longitude)},f=le.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+N.default.t('TO_YOU'),p=null===o.lastname?o.adresse:o.lastname;return y.default.createElement(E.CardView,{style:pe.container,cardElevation:2,cardMaxElevation:2,cornerRadius:5},y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},y.default.createElement(w.Text,{style:pe.title},p),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.subtitle2},o.adresse),y.default.createElement(w.View,{style:{flexDirection:"row",alignItems:"center"}},y.default.createElement(w.Text,{style:pe.reseau},o.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},h),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(o)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}}},{key:"renderCurrentMarker",value:function(t){var n=this;if(t)return y.default.createElement(w.View,null,y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},y.default.createElement(w.Text,{style:pe.title},name),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.title},t.adresse),y.default.createElement(w.View,{style:{flexDirection:"row"}},y.default.createElement(w.Text,{style:pe.reseau},t.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},distanceTxt),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(t)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,U.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):y.default.createElement(w.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 y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("SEARCH"),onPress:function(){t.setState({dialogSearchUser:!0})},size:48},y.default.createElement(z.default,{name:"search",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return y.default.createElement(S.default,{ref:function(n){return t.actionButton=n}},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},y.default.createElement(z.default,{name:"filter-list",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("SEARCH"),onPress:function(){t.setState({dialogSearchUser:!0})},size:48},y.default.createElement(z.default,{name:"search",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#9b59b6",title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},y.default.createElement(z.default,{name:"rss-feed",style:ye.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?he:0,l=t?0:he;this.setState({panelVisible:t}),!t&&this.state.needRoad&&this.setState({needRoad:!1}),this.state.animation.setValue(o),w.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 y.default.createElement(j.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 w.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:ue[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:N.default.t("YOUR_THERE"),isSaveOneSignalOK:!1,publicite:null,userName:'',isNumeroAssureSearch:!1,isPhoneAssureSearch:!1,showQRCodeScanner:!1,displayDialogResultSearch:!1,dialogSearchUser:!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;return console.log("PUBLICITE",this.state.publicite),D.default.isNil(this.state.publicite)||D.default.isNil(this.state.user)?null:this.state.user.country_id===this.state.publicite.id_country?y.default.createElement(F.default,{closeIntersticiel:function(){return t.setState({isPubShow:!1})},navigation:this.props.navigation}):void 0}},{key:"renderBottomHome",value:function(){var t=this;return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"lightblue"}},y.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:function(){(0,R.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(ce.updateinfo)):'android'===w.Platform.OS?t.requestCameraPermission():t.watchLocation())})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),w.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),y.default.createElement(j.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[60,"30%","100%"],renderHeader:function(){return t.renderHeader()}}))}},{key:"renderInner",value:function(){return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"green"}},y.default.createElement(w.Text,null,"Freud junior"))}},{key:"markerView",value:function(){if(this.state.currentMarker)return this._renderMarker2()}},{key:"renderHeader",value:function(){var t=this;return y.default.createElement(y.default.Fragment,null,y.default.createElement(w.View,{style:{position:"absolute",width:32,height:this.state.currentMarker?200:100,bottom:80,right:0,justifyContent:'center'}},y.default.createElement(S.default,{size:32,style:{marginRight:15},buttonColor:"white"}),y.default.createElement(S.default,{size:42,renderIcon:function(){return y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:de.primary})),y.default.createElement(w.View,{style:{flex:1,backgroundColor:"white"}},this.markerView(),this.renderFilterMarker(),y.default.createElement(w.View,{style:{flexDirection:'row',height:60,justifyContent:'space-evenly',alignItems:'flex-end'}},y.default.createElement(w.View,{style:{flexDirection:'row',flex:1,marginBottom:10,justifyContent:'space-around',alignItems:'flex-end'}},y.default.createElement(W.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:de.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}))}}),y.default.createElement(W.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:de.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 y.default.createElement(w.View,{style:{height:(0,C.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},y.default.createElement(w.View,{style:{height:(0,C.responsiveHeight)(30),justifyContent:'center'}},y.default.createElement(w.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),y.default.createElement(B.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),y.default.createElement(w.Text,null,y.default.createElement(w.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND"))),y.default.createElement(w.View,{style:{flexDirection:"row",flex:1}},y.default.createElement(I.default,{style:{flex:1}}),y.default.createElement(I.default,{style:{flex:1}})))}},{key:"makeMarkerButton",value:function(){var t=this;return this.state.currentMarker?y.default.createElement(w.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(26),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(marker)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))):y.default.createElement(w.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}})}},{key:"renderOldHome",value:function(){var t=this;return y.default.createElement(w.View,{style:ye.container},y.default.createElement(w.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog||this.props.loading?y.default.createElement(w.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,C.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,C.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(w.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},N.default.t("LOADING_DOTS"))):null,y.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:'android'===w.Platform.OS?this.onMapReady:null,onLayout:'ios'===w.Platform.OS?this.onMapReady:null,needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),w.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){D.default.isNil(user.latitude)}}])}}),this.makeCardSearch(),this.showInterticiel(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),this.renderSearchUser(),this.state.showQRCodeScanner&&this.renderDialogQRCodeScanner(),this.state.displayDialogResultSearch&&this.renderDialogResultSearchUser(),y.default.createElement(H.default,{visible:this.state.snack_visible,textMessage:this.state.snack_text_message,autoHidingTime:5e3}),this.makeActionButon())}},{key:"renderTutoOldHome",value:function(){return y.default.createElement(w.View,{style:{flex:1}},y.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 y.default.createElement(w.View,{style:{height:200,backgroundColor:'#fff'}},this.makeMarkerInformation())}},{key:"makeDialogLoader",value:function(){return y.default.createElement(L.ProgressDialog,{visible:this.state.showProgress,title:N.default.t("LOADING_PROGRESS"),message:N.default.t("WAITING_LONG"),animationType:"slide",activityIndicatorSize:"large",activityIndicatorColor:"blue"})}},{key:"showMynetworkMap",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null===n?this.state.user:n,l=this.state.myNetwork;return this.setState({filternetwork:l,page:0,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 y.default.createElement(M.MaterialDialog,{visible:this.state.dialogSliderVisible,title:N.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:N.default.t("QUIT_"),okLabel:N.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},y.default.createElement(w.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),y.default.createElement(B.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),y.default.createElement(w.Text,null,y.default.createElement(w.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND")))}},{key:"showFilterDialog",value:function(){this.setState({dialogSliderVisible:!0})}},{key:"filterPoint",value:function(){var t,n,o,s,u,c=this;return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.state,n=t.value,o=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(o,s,n,void 0,!0).then(function(t){c.treatNewData(c.state.prevRegion,t,!0)}).catch(function(t){c.setState({showProgress:!1}),w.Alert.alert(N.default.t("ERROR_FILTER"),N.default.t("ERROR_FILTER_TEXT"),[{text:N.default.t("CANCEL")},{text:N.default.t("RESTART"),onPress:function(){c.filterPoint()}}])})):(this.setState({showProgress:!1}),this.setState({snack_visible:!0,snack_text_message:"impossible de filtrer les \xe9lements"}),setTimeout(function(){c.setState({snack_visible:!1})},5e3));case 2:case"end":return l.stop()}},null,this,null,Promise)}},{key:"userChangeMarker",value:function(t){if(console.log("Item",t),null!==this.mapRef&&void 0!==this.mapRef){var n={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude),latitudeDelta:.03,longitudeDelta:.01};this.mapRef.animateToCoordinate({latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)},1e3),this.mapRef.animateToRegion(n,1e3)}}},{key:"geoLocatedAction",value:function(){var t=this;return y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return y.default.createElement(M.MaterialDialog,{title:N.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:N.default.t("CHOICE_NETWORK_TEXT"),onCancel:function(){return t.setState({dialogNetworkVisible:!1})},onOk:function(n){t.setState({dialogNetworkVisible:!1,page:0}),t.setState({showProgress:!0,filternetwork:t.state.filternetworkTemp}),setTimeout(function(){return t.showFilterNetwork()},500)}},y.default.createElement(w.FlatList,{style:{height:(0,C.responsiveHeight)(40)},data:this.state.networks,renderItem:function(n){var o=n.item;return t.renderRow(o)}}))}},{key:"renderDialogQRCodeScanner",value:function(){var t=this;return y.default.createElement(re.default.Container,{contentStyle:{width:(0,C.responsiveWidth)(80)},useNativeDriver:!0,visible:this.state.showQRCodeScanner},y.default.createElement(re.default.Title,null,N.default.t('SCAN')),y.default.createElement(w.ScrollView,{style:[ye.blockView,{borderBottomColor:ae.Color.borderColor,maxHeight:300}]},y.default.createElement(w.Text,null,N.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),y.default.createElement(ne.default,{onRead:function(n){t.setState({showQRCodeScanner:!1}),t.props.getQRCodeDetailAction(n.data)},flashMode:_.RNCamera.Constants.FlashMode.off})),y.default.createElement(re.default.Button,{bold:!0,label:N.default.t('CLOSE'),onPress:function(){t.setState({showQRCodeScanner:!1})}}))}},{key:"renderSearchUser",value:function(){var t=this;return y.default.createElement(M.MaterialDialog,{title:N.default.t("SEARCH"),visible:this.state.dialogSearchUser,onCancel:function(){return t.setState({dialogSearchUser:!1})},onOk:function(n){t.state.isPhoneAssureSearch?t.props.searchUserAction({dial_code:t.state.indicatif,phone:t.state.userName},!0):t.props.searchUserAction({dial_code:t.state.indicatif,name:t.state.userName},!0),t.setState({dialogSearchUser:!1})}},y.default.createElement(w.View,null,y.default.createElement(ee.default,{style:{marginTop:10,width:(0,C.responsiveWidth)(90),height:46,borderRadius:5,borderWidth:1,borderColor:"#ccc"},placeholder:this.state.isPhoneAssureSearch?N.default.t('PHONE'):N.default.t('NAME'),value:this.state.userName,keyboardType:this.state.isPhoneAssureSearch?'numeric':'default',onChangeText:function(n){t.setState({userName:n})},icon:y.default.createElement(te.default,{style:{zIndex:10},name:this.state.isPhoneAssureSearch?'phone':'user',size:20})}),y.default.createElement(w.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},y.default.createElement(te.default,{style:{paddingRight:20},name:"phone",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({isNumeroAssureSearch:!1,isPhoneAssureSearch:!0})}}),y.default.createElement(te.default,{style:{paddingRight:20},name:"user",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({isNumeroAssureSearch:!1,isPhoneAssureSearch:!1})}}),y.default.createElement(te.default,{style:{paddingRight:20},name:"qrcode",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({showQRCodeScanner:!0})}}))))}},{key:"renderDialogResultSearchUser",value:function(){var t=this,n=this.props,l=n.resultSearchUserByName;n.errorGetAvisImposition;return console.log("resultGetAvisImposition",l),y.default.createElement(re.default.Container,{contentStyle:{width:(0,C.responsiveWidth)(80)},useNativeDriver:!0,visible:this.state.displayDialogResultSearch},y.default.createElement(re.default.Title,null,N.default.t('USAGER_SEARCH')),y.default.createElement(w.ScrollView,{style:[ye.blockView,{borderBottomColor:ae.Color.borderColor,maxHeight:300}]},Array.isArray(l.response)&&l.response.length>0?l.response.map(function(n){return y.default.createElement(w.TouchableOpacity,{onPress:function(){t.props.searchUserReset(),t.setState({userName:'',displayDialogResultSearch:!1}),console.log("Markers",t.state.markers),t.state.markers.filter(function(t){return t.phone===n.phone}).length>0?t.userChangeMarker(n):(t.setState({markers:[].concat((0,o.default)(t.state.markers),[n])},function(){t.userChangeMarker(n)}),t.setState({currentNetworkSize:t.state.currentNetworkSize+1}))},style:[ye.paymentItem]},y.default.createElement(w.View,{style:{flexDirection:'column'}},y.default.createElement(w.Text,{style:ye.title},n.lastname),y.default.createElement(w.Text,{style:ye.description},n.phone+" | "+n.email+" | "+n.adresse)))}):y.default.createElement(w.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(w.Text,{style:oe.Typography.body1},N.default.t('NO_USAGER_CORRESPONDING_TO_SEARCH')))),y.default.createElement(re.default.Button,{bold:!0,label:N.default.t('OK'),onPress:function(){t.props.searchUserReset(),t.setState({displayDialogResultSearch:!1})}}))}},{key:"onRowPress",value:function(t){this.setState({filternetworkTemp:t})}},{key:"showNewDialogNetwork",value:function(){this.setState({dialogNetworkVisible:!0})}},{key:"showFilterNetwork",value:function(){var t,n,o,s=this;return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.state,n=t.myPosition,t.user,void 0!==(o=t.filternetwork)?(this.setState({showProgress:!0}),this.loadingMarkers(this.state.myPosition,o,this.state.value,0,!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 l.stop()}},null,this,null,Promise)}},{key:"showBtnItineraire",value:function(){var t=this;return y.default.createElement(I.default,{style:{backgroundColor:de.primary,width:(0,C.responsiveWidth)(30),height:36,borderRadius:100,marginLeft:5,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!0,showProgress:!0})}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'white',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return y.default.createElement(I.default,{style:{backgroundColor:de.reddeconnect,height:36,width:(0,C.responsiveWidth)(30),borderRadius:100,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!1,showProgress:!1})}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'white',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"map",style:ye.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 y.default.createElement(w.TouchableOpacity,{key:t.id,style:{margin:5},onPress:function(){n.moveToMarker(t)}},y.default.createElement(w.Text,{style:{flex:1,fontSize:14,color:"#000"}},null===t.firstname?t.adresse:t.firstname),y.default.createElement(w.Text,{style:{flex:1,fontSize:12}},t.lastname),y.default.createElement(w.Text,{style:{flex:1,fontSize:13,alignSelf:'flex-end',color:de.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"),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission()}}],{cancelable:!1})})}).catch(function(o){console.log("on retreive>getmarkers",o.message),n.setState({loadingDialog:!1}),n.state.allpoint.length<=0&&(console.log("no point"),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.state.allpoint.length<=0&&(n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission())}}],{cancelable:!1}))})}},{key:"showLoadMoreView",value:function(){var t=this;if(this.state.isNeedLoadMore)return y.default.createElement(w.View,{style:{flex:1,flexDirection:'row',width:(0,C.responsiveWidth)(90)}},y.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"}},y.default.createElement(z.default,{name:"refresh",size:32})),y.default.createElement(w.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,C.responsiveWidth)(20),height:30,borderRadius:12,justifyContent:'center',alignItems:'center',alignSelf:'center'}},y.default.createElement(w.Text,null,(this.state.markers.length,this.state.markers.length)," / ",this.state.currentNetworkSize," ")))}},{key:"showLoadingMapView",value:function(){if(this.state.isLoadingMap)return y.default.createElement(w.View,{style:{flexDirection:'row',margin:10,width:(0,C.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},y.default.createElement(w.Text,{style:{fontSize:12,alignSelf:'center'}},N.default.t("LOADING_TEXT_MARKERS")+" "+this.filterOptions[this.state.valuePosition].value+" km "+N.default.t("DISTANCE_ARROUND")),y.default.createElement(w.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,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(c,f){var h=l.state.allpoint;console.log("AllPoint",h),console.log("Home state",l.state);var p=void 0!==s?s:l.state.page,y=h.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return le.getDistance(t,u)<=1e3*o&&l.network===n.name});console.log("Data before comparative",y),l.state.valuePosition>1&&(y=y.length2&&void 0!==arguments[2]&&arguments[2],s=n;if(console.log("Data received",n),n.length>0){var u=s;l&&this.setState({showProgress:!1}),u.length>0&&this.setState({markers:u,prevRegion:t}),s.length270?270:(0,C.responsiveHeight)(30)),me=(function(t){function n(t){var o;return(0,s.default)(this,n),(o=(0,u.default)(this,(0,c.default)(n).call(this,t)))._draggedValue=new w.Animated.Value(0),o.renderIcon=function(t){return function(n){n.isActive;return y.default.createElement(z.default,{size:24,color:"white",name:t})}},o.openDrawer=function(){o.props.navigation.openDrawer()},o.onIds=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:console.log('Device info: ',t),w.AsyncStorage.getAllKeys(function(n,s){w.AsyncStorage.multiGet(s,function(n,s){s.map(function(n,s,u){var c;return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:c=u[s][0],0===s&&(D.default.isEqual(c,'@config:onesignalIds')||(o._saveOneSignalIds(t.userId),console.log("FIRST LAUNCH",!0),o.onFirstLaunch()));case 2:case"end":return n.stop()}},null,null,null,Promise)})})});case 2:case"end":return n.stop()}},null,null,null,Promise)},o.onFirstLaunch=function(){console.warn("FIRST LAUNCH ON HOME"),(0,R.readUser)().then(function(t){return l.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,l.default.awrap(o._getOneSignalIds());case 5:g.onesignalIds=n.sent,g.onesignalIds&&(console.log("ONESIGNAL",g.onesignalIds),void 0!==t&&(void 0!==t.category?o.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!1}):o.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)})},o.saveOneSignal=function(t,n){(0,v.default)({url:t?Z.saveOnesignalIds+"/saveUser":Z.saveOnesignalIds+"/saveAgent",method:'POST',data:n,headers:{'X-Localization':N.default.currentLocale()}}).then(function(t){console.warn(t),201===t.data.status&&o.renderOneSignalResponse(t.data.error)}).catch(function(t){console.warn(t),t.response?o.renderOneSignalResponse(t.response):t.request?o.renderOneSignalResponse(t.request):o.renderOneSignalResponse(t.message)})},o._retrieveData=function(){var t,n,s;return l.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,l.default.awrap(w.AsyncStorage.getItem('position'));case 3:null!==(t=u.sent)&&((n=JSON.parse(t)).longitudeDelta=.04,n.latitudeDelta=.01,s=JSON.parse(t),o.setState({region:n,oldPosition:s})),u.next=10;break;case 7:u.prev=7,u.t0=u.catch(0),console.warn(u.t0);case 10:case"end":return u.stop()}},null,null,[[0,7]],Promise)},o._getOneSignalIds=function(){return new Promise(function(t,n){var o;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,l.default.awrap(w.AsyncStorage.getItem('@config:onesignalIds'));case 3:o=s.sent,t(o),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)})},o._storeData=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.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)},o.backPressed=function(){return w.Alert.alert(N.default.t('EXIT_TITLE'),N.default.t('EXIT_DESC'),[{text:N.default.t('NO'),onPress:function(){return console.log('Cancel Pressed')},style:'cancel'},{text:N.default.t("YES"),onPress:function(){return w.BackHandler.exitApp()}}],{cancelable:!1}),!0},o._getOneSignalIds=function(){return new Promise(function(t,n){var o;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,l.default.awrap(w.AsyncStorage.getItem('@config:onesignalIds'));case 3:o=s.sent,t(o),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)})},o._saveOneSignalIds=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.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)},o.renderOneSignalResponse=function(t){w.Alert.alert(N.default.t('PHISIC_SECURITY'),t,[{text:N.default.t('REFUSED'),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("SUBMIT_LABEL"),onPress:function(){(0,R.readUser)().then(function(t){t&&(void 0!==t.category?o.saveOneSignal(!1,{code_membre:t.code_membre,player_id:g.onesignalIds,set_default:!0}):o.saveOneSignal(!0,{user_code:t.user_code,player_id:g.onesignalIds,set_default:!0}))})}}],{cancelable:!1})},o.onMapReady=function(){console.log("MAP READY CALL"),(0,R.readUser)().then(function(t){if(t){o.setState({user:t}),o.setState({network:t.network,isSaveOneSignalOK:!0});var n={latitude:D.default.isNil(t.latitude)?0:parseFloat(t.latitude),longitude:D.default.isNil(t.longitude)?0:parseFloat(t.longitude)};o.setState({myPosition:n}),o.refocusMap(!1),t.category?(o.setState({loadingDialog:!1}),"geolocated"!==t.category?o.showMyMembers():n.latitude<=0&&n.longitude<=0&&o.props.navigation.push(ce.updateinfo)):'android'===w.Platform.OS?o.requestCameraPermission():(o.getPosition(),o.watchLocation())}}).catch(function(t){console.log("ERROR LOADING USER",t.message)})},o.renderRow=function(t){return y.default.createElement(w.TouchableOpacity,{key:t,onPress:function(){return o.onRowPress(t)}},y.default.createElement(w.View,{style:ye.rowContainer},y.default.createElement(w.View,{style:ye.iconContainer},y.default.createElement(z.default,{name:o.state.filternetworkTemp&&t.name===o.state.filternetworkTemp.name?'radio-button-checked':'radio-button-unchecked',color:o.state.filternetworkTemp&&t.name===o.state.filternetworkTemp.name?de.accent:o.props.colorAccent,size:24})),y.default.createElement(w.Text,{style:b.material.subheading},t.name)))},o.loadMoreIfHasNoPoint=function(){o.state.increasePas===o.filterOptions.length-1?(o.setState({increasePas:0,snack_visible:!0,snack_text_message:N.default.t('NO_NETWORK_MARKER'),isLoadingMap:!1}),setTimeout(function(){o.setState({snack_visible:!1})},5e3)):o.state.increasePas+1!==o.filterOptions.length&&o.setState({increasePas:o.state.increasePas+1,isLoadingMap:!0},function(){o.onLoadMore()})},o.state=o.geInitialState(),o.mounted=!1,o.configuration=new O.default,A.IlinkEmitter.on("firstlaunch",o.onFirstLaunch),o.filterOptions=[{value:5,label:"5 km"},{value:15,label:"15 km"},{value:20,label:"20 km"},{value:25,label:"25 km"}],z.default.getImageSource('md-car',24,'white').then(function(t){o.setState({caricon:t})}),o.makeMarkerInformation=o.makeMarkerInformation.bind((0,f.default)(o)),J.default.addEventListener('ids',o.onIds),g.appHasLoaded=!0,o.configuration._getPubData().then(function(t){console.log("PUBLICITE function: ",t),o.setState({publicite:t})}).catch(function(t){console.log("PUBLICITE Error: ",t)}),o}return(0,p.default)(n,t),(0,h.default)(n,[{key:"onLoadMore",value:function(){var t=this,n=this.state,o=n.user;n.prevRegion,n.boundarie;void 0!==o.category&&null!==o.category||(this.promiseRegion&&this.promiseRegion.done(),this.promiseRegion=new Promise(function(n,s){var u,c,f,h,p;return l.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.setState({isNeedLoadMore:!1,isLoadingMap:!0}),s.next=3,l.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:o.longitude,latitude:o.latitude},s.prev=11,s.next=14,l.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,R.readUser)().then(function(n){return l.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;var n=this.props.navigation;this.markerManager=new G.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:"componentWillReceiveProps",value:function(t){var n=this;null!==t.resultSearchUserByName&&this.setState({displayDialogResultSearch:!0}),null!==t.resultGetQRCodeDetail&&null!==t.resultGetQRCodeDetail.response&&this.setState({userName:''+t.resultGetQRCodeDetail.response.phone}),null!==t.errorGetQRCodeDetail&&void 0!==t.errorGetQRCodeDetail.data&&w.Alert.alert(N.default.t("ERROR_LABEL"),t.errorGetQRCodeDetail.data.error,[{text:N.default.t("OK"),onPress:function(){n.setState({displayPhoneField:!1,userName:''}),n.props.searchUserReset(),n.props.getQRCodeDetailReset()}}],{cancelable:!1})}},{key:"requestCameraPermission",value:function(){var t=this;return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.PermissionsAndroid.request(w.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===w.PermissionsAndroid.RESULTS.GRANTED&&(0,R.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?(console.log("THIS IS CALL"),t.showMyMembers()):o.latitude<=0&&o.longitude<=0&&t.props.navigation.push(ce.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)},se)}},{key:"getNetworks",value:function(t){var n=this;if(t)(0,R.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||w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})))},function(o){w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){null!==t&&void 0!==t?n.getNetworks(t):n.requestCameraPermission()}}],{cancelable:!1})});else{console.log("get network missing pays");w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.requestCameraPermission()}}],{cancelable:!1})}}},{key:"getPosition",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.log("on get position"),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,y=0;y=k.length)break;C=k[E++]}else{if((E=k.next()).done)break;C=E.value}var b=C;b.code===f&&(t.setState({indicatif:b.dial_code}),t.getNetworks(b.dial_code))}}}else console.log("on else result null "),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1});else w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){t.getPosition(n)}}],{cancelable:!1})});var u={latitude:s.latitude,longitude:s.longitude,latitudeDelta:.03,longitudeDelta:.01};t.setState({myPosition:s,region:u}),t.mapRef&&!t.state.myPositionIsAnimated&&(t.mapRef.animateCamera({center:s,pitch:0,heading:0,altitude:5,zoom: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)}},se)}},{key:"componentDidDisappear",value:function(){w.BackHandler.removeEventListener('hardwareBackPress',this.backPressed)}},{key:"componentDidAppear",value:function(){var t=this;w.BackHandler.addEventListener('hardwareBackPress',this.backPressed),(0,R.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(){J.default.removeEventListener('ids',this.onIds),this.mounted=!1,this.blurListener.remove(),this.focusListener.remove(),this.watchID&&V.default.clearWatch(this.watchID)}}]),(0,h.default)(n,[{key:"makeCardSearch",value:function(){var t=this;return y.default.createElement(w.View,{style:ye.topBar},y.default.createElement(W.Surface,{style:{elevation:4,borderRadius:10}},y.default.createElement(w.View,{style:{flexDirection:'row',alignSelf:'center',justifyContent:'center',flex:1,borderRadius:10,margin:10,alignItems:'center',height:48}},y.default.createElement(w.TouchableOpacity,{onPress:function(){return t.openDrawer()}},y.default.createElement(w.Text,{style:ye.hambuger},"Menu")),y.default.createElement(w.View,{style:{flex:1}}),y.default.createElement(w.Text,{style:{backgroundColor:this.state.myNetwork.id===this.state.filternetwork.id?de.primary:de.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?y.default.createElement(w.View,null):y.default.createElement(w.View,{style:{flexDirection:"row"}},y.default.createElement(w.View,{style:{backgroundColor:"#FFFFFFA0",justifyContent:'center',alignItems:'center',alignSelf:'center'}},y.default.createElement(w.Text,null,this.state.markers.length+" "+(0===this.state.currentNetworkSize?"":"/"+this.state.currentNetworkSize)," ")),y.default.createElement(w.TouchableOpacity,{onPress:function(){t.setState({page:t.state.page+1}),t.onLoadMore()},style:{borderRadius:12,height:32,width:32,backgroundColor:"white",borderColor:"transparent"}},y.default.createElement(z.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=le.getDistance(l,u),f=(c>900?c/1e3+" Km":c+"m")+N.default.t('TO_YOU'),h=null===s.lastname?s.adresse:s.lastname;return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"white"}},y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center',backgroundColor:"white"}},y.default.createElement(w.Text,{style:pe.title},h),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){t.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.subtitle2},s.adresse),y.default.createElement(w.View,{style:{flexDirection:"row",alignItems:"center"}},y.default.createElement(w.Text,{style:pe.reseau},s.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},f),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(s)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"_renderItemMarkerdetails",value:function(t){var n=this,o=t;if(void 0!==o&&null!==o){var l=this.state,s=l.currentMarker,u=l.myPosition,c={latitude:parseFloat(s.latitude),longitude:parseFloat(s.longitude)},f=le.getDistance(u,c),h=(f>900?f/1e3+" Km":f+"m")+N.default.t('TO_YOU'),p=null===o.lastname?o.adresse:o.lastname;return y.default.createElement(E.CardView,{style:pe.container,cardElevation:2,cardMaxElevation:2,cornerRadius:5},y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},y.default.createElement(w.Text,{style:pe.title},p),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",onPress:function(){n.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.subtitle2},o.adresse),y.default.createElement(w.View,{style:{flexDirection:"row",alignItems:"center"}},y.default.createElement(w.Text,{style:pe.reseau},o.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},h),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(o)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}}},{key:"renderCurrentMarker",value:function(t){var n=this;if(t)return y.default.createElement(w.View,null,y.default.createElement(w.View,{style:{flexDirection:"row",justifyContent:"flex-end",alignItems:'center'}},y.default.createElement(w.Text,{style:pe.title},name),y.default.createElement(z.default.Button,{name:"close",size:24,color:"red",backgroundColor:"transparent",on:!0,dPress:function(){n.toggleSlidingUp(!1)}})),y.default.createElement(w.Text,{style:pe.title},t.adresse),y.default.createElement(w.View,{style:{flexDirection:"row"}},y.default.createElement(w.Text,{style:pe.reseau},t.network),y.default.createElement(w.Text,{style:pe.solde},N.default.t('SOLDE_UNVAIBLE'))),y.default.createElement(w.Text,{style:pe.reseau},distanceTxt),y.default.createElement(w.View,{style:{flexDirection:'row',marginTop:(0,C.responsiveHeight)(3),marginLeft:10}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(30),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return n.callItem(t)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))))}},{key:"callItem",value:function(t){var n={number:t.phone,prompt:!1};(0,U.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):y.default.createElement(w.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 y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("SEARCH"),onPress:function(){t.setState({dialogSearchUser:!0})},size:48},y.default.createElement(z.default,{name:"search",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("MY_GROUP"),onPress:function(){return t.showMyMembers()},size:48},y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})))}},{key:"getSimpleActionButton",value:function(){var t=this;return y.default.createElement(S.default,{ref:function(n){return t.actionButton=n}},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("FILTER"),onPress:function(){return t.showFilterDialog()},size:48},y.default.createElement(z.default,{name:"filter-list",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("SEARCH"),onPress:function(){t.setState({dialogSearchUser:!0})},size:48},y.default.createElement(z.default,{name:"search",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#9b59b6",title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("PRINT_MY_NETWORK"),size:48,onPress:function(){t.showMynetworkMap()}},y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("CHANGE_NETWORK"),size:48,onPress:function(){t.showNewDialogNetwork()}},y.default.createElement(z.default,{name:"rss-feed",style:ye.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?he:0,l=t?0:he;this.setState({panelVisible:t}),!t&&this.state.needRoad&&this.setState({needRoad:!1}),this.state.animation.setValue(o),w.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 y.default.createElement(j.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 w.Animated.Value(0),myPosition:null,currentMarker:null,filterNetworkOption:ue[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:N.default.t("YOUR_THERE"),isSaveOneSignalOK:!1,publicite:null,userName:'',isNumeroAssureSearch:!1,isPhoneAssureSearch:!1,showQRCodeScanner:!1,displayDialogResultSearch:!1,dialogSearchUser:!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;return console.log("PUBLICITE",this.state.publicite),D.default.isNil(this.state.publicite)||D.default.isNil(this.state.user)?null:this.state.isPubShow?y.default.createElement(F.default,{closeIntersticiel:function(){return t.setState({isPubShow:!1})},navigation:this.props.navigation}):void 0}},{key:"renderBottomHome",value:function(){var t=this;return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"lightblue"}},y.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:function(){(0,R.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(ce.updateinfo)):'android'===w.Platform.OS?t.requestCameraPermission():t.watchLocation())})},needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),w.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){}}])}}),this.makeCardSearch(),y.default.createElement(j.default,{ref:function(n){t.bottomSheetRef=n},snapPoints:[60,"30%","100%"],renderHeader:function(){return t.renderHeader()}}))}},{key:"renderInner",value:function(){return y.default.createElement(w.View,{style:{flex:1,backgroundColor:"green"}},y.default.createElement(w.Text,null,"Freud junior"))}},{key:"markerView",value:function(){if(this.state.currentMarker)return this._renderMarker2()}},{key:"renderHeader",value:function(){var t=this;return y.default.createElement(y.default.Fragment,null,y.default.createElement(w.View,{style:{position:"absolute",width:32,height:this.state.currentMarker?200:100,bottom:80,right:0,justifyContent:'center'}},y.default.createElement(S.default,{size:32,style:{marginRight:15},buttonColor:"white"}),y.default.createElement(S.default,{size:42,renderIcon:function(){return y.default.createElement(z.default,{name:"group-work",style:ye.actionButtonIcon})},style:{marginTop:40,marginRight:20},buttonColor:de.primary})),y.default.createElement(w.View,{style:{flex:1,backgroundColor:"white"}},this.markerView(),this.renderFilterMarker(),y.default.createElement(w.View,{style:{flexDirection:'row',height:60,justifyContent:'space-evenly',alignItems:'flex-end'}},y.default.createElement(w.View,{style:{flexDirection:'row',flex:1,marginBottom:10,justifyContent:'space-around',alignItems:'flex-end'}},y.default.createElement(W.FAB,{small:!0,icon:this.state.showFilterDistance?"close":"filter",color:de.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}))}}),y.default.createElement(W.FAB,{small:!0,icon:"add",color:"white",style:{backgroundColor:de.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 y.default.createElement(w.View,{style:{height:(0,C.responsiveHeight)(80),justifyContent:'center',backgroundColor:'white',margin:20}},y.default.createElement(w.View,{style:{height:(0,C.responsiveHeight)(30),justifyContent:'center'}},y.default.createElement(w.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),y.default.createElement(B.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),y.default.createElement(w.Text,null,y.default.createElement(w.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND"))),y.default.createElement(w.View,{style:{flexDirection:"row",flex:1}},y.default.createElement(I.default,{style:{flex:1}}),y.default.createElement(I.default,{style:{flex:1}})))}},{key:"makeMarkerButton",value:function(){var t=this;return this.state.currentMarker?y.default.createElement(w.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}},this.state.needRoad?this.showBtnClose():this.showBtnItineraire(),y.default.createElement(I.default,{style:{backgroundColor:"white",width:(0,C.responsiveWidth)(26),height:36,marginLeft:5,borderRadius:100,borderColor:"#9e9e9e",justifyContent:'center'},onPress:function(){return t.callItem(marker)}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"phone",size:16,color:de.primary,style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'#9e9e9e',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CALL"))))):y.default.createElement(w.View,{style:{flex:2,flexDirection:'row',justifyContent:'flex-end',marginEnd:20}})}},{key:"renderOldHome",value:function(){var t=this;return y.default.createElement(w.View,{style:ye.container},y.default.createElement(w.StatusBar,{backgroundColor:"#00000030",barStyle:"light-content",translucent:!0}),this.state.loadingDialog||this.props.loading?y.default.createElement(w.View,{style:{position:"absolute",zIndex:1,backgroundColor:"#00000050",width:this.state.loadingDialog?(0,C.responsiveWidth)(100):0,height:this.state.loadingDialog?(0,C.responsiveHeight)(100):0,flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(w.Text,{style:{fontSize:20,color:'white',fontWeight:'bold'}},N.default.t("LOADING_DOTS"))):null,y.default.createElement(k.default,{ref:function(n){t.map=n,null!=n&&(t.mapRef=n.getMapRef())},typeMap:this.state.typeMap,onMarkerClick:function(n){return t.onMarkerPress(n)},network:this.state.filternetwork,initialRegion:this.state.region,markers:this.state.markers,selectedMarker:this.state.currentMarker,myNetwork:this.state.myNetwork,lang:this.state.lang,myPosition:this.state.myPosition,onMapReady:'android'===w.Platform.OS?this.onMapReady:null,onLayout:'ios'===w.Platform.OS?this.onMapReady:null,needRoad:this.state.needRoad,onNeedRoadReady:function(n){t.setState({showProgress:!1})},onNeedRoadError:function(n){t.setState({showProgress:!1}),w.Alert.alert(N.default.t("PROBLEM_OCCUR"),N.default.t("PROBLEM_OCCUR_DIRECTION"),[{text:"Ok",onPress:function(){D.default.isNil(user.latitude)}}])}}),this.makeCardSearch(),this.showInterticiel(),this.makeSlidingUp(),this.makeDialogLoader(),this.makeDistanceDialog(),this.makeNetworkChangeDialog(),this.renderSearchUser(),this.state.showQRCodeScanner&&this.renderDialogQRCodeScanner(),this.state.displayDialogResultSearch&&this.renderDialogResultSearchUser(),y.default.createElement(H.default,{visible:this.state.snack_visible,textMessage:this.state.snack_text_message,autoHidingTime:5e3}),this.makeActionButon())}},{key:"renderTutoOldHome",value:function(){return y.default.createElement(w.View,{style:{flex:1}},y.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 y.default.createElement(w.View,{style:{height:200,backgroundColor:'#fff'}},this.makeMarkerInformation())}},{key:"makeDialogLoader",value:function(){return y.default.createElement(L.ProgressDialog,{visible:this.state.showProgress,title:N.default.t("LOADING_PROGRESS"),message:N.default.t("WAITING_LONG"),animationType:"slide",activityIndicatorSize:"large",activityIndicatorColor:"blue"})}},{key:"showMynetworkMap",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=null===n?this.state.user:n,l=this.state.myNetwork;return this.setState({filternetwork:l,page:0,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 y.default.createElement(M.MaterialDialog,{visible:this.state.dialogSliderVisible,title:N.default.t('MENU_FILTER'),onOk:function(){t.setState({dialogSliderVisible:!1,showProgress:!0}),setTimeout(function(){return t.filterPoint()},300)},cancelLabel:N.default.t("QUIT_"),okLabel:N.default.t('FILTER'),onCancel:function(){t.setState({dialogSliderVisible:!1})},onTouchOutside:function(){return t.setState({dialogSliderVisible:!1})}},y.default.createElement(w.Text,null,N.default.t('TEXT_FILTER_DISTANCE')," "),y.default.createElement(B.default,{items:this.filterOptions,defaultItem:this.state.valuePosition,labelPosition:"bottom",onSlidingComplete:function(n){return t.slidingComplete(n)}}),y.default.createElement(w.Text,null,y.default.createElement(w.Text,{style:{fontWeight:"bold"}},void 0===this.state.value?0:this.state.value)," km ",N.default.t("DISTANCE_ARROUND")))}},{key:"showFilterDialog",value:function(){this.setState({dialogSliderVisible:!0})}},{key:"filterPoint",value:function(){var t,n,o,s,u,c=this;return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.state,n=t.value,o=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(o,s,n,void 0,!0).then(function(t){c.treatNewData(c.state.prevRegion,t,!0)}).catch(function(t){c.setState({showProgress:!1}),w.Alert.alert(N.default.t("ERROR_FILTER"),N.default.t("ERROR_FILTER_TEXT"),[{text:N.default.t("CANCEL")},{text:N.default.t("RESTART"),onPress:function(){c.filterPoint()}}])})):(this.setState({showProgress:!1}),this.setState({snack_visible:!0,snack_text_message:"impossible de filtrer les \xe9lements"}),setTimeout(function(){c.setState({snack_visible:!1})},5e3));case 2:case"end":return l.stop()}},null,this,null,Promise)}},{key:"userChangeMarker",value:function(t){if(console.log("Item",t),null!==this.mapRef&&void 0!==this.mapRef){var n={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude),latitudeDelta:.03,longitudeDelta:.01};this.mapRef.animateToCoordinate({latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)},1e3),this.mapRef.animateToRegion(n,1e3)}}},{key:"geoLocatedAction",value:function(){var t=this;return y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap()},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"layers",style:ye.actionButtonIcon})))}},{key:"makeNetworkChangeDialog",value:function(){var t=this;return y.default.createElement(M.MaterialDialog,{title:N.default.t("CHOICE_NETWORK"),visible:this.state.dialogNetworkVisible,subtitle:N.default.t("CHOICE_NETWORK_TEXT"),onCancel:function(){return t.setState({dialogNetworkVisible:!1})},onOk:function(n){t.setState({dialogNetworkVisible:!1,page:0}),t.setState({showProgress:!0,filternetwork:t.state.filternetworkTemp}),setTimeout(function(){return t.showFilterNetwork()},500)}},y.default.createElement(w.FlatList,{style:{height:(0,C.responsiveHeight)(40)},data:this.state.networks,renderItem:function(n){var o=n.item;return t.renderRow(o)}}))}},{key:"renderDialogQRCodeScanner",value:function(){var t=this;return y.default.createElement(re.default.Container,{contentStyle:{width:(0,C.responsiveWidth)(80)},useNativeDriver:!0,visible:this.state.showQRCodeScanner},y.default.createElement(re.default.Title,null,N.default.t('SCAN')),y.default.createElement(w.ScrollView,{style:[ye.blockView,{borderBottomColor:ae.Color.borderColor,maxHeight:300}]},y.default.createElement(w.Text,null,N.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),y.default.createElement(ne.default,{onRead:function(n){t.setState({showQRCodeScanner:!1}),t.props.getQRCodeDetailAction(n.data)},flashMode:_.RNCamera.Constants.FlashMode.off})),y.default.createElement(re.default.Button,{bold:!0,label:N.default.t('CLOSE'),onPress:function(){t.setState({showQRCodeScanner:!1})}}))}},{key:"renderSearchUser",value:function(){var t=this;return y.default.createElement(M.MaterialDialog,{title:N.default.t("SEARCH"),visible:this.state.dialogSearchUser,onCancel:function(){return t.setState({dialogSearchUser:!1})},onOk:function(n){t.state.isPhoneAssureSearch?t.props.searchUserAction({dial_code:t.state.indicatif,phone:t.state.userName},!0):t.props.searchUserAction({dial_code:t.state.indicatif,name:t.state.userName},!0),t.setState({dialogSearchUser:!1})}},y.default.createElement(w.View,null,y.default.createElement(ee.default,{style:{marginTop:10,width:(0,C.responsiveWidth)(90),height:46,borderRadius:5,borderWidth:1,borderColor:"#ccc"},placeholder:this.state.isPhoneAssureSearch?N.default.t('PHONE'):N.default.t('NAME'),value:this.state.userName,keyboardType:this.state.isPhoneAssureSearch?'numeric':'default',onChangeText:function(n){t.setState({userName:n})},icon:y.default.createElement(te.default,{style:{zIndex:10},name:this.state.isPhoneAssureSearch?'phone':'user',size:20})}),y.default.createElement(w.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},y.default.createElement(te.default,{style:{paddingRight:20},name:"phone",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({isNumeroAssureSearch:!1,isPhoneAssureSearch:!0})}}),y.default.createElement(te.default,{style:{paddingRight:20},name:"user",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({isNumeroAssureSearch:!1,isPhoneAssureSearch:!1})}}),y.default.createElement(te.default,{style:{paddingRight:20},name:"qrcode",size:20,color:ae.Color.primaryColor,onPress:function(){t.setState({showQRCodeScanner:!0})}}))))}},{key:"renderDialogResultSearchUser",value:function(){var t=this,n=this.props,l=n.resultSearchUserByName;n.errorGetAvisImposition;return console.log("resultGetAvisImposition",l),y.default.createElement(re.default.Container,{contentStyle:{width:(0,C.responsiveWidth)(80)},useNativeDriver:!0,visible:this.state.displayDialogResultSearch},y.default.createElement(re.default.Title,null,N.default.t('USAGER_SEARCH')),y.default.createElement(w.ScrollView,{style:[ye.blockView,{borderBottomColor:ae.Color.borderColor,maxHeight:300}]},Array.isArray(l.response)&&l.response.length>0?l.response.map(function(n){return y.default.createElement(w.TouchableOpacity,{onPress:function(){t.props.searchUserReset(),t.setState({userName:'',displayDialogResultSearch:!1}),console.log("Markers",t.state.markers),t.state.markers.filter(function(t){return t.phone===n.phone}).length>0?t.userChangeMarker(n):(t.setState({markers:[].concat((0,o.default)(t.state.markers),[n])},function(){t.userChangeMarker(n)}),t.setState({currentNetworkSize:t.state.currentNetworkSize+1}))},style:[ye.paymentItem]},y.default.createElement(w.View,{style:{flexDirection:'column'}},y.default.createElement(w.Text,{style:ye.title},n.lastname),y.default.createElement(w.Text,{style:ye.description},n.phone+" | "+n.email+" | "+n.adresse)))}):y.default.createElement(w.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(w.Text,{style:oe.Typography.body1},N.default.t('NO_USAGER_CORRESPONDING_TO_SEARCH')))),y.default.createElement(re.default.Button,{bold:!0,label:N.default.t('OK'),onPress:function(){t.props.searchUserReset(),t.setState({displayDialogResultSearch:!1})}}))}},{key:"onRowPress",value:function(t){this.setState({filternetworkTemp:t})}},{key:"showNewDialogNetwork",value:function(){this.setState({dialogNetworkVisible:!0})}},{key:"showFilterNetwork",value:function(){var t,n,o,s=this;return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.state,n=t.myPosition,t.user,void 0!==(o=t.filternetwork)?(this.setState({showProgress:!0}),this.loadingMarkers(this.state.myPosition,o,this.state.value,0,!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 l.stop()}},null,this,null,Promise)}},{key:"showBtnItineraire",value:function(){var t=this;return y.default.createElement(I.default,{style:{backgroundColor:de.primary,width:(0,C.responsiveWidth)(30),height:36,borderRadius:100,marginLeft:5,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!0,showProgress:!0})}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"near-me",size:16,color:"white",style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'white',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("WAY"))))}},{key:"showBtnClose",value:function(){var t=this;return y.default.createElement(I.default,{style:{backgroundColor:de.reddeconnect,height:36,width:(0,C.responsiveWidth)(30),borderRadius:100,borderColor:"transparent",justifyContent:'center'},onPress:function(){t.setState({needRoad:!1,showProgress:!1})}},y.default.createElement(w.View,{style:{flexDirection:'row'}},y.default.createElement(z.default,{name:"close",size:16,color:"white",style:{alignSelf:'center'}}),y.default.createElement(w.Text,{style:{fontSize:15,color:'white',marginLeft:(0,C.responsiveWidth)(2)}},N.default.t("CANCEL"))))}},{key:"getHypervisorActionButton",value:function(){var t=this;return y.default.createElement(S.default,{buttonColor:de.accent},y.default.createElement(S.default.Item,{buttonColor:"#3498db",title:N.default.t("REPOSITIONNING"),onPress:function(){return t.refocusMap(!1)},size:48},y.default.createElement(z.default,{name:"person-pin",style:ye.actionButtonIcon})),y.default.createElement(S.default.Item,{buttonColor:de.primary,title:N.default.t("CHANGE_MAP"),onPress:function(){t.onMapTypeChange()},size:48},y.default.createElement(z.default,{name:"map",style:ye.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 y.default.createElement(w.TouchableOpacity,{key:t.id,style:{margin:5},onPress:function(){n.moveToMarker(t)}},y.default.createElement(w.Text,{style:{flex:1,fontSize:14,color:"#000"}},null===t.firstname?t.adresse:t.firstname),y.default.createElement(w.Text,{style:{flex:1,fontSize:12}},t.lastname),y.default.createElement(w.Text,{style:{flex:1,fontSize:13,alignSelf:'flex-end',color:de.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"),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission()}}],{cancelable:!1})})}).catch(function(o){console.log("on retreive>getmarkers",o.message),n.setState({loadingDialog:!1}),n.state.allpoint.length<=0&&(console.log("no point"),w.Alert.alert(N.default.t("UNABLE_TO_CONNECT_TITLE"),N.default.t('TEXT_NETWORK_UNABLE'),[{text:N.default.t("NO"),onPress:function(){w.BackHandler.exitApp()}},{text:N.default.t("YES"),onPress:function(){n.state.allpoint.length<=0&&(n.setState({loadingDialog:!0}),null!==t&&void 0!==t?n.retrieveAllPoint(t):n.requestCameraPermission())}}],{cancelable:!1}))})}},{key:"showLoadMoreView",value:function(){var t=this;if(this.state.isNeedLoadMore)return y.default.createElement(w.View,{style:{flex:1,flexDirection:'row',width:(0,C.responsiveWidth)(90)}},y.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"}},y.default.createElement(z.default,{name:"refresh",size:32})),y.default.createElement(w.View,{style:{backgroundColor:"#FFFFFFA0",width:(0,C.responsiveWidth)(20),height:30,borderRadius:12,justifyContent:'center',alignItems:'center',alignSelf:'center'}},y.default.createElement(w.Text,null,(this.state.markers.length,this.state.markers.length)," / ",this.state.currentNetworkSize," ")))}},{key:"showLoadingMapView",value:function(){if(this.state.isLoadingMap)return y.default.createElement(w.View,{style:{flexDirection:'row',margin:10,width:(0,C.responsiveWidth)(95),backgroundColor:'white',justifyContent:"center",alignSelf:"center"}},y.default.createElement(w.Text,{style:{fontSize:12,alignSelf:'center'}},N.default.t("LOADING_TEXT_MARKERS")+" "+this.filterOptions[this.state.valuePosition].value+" km "+N.default.t("DISTANCE_ARROUND")),y.default.createElement(w.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,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(c,f){var h=l.state.allpoint;console.log("AllPoint",h),console.log("Home state",l.state);var p=void 0!==s?s:l.state.page,y=h.filter(function(l,s){var u={longitude:parseFloat(l.longitude),latitude:parseFloat(l.latitude)};return le.getDistance(t,u)<=1e3*o&&l.network===n.name});console.log("Data before comparative",y),l.state.valuePosition>1&&(y=y.length2&&void 0!==arguments[2]&&arguments[2],s=n;if(console.log("Data received",n),n.length>0){var u=s;l&&this.setState({showProgress:!1}),u.length>0&&this.setState({markers:u,prevRegion:t}),s.length8?(0,U.cutString)(P(t[l],' '),6):P(t[l],' ')):(0,L.default)(l,'destinataire')?t[l].length>13?(0,U.cutString)(t[l],13):t[l]:(0,L.default)(l,'date')?(0,U.cutStringWithoutDot)(t[l],16):t[l]))}))},n.renderHistoryTransactionList=function(t){var l=n.props,o=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!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.contentService,{borderBottomColor:C.Color.primaryColor}]},(0,U.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:C.Color.primaryColor}),y.default.createElement(p.Text,{style:(V.Typography.overline,C.Color.grayColor,{marginTop:4})},h.default.t(t.label)))})),o.response.map(function(l,o){return n.renderHistoryTransactionItem(l,o,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},n.renderHistoryTransaction=function(t){return y.default.createElement(y.default.Fragment,null,n.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:C.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),n.renderHistoryTransactionList(t)))},n.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'}),n.scrollY=new p.Animated.Value(0),n.scrollHeaderY=new p.Animated.Value(0),n.deltaY=new p.Animated.Value(0),n.bgBannerY=new p.Animated.Value(0),n.heightImageBanner=E.scaleWithPixel(250,1),n.marginTopBanner=n.heightImageBanner-n.state.heightHeader-40,n.currentLocale=h.default.locale.includes("fr")?"fr":"en-gb",F.locale(n.currentLocale),b.IlinkEmitter.on("langueChange",n.updateLangue.bind((0,u.default)(n))),b.IlinkEmitter.on("refreshWallet",n.refresh),n.props.getWalletTransactionHistoryReset(),n.props.depositActionReset(),n.props.resetWalletListDetailReducer(),n.props.getUserIdentificationResetAction(),console.warn("Wallet User Props",n.props),n.getWalletDetail(),n.willFocus=n.props.navigation.addListener('willFocus',function(t){n.getWalletDetail()}),n}return(0,f.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,o=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var n=l.response[0];console.log("WALLET RECUPERER",n),this.setState({wallet:n,isTriggerRefresh:!1})}null!==o&&(console.log("RESULT NUMBER DETAIL",o),void 0!==o.response&&this.setState({isIdentified:o.response.isIdentified,isIdentifiedValidated:o.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 console.warn("Wallet Detail user Props",this.props),y.default.createElement(y.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),y.default.createElement(p.StatusBar,{backgroundColor:C.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!==this.props.error&&null!==this.props.error.data&&y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(k.default,{style:G.lottie,source:r(d[51]),autoPlay:!0,loop:!1}),y.default.createElement(p.Text,{style:V.Typography.body1},this.props.error.data.error)))}}]),l})(y.Component);z.navigatorStyle={navBarBackgroundColor:C.Color.primaryColor,statusBarColor:C.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},z.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:C.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WALLET')}};var M=(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)})(z);e.default=M;var G=p.StyleSheet.create({container:{flex:1,backgroundColor:C.Color.containerBackgroundColor},indicator:{height:2},tab:{width:E.getWidthDevice()/2},tabbar:{height:40},lottie:{width:248,height:248},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},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,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:C.Color.borderColor,borderColor:C.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:C.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}})},1578,[4,1,8,9,10,12,11,13,15,18,882,720,1023,884,1034,553,1455,773,1077,535,1414,1480,1482,1576,1483,1424,689,744,1048,1047,1040,1042,1044,1045,1046,1043,1049,1061,1458,719,846,1190,1460,815,1459,816,1579,1491,1492,1493,1490,1580]); +__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])),u=l(r(d[6])),f=l(r(d[7])),p=t(r(d[8])),y=r(d[9]),T=l(r(d[10])),h=l(r(d[11])),E=t(r(d[12])),w=l(r(d[13])),C=r(d[14]),x=l(r(d[15])),I=l(r(d[16])),V=r(d[17]),b=r(d[18]),D=r(d[19]),R=r(d[20]),A=r(d[21]),O=r(d[22]),v=r(d[23]),S=r(d[24]),_=l(r(d[25])),L=l(r(d[26])),N=r(d[27]);r(d[28]),r(d[29]),r(d[30]),r(d[31]),r(d[32]),r(d[33]),r(d[34]),r(d[35]);var B=r(d[36]),W=r(d[37]),P=r(d[38]),k=r(d[39]),U=l(r(d[40])),H=t(r(d[41])),F=r(d[42]),Y=l(r(d[43])),j=l(r(d[44])),z=r(d[45]),M=r(d[46]),G=r(d[47]),K=r(d[48]);r(d[49]);var X=(function(t){function l(t){var n;return(0,o.default)(this,l),(n=(0,s.default)(this,(0,c.default)(l).call(this,t))).getWalletDetail=function(){n.props.getWalletDetailActivated(n.props.navigation.state.params.userId,null),(0,k.readUser)().then(function(t){t&&void 0!==t&&(n.setState({user:t}),n.props.getUserIdentificationAction(t.phone),n.props.getWalletTransactionHistoryUser(t.id))})},n.getWalletIcon=function(t){return N.baseUrl+"/datas/img/network/"+K(t.network,{lower:!0})+"-logo.png"},n.getCreationDateToHumanFormat=function(t){var l=z.tz(t,z.tz.guess()).format();return z(l).fromNow()},n.handleIndexChange=function(t){return n.setState({index:t})},n.imageScale=function(){return n.scrollY.interpolate({inputRange:[0,100],outputRange:[1,.5],extrapolate:'clamp'})},n.imageTranslateY=function(){return n.scrollY.interpolate({inputRange:[0,100],outputRange:[-5,50],extrapolate:'clamp'})},n.bgHeaderTranslateY=function(){return n.scrollY.interpolate({inputRange:[0,150],outputRange:[-5,0],extrapolate:'clamp'})},n.refresh=function(){var t=n.props.navigation.state.params.userId;n.props.getWalletDetailActivated(t,null)},n.renderHeader=function(t){return p.default.createElement(y.View,{style:[J.containField,{backgroundColor:C.Color.cardBackgroundColor,zIndex:11,shadowColor:C.Color.borderColor,borderColor:C.Color.borderColor}]},p.default.createElement(y.View,{style:[J.contentLeftItem]},p.default.createElement(y.Text,{numberOfLines:1,style:[b.Typography.caption2,b.Typography.semibold]},h.default.t('COUNTRY')),p.default.createElement(y.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:b.Typography.caption1},t.country)),p.default.createElement(y.View,{style:{flex:1,alignItems:'center',justifyContent:'flex-end'}},p.default.createElement(y.Animated.Image,{source:{uri:n.getWalletIcon(t)},style:{width:120,height:120,borderRadius:60,position:'absolute',alignSelf:'center',backgroundColor:C.Color.whiteColor,bottom:70,transform:[{scale:n.imageScale()},{translateY:n.imageTranslateY()}]}}),p.default.createElement(y.View,{style:{marginTop:1,flex:1,alignItems:'center',justifyContent:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold],numberOfLines:1},t.network),p.default.createElement(y.View,{style:{flexDirection:'row'}},p.default.createElement(I.default,{icon:p.default.createElement(T.default,{name:"link",size:20,color:C.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:C.Color.whiteColor},primary:!0,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionLinkAccountUserScreen,lottie:{source:r(d[50]),loop:!0},isIdentified:n.props.resultUserIdentification.response.isIdentified})}},"\xa0",h.default.t('LINK_CARD_REATTACH')),p.default.createElement(I.default,{icon:p.default.createElement(T.default,{name:"update",size:20,color:C.Color.whiteColor}),primary:!0,style:{width:110,borderTopLeftRadius:0,borderBottomLeftRadius:0},onPress:function(){n._scrollView.scrollToEnd()}},"\xa0\xa0",h.default.t('HISTORY'))))),p.default.createElement(y.View,{style:J.contentLeftItem},p.default.createElement(y.Text,{numberOfLines:1,style:[b.Typography.caption2,b.Typography.semibold]},h.default.t('CREATION_DATE')),p.default.createElement(y.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:b.Typography.caption1},z(t.created_date).format('DD/MM/YYYY'))))},n.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,h.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(y.ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(y.Text,null,h.default.t('LOADING_DOTS'))))},n.renderAccountDetail=function(t){return p.default.createElement(y.View,{style:{flexDirection:'row',flex:1,justifyContent:'space-between'}},p.default.createElement(y.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(y.View,{style:[J.circlePoint,{backgroundColor:C.Color.primaryColor}]},p.default.createElement(w.default,{name:"md-wallet",size:28,color:C.Color.whiteColor})),p.default.createElement(y.View,null,p.default.createElement(y.Text,{style:(b.Typography.title3,C.Color.primaryColor,{marginBottom:3})},h.default.t('PRINCIPAL_ACCOUNT_TITLE')),p.default.createElement(y.Text,{style:[b.Typography.body2]},M(t.balance,' ')+" "+t.currency_code))),p.default.createElement(y.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(y.View,{style:[J.circlePoint,{backgroundColor:C.Color.primaryColor}]},p.default.createElement(w.default,{name:"md-key",size:28,color:C.Color.whiteColor})),p.default.createElement(y.View,null,p.default.createElement(y.Text,{style:(b.Typography.title3,C.Color.primaryColor,{marginBottom:3})},h.default.t('NUMERO_COMPTE')),p.default.createElement(y.Text,{style:[b.Typography.body2]},t.user_code))))},n.renderDetailWallet=function(t){return(0,P.isEmptyObject)(t)?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):p.default.createElement(p.default.Fragment,null,n.state.triggerTransferCommission&&n.renderDialogTransferCommissionResponse(),p.default.createElement(y.View,{style:J.container},p.default.createElement(y.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:C.Color.primaryColor,height:140-n.state.scrollHeaderY}}),p.default.createElement(y.ScrollView,{ref:function(t){return n._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:y.Animated.event([{nativeEvent:{contentOffset:{y:n.scrollY}}}],{listener:function(t){n.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},p.default.createElement(y.View,{style:{marginTop:80}},n.renderHeader(t),p.default.createElement(y.View,{style:[J.blockView,{borderBottomColor:C.Color.borderColor}]},n.renderAccountDetail(t),p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:[J.checkDefault,{borderBottomColor:C.Color.borderColor}]},p.default.createElement(y.Text,{style:[b.Typography.title3,b.Typography.semibold]},h.default.t('TRANSACTIONS'))),p.default.createElement(y.View,{style:J.transactionContainer},p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionDepotUserScreen,onGoBack:function(){return n.refresh()},lottie:{source:r(d[51]),loop:!1}})},activeOpacity:.9},p.default.createElement(T.default,{name:"arrow-bottom-right",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:J.contentTitle},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('ENVOIE_ARGENT')))))),p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionRetraitUserScreen,onGoBack:function(){return n.refresh()},lottie:{source:r(d[51]),loop:!0}})},activeOpacity:.9},p.default.createElement(T.default,{name:"arrow-top-left",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:J.contentTitle},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('RETRAIT_ARGENT'))))))),p.default.createElement(y.View,{style:J.transactionContainer},p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){1===n.props.result.response.has_nano_credit?n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionNanoCreditScreen,wallet:t,lottie:{source:r(d[52]),loop:!0},isNanoCredit:!0}):(0,P.displayToast)(h.default.t('NANO_CREDIT_DISABLE'))},activeOpacity:.9},p.default.createElement(T.default,{name:"cash-multiple",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:{paddingTop:5}},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('NANO_CREDIT'))))))),p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionNanoSanteUserScreen,wallet:t,lottie:{source:r(d[52]),loop:!0},isNanoSante:!0})},activeOpacity:.9},p.default.createElement(T.default,{name:"heart-multiple",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:{paddingTop:20}},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('NANO_SANTE'))))))),p.default.createElement(y.View,{style:J.transactionContainer},p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionPaiementFacture,onGoBack:function(){return n.refresh()},lottie:{source:r(d[53]),loop:!0}})},activeOpacity:.9},p.default.createElement(T.default,{name:"file-document",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:J.contentTitle},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('PAIEMENT_FACTURE'))),p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{style:(b.Typography.overline,C.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),p.default.createElement(y.View,{style:[J.containerTouch]},p.default.createElement(y.TouchableOpacity,{style:J.contain,onPress:function(){n.props.navigation.push(G.walletOptionSelect,{optionSelect:P.optionIdentificationUserScreen,lottie:{source:r(d[54]),loop:!0},isIdentified:n.props.resultUserIdentification.response.isIdentified})},activeOpacity:.9},p.default.createElement(T.default,{name:"pencil-plus",color:C.Color.primaryColor,size:30,style:J.imageBanner}),p.default.createElement(y.View,{style:[J.content]},p.default.createElement(y.View,{style:{paddingTop:20}},p.default.createElement(y.Text,{style:[b.Typography.headline,b.Typography.semibold]},h.default.t('CREATION_IDENTIFICATION_CLIENT'))),p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{style:(b.Typography.overline,C.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))))),n.renderHistoryTransaction(t))))))},n.renderModalHistoryDetail=function(){n.state.historyItemDetail;return p.default.createElement(_.default.Container,{useNativeDriver:!0,visible:n.state.displayModalHistory},p.default.createElement(_.default.Title,null,h.default.t('HISTORY_DETAIL')),p.default.createElement(y.View,null,p.default.createElement(y.View,{style:[J.blockView,{borderBottomColor:C.Color.borderColor}]},p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{style:[J.body2]},h.default.t('OPERATION'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.operation))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{style:[J.body2]},h.default.t('TRANSACTION_ID'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.id_transaction))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{style:[J.body2]},"Date")),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.date))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('INIT_COUNTRY'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.init_country))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('AMOUNT'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.montant))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('FEES_AND_TAXES'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.frais))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('NET_AMOUNT'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.montant_net_init))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('EMETTEUR'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.emetteur))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('DESTINATAIRE'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.destinataire))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('FINAL_COUNTRY'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.final_country))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('NET_AMOUNT'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.montant_net_final))),p.default.createElement(y.View,{style:{flexDirection:'row',marginTop:10}},p.default.createElement(y.View,{style:{flex:1}},p.default.createElement(y.Text,{tyle:[b.Typography.body2]},h.default.t('ACTIVE_WALLET'))),p.default.createElement(y.View,{style:{flex:1,alignItems:'flex-end'}},p.default.createElement(y.Text,{style:[b.Typography.caption1,C.Color.grayColor]},n.state.historyItemDetail.reseau_payeur))))),p.default.createElement(_.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){n.setState({displayModalHistory:!n.state.displayModalHistory})}}))},n.renderHistoryTransactionItem=function(t,l,o){return p.default.createElement(y.TouchableOpacity,{onPress:function(){n.setState({displayModalHistory:!0,historyItemDetail:t})},style:[J.contentService,{borderBottomColor:C.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,o){return p.default.createElement(y.View,{style:{alignItems:'center'},key:o},p.default.createElement(y.Text,{style:(b.Typography.overline,C.Color.grayColor,{marginTop:4})},(0,L.default)(l,'montant')?" "+(t[l].length>8?(0,P.cutString)(M(t[l],' '),6):M(t[l],' ')):(0,L.default)(l,'destinataire')?t[l].length>13?(0,P.cutString)(t[l],13):t[l]:(0,L.default)(l,'date')?(0,P.cutStringWithoutDot)(t[l],16):t[l]))}))},n.renderHistoryTransactionList=function(t){var l=n.props,o=l.resultTransaction,s=l.errorTransaction;return null!==s?void 0!==s.data?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},s.data.error)):p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},s)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:[J.contentService,{borderBottomColor:C.Color.primaryColor}]},(0,P.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(y.View,{style:{alignItems:'center'},key:l},p.default.createElement(T.default,{name:t.icon,size:24,color:C.Color.primaryColor}),p.default.createElement(y.Text,{style:(b.Typography.overline,C.Color.grayColor,{marginTop:4})},h.default.t(t.label)))})),o.response.map(function(l,o){return n.renderHistoryTransactionItem(l,o,t)})):p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_WALLET_HISTORY'))):void 0},n.renderHistoryTransaction=function(t){return p.default.createElement(p.default.Fragment,null,n.props.loadingTransaction?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,h.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(y.ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(y.Text,null,h.default.t('LOADING_DOTS')))):p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:[J.checkDefault,{borderBottomColor:C.Color.borderColor}]},p.default.createElement(y.Text,{style:[b.Typography.title3,b.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),n.renderHistoryTransactionList(t)))},n.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,password:'',isLogged:!1},K.extend({'+':'plus'}),n.scrollY=new y.Animated.Value(0),n.scrollHeaderY=new y.Animated.Value(0),n.deltaY=new y.Animated.Value(0),n.bgBannerY=new y.Animated.Value(0),n.heightImageBanner=E.scaleWithPixel(250,1),n.marginTopBanner=n.heightImageBanner-n.state.heightHeader-40,n.currentLocale=h.default.locale.includes("fr")?"fr":"en-gb",z.locale(n.currentLocale),V.IlinkEmitter.on("langueChange",n.updateLangue.bind((0,u.default)(n))),V.IlinkEmitter.on("refreshWallet",n.refresh),n.props.getWalletTransactionHistoryReset(),n.props.depositActionReset(),n.props.resetWalletListDetailReducer(),n.props.passwordValidationReset(),n.props.getUserIdentificationResetAction(),console.warn("Wallet User Props",n.props),n.getWalletDetail(),n.willFocus=n.props.navigation.addListener('willFocus',function(t){n.getWalletDetail()}),n}return(0,f.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,o=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var n=l.response[0];console.log("WALLET RECUPERER",n),this.setState({wallet:n,isTriggerRefresh:!1})}null!==o&&(console.log("RESULT NUMBER DETAIL",o),void 0!==o.response&&this.setState({isIdentified:o.response.isIdentified,isIdentifiedValidated:o.response.isIdentifiedValidated}))}},{key:"componentWillReceiveProps",value:function(t){var l=this;null!==t.resultPasswordValidation&&200===t.resultPasswordValidation.status&&(this.setState({isLogged:!0}),this.props.passwordValidationReset()),null!==t.errorPasswordValidation&&(console.log(t.errorPasswordValidation),y.Alert.alert(h.default.t("ERROR_LABEL"),''+t.errorPasswordValidation,[{text:h.default.t("OK"),onPress:function(){l.props.passwordValidationReset()}}],{cancelable:!1}),this.setState({isLogged:!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(){var t=this;return console.warn("Wallet Detail user Props",this.props),p.default.createElement(p.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),p.default.createElement(y.StatusBar,{backgroundColor:C.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?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):"MIN"!==this.props.result.response.password_validation||this.state.isLogged?this.renderDetailWallet(this.props.result.response):p.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},p.default.createElement(H.View,{ref:function(l){t.codeAgentAnim=l}},p.default.createElement(F.Fumi,{iconClass:Y.default,label:h.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,iconName:"lock",value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:J.input})),p.default.createElement(j.default,{loading:this.props.loadingPasswordValidation,onPress:function(){t.props.passwordValidationAction({password:t.state.password,user_id:t.props.navigation.state.params.agentId,network_agent_id:t.props.result.response.network_agent_id})}},h.default.t('SUBMIT_LABEL'))):null!==this.props.error&&null!==this.props.error.data&&p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(U.default,{style:J.lottie,source:r(d[55]),autoPlay:!0,loop:!1}),p.default.createElement(y.Text,{style:b.Typography.body1},this.props.error.data.error)))}}]),l})(p.Component);X.navigatorStyle={navBarBackgroundColor:C.Color.primaryColor,statusBarColor:C.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},X.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:C.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WALLET')}};var q=(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,loadingPasswordValidation:t.passwordValidationReducer.loading,resultPasswordValidation:t.passwordValidationReducer.result,errorPasswordValidation:t.passwordValidationReducer.error}},function(t){return(0,W.bindActionCreators)({getWalletDetailActivated:R.getWalletDetailActivated,getWalletTransactionHistoryUser:O.getWalletTransactionHistoryUser,transferCommissionAction:S.transferCommissionAction,resetWalletListDetailReducer:R.resetWalletListDetailReducer,resetCommissionReducer:S.resetCommissionReducer,getWalletTransactionHistoryReset:O.getWalletTransactionHistoryReset,depositActionReset:A.depositActionReset,getUserIdentificationAction:v.getUserIdentificationAction,getUserIdentificationResetAction:v.getUserIdentificationResetAction,passwordValidationAction:R.passwordValidationAction,passwordValidationReset:R.passwordValidationReset},t)})(X);e.default=q;var J=y.StyleSheet.create({container:{flex:1,backgroundColor:C.Color.containerBackgroundColor},indicator:{height:2},tab:{width:E.getWidthDevice()/2},tabbar:{height:40},lottie:{width:248,height:248},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},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,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:C.Color.borderColor,borderColor:C.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:C.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}})},1578,[4,1,8,9,10,12,11,13,15,18,882,720,1023,884,1034,553,1455,773,1077,535,1414,1480,1482,1576,1483,1424,689,744,1048,1047,1040,1042,1044,1045,1046,1043,1049,1061,1458,719,846,750,704,539,1488,1190,1460,815,1459,816,1579,1491,1492,1493,1490,1580]); __d(function(i,a,x,t,o,k,s){o.exports={v:"5.5.8",fr:60,ip:0,op:596,w:1047,h:777,nm:"00.03 - onboarding",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 9 Copy",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-90,ix:10},p:{a:0,k:[90,106.5,0],ix:2},a:{a:0,k:[102,79.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:353,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 7",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[100.463,80.917,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-2.86,3.54],[-4.09,-2.39],[2.67,-3.77],[4.29,2.63]],o:[[-4.3,-2.62],[2.88,-3.55],[4.09,2.39],[-2.66,3.78],[0,0]],v:[[-5.155,6.563],[-7.435,-4.657],[4.875,-6.677],[7.755,4.393],[-5.155,6.563]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 7",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[103.599,80.259,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-2.41,2.82],[-2.1,2.75],[-12.11,-5.5],[-3.6,-1.52],[2.16,-3.24],[2.19,-2.93],[10.69,8.1],[2.86,2.3]],o:[[2.59,-2.73],[2.8,2.21],[10.04,7.29],[-1.81,3.05],[-1.97,3.3],[-3.69,-1.6],[-12.85,-6.26],[2.46,-2.58],[0,0]],v:[[-26.457,-10.558],[-18.957,-18.898],[-9.887,-19.908],[23.403,-.588],[26.453,7.752],[20.253,17.562],[9.813,19.912],[-25.537,-1.748],[-26.457,-10.558]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.652915000916,.857227981091,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[101.898,78.947,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-5.56,6.87],[-18.38,-7.29],[5.46,-7.75],[14.95,12.49]],o:[[6.55,-6.35],[13.93,11.14],[-4.38,8.06],[-19.63,-8.52],[0,0]],v:[[-33.395,-6.029],[-15.235,-25.889],[33.395,2.161],[18.635,25.891],[-33.395,-6.029]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[28.118,30.452,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-5.56,6.86],[-.18,-.14],[6.55,-6.35],[.2,.16]],o:[[6.56,-6.33],[.19,.15],[-5.55,6.87],[-.2,-.16],[0,0]],v:[[-9.372,9.659],[8.818,-10.151],[9.368,-9.711],[-8.782,10.149],[-9.372,9.659]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.541000008583,.528999984264,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 15 Copy 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:15,ix:10},p:{a:0,k:[30,27,0],ix:2},a:{a:0,k:[24,21,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 43",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[24.473,18.911,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.19,-.23],[-.72,-1.18],[-1.45,-1.19],[-.83,1.01],[2.94,2.41],[1.36,.49],[.45,0]],o:[[-.44,0],[-.38,.46],[.75,1.23],[2.94,2.42],[.83,-1.01],[-1.45,-1.2],[-.66,-.24],[0,0]],v:[[-4.515,-4.843],[-5.475,-4.503],[-4.945,-1.913],[-1.485,1.907],[5.475,4.497],[1.585,-1.823],[-2.835,-4.483],[-4.515,-4.843]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[2.12,1.75],[.79,1.3],[-.62,.75],[-1.67,-.61],[-1.52,-1.25],[1.31,-1.6],[.66,0]],o:[[-1.76,0],[-1.51,-1.24],[-.92,-1.52],[.61,-.75],[1.43,.52],[2.91,2.39],[-.36,.43],[0,0]],v:[[4.5,5.604],[-1.97,2.494],[-5.6,-1.516],[-6.06,-4.986],[-2.57,-5.196],[2.07,-2.416],[6.06,4.984],[4.5,5.604]],c:!1},ix:2},nm:"Trazado 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"mm",mm:1,nm:"Combinar trazados 1",mn:"ADBE Vector Filter - Merge",hd:!1},{ty:"fl",c:{a:0,k:[.650979995728,.858824014664,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 43",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 41",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[24.655,19.079,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-1.33,1.61],[3.8,3.12],[1.33,-1.61],[-3.79,-3.12]],o:[[3.8,3.11],[1.33,-1.62],[-3.79,-3.11],[-1.33,1.62],[0,0]],v:[[-2.409,2.93],[6.871,5.65],[2.401,-2.93],[-6.869,-5.65],[-2.409,2.93]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.588235020638,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 41",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 39",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[23.163,21.055,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-1.57,1.9],[-.03,.05],[3.7,3.05],[1.74,-1.53],[.08,-.09],[-3.8,-3.12]],o:[[3.79,3.11],[.03,-.04],[1.37,-1.95],[-3.61,-2.96],[-.09,.08],[-1.56,1.9],[0,0]],v:[[-2.911,3.468],[6.549,5.958],[7.339,4.958],[2.509,-3.132],[-6.391,-6.282],[-7.191,-5.332],[-2.911,3.468]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.000899999985,.471368998289,.800696015358,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 39",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 8 Copy 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[31.5,33,0],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 6",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[29.528,31.203,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[.51,.37],[0,0],[-.83,0],[0,.84],[1.09,.44],[0,1.28],[-1.35,.22],[0,0],[0,0],[0,0],[-.43,-.25],[0,0],[.94,0],[0,-.59],[-1.27,-.53],[0,-1.31],[1.51,-.25],[0,0]],o:[[0,0],[-.86,-.02],[0,0],[.53,.35],[1.04,0],[0,-.81],[-1.49,-.58],[0,-1.21],[0,0],[0,0],[0,0],[.88,.03],[0,0],[-.31,-.18],[-1.13,0],[0,.76],[1.51,.62],[0,1.16],[0,0],[0,0]],v:[[-.494,6.026],[-.494,4.546],[-2.744,3.896],[-2.394,2.916],[-.274,3.546],[1.466,2.106],[-.194,.356],[-2.614,-2.184],[-.394,-4.544],[-.394,-6.024],[.516,-6.024],[.516,-4.604],[2.426,-4.084],[2.056,-3.114],[.206,-3.614],[-1.354,-2.354],[.466,-.684],[2.746,2.006],[.426,4.496],[.426,6.026]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.439215987921,.764706015587,.992156982422,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,32.203,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[4.77,0],[0,4.77],[-4.77,0],[0,-4.77]],o:[[0,4.77],[-4.77,0],[0,-4.77],[4.77,0],[0,0]],v:[[8.633,.003],[.003,8.633],[-8.637,.003],[.003,-8.637],[8.633,.003]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.588235020638,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:3,nm:"\u25bd Group 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[31.5,32.15,0],ix:2},a:{a:0,k:[31.5,31.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"\u25a8 Clip 3",parent:7,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{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:[[-10.272,-10.272],[10.268,-10.272],[10.268,10.268],[-10.272,10.268]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Clip 2",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fill 1",parent:4,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,31.553,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[5.68,0],[0,5.68],[-5.67,0],[0,-5.67]],o:[[0,5.68],[-5.67,0],[0,-5.67],[5.68,0],[0,0]],v:[[10.277,-.002],[-.003,10.268],[-10.273,-.002],[-.003,-10.272],[10.277,-.002]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.438284009695,.763110995293,.990489006042,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:3,nm:"Clip 2",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,31.553,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0}]},{id:"comp_3",layers:[{ddd:0,ind:1,ty:0,nm:"plane",refId:"comp_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[247.5,361,0],ix:2},a:{a:0,k:[247.5,361,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:495,h:722,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[267.053,303.83,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:240,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.32,2.672],[26.61,5.204],[-25.939,-13.44],[-6.443,3.09]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:251,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992],[-4.447,.514]],c:!0}]},{t:263,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992],[-4.447,.514]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.285308986902,.551240026951,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:239,op:264,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[254.139,298.466,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:232,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[5.382,-6.048],[36.28,-6.293],[-29.907,-6.53]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:233,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[8.976,-3.208],[34.13,-4.91],[-30.15,-7.393]],c:!0}]},{t:244,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[30.544,13.834],[22.294,2.124],[-30.546,-13.836]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098039216,.850980392157,.737254901961,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 25",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[249.305,298.889,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:225,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.832,19.195],[34.806,-6.362],[-32.023,-6.487],[-32.146,19.18]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:247,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836],[-2.233,-.334]],c:!0}]},{t:272,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836],[-2.233,-.334]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490196,.356862745098,.76862745098,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 26",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[235.807,293.036,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:232,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[28.272,9.541],[27.844,.35],[-33.591,-3.387],[-24.606,-.116]],c:!0}]},{t:242,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[36.474,11.5],[27.844,.35],[-36.476,-11.5],[-25.843,-8.147]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098039216,.850980392157,.737254901961,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:9,ty:3,nm:"\u25bd hand",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[244.637,349.5,0],ix:2},a:{a:0,k:[172.5,339,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:10,ty:3,nm:"\u25bd finger",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[264.12,452.108,0],ix:2},a:{a:0,k:[78,225,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:11,ty:4,nm:"Fill 22",parent:10,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[78.09,224.998,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:148,s:[{i:[[0,0],[0,0],[2.28,17.78],[-4.1,38.13],[.99,1.31],[3.7,-30.89],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[.22,-2.07],[-3.9,-5.14],[-3.7,30.89],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[24.939,-65.448],[24.779,-71.968],[5.779,-46.668],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:162,s:[{i:[[0,0],[0,0],[2.28,17.78],[3.647,33.758],[1.55,.542],[-6.192,-24.002],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[-.224,-2.07],[-7.173,-2.508],[5.016,19.445],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[6.543,-61.704],[2.037,-68.269],[-8.637,-34.88],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]},{t:195,s:[{i:[[0,0],[0,0],[2.28,17.78],[-4.1,38.13],[.99,1.31],[3.7,-30.89],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[.22,-2.07],[-3.9,-5.14],[-3.7,30.89],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[24.939,-65.448],[24.779,-71.968],[5.779,-46.668],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 22",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:12,ty:5,nm:"LINK",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:101,s:[262.517,508.611,0],to:[-2.667,-35,0],ti:[2.667,30.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:114,s:[246.517,298.611,0],to:[-2.667,-30.167,0],ti:[0,-3.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:130,s:[246.517,327.611,0],to:[0,3.333,0],ti:[0,1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:147,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:155,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:160,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:166,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:206,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:219,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{t:225,s:[246.517,318.611,0]}],ix:2},a:{a:0,k:[.741,-6.297,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:101,s:[7,7,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:114,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:130,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:147,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:155,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:160,s:[422,422,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:166,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:206,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:219,s:[342,342,100]},{t:225,s:[0,0,100]}],ix:6}},ao:0,t:{d:{k:[{s:{s:17.6399993896484,f:"HelveticaNeue-Medium",t:"LINK",j:2,tr:0,lh:21.1679992675781,ls:0,fc:[1,1,1]},t:0}]},p:{},m:{g:1,a:{a:0,k:[0,0],ix:2}},a:[]},ip:100,op:236,st:56,bm:0},{ddd:0,ind:13,ty:4,nm:"Bg",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:94,s:[262.517,508.611,0],to:[-2.667,-35,0],ti:[2.667,30.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:107,s:[246.517,298.611,0],to:[-2.667,-30.167,0],ti:[0,-3.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:123,s:[246.517,327.611,0],to:[0,3.333,0],ti:[0,1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:140,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:149,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:157,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{t:165,s:[246.517,318.611,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:94,s:[7,7,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:107,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:123,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:140,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:149,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:157,s:[132,132,100]},{t:165,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[67,26],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:4,ix:4},nm:"Trazado de rect\xe1ngulo 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.145098039216,.458823559331,.988235353956,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:-5,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Bg",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:94,op:235,st:50,bm:0},{ddd:0,ind:14,ty:5,nm:"$",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-6.683,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:50,s:[239,482,0],to:[-4.333,-94.333,0],ti:[4.833,27.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:61,s:[201,336,0],to:[-4.833,-27.833,0],ti:[-1.5,3.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:65,s:[210,315,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:105,s:[210,315,0],to:[-1.833,-16.167,0],ti:[1.833,16.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:122,s:[199,218,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:193,s:[199,218,0],to:[0,-4.5,0],ti:[-6.333,-18.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:201,s:[199,191,0],to:[6.333,18.833,0],ti:[-6.333,-23.333,0]},{t:212,s:[237,331,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:61,s:[128,128,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:65,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:105,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:122,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:193,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:201,s:[100,100,100]},{t:212,s:[30,30,100]}],ix:6}},ao:0,t:{d:{k:[{s:{s:130,f:"Helvetica",t:"$",j:0,tr:0,lh:156,ls:0,fc:[.161,.855,.596]},t:0}]},p:{},m:{g:1,a:{a:0,k:[0,0],ix:2}},a:[]},ip:50,op:234,st:50,bm:0},{ddd:0,ind:15,ty:3,nm:"\u25bd mobile",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[174.36,234.308,0],ix:2},a:{a:0,k:[129,234,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:16,ty:4,nm:"Fill 16",parent:15,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,251.574,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[2.62,0],[0,0],[0,2.43],[0,0],[0,-3.09],[0,0],[-3.34,0],[0,0],[0,3.09],[0,0],[3.34,0]],o:[[0,0],[0,2.43],[0,0],[-2.63,0],[0,0],[-3.34,0],[0,0],[0,3.09],[0,0],[3.34,0],[0,0],[0,-3.09],[0,0]],v:[[33.349,-68.85],[15.749,-68.85],[10.999,-64.46],[-10.991,-64.46],[-15.741,-68.85],[-33.351,-68.85],[-39.401,-63.25],[-39.401,63.25],[-33.351,68.85],[33.349,68.85],[39.399,63.25],[39.399,-63.25],[33.349,-68.85]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 16",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:17,ty:3,nm:"\u25bd Group 15",parent:15,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[129,234,0],ix:2},a:{a:0,k:[129,234,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:18,ty:4,nm:"\u25a8 Clip 15",parent:20,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{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:[[-42.664,-77.722],[42.666,-77.722],[42.666,77.718],[-42.664,77.718]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Clip 14",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:19,ty:4,nm:"Fill 13",parent:17,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,250.563,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,4.8],[0,0],[-5.15,0],[0,0],[0,-4.8],[0,0],[5.15,0]],o:[[0,0],[-5.15,0],[0,0],[0,-4.8],[0,0],[5.15,0],[0,0],[0,4.8],[0,0]],v:[[33.346,72.45],[-33.344,72.45],[-42.664,63.76],[-42.664,-63.76],[-33.344,-72.45],[33.346,-72.45],[42.666,-63.76],[42.666,63.76],[33.346,72.45]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.139209002256,.312480002642,.604874014854,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:20,ty:3,nm:"Clip 14",parent:17,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,234.747,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:21,ty:4,nm:"Fill 11",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[169.084,395.56,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[-6.64,-22.74],[0,0],[-.43,.06],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[.44,0],[-.98,-15.43],[0,0],[0,0]],v:[[11.71,-31.733],[-8.47,-20.083],[-37.49,-18.553],[-27.99,31.627],[34.98,31.737],[36.28,31.627],[34.54,4.487],[37.49,-27.813]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.10622599721,.395851999521,.884595990181,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:22,ty:4,nm:"Fill 9",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[176.174,487.508,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-6.34,-22.25],[-6.5,-5.66],[0,0],[0,0],[-4.79,1.76],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[3.7,12.95],[17.65,15.4],[0,0],[1.75,-1.29],[4.79,-1.76],[0,0],[0,0],[0,0],[0,0]],v:[[-39.853,-49.203],[-30.943,-2.013],[-15.773,28.647],[-2.363,61.737],[19.007,62.237],[38.667,61.737],[32.177,-26.163],[35.127,-58.463],[9.347,-62.383],[-10.833,-50.733]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:23,ty:4,nm:"Fill 7",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[58.869,343.405,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[1.57,-3.99],[-2.88,-3.91],[-8.48,18.92],[0,0]],o:[[0,0],[-4.11,1.23],[-1.76,4.53],[4.4,5.97],[8.49,-18.93],[0,0]],v:[[17.343,-17.838],[-3.227,-11.658],[-11.617,-2.998],[-16.587,15.782],[6.793,-2.488],[17.343,-17.838]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 7",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:24,ty:4,nm:"Fill 5",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[66.485,400.831,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[1.1,-4.14],[-2.87,-3.91],[-8.49,18.93],[0,0]],o:[[0,0],[-4.11,1.23],[0,0],[4.4,5.97],[8.48,-18.92],[0,0]],v:[[17.287,-17.839],[-3.293,-11.659],[-11.673,-2.999],[-16.653,15.781],[6.737,-2.499],[17.287,-17.839]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:25,ty:4,nm:"Fill 3",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[59.813,265.625,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[1.89,-8.45],[-17.1,9.87],[0,0]],o:[[0,0],[-1.47,6.59],[17.09,-9.87],[0,0]],v:[[10.323,-12.882],[-19.807,4.198],[6.953,7.998],[19.343,-12.882]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:26,ty:4,nm:"Fill 1",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[67.435,183.478,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[5.22,-5.22],[-9.9,-13.51],[0,0]],o:[[0,0],[-5.22,5.22],[9.9,13.5],[0,0]],v:[[3.289,-9.132],[-11.501,-15.872],[-1.931,11.958],[13.619,8.598]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_4",layers:[{ddd:0,ind:1,ty:0,nm:"plane",refId:"comp_5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:443,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:446,s:[31]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:450,s:[48]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[21]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:460,s:[6]},{t:464,s:[6]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:262,s:[239,307.5,0],to:[0,3.833,0],ti:[0,20.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:285,s:[239,330.5,0],to:[0,-20.833,0],ti:[0,21.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:302,s:[239,182.5,0],to:[0,-21.5,0],ti:[0,-.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:318,s:[239,201.5,0],to:[0,.833,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:334,s:[239,187.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:353,s:[239,201.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:372,s:[239,187.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:388,s:[239,201.5,0],to:[0,0,0],ti:[7.5,2.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:408,s:[239,187.5,0],to:[-7.5,-2.333,0],ti:[-23,6.667,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:426,s:[194,187.5,0],to:[23,-6.667,0],ti:[-30.5,6.667,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:430,s:[377,147.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:434,s:[377,147.5,0],to:[-2.667,0,0],ti:[2.667,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:438,s:[361,147.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:442,s:[361,147.5,0],to:[-45.333,18.833,0],ti:[45.584,-15.097,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:443,s:[89,260.5,0],to:[-129.333,42.833,0],ti:[-14,9.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:446,s:[89,242.5,0],to:[14,-9.833,0],ti:[-33.667,-2,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:450,s:[173,201.5,0],to:[33.667,2,0],ti:[-6.333,-8.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[291,254.5,0],to:[6.333,8.833,0],ti:[7,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:460,s:[211,254.5,0],to:[-7,0,0],ti:[-6.333,0,0]},{t:464,s:[249,254.5,0]}],ix:2},a:{a:0,k:[144,73.5,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:262,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:285,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:302,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:319,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:334,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:354,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:372,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:389,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:408,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:426,s:[83.333,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:430,s:[37.5,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:434,s:[-15.278,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:438,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:442,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:443,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:446,s:[16.194,61.673,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:450,s:[50.861,95.456,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:460,s:[100,100,100]},{t:464,s:[100,100,100]}],ix:6}},ao:0,w:288,h:147,ip:262,op:2920,st:22,bm:0}]},{id:"comp_5",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd plane",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[141,73.5,0],ix:2},a:{a:0,k:[109.5,49.5,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 13",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.241,48.463,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.285308986902,.551240026951,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:3,nm:"\u25bd Group 12",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[93,42.487,0],ix:2},a:{a:0,k:[93,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"\u25a8 Clip 15",parent:6,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{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:[[-30.64,-13.918],[30.64,-13.918],[30.64,13.922],[-30.64,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Clip 11",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 10",parent:3,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.921,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-30.64,-13.918],[22.36,2.142],[30.64,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545725983264,.850599999521,.736917951995,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 10",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:3,nm:"Clip 11",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.921,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Fill 9",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.639,41.994,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[30.544,13.834],[22.294,2.124],[-30.546,-13.836]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:8,ty:3,nm:"\u25bd Group 8",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[97.5,42.487,0],ix:2},a:{a:0,k:[97.5,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"\u25a8 Clip 15",parent:11,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{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:[[-32.16,-13.918],[32.16,-13.918],[32.16,13.922],[-32.16,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Clip 7",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Fill 6",parent:8,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.479,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-32.16,-13.918],[32.16,-2.128],[29.17,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.114449998444,.357769984825,.768370983647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:11,ty:3,nm:"Clip 7",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.479,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:12,ty:4,nm:"Fill 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.491,41.994,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:13,ty:3,nm:"\u25bd Group 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.5,34.987,0],ix:2},a:{a:0,k:[109.5,34.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:14,ty:4,nm:"\u25a8 Clip 15",parent:16,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{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:[[-36.415,-11.444],[36.415,-11.444],[36.415,11.446],[-36.415,11.446]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Clip 3",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:15,ty:4,nm:"Fill 2",parent:13,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.244,34.611,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-36.415,-11.444],[27.795,.346],[36.415,11.446]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098006725,.850979983807,.737254977226,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:16,ty:3,nm:"Clip 3",parent:13,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.244,34.611,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:17,ty:4,nm:"Fill 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.428,34.987,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[36.474,11.5],[27.844,.35],[-36.476,-11.5]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_6",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd lines1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[822,365.862,0],ix:2},a:{a:0,k:[93,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Line Copy 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[57,61.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[19,-7.5],[-19,7.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Line Copy 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[163.5,54,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[7.5,-3],[-7.5,3]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Line Copy",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[57,18,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[15,-6],[-15,6]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:3,nm:"\u25bd lines2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[259.5,622.362,0],ix:2},a:{a:0,k:[130.5,58.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Line Copy 2",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.5,85.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[26.5,-10.5],[-26.5,10.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line Copy 3",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[229.5,76.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[10.5,-4.5],[-10.5,4.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Line Copy",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[81,25.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[21,-8.5],[-21,8.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"Line Copy",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]}],fonts:{list:[{fName:"Helvetica",fFamily:"Helvetica",fStyle:"Regular",ascent:71.8994140625},{fName:"HelveticaNeue-Medium",fFamily:"Helvetica Neue",fStyle:"Medium",ascent:71.39892578125}]},layers:[{ddd:0,ind:1,ty:0,nm:"billete",refId:"comp_0",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:515,s:[100]},{t:524,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[93.622]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:475,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:495,s:[-6]},{t:524,s:[-85]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[583.5,228.5,0],to:[128,-225,0],ti:[-16.311,-63.014,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:475,s:[852.5,256.5,0],to:[26.125,100.926,0],ti:[29.177,-76.41,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:495,s:[828.5,472.5,0],to:[-35.391,92.684,0],ti:[13.167,-24.167,0]},{t:524,s:[749.5,617.5,0]}],ix:2},a:{a:0,k:[87,108,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:475,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:495,s:[100,100,100]},{t:524,s:[100,100,100]}],ix:6}},ao:0,w:174,h:216,ip:456,op:575,st:456,bm:0},{ddd:0,ind:2,ty:0,nm:"billete",refId:"comp_0",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:500,s:[100]},{t:509,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:441,s:[93.622]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:460,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:480,s:[-78]},{t:509,s:[-121]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:441,s:[431.5,228.5,0],to:[-140,-123,0],ti:[8.833,-44,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:460,s:[299.5,366.5,0],to:[-8.833,44,0],ti:[-10.823,-40.41,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:480,s:[378.5,492.5,0],to:[25.667,95.833,0],ti:[13.5,-20.833,0]},{t:509,s:[297.5,617.5,0]}],ix:2},a:{a:0,k:[87,108,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:441,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:460,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:480,s:[100,100,100]},{t:509,s:[100,100,100]}],ix:6}},ao:0,w:174,h:216,ip:441,op:560,st:441,bm:0},{ddd:0,ind:3,ty:0,nm:"moneda2",refId:"comp_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:471,s:[100]},{t:481,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:440,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[168]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:471,s:[283]},{t:481,s:[359]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:440,s:[596.5,214.5,0],to:[77,-158.833,0],ti:[-3,-114.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[745.5,410.5,0],to:[2.022,76.93,0],ti:[12.167,-43.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:471,s:[719.5,567.5,0],to:[-12.167,43.167,0],ti:[7.833,-17,0]},{t:481,s:[672.5,669.5,0]}],ix:2},a:{a:0,k:[27,27,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:440,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:471,s:[100,100,100]},{t:481,s:[100,100,100]}],ix:6}},ao:0,w:54,h:54,ip:440,op:3572,st:-28,bm:0},{ddd:0,ind:4,ty:0,nm:"moneda2",refId:"comp_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:521,s:[100]},{t:531,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:506,s:[168]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:521,s:[283]},{t:531,s:[359]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:490,s:[505.5,202.5,0],to:[-39,-70.833,0],ti:[-3,-114.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:506,s:[415.5,377.5,0],to:[2.022,76.93,0],ti:[-4,-57.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:521,s:[439.5,659.5,0],to:[4,57.333,0],ti:[0,-10.333,0]},{t:531,s:[439.5,721.5,0]}],ix:2},a:{a:0,k:[27,27,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:490,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:506,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:521,s:[100,100,100]},{t:531,s:[100,100,100]}],ix:6}},ao:0,w:54,h:54,ip:490,op:3622,st:22,bm:0},{ddd:0,ind:5,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[100]},{t:498,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:457,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:475,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[10.759]},{t:498,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:457,s:[576.5,196.5,0],to:[102.048,-180.472,0],ti:[-37.01,-75.973,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:475,s:[760.033,179.235,0],to:[45.362,93.116,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:490,s:[789.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:498,s:[766.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:457,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:475,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:490,s:[100,100,100]},{t:498,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:449,op:3603,st:3,bm:0},{ddd:0,ind:6,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:509,s:[100]},{t:517,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:476,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:494,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:509,s:[10.759]},{t:517,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:476,s:[481.5,196.5,0],to:[102.048,-180.472,0],ti:[-43.187,-72.639,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:494,s:[836.033,189.235,0],to:[55.362,93.116,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:509,s:[891.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:517,s:[869.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:476,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:494,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:509,s:[100,100,100]},{t:517,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:468,op:3622,st:22,bm:0},{ddd:0,ind:7,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:488,s:[100]},{t:496,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:455,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:473,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:488,s:[10.759]},{t:496,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:455,s:[456.5,251.5,0],to:[-63.952,-84.472,0],ti:[42.376,-28.014,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:473,s:[329.033,173.235,0],to:[-90.963,60.134,0],ti:[-4.793,-50.578,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:488,s:[262.552,423.259,0],to:[8.206,86.593,0],ti:[14.632,-14.74,0]},{t:496,s:[286.5,633.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:455,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:473,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:488,s:[100,100,100]},{t:496,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:455,op:3609,st:9,bm:0},{ddd:0,ind:8,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:501,s:[100]},{t:509,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:468,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:486,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:501,s:[10.759]},{t:509,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:468,s:[481.5,196.5,0],to:[-63.952,-84.472,0],ti:[39.542,-31.89,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:486,s:[247.033,201.235,0],to:[-86.963,70.134,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:501,s:[129.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:509,s:[119.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:468,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:486,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:501,s:[100,100,100]},{t:509,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:468,op:3622,st:22,bm:0},{ddd:0,ind:9,ty:3,nm:"\u25bd Group 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[537,373.5,0],ix:2},a:{a:0,k:[408,358.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:540,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"hand",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:17,s:[-44]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:24,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:31,s:[0]},{t:39,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:17,s:[536.5,683.5,0],to:[-.167,-6.667,0],ti:[.167,4.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:24,s:[535.5,643.5,0],to:[-.167,-4.5,0],ti:[0,-1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:31,s:[535.5,656.5,0],to:[0,1.5,0],ti:[0,.667,0]},{t:39,s:[535.5,652.5,0]}],ix:2},a:{a:0,k:[247.5,637,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:17,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:24,s:[107,107,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:31,s:[93,93,100]},{t:39,s:[100,100,100]}],ix:6}},ao:0,w:495,h:722,ip:15,op:3590,st:-10,bm:0},{ddd:0,ind:12,ty:0,nm:"lines",refId:"comp_6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[523.5,388.5,0],ix:2},a:{a:0,k:[523.5,388.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1047,h:777,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:13,ty:3,nm:"\u25bd claud",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[436.128,449.486,0],ix:2},a:{a:0,k:[358.5,237,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:596,st:0,bm:0},{ddd:0,ind:14,ty:4,nm:"claud",parent:13,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[359.448,454.059,0],to:[0,-42.333,0],ti:[0,34.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:14,s:[359.448,200.059,0],to:[0,-34.333,0],ti:[0,-6.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:24,s:[359.448,248.059,0],to:[0,6.167,0],ti:[0,1.833,0]},{t:32,s:[359.448,237.059,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:0,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:14,s:[110,110,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:24,s:[93,93,100]},{t:32,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[16.6,9.66],[6.9,-30.19],[4.87,-15.29],[1.22,-18.91],[-70.97,-5.24],[-27.57,0],[2.43,16.91],[18.25,9.24],[-16.22,17.31]],o:[[0,0],[-16.6,-9.66],[-6.89,30.19],[-4.87,15.3],[-1.21,18.92],[70.97,5.23],[27.58,0],[-2.43,-16.91],[-18.25,-9.23],[16.22,-17.31]],v:[[23.686,-77.78],[-39.254,-62.4],[-94.204,-63.52],[-118.814,-8.22],[-79.914,34.46],[-35.944,75.99],[74.766,78],[118.976,34.93],[87.746,3.1],[76.686,-32.02]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.874638020992,.942860007286,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],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:"Transformar"}],nm:"claud",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:596,st:0,bm:0}],markers:[],chars:[{ch:"$",size:130,style:"Regular",w:55.62,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[5.566,-.26],[0,0],[-1.726,-1.237],[0,-4.069],[1.106,-1.953]],o:[[0,0],[4.069,1.107],[2.995,2.116],[0,2.572],[-2.116,3.809]],v:[[29.834,-5.078],[29.834,-30.762],[38.525,-27.246],[43.018,-17.969],[41.357,-11.182]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,3.223],[-1.822,2.441],[-4.3,.163],[0,0],[2.15,1.823]],o:[[0,-2.669],[1.822,-2.441],[0,0],[-3.644,-.716],[-2.15,-1.823]],v:[[13.281,-52.197],[16.013,-59.863],[25.195,-63.77],[25.195,-40.82],[16.505,-44.629]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,-4.948],[-3.369,-3.125],[-7.065,-1.334],[0,0],[2.032,3.679],[.262,4.46],[0,0],[-1.855,-3.288],[-9.473,-.619],[0,0],[0,0],[0,0],[-3.125,2.018],[0,8.659],[4.395,3.06],[7.552,2.116],[0,0],[-2.051,-3.288],[-.228,-2.473],[0,0],[3.467,3.361],[6.477,.455],[0,0],[0,0],[0,0],[3.629,-3.971]],o:[[0,5.534],[3.368,3.125],[0,0],[-5.509,-.455],[-1.147,-2.051],[0,0],[0,5.599],[3.385,6.087],[0,0],[0,0],[0,0],[5.891,-.652],[5.631,-3.645],[0,-5.989],[-2.702,-1.855],[0,0],[4.492,.163],[1.106,1.791],[0,0],[-.163,-5.519],[-3.467,-3.36],[0,0],[0,0],[0,0],[-6.543,.066],[-3.63,3.972]],v:[[4.492,-51.611],[9.545,-38.623],[25.195,-31.934],[25.195,-5.322],[13.882,-11.523],[11.768,-21.289],[3.125,-21.289],[5.908,-7.959],[25.195,2.1],[25.195,11.572],[29.834,11.572],[29.834,2.1],[43.359,-1.904],[51.807,-20.361],[45.215,-33.936],[29.834,-39.893],[29.834,-63.672],[39.648,-58.496],[41.65,-52.1],[50.195,-52.1],[44.751,-65.42],[29.834,-71.143],[29.834,-77.539],[25.195,-77.539],[25.195,-71.045],[9.937,-64.99]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"$",np:6,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica"},{ch:"L",size:17.6399993896484,style:"Medium",w:57.4,data:{shapes:[{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]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[7.6,0],[56.4,0],[56.4,-10.8],[20.1,-10.8],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"L",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"L",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"I",size:17.6399993896484,style:"Medium",w:27.8,data:{shapes:[{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:[[7.6,0],[20.1,0],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"I",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"I",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"N",size:17.6399993896484,style:"Medium",w:72.2,data:{shapes:[{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:[[7.1,0],[19,0],[19,-52.5],[19.3,-52.5],[51.8,0],[65,0],[65,-71.4],[53.1,-71.4],[53.1,-18.8],[52.9,-18.8],[20.3,-71.4],[7.1,-71.4]],c:!0},ix:2},nm:"N",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"N",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"K",size:17.6399993896484,style:"Medium",w:68.5,data:{shapes:[{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:[[7.6,0],[20.1,0],[20.1,-24],[30.3,-34.1],[53.7,0],[69.3,0],[38.8,-42.9],[67.3,-71.4],[51.9,-71.4],[20.1,-38.9],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"K",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"K",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"}]}},1579,[]); __d(function(i,a,x,k,r,t,p){r.exports={v:"5.4.3",fr:30,ip:0,op:60,w:2048,h:2048,nm:"wallet_subtract_open",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"ctrl",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1024,1024,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.58,.58,.58],y:[1,1,1]},o:{x:[.42,.42,.42],y:[0,0,0]},n:["0p58_1_0p42_0","0p58_1_0p42_0","0p58_1_0p42_0"],t:0,s:[0,0,100],e:[398.598,398.598,100]},{t:30}],ix:6}},ao:0,ip:0,op:31,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"sub",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[0,.69,0],ix:2},a:{a:0,k:[0,-23.814,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[256,-256],[-256,-256]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.16],y:[1]},o:{x:[.84],y:[0]},n:["0p16_1_0p84_0"],t:0,s:[0],e:[100]},{t:30}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:481,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[42.745,9.302],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:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:31,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"back",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[9.02,22.806],[.158,.391],[.447,1.057],[24.416,20.315],[.19,.157],[.656,.528],[.628,.493],[.217,.169],[46.245,0],[.034,0],[36.646,-45.343],[0,-47.682],[-110.457,0],[-35.832,53.944],[-.152,.232],[0,40.647]],o:[[-.155,-.392],[-.43,-1.066],[-12.561,-29.685],[-.19,-.158],[-.649,-.536],[-.622,-.5],[-.216,-.17],[-33.877,-26.385],[-.033,0],[-62.79,0],[-27.792,34.388],[0,110.586],[69.56,0],[.153,-.231],[20.787,-31.578],[0,-26.02]],v:[[186.02,-73.985],[185.543,-75.155],[184.237,-78.346],[127.747,-154.363],[127.18,-154.842],[125.214,-156.427],[123.349,-157.926],[122.695,-158.161],[0,-200],[-.1,-200],[-155.551,-125.885],[-200,-.167],[0,200],[166.647,110.464],[167.095,109.746],[200,-.292]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:31,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:3,nm:"scale",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[274.314,1665.438,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.24,.24,.24],y:[1,1,1]},o:{x:[.76,.76,.76],y:[0,0,0]},n:["0p24_1_0p76_0","0p24_1_0p76_0","0p24_1_0p76_0"],t:0,s:[0,0,100],e:[400,400,100]},{t:59.859375}],ix:6}},ao:0,ip:0,op:61,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Layer 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[187.421,-160.36,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.67,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-17.672,0],[0,0],[0,17.67],[0,0],[0,36.967],[-36.969,0],[0,0]],o:[[0,0],[0,0],[0,0],[-37.708,0],[0,0],[0,0],[0,17.67],[0,0],[17.67,0],[0,0],[-36.969,0],[0,-36.969],[0,0],[0,-17.672]],v:[[155.292,-106.838],[133.871,-106.838],[133.83,-106.838],[-155.292,-106.838],[-187.421,-74.708],[-187.421,74.708],[-187.421,128.23],[-155.292,160.36],[155.292,160.36],[187.421,128.23],[187.421,93.724],[120.484,26.788],[187.421,-40.15],[187.421,-74.708]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Layer 6",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:26.056,s:[187.421,-113.36,0],e:[187.421,-160.36,0],to:[0,-7.83333349227905,0],ti:[0,7.83333349227905,0]},{t:50}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[2.577,15.136],[0,0],[0,0],[0,0]],o:[[-15.843,0],[0,0],[0,0],[-.064,.384],[0,0]],v:[[-155.292,-106.838],[-186.962,-133.598],[-186.962,-133.598],[-186.964,-133.588],[-187.421,-74.708]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Layer 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:26,s:[160.855,-237.958,0],e:[160.855,-293.958,0],to:[0,-9.33333301544189,0],ti:[0,9.33333301544189,0]},{t:49.9443359375}],ix:2},a:{a:0,k:[-26.566,-133.599,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-15.843,0],[0,0],[0,0],[17.672,0],[0,0],[2.575,-15.138]],o:[[0,0],[0,0],[0,-17.672],[0,0],[-15.843,0],[2.577,15.136]],v:[[-155.292,-106.838],[133.83,-106.838],[133.83,-128.23],[101.7,-160.36],[-155.292,-160.36],[-186.962,-133.598]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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 4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Layer 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:21.057,s:[238.905,-133.572,0],e:[307.905,-133.572,0],to:[11.5,0,0],ti:[-11.5,0,0]},{t:45}],ix:2},a:{a:0,k:[120.484,26.787,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-36.969],[-36.969,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,36.967],[0,0],[0,0],[0,0],[0,0],[-36.969,0]],v:[[120.484,26.788],[187.421,93.724],[187.421,92.014],[187.421,65.239],[187.421,-13.374],[187.421,-40.15]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],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:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"subtract_open",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[724,1274,0],ix:2},a:{a:0,k:[1024,1024,0],ix:1},s:{a:0,k:[56,56,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:30,s:[0],e:[.967]},{t:59,s:[.967],h:1}],ix:2},w:2048,h:2048,ip:30,op:61,st:30,bm:0},{ddd:0,ind:4,ty:0,nm:"wallet_open",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1076.705,921.048,0],ix:2},a:{a:0,k:[1024,1024,0],ix:1},s:{a:0,k:[93,93,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:0,s:[0],e:[1.967]},{t:59,s:[1.967],h:1}],ix:2},w:2048,h:2048,ip:0,op:61,st:0,bm:0}],markers:[]}},1580,[]); __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])),u=l(r(d[6])),f=l(r(d[7])),y=l(r(d[8])),p=t(r(d[9])),E=r(d[10]),T=r(d[11]),h=l(r(d[12])),w=l(r(d[13])),x=l(r(d[14])),C=l(r(d[15])),I=l(r(d[16])),_=t(r(d[17])),b=r(d[18]),V=r(d[19]),D=r(d[20]),A=r(d[21]),S=r(d[22]),R=l(r(d[23])),N=l(r(d[24])),O=r(d[25]),v=l(r(d[26])),k=r(d[27]),L=l(r(d[28])),H=l(r(d[29])),P=l(r(d[30])),U=l(r(d[31])),B=r(d[32]),M=r(d[33]),F=r(d[34]),G=r(d[35]),W=r(d[36]),j=r(d[37]),z=r(d[38]),Y=l(r(d[39])),q=(l(r(d[40])),r(d[41])),K=r(d[42]),Q=(r(d[43]),l(r(d[44]))),X=l(r(d[45]));r(d[46]);function J(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 Z(t){for(var l=1;l20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title)))))),p.default.createElement(E.View,{style:{flex:1}})):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.containerTouch]},p.default.createElement(E.TouchableOpacity,{style:te.contain,onPress:function(){R.default.isNil(o.state.isIdentified)?o.redirectToRoute(t):(console.log(t),R.default.isEqual(t.screen,'createIdentificationUser')?o.state.isIdentified?(0,k.displayToast)(w.default.t('ALREADY_IDENTIFIED')):o.redirectToRoute(t):R.default.isEqual(t.screen,'modifyIdentificationUser')?o.state.isIdentified?o.redirectToRoute(t):(0,k.displayToast)(w.default.t('NOT_YET_IDENTIFY')):o.redirectToRoute(t))},activeOpacity:.9},t.hasOwnProperty('iconType')?p.default.createElement(Y.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}):p.default.createElement(h.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}),p.default.createElement(E.View,{style:[te.content]},p.default.createElement(E.View,{style:(te.contentTitle,{paddingTop:t.title.length>20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title))),p.default.createElement(E.View,{style:{flex:1}})))))},o.renderAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',justifyContent:'space-between'}},p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-wallet",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('CREDIT_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_credit,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_credit,' ')+" "+o.state.wallet.currency_code):null)),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-key",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('SAVINGS_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_epargne,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_epargne,' ')+" "+o.state.wallet.currency_code):null)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"update",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o._scrollView.scrollToEnd()}},w.default.t('HISTORY'))))},o.renderNanoSanteAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null)},o.renderNanoSanteAgentAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]}),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(Y.default,{name:"money-check-alt",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:"70%",borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o.props.facturerSoinAction("?network_agent_id="+o.state.wallet.network_agent_id)}},' '+w.default.t('FACTURER_FEUILLES_SOINS'))))},o.renderHistoryTransactionList=function(){var t=o.props,l=t.resultHistory,n=t.errorHistory;return null!==n?void 0!==n.data?p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n.data.error)):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n)):null!==l&&null!==l.response?Array.isArray(l.response)&&l.response.length>0?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.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:O.Typography.body1},w.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:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,C.default)(o.state.user.category)?Object.keys((0,I.default)(t,['id','type','montant_retire','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:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}):Object.keys((0,I.default)(t,['id','retrait_cash','montant_retire','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:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderNanoSanteHistoryItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},Object.keys((0,I.default)(t,['created_at','currency_code','file_url','health_care_sheets','institution_code','institutation_name','insured_amount','insurer_amount','invoice_id','network_agent_id','network_id','period_end_at','period_start_at','updated_at'])).map(function(l,o){return p.default.createElement(E.View,{style:{alignItems:'center'},key:o},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},t[l]))}))},o.handleLoadMore=function(){o.props.getInvoiceHistoryReset(),o.props.getInvoiceHistoryAction("?network_id="+user.network_id+"&insured_id="+user.agentId+"&page="+(o.state.page+1)+"&perPage=20"),o.setState({page:o.state.page+1})},o.renderFooterLoader=function(){return 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,w.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ActivityIndicator,{size:"small",color:'#ccc'}),p.default.createElement(E.Text,null,w.default.t('LOADING_DOTS'))))},o.renderNanoSanteHistoryList=function(){var t=o.props,l=t.loadingInsuranceHistory,n=(t.errorInsuranceHistory,t.resultInsuranceHistory);return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.checkDefault,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.Text,{style:[O.Typography.title3,O.Typography.semibold]},w.default.t('HISTORY')+" "+o.state.historiqueDetailLabel),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingBottom:10}},p.default.createElement(P.default,{primary:!0,icon:p.default.createElement(Y.default,{name:"book-medical",size:20,color:b.Color.whiteColor,style:{marginLeft:15}}),style:{paddingRight:10,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:b.Color.whiteColor},onPress:function(){o.setState({historiqueDetailLabel:w.default.t('INVOICE')}),(0,A.readUser)().then(function(t){t&&void 0!==t&&'geolocated'===t.category&&o.props.getInvoiceHistoryAction("?network_id="+t.network_id+"&network_agent_id="+o.state.wallet.network_agent_id+"&page=1&perPage=20")})}}),p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"medical-bag",size:20,color:b.Color.whiteColor}),style:{borderTopLeftRadius:0,borderBottomLeftRadius:0},primary:!0,onPress:function(){o.setState({historiqueDetailLabel:w.default.t('SOINS')}),o.props.getSoinHistoryAction(o.state.wallet.network_agent_id,'ALL','','&pagination=true&page=1')}}))),l?o.renderLoader():p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.nanoSanteHistoryLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.default.t(t.label)))})),p.default.createElement(E.FlatList,{style:{flex:1},ListEmptyComponent:function(){return p.default.createElement(E.Text,null,w.default.t('NO_WALLET_HISTORY'))},data:o.state.historyResult,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;t.index;return o.renderNanoSanteHistoryItem(l)},onEndReached:function(){null!==n&&o.state.page0){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}})},1587,[4,1,276,8,9,10,12,13,717,15,18,750,1424,2,720,1588,535,704,539,882,1034,1435,689,775,719,1077,1049,811,1061,1320,1576,771,814,815,1041]); +__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])),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]),C=t(r(d[11])),y=n(r(d[12])),v=r(d[13]),E=n(r(d[14])),A=n(r(d[15])),S=r(d[16]),T=r(d[17]),b=n(r(d[18])),w=n(r(d[19])),R=r(d[20]),k=n(r(d[21])),P=n(r(d[22])),O=r(d[23]),_=r(d[24]),D=r(d[25]),V=r(d[26]),L=n(r(d[27])),U=r(d[28]),F=r(d[29]),N=r(d[30]),x=r(d[31]),B=(r(d[32]),r(d[33]),r(d[34]),(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,c.default)(this,(0,u.default)(n).call(this,t))).createFormData=function(t,n){o.dataToSendTemp.append(t,{name:n.path.split('/').pop(),type:n.mime,uri:"android"===I.Platform.OS?n.path:n.path.replace("file://","")})},o.renderLoader=function(){return h.default.createElement(F.ProgressDialog,{visible:o.props.loadingUserIndentification||o.props.loadingValidateIdentification,title:E.default.t('LOADING'),message:E.default.t('LOADING_INFO')})},o.renderGetUserIdentificationResponse=function(){var t=o.props,n=t.resultUserIndentification,l=t.errorUserIndentification;null!==n&&void 0!==n.response&&200===n.status&&(n.response.isIdentifiedValidated&&I.Alert.alert(E.default.t('ERROR_IDENTIFICATION'),E.default.t('ALREADY_VALIDATED'),[{text:E.default.t("OK"),onPress:function(){o.props.getUserIdentificationResetAction(),o.setState({triggerSubmitClick:!1})}}],{cancelable:!1}),n.response.isIdentified||n.response.isIdentifiedValidated||I.Alert.alert(E.default.t('ERROR_IDENTIFICATION'),E.default.t('NOT_IDENTIFIED'),[{text:E.default.t("OK"),onPress:function(){o.props.getUserIdentificationResetAction(),o.setState({triggerSubmitClick:!1}),o.props.navigation.pop()}}],{cancelable:!1}),n.response.isIdentified&&!n.response.isIdentifiedValidated&&o.setState({isIdentified:n.response.isIdentified,isIdentifiedValidated:n.response.isIdentifiedValidated,idIdentification:n.response.data.id,idNetwork:n.response.data.idNetwork,idUser:n.response.data.id_user,displayUploadButtons:!0,triggerSubmitClick:!1})),null!==l&&(void 0!==l.data?I.Alert.alert(E.default.t('ERROR_LABEL'),l.data.error,[{text:E.default.t("OK"),onPress:function(){o.props.getUserIdentificationResetAction(),o.setState({triggerSubmitClick:!1}),o.props.navigation.pop()}}],{cancelable:!1}):I.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(l),[{text:E.default.t("OK"),onPress:function(){o.setState({triggerSubmitClick:!1}),o.props.getUserIdentificationResetAction(),o.props.navigation.pop()}}],{cancelable:!1}))},o.onSubmitValidationClient=function(){var t=o.state,n=t.displayUploadButtons,l=t.numeroTelephone;n?(console.log('TRUE',n),o.dataToSendTemp.append('id_network',1),o.dataToSendTemp.append('id_country',1),o.props.validateIdentificationAction(o.dataToSendTemp,o.state.idIdentification)):o.ckeckIfFieldIsOK(l)?o.numeroTelephoneAnim.shake(800):o.props.getUserIdentificationAction(l)},o.onPicture=function(t){var n=t.uri;o.setState({image:n,displayCamera:!0}),console.log("URI",n)},o.onBackToCamera=function(){o.setState({image:null,displayCamera:!1})},o.renderDialogImage=function(){return h.default.createElement(y.default.Container,{contentStyle:{width:(0,S.responsiveWidth)(80)},useNativeDriver:!0,visible:o.state.displayImage},h.default.createElement(y.default.Title,null,E.default.t('PREVISUALISATION')),h.default.createElement(I.View,null,h.default.createElement(I.View,{style:{width:50}}),h.default.createElement(I.View,{style:{justifyContent:'center',alignContent:'center',alignItems:'center'}},h.default.createElement(I.Image,{source:{uri:o.state.image.path},style:{width:o.state.image.width,height:o.state.image.height,aspectRatio:1,resizeMode:'contain'}})),h.default.createElement(I.View,{style:{width:50}})),h.default.createElement(y.default.Button,{bold:!0,label:E.default.t('OK'),onPress:function(){o.setState({displayImage:!1})}}))},o.state={numeroTelephone:null,image:null,displayImage:!1,idNetwork:null,idUser:null,idIdentification:null,displayUploadButtons:!1,triggerSubmitClick:!1,triggerValidateClick:!1,isIdentified:!1,modalVisible:!0,isIdentifiedValidated:!1,userId:null,isLoging:!1,countries:[],town:[],townName:null,country:null,datatoSend:null},o.dataToSendTemp=new FormData,o.props.getUserIdentificationResetAction(),o.props.validateIdentificationResetAction(),o}return(0,f.default)(n,t),(0,s.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,_.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})}),'android'===I.Platform.OS?this.requestCameraPermission():this.watchLocation()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.watchID&&L.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 o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:L.default.getCurrentPosition(function(n){t.treatPosition(n)},function(n){t.showErrorDialog()},this.props.geolocationOptions),this.watchID||L.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 o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o.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,l=t.coords;(0,P.default)(l,o)||((0,x.getPositionInformation)(l).then(function(t){if(void 0!==t.results&&t.results.length>0){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:"componentWillReceiveProps",value:function(t,n){var o=this,l=t.resultValidateIdentification,s=t.errorValidateIdentification;null!==l&&void 0!==l.response&&200===l.status&&I.Alert.alert(E.default.t('VALIDATION_EFFECTUE'),E.default.t('USER_SUCCESSFULLY_VALIDATED'),[{text:E.default.t("OK"),onPress:function(){o.props.validateIdentificationResetAction(),o.setState({triggerSubmitClick:!1}),o.props.navigation.pop()}}],{cancelable:!1}),null!==s&&(void 0!==s.data?I.Alert.alert(E.default.t('ERROR_LABEL'),s.data.error,[{text:E.default.t("OK"),onPress:function(){o.props.validateIdentificationResetAction(),o.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(s),[{text:E.default.t("OK"),onPress:function(){o.props.validateIdentificationResetAction(),o.setState({triggerSubmitClick:!1})}}],{cancelable:!1}))}},{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(),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(T.Fumi,{iconClass:b.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:(D.Typography.footnote,D.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:(D.Typography.footnote,D.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:(D.Typography.footnote,D.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,V.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:N.getUserIdentificationAction,getUserIdentificationResetAction:N.getUserIdentificationResetAction,validateIdentificationResetAction:N.validateIdentificationResetAction,validateIdentificationAction:N.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}})},1587,[4,1,276,8,9,10,12,13,717,15,18,750,1424,2,720,1588,535,704,539,882,1034,1435,689,775,719,1077,1049,811,1061,1320,1576,771,814,815,1041]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.cleanSingle=e.clean=e.openCropper=e.openCamera=e.openPicker=e.default=void 0;n(r(d[1]));var o=r(d[2]).NativeModules.ImageCropPicker,p=o;e.default=p;var l=o.openPicker;e.openPicker=l;var c=o.openCamera;e.openCamera=c;var v=o.openCropper;e.openCropper=v;var C=o.clean;e.clean=C;var t=o.cleanSingle;e.cleanSingle=t},1588,[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])),h=n(r(d[8])),p=t(r(d[9])),I=r(d[10]),E=n(r(d[11])),v=r(d[12]),C=r(d[13]),y=t(r(d[14])),N=n(r(d[15])),w=n(r(d[16])),D=n(r(d[17])),k=n(r(d[18])),P=r(d[19]),S=n(r(d[20])),A=r(d[21]),b=r(d[22]),x=r(d[23]),T=r(d[24]),O=r(d[25]),_=n(r(d[26])),F=r(d[27]),R=r(d[28]),L=r(d[29]),M=r(d[30]),Y=n(r(d[31])),V=(r(d[32]),r(d[33]),r(d[34])),U=(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,k.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,k.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,h=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(h)?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:V(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:V(o.state.dateExpiration).format('DD-MM-YYYY'),phone_number:null,id_user:o.state.user.id,gender:o.state.gender}),o.setState({triggerSubmitClick:!0})},o.renderLoader=function(){return p.default.createElement(x.ProgressDialog,{visible:o.props.loading,title:w.default.t('LOADING'),message:w.default.t('LOADING_INFO')})},o.renderDateNaissancePicker=function(){return p.default.createElement(S.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,k.default)(o.state.dateNaissance)?new Date:o.state.dateNaissance,mode:"date",maximumDate:new Date,display:"spinner",onChange:o.onChangeDateNaissance})},o.renderDateExpirationPicker=function(){return p.default.createElement(S.default,{testID:"dateTimePicker",timeZoneOffsetInMinutes:0,is24Hour:!0,value:(0,k.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:w.default.t((0,F.identityPieces)()[0].name),snackVisible:!1,snackText:'',disableNetwork:!1,networks:[],showPickerDateNaissance:!1,showPickerDateExpiration:!1,modalVisible:!0,select_network:w.default.t("SELECT_NETWORK"),user:null,triggerSubmitClick:!1,sexe:[{label:w.default.t('MASCULIN'),value:"M"},{label:w.default.t('FEMININ'),value:"F"}],gender:'M'},o.dateNaissanceFumiProps={},o.dateExpirationFumiProps={},o.props.createIndentificationResetAction(),o}return(0,h.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,T.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(w.default.t('SUCCESS_IDENTIFICATION'),o.response,[{text:w.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(w.default.t('ERROR_IDENTIFICATION'),s.data.error,[{text:w.default.t("OK"),onPress:function(){t.props.createIndentificationResetAction(),t.setState({triggerSubmitClick:!1})}}],{cancelable:!1}):I.Alert.alert(w.default.t('ERROR_IDENTIFICATION'),JSON.stringify(s),[{text:w.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=V(o).format('DD-MM-YYYY')),this.state.showPickerDateExpiration&&(this.dateExpirationFumiProps.value=V(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,D.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,h=t.results,p=0;p=s.length)break;f=s[c++]}else{if((c=s.next()).done)break;f=c.value}var h=f;h.code_country===u&&(o=!0,n.setState({modalVisible:!1,country:h.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,k.default)(t)||(0,D.default)(t.length,0)}},{key:"renderLoaderModal",value:function(){return p.default.createElement(O.MaterialDialog,{visible:this.state.modalVisible,title:w.default.t("LOADING_INFO")},p.default.createElement(I.View,{style:{justifyContent:'center',alignItems:'center'}},p.default.createElement(I.Text,null,w.default.t("LOADING_DESCRIPTION_COUNTRY")),p.default.createElement(I.ProgressBarAndroid,null)))}},{key:"render",value:function(){var t=this;return console.log("STATE",this.state),p.default.createElement(p.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(),p.default.createElement(I.ScrollView,{style:W.container},p.default.createElement(I.Text,{style:W.subbigtitle},w.default.t('CREATE_IDENTIFICATION_TITLE')),p.default.createElement(y.View,{ref:function(n){t.lastnameAnim=n}},p.default.createElement(C.Fumi,{iconClass:E.default,iconName:'user',label:w.default.t('NAME')+" "+w.default.t('AND')+" "+w.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.lastname,onChangeText:function(n){t.setState({lastname:n})},style:W.input})),p.default.createElement(y.View,{ref:function(n){t.datenaissanceAnim=n}},p.default.createElement(C.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar',label:w.default.t('DATE_NAISSANCE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateNaissance:!0})}},this.dateNaissanceFumiProps))),p.default.createElement(y.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'}},p.default.createElement(A.Dropdown,{label:w.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}})),p.default.createElement(y.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'}},p.default.createElement(A.Dropdown,{label:w.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}})),p.default.createElement(y.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'}},p.default.createElement(A.Dropdown,{label:w.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 w.default.t(t.name)},labelExtractor:function(t){return w.default.t(t.name)}})),p.default.createElement(y.View,{ref:function(n){t.numeroIdentiteAnim=n}},p.default.createElement(C.Fumi,{iconClass:E.default,iconName:'address-card',label:""+w.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(n){t.setState({numeroIdentite:n})},style:W.input})),p.default.createElement(y.View,{ref:function(n){t.identityDateExpiryAnim=n}},p.default.createElement(C.Fumi,(0,o.default)({iconClass:E.default,iconName:'calendar-times-o',label:w.default.t('IDENTITY_PIECE_EXPIRY_DATE'),iconColor:'#f95a25',iconSize:20,style:W.input,onFocus:function(){I.Keyboard.dismiss(),t.setState({showPickerDateExpiration:!0})}},this.dateExpirationFumiProps))),p.default.createElement(I.View,{style:{paddingLeft:20,paddingRight:20,marginTop:10,flexDirection:'row',justifyContent:"space-between"}},p.default.createElement(I.Text,{style:{color:P.Color.whiteColor}},w.default.t('SEXE')),p.default.createElement(I.View,{style:W.contentSwitch},p.default.createElement(Y.default,{options:this.state.sexe,initial:0,buttonColor:P.Color.accentColor,backgroundColor:P.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(n){t.setState({gender:n})}}))),p.default.createElement(N.default,{style:W.btnvalide,textStyle:W.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitIdentityClient()}},w.default.t('SUBMIT_LABEL'))))}}]),n})(p.Component);U.navigatorStyle={navBarBackgroundColor:P.Color.primaryColor,statusBarColor:P.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:w.default.t('CREATION_IDENTIFICATION_DESCRIPTION'),headerTintColor:'white',headerStyle:{backgroundColor:P.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:w.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)})(U);e.default=K;var W=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},contentSwitch:{width:(0,v.responsiveWidth)(40)}})},1589,[4,1,6,276,8,9,10,12,13,15,18,539,535,704,750,717,720,689,1435,1034,1569,982,771,1320,719,775,811,1458,1049,1061,1576,772,814,815,1041]); __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])),c=o(r(d[5])),u=o(r(d[6])),p=o(r(d[7])),f=t(r(d[8])),y=r(d[9]),h=o(r(d[10])),T=r(d[11]),w=o(r(d[12])),E=r(d[13]),b=r(d[14]),C=t(r(d[15])),v=r(d[16]),O=r(d[17]),L=r(d[18]),k=r(d[19]),x=r(d[20]),A=r(d[21]),I=r(d[22]),R=r(d[23]),B=(r(d[24]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,s.default)(this,(0,c.default)(o).call(this,t))).redirectToRoute=function(t){console.log("Item selected",t),l.state.options.length>0?l.props.navigation.push(l.state.options[0].screen,{title:t.operator_name,type:l.state.options[0].type,operator_id:t.id_operator,typeOperator:l.state.operatorType}):'geolocated'===l.state.user.category?l.props.navigation.navigate(R.envoieWalletToBankAgent,{bank:t}):l.props.navigation.navigate(R.envoieWalletToBankUser,{bank:t})},l.renderLoader=function(){return f.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===y.Platform.OS?f.default.createElement(f.default.Fragment,null,f.default.createElement(y.ProgressBarAndroid,null),f.default.createElement(y.Text,null,h.default.t('LOADING_DOTS'))):f.default.createElement(f.default.Fragment,null,f.default.createElement(y.ActivityIndicator,{size:"large",color:'#ccc'}),f.default.createElement(y.Text,null,h.default.t('LOADING_DOTS'))))},l.renderItem=function(t,o){return f.default.createElement(y.TouchableOpacity,{key:o,style:[P.paymentItem,{borderBottomColor:E.Color.borderColor}],onPress:function(){l.redirectToRoute(t)}},f.default.createElement(y.View,{style:{flexDirection:'row',alignItems:'center'}},f.default.createElement(y.View,null,f.default.createElement(y.Text,{style:b.Typography.body1},t.operator_name),f.default.createElement(y.Text,{style:[b.Typography.footnote,E.Color.grayColor],style:{marginTop:5}},h.default.t('COUNTRY'),": ",t.operator_address+", "+t.country))))},l.renderBankList=function(){var t=l.props,o=t.result,n=t.error;return null!==n?void 0!==n.data?f.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(y.Text,{style:b.Typography.body1},n.data.error)):f.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(y.Text,{style:b.Typography.body1},n)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?f.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},o.response.map(function(t,o){return l.renderItem(t,o)})):f.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},f.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_OPERATOR_AVAILABLE'))):void 0},l.renderItemElement=function(t,o){return f.default.createElement(y.TouchableOpacity,{key:o,style:[P.paymentItem,{borderBottomColor:E.Color.borderColor}],onPress:function(){l.props.navigation.navigate(t.screen,{type:t.type,title:t.title})}},f.default.createElement(y.View,{style:{flexDirection:'row',alignItems:'center'}},f.default.createElement(y.View,{style:P.iconContent},f.default.createElement(y.Image,{style:{width:48,height:48},source:{uri:t.icon}})),f.default.createElement(y.View,null,f.default.createElement(y.Text,{style:b.Typography.body1},t.title),f.default.createElement(y.Text,{style:b.Typography.footnote},t.title))))},l.renderList=function(){var t=l.state.options;return f.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},t.map(function(t,o){return l.renderItemElement(t,o)}))},v.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,u.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,operatorType:l.props.navigation.state.params.optionSelect.operatorType,wallet:x.store.getState().walletDetailReducer.result.response},l.props.getBankListReset(),l.props.getOperatorListReset(),(0,A.readUser)().then(function(t){t&&void 0!==t&&(l.state.options.length>0?void 0===t.category?l.props.getOperatorListAction(l.state.operatorType,l.state.wallet.id_wallet_network):'geolocated'===t.category&&l.props.getOperatorListAction(l.state.operatorType,l.state.wallet.id_network):void 0===t.category?l.props.getOperatorListAction('bank',l.state.wallet.id_wallet_network):'geolocated'===t.category&&l.props.getOperatorListAction('bank',l.state.wallet.id_network),l.setState({user:t}))}),l}return(0,p.default)(o,t),(0,l.default)(o,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return console.log("OPERATEUR OPTION STATE",this.state.options.length),f.default.createElement(T.Provider,null,f.default.createElement(y.View,{style:{flex:1}},f.default.createElement(y.StatusBar,{backgroundColor:E.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),f.default.createElement(T.Appbar.Header,{dark:!0,style:{backgroundColor:E.Color.primaryColor}},f.default.createElement(T.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),f.default.createElement(T.Appbar.Content,{title:h.default.t(this.state.title),subtitle:h.default.t(this.state.subTitle)})),f.default.createElement(y.View,{style:P.container},this.props.loading?this.renderLoader():null!=this.props.result?this.renderBankList():null)))}}]),o})(f.Component));B.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:h.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return f.default.createElement(w.default,{name:'credit-card',size:24})}}};var _=(0,O.connect)(function(t){return{loading:t.getListOperatorReducer.loading,result:t.getListOperatorReducer.result,error:t.getListOperatorReducer.error}},function(t){return(0,L.bindActionCreators)({getBankListAction:k.getBankListAction,getBankListReset:k.getBankListReset,getOperatorListAction:I.getOperatorListAction,getOperatorListReset:I.getOperatorListReset},t)})(B);e.default=_;var P=y.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:C.scaleWithPixel(30),height:C.scaleWithPixel(30)},content:{height:C.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12}})},1590,[4,1,8,9,10,12,11,13,15,18,720,1200,882,1034,1077,1023,773,1049,1061,1591,1105,719,1414,815,1459]); @@ -1631,7 +1631,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]),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])),p=l(r(d[8])),y=t(r(d[9])),E=r(d[10]),h=l(r(d[11])),C=r(d[12]),w=r(d[13]),T=r(d[14]),x=r(d[15]),b=l(r(d[16])),I=r(d[17]),_=r(d[18]),D=r(d[19]),A=r(d[20]),S=r(d[21]),V=r(d[22]),v=r(d[23]),N=t(r(d[24])),P=l(r(d[25])),R=l(r(d[26])),B=l(r(d[27])),k=(r(d[28]),r(d[29]),(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))).renderBreakEpargneRespons=function(){var t=n.props,l=t.result,o=t.error;null!==o&&void 0!==o.data&&E.Alert.alert(h.default.t("ERROR_LABLE"),o.data.error,[{text:h.default.t("OK"),onPress:function(){n.props.casserEpargneUserReset()}}],{cancelable:!1}),null!==l&&null!==l.response&&E.Alert.alert(h.default.t("BREAK_EPARGNE_DONE"),l.response,[{text:h.default.t("OK"),onPress:function(){n.props.casserEpargneUserReset(),D.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.onSubmitCasserEpargne=function(){var t=n.state,l=t.idEpargne,o=t.password;n.ckeckIfFieldIsOK(l)?n.idEpargneAnim.shake(800):n.ckeckIfFieldIsOK(o)?n.passwordAnim.shake(800):n.props.casserEpargneUserAction({id_user:n.state.user.id,id_epargne:n.state.idEpargne,password:n.state.password},0),n.setState({isDataSubmit:!0})},n.renderLoader=function(){return y.default.createElement(w.ProgressDialog,{visible:n.props.loading||n.props.loadingGetCommission||n.props.loadingNanoCreditHistory,title:h.default.t('LOADING'),message:h.default.t('LOADING_INFO')})},n.renderModalHistoryDetail=function(){return y.default.createElement(B.default.Container,{useNativeDriver:!0,visible:n.state.displayModalHistory},y.default.createElement(B.default.Title,null,h.default.t('DEMAND_DETAIL')),y.default.createElement(E.ScrollView,null,y.default.createElement(E.View,{style:[O.blockView,{borderBottomColor:I.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:[O.body2]},h.default.t('ID_SAVINGS'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.id_epargne))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[O.body2]},h.default.t('STATUS'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.etat))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[O.body2]},h.default.t('DEMAND_DURATION_IN_MONTH'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.duree_mois))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{style:[O.body2]},"Type")),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.type))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[_.Typography.body2]},h.default.t('AMOUNT'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.montant+' '+n.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:[_.Typography.body2]},h.default.t('AMOUNT_WITHDRAWAL'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.montant_retire+' '+n.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:[_.Typography.body2]},h.default.t('TAXES'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.taxe+' '+n.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:[_.Typography.body2]},h.default.t('INTERET'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.interet+' '+n.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,{style:[O.body2]},h.default.t('CREATION_DATE'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.date_creation))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[_.Typography.body2]},h.default.t('FINAL_DATE'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},(0,f.default)(n.state.historyItemDetail.type,'SIMPLE')?h.default.t('NON_APPLICABLE'):n.state.historyItemDetail.date_fin))),y.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(E.View,{style:{flex:1}},y.default.createElement(E.Text,{tyle:[_.Typography.body2]},h.default.t('CASSATION_DATE'))),y.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(E.Text,{style:[_.Typography.caption1,I.Color.grayColor]},n.state.historyItemDetail.date_cassation))))),y.default.createElement(B.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({displayModalHistory:!n.state.displayModalHistory})}}),y.default.createElement(B.default.Button,{bold:!0,label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({displayPasswordModal:!n.state.displayPasswordModal})}}))},n.renderPasswordDialog=function(){return y.default.createElement(B.default.Container,{useNativeDriver:!0,visible:n.state.displayPasswordModal},y.default.createElement(B.default.Title,null,h.default.t('PASSWORD')),y.default.createElement(B.default.Input,{placeholder:h.default.t('PLEASE_ENTER_THE_PASSWORD'),style:{borderBottomWidth:1,borderBottomColor:I.Color.borderColor},showSoftInputOnFocus:!0,onChangeText:function(t){n.setState({password:t})},secureTextEntry:!0,value:n.state.password,onSubmitEditing:function(){n.setState({displayPasswordModal:!1,displayModalHistory:!1,isDataSubmit:!0}),n.props.refundCreditDemandUserAction({id_user:n.state.user.id,id_epargne:n.state.historyItemDetail.id_epargne,password:n.state.password})}}),y.default.createElement(B.default.Button,{label:h.default.t('CANCEL_LABEL'),onPress:function(){n.setState({displayPasswordModal:!n.state.displayPasswordModal})}}),y.default.createElement(B.default.Button,{label:h.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({displayPasswordModal:!1,displayModalHistory:!1,isDataSubmit:!0}),n.props.casserEpargneUserAction({id_user:n.state.user.id,id_epargne:n.state.historyItemDetail.id_epargne,password:n.state.password})}}))},n.renderNanoCreditItem=function(t,l){return y.default.createElement(E.TouchableOpacity,{onPress:function(){n.setState({displayModalHistory:!0,historyItemDetail:t})},style:[O.contentService,{borderBottomColor:I.Color.primaryColor}]},Object.keys((0,b.default)(t,['id','id_epargne','montant_retire','type','date_demande','date_fin','date_remboursement_prevu','date_validation','date_cassation','date_remboursement','id_demande','duree_mois','taxe','date_fin','date_cassation','id_user','id_network','user','partiellement_rembourse','user_phone','interet','date_remboursement_prevu','date_remboursement','id_wallet_agent','retrait_cash','codeParrain','agent','montant_rembourse',''])).map(function(l,o){return y.default.createElement(E.View,{style:{alignItems:'center'},key:o},y.default.createElement(E.Text,{style:(_.Typography.overline,I.Color.grayColor,{marginTop:4})},(0,f.default)(l,'montant')?" "+(t[l].length>8?(0,v.cutString)((0,R.default)(t[l],' '),6):(0,R.default)(t[l],' '))+" "+n.state.wallet.currency_code:(0,f.default)(l,'date_creation')?(0,v.cutStringWithoutDot)(t[l],16):t[l]))}))},n.renderNanoCreditList=function(){var t=n.props,l=t.errorNanoCreditHistory,o=t.resultNanoCreditHistory;return null!==l?void 0!==l.data?y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(E.Text,{style:_.Typography.body1},l.data.error)):y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(E.Text,{style:_.Typography.body1},l)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(E.View,{style:[O.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,v.nanoCreditHistoryLabel)().map(function(t,l){return y.default.createElement(E.View,{style:{alignItems:'center'},key:l},y.default.createElement(P.default,{name:t.icon,size:24,color:I.Color.primaryColor}),y.default.createElement(E.Text,{style:(_.Typography.overline,I.Color.grayColor,{marginTop:4})},h.default.t(t.label)))})),o.response.map(function(t,l){return n.renderNanoCreditItem(t,l)})):y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},y.default.createElement(E.Text,{style:_.Typography.body1},h.default.t('NO_SAVINGS'))):void 0},n.renderNanoCreditHistory=function(){return y.default.createElement(E.View,{style:{backgroundColor:I.Color.containerBackgroundColor,flex:1}},n.props.loadingNanoCreditHistory?y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(y.default.Fragment,null,y.default.createElement(E.ProgressBarAndroid,null),y.default.createElement(E.Text,null,h.default.t('LOADING_DOTS')))):n.renderNanoCreditList())},n.state={password:null,idEpargne:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,isGroupToModify:!1,displayModalHistory:!1,historyItemDetail:null,isDataHasLoaded:!1,displayPasswordModal:!1,wallet:n.props.navigation.state.params.wallet},n.props.getEpargneInProgressReset(),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,A.readUser)().then(function(l){l&&void 0!==l&&(t.setState({user:l}),t.props.getEpargneInProgressAction(l.id))})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('REFUND_NANO_CREDIT')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,f.default)(t.length,0)}},{key:"render",value:function(){return y.default.createElement(y.default.Fragment,null,(this.props.loading||this.props.loadingGetCommission||this.props.loadingNanoCreditHistory)&&this.renderLoader(),this.state.isDataSubmit&&this.renderBreakEpargneRespons(),this.state.displayModalHistory&&this.renderModalHistoryDetail(),this.state.displayPasswordModal&&this.renderPasswordDialog(),y.default.createElement(E.ScrollView,{style:O.container},y.default.createElement(E.View,{style:[O.checkDefault,{borderBottomColor:I.Color.borderColor}]},y.default.createElement(E.Text,{style:[_.Typography.title3,_.Typography.semibold]},h.default.t('SAVINGS_LIST'))),this.renderNanoCreditHistory()))}}]),l})(y.Component));k.navigatorStyle={navBarBackgroundColor:I.Color.primaryColor,statusBarColor:I.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},k.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('BREAK_EPARGNE'),headerTintColor:'white',headerStyle:{backgroundColor:I.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('BREAK_EPARGNE')}};var L=(0,T.connect)(function(t){return{loading:t.casserEpargneUserReducer.loading,result:t.casserEpargneUserReducer.result,error:t.casserEpargneUserReducer.error,errorNanoCreditHistory:t.getEpargneInProgressReducer.error,resultNanoCreditHistory:t.getEpargneInProgressReducer.result,loadingNanoCreditHistory:t.getEpargneInProgressReducer.loading}},function(t){return(0,x.bindActionCreators)({casserEpargneUserAction:V.casserEpargneUserAction,casserEpargneUserReset:V.casserEpargneUserReset,getEpargneInProgressAction:S.getEpargneInProgressAction,getEpargneInProgressReset:S.getEpargneInProgressReset},t)})(k);e.default=L;var O=E.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.containerBackgroundColor,paddingHorizontal:20},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,C.responsiveHeight)(2),marginLeft:(0,C.responsiveWidth)(5),marginRight:(0,C.responsiveWidth)(5),borderRadius:5},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:N.scaleWithPixel(30),height:N.scaleWithPixel(30)},content:{height:N.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'},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"}})},1625,[4,1,8,9,10,12,13,689,1435,15,18,720,535,1320,1049,1061,553,1034,1077,773,719,1487,1582,1458,1023,882,1460,1424,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])),v=t(r(d[10])),k=r(d[11]),b=t(r(d[12])),T=n(r(d[13])),E=r(d[14]),C=r(d[15]),S=n(r(d[16])),W=r(d[17]),w=r(d[18]),B=r(d[19]),y=r(d[20]),_=r(d[21]),A=r(d[22]),R=r(d[23]),I=r(d[24]),O=r(d[25]),F=r(d[26]),L=(r(d[27]),r(d[28]),(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))).renderEnvoieWalletToBankResponse=function(){var t=l.props,n=t.resultEnvoieWalletToBank,o=t.errorEnvoieWalletToBank;null!==o&&void 0!==o.data&&k.Alert.alert(T.default.t("ERROR_TRANSFER"),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToBankReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&k.Alert.alert(T.default.t("SUCCESS_TRANSFER"),n.response,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToBankReset(),R.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:T.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,F.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:T.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.onSubmitSendWalletToBank=function(){var t=l.state,n=t.montant,o=t.password,s=t.codeIban;l.ckeckIfFieldIsOK(s)?(s.length,l.codeIbanAnim.shake(800)):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.passwordAnim.shake(800):(console.log("id wallet network",l.state.bank),l.props.envoieUserWalletToBankAction({type:18,id_wallet_agent:l.state.wallet.id,id_wallet_network:l.state.wallet.id_network,iban:s,id_bank:l.state.bank.id_operator,montant:n,password:o})),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return v.default.createElement(C.ProgressDialog,{visible:l.props.loadingEnvoieWalletToBank,title:T.default.t('LOADING'),message:T.default.t('LOADING_INFO')})},l.state={montant:null,password:null,codeIban:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:A.store.getState().walletDetailReducer.result.response,bank:l.props.navigation.state.params.bank},l.props.envoieUserWalletToBankReset(),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){console.log('PROPS',t)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:T.default.t('DEPOSIT_TO_CARD')}),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 v.default.createElement(v.default.Fragment,null,this.props.loadingEnvoieWalletToBank&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToBankResponse(),v.default.createElement(k.ScrollView,{style:U.container},v.default.createElement(k.Text,{style:U.subbigtitle},T.default.t('ENVOIE_WALLET_TO_BANK')),v.default.createElement(b.View,{ref:function(n){t.codeIbanAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.default,iconName:'id-card',label:T.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.codeIban,onChangeText:function(n){t.setState({codeIban:n})},style:U.input})),v.default.createElement(b.View,{ref:function(n){t.montantAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.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:U.input}),v.default.createElement(k.View,{style:{position:'absolute',left:(0,E.responsiveWidth)(82),top:35,flexDirection:'row'}},v.default.createElement(k.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),v.default.createElement(k.Text,{style:[_.Typography.body1,_.FontWeight.bold]},this.state.wallet.currency_code))),v.default.createElement(b.View,{ref:function(n){t.passwordAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.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:U.input})),v.default.createElement(f.default,{style:U.btnvalide,textStyle:U.textbtnvalide,onPress:function(){t.onSubmitSendWalletToBank()}},T.default.t('SUBMIT_LABEL'))))}}]),n})(v.Component));L.navigatorStyle={navBarBackgroundColor:y.Color.primaryColor,statusBarColor:y.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},L.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:T.default.t('DEPOSIT_WALLET_TO_BANK'),headerTintColor:'white',headerStyle:{backgroundColor:y.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:T.default.t('DEPOSIT_WALLET_TO_BANK')}};var N=(0,w.connect)(function(t){return{loadingEnvoieWalletToBank:t.envoieUserWalletToBank.loading,resultEnvoieWalletToBank:t.envoieUserWalletToBank.result,errorEnvoieWalletToBank:t.envoieUserWalletToBank.error}},function(t){return(0,B.bindActionCreators)({envoieUserWalletToBankAction:O.envoieUserWalletToBankAction,envoieUserWalletToBankReset:O.envoieUserWalletToBankReset},t)})(L);e.default=N;var U=k.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}})},1626,[4,1,8,9,10,12,13,717,689,1435,15,18,750,720,535,1320,539,704,1049,1061,1034,1077,1105,773,719,1597,1458,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])),k=n(r(d[7])),f=n(r(d[8])),h=n(r(d[9])),p=t(r(d[10])),b=r(d[11]),A=t(r(d[12])),R=n(r(d[13])),C=r(d[14]),S=r(d[15]),B=r(d[16]),v=n(r(d[17])),_=r(d[18]),I=r(d[19]),T=r(d[20]),E=(r(d[21]),r(d[22])),L=r(d[23]),O=r(d[24]),w=r(d[25]),D=r(d[26]),N=r(d[27]),y=(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:R.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,O.isNormalInteger)(t)?t>parseInt(l.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}},l.renderIlinkBankList=function(){var t=l.props,n=t.resultGetBank,o=t.errorGetBank;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadBank:!0,ilinkBanks:n.response,bankSelect:n.response[0].bank_name+" - "+n.response[0].bank_address,bankToSend:n.response[0],modalVisible:!1}):0===n.response.length&&l.setState({hasLoadBank:!0,ilinkBanks:[],bankSelect:'',bankToSend:null,modalVisible:!1})),null!==o&&(void 0!==o.data?b.Alert.alert(R.default.t('ERROR_LABEL'),o.data.error,[{text:R.default.t("OK"),onPress:function(){l.props.getIlinkBankReset()}}],{cancelable:!1}):b.Alert.alert(R.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:R.default.t("OK"),onPress:function(){l.props.getIlinkBankReset()}}],{cancelable:!1}))},l.renderReattachAccountResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&b.Alert.alert(R.default.t("ERROR_LABLE"),o.data.error,[{text:R.default.t("OK"),onPress:function(){l.props.reattachAccountReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&b.Alert.alert(R.default.t("DEMAND_SEND"),n.response,[{text:R.default.t("OK"),onPress:function(){l.props.reattachAccountReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitSendWalletToCard=function(){var t=l.state,n=t.iban,o=t.bankSelect;l.ckeckIfFieldIsOK(o)?l.listBankAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.ibanAnim.shake(800):(console.warn("Code Iban",l.state.iban),console.warn("Bank",l.state.bankToSend),l.props.reattachAccountAction({iban:l.state.iban,id_bank:l.state.bankToSend.id_bank,id_wallet_network:l.state.wallet.id_wallet_network,id_user:l.state.user.id})),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return p.default.createElement(S.ProgressDialog,{visible:l.props.loading||l.props.loadingGetBank,title:R.default.t('LOADING'),message:R.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,user:null,iban:null,bankToSend:null,ilinkBanks:[],bankSelect:null,triggerSubmitClick:!1,hasLoadBank:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:E.store.getState().walletDetailReducer.result.response},l.props.getIlinkBankReset(),l.props.getIlinkBankAction(l.state.wallet.id_wallet_network),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,L.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:R.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return console.log(this.state),p.default.createElement(p.default.Fragment,null,(this.props.loading||this.props.loadingGetBank)&&this.renderLoader(),this.state.isDataSubmit&&this.renderReattachAccountResponse(),!this.state.hasLoadBank&&this.renderIlinkBankList(),p.default.createElement(b.ScrollView,{style:x.container},p.default.createElement(b.Text,{style:x.subbigtitle},R.default.t('FILL_INFORMATION')),p.default.createElement(A.View,{ref:function(n){t.listBankAnim=n},style:{width:(0,C.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},p.default.createElement(D.Dropdown,{label:R.default.t('BANK_LIST'),data:this.state.ilinkBanks,useNativeDriver:!0,value:null!==this.state.bankSelect?this.state.bankSelect:'',onChangeText:function(n,o,l){console.log(n),t.setState({bankSelect:n.bank_name+" - "+n.bank_address,bankToSend:n})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.bank_name+" - "+t.bank_address}})),p.default.createElement(A.View,{ref:function(n){t.ibanAnim=n}},p.default.createElement(B.Fumi,{iconClass:v.default,iconName:'id-card',label:R.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.iban,onChangeText:function(n){t.setState({iban:n})},style:x.input})),p.default.createElement(k.default,{style:x.btnvalide,textStyle:x.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},R.default.t('SUBMIT_LABEL'))))}}]),n})(p.Component));y.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},y.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:R.default.t('REATTACH_CARD'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:R.default.t('REATTACH_CARD')}};var F=(0,_.connect)(function(t){return{loadingGetBank:t.getIlinkBankReducer.loading,resultGetBank:t.getIlinkBankReducer.result,errorGetBank:t.getIlinkBankReducer.error,loading:t.reattachAccountReducer.loading,result:t.reattachAccountReducer.result,error:t.reattachAccountReducer.error}},function(t){return(0,I.bindActionCreators)({getIlinkBankAction:N.getIlinkBankAction,getIlinkBankReset:N.getIlinkBankReset,reattachAccountAction:N.reattachAccountAction,reattachAccountReset:N.reattachAccountReset,askNanoCreditAction:w.askNanoCreditAction,getNanoCreditDemandDurationAction:w.getNanoCreditDemandDurationAction},t)})(y);e.default=F;var x=b.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,C.responsiveHeight)(2),marginLeft:(0,C.responsiveWidth)(5),marginRight:(0,C.responsiveWidth)(5),borderRadius:5}})},1627,[4,1,8,9,10,12,13,717,689,1435,15,18,750,720,535,1320,704,539,1049,1061,1034,1077,1105,719,1458,1487,982,1414,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 l=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=t(r(d[5])),s=r(d[6]),f=r(d[7]),h=n(r(d[8])),p=r(d[9]),b=t(r(d[10])),_=t(r(d[11])),E=r(d[12]),C=n(r(d[13])),w=r(d[14]),y=n(r(d[15])),I=n(r(d[16])),S=n(r(d[17])),x=n(r(d[18])),D=n(r(d[19])),A=r(d[20]),R=n(r(d[21])),T=n(r(d[22])),O=r(d[23]),P=n(r(d[24])),L=r(d[25]),k=n(r(d[26])),v=n(r(d[27])),V=t(r(d[28])),F=r(d[29]),N=r(d[30]),B=n(r(d[31])),M=r(d[32]),Y=r(d[33]),U=n(r(d[34])),j=n(r(d[35])),H=r(d[36]),G=n(r(d[37]));function K(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 z(t){for(var n=1;n1?$.result.response[1]:null,marriage_certificate_doc:$.result.response[0],id_document_type:"CNI",id_document_front:$.result.response[1],id_document_back:$.result.response[2]}].concat((0,o.default)(jt))),Ke.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),le(!1))),$.error&&s.Alert.alert(C.default.t("ERROR_LABLE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){Ge((0,O.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[$]);var Lt=b.object().shape({password:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED'))}),kt=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),vt=(0,c.useState)(!0),Vt=(0,u.default)(vt,2),Ft=(Vt[0],Vt[1],(0,c.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}])),Nt=(0,u.default)(Ft,2),Bt=Nt[0],Mt=Nt[1],Yt=(0,c.useState)([]),Ut=(0,u.default)(Yt,2),jt=Ut[0],Ht=Ut[1],Gt=(0,c.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),Kt=(0,u.default)(Gt,2),zt=Kt[0],Wt=Kt[1],Xt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],k.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var l,u;"CHILD"===xt?Mt(Bt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Wt(zt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),l=t,u=n,null!==Be&&(Ve=Be),Ve.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===s.Platform.OS?u.path:u.path.replace("file://","")}),He([l].concat((0,o.default)(je))),Me(Ve)})},Jt=function(t,n){var l=n||nt;ut('ios'===s.Platform.OS),lt(l)};return c.default.createElement(w.ScreenComponent,null,c.default.createElement(P.default,{ref:function(t){return Ke=t}}),c.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(p.Formik,{validationSchema:Lt,initialValues:{password:''},onSubmit:function(t){null!==me&&(null===be?Pt.shake(800):(console.log(me),console.log("insurance",be),ve(t.password),X({network_id:be.id,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id,beneficiaries:jt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,u=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.View,{style:q.contain},c.default.createElement(V.View,{ref:function(t){Pt=t},style:{width:(0,A.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('SELECT_INSURANCE'),data:Xe,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),_e({age_limit_of_child_beneficiary:t.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:t.age_limit_of_insured_and_spouse,id:t.id,max_number_of_beneficiaries:t.max_number_of_beneficiaries,name:t.name,months_prices:t.months_prices.map(function(t,n){return{id:t.id,child_prices:t.child_prices,dealine_amount:t.dealine_amount,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,checked:0===n}})}),ye(t.months_prices[0]),Q(t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),null!==be&&c.default.createElement(V.View,{ref:function(t){},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:10,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('AMOUNT_PER_MONTH'),value:null!==we?C.default.t('PRIME_PRINCIPAL')+": "+we.min_amount+" | "+we.payment_period+" | "+C.default.t('ECH')+": "+we.number_of_fractions:"",data:be.months_prices.map(function(t,n){return z({checked:(0,j.default)(t.checked)?0===n:t.checked},t)}),useNativeDriver:!0,onChangeText:function(t,n,l){var o,u;console.log("Value",l[n]),ye(l[n]),o=l[n],u=be,_e({age_limit_of_child_beneficiary:be.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:be.age_limit_of_insured_and_spouse,id:be.id,max_number_of_beneficiaries:be.max_number_of_beneficiaries,name:be.name,months_prices:u.months_prices.map(function(t){return{id:t.id,child_prices:t.child_prices,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,dealine_amount:t.dealine_amount,checked:t.id===o.id}})})},valueExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions},labelExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions}})),c.default.createElement(S.default,{style:{marginTop:10},onChangeText:u('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(D.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),c.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},c.default.createElement(s.TouchableOpacity,{onPress:function(){null===be?s.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t("PLEASE_SELECT_INSURANCE_BEFORE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(le(!0),ut(!1),Ge((0,O.fetchUploadInsuranceReset)()),Dt('CHILD'),Ot(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)),lt(''+W(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),De(null),Oe(null),He([]))}},c.default.createElement(I.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),c.default.createElement(x.default,{style:{marginTop:20},full:!0,loading:F.loading,onPress:h},C.default.t('SUBMIT_LABEL')),dt&&c.default.createElement(B.default.Container,{useNativeDriver:!0,visible:dt},c.default.createElement(B.default.Title,null,C.default.t('DETAIL')),c.default.createElement(s.View,null,c.default.createElement(s.View,{style:[q.blockView,{borderBottomColor:E.Color.borderColor}]},c.default.createElement(s.View,{style:{flexDirection:'row',marginTop:10}},c.default.createElement(s.View,{style:{flex:1}},c.default.createElement(I.default,{style:[q.body2]},C.default.t('PRIME_AMOUNT'))),c.default.createElement(s.View,{style:{flex:1,alignItems:'flex-end'}},c.default.createElement(I.default,{style:[M.Typography.caption1,E.Color.grayColor]},F.result.response.bonus_amount_formatted))))),c.default.createElement(B.default.Button,{bold:!0,label:C.default.t('OK'),onPress:function(){N({network_id:be.id,user_id:me.id,password:ke,beneficiaries:jt,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id}),Ge((0,O.fetchGetInsurancePrimeAmountReset)()),ft(!1)}})))}))),ie&&c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ie,onSwipeComplete:function(){le(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('EXCLUSION')),c.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},c.default.createElement(G.default,{style:{flex:1},originWhitelist:['*'],source:{html:Z.result.document}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ue(!1)}},C.default.t('OK'))))),ne&&c.default.createElement(p.Formik,{validationSchema:kt,initialValues:{firstname:'',lastname:''},onSubmit:function(t){J(Be),De(t.firstname),Oe(t.lastname)}},function(t){var n=t.values,o=t.errors,u=t.touched,f=t.handleChange,p=t.handleBlur,b=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ne,onSwipeComplete:function(){le(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:n.lastname,onChangeText:f('lastname'),onBlur:p('lastname'),success:u.lastname&&!o.lastname,touched:u.lastname,error:o.lastname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:n.firstname,onChangeText:f('firstname'),onBlur:p('firstname'),success:u.firstname&&!o.firstname,touched:u.firstname,error:o.firstname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+W(nt).format('YYYY-MM-DD'),onChangeText:f('birthdate'),onBlur:p('birthdate'),onFocus:function(){s.Keyboard.dismiss(),ut(!0)},success:u.birthdate&&!o.birthdate,touched:u.birthdate,error:o.birthdate}),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('SEXE')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:$e,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){Ct(t)}}))),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('AFFILIATION')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:yt,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){He([]),Ot('CHILD'===t?new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(be.age_limit_of_insured_and_spouse),0,1)),Dt(t)}}))),c.default.createElement(s.View,{style:q.contentService},c.default.createElement(s.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===xt?Bt:zt,extraData:'CHILD'===xt?Bt:zt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Xt(n.name,n.isFrontCamera)}},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:E.Color.accentColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Xt(n.name,n.isFrontCamera)},disabled:!je.includes('CHILD'===xt?Bt[l-1].name:zt[l-1].name)},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:je.includes('CHILD'===xt?Bt[l-1].name:zt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:$.loading||l.loading,onPress:b},C.default.t('SUBMIT_LABEL'))))))}),gt&&c.default.createElement(h.default,{isVisible:gt,onSwipeComplete:function(){return pt(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(s.View,{style:[q.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),c.default.createElement(s.View,{style:[{marginBottom:40}]},c.default.createElement(s.FlatList,{data:jt,extraData:jt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return c.default.createElement(s.View,{style:q.lineRow},c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('NOM_ASSURE')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('AFFILIATION')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),c.default.createElement(s.View,{style:q.iconRight},c.default.createElement(s.TouchableOpacity,{onPress:function(){var t=jt;console.log("beneficiariesTemp index",l),t.splice(l),console.log("beneficiariesTemp",t),Ht((0,o.default)(t))}},c.default.createElement(U.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){pt(!1)}},C.default.t('OK')))),it&&c.default.createElement(v.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(nt),mode:"date",minimumDate:Tt,display:"spinner",onChange:Jt}),jt.length>=1&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return pt(!0)}},c.default.createElement(I.default,{whiteColor:!0,title2:!0},jt.length),c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))),null!==Z.result&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,left:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){ue(!0)}},c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('EXCLUSION'))))});e.default=$},1628,[4,1,7,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,1424,1077,982,1016,1435,1105,841,1190]); +__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=t(r(d[5])),s=r(d[6]),f=r(d[7]),h=n(r(d[8])),p=r(d[9]),b=t(r(d[10])),_=t(r(d[11])),E=r(d[12]),C=n(r(d[13])),w=r(d[14]),y=n(r(d[15])),I=n(r(d[16])),S=n(r(d[17])),x=n(r(d[18])),D=n(r(d[19])),A=r(d[20]),R=n(r(d[21])),T=n(r(d[22])),O=r(d[23]),P=n(r(d[24])),v=r(d[25]),L=n(r(d[26])),k=n(r(d[27])),V=t(r(d[28])),F=r(d[29]),N=r(d[30]),B=n(r(d[31])),M=r(d[32]),Y=r(d[33]),U=n(r(d[34])),j=n(r(d[35])),H=r(d[36]),G=n(r(d[37]));function K(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 z(t){for(var n=1;n1?$.result.response[1]:null,marriage_certificate_doc:$.result.response[0],id_document_type:"CNI",id_document_front:$.result.response[1],id_document_back:$.result.response[2]}].concat((0,o.default)(Ht))),Ke.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),le(!1))),$.error&&s.Alert.alert(C.default.t("ERROR_LABLE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){Ge((0,O.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[$]);var Lt=b.object().shape({password:"MAX"===tt.password_validation?b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')):b.string()}),kt=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),Vt=(0,c.useState)(!0),Ft=(0,u.default)(Vt,2),Nt=(Ft[0],Ft[1],(0,c.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}])),Bt=(0,u.default)(Nt,2),Mt=Bt[0],Yt=Bt[1],Ut=(0,c.useState)([]),jt=(0,u.default)(Ut,2),Ht=jt[0],Gt=jt[1],Kt=(0,c.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),zt=(0,u.default)(Kt,2),Wt=zt[0],Xt=zt[1],Jt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],L.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var l,u;"CHILD"===Dt?Yt(Mt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Xt(Wt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),l=t,u=n,null!==Be&&(Ve=Be),Ve.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===s.Platform.OS?u.path:u.path.replace("file://","")}),He([l].concat((0,o.default)(je))),Me(Ve)})},Qt=function(t,n){var l=n||lt;ct('ios'===s.Platform.OS),ot(l)};return c.default.createElement(w.ScreenComponent,null,c.default.createElement(P.default,{ref:function(t){return Ke=t}}),c.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(p.Formik,{validationSchema:Lt,initialValues:{password:''},onSubmit:function(t){null!==me&&(null===be?vt.shake(800):(console.log(me),console.log("insurance",be),ke(t.password),X({network_id:be.id,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id,beneficiaries:Ht})))}},function(t){var n=t.values,l=t.errors,o=t.touched,u=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.View,{style:q.contain},c.default.createElement(V.View,{ref:function(t){vt=t},style:{width:(0,A.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('SELECT_INSURANCE'),data:Xe,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),_e({age_limit_of_child_beneficiary:t.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:t.age_limit_of_insured_and_spouse,id:t.id,max_number_of_beneficiaries:t.max_number_of_beneficiaries,name:t.name,months_prices:t.months_prices.map(function(t,n){return{id:t.id,child_prices:t.child_prices,dealine_amount:t.dealine_amount,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,checked:0===n}})}),ye(t.months_prices[0]),Q(t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),null!==be&&c.default.createElement(V.View,{ref:function(t){},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:10,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('AMOUNT_PER_MONTH'),value:null!==we?C.default.t('PRIME_PRINCIPAL')+": "+we.min_amount+" | "+we.payment_period+" | "+C.default.t('ECH')+": "+we.number_of_fractions:"",data:be.months_prices.map(function(t,n){return z({checked:(0,j.default)(t.checked)?0===n:t.checked},t)}),useNativeDriver:!0,onChangeText:function(t,n,l){var o,u;console.log("Value",l[n]),ye(l[n]),o=l[n],u=be,_e({age_limit_of_child_beneficiary:be.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:be.age_limit_of_insured_and_spouse,id:be.id,max_number_of_beneficiaries:be.max_number_of_beneficiaries,name:be.name,months_prices:u.months_prices.map(function(t){return{id:t.id,child_prices:t.child_prices,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,dealine_amount:t.dealine_amount,checked:t.id===o.id}})})},valueExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions},labelExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions}})),"MAX"===tt.password_validation&&c.default.createElement(S.default,{style:{marginTop:10},onChangeText:u('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(D.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),c.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},c.default.createElement(s.TouchableOpacity,{onPress:function(){null===be?s.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t("PLEASE_SELECT_INSURANCE_BEFORE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(le(!0),ct(!1),Ge((0,O.fetchUploadInsuranceReset)()),At('CHILD'),Pt(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)),ot(''+W(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),De(null),Oe(null),He([]))}},c.default.createElement(I.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),c.default.createElement(x.default,{style:{marginTop:20},full:!0,loading:F.loading,onPress:h},C.default.t('SUBMIT_LABEL')),ft&&c.default.createElement(B.default.Container,{useNativeDriver:!0,visible:ft},c.default.createElement(B.default.Title,null,C.default.t('DETAIL')),c.default.createElement(s.View,null,c.default.createElement(s.View,{style:[q.blockView,{borderBottomColor:E.Color.borderColor}]},c.default.createElement(s.View,{style:{flexDirection:'row',marginTop:10}},c.default.createElement(s.View,{style:{flex:1}},c.default.createElement(I.default,{style:[q.body2]},C.default.t('PRIME_AMOUNT'))),c.default.createElement(s.View,{style:{flex:1,alignItems:'flex-end'}},c.default.createElement(I.default,{style:[M.Typography.caption1,E.Color.grayColor]},F.result.response.bonus_amount_formatted))))),c.default.createElement(B.default.Button,{bold:!0,label:C.default.t('OK'),onPress:function(){N({network_id:be.id,user_id:me.id,password:Le,beneficiaries:Ht,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id}),Ge((0,O.fetchGetInsurancePrimeAmountReset)()),mt(!1)}})))}))),ie&&c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ie,scrollHorizontal:!0,onSwipeComplete:function(){le(!1)},swipeDirection:null,style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('EXCLUSION')),c.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},c.default.createElement(G.default,{style:{flex:1},originWhitelist:['*'],source:{html:Z.result.document}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ue(!1)}},C.default.t('OK'))))),ne&&c.default.createElement(p.Formik,{validationSchema:kt,initialValues:{firstname:'',lastname:''},onSubmit:function(t){J(Be),De(t.firstname),Oe(t.lastname)}},function(t){var n=t.values,o=t.errors,u=t.touched,f=t.handleChange,p=t.handleBlur,b=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ne,onSwipeComplete:function(){le(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:n.lastname,onChangeText:f('lastname'),onBlur:p('lastname'),success:u.lastname&&!o.lastname,touched:u.lastname,error:o.lastname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:n.firstname,onChangeText:f('firstname'),onBlur:p('firstname'),success:u.firstname&&!o.firstname,touched:u.firstname,error:o.firstname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+W(lt).format('YYYY-MM-DD'),onChangeText:f('birthdate'),onBlur:p('birthdate'),onFocus:function(){s.Keyboard.dismiss(),ct(!0)},success:u.birthdate&&!o.birthdate,touched:u.birthdate,error:o.birthdate}),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('SEXE')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:$e,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){wt(t)}}))),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('AFFILIATION')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:It,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){He([]),Pt('CHILD'===t?new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(be.age_limit_of_insured_and_spouse),0,1)),At(t)}}))),c.default.createElement(s.View,{style:q.contentService},c.default.createElement(s.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===Dt?Mt:Wt,extraData:'CHILD'===Dt?Mt:Wt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Jt(n.name,n.isFrontCamera)}},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:E.Color.accentColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Jt(n.name,n.isFrontCamera)},disabled:!je.includes('CHILD'===Dt?Mt[l-1].name:Wt[l-1].name)},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:je.includes('CHILD'===Dt?Mt[l-1].name:Wt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:$.loading||l.loading,onPress:b},C.default.t('SUBMIT_LABEL'))))))}),pt&&c.default.createElement(h.default,{isVisible:pt,onSwipeComplete:function(){return bt(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(s.View,{style:[q.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),c.default.createElement(s.View,{style:[{marginBottom:40}]},c.default.createElement(s.FlatList,{data:Ht,extraData:Ht,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return c.default.createElement(s.View,{style:q.lineRow},c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('NOM_ASSURE')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('AFFILIATION')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),c.default.createElement(s.View,{style:q.iconRight},c.default.createElement(s.TouchableOpacity,{onPress:function(){var t=Ht;console.log("beneficiariesTemp index",l),t.splice(l),console.log("beneficiariesTemp",t),Gt((0,o.default)(t))}},c.default.createElement(U.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){bt(!1)}},C.default.t('OK')))),ut&&c.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(lt),mode:"date",minimumDate:Ot,display:"spinner",onChange:Qt}),Ht.length>=1&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return bt(!0)}},c.default.createElement(I.default,{whiteColor:!0,title2:!0},Ht.length),c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))),null!==Z.result&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,left:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){ue(!0)}},c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('EXCLUSION'))))});e.default=$},1628,[4,1,7,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,1424,1077,982,1016,1435,1105,841,1190]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ReactNativeModal",{enumerable:!0,get:function(){return t.ReactNativeModal}}),e.default=void 0;var t=r(d[0]),o=t.ReactNativeModal;e.default=o},1629,[1630]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactNativeModal=void 0;var o=t(r(d[2])),s=t(r(d[3])),p=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),u=t(r(d[7])),f=t(r(d[8])),h=t(r(d[9])),w=n(r(d[10])),v=r(d[11]),b=n(r(d[12])),S=n(r(d[13])),k=r(d[14]),D=t(r(d[15]));function O(n,t){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),o.push.apply(o,s)}return o}function y(n){for(var t=1;t=o.props.panResponderThreshold||Math.abs(s.dy)>=o.props.panResponderThreshold;return p&&o.props.onSwipeStart&&o.props.onSwipeStart(s),o.currentSwipingDirection=o.getSwipingDirection(s),n=o.createAnimationEventForSwipe(),p}return!1},onStartShouldSetPanResponder:function(n,t){return!(n._dispatchInstances&&n._dispatchInstances.some(function(n){return/scrollview|flatlist/i.test(n.type)})&&o.shouldPropagateSwipe(n,t)&&o.props.scrollTo&&o.props.scrollOffset>0)&&(o.props.onSwipeStart&&o.props.onSwipeStart(t),o.currentSwipingDirection=null,!0)},onPanResponderMove:function(t,s){if(!o.currentSwipingDirection){if(0===s.dx&&0===s.dy)return;o.currentSwipingDirection=o.getSwipingDirection(s),n=o.createAnimationEventForSwipe()}if(o.isSwipeDirectionAllowed(s)){var p=1-o.calcDistancePercentage(s);o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity*p}),n(t,s),o.props.onSwipeMove&&o.props.onSwipeMove(p,s)}else if(o.props.scrollTo)if(o.props.scrollHorizontal){var c=-s.dx;c>o.props.scrollOffsetMax&&(c-=(c-o.props.scrollOffsetMax)/2),o.props.scrollTo({x:c,animated:!1})}else{var l=-s.dy;l>o.props.scrollOffsetMax&&(l-=(l-o.props.scrollOffsetMax)/2),o.props.scrollTo({y:l,animated:!1})}},onPanResponderRelease:function(n,t){if(o.getAccDistancePerDirection(t)>o.props.swipeThreshold&&o.isSwipeDirectionAllowed(t)){if(o.props.onSwipeComplete)return o.inSwipeClosingState=!0,void o.props.onSwipeComplete({swipingDirection:o.getSwipingDirection(t)},t);if(o.props.onSwipe)return o.inSwipeClosingState=!0,void o.props.onSwipe()}o.props.onSwipeCancel&&o.props.onSwipeCancel(t),o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity}),v.Animated.spring(o.state.pan,{toValue:{x:0,y:0},bounciness:0,useNativeDriver:!1}).start(),o.props.scrollTo&&o.props.scrollOffset>o.props.scrollOffsetMax&&o.props.scrollTo({y:o.props.scrollOffsetMax,animated:!0})}})},o.getAccDistancePerDirection=function(n){switch(o.currentSwipingDirection){case'up':return-n.dy;case'down':return n.dy;case'right':return n.dx;case'left':return-n.dx;default:return 0}},o.getSwipingDirection=function(n){return Math.abs(n.dx)>Math.abs(n.dy)?n.dx>0?'right':'left':n.dy>0?'down':'up'},o.calcDistancePercentage=function(n){switch(o.currentSwipingDirection){case'down':return(n.moveY-n.y0)/((o.props.deviceHeight||o.state.deviceHeight)-n.y0);case'up':return(0,k.reversePercentage)(n.moveY/n.y0);case'left':return(0,k.reversePercentage)(n.moveX/n.x0);case'right':return(n.moveX-n.x0)/((o.props.deviceWidth||o.state.deviceWidth)-n.x0);default:return 0}},o.createAnimationEventForSwipe=function(){return'right'===o.currentSwipingDirection||'left'===o.currentSwipingDirection?v.Animated.event([null,{dx:o.state.pan.x}],{useNativeDriver:!1}):v.Animated.event([null,{dy:o.state.pan.y}],{useNativeDriver:!1})},o.isDirectionIncluded=function(n){return Array.isArray(o.props.swipeDirection)?o.props.swipeDirection.includes(n):o.props.swipeDirection===n},o.isSwipeDirectionAllowed=function(n){var t=n.dy,s=n.dx,p=t>0,c=t<0,l=s<0,u=s>0;return!('up'!==o.currentSwipingDirection||!o.isDirectionIncluded('up')||!c)||(!('down'!==o.currentSwipingDirection||!o.isDirectionIncluded('down')||!p)||(!('right'!==o.currentSwipingDirection||!o.isDirectionIncluded('right')||!u)||!('left'!==o.currentSwipingDirection||!o.isDirectionIncluded('left')||!l)))},o.handleDimensionsUpdate=function(){if(!o.props.deviceHeight&&!o.props.deviceWidth){var n=v.Dimensions.get('window').width,t=v.Dimensions.get('window').height;n===o.state.deviceWidth&&t===o.state.deviceHeight||o.setState({deviceWidth:n,deviceHeight:t})}},o.open=function(){o.isTransitioning||(o.isTransitioning=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),o.state.isSwipeable&&o.state.pan.setValue({x:0,y:0}),o.contentRef&&(o.props.onModalWillShow&&o.props.onModalWillShow(),null==o.interactionHandle&&(o.interactionHandle=v.InteractionManager.createInteractionHandle()),o.contentRef.animate(o.animationIn,o.props.animationInTiming).then(function(){o.isTransitioning=!1,o.interactionHandle&&(v.InteractionManager.clearInteractionHandle(o.interactionHandle),o.interactionHandle=null),o.props.isVisible?o.props.onModalShow():o.close()})))},o.close=function(){if(!o.isTransitioning){o.isTransitioning=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:0},o.props.backdropTransitionOutTiming);var n=o.animationOut;o.inSwipeClosingState&&(o.inSwipeClosingState=!1,'up'===o.currentSwipingDirection?n='slideOutUp':'down'===o.currentSwipingDirection?n='slideOutDown':'right'===o.currentSwipingDirection?n='slideOutRight':'left'===o.currentSwipingDirection&&(n='slideOutLeft')),o.contentRef&&(o.props.onModalWillHide&&o.props.onModalWillHide(),null==o.interactionHandle&&(o.interactionHandle=v.InteractionManager.createInteractionHandle()),o.contentRef.animate(n,o.props.animationOutTiming).then(function(){o.isTransitioning=!1,o.interactionHandle&&(v.InteractionManager.clearInteractionHandle(o.interactionHandle),o.interactionHandle=null),o.props.isVisible?o.open():o.setState({showContent:!1},function(){o.setState({isVisible:!1},function(){o.props.onModalHide()})})}))}},o.makeBackdrop=function(){if(!o.props.hasBackdrop)return null;o.props.customBackdrop&&!w.isValidElement(o.props.customBackdrop)&&console.warn('Invalid customBackdrop element passed to Modal. You must provide a valid React element.');var n=o.props,t=n.customBackdrop,s=n.backdropColor,p=n.useNativeDriver,c=n.useNativeDriverForBackdrop,l=n.onBackdropPress,u=!!o.props.customBackdrop,f=[{width:o.getDeviceWidth(),height:o.getDeviceHeight(),backgroundColor:o.state.showContent&&!u?s:'transparent'}],h=w.createElement(S.View,{ref:function(n){return o.backdropRef=n},useNativeDriver:void 0!==c?c:p,style:[D.default.backdrop,f]},u&&t);return u?h:w.createElement(v.TouchableWithoutFeedback,{onPress:l},h)};var s=(0,k.buildAnimations)(T(n)),p=s.animationIn,l=s.animationOut;return o.animationIn=p,o.animationOut=l,o.state.isSwipeable&&(o.state=y({},o.state,{pan:new v.Animated.ValueXY}),o.buildPanResponder()),n.isVisible&&(o.state=y({},o.state,{isVisible:!0,showContent:!0})),o}return(0,h.default)(t,n),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.props.onSwipe&&console.warn('`` is deprecated and will be removed starting from 13.0.0. Use `` instead.'),v.DeviceEventEmitter.addListener('didUpdateDimensions',this.handleDimensionsUpdate),this.state.isVisible&&this.open(),v.BackHandler.addEventListener('hardwareBackPress',this.onBackButtonPress)}},{key:"componentWillUnmount",value:function(){v.BackHandler.removeEventListener('hardwareBackPress',this.onBackButtonPress),v.DeviceEventEmitter.removeListener('didUpdateDimensions',this.handleDimensionsUpdate),this.interactionHandle&&(v.InteractionManager.clearInteractionHandle(this.interactionHandle),this.interactionHandle=null)}},{key:"componentDidUpdate",value:function(n){if(this.props.animationIn!==n.animationIn||this.props.animationOut!==n.animationOut){var t=(0,k.buildAnimations)(T(this.props)),o=t.animationIn,s=t.animationOut;this.animationIn=o,this.animationOut=s}this.props.backdropOpacity!==n.backdropOpacity&&this.backdropRef&&this.backdropRef.transitionTo({opacity:this.props.backdropOpacity},this.props.backdropTransitionInTiming),this.props.isVisible&&!n.isVisible?this.open():!this.props.isVisible&&n.isVisible&&this.close()}},{key:"render",value:function(){var n=this,t=this.props,p=(t.animationIn,t.animationInTiming,t.animationOut,t.animationOutTiming,t.avoidKeyboard),c=t.coverScreen,l=(t.hasBackdrop,t.backdropColor,t.backdropOpacity,t.backdropTransitionInTiming,t.backdropTransitionOutTiming,t.customBackdrop,t.children),u=(t.isVisible,t.onModalShow,t.onBackButtonPress),f=t.useNativeDriver,h=(t.propagateSwipe,t.style),b=(0,s.default)(t,["animationIn","animationInTiming","animationOut","animationOutTiming","avoidKeyboard","coverScreen","hasBackdrop","backdropColor","backdropOpacity","backdropTransitionInTiming","backdropTransitionOutTiming","customBackdrop","children","isVisible","onModalShow","onBackButtonPress","useNativeDriver","propagateSwipe","style"]),k=(b.testID,(0,s.default)(b,["testID"])),O=[{margin:.05*this.getDeviceWidth(),transform:[{translateY:0}]},D.default.content,h],T={},M={};this.state.isSwipeable&&(T=y({},this.panResponder.panHandlers),M=f?{transform:this.state.pan.getTranslateTransform()}:this.state.pan.getLayout());var B=this.props.hideModalContentWhileAnimating&&this.props.useNativeDriver&&!this.state.showContent?w.createElement(S.View,null):l,I=w.createElement(S.View,(0,o.default)({},T,{ref:function(t){return n.contentRef=t},style:[M,O],pointerEvents:"box-none",useNativeDriver:f},k),B);return!c&&this.state.isVisible?w.createElement(v.View,{pointerEvents:"box-none",style:[D.default.backdrop,D.default.containerBox]},this.makeBackdrop(),I):w.createElement(v.Modal,(0,o.default)({transparent:!0,animationType:'none',visible:this.state.isVisible,onRequestClose:u},b),this.makeBackdrop(),p?w.createElement(v.KeyboardAvoidingView,{behavior:'ios'===v.Platform.OS?'padding':void 0,pointerEvents:"box-none",style:O.concat([{margin:0}])},I):I)}}],[{key:"getDerivedStateFromProps",value:function(n,t){return!t.isVisible&&n.isVisible?{isVisible:!0,showContent:!0}:null}}]),t})(w.Component);e.ReactNativeModal=M,M.propTypes={animationIn:b.oneOfType([b.string,b.object]),animationInTiming:b.number,animationOut:b.oneOfType([b.string,b.object]),animationOutTiming:b.number,avoidKeyboard:b.bool,coverScreen:b.bool,hasBackdrop:b.bool,backdropColor:b.string,backdropOpacity:b.number,backdropTransitionInTiming:b.number,backdropTransitionOutTiming:b.number,customBackdrop:b.node,children:b.node.isRequired,deviceHeight:b.number,deviceWidth:b.number,isVisible:b.bool.isRequired,hideModalContentWhileAnimating:b.bool,propagateSwipe:b.oneOfType([b.bool,b.func]),onModalShow:b.func,onModalWillShow:b.func,onModalHide:b.func,onModalWillHide:b.func,onBackButtonPress:b.func,onBackdropPress:b.func,panResponderThreshold:b.number,onSwipeStart:b.func,onSwipeMove:b.func,onSwipeComplete:b.func,onSwipeCancel:b.func,swipeThreshold:b.number,swipeDirection:b.oneOfType([b.arrayOf(b.oneOf(['up','down','left','right'])),b.oneOf(['up','down','left','right'])]),useNativeDriver:b.bool,useNativeDriverForBackdrop:b.bool,style:b.any,scrollTo:b.func,scrollOffset:b.number,scrollOffsetMax:b.number,scrollHorizontal:b.bool,supportedOrientations:b.arrayOf(b.oneOf(['portrait','portrait-upside-down','landscape','landscape-left','landscape-right']))},M.defaultProps={animationIn:'slideInUp',animationInTiming:300,animationOut:'slideOutDown',animationOutTiming:300,avoidKeyboard:!1,coverScreen:!0,hasBackdrop:!0,backdropColor:'black',backdropOpacity:.7,backdropTransitionInTiming:300,backdropTransitionOutTiming:300,customBackdrop:null,useNativeDriver:!1,deviceHeight:null,deviceWidth:null,hideModalContentWhileAnimating:!1,propagateSwipe:!1,isVisible:!1,panResponderThreshold:4,swipeThreshold:100,onModalShow:function(){return null},onModalWillShow:function(){return null},onModalHide:function(){return null},onModalWillHide:function(){return null},onBackdropPress:function(){return null},onBackButtonPress:function(){return null},scrollTo:null,scrollOffset:0,scrollOffsetMax:0,scrollHorizontal:!1,statusBarTranslucent:!1,supportedOrientations:['portrait','landscape']};var B=M;e.default=B},1630,[4,1,6,59,7,8,9,10,12,13,15,18,70,750,1631,1632]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.reversePercentage=e.buildAnimations=e.makeSlideTranslation=e.initializeAnimations=void 0;var s=t(r(d[2])),l=r(d[3]),o=n(r(d[4])),u=l.Dimensions.get('window'),f=u.height,c=u.width;e.initializeAnimations=function(){var n={slideInDown:v('translateY',-f,0),slideInUp:v('translateY',f,0),slideInLeft:v('translateX',-c,0),slideInRight:v('translateX',c,0),slideOutDown:v('translateY',0,f),slideOutUp:v('translateY',0,-f),slideOutLeft:v('translateX',0,-c),slideOutRight:v('translateX',0,c)};o.initializeRegistryWithDefinitions(n)};var v=function(n,t,l){return{from:(0,s.default)({},n,t),to:(0,s.default)({},n,l)}};e.makeSlideTranslation=v;e.buildAnimations=function(n){var t,s,l=n.animationIn,o=n.animationOut;if(h(l)){var u=JSON.stringify(l);O(u,l),t=u}else t=l;if(h(o)){var f=JSON.stringify(o);O(f,o),s=f}else s=o;return{animationIn:t,animationOut:s}};e.reversePercentage=function(n){return-(n-1)};var O=function(n,t){o.registerAnimation(n,o.createAnimation(t))},h=function(n){return null!==n&&'object'==typeof n}},1631,[4,1,7,18,750]); @@ -1738,24 +1738,24 @@ __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0 __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-native-dropdownalert/assets",width:36,height:36,scales:[1,2,3],hash:"73cf01e3b92f81ad47ce862a7b96003c",name:"cancel",type:"png"})},1732,[178]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){return t===n}function n(t,n,u){if(null===n||null===u||n.length!==u.length)return!1;for(var o=n.length,c=0;c1&&void 0!==arguments[1]?arguments[1]:t,c=null,l=null;return function(){return n(o,c,arguments)||(l=u.apply(null,arguments)),c=arguments,l}}function o(t){var n=Array.isArray(t[0])?t[0]:t;if(!n.every(function(t){return'function'==typeof t})){var u=n.map(function(t){return typeof t}).join(', ');throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+u+']')}return n}function c(t){for(var n=arguments.length,u=Array(n>1?n-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:l;if('object'!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var u=Object.keys(t);return n(u.map(function(n){return t[n]}),function(){for(var t=arguments.length,n=Array(t),o=0;o1?V.result.response[1]:null,marriage_certificate_doc:V.result.response[0],id_document_type:"CNI",id_document_front:V.result.response[1],id_document_back:V.result.response[2],isEditable:!0}].concat((0,l.default)(Dt))),Le.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),Q(!1))),V.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(V),[{text:C.default.t("OK"),onPress:function(){xe((0,L.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[V]);var Ct=b.object().shape({password:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED'))}),St=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),wt=(0,u.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}]),_t=(0,o.default)(wt,2),It=_t[0],yt=_t[1],At=(0,u.useState)([]),Tt=(0,o.default)(At,2),Dt=Tt[0],xt=Tt[1],Lt=(0,u.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),Rt=(0,o.default)(Lt,2),Bt=Rt[0],Ft=Rt[1],kt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],F.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var o,u;"CHILD"===lt?yt(It.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Ft(Bt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),o=t,u=n,null!==_e&&(Ce=_e),Ce.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===c.Platform.OS?u.path:u.path.replace("file://","")}),De([o].concat((0,l.default)(Te))),Ie(Ce)})},vt=function(t,n){var l=n||Pe;je('ios'===c.Platform.OS),Me(l)};return u.default.createElement(S.ScreenComponent,null,u.default.createElement(R.default,{ref:function(t){return Le=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(h.Formik,{validationSchema:Ct,initialValues:{password:''},onSubmit:function(t){null!==ee&&(null===ut?Et.shake(800):(console.log(ee),console.log("insurance",le),Ee(t.password),Y(ut.id,{password:t.password,beneficiaries:Dt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.View,{style:j.contain},u.default.createElement(v.View,{ref:function(t){Et=t},style:{width:(0,T.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(N.Dropdown,{label:C.default.t('SELECT_SUBSCRIPTION'),data:ft,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),ct({id:t.id,network:t.network,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+C.default.t('ETAT')+": "+t.state+" | "+C.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),u.default.createElement(I.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(A.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},u.default.createElement(c.TouchableOpacity,{onPress:function(){var t,n;null===ut?Le.alertWithType('warn',C.default.t('ERROR_LABEL'),C.default.t('PLEASE_SELECT_INSURANCE_BEFORE')):(console.log("Souscription",ut),Q(!0),je(!1),xe((0,L.fetchUploadInsuranceReset)()),ot('CHILD'),gt(new Date((new Date).getFullYear()-parseInt(null==ut?void 0:null==(t=ut.network)?void 0:t.age_limit_of_child_beneficiary),0,1)),Me(''+M(new Date((new Date).getFullYear()-parseInt(null==ut?void 0:null==(n=ut.network)?void 0:n.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),de(null),be(null),De([]))}},u.default.createElement(_.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),u.default.createElement(y.default,{style:{marginTop:20},full:!0,loading:U.loading,onPress:h},C.default.t('SUBMIT_LABEL')))}))),J&&u.default.createElement(h.Formik,{validationSchema:St,initialValues:{firstname:'',lastname:''},onSubmit:function(t){O(_e),de(t.firstname),be(t.lastname)}},function(t){var l=t.values,o=t.errors,s=t.touched,h=t.handleChange,b=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[j.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(f.default,{isVisible:J,onSwipeComplete:function(){Q(!1)},swipeDirection:['down'],style:j.bottomModal},u.default.createElement(c.View,{style:[j.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:j.contentSwipeDown},u.default.createElement(c.View,{style:j.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:l.lastname,onChangeText:h('lastname'),onBlur:b('lastname'),success:s.lastname&&!o.lastname,touched:s.lastname,error:o.lastname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:l.firstname,onChangeText:h('firstname'),onBlur:b('firstname'),success:s.firstname&&!o.firstname,touched:s.firstname,error:o.firstname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+M(Pe).format('YYYY-MM-DD'),onChangeText:h('birthdate'),onBlur:b('birthdate'),onFocus:function(){c.Keyboard.dismiss(),je(!0)},success:s.birthdate&&!o.birthdate,touched:s.birthdate,error:o.birthdate}),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('SEXE')),u.default.createElement(c.View,{style:j.contentSwitch},u.default.createElement(D.default,{options:Oe,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){$e(t)}}))),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('AFFILIATION')),u.default.createElement(c.View,{style:j.contentSwitch},u.default.createElement(D.default,{options:tt,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){De([]),gt('CHILD'===t?new Date((new Date).getFullYear()-parseInt(ut.network.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(ut.network.age_limit_of_insured_and_spouse),0,1)),ot(t)}}))),u.default.createElement(c.View,{style:j.contentService},u.default.createElement(c.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===lt?It:Bt,extraData:'CHILD'===lt?It:Bt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?u.default.createElement(c.TouchableOpacity,{style:j.choosePhotoBtn,onPress:function(){return kt(n.name,n.isFrontCamera)}},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:E.Color.accentColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):u.default.createElement(c.TouchableOpacity,{style:j.choosePhotoBtn,onPress:function(){return kt(n.name,n.isFrontCamera)},disabled:!Te.includes('CHILD'===lt?It[l-1].name:Bt[l-1].name)},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:Te.includes('CHILD'===lt?It[l-1].name:Bt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:V.loading||n.loading,onPress:p},C.default.t('SUBMIT_LABEL'))))))}),Je&&u.default.createElement(f.default,{isVisible:Je,onSwipeComplete:function(){return Qe(!1)},swipeDirection:['down'],style:j.bottomModal},u.default.createElement(c.View,{style:[j.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},u.default.createElement(c.View,{style:j.contentSwipeDown},u.default.createElement(c.View,{style:j.lineSwipeDown})),u.default.createElement(c.View,{style:[j.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),u.default.createElement(c.View,{style:[{marginBottom:40}]},u.default.createElement(c.FlatList,{data:Dt.concat(ut.beneficiaries),extraData:Dt.concat(ut.beneficiaries),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,o=t.index;return console.log("Item",n),u.default.createElement(c.View,{style:j.lineRow},u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('NOM_ASSURE')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('AFFILIATION')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),u.default.createElement(c.View,{style:j.iconRight},n.hasOwnProperty('isEditable')&&u.default.createElement(c.TouchableOpacity,{onPress:function(){var t=Dt;console.log("beneficiariesTemp index",o),t.splice(o),console.log("beneficiariesTemp",t),xt((0,l.default)(t))}},u.default.createElement(P.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){Qe(!1)}},C.default.t('OK')))),He&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Pe),mode:"date",minimumDate:pt,display:"spinner",onChange:vt}),null!==ut&&u.default.createElement(c.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return Qe(!0)}},u.default.createElement(_.default,{whiteColor:!0,title2:!0},Dt.concat(ut.beneficiaries).length),u.default.createElement(_.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))))});e.default=z},1735,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,982,1016,1190]); -__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),C=n(r(d[14])),E=r(d[15]),v=r(d[16]),R=n(r(d[17])),y=r(d[18]),x=t(r(d[19])),L=r(d[20]),A=r(d[21]),P=r(d[22]),T=(r(d[23]),s.Dimensions.get('window')),B=T.width,I=(T.height,.5*B),k=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:I,height:I,borderRadius:I/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-I/3,top:-I/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,E.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),D=(0,L.createStructuredSelector)({subscriptionList:A.selectSubscriptionList,activatePaySubscription:A.selectActivatePaySubscription}),V=(0,u.connect)(D,{fetchActivePaySubscription:v.fetchActivePaySubscription,fetchGetSubscriptionList:v.fetchGetSubscriptionList})(function(t){var n=t.activatePaySubscription,p=t.fetchGetSubscriptionList,L=t.subscriptionList,A=t.fetchActivePaySubscription,T=t.navigation,B=(0,l.useState)(null),I=(0,o.default)(B,2),D=I[0],V=I[1],M=(0,l.useState)(null),j=(0,o.default)(M,2),O=(j[0],j[1],(0,l.useState)([])),U=(0,o.default)(O,2),W=U[0],F=U[1],G=(0,l.useState)(null),N=(0,o.default)(G,2),z=N[0],H=N[1],K=(0,u.useDispatch)(),q=null;(0,l.useEffect)(function(){(0,y.readUser)().then(function(t){V(t)}),K((0,v.fetchGetSubscriptionListReset)()),K((0,v.fetchActivePaySubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==D&&(console.log("user",D.id),p(D.id,'UNPAID',!0))},[D]),(0,l.useEffect)(function(){if(null!==L.result){var t=[];L.result.response.map(function(n,o){t.push(n)}),F(t)}L.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(L),[{text:b.default.t("OK"),onPress:function(){K((0,v.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[L]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){K((0,v.fetchActivePaySubscriptionReset)()),T.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){K((0,v.fetchActivePaySubscriptionReset)())}}],{cancelable:!1})},[n]);var Q=f.object().shape({password:f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED'))});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Q,initialValues:{password:''},onSubmit:function(t){null!==D&&(null===z?q.shake(800):(console.log("subscription",z),A(z.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:k.contain},l.default.createElement(x.View,{ref:function(t){q=t},style:{width:(0,E.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(P.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:W,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return b.default.t('MNT')+": "+t.amount+" | "+b.default.t('FACT')+": "+t.invoice_id.slice(0,7)+" | "+b.default.t('ECH')+": "+t.deadline_number}})),l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(C.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1736,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1190]); -__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=t(r(d[4])),s=r(d[5]),c=r(d[6]),f=l(r(d[7])),E=r(d[8]),p=t(r(d[9])),_=r(d[10]),h=l(r(d[11])),C=r(d[12]),S=l(r(d[13])),y=r(d[14]),w=r(d[15]),b=l(r(d[16])),T=r(d[17]),R=l(r(d[18])),A=r(d[19]),D=r(d[20]),I=l(r(d[21])),N=l(r(d[22])),v=l(r(d[23])),O=l(r(d[24])),x=l(r(d[25])),B=l(r(d[26])),M=t(r(d[27])),P=r(d[28]),k=l(r(d[29])),U=l(r(d[30])),V=l(r(d[31])),L=r(d[32]),F=t(r(d[33])),G=r(d[34]),Y=l(r(d[35])),H=l(r(d[36])),q=l(r(d[37])),j=r(d[38]),Q=s.Dimensions.get('window'),K=Q.width,W=(Q.height,.5*K),z=s.StyleSheet.create({textInput:{height:46,backgroundColor:_.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:W,height:W,borderRadius:W/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-W/3,top:-W/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:_.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:_.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:_.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,y.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:_.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}}),X=(0,A.createStructuredSelector)({subscriptionList:D.selectSubscriptionList,activatePaySubscription:D.selectActivatePaySubscription,getUserByNameOrNumber:D.selectGetUserByNameOrNumber,getUserByIdQRCode:D.selectGetUserByIdQRCode,getDrugAppareil:D.selectGetDrugAppareil,addDrug:D.selectAddDrug,getProviderClass:D.selectGetProviderClass,createConsultation:D.selectCreateConsultation,getNetworkAct:D.selectGetNetworkAct,getAmountConsultation:D.selectGetAmountConsultation,checkInsuranceCoverageAmount:D.selectCheckInsuranceCoverageAmount,getExclusion:D.selectGetExclusion}),Z=(0,c.connect)(X,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetSubscriptionList:w.fetchGetSubscriptionList,fetchGetUserByIdQRCode:w.fetchGetUserByIdQRCode,fetchGetUserByNameOrNumber:w.fetchGetUserByNameOrNumber,fetchGetDrugAppareil:w.fetchGetDrugAppareil,fetchAddDrug:w.fetchAddDrug,fetchGetProviderClass:w.fetchGetProviderClass,fetchGetNetworkActs:w.fetchGetNetworkActs,fetchCreateConsultation:w.fetchCreateConsultation,fetchGetAmountConsultation:w.fetchGetAmountConsultation,fetchCheckInsuranceCoverageAmount:w.fetchCheckInsuranceCoverageAmount,fetchGetExclusion:w.fetchGetExclusion})(function(t){t.activatePaySubscription,t.fetchGetSubscriptionList;var l,A=t.subscriptionList,D=(t.fetchActivePaySubscription,t.fetchGetUserByIdQRCode),Q=t.fetchGetUserByNameOrNumber,K=t.fetchGetDrugAppareil,W=t.fetchAddDrug,X=t.fetchGetProviderClass,Z=t.fetchGetNetworkActs,J=t.fetchCreateConsultation,$=t.fetchGetAmountConsultation,ee=t.fetchCheckInsuranceCoverageAmount,te=t.fetchGetExclusion,ae=t.getExclusion,le=t.getUserByNameOrNumber,ne=t.getUserByIdQRCode,oe=t.getDrugAppareil,re=t.getProviderClass,ie=t.addDrug,ue=t.checkInsuranceCoverageAmount,de=t.createConsultation,se=t.getNetworkAct,ce=t.getAmountConsultation,fe=t.navigation,me=(0,u.useState)(''+j(new Date).format('YYYY-MM-DD HH:mm')),Ee=(0,o.default)(me,2),ge=Ee[0],pe=Ee[1],_e=(0,u.useState)(!1),he=(0,o.default)(_e,2),Ce=he[0],Se=he[1],ye=(0,u.useState)(null),we=(0,o.default)(ye,2),be=we[0],Te=we[1],Re=(0,u.useState)(!1),Ae=(0,o.default)(Re,2),De=Ae[0],Ie=Ae[1],Ne=(0,u.useState)(!1),ve=(0,o.default)(Ne,2),Oe=ve[0],xe=ve[1],Be=(0,u.useState)(!1),Me=(0,o.default)(Be,2),Pe=Me[0],ke=Me[1],Ue=(0,u.useState)(G.store.getState().walletDetailReducer.result.response),Ve=(0,o.default)(Ue,1)[0],Le=(0,u.useState)(!1),Fe=(0,o.default)(Le,2),Ge=Fe[0],Ye=Fe[1],He=(0,u.useState)(!1),qe=(0,o.default)(He,2),je=qe[0],Qe=qe[1],Ke=(0,u.useState)(null),We=(0,o.default)(Ke,2),ze=We[0],Xe=We[1],Ze=(0,u.useState)(null),Je=(0,o.default)(Ze,2),$e=Je[0],et=Je[1],tt=(0,u.useState)(!1),at=(0,o.default)(tt,2),lt=at[0],nt=at[1],ot=(0,u.useState)(!1),rt=(0,o.default)(ot,2),it=rt[0],ut=rt[1],dt=(0,u.useState)(!1),st=(0,o.default)(dt,2),ct=st[0],ft=st[1],mt=(0,u.useState)(null),Et=(0,o.default)(mt,2),gt=Et[0],pt=Et[1],_t=(0,u.useState)(''+Date.now()),ht=(0,o.default)(_t,2),Ct=ht[0],St=(ht[1],(0,u.useState)(null)),yt=(0,o.default)(St,2),wt=yt[0],bt=yt[1],Tt=(0,u.useState)(null),Rt=(0,o.default)(Tt,2),At=Rt[0],Dt=Rt[1],It=(0,u.useState)(null),Nt=(0,o.default)(It,2),vt=Nt[0],Ot=Nt[1],xt=(0,u.useState)(null),Bt=(0,o.default)(xt,2),Mt=Bt[0],Pt=Bt[1],kt=(0,u.useRef)(),Ut=(0,u.useState)(!0),Vt=(0,o.default)(Ut,2),Lt=Vt[0],Ft=Vt[1],Gt=(0,u.useState)(!1),Yt=(0,o.default)(Gt,2),Ht=(Yt[0],Yt[1]),qt=(0,u.useState)(1),jt=(0,o.default)(qt,2),Qt=jt[0],Kt=jt[1],Wt=(0,u.useState)(!1),zt=(0,o.default)(Wt,2),Xt=zt[0],Zt=zt[1],Jt=(0,u.useState)(!1),$t=(0,o.default)(Jt,2),ea=$t[0],ta=$t[1],aa=(0,u.useState)(!1),la=(0,o.default)(aa,2),na=la[0],oa=la[1],ra=(0,u.useState)(!1),ia=(0,o.default)(ra,2),ua=ia[0],da=ia[1],sa=(0,u.useState)(!1),ca=(0,o.default)(sa,2),fa=ca[0],ma=ca[1],Ea=(0,u.useState)(!1),ga=(0,o.default)(Ea,2),pa=ga[0],_a=ga[1],ha=(0,u.useState)(!1),Ca=(0,o.default)(ha,2),Sa=Ca[0],ya=Ca[1],wa=(0,u.useState)(null),ba=(0,o.default)(wa,2),Ta=(ba[0],ba[1],(0,u.useState)([])),Ra=(0,o.default)(Ta,2),Aa=Ra[0],Da=Ra[1],Ia=(0,u.useState)([]),Na=(0,o.default)(Ia,2),va=Na[0],Oa=Na[1],xa=(0,u.useState)([]),Ba=(0,o.default)(xa,2),Ma=Ba[0],Pa=Ba[1];console.log("Prestations",Aa),console.log("examens",va),console.log("prescriptions",Ma);var ka=(0,u.useState)([{label:h.default.t('AYANT_DROITS'),value:"M"},{label:h.default.t('ASSURE'),value:"F"}]),Ua=(0,o.default)(ka,1)[0],Va=(0,u.useState)(1),La=(0,o.default)(Va,2),Fa=La[0],Ga=La[1],Ya=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ha=(0,o.default)(Ya,1)[0],qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),ja=(0,o.default)(qa,1)[0],Qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ka=(0,o.default)(Qa,1)[0],Wa=(0,u.useState)(!1),za=(0,o.default)(Wa,2),Xa=za[0],Za=za[1],Ja=(0,u.useState)([{label:h.default.t('AFFECTION_COURANTE'),value:"CURRENT_AFFECTION"},{label:h.default.t('AFFECTION_LONGUE'),value:"LONG_TERM_AFFECTION"},{label:h.default.t('EXONERE'),value:"EXONERATION"}]),$a=(0,o.default)(Ja,1)[0],el=(0,u.useState)([{label:h.default.t('COMPRESSED'),value:"COMPRESSED"},{label:h.default.t('SYRUP'),value:"SYRUP"},{label:h.default.t('SOLUTION'),value:"SOLUTION"},{label:h.default.t('SUPPOSITORY'),value:"SUPPOSITORY"},{label:h.default.t('DEVICE'),value:"DEVICE"}]),tl=(0,o.default)(el,1)[0],al=(0,c.useDispatch)(),ll=null,nl=null;(0,u.useEffect)(function(){(0,T.readUser)().then(function(t){Rl('agrement_praticien',t.code_membre),console.log("User",t),bt(t)}),al((0,w.fetchGetSubscriptionListReset)()),al((0,w.fetchActivePaySubscriptionReset)()),al((0,w.fetchGetUserByNameOrNumberReset)()),al((0,w.fetchGetUserByIdQRCodeReset)()),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchCreateConsultationReset)()),al((0,w.fetchGetNetworkActsReset)()),al((0,w.fetchGetProviderClassReset)()),al((0,w.fetchAddDrugReset)()),al((0,w.fetchCheckInsuranceCoverageAmountReset)()),al((0,w.fetchGetExclusionReset)()),te(Ve.id_network),X(Ve.id_network)},[]),(0,u.useEffect)(function(){null!==wt&&console.log("user",wt)},[wt]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("checkInsuranceCoverageAmount.result",ue),console.log("Prestations",Aa),null!==ue.result&&null!==ue.result.response&&(null!==Aa&&(Zt(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),al((0,w.fetchCheckInsuranceCoverageAmountReset)())),ue.error&&s.Alert.alert(h.default.t("INFORMATION_MESSAGE"),F.getErrorMsg(ue),[{text:h.default.t("OK"),onPress:function(){if(null!==Aa){var t=(0,n.default)(Aa);t.shift(),Da(t),Zt(!1)}al((0,w.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[ue]),(0,u.useEffect)(function(){null!==oe.result&&(oe.result.response.length>0?_a(!0):s.Alert.alert(h.default.t("ERROR_LABEL"),h.default.t('NO_DRUG_MATCH_YOU_SEARCH'),[{text:h.default.t("OK"),onPress:function(){oa(!0),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})),oe.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(oe),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetDrugAppareilReset)())}}],{cancelable:!1})},[oe]),(0,u.useEffect)(function(){null!==ie.result&&(oa(!1),Pt(ie.result.response)),ie.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})},[ie]),(0,u.useEffect)(function(){null!==de.result&&s.Alert.alert(h.default.t("SUCCESS"),de.result.response,[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)()),fe.goBack()}}],{cancelable:!1}),de.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(de),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)())}}],{cancelable:!1})},[de]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",ne),null!==ne.result&&(Ye(!1),Qe(!0),Rl('numero_assure',ne.result.response.phone),Q(Ve.id_network,"&phone="+ne.result.response.phone)),ne.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ne),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[ne]);var ol,rl,il,ul,dl=p.object().shape({numero_assure:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:p.string(),practitioner_lastname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),sl=p.object().shape({amount_prestation:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:p.number(),date_prestation:p.date(),ticker_moderateur:p.number()}),cl=p.object().shape({examen_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:p.number()}),fl=p.object().shape({drug_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ml=p.object().shape({code:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),El=function(t,l){var n=l||''+j(new Date).format('YYYY-MM-DD');Se('ios'===s.Platform.OS),pe(n)},gl=function(t,l){var n=l||new Date;ke('ios'===s.Platform.OS),Te(j(n).format('YYYY-MM-DD')),Rl('accident_date',j(n).format('YYYY-MM-DD'))},pl=function(t,l){var n=l||new Date;ut('ios'===s.Platform.OS),Xe(j(n).format('YYYY-MM-DD')),Rl('pregnancy_start_at',j(n).format('YYYY-MM-DD'))},_l=function(t,l){var n=l||new Date;ft('ios'===s.Platform.OS),et(j(n).format('YYYY-MM-DD')),Rl('pregnancy_end_at',j(n).format('YYYY-MM-DD'))},hl=(0,E.useFormik)({validationSchema:dl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==wt?void 0:wt.code_membre,accident_date:null,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){0===Aa.length?s.Alert.alert(h.default.t("ERROR_LABLE"),h.default.t('YOU_MUST_ADD_AT_LEAST_ONE_PRESTATION'),[{text:h.default.t("OK"),onPress:function(){}}],{cancelable:!1}):J({insured_id:At.insured_id,network_agent_id:Ve.network_agent_id,password:t.password,beneficiary_id:null!==vt?vt.id:null,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,care_condition:t.care_condition,accident_date:t.accident_date,pregnancy_start_at:t.pregnancy_start_at,pregnancy_end_at:t.pregnancy_end_at,performances:Aa,prescriptions:Ma,exams:va})}}),Cl=hl.handleChange,Sl=hl.handleSubmit,yl=hl.handleBlur,wl=hl.values,bl=hl.errors,Tl=hl.touched,Rl=hl.setFieldValue,Al=hl.setFieldTouched,Dl=(hl.isValid,function(){switch(console.log("currentStep",Qt),Qt){case 0:return console.log("values",wl),al((0,w.fetchGetUserByNameOrNumberReset)()),''!==wl.numero_assure&&null===le.result&&(Q(Ve.id_network,Ge?"&insured_id="+wl.numero_assure:je?"&phone="+wl.numero_assure:"&name="+wl.numero_assure),console.log("errors",bl)),!1;default:return!0}}),Il=[{title:h.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10,width:(0,y.responsiveWidth)(90)},placeholder:Ge?h.default.t('NUMERO_ASSURE'):je?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:wl.numero_assure,keyboardType:je?'numeric':'default',onChangeText:Cl('numero_assure'),onBlur:yl('numero_assure'),success:Tl.numero_assure&&!bl.numero_assure,touched:Tl.numero_assure,error:bl.numero_assure,icon:u.default.createElement(O.default,{style:{zIndex:10},name:Ge?'lock':je?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(v.default,{style:{paddingRight:10},name:"lock",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!0),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"phone",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!0)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"user",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"qrcode",size:20,color:_.Color.primaryColor,onPress:function(){xe(!0)}})))},{title:h.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:wl.lastname_patient,onChangeText:Cl('lastname_patient'),onBlur:yl('lastname_patient'),success:Tl.lastname_patient&&!bl.lastname_patient,touched:Tl.lastname_patient,editable:!1,error:bl.lastname_patient}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:wl.firstname_patient,editable:!1,onChangeText:Cl('firstname_patient'),onBlur:yl('firstname_patient'),success:Tl.firstname_patient&&!bl.firstname_patient,touched:Tl.firstname_patient,error:bl.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:Ua,disabled:!0,value:Fa,initial:Fa,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:h.default.t('PRATICIEN'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:wl.agrement_praticien,editable:!1}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:wl.practitioner_lastname,onChangeText:Cl('practitioner_lastname'),onBlur:yl('practitioner_lastname'),success:Tl.practitioner_lastname&&!bl.practitioner_lastname,touched:Tl.practitioner_lastname,error:bl.practitioner_lastname}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:wl.practitioner_firstname,onChangeText:Cl('practitioner_firstname'),onBlur:yl('practitioner_firstname'),success:Tl.practitioner_firstname&&!bl.practitioner_firstname,touched:Tl.practitioner_firstname,error:bl.practitioner_firstname}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),data:null!==re.result?null==(l=re.result)?void 0:l.response:[],useNativeDriver:!0,onChangeText:function(t,l,n){Al('practitioner_provider_class_id'),Rl('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),data:$a,useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),pt(t),Al('care_condition'),Rl('care_condition',t)},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('ACCIDENT')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(40)}},u.default.createElement(B.default,{options:Ha,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){console.log(t),Ie('YES'===t)}}))),De&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==be?be:'',onChangeText:Cl('date_accident'),onBlur:yl('date_accident'),onFocus:function(){s.Keyboard.dismiss(),ke(!0)},success:Tl.date_accident&&!bl.date_accident,touched:Tl.date_accident,error:bl.date_accident}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('GROSSESSE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){nt('YES'===t)}}))),lt&&u.default.createElement(u.default.Fragment,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==ze?ze:'',onChangeText:Cl('date_debut_grossesse'),onBlur:yl('date_debut_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ut(!0)},success:Tl.date_debut_grossesse&&!bl.date_debut_grossesse,touched:Tl.date_debut_grossesse,error:bl.date_debut_grossesse}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==$e?$e:'',onChangeText:Cl('date_fin_grossesse'),onBlur:yl('date_fin_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ft(!0)},success:Tl.date_fin_grossesse&&!bl.date_fin_grossesse,touched:Tl.date_fin_grossesse,error:bl.date_fin_grossesse})),"MAX"===Ve.password_validation&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:wl.password,onChangeText:Cl('password'),onBlur:yl('password'),success:Tl.password&&!bl.password,touched:Tl.password,error:bl.password,secureTextEntry:!0}),u.default.createElement(s.View,{style:{marginTop:25}},u.default.createElement(s.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){al((0,w.fetchGetAmountConsultationReset)()),Za(!1),null===gt?ll.alertWithType('warn',h.default.t('ERROR_LABEL'),h.default.t('PLEASE_SELECT_CONDITON_PRISE_CHARGE_FIRST')):Zt(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('CONSULTATION')),u.default.createElement(Y.default,{name:"medical-bag",size:20,color:_.Color.whiteColor})),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){da(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),u.default.createElement(v.default,{name:"file-medical",size:20,color:_.Color.whiteColor})))),u.default.createElement(s.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,flexDirection:"row"}],onPress:function(t){ta(!0),Pt(null)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('MEDICAMENT')),u.default.createElement(H.default,{name:"drug-pack",size:20,color:_.Color.whiteColor}))))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(b.default,{ref:function(t){return ll=t}}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:z.contain},u.default.createElement(I.default,{steps:Il,currentStepIndex:Qt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:kt,activeStep:0,steps:Il,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ft(t)},isLastStep:function(t){return Ht(t)},onNext:function(){Dl()},onPrev:function(){},currentStep:function(t){var l=t.currentStep,n=t.isLastStep,o=t.isFirstStep;Kt(l),Ft(o),Ht(n)}})),u.default.createElement(s.View,{style:z.iconNavigation},Lt?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(){return kt.current.prev()}},u.default.createElement(v.default,{name:"arrow-left",size:20,color:_.Color.whiteColor})),2===Qt?u.default.createElement(S.default,{loading:de.loading,onPress:Sl},h.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){Sl(t),Dl()&&kt.current.next()}},A.loading||le.loading||ne.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(v.default,{name:"arrow-right",size:24,color:_.Color.whiteColor}))),Sa&&u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Sa,onSwipeComplete:function(){ya(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),u.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},u.default.createElement(q.default,{style:{flex:1},originWhitelist:['*'],source:{html:ae.result.document}})),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ya(!1)}},h.default.t('OK'))))),Xt&&u.default.createElement(E.Formik,{validationSchema:sl,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(t){''===t.code_acte?nl.shake(200):(Da([{act_id:t.code_acte.id,amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}].concat((0,n.default)(Aa))),ee({insurance_id:At.id,beneficiary_id:null!==vt?vt.id:null,care_condition:gt,act_action:"INSERT",act_type:"PERFORMANCE",tmp_sheet_id:Ct,performances:[{amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}]}))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.handleBlur,p=t.setFieldValue,C=t.setFieldTouched,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},console.log("Errors",o),u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Xt,onSwipeComplete:function(){Zt(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('ADD_PRESTATION')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+j(ge).format('YYYY-MM-DD HH:mm'),editable:!1}),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return'CONSULTATION'===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){C('code_acte'),console.log("Value",t),p('code_acte',t),'FREE'!==t.billing_type&&(p('amount_prestation',t.amount),$({network_id:Ve.id_network,amount:''+t.amount,care_condition:gt}))},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(R.default,{style:{marginTop:10},editable:''===n.code_acte||'FREE'===n.code_acte.billing_type,placeholder:h.default.t('AMOUNT'),value:n.amount_prestation,onChangeText:function(t){p('amount_prestation',t),$({network_id:Ve.id_network,amount:''+t,care_condition:gt})},onBlur:E('amount_prestation'),success:c.amount_prestation&&!o.amount_prestation,touched:c.amount_prestation,error:o.amount_prestation}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==ce.result?ce.result.response.moderator_ticket:''}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==ce.result?ce.result.response.insurance_amount:''}),u.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('VISITE_DOMICILE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:Ka,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){Za('YES'===t)}}))),Xa&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:n.frais_deplacement,onChangeText:f('frais_deplacement'),onBlur:E('frais_deplacement'),success:c.frais_deplacement&&!o.frais_deplacement,touched:c.frais_deplacement,error:o.frais_deplacement}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ue.loading,onPress:w},h.default.t('SUBMIT_LABEL'))))))}),ea&&u.default.createElement(E.Formik,{validationSchema:fl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(t){Pa([{drug_or_device_id:Mt.id,dosage:t.drug_posologie,quantity:t.drug_quantity}].concat((0,n.default)(Ma))),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD')),ta(!1)}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:ea,onSwipeComplete:function(){ta(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),u.default.createElement(s.View,{style:{flexDirection:'row'}},u.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Mt?Mt.name:l.drug_name,onChangeText:c('drug_name'),onBlur:f('drug_name'),success:o.drug_name&&!n.drug_name,touched:o.drug_name,error:n.drug_name,editable:null===Mt}),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(t){K(Ve.id_network,l.drug_name)}},oe.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"search",size:24,color:_.Color.whiteColor}))),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:l.drug_posologie,onChangeText:c('drug_posologie'),onBlur:f('drug_posologie'),success:o.drug_posologie&&!n.drug_posologie,touched:o.drug_posologie,error:n.drug_posologie}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:l.drug_quantity,onChangeText:c('drug_quantity'),onBlur:f('drug_quantity'),success:o.drug_quantity&&!n.drug_quantity,touched:o.drug_quantity,error:n.drug_quantity,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:E},h.default.t('SUBMIT_LABEL'))))))}),ua&&u.default.createElement(E.Formik,{validationSchema:cl,initialValues:{examen_name:'',code_acte:'',amount:''},onSubmit:function(t){console.log("Value",t),Oa([{act_id:t.code_acte.id,description:t.examen_name,quantity:null}].concat((0,n.default)(va))),da(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_ADD'))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.setFieldValue,p=t.setFieldTouched,C=t.handleBlur,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:ua,onSwipeComplete:function(){da(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_EXAMEN')),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return"EXAM_OR_OTHER"===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),p('code_acte'),E('code_acte',t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:n.examen_name,onChangeText:f('examen_name'),onBlur:C('examen_name'),success:c.examen_name&&!o.examen_name,touched:c.examen_name,error:o.examen_name}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==n.code_acte?'FREE'===n.code_acte.billing_type?h.default.t('AMOUNT_FREE'):n.code_acte.unit_value+" = "+n.code_acte.amount:'',editable:!1,onChangeText:f('amount'),onBlur:C('amount'),success:c.amount&&!o.amount,touched:c.amount,error:o.amount,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){console.log("errors",o),console.log("values",n),w()}},h.default.t('SUBMIT_LABEL'))))))}),Ce&&u.default.createElement(U.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(ge),mode:"date",display:"spinner",onChange:El}),Pe&&u.default.createElement(U.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:gl}),it&&u.default.createElement(U.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:pl}),ct&&u.default.createElement(U.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:_l}),Oe&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,y.responsiveWidth)(80)},useNativeDriver:!0,visible:Oe},u.default.createElement(f.default.Title,null,h.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[z.blockView,{borderBottomColor:_.Color.borderColor,maxHeight:300}]},u.default.createElement(x.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(V.default,{onRead:function(t){xe(!1),D(t.data)},flashMode:L.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){xe(!1)}})),fa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:fa,onSwipeComplete:function(){ma(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(il=le.result)?void 0:il.response,extraData:null==(ul=le.result)?void 0:ul.response,keyExtractor:function(t,l){return l},ListEmptyComponent:u.default.createElement(x.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%",flexDirection:'column'}],key:l.id,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(null),Ga(1),ma(!1),Rl('lastname_patient',l.user.lastname),Rl('firstname_patient',l.user.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id),al((0,w.fetchGetUserByNameOrNumberReset)()),kt.current.next())}},u.default.createElement(x.default,{body2:!0,semibold:!0},(null!==l.user.firstname?l.user.firstname:'')+" "+(null!==l.user.lastname?l.user.lastname:'')),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+l.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+l.insurance_remaining_amount)),l.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:z.beneficiarySubSection,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(t),Ga(0),ma(!1),Rl('lastname_patient',t.lastname),Rl('firstname_patient',t.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id+"&beneficiary_id="+t.id),al((0,w.fetchGetUserByNameOrNumberReset)()),kt.current.next())}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(x.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ma(!1)}},h.default.t('OK')))))),pa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:pa,onSwipeComplete:function(){_a(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LISTE_MEDICAMENT')),u.default.createElement(s.FlatList,{data:null==(ol=oe.result)?void 0:ol.response,extraData:null==(rl=oe.result)?void 0:rl.response,keyExtractor:function(t,l){return l},renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%"}],key:l.id,onPress:function(){Pt(l),_a(!1)}},u.default.createElement(x.default,{body2:!0,semibold:!0},l.name+" | "+l.type)))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return _a(!1)}},h.default.t('OK')))))),na&&u.default.createElement(E.Formik,{validationSchema:ml,initialValues:{code:'',name:'',type:'',on_prescription:!1},onSubmit:function(t){Pt(null),W({network_id:Ve.id_network,code:t.code,name:t.name,type:t.type,on_prescription:t.on_prescription})}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit,p=t.setFieldValue;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:na,onSwipeComplete:function(){oa(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_NOUVEAU_MEDICAMENT')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:"Code",value:l.code,onChangeText:c('code'),onBlur:f('code'),success:o.code&&!n.code,touched:o.code,error:n.code}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:l.name,onChangeText:c('name'),onBlur:f('name'),success:o.name&&!n.name,touched:o.name,error:n.name}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:"Type",data:tl,useNativeDriver:!0,onChangeText:function(t,l,n){p('type',t.value)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SOUS_ORDONNANCE')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){p('on_prescription','YES'===t),console.log("On Prescription",t)}}))),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:E},h.default.t('SUBMIT_LABEL'))))))})))),null!==ae.result&&u.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:_.Color.primaryColor,borderRadius:100},onPress:function(){ya(!0)}},u.default.createElement(x.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});e.default=Z},1737,[4,1,35,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1569,1418,1317,1458,1105,882,1035,841,1190]); +__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=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),b=t(r(d[9])),p=t(r(d[10])),E=r(d[11]),C=n(r(d[12])),S=r(d[13]),w=n(r(d[14])),_=n(r(d[15])),I=n(r(d[16])),y=n(r(d[17])),A=n(r(d[18])),D=r(d[19]),T=n(r(d[20])),x=n(r(d[21])),R=r(d[22]),L=n(r(d[23])),B=r(d[24]),F=n(r(d[25])),k=n(r(d[26])),v=t(r(d[27])),O=r(d[28]),V=r(d[29]),N=r(d[30]),P=n(r(d[31])),M=r(d[32]),Y=r(d[33]),U=c.Dimensions.get('window'),H=U.width,j=(U.height,.5*H),G=c.StyleSheet.create({textInput:{height:46,backgroundColor:E.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:j,height:j,borderRadius:j/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-j/3,top:-j/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:E.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:E.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:E.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,D.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:E.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),z=(0,O.createStructuredSelector)({insuranceList:V.selectInsuranceList,subscribeInsurance:V.selectSubscribeInsurance,uploadInsuranceImages:V.selectUploadInsuranceImages,insurancePrimeAmount:V.selectInsurancePrimeAmount,addBeneficiaryToSubscription:V.selectAddBeneficiaryToSubscription,subscriptionList:V.selectSubscriptionList}),K=(0,s.connect)(z,{fetchGetListInsurance:R.fetchGetListInsurance,fetchSubscribeInsurance:R.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:R.fetchGetInsurancePrimeAmount,fetchUploadInsurance:R.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:R.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:R.fetchGetSubscriptionList})(function(t){t.insuranceList;var n=t.subscribeInsurance,O=(t.insurancePrimeAmount,t.fetchSubscribeInsurance,t.fetchGetListInsurance,t.fetchGetInsurancePrimeAmount,t.fetchUploadInsurance),V=t.uploadInsuranceImages,U=t.fetchAddBeneficiaryToSubscription,H=t.addBeneficiaryToSubscription,j=t.fetchGetSubscriptionList,z=t.subscriptionList,K=t.navigation,W=(0,u.useState)(!1),X=(0,o.default)(W,2),J=X[0],Q=X[1],q=(0,u.useState)(!1),Z=(0,o.default)(q,2),$=(Z[0],Z[1],(0,u.useState)(null)),ee=(0,o.default)($,2),te=ee[0],ae=ee[1],ne=(0,u.useState)(null),le=(0,o.default)(ne,2),oe=le[0],re=(le[1],(0,u.useState)(null)),ie=(0,o.default)(re,2),ue=ie[0];ie[1];(0,u.useEffect)(function(){console.log("amountPerMonth",ue)});var ce=(0,u.useState)(null),se=(0,o.default)(ce,2),de=se[0],fe=se[1],me=(0,u.useState)(null),he=(0,o.default)(me,2),be=he[0],pe=he[1],ge=(0,u.useState)(null),Ee=(0,o.default)(ge,2),Ce=(Ee[0],Ee[1]),Se=new FormData,we=(0,u.useState)(null),_e=(0,o.default)(we,2),Ie=_e[0],ye=_e[1],Ae=(0,u.useState)([]),De=(0,o.default)(Ae,2),Te=De[0],xe=De[1],Re=(0,s.useDispatch)(),Le=null,Be=(0,u.useState)([]),Fe=(0,o.default)(Be,2),ke=(Fe[0],Fe[1],(0,u.useState)([{label:C.default.t('YES'),value:0},{label:C.default.t('NO'),value:1}])),ve=(0,o.default)(ke,2),Oe=(ve[0],ve[1],(0,u.useState)([{label:C.default.t('MASCULIN'),value:"M"},{label:C.default.t('FEMININ'),value:"F"}])),Ve=(0,o.default)(Oe,1)[0],Ne=(0,u.useState)(''+Y(new Date((new Date).getFullYear()-5,0,1)).format('YYYY-MM-DD')),Pe=(0,o.default)(Ne,2),Me=Pe[0],Ye=Pe[1],Ue=(0,u.useState)(!1),He=(0,o.default)(Ue,2),je=He[0],Ge=He[1],ze=(0,u.useState)(!1),Ke=(0,o.default)(ze,2),We=(Ke[0],Ke[1],(0,u.useState)(!1)),Xe=(0,o.default)(We,2),Je=Xe[0],Qe=Xe[1],qe=(0,u.useState)('M'),Ze=(0,o.default)(qe,2),$e=Ze[0],et=Ze[1],tt=(0,u.useState)([{label:C.default.t('ENFANT'),value:"CHILD"},{label:C.default.t('CONJOINT'),value:'SPOUSE'}]),at=(0,o.default)(tt,1)[0],nt=(0,u.useState)('CHILD'),lt=(0,o.default)(nt,2),ot=lt[0],rt=lt[1],it=(0,u.useState)(null),ut=(0,o.default)(it,2),ct=ut[0],st=ut[1],dt=(0,u.useState)([]),ft=(0,o.default)(dt,2),mt=ft[0],ht=ft[1],bt=(0,u.useState)(M.store.getState().walletDetailReducer.result.response),pt=(0,o.default)(bt,1)[0],gt=(0,u.useState)(new Date((new Date).getFullYear()-5,0,1)),Et=(0,o.default)(gt,2),Ct=Et[0],St=Et[1],wt=null;(0,u.useEffect)(function(){(0,B.readUser)().then(function(t){console.log("user",t),ae(t)}),Re((0,R.fetchUploadInsuranceReset)()),Re((0,R.fetchAddBeneficiaryToSubscriptionReset)()),Re((0,R.fetchGetSubscriptionListReset)())},[]),(0,u.useEffect)(function(){null!==te&&j(te.id,'EDITABLE',!1)},[te]),(0,u.useEffect)(function(){console.log('Beneficiaries',Lt)},[Lt]),(0,u.useEffect)(function(){null!==ct&&console.log('Subscription',ct)},[ct]),(0,u.useEffect)(function(){console.log("currentYearMinusAgeLimit",Ct)},Ct),(0,u.useEffect)(function(){if(null!==z.result){var t=[];z.result.response.map(function(n,l){t.push(n)}),ht(t)}z.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(z),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[z]),(0,u.useEffect)(function(){null!==H.result&&c.Alert.alert(C.default.t("SUCCESS"),H.result.response,[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchAddBeneficiaryToSubscriptionReset)()),K.goBack()}}],{cancelable:!1}),H.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(H),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchSubscribeInsuranceReset)())}}],{cancelable:!1})},[H]),(0,u.useEffect)(function(){null!==V.result&&(Q(!1),null!==ct)&&(Lt.length===parseInt(ct.max_number_of_beneficiaries)?c.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t('NUMBER_MAX_BENEFICIARY'),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(console.log("affiliation",ot),Bt([{lastname:be,firstname:de,gender:$e,birthdate:Y(Me).format('YYYY-MM-DD'),affiliation:ot,birthdate_proof:Dt[0].checboxSelectedValue,birthdate_proof_doc:V.result.response[0],justice_doc:V.result.response.length>1?V.result.response[1]:null,marriage_certificate_doc:V.result.response[0],id_document_type:"CNI",id_document_front:V.result.response[1],id_document_back:V.result.response[2],isEditable:!0}].concat((0,l.default)(Lt))),Le.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),Q(!1))),V.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(V),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[V]);var _t=b.object().shape({password:"MAX"===pt.password_validation?b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')):b.string()}),It=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),yt=(0,u.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}]),At=(0,o.default)(yt,2),Dt=At[0],Tt=At[1],xt=(0,u.useState)([]),Rt=(0,o.default)(xt,2),Lt=Rt[0],Bt=Rt[1],Ft=(0,u.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),kt=(0,o.default)(Ft,2),vt=kt[0],Ot=kt[1],Vt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],F.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var o,u;"CHILD"===ot?Tt(Dt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Ot(vt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),o=t,u=n,null!==Ie&&(Se=Ie),Se.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===c.Platform.OS?u.path:u.path.replace("file://","")}),xe([o].concat((0,l.default)(Te))),ye(Se)})},Nt=function(t,n){var l=n||Me;Ge('ios'===c.Platform.OS),Ye(l)};return u.default.createElement(S.ScreenComponent,null,u.default.createElement(L.default,{ref:function(t){return Le=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(h.Formik,{validationSchema:_t,initialValues:{password:''},onSubmit:function(t){null!==te&&(null===ct?wt.shake(800):(console.log(te),console.log("insurance",oe),Ce(t.password),U(ct.id,{password:t.password,beneficiaries:Lt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.View,{style:G.contain},u.default.createElement(v.View,{ref:function(t){wt=t},style:{width:(0,D.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(N.Dropdown,{label:C.default.t('SELECT_SUBSCRIPTION'),data:mt,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),st({id:t.id,network:t.network,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+C.default.t('ETAT')+": "+t.state+" | "+C.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===pt.password_validation&&u.default.createElement(I.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(A.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},u.default.createElement(c.TouchableOpacity,{onPress:function(){var t,n;null===ct?Le.alertWithType('warn',C.default.t('ERROR_LABEL'),C.default.t('PLEASE_SELECT_INSURANCE_BEFORE')):(console.log("Souscription",ct),Q(!0),Ge(!1),Re((0,R.fetchUploadInsuranceReset)()),rt('CHILD'),St(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(t=ct.network)?void 0:t.age_limit_of_child_beneficiary),0,1)),Ye(''+Y(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(n=ct.network)?void 0:n.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),fe(null),pe(null),xe([]))}},u.default.createElement(_.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),u.default.createElement(y.default,{style:{marginTop:20},full:!0,loading:H.loading,onPress:h},C.default.t('SUBMIT_LABEL')))}))),J&&u.default.createElement(h.Formik,{validationSchema:It,initialValues:{firstname:'',lastname:''},onSubmit:function(t){O(Ie),fe(t.firstname),pe(t.lastname)}},function(t){var l=t.values,o=t.errors,s=t.touched,h=t.handleChange,b=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[G.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(f.default,{isVisible:J,onSwipeComplete:function(){Q(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:l.lastname,onChangeText:h('lastname'),onBlur:b('lastname'),success:s.lastname&&!o.lastname,touched:s.lastname,error:o.lastname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:l.firstname,onChangeText:h('firstname'),onBlur:b('firstname'),success:s.firstname&&!o.firstname,touched:s.firstname,error:o.firstname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+Y(Me).format('YYYY-MM-DD'),onChangeText:h('birthdate'),onBlur:b('birthdate'),onFocus:function(){c.Keyboard.dismiss(),Ge(!0)},success:s.birthdate&&!o.birthdate,touched:s.birthdate,error:o.birthdate}),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('SEXE')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(T.default,{options:Ve,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){et(t)}}))),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('AFFILIATION')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(T.default,{options:at,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){xe([]),St('CHILD'===t?new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_insured_and_spouse),0,1)),rt(t)}}))),u.default.createElement(c.View,{style:G.contentService},u.default.createElement(c.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===ot?Dt:vt,extraData:'CHILD'===ot?Dt:vt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Vt(n.name,n.isFrontCamera)}},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:E.Color.accentColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Vt(n.name,n.isFrontCamera)},disabled:!Te.includes('CHILD'===ot?Dt[l-1].name:vt[l-1].name)},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:Te.includes('CHILD'===ot?Dt[l-1].name:vt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:V.loading||n.loading,onPress:p},C.default.t('SUBMIT_LABEL'))))))}),Je&&u.default.createElement(f.default,{isVisible:Je,onSwipeComplete:function(){return Qe(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(c.View,{style:[G.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),u.default.createElement(c.View,{style:[{marginBottom:40}]},u.default.createElement(c.FlatList,{data:Lt.concat(ct.beneficiaries),extraData:Lt.concat(ct.beneficiaries),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,o=t.index;return console.log("Item",n),u.default.createElement(c.View,{style:G.lineRow},u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('NOM_ASSURE')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('AFFILIATION')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),u.default.createElement(c.View,{style:G.iconRight},n.hasOwnProperty('isEditable')&&u.default.createElement(c.TouchableOpacity,{onPress:function(){var t=Lt;console.log("beneficiariesTemp index",o),t.splice(o),console.log("beneficiariesTemp",t),Bt((0,l.default)(t))}},u.default.createElement(P.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){Qe(!1)}},C.default.t('OK')))),je&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Me),mode:"date",minimumDate:Ct,display:"spinner",onChange:Nt}),null!==ct&&u.default.createElement(c.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return Qe(!0)}},u.default.createElement(_.default,{whiteColor:!0,title2:!0},Lt.concat(ct.beneficiaries).length),u.default.createElement(_.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))))});e.default=K},1735,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,982,1016,1105,1190]); +__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),v=n(r(d[14])),C=r(d[15]),E=r(d[16]),R=n(r(d[17])),y=r(d[18]),A=t(r(d[19])),x=r(d[20]),L=r(d[21]),P=r(d[22]),T=r(d[23]),B=(r(d[24]),s.Dimensions.get('window')),D=B.width,I=(B.height,.5*D),k=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:I,height:I,borderRadius:I/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-I/3,top:-I/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),M=(0,x.createStructuredSelector)({subscriptionList:L.selectSubscriptionList,activatePaySubscription:L.selectActivatePaySubscription}),V=(0,u.connect)(M,{fetchActivePaySubscription:E.fetchActivePaySubscription,fetchGetSubscriptionList:E.fetchGetSubscriptionList})(function(t){var n=t.activatePaySubscription,p=t.fetchGetSubscriptionList,x=t.subscriptionList,L=t.fetchActivePaySubscription,B=t.navigation,D=(0,l.useState)(null),I=(0,o.default)(D,2),M=I[0],V=I[1],j=(0,l.useState)(null),O=(0,o.default)(j,2),U=(O[0],O[1],(0,l.useState)([])),W=(0,o.default)(U,2),F=W[0],G=W[1],N=(0,l.useState)(null),z=(0,o.default)(N,2),H=z[0],K=z[1],X=(0,u.useDispatch)(),q=null,Q=(0,l.useState)(T.store.getState().walletDetailReducer.result.response),J=(0,o.default)(Q,1)[0];(0,l.useEffect)(function(){(0,y.readUser)().then(function(t){V(t)}),X((0,E.fetchGetSubscriptionListReset)()),X((0,E.fetchActivePaySubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==M&&(console.log("user",M.id),p(M.id,'UNPAID',!0))},[M]),(0,l.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),G(t)}x.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(x),[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[x]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchActivePaySubscriptionReset)()),B.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchActivePaySubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===J.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==M&&(null===H?q.shake(800):(console.log("subscription",H),L(H.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:k.contain},l.default.createElement(A.View,{ref:function(t){q=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(P.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:F,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),K({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return b.default.t('MNT')+": "+t.amount+" | "+b.default.t('FACT')+": "+t.invoice_id.slice(0,7)+" | "+b.default.t('ECH')+": "+t.deadline_number}})),"MAX"===J.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(v.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1736,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); +__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=t(r(d[4])),s=r(d[5]),c=r(d[6]),f=l(r(d[7])),E=r(d[8]),p=t(r(d[9])),_=r(d[10]),h=l(r(d[11])),C=r(d[12]),S=l(r(d[13])),y=r(d[14]),w=r(d[15]),b=l(r(d[16])),T=r(d[17]),R=l(r(d[18])),A=r(d[19]),D=r(d[20]),I=l(r(d[21])),N=l(r(d[22])),v=l(r(d[23])),O=l(r(d[24])),x=l(r(d[25])),B=l(r(d[26])),M=t(r(d[27])),P=r(d[28]),U=l(r(d[29])),k=l(r(d[30])),V=l(r(d[31])),L=r(d[32]),F=t(r(d[33])),G=r(d[34]),Y=l(r(d[35])),H=l(r(d[36])),q=l(r(d[37])),j=r(d[38]),Q=s.Dimensions.get('window'),K=Q.width,W=(Q.height,.5*K),z=s.StyleSheet.create({textInput:{height:46,backgroundColor:_.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:W,height:W,borderRadius:W/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-W/3,top:-W/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:_.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:_.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:_.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,y.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:_.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}}),X=(0,A.createStructuredSelector)({subscriptionList:D.selectSubscriptionList,activatePaySubscription:D.selectActivatePaySubscription,getUserByNameOrNumber:D.selectGetUserByNameOrNumber,getUserByIdQRCode:D.selectGetUserByIdQRCode,getDrugAppareil:D.selectGetDrugAppareil,addDrug:D.selectAddDrug,getProviderClass:D.selectGetProviderClass,createConsultation:D.selectCreateConsultation,getNetworkAct:D.selectGetNetworkAct,getAmountConsultation:D.selectGetAmountConsultation,checkInsuranceCoverageAmount:D.selectCheckInsuranceCoverageAmount,getExclusion:D.selectGetExclusion}),Z=(0,c.connect)(X,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetSubscriptionList:w.fetchGetSubscriptionList,fetchGetUserByIdQRCode:w.fetchGetUserByIdQRCode,fetchGetUserByNameOrNumber:w.fetchGetUserByNameOrNumber,fetchGetDrugAppareil:w.fetchGetDrugAppareil,fetchAddDrug:w.fetchAddDrug,fetchGetProviderClass:w.fetchGetProviderClass,fetchGetNetworkActs:w.fetchGetNetworkActs,fetchCreateConsultation:w.fetchCreateConsultation,fetchGetAmountConsultation:w.fetchGetAmountConsultation,fetchCheckInsuranceCoverageAmount:w.fetchCheckInsuranceCoverageAmount,fetchGetExclusion:w.fetchGetExclusion})(function(t){t.activatePaySubscription,t.fetchGetSubscriptionList;var l,A=t.subscriptionList,D=(t.fetchActivePaySubscription,t.fetchGetUserByIdQRCode),Q=t.fetchGetUserByNameOrNumber,K=t.fetchGetDrugAppareil,W=t.fetchAddDrug,X=t.fetchGetProviderClass,Z=t.fetchGetNetworkActs,J=t.fetchCreateConsultation,$=t.fetchGetAmountConsultation,ee=t.fetchCheckInsuranceCoverageAmount,te=t.fetchGetExclusion,ae=t.getExclusion,le=t.getUserByNameOrNumber,ne=t.getUserByIdQRCode,oe=t.getDrugAppareil,re=t.getProviderClass,ie=t.addDrug,ue=t.checkInsuranceCoverageAmount,de=t.createConsultation,se=t.getNetworkAct,ce=t.getAmountConsultation,fe=t.navigation,me=(0,u.useState)(''+j(new Date).format('YYYY-MM-DD HH:mm')),Ee=(0,o.default)(me,2),ge=Ee[0],pe=Ee[1],_e=(0,u.useState)(!1),he=(0,o.default)(_e,2),Ce=he[0],Se=he[1],ye=(0,u.useState)(null),we=(0,o.default)(ye,2),be=we[0],Te=we[1],Re=(0,u.useState)(!1),Ae=(0,o.default)(Re,2),De=Ae[0],Ie=Ae[1],Ne=(0,u.useState)(!1),ve=(0,o.default)(Ne,2),Oe=ve[0],xe=ve[1],Be=(0,u.useState)(!1),Me=(0,o.default)(Be,2),Pe=Me[0],Ue=Me[1],ke=(0,u.useState)(G.store.getState().walletDetailReducer.result.response),Ve=(0,o.default)(ke,1)[0],Le=(0,u.useState)(!1),Fe=(0,o.default)(Le,2),Ge=Fe[0],Ye=Fe[1],He=(0,u.useState)(!1),qe=(0,o.default)(He,2),je=qe[0],Qe=qe[1],Ke=(0,u.useState)(null),We=(0,o.default)(Ke,2),ze=We[0],Xe=We[1],Ze=(0,u.useState)(null),Je=(0,o.default)(Ze,2),$e=Je[0],et=Je[1],tt=(0,u.useState)(!1),at=(0,o.default)(tt,2),lt=at[0],nt=at[1],ot=(0,u.useState)(!1),rt=(0,o.default)(ot,2),it=rt[0],ut=rt[1],dt=(0,u.useState)(!1),st=(0,o.default)(dt,2),ct=st[0],ft=st[1],mt=(0,u.useState)(null),Et=(0,o.default)(mt,2),gt=Et[0],pt=Et[1],_t=(0,u.useState)(''+Date.now()),ht=(0,o.default)(_t,2),Ct=ht[0],St=(ht[1],(0,u.useState)(null)),yt=(0,o.default)(St,2),wt=yt[0],bt=yt[1],Tt=(0,u.useState)(null),Rt=(0,o.default)(Tt,2),At=Rt[0],Dt=Rt[1],It=(0,u.useState)(null),Nt=(0,o.default)(It,2),vt=Nt[0],Ot=Nt[1],xt=(0,u.useState)(null),Bt=(0,o.default)(xt,2),Mt=Bt[0],Pt=Bt[1],Ut=(0,u.useRef)(),kt=(0,u.useState)(!0),Vt=(0,o.default)(kt,2),Lt=Vt[0],Ft=Vt[1],Gt=(0,u.useState)(!1),Yt=(0,o.default)(Gt,2),Ht=(Yt[0],Yt[1]),qt=(0,u.useState)(1),jt=(0,o.default)(qt,2),Qt=jt[0],Kt=jt[1],Wt=(0,u.useState)(!1),zt=(0,o.default)(Wt,2),Xt=zt[0],Zt=zt[1],Jt=(0,u.useState)(!1),$t=(0,o.default)(Jt,2),ea=$t[0],ta=$t[1],aa=(0,u.useState)(!1),la=(0,o.default)(aa,2),na=la[0],oa=la[1],ra=(0,u.useState)(!1),ia=(0,o.default)(ra,2),ua=ia[0],da=ia[1],sa=(0,u.useState)(!1),ca=(0,o.default)(sa,2),fa=ca[0],ma=ca[1],Ea=(0,u.useState)(!1),ga=(0,o.default)(Ea,2),pa=ga[0],_a=ga[1],ha=(0,u.useState)(!1),Ca=(0,o.default)(ha,2),Sa=Ca[0],ya=Ca[1],wa=(0,u.useState)(null),ba=(0,o.default)(wa,2),Ta=(ba[0],ba[1],(0,u.useState)([])),Ra=(0,o.default)(Ta,2),Aa=Ra[0],Da=Ra[1],Ia=(0,u.useState)([]),Na=(0,o.default)(Ia,2),va=Na[0],Oa=Na[1],xa=(0,u.useState)([]),Ba=(0,o.default)(xa,2),Ma=Ba[0],Pa=Ba[1];console.log("Prestations",Aa),console.log("examens",va),console.log("prescriptions",Ma);var Ua=(0,u.useState)([{label:h.default.t('AYANT_DROITS'),value:"M"},{label:h.default.t('ASSURE'),value:"F"}]),ka=(0,o.default)(Ua,1)[0],Va=(0,u.useState)(1),La=(0,o.default)(Va,2),Fa=La[0],Ga=La[1],Ya=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ha=(0,o.default)(Ya,1)[0],qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),ja=(0,o.default)(qa,1)[0],Qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ka=(0,o.default)(Qa,1)[0],Wa=(0,u.useState)(!1),za=(0,o.default)(Wa,2),Xa=za[0],Za=za[1],Ja=(0,u.useState)([{label:h.default.t('AFFECTION_COURANTE'),value:"CURRENT_AFFECTION"},{label:h.default.t('AFFECTION_LONGUE'),value:"LONG_TERM_AFFECTION"},{label:h.default.t('EXONERE'),value:"EXONERATION"}]),$a=(0,o.default)(Ja,1)[0],el=(0,u.useState)([{label:h.default.t('COMPRESSED'),value:"COMPRESSED"},{label:h.default.t('SYRUP'),value:"SYRUP"},{label:h.default.t('SOLUTION'),value:"SOLUTION"},{label:h.default.t('SUPPOSITORY'),value:"SUPPOSITORY"},{label:h.default.t('DEVICE'),value:"DEVICE"}]),tl=(0,o.default)(el,1)[0],al=(0,c.useDispatch)(),ll=null,nl=null;(0,u.useEffect)(function(){(0,T.readUser)().then(function(t){Rl('agrement_praticien',t.code_membre),console.log("User",t),bt(t)}),al((0,w.fetchGetSubscriptionListReset)()),al((0,w.fetchActivePaySubscriptionReset)()),al((0,w.fetchGetUserByNameOrNumberReset)()),al((0,w.fetchGetUserByIdQRCodeReset)()),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchCreateConsultationReset)()),al((0,w.fetchGetNetworkActsReset)()),al((0,w.fetchGetProviderClassReset)()),al((0,w.fetchAddDrugReset)()),al((0,w.fetchCheckInsuranceCoverageAmountReset)()),al((0,w.fetchGetExclusionReset)()),te(Ve.id_network),X(Ve.id_network)},[]),(0,u.useEffect)(function(){null!==wt&&console.log("user",wt)},[wt]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("checkInsuranceCoverageAmount.result",ue),console.log("Prestations",Aa),null!==ue.result&&null!==ue.result.response&&(null!==Aa&&(Zt(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),al((0,w.fetchCheckInsuranceCoverageAmountReset)())),ue.error&&s.Alert.alert(h.default.t("INFORMATION_MESSAGE"),F.getErrorMsg(ue),[{text:h.default.t("OK"),onPress:function(){if(null!==Aa){var t=(0,n.default)(Aa);t.shift(),Da(t),Zt(!1)}al((0,w.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[ue]),(0,u.useEffect)(function(){null!==oe.result&&(oe.result.response.length>0?_a(!0):s.Alert.alert(h.default.t("ERROR_LABEL"),h.default.t('NO_DRUG_MATCH_YOU_SEARCH'),[{text:h.default.t("OK"),onPress:function(){oa(!0),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})),oe.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(oe),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetDrugAppareilReset)())}}],{cancelable:!1})},[oe]),(0,u.useEffect)(function(){null!==ie.result&&(oa(!1),Pt(ie.result.response)),ie.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})},[ie]),(0,u.useEffect)(function(){null!==de.result&&s.Alert.alert(h.default.t("SUCCESS"),de.result.response,[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)()),fe.goBack()}}],{cancelable:!1}),de.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(de),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)())}}],{cancelable:!1})},[de]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",ne),null!==ne.result&&(Ye(!1),Qe(!0),Rl('numero_assure',ne.result.response.phone),Q(Ve.id_network,"&phone="+ne.result.response.phone)),ne.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ne),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[ne]);var ol,rl,il,ul,dl=p.object().shape({numero_assure:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===Ve.password_validation?p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')):p.string(),practitioner_lastname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),sl=p.object().shape({amount_prestation:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:p.number(),date_prestation:p.date(),ticker_moderateur:p.number()}),cl=p.object().shape({examen_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:p.number()}),fl=p.object().shape({drug_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ml=p.object().shape({code:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),El=function(t,l){var n=l||''+j(new Date).format('YYYY-MM-DD');Se('ios'===s.Platform.OS),pe(n)},gl=function(t,l){var n=l||new Date;Ue('ios'===s.Platform.OS),Te(j(n).format('YYYY-MM-DD')),Rl('accident_date',j(n).format('YYYY-MM-DD'))},pl=function(t,l){var n=l||new Date;ut('ios'===s.Platform.OS),Xe(j(n).format('YYYY-MM-DD')),Rl('pregnancy_start_at',j(n).format('YYYY-MM-DD'))},_l=function(t,l){var n=l||new Date;ft('ios'===s.Platform.OS),et(j(n).format('YYYY-MM-DD')),Rl('pregnancy_end_at',j(n).format('YYYY-MM-DD'))},hl=(0,E.useFormik)({validationSchema:dl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==wt?void 0:wt.code_membre,accident_date:null,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){0===Aa.length?s.Alert.alert(h.default.t("ERROR_LABLE"),h.default.t('YOU_MUST_ADD_AT_LEAST_ONE_PRESTATION'),[{text:h.default.t("OK"),onPress:function(){}}],{cancelable:!1}):J({insured_id:At.insured_id,network_agent_id:Ve.network_agent_id,password:t.password,beneficiary_id:null!==vt?vt.id:null,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,care_condition:t.care_condition,accident_date:t.accident_date,pregnancy_start_at:t.pregnancy_start_at,pregnancy_end_at:t.pregnancy_end_at,performances:Aa,prescriptions:Ma,exams:va})}}),Cl=hl.handleChange,Sl=hl.handleSubmit,yl=hl.handleBlur,wl=hl.values,bl=hl.errors,Tl=hl.touched,Rl=hl.setFieldValue,Al=hl.setFieldTouched,Dl=(hl.isValid,function(){switch(console.log("currentStep",Qt),Qt){case 0:return console.log("values",wl),al((0,w.fetchGetUserByNameOrNumberReset)()),''!==wl.numero_assure&&null===le.result&&(Q(Ve.id_network,Ge?"&insured_id="+wl.numero_assure:je?"&phone="+wl.numero_assure:"&name="+wl.numero_assure),console.log("errors",bl)),!1;default:return!0}}),Il=[{title:h.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10,width:(0,y.responsiveWidth)(90)},placeholder:Ge?h.default.t('NUMERO_ASSURE'):je?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:wl.numero_assure,keyboardType:je?'numeric':'default',onChangeText:Cl('numero_assure'),onBlur:yl('numero_assure'),success:Tl.numero_assure&&!bl.numero_assure,touched:Tl.numero_assure,error:bl.numero_assure,icon:u.default.createElement(O.default,{style:{zIndex:10},name:Ge?'lock':je?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(v.default,{style:{paddingRight:10},name:"lock",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!0),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"phone",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!0)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"user",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"qrcode",size:20,color:_.Color.primaryColor,onPress:function(){xe(!0)}})))},{title:h.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:wl.lastname_patient,onChangeText:Cl('lastname_patient'),onBlur:yl('lastname_patient'),success:Tl.lastname_patient&&!bl.lastname_patient,touched:Tl.lastname_patient,editable:!1,error:bl.lastname_patient}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:wl.firstname_patient,editable:!1,onChangeText:Cl('firstname_patient'),onBlur:yl('firstname_patient'),success:Tl.firstname_patient&&!bl.firstname_patient,touched:Tl.firstname_patient,error:bl.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:ka,disabled:!0,value:Fa,initial:Fa,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:h.default.t('PRATICIEN'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:wl.agrement_praticien,editable:!1}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:wl.practitioner_lastname,onChangeText:Cl('practitioner_lastname'),onBlur:yl('practitioner_lastname'),success:Tl.practitioner_lastname&&!bl.practitioner_lastname,touched:Tl.practitioner_lastname,error:bl.practitioner_lastname}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:wl.practitioner_firstname,onChangeText:Cl('practitioner_firstname'),onBlur:yl('practitioner_firstname'),success:Tl.practitioner_firstname&&!bl.practitioner_firstname,touched:Tl.practitioner_firstname,error:bl.practitioner_firstname}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),data:null!==re.result?null==(l=re.result)?void 0:l.response:[],useNativeDriver:!0,onChangeText:function(t,l,n){Al('practitioner_provider_class_id'),Rl('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),data:$a,useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),pt(t),Al('care_condition'),Rl('care_condition',t)},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('ACCIDENT')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(40)}},u.default.createElement(B.default,{options:Ha,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){console.log(t),Ie('YES'===t)}}))),De&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==be?be:'',onChangeText:Cl('date_accident'),onBlur:yl('date_accident'),onFocus:function(){s.Keyboard.dismiss(),Ue(!0)},success:Tl.date_accident&&!bl.date_accident,touched:Tl.date_accident,error:bl.date_accident}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('GROSSESSE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){nt('YES'===t)}}))),lt&&u.default.createElement(u.default.Fragment,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==ze?ze:'',onChangeText:Cl('date_debut_grossesse'),onBlur:yl('date_debut_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ut(!0)},success:Tl.date_debut_grossesse&&!bl.date_debut_grossesse,touched:Tl.date_debut_grossesse,error:bl.date_debut_grossesse}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==$e?$e:'',onChangeText:Cl('date_fin_grossesse'),onBlur:yl('date_fin_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ft(!0)},success:Tl.date_fin_grossesse&&!bl.date_fin_grossesse,touched:Tl.date_fin_grossesse,error:bl.date_fin_grossesse})),"MAX"===Ve.password_validation&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:wl.password,onChangeText:Cl('password'),onBlur:yl('password'),success:Tl.password&&!bl.password,touched:Tl.password,error:bl.password,secureTextEntry:!0}),u.default.createElement(s.View,{style:{marginTop:25}},u.default.createElement(s.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){al((0,w.fetchGetAmountConsultationReset)()),Za(!1),null===gt?ll.alertWithType('warn',h.default.t('ERROR_LABEL'),h.default.t('PLEASE_SELECT_CONDITON_PRISE_CHARGE_FIRST')):Zt(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('CONSULTATION')),u.default.createElement(Y.default,{name:"medical-bag",size:20,color:_.Color.whiteColor})),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){da(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),u.default.createElement(v.default,{name:"file-medical",size:20,color:_.Color.whiteColor})))),u.default.createElement(s.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,flexDirection:"row"}],onPress:function(t){ta(!0),Pt(null)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('MEDICAMENT')),u.default.createElement(H.default,{name:"drug-pack",size:20,color:_.Color.whiteColor}))))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(b.default,{ref:function(t){return ll=t}}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:z.contain},u.default.createElement(I.default,{steps:Il,currentStepIndex:Qt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:Ut,activeStep:0,steps:Il,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ft(t)},isLastStep:function(t){return Ht(t)},onNext:function(){Dl()},onPrev:function(){},currentStep:function(t){var l=t.currentStep,n=t.isLastStep,o=t.isFirstStep;Kt(l),Ft(o),Ht(n)}})),u.default.createElement(s.View,{style:z.iconNavigation},Lt?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(){return Ut.current.prev()}},u.default.createElement(v.default,{name:"arrow-left",size:20,color:_.Color.whiteColor})),2===Qt?u.default.createElement(S.default,{loading:de.loading,onPress:Sl},h.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){Sl(t),Dl()&&Ut.current.next()}},A.loading||le.loading||ne.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(v.default,{name:"arrow-right",size:24,color:_.Color.whiteColor}))),Sa&&u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:Sa,onSwipeComplete:function(){ya(!1)},swipeDirection:null,style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),u.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},u.default.createElement(q.default,{style:{flex:1},originWhitelist:['*'],source:{html:ae.result.document}})),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ya(!1)}},h.default.t('OK'))))),Xt&&u.default.createElement(E.Formik,{validationSchema:sl,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(t){''===t.code_acte?nl.shake(200):(Da([{act_id:t.code_acte.id,amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}].concat((0,n.default)(Aa))),ee({insurance_id:At.id,beneficiary_id:null!==vt?vt.id:null,care_condition:gt,act_action:"INSERT",act_type:"PERFORMANCE",tmp_sheet_id:Ct,performances:[{amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}]}))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.handleBlur,p=t.setFieldValue,C=t.setFieldTouched,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},console.log("Errors",o),u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:Xt,onSwipeComplete:function(){Zt(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('ADD_PRESTATION')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+j(ge).format('YYYY-MM-DD HH:mm'),editable:!1}),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return'CONSULTATION'===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){C('code_acte'),console.log("Value",t),p('code_acte',t),'FREE'!==t.billing_type&&(p('amount_prestation',t.amount),$({network_id:Ve.id_network,amount:''+t.amount,care_condition:gt}))},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(R.default,{style:{marginTop:10},editable:''===n.code_acte||'FREE'===n.code_acte.billing_type,placeholder:h.default.t('AMOUNT'),value:n.amount_prestation,onChangeText:function(t){p('amount_prestation',t),$({network_id:Ve.id_network,amount:''+t,care_condition:gt})},onBlur:E('amount_prestation'),success:c.amount_prestation&&!o.amount_prestation,touched:c.amount_prestation,error:o.amount_prestation}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==ce.result?ce.result.response.moderator_ticket:''}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==ce.result?ce.result.response.insurance_amount:''}),u.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('VISITE_DOMICILE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:Ka,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){Za('YES'===t)}}))),Xa&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:n.frais_deplacement,onChangeText:f('frais_deplacement'),onBlur:E('frais_deplacement'),success:c.frais_deplacement&&!o.frais_deplacement,touched:c.frais_deplacement,error:o.frais_deplacement}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ue.loading,onPress:w},h.default.t('SUBMIT_LABEL'))))))}),ea&&u.default.createElement(E.Formik,{validationSchema:fl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(t){Pa([{drug_or_device_id:Mt.id,dosage:t.drug_posologie,quantity:t.drug_quantity}].concat((0,n.default)(Ma))),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD')),ta(!1)}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:ea,onSwipeComplete:function(){ta(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),u.default.createElement(s.View,{style:{flexDirection:'row'}},u.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Mt?Mt.name:l.drug_name,onChangeText:c('drug_name'),onBlur:f('drug_name'),success:o.drug_name&&!n.drug_name,touched:o.drug_name,error:n.drug_name,editable:null===Mt}),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(t){K(Ve.id_network,l.drug_name)}},oe.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"search",size:24,color:_.Color.whiteColor}))),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:l.drug_posologie,onChangeText:c('drug_posologie'),onBlur:f('drug_posologie'),success:o.drug_posologie&&!n.drug_posologie,touched:o.drug_posologie,error:n.drug_posologie}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:l.drug_quantity,onChangeText:c('drug_quantity'),onBlur:f('drug_quantity'),success:o.drug_quantity&&!n.drug_quantity,touched:o.drug_quantity,error:n.drug_quantity,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:E},h.default.t('SUBMIT_LABEL'))))))}),ua&&u.default.createElement(E.Formik,{validationSchema:cl,initialValues:{examen_name:'',code_acte:'',amount:''},onSubmit:function(t){console.log("Value",t),Oa([{act_id:t.code_acte.id,description:t.examen_name,quantity:null}].concat((0,n.default)(va))),da(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_ADD'))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.setFieldValue,p=t.setFieldTouched,C=t.handleBlur,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:ua,onSwipeComplete:function(){da(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_EXAMEN')),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return"EXAM_OR_OTHER"===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),p('code_acte'),E('code_acte',t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),''!==n.code_acte?'PACKAGE'!==n.code_acte.billing_type&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:n.examen_name,onChangeText:f('examen_name'),onBlur:C('examen_name'),success:c.examen_name&&!o.examen_name,touched:c.examen_name,error:o.examen_name}):null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==n.code_acte?'FREE'===n.code_acte.billing_type?h.default.t('AMOUNT_FREE'):(null!==n.code_acte.unit_value?' = '+n.code_acte.unit_value:'')+" "+n.code_acte.amount:'',editable:!1,onChangeText:f('amount'),onBlur:C('amount'),success:c.amount&&!o.amount,touched:c.amount,error:o.amount,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){console.log("errors",o),console.log("values",n),w()}},h.default.t('SUBMIT_LABEL'))))))}),Ce&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(ge),mode:"date",display:"spinner",onChange:El}),Pe&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:gl}),it&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:pl}),ct&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:_l}),Oe&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,y.responsiveWidth)(80)},useNativeDriver:!0,visible:Oe},u.default.createElement(f.default.Title,null,h.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[z.blockView,{borderBottomColor:_.Color.borderColor,maxHeight:300}]},u.default.createElement(x.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(V.default,{onRead:function(t){xe(!1),D(t.data)},flashMode:L.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){xe(!1)}})),fa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:fa,onSwipeComplete:function(){ma(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(il=le.result)?void 0:il.response,extraData:null==(ul=le.result)?void 0:ul.response,keyExtractor:function(t,l){return l},ListEmptyComponent:u.default.createElement(x.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%",flexDirection:'column'}],key:l.id,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(null),Ga(1),ma(!1),Rl('lastname_patient',l.user.lastname),Rl('firstname_patient',l.user.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id),al((0,w.fetchGetUserByNameOrNumberReset)()),Ut.current.next())}},u.default.createElement(x.default,{body2:!0,semibold:!0},(null!==l.user.firstname?l.user.firstname:'')+" "+(null!==l.user.lastname?l.user.lastname:'')),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+l.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+l.insurance_remaining_amount)),l.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:z.beneficiarySubSection,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(t),Ga(0),ma(!1),Rl('lastname_patient',t.lastname),Rl('firstname_patient',t.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id+"&beneficiary_id="+t.id),al((0,w.fetchGetUserByNameOrNumberReset)()),Ut.current.next())}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(x.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ma(!1)}},h.default.t('OK')))))),pa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:pa,onSwipeComplete:function(){_a(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LISTE_MEDICAMENT')),u.default.createElement(s.FlatList,{data:null==(ol=oe.result)?void 0:ol.response,extraData:null==(rl=oe.result)?void 0:rl.response,keyExtractor:function(t,l){return l},renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%"}],key:l.id,onPress:function(){Pt(l),_a(!1)}},u.default.createElement(x.default,{body2:!0,semibold:!0},l.name+" | "+l.type)))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return _a(!1)}},h.default.t('OK')))))),na&&u.default.createElement(E.Formik,{validationSchema:ml,initialValues:{code:'',name:'',type:'',on_prescription:!1},onSubmit:function(t){Pt(null),W({network_id:Ve.id_network,code:t.code,name:t.name,type:t.type,on_prescription:t.on_prescription})}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit,p=t.setFieldValue;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:na,onSwipeComplete:function(){oa(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_NOUVEAU_MEDICAMENT')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:"Code",value:l.code,onChangeText:c('code'),onBlur:f('code'),success:o.code&&!n.code,touched:o.code,error:n.code}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:l.name,onChangeText:c('name'),onBlur:f('name'),success:o.name&&!n.name,touched:o.name,error:n.name}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:"Type",data:tl,useNativeDriver:!0,onChangeText:function(t,l,n){p('type',t.value)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SOUS_ORDONNANCE')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){p('on_prescription','YES'===t),console.log("On Prescription",t)}}))),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:E},h.default.t('SUBMIT_LABEL'))))))})))),null!==ae.result&&u.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:_.Color.primaryColor,borderRadius:100},onPress:function(){ya(!0)}},u.default.createElement(x.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});e.default=Z},1737,[4,1,35,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1569,1418,1317,1458,1105,882,1035,841,1190]); __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 o=t(r(d[1])),n=t(r(d[2])),l=r(d[3]),c=r(d[4]),u=t(r(d[5]));function f(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);o&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,l)}return n}function s(t){for(var n=1;n0&&(j(Y-1),U(!1),p({currentStep:Y-1,isFirstStep:Y-1==0,isLastStep:Y-1==s.length-1}),A())},goTo:function(t){(s.length-1<=t||t>=0)&&(Y>t?(U(!1),A()):(U(!0),w()),p({currentStep:t,isFirstStep:0===t,isLastStep:0!==t}),j(t))}},(0,u.useEffect)(function(){p({currentStep:Y,isFirstStep:0===Y,isLastStep:Y===s.length-1})},[Y,s.length]),(0,u.useEffect)(function(){V(0===Y),y(Y===s.length-1)},[Y,s.length]),u.default.createElement(c,{contentContainerStyle:P,currentStep:Y,duration:b,animation:T?F:_,content:s[Y].content,useNativeDriver:C})});e.default=l;var c=function(t){var n=t.content,l=t.animation,c=t.duration,v=t.currentStep,f=t.useNativeDriver,p=t.contentContainerStyle,S=(0,u.useState)(void 0),w=(0,o.default)(S,2),h=w[0],A=w[1];return(0,u.useEffect)(function(){switch(l){case"slideLeft":var t=new s.Animated.Value(-s.Dimensions.get("window").width);s.Animated.timing(t,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateX:t}]});break;case"slideRight":var n=new s.Animated.Value(s.Dimensions.get("window").width);s.Animated.timing(n,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateX:n}]});break;case"slideUp":var o=new s.Animated.Value(-s.Dimensions.get("window").height);s.Animated.timing(o,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateY:o}]});break;case"slideDown":var u=new s.Animated.Value(s.Dimensions.get("window").height);s.Animated.timing(u,{toValue:0,duration:c}).start(),A({transform:[{translateY:u}]});break;case"fade":default:var v=new s.Animated.Value(0);s.Animated.timing(v,{toValue:1,duration:c,useNativeDriver:f}).start(),A({opacity:v})}return function(){var t=new s.Animated.Value(1);s.Animated.timing(t,{toValue:0,duration:300,useNativeDriver:f}).start(),A({opacity:t})}},[l,c,A,v]),u.default.createElement(s.Animated.View,{style:[h,p]},n)}},1739,[4,1,27,15,18]); __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=t(r(d[3])),f=r(d[4]),u=r(d[5]),c=r(d[6]),s=l(r(d[7])),E=r(d[8]),y=r(d[9]),p=l(r(d[10])),w=r(d[11]),C=r(d[12]),x=r(d[13]),T=l(r(d[14])),b=t(r(d[15])),V=l(r(d[16])),h=r(d[17]),A=r(d[18]),_=f.Dimensions.get('window'),I=(_.width,_.height,(0,w.createStructuredSelector)({subscriptionList:C.selectSubscriptionList,activatePaySubscription:C.selectActivatePaySubscription,getConsultation:C.selectGetConsultation,acceptRefuseConsultation:C.selectAcceptRefuseConsultation})),L=(0,u.connect)(I,{fetchActivePaySubscription:y.fetchActivePaySubscription,fetchGetConsultation:y.fetchGetConsultation,fetchAcceptRejectConsultation:y.fetchAcceptRejectConsultation})(function(t){t.navigation;var l=t.fetchGetConsultation,w=t.fetchAcceptRejectConsultation,C=t.getConsultation,_=t.acceptRefuseConsultation,I=(0,u.useDispatch)(),L=(0,o.useState)(null),R=(0,n.default)(L,2),S=R[0],N=R[1],O=(0,o.useState)(!1),P=(0,n.default)(O,2),v=P[0],B=P[1],M=(0,o.useState)({}),U=(0,n.default)(M,2),j=U[0],G=U[1];(0,o.useEffect)(function(){(0,x.readUser)().then(function(t){N(t),console.log("User",t),l(t.id,'UNTREATED_ALL','')}),I((0,y.fetchGetConsultationReset)()),I((0,y.fetchAcceptRejectConsultationReset)())},[]),(0,o.useEffect)(function(){C.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(C),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchGetConsultationReset)())}}],{cancelable:!1})},[C]),(0,o.useEffect)(function(){null!==_.result&&(f.Alert.alert(s.default.t("SUCCESS"),_.result.response,[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1}),null!==S&&l(S.id,'UNTREATED_ALL','')),_.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(_),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1})},[_]);var k=function(t){return o.default.createElement(f.TouchableOpacity,{style:[D.content,{backgroundColor:c.Color.cardBackgroundColor}],onPress:function(){B(!0),G(t)}},o.default.createElement(f.View,{style:{borderColor:c.Color.borderColor,flexDirection:"row",paddingBottom:10,borderBottomWidth:.5}},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('NETWORK')+": "+t.network.name))),o.default.createElement(f.View,{style:[D.contentTop,{borderColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PATIENT')+": "+t.patient_lastname+" "+t.patient_firstname),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.patient_situation.toLowerCase())),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PRATICIEN')+": "+t.practitioner_lastname+" "+t.practitioner_firstname),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.practitioner_provider_class))),o.default.createElement(f.View,{style:D.contentBottom},o.default.createElement(f.View,{style:D.bottomLeft},o.default.createElement(f.View,{style:{marginHorizontal:5}},o.default.createElement(T.default,{caption1:!0,semibold:!0,accentColor:!0},"Type: "+t.type.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0,semibold:!0,primaryColor:!0},"Date: "+A(t.created_at).format('YYYY-MM-DD')))))};return o.default.createElement(E.ScreenComponent,null,o.default.createElement(p.default,{ref:function(t){return t}}),o.default.createElement(f.View,{style:D.contain},C.loading?o.default.createElement(f.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===f.Platform.OS?o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ProgressBarAndroid,null),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS'))):o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ActivityIndicator,{size:"large",color:'#ccc'}),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS')))):null!==C.result?o.default.createElement(f.FlatList,{style:{flex:1},ListEmptyComponent:function(){return o.default.createElement(T.default,null,s.default.t('NO_CONSULTATION_DEMAND'))},data:C.result.response,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;return t.index,k(l)}}):null,v&&o.default.createElement(V.default.Container,{useNativeDriver:!0,visible:v},o.default.createElement(V.default.Title,null,s.default.t('DETAIL')),o.default.createElement(f.ScrollView,{persistentScrollbar:!0},o.default.createElement(f.View,{style:[D.blockView,{borderBottomColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('NETWORK'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},""+j.network.name))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PATIENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.patient_lastname+" "+j.patient_firstname))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Situation")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.patient_situation.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRATICIEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.practitioner_lastname+" "+j.practitioner_firstname))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CLASSE_PRESTATAIRE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.practitioner_provider_class.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('STATE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.state.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Type")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.type.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CONDITION_PRISE_CHARGE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.care_condition.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('INSTITUTE_NAME'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.institution_name.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Date")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},A(j.created_at).format('YYYY-MM-DD')))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('EXAMEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.exams.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('MEDICAMENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.prescriptions.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRESTATION'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.performances.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))))),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('CANCEL_LABEL'),onPress:function(){B(!1)}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('REJECT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"REJECT"})}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('ACCEPT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"ACCEPT"})}}))))});e.default=L;var D=f.StyleSheet.create({textInput:{height:46,backgroundColor:c.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5}})},1740,[4,1,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,719,1417,1458,1424,1077,1190]); __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])),c=t(r(d[3])),o=r(d[4]),u=r(d[5]),f=l(r(d[6])),s=r(d[7]),E=l(r(d[8])),p=r(d[9]),y=r(d[10]),h=r(d[11]),w=r(d[12]),C=t(r(d[13])),T=l(r(d[14])),_=l(r(d[15])),A=r(d[16]),V=l(r(d[17])),R=(0,p.createStructuredSelector)({subscriptionList:y.selectSubscriptionList,activatePaySubscription:y.selectActivatePaySubscription,getConsultation:y.selectGetConsultation,acceptRefuseConsultation:y.selectAcceptRefuseConsultation}),x=(0,h.connect)(R,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetConsultation:w.fetchGetConsultation,fetchAcceptRejectConsultation:w.fetchAcceptRejectConsultation})(function(t){var l=t.navigation,s=t.fetchAcceptRejectConsultation,p=t.acceptRefuseConsultation,y=(0,h.useDispatch)(),R=(0,c.useState)(l.getParam('item')),x=(0,n.default)(R,2),b=x[0],P=(x[1],(0,c.useState)(null)),L=(0,n.default)(P,2),D=L[0],I=L[1];return(0,c.useEffect)(function(){(0,A.readUser)().then(function(t){I(t)}),y((0,w.fetchAcceptRejectConsultationReset)())},[]),(0,c.useEffect)(function(){null!==p.result&&u.Alert.alert(f.default.t("SUCCESS"),p.result.response,[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)()),l.goBack()}}],{cancelable:!1}),p.error&&u.Alert.alert(f.default.t("ERROR_LABLE"),C.getErrorMsg(p),[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)())}}],{cancelable:!1})},[p]),console.log("Consultation",b),c.default.createElement(u.SafeAreaView,{style:o.BaseStyle.safeAreaView,forceInset:{top:'always'}},c.default.createElement(V.default,{ref:function(t){return t}}),c.default.createElement(u.ScrollView,null,c.default.createElement(u.View,{style:S.contain},c.default.createElement(u.View,{style:[S.contentRow]},c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PATIENT')),c.default.createElement(E.default,{body2:!0},b.patient_lastname+" "+b.patient_firstname),c.default.createElement(E.default,{body2:!0},b.patient_situation.toLowerCase())),c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PRATICIEN')),c.default.createElement(E.default,{body2:!0},b.practitioner_lastname+" "+b.practitioner_firstname),c.default.createElement(E.default,{body2:!0},(0,C.uppercaseFirstLetter)(b.practitioner_provider_class.toLowerCase())))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row'}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('STATE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.state.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Type"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.type.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('CONDITION_PRISE_CHARGE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.care_condition.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('INSTITUTE_NAME')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.institution_name.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Date"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,T.default)(b.created_at).format('YYYY-MM-DD')))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('EXAMEN')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.exams.length)),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('MEDICAMENT')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.prescriptions.length))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('PRESTATION')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.performances.length))),c.default.createElement(u.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:25}},c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"ACCEPT"})}},f.default.t("ACCEPT")),c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"REJECT"})}},f.default.t("REJECT"))))))});e.default=x;var S=u.StyleSheet.create({contain:{padding:20,width:"100%"},classContent:{flexDirection:"row",justifyContent:"flex-end",marginBottom:15},line:{width:"100%",height:1,borderWidth:.5,borderColor:s.Color.dividerColor,borderStyle:"dashed",marginVertical:20},code:{width:"100%",padding:20,alignItems:"center",justifyContent:"center"},contentRow:{flexDirection:"row"},centerView:{alignItems:"center",justifyContent:"center",marginHorizontal:10},colCenter:{flex:1,alignItems:"flex-start"}})},1741,[4,1,27,15,1742,18,720,1034,1417,1733,1734,1049,1486,1458,1190,1562,719,1717]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseStyle=void 0;var t=r(d[0]),o=r(d[1]),n=t.StyleSheet.create({textInput:{height:46,borderRadius:5,paddingHorizontal:10,width:'100%',justifyContent:'space-between',alignItems:'center',flexDirection:'row'},safeAreaView:{flex:1,backgroundColor:o.Color.containerBackgroundColor}});e.BaseStyle=n},1742,[18,1034]); -__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=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),N=n(r(d[22])),O=n(r(d[23])),v=n(r(d[24])),V=n(r(d[25])),P=n(r(d[26])),B=t(r(d[27])),D=r(d[28]),k=n(r(d[29])),L=n(r(d[30])),U=r(d[31]),M=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(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 z(t){for(var n=1;n0?St(!0):Qt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){Ct(!1),null!==H.result&&null!==H.result.response&&zt((0,b.fetchCheckInsuranceCoverageAmountReset)()),H.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),M.getErrorMsg(H),[{text:_.default.t("OK"),onPress:function(){Ve.examen?$e(z({},Ze,{exams:Ze.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return Ve.id===t.id?z({},t,{quantity:at.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),zt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]),(0,u.useEffect)(function(){null!==X.result&&We(!0),X.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(X),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[X]),(0,u.useEffect)(function(){null!==ee.result&&c.Alert.alert(_.default.t("SUCCESS"),ee.result.response,[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)()),te.goBack()}}],{cancelable:!1}),ee.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(ee),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)())}}],{cancelable:!1})},[ee]);var Kt=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Yt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()}),code_acte:y.object()});console.log("consultaiton",Ze);var Ht,Wt,Xt,Jt,Zt=(0,p.useFormik)({validationSchema:Kt,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_e?void 0:_e.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){K({health_care_sheet_id:Ze.id,network_agent_id:ie.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,prescriptions:Ze.prescriptions.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity}}),exams:Ze.exams.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity,unit_quantity:parseInt(t.unit_quantity)}})})}}),$t=Zt.handleChange,ea=Zt.handleSubmit,ta=Zt.handleBlur,aa=Zt.values,na=Zt.errors,la=Zt.touched,ra=Zt.setFieldValue,oa=Zt.setFieldTouched,ia=(Zt.isValid,function(){switch(console.log("currentStep",ze),ze){case 0:return console.log("values",aa),zt((0,b.fetchGetUserByNameOrNumberReset)()),''!==aa.numero_assure&&null===J.result&&(I(ie.id_network,de?"&insured_id="+aa.numero_assure:pe?"&phone="+aa.numero_assure:"&name="+aa.numero_assure),console.log("errors",na)),!1;default:return!0}}),ua=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:de?_.default.t('NUMERO_ASSURE'):pe?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:aa.numero_assure,keyboardType:pe?'numeric':'default',onChangeText:$t('numero_assure'),onBlur:ta('numero_assure'),success:la.numero_assure&&!na.numero_assure,touched:la.numero_assure,error:na.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:de?'lock':pe?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(O.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){se(!0),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!0)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){re(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:aa.lastname_patient,onChangeText:$t('lastname_patient'),onBlur:ta('lastname_patient'),success:la.lastname_patient&&!na.lastname_patient,touched:la.lastname_patient,editable:!1,error:na.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:aa.firstname_patient,editable:!1,onChangeText:$t('firstname_patient'),onBlur:ta('firstname_patient'),success:la.firstname_patient&&!na.firstname_patient,touched:la.firstname_patient,error:na.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(V.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(P.default,{options:Ut,disabled:!0,value:Ft,initial:Ft,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:aa.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:aa.practitioner_lastname,onChangeText:$t('practitioner_lastname'),onBlur:ta('practitioner_lastname'),success:la.practitioner_lastname&&!na.practitioner_lastname,touched:la.practitioner_lastname,error:na.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:aa.practitioner_firstname,onChangeText:$t('practitioner_firstname'),onBlur:ta('practitioner_firstname'),success:la.practitioner_firstname&&!na.practitioner_firstname,touched:la.practitioner_firstname,error:na.practitioner_firstname}),u.default.createElement(B.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(D.Dropdown,{label:_.default.t('CLASSIFICATION'),data:null!==$.result?null==(n=$.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){oa('practitioner_provider_class_id'),ra('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ie.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:aa.password,onChangeText:$t('password'),onBlur:ta('password'),success:la.password&&!na.password,touched:la.password,error:na.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==Ze?!Ze.prescriptions.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.prescriptions.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):yt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(O.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==Ze?!Ze.exams.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.exams.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les examens"):Rt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Qt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:W.contain},u.default.createElement(A.default,{steps:ua,currentStepIndex:ze+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:Be,activeStep:0,steps:ua,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ue(t)},isLastStep:function(t){return Fe(t)},onNext:function(){ia()},onPrev:function(){0===ze&&zt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Qe(n),Ue(o),Fe(l)}})),u.default.createElement(c.View,{style:W.iconNavigation},Le?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return Be.current.prev()}},u.default.createElement(O.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===ze?u.default.createElement(h.default,{loading:ee.loading,onPress:ea},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ea(t),ia()&&Be.current.next()}},J.loading||Z.loading||X.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),pt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:pt,onSwipeComplete:function(){yt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:Ze.exams,extraData:Ze.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{examen:!0})),$e(z({},Ze,{exams:Ze.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},(null===n.quantity?'':n.quantity)+" "+n.description+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.act.name),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return yt(!1)}},_.default.t('OK')))))),le&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:le},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[W.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(V.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(L.default,{onRead:function(t){re(!1),l(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){re(!1)}})),bt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Jt=J.result)?void 0:Jt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(null),Gt(1),St(!1),ra('lastname_patient',n.user.lastname),ra('firstname_patient',n.user.firstname),j(n.user.id,'TO_BILL','CONSULTATION'))}},u.default.createElement(V.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:W.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(t),Gt(0),St(!1),ra('lastname_patient',t.lastname),ra('firstname_patient',t.firstname),j(n.user.id,'TO_BILL','CONSULTATION',"&beneficiary_id="+t.id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return St(!1)}},_.default.t('OK')))))),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:Ze.prescriptions,extraData:Ze.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{quantity_original:n.quantity,drugs:!0})),$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},parseInt(n.quantity)-parseInt(null!==n.billed_quantity?n.billed_quantity:0)+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),He&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:He,onSwipeComplete:function(){We(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_CONSULTATION')),u.default.createElement(c.FlatList,{data:null==(Ht=X.result)?void 0:Ht.response,extraData:null==(Wt=X.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_CONSULTATION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){st(n),it(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return We(!1)}},_.default.t('OK')))))),ot&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:ot},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[W.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_lastname+" "+dt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.practitioner_lastname+" "+dt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(dt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.performances.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.exams.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.prescriptions.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){it(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){it(!1),St(!1),We(!1),$e(dt),nt(dt),Be.current.next()}})),_t&&u.default.createElement(p.Formik,{validationSchema:Yt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',unit_quantity:'',unit_quantity_condition:null!==Ve&&!Ve.drugs&&'UNIT_PRICE'===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:'',price:null!==Ve?Ve.drugs?'':Ve.act.amount:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)$e(z({},Ze,{exams:Ze.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),Y({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ot});else{var n=dt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):($e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),Y({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"PRESCRIPTION",tmp_sheet_id:Ot,prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}]}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(V.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(V.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:H.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1743,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); -__d(function(e,t,a,l,n,o,r){var i=t(r[0]),u=t(r[1]);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var d=u(t(r[2])),c=u(t(r[3])),s=u(t(r[4])),f=i(t(r[5])),m=t(r[6]),p=t(r[7]),E=u(t(r[8])),g=u(t(r[9])),_=t(r[10]),y=i(t(r[11])),C=t(r[12]),h=u(t(r[13])),w=t(r[14]),S=u(t(r[15])),b=t(r[16]),T=t(r[17]),I=u(t(r[18])),D=t(r[19]),R=u(t(r[20])),x=t(r[21]),O=u(t(r[22])),v=u(t(r[23])),A=u(t(r[24])),N=u(t(r[25])),V=u(t(r[26])),B=u(t(r[27])),M=i(t(r[28])),P=t(r[29]),k=u(t(r[30])),L=u(t(r[31])),U=t(r[32]),F=i(t(r[33])),Y=t(r[34]),G=t(r[35]),q=u(t(r[36])),H=t(r[37]),j=u(t(r[38])),Q=u(t(r[39])),z=u(t(r[40]));function K(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function W(e){for(var t=1;t0?xa(!0):Ml.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH'))),$.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg($),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[$]),(0,f.useEffect)(function(){console.log("getUserByNameOrNumber.result",te),null!==te.result&&(ve(!1),Be(!0),nn('numero_assure',te.result.response.phone),l(De.id_network,"&phone="+te.result.response.phone)),te.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(te),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[te]),(0,f.useEffect)(function(){null!==H.result&&null!==H.result.response&&($t.performances.length>=1&&(Pa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())),H.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(H),[{text:h.default.t("OK"),onPress:function(){$t.performances.length>=1&&(ea(W({},$t,{performances:(0,d.default)(la.performances)})),Pa(!1)),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]),(0,f.useEffect)(function(){null!==K.result&&Xt(!0),K.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(K),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetConsultationReset)())}}],{cancelable:!1})},[K]),(0,f.useEffect)(function(){null!==ie.result&&m.Alert.alert(h.default.t("SUCCESS"),ie.result.response,[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)()),ue.goBack()}}],{cancelable:!1}),ie.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[ie]);var kl=y.object().shape({numero_assure:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:y.string(),practitioner_lastname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ll=y.object().shape({price:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ul=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:y.number(),date_prestation:y.date(),ticker_moderateur:y.number()}),Fl=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),date_prestation:y.date()}),Yl=(y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.mixed(),amount:y.mixed()})),Gl=y.object().shape({drug_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ql=(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||new Date;ge('ios'===m.Platform.OS),he(X(a).format('YYYY-MM-DD')),nn('accident_date',X(a).format('YYYY-MM-DD'))}),Hl=function(e,t){var a=t||new Date;it('ios'===m.Platform.OS),We(X(a).format('YYYY-MM-DD')),nn('pregnancy_start_at',X(a).format('YYYY-MM-DD'))},jl=function(e,t){var a=t||new Date;st('ios'===m.Platform.OS),$e(X(a).format('YYYY-MM-DD')),nn('pregnancy_end_at',X(a).format('YYYY-MM-DD'))};console.log("consultaiton",$t);var Ql,zl,Kl,Wl,Xl,Zl=(0,_.useFormik)({validationSchema:kl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_t?void 0:_t.code_membre,pregnancy_start_at:null,pregnancy_end_at:null,accident_date:null},onSubmit:function(e){i($t.id,{network_agent_id:De.network_agent_id,password:e.password,practitioner_lastname:e.practitioner_lastname,practitioner_firstname:e.practitioner_firstname,practitioner_provider_class_id:e.practitioner_provider_class_id,care_condition:e.care_condition,accident_date:e.accident_date,pregnancy_start_at:e.pregnancy_start_at,pregnancy_end_at:e.pregnancy_end_at,performances:$t.performances,prescriptions:$t.prescriptions,exams:$t.exams})}}),Jl=Zl.handleChange,$l=Zl.handleSubmit,en=Zl.handleBlur,tn=Zl.values,an=Zl.errors,ln=Zl.touched,nn=Zl.setFieldValue,on=Zl.setFieldTouched,rn=(Zl.isValid,function(){switch(console.log("currentStep",jt),jt){case 0:return console.log("values",tn),''!==tn.numero_assure&&null===$.result&&(Bl((0,T.fetchGetUserByNameOrNumberReset)()),l(De.id_network,Oe?"&insured_id="+tn.numero_assure:Ve?"&phone="+tn.numero_assure:"&name="+tn.numero_assure),console.log("errors",an)),!1;default:return!0}}),un=[{title:h.default.t('ASSURE'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10,width:(0,b.responsiveWidth)(90)},placeholder:Oe?h.default.t('NUMERO_ASSURE'):Ve?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:tn.numero_assure,keyboardType:Ve?'numeric':'default',onChangeText:Jl('numero_assure'),onBlur:en('numero_assure'),success:ln.numero_assure&&!an.numero_assure,touched:ln.numero_assure,error:an.numero_assure,icon:f.default.createElement(N.default,{style:{zIndex:10},name:Oe?'lock':Ve?'phone':'user',size:20})}),f.default.createElement(m.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},f.default.createElement(A.default,{style:{paddingRight:10},name:"lock",size:20,color:C.Color.primaryColor,onPress:function(){ve(!0),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"phone",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!0)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"user",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"qrcode",size:20,color:C.Color.primaryColor,onPress:function(){fe(!0)}})))},{title:h.default.t('PATIENT'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:tn.lastname_patient,onChangeText:Jl('lastname_patient'),onBlur:en('lastname_patient'),success:ln.lastname_patient&&!an.lastname_patient,touched:ln.lastname_patient,editable:!1,error:an.lastname_patient}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:tn.firstname_patient,editable:!1,onChangeText:Jl('firstname_patient'),onBlur:en('firstname_patient'),success:ln.firstname_patient&&!an.firstname_patient,touched:ln.firstname_patient,error:an.firstname_patient}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('SITUATION')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(60)}},f.default.createElement(B.default,{options:gl,disabled:!0,value:Cl,initial:Cl,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){}}))))},{title:h.default.t('PRATICIEN'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:tn.agrement_praticien,editable:!1}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:tn.practitioner_lastname,onChangeText:Jl('practitioner_lastname'),onBlur:en('practitioner_lastname'),success:ln.practitioner_lastname&&!an.practitioner_lastname,touched:ln.practitioner_lastname,error:an.practitioner_lastname}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:tn.practitioner_firstname,onChangeText:Jl('practitioner_firstname'),onBlur:en('practitioner_firstname'),success:ln.practitioner_firstname&&!an.practitioner_firstname,touched:ln.practitioner_firstname,error:an.practitioner_firstname}),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),value:null!==sa?sa.practitioner_provider_class:'',data:null!==ae.result?null==(t=ae.result)?void 0:t.response:[],useNativeDriver:!0,onChangeText:function(e,t,a){on('practitioner_provider_class_id'),nn('practitioner_provider_class_id',e.id),console.log("Value",e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),value:null!==sa?sa.care_condition:'',data:Nl,useNativeDriver:!0,onChangeText:function(e,t,a){console.log("Value",e),pt(e),on('care_condition'),nn('care_condition',e)},valueExtractor:function(e){return e.value},labelExtractor:function(e){return e.label}})),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('ACCIDENT')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(40)}},f.default.createElement(B.default,{options:Sl,initial:null!==sa&&null!==sa.accident_date?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){console.log(e),Te('YES'===e)}}))),be&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==Ce?Ce:'',onChangeText:Jl('date_accident'),onBlur:en('date_accident'),onFocus:function(){Keyboard.dismiss(),ge(!0)},success:ln.date_accident&&!an.date_accident,touched:ln.date_accident,error:an.date_accident}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('GROSSESSE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Tl,initial:null!==sa&&null!==sa.pregnancy_start_at?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){lt('YES'===e)}}))),at&&f.default.createElement(f.default.Fragment,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==Ke?Ke:'',onChangeText:Jl('date_debut_grossesse'),onBlur:en('date_debut_grossesse'),onFocus:function(){Keyboard.dismiss(),it(!0)},success:ln.date_debut_grossesse&&!an.date_debut_grossesse,touched:ln.date_debut_grossesse,error:an.date_debut_grossesse}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==Je?Je:'',onChangeText:Jl('date_fin_grossesse'),onBlur:en('date_fin_grossesse'),onFocus:function(){Keyboard.dismiss(),st(!0)},success:ln.date_fin_grossesse&&!an.date_fin_grossesse,touched:ln.date_fin_grossesse,error:an.date_fin_grossesse})),"MAX"===De.password_validation&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:tn.password,onChangeText:Jl('password'),onBlur:en('password'),success:ln.password&&!an.password,touched:ln.password,error:an.password,secureTextEntry:!0}),f.default.createElement(m.View,{style:{marginTop:25}},f.default.createElement(m.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ha(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('CONSULTATION')),f.default.createElement(j.default,{name:"medical-bag",size:20,color:C.Color.whiteColor})),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ga(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),f.default.createElement(A.default,{name:"file-medical",size:20,color:C.Color.whiteColor})))),f.default.createElement(m.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,flexDirection:"row"}],onPress:function(e){Ha(!0),vt(null)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('MEDICAMENT')),f.default.createElement(Q.default,{name:"drug-pack",size:20,color:C.Color.whiteColor}))))}];return f.default.createElement(w.ScreenComponent,null,f.default.createElement(I.default,{ref:function(e){return Ml=e}}),f.default.createElement(m.KeyboardAvoidingView,{behavior:'android'===m.Platform.OS?'height':'padding',style:{flex:1}},f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:ee.contain},f.default.createElement(O.default,{steps:un,currentStepIndex:jt+1}),f.default.createElement(m.View,{style:{flexDirection:'column',alignItems:'center'}},f.default.createElement(v.default,{ref:Mt,activeStep:0,steps:un,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(e){return Ut(e)},isLastStep:function(e){return Gt(e)},onNext:function(){rn()},onPrev:function(){0===jt&&Bl((0,T.fetchGetUserByNameOrNumberReset)())},currentStep:function(e){var t=e.currentStep,a=e.isLastStep,l=e.isFirstStep;Qt(t),Ut(l),Gt(a)}})),f.default.createElement(m.View,{style:ee.iconNavigation},Lt?f.default.createElement(m.View,null):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(){return Mt.current.prev()}},f.default.createElement(A.default,{name:"arrow-left",size:20,color:C.Color.whiteColor})),2===jt?f.default.createElement(S.default,{loading:re.loading,onPress:$l},h.default.t('SUBMIT_LABEL')):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){$l(e),rn()&&Mt.current.next()}},$.loading||te.loading||K.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(A.default,{name:"arrow-right",size:24,color:C.Color.whiteColor}))),ll&&f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ll,onSwipeComplete:function(){nl(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),f.default.createElement(m.View,{style:{height:m.Dimensions.get('window').height-200,width:m.Dimensions.get('window').width}},f.default.createElement(z.default,{style:{flex:1},originWhitelist:['*'],source:{html:J.result.document}})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return nl(!1)}},h.default.t('OK'))))),Ma&&(Xl=null!==Vt&&null===Vt.drugs?g.default.parseInt(Vt.amount):'',console.log("AMOUNT",Xl),f.default.createElement(_.Formik,{validationSchema:Fl,initialValues:{amount_prestation:''+Vt!==null&&null===Vt.drugs?Vt.amount:'',frais_deplacement:null!==Vt&&null===Vt.drugs?Vt.home_visit_fees:'',code_acte:null!==Vt&&null===Vt.drugs?Vt.act:'',insurance_amount:''+Vt!==null&&null===Vt.drugs?Vt.insurance_amount:'',moderator_ticket:''+Vt!==null&&null===Vt.drugs?Vt.moderator_ticket:''},onSubmit:function(e){console.log("values",e),ea(W({},$t,{performances:$t.performances.map(function(t){return Vt.id===t.id?W({},t,{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement,to_delete:!1}):t})})),x({insurance_id:wt.id,beneficiary_id:null!==It?It.id:null,care_condition:$t._care_condition,act_action:"UPDATE",act_type:"PERFORMANCE",act_id:Vt.id,tmp_sheet_id:ke,performances:[{amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}]})}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ma,onSwipeComplete:function(){Pa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:null!==Vt&&null===Vt.drugs?X(Vt.created_at).format('YYYY-MM-DD HH:mm'):''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),null!==e.amount&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:a.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})},editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:null!==Vt&&null===Vt.drugs?a.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:null!==Vt&&null===Vt.drugs?a.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{loading:H.loading,style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){d(),console.log("Error",l)}},h.default.t('SUBMIT_LABEL'))))))})),Ca&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ca,onSwipeComplete:function(){ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_PRESTATION')),f.default.createElement(m.FlatList,{data:$t.performances.filter(function(e){return!e.to_delete}),extraData:$t.performances.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:5},(0,F.cutString)(t.act.name,30)+"\n \n "+h.default.t('AMOUNT_LABEL')+": "+t.amount+" \n \n "+h.default.t('AMOUNT_PER_INSURANCE')+": "+t.insurance_amount+" \n \n "+h.default.t('TICKET_MONDERATEUR')+": "+t.moderator_ticket+" "+(null!==t.home_visit_fees?'| '+t.home_visit_fees:'')),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:null})),Pa(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{performances:$t.performances.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ha(!1)}},h.default.t('OK')))))),Ua&&f.default.createElement(_.Formik,{validationSchema:Ul,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(e){''===e.code_acte?Pl.shake(200):(ul([{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}].concat((0,d.default)(il))),Fa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_MODIFY')))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ua,onSwipeComplete:function(){Fa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),'FREE'!==e.billing_type&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,value:a.amount_prestation,onChangeText:o('amount_prestation'),onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})}}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:d},h.default.t('SUBMIT_LABEL'))))))}),qa&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(e){pl([{drug_or_device_id:Ot.id,dosage:e.drug_posologie,quantity:e.drug_quantity}].concat((0,d.default)(ml))),Ha(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,i=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:qa,onSwipeComplete:function(){Ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),f.default.createElement(m.View,{style:{flexDirection:'row'}},f.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Ot?Ot.name:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(e){r(De.id_network,t.drug_name)}},le.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(N.default,{name:"search",size:24,color:C.Color.whiteColor}))),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:i},h.default.t('SUBMIT_LABEL'))))))}),za&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:null!==Vt&&Vt.drugs?Vt.drug_or_device.name:'',drug_posologie:null!==Vt&&Vt.drugs?Vt.dosage:'',drug_quantity:null!==Vt&&Vt.drugs?Vt.quantity:''},onSubmit:function(e){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?{id:t.id,drug_or_device_id:Vt.drug_or_device.id,drug_or_device:Vt.drug_or_device,dosage:e.drug_posologie,quantity:e.drug_quantity,unit_price:t.unit_price,to_delete:!1}:t})})),Ka(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_MODIFY'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:za,onSwipeComplete:function(){Ka(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_MEDICAMENT')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:''+t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:r},h.default.t('SUBMIT_LABEL'))))))}),Za&&f.default.createElement(_.Formik,{validationSchema:Yl,initialValues:{examen_name:null!==Vt?Vt.drugs?'':Vt.description:'',examen_quantite:''+Vt!==null?Vt.drugs?'':Vt.quantity:'',code_acte:''+Vt!==null?Vt.drugs?'':Vt.act:'',amount:null!==Vt?Vt.drugs?null:Vt.act.amount:null},onSubmit:function(e){ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{id:t.id,amount:e.amount,act_id:e.code_acte.id,act:e.code_acte,description:e.examen_name,quantity:null,unit_price:t.unit_price,to_delete:!1}):t})})),Ja(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_MODIFY'))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.setFieldValue,i=e.setFieldTouched,u=e.handleBlur,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},console.log("Errors",l),f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Za,onSwipeComplete:function(){Ja(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_EXAMEN')),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return"EXAM_OR_OTHER"===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){console.log("Value",e),i('code_acte'),r('code_acte',e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:a.examen_name,onChangeText:o('examen_name'),onBlur:u('examen_name'),success:n.examen_name&&!l.examen_name,touched:n.examen_name,error:l.examen_name}),f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==a.code_acte?'FREE'===a.code_acte.billing_type?h.default.t('AMOUNT_FREE'):a.code_acte.unit_value+" = "+a.code_acte.amount:'',editable:!1,onChangeText:o('amount'),onBlur:u('amount'),success:n.amount&&!l.amount,touched:n.amount,error:l.amount,keyboardType:"numeric"})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:function(){console.log("errors",l),console.log("values",a),d()}},h.default.t('SUBMIT_LABEL'))))))}),He&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Fe),mode:"date",display:"spinner",onChange:(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||''+X(new Date).format('YYYY-MM-DD');je('ios'===m.Platform.OS),Ye(a)})}),Ee&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:ql}),rt&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:Hl}),ct&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:jl}),Ea&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ea,onSwipeComplete:function(){ga(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXAMEN')),f.default.createElement(m.FlatList,{data:$t.exams.filter(function(e){return!e.to_delete}),extraData:$t.exams.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.description+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+(0,F.cutStringWithoutDot)(t.act.name,50)),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!1})),Ja(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{exams:$t.exams.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ga(!1)}},h.default.t('OK')))))),se&&f.default.createElement(E.default.Container,{contentStyle:{width:(0,b.responsiveWidth)(80)},useNativeDriver:!0,visible:se},f.default.createElement(E.default.Title,null,h.default.t('SCAN')),f.default.createElement(m.ScrollView,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor,maxHeight:300}]},f.default.createElement(V.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),f.default.createElement(L.default,{onRead:function(e){fe(!1),a(e.data),console.log("result",e.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){fe(!1)}})),Ra&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ra,onSwipeComplete:function(){xa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),f.default.createElement(m.FlatList,{data:null==(Kl=$.result)?void 0:Kl.response,extraData:null==(Wl=$.result)?void 0:Wl.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:{paddingVertical:15,alignItems:'flex-start'}},f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%",flexDirection:'column'}],key:t.id,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(null),hl(1),xa(!1),nn('lastname_patient',t.user.lastname),nn('firstname_patient',t.user.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&network_agent_id="+De.network_agent_id))}},f.default.createElement(V.default,{body2:!0,semibold:!0},(null!==t.user.firstname?t.user.firstname:'')+" "+(null!==t.user.lastname?t.user.lastname:'')),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)),t.beneficiaries.map(function(e){return f.default.createElement(m.TouchableOpacity,{style:ee.beneficiarySubSection,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(e),hl(0),xa(!1),nn('lastname_patient',e.lastname),nn('firstname_patient',e.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&beneficiary_id="+e.id))}},f.default.createElement(m.View,{style:{width:10}}),f.default.createElement(m.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},f.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==e.firstname?e.firstname:'')+" "+(null!==e.lastname?e.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+e.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+e.insurance_remaining_amount)))}))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return xa(!1)}},h.default.t('OK')))))),Aa&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Aa,onSwipeComplete:function(){Na(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MEDICAMENTS')),f.default.createElement(m.FlatList,{data:$t.prescriptions.filter(function(e){return!e.to_delete}),extraData:$t.prescriptions.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.quantity+" "+t.drug_or_device.name+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+t.dosage),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!0})),Ka(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Na(!1)}},h.default.t('OK')))))),Wt&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Wt,onSwipeComplete:function(){Xt(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_CONSULTATION')),f.default.createElement(m.FlatList,{data:null==(Ql=K.result)?void 0:Ql.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_CONSULTATION')),extraData:null==(zl=K.result)?void 0:zl.response,keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id,onPress:function(){fa(t),ua(!0)}},f.default.createElement(V.default,{body2:!0,semibold:!0},t.type+" #"+t.health_care_sheet_id+" - "+X(t.created_at).format('YYYY-MM-DD')))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Xt(!1)}},h.default.t('OK')))))),ia&&f.default.createElement(E.default.Container,{useNativeDriver:!0,visible:ia},f.default.createElement(E.default.Title,null,h.default.t('DETAIL')),f.default.createElement(m.ScrollView,{persistentScrollbar:!0},f.default.createElement(m.View,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor}]},f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PATIENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_lastname+" "+sa.patient_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Situation")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_situation.toLowerCase()))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRATICIEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.practitioner_lastname+" "+sa.practitioner_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CLASSE_PRESTATAIRE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.practitioner_provider_class.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('STATE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.state.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Type")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.type.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CONDITION_PRISE_CHARGE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.care_condition.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('INSTITUTE_NAME'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.institution_name.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Date")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},X(sa.created_at).format('YYYY-MM-DD')))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRESTATION'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.performances.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.act.name+" \n "+e.amount+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('EXAMEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.exams.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.description+" \n "+e.act.name+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('MEDICAMENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.prescriptions.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.drug_or_device.name+" \n "+e.dosage+" \n")}))))),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){ua(!1)}}),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){ua(!1),xa(!1),Xt(!1),ea(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),na(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),pt(sa.care_condition),nn('practitioner_firstname',sa.practitioner_firstname),nn('practitioner_lastname',sa.practitioner_lastname),nn('pregnancy_start_at',sa.pregnancy_start_at),nn('accident_date',sa.accident_date),Te(null!==sa.accident_date),lt(null!==sa.pregnancy_start_at),Mt.current.next()}})),ba&&f.default.createElement(_.Formik,{validationSchema:Ll,initialValues:{price:''},onSubmit:function(e){console.log("Value",Vt),Vt.examen?ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})):ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})),Ta(!1)}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=(e.setFieldValue,e.setFieldTouched,e.handleBlur),r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ba,onSwipeComplete:function(){Ta(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AMOUNT_LABEL')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_LABEL_DESCRIPTION'),value:t.price,onChangeText:n('price'),onBlur:o('price'),success:l.price&&!a.price,touched:l.price,error:a.price,keyboardType:"numeric"}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:r},h.default.t('OK'))))))})))),null!==J.result&&f.default.createElement(m.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:C.Color.primaryColor,borderRadius:100},onPress:function(){nl(!0)}},f.default.createElement(V.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});o.default=ae},1744,[4,1,35,7,27,15,18,1049,1424,941,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1077,1569,1733,882,1035,841,1190]); -__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=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),O=n(r(d[22])),N=n(r(d[23])),v=n(r(d[24])),P=n(r(d[25])),V=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),U=n(r(d[30])),M=r(d[31]),L=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(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 z(t){for(var n=1;n0?Rt(!0):Yt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),Z.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(Z),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Z]),(0,u.useEffect)(function(){null!==J.result&&$e(!0),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){null!==W.result&&c.Alert.alert(_.default.t("SUCCESS"),W.result.response,[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)()),ae.goBack()}}],{cancelable:!1}),W.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(W),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[W]),(0,u.useEffect)(function(){St(!1),null!==H.result&&null!==H.result.response&&Qt((0,b.fetchCheckInsuranceCoverageAmountReset)()),H.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),L.getErrorMsg(H),[{text:_.default.t("OK"),onPress:function(){Ve.examen?nt(z({},at,{exams:at.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):nt(z({},at,{prestations:at.prestations.map(function(t){return Ve.id===t.id?z({},t,{quantity:ot.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),Qt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]);var Kt=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Ht=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()})});console.log("consultaiton",at);var Xt,Wt,Jt,Zt,$t=(0,p.useFormik)({validationSchema:Kt,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==Ce?void 0:Ce.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){Y(at.id,{network_agent_id:ue.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,performances:at.performances,prescriptions:at.prescriptions})}}),ea=$t.handleChange,ta=$t.handleSubmit,aa=$t.handleBlur,na=$t.values,la=$t.errors,ra=$t.touched,oa=$t.setFieldValue,ia=$t.setFieldTouched,ua=($t.isValid,function(){switch(console.log("currentStep",He),He){case 0:return console.log("values",na),''!==na.numero_assure&&null===Z.result&&(Qt((0,b.fetchGetUserByNameOrNumberReset)()),I(ue.id_network,se?"&insured_id="+na.numero_assure:ye?"&phone="+na.numero_assure:"&name="+na.numero_assure),console.log("errors",la)),!1;default:return!0}}),ca=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:se?_.default.t('NUMERO_ASSURE'):ye?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:na.numero_assure,keyboardType:ye?'numeric':'default',onChangeText:ea('numero_assure'),onBlur:aa('numero_assure'),success:ra.numero_assure&&!la.numero_assure,touched:ra.numero_assure,error:la.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:se?'lock':ye?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(N.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){fe(!0),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!0)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){oe(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:na.lastname_patient,onChangeText:ea('lastname_patient'),onBlur:aa('lastname_patient'),success:ra.lastname_patient&&!la.lastname_patient,touched:ra.lastname_patient,editable:!1,error:la.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:na.firstname_patient,editable:!1,onChangeText:ea('firstname_patient'),onBlur:aa('firstname_patient'),success:ra.firstname_patient&&!la.firstname_patient,touched:ra.firstname_patient,error:la.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(P.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(V.default,{options:Lt,disabled:!0,value:Gt,initial:Gt,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:na.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:na.practitioner_lastname,onChangeText:ea('practitioner_lastname'),onBlur:aa('practitioner_lastname'),success:ra.practitioner_lastname&&!la.practitioner_lastname,touched:ra.practitioner_lastname,error:la.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:na.practitioner_firstname,onChangeText:ea('practitioner_firstname'),onBlur:aa('practitioner_firstname'),success:ra.practitioner_firstname&&!la.practitioner_firstname,touched:ra.practitioner_firstname,error:la.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),value:null!==pt?pt.practitioner_provider_class:'',data:null!==ee.result?null==(n=ee.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){ia('practitioner_provider_class_id'),oa('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ue.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:na.password,onChangeText:ea('password'),onBlur:aa('password'),success:ra.password&&!la.password,touched:ra.password,error:la.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==at?!at.prescriptions.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.prescriptions.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):Ct(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(N.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==at?!at.exams.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.exams.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les examens"):vt(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Yt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:X.contain},u.default.createElement(A.default,{steps:ca,currentStepIndex:He+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(O.default,{ref:Me,activeStep:0,steps:ca,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ge(t)},isLastStep:function(t){return Qe(t)},onNext:function(){ua()},onPrev:function(){0===He&&Qt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Xe(n),Ge(o),Qe(l)}})),u.default.createElement(c.View,{style:X.iconNavigation},Fe?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return Me.current.prev()}},u.default.createElement(N.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===He?u.default.createElement(h.default,{loading:W.loading,onPress:ta},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ta(t),ua()&&Me.current.next()}},Z.loading||$.loading||J.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(N.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),_t&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:at.exams,extraData:at.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{examen:!0})),nt(z({},at,{exams:at.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.description+" "+(n.unit_price?' - '+n.unit_price+(null!==n.unit_quantity?' X '+n.unit_quantity:''):'')+" \n "+n.act.name),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Ct(!1)}},_.default.t('OK')))))),re&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:re},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[X.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(P.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(U.default,{onRead:function(t){oe(!1),l(t.data),console.log("result",t.data)},flashMode:M.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){oe(!1)}})),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Jt=Z.result)?void 0:Jt.response,extraData:null==(Zt=Z.result)?void 0:Zt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(null),jt(1),Rt(!1),oa('lastname_patient',n.user.lastname),oa('firstname_patient',n.user.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(P.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:X.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(t),jt(0),Rt(!1),oa('lastname_patient',t.lastname),oa('firstname_patient',t.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&beneficiary_id="+t.id+"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(P.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Nt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Nt,onSwipeComplete:function(){vt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:at.prescriptions,extraData:at.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{drugs:!0})),nt(z({},at,{prescriptions:at.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return vt(!1)}},_.default.t('OK')))))),Ze&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ze,onSwipeComplete:function(){$e(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_EXECUTION')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Wt=J.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_EXECUTION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){yt(n),st(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return $e(!1)}},_.default.t('OK')))))),dt&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:dt},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[X.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_lastname+" "+pt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.practitioner_lastname+" "+pt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(pt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.performances.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.exams.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.prescriptions.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){st(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){st(!1),Rt(!1),$e(!1),nt(pt),it(pt),oa('practitioner_firstname',pt.practitioner_firstname),oa('practitioner_lastname',pt.practitioner_lastname),Me.current.next()}})),bt&&u.default.createElement(p.Formik,{validationSchema:Ht,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',price:Ve.unit_price,unit_quantity:null!==Ve.unit_quantity?Ve.unit_quantity:'',unit_quantity_condition:null!==Ve&&!!Ve.hasOwnProperty('act')&&"UNIT_PRICE"===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)nt(z({},at,{exams:at.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),K({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:at.exams.filter(function(t){return Ve.id===t.id})[0].act_id,act_action:"UPDATE",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue});else{var n=pt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):(nt(z({},at,{prescriptions:at.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),K({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:Ve.id,act_action:"UPDATE",act_type:"PRESCRIPTION",prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},console.log("Errors",l),u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MODIFY_EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(P.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(P.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:!Ve.hasOwnProperty('act')||"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:H.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1745,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); +__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=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),N=n(r(d[22])),O=n(r(d[23])),v=n(r(d[24])),V=n(r(d[25])),P=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),L=n(r(d[30])),U=r(d[31]),M=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(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 z(t){for(var n=1;n0?St(!0):Qt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){Ct(!1),null!==Y.result&&null!==Y.result.response&&zt((0,b.fetchCheckInsuranceCoverageAmountReset)()),Y.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),M.getErrorMsg(Y),[{text:_.default.t("OK"),onPress:function(){Ve.examen?$e(z({},Ze,{exams:Ze.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return Ve.id===t.id?z({},t,{quantity:at.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),zt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[Y]),(0,u.useEffect)(function(){null!==X.result&&We(!0),X.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(X),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[X]),(0,u.useEffect)(function(){null!==ee.result&&c.Alert.alert(_.default.t("SUCCESS"),ee.result.response,[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)()),te.goBack()}}],{cancelable:!1}),ee.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(ee),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)())}}],{cancelable:!1})},[ee]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ie.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()}),code_acte:y.object()});console.log("consultaiton",Ze);var Yt,Wt,Xt,Jt,Zt=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_e?void 0:_e.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){H({health_care_sheet_id:Ze.id,network_agent_id:ie.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,prescriptions:Ze.prescriptions.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity}}),exams:Ze.exams.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity,unit_quantity:parseInt(t.unit_quantity)}})})}}),$t=Zt.handleChange,ea=Zt.handleSubmit,ta=Zt.handleBlur,aa=Zt.values,na=Zt.errors,la=Zt.touched,ra=Zt.setFieldValue,oa=Zt.setFieldTouched,ia=(Zt.isValid,function(){switch(console.log("currentStep",ze),ze){case 0:return console.log("values",aa),zt((0,b.fetchGetUserByNameOrNumberReset)()),''!==aa.numero_assure&&null===J.result&&(I(ie.id_network,de?"&insured_id="+aa.numero_assure:pe?"&phone="+aa.numero_assure:"&name="+aa.numero_assure),console.log("errors",na)),!1;default:return!0}}),ua=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:de?_.default.t('NUMERO_ASSURE'):pe?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:aa.numero_assure,keyboardType:pe?'numeric':'default',onChangeText:$t('numero_assure'),onBlur:ta('numero_assure'),success:la.numero_assure&&!na.numero_assure,touched:la.numero_assure,error:na.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:de?'lock':pe?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(O.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){se(!0),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!0)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){re(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:aa.lastname_patient,onChangeText:$t('lastname_patient'),onBlur:ta('lastname_patient'),success:la.lastname_patient&&!na.lastname_patient,touched:la.lastname_patient,editable:!1,error:na.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:aa.firstname_patient,editable:!1,onChangeText:$t('firstname_patient'),onBlur:ta('firstname_patient'),success:la.firstname_patient&&!na.firstname_patient,touched:la.firstname_patient,error:na.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(V.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(P.default,{options:Ut,disabled:!0,value:Ft,initial:Ft,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:aa.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:aa.practitioner_lastname,onChangeText:$t('practitioner_lastname'),onBlur:ta('practitioner_lastname'),success:la.practitioner_lastname&&!na.practitioner_lastname,touched:la.practitioner_lastname,error:na.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:aa.practitioner_firstname,onChangeText:$t('practitioner_firstname'),onBlur:ta('practitioner_firstname'),success:la.practitioner_firstname&&!na.practitioner_firstname,touched:la.practitioner_firstname,error:na.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),data:null!==$.result?null==(n=$.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){oa('practitioner_provider_class_id'),ra('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ie.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:aa.password,onChangeText:$t('password'),onBlur:ta('password'),success:la.password&&!na.password,touched:la.password,error:na.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==Ze?!Ze.prescriptions.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.prescriptions.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):yt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(O.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==Ze?!Ze.exams.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.exams.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les examens"):Rt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Qt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:W.contain},u.default.createElement(A.default,{steps:ua,currentStepIndex:ze+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:De,activeStep:0,steps:ua,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ue(t)},isLastStep:function(t){return Fe(t)},onNext:function(){ia()},onPrev:function(){0===ze&&zt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Qe(n),Ue(o),Fe(l)}})),u.default.createElement(c.View,{style:W.iconNavigation},Le?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return De.current.prev()}},u.default.createElement(O.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===ze?u.default.createElement(h.default,{loading:ee.loading,onPress:ea},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ea(t),ia()&&De.current.next()}},J.loading||Z.loading||X.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),pt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:pt,onSwipeComplete:function(){yt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:Ze.exams,extraData:Ze.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{examen:!0})),$e(z({},Ze,{exams:Ze.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},(null===n.quantity?'':n.quantity)+" "+n.description+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.act.name),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return yt(!1)}},_.default.t('OK')))))),le&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:le},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[W.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(V.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(L.default,{onRead:function(t){re(!1),l(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){re(!1)}})),bt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Jt=J.result)?void 0:Jt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(null),Gt(1),St(!1),ra('lastname_patient',n.user.lastname),ra('firstname_patient',n.user.firstname),j(n.user.id,'TO_BILL','CONSULTATION'))}},u.default.createElement(V.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:W.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(t),Gt(0),St(!1),ra('lastname_patient',t.lastname),ra('firstname_patient',t.firstname),j(n.user.id,'TO_BILL','CONSULTATION',"&beneficiary_id="+t.id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return St(!1)}},_.default.t('OK')))))),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:Ze.prescriptions,extraData:Ze.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{quantity_original:n.quantity,drugs:!0})),$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},parseInt(n.quantity)-parseInt(null!==n.billed_quantity?n.billed_quantity:0)+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Ye&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ye,onSwipeComplete:function(){We(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_CONSULTATION')),u.default.createElement(c.FlatList,{data:null==(Yt=X.result)?void 0:Yt.response,extraData:null==(Wt=X.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_CONSULTATION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){st(n),it(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return We(!1)}},_.default.t('OK')))))),ot&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:ot},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[W.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_lastname+" "+dt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.practitioner_lastname+" "+dt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(dt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.performances.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.exams.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.prescriptions.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){it(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){it(!1),St(!1),We(!1),$e(dt),nt(dt),De.current.next()}})),_t&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',unit_quantity:'',unit_quantity_condition:null!==Ve&&!Ve.drugs&&'UNIT_PRICE'===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:'',price:null!==Ve?Ve.drugs?'':Ve.act.amount:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)$e(z({},Ze,{exams:Ze.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ot});else{var n=dt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):($e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"PRESCRIPTION",tmp_sheet_id:Ot,prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}]}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(V.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(V.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:Y.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1743,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); +__d(function(e,t,a,l,n,o,r){var i=t(r[0]),u=t(r[1]);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var d=u(t(r[2])),c=u(t(r[3])),s=u(t(r[4])),f=i(t(r[5])),m=t(r[6]),p=t(r[7]),E=u(t(r[8])),g=u(t(r[9])),_=t(r[10]),y=i(t(r[11])),C=t(r[12]),h=u(t(r[13])),w=t(r[14]),S=u(t(r[15])),b=t(r[16]),T=t(r[17]),I=u(t(r[18])),D=t(r[19]),R=u(t(r[20])),x=t(r[21]),O=u(t(r[22])),v=u(t(r[23])),A=u(t(r[24])),N=u(t(r[25])),V=u(t(r[26])),B=u(t(r[27])),M=i(t(r[28])),P=t(r[29]),k=u(t(r[30])),L=u(t(r[31])),U=t(r[32]),F=i(t(r[33])),Y=t(r[34]),G=t(r[35]),q=u(t(r[36])),H=t(r[37]),j=u(t(r[38])),Q=u(t(r[39])),z=u(t(r[40]));function K(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function W(e){for(var t=1;t0?xa(!0):Ml.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH'))),$.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg($),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[$]),(0,f.useEffect)(function(){console.log("getUserByNameOrNumber.result",te),null!==te.result&&(ve(!1),Be(!0),nn('numero_assure',te.result.response.phone),l(De.id_network,"&phone="+te.result.response.phone)),te.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(te),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[te]),(0,f.useEffect)(function(){null!==H.result&&null!==H.result.response&&($t.performances.length>=1&&(Pa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())),H.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(H),[{text:h.default.t("OK"),onPress:function(){$t.performances.length>=1&&(ea(W({},$t,{performances:(0,d.default)(la.performances)})),Pa(!1)),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]),(0,f.useEffect)(function(){null!==K.result&&Xt(!0),K.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(K),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetConsultationReset)())}}],{cancelable:!1})},[K]),(0,f.useEffect)(function(){null!==ie.result&&m.Alert.alert(h.default.t("SUCCESS"),ie.result.response,[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)()),ue.goBack()}}],{cancelable:!1}),ie.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[ie]);var kl=y.object().shape({numero_assure:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===De.password_validation?y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ll=y.object().shape({price:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ul=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:y.number(),date_prestation:y.date(),ticker_moderateur:y.number()}),Fl=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),date_prestation:y.date()}),Yl=(y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.mixed(),amount:y.mixed()})),Gl=y.object().shape({drug_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ql=(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||new Date;ge('ios'===m.Platform.OS),he(X(a).format('YYYY-MM-DD')),nn('accident_date',X(a).format('YYYY-MM-DD'))}),Hl=function(e,t){var a=t||new Date;it('ios'===m.Platform.OS),We(X(a).format('YYYY-MM-DD')),nn('pregnancy_start_at',X(a).format('YYYY-MM-DD'))},jl=function(e,t){var a=t||new Date;st('ios'===m.Platform.OS),$e(X(a).format('YYYY-MM-DD')),nn('pregnancy_end_at',X(a).format('YYYY-MM-DD'))};console.log("consultaiton",$t);var Ql,zl,Kl,Wl,Xl,Zl=(0,_.useFormik)({validationSchema:kl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_t?void 0:_t.code_membre,pregnancy_start_at:null,pregnancy_end_at:null,accident_date:null},onSubmit:function(e){i($t.id,{network_agent_id:De.network_agent_id,password:e.password,practitioner_lastname:e.practitioner_lastname,practitioner_firstname:e.practitioner_firstname,practitioner_provider_class_id:e.practitioner_provider_class_id,care_condition:e.care_condition,accident_date:e.accident_date,pregnancy_start_at:e.pregnancy_start_at,pregnancy_end_at:e.pregnancy_end_at,performances:$t.performances,prescriptions:$t.prescriptions,exams:$t.exams})}}),Jl=Zl.handleChange,$l=Zl.handleSubmit,en=Zl.handleBlur,tn=Zl.values,an=Zl.errors,ln=Zl.touched,nn=Zl.setFieldValue,on=Zl.setFieldTouched,rn=(Zl.isValid,function(){switch(console.log("currentStep",jt),jt){case 0:return console.log("values",tn),''!==tn.numero_assure&&null===$.result&&(Bl((0,T.fetchGetUserByNameOrNumberReset)()),l(De.id_network,Oe?"&insured_id="+tn.numero_assure:Ve?"&phone="+tn.numero_assure:"&name="+tn.numero_assure),console.log("errors",an)),!1;default:return!0}}),un=[{title:h.default.t('ASSURE'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10,width:(0,b.responsiveWidth)(90)},placeholder:Oe?h.default.t('NUMERO_ASSURE'):Ve?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:tn.numero_assure,keyboardType:Ve?'numeric':'default',onChangeText:Jl('numero_assure'),onBlur:en('numero_assure'),success:ln.numero_assure&&!an.numero_assure,touched:ln.numero_assure,error:an.numero_assure,icon:f.default.createElement(N.default,{style:{zIndex:10},name:Oe?'lock':Ve?'phone':'user',size:20})}),f.default.createElement(m.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},f.default.createElement(A.default,{style:{paddingRight:10},name:"lock",size:20,color:C.Color.primaryColor,onPress:function(){ve(!0),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"phone",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!0)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"user",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"qrcode",size:20,color:C.Color.primaryColor,onPress:function(){fe(!0)}})))},{title:h.default.t('PATIENT'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:tn.lastname_patient,onChangeText:Jl('lastname_patient'),onBlur:en('lastname_patient'),success:ln.lastname_patient&&!an.lastname_patient,touched:ln.lastname_patient,editable:!1,error:an.lastname_patient}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:tn.firstname_patient,editable:!1,onChangeText:Jl('firstname_patient'),onBlur:en('firstname_patient'),success:ln.firstname_patient&&!an.firstname_patient,touched:ln.firstname_patient,error:an.firstname_patient}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('SITUATION')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(60)}},f.default.createElement(B.default,{options:gl,disabled:!0,value:Cl,initial:Cl,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){}}))))},{title:h.default.t('PRATICIEN'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:tn.agrement_praticien,editable:!1}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:tn.practitioner_lastname,onChangeText:Jl('practitioner_lastname'),onBlur:en('practitioner_lastname'),success:ln.practitioner_lastname&&!an.practitioner_lastname,touched:ln.practitioner_lastname,error:an.practitioner_lastname}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:tn.practitioner_firstname,onChangeText:Jl('practitioner_firstname'),onBlur:en('practitioner_firstname'),success:ln.practitioner_firstname&&!an.practitioner_firstname,touched:ln.practitioner_firstname,error:an.practitioner_firstname}),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),value:null!==sa?sa.practitioner_provider_class:'',data:null!==ae.result?null==(t=ae.result)?void 0:t.response:[],useNativeDriver:!0,onChangeText:function(e,t,a){on('practitioner_provider_class_id'),nn('practitioner_provider_class_id',e.id),console.log("Value",e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),value:null!==sa?sa.care_condition:'',data:Nl,useNativeDriver:!0,onChangeText:function(e,t,a){console.log("Value",e),pt(e),on('care_condition'),nn('care_condition',e)},valueExtractor:function(e){return e.value},labelExtractor:function(e){return e.label}})),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('ACCIDENT')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(40)}},f.default.createElement(B.default,{options:Sl,initial:null!==sa&&null!==sa.accident_date?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){console.log(e),Te('YES'===e)}}))),be&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==Ce?Ce:'',onChangeText:Jl('date_accident'),onBlur:en('date_accident'),onFocus:function(){Keyboard.dismiss(),ge(!0)},success:ln.date_accident&&!an.date_accident,touched:ln.date_accident,error:an.date_accident}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('GROSSESSE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Tl,initial:null!==sa&&null!==sa.pregnancy_start_at?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){lt('YES'===e)}}))),at&&f.default.createElement(f.default.Fragment,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==Ke?Ke:'',onChangeText:Jl('date_debut_grossesse'),onBlur:en('date_debut_grossesse'),onFocus:function(){Keyboard.dismiss(),it(!0)},success:ln.date_debut_grossesse&&!an.date_debut_grossesse,touched:ln.date_debut_grossesse,error:an.date_debut_grossesse}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==Je?Je:'',onChangeText:Jl('date_fin_grossesse'),onBlur:en('date_fin_grossesse'),onFocus:function(){Keyboard.dismiss(),st(!0)},success:ln.date_fin_grossesse&&!an.date_fin_grossesse,touched:ln.date_fin_grossesse,error:an.date_fin_grossesse})),"MAX"===De.password_validation&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:tn.password,onChangeText:Jl('password'),onBlur:en('password'),success:ln.password&&!an.password,touched:ln.password,error:an.password,secureTextEntry:!0}),f.default.createElement(m.View,{style:{marginTop:25}},f.default.createElement(m.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ha(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('CONSULTATION')),f.default.createElement(j.default,{name:"medical-bag",size:20,color:C.Color.whiteColor})),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ga(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),f.default.createElement(A.default,{name:"file-medical",size:20,color:C.Color.whiteColor})))),f.default.createElement(m.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,flexDirection:"row"}],onPress:function(e){Ha(!0),vt(null)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('MEDICAMENT')),f.default.createElement(Q.default,{name:"drug-pack",size:20,color:C.Color.whiteColor}))))}];return f.default.createElement(w.ScreenComponent,null,f.default.createElement(I.default,{ref:function(e){return Ml=e}}),f.default.createElement(m.KeyboardAvoidingView,{behavior:'android'===m.Platform.OS?'height':'padding',style:{flex:1}},f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:ee.contain},f.default.createElement(O.default,{steps:un,currentStepIndex:jt+1}),f.default.createElement(m.View,{style:{flexDirection:'column',alignItems:'center'}},f.default.createElement(v.default,{ref:Mt,activeStep:0,steps:un,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(e){return Ut(e)},isLastStep:function(e){return Gt(e)},onNext:function(){rn()},onPrev:function(){0===jt&&Bl((0,T.fetchGetUserByNameOrNumberReset)())},currentStep:function(e){var t=e.currentStep,a=e.isLastStep,l=e.isFirstStep;Qt(t),Ut(l),Gt(a)}})),f.default.createElement(m.View,{style:ee.iconNavigation},Lt?f.default.createElement(m.View,null):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(){return Mt.current.prev()}},f.default.createElement(A.default,{name:"arrow-left",size:20,color:C.Color.whiteColor})),2===jt?f.default.createElement(S.default,{loading:re.loading,onPress:$l},h.default.t('SUBMIT_LABEL')):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){rn()&&Mt.current.next()}},$.loading||te.loading||K.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(A.default,{name:"arrow-right",size:24,color:C.Color.whiteColor}))),ll&&f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ll,onSwipeComplete:function(){nl(!1)},swipeDirection:null,style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),f.default.createElement(m.View,{style:{height:m.Dimensions.get('window').height-200,width:m.Dimensions.get('window').width}},f.default.createElement(z.default,{style:{flex:1},originWhitelist:['*'],source:{html:J.result.document}})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return nl(!1)}},h.default.t('OK'))))),Ma&&(Xl=null!==Vt&&null===Vt.drugs?g.default.parseInt(Vt.amount):'',console.log("AMOUNT",Xl),f.default.createElement(_.Formik,{validationSchema:Fl,initialValues:{amount_prestation:''+Vt!==null&&null===Vt.drugs?Vt.amount:'',frais_deplacement:null!==Vt&&null===Vt.drugs?Vt.home_visit_fees:'',code_acte:null!==Vt&&null===Vt.drugs?Vt.act:'',insurance_amount:''+Vt!==null&&null===Vt.drugs?Vt.insurance_amount:'',moderator_ticket:''+Vt!==null&&null===Vt.drugs?Vt.moderator_ticket:''},onSubmit:function(e){console.log("values",e),ea(W({},$t,{performances:$t.performances.map(function(t){return Vt.id===t.id?W({},t,{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement,to_delete:!1}):t})})),x({insurance_id:wt.id,beneficiary_id:null!==It?It.id:null,care_condition:$t._care_condition,act_action:"UPDATE",act_type:"PERFORMANCE",act_id:Vt.id,tmp_sheet_id:ke,performances:[{amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}]})}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ma,onSwipeComplete:function(){Pa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:null!==Vt&&null===Vt.drugs?X(Vt.created_at).format('YYYY-MM-DD HH:mm'):''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),null!==e.amount&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:a.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})},editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:null!==Vt&&null===Vt.drugs?a.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:null!==Vt&&null===Vt.drugs?a.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{loading:H.loading,style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){d(),console.log("Error",l)}},h.default.t('SUBMIT_LABEL'))))))})),Ca&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ca,onSwipeComplete:function(){ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_PRESTATION')),f.default.createElement(m.FlatList,{data:$t.performances.filter(function(e){return!e.to_delete}),extraData:$t.performances.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:5},(0,F.cutString)(t.act.name,30)+"\n \n "+h.default.t('AMOUNT_LABEL')+": "+t.amount+" \n \n "+h.default.t('AMOUNT_PER_INSURANCE')+": "+t.insurance_amount+" \n \n "+h.default.t('TICKET_MONDERATEUR')+": "+t.moderator_ticket+" "+(null!==t.home_visit_fees?'| '+t.home_visit_fees:'')),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:null})),Pa(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{performances:$t.performances.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ha(!1)}},h.default.t('OK')))))),Ua&&f.default.createElement(_.Formik,{validationSchema:Ul,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(e){''===e.code_acte?Pl.shake(200):(ul([{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}].concat((0,d.default)(il))),Fa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_MODIFY')))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ua,onSwipeComplete:function(){Fa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),'FREE'!==e.billing_type&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,value:a.amount_prestation,onChangeText:o('amount_prestation'),onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})}}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:d},h.default.t('SUBMIT_LABEL'))))))}),qa&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(e){pl([{drug_or_device_id:Ot.id,dosage:e.drug_posologie,quantity:e.drug_quantity}].concat((0,d.default)(ml))),Ha(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,i=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:qa,onSwipeComplete:function(){Ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),f.default.createElement(m.View,{style:{flexDirection:'row'}},f.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Ot?Ot.name:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(e){r(De.id_network,t.drug_name)}},le.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(N.default,{name:"search",size:24,color:C.Color.whiteColor}))),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:i},h.default.t('SUBMIT_LABEL'))))))}),za&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:null!==Vt&&Vt.drugs?Vt.drug_or_device.name:'',drug_posologie:null!==Vt&&Vt.drugs?Vt.dosage:'',drug_quantity:null!==Vt&&Vt.drugs?Vt.quantity:''},onSubmit:function(e){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?{id:t.id,drug_or_device_id:Vt.drug_or_device.id,drug_or_device:Vt.drug_or_device,dosage:e.drug_posologie,quantity:e.drug_quantity,unit_price:t.unit_price,to_delete:!1}:t})})),Ka(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_MODIFY'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:za,onSwipeComplete:function(){Ka(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_MEDICAMENT')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:''+t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:r},h.default.t('SUBMIT_LABEL'))))))}),Za&&f.default.createElement(_.Formik,{validationSchema:Yl,initialValues:{examen_name:null!==Vt?Vt.drugs?'':Vt.description:'',examen_quantite:''+Vt!==null?Vt.drugs?'':Vt.quantity:'',code_acte:''+Vt!==null?Vt.drugs?'':Vt.act:'',amount:null!==Vt?Vt.drugs?null:Vt.act.amount:null},onSubmit:function(e){ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{id:t.id,amount:e.amount,act_id:e.code_acte.id,act:e.code_acte,description:e.examen_name,quantity:null,unit_price:t.unit_price,to_delete:!1}):t})})),Ja(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_MODIFY'))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.setFieldValue,i=e.setFieldTouched,u=e.handleBlur,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},console.log("Errors",l),f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Za,onSwipeComplete:function(){Ja(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_EXAMEN')),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return"EXAM_OR_OTHER"===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){console.log("Value",e),i('code_acte'),r('code_acte',e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:a.examen_name,onChangeText:o('examen_name'),onBlur:u('examen_name'),success:n.examen_name&&!l.examen_name,touched:n.examen_name,error:l.examen_name}),f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==a.code_acte?'FREE'===a.code_acte.billing_type?h.default.t('AMOUNT_FREE'):a.code_acte.unit_value+" = "+a.code_acte.amount:'',editable:!1,onChangeText:o('amount'),onBlur:u('amount'),success:n.amount&&!l.amount,touched:n.amount,error:l.amount,keyboardType:"numeric"})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:function(){console.log("errors",l),console.log("values",a),d()}},h.default.t('SUBMIT_LABEL'))))))}),He&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Fe),mode:"date",display:"spinner",onChange:(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||''+X(new Date).format('YYYY-MM-DD');je('ios'===m.Platform.OS),Ye(a)})}),Ee&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:ql}),rt&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:Hl}),ct&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:jl}),Ea&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ea,onSwipeComplete:function(){ga(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXAMEN')),f.default.createElement(m.FlatList,{data:$t.exams.filter(function(e){return!e.to_delete}),extraData:$t.exams.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.description+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+(0,F.cutStringWithoutDot)(t.act.name,50)),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!1})),Ja(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{exams:$t.exams.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ga(!1)}},h.default.t('OK')))))),se&&f.default.createElement(E.default.Container,{contentStyle:{width:(0,b.responsiveWidth)(80)},useNativeDriver:!0,visible:se},f.default.createElement(E.default.Title,null,h.default.t('SCAN')),f.default.createElement(m.ScrollView,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor,maxHeight:300}]},f.default.createElement(V.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),f.default.createElement(L.default,{onRead:function(e){fe(!1),a(e.data),console.log("result",e.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){fe(!1)}})),Ra&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ra,onSwipeComplete:function(){xa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),f.default.createElement(m.FlatList,{data:null==(Kl=$.result)?void 0:Kl.response,extraData:null==(Wl=$.result)?void 0:Wl.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:{paddingVertical:15,alignItems:'flex-start'}},f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%",flexDirection:'column'}],key:t.id,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(null),hl(1),xa(!1),nn('lastname_patient',t.user.lastname),nn('firstname_patient',t.user.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&network_agent_id="+De.network_agent_id))}},f.default.createElement(V.default,{body2:!0,semibold:!0},(null!==t.user.firstname?t.user.firstname:'')+" "+(null!==t.user.lastname?t.user.lastname:'')),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)),t.beneficiaries.map(function(e){return f.default.createElement(m.TouchableOpacity,{style:ee.beneficiarySubSection,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(e),hl(0),xa(!1),nn('lastname_patient',e.lastname),nn('firstname_patient',e.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&beneficiary_id="+e.id))}},f.default.createElement(m.View,{style:{width:10}}),f.default.createElement(m.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},f.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==e.firstname?e.firstname:'')+" "+(null!==e.lastname?e.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+e.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+e.insurance_remaining_amount)))}))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return xa(!1)}},h.default.t('OK')))))),Aa&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Aa,onSwipeComplete:function(){Na(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MEDICAMENTS')),f.default.createElement(m.FlatList,{data:$t.prescriptions.filter(function(e){return!e.to_delete}),extraData:$t.prescriptions.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.quantity+" "+t.drug_or_device.name+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+t.dosage),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!0})),Ka(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Na(!1)}},h.default.t('OK')))))),Wt&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Wt,onSwipeComplete:function(){Xt(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_CONSULTATION')),f.default.createElement(m.FlatList,{data:null==(Ql=K.result)?void 0:Ql.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_CONSULTATION')),extraData:null==(zl=K.result)?void 0:zl.response,keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id,onPress:function(){fa(t),ua(!0)}},f.default.createElement(V.default,{body2:!0,semibold:!0},t.type+" #"+t.health_care_sheet_id+" - "+X(t.created_at).format('YYYY-MM-DD')))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Xt(!1)}},h.default.t('OK')))))),ia&&f.default.createElement(E.default.Container,{useNativeDriver:!0,visible:ia},f.default.createElement(E.default.Title,null,h.default.t('DETAIL')),f.default.createElement(m.ScrollView,{persistentScrollbar:!0},f.default.createElement(m.View,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor}]},f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PATIENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_lastname+" "+sa.patient_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Situation")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_situation.toLowerCase()))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRATICIEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.practitioner_lastname+" "+sa.practitioner_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CLASSE_PRESTATAIRE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.practitioner_provider_class.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('STATE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.state.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Type")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.type.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CONDITION_PRISE_CHARGE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.care_condition.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('INSTITUTE_NAME'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.institution_name.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Date")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},X(sa.created_at).format('YYYY-MM-DD')))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRESTATION'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.performances.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.act.name+" \n "+e.amount+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('EXAMEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.exams.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.description+" \n "+e.act.name+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('MEDICAMENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.prescriptions.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.drug_or_device.name+" \n "+e.dosage+" \n")}))))),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){ua(!1)}}),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){ua(!1),xa(!1),Xt(!1),ea(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),na(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),pt(sa.care_condition),nn('practitioner_firstname',sa.practitioner_firstname),nn('practitioner_lastname',sa.practitioner_lastname),nn('pregnancy_start_at',sa.pregnancy_start_at),nn('accident_date',sa.accident_date),Te(null!==sa.accident_date),lt(null!==sa.pregnancy_start_at),Mt.current.next()}})),ba&&f.default.createElement(_.Formik,{validationSchema:Ll,initialValues:{price:''},onSubmit:function(e){console.log("Value",Vt),Vt.examen?ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})):ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})),Ta(!1)}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=(e.setFieldValue,e.setFieldTouched,e.handleBlur),r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ba,onSwipeComplete:function(){Ta(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AMOUNT_LABEL')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_LABEL_DESCRIPTION'),value:t.price,onChangeText:n('price'),onBlur:o('price'),success:l.price&&!a.price,touched:l.price,error:a.price,keyboardType:"numeric"}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:r},h.default.t('OK'))))))})))),null!==J.result&&f.default.createElement(m.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:C.Color.primaryColor,borderRadius:100},onPress:function(){nl(!0)}},f.default.createElement(V.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});o.default=ae},1744,[4,1,35,7,27,15,18,1049,1424,941,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1077,1569,1733,882,1035,841,1190]); +__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=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),O=n(r(d[22])),N=n(r(d[23])),v=n(r(d[24])),P=n(r(d[25])),V=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),U=n(r(d[30])),M=r(d[31]),L=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(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 z(t){for(var n=1;n0?Rt(!0):Yt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),Z.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(Z),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Z]),(0,u.useEffect)(function(){null!==J.result&&$e(!0),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){null!==W.result&&c.Alert.alert(_.default.t("SUCCESS"),W.result.response,[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)()),ae.goBack()}}],{cancelable:!1}),W.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(W),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[W]),(0,u.useEffect)(function(){St(!1),null!==K.result&&null!==K.result.response&&Qt((0,b.fetchCheckInsuranceCoverageAmountReset)()),K.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),L.getErrorMsg(K),[{text:_.default.t("OK"),onPress:function(){Ve.examen?nt(z({},at,{exams:at.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):nt(z({},at,{prestations:at.prestations.map(function(t){return Ve.id===t.id?z({},t,{quantity:ot.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),Qt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[K]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ue.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()})});console.log("consultaiton",at);var Xt,Wt,Jt,Zt,$t=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==Ce?void 0:Ce.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){Y(at.id,{network_agent_id:ue.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,performances:at.performances,prescriptions:at.prescriptions})}}),ea=$t.handleChange,ta=$t.handleSubmit,aa=$t.handleBlur,na=$t.values,la=$t.errors,ra=$t.touched,oa=$t.setFieldValue,ia=$t.setFieldTouched,ua=($t.isValid,function(){switch(console.log("currentStep",Ke),Ke){case 0:return console.log("values",na),''!==na.numero_assure&&null===Z.result&&(Qt((0,b.fetchGetUserByNameOrNumberReset)()),I(ue.id_network,se?"&insured_id="+na.numero_assure:ye?"&phone="+na.numero_assure:"&name="+na.numero_assure),console.log("errors",la)),!1;default:return!0}}),ca=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:se?_.default.t('NUMERO_ASSURE'):ye?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:na.numero_assure,keyboardType:ye?'numeric':'default',onChangeText:ea('numero_assure'),onBlur:aa('numero_assure'),success:ra.numero_assure&&!la.numero_assure,touched:ra.numero_assure,error:la.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:se?'lock':ye?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(N.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){fe(!0),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!0)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){oe(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:na.lastname_patient,onChangeText:ea('lastname_patient'),onBlur:aa('lastname_patient'),success:ra.lastname_patient&&!la.lastname_patient,touched:ra.lastname_patient,editable:!1,error:la.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:na.firstname_patient,editable:!1,onChangeText:ea('firstname_patient'),onBlur:aa('firstname_patient'),success:ra.firstname_patient&&!la.firstname_patient,touched:ra.firstname_patient,error:la.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(P.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(V.default,{options:Lt,disabled:!0,value:Gt,initial:Gt,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:na.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:na.practitioner_lastname,onChangeText:ea('practitioner_lastname'),onBlur:aa('practitioner_lastname'),success:ra.practitioner_lastname&&!la.practitioner_lastname,touched:ra.practitioner_lastname,error:la.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:na.practitioner_firstname,onChangeText:ea('practitioner_firstname'),onBlur:aa('practitioner_firstname'),success:ra.practitioner_firstname&&!la.practitioner_firstname,touched:ra.practitioner_firstname,error:la.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),value:null!==pt?pt.practitioner_provider_class:'',data:null!==ee.result?null==(n=ee.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){ia('practitioner_provider_class_id'),oa('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ue.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:na.password,onChangeText:ea('password'),onBlur:aa('password'),success:ra.password&&!la.password,touched:ra.password,error:la.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==at?!at.prescriptions.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.prescriptions.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):Ct(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(N.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==at?!at.exams.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.exams.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les examens"):vt(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Yt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:X.contain},u.default.createElement(A.default,{steps:ca,currentStepIndex:Ke+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(O.default,{ref:Me,activeStep:0,steps:ca,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ge(t)},isLastStep:function(t){return Qe(t)},onNext:function(){ua()},onPrev:function(){0===Ke&&Qt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Xe(n),Ge(o),Qe(l)}})),u.default.createElement(c.View,{style:X.iconNavigation},Fe?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return Me.current.prev()}},u.default.createElement(N.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===Ke?u.default.createElement(h.default,{loading:W.loading,onPress:ta},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ta(t),ua()&&Me.current.next()}},Z.loading||$.loading||J.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(N.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),_t&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:at.exams,extraData:at.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{examen:!0})),nt(z({},at,{exams:at.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.description+" "+(n.unit_price?' - '+n.unit_price+(null!==n.unit_quantity?' X '+n.unit_quantity:''):'')+" \n "+n.act.name),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Ct(!1)}},_.default.t('OK')))))),re&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:re},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[X.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(P.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(U.default,{onRead:function(t){oe(!1),l(t.data),console.log("result",t.data)},flashMode:M.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){oe(!1)}})),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Jt=Z.result)?void 0:Jt.response,extraData:null==(Zt=Z.result)?void 0:Zt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(null),jt(1),Rt(!1),oa('lastname_patient',n.user.lastname),oa('firstname_patient',n.user.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(P.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:X.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(t),jt(0),Rt(!1),oa('lastname_patient',t.lastname),oa('firstname_patient',t.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&beneficiary_id="+t.id+"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(P.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Nt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Nt,onSwipeComplete:function(){vt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:at.prescriptions,extraData:at.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{drugs:!0})),nt(z({},at,{prescriptions:at.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return vt(!1)}},_.default.t('OK')))))),Ze&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ze,onSwipeComplete:function(){$e(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_EXECUTION')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Wt=J.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_EXECUTION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){yt(n),st(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return $e(!1)}},_.default.t('OK')))))),dt&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:dt},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[X.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_lastname+" "+pt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.practitioner_lastname+" "+pt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(pt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.performances.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.exams.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.prescriptions.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){st(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){st(!1),Rt(!1),$e(!1),nt(pt),it(pt),oa('practitioner_firstname',pt.practitioner_firstname),oa('practitioner_lastname',pt.practitioner_lastname),Me.current.next()}})),bt&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',price:Ve.unit_price,unit_quantity:null!==Ve.unit_quantity?Ve.unit_quantity:'',unit_quantity_condition:null!==Ve&&!!Ve.hasOwnProperty('act')&&"UNIT_PRICE"===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)nt(z({},at,{exams:at.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:at.exams.filter(function(t){return Ve.id===t.id})[0].act_id,act_action:"UPDATE",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue});else{var n=pt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):(nt(z({},at,{prescriptions:at.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:Ve.id,act_action:"UPDATE",act_type:"PRESCRIPTION",prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},console.log("Errors",l),u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MODIFY_EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(P.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(P.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:!Ve.hasOwnProperty('act')||"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:K.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1745,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); __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=t(r(d[3])),f=r(d[4]),u=l(r(d[5])),c=r(d[6]),s=r(d[7]),y=l(r(d[8])),E=r(d[9]),p=r(d[10]),w=l(r(d[11])),C=r(d[12]),x=r(d[13]),T=r(d[14]),V=l(r(d[15])),b=t(r(d[16])),_=l(r(d[17])),h=r(d[18]),I=l(r(d[19])),D=l(r(d[20])),S=l(r(d[21])),R=r(d[22]),A=f.Dimensions.get('window'),L=(A.width,A.height,(0,C.createStructuredSelector)({subscriptionList:x.selectSubscriptionList,activatePaySubscription:x.selectActivatePaySubscription,getConsultation:x.selectGetConsultation,acceptRefuseConsultation:x.selectAcceptRefuseConsultation})),O=(0,c.connect)(L,{fetchActivePaySubscription:p.fetchActivePaySubscription,fetchGetConsultation:p.fetchGetConsultation,fetchAcceptRejectConsultation:p.fetchAcceptRejectConsultation,fetchGetSubscription:p.fetchGetSubscription,fetchGetDemandeAutorisationSoin:p.fetchGetDemandeAutorisationSoin})(function(t){t.navigation;var l=t.fetchGetConsultation,C=t.fetchGetSubscription,x=t.fetchGetDemandeAutorisationSoin,A=(t.fetchAcceptRejectConsultation,t.acceptRefuseConsultation,t.getConsultation),L=(0,c.useDispatch)(),O=(0,o.useState)(null),P=(0,n.default)(O,2),v=P[0],B=P[1],M=(0,o.useState)(!1),U=(0,n.default)(M,2),G=U[0],k=U[1],Y=(0,o.useState)({}),F=(0,n.default)(Y,2),W=F[0],j=F[1],z=(0,o.useState)(1),H=(0,n.default)(z,2),K=H[0],q=H[1],X=(0,o.useState)(y.default.t('SOINS')),J=(0,n.default)(X,2),Q=J[0],Z=J[1],$=(0,o.useState)(!1),ee=(0,n.default)($,2),te=ee[0],le=ee[1],ae=(0,o.useState)([]),re=(0,n.default)(ae,2),ne=re[0],oe=re[1];var ie,fe;ie=(0,o.useState)(0),(fe=(0,n.default)(ie,2))[0],fe[1];(0,o.useEffect)(function(){L((0,p.fetchGetConsultationReset)()),L((0,p.fetchAcceptRejectConsultationReset)()),(0,T.readUser)().then(function(t){B(t),console.log("User",t),l(t.id,'ALL','','&pagination=true&page=1')})},[]),(0,o.useEffect)(function(){null!==A.result&&(K0?ht(!0):(St.alertWithType('warn',p.default.t('EMPTY_LIST'),p.default.t('NO_ASSURE_MATCH_SEARCH')),ee((0,h.fetchGetUserByNameOrNumberReset)()))),Y.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg(Y),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Y]);var Ct=function(){var t,n;return u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[K.containModal,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(L.default,{isVisible:Et,onSwipeComplete:function(){ht(!1)},swipeDirection:['down'],style:K.bottomModal},u.default.createElement(s.View,{style:[K.contentFilterBottom,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:K.contentSwipeDown},u.default.createElement(s.View,{style:K.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},p.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(t=Y.result)?void 0:t.response,extraData:null==(n=Y.result)?void 0:n.response,keyExtractor:function(t,n){return n},ListEmptyComponent:u.default.createElement(_.default,{body2:!0},p.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var n=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[K.contentActionModalBottom,{borderBottomColor:f.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_NON_EN_REGLE'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(null),dt(1),ht(!1),Tt('lastname_patient',n.user.lastname),Tt('firstname_patient',n.user.firstname),C(de.id_network,'',"&user_id="+n.user.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id))}},u.default.createElement(_.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:K.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(t),dt(0),ht(!1),Tt('lastname_patient',t.lastname),Tt('firstname_patient',t.firstname),C(de.id_network,'',"&user_id="+n.user.id+"&beneficiary_id="+t.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id+"&beneficiary_id="+t.id))}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(_.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+p.default.t('AYANT_DROITS')+")"),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(v.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ht(!1)}},p.default.t('OK'))))))},_t=(0,A.useFormik)({validationSchema:wt,initialValues:{password:'',code_acte:'',firstname_patient:'',lastname_patient:''},onSubmit:function(t){null===Me&&null===ze||(null===_e?ft.shake(800):''===t.code_acte?mt.shake(200):(z({act_id:t.code_acte,insurance_id:Me.id,issuer_network_agent_id:de.network_agent_id,beneficiary_id:null!==ze?ze.id:null,password:t.password}),console.log(ne),console.log("insurance",_e)))}}),bt=_t.handleChange,yt=_t.handleSubmit,Rt=_t.handleBlur,At=_t.values,Nt=_t.errors,Ot=_t.touched,Tt=_t.setFieldValue,Bt=_t.setFieldTouched,vt=(_t.isValid,function(){switch(console.log("currentStep",nt),nt){case 0:return console.log("values",At),ee((0,h.fetchGetUserByNameOrNumberReset)()),''!==At.numero_assure&&null===Y.result&&(H(de.id_network,xe?"&insured_id="+At.numero_assure:Ue?"&phone="+At.numero_assure:"&name="+At.numero_assure),console.log("errors",Nt)),!1;default:return!0}}),xt=[{title:p.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},placeholder:xe?p.default.t('NUMERO_ASSURE'):Ue?p.default.t('PHONE_NUMBER'):p.default.t('NOM_ASSURE'),value:At.numero_assure,keyboardType:Ue?'numeric':'default',onChangeText:bt('numero_assure'),onBlur:Rt('numero_assure'),success:Ot.numero_assure&&!Nt.numero_assure,touched:Ot.numero_assure,error:Nt.numero_assure,icon:u.default.createElement(B.default,{style:{zIndex:10},name:xe?'lock':Ue?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(k.default,{style:{paddingRight:10},name:"lock",size:20,color:f.Color.primaryColor,onPress:function(){De(!0),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"phone",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!0)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"user",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"qrcode",size:20,color:f.Color.primaryColor,onPress:function(){Ne(!0)}})))},{title:p.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('NOM_CLIENT'),value:At.lastname_patient,onChangeText:bt('lastname_patient'),onBlur:Rt('lastname_patient'),success:Ot.lastname_patient&&!Nt.lastname_patient,touched:Ot.lastname_patient,editable:!1,error:Nt.lastname_patient}),u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('PRENOM_CLIENT'),value:At.firstname_patient,editable:!1,onChangeText:bt('firstname_patient'),onBlur:Rt('firstname_patient'),success:Ot.firstname_patient&&!Nt.firstname_patient,touched:Ot.firstname_patient,error:Nt.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},p.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,O.responsiveWidth)(60)}},u.default.createElement(V.default,{options:ot,disabled:!0,value:st,initial:st,buttonColor:f.Color.accentColor,backgroundColor:f.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:p.default.t('DEMAND_DETAIL'),content:u.default.createElement(s.View,null,X.loading?u.default.createElement(s.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===s.Platform.OS?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ProgressBarAndroid,null),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS'))):u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ActivityIndicator,{size:"large",color:'#ccc'}),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS')))):X.result?u.default.createElement(s.View,{style:K.contain},u.default.createElement(N.View,{ref:function(t){ft=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('SELECT_INSURANCE'),data:X.result.response,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),be(t),Ee([].concat((0,l.default)(t.beneficiaries),[{id:null!==Me?Me.id:ze.id,firstname:null!==Me?Me.firstname:ze.firstname,lastname:null!==Me?Me.lastname:ze.lastname}])),C(t.network.id,'','&authorization_type=PRIOR')},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name}})),u.default.createElement(N.View,{ref:function(t){mt=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('CODE_ACTE'),data:null!==J.result?null==(n=J.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){Bt('code_acte'),Tt('code_acte',t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===de.password_validation&&u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},onChangeText:bt('password'),placeholder:p.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(B.default,{name:"lock",size:20}),value:At.password,onBlur:Rt('password'),success:Ot.password&&!Nt.password,touched:Ot.password,error:Nt.password}),u.default.createElement(v.default,{style:{marginTop:20},full:!0,loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL'))):null)}];return u.default.createElement(E.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return St=t}}),u.default.createElement(D.default,{show:J.loading}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:K.contain},u.default.createElement(M.default,{steps:xt,currentStepIndex:nt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(G.default,{ref:Qe,activeStep:0,steps:xt,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Je(t)},isLastStep:function(t){return et(t)},onNext:function(){vt()},onPrev:function(){},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;lt(n),Je(o),et(l)}})),u.default.createElement(s.View,{style:K.iconNavigation},Xe?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(){return Qe.current.prev()}},u.default.createElement(k.default,{name:"arrow-left",size:20,color:f.Color.whiteColor})),2===nt?u.default.createElement(v.default,{loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(t){yt(t),vt()&&Qe.current.next()}},Z.loading||Y.loading||q.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(k.default,{name:"arrow-right",size:24,color:f.Color.whiteColor}))),Et&&Ct(),Ae&&u.default.createElement(y.default.Container,{contentStyle:{width:(0,O.responsiveWidth)(80)},useNativeDriver:!0,visible:Ae},u.default.createElement(y.default.Title,null,p.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[K.blockView,{borderBottomColor:f.Color.borderColor,maxHeight:300}]},u.default.createElement(_.default,null,p.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(I.default,{onRead:function(t){Ne(!1),F(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(y.default.Button,{bold:!0,label:p.default.t('CLOSE'),onPress:function(){Ne(!1)}})),Et&&Ct()))))});e.default=F;var K=s.StyleSheet.create({textInput:{height:46,backgroundColor:f.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5},ineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:f.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:f.Color.dividerColor},contentActionModalBottom:{flexDirection:"row",paddingVertical:10,marginBottom:10,justifyContent:"space-between",borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}})},1747,[4,1,35,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,1417,1458,1424,1105,1633,750,535,982,1716,539,1488,1640,1583,1629,1418,1317,1416,1016,772,1738,1739,719,1190]); -__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=t(r(d[4])),u=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),p=t(r(d[9])),b=t(r(d[10])),w=r(d[11]),E=n(r(d[12])),S=r(d[13]),C=n(r(d[14])),y=n(r(d[15])),I=n(r(d[16])),T=n(r(d[17])),B=r(d[18]),L=r(d[19]),R=n(r(d[20])),A=r(d[21]),D=t(r(d[22])),_=r(d[23]),x=r(d[24]),O=r(d[25]),P=n(r(d[26])),v=(r(d[27]),u.Dimensions.get('window')),V=v.width,N=(v.height,.5*V),k=u.StyleSheet.create({textInput:{height:46,backgroundColor:w.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:N,height:N,borderRadius:N/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-N/3,top:-N/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:w.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:w.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:w.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,B.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:w.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),M=(0,_.createStructuredSelector)({insuranceList:x.selectInsuranceList,subscribeInsurance:x.selectSubscribeInsurance,uploadInsuranceImages:x.selectUploadInsuranceImages,insurancePrimeAmount:x.selectInsurancePrimeAmount,addBeneficiaryToSubscription:x.selectAddBeneficiaryToSubscription,subscriptionList:x.selectSubscriptionList,deleteBeneficiary:x.selectDeleteBeneficiary}),F=(0,s.connect)(M,{fetchGetListInsurance:L.fetchGetListInsurance,fetchSubscribeInsurance:L.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:L.fetchGetInsurancePrimeAmount,fetchUploadInsurance:L.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:L.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:L.fetchGetSubscriptionList,fetchDeleteBeneficiary:L.fetchDeleteBeneficiary})(function(t){t.fetchAddBeneficiaryToSubscription,t.addBeneficiaryToSubscription;var n=t.fetchGetSubscriptionList,_=t.fetchDeleteBeneficiary,x=t.subscriptionList,v=t.deleteBeneficiary,V=t.navigation,N=(0,c.useState)(null),M=(0,l.default)(N,2),F=M[0],U=M[1],G=(0,c.useState)(null),j=(0,l.default)(G,2),W=j[0],K=(j[1],(0,c.useState)(null)),z=(0,l.default)(K,2),H=(z[0],z[1]),Y=(0,s.useDispatch)(),q=(0,c.useState)(!1),J=(0,l.default)(q,2),Q=J[0],X=J[1],Z=(0,c.useState)(null),$=(0,l.default)(Z,2),ee=$[0],te=$[1],ne=(0,c.useState)([]),oe=(0,l.default)(ne,2),ie=oe[0],ae=oe[1],re=(0,c.useState)([]),le=(0,l.default)(re,2),ce=le[0],de=le[1],ue=(0,c.useState)([]),se=(0,l.default)(ue,2),fe=se[0],me=se[1],he=null;(0,c.useEffect)(function(){(0,A.readUser)().then(function(t){console.log("user",t),U(t)}),Y((0,L.fetchAddBeneficiaryToSubscriptionReset)()),Y((0,L.fetchGetSubscriptionListReset)())},[]),(0,c.useEffect)(function(){null!==F&&n(F.id,'EDITABLE',!1)},[F]);(0,c.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),ae(t)}x.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(x),[{text:E.default.t("OK"),onPress:function(){Y((0,L.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[x]),(0,c.useEffect)(function(){null!==v.result&&u.Alert.alert(E.default.t("SUCCESS"),v.result.response,[{text:E.default.t("OK"),onPress:function(){Y((0,L.fetchDeleteBeneficiaryReset)()),V.goBack()}}],{cancelable:!1}),v.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(v),[{text:E.default.t("OK"),onPress:function(){Y((0,L.fetchDeleteBeneficiaryReset)())}}],{cancelable:!1})},[v]);var ge=p.object().shape({password:p.string().required(E.default.t('THIS_FIELD_IS_REQUIRED'))});return c.default.createElement(S.ScreenComponent,null,c.default.createElement(R.default,{ref:function(t){return t}}),c.default.createElement(u.KeyboardAvoidingView,{behavior:'android'===u.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(u.ScrollView,{style:{flex:1}},c.default.createElement(h.Formik,{validationSchema:ge,initialValues:{password:''},onSubmit:function(t){null!==F&&(null===ee?he.shake(800):(console.log(F),console.log("insurance",W),H(t.password),_(ee.id,{password:t.password,beneficiaries_ids:fe})))}},function(t){var n=t.values,o=t.errors,l=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(u.View,{style:k.contain},c.default.createElement(D.View,{ref:function(t){he=t},style:{width:(0,B.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(O.Dropdown,{label:E.default.t('SELECT_SUBSCRIPTION'),data:ie,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),de(t.beneficiaries),te({id:t.id,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries}),X(!0)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+E.default.t('ETAT')+": "+t.state+" | "+E.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),c.default.createElement(y.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:E.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(T.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:l.password&&!o.password,touched:l.password,error:o.password}),c.default.createElement(I.default,{style:{marginTop:20},full:!0,loading:v.loading,onPress:h},E.default.t('SUBMIT_LABEL')))}))),Q&&c.default.createElement(f.default,{isVisible:Q,onSwipeComplete:function(){return X(!1)},swipeDirection:['down'],style:k.bottomModal},c.default.createElement(u.View,{style:[k.contentFilterBottom,{backgroundColor:w.Color.cardBackgroundColor}]},c.default.createElement(u.View,{style:k.contentSwipeDown},c.default.createElement(u.View,{style:k.lineSwipeDown})),c.default.createElement(u.View,{style:[k.contentActionModalBottom,{borderBottomColor:w.Color.borderColor}]}),c.default.createElement(u.View,{style:[{marginBottom:40}]},c.default.createElement(u.FlatList,{data:ce,extraData:ce,keyExtractor:function(t,n){return n},ListEmptyComponent:function(){return c.default.createElement(C.default,null,E.default.t('NO_WALLET_HISTORY'))},renderItem:function(t){var n=t.item;return t.index,console.log("Item",n),c.default.createElement(u.View,{style:k.lineRow},c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('NOM_ASSURE')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('AFFILIATION')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?E.default.t('ENFANT'):E.default.t('CONJOINT'))),c.default.createElement(u.View,{style:k.iconRight},c.default.createElement(u.TouchableOpacity,{onPress:function(){u.Alert.alert(E.default.t("TITLE_SUPPRESS_CONFIRM"),E.default.t("TEXT_SUPPRESS_CONFIRM_BENEFICIARY"),[{text:E.default.t("OK"),onPress:function(){me([].concat((0,o.default)(fe),[n.id])),de(ce.filter(function(t){return t.id!==n.id}))}},{text:E.default.t("CANCEL_LABEL"),onPress:function(){}}],{cancelable:!1})}},c.default.createElement(P.default,{name:"minus-circle",size:24,color:w.Color.grayColor}))))}})),c.default.createElement(I.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){ce.length>=1&&fe.length>0&&(0,b.displayToast)(E.default.t('ENTER_PASSWORD_TO_VALID_MODIFICATION')),X(!1)}},E.default.t('OK')))),null!==ee&&c.default.createElement(u.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:w.Color.primaryColor,borderRadius:100},onPress:function(){return X(!0)}},c.default.createElement(C.default,{whiteColor:!0,title2:!0},ce.length),c.default.createElement(C.default,{whiteColor:!0,caption2:!0},E.default.t('AYANT_DROIT'))))});e.default=F},1748,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1417,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1016,1190]); -__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),C=r(d[15]),L=r(d[16]),R=n(r(d[17])),x=r(d[18]),v=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=(r(d[23]),s.Dimensions.get('window')),k=y.width,A=(y.height,.5*k),D=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:A,height:A,borderRadius:A/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-A/3,top:-A/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),V=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),M=(0,u.connect)(V,{fetchStopSubscription:L.fetchStopSubscription,fetchGetListInsuranceWithBeneficiaries:L.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:L.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchStopSubscription,y=t.navigation,k=(0,l.useState)(null),A=(0,o.default)(k,2),V=A[0],M=A[1],G=(0,l.useState)(null),O=(0,o.default)(G,2),P=(O[0],O[1],(0,l.useState)([])),W=(0,o.default)(P,2),j=W[0],U=W[1],z=(0,l.useState)(null),F=(0,o.default)(z,2),K=F[0],N=F[1],H=(0,u.useDispatch)(),q=null;(0,l.useEffect)(function(){(0,x.readUser)().then(function(t){M(t)}),H((0,L.fetchGetListInsuranceReset)()),H((0,L.fetchGetSubscriptionListReset)()),H((0,L.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==V&&(console.log("user",V.id),p("?user_id="+V.id+"&type=EDITABLE"))},[V]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),U(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){H((0,L.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){H((0,L.fetchStopSubscriptionReset)()),y.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){H((0,L.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Q=f.object().shape({password:f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED'))});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Q,initialValues:{password:''},onSubmit:function(t){null!==V&&(null===K?q.shake(800):(console.log("subscription",K),I(K.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:D.contain},l.default.createElement(v.View,{ref:function(t){q=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:j,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),N({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=M},1749,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1190]); -__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),C=r(d[15]),R=r(d[16]),L=n(r(d[17])),x=r(d[18]),v=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=(r(d[23]),s.Dimensions.get('window')),k=y.width,A=(y.height,.5*k),D=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:A,height:A,borderRadius:A/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-A/3,top:-A/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),P=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),V=(0,u.connect)(P,{fetchRenewSubscription:R.fetchRenewSubscription,fetchGetListInsuranceWithBeneficiaries:R.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:R.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchRenewSubscription,y=t.navigation,k=(0,l.useState)(null),A=(0,o.default)(k,2),P=A[0],V=A[1],M=(0,l.useState)(null),O=(0,o.default)(M,2),G=(O[0],O[1],(0,l.useState)([])),W=(0,o.default)(G,2),j=W[0],U=W[1],z=(0,l.useState)(null),F=(0,o.default)(z,2),K=F[0],N=F[1],H=(0,u.useDispatch)(),q=null;(0,l.useEffect)(function(){(0,x.readUser)().then(function(t){V(t)}),H((0,R.fetchGetListInsuranceReset)()),H((0,R.fetchGetSubscriptionListReset)()),H((0,R.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==P&&(console.log("user",P.id),p("?user_id="+P.id+"&type=STOPPED"))},[P]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),U(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){H((0,R.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){H((0,R.fetchStopSubscriptionReset)()),y.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){H((0,R.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Q=f.object().shape({password:f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED'))});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(L.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Q,initialValues:{password:''},onSubmit:function(t){null!==P&&(null===K?q.shake(800):(console.log("subscription",K),I(K.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:D.contain},l.default.createElement(v.View,{ref:function(t){q=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:j,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),N({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1750,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1190]); +__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=t(r(d[4])),s=r(d[5]),c=r(d[6]),f=r(d[7]),p=n(r(d[8])),E=r(d[9]),h=r(d[10]),S=n(r(d[11])),w=r(d[12]),C=r(d[13]),_=n(r(d[14])),b=t(r(d[15])),y=n(r(d[16])),R=r(d[17]),A=r(d[18]),N=t(r(d[19])),O=r(d[20]),T=r(d[21]),B=n(r(d[22])),v=n(r(d[23])),x=t(r(d[24])),D=n(r(d[25])),L=n(r(d[26])),I=n(r(d[27])),U=r(d[28]),P=n(r(d[29])),k=n(r(d[30])),V=n(r(d[31])),M=n(r(d[32])),G=n(r(d[33])),j=r(d[34]),W=(r(d[35]),s.Dimensions.get('window')),z=(W.width,W.height,(0,w.createStructuredSelector)({subscriptionList:C.selectSubscriptionList,insuranceList:C.selectInsuranceList,activatePaySubscription:C.selectActivatePaySubscription,getConsultation:C.selectGetConsultation,getNetworkAct:C.selectGetNetworkAct,demandeAutorisationSoin:C.selectDemandeAutorisationSoin,getUserByNameOrNumber:C.selectGetUserByNameOrNumber,getUserByIdQRCode:C.selectGetUserByIdQRCode})),F=(0,c.connect)(z,{fetchActivePaySubscription:h.fetchActivePaySubscription,fetchGetNetworkActs:h.fetchGetNetworkActs,fetchAcceptRejectConsultation:h.fetchAcceptRejectConsultation,fetchGetListInsuranceWithBeneficiaries:h.fetchGetListInsuranceWithBeneficiaries,fetchDemaneAutorisationSoin:h.fetchDemaneAutorisationSoin,fetchGetUserByIdQRCode:h.fetchGetUserByIdQRCode,fetchGetUserByNameOrNumber:h.fetchGetUserByNameOrNumber})(function(t){var n,w=t.navigation,C=t.fetchGetNetworkActs,W=(t.fetchAcceptRejectConsultation,t.fetchGetListInsuranceWithBeneficiaries),z=t.fetchDemaneAutorisationSoin,F=t.fetchGetUserByIdQRCode,H=t.fetchGetUserByNameOrNumber,Q=t.getConsultation,Y=t.getUserByNameOrNumber,q=t.getUserByIdQRCode,X=t.insuranceList,J=t.getNetworkAct,Z=t.subscriptionList,$=t.demandeAutorisationSoin,ee=(0,c.useDispatch)(),te=(0,u.useState)(null),ae=(0,o.default)(te,2),ne=ae[0],le=ae[1],re=(0,u.useState)(!1),oe=(0,o.default)(re,2),ie=(oe[0],oe[1],(0,u.useState)({})),ue=(0,o.default)(ie,2),se=(ue[0],ue[1],(0,u.useState)(R.store.getState().walletDetailReducer.result.response)),de=(0,o.default)(se,1)[0],ce=(0,u.useState)([]),fe=(0,o.default)(ce,2),me=(fe[0],fe[1]),pe=(0,u.useState)([]),ge=(0,o.default)(pe,2),Ee=(ge[0],ge[1]),he=(0,u.useState)(null),Se=(0,o.default)(he,2),we=(Se[0],Se[1],(0,u.useState)(null)),Ce=(0,o.default)(we,2),_e=Ce[0],be=Ce[1],ye=(0,u.useState)(!1),Re=(0,o.default)(ye,2),Ae=Re[0],Ne=Re[1],Oe=(0,u.useState)(!1),Te=(0,o.default)(Oe,2),Be=(Te[0],Te[1],(0,u.useState)(!1)),ve=(0,o.default)(Be,2),xe=ve[0],De=ve[1],Le=(0,u.useState)(!1),Ie=(0,o.default)(Le,2),Ue=Ie[0],Pe=Ie[1],ke=(0,u.useState)(null),Ve=(0,o.default)(ke,2),Me=Ve[0],Ge=Ve[1],je=(0,u.useState)(null),We=(0,o.default)(je,2),ze=We[0],Fe=We[1],Ke=(0,u.useState)(null),He=(0,o.default)(Ke,2),Qe=(He[0],He[1],(0,u.useRef)()),Ye=(0,u.useState)(!0),qe=(0,o.default)(Ye,2),Xe=qe[0],Je=qe[1],Ze=(0,u.useState)(!1),$e=(0,o.default)(Ze,2),et=($e[0],$e[1]),tt=(0,u.useState)(1),at=(0,o.default)(tt,2),nt=at[0],lt=at[1],rt=(0,u.useState)([{label:p.default.t('AYANT_DROITS'),value:"M"},{label:p.default.t('ASSURE'),value:"F"}]),ot=(0,o.default)(rt,1)[0],it=(0,u.useState)(1),ut=(0,o.default)(it,2),st=ut[0],dt=ut[1],ct=(0,u.useState)([{label:p.default.t('YES'),value:"YES"},{label:p.default.t('NO'),value:"NO"}]),ft=((0,o.default)(ct,1)[0],null),mt=null,pt=(0,u.useState)(!1),gt=(0,o.default)(pt,2),Et=gt[0],ht=gt[1],St=null,wt=x.object().shape({password:x.string()});(0,u.useEffect)(function(){ee((0,h.fetchGetConsultationReset)()),ee((0,h.fetchGetListInsuranceReset)()),ee((0,h.fetchAcceptRejectConsultationReset)()),ee((0,h.fetchGetUserByNameOrNumberReset)()),ee((0,h.fetchGetUserByIdQRCodeReset)()),(0,j.readUser)().then(function(t){le(t)})},[]),(0,u.useEffect)(function(){Q.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg(Q),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchGetConsultationReset)())}}],{cancelable:!1})},[Q]),(0,u.useEffect)(function(){if(null!==X.result){var t=[];X.result.response.map(function(n,l){t.push(n.network)}),me(t),console.log("beneficiariesListTemp",[])}X.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg(X),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[X]),(0,u.useEffect)(function(){null!==$.result&&s.Alert.alert(p.default.t("SUCCESS"),$.result.response,[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchDemaneAutorisationSoinReset)()),w.goBack()}}],{cancelable:!1}),$.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg($),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchDemaneAutorisationSoinReset)())}}],{cancelable:!1})},[$]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",Y),null!==Y.result&&(Y.result.response.length>0?ht(!0):(St.alertWithType('warn',p.default.t('EMPTY_LIST'),p.default.t('NO_ASSURE_MATCH_SEARCH')),ee((0,h.fetchGetUserByNameOrNumberReset)()))),Y.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg(Y),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Y]);var Ct=function(){var t,n;return u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[K.containModal,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(L.default,{isVisible:Et,onSwipeComplete:function(){ht(!1)},swipeDirection:['down'],style:K.bottomModal},u.default.createElement(s.View,{style:[K.contentFilterBottom,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:K.contentSwipeDown},u.default.createElement(s.View,{style:K.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},p.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(t=Y.result)?void 0:t.response,extraData:null==(n=Y.result)?void 0:n.response,keyExtractor:function(t,n){return n},ListEmptyComponent:u.default.createElement(_.default,{body2:!0},p.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var n=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[K.contentActionModalBottom,{borderBottomColor:f.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_NON_EN_REGLE'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(null),dt(1),ht(!1),Tt('lastname_patient',n.user.lastname),Tt('firstname_patient',n.user.firstname),C(de.id_network,'',"&user_id="+n.user.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id))}},u.default.createElement(_.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:K.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(t),dt(0),ht(!1),Tt('lastname_patient',t.lastname),Tt('firstname_patient',t.firstname),C(de.id_network,'',"&user_id="+n.user.id+"&beneficiary_id="+t.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id+"&beneficiary_id="+t.id))}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(_.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+p.default.t('AYANT_DROITS')+")"),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(v.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ht(!1)}},p.default.t('OK'))))))},_t=(0,A.useFormik)({validationSchema:wt,initialValues:{password:'',code_acte:'',firstname_patient:'',lastname_patient:''},onSubmit:function(t){null===Me&&null===ze||(null===_e?ft.shake(800):''===t.code_acte?mt.shake(200):(z({act_id:t.code_acte,insurance_id:Me.id,issuer_network_agent_id:de.network_agent_id,beneficiary_id:null!==ze?ze.id:null,password:t.password}),console.log(ne),console.log("insurance",_e)))}}),bt=_t.handleChange,yt=_t.handleSubmit,Rt=_t.handleBlur,At=_t.values,Nt=_t.errors,Ot=_t.touched,Tt=_t.setFieldValue,Bt=_t.setFieldTouched,vt=(_t.isValid,function(){switch(console.log("currentStep",nt),nt){case 0:return console.log("values",At),ee((0,h.fetchGetUserByNameOrNumberReset)()),''!==At.numero_assure&&null===Y.result&&(H(de.id_network,xe?"&insured_id="+At.numero_assure:Ue?"&phone="+At.numero_assure:"&name="+At.numero_assure),console.log("errors",Nt)),!1;default:return!0}}),xt=[{title:p.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},placeholder:xe?p.default.t('NUMERO_ASSURE'):Ue?p.default.t('PHONE_NUMBER'):p.default.t('NOM_ASSURE'),value:At.numero_assure,keyboardType:Ue?'numeric':'default',onChangeText:bt('numero_assure'),onBlur:Rt('numero_assure'),success:Ot.numero_assure&&!Nt.numero_assure,touched:Ot.numero_assure,error:Nt.numero_assure,icon:u.default.createElement(B.default,{style:{zIndex:10},name:xe?'lock':Ue?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(k.default,{style:{paddingRight:10},name:"lock",size:20,color:f.Color.primaryColor,onPress:function(){De(!0),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"phone",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!0)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"user",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"qrcode",size:20,color:f.Color.primaryColor,onPress:function(){Ne(!0)}})))},{title:p.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('NOM_CLIENT'),value:At.lastname_patient,onChangeText:bt('lastname_patient'),onBlur:Rt('lastname_patient'),success:Ot.lastname_patient&&!Nt.lastname_patient,touched:Ot.lastname_patient,editable:!1,error:Nt.lastname_patient}),u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('PRENOM_CLIENT'),value:At.firstname_patient,editable:!1,onChangeText:bt('firstname_patient'),onBlur:Rt('firstname_patient'),success:Ot.firstname_patient&&!Nt.firstname_patient,touched:Ot.firstname_patient,error:Nt.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},p.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,O.responsiveWidth)(60)}},u.default.createElement(V.default,{options:ot,disabled:!0,value:st,initial:st,buttonColor:f.Color.accentColor,backgroundColor:f.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:p.default.t('DEMAND_DETAIL'),content:u.default.createElement(s.View,null,X.loading?u.default.createElement(s.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===s.Platform.OS?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ProgressBarAndroid,null),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS'))):u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ActivityIndicator,{size:"large",color:'#ccc'}),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS')))):X.result?u.default.createElement(s.View,{style:K.contain},u.default.createElement(N.View,{ref:function(t){ft=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('SELECT_INSURANCE'),data:X.result.response,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),be(t),Ee([].concat((0,l.default)(t.beneficiaries),[{id:null!==Me?Me.id:ze.id,firstname:null!==Me?Me.firstname:ze.firstname,lastname:null!==Me?Me.lastname:ze.lastname}])),C(t.network.id,'','&authorization_type=PRIOR')},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name}})),u.default.createElement(N.View,{ref:function(t){mt=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('CODE_ACTE'),data:null!==J.result?null==(n=J.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){Bt('code_acte'),Tt('code_acte',t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===de.password_validation&&u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},onChangeText:bt('password'),placeholder:p.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(B.default,{name:"lock",size:20}),value:At.password,onBlur:Rt('password'),success:Ot.password&&!Nt.password,touched:Ot.password,error:Nt.password}),u.default.createElement(v.default,{style:{marginTop:20},full:!0,loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL'))):null)}];return u.default.createElement(E.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return St=t}}),u.default.createElement(D.default,{show:J.loading}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:K.contain},u.default.createElement(M.default,{steps:xt,currentStepIndex:nt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(G.default,{ref:Qe,activeStep:0,steps:xt,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Je(t)},isLastStep:function(t){return et(t)},onNext:function(){vt()},onPrev:function(){},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;lt(n),Je(o),et(l)}})),u.default.createElement(s.View,{style:K.iconNavigation},Xe?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(){return Qe.current.prev()}},u.default.createElement(k.default,{name:"arrow-left",size:20,color:f.Color.whiteColor})),2===nt?u.default.createElement(v.default,{loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(t){yt(t),vt()&&Qe.current.next()}},Z.loading||Y.loading||q.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(k.default,{name:"arrow-right",size:24,color:f.Color.whiteColor}))),Et&&Ct(),Ae&&u.default.createElement(y.default.Container,{contentStyle:{width:(0,O.responsiveWidth)(80)},useNativeDriver:!0,visible:Ae},u.default.createElement(y.default.Title,null,p.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[K.blockView,{borderBottomColor:f.Color.borderColor,maxHeight:300}]},u.default.createElement(_.default,null,p.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(I.default,{onRead:function(t){Ne(!1),F(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(y.default.Button,{bold:!0,label:p.default.t('CLOSE'),onPress:function(){Ne(!1)}})),Et&&Ct()))))});e.default=F;var K=s.StyleSheet.create({textInput:{height:46,backgroundColor:f.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5},ineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:f.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:f.Color.dividerColor},contentActionModalBottom:{flexDirection:"row",paddingVertical:10,marginBottom:10,justifyContent:"space-between",borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}})},1747,[4,1,35,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,1417,1458,1424,1105,1633,750,535,982,539,1488,1640,1583,1629,1418,1317,1416,1016,772,1738,1739,719,1190]); +__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=t(r(d[4])),u=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),p=t(r(d[9])),b=t(r(d[10])),w=r(d[11]),E=n(r(d[12])),S=r(d[13]),C=n(r(d[14])),y=n(r(d[15])),I=n(r(d[16])),T=n(r(d[17])),B=r(d[18]),A=r(d[19]),R=n(r(d[20])),L=r(d[21]),_=t(r(d[22])),D=r(d[23]),x=r(d[24]),O=r(d[25]),v=n(r(d[26])),P=r(d[27]),V=(r(d[28]),u.Dimensions.get('window')),M=V.width,N=(V.height,.5*M),k=u.StyleSheet.create({textInput:{height:46,backgroundColor:w.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:N,height:N,borderRadius:N/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-N/3,top:-N/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:w.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:w.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:w.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,B.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:w.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),F=(0,D.createStructuredSelector)({insuranceList:x.selectInsuranceList,subscribeInsurance:x.selectSubscribeInsurance,uploadInsuranceImages:x.selectUploadInsuranceImages,insurancePrimeAmount:x.selectInsurancePrimeAmount,addBeneficiaryToSubscription:x.selectAddBeneficiaryToSubscription,subscriptionList:x.selectSubscriptionList,deleteBeneficiary:x.selectDeleteBeneficiary}),U=(0,s.connect)(F,{fetchGetListInsurance:A.fetchGetListInsurance,fetchSubscribeInsurance:A.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:A.fetchGetInsurancePrimeAmount,fetchUploadInsurance:A.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:A.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:A.fetchGetSubscriptionList,fetchDeleteBeneficiary:A.fetchDeleteBeneficiary})(function(t){t.fetchAddBeneficiaryToSubscription,t.addBeneficiaryToSubscription;var n=t.fetchGetSubscriptionList,D=t.fetchDeleteBeneficiary,x=t.subscriptionList,V=t.deleteBeneficiary,M=t.navigation,N=(0,c.useState)(null),F=(0,l.default)(N,2),U=F[0],G=F[1],j=(0,c.useState)(null),W=(0,l.default)(j,2),K=W[0],z=(W[1],(0,c.useState)(null)),H=(0,l.default)(z,2),X=(H[0],H[1]),Y=(0,s.useDispatch)(),q=(0,c.useState)(P.store.getState().walletDetailReducer.result.response),J=(0,l.default)(q,1)[0],Q=(0,c.useState)(!1),Z=(0,l.default)(Q,2),$=Z[0],ee=Z[1],te=(0,c.useState)(null),ne=(0,l.default)(te,2),oe=ne[0],ie=ne[1],ae=(0,c.useState)([]),re=(0,l.default)(ae,2),le=re[0],de=re[1],ce=(0,c.useState)([]),ue=(0,l.default)(ce,2),se=ue[0],fe=ue[1],me=(0,c.useState)([]),he=(0,l.default)(me,2),ge=he[0],pe=he[1],be=null;(0,c.useEffect)(function(){(0,L.readUser)().then(function(t){console.log("user",t),G(t)}),Y((0,A.fetchAddBeneficiaryToSubscriptionReset)()),Y((0,A.fetchGetSubscriptionListReset)())},[]),(0,c.useEffect)(function(){null!==U&&n(U.id,'EDITABLE',!1)},[U]);(0,c.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),de(t)}x.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(x),[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[x]),(0,c.useEffect)(function(){null!==V.result&&u.Alert.alert(E.default.t("SUCCESS"),V.result.response,[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchDeleteBeneficiaryReset)()),M.goBack()}}],{cancelable:!1}),V.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(V),[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchDeleteBeneficiaryReset)())}}],{cancelable:!1})},[V]);var we=p.object().shape({password:"MAX"===J.password_validation?p.string().required(E.default.t('THIS_FIELD_IS_REQUIRED')):p.string()});return c.default.createElement(S.ScreenComponent,null,c.default.createElement(R.default,{ref:function(t){return t}}),c.default.createElement(u.KeyboardAvoidingView,{behavior:'android'===u.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(u.ScrollView,{style:{flex:1}},c.default.createElement(h.Formik,{validationSchema:we,initialValues:{password:''},onSubmit:function(t){null!==U&&(null===oe?be.shake(800):(console.log(U),console.log("insurance",K),X(t.password),D(oe.id,{password:t.password,beneficiaries_ids:ge})))}},function(t){var n=t.values,o=t.errors,l=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(u.View,{style:k.contain},c.default.createElement(_.View,{ref:function(t){be=t},style:{width:(0,B.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(O.Dropdown,{label:E.default.t('SELECT_SUBSCRIPTION'),data:le,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),fe(t.beneficiaries),ie({id:t.id,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries}),ee(!0)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+E.default.t('ETAT')+": "+t.state+" | "+E.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===J.password_validation&&c.default.createElement(y.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:E.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(T.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:l.password&&!o.password,touched:l.password,error:o.password}),c.default.createElement(I.default,{style:{marginTop:20},full:!0,loading:V.loading,onPress:h},E.default.t('SUBMIT_LABEL')))}))),$&&c.default.createElement(f.default,{isVisible:$,onSwipeComplete:function(){return ee(!1)},swipeDirection:['down'],style:k.bottomModal},c.default.createElement(u.View,{style:[k.contentFilterBottom,{backgroundColor:w.Color.cardBackgroundColor}]},c.default.createElement(u.View,{style:k.contentSwipeDown},c.default.createElement(u.View,{style:k.lineSwipeDown})),c.default.createElement(u.View,{style:[k.contentActionModalBottom,{borderBottomColor:w.Color.borderColor}]}),c.default.createElement(u.View,{style:[{marginBottom:40}]},c.default.createElement(u.FlatList,{data:se,extraData:se,keyExtractor:function(t,n){return n},ListEmptyComponent:function(){return c.default.createElement(C.default,null,E.default.t('NO_WALLET_HISTORY'))},renderItem:function(t){var n=t.item;return t.index,console.log("Item",n),c.default.createElement(u.View,{style:k.lineRow},c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('NOM_ASSURE')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('AFFILIATION')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?E.default.t('ENFANT'):E.default.t('CONJOINT'))),c.default.createElement(u.View,{style:k.iconRight},c.default.createElement(u.TouchableOpacity,{onPress:function(){u.Alert.alert(E.default.t("TITLE_SUPPRESS_CONFIRM"),E.default.t("TEXT_SUPPRESS_CONFIRM_BENEFICIARY"),[{text:E.default.t("OK"),onPress:function(){pe([].concat((0,o.default)(ge),[n.id])),fe(se.filter(function(t){return t.id!==n.id}))}},{text:E.default.t("CANCEL_LABEL"),onPress:function(){}}],{cancelable:!1})}},c.default.createElement(v.default,{name:"minus-circle",size:24,color:w.Color.grayColor}))))}})),c.default.createElement(I.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){se.length>=1&&ge.length>0&&(0,b.displayToast)(E.default.t('ENTER_PASSWORD_TO_VALID_MODIFICATION')),ee(!1)}},E.default.t('OK')))),null!==oe&&c.default.createElement(u.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:w.Color.primaryColor,borderRadius:100},onPress:function(){return ee(!0)}},c.default.createElement(C.default,{whiteColor:!0,title2:!0},se.length),c.default.createElement(C.default,{whiteColor:!0,caption2:!0},E.default.t('AYANT_DROIT'))))});e.default=U},1748,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1417,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1016,1105,1190]); +__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),C=r(d[15]),L=r(d[16]),R=n(r(d[17])),v=r(d[18]),x=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=r(d[23]),A=(r(d[24]),s.Dimensions.get('window')),k=A.width,D=(A.height,.5*k),M=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:D,height:D,borderRadius:D/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-D/3,top:-D/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),V=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),G=(0,u.connect)(V,{fetchStopSubscription:L.fetchStopSubscription,fetchGetListInsuranceWithBeneficiaries:L.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:L.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchStopSubscription,A=t.navigation,k=(0,l.useState)(null),D=(0,o.default)(k,2),V=D[0],G=D[1],O=(0,l.useState)(null),P=(0,o.default)(O,2),W=(P[0],P[1],(0,l.useState)([])),j=(0,o.default)(W,2),U=j[0],z=j[1],F=(0,l.useState)(null),K=(0,o.default)(F,2),N=K[0],H=K[1],X=(0,l.useState)(y.store.getState().walletDetailReducer.result.response),q=(0,o.default)(X,1)[0],Q=(0,u.useDispatch)(),J=null;(0,l.useEffect)(function(){(0,v.readUser)().then(function(t){G(t)}),Q((0,L.fetchGetListInsuranceReset)()),Q((0,L.fetchGetSubscriptionListReset)()),Q((0,L.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==V&&(console.log("user",V.id),p("?user_id="+V.id+"&type=EDITABLE"))},[V]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),z(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)()),A.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===q.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==V&&(null===N?J.shake(800):(console.log("subscription",N),I(N.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:M.contain},l.default.createElement(x.View,{ref:function(t){J=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:U,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===q.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=G},1749,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); +__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=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),R=r(d[15]),C=r(d[16]),L=n(r(d[17])),v=r(d[18]),x=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=r(d[23]),A=(r(d[24]),s.Dimensions.get('window')),k=A.width,D=(A.height,.5*k),M=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:D,height:D,borderRadius:D/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-D/3,top:-D/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,R.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),P=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),V=(0,u.connect)(P,{fetchRenewSubscription:C.fetchRenewSubscription,fetchGetListInsuranceWithBeneficiaries:C.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:C.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchRenewSubscription,A=t.navigation,k=(0,l.useState)(null),D=(0,o.default)(k,2),P=D[0],V=D[1],O=(0,l.useState)(null),G=(0,o.default)(O,2),W=(G[0],G[1],(0,l.useState)([])),j=(0,o.default)(W,2),U=j[0],z=j[1],F=(0,l.useState)(null),K=(0,o.default)(F,2),N=K[0],H=K[1],X=(0,l.useState)(y.store.getState().walletDetailReducer.result.response),q=(0,o.default)(X,1)[0],Q=(0,u.useDispatch)(),J=null;(0,l.useEffect)(function(){(0,v.readUser)().then(function(t){V(t)}),Q((0,C.fetchGetListInsuranceReset)()),Q((0,C.fetchGetSubscriptionListReset)()),Q((0,C.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==P&&(console.log("user",P.id),p("?user_id="+P.id+"&type=STOPPED"))},[P]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),z(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchStopSubscriptionReset)()),A.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===q.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(L.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==P&&(null===N?J.shake(800):(console.log("subscription",N),I(N.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:M.contain},l.default.createElement(x.View,{ref:function(t){J=t},style:{width:(0,R.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:U,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===q.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1750,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); __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=t(r(d[3])),c=r(d[4]),u=n(r(d[5])),f=r(d[6]),s=(r(d[7]),r(d[8])),p=(0,f.connect)(null,null)(function(t){var n=t.navigation,p=(t.route,t.paypalValidPayment,t.fetchPaypalValidPayment,(0,f.useDispatch)(),(0,o.useState)(!1)),h=(0,l.default)(p,2),v=(h[0],h[1]),y=n.state.params,S=y.url;y.title;console.log("URL loaded",S);return o.default.createElement(s.ScreenComponent,null,o.default.createElement(c.View,{style:w.contain},o.default.createElement(u.default,{source:{uri:S},style:w.webview,ref:function(t){},javaScriptEnabled:!0,domStorageEnabled:!0,onNavigationStateChange:function(t){v(!0)},renderLoading:function(){return o.default.createElement(c.ActivityIndicator,{size:"small"})},startInLoadingState:!0})))});e.default=p;var w=c.StyleSheet.create({contain:{flex:1,alignItems:'center',justifyContent:'center',paddingLeft:20,paddingRight:20},contentModal:{width:'100%',borderRadius:8,padding:8},item:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:20},contentAction:{flexDirection:'row',justifyContent:'flex-end',paddingTop:24},webview:{height:c.Dimensions.get('window').height,width:c.Dimensions.get('window').width}})},1751,[4,1,27,15,18,841,1049,1733,1706]); -__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=t(r(d[3])),f=r(d[4]),u=l(r(d[5])),c=r(d[6]),s=r(d[7]),y=l(r(d[8])),p=r(d[9]),E=r(d[10]),w=l(r(d[11])),C=r(d[12]),T=r(d[13]),x=r(d[14]),_=l(r(d[15])),h=t(r(d[16])),V=l(r(d[17])),b=r(d[18]),I=l(r(d[19])),S=l(r(d[20])),A=l(r(d[21])),D=r(d[22]),N=l(r(d[23])),R=(r(d[24]),r(d[25])),O=f.Dimensions.get('window'),L=(O.width,O.height,(0,C.createStructuredSelector)({subscriptionList:T.selectSubscriptionList,activatePaySubscription:T.selectActivatePaySubscription,getConsultation:T.selectGetConsultation,acceptRefuseConsultation:T.selectAcceptRefuseConsultation})),P=(0,c.connect)(L,{fetchActivePaySubscription:E.fetchActivePaySubscription,fetchGetConsultation:E.fetchGetConsultation,fetchAcceptRejectConsultation:E.fetchAcceptRejectConsultation,fetchGetSubscription:E.fetchGetSubscription,fetchGetDemandeAutorisationSoin:E.fetchGetDemandeAutorisationSoin,fetchGetInvoiceHistory:E.fetchGetInvoiceHistory})(function(t){var l=t.navigation,C=t.fetchGetConsultation,T=(t.fetchGetSubscription,t.fetchGetInvoiceHistory),O=(t.fetchGetDemandeAutorisationSoin,t.fetchAcceptRejectConsultation,t.acceptRefuseConsultation,t.getConsultation),L=(0,c.useDispatch)(),P=(0,o.useState)(null),v=(0,n.default)(P,2),M=(v[0],v[1]),B=(0,o.useState)(!1),G=(0,n.default)(B,2),U=G[0],F=G[1],Y=(0,o.useState)({}),j=(0,n.default)(Y,2),W=j[0],H=j[1],z=(0,o.useState)(1),K=(0,n.default)(z,2),q=K[0],X=K[1],J=(0,o.useState)(y.default.t('SOINS')),Q=(0,n.default)(J,2),Z=Q[0],$=Q[1],ee=(0,o.useState)(!1),te=(0,n.default)(ee,2),le=te[0],ae=te[1],re=(0,o.useState)([]),ne=(0,n.default)(re,2),oe=ne[0],ie=ne[1],fe=(0,o.useState)(D.store.getState().walletDetailReducer.result.response),de=(0,n.default)(fe,1)[0];var ue,ce;ue=(0,o.useState)(0),(ce=(0,n.default)(ue,2))[0],ce[1];(0,o.useEffect)(function(){L((0,E.fetchGetConsultationReset)()),L((0,E.fetchAcceptRejectConsultationReset)()),(0,x.readUser)().then(function(t){M(t),console.log("User",t),C('','ALL','',"&network_id="+de.id_network+"&network_agent_id="+de.network_agent_id+"&pagination=true&page=1")})},[]),(0,o.useEffect)(function(){null!==O.result&&(q(new Date).getTime()?o._mounted&&o.setState({path:u,isDownloaded:!0}):o._prepareFile(n)}).catch(function(){o._prepareFile(n)}):o._prepareFile(n)},o._prepareFile=function(t){var n,s,u,c,p,f,h;return l.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:try{t.uri?(n=t.uri||'',s=!(!n||!n.match(/^https?:\/\//)),u=!(!n||!n.match(/^bundle-assets:\/\//)),c=!(!n||!n.match(/^data:application\/pdf;base64/)),p=t.cacheFileName||S(n)+'.pdf',f=w.default.fs.dirs.CacheDir+'/'+p,o._unlinkFile(f),s?o._downloadFile(t,f):u?w.default.fs.cp(n,f).then(function(){o._mounted&&o.setState({path:f,isDownloaded:!0,progress:1})}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:o._unlinkFile(f),o._onError(t);case 2:case"end":return n.stop()}},null,null,null,Promise)}):c?(h=n.replace(/data:application\/pdf;base64,/i,''),w.default.fs.writeFile(f,h,'base64').then(function(){o._mounted&&o.setState({path:f,isDownloaded:!0,progress:1})}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:o._unlinkFile(f),o._onError(t);case 2:case"end":return n.stop()}},null,null,null,Promise)})):o._mounted&&o.setState({path:n.replace(/file:\/\//i,''),isDownloaded:!0})):o._onError(new Error('no pdf source!'))}catch(t){o._onError(t)}case 1:case"end":return b.stop()}},null,null,null,Promise)},o._downloadFile=function(t,n){var s;return l.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:o.lastRNBFTask&&(o.lastRNBFTask.cancel(function(t){}),o.lastRNBFTask=null),s=n+'.tmp',o._unlinkFile(s),o.lastRNBFTask=w.default.config({path:s,trusty:o.props.trustAllCerts}).fetch(t.method?t.method:'GET',t.uri,t.headers?t.headers:{},t.body?t.body:"").progress(function(t,n){o.props.onLoadProgress&&o.props.onLoadProgress(t/n),o._mounted&&o.setState({progress:Math.floor(t/n)})}),o.lastRNBFTask.then(function(u){var c,p,f;return l.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(o.lastRNBFTask=null,!(u&&u.respInfo&&u.respInfo.headers)||u.respInfo.headers["Content-Encoding"]||u.respInfo.headers["Transfer-Encoding"]||!u.respInfo.headers["Content-Length"]){h.next=17;break}return c=u.respInfo.headers["Content-Length"],h.prev=3,h.next=6,l.default.awrap(w.default.fs.stat(u.path()));case 6:if((f=h.sent)&&f.size){h.next=9;break}throw new Error("FileNotFound:"+t.uri);case 9:p=f.size,h.next=15;break;case 12:throw h.prev=12,h.t0=h.catch(3),new Error("DownloadFailed:"+t.uri);case 15:if(c==p){h.next=17;break}throw new Error("DownloadFailed:"+t.uri);case 17:o._unlinkFile(n),w.default.fs.cp(s,n).then(function(){o._mounted&&o.setState({path:n,isDownloaded:!0,progress:1}),o._unlinkFile(s)}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:throw t;case 1:case"end":return n.stop()}},null,null,null,Promise)});case 19:case"end":return h.stop()}},null,null,[[3,12]],Promise)}).catch(function(t){return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:o._unlinkFile(s),o._unlinkFile(n),o._onError(t);case 3:case"end":return l.stop()}},null,null,null,Promise)});case 5:case"end":return u.stop()}},null,null,null,Promise)},o._unlinkFile=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.default.fs.unlink(t));case 3:n.next=7;break;case 5:n.prev=5,n.t0=n.catch(0);case 7:case"end":return n.stop()}},null,null,[[0,5]],Promise)},o.setNativeProps=function(t){o._root&&o._root.setNativeProps(t)},o._onChange=function(t){var n=t.nativeEvent.message.split('|');n.length>0&&(n.length>5&&(n[4]=n.splice(4).join('|')),'loadComplete'===n[0]?o.props.onLoadComplete&&o.props.onLoadComplete(Number(n[1]),o.state.path,{width:Number(n[2]),height:Number(n[3])},n[4]&&JSON.parse(n[4])):'pageChanged'===n[0]?o.props.onPageChanged&&o.props.onPageChanged(Number(n[1]),Number(n[2])):'error'===n[0]?o._onError(new Error(n[1])):'pageSingleTap'===n[0]?o.props.onPageSingleTap&&o.props.onPageSingleTap(Number(n[1]),Number(n[2]),Number(n[3])):'scaleChanged'===n[0]?o.props.onScaleChanged&&o.props.onScaleChanged(Number(n[1])):'linkPressed'===n[0]&&o.props.onPressLink&&o.props.onPressLink(n[1]))},o._onError=function(t){o.props.onError&&o.props.onError(t)},o.state={path:'',isDownloaded:!1,progress:0,isSupportPDFKit:-1},o.lastRNBFTask=null,o}return(0,h.default)(n,t),(0,c.default)(n,[{key:"componentDidUpdate",value:function(t){var n=this,o=v.Image.resolveAssetSource(this.props.source),s=v.Image.resolveAssetSource(t.source);o.uri!==s.uri&&(this.lastRNBFTask?(this.lastRNBFTask.cancel(function(t){n._loadFromSource(n.props.source)}),this.lastRNBFTask=null):this._loadFromSource(this.props.source))}},{key:"componentDidMount",value:function(){var t=this;(this._mounted=!0,"ios"===v.Platform.OS)&&r(d[12]).NativeModules.PdfViewManager.supportPDFKit(function(n){t._mounted&&t.setState({isSupportPDFKit:n?1:0})});this._loadFromSource(this.props.source)}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lastRNBFTask&&(this.lastRNBFTask.cancel(function(t){}),this.lastRNBFTask=null)}},{key:"setPage",value:function(t){if(null===t||isNaN(t))throw new Error('Specified pageNumber is not a number');this.setNativeProps({page:t})}},{key:"render",value:function(){var t=this;return"android"===v.Platform.OS||"ios"===v.Platform.OS||"windows"===v.Platform.OS?b.default.createElement(v.View,{style:[this.props.style,{overflow:'hidden'}]},this.state.isDownloaded?"android"===v.Platform.OS||"windows"===v.Platform.OS?b.default.createElement(F,(0,s.default)({ref:function(n){return t._root=n}},this.props,{style:[{flex:1,backgroundColor:'#EEE'},this.props.style],path:this.state.path,onChange:this._onChange})):this.props.usePDFKit&&1===this.state.isSupportPDFKit?b.default.createElement(F,(0,s.default)({ref:function(n){return t._root=n}},this.props,{style:[{backgroundColor:'#EEE',overflow:'hidden'},this.props.style],path:this.state.path,onChange:this._onChange})):b.default.createElement(y.default,(0,s.default)({},this.props,{style:[{backgroundColor:'#EEE',overflow:'hidden'},this.props.style],path:this.state.path,onLoadComplete:this.props.onLoadComplete,onPageChanged:this.props.onPageChanged,onError:this._onError,onPageSingleTap:this.props.onPageSingleTap,onScaleChanged:this.props.onScaleChanged,onPressLink:this.props.onPressLink})):b.default.createElement(v.View,{style:k.progressContainer},this.props.renderActivityIndicator?this.props.renderActivityIndicator(this.state.progress):b.default.createElement(v.Text,null,this.state.progress+"%"))):null}}]),n})(b.Component);if(e.default=_,_.propTypes=(function(t){for(var n=1;n {historyItemDetail.insured_amount} + style={[Typography.caption1, Color.grayColor]}>{historyItemDetail.insurer_amount} @@ -427,7 +427,7 @@ const HistoriqueNanoSanteAgentScreen = ({ {historyItemDetail.insurer_amount} + style={[Typography.caption1, Color.grayColor]}>{historyItemDetail.insured_amount} @@ -447,7 +447,7 @@ const HistoriqueNanoSanteAgentScreen = ({ description={`${I18n.t('ID')}: ${history_care.health_care_sheet_id}\ ${I18n.t('AMOUNT')}: ${history_care.amount}\ ${I18n.t('MONTANT_ASSURANCE')}: ${history_care.insuredAmount}\ - ${I18n.t('MONTANT_ASSURE')}: ${history_care.insurerAmount}\ + ${I18n.t('MONTANT_ASSURE')}: ${history_care.insuredAmount}\ ${I18n.t('PATIENT')}: ${history_care.patient_firstname !== null ? history_care.patient_firstname : '' } ${history_care.patient_lastname}\n ${I18n.t('PRATICIEN')}: ${history_care.practitioner_firstname !== null ? history_care.practitioner_firstname : ''} ${history_care.practitioner_lastname}\ `} @@ -497,7 +497,7 @@ const HistoriqueNanoSanteAgentScreen = ({ }}> - {`${I18n.t('MONTANT_ASSURANCE')}: ${item.insured_amount}`} + {`${I18n.t('MONTANT_ASSURANCE')}: ${item.insurance_amount}`} {`${I18n.t('STATE')}: ${item.state.toLowerCase()}`} @@ -544,9 +544,9 @@ const HistoriqueNanoSanteAgentScreen = ({ {`${I18n.t('MONTANT_ASSURANCE')}: ${item.insured_amount}`} + caption1>{`${I18n.t('MONTANT_ASSURANCE')}: ${item.insurer_amount}`} - {`${I18n.t('MONTANT_ASSURE')}: ${item.insurer_amount}`} + {`${I18n.t('MONTANT_ASSURE')}: ${item.insured_amount}`}