From f1e42c4570f5d64204578090e9b17091d26f4b03 Mon Sep 17 00:00:00 2001 From: Brice Zele Date: Fri, 6 May 2022 11:45:34 +0100 Subject: [PATCH] Ajout du month_price lors du renouvellement --- .../app/src/main/assets/index.android.bundle | 36 ++-- .../app/src/main/res/raw/utils_i18n_fr.json | 61 ++++-- redux/insurance/insurance.actions.js | 5 +- .../agent/HistoriqueNanoSanteAgentScreen.js | 2 +- .../HistoriqueNanoSanteSuperHyperScreen.js | 2 +- .../user/ActivateBuySubscriptionScreen.js | 119 ++++++------ screens/wallet/user/AddBeneficiaryScreen.js | 27 ++- .../user/HistoriqueNanoSanteUserScreen.js | 182 +++++++++++++++++- .../user/InsuranceSubscriptionScreen.js | 27 ++- screens/wallet/user/RenewAssuranceScreen.js | 87 ++++++++- utils/i18n/fr.json | 9 +- webservice/IlinkConstants.js | 1 + 12 files changed, 451 insertions(+), 107 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index 90e9e8ba..50d0a082 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -747,7 +747,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)}},743,[]); -__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.pdfViewerUrl=e.uploadInsuranceImagetUrl=e.autorisationCareRequestUrl=e.getInsurancePrimeAmountUrl=e.getAmountConsultationUrl=e.passwordValidationUrl=e.consultationUrl=e.executionPrescriptionUrl=e.createConsultationUrl=e.getNetworkActsUrl=e.getProviderClassUrl=e.buyInsuranceUrl=e.subscribeInsuranceUrl=e.getDrugAndDevicesUrl=e.getUserByNameOrNumberUrl=e.getUserByIdQRCodeUrl=e.checkInsuranceCoverageAmountUrl=e.getInsuranceListUrl=e.exclusionUrl=e.invoiceUrl=e.facturerSoinUrl=e.getQRCodeDetail=e.searchUserHomeUrl=e.searchUserUrl=e.payBillUrl=e.linkBankAccountUrl=e.getIlinkBankListUrl=e.getOperatorListUrl=e.getHistoryEpargnePendingUrl=e.getHistoryNanoPendingCreditUrl=e.getBankUrl=e.getSuperviseurHistoriqueUrl=e.getHyperviseurHistoriqueUrl=e.getNanoCreditAgentHistoryUrl=e.getNanoCreditUserHistoryUrl=e.getNanoCreditAccount=e.getNotificationUrl=e.saveOnesignalIds=e.casserEpargneUrl=e.epargnerArgentUrl=e.getNanoCreditDemandDureationUrl=e.joinGroupUrl=e.getNanoCreditDemandUrl=e.refundCreditDemandUrl=e.cautionCreditDemandtUrl=e.askNanoCreditUrl=e.cancelDemandUrl=e.treatDemandUrl=e.groupUrl=e.getCreditDemand=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.testBaseUrlWithPort=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.testBaseUrlWithPort="https://test.ilink-app.com:8086";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.getCreditDemand="https://test.ilink-app.com/walletService/groups/demands";e.groupUrl="https://test.ilink-app.com/walletService/groups";e.treatDemandUrl="https://test.ilink-app.com/walletService/groups/demands/validate";e.cancelDemandUrl="https://test.ilink-app.com/walletService/groups/demands/cancel";e.askNanoCreditUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/ask";e.cautionCreditDemandtUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/guarantee";e.refundCreditDemandUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/refund";e.getNanoCreditDemandUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/details";e.joinGroupUrl="https://test.ilink-app.com/walletService/groups/join";e.getNanoCreditDemandDureationUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/durations";e.epargnerArgentUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/make";e.casserEpargneUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/break";e.saveOnesignalIds="https://test.ilink-app.com/notificationService/onesignal";e.getNotificationUrl="https://test.ilink-app.com/notificationService/notifications";e.getNanoCreditAccount="https://test.ilink-app.com/walletService/groups/nanoCredit/accounts";e.getNanoCreditUserHistoryUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/all_demands";e.getNanoCreditAgentHistoryUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/guarantee_demands";e.getHyperviseurHistoriqueUrl="https://test.ilink-app.com/walletService/wallets/all_hyper_history";e.getSuperviseurHistoriqueUrl="https://test.ilink-app.com/walletService/wallets/all_super_history";e.getBankUrl="https://test.ilink-app.com/walletService/wallets/users/operators/bank";e.getHistoryNanoPendingCreditUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/demands_in_progress";e.getHistoryEpargnePendingUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/demands_in_progress";e.getOperatorListUrl="https://test.ilink-app.com/walletService/wallets/users/operators";e.getIlinkBankListUrl="https://test.ilink-app.com/walletService/wallets/users/banks_for_link";e.linkBankAccountUrl="https://test.ilink-app.com/walletService/wallets/users/link_bank_account";e.payBillUrl="https://test.ilink-app.com/walletService/transactions/ilink";e.searchUserUrl="https://test.ilink-app.com/walletService/search/users";e.searchUserHomeUrl="https://test.ilink-app.com/walletService/agents";e.getQRCodeDetail="https://test.ilink-app.com/walletService/qrcode/read";e.facturerSoinUrl="https://test.ilink-app.com/nanoSanteService/generate-invoice";e.invoiceUrl="https://test.ilink-app.com/nanoSanteService/invoices";e.exclusionUrl="https://test.ilink-app.com/nanoSanteService/exclusions";e.getInsuranceListUrl="https://test.ilink-app.com/nanoSanteService/insurances";e.checkInsuranceCoverageAmountUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/check-insurance-coverage-amount";e.getUserByIdQRCodeUrl="https://test.ilink-app.com/walletService/qrcode/read";e.getUserByNameOrNumberUrl="https://test.ilink-app.com/nanoSanteService/insured";e.getDrugAndDevicesUrl="https://test.ilink-app.com/nanoSanteService/drugs-and-devices";e.subscribeInsuranceUrl="https://test.ilink-app.com/nanoSanteService/insurances/subscriptions";e.buyInsuranceUrl="https://test.ilink-app.com/nanoSanteService/insurances/invoices";e.getProviderClassUrl="https://test.ilink-app.com/nanoSanteService/provider-classes";e.getNetworkActsUrl="https://test.ilink-app.com/nanoSanteService/acts";e.createConsultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/consultation";e.executionPrescriptionUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/execution";e.consultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets";e.passwordValidationUrl="https://test.ilink-app.com/nanoSanteService/password-validation";e.getAmountConsultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/performances-amount";e.getInsurancePrimeAmountUrl="https://test.ilink-app.com/nanoSanteService/insurances/subscriptions/bonus-amount";e.autorisationCareRequestUrl="https://test.ilink-app.com/nanoSanteService/authorizations-care-requests";e.uploadInsuranceImagetUrl="https://test.ilink-app.com:8086/insurances/subscriptions/upload-images";e.pdfViewerUrl="https://test.ilink-app.com:8086/pdf-viewer";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"}},744,[]); +__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.pdfViewerUrl=e.uploadInsuranceImagetUrl=e.autorisationCareRequestUrl=e.getInsurancePrimeAmountUrl=e.getAmountConsultationUrl=e.passwordValidationUrl=e.consultationUrl=e.executionPrescriptionUrl=e.createConsultationUrl=e.getNetworkActsUrl=e.getProviderClassUrl=e.buyInsuranceUrl=e.subscribeInsuranceUrl=e.getDrugAndDevicesUrl=e.getUserByNameOrNumberUrl=e.getUserByIdQRCodeUrl=e.checkInsuranceCoverageAmountUrl=e.getInsuranceListUrl=e.exclusionUrl=e.invoiceUserUrl=e.invoiceUrl=e.facturerSoinUrl=e.getQRCodeDetail=e.searchUserHomeUrl=e.searchUserUrl=e.payBillUrl=e.linkBankAccountUrl=e.getIlinkBankListUrl=e.getOperatorListUrl=e.getHistoryEpargnePendingUrl=e.getHistoryNanoPendingCreditUrl=e.getBankUrl=e.getSuperviseurHistoriqueUrl=e.getHyperviseurHistoriqueUrl=e.getNanoCreditAgentHistoryUrl=e.getNanoCreditUserHistoryUrl=e.getNanoCreditAccount=e.getNotificationUrl=e.saveOnesignalIds=e.casserEpargneUrl=e.epargnerArgentUrl=e.getNanoCreditDemandDureationUrl=e.joinGroupUrl=e.getNanoCreditDemandUrl=e.refundCreditDemandUrl=e.cautionCreditDemandtUrl=e.askNanoCreditUrl=e.cancelDemandUrl=e.treatDemandUrl=e.groupUrl=e.getCreditDemand=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.testBaseUrlWithPort=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.testBaseUrlWithPort="https://test.ilink-app.com:8086";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.getCreditDemand="https://test.ilink-app.com/walletService/groups/demands";e.groupUrl="https://test.ilink-app.com/walletService/groups";e.treatDemandUrl="https://test.ilink-app.com/walletService/groups/demands/validate";e.cancelDemandUrl="https://test.ilink-app.com/walletService/groups/demands/cancel";e.askNanoCreditUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/ask";e.cautionCreditDemandtUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/guarantee";e.refundCreditDemandUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/refund";e.getNanoCreditDemandUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/details";e.joinGroupUrl="https://test.ilink-app.com/walletService/groups/join";e.getNanoCreditDemandDureationUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/durations";e.epargnerArgentUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/make";e.casserEpargneUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/break";e.saveOnesignalIds="https://test.ilink-app.com/notificationService/onesignal";e.getNotificationUrl="https://test.ilink-app.com/notificationService/notifications";e.getNanoCreditAccount="https://test.ilink-app.com/walletService/groups/nanoCredit/accounts";e.getNanoCreditUserHistoryUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/all_demands";e.getNanoCreditAgentHistoryUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/guarantee_demands";e.getHyperviseurHistoriqueUrl="https://test.ilink-app.com/walletService/wallets/all_hyper_history";e.getSuperviseurHistoriqueUrl="https://test.ilink-app.com/walletService/wallets/all_super_history";e.getBankUrl="https://test.ilink-app.com/walletService/wallets/users/operators/bank";e.getHistoryNanoPendingCreditUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/demands_in_progress";e.getHistoryEpargnePendingUrl="https://test.ilink-app.com/walletService/groups/nanoCredit/savings/demands_in_progress";e.getOperatorListUrl="https://test.ilink-app.com/walletService/wallets/users/operators";e.getIlinkBankListUrl="https://test.ilink-app.com/walletService/wallets/users/banks_for_link";e.linkBankAccountUrl="https://test.ilink-app.com/walletService/wallets/users/link_bank_account";e.payBillUrl="https://test.ilink-app.com/walletService/transactions/ilink";e.searchUserUrl="https://test.ilink-app.com/walletService/search/users";e.searchUserHomeUrl="https://test.ilink-app.com/walletService/agents";e.getQRCodeDetail="https://test.ilink-app.com/walletService/qrcode/read";e.facturerSoinUrl="https://test.ilink-app.com/nanoSanteService/generate-invoice";e.invoiceUrl="https://test.ilink-app.com/nanoSanteService/invoices";e.invoiceUserUrl="https://test.ilink-app.com/nanoSanteService/insurances/invoices";e.exclusionUrl="https://test.ilink-app.com/nanoSanteService/exclusions";e.getInsuranceListUrl="https://test.ilink-app.com/nanoSanteService/insurances";e.checkInsuranceCoverageAmountUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/check-insurance-coverage-amount";e.getUserByIdQRCodeUrl="https://test.ilink-app.com/walletService/qrcode/read";e.getUserByNameOrNumberUrl="https://test.ilink-app.com/nanoSanteService/insured";e.getDrugAndDevicesUrl="https://test.ilink-app.com/nanoSanteService/drugs-and-devices";e.subscribeInsuranceUrl="https://test.ilink-app.com/nanoSanteService/insurances/subscriptions";e.buyInsuranceUrl="https://test.ilink-app.com/nanoSanteService/insurances/invoices";e.getProviderClassUrl="https://test.ilink-app.com/nanoSanteService/provider-classes";e.getNetworkActsUrl="https://test.ilink-app.com/nanoSanteService/acts";e.createConsultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/consultation";e.executionPrescriptionUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/execution";e.consultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets";e.passwordValidationUrl="https://test.ilink-app.com/nanoSanteService/password-validation";e.getAmountConsultationUrl="https://test.ilink-app.com/nanoSanteService/health-care-sheets/performances-amount";e.getInsurancePrimeAmountUrl="https://test.ilink-app.com/nanoSanteService/insurances/subscriptions/bonus-amount";e.autorisationCareRequestUrl="https://test.ilink-app.com/nanoSanteService/authorizations-care-requests";e.uploadInsuranceImagetUrl="https://test.ilink-app.com:8086/insurances/subscriptions/upload-images";e.pdfViewerUrl="https://test.ilink-app.com:8086/pdf-viewer";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"}},744,[]); __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},745,[746,749]); __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},746,[18,747]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=function(){return this}.call();e.install=function(){t.Promise||(t.Promise=s)},e.uninstall=function(){t.Promise&&t.Promise===s&&(t.Promise=void 0,delete t.Promise)};var o=void 0,u=0,c=1,f=2,s=e.Promise=function(t){if('function'!=typeof t)throw new TypeError('Promise constructor takes a function argument');if(!(this instanceof s))throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');var o=this;n.defineProperty(this,'funcs',{enumerable:!1,configurable:!1,writable:!1,value:[]}),n.defineProperty(this,'value',{enumerable:!1,configurable:!0,writable:!1,value:void 0});try{t(function(n){l(o,n)},u)}catch(n){u(n)}function u(n){y(o,n)}};function l(n,t){h(n,t)||v(n,t)}function h(t,o){var u,c;try{if(!(c=n.thenable(o)))return!1}catch(n){return y(t,n),!0}if(t===o)return y(t,new TypeError('Circular resolution of promises')),!0;try{c.call(o,function(n){if(!u){if(u=!0,o===n)return void y(t,new TypeError('Circular resolution of promises'));l(t,n)}},function(n){u||(u=!0,y(t,n))})}catch(n){u||(u=!0,y(t,n))}return!0}function v(n,t){n.state===o&&(b(n,t),p(n,u),setImmediate(function(){p(n,c),w(n)}))}function y(n,t){n.state===o&&(b(n,t),p(n,u),setImmediate(function(){p(n,f),w(n)}))}function p(t,o){n.defineProperty(t,'state',{enumerable:!1,configurable:!o,writable:!1,value:o})}function b(t,o){n.defineProperty(t,'value',{enumerable:!1,configurable:!1,writable:!1,value:o})}function w(n){for(var t=n.funcs,o=0,u=t.length;o1&&void 0!==arguments[1]?arguments[1]:'';return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/networks?country_id="+t+n,method:'GET',onLoading:u,onSuccess:s,onError:f})};e.fetchGetListInsuranceWithBeneficiaries=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return(0,o.ApiAction)({url:""+c.getInsuranceListUrl+t,method:'GET',onLoading:u,onSuccess:s,onError:f})};var E=function(){return{type:n.default.SUBSCRIBE_INSURANCE_PENDING}};e.fetchSubscribeInsurancePending=E;e.fetchSubscribeInsuranceReset=function(){return{type:n.default.SUBSCRIBE_INSURANCE_RESET}};var S=function(t){return{type:n.default.SUBSCRIBE_INSURANCE_SUCCESS,payload:t}};e.fetchSubscribeInsuranceSuccess=S;var l=function(t){return{type:n.default.SUBSCRIBE_INSURANCE_ERROR,payload:t}};e.fetchSubscribeInsuranceError=l;e.fetchSubscribeInsurance=function(t){return(0,o.ApiAction)({url:c.subscribeInsuranceUrl,data:t,method:'POST',onLoading:E,onSuccess:S,onError:l})};var h=function(){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_PENDING}};e.fetchGetInsurancePrimeAmountPending=h;e.fetchGetInsurancePrimeAmountReset=function(){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_RESET}};var _=function(t){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_SUCCESS,payload:t}};e.fetchGetInsurancePrimeAmountSuccess=_;var R=function(t){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_ERROR,payload:t}};e.fetchGetInsurancePrimeAmountError=R;e.fetchGetInsurancePrimeAmount=function(t){return(0,o.ApiAction)({url:c.getInsurancePrimeAmountUrl,data:t,method:'POST',onLoading:h,onSuccess:_,onError:R})};var p=function(){return{type:n.default.UPLOAD_INSURANCE_IMAGES_PENDING}};e.fetchUploadInsurancePending=p;e.fetchUploadInsuranceReset=function(){return{type:n.default.UPLOAD_INSURANCE_IMAGES_RESET}};var A=function(t){return{type:n.default.UPLOAD_INSURANCE_IMAGES_SUCCESS,payload:t}};e.fetchUploadInsuranceSuccess=A;var C=function(t){return{type:n.default.UPLOAD_INSURANCE_IMAGES_ERROR,payload:t}};e.fetchUploadInsuranceError=C;e.fetchUploadInsurance=function(t){return(0,o.ApiAction)({url:c.uploadInsuranceImagetUrl,data:t,accessToken:'gZ7KibrSvFNLxrGz49usnRiKBZ4OlX99',method:'POST',onLoading:p,onSuccess:A,onError:C})};var I=function(){return{type:n.default.GET_SUBSCRIPTION_LIST_PENDING}};e.fetchGetSubscriptionListPending=I;e.fetchGetSubscriptionListReset=function(){return{type:n.default.GET_SUBSCRIPTION_LIST_RESET}};var T=function(t){return{type:n.default.GET_SUBSCRIPTION_LIST_SUCCESS,payload:t}};e.fetchGetSubscriptionListSuccess=T;var N=function(t){return{type:n.default.GET_SUBSCRIPTION_LIST_ERROR,payload:t}};e.fetchGetSubscriptionListError=N;e.fetchGetSubscriptionList=function(t,n){var u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,o.ApiAction)({url:u?c.buyInsuranceUrl+"?user_id="+t+"&state="+n:c.getInsuranceListUrl+"?user_id="+t+"&type="+n,method:'GET',onLoading:I,onSuccess:T,onError:N})};var y=function(){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_PENDING}};e.fetchActivePaySubscriptionPending=y;e.fetchActivePaySubscriptionReset=function(){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_RESET}};var G=function(t){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchActivePaySubscriptionSuccess=G;var P=function(t){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_ERROR,payload:t}};e.fetchActivePaySubscriptionError=P;e.fetchActivePaySubscription=function(t,n){return(0,o.ApiAction)({url:c.buyInsuranceUrl+"/"+t+"/pay",data:n,method:'PUT',onLoading:y,onSuccess:G,onError:P})};var U=function(){return{type:n.default.STOP_SUBSCRIPTION_PENDING}};e.fetchStopSubscriptionPending=U;e.fetchStopSubscriptionReset=function(){return{type:n.default.STOP_SUBSCRIPTION_RESET}};var O=function(t){return{type:n.default.STOP_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchStopSubscriptionSuccess=O;var v=function(t){return{type:n.default.STOP_SUBSCRIPTION_ERROR,payload:t}};e.fetchStopSubscriptionError=v;e.fetchStopSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/stop",data:n,method:'PUT',onLoading:U,onSuccess:O,onError:v})};e.fetchRenewSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/renew",data:n,method:'PUT',onLoading:U,onSuccess:O,onError:v})};var D=function(){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_PENDING}};e.fetchAddBeneficiaryToSubscriptionPending=D;e.fetchAddBeneficiaryToSubscriptionReset=function(){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_RESET}};var L=function(t){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchAddBeneficiaryToSubscriptionSuccess=L;var B=function(t){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_ERROR,payload:t}};e.fetchAddBeneficiaryToSubscriptionError=B;e.fetchAddBeneficiaryToSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/add-beneficiaries",data:n,method:'PUT',onLoading:D,onSuccess:L,onError:B})};var b=function(){return{type:n.default.GET_USER_BY_ID_QR_CODE_PENDING}};e.fetchGetUserByIdQRCodePending=b;e.fetchGetUserByIdQRCodeReset=function(){return{type:n.default.GET_USER_BY_ID_QR_CODE_RESET}};var M=function(t){return{type:n.default.GET_USER_BY_ID_QR_CODE_SUCCESS,payload:t}};e.fetchGetUserByIdQRCodeSuccess=M;var k=function(t){return{type:n.default.GET_USER_BY_ID_QR_CODE_ERROR,payload:t}};e.fetchGetUserByIdQRCodeError=k;e.fetchGetUserByIdQRCode=function(t){return(0,o.ApiAction)({url:c.getUserByIdQRCodeUrl+"?"+t,method:'GET',onLoading:b,onSuccess:M,onError:k})};var Y=function(){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_PENDING}};e.fetchGetUserByNameOrNumberPending=Y;e.fetchGetUserByNameOrNumberReset=function(){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_RESET}};var x=function(t){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_SUCCESS,payload:t}};e.fetchGetUserByNameOrNumberSuccess=x;var w=function(t){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_ERROR,payload:t}};e.fetchGetUserByNameOrNumberError=w;e.fetchGetUserByNameOrNumber=function(t,n){return(0,o.ApiAction)({url:c.getUserByNameOrNumberUrl+"?network_id="+t+n,method:'GET',onLoading:Y,onSuccess:x,onError:w})};var H=function(){return{type:n.default.GET_DRUG_APPAREIL_PENDING}};e.fetchGetDrugAppareilPending=H;e.fetchGetDrugAppareilReset=function(){return{type:n.default.GET_DRUG_APPAREIL_RESET}};var Q=function(t){return{type:n.default.GET_DRUG_APPAREIL_SUCCESS,payload:t}};e.fetchGetDrugAppareilSuccess=Q;var F=function(t){return{type:n.default.GET_DRUG_APPAREIL_ERROR,payload:t}};e.fetchGetDrugAppareilError=F;e.fetchGetDrugAppareil=function(t,n){return(0,o.ApiAction)({url:c.getDrugAndDevicesUrl+"?network_id="+t+"&name="+n,method:'GET',onLoading:H,onSuccess:Q,onError:F})};var j=function(){return{type:n.default.ADD_DRUG_PENDING}};e.fetchAddDrugPending=j;e.fetchAddDrugReset=function(){return{type:n.default.ADD_DRUG_RESET}};var K=function(t){return{type:n.default.ADD_DRUG_SUCCESS,payload:t}};e.fetchAddDrugSuccess=K;var X=function(t){return{type:n.default.ADD_DRUG_ERROR,payload:t}};e.fetchAddDrugError=X;e.fetchAddDrug=function(t){return(0,o.ApiAction)({url:""+c.getDrugAndDevicesUrl,method:'POST',data:t,onLoading:j,onSuccess:K,onError:X})};var V=function(){return{type:n.default.GET_PROVIDER_CLASS_PENDING}};e.fetchGetProviderClassPending=V;e.fetchGetProviderClassReset=function(){return{type:n.default.GET_PROVIDER_CLASS_RESET}};var W=function(t){return{type:n.default.GET_PROVIDER_CLASS_SUCCESS,payload:t}};e.fetchGetProviderClassSuccess=W;var J=function(t){return{type:n.default.GET_PROVIDER_CLASS_ERROR,payload:t}};e.fetchGetProviderClassError=J;e.fetchGetProviderClass=function(t){return(0,o.ApiAction)({url:c.getProviderClassUrl+"?network_id="+t,method:'GET',onLoading:V,onSuccess:W,onError:J})};var q=function(){return{type:n.default.GET_NETWORK_ACT_PENDING}};e.fetchGetNetworkActsPending=q;e.fetchGetNetworkActsReset=function(){return{type:n.default.GET_NETWORK_ACT_RESET}};var Z=function(t){return{type:n.default.GET_NETWORK_ACT_SUCCESS,payload:t}};e.fetchGetNetworkActsSuccess=Z;var z=function(t){return{type:n.default.GET_NETWORK_ACT_ERROR,payload:t}};e.fetchGetNetworkActsError=z;e.fetchGetNetworkActs=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return(0,o.ApiAction)({url:c.getNetworkActsUrl+"?network_id="+t+"&code="+n+u,method:'GET',onLoading:q,onSuccess:Z,onError:z})};var $=function(){return{type:n.default.CREATE_CONSULTATION_PENDING}};e.fetchCreateConsultationPending=$;e.fetchCreateConsultationReset=function(){return{type:n.default.CREATE_CONSULTATION_RESET}};var ee=function(t){return{type:n.default.CREATE_CONSULTATION_SUCCESS,payload:t}};e.fetchCreateConsultationSuccess=ee;var te=function(t){return{type:n.default.CREATE_CONSULTATION_ERROR,payload:t}};e.fetchCreateConsultationError=te;e.fetchCreateConsultation=function(t){return(0,o.ApiAction)({url:""+c.createConsultationUrl,method:'POST',data:t,onLoading:$,onSuccess:ee,onError:te})};var ne=function(){return{type:n.default.GET_AMOUNT_CONSULTATION_PENDING}};e.fetchGetAmountConsultationPending=ne;e.fetchGetAmountConsultationReset=function(){return{type:n.default.GET_AMOUNT_CONSULTATION_RESET}};var re=function(t){return{type:n.default.GET_AMOUNT_CONSULTATION_SUCCESS,payload:t}};e.fetchGetAmountConsultationSuccess=re;var ce=function(t){return{type:n.default.GET_AMOUNT_CONSULTATION_ERROR,payload:t}};e.fetchGetAmountConsultationError=ce;e.fetchGetAmountConsultation=function(t){return(0,o.ApiAction)({url:""+c.getAmountConsultationUrl,method:'POST',data:t,onLoading:ne,onSuccess:re,onError:ce})};var oe=function(){return{type:n.default.GET_USER_CONSULTATION_PENDING}};e.fetchGetConsultationPending=oe;e.fetchGetConsultationReset=function(){return{type:n.default.GET_USER_CONSULTATION_RESET}};var ue=function(t){return{type:n.default.GET_USER_CONSULTATION_SUCCESS,payload:t}};e.fetchGetConsultationSuccess=ue;var ie=function(t){return{type:n.default.GET_USER_CONSULTATION_ERROR,payload:t}};e.fetchGetConsultationError=ie;e.fetchGetConsultation=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UNTREATED',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'CONSULTATION',s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'';return console.log("user_id",t),(0,o.ApiAction)({url:c.consultationUrl+"?state="+n+"&type="+u+(''!==t?'&user_id='+t:'')+s,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};e.fetchGetInvoiceHistory=function(t){return(0,o.ApiAction)({url:""+c.invoiceUrl+t,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};e.fetchGetSubscription=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'ALL',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return console.log("user_id",t),(0,o.ApiAction)({url:c.subscribeInsuranceUrl+"?user_id="+t+"&type="+n+u,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};var ae=function(){return{type:n.default.ACCEPT_REJECT_CONSULTATION_PENDING}};e.fetchAcceptRejectConsultationPending=ae;e.fetchAcceptRejectConsultationReset=function(){return{type:n.default.ACCEPT_REJECT_CONSULTATION_RESET}};var se=function(t){return{type:n.default.ACCEPT_REJECT_CONSULTATION_SUCCESS,payload:t}};e.fetchAcceptRejectConsultationSuccess=se;var fe=function(t){return{type:n.default.ACCEPT_REJECT_CONSULTATION_ERROR,payload:t}};e.fetchAcceptRejectConsultationError=fe;e.fetchAcceptRejectConsultation=function(t){return(0,o.ApiAction)({url:""+c.consultationUrl,method:'PUT',data:t,onLoading:ae,onSuccess:se,onError:fe})};var Ee=function(){return{type:n.default.EXECUTION_PRESCRIPTION_PENDING}};e.fetchExecutionPrescriptionPending=Ee;e.fetchExecutionPrescriptionReset=function(){return{type:n.default.EXECUTION_PRESCRIPTION_RESET}};var de=function(t){return{type:n.default.EXECUTION_PRESCRIPTION_SUCCESS,payload:t}};e.fetchExecutionPrescriptionSuccess=de;var Se=function(t){return{type:n.default.EXECUTION_PRESCRIPTION_ERROR,payload:t}};e.fetchExecutionPrescriptionError=Se;e.fetchExecutionPrescription=function(t){return(0,o.ApiAction)({url:""+c.executionPrescriptionUrl,method:'POST',data:t,onLoading:Ee,onSuccess:de,onError:Se})};var le=function(){return{type:n.default.MODIFY_PRESCRIPTION_PENDING}};e.fetchModifyPrescriptionPending=le;e.fetchModifyPrescriptionReset=function(){return{type:n.default.MODIFY_PRESCRIPTION_RESET}};var he=function(t){return{type:n.default.MODIFY_PRESCRIPTION_SUCCESS,payload:t}};e.fetchModifyPrescriptionSuccess=he;var _e=function(t){return{type:n.default.MODIFY_PRESCRIPTION_ERROR,payload:t}};e.fetchModifyPrescriptionError=_e;e.fetchModifyPrescription=function(t,n){return(0,o.ApiAction)({url:c.consultationUrl+"/"+t,method:'PUT',data:n,onLoading:le,onSuccess:he,onError:_e})};var Re=function(){return{type:n.default.DEMAND_AUTORISATION_PENDING}};e.fetchDemaneAutorisationSoinPending=Re;e.fetchDemaneAutorisationSoinReset=function(){return{type:n.default.DEMAND_AUTORISATION_RESET}};var pe=function(t){return{type:n.default.DEMAND_AUTORISATION_SUCCESS,payload:t}};e.fetchDemaneAutorisationSoinSuccess=pe;var Ae=function(t){return{type:n.default.DEMAND_AUTORISATION_ERROR,payload:t}};e.fetchDemaneAutorisationSoinError=Ae;e.fetchDemaneAutorisationSoin=function(t){return(0,o.ApiAction)({url:""+c.autorisationCareRequestUrl,method:'POST',data:t,onLoading:Re,onSuccess:pe,onError:Ae})};e.fetchGetDemandeAutorisationSoin=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return(0,o.ApiAction)({url:""+c.autorisationCareRequestUrl+t,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};var Ce=function(){return{type:n.default.DELETE_BENEFICIARY_PENDING}};e.fetchDeleteBeneficiaryPending=Ce;e.fetchDeleteBeneficiaryReset=function(){return{type:n.default.DELETE_BENEFICIARY_RESET}};var Ie=function(t){return{type:n.default.DELETE_BENEFICIARY_SUCCESS,payload:t}};e.fetchDeleteBeneficiarySuccess=Ie;var Te=function(t){return{type:n.default.DELETE_BENEFICIARY_ERROR,payload:t}};e.fetchDeleteBeneficiaryError=Te;e.fetchDeleteBeneficiary=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/delete-beneficiaries",method:'PUT',data:n,onLoading:Ce,onSuccess:Ie,onError:Te})};var Ne=function(){return{type:n.default.CHECK_HEALTH_CARE_SHEET_PENDING}};e.fetchCheckInsuranceCoverageAmountPending=Ne;e.fetchCheckInsuranceCoverageAmountReset=function(){return{type:n.default.CHECK_HEALTH_CARE_SHEET_RESET}};var ye=function(t){return{type:n.default.CHECK_HEALTH_CARE_SHEET_SUCCESS,payload:t}};e.fetchCheckInsuranceCoverageAmountSuccess=ye;var Ge=function(t){return{type:n.default.CHECK_HEALTH_CARE_SHEET_ERROR,payload:t}};e.fetchCheckInsuranceCoverageAmountError=Ge;e.fetchCheckInsuranceCoverageAmount=function(t){return(0,o.ApiAction)({url:c.checkInsuranceCoverageAmountUrl,method:'POST',data:t,onLoading:Ne,onSuccess:ye,onError:Ge})};var Pe=function(){return{type:n.default.GET_EXCLUSION_PENDING}};e.fetchGetExclusionPending=Pe;e.fetchGetExclusionReset=function(){return{type:n.default.GET_EXCLUSION_RESET}};var Ue=function(t){return{type:n.default.GET_EXCLUSION_SUCCESS,payload:t}};e.fetchGetExclusionSuccess=Ue;var Oe=function(t){return{type:n.default.GET_EXCLUSION_ERROR,payload:t}};e.fetchGetExclusionError=Oe;e.fetchGetExclusion=function(t){return(0,o.ApiAction)({url:c.exclusionUrl+"/"+t,method:'GET',onLoading:Pe,onSuccess:Ue,onError:Oe})}},1486,[1,1183,744,1120]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fetchModifyPrescriptionPending=e.fetchExecutionPrescription=e.fetchExecutionPrescriptionError=e.fetchExecutionPrescriptionSuccess=e.fetchExecutionPrescriptionReset=e.fetchExecutionPrescriptionPending=e.fetchAcceptRejectConsultation=e.fetchAcceptRejectConsultationError=e.fetchAcceptRejectConsultationSuccess=e.fetchAcceptRejectConsultationReset=e.fetchAcceptRejectConsultationPending=e.fetchGetSubscription=e.fetchGetInvoiceHistory=e.fetchGetConsultation=e.fetchGetConsultationError=e.fetchGetConsultationSuccess=e.fetchGetConsultationReset=e.fetchGetConsultationPending=e.fetchGetAmountConsultation=e.fetchGetAmountConsultationError=e.fetchGetAmountConsultationSuccess=e.fetchGetAmountConsultationReset=e.fetchGetAmountConsultationPending=e.fetchCreateConsultation=e.fetchCreateConsultationError=e.fetchCreateConsultationSuccess=e.fetchCreateConsultationReset=e.fetchCreateConsultationPending=e.fetchGetNetworkActs=e.fetchGetNetworkActsError=e.fetchGetNetworkActsSuccess=e.fetchGetNetworkActsReset=e.fetchGetNetworkActsPending=e.fetchGetProviderClass=e.fetchGetProviderClassError=e.fetchGetProviderClassSuccess=e.fetchGetProviderClassReset=e.fetchGetProviderClassPending=e.fetchAddDrug=e.fetchAddDrugError=e.fetchAddDrugSuccess=e.fetchAddDrugReset=e.fetchAddDrugPending=e.fetchGetDrugAppareil=e.fetchGetDrugAppareilError=e.fetchGetDrugAppareilSuccess=e.fetchGetDrugAppareilReset=e.fetchGetDrugAppareilPending=e.fetchGetUserByNameOrNumber=e.fetchGetUserByNameOrNumberError=e.fetchGetUserByNameOrNumberSuccess=e.fetchGetUserByNameOrNumberReset=e.fetchGetUserByNameOrNumberPending=e.fetchGetUserByIdQRCode=e.fetchGetUserByIdQRCodeError=e.fetchGetUserByIdQRCodeSuccess=e.fetchGetUserByIdQRCodeReset=e.fetchGetUserByIdQRCodePending=e.fetchAddBeneficiaryToSubscription=e.fetchAddBeneficiaryToSubscriptionError=e.fetchAddBeneficiaryToSubscriptionSuccess=e.fetchAddBeneficiaryToSubscriptionReset=e.fetchAddBeneficiaryToSubscriptionPending=e.fetchRenewSubscription=e.fetchStopSubscription=e.fetchStopSubscriptionError=e.fetchStopSubscriptionSuccess=e.fetchStopSubscriptionReset=e.fetchStopSubscriptionPending=e.fetchActivePaySubscription=e.fetchActivePaySubscriptionError=e.fetchActivePaySubscriptionSuccess=e.fetchActivePaySubscriptionReset=e.fetchActivePaySubscriptionPending=e.fetchGetSubscriptionList=e.fetchGetSubscriptionListError=e.fetchGetSubscriptionListSuccess=e.fetchGetSubscriptionListReset=e.fetchGetSubscriptionListPending=e.fetchUploadInsurance=e.fetchUploadInsuranceError=e.fetchUploadInsuranceSuccess=e.fetchUploadInsuranceReset=e.fetchUploadInsurancePending=e.fetchGetInsurancePrimeAmount=e.fetchGetInsurancePrimeAmountError=e.fetchGetInsurancePrimeAmountSuccess=e.fetchGetInsurancePrimeAmountReset=e.fetchGetInsurancePrimeAmountPending=e.fetchSubscribeInsurance=e.fetchSubscribeInsuranceError=e.fetchSubscribeInsuranceSuccess=e.fetchSubscribeInsuranceReset=e.fetchSubscribeInsurancePending=e.fetchGetListInsuranceWithBeneficiaries=e.fetchGetListInsurance=e.fetchGetListInsuranceError=e.fetchGetListInsuranceSuccess=e.fetchGetListInsuranceReset=e.fetchGetListInsurancePending=void 0,e.fetchGetExclusion=e.fetchGetExclusionError=e.fetchGetExclusionSuccess=e.fetchGetExclusionReset=e.fetchGetExclusionPending=e.fetchCheckInsuranceCoverageAmount=e.fetchCheckInsuranceCoverageAmountError=e.fetchCheckInsuranceCoverageAmountSuccess=e.fetchCheckInsuranceCoverageAmountReset=e.fetchCheckInsuranceCoverageAmountPending=e.fetchDeleteBeneficiary=e.fetchDeleteBeneficiaryError=e.fetchDeleteBeneficiarySuccess=e.fetchDeleteBeneficiaryReset=e.fetchDeleteBeneficiaryPending=e.fetchGetDemandeAutorisationSoin=e.fetchDemaneAutorisationSoin=e.fetchDemaneAutorisationSoinError=e.fetchDemaneAutorisationSoinSuccess=e.fetchDemaneAutorisationSoinReset=e.fetchDemaneAutorisationSoinPending=e.fetchModifyPrescription=e.fetchModifyPrescriptionError=e.fetchModifyPrescriptionSuccess=e.fetchModifyPrescriptionReset=void 0;var n=t(r(d[1])),c=r(d[2]),o=r(d[3]),u=function(){return{type:n.default.GET_INSURANCE_LIST_PENDING}};e.fetchGetListInsurancePending=u;e.fetchGetListInsuranceReset=function(){return{type:n.default.GET_INSURANCE_LIST_RESET}};var s=function(t){return{type:n.default.GET_INSURANCE_LIST_SUCCESS,payload:t}};e.fetchGetListInsuranceSuccess=s;var f=function(t){return{type:n.default.GET_INSURANCE_LIST_ERROR,payload:t}};e.fetchGetListInsuranceError=f;e.fetchGetListInsurance=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/networks?country_id="+t+n,method:'GET',onLoading:u,onSuccess:s,onError:f})};e.fetchGetListInsuranceWithBeneficiaries=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return(0,o.ApiAction)({url:""+c.getInsuranceListUrl+t,method:'GET',onLoading:u,onSuccess:s,onError:f})};var E=function(){return{type:n.default.SUBSCRIBE_INSURANCE_PENDING}};e.fetchSubscribeInsurancePending=E;e.fetchSubscribeInsuranceReset=function(){return{type:n.default.SUBSCRIBE_INSURANCE_RESET}};var S=function(t){return{type:n.default.SUBSCRIBE_INSURANCE_SUCCESS,payload:t}};e.fetchSubscribeInsuranceSuccess=S;var l=function(t){return{type:n.default.SUBSCRIBE_INSURANCE_ERROR,payload:t}};e.fetchSubscribeInsuranceError=l;e.fetchSubscribeInsurance=function(t){return(0,o.ApiAction)({url:c.subscribeInsuranceUrl,data:t,method:'POST',onLoading:E,onSuccess:S,onError:l})};var h=function(){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_PENDING}};e.fetchGetInsurancePrimeAmountPending=h;e.fetchGetInsurancePrimeAmountReset=function(){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_RESET}};var _=function(t){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_SUCCESS,payload:t}};e.fetchGetInsurancePrimeAmountSuccess=_;var R=function(t){return{type:n.default.GET_INSURANCE_PRIME_AMOUNT_ERROR,payload:t}};e.fetchGetInsurancePrimeAmountError=R;e.fetchGetInsurancePrimeAmount=function(t){return(0,o.ApiAction)({url:c.getInsurancePrimeAmountUrl,data:t,method:'POST',onLoading:h,onSuccess:_,onError:R})};var p=function(){return{type:n.default.UPLOAD_INSURANCE_IMAGES_PENDING}};e.fetchUploadInsurancePending=p;e.fetchUploadInsuranceReset=function(){return{type:n.default.UPLOAD_INSURANCE_IMAGES_RESET}};var A=function(t){return{type:n.default.UPLOAD_INSURANCE_IMAGES_SUCCESS,payload:t}};e.fetchUploadInsuranceSuccess=A;var C=function(t){return{type:n.default.UPLOAD_INSURANCE_IMAGES_ERROR,payload:t}};e.fetchUploadInsuranceError=C;e.fetchUploadInsurance=function(t){return(0,o.ApiAction)({url:c.uploadInsuranceImagetUrl,data:t,accessToken:'gZ7KibrSvFNLxrGz49usnRiKBZ4OlX99',method:'POST',onLoading:p,onSuccess:A,onError:C})};var I=function(){return{type:n.default.GET_SUBSCRIPTION_LIST_PENDING}};e.fetchGetSubscriptionListPending=I;e.fetchGetSubscriptionListReset=function(){return{type:n.default.GET_SUBSCRIPTION_LIST_RESET}};var T=function(t){return{type:n.default.GET_SUBSCRIPTION_LIST_SUCCESS,payload:t}};e.fetchGetSubscriptionListSuccess=T;var N=function(t){return{type:n.default.GET_SUBSCRIPTION_LIST_ERROR,payload:t}};e.fetchGetSubscriptionListError=N;e.fetchGetSubscriptionList=function(t,n){var u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,o.ApiAction)({url:u?c.buyInsuranceUrl+"?user_id="+t+"&state="+n:c.getInsuranceListUrl+"?user_id="+t+"&type="+n,method:'GET',onLoading:I,onSuccess:T,onError:N})};var y=function(){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_PENDING}};e.fetchActivePaySubscriptionPending=y;e.fetchActivePaySubscriptionReset=function(){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_RESET}};var G=function(t){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchActivePaySubscriptionSuccess=G;var P=function(t){return{type:n.default.ACTIVATE_PAY_SUBSCRIPTION_ERROR,payload:t}};e.fetchActivePaySubscriptionError=P;e.fetchActivePaySubscription=function(t,n){return(0,o.ApiAction)({url:c.buyInsuranceUrl+"/"+t+"/pay",data:n,method:'PUT',onLoading:y,onSuccess:G,onError:P})};var U=function(){return{type:n.default.STOP_SUBSCRIPTION_PENDING}};e.fetchStopSubscriptionPending=U;e.fetchStopSubscriptionReset=function(){return{type:n.default.STOP_SUBSCRIPTION_RESET}};var O=function(t){return{type:n.default.STOP_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchStopSubscriptionSuccess=O;var v=function(t){return{type:n.default.STOP_SUBSCRIPTION_ERROR,payload:t}};e.fetchStopSubscriptionError=v;e.fetchStopSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/stop",data:n,method:'PUT',onLoading:U,onSuccess:O,onError:v})};e.fetchRenewSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/renew",data:n,method:'PUT',onLoading:U,onSuccess:O,onError:v})};var D=function(){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_PENDING}};e.fetchAddBeneficiaryToSubscriptionPending=D;e.fetchAddBeneficiaryToSubscriptionReset=function(){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_RESET}};var L=function(t){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_SUCCESS,payload:t}};e.fetchAddBeneficiaryToSubscriptionSuccess=L;var B=function(t){return{type:n.default.ADD_BENEFICIARY_TO_SUBSCRIPTION_ERROR,payload:t}};e.fetchAddBeneficiaryToSubscriptionError=B;e.fetchAddBeneficiaryToSubscription=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/add-beneficiaries",data:n,method:'PUT',onLoading:D,onSuccess:L,onError:B})};var b=function(){return{type:n.default.GET_USER_BY_ID_QR_CODE_PENDING}};e.fetchGetUserByIdQRCodePending=b;e.fetchGetUserByIdQRCodeReset=function(){return{type:n.default.GET_USER_BY_ID_QR_CODE_RESET}};var M=function(t){return{type:n.default.GET_USER_BY_ID_QR_CODE_SUCCESS,payload:t}};e.fetchGetUserByIdQRCodeSuccess=M;var k=function(t){return{type:n.default.GET_USER_BY_ID_QR_CODE_ERROR,payload:t}};e.fetchGetUserByIdQRCodeError=k;e.fetchGetUserByIdQRCode=function(t){return(0,o.ApiAction)({url:c.getUserByIdQRCodeUrl+"?"+t,method:'GET',onLoading:b,onSuccess:M,onError:k})};var Y=function(){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_PENDING}};e.fetchGetUserByNameOrNumberPending=Y;e.fetchGetUserByNameOrNumberReset=function(){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_RESET}};var x=function(t){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_SUCCESS,payload:t}};e.fetchGetUserByNameOrNumberSuccess=x;var w=function(t){return{type:n.default.GET_USER_BY_NAME_OR_NUMBER_ERROR,payload:t}};e.fetchGetUserByNameOrNumberError=w;e.fetchGetUserByNameOrNumber=function(t,n){return(0,o.ApiAction)({url:c.getUserByNameOrNumberUrl+"?network_id="+t+n,method:'GET',onLoading:Y,onSuccess:x,onError:w})};var H=function(){return{type:n.default.GET_DRUG_APPAREIL_PENDING}};e.fetchGetDrugAppareilPending=H;e.fetchGetDrugAppareilReset=function(){return{type:n.default.GET_DRUG_APPAREIL_RESET}};var Q=function(t){return{type:n.default.GET_DRUG_APPAREIL_SUCCESS,payload:t}};e.fetchGetDrugAppareilSuccess=Q;var F=function(t){return{type:n.default.GET_DRUG_APPAREIL_ERROR,payload:t}};e.fetchGetDrugAppareilError=F;e.fetchGetDrugAppareil=function(t,n){return(0,o.ApiAction)({url:c.getDrugAndDevicesUrl+"?network_id="+t+"&name="+n,method:'GET',onLoading:H,onSuccess:Q,onError:F})};var j=function(){return{type:n.default.ADD_DRUG_PENDING}};e.fetchAddDrugPending=j;e.fetchAddDrugReset=function(){return{type:n.default.ADD_DRUG_RESET}};var K=function(t){return{type:n.default.ADD_DRUG_SUCCESS,payload:t}};e.fetchAddDrugSuccess=K;var X=function(t){return{type:n.default.ADD_DRUG_ERROR,payload:t}};e.fetchAddDrugError=X;e.fetchAddDrug=function(t){return(0,o.ApiAction)({url:""+c.getDrugAndDevicesUrl,method:'POST',data:t,onLoading:j,onSuccess:K,onError:X})};var V=function(){return{type:n.default.GET_PROVIDER_CLASS_PENDING}};e.fetchGetProviderClassPending=V;e.fetchGetProviderClassReset=function(){return{type:n.default.GET_PROVIDER_CLASS_RESET}};var W=function(t){return{type:n.default.GET_PROVIDER_CLASS_SUCCESS,payload:t}};e.fetchGetProviderClassSuccess=W;var J=function(t){return{type:n.default.GET_PROVIDER_CLASS_ERROR,payload:t}};e.fetchGetProviderClassError=J;e.fetchGetProviderClass=function(t){return(0,o.ApiAction)({url:c.getProviderClassUrl+"?network_id="+t,method:'GET',onLoading:V,onSuccess:W,onError:J})};var q=function(){return{type:n.default.GET_NETWORK_ACT_PENDING}};e.fetchGetNetworkActsPending=q;e.fetchGetNetworkActsReset=function(){return{type:n.default.GET_NETWORK_ACT_RESET}};var Z=function(t){return{type:n.default.GET_NETWORK_ACT_SUCCESS,payload:t}};e.fetchGetNetworkActsSuccess=Z;var z=function(t){return{type:n.default.GET_NETWORK_ACT_ERROR,payload:t}};e.fetchGetNetworkActsError=z;e.fetchGetNetworkActs=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return(0,o.ApiAction)({url:c.getNetworkActsUrl+"?network_id="+t+"&code="+n+u,method:'GET',onLoading:q,onSuccess:Z,onError:z})};var $=function(){return{type:n.default.CREATE_CONSULTATION_PENDING}};e.fetchCreateConsultationPending=$;e.fetchCreateConsultationReset=function(){return{type:n.default.CREATE_CONSULTATION_RESET}};var ee=function(t){return{type:n.default.CREATE_CONSULTATION_SUCCESS,payload:t}};e.fetchCreateConsultationSuccess=ee;var te=function(t){return{type:n.default.CREATE_CONSULTATION_ERROR,payload:t}};e.fetchCreateConsultationError=te;e.fetchCreateConsultation=function(t){return(0,o.ApiAction)({url:""+c.createConsultationUrl,method:'POST',data:t,onLoading:$,onSuccess:ee,onError:te})};var ne=function(){return{type:n.default.GET_AMOUNT_CONSULTATION_PENDING}};e.fetchGetAmountConsultationPending=ne;e.fetchGetAmountConsultationReset=function(){return{type:n.default.GET_AMOUNT_CONSULTATION_RESET}};var re=function(t){return{type:n.default.GET_AMOUNT_CONSULTATION_SUCCESS,payload:t}};e.fetchGetAmountConsultationSuccess=re;var ce=function(t){return{type:n.default.GET_AMOUNT_CONSULTATION_ERROR,payload:t}};e.fetchGetAmountConsultationError=ce;e.fetchGetAmountConsultation=function(t){return(0,o.ApiAction)({url:""+c.getAmountConsultationUrl,method:'POST',data:t,onLoading:ne,onSuccess:re,onError:ce})};var oe=function(){return{type:n.default.GET_USER_CONSULTATION_PENDING}};e.fetchGetConsultationPending=oe;e.fetchGetConsultationReset=function(){return{type:n.default.GET_USER_CONSULTATION_RESET}};var ue=function(t){return{type:n.default.GET_USER_CONSULTATION_SUCCESS,payload:t}};e.fetchGetConsultationSuccess=ue;var ie=function(t){return{type:n.default.GET_USER_CONSULTATION_ERROR,payload:t}};e.fetchGetConsultationError=ie;e.fetchGetConsultation=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UNTREATED',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'CONSULTATION',s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'';return console.log("user_id",t),(0,o.ApiAction)({url:c.consultationUrl+"?state="+n+"&type="+u+(''!==t?'&user_id='+t:'')+s,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};e.fetchGetInvoiceHistory=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,o.ApiAction)({url:n?""+c.invoiceUserUrl+t:""+c.invoiceUrl+t,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};e.fetchGetSubscription=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'ALL',u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'';return console.log("user_id",t),(0,o.ApiAction)({url:c.subscribeInsuranceUrl+"?user_id="+t+"&type="+n+u,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};var ae=function(){return{type:n.default.ACCEPT_REJECT_CONSULTATION_PENDING}};e.fetchAcceptRejectConsultationPending=ae;e.fetchAcceptRejectConsultationReset=function(){return{type:n.default.ACCEPT_REJECT_CONSULTATION_RESET}};var se=function(t){return{type:n.default.ACCEPT_REJECT_CONSULTATION_SUCCESS,payload:t}};e.fetchAcceptRejectConsultationSuccess=se;var fe=function(t){return{type:n.default.ACCEPT_REJECT_CONSULTATION_ERROR,payload:t}};e.fetchAcceptRejectConsultationError=fe;e.fetchAcceptRejectConsultation=function(t){return(0,o.ApiAction)({url:""+c.consultationUrl,method:'PUT',data:t,onLoading:ae,onSuccess:se,onError:fe})};var Ee=function(){return{type:n.default.EXECUTION_PRESCRIPTION_PENDING}};e.fetchExecutionPrescriptionPending=Ee;e.fetchExecutionPrescriptionReset=function(){return{type:n.default.EXECUTION_PRESCRIPTION_RESET}};var de=function(t){return{type:n.default.EXECUTION_PRESCRIPTION_SUCCESS,payload:t}};e.fetchExecutionPrescriptionSuccess=de;var Se=function(t){return{type:n.default.EXECUTION_PRESCRIPTION_ERROR,payload:t}};e.fetchExecutionPrescriptionError=Se;e.fetchExecutionPrescription=function(t){return(0,o.ApiAction)({url:""+c.executionPrescriptionUrl,method:'POST',data:t,onLoading:Ee,onSuccess:de,onError:Se})};var le=function(){return{type:n.default.MODIFY_PRESCRIPTION_PENDING}};e.fetchModifyPrescriptionPending=le;e.fetchModifyPrescriptionReset=function(){return{type:n.default.MODIFY_PRESCRIPTION_RESET}};var he=function(t){return{type:n.default.MODIFY_PRESCRIPTION_SUCCESS,payload:t}};e.fetchModifyPrescriptionSuccess=he;var _e=function(t){return{type:n.default.MODIFY_PRESCRIPTION_ERROR,payload:t}};e.fetchModifyPrescriptionError=_e;e.fetchModifyPrescription=function(t,n){return(0,o.ApiAction)({url:c.consultationUrl+"/"+t,method:'PUT',data:n,onLoading:le,onSuccess:he,onError:_e})};var Re=function(){return{type:n.default.DEMAND_AUTORISATION_PENDING}};e.fetchDemaneAutorisationSoinPending=Re;e.fetchDemaneAutorisationSoinReset=function(){return{type:n.default.DEMAND_AUTORISATION_RESET}};var pe=function(t){return{type:n.default.DEMAND_AUTORISATION_SUCCESS,payload:t}};e.fetchDemaneAutorisationSoinSuccess=pe;var Ae=function(t){return{type:n.default.DEMAND_AUTORISATION_ERROR,payload:t}};e.fetchDemaneAutorisationSoinError=Ae;e.fetchDemaneAutorisationSoin=function(t){return(0,o.ApiAction)({url:""+c.autorisationCareRequestUrl,method:'POST',data:t,onLoading:Re,onSuccess:pe,onError:Ae})};e.fetchGetDemandeAutorisationSoin=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'';return(0,o.ApiAction)({url:""+c.autorisationCareRequestUrl+t,method:'GET',onLoading:oe,onSuccess:ue,onError:ie})};var Ce=function(){return{type:n.default.DELETE_BENEFICIARY_PENDING}};e.fetchDeleteBeneficiaryPending=Ce;e.fetchDeleteBeneficiaryReset=function(){return{type:n.default.DELETE_BENEFICIARY_RESET}};var Ie=function(t){return{type:n.default.DELETE_BENEFICIARY_SUCCESS,payload:t}};e.fetchDeleteBeneficiarySuccess=Ie;var Te=function(t){return{type:n.default.DELETE_BENEFICIARY_ERROR,payload:t}};e.fetchDeleteBeneficiaryError=Te;e.fetchDeleteBeneficiary=function(t,n){return(0,o.ApiAction)({url:c.getInsuranceListUrl+"/"+t+"/delete-beneficiaries",method:'PUT',data:n,onLoading:Ce,onSuccess:Ie,onError:Te})};var Ne=function(){return{type:n.default.CHECK_HEALTH_CARE_SHEET_PENDING}};e.fetchCheckInsuranceCoverageAmountPending=Ne;e.fetchCheckInsuranceCoverageAmountReset=function(){return{type:n.default.CHECK_HEALTH_CARE_SHEET_RESET}};var ye=function(t){return{type:n.default.CHECK_HEALTH_CARE_SHEET_SUCCESS,payload:t}};e.fetchCheckInsuranceCoverageAmountSuccess=ye;var Ge=function(t){return{type:n.default.CHECK_HEALTH_CARE_SHEET_ERROR,payload:t}};e.fetchCheckInsuranceCoverageAmountError=Ge;e.fetchCheckInsuranceCoverageAmount=function(t){return(0,o.ApiAction)({url:c.checkInsuranceCoverageAmountUrl,method:'POST',data:t,onLoading:Ne,onSuccess:ye,onError:Ge})};var Pe=function(){return{type:n.default.GET_EXCLUSION_PENDING}};e.fetchGetExclusionPending=Pe;e.fetchGetExclusionReset=function(){return{type:n.default.GET_EXCLUSION_RESET}};var Ue=function(t){return{type:n.default.GET_EXCLUSION_SUCCESS,payload:t}};e.fetchGetExclusionSuccess=Ue;var Oe=function(t){return{type:n.default.GET_EXCLUSION_ERROR,payload:t}};e.fetchGetExclusionError=Oe;e.fetchGetExclusion=function(t){return(0,o.ApiAction)({url:c.exclusionUrl+"/"+t,method:'GET',onLoading:Pe,onSuccess:Ue,onError:Oe})}},1486,[1,1183,744,1120]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getSoinHistoryAction=e.getInvoiceHistoryReset=e.getInvoiceHistoryAction=e.facturerSoinReset=e.facturerSoinAction=e.getNanoCreditUserHistoryInProgressReset=e.getNanoCreditUserHistoryInProgressAction=e.getEpargneInProgressReset=e.getEpargneInProgressAction=e.getNanoCreditDemandDurationReset=e.getNanoCreditDemandDurationAction=e.askNanoCreditReset=e.askNanoCreditAction=e.joinGroupReset=e.joinGroupAction=e.treatDemandGroupReset=e.cancelDemandGroupAction=e.treatDemandGroupAction=e.createGroupReset=e.createGroupAction=void 0;var n=t(r(d[1])),o=t(r(d[2])),c=r(d[3]),s=r(d[4]),u=r(d[5]);e.createGroupAction=function(t,f){var h=s.store.getState().authKeyReducer,l=null!==h?h.authKey.token_type+" "+h.authKey.access_token:'';return function(s){s((0,c.fetchCreateGroupPending)()),(0,n.default)({url:""+u.groupUrl,method:0===f?'POST':1===f?'PUT':'DELETE',data:t,headers:{Authorization:l,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchCreateGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchCreateGroupError)(t.response)):t.request?s((0,c.fetchCreateGroupError)(t.request)):s((0,c.fetchCreateGroupError)(t.message))})}};e.createGroupReset=function(){return function(t){t((0,c.fetchCreateGroupReset)())}};e.treatDemandGroupAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchTreatDemandsGroupPending)()),(0,n.default)({url:""+u.treatDemandUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchTreatDemandsGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchTreatDemandsGroupError)(t.response)):t.request?s((0,c.fetchTreatDemandsGroupError)(t.request)):s((0,c.fetchTreatDemandsGroupError)(t.message))})}};e.cancelDemandGroupAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchTreatDemandsGroupPending)()),(0,n.default)({url:""+u.cancelDemandUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchTreatDemandsGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchTreatDemandsGroupError)(t.response)):t.request?s((0,c.fetchTreatDemandsGroupError)(t.request)):s((0,c.fetchTreatDemandsGroupError)(t.message))})}};e.treatDemandGroupReset=function(){return function(t){t((0,c.fetchTreatDemandsGroupReset)())}};e.joinGroupAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchJoinGroupPending)()),(0,n.default)({url:""+u.joinGroupUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchJoinGroupSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchJoinGroupError)(t.response)):t.request?s((0,c.fetchJoinGroupError)(t.request)):s((0,c.fetchJoinGroupError)(t.message))})}};e.joinGroupReset=function(){return function(t){t((0,c.fetchJoinGroupReset)())}};e.askNanoCreditAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchAskNanoCreditPending)()),(0,n.default)({url:""+u.askNanoCreditUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchAskNanoCreditSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchAskNanoCreditError)(t.response)):t.request?s((0,c.fetchAskNanoCreditError)(t.request)):s((0,c.fetchAskNanoCreditError)(t.message))})}};e.askNanoCreditReset=function(){return function(t){t((0,c.fetchAskNanoCreditReset)())}};e.getNanoCreditDemandDurationAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetNanoCreditDemandDurationPending)()),(0,n.default)({url:""+u.getNanoCreditDemandDureationUrl,method:'POST',data:t,headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetNanoCreditDemandDurationSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetNanoCreditDemandDurationError)(t.response)):t.request?s((0,c.fetchGetNanoCreditDemandDurationError)(t.request)):s((0,c.fetchGetNanoCreditDemandDurationError)(t.message))})}};e.getNanoCreditDemandDurationReset=function(){return function(t){t((0,c.fetchGetNanoCreditDemandDurationReset)())}};e.getEpargneInProgressAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetEpargneInProgressPending)()),(0,n.default)({url:u.getHistoryEpargnePendingUrl+"/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetEpargneInProgressSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetEpargneInProgressError)(t.response)):t.request?s((0,c.fetchGetEpargneInProgressError)(t.request)):s((0,c.fetchGetEpargneInProgressError)(t.message))})}};e.getEpargneInProgressReset=function(){return function(t){t((0,c.fetchGetEpargneInProgressReset)())}};e.getNanoCreditUserHistoryInProgressAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchGetNanoCreditUserHistoryInProgressPending)()),(0,n.default)({url:u.getHistoryNanoPendingCreditUrl+"/"+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchGetNanoCreditUserHistoryInProgressSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchGetNanoCreditUserHistoryInProgressError)(t.response)):t.request?s((0,c.fetchGetNanoCreditUserHistoryInProgressError)(t.request)):s((0,c.fetchGetNanoCreditUserHistoryInProgressError)(t.message))})}};e.getNanoCreditUserHistoryInProgressReset=function(){return function(t){t((0,c.fetchGetNanoCreditUserHistoryInProgressReset)())}};e.facturerSoinAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchFacturerSoinPending)()),(0,n.default)({url:""+u.facturerSoinUrl+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchFacturerSoinSuccess)(t))}).catch(function(t){t.response?s((0,c.fetchFacturerSoinError)(t.response)):t.request?s((0,c.fetchFacturerSoinError)(t.request)):s((0,c.fetchFacturerSoinError)(t.message))})}};e.facturerSoinReset=function(){return function(t){t((0,c.fetchFacturerSoinReset)())}};e.getInvoiceHistoryAction=function(t){var f=s.store.getState().authKeyReducer,h=null!==f?f.authKey.token_type+" "+f.authKey.access_token:'';return function(s){s((0,c.fetchInvoiceHistoryPending)()),(0,n.default)({url:""+u.invoiceUrl+t,method:'GET',headers:{Authorization:h,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchInvoiceHistorySuccess)(t))}).catch(function(t){t.response?s((0,c.fetchInvoiceHistoryError)(t.response)):t.request?s((0,c.fetchInvoiceHistoryError)(t.request)):s((0,c.fetchInvoiceHistoryError)(t.message))})}};e.getInvoiceHistoryReset=function(){return function(t){t((0,c.fetchInvoiceHistoryReset)())}};e.getSoinHistoryAction=function(t){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UNTREATED',h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'CONSULTATION',l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'',p=s.store.getState().authKeyReducer,y=null!==p?p.authKey.token_type+" "+p.authKey.access_token:'';return function(s){s((0,c.fetchInvoiceHistoryPending)()),(0,n.default)({url:u.consultationUrl+"?network_agent_id="+t+"&state="+f+"&type="+h+l,method:'GET',headers:{Authorization:y,'X-Localization':o.default.currentLocale()}}).then(function(t){console.log(t),s((0,c.fetchInvoiceHistorySuccess)(t))}).catch(function(t){t.response?s((0,c.fetchInvoiceHistoryError)(t.response)):t.request?s((0,c.fetchInvoiceHistoryError)(t.request)):s((0,c.fetchInvoiceHistoryError)(t.message))})}}},1487,[1,1079,720,1189,1105,744]); __d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=C;var o=l(r(d[1])),t=l(r(d[2])),u=l(r(d[3])),n=r(d[4]),f=l(r(d[5])),c=l(r(d[6])),y=r(d[7]),s=l(r(d[8]));function C(l){var f=l.style,C=l.styleText,p=l.icon,b=l.outline,h=l.full,v=l.round,O=l.loading,T=l.children,S=(0,t.default)(l,["style","styleText","icon","outline","full","round","loading","children"]);return u.default.createElement(n.TouchableOpacity,(0,o.default)({},S,{style:n.StyleSheet.flatten([[c.default.default,{backgroundColor:y.Color.primaryColor}],b&&[c.default.outline,{backgroundColor:y.Color.cardBackgroundColor,borderColor:y.Color.primaryColor}],h&&c.default.full,v&&c.default.round,f]),activeOpacity:.9}),p||null,u.default.createElement(s.default,{style:n.StyleSheet.flatten([c.default.textDefault,b&&{color:y.Color.primaryColor},C]),numberOfLines:1},T||"Button"),O?u.default.createElement(n.ActivityIndicator,{size:"small",color:b?y.Color.primaryColor:y.Color.whiteColor,style:{paddingLeft:5}}):null)}C.propTypes={style:f.default.oneOfType([f.default.object,f.default.array]),icon:f.default.node,outline:f.default.bool,full:f.default.bool,round:f.default.bool,loading:f.default.bool},C.defaultProps={style:{},icon:null,outline:!1,full:!1,round:!1,loading:!1}},1488,[1,6,59,15,18,70,1489,1034,1417]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=r(d[2]),c=r(d[3]),l=r(d[4]);function u(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);o&&(c=c.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,c)}return n}var f=n.StyleSheet.create({default:{height:56,borderRadius:8,flexDirection:"row",justifyContent:"center",alignItems:"center",paddingHorizontal:20},textDefault:(function(t){for(var n=1;n8?(0,P.cutString)(M(t[l],' '),6):M(t[l],' ')):(0,L.default)(l,'destinataire')?t[l].length>13?(0,P.cutString)(t[l],13):t[l]:(0,L.default)(l,'date')?(0,P.cutStringWithoutDot)(t[l],16):t[l]))}))},n.renderHistoryTransactionList=function(t){var l=n.props,o=l.resultTransaction,s=l.errorTransaction;return null!==s?void 0!==s.data?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},s.data.error)):p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},s)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:[J.contentService,{borderBottomColor:C.Color.primaryColor}]},(0,P.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(y.View,{style:{alignItems:'center'},key:l},p.default.createElement(T.default,{name:t.icon,size:24,color:C.Color.primaryColor}),p.default.createElement(y.Text,{style:(b.Typography.overline,C.Color.grayColor,{marginTop:4})},h.default.t(t.label)))})),o.response.map(function(l,o){return n.renderHistoryTransactionItem(l,o,t)})):p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_WALLET_HISTORY'))):void 0},n.renderHistoryTransaction=function(t){return p.default.createElement(p.default.Fragment,null,n.props.loadingTransaction?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===y.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(y.ProgressBarAndroid,null),p.default.createElement(y.Text,null,h.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(y.ActivityIndicator,{size:"large",color:'#ccc'}),p.default.createElement(y.Text,null,h.default.t('LOADING_DOTS')))):p.default.createElement(p.default.Fragment,null,p.default.createElement(y.View,{style:[J.checkDefault,{borderBottomColor:C.Color.borderColor}]},p.default.createElement(y.Text,{style:[b.Typography.title3,b.Typography.semibold]},h.default.t('TRANSACTION_HISTORY'))),n.renderHistoryTransactionList(t)))},n.state={index:0,heightHeader:E.heightHeader(),isModalConfirmVisible:!1,wallet:null,triggerTransferCommission:!1,loading:!1,isTriggerRefresh:!1,scrollHeaderY:0,user:null,displayModalHistory:!1,historyItemDetail:null,isIdentified:!1,isIdentifiedValidated:!1,password:'',isLogged:!1},K.extend({'+':'plus'}),n.scrollY=new y.Animated.Value(0),n.scrollHeaderY=new y.Animated.Value(0),n.deltaY=new y.Animated.Value(0),n.bgBannerY=new y.Animated.Value(0),n.heightImageBanner=E.scaleWithPixel(250,1),n.marginTopBanner=n.heightImageBanner-n.state.heightHeader-40,n.currentLocale=h.default.locale.includes("fr")?"fr":"en-gb",z.locale(n.currentLocale),V.IlinkEmitter.on("langueChange",n.updateLangue.bind((0,u.default)(n))),V.IlinkEmitter.on("refreshWallet",n.refresh),n.props.getWalletTransactionHistoryReset(),n.props.depositActionReset(),n.props.resetWalletListDetailReducer(),n.props.passwordValidationReset(),n.props.getUserIdentificationResetAction(),console.warn("Wallet User Props",n.props),n.getWalletDetail(),n.willFocus=n.props.navigation.addListener('willFocus',function(t){n.getWalletDetail()}),n}return(0,f.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this.props,l=t.result,o=t.resultUserIdentification;t.errorUserIdentification;if(null!==l&&void 0!==l.response){var n=l.response[0];console.log("WALLET RECUPERER",n),this.setState({wallet:n,isTriggerRefresh:!1})}null!==o&&(console.log("RESULT NUMBER DETAIL",o),void 0!==o.response&&this.setState({isIdentified:o.response.isIdentified,isIdentifiedValidated:o.response.isIdentifiedValidated}))}},{key:"componentWillReceiveProps",value:function(t){var l=this;null!==t.resultPasswordValidation&&200===t.resultPasswordValidation.status&&(this.setState({isLogged:!0}),this.props.passwordValidationReset()),null!==t.errorPasswordValidation&&(console.log(t.errorPasswordValidation),y.Alert.alert(h.default.t("ERROR_LABEL"),''+t.errorPasswordValidation,[{text:h.default.t("OK"),onPress:function(){l.props.passwordValidationReset()}}],{cancelable:!1}),this.setState({isLogged:!1}))}},{key:"shouldComponentUpdate",value:function(t,l){return this.state.triggerTransferCommission===l.triggerTransferCommission}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('WALLET')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return console.warn("Wallet Detail user Props",this.props),p.default.createElement(p.default.Fragment,null,this.state.displayModalHistory&&this.renderModalHistoryDetail(),p.default.createElement(y.StatusBar,{backgroundColor:C.Color.primaryDarkColor,barStyle:"light-content",translucent:!0}),this.props.loading||this.props.loadingUserIdentification?this.renderLoader():null!==this.props.result?Array.isArray(this.props.result.response)&&0===this.props.result.response.length?p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(y.Text,{style:b.Typography.body1},h.default.t('NO_WALLET_ACTIVED'))):"MIN"!==this.props.result.response.password_validation||this.state.isLogged?this.renderDetailWallet(this.props.result.response):p.default.createElement(y.ScrollView,{style:{flex:1,padding:20}},p.default.createElement(H.View,{ref:function(l){t.codeAgentAnim=l}},p.default.createElement(F.Fumi,{iconClass:Y.default,label:h.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,iconName:"lock",value:this.state.password,onChangeText:function(l){t.setState({password:l})},style:J.input})),p.default.createElement(j.default,{loading:this.props.loadingPasswordValidation,onPress:function(){t.props.passwordValidationAction({password:t.state.password,user_id:t.props.navigation.state.params.agentId,network_agent_id:t.props.result.response.network_agent_id})}},h.default.t('SUBMIT_LABEL'))):null!==this.props.error&&null!==this.props.error.data&&p.default.createElement(y.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(U.default,{style:J.lottie,source:r(d[55]),autoPlay:!0,loop:!1}),p.default.createElement(y.Text,{style:b.Typography.body1},this.props.error.data.error)))}}]),l})(p.Component);X.navigatorStyle={navBarBackgroundColor:C.Color.primaryColor,statusBarColor:C.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},X.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('WALLET'),headerTintColor:'white',headerStyle:{backgroundColor:C.Color.primaryColor,marginTop:23,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('WALLET')}};var q=(0,B.connect)(function(t){return{loading:t.walletDetailReducer.loading,result:t.walletDetailReducer.result,error:t.walletDetailReducer.error,loadingTransaction:t.walletHistoryReducer.loadingTransaction,resultTransaction:t.walletHistoryReducer.resultTransaction,errorTransaction:t.walletHistoryReducer.errorTransaction,loadingUserIdentification:t.getUserIdentificationReducer.loading,resultUserIdentification:t.getUserIdentificationReducer.result,errorUserIdentification:t.getUserIdentificationReducer.error,loadingPasswordValidation:t.passwordValidationReducer.loading,resultPasswordValidation:t.passwordValidationReducer.result,errorPasswordValidation:t.passwordValidationReducer.error}},function(t){return(0,W.bindActionCreators)({getWalletDetailActivated:R.getWalletDetailActivated,getWalletTransactionHistoryUser:O.getWalletTransactionHistoryUser,transferCommissionAction:S.transferCommissionAction,resetWalletListDetailReducer:R.resetWalletListDetailReducer,resetCommissionReducer:S.resetCommissionReducer,getWalletTransactionHistoryReset:O.getWalletTransactionHistoryReset,depositActionReset:A.depositActionReset,getUserIdentificationAction:v.getUserIdentificationAction,getUserIdentificationResetAction:v.getUserIdentificationResetAction,passwordValidationAction:R.passwordValidationAction,passwordValidationReset:R.passwordValidationReset},t)})(X);e.default=q;var J=y.StyleSheet.create({container:{flex:1,backgroundColor:C.Color.containerBackgroundColor},indicator:{height:2},tab:{width:E.getWidthDevice()/2},tabbar:{height:40},lottie:{width:248,height:248},imgBanner:{width:'100%',height:250,position:'absolute'},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,D.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"},tagFollow:{width:150,margin:10},profileItem:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:20,paddingTop:20},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},blockView:{paddingVertical:10,borderBottomWidth:.5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},transactionContainer:{flexDirection:'row',flex:1,paddingTop:10,paddingLeft:10,paddingRight:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',marginRight:1,shadowColor:C.Color.borderColor,borderColor:C.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:C.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:E.scaleWithPixel(30),height:E.scaleWithPixel(30)},content:{height:E.scaleWithPixel(60),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:5}})},1578,[4,1,8,9,10,12,11,13,15,18,882,720,1023,884,1034,553,1455,773,1077,535,1414,1480,1482,1576,1483,1424,689,744,1048,1047,1040,1042,1044,1045,1046,1043,1049,1061,1458,719,846,750,704,539,1488,1190,1460,815,1459,816,1579,1491,1492,1493,1490,1580]); __d(function(i,a,x,t,o,k,s){o.exports={v:"5.5.8",fr:60,ip:0,op:596,w:1047,h:777,nm:"00.03 - onboarding",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 9 Copy",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-90,ix:10},p:{a:0,k:[90,106.5,0],ix:2},a:{a:0,k:[102,79.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:353,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 7",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[100.463,80.917,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-2.86,3.54],[-4.09,-2.39],[2.67,-3.77],[4.29,2.63]],o:[[-4.3,-2.62],[2.88,-3.55],[4.09,2.39],[-2.66,3.78],[0,0]],v:[[-5.155,6.563],[-7.435,-4.657],[4.875,-6.677],[7.755,4.393],[-5.155,6.563]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 7",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[103.599,80.259,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-2.41,2.82],[-2.1,2.75],[-12.11,-5.5],[-3.6,-1.52],[2.16,-3.24],[2.19,-2.93],[10.69,8.1],[2.86,2.3]],o:[[2.59,-2.73],[2.8,2.21],[10.04,7.29],[-1.81,3.05],[-1.97,3.3],[-3.69,-1.6],[-12.85,-6.26],[2.46,-2.58],[0,0]],v:[[-26.457,-10.558],[-18.957,-18.898],[-9.887,-19.908],[23.403,-.588],[26.453,7.752],[20.253,17.562],[9.813,19.912],[-25.537,-1.748],[-26.457,-10.558]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.652915000916,.857227981091,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[101.898,78.947,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-5.56,6.87],[-18.38,-7.29],[5.46,-7.75],[14.95,12.49]],o:[[6.55,-6.35],[13.93,11.14],[-4.38,8.06],[-19.63,-8.52],[0,0]],v:[[-33.395,-6.029],[-15.235,-25.889],[33.395,2.161],[18.635,25.891],[-33.395,-6.029]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[28.118,30.452,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-5.56,6.86],[-.18,-.14],[6.55,-6.35],[.2,.16]],o:[[6.56,-6.33],[.19,.15],[-5.55,6.87],[-.2,-.16],[0,0]],v:[[-9.372,9.659],[8.818,-10.151],[9.368,-9.711],[-8.782,10.149],[-9.372,9.659]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.541000008583,.528999984264,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:353,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 15 Copy 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:15,ix:10},p:{a:0,k:[30,27,0],ix:2},a:{a:0,k:[24,21,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 43",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[24.473,18.911,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[.19,-.23],[-.72,-1.18],[-1.45,-1.19],[-.83,1.01],[2.94,2.41],[1.36,.49],[.45,0]],o:[[-.44,0],[-.38,.46],[.75,1.23],[2.94,2.42],[.83,-1.01],[-1.45,-1.2],[-.66,-.24],[0,0]],v:[[-4.515,-4.843],[-5.475,-4.503],[-4.945,-1.913],[-1.485,1.907],[5.475,4.497],[1.585,-1.823],[-2.835,-4.483],[-4.515,-4.843]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[2.12,1.75],[.79,1.3],[-.62,.75],[-1.67,-.61],[-1.52,-1.25],[1.31,-1.6],[.66,0]],o:[[-1.76,0],[-1.51,-1.24],[-.92,-1.52],[.61,-.75],[1.43,.52],[2.91,2.39],[-.36,.43],[0,0]],v:[[4.5,5.604],[-1.97,2.494],[-5.6,-1.516],[-6.06,-4.986],[-2.57,-5.196],[2.07,-2.416],[6.06,4.984],[4.5,5.604]],c:!1},ix:2},nm:"Trazado 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"mm",mm:1,nm:"Combinar trazados 1",mn:"ADBE Vector Filter - Merge",hd:!1},{ty:"fl",c:{a:0,k:[.650979995728,.858824014664,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 43",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 41",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[24.655,19.079,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-1.33,1.61],[3.8,3.12],[1.33,-1.61],[-3.79,-3.12]],o:[[3.8,3.11],[1.33,-1.62],[-3.79,-3.11],[-1.33,1.62],[0,0]],v:[[-2.409,2.93],[6.871,5.65],[2.401,-2.93],[-6.869,-5.65],[-2.409,2.93]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.588235020638,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 41",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 39",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[23.163,21.055,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-1.57,1.9],[-.03,.05],[3.7,3.05],[1.74,-1.53],[.08,-.09],[-3.8,-3.12]],o:[[3.79,3.11],[.03,-.04],[1.37,-1.95],[-3.61,-2.96],[-.09,.08],[-1.56,1.9],[0,0]],v:[[-2.911,3.468],[6.549,5.958],[7.339,4.958],[2.509,-3.132],[-6.391,-6.282],[-7.191,-5.332],[-2.911,3.468]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.000899999985,.471368998289,.800696015358,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 39",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd Group 8 Copy 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[31.5,33,0],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 6",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[29.528,31.203,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[.51,.37],[0,0],[-.83,0],[0,.84],[1.09,.44],[0,1.28],[-1.35,.22],[0,0],[0,0],[0,0],[-.43,-.25],[0,0],[.94,0],[0,-.59],[-1.27,-.53],[0,-1.31],[1.51,-.25],[0,0]],o:[[0,0],[-.86,-.02],[0,0],[.53,.35],[1.04,0],[0,-.81],[-1.49,-.58],[0,-1.21],[0,0],[0,0],[0,0],[.88,.03],[0,0],[-.31,-.18],[-1.13,0],[0,.76],[1.51,.62],[0,1.16],[0,0],[0,0]],v:[[-.494,6.026],[-.494,4.546],[-2.744,3.896],[-2.394,2.916],[-.274,3.546],[1.466,2.106],[-.194,.356],[-2.614,-2.184],[-.394,-4.544],[-.394,-6.024],[.516,-6.024],[.516,-4.604],[2.426,-4.084],[2.056,-3.114],[.206,-3.614],[-1.354,-2.354],[.466,-.684],[2.746,2.006],[.426,4.496],[.426,6.026]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.439215987921,.764706015587,.992156982422,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,32.203,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[4.77,0],[0,4.77],[-4.77,0],[0,-4.77]],o:[[0,4.77],[-4.77,0],[0,-4.77],[4.77,0],[0,0]],v:[[8.633,.003],[.003,8.633],[-8.637,.003],[.003,-8.637],[8.633,.003]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.588235020638,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:3,nm:"\u25bd Group 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[31.5,32.15,0],ix:2},a:{a:0,k:[31.5,31.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"\u25a8 Clip 3",parent:7,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-10.272,-10.272],[10.268,-10.272],[10.268,10.268],[-10.272,10.268]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Clip 2",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Fill 1",parent:4,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,31.553,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[5.68,0],[0,5.68],[-5.67,0],[0,-5.67]],o:[[0,5.68],[-5.67,0],[0,-5.67],[5.68,0],[0,0]],v:[[10.277,-.002],[-.003,10.268],[-10.273,-.002],[-.003,-10.272],[10.277,-.002]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.438284009695,.763110995293,.990489006042,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:3,nm:"Clip 2",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[30.817,31.553,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0}]},{id:"comp_3",layers:[{ddd:0,ind:1,ty:0,nm:"plane",refId:"comp_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[247.5,361,0],ix:2},a:{a:0,k:[247.5,361,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:495,h:722,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[267.053,303.83,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:240,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.32,2.672],[26.61,5.204],[-25.939,-13.44],[-6.443,3.09]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:251,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992],[-4.447,.514]],c:!0}]},{t:263,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992],[-4.447,.514]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.285308986902,.551240026951,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:239,op:264,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Fill 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[254.139,298.466,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:232,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[5.382,-6.048],[36.28,-6.293],[-29.907,-6.53]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:233,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[8.976,-3.208],[34.13,-4.91],[-30.15,-7.393]],c:!0}]},{t:244,s:[{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[30.544,13.834],[22.294,2.124],[-30.546,-13.836]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098039216,.850980392157,.737254901961,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Fill 25",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[249.305,298.889,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:225,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.832,19.195],[34.806,-6.362],[-32.023,-6.487],[-32.146,19.18]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:247,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836],[-2.233,-.334]],c:!0}]},{t:272,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836],[-2.233,-.334]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.113725490196,.356862745098,.76862745098,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 26",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[235.807,293.036,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:232,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[28.272,9.541],[27.844,.35],[-33.591,-3.387],[-24.606,-.116]],c:!0}]},{t:242,s:[{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[36.474,11.5],[27.844,.35],[-36.476,-11.5],[-25.843,-8.147]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098039216,.850980392157,.737254901961,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:225,op:264,st:0,bm:0},{ddd:0,ind:9,ty:3,nm:"\u25bd hand",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[244.637,349.5,0],ix:2},a:{a:0,k:[172.5,339,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:10,ty:3,nm:"\u25bd finger",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[264.12,452.108,0],ix:2},a:{a:0,k:[78,225,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:11,ty:4,nm:"Fill 22",parent:10,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[78.09,224.998,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:148,s:[{i:[[0,0],[0,0],[2.28,17.78],[-4.1,38.13],[.99,1.31],[3.7,-30.89],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[.22,-2.07],[-3.9,-5.14],[-3.7,30.89],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[24.939,-65.448],[24.779,-71.968],[5.779,-46.668],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:162,s:[{i:[[0,0],[0,0],[2.28,17.78],[3.647,33.758],[1.55,.542],[-6.192,-24.002],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[-.224,-2.07],[-7.173,-2.508],[5.016,19.445],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[6.543,-61.704],[2.037,-68.269],[-8.637,-34.88],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]},{t:195,s:[{i:[[0,0],[0,0],[2.28,17.78],[-4.1,38.13],[.99,1.31],[3.7,-30.89],[6.09,-13.27],[0,-13.3],[0,0]],o:[[0,0],[0,0],[-2.17,-16.87],[.22,-2.07],[-3.9,-5.14],[-3.7,30.89],[-6.09,13.27],[0,13.29],[0,0]],v:[[24.779,74.612],[16.219,32.622],[25.359,-6.208],[24.939,-65.448],[24.779,-71.968],[5.779,-46.668],[-18.821,5.402],[-13.351,43.812],[-25.661,73.882]],c:!0}]}],ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 22",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:12,ty:5,nm:"LINK",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:101,s:[262.517,508.611,0],to:[-2.667,-35,0],ti:[2.667,30.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:114,s:[246.517,298.611,0],to:[-2.667,-30.167,0],ti:[0,-3.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:130,s:[246.517,327.611,0],to:[0,3.333,0],ti:[0,1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:147,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:155,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:160,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:166,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:206,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:219,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{t:225,s:[246.517,318.611,0]}],ix:2},a:{a:0,k:[.741,-6.297,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:101,s:[7,7,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:114,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:130,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:147,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:155,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:160,s:[422,422,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:166,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:206,s:[301,301,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:219,s:[342,342,100]},{t:225,s:[0,0,100]}],ix:6}},ao:0,t:{d:{k:[{s:{s:17.6399993896484,f:"HelveticaNeue-Medium",t:"LINK",j:2,tr:0,lh:21.1679992675781,ls:0,fc:[1,1,1]},t:0}]},p:{},m:{g:1,a:{a:0,k:[0,0],ix:2}},a:[]},ip:100,op:236,st:56,bm:0},{ddd:0,ind:13,ty:4,nm:"Bg",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:94,s:[262.517,508.611,0],to:[-2.667,-35,0],ti:[2.667,30.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:107,s:[246.517,298.611,0],to:[-2.667,-30.167,0],ti:[0,-3.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:123,s:[246.517,327.611,0],to:[0,3.333,0],ti:[0,1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:140,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:149,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:157,s:[246.517,318.611,0],to:[0,0,0],ti:[0,0,0]},{t:165,s:[246.517,318.611,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:94,s:[7,7,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:107,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:123,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:140,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:149,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:157,s:[132,132,100]},{t:165,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[67,26],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:4,ix:4},nm:"Trazado de rect\xe1ngulo 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.145098039216,.458823559331,.988235353956,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:-5,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Bg",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:94,op:235,st:50,bm:0},{ddd:0,ind:14,ty:5,nm:"$",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-6.683,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:50,s:[239,482,0],to:[-4.333,-94.333,0],ti:[4.833,27.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:61,s:[201,336,0],to:[-4.833,-27.833,0],ti:[-1.5,3.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:65,s:[210,315,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:105,s:[210,315,0],to:[-1.833,-16.167,0],ti:[1.833,16.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:122,s:[199,218,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:193,s:[199,218,0],to:[0,-4.5,0],ti:[-6.333,-18.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:201,s:[199,191,0],to:[6.333,18.833,0],ti:[-6.333,-23.333,0]},{t:212,s:[237,331,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:50,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:61,s:[128,128,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:65,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:105,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:122,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:193,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:201,s:[100,100,100]},{t:212,s:[30,30,100]}],ix:6}},ao:0,t:{d:{k:[{s:{s:130,f:"Helvetica",t:"$",j:0,tr:0,lh:156,ls:0,fc:[.161,.855,.596]},t:0}]},p:{},m:{g:1,a:{a:0,k:[0,0],ix:2}},a:[]},ip:50,op:234,st:50,bm:0},{ddd:0,ind:15,ty:3,nm:"\u25bd mobile",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[174.36,234.308,0],ix:2},a:{a:0,k:[129,234,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:16,ty:4,nm:"Fill 16",parent:15,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,251.574,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[2.62,0],[0,0],[0,2.43],[0,0],[0,-3.09],[0,0],[-3.34,0],[0,0],[0,3.09],[0,0],[3.34,0]],o:[[0,0],[0,2.43],[0,0],[-2.63,0],[0,0],[-3.34,0],[0,0],[0,3.09],[0,0],[3.34,0],[0,0],[0,-3.09],[0,0]],v:[[33.349,-68.85],[15.749,-68.85],[10.999,-64.46],[-10.991,-64.46],[-15.741,-68.85],[-33.351,-68.85],[-39.401,-63.25],[-39.401,63.25],[-33.351,68.85],[33.349,68.85],[39.399,63.25],[39.399,-63.25],[33.349,-68.85]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 16",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:17,ty:3,nm:"\u25bd Group 15",parent:15,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[129,234,0],ix:2},a:{a:0,k:[129,234,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:18,ty:4,nm:"\u25a8 Clip 15",parent:20,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-42.664,-77.722],[42.666,-77.722],[42.666,77.718],[-42.664,77.718]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Clip 14",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:19,ty:4,nm:"Fill 13",parent:17,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,250.563,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,4.8],[0,0],[-5.15,0],[0,0],[0,-4.8],[0,0],[5.15,0]],o:[[0,0],[-5.15,0],[0,0],[0,-4.8],[0,0],[5.15,0],[0,0],[0,4.8],[0,0]],v:[[33.346,72.45],[-33.344,72.45],[-42.664,63.76],[-42.664,-63.76],[-33.344,-72.45],[33.346,-72.45],[42.666,-63.76],[42.666,63.76],[33.346,72.45]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.139209002256,.312480002642,.604874014854,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:20,ty:3,nm:"Clip 14",parent:17,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128.618,234.747,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:21,ty:4,nm:"Fill 11",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[169.084,395.56,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[-6.64,-22.74],[0,0],[-.43,.06],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[.44,0],[-.98,-15.43],[0,0],[0,0]],v:[[11.71,-31.733],[-8.47,-20.083],[-37.49,-18.553],[-27.99,31.627],[34.98,31.737],[36.28,31.627],[34.54,4.487],[37.49,-27.813]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.10622599721,.395851999521,.884595990181,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 11",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:22,ty:4,nm:"Fill 9",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[176.174,487.508,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[-6.34,-22.25],[-6.5,-5.66],[0,0],[0,0],[-4.79,1.76],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[3.7,12.95],[17.65,15.4],[0,0],[1.75,-1.29],[4.79,-1.76],[0,0],[0,0],[0,0],[0,0]],v:[[-39.853,-49.203],[-30.943,-2.013],[-15.773,28.647],[-2.363,61.737],[19.007,62.237],[38.667,61.737],[32.177,-26.163],[35.127,-58.463],[9.347,-62.383],[-10.833,-50.733]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:23,ty:4,nm:"Fill 7",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[58.869,343.405,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[1.57,-3.99],[-2.88,-3.91],[-8.48,18.92],[0,0]],o:[[0,0],[-4.11,1.23],[-1.76,4.53],[4.4,5.97],[8.49,-18.93],[0,0]],v:[[17.343,-17.838],[-3.227,-11.658],[-11.617,-2.998],[-16.587,15.782],[6.793,-2.488],[17.343,-17.838]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 7",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:24,ty:4,nm:"Fill 5",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[66.485,400.831,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[1.1,-4.14],[-2.87,-3.91],[-8.49,18.93],[0,0]],o:[[0,0],[-4.11,1.23],[0,0],[4.4,5.97],[8.48,-18.92],[0,0]],v:[[17.287,-17.839],[-3.293,-11.659],[-11.673,-2.999],[-16.653,15.781],[6.737,-2.499],[17.287,-17.839]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:25,ty:4,nm:"Fill 3",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[59.813,265.625,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[1.89,-8.45],[-17.1,9.87],[0,0]],o:[[0,0],[-1.47,6.59],[17.09,-9.87],[0,0]],v:[[10.323,-12.882],[-19.807,4.198],[6.953,7.998],[19.343,-12.882]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:26,ty:4,nm:"Fill 1",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[67.435,183.478,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[5.22,-5.22],[-9.9,-13.51],[0,0]],o:[[0,0],[-5.22,5.22],[9.9,13.5],[0,0]],v:[[3.289,-9.132],[-11.501,-15.872],[-1.931,11.958],[13.619,8.598]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_4",layers:[{ddd:0,ind:1,ty:0,nm:"plane",refId:"comp_5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:443,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:446,s:[31]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:450,s:[48]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[21]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:460,s:[6]},{t:464,s:[6]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:262,s:[239,307.5,0],to:[0,3.833,0],ti:[0,20.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:285,s:[239,330.5,0],to:[0,-20.833,0],ti:[0,21.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:302,s:[239,182.5,0],to:[0,-21.5,0],ti:[0,-.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:318,s:[239,201.5,0],to:[0,.833,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:334,s:[239,187.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:353,s:[239,201.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:372,s:[239,187.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:388,s:[239,201.5,0],to:[0,0,0],ti:[7.5,2.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:408,s:[239,187.5,0],to:[-7.5,-2.333,0],ti:[-23,6.667,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:426,s:[194,187.5,0],to:[23,-6.667,0],ti:[-30.5,6.667,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:430,s:[377,147.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:434,s:[377,147.5,0],to:[-2.667,0,0],ti:[2.667,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:438,s:[361,147.5,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:442,s:[361,147.5,0],to:[-45.333,18.833,0],ti:[45.584,-15.097,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:443,s:[89,260.5,0],to:[-129.333,42.833,0],ti:[-14,9.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:446,s:[89,242.5,0],to:[14,-9.833,0],ti:[-33.667,-2,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:450,s:[173,201.5,0],to:[33.667,2,0],ti:[-6.333,-8.833,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[291,254.5,0],to:[6.333,8.833,0],ti:[7,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:460,s:[211,254.5,0],to:[-7,0,0],ti:[-6.333,0,0]},{t:464,s:[249,254.5,0]}],ix:2},a:{a:0,k:[144,73.5,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:262,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:285,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:302,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:319,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:334,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:354,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:372,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:389,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:408,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:426,s:[83.333,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:430,s:[37.5,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:434,s:[-15.278,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:438,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:442,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:443,s:[-1.25,30,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:446,s:[16.194,61.673,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:450,s:[50.861,95.456,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:460,s:[100,100,100]},{t:464,s:[100,100,100]}],ix:6}},ao:0,w:288,h:147,ip:262,op:2920,st:22,bm:0}]},{id:"comp_5",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd plane",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[141,73.5,0],ix:2},a:{a:0,k:[109.5,49.5,0],ix:1},s:{a:0,k:[-100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Fill 13",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.241,48.463,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[16.146,15.988],[26.416,.118],[-26.414,-15.992]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.285308986902,.551240026951,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 13",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:3,nm:"\u25bd Group 12",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[93,42.487,0],ix:2},a:{a:0,k:[93,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"\u25a8 Clip 15",parent:6,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-30.64,-13.918],[30.64,-13.918],[30.64,13.922],[-30.64,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Clip 11",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Fill 10",parent:3,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.921,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-30.64,-13.918],[22.36,2.142],[30.64,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545725983264,.850599999521,.736917951995,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 10",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:3,nm:"Clip 11",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.921,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Fill 9",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[91.639,41.994,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[30.544,13.834],[22.294,2.124],[-30.546,-13.836]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 9",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:8,ty:3,nm:"\u25bd Group 8",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[97.5,42.487,0],ix:2},a:{a:0,k:[97.5,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"\u25a8 Clip 15",parent:11,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-32.16,-13.918],[32.16,-13.918],[32.16,13.922],[-32.16,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Clip 7",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Fill 6",parent:8,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.479,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-32.16,-13.918],[32.16,-2.128],[29.17,13.922]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.114449998444,.357769984825,.768370983647,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 6",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:11,ty:3,nm:"Clip 7",parent:8,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.479,42.034,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:12,ty:4,nm:"Fill 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[96.491,41.994,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[29.176,13.834],[32.166,-2.116],[-32.164,-13.836]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 5",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:13,ty:3,nm:"\u25bd Group 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.5,34.987,0],ix:2},a:{a:0,k:[109.5,34.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:14,ty:4,nm:"\u25a8 Clip 15",parent:16,td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-36.415,-11.444],[36.415,-11.444],[36.415,11.446],[-36.415,11.446]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Clip 3",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"fl",c:{a:0,k:[1,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:15,ty:4,nm:"Fill 2",parent:13,tt:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.244,34.611,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-36.415,-11.444],[27.795,.346],[36.415,11.446]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.545098006725,.850979983807,.737254977226,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:16,ty:3,nm:"Clip 3",parent:13,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.244,34.611,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:17,ty:4,nm:"Fill 1",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[109.428,34.987,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[36.474,11.5],[27.844,.35],[-36.476,-11.5]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[0,.485448002815,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Fill 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]},{id:"comp_6",layers:[{ddd:0,ind:1,ty:3,nm:"\u25bd lines1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[822,365.862,0],ix:2},a:{a:0,k:[93,42,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Line Copy 2",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[57,61.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[19,-7.5],[-19,7.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Line Copy 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[163.5,54,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[7.5,-3],[-7.5,3]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Line Copy",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[57,18,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[15,-6],[-15,6]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:5,ty:3,nm:"\u25bd lines2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[259.5,622.362,0],ix:2},a:{a:0,k:[130.5,58.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Line Copy 2",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.5,85.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[26.5,-10.5],[-26.5,10.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.145098000765,.458824008703,.988234996796,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Line Copy 3",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[229.5,76.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[10.5,-4.5],[-10.5,4.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy 3",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Line Copy",parent:5,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[81,25.5,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[21,-8.5],[-21,8.5]],c:!1},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.160784006119,.854902029037,.596077978611,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2.178,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Line Copy",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:3600,st:0,bm:0}]}],fonts:{list:[{fName:"Helvetica",fFamily:"Helvetica",fStyle:"Regular",ascent:71.8994140625},{fName:"HelveticaNeue-Medium",fFamily:"Helvetica Neue",fStyle:"Medium",ascent:71.39892578125}]},layers:[{ddd:0,ind:1,ty:0,nm:"billete",refId:"comp_0",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:515,s:[100]},{t:524,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[93.622]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:475,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:495,s:[-6]},{t:524,s:[-85]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[583.5,228.5,0],to:[128,-225,0],ti:[-16.311,-63.014,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:475,s:[852.5,256.5,0],to:[26.125,100.926,0],ti:[29.177,-76.41,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:495,s:[828.5,472.5,0],to:[-35.391,92.684,0],ti:[13.167,-24.167,0]},{t:524,s:[749.5,617.5,0]}],ix:2},a:{a:0,k:[87,108,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:475,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:495,s:[100,100,100]},{t:524,s:[100,100,100]}],ix:6}},ao:0,w:174,h:216,ip:456,op:575,st:456,bm:0},{ddd:0,ind:2,ty:0,nm:"billete",refId:"comp_0",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:500,s:[100]},{t:509,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:441,s:[93.622]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:460,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:480,s:[-78]},{t:509,s:[-121]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:441,s:[431.5,228.5,0],to:[-140,-123,0],ti:[8.833,-44,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:460,s:[299.5,366.5,0],to:[-8.833,44,0],ti:[-10.823,-40.41,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:480,s:[378.5,492.5,0],to:[25.667,95.833,0],ti:[13.5,-20.833,0]},{t:509,s:[297.5,617.5,0]}],ix:2},a:{a:0,k:[87,108,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:441,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:460,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:480,s:[100,100,100]},{t:509,s:[100,100,100]}],ix:6}},ao:0,w:174,h:216,ip:441,op:560,st:441,bm:0},{ddd:0,ind:3,ty:0,nm:"moneda2",refId:"comp_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:471,s:[100]},{t:481,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:440,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:456,s:[168]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:471,s:[283]},{t:481,s:[359]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:440,s:[596.5,214.5,0],to:[77,-158.833,0],ti:[-3,-114.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:456,s:[745.5,410.5,0],to:[2.022,76.93,0],ti:[12.167,-43.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:471,s:[719.5,567.5,0],to:[-12.167,43.167,0],ti:[7.833,-17,0]},{t:481,s:[672.5,669.5,0]}],ix:2},a:{a:0,k:[27,27,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:440,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:456,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:471,s:[100,100,100]},{t:481,s:[100,100,100]}],ix:6}},ao:0,w:54,h:54,ip:440,op:3572,st:-28,bm:0},{ddd:0,ind:4,ty:0,nm:"moneda2",refId:"comp_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:521,s:[100]},{t:531,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:506,s:[168]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:521,s:[283]},{t:531,s:[359]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:490,s:[505.5,202.5,0],to:[-39,-70.833,0],ti:[-3,-114.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:506,s:[415.5,377.5,0],to:[2.022,76.93,0],ti:[-4,-57.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:521,s:[439.5,659.5,0],to:[4,57.333,0],ti:[0,-10.333,0]},{t:531,s:[439.5,721.5,0]}],ix:2},a:{a:0,k:[27,27,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:490,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:506,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:521,s:[100,100,100]},{t:531,s:[100,100,100]}],ix:6}},ao:0,w:54,h:54,ip:490,op:3622,st:22,bm:0},{ddd:0,ind:5,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[100]},{t:498,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:457,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:475,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:490,s:[10.759]},{t:498,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:457,s:[576.5,196.5,0],to:[102.048,-180.472,0],ti:[-37.01,-75.973,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:475,s:[760.033,179.235,0],to:[45.362,93.116,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:490,s:[789.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:498,s:[766.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:457,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:475,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:490,s:[100,100,100]},{t:498,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:449,op:3603,st:3,bm:0},{ddd:0,ind:6,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:509,s:[100]},{t:517,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:476,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:494,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:509,s:[10.759]},{t:517,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:476,s:[481.5,196.5,0],to:[102.048,-180.472,0],ti:[-43.187,-72.639,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:494,s:[836.033,189.235,0],to:[55.362,93.116,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:509,s:[891.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:517,s:[869.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:476,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:494,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:509,s:[100,100,100]},{t:517,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:468,op:3622,st:22,bm:0},{ddd:0,ind:7,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:488,s:[100]},{t:496,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:455,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:473,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:488,s:[10.759]},{t:496,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:455,s:[456.5,251.5,0],to:[-63.952,-84.472,0],ti:[42.376,-28.014,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:473,s:[329.033,173.235,0],to:[-90.963,60.134,0],ti:[-4.793,-50.578,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:488,s:[262.552,423.259,0],to:[8.206,86.593,0],ti:[14.632,-14.74,0]},{t:496,s:[286.5,633.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:455,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:473,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:488,s:[100,100,100]},{t:496,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:455,op:3609,st:9,bm:0},{ddd:0,ind:8,ty:0,nm:"moneda1",refId:"comp_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:501,s:[100]},{t:509,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:468,s:[58]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:486,s:[30.933]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:501,s:[10.759]},{t:509,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:468,s:[481.5,196.5,0],to:[-63.952,-84.472,0],ti:[39.542,-31.89,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:486,s:[247.033,201.235,0],to:[-86.963,70.134,0],ti:[6.379,-68.863,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:501,s:[129.552,423.259,0],to:[-6.259,67.568,0],ti:[14.632,-14.74,0]},{t:509,s:[119.5,559.5,0]}],ix:2},a:{a:0,k:[31.5,33,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:468,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:486,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:501,s:[100,100,100]},{t:509,s:[100,100,100]}],ix:6}},ao:0,w:63,h:66,ip:468,op:3622,st:22,bm:0},{ddd:0,ind:9,ty:3,nm:"\u25bd Group 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[537,373.5,0],ix:2},a:{a:0,k:[408,358.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:540,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"hand",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:17,s:[-44]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:24,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:31,s:[0]},{t:39,s:[0]}],ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:17,s:[536.5,683.5,0],to:[-.167,-6.667,0],ti:[.167,4.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:24,s:[535.5,643.5,0],to:[-.167,-4.5,0],ti:[0,-1.5,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:31,s:[535.5,656.5,0],to:[0,1.5,0],ti:[0,.667,0]},{t:39,s:[535.5,652.5,0]}],ix:2},a:{a:0,k:[247.5,637,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:17,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:24,s:[107,107,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:31,s:[93,93,100]},{t:39,s:[100,100,100]}],ix:6}},ao:0,w:495,h:722,ip:15,op:3590,st:-10,bm:0},{ddd:0,ind:12,ty:0,nm:"lines",refId:"comp_6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[523.5,388.5,0],ix:2},a:{a:0,k:[523.5,388.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,w:1047,h:777,ip:0,op:3600,st:0,bm:0},{ddd:0,ind:13,ty:3,nm:"\u25bd claud",parent:9,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:-5,ix:10},p:{a:0,k:[436.128,449.486,0],ix:2},a:{a:0,k:[358.5,237,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:596,st:0,bm:0},{ddd:0,ind:14,ty:4,nm:"claud",parent:13,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[359.448,454.059,0],to:[0,-42.333,0],ti:[0,34.333,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:14,s:[359.448,200.059,0],to:[0,-34.333,0],ti:[0,-6.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:24,s:[359.448,248.059,0],to:[0,6.167,0],ti:[0,1.833,0]},{t:32,s:[359.448,237.059,0]}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:0,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:14,s:[110,110,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:24,s:[93,93,100]},{t:32,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[16.6,9.66],[6.9,-30.19],[4.87,-15.29],[1.22,-18.91],[-70.97,-5.24],[-27.57,0],[2.43,16.91],[18.25,9.24],[-16.22,17.31]],o:[[0,0],[-16.6,-9.66],[-6.89,30.19],[-4.87,15.3],[-1.21,18.92],[70.97,5.23],[27.58,0],[-2.43,-16.91],[-18.25,-9.23],[16.22,-17.31]],v:[[23.686,-77.78],[-39.254,-62.4],[-94.204,-63.52],[-118.814,-8.22],[-79.914,34.46],[-35.944,75.99],[74.766,78],[118.976,34.93],[87.746,3.1],[76.686,-32.02]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.874638020992,.942860007286,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"claud",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:596,st:0,bm:0}],markers:[],chars:[{ch:"$",size:130,style:"Regular",w:55.62,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[5.566,-.26],[0,0],[-1.726,-1.237],[0,-4.069],[1.106,-1.953]],o:[[0,0],[4.069,1.107],[2.995,2.116],[0,2.572],[-2.116,3.809]],v:[[29.834,-5.078],[29.834,-30.762],[38.525,-27.246],[43.018,-17.969],[41.357,-11.182]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,3.223],[-1.822,2.441],[-4.3,.163],[0,0],[2.15,1.823]],o:[[0,-2.669],[1.822,-2.441],[0,0],[-3.644,-.716],[-2.15,-1.823]],v:[[13.281,-52.197],[16.013,-59.863],[25.195,-63.77],[25.195,-40.82],[16.505,-44.629]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,-4.948],[-3.369,-3.125],[-7.065,-1.334],[0,0],[2.032,3.679],[.262,4.46],[0,0],[-1.855,-3.288],[-9.473,-.619],[0,0],[0,0],[0,0],[-3.125,2.018],[0,8.659],[4.395,3.06],[7.552,2.116],[0,0],[-2.051,-3.288],[-.228,-2.473],[0,0],[3.467,3.361],[6.477,.455],[0,0],[0,0],[0,0],[3.629,-3.971]],o:[[0,5.534],[3.368,3.125],[0,0],[-5.509,-.455],[-1.147,-2.051],[0,0],[0,5.599],[3.385,6.087],[0,0],[0,0],[0,0],[5.891,-.652],[5.631,-3.645],[0,-5.989],[-2.702,-1.855],[0,0],[4.492,.163],[1.106,1.791],[0,0],[-.163,-5.519],[-3.467,-3.36],[0,0],[0,0],[0,0],[-6.543,.066],[-3.63,3.972]],v:[[4.492,-51.611],[9.545,-38.623],[25.195,-31.934],[25.195,-5.322],[13.882,-11.523],[11.768,-21.289],[3.125,-21.289],[5.908,-7.959],[25.195,2.1],[25.195,11.572],[29.834,11.572],[29.834,2.1],[43.359,-1.904],[51.807,-20.361],[45.215,-33.936],[29.834,-39.893],[29.834,-63.672],[39.648,-58.496],[41.65,-52.1],[50.195,-52.1],[44.751,-65.42],[29.834,-71.143],[29.834,-77.539],[25.195,-77.539],[25.195,-71.045],[9.937,-64.99]],c:!0},ix:2},nm:"$",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"$",np:6,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica"},{ch:"L",size:17.6399993896484,style:"Medium",w:57.4,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[7.6,0],[56.4,0],[56.4,-10.8],[20.1,-10.8],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"L",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"L",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"I",size:17.6399993896484,style:"Medium",w:27.8,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[7.6,0],[20.1,0],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"I",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"I",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"N",size:17.6399993896484,style:"Medium",w:72.2,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[7.1,0],[19,0],[19,-52.5],[19.3,-52.5],[51.8,0],[65,0],[65,-71.4],[53.1,-71.4],[53.1,-18.8],[52.9,-18.8],[20.3,-71.4],[7.1,-71.4]],c:!0},ix:2},nm:"N",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"N",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"},{ch:"K",size:17.6399993896484,style:"Medium",w:68.5,data:{shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[7.6,0],[20.1,0],[20.1,-24],[30.3,-34.1],[53.7,0],[69.3,0],[38.8,-42.9],[67.3,-71.4],[51.9,-71.4],[20.1,-38.9],[20.1,-71.4],[7.6,-71.4]],c:!0},ix:2},nm:"K",mn:"ADBE Vector Shape - Group",hd:!1}],nm:"K",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}]},fFamily:"Helvetica Neue"}]}},1579,[]); __d(function(i,a,x,k,r,t,p){r.exports={v:"5.4.3",fr:30,ip:0,op:60,w:2048,h:2048,nm:"wallet_subtract_open",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:3,nm:"ctrl",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1024,1024,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.58,.58,.58],y:[1,1,1]},o:{x:[.42,.42,.42],y:[0,0,0]},n:["0p58_1_0p42_0","0p58_1_0p42_0","0p58_1_0p42_0"],t:0,s:[0,0,100],e:[398.598,398.598,100]},{t:30}],ix:6}},ao:0,ip:0,op:31,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"sub",parent:3,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[0,.69,0],ix:2},a:{a:0,k:[0,-23.814,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[256,-256],[-256,-256]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.16],y:[1]},o:{x:[.84],y:[0]},n:["0p16_1_0p84_0"],t:0,s:[0],e:[100]},{t:30}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:481,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[42.745,9.302],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:31,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"back",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[9.02,22.806],[.158,.391],[.447,1.057],[24.416,20.315],[.19,.157],[.656,.528],[.628,.493],[.217,.169],[46.245,0],[.034,0],[36.646,-45.343],[0,-47.682],[-110.457,0],[-35.832,53.944],[-.152,.232],[0,40.647]],o:[[-.155,-.392],[-.43,-1.066],[-12.561,-29.685],[-.19,-.158],[-.649,-.536],[-.622,-.5],[-.216,-.17],[-33.877,-26.385],[-.033,0],[-62.79,0],[-27.792,34.388],[0,110.586],[69.56,0],[.153,-.231],[20.787,-31.578],[0,-26.02]],v:[[186.02,-73.985],[185.543,-75.155],[184.237,-78.346],[127.747,-154.363],[127.18,-154.842],[125.214,-156.427],[123.349,-157.926],[122.695,-158.161],[0,-200],[-.1,-200],[-155.551,-125.885],[-200,-.167],[0,200],[166.647,110.464],[167.095,109.746],[200,-.292]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:31,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:3,nm:"scale",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[274.314,1665.438,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:1,k:[{i:{x:[.24,.24,.24],y:[1,1,1]},o:{x:[.76,.76,.76],y:[0,0,0]},n:["0p24_1_0p76_0","0p24_1_0p76_0","0p24_1_0p76_0"],t:0,s:[0,0,100],e:[400,400,100]},{t:59.859375}],ix:6}},ao:0,ip:0,op:61,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Layer 4",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[187.421,-160.36,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[17.67,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-17.672,0],[0,0],[0,17.67],[0,0],[0,36.967],[-36.969,0],[0,0]],o:[[0,0],[0,0],[0,0],[-37.708,0],[0,0],[0,0],[0,17.67],[0,0],[17.67,0],[0,0],[-36.969,0],[0,-36.969],[0,0],[0,-17.672]],v:[[155.292,-106.838],[133.871,-106.838],[133.83,-106.838],[-155.292,-106.838],[-187.421,-74.708],[-187.421,74.708],[-187.421,128.23],[-155.292,160.36],[155.292,160.36],[187.421,128.23],[187.421,93.724],[120.484,26.788],[187.421,-40.15],[187.421,-74.708]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Layer 6",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:26.056,s:[187.421,-113.36,0],e:[187.421,-160.36,0],to:[0,-7.83333349227905,0],ti:[0,7.83333349227905,0]},{t:50}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[2.577,15.136],[0,0],[0,0],[0,0]],o:[[-15.843,0],[0,0],[0,0],[-.064,.384],[0,0]],v:[[-155.292,-106.838],[-186.962,-133.598],[-186.962,-133.598],[-186.964,-133.588],[-187.421,-74.708]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.035294119269,.078431375325,.250980407,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Layer 5",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:26,s:[160.855,-237.958,0],e:[160.855,-293.958,0],to:[0,-9.33333301544189,0],ti:[0,9.33333301544189,0]},{t:49.9443359375}],ix:2},a:{a:0,k:[-26.566,-133.599,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-15.843,0],[0,0],[0,0],[17.672,0],[0,0],[2.575,-15.138]],o:[[0,0],[0,0],[0,-17.672],[0,0],[-15.843,0],[2.577,15.136]],v:[[-155.292,-106.838],[133.83,-106.838],[133.83,-128.23],[101.7,-160.36],[-155.292,-160.36],[-186.962,-133.598]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 4",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Layer 3",parent:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.24,y:1},o:{x:.76,y:0},n:"0p24_1_0p76_0",t:21.057,s:[238.905,-133.572,0],e:[307.905,-133.572,0],to:[11.5,0,0],ti:[-11.5,0,0]},{t:45}],ix:2},a:{a:0,k:[120.484,26.787,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-36.969],[-36.969,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,36.967],[0,0],[0,0],[0,0],[0,0],[-36.969,0]],v:[[120.484,26.788],[187.421,93.724],[187.421,92.014],[187.421,65.239],[187.421,-13.374],[187.421,-40.15]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.768627464771,.796078443527,.823529422283,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:1,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:61,st:0,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"subtract_open",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[724,1274,0],ix:2},a:{a:0,k:[1024,1024,0],ix:1},s:{a:0,k:[56,56,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:30,s:[0],e:[.967]},{t:59,s:[.967],h:1}],ix:2},w:2048,h:2048,ip:30,op:61,st:30,bm:0},{ddd:0,ind:4,ty:0,nm:"wallet_open",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1076.705,921.048,0],ix:2},a:{a:0,k:[1024,1024,0],ix:1},s:{a:0,k:[93,93,100],ix:6}},ao:0,tm:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:0,s:[0],e:[1.967]},{t:59,s:[1.967],h:1}],ix:2},w:2048,h:2048,ip:0,op:61,st:0,bm:0}],markers:[]}},1580,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=l(r(d[2])),n=l(r(d[3])),s=l(r(d[4])),c=l(r(d[5])),u=l(r(d[6])),f=l(r(d[7])),y=l(r(d[8])),p=t(r(d[9])),E=r(d[10]),T=r(d[11]),h=l(r(d[12])),w=l(r(d[13])),x=l(r(d[14])),C=l(r(d[15])),I=l(r(d[16])),_=t(r(d[17])),b=r(d[18]),V=r(d[19]),D=r(d[20]),A=r(d[21]),S=r(d[22]),R=l(r(d[23])),N=l(r(d[24])),O=r(d[25]),v=l(r(d[26])),k=r(d[27]),L=l(r(d[28])),H=l(r(d[29])),P=l(r(d[30])),U=l(r(d[31])),B=r(d[32]),M=r(d[33]),F=r(d[34]),G=r(d[35]),W=r(d[36]),j=r(d[37]),z=r(d[38]),Y=l(r(d[39])),q=(l(r(d[40])),r(d[41])),K=r(d[42]),Q=(r(d[43]),l(r(d[44]))),X=l(r(d[45]));r(d[46]);function J(t,l){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);l&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),o.push.apply(o,n)}return o}function Z(t){for(var l=1;l20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title)))))),p.default.createElement(E.View,{style:{flex:1}})):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.containerTouch]},p.default.createElement(E.TouchableOpacity,{style:te.contain,onPress:function(){R.default.isNil(o.state.isIdentified)?o.redirectToRoute(t):(console.log(t),R.default.isEqual(t.screen,'createIdentificationUser')?o.state.isIdentified?(0,k.displayToast)(w.default.t('ALREADY_IDENTIFIED')):o.redirectToRoute(t):R.default.isEqual(t.screen,'modifyIdentificationUser')?o.state.isIdentified?o.redirectToRoute(t):(0,k.displayToast)(w.default.t('NOT_YET_IDENTIFY')):o.redirectToRoute(t))},activeOpacity:.9},t.hasOwnProperty('iconType')?p.default.createElement(Y.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}):p.default.createElement(h.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}),p.default.createElement(E.View,{style:[te.content]},p.default.createElement(E.View,{style:(te.contentTitle,{paddingTop:t.title.length>20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title))),p.default.createElement(E.View,{style:{flex:1}})))))},o.renderAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',justifyContent:'space-between'}},p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-wallet",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('CREDIT_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_credit,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_credit,' ')+" "+o.state.wallet.currency_code):null)),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-key",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('SAVINGS_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_epargne,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_epargne,' ')+" "+o.state.wallet.currency_code):null)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"update",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o._scrollView.scrollToEnd()}},w.default.t('HISTORY'))))},o.renderNanoSanteAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null)},o.renderNanoSanteAgentAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]}),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(Y.default,{name:"money-check-alt",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:"70%",borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o.props.facturerSoinAction("?network_agent_id="+o.state.wallet.network_agent_id)}},' '+w.default.t('FACTURER_FEUILLES_SOINS'))))},o.renderHistoryTransactionList=function(){var t=o.props,l=t.resultHistory,n=t.errorHistory;return null!==n?void 0!==n.data?p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n.data.error)):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n)):null!==l&&null!==l.response?Array.isArray(l.response)&&l.response.length>0?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.default.t(t.label)))})),l.response.map(function(t,l){return o.renderHistoryTransactionItem(t,l)})):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(E.Text,{style:O.Typography.body1},w.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransactionItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,C.default)(o.state.user.category)?Object.keys((0,I.default)(t,['id','type','montant_retire','id_epargne','type_historique','date_demande','date_fin','date_remboursement_prevu','date_validation','date_cassation','date_remboursement','id_demande','duree_mois','taxe','','date_fin','date_cassation','etat','id_user','id_network','user','partiellement_rembourse','user_phone','type_caution','interet','date_remboursement_prevu','date_remboursement','id_wallet_agent','retrait_cash','codeParrain','agent','montant_rembourse',''])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}):Object.keys((0,I.default)(t,['id','retrait_cash','montant_retire','type_historique','type_caution','id_demande','montant_rembourse','partiellement_rembourse','duree_mois','etat','interet','taxe','date_validation','date_remboursement_prevu','date_remboursement','id_user','id_wallet_agent','id_network','user','user_phone','agent','codeParrain'])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderNanoSanteHistoryItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},Object.keys((0,I.default)(t,['created_at','currency_code','file_url','health_care_sheets','institution_code','institutation_name','insured_amount','insurer_amount','invoice_id','network_agent_id','network_id','period_end_at','period_start_at','updated_at'])).map(function(l,o){return p.default.createElement(E.View,{style:{alignItems:'center'},key:o},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},t[l]))}))},o.handleLoadMore=function(){o.props.getInvoiceHistoryReset(),o.props.getInvoiceHistoryAction("?network_id="+user.network_id+"&insured_id="+user.agentId+"&page="+(o.state.page+1)+"&perPage=20"),o.setState({page:o.state.page+1})},o.renderFooterLoader=function(){return p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===E.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ProgressBarAndroid,null),p.default.createElement(E.Text,null,w.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ActivityIndicator,{size:"small",color:'#ccc'}),p.default.createElement(E.Text,null,w.default.t('LOADING_DOTS'))))},o.renderNanoSanteHistoryList=function(){var t=o.props,l=t.loadingInsuranceHistory,n=(t.errorInsuranceHistory,t.resultInsuranceHistory);return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.checkDefault,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.Text,{style:[O.Typography.title3,O.Typography.semibold]},w.default.t('HISTORY')+" "+o.state.historiqueDetailLabel),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingBottom:10}},p.default.createElement(P.default,{primary:!0,icon:p.default.createElement(Y.default,{name:"book-medical",size:20,color:b.Color.whiteColor,style:{marginLeft:15}}),style:{paddingRight:10,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:b.Color.whiteColor},onPress:function(){o.setState({historiqueDetailLabel:w.default.t('INVOICE')}),(0,A.readUser)().then(function(t){t&&void 0!==t&&'geolocated'===t.category&&o.props.getInvoiceHistoryAction("?network_id="+t.network_id+"&network_agent_id="+o.state.wallet.network_agent_id+"&page=1&perPage=20")})}}),p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"medical-bag",size:20,color:b.Color.whiteColor}),style:{borderTopLeftRadius:0,borderBottomLeftRadius:0},primary:!0,onPress:function(){o.setState({historiqueDetailLabel:w.default.t('SOINS')}),o.props.getSoinHistoryAction(o.state.wallet.network_agent_id,'ALL','','&pagination=true&page=1')}}))),l?o.renderLoader():p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.nanoSanteHistoryLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.default.t(t.label)))})),p.default.createElement(E.FlatList,{style:{flex:1},ListEmptyComponent:function(){return p.default.createElement(E.Text,null,w.default.t('NO_WALLET_HISTORY'))},data:o.state.historyResult,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;t.index;return o.renderNanoSanteHistoryItem(l)},onEndReached:function(){null!==n&&o.state.page20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title)))))),p.default.createElement(E.View,{style:{flex:1}})):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.containerTouch]},p.default.createElement(E.TouchableOpacity,{style:te.contain,onPress:function(){R.default.isNil(o.state.isIdentified)?o.redirectToRoute(t):(console.log(t),R.default.isEqual(t.screen,'createIdentificationUser')?o.state.isIdentified?(0,k.displayToast)(w.default.t('ALREADY_IDENTIFIED')):o.redirectToRoute(t):R.default.isEqual(t.screen,'modifyIdentificationUser')?o.state.isIdentified?o.redirectToRoute(t):(0,k.displayToast)(w.default.t('NOT_YET_IDENTIFY')):o.redirectToRoute(t))},activeOpacity:.9},t.hasOwnProperty('iconType')?p.default.createElement(Y.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}):p.default.createElement(h.default,{name:t.icon,color:b.Color.primaryColor,size:24,style:te.imageBanner}),p.default.createElement(E.View,{style:[te.content]},p.default.createElement(E.View,{style:(te.contentTitle,{paddingTop:t.title.length>20?0:5})},p.default.createElement(E.Text,{style:[O.Typography.headline,O.Typography.semibold]},w.default.t(t.title))),p.default.createElement(E.View,{style:{flex:1}})))))},o.renderAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.View,{style:{flexDirection:'row',justifyContent:'space-between'}},p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-wallet",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('CREDIT_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_credit,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_credit,' ')+" "+o.state.wallet.currency_code):null)),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center'}},p.default.createElement(E.View,{style:[te.circlePoint,{backgroundColor:b.Color.primaryColor}]},p.default.createElement(N.default,{name:"md-key",size:28,color:b.Color.whiteColor})),p.default.createElement(E.View,null,p.default.createElement(E.Text,{style:(O.Typography.title3,b.Color.primaryColor,{marginBottom:3})},w.default.t('SAVINGS_ACCOUNT')),null!==o.state.user?p.default.createElement(E.Text,{style:[O.Typography.body2]},null!=o.props.result?(0,H.default)(o.props.result.response.balance_epargne,' ')+" "+o.state.wallet.currency_code:(0,H.default)(o.state.user.balance_epargne,' ')+" "+o.state.wallet.currency_code):null)))),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"update",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:120,borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o._scrollView.scrollToEnd()}},w.default.t('HISTORY'))))},o.renderNanoSanteAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null)},o.renderNanoSanteAgentAccountDetail=function(t){return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.blockView,{borderBottomColor:b.Color.borderColor}]}),p.default.createElement(E.View,{style:{flexDirection:'row',marginTop:30,marginBottom:10,flex:1,alignItems:'center',justifyContent:'center'}},p.default.createElement(P.default,{icon:p.default.createElement(Y.default,{name:"money-check-alt",size:20,color:b.Color.whiteColor,style:{marginLeft:-15}}),style:{paddingRight:10,width:"70%",borderRightWidth:1,borderRightColor:b.Color.whiteColor},primary:!0,onPress:function(){o.props.facturerSoinAction("?network_agent_id="+o.state.wallet.network_agent_id)}},' '+w.default.t('FACTURER_FEUILLES_SOINS'))))},o.renderHistoryTransactionList=function(){var t=o.props,l=t.resultHistory,n=t.errorHistory;return null!==n?void 0!==n.data?p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n.data.error)):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},p.default.createElement(E.Text,{style:O.Typography.body1},n)):null!==l&&null!==l.response?Array.isArray(l.response)&&l.response.length>0?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.transactionHistoryIlinkLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.default.t(t.label)))})),l.response.map(function(t,l){return o.renderHistoryTransactionItem(t,l)})):p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},p.default.createElement(E.Text,{style:O.Typography.body1},w.default.t('NO_WALLET_HISTORY'))):void 0},o.renderHistoryTransactionItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,C.default)(o.state.user.category)?Object.keys((0,I.default)(t,['id','type','montant_retire','id_epargne','type_historique','date_demande','date_fin','date_remboursement_prevu','date_validation','date_cassation','date_remboursement','id_demande','duree_mois','taxe','','date_fin','date_cassation','etat','id_user','id_network','user','partiellement_rembourse','user_phone','type_caution','interet','date_remboursement_prevu','date_remboursement','id_wallet_agent','retrait_cash','codeParrain','agent','montant_rembourse',''])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}):Object.keys((0,I.default)(t,['id','retrait_cash','montant_retire','type_historique','type_caution','id_demande','montant_rembourse','partiellement_rembourse','duree_mois','etat','interet','taxe','date_validation','date_remboursement_prevu','date_remboursement','id_user','id_wallet_agent','id_network','user','user_phone','agent','codeParrain'])).map(function(l,n){return p.default.createElement(E.View,{style:{alignItems:'center'},key:n},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},(0,x.default)(l,'montant')?" "+(t[l].length>8?(0,k.cutString)((0,H.default)(t[l],' '),6):(0,H.default)(t[l],' '))+" "+o.state.wallet.currency_code:(0,x.default)(l,'date_creation')?(0,k.cutStringWithoutDot)(t[l],16):t[l]))}))},o.renderNanoSanteHistoryItem=function(t,l){return p.default.createElement(E.TouchableOpacity,{onPress:function(){o.setState({displayModalHistory:!0,historyItemDetail:t})},style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},Object.keys((0,I.default)(t,['created_at','currency_code','file_url','health_care_sheets','institution_code','institutation_name','insured_amount','insurer_amount','invoice_id','network_agent_id','network_id','period_end_at','period_start_at','updated_at'])).map(function(l,o){return p.default.createElement(E.View,{style:{alignItems:'center'},key:o},p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},t[l]))}))},o.handleLoadMore=function(){o.props.getInvoiceHistoryReset(),o.props.getInvoiceHistoryAction("?network_id="+user.network_id+"&insured_id="+user.agentId+"&page="+(o.state.page+1)+"&perPage=20"),o.setState({page:o.state.page+1})},o.renderFooterLoader=function(){return p.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===E.Platform.OS?p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ProgressBarAndroid,null),p.default.createElement(E.Text,null,w.default.t('LOADING_DOTS'))):p.default.createElement(p.default.Fragment,null,p.default.createElement(E.ActivityIndicator,{size:"small",color:'#ccc'}),p.default.createElement(E.Text,null,w.default.t('LOADING_DOTS'))))},o.renderNanoSanteHistoryList=function(){var t=o.props,l=t.loadingInsuranceHistory,n=(t.errorInsuranceHistory,t.resultInsuranceHistory);return p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.checkDefault,{borderBottomColor:b.Color.borderColor}]},p.default.createElement(E.Text,{style:[O.Typography.title3,O.Typography.semibold]},w.default.t('HISTORY')+" "+o.state.historiqueDetailLabel),p.default.createElement(E.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingBottom:10}},p.default.createElement(P.default,{primary:!0,icon:p.default.createElement(Y.default,{name:"book-medical",size:20,color:b.Color.whiteColor,style:{marginLeft:15}}),style:{paddingRight:10,borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:1,borderRightColor:b.Color.whiteColor},onPress:function(){o.setState({historiqueDetailLabel:w.default.t('INVOICE')}),(0,A.readUser)().then(function(t){t&&void 0!==t&&'geolocated'===t.category&&o.props.getInvoiceHistoryAction("?network_id="+t.network_id+"&network_agent_id="+o.state.wallet.network_agent_id+"&page=1&perPage=20")})}}),p.default.createElement(P.default,{icon:p.default.createElement(h.default,{name:"medical-bag",size:20,color:b.Color.whiteColor}),style:{borderTopLeftRadius:0,borderBottomLeftRadius:0},primary:!0,onPress:function(){o.setState({historiqueDetailLabel:w.default.t('SOINS')}),o.props.getSoinHistoryAction(o.state.wallet.network_agent_id,'ALL','','&pagination=true&page=1')}}))),l?o.renderLoader():p.default.createElement(p.default.Fragment,null,p.default.createElement(E.View,{style:[te.contentService,{borderBottomColor:b.Color.primaryColor}]},(0,k.nanoSanteHistoryLabel)().map(function(t,l){return p.default.createElement(E.View,{style:{alignItems:'center'},key:l},p.default.createElement(h.default,{name:t.icon,size:24,color:b.Color.primaryColor}),p.default.createElement(E.Text,{style:(O.Typography.overline,b.Color.grayColor,{marginTop:4})},w.default.t(t.label)))})),p.default.createElement(E.FlatList,{style:{flex:1},ListEmptyComponent:function(){return p.default.createElement(E.Text,null,w.default.t('NO_WALLET_HISTORY'))},data:o.state.historyResult,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;t.index;return o.renderNanoSanteHistoryItem(l)},onEndReached:function(){null!==n&&o.state.page8?(0,v.cutString)((0,R.default)(t[l],' '),6):(0,R.default)(t[l],' '))+" "+n.state.wallet.currency_code:(0,f.default)(l,'date_creation')?(0,v.cutStringWithoutDot)(t[l],16):t[l]))}))},n.renderNanoCreditList=function(){var t=n.props,l=t.errorNanoCreditHistory,o=t.resultNanoCreditHistory;return null!==l?void 0!==l.data?y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(E.Text,{style:_.Typography.body1},l.data.error)):y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(E.Text,{style:_.Typography.body1},l)):null!==o&&null!==o.response?Array.isArray(o.response)&&o.response.length>0?y.default.createElement(y.default.Fragment,null,y.default.createElement(E.View,{style:[O.contentService,{borderBottomColor:I.Color.primaryColor}]},(0,v.nanoCreditHistoryLabel)().map(function(t,l){return y.default.createElement(E.View,{style:{alignItems:'center'},key:l},y.default.createElement(P.default,{name:t.icon,size:24,color:I.Color.primaryColor}),y.default.createElement(E.Text,{style:(_.Typography.overline,I.Color.grayColor,{marginTop:4})},h.default.t(t.label)))})),o.response.map(function(t,l){return n.renderNanoCreditItem(t,l)})):y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'flex-start'}},y.default.createElement(E.Text,{style:_.Typography.body1},h.default.t('NO_SAVINGS'))):void 0},n.renderNanoCreditHistory=function(){return y.default.createElement(E.View,{style:{backgroundColor:I.Color.containerBackgroundColor,flex:1}},n.props.loadingNanoCreditHistory?y.default.createElement(E.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},y.default.createElement(y.default.Fragment,null,y.default.createElement(E.ProgressBarAndroid,null),y.default.createElement(E.Text,null,h.default.t('LOADING_DOTS')))):n.renderNanoCreditList())},n.state={password:null,idEpargne:null,codeGroup:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,isGroupToModify:!1,displayModalHistory:!1,historyItemDetail:null,isDataHasLoaded:!1,displayPasswordModal:!1,wallet:n.props.navigation.state.params.wallet},n.props.getEpargneInProgressReset(),n}return(0,c.default)(l,t),(0,n.default)(l,[{key:"componentDidMount",value:function(){var t=this;(0,A.readUser)().then(function(l){l&&void 0!==l&&(t.setState({user:l}),t.props.getEpargneInProgressAction(l.id))})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:h.default.t('REFUND_NANO_CREDIT')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,p.default)(t)||(0,f.default)(t.length,0)}},{key:"render",value:function(){return y.default.createElement(y.default.Fragment,null,(this.props.loading||this.props.loadingGetCommission||this.props.loadingNanoCreditHistory)&&this.renderLoader(),this.state.isDataSubmit&&this.renderBreakEpargneRespons(),this.state.displayModalHistory&&this.renderModalHistoryDetail(),this.state.displayPasswordModal&&this.renderPasswordDialog(),y.default.createElement(E.ScrollView,{style:O.container},y.default.createElement(E.View,{style:[O.checkDefault,{borderBottomColor:I.Color.borderColor}]},y.default.createElement(E.Text,{style:[_.Typography.title3,_.Typography.semibold]},h.default.t('SAVINGS_LIST'))),this.renderNanoCreditHistory()))}}]),l})(y.Component));k.navigatorStyle={navBarBackgroundColor:I.Color.primaryColor,statusBarColor:I.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},k.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:h.default.t('BREAK_EPARGNE'),headerTintColor:'white',headerStyle:{backgroundColor:I.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:h.default.t('BREAK_EPARGNE')}};var L=(0,T.connect)(function(t){return{loading:t.casserEpargneUserReducer.loading,result:t.casserEpargneUserReducer.result,error:t.casserEpargneUserReducer.error,errorNanoCreditHistory:t.getEpargneInProgressReducer.error,resultNanoCreditHistory:t.getEpargneInProgressReducer.result,loadingNanoCreditHistory:t.getEpargneInProgressReducer.loading}},function(t){return(0,x.bindActionCreators)({casserEpargneUserAction:V.casserEpargneUserAction,casserEpargneUserReset:V.casserEpargneUserReset,getEpargneInProgressAction:S.getEpargneInProgressAction,getEpargneInProgressReset:S.getEpargneInProgressReset},t)})(k);e.default=L;var O=E.StyleSheet.create({container:{flex:1,backgroundColor:I.Color.containerBackgroundColor,paddingHorizontal:20},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:I.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,C.responsiveHeight)(2),marginLeft:(0,C.responsiveWidth)(5),marginRight:(0,C.responsiveWidth)(5),borderRadius:5},circlePoint:{width:50,height:50,borderRadius:25,marginRight:5,alignItems:'center',justifyContent:'center'},checkDefault:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderBottomWidth:1,paddingVertical:10,marginTop:5},transactionContainer:{flexDirection:'row',paddingTop:10},containerTouch:{flex:1,flexDirection:'row',alignItems:'center',shadowColor:I.Color.borderColor,borderColor:I.Color.borderColor,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,borderRadius:10,backgroundColor:I.Color.cardBackgroundColor},contain:{flexDirection:'row',justifyContent:'space-between'},imageBanner:{marginTop:15,marginLeft:5,width:N.scaleWithPixel(30),height:N.scaleWithPixel(30)},content:{height:N.scaleWithPixel(65),paddingHorizontal:10,justifyContent:'space-between',alignItems:'flex-start',flex:1},contentTitle:{paddingTop:12},contentService:{paddingVertical:10,borderBottomWidth:.5,flexDirection:'row',flexWrap:'wrap',justifyContent:'space-between'},containField:{padding:10,marginBottom:20,borderWidth:.5,shadowOffset:{width:1.5,height:1.5},shadowOpacity:1,elevation:5,flexDirection:"row",height:140,borderRadius:10},paymentItem:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottomWidth:1,paddingVertical:5,width:(0,C.responsiveWidth)(100),marginBottom:15},iconContent:{width:60,marginRight:10,alignItems:"center"},contentLeftItem:{flex:1,paddingTop:40,paddingLeft:10,paddingRight:10,alignItems:"center"}})},1625,[4,1,8,9,10,12,13,689,1435,15,18,720,535,1320,1049,1061,553,1034,1077,773,719,1487,1582,1458,1023,882,1460,1424,814,815]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=n(r(d[9])),v=t(r(d[10])),k=r(d[11]),b=t(r(d[12])),T=n(r(d[13])),E=r(d[14]),C=r(d[15]),S=n(r(d[16])),W=r(d[17]),w=r(d[18]),B=r(d[19]),y=r(d[20]),_=r(d[21]),A=r(d[22]),R=r(d[23]),I=r(d[24]),O=r(d[25]),F=r(d[26]),L=(r(d[27]),r(d[28]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).renderEnvoieWalletToBankResponse=function(){var t=l.props,n=t.resultEnvoieWalletToBank,o=t.errorEnvoieWalletToBank;null!==o&&void 0!==o.data&&k.Alert.alert(T.default.t("ERROR_TRANSFER"),o.data.error,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToBankReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&k.Alert.alert(T.default.t("SUCCESS_TRANSFER"),n.response,[{text:T.default.t("OK"),onPress:function(){l.props.envoieUserWalletToBankReset(),R.IlinkEmitter.emit("refreshWallet"),l.props.navigation.pop()}}],{cancelable:!1})},l.isMontantValid=function(){var t=l.state.montant;return parseInt((0,p.default)(t,0))||t<0?{errorMessage:T.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,F.isNormalInteger)(t)?{errorMessage:'',isValid:!0}:{errorMessage:T.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.onSubmitSendWalletToBank=function(){var t=l.state,n=t.montant,o=t.password,s=t.codeIban;l.ckeckIfFieldIsOK(s)?(s.length,l.codeIbanAnim.shake(800)):l.ckeckIfFieldIsOK(n)||!l.isMontantValid().isValid?l.montantAnim.shake(800):l.ckeckIfFieldIsOK(o)?l.passwordAnim.shake(800):(console.log("id wallet network",l.state.bank),l.props.envoieUserWalletToBankAction({type:18,id_wallet_agent:l.state.wallet.id,id_wallet_network:l.state.wallet.id_network,iban:s,id_bank:l.state.bank.id_operator,montant:n,password:o})),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return v.default.createElement(C.ProgressDialog,{visible:l.props.loadingEnvoieWalletToBank,title:T.default.t('LOADING'),message:T.default.t('LOADING_INFO')})},l.state={montant:null,password:null,codeIban:null,loading:!1,user:null,triggerSubmitClick:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:A.store.getState().walletDetailReducer.result.response,bank:l.props.navigation.state.params.bank},l.props.envoieUserWalletToBankReset(),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,I.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"componentWillReceiveProps",value:function(t){console.log('PROPS',t)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:T.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,p.default)(t.length,0)}},{key:"render",value:function(){var t=this;return v.default.createElement(v.default.Fragment,null,this.props.loadingEnvoieWalletToBank&&this.renderLoader(),this.state.isDataSubmit&&this.renderEnvoieWalletToBankResponse(),v.default.createElement(k.ScrollView,{style:U.container},v.default.createElement(k.Text,{style:U.subbigtitle},T.default.t('ENVOIE_WALLET_TO_BANK')),v.default.createElement(b.View,{ref:function(n){t.codeIbanAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.default,iconName:'id-card',label:T.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.codeIban,onChangeText:function(n){t.setState({codeIban:n})},style:U.input})),v.default.createElement(b.View,{ref:function(n){t.montantAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.default,iconName:'money',label:T.default.t('AMOUNT'),iconColor:'#f95a25',keyboardType:"numeric",iconSize:20,value:this.state.montant,onChangeText:function(n){t.setState({montant:n})},style:U.input}),v.default.createElement(k.View,{style:{position:'absolute',left:(0,E.responsiveWidth)(82),top:35,flexDirection:'row'}},v.default.createElement(k.View,{style:{width:1,borderLeftColor:'#f0f0f0',height:40,left:-8,top:-10,borderLeftWidth:1}}),v.default.createElement(k.Text,{style:[_.Typography.body1,_.FontWeight.bold]},this.state.wallet.currency_code))),v.default.createElement(b.View,{ref:function(n){t.passwordAnim=n}},v.default.createElement(W.Fumi,{iconClass:S.default,iconName:'lock',label:T.default.t('PASSWORD'),iconColor:'#f95a25',iconSize:20,secureTextEntry:!0,value:this.state.password,onChangeText:function(n){t.setState({password:n})},style:U.input})),v.default.createElement(f.default,{style:U.btnvalide,textStyle:U.textbtnvalide,onPress:function(){t.onSubmitSendWalletToBank()}},T.default.t('SUBMIT_LABEL'))))}}]),n})(v.Component));L.navigatorStyle={navBarBackgroundColor:y.Color.primaryColor,statusBarColor:y.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},L.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:T.default.t('DEPOSIT_WALLET_TO_BANK'),headerTintColor:'white',headerStyle:{backgroundColor:y.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:T.default.t('DEPOSIT_WALLET_TO_BANK')}};var N=(0,w.connect)(function(t){return{loadingEnvoieWalletToBank:t.envoieUserWalletToBank.loading,resultEnvoieWalletToBank:t.envoieUserWalletToBank.result,errorEnvoieWalletToBank:t.envoieUserWalletToBank.error}},function(t){return(0,B.bindActionCreators)({envoieUserWalletToBankAction:O.envoieUserWalletToBankAction,envoieUserWalletToBankReset:O.envoieUserWalletToBankReset},t)})(L);e.default=N;var U=k.StyleSheet.create({container:{flex:1,backgroundColor:y.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:y.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:y.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,E.responsiveHeight)(2),marginLeft:(0,E.responsiveWidth)(5),marginRight:(0,E.responsiveWidth)(5),borderRadius:5}})},1626,[4,1,8,9,10,12,13,717,689,1435,15,18,750,720,535,1320,539,704,1049,1061,1034,1077,1105,773,719,1597,1458,814,815]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),s=n(r(d[4])),u=n(r(d[5])),c=n(r(d[6])),k=n(r(d[7])),f=n(r(d[8])),h=n(r(d[9])),p=t(r(d[10])),b=r(d[11]),A=t(r(d[12])),R=n(r(d[13])),C=r(d[14]),S=r(d[15]),B=r(d[16]),v=n(r(d[17])),_=r(d[18]),I=r(d[19]),T=r(d[20]),E=(r(d[21]),r(d[22])),L=r(d[23]),O=r(d[24]),w=r(d[25]),D=r(d[26]),N=r(d[27]),y=(r(d[28]),r(d[29]),(function(t){function n(t){var l;return(0,o.default)(this,n),(l=(0,s.default)(this,(0,u.default)(n).call(this,t))).isMontantValid=function(){var t=l.state.montant;return parseInt((0,f.default)(t,0))||t<0?{errorMessage:R.default.t('ENTER_AMOUNT_SUPERIOR_ZEROR'),isValid:!1}:(0,O.isNormalInteger)(t)?t>parseInt(l.state.comptePrincipal)?{errorMessage:R.default.t('AMOUNT_SUPERIOR_TO_PRINCIPAL_ACCOUNT'),isValid:!1}:{errorMessage:'',isValid:!0}:{errorMessage:R.default.t('ENTER_VALID_AMOUNT'),isValid:!1}},l.renderIlinkBankList=function(){var t=l.props,n=t.resultGetBank,o=t.errorGetBank;null!==n&&void 0!==n.response&&(n.response.length>0?l.setState({hasLoadBank:!0,ilinkBanks:n.response,bankSelect:n.response[0].bank_name+" - "+n.response[0].bank_address,bankToSend:n.response[0],modalVisible:!1}):0===n.response.length&&l.setState({hasLoadBank:!0,ilinkBanks:[],bankSelect:'',bankToSend:null,modalVisible:!1})),null!==o&&(void 0!==o.data?b.Alert.alert(R.default.t('ERROR_LABEL'),o.data.error,[{text:R.default.t("OK"),onPress:function(){l.props.getIlinkBankReset()}}],{cancelable:!1}):b.Alert.alert(R.default.t('ERROR_LABEL'),JSON.stringify(o),[{text:R.default.t("OK"),onPress:function(){l.props.getIlinkBankReset()}}],{cancelable:!1}))},l.renderReattachAccountResponse=function(){var t=l.props,n=t.result,o=t.error;null!==o&&void 0!==o.data&&b.Alert.alert(R.default.t("ERROR_LABLE"),o.data.error,[{text:R.default.t("OK"),onPress:function(){l.props.reattachAccountReset()}}],{cancelable:!1}),null!==n&&null!==n.response&&b.Alert.alert(R.default.t("DEMAND_SEND"),n.response,[{text:R.default.t("OK"),onPress:function(){l.props.reattachAccountReset(),l.props.navigation.pop()}}],{cancelable:!1})},l.onSubmitSendWalletToCard=function(){var t=l.state,n=t.iban,o=t.bankSelect;l.ckeckIfFieldIsOK(o)?l.listBankAnim.shake(800):l.ckeckIfFieldIsOK(n)?l.ibanAnim.shake(800):(console.warn("Code Iban",l.state.iban),console.warn("Bank",l.state.bankToSend),l.props.reattachAccountAction({iban:l.state.iban,id_bank:l.state.bankToSend.id_bank,id_wallet_network:l.state.wallet.id_wallet_network,id_user:l.state.user.id})),l.setState({isDataSubmit:!0})},l.renderLoader=function(){return p.default.createElement(S.ProgressDialog,{visible:l.props.loading||l.props.loadingGetBank,title:R.default.t('LOADING'),message:R.default.t('LOADING_INFO')})},l.state={codeGroupe:null,codeSponsor:null,nomGroupe:null,user:null,iban:null,bankToSend:null,ilinkBanks:[],bankSelect:null,triggerSubmitClick:!1,hasLoadBank:!1,modalVisible:!1,isSubmitClick:!1,isDataSubmit:!1,isModalConfirmVisible:!1,wallet:E.store.getState().walletDetailReducer.result.response},l.props.getIlinkBankReset(),l.props.getIlinkBankAction(l.state.wallet.id_wallet_network),l}return(0,c.default)(n,t),(0,l.default)(n,[{key:"componentDidMount",value:function(){var t=this;(0,L.readUser)().then(function(n){n&&void 0!==n&&t.setState({user:n})})}},{key:"ckeckIfFieldIsOK",value:function(t){return(0,h.default)(t)||(0,f.default)(t.length,0)}},{key:"updateLangue",value:function(){this.props.navigation.setParams({name:R.default.t('DEPOSIT_TO_CARD')}),this.forceUpdate()}},{key:"render",value:function(){var t=this;return console.log(this.state),p.default.createElement(p.default.Fragment,null,(this.props.loading||this.props.loadingGetBank)&&this.renderLoader(),this.state.isDataSubmit&&this.renderReattachAccountResponse(),!this.state.hasLoadBank&&this.renderIlinkBankList(),p.default.createElement(b.ScrollView,{style:x.container},p.default.createElement(b.Text,{style:x.subbigtitle},R.default.t('FILL_INFORMATION')),p.default.createElement(A.View,{ref:function(n){t.listBankAnim=n},style:{width:(0,C.responsiveWidth)(90),height:60,marginTop:20,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},p.default.createElement(D.Dropdown,{label:R.default.t('BANK_LIST'),data:this.state.ilinkBanks,useNativeDriver:!0,value:null!==this.state.bankSelect?this.state.bankSelect:'',onChangeText:function(n,o,l){console.log(n),t.setState({bankSelect:n.bank_name+" - "+n.bank_address,bankToSend:n})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.bank_name+" - "+t.bank_address}})),p.default.createElement(A.View,{ref:function(n){t.ibanAnim=n}},p.default.createElement(B.Fumi,{iconClass:v.default,iconName:'id-card',label:R.default.t('CODE_IBAN'),iconColor:'#f95a25',iconSize:20,value:this.state.iban,onChangeText:function(n){t.setState({iban:n})},style:x.input})),p.default.createElement(k.default,{style:x.btnvalide,textStyle:x.textbtnvalide,onPress:function(){t.onSubmitSendWalletToCard()}},R.default.t('SUBMIT_LABEL'))))}}]),n})(p.Component));y.navigatorStyle={navBarBackgroundColor:T.Color.primaryColor,statusBarColor:T.Color.primaryDarkColor,navBarTextColor:'#FFFFFF',navBarButtonColor:'#FFFFFF'},y.navigationOptions=function(){return{drawerLabel:function(){return null},headerTitle:R.default.t('REATTACH_CARD'),headerTintColor:'white',headerStyle:{backgroundColor:T.Color.primaryColor,marginTop:0,color:'white'},headerTitleStyle:{color:"white"},title:R.default.t('REATTACH_CARD')}};var F=(0,_.connect)(function(t){return{loadingGetBank:t.getIlinkBankReducer.loading,resultGetBank:t.getIlinkBankReducer.result,errorGetBank:t.getIlinkBankReducer.error,loading:t.reattachAccountReducer.loading,result:t.reattachAccountReducer.result,error:t.reattachAccountReducer.error}},function(t){return(0,I.bindActionCreators)({getIlinkBankAction:N.getIlinkBankAction,getIlinkBankReset:N.getIlinkBankReset,reattachAccountAction:N.reattachAccountAction,reattachAccountReset:N.reattachAccountReset,askNanoCreditAction:w.askNanoCreditAction,getNanoCreditDemandDurationAction:w.getNanoCreditDemandDurationAction},t)})(y);e.default=F;var x=b.StyleSheet.create({container:{flex:1,backgroundColor:T.Color.primaryDarkColor},textbtnvalide:{color:'white',fontWeight:'bold'},bigtitle:{color:'white',fontSize:20,flex:1,fontWeight:'bold',textAlign:'center',margin:20},blockView:{paddingVertical:10,borderBottomWidth:1},subbigtitle:{color:'white',fontSize:17,textAlign:'center',margin:5},btnvalide:{marginTop:20,marginLeft:20,marginRight:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52},btnSubmit:{marginTop:20,borderColor:'transparent',backgroundColor:T.Color.accentLightColor,height:52,width:"30%",marginLeft:20,marginRight:20},input:{height:60,marginTop:(0,C.responsiveHeight)(2),marginLeft:(0,C.responsiveWidth)(5),marginRight:(0,C.responsiveWidth)(5),borderRadius:5}})},1627,[4,1,8,9,10,12,13,717,689,1435,15,18,750,720,535,1320,704,539,1049,1061,1034,1077,1105,719,1458,1487,982,1414,814,815]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=t(r(d[5])),s=r(d[6]),f=r(d[7]),h=n(r(d[8])),p=r(d[9]),b=t(r(d[10])),_=t(r(d[11])),E=r(d[12]),C=n(r(d[13])),w=r(d[14]),y=n(r(d[15])),I=n(r(d[16])),S=n(r(d[17])),x=n(r(d[18])),D=n(r(d[19])),A=r(d[20]),R=n(r(d[21])),T=n(r(d[22])),O=r(d[23]),P=n(r(d[24])),v=r(d[25]),L=n(r(d[26])),k=n(r(d[27])),V=t(r(d[28])),F=r(d[29]),N=r(d[30]),B=n(r(d[31])),M=r(d[32]),Y=r(d[33]),U=n(r(d[34])),j=n(r(d[35])),H=r(d[36]),G=n(r(d[37]));function K(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function z(t){for(var n=1;n1?$.result.response[1]:null,marriage_certificate_doc:$.result.response[0],id_document_type:"CNI",id_document_front:$.result.response[1],id_document_back:$.result.response[2]}].concat((0,o.default)(Ht))),Ke.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),le(!1))),$.error&&s.Alert.alert(C.default.t("ERROR_LABLE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){Ge((0,O.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[$]);var Lt=b.object().shape({password:"MAX"===tt.password_validation?b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')):b.string()}),kt=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),Vt=(0,c.useState)(!0),Ft=(0,u.default)(Vt,2),Nt=(Ft[0],Ft[1],(0,c.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}])),Bt=(0,u.default)(Nt,2),Mt=Bt[0],Yt=Bt[1],Ut=(0,c.useState)([]),jt=(0,u.default)(Ut,2),Ht=jt[0],Gt=jt[1],Kt=(0,c.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),zt=(0,u.default)(Kt,2),Wt=zt[0],Xt=zt[1],Jt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],L.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var l,u;"CHILD"===Dt?Yt(Mt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Xt(Wt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),l=t,u=n,null!==Be&&(Ve=Be),Ve.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===s.Platform.OS?u.path:u.path.replace("file://","")}),He([l].concat((0,o.default)(je))),Me(Ve)})},Qt=function(t,n){var l=n||lt;ct('ios'===s.Platform.OS),ot(l)};return c.default.createElement(w.ScreenComponent,null,c.default.createElement(P.default,{ref:function(t){return Ke=t}}),c.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(p.Formik,{validationSchema:Lt,initialValues:{password:''},onSubmit:function(t){null!==me&&(null===be?vt.shake(800):(console.log(me),console.log("insurance",be),ke(t.password),X({network_id:be.id,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id,beneficiaries:Ht})))}},function(t){var n=t.values,l=t.errors,o=t.touched,u=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.View,{style:q.contain},c.default.createElement(V.View,{ref:function(t){vt=t},style:{width:(0,A.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('SELECT_INSURANCE'),data:Xe,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),_e({age_limit_of_child_beneficiary:t.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:t.age_limit_of_insured_and_spouse,id:t.id,max_number_of_beneficiaries:t.max_number_of_beneficiaries,name:t.name,months_prices:t.months_prices.map(function(t,n){return{id:t.id,child_prices:t.child_prices,dealine_amount:t.dealine_amount,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,checked:0===n}})}),ye(t.months_prices[0]),Q(t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),null!==be&&c.default.createElement(V.View,{ref:function(t){},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:10,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(Y.Dropdown,{label:C.default.t('AMOUNT_PER_MONTH'),value:null!==we?C.default.t('PRIME_PRINCIPAL')+": "+we.min_amount+" | "+we.payment_period+" | "+C.default.t('ECH')+": "+we.number_of_fractions:"",data:be.months_prices.map(function(t,n){return z({checked:(0,j.default)(t.checked)?0===n:t.checked},t)}),useNativeDriver:!0,onChangeText:function(t,n,l){var o,u;console.log("Value",l[n]),ye(l[n]),o=l[n],u=be,_e({age_limit_of_child_beneficiary:be.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:be.age_limit_of_insured_and_spouse,id:be.id,max_number_of_beneficiaries:be.max_number_of_beneficiaries,name:be.name,months_prices:u.months_prices.map(function(t){return{id:t.id,child_prices:t.child_prices,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,dealine_amount:t.dealine_amount,checked:t.id===o.id}})})},valueExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions},labelExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions}})),"MAX"===tt.password_validation&&c.default.createElement(S.default,{style:{marginTop:10},onChangeText:u('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(D.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),c.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},c.default.createElement(s.TouchableOpacity,{onPress:function(){null===be?s.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t("PLEASE_SELECT_INSURANCE_BEFORE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(le(!0),ct(!1),Ge((0,O.fetchUploadInsuranceReset)()),At('CHILD'),Pt(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)),ot(''+W(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),De(null),Oe(null),He([]))}},c.default.createElement(I.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),c.default.createElement(x.default,{style:{marginTop:20},full:!0,loading:F.loading,onPress:h},C.default.t('SUBMIT_LABEL')),ft&&c.default.createElement(B.default.Container,{useNativeDriver:!0,visible:ft},c.default.createElement(B.default.Title,null,C.default.t('DETAIL')),c.default.createElement(s.View,null,c.default.createElement(s.View,{style:[q.blockView,{borderBottomColor:E.Color.borderColor}]},c.default.createElement(s.View,{style:{flexDirection:'row',marginTop:10}},c.default.createElement(s.View,{style:{flex:1}},c.default.createElement(I.default,{style:[q.body2]},C.default.t('PRIME_AMOUNT'))),c.default.createElement(s.View,{style:{flex:1,alignItems:'flex-end'}},c.default.createElement(I.default,{style:[M.Typography.caption1,E.Color.grayColor]},F.result.response.bonus_amount_formatted))))),c.default.createElement(B.default.Button,{bold:!0,label:C.default.t('OK'),onPress:function(){N({network_id:be.id,user_id:me.id,password:Le,beneficiaries:Ht,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id}),Ge((0,O.fetchGetInsurancePrimeAmountReset)()),mt(!1)}})))}))),ie&&c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ie,scrollHorizontal:!0,onSwipeComplete:function(){le(!1)},swipeDirection:null,style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('EXCLUSION')),c.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},c.default.createElement(G.default,{style:{flex:1},originWhitelist:['*'],source:{html:Z.result.document}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ue(!1)}},C.default.t('OK'))))),ne&&c.default.createElement(p.Formik,{validationSchema:kt,initialValues:{firstname:'',lastname:''},onSubmit:function(t){J(Be),De(t.firstname),Oe(t.lastname)}},function(t){var n=t.values,o=t.errors,u=t.touched,f=t.handleChange,p=t.handleBlur,b=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ne,onSwipeComplete:function(){le(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(I.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:n.lastname,onChangeText:f('lastname'),onBlur:p('lastname'),success:u.lastname&&!o.lastname,touched:u.lastname,error:o.lastname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:n.firstname,onChangeText:f('firstname'),onBlur:p('firstname'),success:u.firstname&&!o.firstname,touched:u.firstname,error:o.firstname}),c.default.createElement(y.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+W(lt).format('YYYY-MM-DD'),onChangeText:f('birthdate'),onBlur:p('birthdate'),onFocus:function(){s.Keyboard.dismiss(),ct(!0)},success:u.birthdate&&!o.birthdate,touched:u.birthdate,error:o.birthdate}),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('SEXE')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:$e,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){wt(t)}}))),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(I.default,{body2:!0},C.default.t('AFFILIATION')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:It,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){He([]),Pt('CHILD'===t?new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(be.age_limit_of_insured_and_spouse),0,1)),At(t)}}))),c.default.createElement(s.View,{style:q.contentService},c.default.createElement(s.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===Dt?Mt:Wt,extraData:'CHILD'===Dt?Mt:Wt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Jt(n.name,n.isFrontCamera)}},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:E.Color.accentColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Jt(n.name,n.isFrontCamera)},disabled:!je.includes('CHILD'===Dt?Mt[l-1].name:Wt[l-1].name)},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:je.includes('CHILD'===Dt?Mt[l-1].name:Wt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(I.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:$.loading||l.loading,onPress:b},C.default.t('SUBMIT_LABEL'))))))}),pt&&c.default.createElement(h.default,{isVisible:pt,onSwipeComplete:function(){return bt(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(s.View,{style:[q.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),c.default.createElement(s.View,{style:[{marginBottom:40}]},c.default.createElement(s.FlatList,{data:Ht,extraData:Ht,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return c.default.createElement(s.View,{style:q.lineRow},c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('NOM_ASSURE')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(I.default,{body1:!0},C.default.t('AFFILIATION')),c.default.createElement(I.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),c.default.createElement(s.View,{style:q.iconRight},c.default.createElement(s.TouchableOpacity,{onPress:function(){var t=Ht;console.log("beneficiariesTemp index",l),t.splice(l),console.log("beneficiariesTemp",t),Gt((0,o.default)(t))}},c.default.createElement(U.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){bt(!1)}},C.default.t('OK')))),ut&&c.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(lt),mode:"date",minimumDate:Ot,display:"spinner",onChange:Qt}),Ht.length>=1&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return bt(!0)}},c.default.createElement(I.default,{whiteColor:!0,title2:!0},Ht.length),c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))),null!==Z.result&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,left:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){ue(!0)}},c.default.createElement(I.default,{whiteColor:!0,caption2:!0},C.default.t('EXCLUSION'))))});e.default=$},1628,[4,1,7,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,1424,1077,982,1016,1435,1105,841,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=n(r(d[4])),c=t(r(d[5])),s=r(d[6]),f=r(d[7]),h=n(r(d[8])),p=r(d[9]),b=t(r(d[10])),_=t(r(d[11])),E=r(d[12]),C=n(r(d[13])),w=r(d[14]),I=n(r(d[15])),y=n(r(d[16])),S=n(r(d[17])),x=n(r(d[18])),D=n(r(d[19])),A=r(d[20]),R=n(r(d[21])),T=n(r(d[22])),O=r(d[23]),P=n(r(d[24])),L=r(d[25]),k=n(r(d[26])),v=n(r(d[27])),F=t(r(d[28])),V=r(d[29]),N=r(d[30]),B=n(r(d[31])),M=r(d[32]),U=r(d[33]),Y=n(r(d[34])),j=n(r(d[35])),H=r(d[36]),G=n(r(d[37]));function K(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function z(t){for(var n=1;n1?$.result.response[2]:null,marriage_certificate_doc:$.result.response[1],id_document_type:"CNI",id_document_front:$.result.response[2],id_document_back:$.result.response[3]}].concat((0,o.default)(jt))),Ke.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),le(!1))),$.error&&s.Alert.alert(C.default.t("ERROR_LABLE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){Ge((0,O.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[$]);var Lt=b.object().shape({password:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED'))}),kt=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),vt=(0,c.useState)(!0),Ft=(0,u.default)(vt,2),Vt=(Ft[0],Ft[1],(0,c.useState)([{label:C.default.t('PROFILE_PICTURE'),name:'profile_image',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}])),Nt=(0,u.default)(Vt,2),Bt=Nt[0],Mt=Nt[1],Ut=(0,c.useState)([]),Yt=(0,u.default)(Ut,2),jt=Yt[0],Ht=Yt[1],Gt=(0,c.useState)([{label:C.default.t('PROFILE_PICTURE'),name:'profile_image',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),Kt=(0,u.default)(Gt,2),zt=Kt[0],Wt=Kt[1],Xt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],k.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var l,u;"CHILD"===xt?Mt(Bt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Wt(zt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),l=t,u=n,null!==Be&&(Fe=Be),Fe.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===s.Platform.OS?u.path:u.path.replace("file://","")}),He([l].concat((0,o.default)(je))),Me(Fe)})},Jt=function(t,n){var l=n||nt;ut('ios'===s.Platform.OS),lt(l)};return c.default.createElement(w.ScreenComponent,null,c.default.createElement(P.default,{ref:function(t){return Ke=t}}),c.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(p.Formik,{validationSchema:Lt,initialValues:{password:''},onSubmit:function(t){null!==me&&(null===be?Pt.shake(800):(console.log(me),console.log("insurance",be),ve(t.password),X({network_id:be.id,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id,beneficiaries:jt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,u=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.View,{style:q.contain},c.default.createElement(F.View,{ref:function(t){Pt=t},style:{width:(0,A.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(U.Dropdown,{label:C.default.t('SELECT_INSURANCE'),data:Xe,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),_e({age_limit_of_child_beneficiary:t.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:t.age_limit_of_insured_and_spouse,id:t.id,max_number_of_beneficiaries:t.max_number_of_beneficiaries,name:t.name,months_prices:t.months_prices.map(function(t,n){return{id:t.id,child_prices:t.child_prices,dealine_amount:t.dealine_amount,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,checked:0===n}})}),Ie(t.months_prices[0]),Q(t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),null!==be&&c.default.createElement(F.View,{ref:function(t){},style:{width:(0,A.responsiveWidth)(90),height:60,marginTop:10,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(U.Dropdown,{label:C.default.t('AMOUNT_PER_MONTH'),value:null!==we?C.default.t('PRIME_PRINCIPAL')+": "+we.min_amount+" | "+we.payment_period+" | "+C.default.t('ECH')+": "+we.number_of_fractions:"",data:be.months_prices.map(function(t,n){return z({checked:(0,j.default)(t.checked)?0===n:t.checked},t)}),useNativeDriver:!0,onChangeText:function(t,n,l){var o,u;console.log("Value",l[n]),Ie(l[n]),o=l[n],u=be,_e({age_limit_of_child_beneficiary:be.age_limit_of_child_beneficiary,age_limit_of_insured_and_spouse:be.age_limit_of_insured_and_spouse,id:be.id,max_number_of_beneficiaries:be.max_number_of_beneficiaries,name:be.name,months_prices:u.months_prices.map(function(t){return{id:t.id,child_prices:t.child_prices,max_insurance_coverage_amount:t.max_insurance_coverage_amount,min_amount:t.min_amount,number_of_fractions:t.number_of_fractions,number_of_months:t.number_of_months,payment_period:t.payment_period,dealine_amount:t.dealine_amount,checked:t.id===o.id}})})},valueExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions},labelExtractor:function(t){return C.default.t('PRIME_PRINCIPAL')+": "+t.min_amount+" | "+t.payment_period+" | "+C.default.t('ECH')+": "+t.number_of_fractions}})),c.default.createElement(S.default,{style:{marginTop:10},onChangeText:u('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(D.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),c.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},c.default.createElement(s.TouchableOpacity,{onPress:function(){null===be?s.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t("PLEASE_SELECT_INSURANCE_BEFORE"),_.getErrorMsg($),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(le(!0),ut(!1),Ge((0,O.fetchUploadInsuranceReset)()),Dt('CHILD'),Ot(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)),lt(''+W(new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),De(null),Oe(null),He([]))}},c.default.createElement(y.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),c.default.createElement(x.default,{style:{marginTop:20},full:!0,loading:V.loading,onPress:h},C.default.t('SUBMIT_LABEL')),dt&&c.default.createElement(B.default.Container,{useNativeDriver:!0,visible:dt},c.default.createElement(B.default.Title,null,C.default.t('DETAIL')),c.default.createElement(s.View,null,c.default.createElement(s.View,{style:[q.blockView,{borderBottomColor:E.Color.borderColor}]},c.default.createElement(s.View,{style:{flexDirection:'row',marginTop:10}},c.default.createElement(s.View,{style:{flex:1}},c.default.createElement(y.default,{style:[q.body2]},C.default.t('PRIME_AMOUNT'))),c.default.createElement(s.View,{style:{flex:1,alignItems:'flex-end'}},c.default.createElement(y.default,{style:[M.Typography.caption1,E.Color.grayColor]},V.result.response.bonus_amount_formatted))))),c.default.createElement(B.default.Button,{bold:!0,label:C.default.t('OK'),onPress:function(){N({network_id:be.id,user_id:me.id,password:ke,beneficiaries:jt,month_price_id:be.months_prices.filter(function(t){return t.checked})[0].id}),Ge((0,O.fetchGetInsurancePrimeAmountReset)()),ft(!1)}})))}))),ie&&c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ie,scrollHorizontal:!0,onSwipeComplete:function(){le(!1)},swipeDirection:null,style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(y.default,{body2:!0,style:{marginTop:10}},C.default.t('EXCLUSION')),c.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},c.default.createElement(G.default,{style:{flex:1},originWhitelist:['*'],source:{html:Z.result.document}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ue(!1)}},C.default.t('OK'))))),ne&&c.default.createElement(p.Formik,{validationSchema:kt,initialValues:{firstname:'',lastname:''},onSubmit:function(t){J(Be),De(t.firstname),Oe(t.lastname)}},function(t){var n=t.values,o=t.errors,u=t.touched,f=t.handleChange,p=t.handleBlur,b=t.handleSubmit;return t.isSubmitting,c.default.createElement(s.ScrollView,{style:{flex:1}},c.default.createElement(s.View,{style:[q.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(h.default,{isVisible:ne,onSwipeComplete:function(){le(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(y.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),c.default.createElement(I.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:n.lastname,onChangeText:f('lastname'),onBlur:p('lastname'),success:u.lastname&&!o.lastname,touched:u.lastname,error:o.lastname}),c.default.createElement(I.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:n.firstname,onChangeText:f('firstname'),onBlur:p('firstname'),success:u.firstname&&!o.firstname,touched:u.firstname,error:o.firstname}),c.default.createElement(I.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+W(nt).format('YYYY-MM-DD'),onChangeText:f('birthdate'),onBlur:p('birthdate'),onFocus:function(){s.Keyboard.dismiss(),ut(!0)},success:u.birthdate&&!o.birthdate,touched:u.birthdate,error:o.birthdate}),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(y.default,{body2:!0},C.default.t('SEXE')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:$e,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){Ct(t)}}))),c.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},c.default.createElement(y.default,{body2:!0},C.default.t('AFFILIATION')),c.default.createElement(s.View,{style:q.contentSwitch},c.default.createElement(R.default,{options:It,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){He([]),Ot('CHILD'===t?new Date((new Date).getFullYear()-parseInt(be.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(be.age_limit_of_insured_and_spouse),0,1)),Dt(t)}}))),c.default.createElement(s.View,{style:q.contentService},c.default.createElement(s.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===xt?Bt:zt,extraData:'CHILD'===xt?Bt:zt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Xt(n.name,n.isFrontCamera)}},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:E.Color.accentColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(y.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):c.default.createElement(s.TouchableOpacity,{style:q.choosePhotoBtn,onPress:function(){return Xt(n.name,n.isFrontCamera)},disabled:!je.includes('CHILD'===xt?Bt[l-1].name:zt[l-1].name)},null===n.file?c.default.createElement(T.default,{name:"camera-image",size:50,color:je.includes('CHILD'===xt?Bt[l-1].name:zt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):c.default.createElement(s.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),c.default.createElement(y.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:$.loading||l.loading,onPress:b},C.default.t('SUBMIT_LABEL'))))))}),gt&&c.default.createElement(h.default,{isVisible:gt,onSwipeComplete:function(){return pt(!1)},swipeDirection:['down'],style:q.bottomModal},c.default.createElement(s.View,{style:[q.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},c.default.createElement(s.View,{style:q.contentSwipeDown},c.default.createElement(s.View,{style:q.lineSwipeDown})),c.default.createElement(s.View,{style:[q.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),c.default.createElement(s.View,{style:[{marginBottom:40}]},c.default.createElement(s.FlatList,{data:jt,extraData:jt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return c.default.createElement(s.View,{style:q.lineRow},c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(y.default,{body1:!0},C.default.t('NOM_ASSURE')),c.default.createElement(y.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(s.View,{style:{alignItems:'flex-start'}},c.default.createElement(y.default,{body1:!0},C.default.t('AFFILIATION')),c.default.createElement(y.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),c.default.createElement(s.View,{style:q.iconRight},c.default.createElement(s.TouchableOpacity,{onPress:function(){var t=jt;console.log("beneficiariesTemp index",l),t.splice(l),console.log("beneficiariesTemp",t),Ht((0,o.default)(t))}},c.default.createElement(Y.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),c.default.createElement(x.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){pt(!1)}},C.default.t('OK')))),it&&c.default.createElement(v.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(nt),mode:"date",minimumDate:Tt,display:"spinner",onChange:Jt}),jt.length>=1&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return pt(!0)}},c.default.createElement(y.default,{whiteColor:!0,title2:!0},jt.length),c.default.createElement(y.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))),null!==Z.result&&c.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,left:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){ue(!0)}},c.default.createElement(y.default,{whiteColor:!0,caption2:!0},C.default.t('EXCLUSION'))))});e.default=$},1628,[4,1,7,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,1424,1077,982,1016,1435,1105,841,1190]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ReactNativeModal",{enumerable:!0,get:function(){return t.ReactNativeModal}}),e.default=void 0;var t=r(d[0]),o=t.ReactNativeModal;e.default=o},1629,[1630]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactNativeModal=void 0;var o=t(r(d[2])),s=t(r(d[3])),p=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),u=t(r(d[7])),f=t(r(d[8])),h=t(r(d[9])),w=n(r(d[10])),v=r(d[11]),b=n(r(d[12])),S=n(r(d[13])),k=r(d[14]),D=t(r(d[15]));function O(n,t){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),o.push.apply(o,s)}return o}function y(n){for(var t=1;t=o.props.panResponderThreshold||Math.abs(s.dy)>=o.props.panResponderThreshold;return p&&o.props.onSwipeStart&&o.props.onSwipeStart(s),o.currentSwipingDirection=o.getSwipingDirection(s),n=o.createAnimationEventForSwipe(),p}return!1},onStartShouldSetPanResponder:function(n,t){return!(n._dispatchInstances&&n._dispatchInstances.some(function(n){return/scrollview|flatlist/i.test(n.type)})&&o.shouldPropagateSwipe(n,t)&&o.props.scrollTo&&o.props.scrollOffset>0)&&(o.props.onSwipeStart&&o.props.onSwipeStart(t),o.currentSwipingDirection=null,!0)},onPanResponderMove:function(t,s){if(!o.currentSwipingDirection){if(0===s.dx&&0===s.dy)return;o.currentSwipingDirection=o.getSwipingDirection(s),n=o.createAnimationEventForSwipe()}if(o.isSwipeDirectionAllowed(s)){var p=1-o.calcDistancePercentage(s);o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity*p}),n(t,s),o.props.onSwipeMove&&o.props.onSwipeMove(p,s)}else if(o.props.scrollTo)if(o.props.scrollHorizontal){var c=-s.dx;c>o.props.scrollOffsetMax&&(c-=(c-o.props.scrollOffsetMax)/2),o.props.scrollTo({x:c,animated:!1})}else{var l=-s.dy;l>o.props.scrollOffsetMax&&(l-=(l-o.props.scrollOffsetMax)/2),o.props.scrollTo({y:l,animated:!1})}},onPanResponderRelease:function(n,t){if(o.getAccDistancePerDirection(t)>o.props.swipeThreshold&&o.isSwipeDirectionAllowed(t)){if(o.props.onSwipeComplete)return o.inSwipeClosingState=!0,void o.props.onSwipeComplete({swipingDirection:o.getSwipingDirection(t)},t);if(o.props.onSwipe)return o.inSwipeClosingState=!0,void o.props.onSwipe()}o.props.onSwipeCancel&&o.props.onSwipeCancel(t),o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity}),v.Animated.spring(o.state.pan,{toValue:{x:0,y:0},bounciness:0,useNativeDriver:!1}).start(),o.props.scrollTo&&o.props.scrollOffset>o.props.scrollOffsetMax&&o.props.scrollTo({y:o.props.scrollOffsetMax,animated:!0})}})},o.getAccDistancePerDirection=function(n){switch(o.currentSwipingDirection){case'up':return-n.dy;case'down':return n.dy;case'right':return n.dx;case'left':return-n.dx;default:return 0}},o.getSwipingDirection=function(n){return Math.abs(n.dx)>Math.abs(n.dy)?n.dx>0?'right':'left':n.dy>0?'down':'up'},o.calcDistancePercentage=function(n){switch(o.currentSwipingDirection){case'down':return(n.moveY-n.y0)/((o.props.deviceHeight||o.state.deviceHeight)-n.y0);case'up':return(0,k.reversePercentage)(n.moveY/n.y0);case'left':return(0,k.reversePercentage)(n.moveX/n.x0);case'right':return(n.moveX-n.x0)/((o.props.deviceWidth||o.state.deviceWidth)-n.x0);default:return 0}},o.createAnimationEventForSwipe=function(){return'right'===o.currentSwipingDirection||'left'===o.currentSwipingDirection?v.Animated.event([null,{dx:o.state.pan.x}],{useNativeDriver:!1}):v.Animated.event([null,{dy:o.state.pan.y}],{useNativeDriver:!1})},o.isDirectionIncluded=function(n){return Array.isArray(o.props.swipeDirection)?o.props.swipeDirection.includes(n):o.props.swipeDirection===n},o.isSwipeDirectionAllowed=function(n){var t=n.dy,s=n.dx,p=t>0,c=t<0,l=s<0,u=s>0;return!('up'!==o.currentSwipingDirection||!o.isDirectionIncluded('up')||!c)||(!('down'!==o.currentSwipingDirection||!o.isDirectionIncluded('down')||!p)||(!('right'!==o.currentSwipingDirection||!o.isDirectionIncluded('right')||!u)||!('left'!==o.currentSwipingDirection||!o.isDirectionIncluded('left')||!l)))},o.handleDimensionsUpdate=function(){if(!o.props.deviceHeight&&!o.props.deviceWidth){var n=v.Dimensions.get('window').width,t=v.Dimensions.get('window').height;n===o.state.deviceWidth&&t===o.state.deviceHeight||o.setState({deviceWidth:n,deviceHeight:t})}},o.open=function(){o.isTransitioning||(o.isTransitioning=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),o.state.isSwipeable&&o.state.pan.setValue({x:0,y:0}),o.contentRef&&(o.props.onModalWillShow&&o.props.onModalWillShow(),null==o.interactionHandle&&(o.interactionHandle=v.InteractionManager.createInteractionHandle()),o.contentRef.animate(o.animationIn,o.props.animationInTiming).then(function(){o.isTransitioning=!1,o.interactionHandle&&(v.InteractionManager.clearInteractionHandle(o.interactionHandle),o.interactionHandle=null),o.props.isVisible?o.props.onModalShow():o.close()})))},o.close=function(){if(!o.isTransitioning){o.isTransitioning=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:0},o.props.backdropTransitionOutTiming);var n=o.animationOut;o.inSwipeClosingState&&(o.inSwipeClosingState=!1,'up'===o.currentSwipingDirection?n='slideOutUp':'down'===o.currentSwipingDirection?n='slideOutDown':'right'===o.currentSwipingDirection?n='slideOutRight':'left'===o.currentSwipingDirection&&(n='slideOutLeft')),o.contentRef&&(o.props.onModalWillHide&&o.props.onModalWillHide(),null==o.interactionHandle&&(o.interactionHandle=v.InteractionManager.createInteractionHandle()),o.contentRef.animate(n,o.props.animationOutTiming).then(function(){o.isTransitioning=!1,o.interactionHandle&&(v.InteractionManager.clearInteractionHandle(o.interactionHandle),o.interactionHandle=null),o.props.isVisible?o.open():o.setState({showContent:!1},function(){o.setState({isVisible:!1},function(){o.props.onModalHide()})})}))}},o.makeBackdrop=function(){if(!o.props.hasBackdrop)return null;o.props.customBackdrop&&!w.isValidElement(o.props.customBackdrop)&&console.warn('Invalid customBackdrop element passed to Modal. You must provide a valid React element.');var n=o.props,t=n.customBackdrop,s=n.backdropColor,p=n.useNativeDriver,c=n.useNativeDriverForBackdrop,l=n.onBackdropPress,u=!!o.props.customBackdrop,f=[{width:o.getDeviceWidth(),height:o.getDeviceHeight(),backgroundColor:o.state.showContent&&!u?s:'transparent'}],h=w.createElement(S.View,{ref:function(n){return o.backdropRef=n},useNativeDriver:void 0!==c?c:p,style:[D.default.backdrop,f]},u&&t);return u?h:w.createElement(v.TouchableWithoutFeedback,{onPress:l},h)};var s=(0,k.buildAnimations)(T(n)),p=s.animationIn,l=s.animationOut;return o.animationIn=p,o.animationOut=l,o.state.isSwipeable&&(o.state=y({},o.state,{pan:new v.Animated.ValueXY}),o.buildPanResponder()),n.isVisible&&(o.state=y({},o.state,{isVisible:!0,showContent:!0})),o}return(0,h.default)(t,n),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.props.onSwipe&&console.warn('`` is deprecated and will be removed starting from 13.0.0. Use `` instead.'),v.DeviceEventEmitter.addListener('didUpdateDimensions',this.handleDimensionsUpdate),this.state.isVisible&&this.open(),v.BackHandler.addEventListener('hardwareBackPress',this.onBackButtonPress)}},{key:"componentWillUnmount",value:function(){v.BackHandler.removeEventListener('hardwareBackPress',this.onBackButtonPress),v.DeviceEventEmitter.removeListener('didUpdateDimensions',this.handleDimensionsUpdate),this.interactionHandle&&(v.InteractionManager.clearInteractionHandle(this.interactionHandle),this.interactionHandle=null)}},{key:"componentDidUpdate",value:function(n){if(this.props.animationIn!==n.animationIn||this.props.animationOut!==n.animationOut){var t=(0,k.buildAnimations)(T(this.props)),o=t.animationIn,s=t.animationOut;this.animationIn=o,this.animationOut=s}this.props.backdropOpacity!==n.backdropOpacity&&this.backdropRef&&this.backdropRef.transitionTo({opacity:this.props.backdropOpacity},this.props.backdropTransitionInTiming),this.props.isVisible&&!n.isVisible?this.open():!this.props.isVisible&&n.isVisible&&this.close()}},{key:"render",value:function(){var n=this,t=this.props,p=(t.animationIn,t.animationInTiming,t.animationOut,t.animationOutTiming,t.avoidKeyboard),c=t.coverScreen,l=(t.hasBackdrop,t.backdropColor,t.backdropOpacity,t.backdropTransitionInTiming,t.backdropTransitionOutTiming,t.customBackdrop,t.children),u=(t.isVisible,t.onModalShow,t.onBackButtonPress),f=t.useNativeDriver,h=(t.propagateSwipe,t.style),b=(0,s.default)(t,["animationIn","animationInTiming","animationOut","animationOutTiming","avoidKeyboard","coverScreen","hasBackdrop","backdropColor","backdropOpacity","backdropTransitionInTiming","backdropTransitionOutTiming","customBackdrop","children","isVisible","onModalShow","onBackButtonPress","useNativeDriver","propagateSwipe","style"]),k=(b.testID,(0,s.default)(b,["testID"])),O=[{margin:.05*this.getDeviceWidth(),transform:[{translateY:0}]},D.default.content,h],T={},M={};this.state.isSwipeable&&(T=y({},this.panResponder.panHandlers),M=f?{transform:this.state.pan.getTranslateTransform()}:this.state.pan.getLayout());var B=this.props.hideModalContentWhileAnimating&&this.props.useNativeDriver&&!this.state.showContent?w.createElement(S.View,null):l,I=w.createElement(S.View,(0,o.default)({},T,{ref:function(t){return n.contentRef=t},style:[M,O],pointerEvents:"box-none",useNativeDriver:f},k),B);return!c&&this.state.isVisible?w.createElement(v.View,{pointerEvents:"box-none",style:[D.default.backdrop,D.default.containerBox]},this.makeBackdrop(),I):w.createElement(v.Modal,(0,o.default)({transparent:!0,animationType:'none',visible:this.state.isVisible,onRequestClose:u},b),this.makeBackdrop(),p?w.createElement(v.KeyboardAvoidingView,{behavior:'ios'===v.Platform.OS?'padding':void 0,pointerEvents:"box-none",style:O.concat([{margin:0}])},I):I)}}],[{key:"getDerivedStateFromProps",value:function(n,t){return!t.isVisible&&n.isVisible?{isVisible:!0,showContent:!0}:null}}]),t})(w.Component);e.ReactNativeModal=M,M.propTypes={animationIn:b.oneOfType([b.string,b.object]),animationInTiming:b.number,animationOut:b.oneOfType([b.string,b.object]),animationOutTiming:b.number,avoidKeyboard:b.bool,coverScreen:b.bool,hasBackdrop:b.bool,backdropColor:b.string,backdropOpacity:b.number,backdropTransitionInTiming:b.number,backdropTransitionOutTiming:b.number,customBackdrop:b.node,children:b.node.isRequired,deviceHeight:b.number,deviceWidth:b.number,isVisible:b.bool.isRequired,hideModalContentWhileAnimating:b.bool,propagateSwipe:b.oneOfType([b.bool,b.func]),onModalShow:b.func,onModalWillShow:b.func,onModalHide:b.func,onModalWillHide:b.func,onBackButtonPress:b.func,onBackdropPress:b.func,panResponderThreshold:b.number,onSwipeStart:b.func,onSwipeMove:b.func,onSwipeComplete:b.func,onSwipeCancel:b.func,swipeThreshold:b.number,swipeDirection:b.oneOfType([b.arrayOf(b.oneOf(['up','down','left','right'])),b.oneOf(['up','down','left','right'])]),useNativeDriver:b.bool,useNativeDriverForBackdrop:b.bool,style:b.any,scrollTo:b.func,scrollOffset:b.number,scrollOffsetMax:b.number,scrollHorizontal:b.bool,supportedOrientations:b.arrayOf(b.oneOf(['portrait','portrait-upside-down','landscape','landscape-left','landscape-right']))},M.defaultProps={animationIn:'slideInUp',animationInTiming:300,animationOut:'slideOutDown',animationOutTiming:300,avoidKeyboard:!1,coverScreen:!0,hasBackdrop:!0,backdropColor:'black',backdropOpacity:.7,backdropTransitionInTiming:300,backdropTransitionOutTiming:300,customBackdrop:null,useNativeDriver:!1,deviceHeight:null,deviceWidth:null,hideModalContentWhileAnimating:!1,propagateSwipe:!1,isVisible:!1,panResponderThreshold:4,swipeThreshold:100,onModalShow:function(){return null},onModalWillShow:function(){return null},onModalHide:function(){return null},onModalWillHide:function(){return null},onBackdropPress:function(){return null},onBackButtonPress:function(){return null},scrollTo:null,scrollOffset:0,scrollOffsetMax:0,scrollHorizontal:!1,statusBarTranslucent:!1,supportedOrientations:['portrait','landscape']};var B=M;e.default=B},1630,[4,1,6,59,7,8,9,10,12,13,15,18,70,750,1631,1632]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.reversePercentage=e.buildAnimations=e.makeSlideTranslation=e.initializeAnimations=void 0;var s=t(r(d[2])),l=r(d[3]),o=n(r(d[4])),u=l.Dimensions.get('window'),f=u.height,c=u.width;e.initializeAnimations=function(){var n={slideInDown:v('translateY',-f,0),slideInUp:v('translateY',f,0),slideInLeft:v('translateX',-c,0),slideInRight:v('translateX',c,0),slideOutDown:v('translateY',0,f),slideOutUp:v('translateY',0,-f),slideOutLeft:v('translateX',0,-c),slideOutRight:v('translateX',0,c)};o.initializeRegistryWithDefinitions(n)};var v=function(n,t,l){return{from:(0,s.default)({},n,t),to:(0,s.default)({},n,l)}};e.makeSlideTranslation=v;e.buildAnimations=function(n){var t,s,l=n.animationIn,o=n.animationOut;if(h(l)){var u=JSON.stringify(l);O(u,l),t=u}else t=l;if(h(o)){var f=JSON.stringify(o);O(f,o),s=f}else s=o;return{animationIn:t,animationOut:s}};e.reversePercentage=function(n){return-(n-1)};var O=function(n,t){o.registerAnimation(n,o.createAnimation(t))},h=function(n){return null!==n&&'object'==typeof n}},1631,[4,1,7,18,750]); @@ -1738,25 +1738,25 @@ __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0 __d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-native-dropdownalert/assets",width:36,height:36,scales:[1,2,3],hash:"73cf01e3b92f81ad47ce862a7b96003c",name:"cancel",type:"png"})},1732,[178]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){return t===n}function n(t,n,u){if(null===n||null===u||n.length!==u.length)return!1;for(var o=n.length,c=0;c1&&void 0!==arguments[1]?arguments[1]:t,c=null,l=null;return function(){return n(o,c,arguments)||(l=u.apply(null,arguments)),c=arguments,l}}function o(t){var n=Array.isArray(t[0])?t[0]:t;if(!n.every(function(t){return'function'==typeof t})){var u=n.map(function(t){return typeof t}).join(', ');throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+u+']')}return n}function c(t){for(var n=arguments.length,u=Array(n>1?n-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:l;if('object'!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var u=Object.keys(t);return n(u.map(function(n){return t[n]}),function(){for(var t=arguments.length,n=Array(t),o=0;o1?V.result.response[1]:null,marriage_certificate_doc:V.result.response[0],id_document_type:"CNI",id_document_front:V.result.response[1],id_document_back:V.result.response[2],isEditable:!0}].concat((0,l.default)(Lt))),Le.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),Q(!1))),V.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(V),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[V]);var _t=b.object().shape({password:"MAX"===pt.password_validation?b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')):b.string()}),It=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),yt=(0,u.useState)([{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}]),At=(0,o.default)(yt,2),Dt=At[0],Tt=At[1],xt=(0,u.useState)([]),Rt=(0,o.default)(xt,2),Lt=Rt[0],Bt=Rt[1],Ft=(0,u.useState)([{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),kt=(0,o.default)(Ft,2),vt=kt[0],Ot=kt[1],Vt=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],F.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var o,u;"CHILD"===ot?Tt(Dt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):Ot(vt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),o=t,u=n,null!==Ie&&(Se=Ie),Se.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===c.Platform.OS?u.path:u.path.replace("file://","")}),xe([o].concat((0,l.default)(Te))),ye(Se)})},Nt=function(t,n){var l=n||Me;Ge('ios'===c.Platform.OS),Ye(l)};return u.default.createElement(S.ScreenComponent,null,u.default.createElement(L.default,{ref:function(t){return Le=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(h.Formik,{validationSchema:_t,initialValues:{password:''},onSubmit:function(t){null!==te&&(null===ct?wt.shake(800):(console.log(te),console.log("insurance",oe),Ce(t.password),U(ct.id,{password:t.password,beneficiaries:Lt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.View,{style:G.contain},u.default.createElement(v.View,{ref:function(t){wt=t},style:{width:(0,D.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(N.Dropdown,{label:C.default.t('SELECT_SUBSCRIPTION'),data:mt,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),st({id:t.id,network:t.network,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+C.default.t('ETAT')+": "+t.state+" | "+C.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===pt.password_validation&&u.default.createElement(I.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(A.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},u.default.createElement(c.TouchableOpacity,{onPress:function(){var t,n;null===ct?Le.alertWithType('warn',C.default.t('ERROR_LABEL'),C.default.t('PLEASE_SELECT_INSURANCE_BEFORE')):(console.log("Souscription",ct),Q(!0),Ge(!1),Re((0,R.fetchUploadInsuranceReset)()),rt('CHILD'),St(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(t=ct.network)?void 0:t.age_limit_of_child_beneficiary),0,1)),Ye(''+Y(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(n=ct.network)?void 0:n.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),fe(null),pe(null),xe([]))}},u.default.createElement(_.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),u.default.createElement(y.default,{style:{marginTop:20},full:!0,loading:H.loading,onPress:h},C.default.t('SUBMIT_LABEL')))}))),J&&u.default.createElement(h.Formik,{validationSchema:It,initialValues:{firstname:'',lastname:''},onSubmit:function(t){O(Ie),fe(t.firstname),pe(t.lastname)}},function(t){var l=t.values,o=t.errors,s=t.touched,h=t.handleChange,b=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[G.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(f.default,{isVisible:J,onSwipeComplete:function(){Q(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:l.lastname,onChangeText:h('lastname'),onBlur:b('lastname'),success:s.lastname&&!o.lastname,touched:s.lastname,error:o.lastname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:l.firstname,onChangeText:h('firstname'),onBlur:b('firstname'),success:s.firstname&&!o.firstname,touched:s.firstname,error:o.firstname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+Y(Me).format('YYYY-MM-DD'),onChangeText:h('birthdate'),onBlur:b('birthdate'),onFocus:function(){c.Keyboard.dismiss(),Ge(!0)},success:s.birthdate&&!o.birthdate,touched:s.birthdate,error:o.birthdate}),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('SEXE')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(T.default,{options:Ve,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){et(t)}}))),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('AFFILIATION')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(T.default,{options:at,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){xe([]),St('CHILD'===t?new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_insured_and_spouse),0,1)),rt(t)}}))),u.default.createElement(c.View,{style:G.contentService},u.default.createElement(c.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===ot?Dt:vt,extraData:'CHILD'===ot?Dt:vt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Vt(n.name,n.isFrontCamera)}},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:E.Color.accentColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Vt(n.name,n.isFrontCamera)},disabled:!Te.includes('CHILD'===ot?Dt[l-1].name:vt[l-1].name)},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:Te.includes('CHILD'===ot?Dt[l-1].name:vt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:V.loading||n.loading,onPress:p},C.default.t('SUBMIT_LABEL'))))))}),Je&&u.default.createElement(f.default,{isVisible:Je,onSwipeComplete:function(){return Qe(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(c.View,{style:[G.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),u.default.createElement(c.View,{style:[{marginBottom:40}]},u.default.createElement(c.FlatList,{data:Lt.concat(ct.beneficiaries),extraData:Lt.concat(ct.beneficiaries),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,o=t.index;return console.log("Item",n),u.default.createElement(c.View,{style:G.lineRow},u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('NOM_ASSURE')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('AFFILIATION')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),u.default.createElement(c.View,{style:G.iconRight},n.hasOwnProperty('isEditable')&&u.default.createElement(c.TouchableOpacity,{onPress:function(){var t=Lt;console.log("beneficiariesTemp index",o),t.splice(o),console.log("beneficiariesTemp",t),Bt((0,l.default)(t))}},u.default.createElement(P.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){Qe(!1)}},C.default.t('OK')))),je&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Me),mode:"date",minimumDate:Ct,display:"spinner",onChange:Nt}),null!==ct&&u.default.createElement(c.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return Qe(!0)}},u.default.createElement(_.default,{whiteColor:!0,title2:!0},Lt.concat(ct.beneficiaries).length),u.default.createElement(_.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))))});e.default=K},1735,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,982,1016,1105,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),v=n(r(d[14])),C=r(d[15]),E=r(d[16]),R=n(r(d[17])),y=r(d[18]),A=t(r(d[19])),x=r(d[20]),L=r(d[21]),P=r(d[22]),T=r(d[23]),B=(r(d[24]),s.Dimensions.get('window')),D=B.width,I=(B.height,.5*D),k=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:I,height:I,borderRadius:I/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-I/3,top:-I/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),M=(0,x.createStructuredSelector)({subscriptionList:L.selectSubscriptionList,activatePaySubscription:L.selectActivatePaySubscription}),V=(0,u.connect)(M,{fetchActivePaySubscription:E.fetchActivePaySubscription,fetchGetSubscriptionList:E.fetchGetSubscriptionList})(function(t){var n=t.activatePaySubscription,p=t.fetchGetSubscriptionList,x=t.subscriptionList,L=t.fetchActivePaySubscription,B=t.navigation,D=(0,l.useState)(null),I=(0,o.default)(D,2),M=I[0],V=I[1],j=(0,l.useState)(null),O=(0,o.default)(j,2),U=(O[0],O[1],(0,l.useState)([])),W=(0,o.default)(U,2),F=W[0],G=W[1],N=(0,l.useState)(null),z=(0,o.default)(N,2),H=z[0],K=z[1],X=(0,u.useDispatch)(),q=null,Q=(0,l.useState)(T.store.getState().walletDetailReducer.result.response),J=(0,o.default)(Q,1)[0];(0,l.useEffect)(function(){(0,y.readUser)().then(function(t){V(t)}),X((0,E.fetchGetSubscriptionListReset)()),X((0,E.fetchActivePaySubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==M&&(console.log("user",M.id),p(M.id,'UNPAID',!0))},[M]),(0,l.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),G(t)}x.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(x),[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[x]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchActivePaySubscriptionReset)()),B.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){X((0,E.fetchActivePaySubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===J.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==M&&(null===H?q.shake(800):(console.log("subscription",H),L(H.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:k.contain},l.default.createElement(A.View,{ref:function(t){q=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(P.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:F,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),K({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return b.default.t('MNT')+": "+t.amount+" | "+b.default.t('FACT')+": "+t.invoice_id.slice(0,7)+" | "+b.default.t('ECH')+": "+t.deadline_number}})),"MAX"===J.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(v.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1736,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),b=t(r(d[9])),p=t(r(d[10])),E=r(d[11]),C=n(r(d[12])),S=r(d[13]),w=n(r(d[14])),_=n(r(d[15])),I=n(r(d[16])),y=n(r(d[17])),A=n(r(d[18])),T=r(d[19]),D=n(r(d[20])),x=n(r(d[21])),R=r(d[22]),L=n(r(d[23])),F=r(d[24]),k=n(r(d[25])),B=n(r(d[26])),v=t(r(d[27])),O=r(d[28]),P=r(d[29]),V=r(d[30]),N=n(r(d[31])),M=r(d[32]),Y=r(d[33]),U=c.Dimensions.get('window'),H=U.width,j=(U.height,.5*H),G=c.StyleSheet.create({textInput:{height:46,backgroundColor:E.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:j,height:j,borderRadius:j/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-j/3,top:-j/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:E.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:E.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:E.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,T.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:E.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),z=(0,O.createStructuredSelector)({insuranceList:P.selectInsuranceList,subscribeInsurance:P.selectSubscribeInsurance,uploadInsuranceImages:P.selectUploadInsuranceImages,insurancePrimeAmount:P.selectInsurancePrimeAmount,addBeneficiaryToSubscription:P.selectAddBeneficiaryToSubscription,subscriptionList:P.selectSubscriptionList}),K=(0,s.connect)(z,{fetchGetListInsurance:R.fetchGetListInsurance,fetchSubscribeInsurance:R.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:R.fetchGetInsurancePrimeAmount,fetchUploadInsurance:R.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:R.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:R.fetchGetSubscriptionList})(function(t){t.insuranceList;var n=t.subscribeInsurance,O=(t.insurancePrimeAmount,t.fetchSubscribeInsurance,t.fetchGetListInsurance,t.fetchGetInsurancePrimeAmount,t.fetchUploadInsurance),P=t.uploadInsuranceImages,U=t.fetchAddBeneficiaryToSubscription,H=t.addBeneficiaryToSubscription,j=t.fetchGetSubscriptionList,z=t.subscriptionList,K=t.navigation,W=(0,u.useState)(!1),J=(0,o.default)(W,2),Q=J[0],q=J[1],X=(0,u.useState)(!1),Z=(0,o.default)(X,2),$=(Z[0],Z[1],(0,u.useState)(null)),ee=(0,o.default)($,2),te=ee[0],ae=ee[1],ne=(0,u.useState)(null),le=(0,o.default)(ne,2),oe=le[0],re=(le[1],(0,u.useState)(null)),ie=(0,o.default)(re,2),ue=ie[0];ie[1];(0,u.useEffect)(function(){console.log("amountPerMonth",ue)});var ce=(0,u.useState)(null),se=(0,o.default)(ce,2),de=se[0],fe=se[1],me=(0,u.useState)(null),he=(0,o.default)(me,2),be=he[0],pe=he[1],ge=(0,u.useState)(null),Ee=(0,o.default)(ge,2),Ce=(Ee[0],Ee[1]),Se=new FormData,we=(0,u.useState)(null),_e=(0,o.default)(we,2),Ie=_e[0],ye=_e[1],Ae=(0,u.useState)([]),Te=(0,o.default)(Ae,2),De=Te[0],xe=Te[1],Re=(0,s.useDispatch)(),Le=null,Fe=(0,u.useState)([]),ke=(0,o.default)(Fe,2),Be=(ke[0],ke[1],(0,u.useState)([{label:C.default.t('YES'),value:0},{label:C.default.t('NO'),value:1}])),ve=(0,o.default)(Be,2),Oe=(ve[0],ve[1],(0,u.useState)([{label:C.default.t('MASCULIN'),value:"M"},{label:C.default.t('FEMININ'),value:"F"}])),Pe=(0,o.default)(Oe,1)[0],Ve=(0,u.useState)(''+Y(new Date((new Date).getFullYear()-5,0,1)).format('YYYY-MM-DD')),Ne=(0,o.default)(Ve,2),Me=Ne[0],Ye=Ne[1],Ue=(0,u.useState)(!1),He=(0,o.default)(Ue,2),je=He[0],Ge=He[1],ze=(0,u.useState)(!1),Ke=(0,o.default)(ze,2),We=(Ke[0],Ke[1],(0,u.useState)(!1)),Je=(0,o.default)(We,2),Qe=Je[0],qe=Je[1],Xe=(0,u.useState)('M'),Ze=(0,o.default)(Xe,2),$e=Ze[0],et=Ze[1],tt=(0,u.useState)([{label:C.default.t('ENFANT'),value:"CHILD"},{label:C.default.t('CONJOINT'),value:'SPOUSE'}]),at=(0,o.default)(tt,1)[0],nt=(0,u.useState)('CHILD'),lt=(0,o.default)(nt,2),ot=lt[0],rt=lt[1],it=(0,u.useState)(null),ut=(0,o.default)(it,2),ct=ut[0],st=ut[1],dt=(0,u.useState)([]),ft=(0,o.default)(dt,2),mt=ft[0],ht=ft[1],bt=(0,u.useState)(M.store.getState().walletDetailReducer.result.response),pt=((0,o.default)(bt,1)[0],(0,u.useState)(new Date((new Date).getFullYear()-5,0,1))),gt=(0,o.default)(pt,2),Et=gt[0],Ct=gt[1],St=null;(0,u.useEffect)(function(){(0,F.readUser)().then(function(t){console.log("user",t),ae(t)}),Re((0,R.fetchUploadInsuranceReset)()),Re((0,R.fetchAddBeneficiaryToSubscriptionReset)()),Re((0,R.fetchGetSubscriptionListReset)())},[]),(0,u.useEffect)(function(){null!==te&&j(te.id,'EDITABLE',!1)},[te]),(0,u.useEffect)(function(){console.log('Beneficiaries',Rt)},[Rt]),(0,u.useEffect)(function(){null!==ct&&console.log('Subscription',ct)},[ct]),(0,u.useEffect)(function(){console.log("currentYearMinusAgeLimit",Et)},Et),(0,u.useEffect)(function(){if(null!==z.result){var t=[];z.result.response.map(function(n,l){t.push(n)}),ht(t)}z.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(z),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[z]),(0,u.useEffect)(function(){null!==H.result&&c.Alert.alert(C.default.t("SUCCESS"),H.result.response,[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchAddBeneficiaryToSubscriptionReset)()),K.goBack()}}],{cancelable:!1}),H.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(H),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchSubscribeInsuranceReset)())}}],{cancelable:!1})},[H]),(0,u.useEffect)(function(){null!==P.result&&(q(!1),null!==ct)&&(Rt.length===parseInt(ct.max_number_of_beneficiaries)?c.Alert.alert(C.default.t("ERROR_LABLE"),C.default.t('NUMBER_MAX_BENEFICIARY'),[{text:C.default.t("OK"),onPress:function(){}}],{cancelable:!1}):(console.log("affiliation",ot),Lt([{lastname:be,firstname:de,gender:$e,birthdate:Y(Me).format('YYYY-MM-DD'),affiliation:ot,birthdate_proof:At[1].checboxSelectedValue,profile_image:P.result.response[0],birthdate_proof_doc:P.result.response[1],justice_doc:P.result.response.length>1?P.result.response[2]:null,marriage_certificate_doc:P.result.response[1],id_document_type:"CNI",id_document_front:P.result.response[2],id_document_back:P.result.response[3],isEditable:!0}].concat((0,l.default)(Rt))),Le.alertWithType('success',C.default.t('SUCCESS'),C.default.t('BENEFICIARY_SUCCESSFULLY_ADDED')),q(!1))),P.error&&c.Alert.alert(C.default.t("ERROR_LABLE"),p.getErrorMsg(P),[{text:C.default.t("OK"),onPress:function(){Re((0,R.fetchUploadInsuranceReset)())}}],{cancelable:!1})},[P]);var wt=b.object().shape({password:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED'))}),_t=b.object().shape({lastname:b.string().required(C.default.t('THIS_FIELD_IS_REQUIRED')),firstname:b.string()}),It=(0,u.useState)([{label:C.default.t('PROFILE_PICTURE'),name:'profile_image',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE'),name:'birthdate_proof_doc',isFrontCamera:!1,file:null,hasCheckbox:!0,checkboxValue:['CERTIFICATE','CERTIFIED_COPY'],checboxSelectedValue:'CERTIFICATE'},{label:C.default.t('DOCUMENT_JUSTICE_ENFANT_ADOPTE'),name:'justice_doc',isFrontCamera:!1,file:null,hasCheckbox:!1}]),yt=(0,o.default)(It,2),At=yt[0],Tt=yt[1],Dt=(0,u.useState)([]),xt=(0,o.default)(Dt,2),Rt=xt[0],Lt=xt[1],Ft=(0,u.useState)([{label:C.default.t('PROFILE_PICTURE'),name:'profile_image',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('ACTE_MARIAGE'),name:'marriage_certificate_doc',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_FRONT_FACE'),name:'id_document_front',isFrontCamera:!1,file:null,hasCheckbox:!1},{label:C.default.t('CNI_BACK_FACE'),name:'id_document_back',isFrontCamera:!1,file:null,hasCheckbox:!1}]),kt=(0,o.default)(Ft,2),Bt=kt[0],vt=kt[1],Ot=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],k.default.openCamera({cropping:!0,compressImageQuality:.7,useFrontCamera:!1}).then(function(n){var o,u;"CHILD"===ot?Tt(At.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})):vt(Bt.map(function(l){return t===l.name?l.hasCheckbox?{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n,hasCheckbox:l.hasCheckbox,checkboxValue:l.checkboxValue,checboxSelectedValue:l.checboxSelectedValue}:{label:l.label,name:l.name,isFrontCamera:l.isFrontCamera,file:n}:l})),o=t,u=n,null!==Ie&&(Se=Ie),Se.append("files[]",{name:u.path.split('/').pop(),type:u.mime,uri:"android"===c.Platform.OS?u.path:u.path.replace("file://","")}),xe([o].concat((0,l.default)(De))),ye(Se)})},Pt=function(t,n){var l=n||Me;Ge('ios'===c.Platform.OS),Ye(l)};return u.default.createElement(S.ScreenComponent,null,u.default.createElement(L.default,{ref:function(t){return Le=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(h.Formik,{validationSchema:wt,initialValues:{password:''},onSubmit:function(t){null!==te&&(null===ct?St.shake(800):(console.log(te),console.log("insurance",oe),Ce(t.password),U(ct.id,{password:t.password,beneficiaries:Rt})))}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.View,{style:G.contain},u.default.createElement(v.View,{ref:function(t){St=t},style:{width:(0,T.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(V.Dropdown,{label:C.default.t('SELECT_SUBSCRIPTION'),data:mt,useNativeDriver:!0,onChangeText:function(t,n,l){console.log("Value",t),st({id:t.id,network:t.network,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+C.default.t('ETAT')+": "+t.state+" | "+C.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),u.default.createElement(I.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:C.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(A.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:o.password&&!l.password,touched:o.password,error:l.password}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center',justifyContent:'space-between',marginTop:25}},u.default.createElement(c.TouchableOpacity,{onPress:function(){var t,n;null===ct?Le.alertWithType('warn',C.default.t('ERROR_LABEL'),C.default.t('PLEASE_SELECT_INSURANCE_BEFORE')):(console.log("Souscription",ct),q(!0),Ge(!1),Re((0,R.fetchUploadInsuranceReset)()),rt('CHILD'),Ct(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(t=ct.network)?void 0:t.age_limit_of_child_beneficiary),0,1)),Ye(''+Y(new Date((new Date).getFullYear()-parseInt(null==ct?void 0:null==(n=ct.network)?void 0:n.age_limit_of_child_beneficiary),0,1)).format('YYYY-MM-DD')),fe(null),pe(null),xe([]))}},u.default.createElement(_.default,{body1:!0,primaryColor:!0,bold:!0},C.default.t('ADD_AYANT_DROIT')))),u.default.createElement(y.default,{style:{marginTop:20},full:!0,loading:H.loading,onPress:h},C.default.t('SUBMIT_LABEL')))}))),Q&&u.default.createElement(h.Formik,{validationSchema:_t,initialValues:{firstname:'',lastname:''},onSubmit:function(t){O(Ie),fe(t.firstname),pe(t.lastname)}},function(t){var l=t.values,o=t.errors,s=t.touched,h=t.handleChange,b=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[G.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(f.default,{isVisible:Q,onSwipeComplete:function(){q(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},C.default.t('ADD_AYANT_DROIT')),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('NOM_ASSURE'),value:l.lastname,onChangeText:h('lastname'),onBlur:b('lastname'),success:s.lastname&&!o.lastname,touched:s.lastname,error:o.lastname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('PRENOM_ASSURE'),value:l.firstname,onChangeText:h('firstname'),onBlur:b('firstname'),success:s.firstname&&!o.firstname,touched:s.firstname,error:o.firstname}),u.default.createElement(w.default,{style:{marginTop:10},placeholder:C.default.t('DATE_NAISSANCE'),value:''+Y(Me).format('YYYY-MM-DD'),onChangeText:h('birthdate'),onBlur:b('birthdate'),onFocus:function(){c.Keyboard.dismiss(),Ge(!0)},success:s.birthdate&&!o.birthdate,touched:s.birthdate,error:o.birthdate}),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('SEXE')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(D.default,{options:Pe,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){et(t)}}))),u.default.createElement(c.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},C.default.t('AFFILIATION')),u.default.createElement(c.View,{style:G.contentSwitch},u.default.createElement(D.default,{options:at,initial:0,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){xe([]),Ct('CHILD'===t?new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_child_beneficiary),0,1):new Date((new Date).getFullYear()-parseInt(ct.network.age_limit_of_insured_and_spouse),0,1)),rt(t)}}))),u.default.createElement(c.View,{style:G.contentService},u.default.createElement(c.FlatList,{horizontal:!0,showsHorizontalScrollIndicator:!1,data:'CHILD'===ot?At:Bt,extraData:'CHILD'===ot?At:Bt,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,l=t.index;return 0===l?u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Ot(n.name,n.isFrontCamera)}},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:E.Color.accentColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label)):u.default.createElement(c.TouchableOpacity,{style:G.choosePhotoBtn,onPress:function(){return Ot(n.name,n.isFrontCamera)},disabled:!De.includes('CHILD'===ot?At[l-1].name:Bt[l-1].name)},null===n.file?u.default.createElement(x.default,{name:"camera-image",size:50,color:De.includes('CHILD'===ot?At[l-1].name:Bt[l-1].name)?E.Color.accentColor:E.Color.grayColor}):u.default.createElement(c.Image,{source:{uri:n.file.path},style:{width:50,height:50}}),u.default.createElement(_.default,{style:{alignSelf:'flex-start',fontSize:13},textAlign:"center"},n.label))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:P.loading||n.loading,onPress:p},C.default.t('SUBMIT_LABEL'))))))}),Qe&&u.default.createElement(f.default,{isVisible:Qe,onSwipeComplete:function(){return qe(!1)},swipeDirection:['down'],style:G.bottomModal},u.default.createElement(c.View,{style:[G.contentFilterBottom,{backgroundColor:E.Color.cardBackgroundColor}]},u.default.createElement(c.View,{style:G.contentSwipeDown},u.default.createElement(c.View,{style:G.lineSwipeDown})),u.default.createElement(c.View,{style:[G.contentActionModalBottom,{borderBottomColor:E.Color.borderColor}]}),u.default.createElement(c.View,{style:[{marginBottom:40}]},u.default.createElement(c.FlatList,{data:Rt.concat(ct.beneficiaries),extraData:Rt.concat(ct.beneficiaries),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item,o=t.index;return console.log("Item",n),u.default.createElement(c.View,{style:G.lineRow},u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('NOM_ASSURE')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),u.default.createElement(c.View,{style:{alignItems:'flex-start'}},u.default.createElement(_.default,{body1:!0},C.default.t('AFFILIATION')),u.default.createElement(_.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?C.default.t('ENFANT'):C.default.t('CONJOINT'))),u.default.createElement(c.View,{style:G.iconRight},n.hasOwnProperty('isEditable')&&u.default.createElement(c.TouchableOpacity,{onPress:function(){var t=Rt;console.log("beneficiariesTemp index",o),t.splice(o),console.log("beneficiariesTemp",t),Lt((0,l.default)(t))}},u.default.createElement(N.default,{name:"minus-circle",size:24,color:E.Color.grayColor}))))}})),u.default.createElement(y.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){qe(!1)}},C.default.t('OK')))),je&&u.default.createElement(B.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Me),mode:"date",minimumDate:Et,display:"spinner",onChange:Pt}),null!==ct&&u.default.createElement(c.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:E.Color.primaryColor,borderRadius:100},onPress:function(){return qe(!0)}},u.default.createElement(_.default,{whiteColor:!0,title2:!0},Rt.concat(ct.beneficiaries).length),u.default.createElement(_.default,{whiteColor:!0,caption2:!0},C.default.t('AYANT_DROIT'))))});e.default=K},1735,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1416,1417,1716,1488,539,535,772,882,1486,1717,719,1588,1569,750,1733,1734,982,1016,1105,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[2])),l=t(r(d[3])),u=r(d[4]),c=r(d[5]),s=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=o(r(d[10])),w=r(d[11]),E=o(r(d[12])),C=o(r(d[13])),y=o(r(d[14])),S=r(d[15]),_=r(d[16]),R=o(r(d[17])),T=r(d[18]),v=t(r(d[19])),x=r(d[20]),I=r(d[21]),B=r(d[22]),L=r(d[23]),D=o(r(d[24])),V=o(r(d[25])),A=o(r(d[26])),P=o(r(d[27])),k=(r(d[28]),u.Dimensions.get('window')),M=k.width,O=(k.height,.5*M),z=u.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:O,height:O,borderRadius:O/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-O/3,top:-O/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,S.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5},containPaymentMethod:{flex:1,alignItems:'center',paddingHorizontal:20,paddingVertical:15},methodItem:{width:'100%',flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:15,marginBottom:5},iconContent:{width:30,marginRight:10,alignItems:'center'}}),W=(0,x.createStructuredSelector)({subscriptionList:I.selectSubscriptionList,activatePaySubscription:I.selectActivatePaySubscription}),j=(0,c.connect)(W,{fetchActivePaySubscription:_.fetchActivePaySubscription,fetchGetSubscriptionList:_.fetchGetSubscriptionList})(function(t){var o=t.activatePaySubscription,x=t.fetchGetSubscriptionList,I=t.subscriptionList,k=t.fetchActivePaySubscription,M=t.navigation,O=(0,l.useState)(null),W=(0,n.default)(O,2),j=W[0],F=W[1],N=(0,l.useState)(null),U=(0,n.default)(N,2),H=(U[0],U[1],(0,l.useState)([])),G=(0,n.default)(H,2),K=G[0],q=G[1],Q=(0,l.useState)(null),Y=(0,n.default)(Q,2),J=Y[0],X=Y[1],Z=(0,l.useState)(!1),$=(0,n.default)(Z,2),ee=$[0],te=$[1],oe=(0,c.useDispatch)(),ne=null,ae=(0,l.useState)(L.store.getState().walletDetailReducer.result.response);(0,n.default)(ae,1)[0];(0,l.useEffect)(function(){(0,T.readUser)().then(function(t){F(t)}),oe((0,_.fetchGetSubscriptionListReset)()),oe((0,_.fetchActivePaySubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==j&&(console.log("user",j.id),x(j.id,'UNPAID',!0))},[j]),(0,l.useEffect)(function(){if(null!==I.result){var t=[];I.result.response.map(function(o,n){t.push(o)}),q(t)}I.error&&u.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(I),[{text:b.default.t("OK"),onPress:function(){oe((0,_.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[I]),(0,l.useEffect)(function(){null!==o.result&&u.Alert.alert(b.default.t("SUCCESS"),o.result.response,[{text:b.default.t("OK"),onPress:function(){oe((0,_.fetchActivePaySubscriptionReset)()),M.goBack()}}],{cancelable:!1}),o.error&&u.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(o),[{text:b.default.t("OK"),onPress:function(){oe((0,_.fetchActivePaySubscriptionReset)())}}],{cancelable:!1})},[o]);var re=f.object().shape({password:f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')),amount:f.number().required(b.default.t('THIS_FIELD_IS_REQUIRED'))}),le=(0,s.useFormik)({validationSchema:re,initialValues:{password:'',amount:''},onSubmit:function(t){null!==j&&(null===J?ne.shake(800):(console.log("subscription",J),te(!0)))}}),ie=le.handleChange,de=le.handleSubmit,ue=le.handleBlur,ce=le.values,se=le.errors,fe=le.touched,me=le.setFieldValue;le.setFieldTouched,le.isValid;return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(u.KeyboardAvoidingView,{behavior:'android'===u.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(u.ScrollView,{style:{flex:1}},l.default.createElement(u.View,{style:z.contain},l.default.createElement(v.View,{ref:function(t){ne=t},style:{width:(0,S.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(B.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:K,useNativeDriver:!0,onChangeText:function(t,o,n){console.log("Value",t),X({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return b.default.t('MNT')+": "+t.amount+" | "+b.default.t('FACT')+": "+t.invoice_id.slice(0,7)+" | "+b.default.t('RESTE')+": "+t.remaining_amount}})),l.default.createElement(P.default,{style:{marginTop:10},placeholder:b.default.t('AMOUNT'),value:ce.amount,onChangeText:function(t){me('amount',t)},onBlur:ue('amount'),success:fe.amount&&!se.amount,touched:fe.amount,error:se.amount}),l.default.createElement(E.default,{style:{marginTop:10},onChangeText:ie('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(y.default,{name:"lock",size:20}),value:ce.password,onBlur:ue('password'),success:fe.password&&!se.password,touched:fe.password,error:se.password}),l.default.createElement(C.default,{style:{marginTop:20},full:!0,loading:o.loading,onPress:de},b.default.t('SUBMIT_LABEL'))),ee&&l.default.createElement(u.ScrollView,{style:{flex:1}},l.default.createElement(u.View,{style:[z.containModal,{backgroundColor:p.Color.containerBackgroundColor}]},l.default.createElement(D.default,{isVisible:ee,onSwipeComplete:function(){te(!1)},swipeDirection:['down'],style:z.bottomModal},l.default.createElement(u.View,{style:[z.contentFilterBottom,{backgroundColor:p.Color.containerBackgroundColor}]},l.default.createElement(u.View,{style:z.contentSwipeDown},l.default.createElement(u.View,{style:z.lineSwipeDown})),l.default.createElement(V.default,{body2:!0,style:{marginTop:10}},b.default.t('PAYMENT_METHOD')),l.default.createElement(u.View,null,l.default.createElement(u.TouchableOpacity,{style:[z.methodItem,{borderBottomColor:p.Color.borderColor,borderBottomWidth:1}],onPress:function(){k(J.id,{password:ce.password,amount:ce.amount,payment_mthod:'wallet'})}},l.default.createElement(u.View,{style:{flexDirection:'row',alignItems:'center'}},l.default.createElement(u.View,{style:z.iconContent},l.default.createElement(A.default,{name:"wallet",size:24,color:p.Color.textColor})),l.default.createElement(V.default,{headline:!0},b.default.t('WALLET'))),l.default.createElement(A.default,{name:"angle-right",size:18,color:p.Color.primaryColor,enableRTL:!0})),l.default.createElement(u.TouchableOpacity,{style:[z.methodItem,{borderBottomColor:p.Color.borderColor,borderBottomWidth:1}],onPress:function(){k(J.id,{password:ce.password,amount:ce.amount,payment_mthod:'card'})}},l.default.createElement(u.View,{style:{flexDirection:'row',alignItems:'center'}},l.default.createElement(u.View,{style:z.iconContent},l.default.createElement(A.default,{name:"cc-visa",size:24,color:p.Color.textColor})),l.default.createElement(V.default,{headline:!0},b.default.t('CREDIT_CARD'))),l.default.createElement(A.default,{name:"angle-right",size:18,color:p.Color.primaryColor,enableRTL:!0})),l.default.createElement(u.TouchableOpacity,{style:[z.methodItem,{borderBottomColor:p.Color.borderColor,borderBottomWidth:1}],onPress:function(){k(J.id,{password:ce.password,amount:ce.amount,payment_mthod:'mobile_money'})}},l.default.createElement(u.View,{style:{flexDirection:'row',alignItems:'center'}},l.default.createElement(u.View,{style:z.iconContent},l.default.createElement(A.default,{name:"mobile-alt",size:24,color:p.Color.textColor})),l.default.createElement(V.default,{headline:!0},b.default.t('MOBILE_MONEY'))),l.default.createElement(A.default,{name:"angle-right",size:18,color:p.Color.primaryColor,enableRTL:!0}))),l.default.createElement(C.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return te(!1)}},b.default.t('OK')))))))))});e.default=j},1736,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1629,1417,1016,1416,1190]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=l(r(d[3])),u=t(r(d[4])),s=r(d[5]),c=r(d[6]),f=l(r(d[7])),E=r(d[8]),p=t(r(d[9])),_=r(d[10]),h=l(r(d[11])),C=r(d[12]),S=l(r(d[13])),y=r(d[14]),w=r(d[15]),b=l(r(d[16])),T=r(d[17]),R=l(r(d[18])),A=r(d[19]),D=r(d[20]),I=l(r(d[21])),N=l(r(d[22])),v=l(r(d[23])),O=l(r(d[24])),x=l(r(d[25])),B=l(r(d[26])),M=t(r(d[27])),P=r(d[28]),U=l(r(d[29])),k=l(r(d[30])),V=l(r(d[31])),L=r(d[32]),F=t(r(d[33])),G=r(d[34]),Y=l(r(d[35])),H=l(r(d[36])),q=l(r(d[37])),j=r(d[38]),Q=s.Dimensions.get('window'),K=Q.width,W=(Q.height,.5*K),z=s.StyleSheet.create({textInput:{height:46,backgroundColor:_.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:W,height:W,borderRadius:W/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-W/3,top:-W/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:_.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:_.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:_.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,y.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:_.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}}),X=(0,A.createStructuredSelector)({subscriptionList:D.selectSubscriptionList,activatePaySubscription:D.selectActivatePaySubscription,getUserByNameOrNumber:D.selectGetUserByNameOrNumber,getUserByIdQRCode:D.selectGetUserByIdQRCode,getDrugAppareil:D.selectGetDrugAppareil,addDrug:D.selectAddDrug,getProviderClass:D.selectGetProviderClass,createConsultation:D.selectCreateConsultation,getNetworkAct:D.selectGetNetworkAct,getAmountConsultation:D.selectGetAmountConsultation,checkInsuranceCoverageAmount:D.selectCheckInsuranceCoverageAmount,getExclusion:D.selectGetExclusion}),Z=(0,c.connect)(X,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetSubscriptionList:w.fetchGetSubscriptionList,fetchGetUserByIdQRCode:w.fetchGetUserByIdQRCode,fetchGetUserByNameOrNumber:w.fetchGetUserByNameOrNumber,fetchGetDrugAppareil:w.fetchGetDrugAppareil,fetchAddDrug:w.fetchAddDrug,fetchGetProviderClass:w.fetchGetProviderClass,fetchGetNetworkActs:w.fetchGetNetworkActs,fetchCreateConsultation:w.fetchCreateConsultation,fetchGetAmountConsultation:w.fetchGetAmountConsultation,fetchCheckInsuranceCoverageAmount:w.fetchCheckInsuranceCoverageAmount,fetchGetExclusion:w.fetchGetExclusion})(function(t){t.activatePaySubscription,t.fetchGetSubscriptionList;var l,A=t.subscriptionList,D=(t.fetchActivePaySubscription,t.fetchGetUserByIdQRCode),Q=t.fetchGetUserByNameOrNumber,K=t.fetchGetDrugAppareil,W=t.fetchAddDrug,X=t.fetchGetProviderClass,Z=t.fetchGetNetworkActs,J=t.fetchCreateConsultation,$=t.fetchGetAmountConsultation,ee=t.fetchCheckInsuranceCoverageAmount,te=t.fetchGetExclusion,ae=t.getExclusion,le=t.getUserByNameOrNumber,ne=t.getUserByIdQRCode,oe=t.getDrugAppareil,re=t.getProviderClass,ie=t.addDrug,ue=t.checkInsuranceCoverageAmount,de=t.createConsultation,se=t.getNetworkAct,ce=t.getAmountConsultation,fe=t.navigation,me=(0,u.useState)(''+j(new Date).format('YYYY-MM-DD HH:mm')),Ee=(0,o.default)(me,2),ge=Ee[0],pe=Ee[1],_e=(0,u.useState)(!1),he=(0,o.default)(_e,2),Ce=he[0],Se=he[1],ye=(0,u.useState)(null),we=(0,o.default)(ye,2),be=we[0],Te=we[1],Re=(0,u.useState)(!1),Ae=(0,o.default)(Re,2),De=Ae[0],Ie=Ae[1],Ne=(0,u.useState)(!1),ve=(0,o.default)(Ne,2),Oe=ve[0],xe=ve[1],Be=(0,u.useState)(!1),Me=(0,o.default)(Be,2),Pe=Me[0],Ue=Me[1],ke=(0,u.useState)(G.store.getState().walletDetailReducer.result.response),Ve=(0,o.default)(ke,1)[0],Le=(0,u.useState)(!1),Fe=(0,o.default)(Le,2),Ge=Fe[0],Ye=Fe[1],He=(0,u.useState)(!1),qe=(0,o.default)(He,2),je=qe[0],Qe=qe[1],Ke=(0,u.useState)(null),We=(0,o.default)(Ke,2),ze=We[0],Xe=We[1],Ze=(0,u.useState)(null),Je=(0,o.default)(Ze,2),$e=Je[0],et=Je[1],tt=(0,u.useState)(!1),at=(0,o.default)(tt,2),lt=at[0],nt=at[1],ot=(0,u.useState)(!1),rt=(0,o.default)(ot,2),it=rt[0],ut=rt[1],dt=(0,u.useState)(!1),st=(0,o.default)(dt,2),ct=st[0],ft=st[1],mt=(0,u.useState)(null),Et=(0,o.default)(mt,2),gt=Et[0],pt=Et[1],_t=(0,u.useState)(''+Date.now()),ht=(0,o.default)(_t,2),Ct=ht[0],St=(ht[1],(0,u.useState)(null)),yt=(0,o.default)(St,2),wt=yt[0],bt=yt[1],Tt=(0,u.useState)(null),Rt=(0,o.default)(Tt,2),At=Rt[0],Dt=Rt[1],It=(0,u.useState)(null),Nt=(0,o.default)(It,2),vt=Nt[0],Ot=Nt[1],xt=(0,u.useState)(null),Bt=(0,o.default)(xt,2),Mt=Bt[0],Pt=Bt[1],Ut=(0,u.useRef)(),kt=(0,u.useState)(!0),Vt=(0,o.default)(kt,2),Lt=Vt[0],Ft=Vt[1],Gt=(0,u.useState)(!1),Yt=(0,o.default)(Gt,2),Ht=(Yt[0],Yt[1]),qt=(0,u.useState)(1),jt=(0,o.default)(qt,2),Qt=jt[0],Kt=jt[1],Wt=(0,u.useState)(!1),zt=(0,o.default)(Wt,2),Xt=zt[0],Zt=zt[1],Jt=(0,u.useState)(!1),$t=(0,o.default)(Jt,2),ea=$t[0],ta=$t[1],aa=(0,u.useState)(!1),la=(0,o.default)(aa,2),na=la[0],oa=la[1],ra=(0,u.useState)(!1),ia=(0,o.default)(ra,2),ua=ia[0],da=ia[1],sa=(0,u.useState)(!1),ca=(0,o.default)(sa,2),fa=ca[0],ma=ca[1],Ea=(0,u.useState)(!1),ga=(0,o.default)(Ea,2),pa=ga[0],_a=ga[1],ha=(0,u.useState)(!1),Ca=(0,o.default)(ha,2),Sa=Ca[0],ya=Ca[1],wa=(0,u.useState)(null),ba=(0,o.default)(wa,2),Ta=(ba[0],ba[1],(0,u.useState)([])),Ra=(0,o.default)(Ta,2),Aa=Ra[0],Da=Ra[1],Ia=(0,u.useState)([]),Na=(0,o.default)(Ia,2),va=Na[0],Oa=Na[1],xa=(0,u.useState)([]),Ba=(0,o.default)(xa,2),Ma=Ba[0],Pa=Ba[1];console.log("Prestations",Aa),console.log("examens",va),console.log("prescriptions",Ma);var Ua=(0,u.useState)([{label:h.default.t('AYANT_DROITS'),value:"M"},{label:h.default.t('ASSURE'),value:"F"}]),ka=(0,o.default)(Ua,1)[0],Va=(0,u.useState)(1),La=(0,o.default)(Va,2),Fa=La[0],Ga=La[1],Ya=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ha=(0,o.default)(Ya,1)[0],qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),ja=(0,o.default)(qa,1)[0],Qa=(0,u.useState)([{label:h.default.t('YES'),value:"YES"},{label:h.default.t('NO'),value:"NO"}]),Ka=(0,o.default)(Qa,1)[0],Wa=(0,u.useState)(!1),za=(0,o.default)(Wa,2),Xa=za[0],Za=za[1],Ja=(0,u.useState)([{label:h.default.t('AFFECTION_COURANTE'),value:"CURRENT_AFFECTION"},{label:h.default.t('AFFECTION_LONGUE'),value:"LONG_TERM_AFFECTION"},{label:h.default.t('EXONERE'),value:"EXONERATION"}]),$a=(0,o.default)(Ja,1)[0],el=(0,u.useState)([{label:h.default.t('COMPRESSED'),value:"COMPRESSED"},{label:h.default.t('SYRUP'),value:"SYRUP"},{label:h.default.t('SOLUTION'),value:"SOLUTION"},{label:h.default.t('SUPPOSITORY'),value:"SUPPOSITORY"},{label:h.default.t('DEVICE'),value:"DEVICE"}]),tl=(0,o.default)(el,1)[0],al=(0,c.useDispatch)(),ll=null,nl=null;(0,u.useEffect)(function(){(0,T.readUser)().then(function(t){Rl('agrement_praticien',t.code_membre),console.log("User",t),bt(t)}),al((0,w.fetchGetSubscriptionListReset)()),al((0,w.fetchActivePaySubscriptionReset)()),al((0,w.fetchGetUserByNameOrNumberReset)()),al((0,w.fetchGetUserByIdQRCodeReset)()),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchCreateConsultationReset)()),al((0,w.fetchGetNetworkActsReset)()),al((0,w.fetchGetProviderClassReset)()),al((0,w.fetchAddDrugReset)()),al((0,w.fetchCheckInsuranceCoverageAmountReset)()),al((0,w.fetchGetExclusionReset)()),te(Ve.id_network),X(Ve.id_network)},[]),(0,u.useEffect)(function(){null!==wt&&console.log("user",wt)},[wt]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",le),null!==le.result&&(le.result.response.length>0?ma(!0):(ll.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH')),al((0,w.fetchGetUserByNameOrNumberReset)()))),le.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(le),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[le]),(0,u.useEffect)(function(){console.log("checkInsuranceCoverageAmount.result",ue),console.log("Prestations",Aa),null!==ue.result&&null!==ue.result.response&&(null!==Aa&&(Zt(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),al((0,w.fetchCheckInsuranceCoverageAmountReset)())),ue.error&&s.Alert.alert(h.default.t("INFORMATION_MESSAGE"),F.getErrorMsg(ue),[{text:h.default.t("OK"),onPress:function(){if(null!==Aa){var t=(0,n.default)(Aa);t.shift(),Da(t),Zt(!1)}al((0,w.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[ue]),(0,u.useEffect)(function(){null!==oe.result&&(oe.result.response.length>0?_a(!0):s.Alert.alert(h.default.t("ERROR_LABEL"),h.default.t('NO_DRUG_MATCH_YOU_SEARCH'),[{text:h.default.t("OK"),onPress:function(){oa(!0),al((0,w.fetchGetDrugAppareilReset)()),al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})),oe.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(oe),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetDrugAppareilReset)())}}],{cancelable:!1})},[oe]),(0,u.useEffect)(function(){null!==ie.result&&(oa(!1),Pt(ie.result.response)),ie.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchAddDrugReset)())}}],{cancelable:!1})},[ie]),(0,u.useEffect)(function(){null!==de.result&&s.Alert.alert(h.default.t("SUCCESS"),de.result.response,[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)()),fe.goBack()}}],{cancelable:!1}),de.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(de),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchCreateConsultationReset)())}}],{cancelable:!1})},[de]),(0,u.useEffect)(function(){console.log("getUserByNameOrNumber.result",ne),null!==ne.result&&(Ye(!1),Qe(!0),Rl('numero_assure',ne.result.response.phone),Q(Ve.id_network,"&phone="+ne.result.response.phone)),ne.error&&s.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ne),[{text:h.default.t("OK"),onPress:function(){al((0,w.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[ne]);var ol,rl,il,ul,dl=p.object().shape({numero_assure:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===Ve.password_validation?p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')):p.string(),practitioner_lastname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),sl=p.object().shape({amount_prestation:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:p.number(),date_prestation:p.date(),ticker_moderateur:p.number()}),cl=p.object().shape({examen_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:p.object().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:p.number()}),fl=p.object().shape({drug_name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:p.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ml=p.object().shape({code:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:p.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),El=function(t,l){var n=l||''+j(new Date).format('YYYY-MM-DD');Se('ios'===s.Platform.OS),pe(n)},gl=function(t,l){var n=l||new Date;Ue('ios'===s.Platform.OS),Te(j(n).format('YYYY-MM-DD')),Rl('accident_date',j(n).format('YYYY-MM-DD'))},pl=function(t,l){var n=l||new Date;ut('ios'===s.Platform.OS),Xe(j(n).format('YYYY-MM-DD')),Rl('pregnancy_start_at',j(n).format('YYYY-MM-DD'))},_l=function(t,l){var n=l||new Date;ft('ios'===s.Platform.OS),et(j(n).format('YYYY-MM-DD')),Rl('pregnancy_end_at',j(n).format('YYYY-MM-DD'))},hl=(0,E.useFormik)({validationSchema:dl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==wt?void 0:wt.code_membre,accident_date:null,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){0===Aa.length?s.Alert.alert(h.default.t("ERROR_LABLE"),h.default.t('YOU_MUST_ADD_AT_LEAST_ONE_PRESTATION'),[{text:h.default.t("OK"),onPress:function(){}}],{cancelable:!1}):J({insured_id:At.insured_id,network_agent_id:Ve.network_agent_id,password:t.password,beneficiary_id:null!==vt?vt.id:null,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,care_condition:t.care_condition,accident_date:t.accident_date,pregnancy_start_at:t.pregnancy_start_at,pregnancy_end_at:t.pregnancy_end_at,performances:Aa,prescriptions:Ma,exams:va})}}),Cl=hl.handleChange,Sl=hl.handleSubmit,yl=hl.handleBlur,wl=hl.values,bl=hl.errors,Tl=hl.touched,Rl=hl.setFieldValue,Al=hl.setFieldTouched,Dl=(hl.isValid,function(){switch(console.log("currentStep",Qt),Qt){case 0:return console.log("values",wl),al((0,w.fetchGetUserByNameOrNumberReset)()),''!==wl.numero_assure&&null===le.result&&(Q(Ve.id_network,Ge?"&insured_id="+wl.numero_assure:je?"&phone="+wl.numero_assure:"&name="+wl.numero_assure),console.log("errors",bl)),!1;default:return!0}}),Il=[{title:h.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10,width:(0,y.responsiveWidth)(90)},placeholder:Ge?h.default.t('NUMERO_ASSURE'):je?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:wl.numero_assure,keyboardType:je?'numeric':'default',onChangeText:Cl('numero_assure'),onBlur:yl('numero_assure'),success:Tl.numero_assure&&!bl.numero_assure,touched:Tl.numero_assure,error:bl.numero_assure,icon:u.default.createElement(O.default,{style:{zIndex:10},name:Ge?'lock':je?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(v.default,{style:{paddingRight:10},name:"lock",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!0),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"phone",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!0)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"user",size:20,color:_.Color.primaryColor,onPress:function(){Ye(!1),Qe(!1)}}),u.default.createElement(v.default,{style:{paddingRight:10},name:"qrcode",size:20,color:_.Color.primaryColor,onPress:function(){xe(!0)}})))},{title:h.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:wl.lastname_patient,onChangeText:Cl('lastname_patient'),onBlur:yl('lastname_patient'),success:Tl.lastname_patient&&!bl.lastname_patient,touched:Tl.lastname_patient,editable:!1,error:bl.lastname_patient}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:wl.firstname_patient,editable:!1,onChangeText:Cl('firstname_patient'),onBlur:yl('firstname_patient'),success:Tl.firstname_patient&&!bl.firstname_patient,touched:Tl.firstname_patient,error:bl.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:ka,disabled:!0,value:Fa,initial:Fa,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:h.default.t('PRATICIEN'),content:u.default.createElement(s.View,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:wl.agrement_praticien,editable:!1}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:wl.practitioner_lastname,onChangeText:Cl('practitioner_lastname'),onBlur:yl('practitioner_lastname'),success:Tl.practitioner_lastname&&!bl.practitioner_lastname,touched:Tl.practitioner_lastname,error:bl.practitioner_lastname}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:wl.practitioner_firstname,onChangeText:Cl('practitioner_firstname'),onBlur:yl('practitioner_firstname'),success:Tl.practitioner_firstname&&!bl.practitioner_firstname,touched:Tl.practitioner_firstname,error:bl.practitioner_firstname}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),data:null!==re.result?null==(l=re.result)?void 0:l.response:[],useNativeDriver:!0,onChangeText:function(t,l,n){Al('practitioner_provider_class_id'),Rl('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),data:$a,useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),pt(t),Al('care_condition'),Rl('care_condition',t)},valueExtractor:function(t){return t.value},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('ACCIDENT')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(40)}},u.default.createElement(B.default,{options:Ha,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){console.log(t),Ie('YES'===t)}}))),De&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==be?be:'',onChangeText:Cl('date_accident'),onBlur:yl('date_accident'),onFocus:function(){s.Keyboard.dismiss(),Ue(!0)},success:Tl.date_accident&&!bl.date_accident,touched:Tl.date_accident,error:bl.date_accident}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('GROSSESSE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){nt('YES'===t)}}))),lt&&u.default.createElement(u.default.Fragment,null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==ze?ze:'',onChangeText:Cl('date_debut_grossesse'),onBlur:yl('date_debut_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ut(!0)},success:Tl.date_debut_grossesse&&!bl.date_debut_grossesse,touched:Tl.date_debut_grossesse,error:bl.date_debut_grossesse}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==$e?$e:'',onChangeText:Cl('date_fin_grossesse'),onBlur:yl('date_fin_grossesse'),onFocus:function(){s.Keyboard.dismiss(),ft(!0)},success:Tl.date_fin_grossesse&&!bl.date_fin_grossesse,touched:Tl.date_fin_grossesse,error:bl.date_fin_grossesse})),"MAX"===Ve.password_validation&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:wl.password,onChangeText:Cl('password'),onBlur:yl('password'),success:Tl.password&&!bl.password,touched:Tl.password,error:bl.password,secureTextEntry:!0}),u.default.createElement(s.View,{style:{marginTop:25}},u.default.createElement(s.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){al((0,w.fetchGetAmountConsultationReset)()),Za(!1),null===gt?ll.alertWithType('warn',h.default.t('ERROR_LABEL'),h.default.t('PLEASE_SELECT_CONDITON_PRISE_CHARGE_FIRST')):Zt(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('CONSULTATION')),u.default.createElement(Y.default,{name:"medical-bag",size:20,color:_.Color.whiteColor})),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){da(!0)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),u.default.createElement(v.default,{name:"file-medical",size:20,color:_.Color.whiteColor})))),u.default.createElement(s.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,flexDirection:"row"}],onPress:function(t){ta(!0),Pt(null)}},u.default.createElement(x.default,{whiteColor:!0},h.default.t('MEDICAMENT')),u.default.createElement(H.default,{name:"drug-pack",size:20,color:_.Color.whiteColor}))))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(b.default,{ref:function(t){return ll=t}}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:z.contain},u.default.createElement(I.default,{steps:Il,currentStepIndex:Qt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:Ut,activeStep:0,steps:Il,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ft(t)},isLastStep:function(t){return Ht(t)},onNext:function(){Dl()},onPrev:function(){},currentStep:function(t){var l=t.currentStep,n=t.isLastStep,o=t.isFirstStep;Kt(l),Ft(o),Ht(n)}})),u.default.createElement(s.View,{style:z.iconNavigation},Lt?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(){return Ut.current.prev()}},u.default.createElement(v.default,{name:"arrow-left",size:20,color:_.Color.whiteColor})),2===Qt?u.default.createElement(S.default,{loading:de.loading,onPress:Sl},h.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor}],onPress:function(t){Sl(t),Dl()&&Ut.current.next()}},A.loading||le.loading||ne.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(v.default,{name:"arrow-right",size:24,color:_.Color.whiteColor}))),Sa&&u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:Sa,onSwipeComplete:function(){ya(!1)},swipeDirection:null,style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),u.default.createElement(s.View,{style:{height:s.Dimensions.get('window').height-200,width:s.Dimensions.get('window').width}},u.default.createElement(q.default,{style:{flex:1},originWhitelist:['*'],source:{html:ae.result.document}})),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return ya(!1)}},h.default.t('OK'))))),Xt&&u.default.createElement(E.Formik,{validationSchema:sl,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(t){''===t.code_acte?nl.shake(200):(Da([{act_id:t.code_acte.id,amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}].concat((0,n.default)(Aa))),ee({insurance_id:At.id,beneficiary_id:null!==vt?vt.id:null,care_condition:gt,act_action:"INSERT",act_type:"PERFORMANCE",tmp_sheet_id:Ct,performances:[{amount:t.amount_prestation,home_visit_fees:t.frais_deplacement}]}))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.handleBlur,p=t.setFieldValue,C=t.setFieldTouched,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},console.log("Errors",o),u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:Xt,onSwipeComplete:function(){Zt(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('ADD_PRESTATION')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+j(ge).format('YYYY-MM-DD HH:mm'),editable:!1}),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return'CONSULTATION'===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){C('code_acte'),console.log("Value",t),p('code_acte',t),'FREE'!==t.billing_type&&(p('amount_prestation',t.amount),$({network_id:Ve.id_network,amount:''+t.amount,care_condition:gt}))},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),u.default.createElement(R.default,{style:{marginTop:10},editable:''===n.code_acte||'FREE'===n.code_acte.billing_type,placeholder:h.default.t('AMOUNT'),value:n.amount_prestation,onChangeText:function(t){p('amount_prestation',t),$({network_id:Ve.id_network,amount:''+t,care_condition:gt})},onBlur:E('amount_prestation'),success:c.amount_prestation&&!o.amount_prestation,touched:c.amount_prestation,error:o.amount_prestation}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==ce.result?ce.result.response.moderator_ticket:''}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==ce.result?ce.result.response.insurance_amount:''}),u.default.createElement(s.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('VISITE_DOMICILE')),u.default.createElement(s.View,{style:z.contentSwitch},u.default.createElement(B.default,{options:Ka,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){Za('YES'===t)}}))),Xa&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:n.frais_deplacement,onChangeText:f('frais_deplacement'),onBlur:E('frais_deplacement'),success:c.frais_deplacement&&!o.frais_deplacement,touched:c.frais_deplacement,error:o.frais_deplacement}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ue.loading,onPress:w},h.default.t('SUBMIT_LABEL'))))))}),ea&&u.default.createElement(E.Formik,{validationSchema:fl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(t){Pa([{drug_or_device_id:Mt.id,dosage:t.drug_posologie,quantity:t.drug_quantity}].concat((0,n.default)(Ma))),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD')),ta(!1)}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:ea,onSwipeComplete:function(){ta(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),u.default.createElement(s.View,{style:{flexDirection:'row'}},u.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Mt?Mt.name:l.drug_name,onChangeText:c('drug_name'),onBlur:f('drug_name'),success:o.drug_name&&!n.drug_name,touched:o.drug_name,error:n.drug_name,editable:null===Mt}),u.default.createElement(s.TouchableOpacity,{style:[z.iconNavigationButton,{backgroundColor:_.Color.primaryColor,borderColor:_.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(t){K(Ve.id_network,l.drug_name)}},oe.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"search",size:24,color:_.Color.whiteColor}))),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:l.drug_posologie,onChangeText:c('drug_posologie'),onBlur:f('drug_posologie'),success:o.drug_posologie&&!n.drug_posologie,touched:o.drug_posologie,error:n.drug_posologie}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:l.drug_quantity,onChangeText:c('drug_quantity'),onBlur:f('drug_quantity'),success:o.drug_quantity&&!n.drug_quantity,touched:o.drug_quantity,error:n.drug_quantity,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:E},h.default.t('SUBMIT_LABEL'))))))}),ua&&u.default.createElement(E.Formik,{validationSchema:cl,initialValues:{examen_name:'',code_acte:'',amount:''},onSubmit:function(t){console.log("Value",t),Oa([{act_id:t.code_acte.id,description:t.examen_name,quantity:null}].concat((0,n.default)(va))),da(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_ADD'))}},function(t){var l,n=t.values,o=t.errors,c=t.touched,f=t.handleChange,E=t.setFieldValue,p=t.setFieldTouched,C=t.handleBlur,w=t.handleSubmit;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:ua,onSwipeComplete:function(){da(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_EXAMEN')),u.default.createElement(M.View,{ref:function(t){nl=t},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==se.result?null==(l=se.result)?void 0:l.response.filter(function(t){return"EXAM_OR_OTHER"===t.type}):[],useNativeDriver:!0,onChangeText:function(t,l,n){console.log("Value",t),p('code_acte'),E('code_acte',t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),''!==n.code_acte?'PACKAGE'!==n.code_acte.billing_type&&u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:n.examen_name,onChangeText:f('examen_name'),onBlur:C('examen_name'),success:c.examen_name&&!o.examen_name,touched:c.examen_name,error:o.examen_name}):null,u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==n.code_acte?'FREE'===n.code_acte.billing_type?h.default.t('AMOUNT_FREE'):(null!==n.code_acte.unit_value?' = '+n.code_acte.unit_value:'')+" "+n.code_acte.amount:'',editable:!1,onChangeText:f('amount'),onBlur:C('amount'),success:c.amount&&!o.amount,touched:c.amount,error:o.amount,keyboardType:"numeric"}),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){console.log("errors",o),console.log("values",n),w()}},h.default.t('SUBMIT_LABEL'))))))}),Ce&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(ge),mode:"date",display:"spinner",onChange:El}),Pe&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:gl}),it&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:pl}),ct&&u.default.createElement(k.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:_l}),Oe&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,y.responsiveWidth)(80)},useNativeDriver:!0,visible:Oe},u.default.createElement(f.default.Title,null,h.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[z.blockView,{borderBottomColor:_.Color.borderColor,maxHeight:300}]},u.default.createElement(x.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(V.default,{onRead:function(t){xe(!1),D(t.data)},flashMode:L.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){xe(!1)}})),fa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:fa,onSwipeComplete:function(){ma(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(il=le.result)?void 0:il.response,extraData:null==(ul=le.result)?void 0:ul.response,keyExtractor:function(t,l){return l},ListEmptyComponent:u.default.createElement(x.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%",flexDirection:'column'}],key:l.id,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(null),Ga(1),ma(!1),Rl('lastname_patient',l.user.lastname),Rl('firstname_patient',l.user.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id),al((0,w.fetchGetUserByNameOrNumberReset)()),Ut.current.next())}},u.default.createElement(x.default,{body2:!0,semibold:!0},(null!==l.user.firstname?l.user.firstname:'')+" "+(null!==l.user.lastname?l.user.lastname:'')),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+l.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+l.insurance_remaining_amount)),l.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:z.beneficiarySubSection,onPress:function(){'SUSPENDED'===l.state?s.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(Dt(l),Ot(t),Ga(0),ma(!1),Rl('lastname_patient',t.lastname),Rl('firstname_patient',t.firstname),Z(Ve.id_network,'',"&user_id="+l.user.id+"&beneficiary_id="+t.id),al((0,w.fetchGetUserByNameOrNumberReset)()),Ut.current.next())}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(x.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(x.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ma(!1)}},h.default.t('OK')))))),pa&&u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:pa,onSwipeComplete:function(){_a(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('LISTE_MEDICAMENT')),u.default.createElement(s.FlatList,{data:null==(ol=oe.result)?void 0:ol.response,extraData:null==(rl=oe.result)?void 0:rl.response,keyExtractor:function(t,l){return l},renderItem:function(t){var l=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[z.contentActionModalBottom,{borderBottomColor:_.Color.borderColor,width:"100%"}],key:l.id,onPress:function(){Pt(l),_a(!1)}},u.default.createElement(x.default,{body2:!0,semibold:!0},l.name+" | "+l.type)))}}),u.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return _a(!1)}},h.default.t('OK')))))),na&&u.default.createElement(E.Formik,{validationSchema:ml,initialValues:{code:'',name:'',type:'',on_prescription:!1},onSubmit:function(t){Pt(null),W({network_id:Ve.id_network,code:t.code,name:t.name,type:t.type,on_prescription:t.on_prescription})}},function(t){var l=t.values,n=t.errors,o=t.touched,c=t.handleChange,f=t.handleBlur,E=t.handleSubmit,p=t.setFieldValue;return t.isSubmitting,u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[z.containModal,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(U.default,{isVisible:na,onSwipeComplete:function(){oa(!1)},swipeDirection:['down'],style:z.bottomModal},u.default.createElement(s.View,{style:[z.contentFilterBottom,{backgroundColor:_.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:z.contentSwipeDown},u.default.createElement(s.View,{style:z.lineSwipeDown})),u.default.createElement(x.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_NOUVEAU_MEDICAMENT')),u.default.createElement(R.default,{style:{marginTop:10},placeholder:"Code",value:l.code,onChangeText:c('code'),onBlur:f('code'),success:o.code&&!n.code,touched:o.code,error:n.code}),u.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:l.name,onChangeText:c('name'),onBlur:f('name'),success:o.name&&!n.name,touched:o.name,error:n.name}),u.default.createElement(M.View,{ref:function(t){},style:{width:(0,y.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(P.Dropdown,{label:"Type",data:tl,useNativeDriver:!0,onChangeText:function(t,l,n){p('type',t.value)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.label}})),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(x.default,{body2:!0},h.default.t('SOUS_ORDONNANCE')),u.default.createElement(s.View,{style:{width:(0,y.responsiveWidth)(60)}},u.default.createElement(B.default,{options:ja,initial:1,buttonColor:_.Color.accentColor,backgroundColor:_.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){p('on_prescription','YES'===t),console.log("On Prescription",t)}}))),u.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:E},h.default.t('SUBMIT_LABEL'))))))})))),null!==ae.result&&u.default.createElement(s.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:_.Color.primaryColor,borderRadius:100},onPress:function(){ya(!0)}},u.default.createElement(x.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});e.default=Z},1737,[4,1,35,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1569,1418,1317,1458,1105,882,1035,841,1190]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=t(r(d[2])),l=r(d[3]),c=r(d[4]),u=t(r(d[5]));function f(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);o&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,l)}return n}function s(t){for(var n=1;n0&&(j(Y-1),U(!1),p({currentStep:Y-1,isFirstStep:Y-1==0,isLastStep:Y-1==s.length-1}),A())},goTo:function(t){(s.length-1<=t||t>=0)&&(Y>t?(U(!1),A()):(U(!0),w()),p({currentStep:t,isFirstStep:0===t,isLastStep:0!==t}),j(t))}},(0,u.useEffect)(function(){p({currentStep:Y,isFirstStep:0===Y,isLastStep:Y===s.length-1})},[Y,s.length]),(0,u.useEffect)(function(){V(0===Y),y(Y===s.length-1)},[Y,s.length]),u.default.createElement(c,{contentContainerStyle:P,currentStep:Y,duration:b,animation:T?F:_,content:s[Y].content,useNativeDriver:C})});e.default=l;var c=function(t){var n=t.content,l=t.animation,c=t.duration,v=t.currentStep,f=t.useNativeDriver,p=t.contentContainerStyle,S=(0,u.useState)(void 0),w=(0,o.default)(S,2),h=w[0],A=w[1];return(0,u.useEffect)(function(){switch(l){case"slideLeft":var t=new s.Animated.Value(-s.Dimensions.get("window").width);s.Animated.timing(t,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateX:t}]});break;case"slideRight":var n=new s.Animated.Value(s.Dimensions.get("window").width);s.Animated.timing(n,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateX:n}]});break;case"slideUp":var o=new s.Animated.Value(-s.Dimensions.get("window").height);s.Animated.timing(o,{toValue:0,duration:c,useNativeDriver:f}).start(),A({transform:[{translateY:o}]});break;case"slideDown":var u=new s.Animated.Value(s.Dimensions.get("window").height);s.Animated.timing(u,{toValue:0,duration:c}).start(),A({transform:[{translateY:u}]});break;case"fade":default:var v=new s.Animated.Value(0);s.Animated.timing(v,{toValue:1,duration:c,useNativeDriver:f}).start(),A({opacity:v})}return function(){var t=new s.Animated.Value(1);s.Animated.timing(t,{toValue:0,duration:300,useNativeDriver:f}).start(),A({opacity:t})}},[l,c,A,v]),u.default.createElement(s.Animated.View,{style:[h,p]},n)}},1739,[4,1,27,15,18]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=t(r(d[3])),f=r(d[4]),u=r(d[5]),c=r(d[6]),s=l(r(d[7])),E=r(d[8]),y=r(d[9]),p=l(r(d[10])),w=r(d[11]),C=r(d[12]),x=r(d[13]),T=l(r(d[14])),b=t(r(d[15])),V=l(r(d[16])),h=r(d[17]),A=r(d[18]),_=f.Dimensions.get('window'),I=(_.width,_.height,(0,w.createStructuredSelector)({subscriptionList:C.selectSubscriptionList,activatePaySubscription:C.selectActivatePaySubscription,getConsultation:C.selectGetConsultation,acceptRefuseConsultation:C.selectAcceptRefuseConsultation})),L=(0,u.connect)(I,{fetchActivePaySubscription:y.fetchActivePaySubscription,fetchGetConsultation:y.fetchGetConsultation,fetchAcceptRejectConsultation:y.fetchAcceptRejectConsultation})(function(t){t.navigation;var l=t.fetchGetConsultation,w=t.fetchAcceptRejectConsultation,C=t.getConsultation,_=t.acceptRefuseConsultation,I=(0,u.useDispatch)(),L=(0,o.useState)(null),R=(0,n.default)(L,2),S=R[0],N=R[1],O=(0,o.useState)(!1),P=(0,n.default)(O,2),v=P[0],B=P[1],M=(0,o.useState)({}),U=(0,n.default)(M,2),j=U[0],G=U[1];(0,o.useEffect)(function(){(0,x.readUser)().then(function(t){N(t),console.log("User",t),l(t.id,'UNTREATED_ALL','')}),I((0,y.fetchGetConsultationReset)()),I((0,y.fetchAcceptRejectConsultationReset)())},[]),(0,o.useEffect)(function(){C.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(C),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchGetConsultationReset)())}}],{cancelable:!1})},[C]),(0,o.useEffect)(function(){null!==_.result&&(f.Alert.alert(s.default.t("SUCCESS"),_.result.response,[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1}),null!==S&&l(S.id,'UNTREATED_ALL','')),_.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(_),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1})},[_]);var k=function(t){return o.default.createElement(f.TouchableOpacity,{style:[D.content,{backgroundColor:c.Color.cardBackgroundColor}],onPress:function(){B(!0),G(t)}},o.default.createElement(f.View,{style:{borderColor:c.Color.borderColor,flexDirection:"row",paddingBottom:10,borderBottomWidth:.5}},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('NETWORK')+": "+t.network.name))),o.default.createElement(f.View,{style:[D.contentTop,{borderColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PATIENT')+": "+t.patient_lastname+" "+t.patient_firstname),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.patient_situation.toLowerCase())),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PRATICIEN')+": "+t.practitioner_lastname+" "+t.practitioner_firstname),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.practitioner_provider_class))),o.default.createElement(f.View,{style:D.contentBottom},o.default.createElement(f.View,{style:D.bottomLeft},o.default.createElement(f.View,{style:{marginHorizontal:5}},o.default.createElement(T.default,{caption1:!0,semibold:!0,accentColor:!0},"Type: "+t.type.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0,semibold:!0,primaryColor:!0},"Date: "+A(t.created_at).format('YYYY-MM-DD')))))};return o.default.createElement(E.ScreenComponent,null,o.default.createElement(p.default,{ref:function(t){return t}}),o.default.createElement(f.View,{style:D.contain},C.loading?o.default.createElement(f.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===f.Platform.OS?o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ProgressBarAndroid,null),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS'))):o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ActivityIndicator,{size:"large",color:'#ccc'}),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS')))):null!==C.result?o.default.createElement(f.FlatList,{style:{flex:1},ListEmptyComponent:function(){return o.default.createElement(T.default,null,s.default.t('NO_CONSULTATION_DEMAND'))},data:C.result.response,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;return t.index,k(l)}}):null,v&&o.default.createElement(V.default.Container,{useNativeDriver:!0,visible:v},o.default.createElement(V.default.Title,null,s.default.t('DETAIL')),o.default.createElement(f.ScrollView,{persistentScrollbar:!0},o.default.createElement(f.View,{style:[D.blockView,{borderBottomColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('NETWORK'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},""+j.network.name))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PATIENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.patient_lastname+" "+j.patient_firstname))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Situation")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.patient_situation.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRATICIEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.practitioner_lastname+" "+j.practitioner_firstname))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CLASSE_PRESTATAIRE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.practitioner_provider_class.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('STATE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.state.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Type")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.type.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CONDITION_PRISE_CHARGE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.care_condition.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('INSTITUTE_NAME'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.institution_name.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Date")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},A(j.created_at).format('YYYY-MM-DD')))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('EXAMEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.exams.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('MEDICAMENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.prescriptions.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRESTATION'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.performances.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))))),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('CANCEL_LABEL'),onPress:function(){B(!1)}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('REJECT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"REJECT"})}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('ACCEPT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"ACCEPT"})}}))))});e.default=L;var D=f.StyleSheet.create({textInput:{height:46,backgroundColor:c.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5}})},1740,[4,1,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,719,1417,1458,1424,1077,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),c=t(r(d[3])),o=r(d[4]),u=r(d[5]),f=l(r(d[6])),s=r(d[7]),E=l(r(d[8])),p=r(d[9]),y=r(d[10]),h=r(d[11]),w=r(d[12]),C=t(r(d[13])),T=l(r(d[14])),_=l(r(d[15])),A=r(d[16]),V=l(r(d[17])),R=(0,p.createStructuredSelector)({subscriptionList:y.selectSubscriptionList,activatePaySubscription:y.selectActivatePaySubscription,getConsultation:y.selectGetConsultation,acceptRefuseConsultation:y.selectAcceptRefuseConsultation}),x=(0,h.connect)(R,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetConsultation:w.fetchGetConsultation,fetchAcceptRejectConsultation:w.fetchAcceptRejectConsultation})(function(t){var l=t.navigation,s=t.fetchAcceptRejectConsultation,p=t.acceptRefuseConsultation,y=(0,h.useDispatch)(),R=(0,c.useState)(l.getParam('item')),x=(0,n.default)(R,2),b=x[0],P=(x[1],(0,c.useState)(null)),L=(0,n.default)(P,2),D=L[0],I=L[1];return(0,c.useEffect)(function(){(0,A.readUser)().then(function(t){I(t)}),y((0,w.fetchAcceptRejectConsultationReset)())},[]),(0,c.useEffect)(function(){null!==p.result&&u.Alert.alert(f.default.t("SUCCESS"),p.result.response,[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)()),l.goBack()}}],{cancelable:!1}),p.error&&u.Alert.alert(f.default.t("ERROR_LABLE"),C.getErrorMsg(p),[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)())}}],{cancelable:!1})},[p]),console.log("Consultation",b),c.default.createElement(u.SafeAreaView,{style:o.BaseStyle.safeAreaView,forceInset:{top:'always'}},c.default.createElement(V.default,{ref:function(t){return t}}),c.default.createElement(u.ScrollView,null,c.default.createElement(u.View,{style:S.contain},c.default.createElement(u.View,{style:[S.contentRow]},c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PATIENT')),c.default.createElement(E.default,{body2:!0},b.patient_lastname+" "+b.patient_firstname),c.default.createElement(E.default,{body2:!0},b.patient_situation.toLowerCase())),c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PRATICIEN')),c.default.createElement(E.default,{body2:!0},b.practitioner_lastname+" "+b.practitioner_firstname),c.default.createElement(E.default,{body2:!0},(0,C.uppercaseFirstLetter)(b.practitioner_provider_class.toLowerCase())))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row'}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('STATE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.state.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Type"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.type.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('CONDITION_PRISE_CHARGE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.care_condition.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('INSTITUTE_NAME')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.institution_name.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Date"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,T.default)(b.created_at).format('YYYY-MM-DD')))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('EXAMEN')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.exams.length)),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('MEDICAMENT')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.prescriptions.length))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('PRESTATION')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.performances.length))),c.default.createElement(u.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:25}},c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"ACCEPT"})}},f.default.t("ACCEPT")),c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"REJECT"})}},f.default.t("REJECT"))))))});e.default=x;var S=u.StyleSheet.create({contain:{padding:20,width:"100%"},classContent:{flexDirection:"row",justifyContent:"flex-end",marginBottom:15},line:{width:"100%",height:1,borderWidth:.5,borderColor:s.Color.dividerColor,borderStyle:"dashed",marginVertical:20},code:{width:"100%",padding:20,alignItems:"center",justifyContent:"center"},contentRow:{flexDirection:"row"},centerView:{alignItems:"center",justifyContent:"center",marginHorizontal:10},colCenter:{flex:1,alignItems:"flex-start"}})},1741,[4,1,27,15,1742,18,720,1034,1417,1733,1734,1049,1486,1458,1190,1562,719,1717]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=t(r(d[3])),f=r(d[4]),u=r(d[5]),c=r(d[6]),s=l(r(d[7])),E=r(d[8]),y=r(d[9]),p=l(r(d[10])),w=r(d[11]),C=r(d[12]),x=r(d[13]),T=l(r(d[14])),b=t(r(d[15])),V=l(r(d[16])),h=r(d[17]),_=r(d[18]),A=f.Dimensions.get('window'),I=(A.width,A.height,(0,w.createStructuredSelector)({subscriptionList:C.selectSubscriptionList,activatePaySubscription:C.selectActivatePaySubscription,getConsultation:C.selectGetConsultation,acceptRefuseConsultation:C.selectAcceptRefuseConsultation})),L=(0,u.connect)(I,{fetchActivePaySubscription:y.fetchActivePaySubscription,fetchGetConsultation:y.fetchGetConsultation,fetchAcceptRejectConsultation:y.fetchAcceptRejectConsultation})(function(t){t.navigation;var l=t.fetchGetConsultation,w=t.fetchAcceptRejectConsultation,C=t.getConsultation,A=t.acceptRefuseConsultation,I=(0,u.useDispatch)(),L=(0,o.useState)(null),R=(0,n.default)(L,2),S=R[0],N=R[1],O=(0,o.useState)(!1),P=(0,n.default)(O,2),v=P[0],B=P[1],M=(0,o.useState)({}),U=(0,n.default)(M,2),j=U[0],G=U[1];(0,o.useEffect)(function(){(0,x.readUser)().then(function(t){N(t),console.log("User",t),l(t.id,'UNTREATED_ALL','')}),I((0,y.fetchGetConsultationReset)()),I((0,y.fetchAcceptRejectConsultationReset)())},[]),(0,o.useEffect)(function(){C.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(C),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchGetConsultationReset)())}}],{cancelable:!1})},[C]),(0,o.useEffect)(function(){null!==A.result&&(f.Alert.alert(s.default.t("SUCCESS"),A.result.response,[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1}),null!==S&&l(S.id,'UNTREATED_ALL','')),A.error&&f.Alert.alert(s.default.t("ERROR_LABLE"),b.getErrorMsg(A),[{text:s.default.t("OK"),onPress:function(){I((0,y.fetchAcceptRejectConsultationReset)()),B(!1),null!==S&&l(S.id,'UNTREATED_ALL','')}}],{cancelable:!1})},[A]);var k=function(t){return o.default.createElement(f.TouchableOpacity,{style:[D.content,{backgroundColor:c.Color.cardBackgroundColor}],onPress:function(){B(!0),G(t)}},o.default.createElement(f.View,{style:{borderColor:c.Color.borderColor,flexDirection:"row",paddingBottom:10,borderBottomWidth:.5}},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('NETWORK')+": "+t.network.name))),o.default.createElement(f.View,{style:[D.contentTop,{borderColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-start'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PATIENT')+": "+(null!==t.patient_lastname?t.patient_lastname:'')+" "+(null!==t.patient_firstname?t.patient_firstname:'')),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.patient_situation.toLowerCase())),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0},s.default.t('PRATICIEN')+": "+t.practitioner_lastname+" "+t.practitioner_firstname),o.default.createElement(T.default,{footnote:!0,light:!0,numberOfLines:1},s.default.t('SITUATION')+": "+t.practitioner_provider_class))),o.default.createElement(f.View,{style:D.contentBottom},o.default.createElement(f.View,{style:D.bottomLeft},o.default.createElement(f.View,{style:{marginHorizontal:5}},o.default.createElement(T.default,{caption1:!0,semibold:!0,accentColor:!0},"Type: "+t.type.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',alignItems:'flex-end'}},o.default.createElement(T.default,{caption1:!0,semibold:!0,primaryColor:!0},"Date: "+_(t.created_at).format('YYYY-MM-DD')))))};return o.default.createElement(E.ScreenComponent,null,o.default.createElement(p.default,{ref:function(t){return t}}),o.default.createElement(f.View,{style:D.contain},C.loading?o.default.createElement(f.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===f.Platform.OS?o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ProgressBarAndroid,null),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS'))):o.default.createElement(o.default.Fragment,null,o.default.createElement(f.ActivityIndicator,{size:"large",color:'#ccc'}),o.default.createElement(T.default,null,s.default.t('LOADING_DOTS')))):null!==C.result?o.default.createElement(f.FlatList,{style:{flex:1},ListEmptyComponent:function(){return o.default.createElement(T.default,null,s.default.t('NO_CONSULTATION_DEMAND'))},data:C.result.response,keyExtractor:function(t,l){return t.id},renderItem:function(t){var l=t.item;return t.index,k(l)}}):null,v&&o.default.createElement(V.default.Container,{useNativeDriver:!0,visible:v},o.default.createElement(V.default.Title,null,s.default.t('DETAIL')),o.default.createElement(f.ScrollView,{persistentScrollbar:!0},o.default.createElement(f.View,{style:[D.blockView,{borderBottomColor:c.Color.borderColor}]},o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('NETWORK'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},""+j.network.name))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PATIENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(null!==j.patient_lastname?j.patient_lastname:'')+" "+(null!==j.patient_firstname?j.patient_firstname:'')))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Situation")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.patient_situation.toLowerCase()))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRATICIEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},j.practitioner_lastname+" "+j.practitioner_firstname))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CLASSE_PRESTATAIRE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.practitioner_provider_class.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('STATE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.state.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Type")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.type.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('CONDITION_PRISE_CHARGE'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.care_condition.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('INSTITUTE_NAME'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},(0,b.uppercaseFirstLetter)(j.institution_name.toLowerCase())))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},"Date")),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},_(j.created_at).format('YYYY-MM-DD')))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('EXAMEN'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.exams.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('MEDICAMENT'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.prescriptions.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))),o.default.createElement(f.View,{style:{flexDirection:'row',marginTop:10}},o.default.createElement(f.View,{style:{flex:1}},o.default.createElement(T.default,{style:[D.body2]},s.default.t('PRESTATION'))),o.default.createElement(f.View,{style:{flex:1,alignItems:'flex-end'}},j.performances.map(function(t){return o.default.createElement(T.default,{style:[h.Typography.caption1,c.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))))),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('CANCEL_LABEL'),onPress:function(){B(!1)}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('REJECT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"REJECT"})}}),o.default.createElement(V.default.Button,{bold:!0,label:s.default.t('ACCEPT'),onPress:function(){w({health_care_sheet_id:j.id,user_id:S.id,action:"ACCEPT"})}}))))});e.default=L;var D=f.StyleSheet.create({textInput:{height:46,backgroundColor:c.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5}})},1740,[4,1,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,719,1417,1458,1424,1077,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),c=t(r(d[3])),o=r(d[4]),u=r(d[5]),f=l(r(d[6])),s=r(d[7]),E=l(r(d[8])),p=r(d[9]),y=r(d[10]),h=r(d[11]),w=r(d[12]),C=t(r(d[13])),T=l(r(d[14])),_=l(r(d[15])),A=r(d[16]),V=l(r(d[17])),R=(0,p.createStructuredSelector)({subscriptionList:y.selectSubscriptionList,activatePaySubscription:y.selectActivatePaySubscription,getConsultation:y.selectGetConsultation,acceptRefuseConsultation:y.selectAcceptRefuseConsultation}),x=(0,h.connect)(R,{fetchActivePaySubscription:w.fetchActivePaySubscription,fetchGetConsultation:w.fetchGetConsultation,fetchAcceptRejectConsultation:w.fetchAcceptRejectConsultation})(function(t){var l=t.navigation,s=t.fetchAcceptRejectConsultation,p=t.acceptRefuseConsultation,y=(0,h.useDispatch)(),R=(0,c.useState)(l.getParam('item')),x=(0,n.default)(R,2),b=x[0],P=(x[1],(0,c.useState)(null)),L=(0,n.default)(P,2),D=L[0],I=L[1];return(0,c.useEffect)(function(){(0,A.readUser)().then(function(t){I(t)}),y((0,w.fetchAcceptRejectConsultationReset)())},[]),(0,c.useEffect)(function(){null!==p.result&&u.Alert.alert(f.default.t("SUCCESS"),p.result.response,[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)()),l.goBack()}}],{cancelable:!1}),p.error&&u.Alert.alert(f.default.t("ERROR_LABLE"),C.getErrorMsg(p),[{text:f.default.t("OK"),onPress:function(){y((0,w.fetchAcceptRejectConsultationReset)())}}],{cancelable:!1})},[p]),console.log("Consultation",b),c.default.createElement(u.SafeAreaView,{style:o.BaseStyle.safeAreaView,forceInset:{top:'always'}},c.default.createElement(V.default,{ref:function(t){return t}}),c.default.createElement(u.ScrollView,null,c.default.createElement(u.View,{style:S.contain},c.default.createElement(u.View,{style:[S.contentRow]},c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PATIENT')),c.default.createElement(E.default,{body2:!0},(null!==b.patient_lastname?b.patient_lastname:'')+" "+(null!==b.patient_firstname?b.patient_firstname:'')),c.default.createElement(E.default,{body2:!0},b.patient_situation.toLowerCase())),c.default.createElement(u.View,{style:S.colCenter},c.default.createElement(E.default,{body1:!0,light:!0},f.default.t('PRATICIEN')),c.default.createElement(E.default,{body2:!0},b.practitioner_lastname+" "+b.practitioner_firstname),c.default.createElement(E.default,{body2:!0},(0,C.uppercaseFirstLetter)(b.practitioner_provider_class.toLowerCase())))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row'}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('STATE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.state.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Type"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.type.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('CONDITION_PRISE_CHARGE')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.care_condition.toLowerCase()))),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('INSTITUTE_NAME')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,C.uppercaseFirstLetter)(b.institution_name.toLowerCase())))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},"Date"),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},(0,T.default)(b.created_at).format('YYYY-MM-DD')))),c.default.createElement(u.View,{style:S.line}),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('EXAMEN')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.exams.length)),c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('MEDICAMENT')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.prescriptions.length))),c.default.createElement(u.View,{style:{flexDirection:'row',marginTop:25}},c.default.createElement(u.View,{style:{flex:1}},c.default.createElement(E.default,{caption1:!0,light:!0},f.default.t('PRESTATION')),c.default.createElement(E.default,{headline:!0,style:{marginTop:5}},b.performances.length))),c.default.createElement(u.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:25}},c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"ACCEPT"})}},f.default.t("ACCEPT")),c.default.createElement(_.default,{onPress:function(){s({health_care_sheet_id:b.id,user_id:D.id,action:"REJECT"})}},f.default.t("REJECT"))))))});e.default=x;var S=u.StyleSheet.create({contain:{padding:20,width:"100%"},classContent:{flexDirection:"row",justifyContent:"flex-end",marginBottom:15},line:{width:"100%",height:1,borderWidth:.5,borderColor:s.Color.dividerColor,borderStyle:"dashed",marginVertical:20},code:{width:"100%",padding:20,alignItems:"center",justifyContent:"center"},contentRow:{flexDirection:"row"},centerView:{alignItems:"center",justifyContent:"center",marginHorizontal:10},colCenter:{flex:1,alignItems:"flex-start"}})},1741,[4,1,27,15,1742,18,720,1034,1417,1733,1734,1049,1486,1458,1190,1562,719,1717]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseStyle=void 0;var t=r(d[0]),o=r(d[1]),n=t.StyleSheet.create({textInput:{height:46,borderRadius:5,paddingHorizontal:10,width:'100%',justifyContent:'space-between',alignItems:'center',flexDirection:'row'},safeAreaView:{flex:1,backgroundColor:o.Color.containerBackgroundColor}});e.BaseStyle=n},1742,[18,1034]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),N=n(r(d[22])),O=n(r(d[23])),v=n(r(d[24])),V=n(r(d[25])),P=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),L=n(r(d[30])),U=r(d[31]),M=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function z(t){for(var n=1;n0?St(!0):Qt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){Ct(!1),null!==Y.result&&null!==Y.result.response&&zt((0,b.fetchCheckInsuranceCoverageAmountReset)()),Y.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),M.getErrorMsg(Y),[{text:_.default.t("OK"),onPress:function(){Ve.examen?$e(z({},Ze,{exams:Ze.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return Ve.id===t.id?z({},t,{quantity:at.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),zt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[Y]),(0,u.useEffect)(function(){null!==X.result&&We(!0),X.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(X),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[X]),(0,u.useEffect)(function(){null!==ee.result&&c.Alert.alert(_.default.t("SUCCESS"),ee.result.response,[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)()),te.goBack()}}],{cancelable:!1}),ee.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(ee),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)())}}],{cancelable:!1})},[ee]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ie.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()}),code_acte:y.object()});console.log("consultaiton",Ze);var Yt,Wt,Xt,Jt,Zt=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_e?void 0:_e.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){H({health_care_sheet_id:Ze.id,network_agent_id:ie.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,prescriptions:Ze.prescriptions.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity}}),exams:Ze.exams.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity,unit_quantity:parseInt(t.unit_quantity)}})})}}),$t=Zt.handleChange,ea=Zt.handleSubmit,ta=Zt.handleBlur,aa=Zt.values,na=Zt.errors,la=Zt.touched,ra=Zt.setFieldValue,oa=Zt.setFieldTouched,ia=(Zt.isValid,function(){switch(console.log("currentStep",ze),ze){case 0:return console.log("values",aa),zt((0,b.fetchGetUserByNameOrNumberReset)()),''!==aa.numero_assure&&null===J.result&&(I(ie.id_network,de?"&insured_id="+aa.numero_assure:pe?"&phone="+aa.numero_assure:"&name="+aa.numero_assure),console.log("errors",na)),!1;default:return!0}}),ua=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:de?_.default.t('NUMERO_ASSURE'):pe?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:aa.numero_assure,keyboardType:pe?'numeric':'default',onChangeText:$t('numero_assure'),onBlur:ta('numero_assure'),success:la.numero_assure&&!na.numero_assure,touched:la.numero_assure,error:na.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:de?'lock':pe?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(O.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){se(!0),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!0)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){re(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:aa.lastname_patient,onChangeText:$t('lastname_patient'),onBlur:ta('lastname_patient'),success:la.lastname_patient&&!na.lastname_patient,touched:la.lastname_patient,editable:!1,error:na.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:aa.firstname_patient,editable:!1,onChangeText:$t('firstname_patient'),onBlur:ta('firstname_patient'),success:la.firstname_patient&&!na.firstname_patient,touched:la.firstname_patient,error:na.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(V.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(P.default,{options:Ut,disabled:!0,value:Ft,initial:Ft,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:aa.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:aa.practitioner_lastname,onChangeText:$t('practitioner_lastname'),onBlur:ta('practitioner_lastname'),success:la.practitioner_lastname&&!na.practitioner_lastname,touched:la.practitioner_lastname,error:na.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:aa.practitioner_firstname,onChangeText:$t('practitioner_firstname'),onBlur:ta('practitioner_firstname'),success:la.practitioner_firstname&&!na.practitioner_firstname,touched:la.practitioner_firstname,error:na.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),data:null!==$.result?null==(n=$.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){oa('practitioner_provider_class_id'),ra('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ie.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:aa.password,onChangeText:$t('password'),onBlur:ta('password'),success:la.password&&!na.password,touched:la.password,error:na.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==Ze?!Ze.prescriptions.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.prescriptions.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):yt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(O.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==Ze?!Ze.exams.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.exams.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les examens"):Rt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Qt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:W.contain},u.default.createElement(A.default,{steps:ua,currentStepIndex:ze+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:De,activeStep:0,steps:ua,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ue(t)},isLastStep:function(t){return Fe(t)},onNext:function(){ia()},onPrev:function(){0===ze&&zt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Qe(n),Ue(o),Fe(l)}})),u.default.createElement(c.View,{style:W.iconNavigation},Le?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return De.current.prev()}},u.default.createElement(O.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===ze?u.default.createElement(h.default,{loading:ee.loading,onPress:ea},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ea(t),ia()&&De.current.next()}},J.loading||Z.loading||X.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),pt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:pt,onSwipeComplete:function(){yt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:Ze.exams,extraData:Ze.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{examen:!0})),$e(z({},Ze,{exams:Ze.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},(null===n.quantity?'':n.quantity)+" "+n.description+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.act.name),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return yt(!1)}},_.default.t('OK')))))),le&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:le},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[W.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(V.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(L.default,{onRead:function(t){re(!1),l(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){re(!1)}})),bt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Jt=J.result)?void 0:Jt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(null),Gt(1),St(!1),ra('lastname_patient',n.user.lastname),ra('firstname_patient',n.user.firstname),j(n.user.id,'TO_BILL','CONSULTATION'))}},u.default.createElement(V.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:W.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(t),Gt(0),St(!1),ra('lastname_patient',t.lastname),ra('firstname_patient',t.firstname),j(n.user.id,'TO_BILL','CONSULTATION',"&beneficiary_id="+t.id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return St(!1)}},_.default.t('OK')))))),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:Ze.prescriptions,extraData:Ze.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{quantity_original:n.quantity,drugs:!0})),$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},parseInt(n.quantity)-parseInt(null!==n.billed_quantity?n.billed_quantity:0)+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Ye&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ye,onSwipeComplete:function(){We(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_CONSULTATION')),u.default.createElement(c.FlatList,{data:null==(Yt=X.result)?void 0:Yt.response,extraData:null==(Wt=X.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_CONSULTATION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){st(n),it(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return We(!1)}},_.default.t('OK')))))),ot&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:ot},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[W.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_lastname+" "+dt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.practitioner_lastname+" "+dt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(dt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.performances.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.exams.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.prescriptions.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){it(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){it(!1),St(!1),We(!1),$e(dt),nt(dt),De.current.next()}})),_t&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',unit_quantity:'',unit_quantity_condition:null!==Ve&&!Ve.drugs&&'UNIT_PRICE'===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:'',price:null!==Ve?Ve.drugs?'':Ve.act.amount:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)$e(z({},Ze,{exams:Ze.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ot});else{var n=dt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):($e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"PRESCRIPTION",tmp_sheet_id:Ot,prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}]}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(V.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(V.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:Y.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1743,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); -__d(function(e,t,a,l,n,o,r){var i=t(r[0]),u=t(r[1]);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var d=u(t(r[2])),c=u(t(r[3])),s=u(t(r[4])),f=i(t(r[5])),m=t(r[6]),p=t(r[7]),E=u(t(r[8])),g=u(t(r[9])),_=t(r[10]),y=i(t(r[11])),C=t(r[12]),h=u(t(r[13])),w=t(r[14]),S=u(t(r[15])),b=t(r[16]),T=t(r[17]),I=u(t(r[18])),D=t(r[19]),R=u(t(r[20])),x=t(r[21]),O=u(t(r[22])),v=u(t(r[23])),A=u(t(r[24])),N=u(t(r[25])),V=u(t(r[26])),B=u(t(r[27])),M=i(t(r[28])),P=t(r[29]),k=u(t(r[30])),L=u(t(r[31])),U=t(r[32]),F=i(t(r[33])),Y=t(r[34]),G=t(r[35]),q=u(t(r[36])),H=t(r[37]),j=u(t(r[38])),Q=u(t(r[39])),z=u(t(r[40]));function K(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function W(e){for(var t=1;t0?xa(!0):Ml.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH'))),$.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg($),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[$]),(0,f.useEffect)(function(){console.log("getUserByNameOrNumber.result",te),null!==te.result&&(ve(!1),Be(!0),nn('numero_assure',te.result.response.phone),l(De.id_network,"&phone="+te.result.response.phone)),te.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(te),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[te]),(0,f.useEffect)(function(){null!==H.result&&null!==H.result.response&&($t.performances.length>=1&&(Pa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())),H.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(H),[{text:h.default.t("OK"),onPress:function(){$t.performances.length>=1&&(ea(W({},$t,{performances:(0,d.default)(la.performances)})),Pa(!1)),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]),(0,f.useEffect)(function(){null!==K.result&&Xt(!0),K.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(K),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetConsultationReset)())}}],{cancelable:!1})},[K]),(0,f.useEffect)(function(){null!==ie.result&&m.Alert.alert(h.default.t("SUCCESS"),ie.result.response,[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)()),ue.goBack()}}],{cancelable:!1}),ie.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[ie]);var kl=y.object().shape({numero_assure:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===De.password_validation?y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ll=y.object().shape({price:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ul=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:y.number(),date_prestation:y.date(),ticker_moderateur:y.number()}),Fl=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),date_prestation:y.date()}),Yl=(y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.mixed(),amount:y.mixed()})),Gl=y.object().shape({drug_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ql=(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||new Date;ge('ios'===m.Platform.OS),he(X(a).format('YYYY-MM-DD')),nn('accident_date',X(a).format('YYYY-MM-DD'))}),Hl=function(e,t){var a=t||new Date;it('ios'===m.Platform.OS),We(X(a).format('YYYY-MM-DD')),nn('pregnancy_start_at',X(a).format('YYYY-MM-DD'))},jl=function(e,t){var a=t||new Date;st('ios'===m.Platform.OS),$e(X(a).format('YYYY-MM-DD')),nn('pregnancy_end_at',X(a).format('YYYY-MM-DD'))};console.log("consultaiton",$t);var Ql,zl,Kl,Wl,Xl,Zl=(0,_.useFormik)({validationSchema:kl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_t?void 0:_t.code_membre,pregnancy_start_at:null,pregnancy_end_at:null,accident_date:null},onSubmit:function(e){i($t.id,{network_agent_id:De.network_agent_id,password:e.password,practitioner_lastname:e.practitioner_lastname,practitioner_firstname:e.practitioner_firstname,practitioner_provider_class_id:e.practitioner_provider_class_id,care_condition:e.care_condition,accident_date:e.accident_date,pregnancy_start_at:e.pregnancy_start_at,pregnancy_end_at:e.pregnancy_end_at,performances:$t.performances,prescriptions:$t.prescriptions,exams:$t.exams})}}),Jl=Zl.handleChange,$l=Zl.handleSubmit,en=Zl.handleBlur,tn=Zl.values,an=Zl.errors,ln=Zl.touched,nn=Zl.setFieldValue,on=Zl.setFieldTouched,rn=(Zl.isValid,function(){switch(console.log("currentStep",jt),jt){case 0:return console.log("values",tn),''!==tn.numero_assure&&null===$.result&&(Bl((0,T.fetchGetUserByNameOrNumberReset)()),l(De.id_network,Oe?"&insured_id="+tn.numero_assure:Ve?"&phone="+tn.numero_assure:"&name="+tn.numero_assure),console.log("errors",an)),!1;default:return!0}}),un=[{title:h.default.t('ASSURE'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10,width:(0,b.responsiveWidth)(90)},placeholder:Oe?h.default.t('NUMERO_ASSURE'):Ve?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:tn.numero_assure,keyboardType:Ve?'numeric':'default',onChangeText:Jl('numero_assure'),onBlur:en('numero_assure'),success:ln.numero_assure&&!an.numero_assure,touched:ln.numero_assure,error:an.numero_assure,icon:f.default.createElement(N.default,{style:{zIndex:10},name:Oe?'lock':Ve?'phone':'user',size:20})}),f.default.createElement(m.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},f.default.createElement(A.default,{style:{paddingRight:10},name:"lock",size:20,color:C.Color.primaryColor,onPress:function(){ve(!0),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"phone",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!0)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"user",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"qrcode",size:20,color:C.Color.primaryColor,onPress:function(){fe(!0)}})))},{title:h.default.t('PATIENT'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:tn.lastname_patient,onChangeText:Jl('lastname_patient'),onBlur:en('lastname_patient'),success:ln.lastname_patient&&!an.lastname_patient,touched:ln.lastname_patient,editable:!1,error:an.lastname_patient}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:tn.firstname_patient,editable:!1,onChangeText:Jl('firstname_patient'),onBlur:en('firstname_patient'),success:ln.firstname_patient&&!an.firstname_patient,touched:ln.firstname_patient,error:an.firstname_patient}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('SITUATION')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(60)}},f.default.createElement(B.default,{options:gl,disabled:!0,value:Cl,initial:Cl,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){}}))))},{title:h.default.t('PRATICIEN'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:tn.agrement_praticien,editable:!1}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:tn.practitioner_lastname,onChangeText:Jl('practitioner_lastname'),onBlur:en('practitioner_lastname'),success:ln.practitioner_lastname&&!an.practitioner_lastname,touched:ln.practitioner_lastname,error:an.practitioner_lastname}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:tn.practitioner_firstname,onChangeText:Jl('practitioner_firstname'),onBlur:en('practitioner_firstname'),success:ln.practitioner_firstname&&!an.practitioner_firstname,touched:ln.practitioner_firstname,error:an.practitioner_firstname}),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),value:null!==sa?sa.practitioner_provider_class:'',data:null!==ae.result?null==(t=ae.result)?void 0:t.response:[],useNativeDriver:!0,onChangeText:function(e,t,a){on('practitioner_provider_class_id'),nn('practitioner_provider_class_id',e.id),console.log("Value",e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),value:null!==sa?sa.care_condition:'',data:Nl,useNativeDriver:!0,onChangeText:function(e,t,a){console.log("Value",e),pt(e),on('care_condition'),nn('care_condition',e)},valueExtractor:function(e){return e.value},labelExtractor:function(e){return e.label}})),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('ACCIDENT')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(40)}},f.default.createElement(B.default,{options:Sl,initial:null!==sa&&null!==sa.accident_date?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){console.log(e),Te('YES'===e)}}))),be&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==Ce?Ce:'',onChangeText:Jl('date_accident'),onBlur:en('date_accident'),onFocus:function(){Keyboard.dismiss(),ge(!0)},success:ln.date_accident&&!an.date_accident,touched:ln.date_accident,error:an.date_accident}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('GROSSESSE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Tl,initial:null!==sa&&null!==sa.pregnancy_start_at?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){lt('YES'===e)}}))),at&&f.default.createElement(f.default.Fragment,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==Ke?Ke:'',onChangeText:Jl('date_debut_grossesse'),onBlur:en('date_debut_grossesse'),onFocus:function(){Keyboard.dismiss(),it(!0)},success:ln.date_debut_grossesse&&!an.date_debut_grossesse,touched:ln.date_debut_grossesse,error:an.date_debut_grossesse}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==Je?Je:'',onChangeText:Jl('date_fin_grossesse'),onBlur:en('date_fin_grossesse'),onFocus:function(){Keyboard.dismiss(),st(!0)},success:ln.date_fin_grossesse&&!an.date_fin_grossesse,touched:ln.date_fin_grossesse,error:an.date_fin_grossesse})),"MAX"===De.password_validation&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:tn.password,onChangeText:Jl('password'),onBlur:en('password'),success:ln.password&&!an.password,touched:ln.password,error:an.password,secureTextEntry:!0}),f.default.createElement(m.View,{style:{marginTop:25}},f.default.createElement(m.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ha(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('CONSULTATION')),f.default.createElement(j.default,{name:"medical-bag",size:20,color:C.Color.whiteColor})),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ga(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),f.default.createElement(A.default,{name:"file-medical",size:20,color:C.Color.whiteColor})))),f.default.createElement(m.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,flexDirection:"row"}],onPress:function(e){Ha(!0),vt(null)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('MEDICAMENT')),f.default.createElement(Q.default,{name:"drug-pack",size:20,color:C.Color.whiteColor}))))}];return f.default.createElement(w.ScreenComponent,null,f.default.createElement(I.default,{ref:function(e){return Ml=e}}),f.default.createElement(m.KeyboardAvoidingView,{behavior:'android'===m.Platform.OS?'height':'padding',style:{flex:1}},f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:ee.contain},f.default.createElement(O.default,{steps:un,currentStepIndex:jt+1}),f.default.createElement(m.View,{style:{flexDirection:'column',alignItems:'center'}},f.default.createElement(v.default,{ref:Mt,activeStep:0,steps:un,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(e){return Ut(e)},isLastStep:function(e){return Gt(e)},onNext:function(){rn()},onPrev:function(){0===jt&&Bl((0,T.fetchGetUserByNameOrNumberReset)())},currentStep:function(e){var t=e.currentStep,a=e.isLastStep,l=e.isFirstStep;Qt(t),Ut(l),Gt(a)}})),f.default.createElement(m.View,{style:ee.iconNavigation},Lt?f.default.createElement(m.View,null):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(){return Mt.current.prev()}},f.default.createElement(A.default,{name:"arrow-left",size:20,color:C.Color.whiteColor})),2===jt?f.default.createElement(S.default,{loading:re.loading,onPress:$l},h.default.t('SUBMIT_LABEL')):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){rn()&&Mt.current.next()}},$.loading||te.loading||K.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(A.default,{name:"arrow-right",size:24,color:C.Color.whiteColor}))),ll&&f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ll,onSwipeComplete:function(){nl(!1)},swipeDirection:null,style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),f.default.createElement(m.View,{style:{height:m.Dimensions.get('window').height-200,width:m.Dimensions.get('window').width}},f.default.createElement(z.default,{style:{flex:1},originWhitelist:['*'],source:{html:J.result.document}})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return nl(!1)}},h.default.t('OK'))))),Ma&&(Xl=null!==Vt&&null===Vt.drugs?g.default.parseInt(Vt.amount):'',console.log("AMOUNT",Xl),f.default.createElement(_.Formik,{validationSchema:Fl,initialValues:{amount_prestation:''+Vt!==null&&null===Vt.drugs?Vt.amount:'',frais_deplacement:null!==Vt&&null===Vt.drugs?Vt.home_visit_fees:'',code_acte:null!==Vt&&null===Vt.drugs?Vt.act:'',insurance_amount:''+Vt!==null&&null===Vt.drugs?Vt.insurance_amount:'',moderator_ticket:''+Vt!==null&&null===Vt.drugs?Vt.moderator_ticket:''},onSubmit:function(e){console.log("values",e),ea(W({},$t,{performances:$t.performances.map(function(t){return Vt.id===t.id?W({},t,{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement,to_delete:!1}):t})})),x({insurance_id:wt.id,beneficiary_id:null!==It?It.id:null,care_condition:$t._care_condition,act_action:"UPDATE",act_type:"PERFORMANCE",act_id:Vt.id,tmp_sheet_id:ke,performances:[{amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}]})}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ma,onSwipeComplete:function(){Pa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:null!==Vt&&null===Vt.drugs?X(Vt.created_at).format('YYYY-MM-DD HH:mm'):''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),null!==e.amount&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:a.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})},editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:null!==Vt&&null===Vt.drugs?a.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:null!==Vt&&null===Vt.drugs?a.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{loading:H.loading,style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){d(),console.log("Error",l)}},h.default.t('SUBMIT_LABEL'))))))})),Ca&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ca,onSwipeComplete:function(){ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_PRESTATION')),f.default.createElement(m.FlatList,{data:$t.performances.filter(function(e){return!e.to_delete}),extraData:$t.performances.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:5},(0,F.cutString)(t.act.name,30)+"\n \n "+h.default.t('AMOUNT_LABEL')+": "+t.amount+" \n \n "+h.default.t('AMOUNT_PER_INSURANCE')+": "+t.insurance_amount+" \n \n "+h.default.t('TICKET_MONDERATEUR')+": "+t.moderator_ticket+" "+(null!==t.home_visit_fees?'| '+t.home_visit_fees:'')),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:null})),Pa(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{performances:$t.performances.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ha(!1)}},h.default.t('OK')))))),Ua&&f.default.createElement(_.Formik,{validationSchema:Ul,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(e){''===e.code_acte?Pl.shake(200):(ul([{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}].concat((0,d.default)(il))),Fa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_MODIFY')))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ua,onSwipeComplete:function(){Fa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),'FREE'!==e.billing_type&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,value:a.amount_prestation,onChangeText:o('amount_prestation'),onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})}}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:d},h.default.t('SUBMIT_LABEL'))))))}),qa&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(e){pl([{drug_or_device_id:Ot.id,dosage:e.drug_posologie,quantity:e.drug_quantity}].concat((0,d.default)(ml))),Ha(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,i=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:qa,onSwipeComplete:function(){Ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),f.default.createElement(m.View,{style:{flexDirection:'row'}},f.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Ot?Ot.name:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(e){r(De.id_network,t.drug_name)}},le.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(N.default,{name:"search",size:24,color:C.Color.whiteColor}))),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:i},h.default.t('SUBMIT_LABEL'))))))}),za&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:null!==Vt&&Vt.drugs?Vt.drug_or_device.name:'',drug_posologie:null!==Vt&&Vt.drugs?Vt.dosage:'',drug_quantity:null!==Vt&&Vt.drugs?Vt.quantity:''},onSubmit:function(e){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?{id:t.id,drug_or_device_id:Vt.drug_or_device.id,drug_or_device:Vt.drug_or_device,dosage:e.drug_posologie,quantity:e.drug_quantity,unit_price:t.unit_price,to_delete:!1}:t})})),Ka(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_MODIFY'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:za,onSwipeComplete:function(){Ka(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_MEDICAMENT')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:''+t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:r},h.default.t('SUBMIT_LABEL'))))))}),Za&&f.default.createElement(_.Formik,{validationSchema:Yl,initialValues:{examen_name:null!==Vt?Vt.drugs?'':Vt.description:'',examen_quantite:''+Vt!==null?Vt.drugs?'':Vt.quantity:'',code_acte:''+Vt!==null?Vt.drugs?'':Vt.act:'',amount:null!==Vt?Vt.drugs?null:Vt.act.amount:null},onSubmit:function(e){ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{id:t.id,amount:e.amount,act_id:e.code_acte.id,act:e.code_acte,description:e.examen_name,quantity:null,unit_price:t.unit_price,to_delete:!1}):t})})),Ja(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_MODIFY'))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.setFieldValue,i=e.setFieldTouched,u=e.handleBlur,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},console.log("Errors",l),f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Za,onSwipeComplete:function(){Ja(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_EXAMEN')),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return"EXAM_OR_OTHER"===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){console.log("Value",e),i('code_acte'),r('code_acte',e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:a.examen_name,onChangeText:o('examen_name'),onBlur:u('examen_name'),success:n.examen_name&&!l.examen_name,touched:n.examen_name,error:l.examen_name}),f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==a.code_acte?'FREE'===a.code_acte.billing_type?h.default.t('AMOUNT_FREE'):a.code_acte.unit_value+" = "+a.code_acte.amount:'',editable:!1,onChangeText:o('amount'),onBlur:u('amount'),success:n.amount&&!l.amount,touched:n.amount,error:l.amount,keyboardType:"numeric"})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:function(){console.log("errors",l),console.log("values",a),d()}},h.default.t('SUBMIT_LABEL'))))))}),He&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Fe),mode:"date",display:"spinner",onChange:(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||''+X(new Date).format('YYYY-MM-DD');je('ios'===m.Platform.OS),Ye(a)})}),Ee&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:ql}),rt&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:Hl}),ct&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:jl}),Ea&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ea,onSwipeComplete:function(){ga(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXAMEN')),f.default.createElement(m.FlatList,{data:$t.exams.filter(function(e){return!e.to_delete}),extraData:$t.exams.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.description+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+(0,F.cutStringWithoutDot)(t.act.name,50)),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!1})),Ja(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{exams:$t.exams.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ga(!1)}},h.default.t('OK')))))),se&&f.default.createElement(E.default.Container,{contentStyle:{width:(0,b.responsiveWidth)(80)},useNativeDriver:!0,visible:se},f.default.createElement(E.default.Title,null,h.default.t('SCAN')),f.default.createElement(m.ScrollView,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor,maxHeight:300}]},f.default.createElement(V.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),f.default.createElement(L.default,{onRead:function(e){fe(!1),a(e.data),console.log("result",e.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){fe(!1)}})),Ra&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ra,onSwipeComplete:function(){xa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),f.default.createElement(m.FlatList,{data:null==(Kl=$.result)?void 0:Kl.response,extraData:null==(Wl=$.result)?void 0:Wl.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:{paddingVertical:15,alignItems:'flex-start'}},f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%",flexDirection:'column'}],key:t.id,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(null),hl(1),xa(!1),nn('lastname_patient',t.user.lastname),nn('firstname_patient',t.user.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&network_agent_id="+De.network_agent_id))}},f.default.createElement(V.default,{body2:!0,semibold:!0},(null!==t.user.firstname?t.user.firstname:'')+" "+(null!==t.user.lastname?t.user.lastname:'')),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)),t.beneficiaries.map(function(e){return f.default.createElement(m.TouchableOpacity,{style:ee.beneficiarySubSection,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(e),hl(0),xa(!1),nn('lastname_patient',e.lastname),nn('firstname_patient',e.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&beneficiary_id="+e.id))}},f.default.createElement(m.View,{style:{width:10}}),f.default.createElement(m.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},f.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==e.firstname?e.firstname:'')+" "+(null!==e.lastname?e.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+e.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+e.insurance_remaining_amount)))}))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return xa(!1)}},h.default.t('OK')))))),Aa&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Aa,onSwipeComplete:function(){Na(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MEDICAMENTS')),f.default.createElement(m.FlatList,{data:$t.prescriptions.filter(function(e){return!e.to_delete}),extraData:$t.prescriptions.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.quantity+" "+t.drug_or_device.name+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+t.dosage),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!0})),Ka(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Na(!1)}},h.default.t('OK')))))),Wt&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Wt,onSwipeComplete:function(){Xt(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_CONSULTATION')),f.default.createElement(m.FlatList,{data:null==(Ql=K.result)?void 0:Ql.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_CONSULTATION')),extraData:null==(zl=K.result)?void 0:zl.response,keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id,onPress:function(){fa(t),ua(!0)}},f.default.createElement(V.default,{body2:!0,semibold:!0},t.type+" #"+t.health_care_sheet_id+" - "+X(t.created_at).format('YYYY-MM-DD')))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Xt(!1)}},h.default.t('OK')))))),ia&&f.default.createElement(E.default.Container,{useNativeDriver:!0,visible:ia},f.default.createElement(E.default.Title,null,h.default.t('DETAIL')),f.default.createElement(m.ScrollView,{persistentScrollbar:!0},f.default.createElement(m.View,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor}]},f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PATIENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_lastname+" "+sa.patient_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Situation")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_situation.toLowerCase()))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRATICIEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.practitioner_lastname+" "+sa.practitioner_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CLASSE_PRESTATAIRE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.practitioner_provider_class.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('STATE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.state.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Type")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.type.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CONDITION_PRISE_CHARGE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.care_condition.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('INSTITUTE_NAME'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.institution_name.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Date")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},X(sa.created_at).format('YYYY-MM-DD')))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRESTATION'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.performances.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.act.name+" \n "+e.amount+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('EXAMEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.exams.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.description+" \n "+e.act.name+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('MEDICAMENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.prescriptions.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.drug_or_device.name+" \n "+e.dosage+" \n")}))))),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){ua(!1)}}),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){ua(!1),xa(!1),Xt(!1),ea(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),na(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),pt(sa.care_condition),nn('practitioner_firstname',sa.practitioner_firstname),nn('practitioner_lastname',sa.practitioner_lastname),nn('pregnancy_start_at',sa.pregnancy_start_at),nn('accident_date',sa.accident_date),Te(null!==sa.accident_date),lt(null!==sa.pregnancy_start_at),Mt.current.next()}})),ba&&f.default.createElement(_.Formik,{validationSchema:Ll,initialValues:{price:''},onSubmit:function(e){console.log("Value",Vt),Vt.examen?ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})):ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})),Ta(!1)}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=(e.setFieldValue,e.setFieldTouched,e.handleBlur),r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ba,onSwipeComplete:function(){Ta(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AMOUNT_LABEL')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_LABEL_DESCRIPTION'),value:t.price,onChangeText:n('price'),onBlur:o('price'),success:l.price&&!a.price,touched:l.price,error:a.price,keyboardType:"numeric"}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:r},h.default.t('OK'))))))})))),null!==J.result&&f.default.createElement(m.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:C.Color.primaryColor,borderRadius:100},onPress:function(){nl(!0)}},f.default.createElement(V.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});o.default=ae},1744,[4,1,35,7,27,15,18,1049,1424,941,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1077,1569,1733,882,1035,841,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),O=n(r(d[22])),N=n(r(d[23])),v=n(r(d[24])),P=n(r(d[25])),V=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),U=n(r(d[30])),M=r(d[31]),L=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function z(t){for(var n=1;n0?Rt(!0):Yt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),Z.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(Z),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Z]),(0,u.useEffect)(function(){null!==J.result&&$e(!0),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){null!==W.result&&c.Alert.alert(_.default.t("SUCCESS"),W.result.response,[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)()),ae.goBack()}}],{cancelable:!1}),W.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(W),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[W]),(0,u.useEffect)(function(){St(!1),null!==K.result&&null!==K.result.response&&Qt((0,b.fetchCheckInsuranceCoverageAmountReset)()),K.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),L.getErrorMsg(K),[{text:_.default.t("OK"),onPress:function(){Ve.examen?nt(z({},at,{exams:at.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):nt(z({},at,{prestations:at.prestations.map(function(t){return Ve.id===t.id?z({},t,{quantity:ot.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),Qt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[K]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ue.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()})});console.log("consultaiton",at);var Xt,Wt,Jt,Zt,$t=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==Ce?void 0:Ce.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){Y(at.id,{network_agent_id:ue.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,performances:at.performances,prescriptions:at.prescriptions})}}),ea=$t.handleChange,ta=$t.handleSubmit,aa=$t.handleBlur,na=$t.values,la=$t.errors,ra=$t.touched,oa=$t.setFieldValue,ia=$t.setFieldTouched,ua=($t.isValid,function(){switch(console.log("currentStep",Ke),Ke){case 0:return console.log("values",na),''!==na.numero_assure&&null===Z.result&&(Qt((0,b.fetchGetUserByNameOrNumberReset)()),I(ue.id_network,se?"&insured_id="+na.numero_assure:ye?"&phone="+na.numero_assure:"&name="+na.numero_assure),console.log("errors",la)),!1;default:return!0}}),ca=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:se?_.default.t('NUMERO_ASSURE'):ye?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:na.numero_assure,keyboardType:ye?'numeric':'default',onChangeText:ea('numero_assure'),onBlur:aa('numero_assure'),success:ra.numero_assure&&!la.numero_assure,touched:ra.numero_assure,error:la.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:se?'lock':ye?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(N.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){fe(!0),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!0)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){oe(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:na.lastname_patient,onChangeText:ea('lastname_patient'),onBlur:aa('lastname_patient'),success:ra.lastname_patient&&!la.lastname_patient,touched:ra.lastname_patient,editable:!1,error:la.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:na.firstname_patient,editable:!1,onChangeText:ea('firstname_patient'),onBlur:aa('firstname_patient'),success:ra.firstname_patient&&!la.firstname_patient,touched:ra.firstname_patient,error:la.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(P.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(V.default,{options:Lt,disabled:!0,value:Gt,initial:Gt,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:na.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:na.practitioner_lastname,onChangeText:ea('practitioner_lastname'),onBlur:aa('practitioner_lastname'),success:ra.practitioner_lastname&&!la.practitioner_lastname,touched:ra.practitioner_lastname,error:la.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:na.practitioner_firstname,onChangeText:ea('practitioner_firstname'),onBlur:aa('practitioner_firstname'),success:ra.practitioner_firstname&&!la.practitioner_firstname,touched:ra.practitioner_firstname,error:la.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),value:null!==pt?pt.practitioner_provider_class:'',data:null!==ee.result?null==(n=ee.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){ia('practitioner_provider_class_id'),oa('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ue.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:na.password,onChangeText:ea('password'),onBlur:aa('password'),success:ra.password&&!la.password,touched:ra.password,error:la.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==at?!at.prescriptions.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.prescriptions.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):Ct(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(N.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==at?!at.exams.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.exams.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les examens"):vt(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Yt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:X.contain},u.default.createElement(A.default,{steps:ca,currentStepIndex:Ke+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(O.default,{ref:Me,activeStep:0,steps:ca,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ge(t)},isLastStep:function(t){return Qe(t)},onNext:function(){ua()},onPrev:function(){0===Ke&&Qt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Xe(n),Ge(o),Qe(l)}})),u.default.createElement(c.View,{style:X.iconNavigation},Fe?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return Me.current.prev()}},u.default.createElement(N.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===Ke?u.default.createElement(h.default,{loading:W.loading,onPress:ta},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ta(t),ua()&&Me.current.next()}},Z.loading||$.loading||J.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(N.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),_t&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:at.exams,extraData:at.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{examen:!0})),nt(z({},at,{exams:at.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.description+" "+(n.unit_price?' - '+n.unit_price+(null!==n.unit_quantity?' X '+n.unit_quantity:''):'')+" \n "+n.act.name),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Ct(!1)}},_.default.t('OK')))))),re&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:re},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[X.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(P.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(U.default,{onRead:function(t){oe(!1),l(t.data),console.log("result",t.data)},flashMode:M.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){oe(!1)}})),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Jt=Z.result)?void 0:Jt.response,extraData:null==(Zt=Z.result)?void 0:Zt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(null),jt(1),Rt(!1),oa('lastname_patient',n.user.lastname),oa('firstname_patient',n.user.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(P.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:X.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(t),jt(0),Rt(!1),oa('lastname_patient',t.lastname),oa('firstname_patient',t.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&beneficiary_id="+t.id+"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(P.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Nt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Nt,onSwipeComplete:function(){vt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:at.prescriptions,extraData:at.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{drugs:!0})),nt(z({},at,{prescriptions:at.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return vt(!1)}},_.default.t('OK')))))),Ze&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ze,onSwipeComplete:function(){$e(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_EXECUTION')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Wt=J.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_EXECUTION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){yt(n),st(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return $e(!1)}},_.default.t('OK')))))),dt&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:dt},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[X.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_lastname+" "+pt.patient_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.practitioner_lastname+" "+pt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(pt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.performances.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.exams.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.prescriptions.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){st(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){st(!1),Rt(!1),$e(!1),nt(pt),it(pt),oa('practitioner_firstname',pt.practitioner_firstname),oa('practitioner_lastname',pt.practitioner_lastname),Me.current.next()}})),bt&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',price:Ve.unit_price,unit_quantity:null!==Ve.unit_quantity?Ve.unit_quantity:'',unit_quantity_condition:null!==Ve&&!!Ve.hasOwnProperty('act')&&"UNIT_PRICE"===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)nt(z({},at,{exams:at.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:at.exams.filter(function(t){return Ve.id===t.id})[0].act_id,act_action:"UPDATE",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue});else{var n=pt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):(nt(z({},at,{prescriptions:at.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:Ve.id,act_action:"UPDATE",act_type:"PRESCRIPTION",prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},console.log("Errors",l),u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MODIFY_EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(P.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(P.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:!Ve.hasOwnProperty('act')||"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:K.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1745,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[2])),o=t(r(d[3])),f=r(d[4]),u=l(r(d[5])),c=r(d[6]),s=r(d[7]),y=l(r(d[8])),E=r(d[9]),p=r(d[10]),w=l(r(d[11])),C=r(d[12]),x=r(d[13]),T=r(d[14]),V=l(r(d[15])),b=t(r(d[16])),_=l(r(d[17])),h=r(d[18]),I=l(r(d[19])),D=l(r(d[20])),S=l(r(d[21])),R=r(d[22]),A=f.Dimensions.get('window'),L=(A.width,A.height,(0,C.createStructuredSelector)({subscriptionList:x.selectSubscriptionList,activatePaySubscription:x.selectActivatePaySubscription,getConsultation:x.selectGetConsultation,acceptRefuseConsultation:x.selectAcceptRefuseConsultation})),O=(0,c.connect)(L,{fetchActivePaySubscription:p.fetchActivePaySubscription,fetchGetConsultation:p.fetchGetConsultation,fetchAcceptRejectConsultation:p.fetchAcceptRejectConsultation,fetchGetSubscription:p.fetchGetSubscription,fetchGetDemandeAutorisationSoin:p.fetchGetDemandeAutorisationSoin})(function(t){t.navigation;var l=t.fetchGetConsultation,C=t.fetchGetSubscription,x=t.fetchGetDemandeAutorisationSoin,A=(t.fetchAcceptRejectConsultation,t.acceptRefuseConsultation,t.getConsultation),L=(0,c.useDispatch)(),O=(0,o.useState)(null),P=(0,n.default)(O,2),v=P[0],B=P[1],M=(0,o.useState)(!1),U=(0,n.default)(M,2),G=U[0],k=U[1],Y=(0,o.useState)({}),F=(0,n.default)(Y,2),W=F[0],j=F[1],z=(0,o.useState)(1),H=(0,n.default)(z,2),K=H[0],q=H[1],X=(0,o.useState)(y.default.t('SOINS')),J=(0,n.default)(X,2),Q=J[0],Z=J[1],$=(0,o.useState)(!1),ee=(0,n.default)($,2),te=ee[0],le=ee[1],ae=(0,o.useState)([]),re=(0,n.default)(ae,2),ne=re[0],oe=re[1];var ie,fe;ie=(0,o.useState)(0),(fe=(0,n.default)(ie,2))[0],fe[1];(0,o.useEffect)(function(){L((0,p.fetchGetConsultationReset)()),L((0,p.fetchAcceptRejectConsultationReset)()),(0,T.readUser)().then(function(t){B(t),console.log("User",t),l(t.id,'ALL','','&pagination=true&page=1')})},[]),(0,o.useEffect)(function(){null!==A.result&&(K0?St(!0):Qt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){Ct(!1),null!==Y.result&&null!==Y.result.response&&zt((0,b.fetchCheckInsuranceCoverageAmountReset)()),Y.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),M.getErrorMsg(Y),[{text:_.default.t("OK"),onPress:function(){Ve.examen?$e(z({},Ze,{exams:Ze.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return Ve.id===t.id?z({},t,{quantity:at.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:at.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),zt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[Y]),(0,u.useEffect)(function(){null!==X.result&&We(!0),X.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(X),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[X]),(0,u.useEffect)(function(){null!==ee.result&&c.Alert.alert(_.default.t("SUCCESS"),ee.result.response,[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)()),te.goBack()}}],{cancelable:!1}),ee.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),M.getErrorMsg(ee),[{text:_.default.t("OK"),onPress:function(){zt((0,b.fetchExecutionPrescriptionReset)())}}],{cancelable:!1})},[ee]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ie.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()}),code_acte:y.object()});console.log("consultaiton",Ze);var Yt,Wt,Xt,Jt,Zt=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_e?void 0:_e.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){H({health_care_sheet_id:Ze.id,network_agent_id:ie.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,prescriptions:Ze.prescriptions.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity}}),exams:Ze.exams.filter(function(t){return t.checked}).map(function(t){return{id:t.id,unit_price:t.unit_price,quantity:t.quantity,unit_quantity:parseInt(t.unit_quantity)}})})}}),$t=Zt.handleChange,ea=Zt.handleSubmit,ta=Zt.handleBlur,aa=Zt.values,na=Zt.errors,la=Zt.touched,ra=Zt.setFieldValue,oa=Zt.setFieldTouched,ia=(Zt.isValid,function(){switch(console.log("currentStep",ze),ze){case 0:return console.log("values",aa),zt((0,b.fetchGetUserByNameOrNumberReset)()),''!==aa.numero_assure&&null===J.result&&(I(ie.id_network,de?"&insured_id="+aa.numero_assure:pe?"&phone="+aa.numero_assure:"&name="+aa.numero_assure),console.log("errors",na)),!1;default:return!0}}),ua=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:de?_.default.t('NUMERO_ASSURE'):pe?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:aa.numero_assure,keyboardType:pe?'numeric':'default',onChangeText:$t('numero_assure'),onBlur:ta('numero_assure'),success:la.numero_assure&&!na.numero_assure,touched:la.numero_assure,error:na.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:de?'lock':pe?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(O.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){se(!0),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!0)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){se(!1),ye(!1)}}),u.default.createElement(O.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){re(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:aa.lastname_patient,onChangeText:$t('lastname_patient'),onBlur:ta('lastname_patient'),success:la.lastname_patient&&!na.lastname_patient,touched:la.lastname_patient,editable:!1,error:na.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:aa.firstname_patient,editable:!1,onChangeText:$t('firstname_patient'),onBlur:ta('firstname_patient'),success:la.firstname_patient&&!na.firstname_patient,touched:la.firstname_patient,error:na.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(V.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(P.default,{options:Ut,disabled:!0,value:Ft,initial:Ft,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:aa.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:aa.practitioner_lastname,onChangeText:$t('practitioner_lastname'),onBlur:ta('practitioner_lastname'),success:la.practitioner_lastname&&!na.practitioner_lastname,touched:la.practitioner_lastname,error:na.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:aa.practitioner_firstname,onChangeText:$t('practitioner_firstname'),onBlur:ta('practitioner_firstname'),success:la.practitioner_firstname&&!na.practitioner_firstname,touched:la.practitioner_firstname,error:na.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),data:null!==$.result?null==(n=$.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){oa('practitioner_provider_class_id'),ra('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ie.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:aa.password,onChangeText:$t('password'),onBlur:ta('password'),success:la.password&&!na.password,touched:la.password,error:na.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==Ze?!Ze.prescriptions.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.prescriptions.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):yt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(O.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==Ze?!Ze.exams.filter(function(t){return t.checked}).length>0?u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){Ze.exams.filter(function(t){return t.checked}).length>0?(0,M.displayToast)("Vous avez deja renseigner les examens"):Rt(!0)}},u.default.createElement(V.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Qt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:W.contain},u.default.createElement(A.default,{steps:ua,currentStepIndex:ze+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(N.default,{ref:De,activeStep:0,steps:ua,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ue(t)},isLastStep:function(t){return Fe(t)},onNext:function(){ia()},onPrev:function(){0===ze&&zt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Qe(n),Ue(o),Fe(l)}})),u.default.createElement(c.View,{style:W.iconNavigation},Le?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return De.current.prev()}},u.default.createElement(O.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===ze?u.default.createElement(h.default,{loading:ee.loading,onPress:ea},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[W.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ea(t),ia()&&De.current.next()}},J.loading||Z.loading||X.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(O.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),pt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:pt,onSwipeComplete:function(){yt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:Ze.exams,extraData:Ze.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{examen:!0})),$e(z({},Ze,{exams:Ze.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},(null===n.quantity?'':n.quantity)+" "+n.description+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.act.name),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return yt(!1)}},_.default.t('OK')))))),le&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:le},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[W.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(V.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(L.default,{onRead:function(t){re(!1),l(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){re(!1)}})),bt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Jt=J.result)?void 0:Jt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(null),Gt(1),St(!1),ra('lastname_patient',n.user.lastname),ra('firstname_patient',n.user.firstname),j(n.user.id,'TO_BILL','CONSULTATION'))}},u.default.createElement(V.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:W.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Se(n),Re(t),Gt(0),St(!1),ra('lastname_patient',t.lastname),ra('firstname_patient',t.firstname),j(n.user.id,'TO_BILL','CONSULTATION',"&beneficiary_id="+t.id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(V.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return St(!1)}},_.default.t('OK')))))),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:Ze.prescriptions,extraData:Ze.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){Pe(z({},n,{quantity_original:n.quantity,drugs:!0})),$e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||Ct(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},parseInt(n.quantity)-parseInt(null!==n.billed_quantity?n.billed_quantity:0)+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(O.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Ye&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ye,onSwipeComplete:function(){We(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_CONSULTATION')),u.default.createElement(c.FlatList,{data:null==(Yt=X.result)?void 0:Yt.response,extraData:null==(Wt=X.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(V.default,{body2:!0},_.default.t('NO_CONSULTATION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[W.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){st(n),it(!0)}},u.default.createElement(V.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return We(!1)}},_.default.t('OK')))))),ot&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:ot},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[W.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(null!==dt.patient_lastname?dt.patient_lastname:'')+" "+(null!==dt.patient_firstname?dt.patient_firstname:'')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},dt.practitioner_lastname+" "+dt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,M.uppercaseFirstLetter)(dt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(dt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.performances.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.exams.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(V.default,{style:[W.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},dt.prescriptions.map(function(t){return u.default.createElement(V.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){it(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){it(!1),St(!1),We(!1),$e(dt),nt(dt),De.current.next()}})),_t&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',unit_quantity:'',unit_quantity_condition:null!==Ve&&!Ve.drugs&&'UNIT_PRICE'===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:'',price:null!==Ve?Ve.drugs?'':Ve.act.amount:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)$e(z({},Ze,{exams:Ze.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ot});else{var n=dt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):($e(z({},Ze,{prescriptions:Ze.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),K({insurance_id:be.id,beneficiary_id:null!==Ie?Ie.id:null,care_condition:Ze._care_condition,act_action:"INSERT",act_type:"PRESCRIPTION",tmp_sheet_id:Ot,prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}]}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[W.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:W.bottomModal},u.default.createElement(c.View,{style:[W.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:W.contentSwipeDown},u.default.createElement(c.View,{style:W.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(V.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(V.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(V.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:Y.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1743,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); +__d(function(e,t,a,l,n,o,r){var i=t(r[0]),u=t(r[1]);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var d=u(t(r[2])),c=u(t(r[3])),s=u(t(r[4])),f=i(t(r[5])),m=t(r[6]),p=t(r[7]),E=u(t(r[8])),g=u(t(r[9])),_=t(r[10]),y=i(t(r[11])),C=t(r[12]),h=u(t(r[13])),w=t(r[14]),S=u(t(r[15])),b=t(r[16]),T=t(r[17]),I=u(t(r[18])),D=t(r[19]),R=u(t(r[20])),x=t(r[21]),O=u(t(r[22])),v=u(t(r[23])),A=u(t(r[24])),N=u(t(r[25])),V=u(t(r[26])),B=u(t(r[27])),M=i(t(r[28])),P=t(r[29]),k=u(t(r[30])),L=u(t(r[31])),U=t(r[32]),F=i(t(r[33])),Y=t(r[34]),G=t(r[35]),q=u(t(r[36])),H=t(r[37]),j=u(t(r[38])),Q=u(t(r[39])),z=u(t(r[40]));function K(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,l)}return a}function W(e){for(var t=1;t0?xa(!0):Ml.alertWithType('warn',h.default.t('EMPTY_LIST'),h.default.t('NO_ASSURE_MATCH_SEARCH'))),$.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg($),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[$]),(0,f.useEffect)(function(){console.log("getUserByNameOrNumber.result",te),null!==te.result&&(ve(!1),Be(!0),nn('numero_assure',te.result.response.phone),l(De.id_network,"&phone="+te.result.response.phone)),te.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(te),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetUserByIdQRCodeReset)())}}],{cancelable:!1})},[te]),(0,f.useEffect)(function(){null!==H.result&&null!==H.result.response&&($t.performances.length>=1&&(Pa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_ADD'))),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())),H.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(H),[{text:h.default.t("OK"),onPress:function(){$t.performances.length>=1&&(ea(W({},$t,{performances:(0,d.default)(la.performances)})),Pa(!1)),Bl((0,T.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[H]),(0,f.useEffect)(function(){null!==K.result&&Xt(!0),K.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(K),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchGetConsultationReset)())}}],{cancelable:!1})},[K]),(0,f.useEffect)(function(){null!==ie.result&&m.Alert.alert(h.default.t("SUCCESS"),ie.result.response,[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)()),ue.goBack()}}],{cancelable:!1}),ie.error&&m.Alert.alert(h.default.t("ERROR_LABLE"),F.getErrorMsg(ie),[{text:h.default.t("OK"),onPress:function(){Bl((0,T.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[ie]);var kl=y.object().shape({numero_assure:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===De.password_validation?y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ll=y.object().shape({price:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),Ul=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),frais_deplacement:y.number(),date_prestation:y.date(),ticker_moderateur:y.number()}),Fl=y.object().shape({amount_prestation:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),date_prestation:y.date()}),Yl=(y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),code_acte:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),amount:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),y.object().shape({examen_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.mixed(),amount:y.mixed()})),Gl=y.object().shape({drug_name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_quantity:y.number().required(h.default.t('THIS_FIELD_IS_REQUIRED')),drug_posologie:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),ql=(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||new Date;ge('ios'===m.Platform.OS),he(X(a).format('YYYY-MM-DD')),nn('accident_date',X(a).format('YYYY-MM-DD'))}),Hl=function(e,t){var a=t||new Date;it('ios'===m.Platform.OS),We(X(a).format('YYYY-MM-DD')),nn('pregnancy_start_at',X(a).format('YYYY-MM-DD'))},jl=function(e,t){var a=t||new Date;st('ios'===m.Platform.OS),$e(X(a).format('YYYY-MM-DD')),nn('pregnancy_end_at',X(a).format('YYYY-MM-DD'))};console.log("consultaiton",$t);var Ql,zl,Kl,Wl,Xl,Zl=(0,_.useFormik)({validationSchema:kl,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==_t?void 0:_t.code_membre,pregnancy_start_at:null,pregnancy_end_at:null,accident_date:null},onSubmit:function(e){i($t.id,{network_agent_id:De.network_agent_id,password:e.password,practitioner_lastname:e.practitioner_lastname,practitioner_firstname:e.practitioner_firstname,practitioner_provider_class_id:e.practitioner_provider_class_id,care_condition:e.care_condition,accident_date:e.accident_date,pregnancy_start_at:e.pregnancy_start_at,pregnancy_end_at:e.pregnancy_end_at,performances:$t.performances,prescriptions:$t.prescriptions,exams:$t.exams})}}),Jl=Zl.handleChange,$l=Zl.handleSubmit,en=Zl.handleBlur,tn=Zl.values,an=Zl.errors,ln=Zl.touched,nn=Zl.setFieldValue,on=Zl.setFieldTouched,rn=(Zl.isValid,function(){switch(console.log("currentStep",jt),jt){case 0:return console.log("values",tn),''!==tn.numero_assure&&null===$.result&&(Bl((0,T.fetchGetUserByNameOrNumberReset)()),l(De.id_network,Oe?"&insured_id="+tn.numero_assure:Ve?"&phone="+tn.numero_assure:"&name="+tn.numero_assure),console.log("errors",an)),!1;default:return!0}}),un=[{title:h.default.t('ASSURE'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10,width:(0,b.responsiveWidth)(90)},placeholder:Oe?h.default.t('NUMERO_ASSURE'):Ve?h.default.t('PHONE_NUMBER'):h.default.t('NOM_ASSURE'),value:tn.numero_assure,keyboardType:Ve?'numeric':'default',onChangeText:Jl('numero_assure'),onBlur:en('numero_assure'),success:ln.numero_assure&&!an.numero_assure,touched:ln.numero_assure,error:an.numero_assure,icon:f.default.createElement(N.default,{style:{zIndex:10},name:Oe?'lock':Ve?'phone':'user',size:20})}),f.default.createElement(m.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},f.default.createElement(A.default,{style:{paddingRight:10},name:"lock",size:20,color:C.Color.primaryColor,onPress:function(){ve(!0),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"phone",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!0)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"user",size:20,color:C.Color.primaryColor,onPress:function(){ve(!1),Be(!1)}}),f.default.createElement(A.default,{style:{paddingRight:10},name:"qrcode",size:20,color:C.Color.primaryColor,onPress:function(){fe(!0)}})))},{title:h.default.t('PATIENT'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_CLIENT'),value:tn.lastname_patient,onChangeText:Jl('lastname_patient'),onBlur:en('lastname_patient'),success:ln.lastname_patient&&!an.lastname_patient,touched:ln.lastname_patient,editable:!1,error:an.lastname_patient}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_CLIENT'),value:tn.firstname_patient,editable:!1,onChangeText:Jl('firstname_patient'),onBlur:en('firstname_patient'),success:ln.firstname_patient&&!an.firstname_patient,touched:ln.firstname_patient,error:an.firstname_patient}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('SITUATION')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(60)}},f.default.createElement(B.default,{options:gl,disabled:!0,value:Cl,initial:Cl,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){}}))))},{title:h.default.t('PRATICIEN'),content:f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('CODE_AGREMENT'),value:tn.agrement_praticien,editable:!1}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NOM_PRATICIEN'),value:tn.practitioner_lastname,onChangeText:Jl('practitioner_lastname'),onBlur:en('practitioner_lastname'),success:ln.practitioner_lastname&&!an.practitioner_lastname,touched:ln.practitioner_lastname,error:an.practitioner_lastname}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PRENOM_PRATICIEN'),value:tn.practitioner_firstname,onChangeText:Jl('practitioner_firstname'),onBlur:en('practitioner_firstname'),success:ln.practitioner_firstname&&!an.practitioner_firstname,touched:ln.practitioner_firstname,error:an.practitioner_firstname}),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CLASSIFICATION'),value:null!==sa?sa.practitioner_provider_class:'',data:null!==ae.result?null==(t=ae.result)?void 0:t.response:[],useNativeDriver:!0,onChangeText:function(e,t,a){on('practitioner_provider_class_id'),nn('practitioner_provider_class_id',e.id),console.log("Value",e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(M.View,{ref:function(e){},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CONDITION_PRISE_CHARGE'),value:null!==sa?sa.care_condition:'',data:Nl,useNativeDriver:!0,onChangeText:function(e,t,a){console.log("Value",e),pt(e),on('care_condition'),nn('care_condition',e)},valueExtractor:function(e){return e.value},labelExtractor:function(e){return e.label}})),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('ACCIDENT')),f.default.createElement(m.View,{style:{width:(0,b.responsiveWidth)(40)}},f.default.createElement(B.default,{options:Sl,initial:null!==sa&&null!==sa.accident_date?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){console.log(e),Te('YES'===e)}}))),be&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_ACCIDENT'),value:null!==Ce?Ce:'',onChangeText:Jl('date_accident'),onBlur:en('date_accident'),onFocus:function(){Keyboard.dismiss(),ge(!0)},success:ln.date_accident&&!an.date_accident,touched:ln.date_accident,error:an.date_accident}),f.default.createElement(m.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('GROSSESSE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Tl,initial:null!==sa&&null!==sa.pregnancy_start_at?0:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){lt('YES'===e)}}))),at&&f.default.createElement(f.default.Fragment,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_DEBUT_GROSSESSE'),value:null!==Ke?Ke:'',onChangeText:Jl('date_debut_grossesse'),onBlur:en('date_debut_grossesse'),onFocus:function(){Keyboard.dismiss(),it(!0)},success:ln.date_debut_grossesse&&!an.date_debut_grossesse,touched:ln.date_debut_grossesse,error:an.date_debut_grossesse}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE_FIN_GROSSESSE'),value:null!==Je?Je:'',onChangeText:Jl('date_fin_grossesse'),onBlur:en('date_fin_grossesse'),onFocus:function(){Keyboard.dismiss(),st(!0)},success:ln.date_fin_grossesse&&!an.date_fin_grossesse,touched:ln.date_fin_grossesse,error:an.date_fin_grossesse})),"MAX"===De.password_validation&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('PASSWORD'),value:tn.password,onChangeText:Jl('password'),onBlur:en('password'),success:ln.password&&!an.password,touched:ln.password,error:an.password,secureTextEntry:!0}),f.default.createElement(m.View,{style:{marginTop:25}},f.default.createElement(m.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ha(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('CONSULTATION')),f.default.createElement(j.default,{name:"medical-bag",size:20,color:C.Color.whiteColor})),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,flexDirection:"row",backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){ga(!0)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('ACTE_EXAMEN')),f.default.createElement(A.default,{name:"file-medical",size:20,color:C.Color.whiteColor})))),f.default.createElement(m.View,{style:{marginTop:25,flexDirection:"row",alignItems:'center',justifyContent:'center',width:"100%"}},f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{borderRadius:5,width:150,height:30,backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,flexDirection:"row"}],onPress:function(e){Ha(!0),vt(null)}},f.default.createElement(V.default,{whiteColor:!0},h.default.t('MEDICAMENT')),f.default.createElement(Q.default,{name:"drug-pack",size:20,color:C.Color.whiteColor}))))}];return f.default.createElement(w.ScreenComponent,null,f.default.createElement(I.default,{ref:function(e){return Ml=e}}),f.default.createElement(m.KeyboardAvoidingView,{behavior:'android'===m.Platform.OS?'height':'padding',style:{flex:1}},f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:ee.contain},f.default.createElement(O.default,{steps:un,currentStepIndex:jt+1}),f.default.createElement(m.View,{style:{flexDirection:'column',alignItems:'center'}},f.default.createElement(v.default,{ref:Mt,activeStep:0,steps:un,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(e){return Ut(e)},isLastStep:function(e){return Gt(e)},onNext:function(){rn()},onPrev:function(){0===jt&&Bl((0,T.fetchGetUserByNameOrNumberReset)())},currentStep:function(e){var t=e.currentStep,a=e.isLastStep,l=e.isFirstStep;Qt(t),Ut(l),Gt(a)}})),f.default.createElement(m.View,{style:ee.iconNavigation},Lt?f.default.createElement(m.View,null):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(){return Mt.current.prev()}},f.default.createElement(A.default,{name:"arrow-left",size:20,color:C.Color.whiteColor})),2===jt?f.default.createElement(S.default,{loading:re.loading,onPress:$l},h.default.t('SUBMIT_LABEL')):f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor}],onPress:function(e){rn()&&Mt.current.next()}},$.loading||te.loading||K.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(A.default,{name:"arrow-right",size:24,color:C.Color.whiteColor}))),ll&&f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ll,onSwipeComplete:function(){nl(!1)},swipeDirection:null,style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXCLUSION')),f.default.createElement(m.View,{style:{height:m.Dimensions.get('window').height-200,width:m.Dimensions.get('window').width}},f.default.createElement(z.default,{style:{flex:1},originWhitelist:['*'],source:{html:J.result.document}})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){return nl(!1)}},h.default.t('OK'))))),Ma&&(Xl=null!==Vt&&null===Vt.drugs?g.default.parseInt(Vt.amount):'',console.log("AMOUNT",Xl),f.default.createElement(_.Formik,{validationSchema:Fl,initialValues:{amount_prestation:''+Vt!==null&&null===Vt.drugs?Vt.amount:'',frais_deplacement:null!==Vt&&null===Vt.drugs?Vt.home_visit_fees:'',code_acte:null!==Vt&&null===Vt.drugs?Vt.act:'',insurance_amount:''+Vt!==null&&null===Vt.drugs?Vt.insurance_amount:'',moderator_ticket:''+Vt!==null&&null===Vt.drugs?Vt.moderator_ticket:''},onSubmit:function(e){console.log("values",e),ea(W({},$t,{performances:$t.performances.map(function(t){return Vt.id===t.id?W({},t,{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement,to_delete:!1}):t})})),x({insurance_id:wt.id,beneficiary_id:null!==It?It.id:null,care_condition:$t._care_condition,act_action:"UPDATE",act_type:"PERFORMANCE",act_id:Vt.id,tmp_sheet_id:ke,performances:[{amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}]})}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ma,onSwipeComplete:function(){Pa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:null!==Vt&&null===Vt.drugs?X(Vt.created_at).format('YYYY-MM-DD HH:mm'):''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),null!==e.amount&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:a.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})},editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:null!==Vt&&null===Vt.drugs?a.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:null!==Vt&&null===Vt.drugs?a.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{loading:H.loading,style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){d(),console.log("Error",l)}},h.default.t('SUBMIT_LABEL'))))))})),Ca&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ca,onSwipeComplete:function(){ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_PRESTATION')),f.default.createElement(m.FlatList,{data:$t.performances.filter(function(e){return!e.to_delete}),extraData:$t.performances.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:5},(0,F.cutString)(t.act.name,30)+"\n \n "+h.default.t('AMOUNT_LABEL')+": "+t.amount+" \n \n "+h.default.t('AMOUNT_PER_INSURANCE')+": "+t.insurance_amount+" \n \n "+h.default.t('TICKET_MONDERATEUR')+": "+t.moderator_ticket+" "+(null!==t.home_visit_fees?'| '+t.home_visit_fees:'')),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:null})),Pa(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{performances:$t.performances.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ha(!1)}},h.default.t('OK')))))),Ua&&f.default.createElement(_.Formik,{validationSchema:Ul,initialValues:{amount_prestation:'',frais_deplacement:'',code_acte:''},onSubmit:function(e){''===e.code_acte?Pl.shake(200):(ul([{act_id:e.code_acte.id,act:e.code_acte,amount:e.amount_prestation,home_visit_fees:e.frais_deplacement}].concat((0,d.default)(il))),Fa(!1),F.displayToast(h.default.t('PRESTATION_SUCCESSFULLY_MODIFY')))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.handleBlur,i=e.setFieldValue,u=e.setFieldTouched,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ua,onSwipeComplete:function(){Fa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFY_PRESTATION')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DATE'),value:''+X(Fe).format('YYYY-MM-DD HH:mm'),editable:!1}),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return'CONSULTATION'===e.type}):[],useNativeDriver:!0,onChangeText:function(e,t,a){u('code_acte'),i('code_acte',e),'FREE'!==e.billing_type&&(i('amount_prestation',e.amount),c({network_id:De.id_network,amount:''+e.amount,care_condition:$t._care_condition}))},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),editable:''===a.code_acte||'FREE'===a.code_acte.billing_type,value:a.amount_prestation,onChangeText:o('amount_prestation'),onBlur:r('amount_prestation'),success:n.amount_prestation&&!l.amount_prestation,touched:n.amount_prestation,error:l.amount_prestation,onChangeText:function(e){i('amount_prestation',e),c({network_id:De.id_network,amount:''+e,care_condition:$t._care_condition})}}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('TICKET_MONDERATEUR'),editable:!1,value:null!==oe.result?oe.result.response.moderator_ticket:''}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_PER_INSURANCE'),editable:!1,value:null!==oe.result?oe.result.response.insurance_amount:''}),f.default.createElement(m.View,{style:{marginTop:10,width:"100%",flexDirection:'row',justifyContent:"space-between"}},f.default.createElement(V.default,{body2:!0},h.default.t('VISITE_DOMICILE')),f.default.createElement(m.View,{style:ee.contentSwitch},f.default.createElement(B.default,{options:Dl,initial:1,buttonColor:C.Color.accentColor,backgroundColor:C.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(e){vl('YES'===e)}}))),Ol&&f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('FRAIS_DEPLACEMENT'),value:a.frais_deplacement,onChangeText:o('frais_deplacement'),onBlur:r('frais_deplacement'),success:n.frais_deplacement&&!l.frais_deplacement,touched:n.frais_deplacement,error:l.frais_deplacement}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:d},h.default.t('SUBMIT_LABEL'))))))}),qa&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:'',drug_posologie:'',drug_quantity:''},onSubmit:function(e){pl([{drug_or_device_id:Ot.id,dosage:e.drug_posologie,quantity:e.drug_quantity}].concat((0,d.default)(ml))),Ha(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_ADD'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,i=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:qa,onSwipeComplete:function(){Ha(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AJOUTER_MEDICAMENT')),f.default.createElement(m.View,{style:{flexDirection:'row'}},f.default.createElement(R.default,{style:{marginTop:10,width:"90%"},placeholder:h.default.t('NAME'),value:null!==Ot?Ot.name:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(m.TouchableOpacity,{style:[ee.iconNavigationButton,{backgroundColor:C.Color.primaryColor,borderColor:C.Color.primaryColor,marginTop:10,width:40,height:40}],onPress:function(e){r(De.id_network,t.drug_name)}},le.loading?f.default.createElement(m.ActivityIndicator,{size:"small",color:"#fff"}):f.default.createElement(N.default,{name:"search",size:24,color:C.Color.whiteColor}))),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:i},h.default.t('SUBMIT_LABEL'))))))}),za&&f.default.createElement(_.Formik,{validationSchema:Gl,initialValues:{drug_name:null!==Vt&&Vt.drugs?Vt.drug_or_device.name:'',drug_posologie:null!==Vt&&Vt.drugs?Vt.dosage:'',drug_quantity:null!==Vt&&Vt.drugs?Vt.quantity:''},onSubmit:function(e){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?{id:t.id,drug_or_device_id:Vt.drug_or_device.id,drug_or_device:Vt.drug_or_device,dosage:e.drug_posologie,quantity:e.drug_quantity,unit_price:t.unit_price,to_delete:!1}:t})})),Ka(!1),F.displayToast(h.default.t('PRESCRIPTIONS_SUCCESSFULLY_MODIFY'))}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=e.handleBlur,r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:za,onSwipeComplete:function(){Ka(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_MEDICAMENT')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('NAME'),value:t.drug_name,onChangeText:n('drug_name'),onBlur:o('drug_name'),success:l.drug_name&&!a.drug_name,touched:l.drug_name,error:a.drug_name,editable:null===Ot}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('POSOLOGIE'),value:t.drug_posologie,onChangeText:n('drug_posologie'),onBlur:o('drug_posologie'),success:l.drug_posologie&&!a.drug_posologie,touched:l.drug_posologie,error:a.drug_posologie}),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('QUANTITE'),value:''+t.drug_quantity,onChangeText:n('drug_quantity'),onBlur:o('drug_quantity'),success:l.drug_quantity&&!a.drug_quantity,touched:l.drug_quantity,error:a.drug_quantity,keyboardType:"numeric"}),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:r},h.default.t('SUBMIT_LABEL'))))))}),Za&&f.default.createElement(_.Formik,{validationSchema:Yl,initialValues:{examen_name:null!==Vt?Vt.drugs?'':Vt.description:'',examen_quantite:''+Vt!==null?Vt.drugs?'':Vt.quantity:'',code_acte:''+Vt!==null?Vt.drugs?'':Vt.act:'',amount:null!==Vt?Vt.drugs?null:Vt.act.amount:null},onSubmit:function(e){ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{id:t.id,amount:e.amount,act_id:e.code_acte.id,act:e.code_acte,description:e.examen_name,quantity:null,unit_price:t.unit_price,to_delete:!1}):t})})),Ja(!1),F.displayToast(h.default.t('EXAMENS_SUCCESSFULLY_MODIFY'))}},function(e){var t,a=e.values,l=e.errors,n=e.touched,o=e.handleChange,r=e.setFieldValue,i=e.setFieldTouched,u=e.handleBlur,d=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},console.log("Errors",l),f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Za,onSwipeComplete:function(){Ja(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MODIFIER_EXAMEN')),f.default.createElement(M.View,{ref:function(e){Pl=e},style:{width:(0,b.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},f.default.createElement(P.Dropdown,{label:h.default.t('CODE_ACTE'),data:null!==ne.result?null==(t=ne.result)?void 0:t.response.filter(function(e){return"EXAM_OR_OTHER"===e.type}):[],useNativeDriver:!0,value:"number"!=typeof a.code_acte&&a.code_acte.name,onChangeText:function(e,t,a){console.log("Value",e),i('code_acte'),r('code_acte',e)},valueExtractor:function(e){return e},labelExtractor:function(e){return e.name}})),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('DESCRIPTION'),value:a.examen_name,onChangeText:o('examen_name'),onBlur:u('examen_name'),success:n.examen_name&&!l.examen_name,touched:n.examen_name,error:l.examen_name}),f.default.createElement(m.View,null,f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT'),value:''!==a.code_acte?'FREE'===a.code_acte.billing_type?h.default.t('AMOUNT_FREE'):a.code_acte.unit_value+" = "+a.code_acte.amount:'',editable:!1,onChangeText:o('amount'),onBlur:u('amount'),success:n.amount&&!l.amount,touched:n.amount,error:l.amount,keyboardType:"numeric"})),f.default.createElement(S.default,{style:{marginTop:20,marginBottom:20},full:!0,loading:ie.loading,onPress:function(){console.log("errors",l),console.log("values",a),d()}},h.default.t('SUBMIT_LABEL'))))))}),He&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date(Fe),mode:"date",display:"spinner",onChange:(y.object().shape({code:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),name:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED')),type:y.string().required(h.default.t('THIS_FIELD_IS_REQUIRED'))}),function(e,t){var a=t||''+X(new Date).format('YYYY-MM-DD');je('ios'===m.Platform.OS),Ye(a)})}),Ee&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:ql}),rt&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:Hl}),ct&&f.default.createElement(q.default,{timeZoneOffsetInMinutes:0,is24Hour:!0,value:new Date,mode:"date",display:"spinner",onChange:jl}),Ea&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ea,onSwipeComplete:function(){ga(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('EXAMEN')),f.default.createElement(m.FlatList,{data:$t.exams.filter(function(e){return!e.to_delete}),extraData:$t.exams.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.description+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+(0,F.cutStringWithoutDot)(t.act.name,50)),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!1})),Ja(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{exams:$t.exams.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ga(!1)}},h.default.t('OK')))))),se&&f.default.createElement(E.default.Container,{contentStyle:{width:(0,b.responsiveWidth)(80)},useNativeDriver:!0,visible:se},f.default.createElement(E.default.Title,null,h.default.t('SCAN')),f.default.createElement(m.ScrollView,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor,maxHeight:300}]},f.default.createElement(V.default,null,h.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),f.default.createElement(L.default,{onRead:function(e){fe(!1),a(e.data),console.log("result",e.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CLOSE'),onPress:function(){fe(!1)}})),Ra&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Ra,onSwipeComplete:function(){xa(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_ASSURE')),f.default.createElement(m.FlatList,{data:null==(Kl=$.result)?void 0:Kl.response,extraData:null==(Wl=$.result)?void 0:Wl.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:{paddingVertical:15,alignItems:'flex-start'}},f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%",flexDirection:'column'}],key:t.id,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):'PAID'!==t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_NON_EN_REGLE'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(null),hl(1),xa(!1),nn('lastname_patient',t.user.lastname),nn('firstname_patient',t.user.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&network_agent_id="+De.network_agent_id))}},f.default.createElement(V.default,{body2:!0,semibold:!0},(null!==t.user.firstname?t.user.firstname:'')+" "+(null!==t.user.lastname?t.user.lastname:'')),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)),t.beneficiaries.map(function(e){return f.default.createElement(m.TouchableOpacity,{style:ee.beneficiarySubSection,onPress:function(){'SUSPENDED'===t.state?m.Alert.alert(h.default.t('ERROR_LABEL'),h.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:h.default.t('OK'),onPress:function(){}}]):(St(t),Dt(e),hl(0),xa(!1),nn('lastname_patient',e.lastname),nn('firstname_patient',e.firstname),o(t.user.id,'UNTREATED','CONSULTATION',"&beneficiary_id="+e.id))}},f.default.createElement(m.View,{style:{width:10}}),f.default.createElement(m.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},f.default.createElement(V.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==e.firstname?e.firstname:'')+" "+(null!==e.lastname?e.lastname:'')+" ("+h.default.t('AYANT_DROITS')+")"),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+e.insurance_consumed_amount),f.default.createElement(V.default,{footnote:!0},h.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+e.insurance_remaining_amount)))}))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return xa(!1)}},h.default.t('OK')))))),Aa&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Aa,onSwipeComplete:function(){Na(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('MEDICAMENTS')),f.default.createElement(m.FlatList,{data:$t.prescriptions.filter(function(e){return!e.to_delete}),extraData:$t.prescriptions.filter(function(e){return!e.to_delete}),keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.View,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id},f.default.createElement(V.default,{body2:!0,semibold:!0,numberOfLines:2},t.quantity+" "+t.drug_or_device.name+" "+(t.unit_price?' - '+t.unit_price:'')+" \n "+t.dosage),f.default.createElement(m.View,{style:ee.iconRight},f.default.createElement(m.TouchableOpacity,{onPress:function(){Bt(W({},t,{drugs:!0})),Ka(!0)}},f.default.createElement(A.default,{name:"edit",size:24,color:C.Color.primaryColor})),f.default.createElement(m.TouchableOpacity,{onPress:function(){ea(W({},$t,{prescriptions:$t.prescriptions.map(function(e){return t.id===e.id?W({},e,{to_delete:!0}):e})}))}},f.default.createElement(A.default,{name:"minus-circle",size:24,color:C.Color.grayColor}))))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Na(!1)}},h.default.t('OK')))))),Wt&&f.default.createElement(m.ScrollView,{style:{flex:1}},f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:Wt,onSwipeComplete:function(){Xt(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('LIST_CONSULTATION')),f.default.createElement(m.FlatList,{data:null==(Ql=K.result)?void 0:Ql.response,ListEmptyComponent:f.default.createElement(V.default,{body2:!0},h.default.t('NO_CONSULTATION')),extraData:null==(zl=K.result)?void 0:zl.response,keyExtractor:function(e,t){return t},renderItem:function(e){var t=e.item;return e.index,f.default.createElement(m.TouchableOpacity,{style:[ee.contentActionModalBottom,{borderBottomColor:C.Color.borderColor,width:"100%"}],key:t.id,onPress:function(){fa(t),ua(!0)}},f.default.createElement(V.default,{body2:!0,semibold:!0},t.type+" #"+t.health_care_sheet_id+" - "+X(t.created_at).format('YYYY-MM-DD')))}}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Xt(!1)}},h.default.t('OK')))))),ia&&f.default.createElement(E.default.Container,{useNativeDriver:!0,visible:ia},f.default.createElement(E.default.Title,null,h.default.t('DETAIL')),f.default.createElement(m.ScrollView,{persistentScrollbar:!0},f.default.createElement(m.View,{style:[ee.blockView,{borderBottomColor:C.Color.borderColor}]},f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PATIENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(null!==sa.patient_lastname?sa.patient_lastname:'')+" "+(null!==sa.patient_firstname?sa.patient_firstname:'')))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Situation")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.patient_situation.toLowerCase()))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRATICIEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},sa.practitioner_lastname+" "+sa.practitioner_firstname))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CLASSE_PRESTATAIRE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.practitioner_provider_class.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('STATE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.state.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Type")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.type.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('CONDITION_PRISE_CHARGE'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.care_condition.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('INSTITUTE_NAME'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},(0,F.uppercaseFirstLetter)(sa.institution_name.toLowerCase())))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},"Date")),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},X(sa.created_at).format('YYYY-MM-DD')))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('PRESTATION'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.performances.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.act.name+" \n "+e.amount+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('EXAMEN'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.exams.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.description+" \n "+e.act.name+" \n")}))),f.default.createElement(m.View,{style:{flexDirection:'row',marginTop:10}},f.default.createElement(m.View,{style:{flex:1}},f.default.createElement(V.default,{style:[ee.body2]},h.default.t('MEDICAMENT'))),f.default.createElement(m.View,{style:{flex:1,alignItems:'flex-end'}},sa.prescriptions.map(function(e){return f.default.createElement(V.default,{style:[G.Typography.caption1,C.Color.grayColor]},e.drug_or_device.name+" \n "+e.dosage+" \n")}))))),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('CANCEL_LABEL'),onPress:function(){ua(!1)}}),f.default.createElement(E.default.Button,{bold:!0,label:h.default.t('OK'),onPress:function(){ua(!1),xa(!1),Xt(!1),ea(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),na(W({},sa,{exams:sa.exams.map(function(e){return W({},e,{to_delete:!1})}),performances:sa.performances.map(function(e){return W({},e,{to_delete:!1})}),prescriptions:sa.prescriptions.map(function(e){return W({},e,{to_delete:!1})})})),pt(sa.care_condition),nn('practitioner_firstname',sa.practitioner_firstname),nn('practitioner_lastname',sa.practitioner_lastname),nn('pregnancy_start_at',sa.pregnancy_start_at),nn('accident_date',sa.accident_date),Te(null!==sa.accident_date),lt(null!==sa.pregnancy_start_at),Mt.current.next()}})),ba&&f.default.createElement(_.Formik,{validationSchema:Ll,initialValues:{price:''},onSubmit:function(e){console.log("Value",Vt),Vt.examen?ea(W({},$t,{exams:$t.exams.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})):ea(W({},$t,{prescriptions:$t.prescriptions.map(function(t){return Vt.id===t.id?W({},t,{unit_price:e.price}):t})})),Ta(!1)}},function(e){var t=e.values,a=e.errors,l=e.touched,n=e.handleChange,o=(e.setFieldValue,e.setFieldTouched,e.handleBlur),r=e.handleSubmit;return e.isSubmitting,f.default.createElement(m.ScrollView,{style:{flex:1}},console.log("Errors",a),f.default.createElement(m.View,{style:[ee.containModal,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(k.default,{isVisible:ba,onSwipeComplete:function(){Ta(!1)},swipeDirection:['down'],style:ee.bottomModal},f.default.createElement(m.View,{style:[ee.contentFilterBottom,{backgroundColor:C.Color.containerBackgroundColor}]},f.default.createElement(m.View,{style:ee.contentSwipeDown},f.default.createElement(m.View,{style:ee.lineSwipeDown})),f.default.createElement(V.default,{body2:!0,style:{marginTop:10}},h.default.t('AMOUNT_LABEL')),f.default.createElement(R.default,{style:{marginTop:10},placeholder:h.default.t('AMOUNT_LABEL_DESCRIPTION'),value:t.price,onChangeText:n('price'),onBlur:o('price'),success:l.price&&!a.price,touched:l.price,error:a.price,keyboardType:"numeric"}),f.default.createElement(S.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:r},h.default.t('OK'))))))})))),null!==J.result&&f.default.createElement(m.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:C.Color.primaryColor,borderRadius:100},onPress:function(){nl(!0)}},f.default.createElement(V.default,{whiteColor:!0,caption2:!0},h.default.t('EXCLUSION'))))});o.default=ae},1744,[4,1,35,7,27,15,18,1049,1424,941,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1077,1569,1733,882,1035,841,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(r(d[2])),o=n(r(d[3])),u=t(r(d[4])),c=r(d[5]),s=r(d[6]),f=n(r(d[7])),p=r(d[8]),y=t(r(d[9])),E=r(d[10]),_=n(r(d[11])),C=r(d[12]),h=n(r(d[13])),w=r(d[14]),b=r(d[15]),S=n(r(d[16])),T=r(d[17]),x=n(r(d[18])),I=r(d[19]),R=r(d[20]),A=n(r(d[21])),O=n(r(d[22])),N=n(r(d[23])),v=n(r(d[24])),P=n(r(d[25])),V=n(r(d[26])),D=t(r(d[27])),B=r(d[28]),k=n(r(d[29])),U=n(r(d[30])),M=r(d[31]),L=t(r(d[32])),q=r(d[33]),F=n(r(d[34])),G=r(d[35]);function j(t,n){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),l.push.apply(l,o)}return l}function z(t){for(var n=1;n0?Rt(!0):Yt.alertWithType('warn',_.default.t('EMPTY_LIST'),_.default.t('NO_ASSURE_MATCH_SEARCH'))),Z.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(Z),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Z]),(0,u.useEffect)(function(){null!==J.result&&$e(!0),J.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(J),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchGetConsultationReset)())}}],{cancelable:!1})},[J]),(0,u.useEffect)(function(){null!==W.result&&c.Alert.alert(_.default.t("SUCCESS"),W.result.response,[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)()),ae.goBack()}}],{cancelable:!1}),W.error&&c.Alert.alert(_.default.t("ERROR_LABLE"),L.getErrorMsg(W),[{text:_.default.t("OK"),onPress:function(){Qt((0,b.fetchModifyPrescriptionReset)())}}],{cancelable:!1})},[W]),(0,u.useEffect)(function(){St(!1),null!==K.result&&null!==K.result.response&&Qt((0,b.fetchCheckInsuranceCoverageAmountReset)()),K.error&&c.Alert.alert(_.default.t("INFORMATION_MESSAGE"),L.getErrorMsg(K),[{text:_.default.t("OK"),onPress:function(){Ve.examen?nt(z({},at,{exams:at.exams.map(function(t){return Ve.id===t.id?z({},t,{unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})):nt(z({},at,{prestations:at.prestations.map(function(t){return Ve.id===t.id?z({},t,{quantity:ot.exams.filter(function(t){return t.id===Ve.id})[0].quantity,unit_price:ot.exams.filter(function(t){return t.id===Ve.id})[0].unit_price}):t})})),Qt((0,b.fetchCheckInsuranceCoverageAmountReset)())}}],{cancelable:!1})},[K]);var Ht=y.object().shape({numero_assure:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),password:"MAX"===ue.password_validation?y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')):y.string(),practitioner_lastname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED')),practitioner_firstname:y.string().required(_.default.t('THIS_FIELD_IS_REQUIRED'))}),Kt=y.object().shape({price:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),examen_quantite:y.number(),unit_quantity_condition:y.boolean(),unit_quantity:y.number().when('unit_quantity_condition',{is:!0,then:y.number().required(_.default.t('THIS_FIELD_IS_REQUIRED')),otherwise:y.number()})});console.log("consultaiton",at);var Xt,Wt,Jt,Zt,$t=(0,p.useFormik)({validationSchema:Ht,initialValues:{numero_assure:'',password:'',firstname_patient:'',lastname_patient:'',practitioner_firstname:'',practitioner_lastname:'',agrement_praticien:null==Ce?void 0:Ce.code_membre,pregnancy_start_at:null,pregnancy_end_at:null},onSubmit:function(t){Y(at.id,{network_agent_id:ue.network_agent_id,password:t.password,practitioner_lastname:t.practitioner_lastname,practitioner_firstname:t.practitioner_firstname,practitioner_provider_class_id:t.practitioner_provider_class_id,performances:at.performances,prescriptions:at.prescriptions})}}),ea=$t.handleChange,ta=$t.handleSubmit,aa=$t.handleBlur,na=$t.values,la=$t.errors,ra=$t.touched,oa=$t.setFieldValue,ia=$t.setFieldTouched,ua=($t.isValid,function(){switch(console.log("currentStep",Ke),Ke){case 0:return console.log("values",na),''!==na.numero_assure&&null===Z.result&&(Qt((0,b.fetchGetUserByNameOrNumberReset)()),I(ue.id_network,se?"&insured_id="+na.numero_assure:ye?"&phone="+na.numero_assure:"&name="+na.numero_assure),console.log("errors",la)),!1;default:return!0}}),ca=[{title:_.default.t('ASSURE'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10,width:(0,w.responsiveWidth)(90)},placeholder:se?_.default.t('NUMERO_ASSURE'):ye?_.default.t('PHONE_NUMBER'):_.default.t('NOM_ASSURE'),value:na.numero_assure,keyboardType:ye?'numeric':'default',onChangeText:ea('numero_assure'),onBlur:aa('numero_assure'),success:ra.numero_assure&&!la.numero_assure,touched:ra.numero_assure,error:la.numero_assure,icon:u.default.createElement(v.default,{style:{zIndex:10},name:se?'lock':ye?'phone':'user',size:20})}),u.default.createElement(c.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(N.default,{style:{paddingRight:10},name:"lock",size:20,color:E.Color.primaryColor,onPress:function(){fe(!0),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"phone",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!0)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"user",size:20,color:E.Color.primaryColor,onPress:function(){fe(!1),Ee(!1)}}),u.default.createElement(N.default,{style:{paddingRight:10},name:"qrcode",size:20,color:E.Color.primaryColor,onPress:function(){oe(!0)}})))},{title:_.default.t('PATIENT'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_CLIENT'),value:na.lastname_patient,onChangeText:ea('lastname_patient'),onBlur:aa('lastname_patient'),success:ra.lastname_patient&&!la.lastname_patient,touched:ra.lastname_patient,editable:!1,error:la.lastname_patient}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_CLIENT'),value:na.firstname_patient,editable:!1,onChangeText:ea('firstname_patient'),onBlur:aa('firstname_patient'),success:ra.firstname_patient&&!la.firstname_patient,touched:ra.firstname_patient,error:la.firstname_patient}),u.default.createElement(c.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(P.default,{body2:!0},_.default.t('SITUATION')),u.default.createElement(c.View,{style:{width:(0,w.responsiveWidth)(60)}},u.default.createElement(V.default,{options:Lt,disabled:!0,value:Gt,initial:Gt,buttonColor:E.Color.accentColor,backgroundColor:E.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:_.default.t('PRATICIEN'),content:u.default.createElement(c.View,null,u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('CODE_AGREMENT'),value:na.agrement_praticien,editable:!1}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('NOM_PRATICIEN'),value:na.practitioner_lastname,onChangeText:ea('practitioner_lastname'),onBlur:aa('practitioner_lastname'),success:ra.practitioner_lastname&&!la.practitioner_lastname,touched:ra.practitioner_lastname,error:la.practitioner_lastname}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PRENOM_PRATICIEN'),value:na.practitioner_firstname,onChangeText:ea('practitioner_firstname'),onBlur:aa('practitioner_firstname'),success:ra.practitioner_firstname&&!la.practitioner_firstname,touched:ra.practitioner_firstname,error:la.practitioner_firstname}),u.default.createElement(D.View,{ref:function(t){},style:{width:(0,w.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(B.Dropdown,{label:_.default.t('CLASSIFICATION'),value:null!==pt?pt.practitioner_provider_class:'',data:null!==ee.result?null==(n=ee.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){ia('practitioner_provider_class_id'),oa('practitioner_provider_class_id',t.id),console.log("Value",t)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===ue.password_validation&&u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('PASSWORD'),value:na.password,onChangeText:ea('password'),onBlur:aa('password'),success:ra.password&&!la.password,touched:ra.password,error:la.password,secureTextEntry:!0}),u.default.createElement(c.View,{style:{marginTop:25}},u.default.createElement(c.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}},null!==at?!at.prescriptions.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:100,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.prescriptions.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les m\xe9dicaments"):Ct(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('EXAMEN')),u.default.createElement(N.default,{name:"file-medical",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null,null!==at?!at.exams.length>0?u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{borderRadius:5,width:110,height:30,flexDirection:"row",backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){at.exams.filter(function(t){return t.checked}).length>0?(0,L.displayToast)("Vous avez deja renseigner les examens"):vt(!0)}},u.default.createElement(P.default,{whiteColor:!0},_.default.t('MEDICAMENT')),u.default.createElement(F.default,{name:"drug-pack",size:20,color:E.Color.whiteColor})):u.default.createElement(c.View,null):null)))}];return u.default.createElement(C.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return Yt=t}}),u.default.createElement(c.KeyboardAvoidingView,{behavior:'android'===c.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:X.contain},u.default.createElement(A.default,{steps:ca,currentStepIndex:Ke+1}),u.default.createElement(c.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(O.default,{ref:Me,activeStep:0,steps:ca,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Ge(t)},isLastStep:function(t){return Qe(t)},onNext:function(){ua()},onPrev:function(){0===Ke&&Qt((0,b.fetchGetUserByNameOrNumberReset)())},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;Xe(n),Ge(o),Qe(l)}})),u.default.createElement(c.View,{style:X.iconNavigation},Fe?u.default.createElement(c.View,null):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(){return Me.current.prev()}},u.default.createElement(N.default,{name:"arrow-left",size:20,color:E.Color.whiteColor})),2===Ke?u.default.createElement(h.default,{loading:W.loading,onPress:ta},_.default.t('SUBMIT_LABEL')):u.default.createElement(c.TouchableOpacity,{style:[X.iconNavigationButton,{backgroundColor:E.Color.primaryColor,borderColor:E.Color.primaryColor}],onPress:function(t){ta(t),ua()&&Me.current.next()}},Z.loading||$.loading||J.loading?u.default.createElement(c.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(N.default,{name:"arrow-right",size:24,color:E.Color.whiteColor}))),_t&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:_t,onSwipeComplete:function(){Ct(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXAMEN')),u.default.createElement(c.FlatList,{data:at.exams,extraData:at.exams,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{examen:!0})),nt(z({},at,{exams:at.exams.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.description+" "+(n.unit_price?' - '+n.unit_price+(null!==n.unit_quantity?' X '+n.unit_quantity:''):'')+" \n "+n.act.name),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Ct(!1)}},_.default.t('OK')))))),re&&u.default.createElement(f.default.Container,{contentStyle:{width:(0,w.responsiveWidth)(80)},useNativeDriver:!0,visible:re},u.default.createElement(f.default.Title,null,_.default.t('SCAN')),u.default.createElement(c.ScrollView,{style:[X.blockView,{borderBottomColor:E.Color.borderColor,maxHeight:300}]},u.default.createElement(P.default,null,_.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(U.default,{onRead:function(t){oe(!1),l(t.data),console.log("result",t.data)},flashMode:M.RNCamera.Constants.FlashMode.off})),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CLOSE'),onPress:function(){oe(!1)}})),It&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:It,onSwipeComplete:function(){Rt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_ASSURE')),u.default.createElement(c.FlatList,{data:null==(Jt=Z.result)?void 0:Jt.response,extraData:null==(Zt=Z.result)?void 0:Zt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_ASSURE_MATCH_SEARCH')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_NON_EN_REGLE'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(null),jt(1),Rt(!1),oa('lastname_patient',n.user.lastname),oa('firstname_patient',n.user.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(P.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(c.TouchableOpacity,{style:X.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:_.default.t('OK'),onPress:function(){}}]):(Te(n),Ae(t),jt(0),Rt(!1),oa('lastname_patient',t.lastname),oa('firstname_patient',t.firstname),j(n.user.id,'UNTREATED','EXECUTION',"&beneficiary_id="+t.id+"&network_agent_id="+ue.network_agent_id))}},u.default.createElement(c.View,{style:{width:10}}),u.default.createElement(c.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(P.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+_.default.t('AYANT_DROITS')+")"),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(P.default,{footnote:!0},_.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return Rt(!1)}},_.default.t('OK')))))),Nt&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Nt,onSwipeComplete:function(){vt(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MEDICAMENTS')),u.default.createElement(c.FlatList,{data:at.prescriptions,extraData:at.prescriptions,keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){De(z({},n,{drugs:!0})),nt(z({},at,{prescriptions:at.prescriptions.map(function(t){return n.id===t.id?z({},t,{checked:!n.checked}):t})})),n.checked||St(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0,numberOfLines:2},n.quantity+" "+n.drug_or_device.name+" "+(n.unit_price?' - '+n.unit_price:'')+" \n "+n.dosage),n.checked&&u.default.createElement(N.default,{name:"check",size:14,color:E.Color.primaryColor}))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return vt(!1)}},_.default.t('OK')))))),Ze&&u.default.createElement(c.ScrollView,{style:{flex:1}},u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:Ze,onSwipeComplete:function(){$e(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('LIST_EXECUTION')),u.default.createElement(c.FlatList,{data:null==(Xt=J.result)?void 0:Xt.response,extraData:null==(Wt=J.result)?void 0:Wt.response,ListEmptyComponent:u.default.createElement(P.default,{body2:!0},_.default.t('NO_EXECUTION')),keyExtractor:function(t,n){return n},renderItem:function(t){var n=t.item;return t.index,u.default.createElement(c.TouchableOpacity,{style:[X.contentActionModalBottom,{borderBottomColor:E.Color.borderColor,width:"100%"}],key:n.id,onPress:function(){yt(n),st(!0)}},u.default.createElement(P.default,{body2:!0,semibold:!0},n.type+" #"+n.health_care_sheet_id+" - "+Q(n.created_at).format('YYYY-MM-DD')))}}),u.default.createElement(h.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return $e(!1)}},_.default.t('OK')))))),dt&&u.default.createElement(f.default.Container,{useNativeDriver:!0,visible:dt},u.default.createElement(f.default.Title,null,_.default.t('DETAIL')),u.default.createElement(c.ScrollView,{persistentScrollbar:!0},u.default.createElement(c.View,{style:[X.blockView,{borderBottomColor:E.Color.borderColor}]},u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PATIENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(null!==pt.patient_lastname?pt.patient_lastname:'')+" "+(null!==pt.patient_firstname?pt.patient_firstname:'')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Situation")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.patient_situation.toLowerCase()))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRATICIEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},pt.practitioner_lastname+" "+pt.practitioner_firstname))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CLASSE_PRESTATAIRE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.practitioner_provider_class.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('STATE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.state.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Type")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.type.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('CONDITION_PRISE_CHARGE'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.care_condition.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('INSTITUTE_NAME'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},(0,L.uppercaseFirstLetter)(pt.institution_name.toLowerCase())))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},"Date")),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},Q(pt.created_at).format('YYYY-MM-DD')))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('PRESTATION'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.performances.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.act.name+" \n "+t.amount+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('EXAMEN'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.exams.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.description+" \n "+t.act.name+" \n")}))),u.default.createElement(c.View,{style:{flexDirection:'row',marginTop:10}},u.default.createElement(c.View,{style:{flex:1}},u.default.createElement(P.default,{style:[X.body2]},_.default.t('MEDICAMENT'))),u.default.createElement(c.View,{style:{flex:1,alignItems:'flex-end'}},pt.prescriptions.map(function(t){return u.default.createElement(P.default,{style:[G.Typography.caption1,E.Color.grayColor]},t.drug_or_device.name+" \n "+t.dosage+" \n")}))))),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('CANCEL_LABEL'),onPress:function(){st(!1)}}),u.default.createElement(f.default.Button,{bold:!0,label:_.default.t('OK'),onPress:function(){st(!1),Rt(!1),$e(!1),nt(pt),it(pt),oa('practitioner_firstname',pt.practitioner_firstname),oa('practitioner_lastname',pt.practitioner_lastname),Me.current.next()}})),bt&&u.default.createElement(p.Formik,{validationSchema:Kt,initialValues:{examen_quantity:null!==Ve&&Ve.drugs?parseInt(Ve.quantity)-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0):'',price:Ve.unit_price,unit_quantity:null!==Ve.unit_quantity?Ve.unit_quantity:'',unit_quantity_condition:null!==Ve&&!!Ve.hasOwnProperty('act')&&"UNIT_PRICE"===Ve.act.billing_type,code_acte:''+Ve!==null?Ve.drugs?'':Ve.act:''},onSubmit:function(t){if(console.log("Value",Ve),Ve.examen)nt(z({},at,{exams:at.exams.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity,unit_quantity:''===t.unit_quantity?null:t.unit_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:at.exams.filter(function(t){return Ve.id===t.id})[0].act_id,act_action:"UPDATE",act_type:"EXAM",exams:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue});else{var n=pt.prescriptions.filter(function(t){return t.id=Ve.id})[0].quantity;parseInt(t.examen_quantity)>parseInt(n-parseInt(null!==Ve.billed_quantity?Ve.billed_quantity:0))?c.Alert.alert(_.default.t('ERROR_LABEL'),_.default.t('QUANTITY_CANNOT_BE_SUPERIOR')+" "+n,[{text:_.default.t('OK'),onPress:function(){}}]):(nt(z({},at,{prescriptions:at.prescriptions.map(function(n){return Ve.id===n.id?z({},n,{unit_price:t.price,quantity:t.examen_quantity}):n})})),H({insurance_id:Se.id,beneficiary_id:null!==Re?Re.id:null,care_condition:at._care_condition,act_id:Ve.id,act_action:"UPDATE",act_type:"PRESCRIPTION",prescriptions:[{unit_price:t.price,quantity:t.examen_quantity}],tmp_sheet_id:Ue}))}}},function(t){var n=t.values,l=t.errors,o=t.touched,s=t.handleChange,f=(t.setFieldValue,t.setFieldTouched,t.handleBlur),p=t.handleSubmit;return t.isSubmitting,u.default.createElement(c.ScrollView,{style:{flex:1}},console.log("Errors",l),u.default.createElement(c.View,{style:[X.containModal,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(k.default,{isVisible:bt,onSwipeComplete:function(){St(!1)},swipeDirection:['down'],style:X.bottomModal},u.default.createElement(c.View,{style:[X.contentFilterBottom,{backgroundColor:E.Color.containerBackgroundColor}]},u.default.createElement(c.View,{style:X.contentSwipeDown},u.default.createElement(c.View,{style:X.lineSwipeDown})),Ve.examen?u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('MODIFY_EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),"UNIT_PRICE"===Ve.act.billing_type?u.default.createElement(c.View,{style:{flexDirection:'row'}},u.default.createElement(P.default,{style:{marginTop:20,width:40,height:40}},Ve.act.unit_value+" = "),u.default.createElement(c.View,{style:{flexDirection:'row',width:'90%',justifyContent:'space-between'}},u.default.createElement(x.default,{style:{marginTop:10,width:180},editable:"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"}),u.default.createElement(P.default,{style:{marginTop:20,marginLeft:5,width:40,height:40}}," X "),u.default.createElement(x.default,{style:{marginTop:10,width:180},placeholder:_.default.t('UNIT_QUANTITE'),value:''+n.unit_quantity,onChangeText:s('unit_quantity'),onBlur:f('unit_quantity'),success:o.unit_quantity&&!l.unit_quantity,touched:o.unit_quantity,error:l.unit_quantity,keyboardType:"numeric"}))):u.default.createElement(x.default,{style:{marginTop:10},editable:!Ve.hasOwnProperty('act')||"FREE"===Ve.act.billing_type,placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})):u.default.createElement(u.default.Fragment,null,u.default.createElement(P.default,{body2:!0,style:{marginTop:10}},_.default.t('EXECUTION')),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('QUANTITE'),value:''+n.examen_quantity,onChangeText:s('examen_quantity'),onBlur:f('examen_quantity'),success:o.examen_quantity&&!l.examen_quantity,touched:o.examen_quantity,error:l.examen_quantity,keyboardType:"numeric"}),u.default.createElement(x.default,{style:{marginTop:10},placeholder:_.default.t('AMOUNT_LABEL_DESCRIPTION'),value:n.price,onChangeText:s('price'),onBlur:f('price'),success:o.price&&!l.price,touched:o.price,error:l.price,keyboardType:"numeric"})),u.default.createElement(h.default,{loading:K.loading,full:!0,style:{marginTop:10,marginBottom:20},onPress:p},_.default.t('OK'))))))})))))});e.default=J},1745,[4,1,7,27,15,18,1049,1424,1633,1640,1034,720,1706,1488,535,1486,1717,719,1416,1733,1734,1738,1739,1016,539,1417,772,750,982,1629,1418,1317,1458,1105,1035,1077,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=l(r(d[2])),n=t(r(d[3])),f=r(d[4]),u=l(r(d[5])),c=r(d[6]),s=r(d[7]),y=l(r(d[8])),E=r(d[9]),p=r(d[10]),w=l(r(d[11])),C=r(d[12]),x=r(d[13]),T=r(d[14]),V=l(r(d[15])),b=t(r(d[16])),_=l(r(d[17])),h=r(d[18]),I=l(r(d[19])),D=l(r(d[20])),R=l(r(d[21])),S=r(d[22]),A=r(d[23]),L=f.Dimensions.get('window'),O=(L.width,L.height,(0,C.createStructuredSelector)({subscriptionList:x.selectSubscriptionList,activatePaySubscription:x.selectActivatePaySubscription,getConsultation:x.selectGetConsultation,acceptRefuseConsultation:x.selectAcceptRefuseConsultation})),N=(0,c.connect)(O,{fetchActivePaySubscription:p.fetchActivePaySubscription,fetchGetConsultation:p.fetchGetConsultation,fetchAcceptRejectConsultation:p.fetchAcceptRejectConsultation,fetchGetSubscription:p.fetchGetSubscription,fetchGetDemandeAutorisationSoin:p.fetchGetDemandeAutorisationSoin,fetchGetInvoiceHistory:p.fetchGetInvoiceHistory})(function(t){t.navigation;var l=t.fetchGetConsultation,C=t.fetchGetSubscription,x=t.fetchGetDemandeAutorisationSoin,L=t.fetchGetInvoiceHistory,O=(t.fetchAcceptRejectConsultation,t.acceptRefuseConsultation,t.getConsultation),N=(0,c.useDispatch)(),M=(0,n.useState)(null),v=(0,o.default)(M,2),B=v[0],Y=v[1],U=(0,n.useState)(!1),G=(0,o.default)(U,2),k=G[0],F=G[1],W=(0,n.useState)({}),H=(0,o.default)(W,2),j=H[0],z=H[1],K=(0,n.useState)(1),q=(0,o.default)(K,2),X=q[0],J=q[1],Q=(0,n.useState)(y.default.t('SOINS')),Z=(0,o.default)(Q,2),$=Z[0],ee=Z[1],te=(0,n.useState)(!1),le=(0,o.default)(te,2),ae=le[0],re=le[1],oe=(0,n.useState)([]),ne=(0,o.default)(oe,2),fe=ne[0],ie=ne[1],de=(0,n.useState)(S.store.getState().walletDetailReducer.result.response);(0,o.default)(de,1)[0];var ue,ce;ue=(0,n.useState)(0),(ce=(0,o.default)(ue,2))[0],ce[1];(0,n.useEffect)(function(){N((0,p.fetchGetConsultationReset)()),N((0,p.fetchAcceptRejectConsultationReset)()),(0,T.readUser)().then(function(t){Y(t),console.log("User",t),l(t.id,'ALL','','&pagination=true&page=1')})},[]),(0,n.useEffect)(function(){null!==O.result&&(X0?ht(!0):(St.alertWithType('warn',p.default.t('EMPTY_LIST'),p.default.t('NO_ASSURE_MATCH_SEARCH')),ee((0,h.fetchGetUserByNameOrNumberReset)()))),Y.error&&s.Alert.alert(p.default.t("ERROR_LABLE"),b.getErrorMsg(Y),[{text:p.default.t("OK"),onPress:function(){ee((0,h.fetchGetUserByNameOrNumberReset)())}}],{cancelable:!1})},[Y]);var Ct=function(){var t,n;return u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:[K.containModal,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(L.default,{isVisible:Et,onSwipeComplete:function(){ht(!1)},swipeDirection:['down'],style:K.bottomModal},u.default.createElement(s.View,{style:[K.contentFilterBottom,{backgroundColor:f.Color.containerBackgroundColor}]},u.default.createElement(s.View,{style:K.contentSwipeDown},u.default.createElement(s.View,{style:K.lineSwipeDown})),u.default.createElement(_.default,{body2:!0,style:{marginTop:10}},p.default.t('LIST_ASSURE')),u.default.createElement(s.FlatList,{data:null==(t=Y.result)?void 0:t.response,extraData:null==(n=Y.result)?void 0:n.response,keyExtractor:function(t,n){return n},ListEmptyComponent:u.default.createElement(_.default,{body2:!0},p.default.t('NO_ASSURE_MATCH_SEARCH')),renderItem:function(t){var n=t.item;return t.index,u.default.createElement(s.View,{style:{paddingVertical:15,alignItems:'flex-start'}},u.default.createElement(s.TouchableOpacity,{style:[K.contentActionModalBottom,{borderBottomColor:f.Color.borderColor,width:"100%",flexDirection:'column'}],key:n.id,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):'PAID'!==n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_NON_EN_REGLE'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(null),dt(1),ht(!1),Tt('lastname_patient',n.user.lastname),Tt('firstname_patient',n.user.firstname),C(de.id_network,'',"&user_id="+n.user.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id))}},u.default.createElement(_.default,{body2:!0,semibold:!0},(null!==n.user.firstname?n.user.firstname:'')+" "+(null!==n.user.lastname?n.user.lastname:'')),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+n.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+n.insurance_remaining_amount)),n.beneficiaries.map(function(t){return u.default.createElement(s.TouchableOpacity,{style:K.beneficiarySubSection,onPress:function(){'SUSPENDED'===n.state?s.Alert.alert(p.default.t('ERROR_LABEL'),p.default.t('ASSURE_PRINCIPAL_SUSPENDU'),[{text:p.default.t('OK'),onPress:function(){}}]):(Ge(n),Fe(t),dt(0),ht(!1),Tt('lastname_patient',t.lastname),Tt('firstname_patient',t.firstname),C(de.id_network,'',"&user_id="+n.user.id+"&beneficiary_id="+t.id),ee((0,h.fetchGetUserByNameOrNumberReset)()),Qe.current.next(),W("?user_id="+n.user.id+"&beneficiary_id="+t.id))}},u.default.createElement(s.View,{style:{width:10}}),u.default.createElement(s.View,{style:{paddingHorizontal:10,alignItems:'flex-start'}},u.default.createElement(_.default,{subhead:!0,semibold:!0,textAlign:"left"},(null!==t.firstname?t.firstname:'')+" "+(null!==t.lastname?t.lastname:'')+" ("+p.default.t('AYANT_DROITS')+")"),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_CONSOMME')+": "+t.insurance_consumed_amount),u.default.createElement(_.default,{footnote:!0},p.default.t('MONTANT_ASSURANCE_RESTANTE')+": "+t.insurance_remaining_amount)))}))}}),u.default.createElement(v.default,{full:!0,style:{marginTop:10,marginBottom:20},onPress:function(){return ht(!1)}},p.default.t('OK'))))))},_t=(0,A.useFormik)({validationSchema:wt,initialValues:{password:'',code_acte:'',firstname_patient:'',lastname_patient:''},onSubmit:function(t){null===Me&&null===ze||(null===_e?ft.shake(800):''===t.code_acte?mt.shake(200):(z({act_id:t.code_acte,insurance_id:Me.id,issuer_network_agent_id:de.network_agent_id,beneficiary_id:null!==ze?ze.id:null,password:t.password}),console.log(ne),console.log("insurance",_e)))}}),bt=_t.handleChange,yt=_t.handleSubmit,Rt=_t.handleBlur,At=_t.values,Nt=_t.errors,Ot=_t.touched,Tt=_t.setFieldValue,Bt=_t.setFieldTouched,vt=(_t.isValid,function(){switch(console.log("currentStep",nt),nt){case 0:return console.log("values",At),ee((0,h.fetchGetUserByNameOrNumberReset)()),''!==At.numero_assure&&null===Y.result&&(H(de.id_network,xe?"&insured_id="+At.numero_assure:Ue?"&phone="+At.numero_assure:"&name="+At.numero_assure),console.log("errors",Nt)),!1;default:return!0}}),xt=[{title:p.default.t('ASSURE'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},placeholder:xe?p.default.t('NUMERO_ASSURE'):Ue?p.default.t('PHONE_NUMBER'):p.default.t('NOM_ASSURE'),value:At.numero_assure,keyboardType:Ue?'numeric':'default',onChangeText:bt('numero_assure'),onBlur:Rt('numero_assure'),success:Ot.numero_assure&&!Nt.numero_assure,touched:Ot.numero_assure,error:Nt.numero_assure,icon:u.default.createElement(B.default,{style:{zIndex:10},name:xe?'lock':Ue?'phone':'user',size:20})}),u.default.createElement(s.View,{style:{flexDirection:'row',position:'absolute',top:22,right:70,justifyContent:'space-between',width:50}},u.default.createElement(k.default,{style:{paddingRight:10},name:"lock",size:20,color:f.Color.primaryColor,onPress:function(){De(!0),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"phone",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!0)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"user",size:20,color:f.Color.primaryColor,onPress:function(){De(!1),Pe(!1)}}),u.default.createElement(k.default,{style:{paddingRight:10},name:"qrcode",size:20,color:f.Color.primaryColor,onPress:function(){Ne(!0)}})))},{title:p.default.t('PATIENT'),content:u.default.createElement(s.View,null,u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('NOM_CLIENT'),value:At.lastname_patient,onChangeText:bt('lastname_patient'),onBlur:Rt('lastname_patient'),success:Ot.lastname_patient&&!Nt.lastname_patient,touched:Ot.lastname_patient,editable:!1,error:Nt.lastname_patient}),u.default.createElement(P.default,{style:{marginTop:10},placeholder:p.default.t('PRENOM_CLIENT'),value:At.firstname_patient,editable:!1,onChangeText:bt('firstname_patient'),onBlur:Rt('firstname_patient'),success:Ot.firstname_patient&&!Nt.firstname_patient,touched:Ot.firstname_patient,error:Nt.firstname_patient}),u.default.createElement(s.View,{style:{marginTop:10,flexDirection:'row',justifyContent:"space-between"}},u.default.createElement(_.default,{body2:!0},p.default.t('SITUATION')),u.default.createElement(s.View,{style:{width:(0,O.responsiveWidth)(60)}},u.default.createElement(V.default,{options:ot,disabled:!0,value:st,initial:st,buttonColor:f.Color.accentColor,backgroundColor:f.Color.primaryDarkColor,textColor:"white",bold:!0,hasPadding:!0,height:32,onPress:function(t){}}))))},{title:p.default.t('DEMAND_DETAIL'),content:u.default.createElement(s.View,null,X.loading?u.default.createElement(s.View,{style:{flex:1,justifyContent:'center',alignItems:'center'}},'android'===s.Platform.OS?u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ProgressBarAndroid,null),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS'))):u.default.createElement(u.default.Fragment,null,u.default.createElement(s.ActivityIndicator,{size:"large",color:'#ccc'}),u.default.createElement(_.default,null,p.default.t('LOADING_DOTS')))):X.result?u.default.createElement(s.View,{style:K.contain},u.default.createElement(N.View,{ref:function(t){ft=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('SELECT_INSURANCE'),data:X.result.response,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),be(t),Ee([].concat((0,l.default)(t.beneficiaries),[{id:null!==Me?Me.id:ze.id,firstname:null!==Me?Me.firstname:ze.firstname,lastname:null!==Me?Me.lastname:ze.lastname}])),C(t.network.id,'','&authorization_type=PRIOR')},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name}})),u.default.createElement(N.View,{ref:function(t){mt=t},style:{width:(0,O.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,marginTop:10,paddingRight:20,backgroundColor:'white'}},u.default.createElement(T.Dropdown,{label:p.default.t('CODE_ACTE'),data:null!==J.result?null==(n=J.result)?void 0:n.response:[],useNativeDriver:!0,onChangeText:function(t,n,l){Bt('code_acte'),Tt('code_acte',t.id)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.name}})),"MAX"===de.password_validation&&u.default.createElement(P.default,{style:{marginTop:10,width:(0,O.responsiveWidth)(90)},onChangeText:bt('password'),placeholder:p.default.t('PASSWORD'),secureTextEntry:!0,icon:u.default.createElement(B.default,{name:"lock",size:20}),value:At.password,onBlur:Rt('password'),success:Ot.password&&!Nt.password,touched:Ot.password,error:Nt.password}),u.default.createElement(v.default,{style:{marginTop:20},full:!0,loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL'))):null)}];return u.default.createElement(E.ScreenComponent,null,u.default.createElement(S.default,{ref:function(t){return St=t}}),u.default.createElement(D.default,{show:J.loading}),u.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},u.default.createElement(s.ScrollView,{style:{flex:1}},u.default.createElement(s.View,{style:K.contain},u.default.createElement(M.default,{steps:xt,currentStepIndex:nt+1}),u.default.createElement(s.View,{style:{flexDirection:'column',alignItems:'center'}},u.default.createElement(G.default,{ref:Qe,activeStep:0,steps:xt,useNativeDriver:!0,nextStepAnimation:"slideLeft",prevStepAnimation:"slideRight",isFirstStep:function(t){return Je(t)},isLastStep:function(t){return et(t)},onNext:function(){vt()},onPrev:function(){},currentStep:function(t){var n=t.currentStep,l=t.isLastStep,o=t.isFirstStep;lt(n),Je(o),et(l)}})),u.default.createElement(s.View,{style:K.iconNavigation},Xe?u.default.createElement(s.View,null):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(){return Qe.current.prev()}},u.default.createElement(k.default,{name:"arrow-left",size:20,color:f.Color.whiteColor})),2===nt?u.default.createElement(v.default,{loading:$.loading,onPress:yt},p.default.t('SUBMIT_LABEL')):u.default.createElement(s.TouchableOpacity,{style:[K.iconNavigationButton,{backgroundColor:f.Color.primaryColor,borderColor:f.Color.primaryColor}],onPress:function(t){yt(t),vt()&&Qe.current.next()}},Z.loading||Y.loading||q.loading?u.default.createElement(s.ActivityIndicator,{size:"small",color:"#fff"}):u.default.createElement(k.default,{name:"arrow-right",size:24,color:f.Color.whiteColor}))),Et&&Ct(),Ae&&u.default.createElement(y.default.Container,{contentStyle:{width:(0,O.responsiveWidth)(80)},useNativeDriver:!0,visible:Ae},u.default.createElement(y.default.Title,null,p.default.t('SCAN')),u.default.createElement(s.ScrollView,{style:[K.blockView,{borderBottomColor:f.Color.borderColor,maxHeight:300}]},u.default.createElement(_.default,null,p.default.t('BRING_YOUR_CAMERA_CLOSER_TO_SCAN_QR_CODE')),u.default.createElement(I.default,{onRead:function(t){Ne(!1),F(t.data)},flashMode:U.RNCamera.Constants.FlashMode.off})),u.default.createElement(y.default.Button,{bold:!0,label:p.default.t('CLOSE'),onPress:function(){Ne(!1)}})),Et&&Ct()))))});e.default=F;var K=s.StyleSheet.create({textInput:{height:46,backgroundColor:f.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{marginTop:20,paddingBottom:20,paddingLeft:10,paddingRight:10,flex:1},content:{padding:10,marginBottom:10,borderRadius:8},contentTop:{flexDirection:"row",paddingBottom:10,borderBottomWidth:1},contentBottom:{flexDirection:"row",marginTop:10,justifyContent:"space-between"},bottomLeft:{flexDirection:"row",alignItems:"center"},image:{width:32,height:32,marginRight:10,borderRadius:16},blockView:{paddingVertical:10,borderBottomWidth:.5},ineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:f.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:f.Color.dividerColor},contentActionModalBottom:{flexDirection:"row",paddingVertical:10,marginBottom:10,justifyContent:"space-between",borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},iconNavigation:{width:'100%',flexDirection:'row',marginTop:20,justifyContent:'space-between',alignItems:'center'},iconNavigationButton:{borderWidth:1,borderRadius:25,width:50,height:50,alignItems:'center',justifyContent:'center'},beneficiarySubSection:{marginTop:10,flexDirection:'row',width:'100%'}})},1747,[4,1,35,27,15,18,1049,1034,720,1706,1486,1717,1733,1734,1417,1458,1424,1105,1633,750,535,982,539,1488,1640,1583,1629,1418,1317,1416,1016,772,1738,1739,719,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),c=t(r(d[4])),u=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),p=t(r(d[9])),b=t(r(d[10])),w=r(d[11]),E=n(r(d[12])),S=r(d[13]),C=n(r(d[14])),y=n(r(d[15])),I=n(r(d[16])),T=n(r(d[17])),B=r(d[18]),A=r(d[19]),R=n(r(d[20])),L=r(d[21]),_=t(r(d[22])),D=r(d[23]),x=r(d[24]),O=r(d[25]),v=n(r(d[26])),P=r(d[27]),V=(r(d[28]),u.Dimensions.get('window')),M=V.width,N=(V.height,.5*M),k=u.StyleSheet.create({textInput:{height:46,backgroundColor:w.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:N,height:N,borderRadius:N/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-N/3,top:-N/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:w.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:w.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:w.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,B.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:w.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),F=(0,D.createStructuredSelector)({insuranceList:x.selectInsuranceList,subscribeInsurance:x.selectSubscribeInsurance,uploadInsuranceImages:x.selectUploadInsuranceImages,insurancePrimeAmount:x.selectInsurancePrimeAmount,addBeneficiaryToSubscription:x.selectAddBeneficiaryToSubscription,subscriptionList:x.selectSubscriptionList,deleteBeneficiary:x.selectDeleteBeneficiary}),U=(0,s.connect)(F,{fetchGetListInsurance:A.fetchGetListInsurance,fetchSubscribeInsurance:A.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:A.fetchGetInsurancePrimeAmount,fetchUploadInsurance:A.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:A.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:A.fetchGetSubscriptionList,fetchDeleteBeneficiary:A.fetchDeleteBeneficiary})(function(t){t.fetchAddBeneficiaryToSubscription,t.addBeneficiaryToSubscription;var n=t.fetchGetSubscriptionList,D=t.fetchDeleteBeneficiary,x=t.subscriptionList,V=t.deleteBeneficiary,M=t.navigation,N=(0,c.useState)(null),F=(0,l.default)(N,2),U=F[0],G=F[1],j=(0,c.useState)(null),W=(0,l.default)(j,2),K=W[0],z=(W[1],(0,c.useState)(null)),H=(0,l.default)(z,2),X=(H[0],H[1]),Y=(0,s.useDispatch)(),q=(0,c.useState)(P.store.getState().walletDetailReducer.result.response),J=(0,l.default)(q,1)[0],Q=(0,c.useState)(!1),Z=(0,l.default)(Q,2),$=Z[0],ee=Z[1],te=(0,c.useState)(null),ne=(0,l.default)(te,2),oe=ne[0],ie=ne[1],ae=(0,c.useState)([]),re=(0,l.default)(ae,2),le=re[0],de=re[1],ce=(0,c.useState)([]),ue=(0,l.default)(ce,2),se=ue[0],fe=ue[1],me=(0,c.useState)([]),he=(0,l.default)(me,2),ge=he[0],pe=he[1],be=null;(0,c.useEffect)(function(){(0,L.readUser)().then(function(t){console.log("user",t),G(t)}),Y((0,A.fetchAddBeneficiaryToSubscriptionReset)()),Y((0,A.fetchGetSubscriptionListReset)())},[]),(0,c.useEffect)(function(){null!==U&&n(U.id,'EDITABLE',!1)},[U]);(0,c.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),de(t)}x.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(x),[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[x]),(0,c.useEffect)(function(){null!==V.result&&u.Alert.alert(E.default.t("SUCCESS"),V.result.response,[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchDeleteBeneficiaryReset)()),M.goBack()}}],{cancelable:!1}),V.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(V),[{text:E.default.t("OK"),onPress:function(){Y((0,A.fetchDeleteBeneficiaryReset)())}}],{cancelable:!1})},[V]);var we=p.object().shape({password:"MAX"===J.password_validation?p.string().required(E.default.t('THIS_FIELD_IS_REQUIRED')):p.string()});return c.default.createElement(S.ScreenComponent,null,c.default.createElement(R.default,{ref:function(t){return t}}),c.default.createElement(u.KeyboardAvoidingView,{behavior:'android'===u.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(u.ScrollView,{style:{flex:1}},c.default.createElement(h.Formik,{validationSchema:we,initialValues:{password:''},onSubmit:function(t){null!==U&&(null===oe?be.shake(800):(console.log(U),console.log("insurance",K),X(t.password),D(oe.id,{password:t.password,beneficiaries_ids:ge})))}},function(t){var n=t.values,o=t.errors,l=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(u.View,{style:k.contain},c.default.createElement(_.View,{ref:function(t){be=t},style:{width:(0,B.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(O.Dropdown,{label:E.default.t('SELECT_SUBSCRIPTION'),data:le,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),fe(t.beneficiaries),ie({id:t.id,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries}),ee(!0)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+E.default.t('ETAT')+": "+t.state+" | "+E.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===J.password_validation&&c.default.createElement(y.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:E.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(T.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:l.password&&!o.password,touched:l.password,error:o.password}),c.default.createElement(I.default,{style:{marginTop:20},full:!0,loading:V.loading,onPress:h},E.default.t('SUBMIT_LABEL')))}))),$&&c.default.createElement(f.default,{isVisible:$,onSwipeComplete:function(){return ee(!1)},swipeDirection:['down'],style:k.bottomModal},c.default.createElement(u.View,{style:[k.contentFilterBottom,{backgroundColor:w.Color.cardBackgroundColor}]},c.default.createElement(u.View,{style:k.contentSwipeDown},c.default.createElement(u.View,{style:k.lineSwipeDown})),c.default.createElement(u.View,{style:[k.contentActionModalBottom,{borderBottomColor:w.Color.borderColor}]}),c.default.createElement(u.View,{style:[{marginBottom:40}]},c.default.createElement(u.FlatList,{data:se,extraData:se,keyExtractor:function(t,n){return n},ListEmptyComponent:function(){return c.default.createElement(C.default,null,E.default.t('NO_WALLET_HISTORY'))},renderItem:function(t){var n=t.item;return t.index,console.log("Item",n),c.default.createElement(u.View,{style:k.lineRow},c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('NOM_ASSURE')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('AFFILIATION')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?E.default.t('ENFANT'):E.default.t('CONJOINT'))),c.default.createElement(u.View,{style:k.iconRight},c.default.createElement(u.TouchableOpacity,{onPress:function(){u.Alert.alert(E.default.t("TITLE_SUPPRESS_CONFIRM"),E.default.t("TEXT_SUPPRESS_CONFIRM_BENEFICIARY"),[{text:E.default.t("OK"),onPress:function(){pe([].concat((0,o.default)(ge),[n.id])),fe(se.filter(function(t){return t.id!==n.id}))}},{text:E.default.t("CANCEL_LABEL"),onPress:function(){}}],{cancelable:!1})}},c.default.createElement(v.default,{name:"minus-circle",size:24,color:w.Color.grayColor}))))}})),c.default.createElement(I.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){se.length>=1&&ge.length>0&&(0,b.displayToast)(E.default.t('ENTER_PASSWORD_TO_VALID_MODIFICATION')),ee(!1)}},E.default.t('OK')))),null!==oe&&c.default.createElement(u.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:w.Color.primaryColor,borderRadius:100},onPress:function(){return ee(!0)}},c.default.createElement(C.default,{whiteColor:!0,title2:!0},se.length),c.default.createElement(C.default,{whiteColor:!0,caption2:!0},E.default.t('AYANT_DROIT'))))});e.default=U},1748,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1417,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1016,1105,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),C=r(d[15]),L=r(d[16]),R=n(r(d[17])),v=r(d[18]),x=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=r(d[23]),A=(r(d[24]),s.Dimensions.get('window')),k=A.width,D=(A.height,.5*k),M=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:D,height:D,borderRadius:D/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-D/3,top:-D/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),V=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),G=(0,u.connect)(V,{fetchStopSubscription:L.fetchStopSubscription,fetchGetListInsuranceWithBeneficiaries:L.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:L.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchStopSubscription,A=t.navigation,k=(0,l.useState)(null),D=(0,o.default)(k,2),V=D[0],G=D[1],O=(0,l.useState)(null),P=(0,o.default)(O,2),W=(P[0],P[1],(0,l.useState)([])),j=(0,o.default)(W,2),U=j[0],z=j[1],F=(0,l.useState)(null),K=(0,o.default)(F,2),N=K[0],H=K[1],X=(0,l.useState)(y.store.getState().walletDetailReducer.result.response),q=(0,o.default)(X,1)[0],Q=(0,u.useDispatch)(),J=null;(0,l.useEffect)(function(){(0,v.readUser)().then(function(t){G(t)}),Q((0,L.fetchGetListInsuranceReset)()),Q((0,L.fetchGetSubscriptionListReset)()),Q((0,L.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==V&&(console.log("user",V.id),p("?user_id="+V.id+"&type=EDITABLE"))},[V]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),z(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)()),A.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===q.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==V&&(null===N?J.shake(800):(console.log("subscription",N),I(N.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:M.contain},l.default.createElement(x.View,{ref:function(t){J=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:U,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===q.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=G},1749,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),R=r(d[15]),C=r(d[16]),L=n(r(d[17])),v=r(d[18]),x=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=r(d[23]),A=(r(d[24]),s.Dimensions.get('window')),k=A.width,D=(A.height,.5*k),M=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:D,height:D,borderRadius:D/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-D/3,top:-D/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,R.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),P=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),V=(0,u.connect)(P,{fetchRenewSubscription:C.fetchRenewSubscription,fetchGetListInsuranceWithBeneficiaries:C.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:C.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchRenewSubscription,A=t.navigation,k=(0,l.useState)(null),D=(0,o.default)(k,2),P=D[0],V=D[1],O=(0,l.useState)(null),G=(0,o.default)(O,2),W=(G[0],G[1],(0,l.useState)([])),j=(0,o.default)(W,2),U=j[0],z=j[1],F=(0,l.useState)(null),K=(0,o.default)(F,2),N=K[0],H=K[1],X=(0,l.useState)(y.store.getState().walletDetailReducer.result.response),q=(0,o.default)(X,1)[0],Q=(0,u.useDispatch)(),J=null;(0,l.useEffect)(function(){(0,v.readUser)().then(function(t){V(t)}),Q((0,C.fetchGetListInsuranceReset)()),Q((0,C.fetchGetSubscriptionListReset)()),Q((0,C.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==P&&(console.log("user",P.id),p("?user_id="+P.id+"&type=STOPPED"))},[P]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),z(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchStopSubscriptionReset)()),A.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){Q((0,C.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var Y=f.object().shape({password:"MAX"===q.password_validation?f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED')):f.string()});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(L.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:Y,initialValues:{password:''},onSubmit:function(t){null!==P&&(null===N?J.shake(800):(console.log("subscription",N),I(N.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:M.contain},l.default.createElement(x.View,{ref:function(t){J=t},style:{width:(0,R.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:U,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),"MAX"===q.password_validation&&l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=V},1750,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=n(r(d[3])),c=t(r(d[4])),u=r(d[5]),s=r(d[6]),f=n(r(d[7])),h=r(d[8]),p=t(r(d[9])),b=t(r(d[10])),w=r(d[11]),E=n(r(d[12])),S=r(d[13]),C=n(r(d[14])),y=n(r(d[15])),I=n(r(d[16])),T=n(r(d[17])),B=r(d[18]),R=r(d[19]),L=n(r(d[20])),A=r(d[21]),D=t(r(d[22])),_=r(d[23]),x=r(d[24]),O=r(d[25]),P=n(r(d[26])),v=r(d[27]),V=(r(d[28]),u.Dimensions.get('window')),N=V.width,k=(V.height,.5*N),M=u.StyleSheet.create({textInput:{height:46,backgroundColor:w.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:k,height:k,borderRadius:k/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-k/3,top:-k/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:w.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:w.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:w.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,B.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:w.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),F=(0,_.createStructuredSelector)({insuranceList:x.selectInsuranceList,subscribeInsurance:x.selectSubscribeInsurance,uploadInsuranceImages:x.selectUploadInsuranceImages,insurancePrimeAmount:x.selectInsurancePrimeAmount,addBeneficiaryToSubscription:x.selectAddBeneficiaryToSubscription,subscriptionList:x.selectSubscriptionList,deleteBeneficiary:x.selectDeleteBeneficiary}),U=(0,s.connect)(F,{fetchGetListInsurance:R.fetchGetListInsurance,fetchSubscribeInsurance:R.fetchSubscribeInsurance,fetchGetInsurancePrimeAmount:R.fetchGetInsurancePrimeAmount,fetchUploadInsurance:R.fetchUploadInsurance,fetchAddBeneficiaryToSubscription:R.fetchAddBeneficiaryToSubscription,fetchGetSubscriptionList:R.fetchGetSubscriptionList,fetchDeleteBeneficiary:R.fetchDeleteBeneficiary})(function(t){t.fetchAddBeneficiaryToSubscription,t.addBeneficiaryToSubscription;var n=t.fetchGetSubscriptionList,_=t.fetchDeleteBeneficiary,x=t.subscriptionList,V=t.deleteBeneficiary,N=t.navigation,k=(0,c.useState)(null),F=(0,l.default)(k,2),U=F[0],G=F[1],j=(0,c.useState)(null),W=(0,l.default)(j,2),K=W[0],z=(W[1],(0,c.useState)(null)),H=(0,l.default)(z,2),Y=(H[0],H[1]),q=(0,s.useDispatch)(),J=(0,c.useState)(v.store.getState().walletDetailReducer.result.response),Q=((0,l.default)(J,1)[0],(0,c.useState)(!1)),X=(0,l.default)(Q,2),Z=X[0],$=X[1],ee=(0,c.useState)(null),te=(0,l.default)(ee,2),ne=te[0],oe=te[1],ie=(0,c.useState)([]),ae=(0,l.default)(ie,2),re=ae[0],le=ae[1],ce=(0,c.useState)([]),de=(0,l.default)(ce,2),ue=de[0],se=de[1],fe=(0,c.useState)([]),me=(0,l.default)(fe,2),he=me[0],ge=me[1],pe=null;(0,c.useEffect)(function(){(0,A.readUser)().then(function(t){console.log("user",t),G(t)}),q((0,R.fetchAddBeneficiaryToSubscriptionReset)()),q((0,R.fetchGetSubscriptionListReset)())},[]),(0,c.useEffect)(function(){null!==U&&n(U.id,'EDITABLE',!1)},[U]);(0,c.useEffect)(function(){if(null!==x.result){var t=[];x.result.response.map(function(n,o){t.push(n)}),le(t)}x.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(x),[{text:E.default.t("OK"),onPress:function(){q((0,R.fetchGetListInsuranceReset)())}}],{cancelable:!1})},[x]),(0,c.useEffect)(function(){null!==V.result&&u.Alert.alert(E.default.t("SUCCESS"),V.result.response,[{text:E.default.t("OK"),onPress:function(){q((0,R.fetchDeleteBeneficiaryReset)()),N.goBack()}}],{cancelable:!1}),V.error&&u.Alert.alert(E.default.t("ERROR_LABLE"),b.getErrorMsg(V),[{text:E.default.t("OK"),onPress:function(){q((0,R.fetchDeleteBeneficiaryReset)())}}],{cancelable:!1})},[V]);var be=p.object().shape({password:p.string().required(E.default.t('THIS_FIELD_IS_REQUIRED'))});return c.default.createElement(S.ScreenComponent,null,c.default.createElement(L.default,{ref:function(t){return t}}),c.default.createElement(u.KeyboardAvoidingView,{behavior:'android'===u.Platform.OS?'height':'padding',style:{flex:1}},c.default.createElement(u.ScrollView,{style:{flex:1}},c.default.createElement(h.Formik,{validationSchema:be,initialValues:{password:''},onSubmit:function(t){null!==U&&(null===ne?pe.shake(800):(console.log(U),console.log("insurance",K),Y(t.password),_(ne.id,{password:t.password,beneficiaries_ids:he})))}},function(t){var n=t.values,o=t.errors,l=t.touched,s=t.handleChange,f=t.handleBlur,h=t.handleSubmit;return t.isSubmitting,c.default.createElement(u.View,{style:M.contain},c.default.createElement(D.View,{ref:function(t){pe=t},style:{width:(0,B.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},c.default.createElement(O.Dropdown,{label:E.default.t('SELECT_SUBSCRIPTION'),data:re,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),se(t.beneficiaries),oe({id:t.id,insured_id:t.insured_id,subscription:t.subscription,beneficiaries:t.beneficiaries}),$(!0)},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+E.default.t('ETAT')+": "+t.state+" | "+E.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),c.default.createElement(y.default,{style:{marginTop:10},onChangeText:s('password'),placeholder:E.default.t('PASSWORD'),secureTextEntry:!0,icon:c.default.createElement(T.default,{name:"lock",size:20}),value:n.password,onBlur:f('password'),success:l.password&&!o.password,touched:l.password,error:o.password}),c.default.createElement(I.default,{style:{marginTop:20},full:!0,loading:V.loading,onPress:h},E.default.t('SUBMIT_LABEL')))}))),Z&&c.default.createElement(f.default,{isVisible:Z,onSwipeComplete:function(){return $(!1)},swipeDirection:['down'],style:M.bottomModal},c.default.createElement(u.View,{style:[M.contentFilterBottom,{backgroundColor:w.Color.cardBackgroundColor}]},c.default.createElement(u.View,{style:M.contentSwipeDown},c.default.createElement(u.View,{style:M.lineSwipeDown})),c.default.createElement(u.View,{style:[M.contentActionModalBottom,{borderBottomColor:w.Color.borderColor}]}),c.default.createElement(u.View,{style:[{marginBottom:40}]},c.default.createElement(u.FlatList,{data:ue,extraData:ue,keyExtractor:function(t,n){return n},ListEmptyComponent:function(){return c.default.createElement(C.default,null,E.default.t('NO_WALLET_HISTORY'))},renderItem:function(t){var n=t.item;return t.index,console.log("Item",n),c.default.createElement(u.View,{style:M.lineRow},c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('NOM_ASSURE')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},n.firstname+" "+n.lastname)),c.default.createElement(u.View,{style:{alignItems:'flex-start'}},c.default.createElement(C.default,{body1:!0},E.default.t('AFFILIATION')),c.default.createElement(C.default,{caption1:!0,grayColor:!0},'CHILD'===n.affiliation?E.default.t('ENFANT'):E.default.t('CONJOINT'))),c.default.createElement(u.View,{style:M.iconRight},c.default.createElement(u.TouchableOpacity,{onPress:function(){u.Alert.alert(E.default.t("TITLE_SUPPRESS_CONFIRM"),E.default.t("TEXT_SUPPRESS_CONFIRM_BENEFICIARY"),[{text:E.default.t("OK"),onPress:function(){ge([].concat((0,o.default)(he),[n.id])),se(ue.filter(function(t){return t.id!==n.id}))}},{text:E.default.t("CANCEL_LABEL"),onPress:function(){}}],{cancelable:!1})}},c.default.createElement(P.default,{name:"minus-circle",size:24,color:w.Color.grayColor}))))}})),c.default.createElement(I.default,{style:{marginTop:20,marginBottom:20},full:!0,onPress:function(){ue.length>=1&&he.length>0&&(0,b.displayToast)(E.default.t('ENTER_PASSWORD_TO_VALID_MODIFICATION')),$(!1)}},E.default.t('OK')))),null!==ne&&c.default.createElement(u.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',width:60,position:'absolute',bottom:10,right:10,height:60,padding:3,backgroundColor:w.Color.primaryColor,borderRadius:100},onPress:function(){return $(!0)}},c.default.createElement(C.default,{whiteColor:!0,title2:!0},ue.length),c.default.createElement(C.default,{whiteColor:!0,caption2:!0},E.default.t('AYANT_DROIT'))))});e.default=U},1748,[4,1,35,27,15,18,1049,1629,1633,1640,1458,1034,720,1706,1417,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1016,1105,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),l=t(r(d[3])),s=r(d[4]),u=r(d[5]),c=r(d[6]),f=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),b=n(r(d[10])),w=r(d[11]),S=n(r(d[12])),_=n(r(d[13])),E=n(r(d[14])),C=r(d[15]),L=r(d[16]),R=n(r(d[17])),x=r(d[18]),v=t(r(d[19])),B=r(d[20]),I=r(d[21]),T=r(d[22]),y=r(d[23]),k=(r(d[24]),s.Dimensions.get('window')),A=k.width,D=(k.height,.5*A),V=s.StyleSheet.create({textInput:{height:46,backgroundColor:p.Color.fieldColor,borderRadius:5,marginTop:10,padding:10,width:'100%'},lineRow:{flexDirection:'row',justifyContent:'space-between',paddingBottom:20},contain:{alignItems:'center',marginTop:40,paddingBottom:20,paddingLeft:20,paddingRight:20,flex:1},circle:{width:D,height:D,borderRadius:D/2,position:'absolute',top:'15%'},circleContainer:{alignItems:'flex-end',right:-D/3,top:-D/1.5},lineSeparator:{borderWidth:1,width:'40%',height:1,alignSelf:'center'},line:{width:1,height:14,backgroundColor:p.Color.grayColor,marginLeft:10},contentModeView:{width:30,height:'100%',alignItems:'flex-end',justifyContent:'center'},contentFilter:{flexDirection:'row',alignItems:'center',marginLeft:10},bottomModal:{justifyContent:'flex-end',margin:0},contentFilterBottom:{width:"100%",borderTopLeftRadius:8,borderTopRightRadius:8,paddingHorizontal:20},contentSwipeDown:{paddingTop:10,alignItems:'center'},lineSwipeDown:{width:30,height:2.5,backgroundColor:p.Color.dividerColor},contentActionModalBottom:{flexDirection:'row',paddingVertical:15,justifyContent:'space-between',borderBottomWidth:1},containModal:{paddingVertical:10,paddingHorizontal:20,flexDirection:'row',justifyContent:'space-between'},floatingButtonAdd:{backgroundColor:p.Color.accentColor,position:"absolute",width:25,bottom:0,zIndex:1e3,right:20,top:35,height:25,borderRadius:12.5,alignItems:'center',justifyContent:'center'},contentSwitch:{width:(0,C.responsiveWidth)(40)},switch:{},choosePhotoBtn:{marginTop:10,marginBottom:10,width:"auto",height:"auto",padding:5,alignItems:'center',borderColor:p.Color.borderColor,marginRight:10,elevation:2},checkbox:{alignSelf:"center",color:"white"},itemAmountPerMonth:{paddingLeft:10,marginTop:10,flexDirection:'row'},dot:{width:12,height:12,borderRadius:6},blockView:{paddingVertical:10,borderBottomWidth:.5}}),M=(0,B.createStructuredSelector)({insuranceList:I.selectInsuranceList,stopSubscription:I.selectStopSubscription}),G=(0,u.connect)(M,{fetchStopSubscription:L.fetchStopSubscription,fetchGetListInsuranceWithBeneficiaries:L.fetchGetListInsuranceWithBeneficiaries,fetchGetSubscriptionList:L.fetchGetSubscriptionList})(function(t){var n=t.stopSubscription,p=(t.fetchGetSubscriptionList,t.fetchGetListInsuranceWithBeneficiaries),B=t.insuranceList,I=t.fetchStopSubscription,k=t.navigation,A=(0,l.useState)(null),D=(0,o.default)(A,2),M=D[0],G=D[1],O=(0,l.useState)(null),P=(0,o.default)(O,2),W=(P[0],P[1],(0,l.useState)([])),j=(0,o.default)(W,2),U=j[0],z=j[1],F=(0,l.useState)(null),K=(0,o.default)(F,2),N=K[0],H=K[1],q=(0,l.useState)(y.store.getState().walletDetailReducer.result.response),Q=((0,o.default)(q,1)[0],(0,u.useDispatch)()),J=null;(0,l.useEffect)(function(){(0,x.readUser)().then(function(t){G(t)}),Q((0,L.fetchGetListInsuranceReset)()),Q((0,L.fetchGetSubscriptionListReset)()),Q((0,L.fetchStopSubscriptionReset)())},[]),(0,l.useEffect)(function(){null!==M&&(console.log("user",M.id),p("?user_id="+M.id+"&type=EDITABLE"))},[M]),(0,l.useEffect)(function(){if(null!==B.result){var t=[];B.result.response.map(function(n,o){t.push(n)}),z(t)}B.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(B),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchGetSubscriptionListReset)())}}],{cancelable:!1})},[B]),(0,l.useEffect)(function(){null!==n.result&&s.Alert.alert(b.default.t("SUCCESS"),n.result.response,[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)()),k.goBack()}}],{cancelable:!1}),n.error&&s.Alert.alert(b.default.t("ERROR_LABLE"),h.getErrorMsg(n),[{text:b.default.t("OK"),onPress:function(){Q((0,L.fetchStopSubscriptionReset)())}}],{cancelable:!1})},[n]);var X=f.object().shape({password:f.string().required(b.default.t('THIS_FIELD_IS_REQUIRED'))});return l.default.createElement(w.ScreenComponent,null,l.default.createElement(R.default,{ref:function(t){return t}}),l.default.createElement(s.KeyboardAvoidingView,{behavior:'android'===s.Platform.OS?'height':'padding',style:{flex:1}},l.default.createElement(s.ScrollView,{style:{flex:1}},l.default.createElement(c.Formik,{validationSchema:X,initialValues:{password:''},onSubmit:function(t){null!==M&&(null===N?J.shake(800):(console.log("subscription",N),I(N.id,{password:t.password})))}},function(t){var o=t.values,u=t.errors,c=t.touched,f=t.handleChange,h=t.handleBlur,p=t.handleSubmit;return t.isSubmitting,l.default.createElement(s.View,{style:V.contain},l.default.createElement(v.View,{ref:function(t){J=t},style:{width:(0,C.responsiveWidth)(90),height:60,alignSelf:'center',borderRadius:10,paddingLeft:20,paddingRight:20,backgroundColor:'white'}},l.default.createElement(T.Dropdown,{label:b.default.t('SELECT_INSURANCE'),data:U,useNativeDriver:!0,onChangeText:function(t,n,o){console.log("Value",t),H({id:t.id,insurance_subscription_id:t.insurance_subscription_id,network_id:t.network_id,user_id:t.user_id,number_of_months:t.number_of_months,bonus_amount:t.bonus_amount,number_of_beneficiaries:t.number_of_beneficiaries,total_bonus_amount:t.total_bonus_amount,state:t.state,created_at:t.created_at,updated_at:t.updated_at,start_at:t.start_at,end_at:t.end_at,reason:t.reason,network:t.network,beneficiaries:t.beneficiaries})},valueExtractor:function(t){return t},labelExtractor:function(t){return t.network.name+" | "+b.default.t('ETAT')+": "+t.state+" | "+b.default.t('AMOUNT_LABEL')+": "+t.total_bonus_amount}})),l.default.createElement(S.default,{style:{marginTop:10},onChangeText:f('password'),placeholder:b.default.t('PASSWORD'),secureTextEntry:!0,icon:l.default.createElement(E.default,{name:"lock",size:20}),value:o.password,onBlur:h('password'),success:c.password&&!u.password,touched:c.password,error:u.password}),l.default.createElement(_.default,{style:{marginTop:20},full:!0,loading:n.loading,onPress:p},b.default.t('SUBMIT_LABEL')))}))))});e.default=G},1749,[4,1,27,15,18,1049,1633,1640,1458,1034,720,1706,1716,1488,539,535,1486,1717,719,750,1733,1734,982,1105,1190]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[2])),u=n(r(d[3])),c=t(r(d[4])),l=r(d[5]),s=r(d[6]),f=r(d[7]),p=t(r(d[8])),h=t(r(d[9])),_=r(d[10]),b=n(r(d[11])),w=r(d[12]),S=n(r(d[13])),E=n(r(d[14])),R=n(r(d[15])),C=r(d[16]),y=r(d[17]),v=n(r(d[18])),L=r(d[19]),I=t(r(d[20])),x=r(d[21]),O=r(d[22]),P=r(d[23]),k=r(d[24]),T=n(r(d[25]));function D(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,u)}return o}function B(t){for(var n=1;n(new Date).getTime()?o._mounted&&o.setState({path:u,isDownloaded:!0}):o._prepareFile(n)}).catch(function(){o._prepareFile(n)}):o._prepareFile(n)},o._prepareFile=function(t){var n,s,u,c,p,f,h;return l.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:try{t.uri?(n=t.uri||'',s=!(!n||!n.match(/^https?:\/\//)),u=!(!n||!n.match(/^bundle-assets:\/\//)),c=!(!n||!n.match(/^data:application\/pdf;base64/)),p=t.cacheFileName||S(n)+'.pdf',f=w.default.fs.dirs.CacheDir+'/'+p,o._unlinkFile(f),s?o._downloadFile(t,f):u?w.default.fs.cp(n,f).then(function(){o._mounted&&o.setState({path:f,isDownloaded:!0,progress:1})}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:o._unlinkFile(f),o._onError(t);case 2:case"end":return n.stop()}},null,null,null,Promise)}):c?(h=n.replace(/data:application\/pdf;base64,/i,''),w.default.fs.writeFile(f,h,'base64').then(function(){o._mounted&&o.setState({path:f,isDownloaded:!0,progress:1})}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:o._unlinkFile(f),o._onError(t);case 2:case"end":return n.stop()}},null,null,null,Promise)})):o._mounted&&o.setState({path:n.replace(/file:\/\//i,''),isDownloaded:!0})):o._onError(new Error('no pdf source!'))}catch(t){o._onError(t)}case 1:case"end":return b.stop()}},null,null,null,Promise)},o._downloadFile=function(t,n){var s;return l.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:o.lastRNBFTask&&(o.lastRNBFTask.cancel(function(t){}),o.lastRNBFTask=null),s=n+'.tmp',o._unlinkFile(s),o.lastRNBFTask=w.default.config({path:s,trusty:o.props.trustAllCerts}).fetch(t.method?t.method:'GET',t.uri,t.headers?t.headers:{},t.body?t.body:"").progress(function(t,n){o.props.onLoadProgress&&o.props.onLoadProgress(t/n),o._mounted&&o.setState({progress:Math.floor(t/n)})}),o.lastRNBFTask.then(function(u){var c,p,f;return l.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(o.lastRNBFTask=null,!(u&&u.respInfo&&u.respInfo.headers)||u.respInfo.headers["Content-Encoding"]||u.respInfo.headers["Transfer-Encoding"]||!u.respInfo.headers["Content-Length"]){h.next=17;break}return c=u.respInfo.headers["Content-Length"],h.prev=3,h.next=6,l.default.awrap(w.default.fs.stat(u.path()));case 6:if((f=h.sent)&&f.size){h.next=9;break}throw new Error("FileNotFound:"+t.uri);case 9:p=f.size,h.next=15;break;case 12:throw h.prev=12,h.t0=h.catch(3),new Error("DownloadFailed:"+t.uri);case 15:if(c==p){h.next=17;break}throw new Error("DownloadFailed:"+t.uri);case 17:o._unlinkFile(n),w.default.fs.cp(s,n).then(function(){o._mounted&&o.setState({path:n,isDownloaded:!0,progress:1}),o._unlinkFile(s)}).catch(function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:throw t;case 1:case"end":return n.stop()}},null,null,null,Promise)});case 19:case"end":return h.stop()}},null,null,[[3,12]],Promise)}).catch(function(t){return l.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:o._unlinkFile(s),o._unlinkFile(n),o._onError(t);case 3:case"end":return l.stop()}},null,null,null,Promise)});case 5:case"end":return u.stop()}},null,null,null,Promise)},o._unlinkFile=function(t){return l.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.default.awrap(w.default.fs.unlink(t));case 3:n.next=7;break;case 5:n.prev=5,n.t0=n.catch(0);case 7:case"end":return n.stop()}},null,null,[[0,5]],Promise)},o.setNativeProps=function(t){o._root&&o._root.setNativeProps(t)},o._onChange=function(t){var n=t.nativeEvent.message.split('|');n.length>0&&(n.length>5&&(n[4]=n.splice(4).join('|')),'loadComplete'===n[0]?o.props.onLoadComplete&&o.props.onLoadComplete(Number(n[1]),o.state.path,{width:Number(n[2]),height:Number(n[3])},n[4]&&JSON.parse(n[4])):'pageChanged'===n[0]?o.props.onPageChanged&&o.props.onPageChanged(Number(n[1]),Number(n[2])):'error'===n[0]?o._onError(new Error(n[1])):'pageSingleTap'===n[0]?o.props.onPageSingleTap&&o.props.onPageSingleTap(Number(n[1]),Number(n[2]),Number(n[3])):'scaleChanged'===n[0]?o.props.onScaleChanged&&o.props.onScaleChanged(Number(n[1])):'linkPressed'===n[0]&&o.props.onPressLink&&o.props.onPressLink(n[1]))},o._onError=function(t){o.props.onError&&o.props.onError(t)},o.state={path:'',isDownloaded:!1,progress:0,isSupportPDFKit:-1},o.lastRNBFTask=null,o}return(0,h.default)(n,t),(0,c.default)(n,[{key:"componentDidUpdate",value:function(t){var n=this,o=v.Image.resolveAssetSource(this.props.source),s=v.Image.resolveAssetSource(t.source);o.uri!==s.uri&&(this.lastRNBFTask?(this.lastRNBFTask.cancel(function(t){n._loadFromSource(n.props.source)}),this.lastRNBFTask=null):this._loadFromSource(this.props.source))}},{key:"componentDidMount",value:function(){var t=this;(this._mounted=!0,"ios"===v.Platform.OS)&&r(d[12]).NativeModules.PdfViewManager.supportPDFKit(function(n){t._mounted&&t.setState({isSupportPDFKit:n?1:0})});this._loadFromSource(this.props.source)}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lastRNBFTask&&(this.lastRNBFTask.cancel(function(t){}),this.lastRNBFTask=null)}},{key:"setPage",value:function(t){if(null===t||isNaN(t))throw new Error('Specified pageNumber is not a number');this.setNativeProps({page:t})}},{key:"render",value:function(){var t=this;return"android"===v.Platform.OS||"ios"===v.Platform.OS||"windows"===v.Platform.OS?b.default.createElement(v.View,{style:[this.props.style,{overflow:'hidden'}]},this.state.isDownloaded?"android"===v.Platform.OS||"windows"===v.Platform.OS?b.default.createElement(F,(0,s.default)({ref:function(n){return t._root=n}},this.props,{style:[{flex:1,backgroundColor:'#EEE'},this.props.style],path:this.state.path,onChange:this._onChange})):this.props.usePDFKit&&1===this.state.isSupportPDFKit?b.default.createElement(F,(0,s.default)({ref:function(n){return t._root=n}},this.props,{style:[{backgroundColor:'#EEE',overflow:'hidden'},this.props.style],path:this.state.path,onChange:this._onChange})):b.default.createElement(y.default,(0,s.default)({},this.props,{style:[{backgroundColor:'#EEE',overflow:'hidden'},this.props.style],path:this.state.path,onLoadComplete:this.props.onLoadComplete,onPageChanged:this.props.onPageChanged,onError:this._onError,onPageSingleTap:this.props.onPageSingleTap,onScaleChanged:this.props.onScaleChanged,onPressLink:this.props.onPressLink})):b.default.createElement(v.View,{style:k.progressContainer},this.props.renderActivityIndicator?this.props.renderActivityIndicator(this.state.progress):b.default.createElement(v.Text,null,this.state.progress+"%"))):null}}]),n})(b.Component);if(e.default=_,_.propTypes=(function(t){for(var n=1;n {` ${I18n.t('INVOICE')}`} diff --git a/screens/wallet/agent/HistoriqueNanoSanteSuperHyperScreen.js b/screens/wallet/agent/HistoriqueNanoSanteSuperHyperScreen.js index 1be2414c..3ac263c4 100644 --- a/screens/wallet/agent/HistoriqueNanoSanteSuperHyperScreen.js +++ b/screens/wallet/agent/HistoriqueNanoSanteSuperHyperScreen.js @@ -599,7 +599,7 @@ const HistoriqueNanoSanteSuperHyperScreen = ({ setLoadMore(false); setHistoryResult([]); setHistoriqueDetailLabel(I18n.t('INVOICE')); - fetchGetInvoiceHistory(`?network_id=${wallet.id_network}&page=1&perPage=20`); + fetchGetInvoiceHistory(`?network_id=${wallet.id_network}&page=1&perPage=20`, false); }}> {` ${I18n.t('INVOICE')}`} diff --git a/screens/wallet/user/ActivateBuySubscriptionScreen.js b/screens/wallet/user/ActivateBuySubscriptionScreen.js index c9e72700..fe84444b 100644 --- a/screens/wallet/user/ActivateBuySubscriptionScreen.js +++ b/screens/wallet/user/ActivateBuySubscriptionScreen.js @@ -17,7 +17,7 @@ import { View, } from 'react-native'; import {connect, useDispatch} from 'react-redux'; -import {Formik} from 'formik'; +import {useFormik} from 'formik'; import * as Yup from 'yup'; import * as Utils from '../../../utils/UtilsFunction'; import {Color} from "../../../config/Color"; @@ -44,6 +44,7 @@ import {store} from "../../../redux/store"; import Modal from "react-native-modal"; import Text from "../../../components/Text"; import Icon from "react-native-vector-icons/FontAwesome5"; +import TextInput from "../../../components/TextInput"; let moment = require('moment-timezone'); @@ -217,7 +218,7 @@ const ActivateBuySubscriptionScreen = ({ const [password, setPassword] = useState(null); const [subscriptions, setSubscriptions] = useState([]); const [subscription, setSubscription] = useState(null); - const [modalPaymentModal, setModalPaymentModal] = useState(true); + const [modalPaymentModal, setModalPaymentModal] = useState(false); const dispatch = useDispatch(); let dropDownAlertRef: any = null; @@ -312,8 +313,37 @@ const ActivateBuySubscriptionScreen = ({ }, [activatePaySubscription]); const RegisterSchema = Yup.object().shape({ - password: wallet.password_validation === "MAX" ? Yup.string() - .required(I18n.t('THIS_FIELD_IS_REQUIRED')) : Yup.string() + password: Yup.string().required(I18n.t('THIS_FIELD_IS_REQUIRED')), + amount: Yup.number().required(I18n.t('THIS_FIELD_IS_REQUIRED')) + }); + + + const { + handleChange, + handleSubmit, + handleBlur, + values, + errors, + touched, + setFieldValue, + setFieldTouched, + isValid, + } = useFormik({ + validationSchema: RegisterSchema, + initialValues: { + password: '', + amount: '' + }, + onSubmit: values => { + if (user !== null) { + if (subscription === null) { + subscriptionRef.shake(800); + } else { + console.log("subscription", subscription); + setModalPaymentModal(true); + } + } + } }); const renderPaymentMethodModal = () => ( @@ -347,6 +377,7 @@ const ActivateBuySubscriptionScreen = ({ }, ]} onPress={() => { + fetchActivePaySubscription(subscription.id, {password: values.password, amount: values.amount, payment_mthod: 'wallet'}); }}> - + - {I18n.t('PAYPAL')} + {I18n.t('WALLET')} { - + fetchActivePaySubscription(subscription.id, {password: values.password, amount: values.amount, payment_mthod: 'card'}); }}> { - /* navigation.navigate('WebviewModalScreen', { - url: `${Config.YOOLEARN_CINET_PAY}`, - title: t('terms_of_services'), - }); */ + fetchActivePaySubscription(subscription.id, {password: values.password, amount: values.amount, payment_mthod: 'mobile_money'}); }}> - { - if (user !== null) { - if (subscription === null) { - subscriptionRef.shake(800); - } else { - console.log("subscription", subscription); - setModalPaymentModal(true); - //fetchActivePaySubscription(subscription.id, {password: values.password}); - } - } - }}> - - {({ - values, - errors, - touched, - handleChange, - handleBlur, - handleSubmit, - isSubmitting, - }) => ( { subscriptionRef = comp @@ -523,26 +526,36 @@ const ActivateBuySubscriptionScreen = ({ return value }} labelExtractor={(value) => { - return `${I18n.t('MNT')}: ${value.amount} | ${I18n.t('FACT')}: ${value.invoice_id.slice(0, 7)} | ${I18n.t('ECH')}: ${value.deadline_number}` + return `${I18n.t('MNT')}: ${value.amount} | ${I18n.t('FACT')}: ${value.invoice_id.slice(0, 7)} | ${I18n.t('RESTE')}: ${value.remaining_amount}` }} /> - { - wallet.password_validation === "MAX" && - } - value={values.password} - onBlur={handleBlur('password')} - success={touched.password && !errors.password} - touched={touched.password} - error={errors.password} - /> - } + { + setFieldValue('amount', text); + }} + onBlur={handleBlur('amount')} + success={touched.amount && !errors.amount} + touched={touched.amount} + error={errors.amount} + /> + + } + value={values.password} + onBlur={handleBlur('password')} + success={touched.password && !errors.password} + touched={touched.password} + error={errors.password} + />