From 8199e6c181e343433b22c500c71fd0022dd2c248 Mon Sep 17 00:00:00 2001 From: Brice Zele Date: Tue, 28 Jul 2020 18:37:46 +0100 Subject: [PATCH] Identification OK --- .../app/src/main/assets/index.android.bundle | 8 +- screens/home/Home.js | 5 +- .../CreateIdentificationUser.js | 5 +- screens/wallet/WalletDetail.js | 22 +- screens/wallet/WalletDetailUser.js | 12 +- .../wallet/agent/EnvoiCashVersCashAgent.js | 2 +- .../agent/EnvoieCashVersAutreWalletAgent.js | 2 +- .../wallet/agent/EnvoieCashVersCarteAgent.js | 203 ++++++++++-------- .../wallet/agent/RetraitCarteVersCashAgent.js | 200 +++++++++-------- screens/wallet/agent/RetraitEnCashAgent.js | 2 +- screens/wallet/user/EnvoieWalletToCash.js | 2 +- utils/UtilsFunction.js | 2 +- utils/i18n/en.json | 1 + utils/i18n/fr.json | 1 + webservice/IlinkConstants.js | 8 +- 15 files changed, 262 insertions(+), 213 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 60baa6c1..7968b77d 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -739,7 +739,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);m.exports=(function(){"use s __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);function n(t,o,n){this.db=t,this.query=o||{},n&&(this.execFn=n)}n.prototype.limit=function(t){return this._limit=t,this},n.prototype.skip=function(t){return this._skip=t,this},n.prototype.sort=function(t){return this._sort=t,this},n.prototype.projection=function(t){return this._projection=t,this},n.prototype.project=function(n){var s,c,u,h=[],p=this;return void 0===this._projection||0===Object.keys(this._projection).length?n:(s=0!==this._projection._id,this._projection=o.omit(this._projection,'_id'),(u=Object.keys(this._projection)).forEach(function(t){if(void 0!==c&&p._projection[t]!==c)throw new Error("Can't both keep and omit fields except for _id");c=p._projection[t]}),n.forEach(function(o){var n;1===c?(n={$set:{}},u.forEach(function(s){n.$set[s]=t.getDotValue(o,s),void 0===n.$set[s]&&delete n.$set[s]}),n=t.modify({},n)):(n={$unset:{}},u.forEach(function(t){n.$unset[t]=!0}),n=t.modify(o,n)),s?n._id=o._id:delete n._id,h.push(n)}),h)},n.prototype._exec=function(o){var n,s,c,u=[],h=0,p=0,f=this,_=null;function l(t,n){return f.execFn?f.execFn(t,n,o):o(t,n)}this.db.getCandidates(this.query,function(o,y){if(o)return l(o);try{for(n=0;np)p+=1;else if(u.push(y[n]),h+=1,f._limit&&f._limit<=h)break}catch(o){return l(o)}if(f._sort){s=Object.keys(f._sort);var j=[];for(n=0;n0&&this._events[h].length>l&&(this._events[h].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[h].length),'function'==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!s(n))throw TypeError('listener must be a function');var o=!1;function h(){this.removeListener(t,h),o||(o=!0,n.apply(this,arguments))}return h.listener=n,this.on(t,h),this},t.prototype.removeListener=function(t,o){var h,v,l,u;if(!s(o))throw TypeError('listener must be a function');if(!this._events||!this._events[t])return this;if(l=(h=this._events[t]).length,v=-1,h===o||s(h.listener)&&h.listener===o)delete this._events[t],this._events.removeListener&&this.emit('removeListener',t,o);else if(n(h)){for(u=l;u-- >0;)if(h[u]===o||h[u].listener&&h[u].listener===o){v=u;break}if(v<0)return this;1===h.length?(h.length=0,delete this._events[t]):h.splice(v,1),this._events.removeListener&&this.emit('removeListener',t,o)}return this},t.prototype.removeAllListeners=function(t){var n,o;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)'removeListener'!==n&&this.removeAllListeners(n);return this.removeAllListeners('removeListener'),this._events={},this}if(s(o=this._events[t]))this.removeListener(t,o);else if(o)for(;o.length;)this.removeListener(t,o[o.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?s(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.prototype.listenerCount=function(t){if(this._events){var n=this._events[t];if(s(n))return 1;if(n)return n.length}return 0},t.listenerCount=function(t,s){return t.listenerCount(s)}},735,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.authKeyData=e.MARKER_URL=e.videoUrl=e.authKeyUrl=e.linkCardUrl=e.idVerificationUrl=e.envoieCommissionUrl=e.envoieUserWalletToWallet=e.otherPayCountryNetworkUrl=e.payCountryNetworkUrl=e.activeCountryUrl=e.getUserIdentifiedInformationUrl=e.getNumberInformationUrl=e.validateIdentificationUrl=e.createIdentificationUrl=e.transferCommission=e.transactionIlinkUrl=e.transactionUrl=e.commissionAmount=e.creditCancelDemand=e.creditTreatDemand=e.walletDetailUrl=e.walletUserSimpleActionUrl=e.walletActionUrl=e.logoutActionUrl=e.configActionUrl=e.demandeActionUrl=e.locationActionUrl=e.networkActionUrl=e.memberActionUrl=e.adhesionUrl=e.testBaseUrl=e.baseUrl=e.isDebugMode=void 0;e.isDebugMode=!1;e.baseUrl="https://preprod.ilink-app.com:8080/mobilebackend";e.testBaseUrl="https://preprod.ilink-app.com";e.adhesionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/LoginAction.php";e.memberActionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/MembersAction.php";e.networkActionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/NetworkAction.php";e.locationActionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/LocationAction.php";e.demandeActionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/DemandeAction.php";e.configActionUrl="https://preprod.ilink-app.com:8080/mobilebackend/interacted/ConfigAction.php";e.logoutActionUrl="https://preprod.ilink-app.com/logout";e.walletActionUrl="https://preprod.ilink-app.com/walletService/wallets";e.walletUserSimpleActionUrl="https://preprod.ilink-app.com/walletService/wallets/users";e.walletDetailUrl="https://preprod.ilink-app.com/walletService/wallets";e.creditTreatDemand="https://preprod.ilink-app.com/walletService/credits/treatDemand";e.creditCancelDemand="https://preprod.ilink-app.com/walletService/credits/cancelDemand";e.commissionAmount="https://preprod.ilink-app.com/walletService/transactions/commission";e.transactionUrl="https://preprod.ilink-app.com/walletService/transactions";e.transactionIlinkUrl="https://preprod.ilink-app.com/walletService/transactions/ilink";e.transferCommission="https://preprod.ilink-app.com/walletService/virement";e.createIdentificationUrl="https://preprod.ilink-app.com/walletService/identifications";e.validateIdentificationUrl="https://preprod.ilink-app.com/walletService/identifications";e.getNumberInformationUrl="https://preprod.ilink-app.com/walletService/identifications/verify";e.getUserIdentifiedInformationUrl="https://preprod.ilink-app.com/walletService/identifications";e.activeCountryUrl="https://preprod.ilink-app.com/walletService/countries";e.payCountryNetworkUrl="https://preprod.ilink-app.com/walletService/paying_networks";e.otherPayCountryNetworkUrl="https://preprod.ilink-app.com/walletService/other_paying_networks";e.envoieUserWalletToWallet="https://preprod.ilink-app.com/walletService/transactions/ilink";e.envoieCommissionUrl="https://preprod.ilink-app.com/walletService/transactions/ilink/commission";e.idVerificationUrl="https://preprod.ilink-app.com/walletService/transactions/ilink/check_retraits";e.linkCardUrl="https://preprod.ilink-app.com/walletService/identifications/rattach_card";e.authKeyUrl="https://preprod.ilink-app.com/oauth/token";e.videoUrl="https://www.youtube.com/watch?v=wwGPDPsSLWY";e.MARKER_URL="https://preprod.ilink-app.com:8080/mobilebackend/interacted/LocationAction.php";e.authKeyData={grant_type:"password",client_id:"2",client_secret:"rrbvxACJPBOG4cqjDNlstSljlmjydLon3P55JMav"}},736,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.authKeyData=e.MARKER_URL=e.videoUrl=e.authKeyUrl=e.linkCardUrl=e.idVerificationUrl=e.envoieCommissionUrl=e.envoieUserWalletToWallet=e.otherPayCountryNetworkUrl=e.payCountryNetworkUrl=e.activeCountryUrl=e.getUserIdentifiedInformationUrl=e.getNumberInformationUrl=e.validateIdentificationUrl=e.createIdentificationUrl=e.transferCommission=e.transactionIlinkUrl=e.transactionUrl=e.commissionAmount=e.creditCancelDemand=e.creditTreatDemand=e.walletDetailUrl=e.walletUserSimpleActionUrl=e.walletActionUrl=e.logoutActionUrl=e.configActionUrl=e.demandeActionUrl=e.locationActionUrl=e.networkActionUrl=e.memberActionUrl=e.adhesionUrl=e.testBaseUrl=e.baseUrl=e.isDebugMode=void 0;e.isDebugMode=!1;e.baseUrl="http://test.ilink-app.com:8080/mobilebackend";e.testBaseUrl="https://test.ilink-app.com";e.adhesionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/LoginAction.php";e.memberActionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/MembersAction.php";e.networkActionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/NetworkAction.php";e.locationActionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/LocationAction.php";e.demandeActionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/DemandeAction.php";e.configActionUrl="http://test.ilink-app.com:8080/mobilebackend/interacted/ConfigAction.php";e.logoutActionUrl="https://test.ilink-app.com/logout";e.walletActionUrl="https://test.ilink-app.com/walletService/wallets";e.walletUserSimpleActionUrl="https://test.ilink-app.com/walletService/wallets/users";e.walletDetailUrl="https://test.ilink-app.com/walletService/wallets";e.creditTreatDemand="https://test.ilink-app.com/walletService/credits/treatDemand";e.creditCancelDemand="https://test.ilink-app.com/walletService/credits/cancelDemand";e.commissionAmount="https://test.ilink-app.com/walletService/transactions/commission";e.transactionUrl="https://test.ilink-app.com/walletService/transactions";e.transactionIlinkUrl="https://test.ilink-app.com/walletService/transactions/ilink";e.transferCommission="https://test.ilink-app.com/walletService/virement";e.createIdentificationUrl="https://test.ilink-app.com/walletService/identifications";e.validateIdentificationUrl="https://test.ilink-app.com/walletService/identifications";e.getNumberInformationUrl="https://test.ilink-app.com/walletService/identifications/verify";e.getUserIdentifiedInformationUrl="https://test.ilink-app.com/walletService/identifications";e.activeCountryUrl="https://test.ilink-app.com/walletService/countries";e.payCountryNetworkUrl="https://test.ilink-app.com/walletService/paying_networks";e.otherPayCountryNetworkUrl="https://test.ilink-app.com/walletService/other_paying_networks";e.envoieUserWalletToWallet="https://test.ilink-app.com/walletService/transactions/ilink";e.envoieCommissionUrl="https://test.ilink-app.com/walletService/transactions/ilink/commission";e.idVerificationUrl="https://test.ilink-app.com/walletService/transactions/ilink/check_retraits";e.linkCardUrl="https://test.ilink-app.com/walletService/identifications/rattach_card";e.authKeyUrl="https://test.ilink-app.com/oauth/token";e.videoUrl="https://www.youtube.com/watch?v=wwGPDPsSLWY";e.MARKER_URL="http://test.ilink-app.com:8080/mobilebackend/interacted/LocationAction.php";e.authKeyData={grant_type:"password",client_id:"2",client_secret:"rrbvxACJPBOG4cqjDNlstSljlmjydLon3P55JMav"}},736,[]); __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])),u=t(r(d[2])),s=t(r(d[3])),c=r(d[4]),o=r(d[5]),l=(function(){function t(){(0,u.default)(this,t),this.setCurrentPas=function(t){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,n.default.awrap(o.AsyncStorage.setItem('@config:pasObject',JSON.stringify(t.pas)));case 3:u.next=8;break;case 5:u.prev=5,u.t0=u.catch(0),console.warn(u.t0);case 8:c.db.update({"configuration.pas":{$exists:!0}},{configuration:{pas:t.pas}},{upsert:!0},function(t,n,u){console.log([t,n,u])});case 9:case"end":return u.stop()}},null,null,[[0,5]],Promise)},this._getPasData=function(){return new Promise(function(t,u){var s;return n.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,n.default.awrap(o.AsyncStorage.getItem('@config:pasObject'));case 3:s=c.sent,t(JSON.parse(s)),c.next=10;break;case 7:c.prev=7,c.t0=c.catch(0),u(c.t0);case 10:case"end":return c.stop()}},null,null,[[0,7]],Promise)})},this._storeData=function(t){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,n.default.awrap(o.AsyncStorage.setItem('@config:lang',t.value));case 3:u.next=8;break;case 5:u.prev=5,u.t0=u.catch(0),console.warn(u.t0);case 8:case"end":return u.stop()}},null,null,[[0,5]],Promise)},this._getData=function(){return new Promise(function(t,u){var s;return n.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,n.default.awrap(o.AsyncStorage.getItem('@config:lang'));case 3:s=c.sent,t(s),c.next=10;break;case 7:c.prev=7,c.t0=c.catch(0),u(c.t0);case 10:case"end":return c.stop()}},null,null,[[0,7]],Promise)})}}return(0,s.default)(t,[{key:"getCurrentLangue",value:function(){var t;return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,n.default.awrap(_getData());case 2:(t=u.sent)?resolve(t):reject(t);case 4:case"end":return u.stop()}},null,null,null,Promise)}},{key:"getCurrentPasValue",value:function(){var t;return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,n.default.awrap(this._getPasData());case 2:if(!(t=u.sent)){u.next=7;break}return u.abrupt("return",t.valeur_int);case 7:return u.abrupt("return",t);case 8:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getCurrentPubValue",value:function(){var t;return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,n.default.awrap(this._getPubData());case 2:if(t=u.sent,console.warn(t),!t){u.next=8;break}return u.abrupt("return",t.valeur_bool);case 8:return u.abrupt("return",t);case 9:case"end":return u.stop()}},null,this,null,Promise)}},{key:"setPubActive",value:function(t){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(u.prev=0,!t.pub){u.next=5;break}return u.next=4,n.default.awrap(o.AsyncStorage.setItem('pubObject',JSON.stringify(t.pub)));case 4:c.db.update({"configuration.pub":{$exists:!0}},{configuration:{pub:t.pub}},{upsert:!0},function(t,n,u){console.log([t,n,u])});case 5: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)}},{key:"_getPubData",value:function(){return new Promise(function(t,u){var s;return n.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,n.default.awrap(o.AsyncStorage.getItem('pubObject'));case 3:s=c.sent,t(JSON.parse(s)),c.next=10;break;case 7:c.prev=7,c.t0=c.catch(0),u(c.t0);case 10:case"end":return c.stop()}},null,null,[[0,7]],Promise)})}},{key:"setCurrentLangue",value:function(t){this._storeData(t),c.db.update({"configuration.lang":{$exists:!0}},{configuration:{lang:t}},{upsert:!0},function(t,n,u){console.log([t,n,u])})}}]),t})();e.default=l},737,[1,273,8,9,714,18]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o={};o.DBEvents=new t,o.create_db=function(t){var u=this;u.db_name=t,u.get=function(t,o){n.table(u.db_name).then(function(n){var u=n.where(t).find();o&&o(u)})},u.get_id=function(t,o){n.table(u.db_name).then(function(n){var u=n.get(t);o&&o(u)})},u.get_all=function(t){n.table(u.db_name).then(function(n){var o=n.databaseData[u.db_name];t&&t(o)})},u.add=function(t,f){n.table(u.db_name).then(function(n){n.add(t,function(n){f&&f(n),o.DBEvents.emit("all")})})},u.add_all=function(n,t){if(n.length<=0)return null;var o=[];!(function n(f){if(0==f.length&&t)return t(o);var c=f.pop();u.add(c,function(t){n(f),o.push(t)})})(n)},u.remove=function(t,o){n.table(u.db_name).then(function(n){n.where(t).remove(function(n){o&&o(n)})})},u.remove_id=function(t,f){n.table(u.db_name).then(function(n){n.removeById(t,function(n){f&&f(n),o.DBEvents.emit("all")})})},u.erase_db=function(t){n.table(u.db_name).then(function(n){n.remove(function(n){t&&t(n),o.DBEvents.emit("all")})})},u.update=function(t,f,c){n.table(u.db_name).then(function(n){n.where(t).update(f,function(n){c&&c(n),o.DBEvents.emit("all")})})},u.update_id=function(t,f,c){n.table(u.db_name).then(function(n){n.updateById(t,f,function(n){c&&c(n),o.DBEvents.emit("all")})})},u.remove_id=function(t,f){n.table(u.db_name).then(function(n){n.removeById(t,function(n){f&&f(n),o.DBEvents.emit("all")})})}},m.exports=o},738,[739,742]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]).Promise,n=t.AsyncStorage,h={},o=function(t,s){return this.tableName=t,this.databaseData=s,this._where=null,this._limit=100,this._offset=0,this};h.createDataBase=function(){return new s(function(t,s){n.setItem("db_store",JSON.stringify({}),function(n){n?s(n):t()})})},h.saveTable=function(t,h){var o=this;return new s(function(s,f){o.getItem("db_store").then(function(o){o[t]=h||{totalrows:0,autoinc:1,rows:{}},n.setItem("db_store",JSON.stringify(o),function(t){t?f(t):s(o)})})})},h.table=function(t){var n=this;return new s(function(s,h){return n.getItem("db_store").then(function(h){if(h)if(h[t]){var f=new o(t,h||{});s(f)}else n.saveTable(t).then(function(n){var h=new o(t,n||{});s(h)});else n.createDataBase().then(function(){n.saveTable(t).then(function(n){var h=new o(t,n||{});s(h)})})})})},h.getItem=function(t){return new s(function(s,h){n.getItem(t,function(t,n){t?h(t):s(JSON.parse(n))})})},o.prototype.where=function(t){return this._where=t||null,this},o.prototype.limit=function(t){return this._limit=t||100,this},o.prototype.offset=function(t){return this._offset=t||0,this},o.prototype.init=function(){return this.where(),this.limit(),this.offset(),this},o.prototype.update=function(t,s){var n=[],o=this.databaseData[this.tableName].rows,f=!1;if(this._where&&(f=!0),f){for(var u in o){var l=!0;for(var b in this._where)o[u][b]!=this._where[b]&&(l=!1);if(l)for(var c in n.push(this.databaseData[this.tableName].rows[u]._id),t)this.databaseData[this.tableName].rows[u][c]=t[c]}h.saveTable(this.tableName,this.databaseData[this.tableName]).then(function(t){s&&s(t)},function(t){s&&s(t)}),this.init()}else s&&s(null)},o.prototype.updateById=function(t,s,n){return this.where({_id:t}),this.update(s,n)},o.prototype.remove=function(t){var s=[],n=this.databaseData[this.tableName].rows,o=[],f=!1;this._where&&(f=!0);var u=0;if(f)for(var l in n){var b=!0;for(var c in this._where)n[l][c]!=this._where[c]&&(b=!1);b&&(u+=1,o.push(this.databaseData[this.tableName].rows[l]._id),delete this.databaseData[this.tableName].rows[l],this.databaseData[this.tableName].totalrows--)}else for(var l in u=0,n)u+=1,o.push(this.databaseData[this.tableName].rows[l]._id),delete this.databaseData[this.tableName].rows[l],this.databaseData[this.tableName].totalrows--;this.init(),u===o.length&&t?h.saveTable(this.tableName,this.databaseData[this.tableName]).then(function(s){t&&t({results:s,deleted_ids:o})},function(n){(s.push(n),t)&&t({error:n,deleted_ids:o})}):t&&0===o.length&&t(null)},o.prototype.removeById=function(t,s){return this.where({_id:t}),this.remove(s)},o.prototype.add=function(t,s){var n=this.databaseData[this.tableName].autoinc;t._id=n,this.databaseData[this.tableName].rows[n]=t,this.databaseData[this.tableName].autoinc+=1,this.databaseData[this.tableName].totalrows+=1,h.saveTable(this.tableName,this.databaseData[this.tableName]).then(function(n){s&&s(t)},function(t){s&&s(t)}),this.init()},o.prototype.get=function(t){return this.where({_id:t}),this.find(1)},o.prototype.find=function(){var t=[],s=this.databaseData[this.tableName].rows,n=!1;if(this._where&&(n=!0),n)for(var h in s){var o=!1;for(var f in this._where){if(s[h][f]!=this._where[f]){o=!1;break}o=!0}o&&t.push(s[h])}else for(var h in s)t.push(s[h]);return'number'==typeof this._limit?t.slice(this._offset,this._limit+this._offset):(this.init(),t)},m.exports=h},739,[18,740]); @@ -1626,7 +1626,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{v __d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var o=l(r(d[1])),t=l(r(d[2])),u=l(r(d[3])),n=r(d[4]),c=l(r(d[5])),f=l(r(d[6])),y=l(r(d[7])),C=r(d[8]);function p(l){var c=l.style,p=l.textStyle,b=l.icon,s=l.primary,S=l.primaryIcon,h=l.outline,x=l.outlineIcon,I=l.outlineSecondary,k=l.outlineSecondaryIcon,O=l.small,L=l.light,v=l.gray,P=l.chip,T=l.status,_=l.rate,j=l.rateSmall,E=l.sale,R=l.children,B=(0,t.default)(l,["style","textStyle","icon","primary","primaryIcon","outline","outlineIcon","outlineSecondary","outlineSecondaryIcon","small","light","gray","chip","status","rate","rateSmall","sale","children"]);return u.default.createElement(n.TouchableOpacity,(0,o.default)({},B,{style:n.StyleSheet.flatten([y.default.default,s&&[y.default.primary,{backgroundColor:C.Color.primaryColor}],S&&y.default.primary,h&&[y.default.outline,{borderColor:C.Color.primary,backgroundColor:C.Color.cardBackgroundColor}],x&&y.default.outline,I&&y.default.outlineSecondary,k&&[y.default.outlineSecondary,{borderColor:C.Color.accentColor}],O&&[y.default.small,{backgroundColor:C.Color.primaryColor}],L&&[y.default.light,{backgroundColor:C.Color.primaryColor}],v&&y.default.gray,P&&[y.default.chip,{backgroundColor:C.Color.card,borderColor:C.Color.accentColor}],T&&[y.default.status,{backgroundColor:C.Color.primaryColor}],_&&[y.default.rate,{backgroundColor:C.Color.primaryLightColor}],j&&[y.default.rateSmall,{backgroundColor:C.Color.primaryLightColor}],E&&[y.default.sale,{backgroundColor:C.Color.primaryLightColor}],c]),activeOpacity:.9}),b||null,u.default.createElement(f.default,{style:n.StyleSheet.flatten([s&&y.default.textPrimary,S&&y.default.textPrimary,h&&[y.default.textOutline,{color:C.Color.primaryColor}],x&&[y.default.textOutline,{color:C.Color.primaryColor}],I&&[y.default.textOutlineSecondary,{color:C.Color.accentColor}],k&&[y.default.textOutlineSecondary,{color:C.Color.accentColor}],O&&y.default.textSmall,L&&[y.default.textLight,{color:C.Color.primaryLightColor}],v&&y.default.textGray,P&&[y.default.textChip,{color:C.Color.accentColor}],T&&y.default.textStatus,_&&y.default.textRate,j&&y.default.textRateSmall,E&&y.default.textSale,p]),numberOfLines:1},R||''))}p.propTypes={style:c.default.oneOfType([c.default.object,c.default.array]),textStyle:c.default.oneOfType([c.default.object,c.default.array]),icon:c.default.node,primary:c.default.bool,primaryIcon:c.default.bool,outline:c.default.bool,outlineIcon:c.default.bool,outlineSecondary:c.default.bool,outlineSecondaryIcon:c.default.bool,small:c.default.bool,light:c.default.bool,gray:c.default.bool,chip:c.default.bool,rate:c.default.bool,rateSmall:c.default.bool,status:c.default.bool,sale:c.default.bool},p.defaultProps={style:{},textStyle:{},icon:null,primary:!1,primaryIcon:!1,outline:!1,outlineIcon:!1,outlineSecondary:!1,outlineSecondaryIcon:!1,small:!1,light:!1,gray:!1,chip:!1,status:!1,rate:!1,rateSmall:!1,sale:!1}},1620,[1,6,57,15,18,68,1621,1622,1020]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=t(r(d[1])),o=t(r(d[2])),n=r(d[3]),h=t(r(d[4])),f=r(d[5]);t(r(d[6]));function u(t){var h=t.header,u=t.title1,y=t.title2,b=t.title3,p=t.headline,c=t.body1,s=t.body2,S=t.callout,W=t.subhead,T=t.footnote,v=t.caption1,F=t.caption2,L=t.overline,O=t.thin,k=t.ultraLight,x=t.light,_=t.regular,A=t.medium,j=t.semibold,P=t.bold,E=t.heavy,M=t.black,q=t.numberOfLines,w=(t.textAlign,t.style),z=t.children;return o.default.createElement(n.Text,(0,l.default)({style:n.StyleSheet.flatten([h&&f.Typography.header,u&&f.Typography.title1,y&&f.Typography.title2,b&&f.Typography.title3,p&&f.Typography.headline,c&&f.Typography.body1,s&&f.Typography.body2,S&&f.Typography.callout,W&&f.Typography.subhead,T&&f.Typography.footnote,v&&f.Typography.caption1,F&&f.Typography.caption2,L&&f.Typography.overline,O&&n.StyleSheet.flatten({fontWeight:f.FontWeight.thin}),k&&n.StyleSheet.flatten({fontWeight:f.FontWeight.ultraLight}),x&&n.StyleSheet.flatten({fontWeight:f.FontWeight.light}),_&&n.StyleSheet.flatten({fontWeight:f.FontWeight.regular}),A&&n.StyleSheet.flatten({fontWeight:f.FontWeight.medium}),j&&n.StyleSheet.flatten({fontWeight:f.FontWeight.semibold}),P&&n.StyleSheet.flatten({fontWeight:f.FontWeight.bold}),E&&n.StyleSheet.flatten({fontWeight:f.FontWeight.heavy}),M&&n.StyleSheet.flatten({fontWeight:f.FontWeight.black}),w&&w])},t,{numberOfLines:q}),z)}u.propTypes={header:h.default.bool,title1:h.default.bool,title2:h.default.bool,title3:h.default.bool,headline:h.default.bool,body1:h.default.bool,body2:h.default.bool,callout:h.default.bool,subhead:h.default.bool,footnote:h.default.bool,caption1:h.default.bool,caption2:h.default.bool,overline:h.default.bool,thin:h.default.bool,ultraLight:h.default.bool,light:h.default.bool,regular:h.default.bool,medium:h.default.bool,semibold:h.default.bool,bold:h.default.bool,heavy:h.default.bool,black:h.default.bool,numberOfLines:h.default.number,textAlign:h.default.string,style:h.default.oneOfType([h.default.object,h.default.array]),children:h.default.node},u.defaultProps={header:!1,title1:!1,title2:!1,title3:!1,headline:!1,body1:!1,body2:!1,callout:!1,subhead:!1,footnote:!1,caption1:!1,caption2:!1,overline:!1,thin:!1,ultraLight:!1,light:!1,regular:!1,medium:!1,semibold:!1,bold:!1,heavy:!1,black:!1,numberOfLines:10,textAlign:'left',style:{},children:''}},1621,[1,6,15,18,68,1009,1620]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(r(d[1]));var o=r(d[2]),n=r(d[3]),l=r(d[4]),c=o.StyleSheet.create({default:{flexDirection:'row'},primary:{paddingVertical:5,paddingHorizontal:10,borderRadius:17,alignItems:'center',justifyContent:'center'},textPrimary:o.StyleSheet.flatten([n.Typography.caption1,{color:l.Color.whiteColor}]),outline:{paddingVertical:5,paddingHorizontal:10,borderRadius:16,borderWidth:1,alignItems:'center',justifyContent:'center'},textOutline:n.Typography.caption1,outlineSecondary:{paddingVertical:5,paddingHorizontal:10,borderRadius:17,backgroundColor:l.Color.whiteColor,alignItems:'center',justifyContent:'center'},textOutlineSecondary:n.Typography.caption1,small:{paddingHorizontal:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textSmall:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor}]),light:{padding:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textLight:n.Typography.caption2,gray:{padding:5,backgroundColor:l.Color.fieldColor,borderColor:l.Color.fieldColor,alignItems:'center',justifyContent:'center'},textGray:o.StyleSheet.flatten([n.Typography.caption2]),chip:{paddingVertical:4,paddingHorizontal:6,borderRadius:16,alignItems:'center',justifyContent:'center',borderWidth:.5},textChip:n.Typography.overline,status:{paddingVertical:3,paddingHorizontal:5,borderRadius:5,alignItems:'center',justifyContent:'center'},textStatus:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),rate:{paddingVertical:5,paddingHorizontal:10,borderTopLeftRadius:5,borderBottomLeftRadius:5,borderBottomRightRadius:5,alignItems:'center',justifyContent:'center'},textRate:o.StyleSheet.flatten([n.Typography.headline,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),rateSmall:{borderRadius:3,paddingHorizontal:5,alignItems:'center',justifyContent:'center'},textRateSmall:o.StyleSheet.flatten([n.Typography.caption2,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}]),sale:{width:50,height:50,borderRadius:25,alignItems:'center',justifyContent:'center'},textSale:o.StyleSheet.flatten([n.Typography.headline,{color:l.Color.whiteColor,fontWeight:n.FontWeight.bold}])});e.default=c},1622,[1,15,18,1009,1020]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.optionPaiementFacture=e.optionPaiementEcole=e.optionPaiementAbonnementTV=e.optionPaiementCreditTelephonique=e.optionPaiementEauElectricite=e.optionIdentificationScreen=e.optionDepotUserScreen=e.optionRetraitUserScreen=e.optionRetraitScreen=e.optionDepotScreen=e.optionWalletToBank=e.transactionHistoryUser=e.transactionHistoryIlinkLabel=e.transactionHistoryLabel=e.inputCardSource=e.walletActifData=e.paysDestinationData=e.typeIdIDestinataire=e.identityPieces=e.isEmptyObject=e.isIlinkWorldWallet=e.displayToast=e.isNormalInteger=e.cutStringWithoutDot=e.cutString=e.thousandsSeparators=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),c=r(d[4]),p=r(d[5]),s=r(d[6]);e.thousandsSeparators=function(t){var n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),n.join(".")};e.cutString=function(t,n){return null===t?' ':t.slice(0,n)+"..."};e.cutStringWithoutDot=function(t,n){return null===t?' ':""+t.slice(0,n)};e.isNormalInteger=function(t){return!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(t)};e.displayToast=function(t){l.default.show(t,{duration:l.default.durations.SHORT,position:l.default.positions.BOTTOM,backgroundColor:c.Color.primaryColor,shadow:!0,animation:!0,hideOnPress:!0,delay:0,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}})};e.isIlinkWorldWallet=function(t){return(0,o.default)(p(t).toLowerCase(),'ilink')};e.isEmptyObject=function(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return JSON.stringify(t)===JSON.stringify({})};e.identityPieces=function(){return[{name:n.default.t('IDENTITY_CARD')},{name:n.default.t('PASSEPORT')},{name:n.default.t('OTHER_IDENTITY_PIECE')}]};e.typeIdIDestinataire=function(){return[{name:n.default.t('PHONE')},{name:n.default.t('CODE_WALLET')}]};e.paysDestinationData=function(){return[{name:'Cameroun'},{name:'Gabon'},{name:'Congo'},{name:'S\xe9n\xe9gal'},{name:'C\xf4te d\'Ivoire'}]};e.walletActifData=function(){return[{name:'UBA'},{name:'SOGO'},{name:'Small World'},{name:'UBA fs iLink'},{name:'iLink World'}]};e.inputCardSource=function(){return[{name:n.default.t('NUMERO_DE_SERIE'),value:'serial-number'},{name:n.default.t('CREDIT_CARD'),value:'credit-card'}]};e.transactionHistoryLabel=function(){return[{icon:'inbox-arrow-up',label:'Source'},{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryIlinkLabel=function(){return[{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryUser=function(){return[{type:'depot',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'},{type:'retrait',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'}]};var E={title:n.default.t('DEPOSIT_TO_BANK'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'WALLET_TO_BANK_USER',screen:s.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 1'},{type:'WALLET_TO_BANK_USER',screen:s.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 2'},{type:'WALLET_TO_BANK_USER',screen:s.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 3'},{type:'WALLET_TO_BANK_USER',screen:s.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 4'},{type:'WALLET_TO_BANK_USER',screen:s.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 5'},{type:'WALLET_TO_BANK_USER',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 6'}]};e.optionWalletToBank=E;var u={type:'DEPOT',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:s.envoieCashVersWalletAgent,icon:'wallet',title:n.default.t('DEPOSIT_CASH_TO_WALLET')},{screen:s.envoieCashVersAutreWalletAgent,icon:'cash-refund',title:n.default.t('DEPOSIT_CASH_TO_OTHER_WALLET')},{screen:s.envoieCashVersCarteAgent,icon:'credit-card',title:n.default.t('DEPOSIT_CASH_TO_VISA')},{screen:s.envoiCashVersCashAgent,icon:'cash-multiple',title:n.default.t('DEPOSIT_CASH_TO_CASH')},{screen:s.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_CASH_TO_BANK'),subScreenOption:E,type:'WALLET_TO_BANK'}]};e.optionDepotScreen=u;var T={type:'RETRAIT',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:s.retraitEnCashAgent,icon:'cash',title:n.default.t('WITHDRAWAL_IN_CASH')},{screen:s.retraitCarteVersCashAgent,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_CASH_AGENT')}]};e.optionRetraitScreen=T;var O={type:'RETRAIT_USER',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:s.retraitWalletVersCashUser,icon:'wallet',title:n.default.t('WITHDRAWAL_WALLET_TO_CASH')},{screen:s.retraitCarteVersCashUser,icon:'credit-card-refund',title:n.default.t('WITHDRAWAL_CARD_TO_CASH')},{screen:s.retraitCarteVersWalletUser,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_WALLET')}]};e.optionRetraitUserScreen=O;var _={type:'DEPOT_USER',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:s.envoieWalletToWalletUser,icon:'wallet',title:n.default.t('DEPOSIT_WALLET_TO_WALLET')},{screen:s.envoieWalletToCashUser,icon:'cash-refund',title:n.default.t('DEPOSIT_TO_CASH')},{screen:s.envoieWalletToCardUser,icon:'credit-card',title:n.default.t('DEPOSIT_TO_CARD')},{type:'WALLET_TO_BANK',screen:s.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_TO_BANK'),subScreenOption:E}]};e.optionDepotUserScreen=_;var A={type:'IDENTIFICATION',title:n.default.t('IDENTIFICATION'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:s.createIdentification,icon:'pencil-plus',title:n.default.t('CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN')},{screen:s.validateIdentification,icon:'check-circle',title:n.default.t('VALIDATE_IDENTIFICATION_DESCRIPTION')}]};e.optionIdentificationScreen=A;var k={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 1'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 2'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 3'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 4'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 5'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 6'}]};e.optionPaiementEauElectricite=k;var I={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 1'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 2'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 3'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 4'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 5'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 6'}]};e.optionPaiementCreditTelephonique=I;var b={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 1'},{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 2'},{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 3'},{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 4'},{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 5'},{type:'PAIEMENT_ABONNEMENT_TV',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 6'}]};e.optionPaiementAbonnementTV=b;var N={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 1'},{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 2'},{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 3'},{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 4'},{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 5'},{type:'PAIEMENT_ECOLE',screen:s.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 6'}]};e.optionPaiementEcole=N;var C={type:'FACTURE',title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{type:'FACTURE_WATER_ELECTRICITY',icon:'water',title:'Paiement eau/\xe9lectricit\xe9',screen:s.operateurOptionSelect,subScreenOption:k},{type:'FACTURE_SCHOOL',icon:'school',title:'Paiement \xe9cole',screen:s.operateurOptionSelect,subScreenOption:N},{type:'FACTURE_PHONE',icon:'phone-classic',title:'Paiement cr\xe9dit t\xe9l\xe9phonique',screen:s.operateurOptionSelect,subScreenOption:I},{type:'FACTURE_TV',icon:'television-classic',title:'Paiement abonnement TV',screen:s.operateurOptionSelect,subScreenOption:b}]};e.optionPaiementFacture=C},1623,[1,712,681,1595,1020,1624,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.optionPaiementFacture=e.optionPaiementEcole=e.optionPaiementAbonnementTV=e.optionPaiementCreditTelephonique=e.optionPaiementEauElectricite=e.optionIdentificationScreen=e.optionDepotUserScreen=e.optionRetraitUserScreen=e.optionRetraitScreen=e.optionDepotScreen=e.optionWalletToBank=e.transactionHistoryUser=e.transactionHistoryIlinkLabel=e.transactionHistoryLabel=e.inputCardSource=e.walletActifData=e.paysDestinationData=e.typeIdIDestinataire=e.identityPieces=e.isEmptyObject=e.isIlinkWorldWallet=e.displayToast=e.isNormalInteger=e.cutStringWithoutDot=e.cutString=e.thousandsSeparators=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),c=r(d[4]),p=(r(d[5]),r(d[6]));e.thousandsSeparators=function(t){var n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g," "),n.join(".")};e.cutString=function(t,n){return null===t?' ':t.slice(0,n)+"..."};e.cutStringWithoutDot=function(t,n){return null===t?' ':""+t.slice(0,n)};e.isNormalInteger=function(t){return!/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(t)};e.displayToast=function(t){l.default.show(t,{duration:l.default.durations.SHORT,position:l.default.positions.BOTTOM,backgroundColor:c.Color.primaryColor,shadow:!0,animation:!0,hideOnPress:!0,delay:0,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}})};e.isIlinkWorldWallet=function(t){return(0,o.default)(t,'ilink')};e.isEmptyObject=function(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return JSON.stringify(t)===JSON.stringify({})};e.identityPieces=function(){return[{name:n.default.t('IDENTITY_CARD')},{name:n.default.t('PASSEPORT')},{name:n.default.t('OTHER_IDENTITY_PIECE')}]};e.typeIdIDestinataire=function(){return[{name:n.default.t('PHONE')},{name:n.default.t('CODE_WALLET')}]};e.paysDestinationData=function(){return[{name:'Cameroun'},{name:'Gabon'},{name:'Congo'},{name:'S\xe9n\xe9gal'},{name:'C\xf4te d\'Ivoire'}]};e.walletActifData=function(){return[{name:'UBA'},{name:'SOGO'},{name:'Small World'},{name:'UBA fs iLink'},{name:'iLink World'}]};e.inputCardSource=function(){return[{name:n.default.t('NUMERO_DE_SERIE'),value:'serial-number'},{name:n.default.t('CREDIT_CARD'),value:'credit-card'}]};e.transactionHistoryLabel=function(){return[{icon:'inbox-arrow-up',label:'Source'},{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryIlinkLabel=function(){return[{icon:'cash',label:n.default.t('AMOUNT_LABEL')},{icon:'account-arrow-right',label:n.default.t('DESTINATAIRE')},{icon:'calendar-clock',label:'Date'}]};e.transactionHistoryUser=function(){return[{type:'depot',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'},{type:'retrait',source:'wallet',montant:1e4,destinataire:'John Doe',date:'2020-05-15'}]};var E={title:n.default.t('DEPOSIT_TO_BANK'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 1'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 2'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 3'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 4'},{type:'WALLET_TO_BANK_USER',screen:p.envoieWalletToBankUser,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 5'},{type:'WALLET_TO_BANK_USER',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Banque num\xe9ro 6'}]};e.optionWalletToBank=E;var s={type:'DEPOT',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.envoieCashVersWalletAgent,icon:'wallet',title:n.default.t('DEPOSIT_CASH_TO_WALLET')},{screen:p.envoieCashVersAutreWalletAgent,icon:'cash-refund',title:n.default.t('DEPOSIT_CASH_TO_OTHER_WALLET')},{screen:p.envoieCashVersCarteAgent,icon:'credit-card',title:n.default.t('DEPOSIT_CASH_TO_VISA')},{screen:p.envoiCashVersCashAgent,icon:'cash-multiple',title:n.default.t('DEPOSIT_CASH_TO_CASH')},{screen:p.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_CASH_TO_BANK'),subScreenOption:E,type:'WALLET_TO_BANK'}]};e.optionDepotScreen=s;var u={type:'RETRAIT',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.retraitEnCashAgent,icon:'cash',title:n.default.t('WITHDRAWAL_IN_CASH')},{screen:p.retraitCarteVersCashAgent,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_CASH_AGENT')}]};e.optionRetraitScreen=u;var T={type:'RETRAIT_USER',title:n.default.t('RETRAIT_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.retraitWalletVersCashUser,icon:'wallet',title:n.default.t('WITHDRAWAL_WALLET_TO_CASH')},{screen:p.retraitCarteVersCashUser,icon:'credit-card-refund',title:n.default.t('WITHDRAWAL_CARD_TO_CASH')},{screen:p.retraitCarteVersWalletUser,icon:'credit-card',title:n.default.t('WITHDRAWAL_CARD_TO_WALLET')}]};e.optionRetraitUserScreen=T;var O={type:'DEPOT_USER',title:n.default.t('ENVOIE_ARGENT'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.envoieWalletToWalletUser,icon:'wallet',title:n.default.t('DEPOSIT_WALLET_TO_WALLET')},{screen:p.envoieWalletToCashUser,icon:'cash-refund',title:n.default.t('DEPOSIT_TO_CASH')},{screen:p.envoieWalletToCardUser,icon:'credit-card',title:n.default.t('DEPOSIT_TO_CARD')},{type:'WALLET_TO_BANK',screen:p.operateurOptionSelect,icon:'bank-transfer-in',title:n.default.t('DEPOSIT_TO_BANK'),subScreenOption:E}]};e.optionDepotUserScreen=O;var _={type:'IDENTIFICATION',title:n.default.t('IDENTIFICATION'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{screen:p.createIdentification,icon:'pencil-plus',title:n.default.t('CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN')},{screen:p.validateIdentification,icon:'check-circle',title:n.default.t('VALIDATE_IDENTIFICATION_DESCRIPTION')}]};e.optionIdentificationScreen=_;var A={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 1'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 2'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 3'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 4'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 5'},{type:'PAIEMENT_EAU_ELECTRICITE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur eau-\xe9lectricit\xe9 6'}]};e.optionPaiementEauElectricite=A;var k={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 1'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 2'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 3'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 4'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 5'},{type:'PAIEMENT_CREDIT_TELEPHONE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur t\xe9l\xe9phonique 6'}]};e.optionPaiementCreditTelephonique=k;var I={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 1'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 2'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 3'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 4'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 5'},{type:'PAIEMENT_ABONNEMENT_TV',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur abonnement TV 6'}]};e.optionPaiementAbonnementTV=I;var b={title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPERATOR'),options:[{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 1'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 2'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 3'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 4'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 5'},{type:'PAIEMENT_ECOLE',screen:p.paiementFacture,icon:'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',title:'Op\xe9rateur \xe9cole 6'}]};e.optionPaiementEcole=b;var N={type:'FACTURE',title:n.default.t('PAIEMENT_FACTURE'),subTitle:n.default.t('CHOOSE_OPTION'),options:[{type:'FACTURE_WATER_ELECTRICITY',icon:'water',title:'Paiement eau/\xe9lectricit\xe9',screen:p.operateurOptionSelect,subScreenOption:A},{type:'FACTURE_SCHOOL',icon:'school',title:'Paiement \xe9cole',screen:p.operateurOptionSelect,subScreenOption:b},{type:'FACTURE_PHONE',icon:'phone-classic',title:'Paiement cr\xe9dit t\xe9l\xe9phonique',screen:p.operateurOptionSelect,subScreenOption:k},{type:'FACTURE_TV',icon:'television-classic',title:'Paiement abonnement TV',screen:p.operateurOptionSelect,subScreenOption:I}]};e.optionPaiementFacture=N},1623,[1,712,681,1595,1020,1624,807]); __d(function(g,r,i,a,m,e,d){var n,o;n=this,o=function(){var n=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial"}'),o=JSON.parse('{"vi":{"\u0110":"D","\u0111":"d"}}');function t(t,u){if('string'!=typeof t)throw new Error('slugify: string argument expected');var s=o[(u='string'==typeof u?{replacement:u}:u||{}).locale]||{},c=u.replacement||'-',l=t.split('').reduce(function(o,t){return o+(s[t]||n[t]||t)},'').replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,'').trim().replace(new RegExp('[\\s'+c+']+','g'),c);return u.lower&&(l=l.toLowerCase()),u.strict&&(l=l.replace(new RegExp('[^a-zA-Z0-9'+c+']','g'),'')),l}return t.extend=function(o){for(var t in o)n[t]=o[t]},t},'object'==typeof e?(m.exports=o(),m.exports.default=o()):'function'==typeof define&&define.amd?define(o):n.slugify=o()},1624,[]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){var c=((t||0===t?t:'')+'').split('.');return c.length&&(c[0]=c[0].replace(/(\d)(?=(\d{3})+\b)/g,'$1'+(n||','))),c.join('.')}},1625,[]); __d(function(a,i,k,r,t,o,n){t.exports={v:"4.7.0",fr:25,ip:0,op:50,w:120,h:120,nm:"Comp 1",ddd:0,assets:[],layers:[{ddd:0,ind:1,ty:4,nm:"ruoi",ks:{o:{a:1,k:[{i:{x:[.833],y:[.967]},o:{x:[.167],y:[.033]},n:["0p833_0p967_0p167_0p033"],t:35,s:[100],e:[0]},{t:49}]},r:{a:0,k:0},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:0,y:0},n:"0p833_0p833_0_0",t:0,s:[57.361,61.016,0],e:[57.699,41.796,0],to:[-4.67500305175781,-4.12800598144531,0],ti:[-13.9099960327148,5.27300262451172,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:10.219,s:[57.699,41.796,0],e:[79.084,33.982,0],to:[12.8159942626953,-4.85800170898438,0],ti:[-4.54498291015625,3.73400115966797,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:19.445,s:[79.084,33.982,0],e:[59.691,9.121,0],to:[6.61601257324219,-5.43799591064453,0],ti:[20.0290069580078,1.20700073242188,0]},{t:35}]},a:{a:0,k:[60.531,10.945,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-.994,0],[0,-.994],[.995,0],[0,.994]],o:[[.995,0],[0,.994],[-.994,0],[0,-.994]],v:[[-.001,-1.801],[1.801,-.001],[-.001,1.801],[-1.801,-.001]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[62.4,13.144],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.422,0],[0,-1.422],[1.421,0],[0,1.422]],o:[[1.421,0],[0,1.422],[-1.422,0],[0,-1.422]],v:[[.001,-2.574],[2.574,0],[.001,2.574],[-2.574,0]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},w:{a:0,k:.7},lc:1,lj:1,ml:10,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[64.145,9.606],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,ix:2,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-1.996,0],[0,-1.996],[1.996,0],[0,1.996]],o:[[1.996,0],[0,1.996],[-1.996,0],[0,-1.996]],v:[[0,-3.614],[3.614,0],[0,3.614],[-3.614,0]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.529,.529,.529,1]},o:{a:0,k:100},w:{a:0,k:.7},lc:1,lj:1,ml:10,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"fl",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[57.957,10.552],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 3",np:3,cix:2,ix:3,mn:"ADBE Vector Group"},{ty:"tr",p:{a:0,k:[60.531,10.941],ix:2},a:{a:0,k:[60.531,10.941],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"ruoi",np:3,cix:2,ix:1,mn:"ADBE Vector Group"}],ip:0,op:50,st:0,bm:0,sr:1},{ddd:0,ind:2,ty:4,nm:"Shape Layer 2",ks:{o:{a:1,k:[{i:{x:[.833],y:[.967]},o:{x:[.167],y:[.033]},n:["0p833_0p967_0p167_0p033"],t:35,s:[100],e:[0]},{t:49}]},r:{a:0,k:0},p:{a:0,k:[-.75,-.75,0]},a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-13.91,5.273],[-4.545,3.734],[20.029,1.207]],o:[[-4.675,-4.128],[12.816,-4.858],[6.616,-5.438],[0,0]],v:[[-7.383,24.76],[-7.046,5.54],[14.34,-2.273],[-3.178,-24.76]],c:!1}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"st",c:{a:0,k:[.627,.627,.627,1]},o:{a:0,k:100},w:{a:0,k:1},lc:2,lj:2,d:[{n:"d",nm:"dash",v:{a:0,k:2.028}},{n:"g",nm:"gap",v:{a:0,k:2.028}},{n:"o",nm:"offset",v:{a:0,k:0}}],nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke"},{ty:"tr",p:{a:0,k:[67.87,37.631],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 6",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.833],y:[.953]},o:{x:[.167],y:[.033]},n:["0p833_0p953_0p167_0p033"],t:0,s:[0],e:[100]},{t:35}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim"}],ip:0,op:50,st:0,bm:0,sr:1},{ddd:0,ind:3,ty:4,nm:"im_emptyBox Outlines",ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[60,60,0]},a:{a:0,k:[60,60,0]},s:{a:0,k:[100,100,100]}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-.001,-16.607],[-32.143,-.002],[-.001,16.607],[32.144,-.002]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.8,.82,.851,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,55.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 7",np:2,cix:2,ix:1,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[12.856,-23.249],[0,-16.605],[-12.857,-23.249],[-45,-6.641],[-32.144,.001],[-45,6.645],[-12.857,23.249],[0,16.609],[12.856,23.249],[45,6.645],[32.143,.001],[45,-6.641]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.957,.957,.957,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,55.748],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 8",np:2,cix:2,ix:2,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-16.072,24.171],[16.072,11.312],[16.072,-24.171],[-16.072,-24.171]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.902,.914,.929,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[76.072,83.33],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 9",np:2,cix:2,ix:3,mn:"ADBE Vector Group"},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[-32.143,-24.171],[-32.143,11.311],[-.001,24.171],[32.144,11.311],[32.144,-24.171]],c:!0}},nm:"Path 1",mn:"ADBE Vector Shape - Group"},{ty:"fl",c:{a:0,k:[.8,.82,.851,1]},o:{a:0,k:100},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill"},{ty:"tr",p:{a:0,k:[60,83.33],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 10",np:2,cix:2,ix:4,mn:"ADBE Vector Group"},{ty:"tr",p:{a:0,k:[60,60.186],ix:2},a:{a:0,k:[60,60.186],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"box",np:4,cix:2,ix:1,mn:"ADBE Vector Group"}],ip:0,op:50,st:0,bm:0,sr:1}]}},1626,[]); @@ -1744,7 +1744,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.t __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),u=n(r(d[2])),l=n(r(d[3])),o=r(d[4]),s=r(d[5]),c=r(d[6]),f=(function(){function n(){(0,u.default)(this,n)}return(0,l.default)(n,null,[{key:"open",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return(0,c.toMilliseconds)(n,'value'),n.display=n.display||o.DISPLAY_DEFAULT,t.abrupt("return",s.NativeModules.RNTimePickerAndroid.open(n));case 3:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();e.default=f,f.timeSetAction=o.TIME_SET_ACTION,f.dismissedAction=o.DISMISS_ACTION},1738,[1,273,8,9,1734,18,1737]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.validateIdentificationResetAction=e.validateIdentificationAction=e.getUserIdentificationResetAction=e.getUserIdentificationAction=e.getNumberResetAction=e.getNumberDetailAction=e.createIndentificationResetAction=e.createIndentificationAction=void 0;var n=r(d[1]),o=r(d[2]),c=t(r(d[3])),f=t(r(d[4])),u=r(d[5]);e.createIndentificationAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchCreateIdentificationPending)()),(0,c.default)({url:""+n.createIdentificationUrl,method:'POST',headers:{Authorization:l,'X-Localization':f.default.currentLocale()},data:t}).then(function(t){console.log(t),o((0,u.fetchCreateIdentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchCreateIdentificationError)(t.response)):t.request?o((0,u.fetchCreateIdentificationError)(t.request)):o((0,u.fetchCreateIdentificationError)(t.message))})}};e.createIndentificationResetAction=function(){return function(t){t((0,u.fetchCreateIdentificationReset)())}};e.getNumberDetailAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchGetNumberInformationPending)()),(0,c.default)({url:n.getNumberInformationUrl+"/"+t,method:'GET',headers:{Authorization:l,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchGetNumberInformationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchGetNumberInformationError)(t.response)):t.request?o((0,u.fetchGetNumberInformationError)(t.request)):o((0,u.fetchGetNumberInformationError)(t.message))})}};e.getNumberResetAction=function(){return function(t){t((0,u.fetchGetNumberInformationReset)())}};e.getUserIdentificationAction=function(t){var s=o.store.getState().authKeyReducer,l=null!==s?s.authKey.token_type+" "+s.authKey.access_token:'';return function(o){o((0,u.fetchUserIdentificationPending)()),(0,c.default)({url:n.getUserIdentifiedInformationUrl+"/"+t,method:'GET',headers:{Authorization:l,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchUserIdentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchUserIdentificationError)(t.response)):t.request?o((0,u.fetchUserIdentificationError)(t.request)):o((0,u.fetchUserIdentificationError)(t.message))})}};e.getUserIdentificationResetAction=function(){return function(t){t((0,u.fetchUserIdentificationReset)())}};e.validateIdentificationAction=function(t,s){var l=o.store.getState().authKeyReducer,h=null!==l?l.authKey.token_type+" "+l.authKey.access_token:'';return function(o){o((0,u.fetchValidateIndentificationPending)()),(0,c.default)({url:n.validateIdentificationUrl+"/"+s,method:'POST',data:t,headers:{Authorization:h,'X-Localization':f.default.currentLocale()}}).then(function(t){console.log(t),o((0,u.fetchValidateIndentificationSuccess)(t))}).catch(function(t){console.log(t),t.response?o((0,u.fetchValidateIndentificationError)(t.response)):t.request?o((0,u.fetchValidateIndentificationError)(t.request)):o((0,u.fetchValidateIndentificationError)(t.message))})}};e.validateIdentificationResetAction=function(){return function(t){t((0,u.fetchValidateIndentificationReset)())}}},1739,[1,736,1544,1480,712,1740]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchValidateIndentificationReset=e.fetchValidateIndentificationError=e.fetchValidateIndentificationSuccess=e.fetchValidateIndentificationPending=e.fetchUserIdentificationReset=e.fetchUserIdentificationError=e.fetchUserIdentificationSuccess=e.fetchUserIdentificationPending=e.fetchGetNumberInformationReset=e.fetchGetNumberInformationError=e.fetchGetNumberInformationSuccess=e.fetchGetNumberInformationPending=e.fetchCreateIdentificationReset=e.fetchCreateIdentificationError=e.fetchCreateIdentificationSuccess=e.fetchCreateIdentificationPending=void 0;var t=r(d[0]);e.fetchCreateIdentificationPending=function(){return{type:t.CREATE_IDENTIFICATION_PENDING}};e.fetchCreateIdentificationSuccess=function(n){return{type:t.CREATE_IDENTIFICATION_SUCCESS,result:n}};e.fetchCreateIdentificationError=function(n){return{type:t.CREATE_IDENTIFICATION_ERROR,result:n}};e.fetchCreateIdentificationReset=function(){return{type:t.CREATE_IDENTIFICATION_RESET}};e.fetchGetNumberInformationPending=function(){return{type:t.GET_NUMBER_DETAIL_PENDING}};e.fetchGetNumberInformationSuccess=function(n){return{type:t.GET_NUMBER_DETAIL_SUCCESS,result:n}};e.fetchGetNumberInformationError=function(n){return{type:t.GET_NUMBER_DETAIL_ERROR,result:n}};e.fetchGetNumberInformationReset=function(){return{type:t.GET_NUMBER_DETAIL_RESET}};e.fetchUserIdentificationPending=function(){return{type:t.GET_USER_IDENTIFICATION_PENDING}};e.fetchUserIdentificationSuccess=function(n){return{type:t.GET_USER_IDENTIFICATION_SUCCESS,result:n}};e.fetchUserIdentificationError=function(n){return{type:t.GET_USER_IDENTIFICATION_ERROR,result:n}};e.fetchUserIdentificationReset=function(){return{type:t.GET_USER_IDENTIFICATION_RESET}};e.fetchValidateIndentificationPending=function(){return{type:t.VALIDATE_IDENTIFICATION_PENDING}};e.fetchValidateIndentificationSuccess=function(n){return{type:t.VALIDATE_IDENTIFICATION_SUCCESS,result:n}};e.fetchValidateIndentificationError=function(n){return{type:t.VALIDATE_IDENTIFICATION_ERROR,result:n}};e.fetchValidateIndentificationReset=function(){return{type:t.VALIDATE_IDENTIFICATION_RESET}}},1740,[1569]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),u=l(r(d[6])),f=l(r(d[7])),y=t(r(d[8])),p=r(d[9]),T=l(r(d[10])),E=l(r(d[11])),h=(r(d[12]),t(r(d[13]))),C=l(r(d[14])),w=(r(d[15]),l(r(d[16])),r(d[17])),x=l(r(d[18])),I=l(r(d[19])),b=r(d[20]),V=(r(d[21]),r(d[22])),D=r(d[23]),A=r(d[24]),R=r(d[25]),O=r(d[26]),v=r(d[27]),L=r(d[28]),_=l(r(d[29])),S=l(r(d[30])),N=r(d[31]);r(d[32]),r(d[33]),r(d[34]),r(d[35]),r(d[36]),r(d[37]),r(d[38]),r(d[39]);var B=r(d[40]),W=r(d[41]),k=r(d[42]),H=l(r(d[43])),U=r(d[44]),F=r(d[45]),P=r(d[46]),j=r(d[47]),Y=r(d[48]);r(d[49]);var z=(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,s.default)(this,(0,c.default)(l).call(this,t))).getWalletIcon=function(t){return N.baseUrl+"/datas/img/network/"+Y(t.network,{lower:!0})+"-logo.png"},o.getCreationDateToHumanFormat=function(t){var l=F.tz(t,'Etc/GMT+0').format();return F(l).fromNow()},o.handleIndexChange=function(t){return o.setState({index:t})},o.imageScale=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[1,.5],extrapolate:'clamp'})},o.imageTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[-5,50],extrapolate:'clamp'})},o.bgHeaderTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,150],outputRange:[-5,0],extrapolate:'clamp'})},o.refresh=function(){var t=o.props.navigation.state.params.userId;o.props.getWalletDetailActivated(t,null)},o.renderHeader=function(t){return y.default.createElement(p.View,{style:[G.containField,{backgroundColor:w.Color.cardBackgroundColor,zIndex:11,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:[G.contentLeftItem]},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.body1,V.Typography.semibold]},E.default.t('COUNTRY')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},"Pays")),y.default.createElement(p.View,{style:{flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Animated.Image,{source:{uri:o.getWalletIcon(t)},style:{width:120,height:120,borderRadius:60,position:'absolute',alignSelf:'center',backgroundColor:w.Color.whiteColor,bottom:70,transform:[{scale:o.imageScale()},{translateY:o.imageTranslateY()}]}}),y.default.createElement(p.View,{style:{marginTop:1,flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold],numberOfLines:1},t.network),y.default.createElement(p.View,{style:{flexDirection:'row'}},y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"link",size:20,color:w.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:w.Color.whiteColor},primary:!0,onPress:function(){o.props.navigation.push(j.linkCard)}},"\xa0",E.default.t('LINK_CARD')),y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"update",size:20,color:w.Color.whiteColor}),primary:!0,style:{width:110,borderTopLeftRadius:0,borderBottomLeftRadius:0}},"\xa0\xa0",E.default.t('HISTORY'))))),y.default.createElement(p.View,{style:G.contentLeftItem},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.body1,V.Typography.semibold]},E.default.t('CREATION_DATE')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},o.getCreationDateToHumanFormat(t.createdAt))))},o.renderLoader=function(){return y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))))},o.renderAccountDetail=function(t){return y.default.createElement(p.View,{style:{flexDirection:'row',flex:1,justifyContent:'space-between'}},y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-wallet",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},E.default.t('PRINCIPAL_ACCOUNT_TITLE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},P(t.balance,' ')+" "+t.currency_code))),y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-key",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},E.default.t('NUMERO_COMPTE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},t.user_code))))},o.renderDetailWallet=function(t){return(0,k.isEmptyObject)(t)?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_ACTIVED'))):y.default.createElement(y.default.Fragment,null,o.state.triggerTransferCommission&&o.renderDialogTransferCommissionResponse(),y.default.createElement(p.View,{style:G.container},y.default.createElement(p.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:w.Color.primaryColor,height:140-o.state.scrollHeaderY}}),y.default.createElement(p.ScrollView,{ref:function(t){return o._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:p.Animated.event([{nativeEvent:{contentOffset:{y:o.scrollY}}}],{listener:function(t){o.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},y.default.createElement(p.View,{style:{marginTop:80}},o.renderHeader(t),y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},o.renderAccountDetail(t),y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},E.default.t('TRANSACTIONS'))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionDepotUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!1}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-bottom-right",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('ENVOIE_ARGENT')))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionRetraitUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-top-left",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('RETRAIT_ARGENT'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){},activeOpacity:.9},y.default.createElement(T.default,{name:"cash-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('NANO_CREDIT'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){},activeOpacity:.9},y.default.createElement(T.default,{name:"heart-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('NANO_SANTE'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{numberOfLines:1,style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5},E.default.t('NANO_SANTE_DESCRIPTION'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionPaiementFacture,onGoBack:function(){return o.refresh()},lottie:{source:r(d[51]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"file-document",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('PAIEMENT_FACTURE'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.state.isIdentified?o.props.navigation.push(j.createIdentificationUser):(0,k.displayToast)(E.default.t('ALREADY_IDENTIFIED'))},activeOpacity:.9},y.default.createElement(T.default,{name:"pencil-plus",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('CREATION_IDENTIFICATION_CLIENT'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))))),o.renderHistoryTransaction(t))))))},o.renderModalHistoryDetail=function(){o.state.historyItemDetail;return y.default.createElement(_.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},y.default.createElement(_.default.Title,null,"D\xe9tail de l'historique"),y.default.createElement(p.View,null,y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},E.default.t('OPERATION'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.operation))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},E.default.t('TRANSACTION_ID'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.id_transaction))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},"Date")),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.date))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('INIT_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.init_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('FEES_AND_TAXES'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.frais))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_init))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('EMETTEUR'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.emetteur))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('DESTINATAIRE'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.destinataire))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('FINAL_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.final_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_final))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('ACTIVE_WALLET'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.reseau_payeur))))),y.default.createElement(_.default.Button,{bold:!0,label:E.default.t('OK'),onPress:function(){o.setState({displayModalHistory:!o.state.displayModalHistory})}}))},o.renderHistoryTransactionItem=function(t,l,n){return y.default.createElement(p.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},Object.keys((0,x.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,n){return y.default.createElement(p.View,{style:{alignItems:'center'},key:n},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},(0,S.default)(l,'montant')?""+P(t[l],' '):(0,S.default)(l,'destinataire')?t[l].length>13?cutString(t[l],13):t[l]:(0,S.default)(l,'date')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderHistoryTransactionList=function(t){var l=o.props,n=l.resultTransaction,s=l.errorTransaction;return null!==s?void 0!==s.data?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s.data.error)):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s)):null!==n&&null!==n.response?Array.isArray(n.response)&&n.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return y.default.createElement(p.View,{style:{alignItems:'center'},key:l},y.default.createElement(T.default,{name:t.icon,size:24,color:w.Color.primaryColor}),y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},t.label))})),n.response.map(function(l,n){return o.renderHistoryTransactionItem(l,n,t)})):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransaction=function(t){return y.default.createElement(y.default.Fragment,null,o.props.loadingTransaction?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS')))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},E.default.t('TRANSACTION_HISTORY'))),o.renderHistoryTransactionList(t)))},o.state={index:0,heightHeader:h.heightHeader(),isModalConfirmVisible:!1,wallet:null,triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,user:null,displayModalHistory:!1,historyItemDetail:null,isIdentified:!1,isIdentifiedValidated:!1},Y.extend({'+':'plus'}),o.scrollY=new p.Animated.Value(0),o.scrollHeaderY=new p.Animated.Value(0),o.deltaY=new p.Animated.Value(0),o.bgBannerY=new p.Animated.Value(0),o.heightImageBanner=h.scaleWithPixel(250,1),o.marginTopBanner=o.heightImageBanner-o.state.heightHeader-40,o.currentLocale=H.default.getDeviceLocale().includes("fr")?"fr":"en-gb",F.locale(o.currentLocale),b.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),b.IlinkEmitter.on("refreshWallet",o.refresh),o.props.getWalletTransactionHistoryReset(),o.props.depositActionReset(),o.props.resetWalletListDetailReducer(),o.props.getWalletDetailActivated(o.props.navigation.state.params.userId,null),o.props.getUserIdentificationResetAction(),(0,U.readUser)().then(function(t){t&&void 0!==t&&(o.setState({user:t}),o.props.getUserIdentificationAction(t.phone),o.props.getWalletTransactionHistoryUser(t.id))}),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,n=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var o=l.response[0];console.log("WALLET RECUPERER",o),this.setState({wallet:o,isTriggerRefresh:!1})}null!==n&&(console.log("RESULT NUMBER DETAIL",n),void 0!==n.response&&this.setState({isIdentified:n.response.isIdentified,isIdentifiedValidated:n.response.isIdentifiedValidated}))}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:E.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){return y.default.createElement(y.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),y.default.createElement(p.StatusBar,{backgroundColor:w.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingUserIdentification?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_ACTIVED'))):this.renderDetailWallet(this.props.result.response):null)}}]),l})(y.Component);z.navigatorStyle={navBarBackgroundColor:w.Color.primaryColor,statusBarColor:w.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},z.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:w.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('WALLET')}};var 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:L.transferCommissionAction,resetWalletListDetailReducer:A.resetWalletListDetailReducer,resetCommissionReducer:L.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:w.Color.containerBackgroundColor},indicator:{height:2},tab:{width:h.getWidthDevice()/2},tabbar:{height:40},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,D.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',flex:1,paddingTop:10,paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:w.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:h.scaleWithPixel(30),height:h.scaleWithPixel(30)},content:{height:h.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1741,[4,1,8,9,10,12,11,13,15,18,869,712,1635,1008,871,1654,1724,1020,545,1620,766,1659,1009,527,1541,1646,1648,1739,1649,1604,681,736,1145,1146,1147,1148,1149,1150,1151,1152,1508,1476,1623,930,711,1137,1625,807,1624,808,1650,1651]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),u=l(r(d[6])),f=l(r(d[7])),y=t(r(d[8])),p=r(d[9]),T=l(r(d[10])),E=l(r(d[11])),h=(r(d[12]),t(r(d[13]))),C=l(r(d[14])),w=(r(d[15]),l(r(d[16])),r(d[17])),x=l(r(d[18])),I=l(r(d[19])),b=r(d[20]),V=(r(d[21]),r(d[22])),D=r(d[23]),A=r(d[24]),R=r(d[25]),O=r(d[26]),v=r(d[27]),L=r(d[28]),_=l(r(d[29])),S=l(r(d[30])),N=r(d[31]);r(d[32]),r(d[33]),r(d[34]),r(d[35]),r(d[36]),r(d[37]),r(d[38]),r(d[39]);var B=r(d[40]),W=r(d[41]),k=r(d[42]),H=l(r(d[43])),U=r(d[44]),F=r(d[45]),P=r(d[46]),j=r(d[47]),Y=r(d[48]);r(d[49]);var z=(function(t){function l(t){var o;return(0,n.default)(this,l),(o=(0,s.default)(this,(0,c.default)(l).call(this,t))).getWalletIcon=function(t){return N.baseUrl+"/datas/img/network/"+Y(t.network,{lower:!0})+"-logo.png"},o.getCreationDateToHumanFormat=function(t){var l=F.tz(t,'Etc/GMT+0').format();return F(l).fromNow()},o.handleIndexChange=function(t){return o.setState({index:t})},o.imageScale=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[1,.5],extrapolate:'clamp'})},o.imageTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,100],outputRange:[-5,50],extrapolate:'clamp'})},o.bgHeaderTranslateY=function(){return o.scrollY.interpolate({inputRange:[0,150],outputRange:[-5,0],extrapolate:'clamp'})},o.refresh=function(){var t=o.props.navigation.state.params.userId;o.props.getWalletDetailActivated(t,null)},o.renderHeader=function(t){return y.default.createElement(p.View,{style:[G.containField,{backgroundColor:w.Color.cardBackgroundColor,zIndex:11,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:[G.contentLeftItem]},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.body1,V.Typography.semibold]},E.default.t('COUNTRY')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},t.country)),y.default.createElement(p.View,{style:{flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Animated.Image,{source:{uri:o.getWalletIcon(t)},style:{width:120,height:120,borderRadius:60,position:'absolute',alignSelf:'center',backgroundColor:w.Color.whiteColor,bottom:70,transform:[{scale:o.imageScale()},{translateY:o.imageTranslateY()}]}}),y.default.createElement(p.View,{style:{marginTop:1,flex:1,alignItems:'center',justifyContent:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold],numberOfLines:1},t.network),y.default.createElement(p.View,{style:{flexDirection:'row'}},y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"link",size:20,color:w.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:w.Color.whiteColor},primary:!0,onPress:function(){o.props.navigation.push(j.linkCard)}},"\xa0",E.default.t('LINK_CARD')),y.default.createElement(I.default,{icon:y.default.createElement(T.default,{name:"update",size:20,color:w.Color.whiteColor}),primary:!0,style:{width:110,borderTopLeftRadius:0,borderBottomLeftRadius:0}},"\xa0\xa0",E.default.t('HISTORY'))))),y.default.createElement(p.View,{style:G.contentLeftItem},y.default.createElement(p.Text,{numberOfLines:1,style:[V.Typography.body1,V.Typography.semibold]},E.default.t('CREATION_DATE')),y.default.createElement(p.Text,{numberOfLines:1,adjustsFontSizeToFit:!0,style:V.Typography.caption1},o.getCreationDateToHumanFormat(t.createdAt))))},o.renderLoader=function(){return y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))))},o.renderAccountDetail=function(t){return y.default.createElement(p.View,{style:{flexDirection:'row',flex:1,justifyContent:'space-between'}},y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-wallet",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},E.default.t('PRINCIPAL_ACCOUNT_TITLE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},P(t.balance,' ')+" "+t.currency_code))),y.default.createElement(p.View,{style:{flexDirection:'row',alignItems:'center'}},y.default.createElement(p.View,{style:[G.circlePoint,{backgroundColor:w.Color.primaryColor}]},y.default.createElement(C.default,{name:"md-key",size:28,color:w.Color.whiteColor})),y.default.createElement(p.View,null,y.default.createElement(p.Text,{style:(V.Typography.title3,w.Color.primaryColor,{marginBottom:3})},E.default.t('NUMERO_COMPTE')),y.default.createElement(p.Text,{style:[V.Typography.body2]},t.user_code))))},o.renderDetailWallet=function(t){return(0,k.isEmptyObject)(t)?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_ACTIVED'))):y.default.createElement(y.default.Fragment,null,o.state.triggerTransferCommission&&o.renderDialogTransferCommissionResponse(),y.default.createElement(p.View,{style:G.container},y.default.createElement(p.Animated.View,{style:{position:'absolute',width:"100%",zIndex:1,backgroundColor:w.Color.primaryColor,height:140-o.state.scrollHeaderY}}),y.default.createElement(p.ScrollView,{ref:function(t){return o._scrollView=t},style:{paddingHorizontal:20,position:'absolute',width:'100%',height:'100%',zIndex:2},scrollEventThrottle:8,onScroll:p.Animated.event([{nativeEvent:{contentOffset:{y:o.scrollY}}}],{listener:function(t){o.setState({scrollHeaderY:t.nativeEvent.contentOffset.y})}})},y.default.createElement(p.View,{style:{marginTop:80}},o.renderHeader(t),y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},o.renderAccountDetail(t),y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},E.default.t('TRANSACTIONS'))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionDepotUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!1}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-bottom-right",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('ENVOIE_ARGENT')))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionRetraitUserScreen,onGoBack:function(){return o.refresh()},lottie:{source:r(d[50]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"arrow-top-left",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('RETRAIT_ARGENT'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){},activeOpacity:.9},y.default.createElement(T.default,{name:"cash-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('NANO_CREDIT'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){},activeOpacity:.9},y.default.createElement(T.default,{name:"heart-multiple",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('NANO_SANTE'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{numberOfLines:1,style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5},E.default.t('NANO_SANTE_DESCRIPTION'))))))),y.default.createElement(p.View,{style:G.transactionContainer},y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.props.navigation.push(j.walletOptionSelect,{optionSelect:k.optionPaiementFacture,onGoBack:function(){return o.refresh()},lottie:{source:r(d[51]),loop:!0}})},activeOpacity:.9},y.default.createElement(T.default,{name:"file-document",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('PAIEMENT_FACTURE'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))),y.default.createElement(p.View,{style:[G.containerTouch]},y.default.createElement(p.TouchableOpacity,{style:G.contain,onPress:function(){o.state.isIdentified?o.props.navigation.push(j.createIdentificationUser):(0,k.displayToast)(E.default.t('ALREADY_IDENTIFIED'))},activeOpacity:.9},y.default.createElement(T.default,{name:"pencil-plus",color:w.Color.primaryColor,size:30,style:G.imageBanner}),y.default.createElement(p.View,{style:[G.content]},y.default.createElement(p.View,{style:G.contentTitle},y.default.createElement(p.Text,{style:[V.Typography.headline,V.Typography.semibold]},E.default.t('CREATION_IDENTIFICATION_CLIENT'))),y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{paddingVertical:5}),numberOfLines:5}))))))),o.renderHistoryTransaction(t))))))},o.renderModalHistoryDetail=function(){o.state.historyItemDetail;return y.default.createElement(_.default.Container,{useNativeDriver:!0,visible:o.state.displayModalHistory},y.default.createElement(_.default.Title,null,"D\xe9tail de l'historique"),y.default.createElement(p.View,null,y.default.createElement(p.View,{style:[G.blockView,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},E.default.t('OPERATION'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.operation))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},E.default.t('TRANSACTION_ID'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.id_transaction))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{style:[G.body2]},"Date")),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.date))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('INIT_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.init_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('FEES_AND_TAXES'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.frais))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_init))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('EMETTEUR'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.emetteur))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('DESTINATAIRE'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.destinataire))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('FINAL_COUNTRY'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.final_country))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('NET_AMOUNT'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.montant_net_final))),y.default.createElement(p.View,{style:{flexDirection:'row',marginTop:10}},y.default.createElement(p.View,{style:{flex:1}},y.default.createElement(p.Text,{tyle:[V.Typography.body2]},E.default.t('ACTIVE_WALLET'))),y.default.createElement(p.View,{style:{flex:1,alignItems:'flex-end'}},y.default.createElement(p.Text,{style:[V.Typography.caption1,w.Color.grayColor]},o.state.historyItemDetail.reseau_payeur))))),y.default.createElement(_.default.Button,{bold:!0,label:E.default.t('OK'),onPress:function(){o.setState({displayModalHistory:!o.state.displayModalHistory})}}))},o.renderHistoryTransactionItem=function(t,l,n){return y.default.createElement(p.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},Object.keys((0,x.default)(t,['id','id_transaction','type','frais','init_country','final_country','source','emetteur','montant_net_final','montant_net_init','reseau_payeur','operation'])).map(function(l,n){return y.default.createElement(p.View,{style:{alignItems:'center'},key:n},y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},(0,S.default)(l,'montant')?""+P(t[l],' '):(0,S.default)(l,'destinataire')?t[l].length>13?(0,k.cutString)(t[l],13):t[l]:(0,S.default)(l,'date')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderHistoryTransactionList=function(t){var l=o.props,n=l.resultTransaction,s=l.errorTransaction;return null!==s?void 0!==s.data?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s.data.error)):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},s)):null!==n&&null!==n.response?Array.isArray(n.response)&&n.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.contentService,{borderBottomColor:w.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return y.default.createElement(p.View,{style:{alignItems:'center'},key:l},y.default.createElement(T.default,{name:t.icon,size:24,color:w.Color.primaryColor}),y.default.createElement(p.Text,{style:(V.Typography.overline,w.Color.grayColor,{marginTop:4})},t.label))})),n.response.map(function(l,n){return o.renderHistoryTransactionItem(l,n,t)})):y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransaction=function(t){return y.default.createElement(y.default.Fragment,null,o.props.loadingTransaction?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===p.Platform.OS?y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ProgressBarAndroid,null),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS'))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.ActivityIndicator,{size:"large",color:'#ccc'}),y.default.createElement(p.Text,null,E.default.t('LOADING_DOTS')))):y.default.createElement(y.default.Fragment,null,y.default.createElement(p.View,{style:[G.checkDefault,{borderBottomColor:w.Color.borderColor}]},y.default.createElement(p.Text,{style:[V.Typography.title3,V.Typography.semibold]},E.default.t('TRANSACTION_HISTORY'))),o.renderHistoryTransactionList(t)))},o.state={index:0,heightHeader:h.heightHeader(),isModalConfirmVisible:!1,wallet:null,triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,user:null,displayModalHistory:!1,historyItemDetail:null,isIdentified:!1,isIdentifiedValidated:!1},Y.extend({'+':'plus'}),o.scrollY=new p.Animated.Value(0),o.scrollHeaderY=new p.Animated.Value(0),o.deltaY=new p.Animated.Value(0),o.bgBannerY=new p.Animated.Value(0),o.heightImageBanner=h.scaleWithPixel(250,1),o.marginTopBanner=o.heightImageBanner-o.state.heightHeader-40,o.currentLocale=H.default.getDeviceLocale().includes("fr")?"fr":"en-gb",F.locale(o.currentLocale),b.IlinkEmitter.on("langueChange",o.updateLangue.bind((0,u.default)(o))),b.IlinkEmitter.on("refreshWallet",o.refresh),o.props.getWalletTransactionHistoryReset(),o.props.depositActionReset(),o.props.resetWalletListDetailReducer(),o.props.getWalletDetailActivated(o.props.navigation.state.params.userId,null),o.props.getUserIdentificationResetAction(),(0,U.readUser)().then(function(t){t&&void 0!==t&&(o.setState({user:t}),o.props.getUserIdentificationAction(t.phone),o.props.getWalletTransactionHistoryUser(t.id))}),o}return(0,f.default)(l,t),(0,o.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,n=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var o=l.response[0];console.log("WALLET RECUPERER",o),this.setState({wallet:o,isTriggerRefresh:!1})}null!==n&&(console.log("RESULT NUMBER DETAIL",n),void 0!==n.response&&this.setState({isIdentified:n.response.isIdentified,isIdentifiedValidated:n.response.isIdentifiedValidated}))}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:E.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){return y.default.createElement(y.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),y.default.createElement(p.StatusBar,{backgroundColor:w.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingUserIdentification?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?y.default.createElement(p.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(p.Text,{style:V.Typography.body1},E.default.t('NO_WALLET_ACTIVED'))):this.renderDetailWallet(this.props.result.response):null)}}]),l})(y.Component);z.navigatorStyle={navBarBackgroundColor:w.Color.primaryColor,statusBarColor:w.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},z.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:w.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('WALLET')}};var 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:L.transferCommissionAction,resetWalletListDetailReducer:A.resetWalletListDetailReducer,resetCommissionReducer:L.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:w.Color.containerBackgroundColor},indicator:{height:2},tab:{width:h.getWidthDevice()/2},tabbar:{height:40},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},blockView:{paddingVertical:10,borderBottomWidth:.5},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,D.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',flex:1,paddingTop:10,paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:w.Color.borderColor,borderColor:w.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:w.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:h.scaleWithPixel(30),height:h.scaleWithPixel(30)},content:{height:h.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1741,[4,1,8,9,10,12,11,13,15,18,869,712,1635,1008,871,1654,1724,1020,545,1620,766,1659,1009,527,1541,1646,1648,1739,1649,1604,681,736,1145,1146,1147,1148,1149,1150,1151,1152,1508,1476,1623,930,711,1137,1625,807,1624,808,1650,1651]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),c=n(r(d[4])),s=n(r(d[5])),u=n(r(d[6])),p=n(r(d[7])),f=t(r(d[8])),h=r(d[9]),y=n(r(d[10])),b=n(r(d[11])),C=t(r(d[12])),T=(r(d[13]),r(d[14])),w=(r(d[15]),r(d[16])),E=r(d[17]),v=(r(d[18]),r(d[19])),k=n(r(d[20])),B=(r(d[21]),n(r(d[22]))),S=(r(d[23]),r(d[24]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,c.default)(this,(0,s.default)(n).call(this,t))).redirectToRoute=function(t){switch(l.state.type){case'FACTURE':l.props.navigation.push(t.screen,{optionSelect:t.subScreenOption,onGoBack:function(){return l.props.navigation.state.params.onGoBack()}});break;case'DEPOT':l.props.navigation.push(t.screen,{optionSelect:t.subScreenOption,wallet:l.state.wallet,onGoBack:function(){return l.props.navigation.state.params.onGoBack()}});break;case'DEPOT_USER':l.props.navigation.push(t.screen,{wallet:l.state.wallet,onGoBack:function(){return l.props.navigation.state.params.onGoBack()},optionSelect:t.subScreenOption});break;case'RETRAIT':l.props.navigation.push(t.screen,{wallet:l.state.wallet,onGoBack:function(){return l.props.navigation.state.params.onGoBack()}});break;case'WALLET_TO_BANK':l.props.navigation.push(t.screen,{wallet:l.state.wallet,optionSelect:t.subScreenOption,onGoBack:function(){return l.props.navigation.state.params.onGoBack()}});break;default:l.props.navigation.push(t.screen)}},l.renderItem=function(t,n,o){return n?f.default.createElement(f.default.Fragment,null,f.default.createElement(h.View,{key:o,style:[O.containerTouch]},f.default.createElement(h.TouchableOpacity,{style:O.contain,onPress:function(){l.redirectToRoute(t)},activeOpacity:.9},f.default.createElement(y.default,{name:t.icon,color:T.Color.primaryColor,size:30,style:O.imageBanner}),f.default.createElement(h.View,{style:[O.content]},f.default.createElement(h.View,{style:O.contentTitle},f.default.createElement(h.Text,{style:[v.Typography.headline,v.Typography.semibold]},t.title))))),f.default.createElement(h.View,{style:{flex:1}})):f.default.createElement(h.View,{style:[O.containerTouch]},f.default.createElement(h.TouchableOpacity,{style:O.contain,onPress:function(){l.redirectToRoute(t)},activeOpacity:.9},f.default.createElement(y.default,{name:t.icon,color:T.Color.primaryColor,size:30,style:O.imageBanner}),f.default.createElement(h.View,{style:[O.content]},f.default.createElement(h.View,{style:O.contentTitle},f.default.createElement(h.Text,{style:[v.Typography.headline,v.Typography.semibold]},t.title)),f.default.createElement(h.View,{style:{flex:1}}))))},w.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,u.default)(l))),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,type:l.props.navigation.state.params.optionSelect.type,wallet:l.props.navigation.state.params.wallet,lottie:l.props.navigation.state.params.lottie,onGoBack:l.props.navigation.state.params.onGoBack},console.log("WALLET OPTION PROPS",l.props),w.IlinkEmitter.on("langueChange",l.updateLangue.bind((0,u.default)(l))),l}return(0,p.default)(n,t),(0,l.default)(n,[{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('WALLET')}),this.forceUpdate()}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:b.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return f.default.createElement(E.Provider,null,f.default.createElement(h.View,{style:{flex:1}},f.default.createElement(h.StatusBar,{backgroundColor:T.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),f.default.createElement(E.Appbar.Header,{dark:!0,style:{backgroundColor:T.Color.primaryColor}},f.default.createElement(E.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),f.default.createElement(E.Appbar.Content,{title:this.state.title,subtitle:this.state.subTitle})),f.default.createElement(h.View,{style:O.container},f.default.createElement(h.View,{style:{justifyContent:'center',alignItems:'center'}},f.default.createElement(k.default,{style:O.lottie,source:this.state.lottie.source,autoPlay:!0,loop:this.state.lottie.loop})),f.default.createElement(h.View,{style:[O.checkDefault,{borderBottomColor:T.Color.borderColor}]},f.default.createElement(h.Text,{style:[v.Typography.title3,v.Typography.semibold]},b.default.t('TRANSACTIONS'))),(0,B.default)(this.state.options,2).map(function(n,o){return f.default.createElement(h.View,{key:o,style:O.transactionContainer},1===n.length?n.map(function(n,o){return t.renderItem(n,!0,o)}):n.map(function(n,o){return t.renderItem(n,!1,o)}))}))))}}]),n})(f.Component));e.default=S,S.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465',barStyle:{backgroundColor:'#694fad'},drawerLabel:b.default.t('CREDIT_MANAGE'),drawerIcon:function(t){t.tintColor;return f.default.createElement(y.default,{name:'credit-card',size:24})}}};var O=h.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.containerBackgroundColor,paddingHorizontal:20},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:T.Color.borderColor,borderColor:T.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:T.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(65),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12}})},1742,[4,1,8,9,10,12,11,13,15,18,869,712,1008,1654,1020,736,766,1032,711,1009,832,1623,1743,807,1624]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=Math.ceil,f=Math.max;m.exports=function(l,v,c){v=(c?t(l,v,c):void 0===v)?1:f(o(v),0);var h=null==l?0:l.length;if(!h||v<1)return[];for(var x=0,M=0,_=Array(u(h/v));x0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:o.response,walletActifSelect:o.response[0].name,modalVisible:!1}):0===o.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,o=t.resultEnvoieWalletToCash,n=t.errorEnvoieWalletToCash;null!==n&&void 0!==n.data&&h.Alert.alert(E.default.t("ERROR_TRANSFER"),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&h.Alert.alert(E.default.t("SUCCESS_TRANSFER"),o.response,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),V.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&h.Alert.alert(E.default.t("ERROR_LABLE"),t.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:E.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:E.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:E.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var o=t.response.frais,n=t.response.montant_net_final,s=t.response.montant_net_init,u=t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},C.default.createElement(A.default.Title,null,E.default.t('TRANSACTION_DETAIL')),C.default.createElement(h.View,null,C.default.createElement(h.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('DESTINATAIRE'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},u))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('AMOUNT'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FEES_AND_TAXES'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(o,' ')+" "+l.state.wallet.currency_code)))),C.default.createElement(h.View,{style:{paddingVertical:10}},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2,O.FontWeight.bold]},E.default.t('NET_AMOUNT'),":")),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]}))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('INIT_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(s,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FINAL_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},n))))),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroTelephone,type_document_destinataire:l.state.identityPiecesName,nom_destinataire:l.state.noms,prenom_destinataire:l.state.prenoms,id_document_destinataire:l.state.numeroIdentite,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitSendWalletToWallet=function(){var t=l.state,o=t.identityPiecesName,n=t.noms,s=t.prenoms,u=t.paysDestinationSelect,c=t.numeroIdentite,f=t.walletActifSelect,y=(t.typeIdDestinataireSelect,t.numeroTelephone),p=t.montant,C=t.password;l.ckeckIfFieldIsOK(o)?l.identityPiecesAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.paysDestinationAnim.shake(800):l.ckeckIfFieldIsOK(f)?l.walletActifAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.firstnameAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.lastnameAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.numeroIdentiteAnim.shake(800):l.ckeckIfFieldIsOK(y)?l.numeroTelephoneAnim.shake(800):l.ckeckIfFieldIsOK(p)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(C)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0})},l.renderLoader=function(){return C.default.createElement(R.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:E.default.t('LOADING'),message:E.default.t('LOADING_INFO')})},l.state={identityPieces:(0,I.identityPieces)(),identityPiecesName:(0,I.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,noms:null,prenoms:null,numeroTelephone:null,numeroIdentite:null,montant:null,password:null,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props),l}return(0,c.default)(o,t),(0,l.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,_.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var o=this.props.resultEnvoieWalletToCashGetCommission;return C.default.createElement(C.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),C.default.createElement(h.ScrollView,{style:B.container},C.default.createElement(h.Text,{style:B.subbigtitle},E.default.t('ENVOIE_WALLET_TO_CASH')),C.default.createElement(T.View,{ref:function(o){t.paysDestinationAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(o,n,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===o});t.setState({paysDestinationSelect:o,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.walletActifAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(o,n,l){t.setState({walletActifSelect:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.firstnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user',label:""+E.default.t('NAME'),iconColor:'#f95a25',iconSize:20,value:this.state.noms,onChangeText:function(o){t.setState({noms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.lastnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+E.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.prenoms,onChangeText:function(o){t.setState({prenoms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.numeroTelephoneAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,E.default.t('PHONE'))?'phone':'lock',label:E.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",iconSize:20,value:this.state.numeroTelephone,onChangeText:function(o){t.setState({numeroTelephone:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.identityPiecesAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(o,n,l){t.setState({identityPiecesName:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.numeroIdentiteAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'address-card',label:""+E.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(o){t.setState({numeroIdentite:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.montantAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'money',label:E.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:B.input}),C.default.createElement(h.View,{style:{position:'absolute',left:(0,w.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(h.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(h.Text,{style:[O.Typography.body1,O.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(T.View,{ref:function(o){t.passwordAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'lock',label:E.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:B.input})),C.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},E.default.t('SUBMIT_LABEL'))))}}]),o})(C.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('DEPOSIT_WALLET_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('DEPOSIT_WALLET_TO_CASH')}};var F=(0,N.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,k.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:x.envoieUserWalletToCashAction,envoieUserWalletToCashReset:x.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:x.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:x.getCommissionUserWalletToCashReset},t)})(U);e.default=F;var B=h.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,w.responsiveHeight)(2),marginLeft:(0,w.responsiveWidth)(5),marginRight:(0,w.responsiveWidth)(5),borderRadius:5}})},1755,[4,1,8,9,10,12,13,709,681,1731,15,18,743,712,1604,967,527,1377,696,531,1508,1476,1020,1544,1623,711,1753,1751,1009,1625,766,806,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[2])),l=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),y=o(r(d[8])),p=o(r(d[9])),C=t(r(d[10])),h=r(d[11]),T=t(r(d[12])),E=o(r(d[13])),A=o(r(d[14])),v=r(d[15]),w=r(d[16]),R=r(d[17]),S=r(d[18]),b=o(r(d[19])),N=r(d[20]),k=r(d[21]),L=r(d[22]),D=r(d[23]),I=r(d[24]),_=r(d[25]),x=r(d[26]),W=r(d[27]),O=r(d[28]),P=o(r(d[29])),V=r(d[30]),U=(r(d[31]),r(d[32]),(function(t){function o(t){var l;return(0,n.default)(this,o),(l=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderGetActionCountryList=function(){var t=l.props,o=t.resultActiveCountryList,n=t.errorActiveCountryList;null!==o&&void 0!==o.response&&(l.setState({hasLoadActiveCountryList:!1,paysDestination:o.response,paysDestinationSelect:o.response[0].name}),l.state.hasLoadActivePayCountryNetworkList&&l.props.getPayCountryNetworkAction({id_wallet_user:l.state.wallet.id,id_country:o.response[0].id})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getActiveCountryReset()}}],{cancelable:!1}))},l.renderGetPayCountryNetworkResponse=function(){var t=l.props,o=t.resultPayCountryNetwork,n=t.errorPayCountryNetwork;null!==o&&void 0!==o.response&&(o.response.length>0?l.setState({hasLoadActivePayCountryNetworkList:!1,walletActifs:o.response,walletActifSelect:o.response[0].name,modalVisible:!1}):0===o.response.length&&l.setState({walletActifs:[],walletActifSelect:'',modalVisible:!1,hasLoadActivePayCountryNetworkList:!1})),null!==n&&(void 0!==n.data?h.Alert.alert(E.default.t('ERROR_LABEL'),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}):h.Alert.alert(E.default.t('ERROR_LABEL'),JSON.stringify(n),[{text:E.default.t("OK"),onPress:function(){l.props.getPayCountryNetworkReset()}}],{cancelable:!1}))},l.renderEnvoieWalletToWalletResponse=function(){var t=l.props,o=t.resultEnvoieWalletToCash,n=t.errorEnvoieWalletToCash;null!==n&&void 0!==n.data&&h.Alert.alert(E.default.t("ERROR_TRANSFER"),n.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&h.Alert.alert(E.default.t("SUCCESS_TRANSFER"),o.response,[{text:E.default.t("OK"),onPress:function(){l.props.envoieUserWalletToCashReset(),V.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.renderDialogGetCommissionResponse=function(){var t=l.props.errorEnvoieWalletToCashGetCommission;null!==t&&void 0!==t.data&&h.Alert.alert(E.default.t("ERROR_LABLE"),t.data.error,[{text:E.default.t("OK"),onPress:function(){l.props.getCommissionUserWalletToCashReset()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,y.default)(t,0))||t<0?{errorMessage:E.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:E.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:E.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.modalConfirmTransaction=function(t){var o=t.response.frais,n=t.response.montant_net_final,s=t.response.montant_net_init;t.response.destinataire;return console.log("DATA SEND TO CONFIRM DIALOG",t),C.default.createElement(A.default.Container,{useNativeDriver:!0,visible:l.state.isModalConfirmVisible},C.default.createElement(A.default.Title,null,E.default.t('TRANSACTION_DETAIL')),C.default.createElement(h.View,null,C.default.createElement(h.View,{style:[B.blockView,{borderBottomColor:L.Color.borderColor}]},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('DESTINATAIRE'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},l.state.prenoms+" "+l.state.noms))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{style:[B.body2]},E.default.t('AMOUNT'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(l.state.montant,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FEES_AND_TAXES'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(o,' ')+" "+l.state.wallet.currency_code)))),C.default.createElement(h.View,{style:{paddingVertical:10}},C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2,O.FontWeight.bold]},E.default.t('NET_AMOUNT'),":")),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]}))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('INIT_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},(0,P.default)(s,' ')+" "+l.state.wallet.currency_code))),C.default.createElement(h.View,{style:{flexDirection:'row',marginTop:10}},C.default.createElement(h.View,{style:{flex:1}},C.default.createElement(h.Text,{tyle:[O.Typography.body2]},E.default.t('FINAL_COUNTRY'))),C.default.createElement(h.View,{style:{flex:1,alignItems:'flex-end'}},C.default.createElement(h.Text,{style:[O.Typography.caption1,L.Color.grayColor]},n))))),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('CANCEL_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1})}}),C.default.createElement(A.default.Button,{bold:!0,label:E.default.t('SUBMIT_LABEL'),onPress:function(){l.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),l.props.envoieUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,id_destinataire:l.state.numeroTelephone,type_document_destinataire:l.state.identityPiecesName,nom_destinataire:l.state.noms,prenom_destinataire:l.state.prenoms,id_document_destinataire:l.state.numeroIdentite,network_destinataire:l.state.walletActifs.filter(function(t){return t.name===l.state.walletActifSelect})[0].id,montant:l.state.montant,password:l.state.password}),l.props.getCommissionUserWalletToCashReset()}}))},l.onSubmitSendWalletToWallet=function(){var t=l.state,o=t.identityPiecesName,n=t.noms,s=t.prenoms,u=t.paysDestinationSelect,c=t.numeroIdentite,f=t.walletActifSelect,y=(t.typeIdDestinataireSelect,t.numeroTelephone),p=t.montant,C=t.password;l.ckeckIfFieldIsOK(o)?l.identityPiecesAnim.shake(800):l.ckeckIfFieldIsOK(u)?l.paysDestinationAnim.shake(800):l.ckeckIfFieldIsOK(f)?l.walletActifAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.firstnameAnim.shake(800):l.ckeckIfFieldIsOK(s)?l.lastnameAnim.shake(800):l.ckeckIfFieldIsOK(c)?l.numeroIdentiteAnim.shake(800):l.ckeckIfFieldIsOK(y)?l.numeroTelephoneAnim.shake(800):l.ckeckIfFieldIsOK(p)||!l.isMontantValid().isValid?(console.log("IS MONTANT VALID",l.isMontantValid()),l.montantAnim.shake(800)):l.ckeckIfFieldIsOK(C)?l.passwordAnim.shake(800):l.props.getCommissionUserWalletToCashAction({type:3,id_wallet_user:l.state.wallet.id,final_country:l.state.paysDestination.filter(function(t){return t.name===l.state.paysDestinationSelect})[0].id,montant:l.state.montant}),l.setState({triggerSubmitClick:!0})},l.renderLoader=function(){return C.default.createElement(R.ProgressDialog,{visible:l.state.modalVisible||l.props.loadingEnvoieWalletToCashGetCommission||l.props.loadingEnvoieWalletToCash||l.props.loadingCountryByDialCode||l.props.loadingActiveCountryList||l.props.loadingCountryByDialCode,title:E.default.t('LOADING'),message:E.default.t('LOADING_INFO')})},l.state={identityPieces:(0,I.identityPieces)(),identityPiecesName:(0,I.identityPieces)()[0].name,paysDestination:[],paysDestinationSelect:null,walletActifs:[],walletActifSelect:null,noms:null,prenoms:null,numeroTelephone:null,numeroIdentite:null,montant:null,password:null,loading:!1,user:null,modalVisible:!0,hasLoadActiveCountryList:!0,hasLoadActivePayCountryNetworkList:!0,triggerSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:D.store.getState().walletDetailReducer.result.response},l.props.getActiveCountryReset(),l.props.getActiveCountryByDialCodeReset(),l.props.getPayCountryNetworkReset(),l.props.envoieUserWalletToCashReset(),l.props.getCommissionUserWalletToCashReset(),l.props.getActiveCountryAction(),console.log("ENVOIE WALLET PROPS",l.props),l}return(0,c.default)(o,t),(0,l.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,_.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){null!=t.resultEnvoieWalletToCashGetCommission&&void 0!==t.resultEnvoieWalletToCashGetCommission.response&&(t.loadingEnvoieWalletToCashGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,y.default)(t.length,0)}},{key:"render",value:function(){var t=this;console.log("STATE",this.state);var o=this.props.resultEnvoieWalletToCashGetCommission;return C.default.createElement(C.default.Fragment,null,(this.state.modalVisible||this.props.loadingEnvoieWalletToCashGetCommission||this.props.loadingEnvoieWalletToCash||this.props.loadingCountryByDialCode||this.props.loadingActiveCountryList||this.props.loadingCountryByDialCode)&&this.renderLoader(),this.state.hasLoadActiveCountryList&&this.renderGetActionCountryList(),this.state.hasLoadActivePayCountryNetworkList&&this.renderGetPayCountryNetworkResponse(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),C.default.createElement(h.ScrollView,{style:B.container},C.default.createElement(h.Text,{style:B.subbigtitle},E.default.t('ENVOIE_WALLET_TO_CASH')),C.default.createElement(T.View,{ref:function(o){t.paysDestinationAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PAYS_DESTINATION'),data:this.state.paysDestination,useNativeDriver:!0,value:null===this.state.paysDestinationSelect?'':this.state.paysDestinationSelect,onChangeText:function(o,n,l){t.props.getPayCountryNetworkReset();var s=l.filter(function(t){return t.name===o});t.setState({paysDestinationSelect:o,hasLoadActivePayCountryNetworkList:!0},function(){t.props.getPayCountryNetworkAction({id_wallet_user:t.state.wallet.id,id_country:s[0].id})}),t.props.getCommissionUserWalletToCashReset()},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.walletActifAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('ACTIVE_WALLET'),data:this.state.walletActifs,useNativeDriver:!0,value:(0,p.default)(this.state.walletActifSelect)?'':this.state.walletActifSelect,onChangeText:function(o,n,l){t.setState({walletActifSelect:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.firstnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user',label:""+E.default.t('NAME'),iconColor:'#f95a25',iconSize:20,value:this.state.noms,onChangeText:function(o){t.setState({noms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.lastnameAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'user-circle-o',label:""+E.default.t('FIRSTNAME'),iconColor:'#f95a25',iconSize:20,value:this.state.prenoms,onChangeText:function(o){t.setState({prenoms:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.numeroTelephoneAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:(0,y.default)(this.state.typeIdDestinataireSelect,E.default.t('PHONE'))?'phone':'lock',label:E.default.t('PHONE'),iconColor:'#f95a25',keyboardType:"phone-pad",iconSize:20,value:this.state.numeroTelephone,onChangeText:function(o){t.setState({numeroTelephone:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.identityPiecesAnim=o},style:{width:(0,w.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},C.default.createElement(v.Dropdown,{label:E.default.t('PIECE_IDENTITE'),data:this.state.identityPieces,useNativeDriver:!0,value:this.state.identityPiecesName,onChangeText:function(o,n,l){t.setState({identityPiecesName:o})},valueExtractor:function(t){return t.name},labelExtractor:function(t){return t.name}})),C.default.createElement(T.View,{ref:function(o){t.numeroIdentiteAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'address-card',label:""+E.default.t('NUMERO_IDENTITE'),iconColor:'#f95a25',iconSize:20,onChangeText:function(o){t.setState({numeroIdentite:o})},style:B.input})),C.default.createElement(T.View,{ref:function(o){t.montantAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'money',label:E.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:B.input}),C.default.createElement(h.View,{style:{position:'absolute',left:(0,w.responsiveWidth)(82),top:35,flexDirection:'row'}},C.default.createElement(h.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),C.default.createElement(h.Text,{style:[O.Typography.body1,O.FontWeight.bold]},this.state.wallet.currency_code))),C.default.createElement(T.View,{ref:function(o){t.passwordAnim=o}},C.default.createElement(S.Fumi,{iconClass:b.default,iconName:'lock',label:E.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:B.input})),C.default.createElement(f.default,{style:B.btnvalide,textStyle:B.textbtnvalide,isLoading:this.state.isLoging,onPress:function(){t.onSubmitSendWalletToWallet()}},E.default.t('SUBMIT_LABEL'))))}}]),o})(C.Component));U.navigatorStyle={navBarBackgroundColor:L.Color.primaryColor,statusBarColor:L.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},U.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:E.default.t('DEPOSIT_WALLET_TO_CASH'),headerTintColor:'white',headerStyle:{backgroundColor:L.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:E.default.t('DEPOSIT_WALLET_TO_CASH')}};var F=(0,N.connect)(function(t){return{loadingCountryByDialCode:t.countryByDialCode.loading,resultCountryByDialCode:t.countryByDialCode.result,errorCountryByDialCode:t.countryByDialCode.error,loadingActiveCountryList:t.activeCountryListReducer.loading,resultActiveCountryList:t.activeCountryListReducer.result,errorActiveCountryList:t.activeCountryListReducer.error,loadingPayCountryNetwork:t.payCountryNetworkReducer.loading,resultPayCountryNetwork:t.payCountryNetworkReducer.result,errorPayCountryNetwork:t.payCountryNetworkReducer.error,loadingEnvoieWalletToCash:t.envoieUserWalletToCashReducer.loading,resultEnvoieWalletToCash:t.envoieUserWalletToCashReducer.result,errorEnvoieWalletToCash:t.envoieUserWalletToCashReducer.error,loadingEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.loading,resultEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.result,errorEnvoieWalletToCashGetCommission:t.envoieUserWalletToCashGetCommissionReducer.error}},function(t){return(0,k.bindActionCreators)({getActiveCountryByDialCodeAction:W.getActiveCountryByDialCodeAction,getActiveCountryByDialCodeReset:W.getActiveCountryByDialCodeReset,getPayCountryNetworkAction:W.getPayCountryNetworkAction,getPayCountryNetworkReset:W.getPayCountryNetworkReset,getActiveCountryAction:W.getActiveCountryAction,getActiveCountryReset:W.getActiveCountryReset,envoieUserWalletToCashAction:x.envoieUserWalletToCashAction,envoieUserWalletToCashReset:x.envoieUserWalletToCashReset,getCommissionUserWalletToCashAction:x.getCommissionUserWalletToCashAction,getCommissionUserWalletToCashReset:x.getCommissionUserWalletToCashReset},t)})(U);e.default=F;var B=h.StyleSheet.create({container:{flex:1,backgroundColor:L.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:L.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,w.responsiveHeight)(2),marginLeft:(0,w.responsiveWidth)(5),marginRight:(0,w.responsiveWidth)(5),borderRadius:5}})},1755,[4,1,8,9,10,12,13,709,681,1731,15,18,743,712,1604,967,527,1377,696,531,1508,1476,1020,1544,1623,711,1753,1751,1009,1625,766,806,807]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),u=n(r(d[4])),s=n(r(d[5])),c=n(r(d[6]));r(d[7]),r(d[8]),r(d[9]),r(d[10]),r(d[11]),r(d[12]),r(d[13]);var C=t(r(d[14])),p=r(d[15]),f=r(d[16]),v=n(r(d[17])),h=r(d[18]),R=r(d[19]),E=r(d[20]),b=n(r(d[21])),k=(n(r(d[22])),r(d[23])),_=r(d[24]),y=r(d[25]),A=r(d[26]),I=(r(d[27]),p.Dimensions.get("window").width,(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,u.default)(this,(0,s.default)(n).call(this,t))).renderLoader=function(){return C.default.createElement(y.ProgressDialog,{visible:l.props.loading,title:v.default.t('LOADING'),message:v.default.t('LOADING_INFO')})},l.renderDialogResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&p.Alert.alert(v.default.t("ERROR_LABLE"),o.data.error,[{text:v.default.t("OK"),onPress:function(){l.props.linkCardReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&p.Alert.alert(v.default.t("SUCCESS"),n.response,[{text:v.default.t("OK"),onPress:function(){l.props.navigation.pop(),l.props.linkCardReset()}}],{cancelable:!1})},l.onCreditCardChange=function(t){l.setState({creditCardInput:t})},l.isCreditCardValid=function(){var t=l.state.creditCardInput,n=[];return void 0!==t.status?('incomplete'===t.status.cvc&&n.push(v.default.t('CVC_CARD_ERROR')),'incomplete'===t.status.expiry&&n.push(v.default.t('EXPIRY_CARD_ERROR')),'incomplete'===t.status.number&&n.push(v.default.t('CARD_NUMBER_ERROR'))):n.push(v.default.t('THIS_FIELD_IS_REQUIRED')),n},l.onSubmit=function(){var t=l.state.creditCardInput;t.valid?l.setState({numCarte:parseInt(t.values.number.replace(/\s/g,'')),expiration_date:t.values.expiry},function(){l.props.linkCardAction({numero_carte:l.state.numCarte,expiration_date:l.state.expiration_date},l.state.user.id)}):t.valid||l.setState({displayCardError:!0}),l.setState({isSubmitClick:!0})},l.state={numCarte:0,cvv:0,expiration_date:'',creditCardInput:{},displayCardError:!1,isSubmitClick:!1,user:null},l.props.linkCardReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,A.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"render",value:function(){var t=this;return C.default.createElement(h.Provider,null,C.default.createElement(p.View,{style:{flex:1}},C.default.createElement(p.StatusBar,{backgroundColor:k.Color.primaryDarkColor,barStyle:"light-content",translucent:!1}),C.default.createElement(h.Appbar.Header,{dark:!0,style:{backgroundColor:k.Color.primaryColor}},C.default.createElement(h.Appbar.BackAction,{onPress:function(){t.props.navigation.pop()}}),C.default.createElement(h.Appbar.Content,{title:v.default.t('LINK_CARD')})),C.default.createElement(p.View,{style:[D.container]},this.renderLoader(),this.state.isSubmitClick&&this.renderDialogResponse(),C.default.createElement(p.ScrollView,{style:{padding:20}},C.default.createElement(p.View,{style:{marginTop:10}},C.default.createElement(f.CreditCardInput,{validColor:this.state.creditCardInput.valid?'green':'',invalidColor:this.state.creditCardInput.valid?'':'red',onChange:this.onCreditCardChange,requiresCVC:!1,labels:{number:v.default.t('CARD_NUMBER_LABEL'),expiry:v.default.t('CARD_EXPIRY_LABEL')}}),this.state.displayCardError&&this.isCreditCardValid().map(function(t){return C.default.createElement(p.Text,{style:{color:'red',marginLeft:15}},t)})),C.default.createElement(p.View,{style:{marginTop:20,marginLeft:10,marginRight:10}},C.default.createElement(b.default,{loading:!1,outline:!0,onPress:function(){return t.onSubmit()}},v.default.t('VALIDATE')))))))}}]),n})(C.Component));I.navigatorStyle={navBarBackgroundColor:k.Color.accentLightColor,statusBarColor:k.Color.accentColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},I.navigationOptions=function(t){t.navigation;return{header:null,headerMode:'none',headerTitle:null,activeColor:'#f0edf6',inactiveColor:'#3e2465'}};var S=(0,R.connect)(function(t){return{loading:t.linkCardReduder.loading,result:t.linkCardReduder.result,error:t.linkCardReduder.error}},function(t){return(0,E.bindActionCreators)({linkCardAction:_.linkCardAction,linkCardReset:_.linkCardReset},t)})(I);e.default=S;var D=p.StyleSheet.create({container:{flex:1,backgroundColor:k.Color.containerBackgroundColor},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:15,marginTop:10},contentButtonBottom:{borderTopWidth:1,paddingVertical:10,paddingHorizontal:20,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},blockView:{paddingVertical:10,borderBottomWidth:1},lottie:{width:248,height:248}})},1756,[4,1,8,9,10,12,13,1147,1148,1149,1150,1151,1146,1145,15,18,1659,712,1032,1508,1476,1724,1726,1020,1541,1377,711,1137]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),V=o(r(d[17])),w=r(d[18]),S=r(d[19]),R=r(d[20]),A=o(r(d[21])),_=r(d[22]),x=r(d[23]),k=r(d[24]),U=r(d[25]),L=r(d[26]),O=r(d[27]),D=r(d[28]),I=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[N.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[N.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,A.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:2,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,D.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:2,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:k.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,L.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:N.container},T.default.createElement(E.Text,{style:N.subbigtitle},y.default.t('ENVOIE_WALLET_TO_CARD')),T.default.createElement(v.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'credit-card',label:y.default.t('CARD_CVC_LABEL'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.codeCVV,onChangeText:function(o){o.length>3?t.setState({codeCVV:t.state.codeCVV.substring(0,3)}):t.setState({codeCVV:o})},style:N.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:N.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(w.Fumi,{iconClass:V.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:N.input})),T.default.createElement(f.default,{style:N.btnvalide,textStyle:N.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));I.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},I.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_WALLET_TO_CARD'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('DEPOSIT_WALLET_TO_CARD')}};var F=(0,S.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,R.bindActionCreators)({envoieUserWalletToCardAction:O.envoieUserWalletToCardAction,envoieUserWalletToCardReset:O.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:O.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:O.getCommissionUserWalletToCardReset},t)})(I);e.default=F;var N=E.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1757,[4,1,8,9,10,12,13,709,681,1731,15,18,743,1604,712,527,1377,531,696,1508,1476,1625,1020,1009,1544,766,711,1753,1623,806,807]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=o(r(d[2])),n=o(r(d[3])),s=o(r(d[4])),u=o(r(d[5])),c=o(r(d[6])),f=o(r(d[7])),C=o(r(d[8])),p=o(r(d[9])),T=t(r(d[10])),E=r(d[11]),v=t(r(d[12])),h=o(r(d[13])),y=o(r(d[14])),b=r(d[15]),W=r(d[16]),w=o(r(d[17])),V=r(d[18]),A=r(d[19]),S=r(d[20]),R=o(r(d[21])),_=r(d[22]),x=r(d[23]),O=r(d[24]),U=r(d[25]),k=r(d[26]),L=r(d[27]),I=r(d[28]),N=(r(d[29]),r(d[30]),(function(t){function o(t){var n;return(0,l.default)(this,o),(n=(0,s.default)(this,(0,u.default)(o).call(this,t))).renderEnvoieWalletToWalletResponse=function(){var t=n.props,o=t.resultEnvoieWalletToCard,l=t.errorEnvoieWalletToCard;null!==l&&void 0!==l.data&&E.Alert.alert(y.default.t("ERROR_TRANSFER"),l.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset()}}],{cancelable:!1}),null!==o&&null!==o.response&&E.Alert.alert(y.default.t("SUCCESS_TRANSFER"),o.response,[{text:y.default.t("OK"),onPress:function(){n.props.envoieUserWalletToCardReset(),U.IlinkEmitter.emit("refreshWallet"),n.props.navigation.pop()}}],{cancelable:!1})},n.renderDialogGetCommissionResponse=function(){var t=n.props.errorEnvoieWalletToCardGetCommission;null!==t&&void 0!==t.data&&E.Alert.alert(y.default.t("ERROR_LABLE"),t.data.error,[{text:y.default.t("OK"),onPress:function(){n.props.getCommissionUserWalletToCardReset()}}],{cancelable:!1})},n.modalConfirmTransaction=function(t){var o=t.response.frais,l=t.response.montant_net;return T.default.createElement(h.default.Container,{useNativeDriver:!0,visible:n.state.isModalConfirmVisible},T.default.createElement(h.default.Title,null,y.default.t('TRANSACTION_DETAIL')),T.default.createElement(E.View,null,T.default.createElement(E.View,{style:[D.blockView,{borderBottomColor:_.Color.borderColor}]},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{style:[D.body2]},y.default.t('AMOUNT'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(n.state.montant,' ')+" "+n.state.wallet.currency_code))),T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2]},y.default.t('FEES_AND_TAXES'))),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(o,' ')+" "+n.state.wallet.currency_code)))),T.default.createElement(E.View,{style:{paddingVertical:10}},T.default.createElement(E.View,{style:{flexDirection:'row',marginTop:10}},T.default.createElement(E.View,{style:{flex:1}},T.default.createElement(E.Text,{tyle:[x.Typography.body2,x.FontWeight.bold]},y.default.t('NET_AMOUNT'),":")),T.default.createElement(E.View,{style:{flex:1,alignItems:'flex-end'}},T.default.createElement(E.Text,{style:[x.Typography.caption1,_.Color.grayColor]},(0,R.default)(l,' ')+" "+n.state.wallet.currency_code))))),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('CANCEL_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1})}}),T.default.createElement(h.default.Button,{bold:!0,label:y.default.t('SUBMIT_LABEL'),onPress:function(){n.setState({isModalConfirmVisible:!1,isDataSubmit:!0}),n.props.envoieUserWalletToCardAction({type:2,cvv:n.state.codeCVV,id_wallet_user:n.state.wallet.id,montant:n.state.montant,password:n.state.password}),n.props.getCommissionUserWalletToCardReset()}}))},n.isMontantValid=function(){var t=n.state.montant;return parseInt((0,C.default)(t,0))||t<0?{errorMessage:y.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,I.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:y.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},n.onSubmitSendWalletToCard=function(){var t=n.state,o=t.codeCVV,l=t.montant,s=t.password;n.ckeckIfFieldIsOK(o)&&3===o?n.codeCVVAnim.shake(800):n.ckeckIfFieldIsOK(l)||!n.isMontantValid().isValid?n.montantAnim.shake(800):n.ckeckIfFieldIsOK(s)?n.passwordAnim.shake(800):n.props.getCommissionUserWalletToCardAction({type:2,id_wallet_user:n.state.wallet.id,montant:n.state.montant}),n.setState({triggerSubmitClick:!0})},n.renderLoader=function(){return T.default.createElement(W.ProgressDialog,{visible:n.props.loadingEnvoieWalletToCard||n.props.loadingEnvoieWalletToCardGetCommission,title:y.default.t('LOADING'),message:y.default.t('LOADING_INFO')})},n.state={montant:null,password:null,codeCVV:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:O.store.getState().walletDetailReducer.result.response},n.props.envoieUserWalletToCardReset(),n.props.getCommissionUserWalletToCardReset(),n}return(0,c.default)(o,t),(0,n.default)(o,[{key:"componentDidMount",value:function(){var t=this;(0,k.readUser)().then(function(o){o&&void 0!==o&&t.setState({user:o})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t),null!=t.resultEnvoieWalletToCardGetCommission&&void 0!==t.resultEnvoieWalletToCardGetCommission.response&&(t.loadingEnvoieWalletToCardGetCommission||this.setState({isModalConfirmVisible:!0}))}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:y.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,C.default)(t.length,0)}},{key:"render",value:function(){var t=this,o=this.props.resultEnvoieWalletToCardGetCommission;return T.default.createElement(T.default.Fragment,null,(this.props.loadingEnvoieWalletToCard||this.props.loadingEnvoieWalletToCardGetCommission)&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToWalletResponse(),this.state.triggerSubmitClick&&this.renderDialogGetCommissionResponse(),null!==o&&void 0!==o.response&&this.modalConfirmTransaction(o),T.default.createElement(E.ScrollView,{style:D.container},T.default.createElement(E.Text,{style:D.subbigtitle},y.default.t('ENVOIE_WALLET_TO_BANK')),T.default.createElement(v.View,{ref:function(o){t.codeCVVAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'id-card',label:y.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.codeCVV,onChangeText:function(o){t.setState({codeCVV:o})},style:D.input})),T.default.createElement(v.View,{ref:function(o){t.montantAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'money',label:y.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(o){t.setState({montant:o})},style:D.input}),T.default.createElement(E.View,{style:{position:'absolute',left:(0,b.responsiveWidth)(82),top:35,flexDirection:'row'}},T.default.createElement(E.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),T.default.createElement(E.Text,{style:[x.Typography.body1,x.FontWeight.bold]},this.state.wallet.currency_code))),T.default.createElement(v.View,{ref:function(o){t.passwordAnim=o}},T.default.createElement(V.Fumi,{iconClass:w.default,iconName:'lock',label:y.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(o){t.setState({password:o})},style:D.input})),T.default.createElement(f.default,{style:D.btnvalide,textStyle:D.textbtnvalide,onPress:function(){}},y.default.t('SUBMIT_LABEL'))))}}]),o})(T.Component));N.navigatorStyle={navBarBackgroundColor:_.Color.primaryColor,statusBarColor:_.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},N.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:y.default.t('DEPOSIT_WALLET_TO_BANK'),headerTintColor:'white',headerStyle:{backgroundColor:_.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:y.default.t('ENVOIE_WALLET_TO_BANK')}};var F=(0,A.connect)(function(t){return{loadingEnvoieWalletToCard:t.envoieUserWalletToCardReducer.loading,resultEnvoieWalletToCard:t.envoieUserWalletToCardReducer.result,errorEnvoieWalletToCard:t.envoieUserWalletToCardReducer.error,loadingEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.loading,resultEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.result,errorEnvoieWalletToCardGetCommission:t.envoieUserWalletToCardGetCommissionReducer.error}},function(t){return(0,S.bindActionCreators)({envoieUserWalletToCardAction:L.envoieUserWalletToCardAction,envoieUserWalletToCardReset:L.envoieUserWalletToCardReset,getCommissionUserWalletToCardAction:L.getCommissionUserWalletToCardAction,getCommissionUserWalletToCardReset:L.getCommissionUserWalletToCardReset},t)})(N);e.default=F;var D=E.StyleSheet.create({container:{flex:1,backgroundColor:_.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:_.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,b.responsiveHeight)(2),marginLeft:(0,b.responsiveWidth)(5),marginRight:(0,b.responsiveWidth)(5),borderRadius:5}})},1758,[4,1,8,9,10,12,13,709,681,1731,15,18,743,1604,712,527,1377,531,696,1508,1476,1625,1020,1009,1544,766,711,1753,1623,806,807]); diff --git a/screens/home/Home.js b/screens/home/Home.js index 06720978..d6323af4 100644 --- a/screens/home/Home.js +++ b/screens/home/Home.js @@ -1390,7 +1390,8 @@ class Home extends BaseScreen { translucent={true} /> {/* Start here to comment */} - { + {/* + { (this.state.loadingDialog || this.props.loading) ? { } }]) }} - /> + /> */} {this.makeCardSearch()} {this.makeSlidingUp()} {this.makeDialogLoader()} diff --git a/screens/identification/CreateIdentificationUser.js b/screens/identification/CreateIdentificationUser.js index a39bcabd..29fbf0fa 100644 --- a/screens/identification/CreateIdentificationUser.js +++ b/screens/identification/CreateIdentificationUser.js @@ -90,9 +90,10 @@ class CreateIdentificationUser extends Component { readUser().then((user) => { if (user) { if (user !== undefined) { + let firstname = user.firstname !== null ? user.firstname : ''; this.setState({ user, - lastname: `${user.firstname} ${user.lastname}` + lastname: `${firstname} ${user.lastname}` }); } } @@ -364,7 +365,7 @@ class CreateIdentificationUser extends Component { id_identity_document: this.state.numeroIdentite, expiry_date_document: moment(this.state.dateExpiration).format('DD-MM-YYYY'), phone_number: null, - id_user: 321 + id_user: this.state.user.id }); } this.setState({ diff --git a/screens/wallet/WalletDetail.js b/screens/wallet/WalletDetail.js index 3e346170..c8b2f369 100644 --- a/screens/wallet/WalletDetail.js +++ b/screens/wallet/WalletDetail.js @@ -307,7 +307,7 @@ class WalletDetail extends Component { } ]}> - {I18n.t('COUNTRY')} + {I18n.t('COUNTRY')} {wallet.country} @@ -405,8 +405,8 @@ class WalletDetail extends Component { - {I18n.t('CREATION_DATE')} - {this.getCreationDateToHumanFormat(wallet.created_date)} + {I18n.t('CREATION_DATE')} + {moment(wallet.created_date).format('DD/MM/YYYY')} ); @@ -776,18 +776,12 @@ class WalletDetail extends Component { - + {I18n.t('NANO_CREDIT')} - - - {I18n.t('NANO_CREDIT_DESCRIPTION')} - - - @@ -803,18 +797,12 @@ class WalletDetail extends Component { - + {I18n.t('NANO_SANTE')} - - - {I18n.t('NANO_SANTE_DESCRIPTION')} - - - diff --git a/screens/wallet/WalletDetailUser.js b/screens/wallet/WalletDetailUser.js index 0615090f..ac0be2d1 100644 --- a/screens/wallet/WalletDetailUser.js +++ b/screens/wallet/WalletDetailUser.js @@ -34,7 +34,7 @@ import 'moment/locale/en-nz' import 'moment/locale/en-gb' import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import { thousandsSeparators, isEmptyObject, transactionHistoryUser, optionDepotUserScreen, optionRetraitUserScreen, transactionHistoryLabel, optionPaiementFacture, displayToast, transactionHistoryIlinkLabel, isIlinkWorldWallet, cutStringWithoutDot } from '../../utils/UtilsFunction'; +import { thousandsSeparators, isEmptyObject, transactionHistoryUser, optionDepotUserScreen, optionRetraitUserScreen, transactionHistoryLabel, optionPaiementFacture, displayToast, transactionHistoryIlinkLabel, isIlinkWorldWallet, cutStringWithoutDot, cutString } from '../../utils/UtilsFunction'; import DeviceInfo from 'react-native-device-info'; import { readUser } from '../../webservice/AuthApi'; const thousands = require('thousands'); @@ -217,8 +217,8 @@ class WalletDetailUser extends Component { } ]}> - {I18n.t('COUNTRY')} - Pays + {I18n.t('COUNTRY')} + {wallet.country} - {I18n.t('CREATION_DATE')} - {this.getCreationDateToHumanFormat(wallet.createdAt)} + {I18n.t('CREATION_DATE')} + {moment(wallet.created_date).format('DD/MM/YYYY')} ); @@ -579,7 +579,7 @@ class WalletDetailUser extends Component { { - if (this.state.isIdentified) + if (!this.state.isIdentified) this.props.navigation.push(route.createIdentificationUser) else displayToast(I18n.t('ALREADY_IDENTIFIED')) diff --git a/screens/wallet/agent/EnvoiCashVersCashAgent.js b/screens/wallet/agent/EnvoiCashVersCashAgent.js index 2e18af24..36c09b70 100644 --- a/screens/wallet/agent/EnvoiCashVersCashAgent.js +++ b/screens/wallet/agent/EnvoiCashVersCashAgent.js @@ -361,7 +361,7 @@ class EnvoiCashVersCashAgent extends Component { {I18n.t('NET_AMOUNT')}: - {`${thousands(montant_net_final, ' ')} ${this.state.wallet.currency_code}`} + {`${thousands(montant_net_final, ' ')}}`} diff --git a/screens/wallet/agent/EnvoieCashVersAutreWalletAgent.js b/screens/wallet/agent/EnvoieCashVersAutreWalletAgent.js index 13af3b9c..567a860f 100644 --- a/screens/wallet/agent/EnvoieCashVersAutreWalletAgent.js +++ b/screens/wallet/agent/EnvoieCashVersAutreWalletAgent.js @@ -361,7 +361,7 @@ class EnvoieCashVersAutreWalletAgent extends Component { {I18n.t('NET_AMOUNT')}: - {`${thousands(montant_net_final, ' ')} ${this.state.wallet.currency_code}`} + {`${thousands(montant_net_final, ' ')}`} diff --git a/screens/wallet/agent/EnvoieCashVersCarteAgent.js b/screens/wallet/agent/EnvoieCashVersCarteAgent.js index 2e76c7da..e1dc34ec 100644 --- a/screens/wallet/agent/EnvoieCashVersCarteAgent.js +++ b/screens/wallet/agent/EnvoieCashVersCarteAgent.js @@ -66,6 +66,8 @@ class EnvoieCashVersCarteAgent extends Component { displayCardError: false, loading: false, user: null, + displayFirstStep: true, + displaySecondStep: false, triggerSubmitClick: false, isSubmitClick: false, isDataSubmit: false, @@ -156,7 +158,7 @@ class EnvoieCashVersCarteAgent extends Component { if (resultEnvoieWalletToCard !== null) { if (resultEnvoieWalletToCard.response !== null) { Alert.alert( - I18n.t("WITHDRAWAL_SUCCESS"), + I18n.t("SUCCESS_TRANSFER"), resultEnvoieWalletToCard.response, [ { @@ -350,43 +352,47 @@ class EnvoieCashVersCarteAgent extends Component { } - {I18n.t('DEPOSIT_CASH_TO_VISA_DESCRIPTION')} - { this.codeCVVAnim = comp }}> - - - { - (this.state.displayCardError) && - this.isCreditCardValid().map((item) => ( - {item} - )) - } - + {this.state.displayFirstStep && + <> - {/* {I18n.t('DEPOSIT_CASH_TO_VISA_DESCRIPTION')} + + { this.codeCVVAnim = comp }}> + + + { + (this.state.displayCardError) && + this.isCreditCardValid().map((item) => ( + {item} + )) + } + + + {/* */} - + - { this.montantAnim = comp }}> - { - this.setState({ montant }) - }} - style={styles.input} - > - - - { - }} - /> - {this.state.wallet.currency_code} - - + if (!this.state.creditCardInput.valid) + this.codeCVVAnim.shake(800); + else { + this.setState({ + displayFirstStep: !this.state.displayFirstStep, + displaySecondStep: !this.state.displaySecondStep, + }); + } + }}> + {I18n.t('NEXT')} + + } - { this.passwordAnim = comp }}> - { - this.setState({ password }) - }} - style={styles.input} - > - - + {this.state.displaySecondStep && + <> + { this.montantAnim = comp }}> + { + this.setState({ montant }) + }} + style={styles.input} + > + + + { this.onSubmitSendWalletToCard() }}> - {I18n.t('SUBMIT_LABEL')} + }} + /> + {this.state.wallet.currency_code} + + + + { this.passwordAnim = comp }}> + { + this.setState({ password }) + }} + style={styles.input} + > + + + + + + + } ) diff --git a/screens/wallet/agent/RetraitCarteVersCashAgent.js b/screens/wallet/agent/RetraitCarteVersCashAgent.js index 489bb9de..7acb2605 100644 --- a/screens/wallet/agent/RetraitCarteVersCashAgent.js +++ b/screens/wallet/agent/RetraitCarteVersCashAgent.js @@ -66,6 +66,8 @@ class RetraitCarteVersCashAgent extends Component { displayCardError: false, loading: false, user: null, + displayFirstStep: true, + displaySecondStep: false, triggerSubmitClick: false, isSubmitClick: false, isDataSubmit: false, @@ -350,43 +352,46 @@ class RetraitCarteVersCashAgent extends Component { } - {I18n.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION_AGENT')} + {this.state.displayFirstStep && + <> - { this.codeCVVAnim = comp }}> - - - { - (this.state.displayCardError) && - this.isCreditCardValid().map((item) => ( - {item} - )) - } - + {I18n.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION_AGENT')} - {/* { this.codeCVVAnim = comp }}> + + + { + (this.state.displayCardError) && + this.isCreditCardValid().map((item) => ( + {item} + )) + } + + + {/* */} - + - { this.montantAnim = comp }}> - { - this.setState({ montant }) - }} - style={styles.input} - > - - - { - }} - /> - {this.state.wallet.currency_code} - - + if (!this.state.creditCardInput.valid) + this.codeCVVAnim.shake(800); + else { + this.setState({ + displayFirstStep: !this.state.displayFirstStep, + displaySecondStep: !this.state.displaySecondStep, + }); + } + }}> + {I18n.t('NEXT')} + + } - { this.passwordAnim = comp }}> - { - this.setState({ password }) - }} - style={styles.input} - > - - + {this.state.displaySecondStep && + <> + { this.montantAnim = comp }}> + { + this.setState({ montant }) + }} + style={styles.input} + > + + + { this.onSubmitSendWalletToCard() }}> - {I18n.t('SUBMIT_LABEL')} + }} + /> + {this.state.wallet.currency_code} + + + + { this.passwordAnim = comp }}> + { + this.setState({ password }) + }} + style={styles.input} + > + + + + + + + } ) diff --git a/screens/wallet/agent/RetraitEnCashAgent.js b/screens/wallet/agent/RetraitEnCashAgent.js index edad5c0b..7fa490fa 100644 --- a/screens/wallet/agent/RetraitEnCashAgent.js +++ b/screens/wallet/agent/RetraitEnCashAgent.js @@ -283,7 +283,7 @@ class RetraitEnCashAgent extends Component { {this.state.displayFirstStep && <> - {I18n.t('ENVOIE_WALLET_TO_CASH')} + {I18n.t('WITHDRAWAL_IN_CASH_DESCRIPTION')} { this.idTransactionAnim = comp }}> {I18n.t('DESTINATAIRE')} - {destinataire} + {`${this.state.prenoms} ${this.state.noms}`} diff --git a/utils/UtilsFunction.js b/utils/UtilsFunction.js index b5e79597..54b245f1 100644 --- a/utils/UtilsFunction.js +++ b/utils/UtilsFunction.js @@ -52,7 +52,7 @@ export const displayToast = (message) => { } export const isIlinkWorldWallet = (walletName) => { - return isEqual(slugify(walletName).toLowerCase(), 'ilink'); + return isEqual(walletName, 'ilink'); } diff --git a/utils/i18n/en.json b/utils/i18n/en.json index 56cfd603..d1cc0655 100644 --- a/utils/i18n/en.json +++ b/utils/i18n/en.json @@ -72,6 +72,7 @@ "WITHDRAWAL": "Withdrawal", "LINK_CARD": "Link my card", "WITHDRAWAL_IN_CASH": "Withdrawal in cash", + "WITHDRAWAL_IN_CASH_DESCRIPTION": "Withdrawal money in cash", "WITHDRAWAL_WALLET_TO_CASH": "Withdrawal wallet to cash", "WITHDRAWAL_WALLET_TO_CASH_DESCRIPTION": "Withdrawal money from wallet to cash", "WITHDRAWAL_CARD_TO_WALLET": "Withdrawal card to wallet", diff --git a/utils/i18n/fr.json b/utils/i18n/fr.json index 957576cd..4c1e35ff 100644 --- a/utils/i18n/fr.json +++ b/utils/i18n/fr.json @@ -77,6 +77,7 @@ "WITHDRAWAL": "Retrait", "LINK_CARD": "Lier ma carte", "WITHDRAWAL_IN_CASH": "Retrait en cash", + "WITHDRAWAL_IN_CASH_DESCRIPTION": "Retrait d'argent en cash", "WITHDRAWAL_WALLET_TO_CASH": "Retrait de votre wallet vers cash", "WITHDRAWAL_WALLET_TO_CASH_DESCRIPTION": "Retirer de l'argent de votre Wallet vers cash", "WITHDRAWAL_CARD_TO_WALLET": "Retrait de votre carte vers wallet", diff --git a/webservice/IlinkConstants.js b/webservice/IlinkConstants.js index 815b8b49..76200458 100644 --- a/webservice/IlinkConstants.js +++ b/webservice/IlinkConstants.js @@ -7,11 +7,11 @@ export const isDebugMode = false //export const baseUrl = "http://test.ilink-app.com:8080/mobilebackendtest"; //const baseUrl = "https://ilink-app.com/mobilebackendtest2" -/* export const baseUrl = "http://test.ilink-app.com:8080/mobilebackend"; -export const testBaseUrl = "https://test.ilink-app.com"; */ +export const baseUrl = "http://test.ilink-app.com:8080/mobilebackend"; +export const testBaseUrl = "https://test.ilink-app.com"; -export const baseUrl = "https://preprod.ilink-app.com:8080/mobilebackend"; -export const testBaseUrl = "https://preprod.ilink-app.com"; +/* export const baseUrl = "https://preprod.ilink-app.com:8080/mobilebackend"; +export const testBaseUrl = "https://preprod.ilink-app.com"; */ //base url agent test //const baseUrl = "https://ilink-app.com/mobilebackendtest";