{"version":3,"sources":["constants/actiontypes/facilita/deathDeclaration.js","constants/webapi/auth.js","constants/models/credentials.js","constants/models/referentAuth.js","constants/models/facilita/child.js","actions/user-api.js","constants/utils/fileTypes.js","constants/webapi/user.js","constants/models/referentSelfcare.js","constants/actiontypes/auth.js","constants/models/facilita/representingUser.js","constants/models/facilita/letterHistory.js","constants/models/aggregateRating.js","constants/actiontypes/partner/partner.js","actions/partner/partner.js","constants/actiontypes/backoffice/user.js","constants/actiontypes/backoffice/clients.js","constants/api-config.js","constants/loadings/auth.js","constants/toasterText/auth.js","reducers/auth.js","constants/models/user.js","constants/models/address.js","constants/models/referent.js","constants/models/cardPaymentMethod.js","constants/models/sepaPaymentMethod.js","constants/loadings/user.js","constants/loadings/facilita/deathDeclaration.js","constants/models/invoice.js","constants/toasterText/user.js","constants/models/backofficeUser.js","reducers/user.js","constants/actiontypes/services.js","constants/models/servicePayloads/bankAccount.js","constants/models/servicePayloads/bank.js","constants/models/servicePayloads/generic.js","constants/models/servicePayloads/activity.js","constants/models/servicePayloads/etudiant.js","assets/images/svg/004-A-notaire.png","assets/images/svg/004-A-securitesocial.png","assets/images/svg/004-A-banque.svg","assets/images/svg/004-A-mutuelle.svg","assets/images/svg/100-assurance.svg","assets/images/svg/100-assurancehabitation.svg","assets/images/svg/004-A-fournisseureau.svg","assets/images/svg/004-A-fournisseurelectricite.svg","assets/images/svg/004-A-telephonemobile.svg","assets/images/svg/004-A-dgfip.png","assets/images/svg/004-A-Caf.svg","assets/images/svg/004-B-sport.svg","assets/images/svg/004-B-internet.svg","assets/images/svg/004-B-presse.svg","assets/images/svg/004-B-loisirs.svg","assets/images/svg/004-B-voiture.svg","assets/images/svg/004-B-transport.svg","assets/images/svg/004-B-entretienmaison.svg","assets/images/svg/004-B-securite.svg","assets/images/svg/004-B-soinesthetique.svg","assets/images/svg/004-B-domicile.svg","assets/images/svg/004-B-musique.svg","assets/images/svg/004-B-cartepaiment.svg","assets/images/svg/004-B-multimedia.svg","assets/images/svg/004-B-tech.svg","assets/images/svg/004-B-tv.svg","assets/images/svg/004-B-solidaire.svg","assets/images/svg/004-A-fournisseurgas.svg","assets/images/svg/020-facebook.svg","assets/images/svg/019-youtube.svg","assets/images/svg/018-instagram-sketched.svg","assets/images/svg/017-snapchat.svg","assets/images/svg/023 - X.svg","assets/images/svg/023-twitter-1.svg","assets/images/svg/022-linkedin.svg","assets/images/svg/021-whatsapp.svg","assets/images/svg/016-tiktok.svg","assets/images/svg/029-football-ball.svg","assets/images/svg/025-car.svg","assets/images/svg/026-boat.svg","assets/images/svg/027-motorcycle.svg","assets/images/svg/026-road.svg","assets/images/svg/028-pet-food.svg","assets/images/svg/024-furniture.svg","assets/images/svg/024-account.svg","assets/images/svg/004-B-autres.svg","assets/images/svg/104-social-media.svg","assets/images/svg/100-assurancelife.svg","assets/images/svg/100-death-assurance.svg","assets/images/svg/100-assurancefuneral.svg","assets/images/svg/035-id-card.svg","assets/images/svg/111-rocking-chair.png","assets/images/svg/034-clipboard.svg","assets/images/svg/066-job-interview.svg","assets/images/svg/060-bank-account.svg","assets/images/svg/043-contract.svg","assets/images/svg/079-house-1.svg","assets/images/svg/146-university.png","assets/images/svg/003-pets.png","constants/utils/connectionTypes.js","constants/models/servicePayloads/otherActivity.js","constants/models/servicePayloads/pension.js","constants/models/servicePayloads/lease.js","constants/models/servicePayloads/ehpad.js","constants/models/serviceData.js","constants/loadings/service.js","constants/toasterText/services.js","reducers/services.js","constants/actiontypes/referent.js","constants/loadings/referent.js","reducers/referent.js","reducers/facilita/index.js","constants/actiontypes/backoffice/impression.js","constants/loadings/backoffice/impression.js","constants/models/facilita/letter.js","reducers/backoffice/impression.js","constants/actiontypes/backoffice/partners.js","constants/loadings/backoffice/partners.js","constants/models/backoffice/partner.js","utils/toasterConfiguration.js","constants/toasterText/backofficePartners.js","reducers/backoffice/partners.js","constants/actiontypes/backoffice/dossiers.js","constants/loadings/backoffice/dossiers.js","reducers/backoffice/dossiers.js","constants/loadings/backoffice/clients.js","constants/toasterText/backofficeClients.js","reducers/backoffice/clients.js","constants/models/facilita/deathDeclaration.js","reducers/facilita/deathDeclaration.js","constants/actiontypes/relocationDeclaration.js","constants/loadings/relocationDeclaration.js","constants/models/events/school.js","constants/models/events/relocationChild.js","constants/models/events/relocationDeclaration.js","reducers/events/relocationDeclaration.js","constants/loadings/partner/partner.js","reducers/partner/index.js","constants/models/invoicePartner.js","reducers/backoffice/user.js","constants/actiontypes/backoffice/payments.js","constants/loadings/backoffice/payments.js","constants/models/paymentInvoice.js","constants/models/InvoiceLine.js","reducers/backoffice/payments.js","constants/actiontypes/backoffice/configuration.js","constants/loadings/backoffice/configuration.js","constants/toasterText/backofficeConfig.js","constants/utils/lifeEvents.js","reducers/backoffice/configuration.js","reducers/index.js","utils/history.js","serviceWorker.js","assets/images/brand/assista_horizontal-punchout.svg","landing/navbar.js","landing/footer.js","assets/images/placeholder/photo-woman.jpeg","assets/images/placeholder/landigCTA.png","actions/auth-api.js","landing/index.js","legal/_common/navbar.js","legal/_common/footer.js","legal/privacy/index.js","legal/terms/index.js","faqs/_common/navbar.js","faqs/_common/footer.js","faqs/faq/index.js","auth/_common/navbar.js","auth/signup/_common/help.js","auth/signup/_common/navbar.js","assets/images/brand/assista.svg","auth/signup/_common/skipRegister.js","constants/utils/regexFields.js","_common/loadingState.js","_common/profile/index.js","auth/signup/step1/index.js","assets/images/svg/001-W-celibataire.svg","assets/images/svg/001-W-unions.svg","assets/images/svg/001-W-divorcee.svg","assets/images/svg/001-W-veuve.svg","assets/images/svg/001-M-celibataire.svg","assets/images/svg/001-M-unions.svg","assets/images/svg/001-M-divorcee.svg","assets/images/svg/001-M-veuve.svg","assets/images/svg/002-children.svg","assets/images/svg/002-nochildren.svg","assets/images/svg/003-nopets.png","assets/images/svg/090-flats.svg","assets/images/svg/069-home.svg","assets/images/svg/093-palace.svg","assets/images/svg/087-hotel.svg","assets/images/svg/091-house-2.svg","assets/images/svg/092-camping-tent.svg","_common/dateWithModal/index.js","_common/personal/departamentsList.js","_common/personal/deleteModal.js","_common/personal/index.js","auth/signup/step2/index.js","assets/images/svg/049-family.svg","assets/images/svg/051-parents.svg","_common/referent/deleteModal.js","_common/referent/editReferent.js","_common/referent/collapsedReferent.js","assets/images/svg/076-envelope.svg","_common/referent/index.js","auth/signup/_common/message.js","auth/signup/step3/index.js","auth/signup/step4/index.js","assets/images/placeholder/Features-Overview.svg","assets/images/svg/039-file.svg","assets/images/svg/005-arrow-down-dashed.svg","assets/images/svg/005-arrow-down-direct.svg","assets/images/placeholder/pdf-placeholder.jpg","auth/signup/step5/index.js","constants/toasterText/configurations.js","constants/toasterText/paymentMethodErrors.js","assets/images/svg/142-credit-salary.svg","assets/images/svg/142-virement.svg","_common/payments2/modal/addCreditCardForm.js","assets/images/svg/053-credit-cards.svg","_common/payments2/main/creditCardTile.js","assets/images/svg/053-online-payment.svg","_common/payments2/modal/addVirementForm.js","_common/payments2/main/virementTile.js","_common/payments2/modal/addPaymentMethodModal.js","_common/payments2/main/index.js","_common/payments2/index.js","auth/signup/step6/discountCode.js","auth/signup/step6/index.js","auth/_common/cookies.js","auth/signup/index.js","assets/images/placeholder/Signin-ilustration.svg","auth/signin/index.js","auth/referent/form/collapsedReferent.js","constants/webapi/postalcodeCity.js","_common/postalCityInput.js","constants/webapi/userRepresentativeSelfcare.js","actions/referent-api.js","auth/referent/form/editReferent.js","auth/referent/form/index.js","auth/referent/password/index.js","assets/images/svg/054-terms.svg","auth/referent/link/index.js","assets/images/placeholder/YoungReferent-ilustration.svg","auth/referent/index.js","auth/identity/init/index.js","auth/identity/code/index.js","assets/images/placeholder/confirmation-ilustration.svg","auth/identity/index.js","auth/password/recover/index.js","auth/password/new/index.js","assets/images/placeholder/Password-illustration.svg","auth/password/index.js","auth/signin/code.js","assets/images/placeholder/partner.jpg","constants/webapi/backoffice/partners.js","actions/auth/partnersInvitation.js","auth/partner/invitation/steps/step0.js","auth/partner/invitation/steps/step1.js","auth/partner/invitation/steps/step2.js","auth/partner/invitation/steps/step3.js","auth/partner/invitation/index.js","auth/partner/signin/code.js","auth/partner/signin/index.js","auth/partner/index.js","auth/partner/onboarding/_common/help.js","auth/partner/onboarding/_common/navbar.js","auth/partner/onboarding/step1/index.js","auth/partner/onboarding/step2/index.js","auth/partner/onboarding/step3/index.js","auth/partner/onboarding/step4/index.js","auth/partner/onboarding/step5/index.js","auth/partner/onboarding/step6/discountCode.js","auth/partner/onboarding/step6/index.js","auth/partner/onboarding/index.js","auth/index.js","_common/avatar.js","app/anticipa/_common/navbar.js","app/anticipa/_common/help.js","actions/services-api.js","constants/webapi/facilita.js","actions/events-api.js","app/anticipa/_common/services/activityDetails/index.js","app/anticipa/_common/services/activity.js","app/anticipa/_common/services/educationInstitution/educationInstitutionDetails.js","app/anticipa/_common/services/educationInstitution/index.js","app/anticipa/_common/services/pension/customPensionForm.js","app/anticipa/_common/services/pension/pensionDetails.js","app/anticipa/_common/services/pension/index.js","app/anticipa/_common/services/otherActivity/otherActiviteDetails.js","app/anticipa/_common/services/otherActivity/index.js","app/anticipa/_common/services/tenant/leaseDetails.js","app/anticipa/_common/services/tenant/index.js","app/anticipa/_common/services/ehpad/ehpadDetails.js","app/anticipa/_common/services/ehpad/index.js","app/anticipa/_common/serviceNavbar/calculateProgress.js","app/anticipa/_common/serviceNavbar/checkboxCard.js","app/anticipa/_common/serviceNavbar/index.js","constants/models/branch.js","constants/models/serviceInfo.js","app/anticipa/_common/services/defaultService/searchService.js","app/anticipa/_common/services/defaultService/box.js","app/anticipa/_common/services/defaultService/customBox.js","app/anticipa/_common/services/defaultService/index.js","assets/images/placeholder/ServicesUploading-ilustration.png","app/anticipa/_common/emptyState.js","app/anticipa/_common/services/bankDetails/customBase.js","assets/images/svg/060-bank-check.svg","app/anticipa/_common/services/bankDetails/cardColumn.js","app/anticipa/_common/services/bankDetails/card.js","constants/models/servicePayloads/bankAccountType.js","app/anticipa/_common/services/bankDetails/placement.js","app/anticipa/_common/services/bankDetails/assurance.js","app/anticipa/_common/services/bankDetails/credit.js","assets/images/svg/016-account-card.svg","app/anticipa/_common/services/bankDetails/compteCurrent.js","app/anticipa/_common/services/bankDetails/index.js","app/anticipa/_common/services/branchService/branchBox.js","app/anticipa/_common/services/branchService/branchBase.js","app/anticipa/_common/services/branchService/genericDetails.js","app/anticipa/_common/services/branchService/customBranch.js","app/anticipa/_common/services/branchService/index.js","app/anticipa/_common/servicesEdit.js","app/_common/upload-area.js","app/anticipa/_common/message.js","app/anticipa/onboard/gradientSvg.js","app/anticipa/onboard/serviceCard.js","app/anticipa/onboard/index.js","app/anticipa/dashboard/box.js","app/anticipa/dashboard/deleteModal.js","app/anticipa/dashboard/index.js","app/anticipa/referent/index.js","app/anticipa/communes/index.js","app/anticipa/personal/serviceCard.js","app/anticipa/personal/index.js","actions/facilita-api.js","app/_common/partager.js","app/_common/modalEditFolder.js","app/_common/modalAddFile.js","app/_common/modalDelete.js","app/_common/confirmation.js","app/_common/modalEditFileDescription.js","app/anticipa/biblioteque/modalRecipientEmail.js","app/anticipa/biblioteque/index.js","assets/images/svg/109-money.svg","app/anticipa/settings/_common/header.js","assets/images/svg/111-archives.svg","app/anticipa/settings/profile/index.js","assets/images/svg/074-notification-1.svg","assets/images/svg/073-alarm-1.svg","assets/images/svg/075-mail.svg","app/anticipa/settings/notifications/index.js","assets/images/svg/047-ticket.svg","app/anticipa/settings/facturation/emptyState.js","app/anticipa/settings/facturation/invoiceList.js","app/anticipa/settings/facturation/index.js","app/anticipa/settings/paiement/index.js","app/anticipa/settings/securite/index.js","app/anticipa/settings/index.js","app/anticipa/events/relocation/declareModal/_common/navbar.js","app/anticipa/events/relocation/_common/path.js","app/anticipa/events/relocation/declareModal/step1/index.js","app/anticipa/events/relocation/declareModal/step2/forms/formCivil.js","app/anticipa/events/relocation/declareModal/step2/civil.js","app/anticipa/events/relocation/declareModal/step2/forms/formAddress.js","app/anticipa/events/relocation/declareModal/step2/address.js","assets/images/svg/002-homechildren.svg","app/anticipa/events/relocation/declareModal/step2/forms/formFamily.js","app/anticipa/events/relocation/declareModal/step2/family.js","app/anticipa/events/relocation/declareModal/step2/forms/formFamilyEnv.js","app/anticipa/events/relocation/declareModal/step2/familyEnv.js","app/anticipa/events/relocation/declareModal/step2/forms/formSituationPro.js","app/anticipa/events/relocation/declareModal/step2/situationPro.js","assets/images/svg/110-hotel-1.svg","app/anticipa/events/relocation/declareModal/step2/forms/formActivity/activitySection.js","app/anticipa/events/relocation/declareModal/step2/forms/formActivity/index.js","app/anticipa/events/relocation/declareModal/step2/activity.js","app/anticipa/events/relocation/declareModal/step2/forms/formOtherActivity/otherActivitySection.js","app/anticipa/events/relocation/declareModal/step2/forms/formOtherActivity/index.js","app/anticipa/events/relocation/declareModal/step2/otherActivity.js","app/anticipa/events/relocation/declareModal/step2/forms/formRetraite/retraiteCustomForm.js","app/anticipa/events/relocation/declareModal/step2/forms/formRetraite/retraiteSection.js","app/anticipa/events/relocation/declareModal/step2/forms/formRetraite/index.js","assets/images/svg/105-profile.svg","app/anticipa/events/relocation/declareModal/step2/retraite.js","app/anticipa/events/relocation/declareModal/step2/forms/formEducationInstitution/educationInstitutionSection.js","app/anticipa/events/relocation/declareModal/step2/forms/formEducationInstitution/index.js","app/anticipa/events/relocation/declareModal/step2/educationInstitution.js","app/anticipa/events/relocation/declareModal/step2/index.js","app/anticipa/events/relocation/declareModal/step3/index.js","assets/images/svg/036-retirement.svg","app/anticipa/events/relocation/declareModal/step4/index.js","app/anticipa/events/relocation/declareModal/index.js","constants/utils/letterProgressStage.js","app/facilita/dossier/_common/modalValidation.js","app/facilita/dossier/_common/modalCommencer.js","app/anticipa/events/relocation/dashboard/dashboardCard.js","app/facilita/dossier/_common/serviceEdit/services/activity/activityDetails.js","app/facilita/dossier/_common/serviceEdit/services/activity/index.js","app/facilita/dossier/_common/serviceEdit/services/pension/customPensionForm.js","app/facilita/dossier/_common/serviceEdit/services/pension/pensionDetails.js","app/facilita/dossier/_common/serviceEdit/services/pension/index.js","app/facilita/dossier/_common/serviceEdit/services/otherActivity/otherActiviteDetails.js","app/facilita/dossier/_common/serviceEdit/services/otherActivity/index.js","app/facilita/dossier/_common/serviceEdit/services/tenant/leaseDetails.js","app/facilita/dossier/_common/serviceEdit/services/tenant/index.js","app/facilita/dossier/_common/serviceEdit/services/defaultService/searchService.js","app/facilita/dossier/_common/serviceEdit/services/defaultService/box.js","app/facilita/dossier/_common/serviceEdit/services/defaultService/customBox.js","app/facilita/dossier/_common/serviceEdit/services/defaultService/index.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/customBase.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/cardColumn.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/card.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/placement.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/assurance.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/credit.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/compteCurrent.js","app/facilita/dossier/_common/serviceEdit/services/bankDetails/index.js","app/facilita/dossier/_common/serviceEdit/services/branchService/branchBox.js","app/facilita/dossier/_common/serviceEdit/services/branchService/branchBase.js","app/facilita/dossier/_common/serviceEdit/services/branchService/genericDetails.js","app/facilita/dossier/_common/serviceEdit/services/branchService/customBranch.js","app/facilita/dossier/_common/serviceEdit/services/branchService/index.js","app/facilita/dossier/_common/serviceEdit/emptyState.js","app/facilita/dossier/_common/serviceEdit/services/ehpad/ehpadDetails.js","app/facilita/dossier/_common/serviceEdit/services/ehpad/index.js","app/facilita/dossier/_common/serviceEdit/services/educationInstitution/educationInstitutionDetails.js","app/facilita/dossier/_common/serviceEdit/services/educationInstitution/index.js","app/facilita/dossier/_common/serviceEdit/serviceNavbar/checkboxCard.js","app/facilita/dossier/_common/serviceEdit/serviceNavbar/index.js","app/facilita/dossier/_common/serviceEdit/modalServiceWarning.js","app/facilita/dossier/_common/serviceEdit/index.js","app/anticipa/events/relocation/dashboard/terminateModal.js","app/anticipa/events/relocation/dashboard/index.js","app/anticipa/events/_common/deleteModal.js","app/anticipa/events/relocation/index.js","app/anticipa/events/majority/index.js","app/anticipa/events/marriage/index.js","app/anticipa/events/birth/index.js","app/anticipa/events/divorce/index.js","app/anticipa/events/_common/header.js","app/anticipa/events/index.js","app/anticipa/index.js","app/facilita/_common/navbar.js","app/facilita/_common/help.js","app/facilita/_common/path.js","app/facilita/landing/index.js","app/facilita/settings/_common/header.js","app/facilita/settings/profile/index.js","app/facilita/settings/securite/index.js","app/facilita/settings/invoicing/emptyState.js","app/facilita/settings/invoicing/invoiceList.js","app/facilita/settings/invoicing/index.js","app/facilita/settings/index.js","assets/images/placeholder/loading-primary.png","assets/images/placeholder/loading-secondary.png","app/facilita/dossier/loading/index.js","app/facilita/dossier/dashboard/dashboardCard.js","app/facilita/dossier/dashboard/index.js","app/facilita/dossier/dashboard-anticipa/index.js","app/facilita/dossier/profile/civilForm.js","app/facilita/dossier/profile/familySituationForm.js","app/facilita/declarer/step3/modals/modalFamilyEnv.js","app/facilita/dossier/profile/childrenForm.js","app/facilita/dossier/profile/residenceForm.js","app/facilita/dossier/profile/professionalSituationForm.js","app/facilita/dossier/profile/index.js","app/facilita/dossier/referents/colapsedView.js","app/facilita/dossier/referents/deleteModal.js","app/facilita/dossier/referents/editView.js","app/facilita/dossier/referents/index.js","app/facilita/dossier/comunes/index.js","app/facilita/dossier/personal/serviceCard.js","app/facilita/dossier/personal/index.js","app/facilita/dossier/biblioteque/index.js","app/facilita/dossier/index.js","app/facilita/declarer/_common/navbar.js","app/facilita/declarer/step1/index.js","app/facilita/declarer/step2/index.js","app/facilita/declarer/step3/modals/modalCivil.js","app/facilita/declarer/step3/civil.js","app/facilita/declarer/step3/modals/modalAddress.js","app/facilita/declarer/step3/address.js","app/facilita/declarer/step3/modals/modalFamily.js","app/facilita/declarer/step3/family.js","app/facilita/declarer/step3/familyEnv.js","app/facilita/declarer/step3/modals/modalSituationPro.js","app/facilita/declarer/step3/situationPro.js","app/facilita/declarer/step3/modals/modalActivity/activitySection.js","app/facilita/declarer/step3/modals/modalActivity/index.js","app/facilita/declarer/step3/activity.js","app/facilita/declarer/step3/modals/modalOtherActivity/otherActivitySection.js","app/facilita/declarer/step3/modals/modalOtherActivity/index.js","app/facilita/declarer/step3/otherActivity.js","app/facilita/declarer/step3/modals/modalRetraite/retraiteCustomForm.js","app/facilita/declarer/step3/modals/modalRetraite/retraiteSection.js","app/facilita/declarer/step3/modals/modalRetraite/index.js","app/facilita/declarer/step3/retraite.js","app/facilita/declarer/step3/index.js","assets/images/svg/031-hearse.svg","assets/images/svg/037-headstone.svg","app/facilita/declarer/step4/index.js","app/facilita/declarer/_common/processfinish.js","app/facilita/declarer/step5/index.js","app/facilita/declarer/index.js","app/facilita/onboarding/navbar.js","app/facilita/onboarding/steps/step1/index.js","app/facilita/onboarding/steps/step2/demarchesCommunes.js","app/facilita/onboarding/steps/step2/demarchesPersonalisees.js","app/facilita/onboarding/steps/step2/index.js","app/facilita/onboarding/steps/step3/index.js","app/facilita/onboarding/steps/step4/billedByPartner.js","assets/images/placeholder/Features-mode.svg","app/facilita/onboarding/steps/step4/billedByPlatform.js","app/facilita/onboarding/steps/step4/index.js","app/facilita/onboarding/index.js","app/facilita/index.js","partner/_common/navbar.js","assets/images/svg/112-person-white.svg","assets/images/svg/113-funeral.svg","assets/images/svg/145-customer-service.svg","partner/_common/ajouterDossier/dossierTypeSection.js","partner/_common/ajouterDossier/referentSection.js","partner/_common/ajouterDossier/personalInformationSection.js","partner/_common/ajouterDossier/header.js","assets/images/svg/143-envelope.svg","assets/images/svg/059-cash.svg","assets/images/svg/060-bank.svg","assets/images/svg/144-print.svg","partner/_common/ajouterDossier/lettersSendingModeSection.js","partner/_common/ajouterDossier/index.js","assets/images/svg/057-contract-1.svg","partner/dashboard/modalCalendy.js","partner/dashboard/index.js","partner/_common/closeProfile.js","partner/_common/donnesProfile.js","partner/_common/paySummary.js","partner/facilita/main/header.js","partner/facilita/main/filter.js","partner/facilita/main/index.js","actions/backoffice/partners.js","partner/facilita/index.js","partner/serenita/main/header.js","partner/serenita/main/filter.js","partner/serenita/main/index.js","partner/serenita/index.js","partner/_common/regleModal.js","partner/anticipa/main/header.js","partner/anticipa/main/filter.js","partner/anticipa/main/index.js","partner/anticipa/index.js","partner/settings/_common/addUser.js","assets/images/svg/114-users.svg","assets/images/svg/115-bank.svg","assets/images/svg/101-file.svg","assets/images/svg/116-cash.svg","assets/images/svg/108-employee.svg","partner/settings/_common/header.js","constants/webapi/backoffice/clients.js","actions/backoffice/clients.js","partner/_common/deleteUser.js","partner/settings/profile/index.js","partner/settings/securite/index.js","partner/settings/paiement/index.js","partner/settings/_common/deleteUser.js","partner/settings/users/index.js","partner/settings/index.js","partner/paiement/main/table/filter.js","partner/paiement/main/table/nav.js","partner/paiement/main/table/row.js","partner/paiement/main/table/index.js","partner/paiement/main/index.js","partner/paiement/index.js","backoffice/_common/navbar.js","constants/webapi/backoffice/impression.js","actions/backoffice/impression.js","backoffice/impression/ImpressionTableHeader.js","backoffice/impression/ImpressionTableLine.js","backoffice/impression/index.js","constants/webapi/backoffice/dossiers.js","actions/backoffice/dossiers.js","assets/images/svg/088-duo.svg","backoffice/dossiers/main/filter.js","backoffice/dossiers/main/pagination.js","backoffice/dossiers/main/index.js","backoffice/_common/printerDoc.js","backoffice/dossiers/_common/alertProfile.js","assets/images/svg/056-file-2.svg","actions/backoffice/user.js","backoffice/dossiers/_common/processDeces.js","backoffice/dossiers/_common/donnesProfile.js","backoffice/dossiers/_common/closeProfile.js","backoffice/dossiers/_common/historiqueProfile.js","backoffice/dossiers/_common/EditProfile.js","backoffice/dossiers/_common/printModal.js","backoffice/dossiers/detail/card.js","backoffice/dossiers/_common/previewDoc.js","backoffice/dossiers/_common/previewDocLetter.js","backoffice/dossiers/_common/paySummary.js","backoffice/dossiers/detail/index.js","backoffice/dossiers/index.js","backoffice/_common/deleteUser.js","backoffice/clients/main/index.js","backoffice/clients/index.js","backoffice/partners/main/header.js","backoffice/partners/main/table/header.js","backoffice/partners/main/table/row.js","backoffice/partners/_common/AddPartner.js","backoffice/partners/main/table/filters.js","backoffice/partners/main/table/index.js","backoffice/partners/_common/ExportPartner.js","backoffice/partners/_common/DeletePartner.js","backoffice/partners/main/index.js","backoffice/partners/detail/_common/nav.js","backoffice/partners/detail/_common/AddPartnerUser.js","backoffice/partners/detail/_common/DeletePartnerUser.js","backoffice/partners/detail/users/table/header.js","backoffice/partners/detail/users/table/row.js","backoffice/partners/detail/users/table/nav.js","backoffice/partners/detail/users/table/index.js","assets/images/svg/112-person.svg","backoffice/partners/detail/users/index.js","backoffice/partners/detail/establishment/table/header.js","backoffice/partners/detail/establishment/table/row.js","backoffice/partners/detail/establishment/table/nav.js","backoffice/partners/detail/establishment/table/index.js","backoffice/partners/detail/_common/AddPartnerEstablishment.js","backoffice/partners/detail/_common/DeletePartnerEstablishment.js","backoffice/partners/detail/establishment/index.js","backoffice/partners/detail/index.js","backoffice/partners/index.js","constants/webapi/backoffice/payments.js","actions/backoffice/payments.js","backoffice/paiement/_common/header.js","backoffice/paiement/clients/table/filter.js","backoffice/paiement/clients/table/nav.js","backoffice/paiement/clients/table/row.js","backoffice/paiement/clients/table/index.js","backoffice/paiement/clients/index.js","backoffice/paiement/_common/paySummary/table/header.js","backoffice/paiement/_common/paySummary/table/nav.js","backoffice/paiement/_common/paySummary/table/row.js","backoffice/paiement/_common/paySummary/table/index.js","backoffice/paiement/_common/paySummary/index.js","backoffice/paiement/partners/table/filter.js","backoffice/paiement/partners/table/nav.js","backoffice/paiement/partners/table/row.js","backoffice/paiement/partners/table/index.js","backoffice/paiement/partners/index.js","backoffice/paiement/index.js","backoffice/settings/_common/addUser.js","backoffice/settings/profile/index.js","backoffice/settings/_common/EditUser.js","backoffice/settings/index.js","constants/webapi/backoffice/configuration.js","actions/backoffice/configuration.js","backoffice/configuration/_common/header.js","utils/configureStore.js","backoffice/configuration/general/index.js","backoffice/configuration/services/serviceModal.js","backoffice/configuration/services/table/filter.js","backoffice/configuration/services/table/nav.js","backoffice/configuration/services/table/row.js","backoffice/configuration/services/table/index.js","backoffice/configuration/services/editServiceModal.js","backoffice/configuration/services/deleteServiceModal.js","backoffice/configuration/services/index.js","backoffice/configuration/index.js","index.js","legal/index.js","faqs/index.js","app/index.js","partner/index.js","backoffice/index.js","constants/models/addressInfo.js","utils/misc.js","constants/webapi/services.js","constants/webapi/partner/partner.js","constants/models/documentFile.js","constants/paginations/paginationLimit.js","constants/models/service.js","constants/actiontypes/user.js"],"names":["FETCH_DECLARATION_REQUEST","FETCH_DECLARATION_SUCCESS","FETCH_DECLARATION_FAILURE","CREATE_DECLARATION_REQUEST","CREATE_DECLARATION_SUCCESS","CREATE_DECLARATION_FAILURE","UPDATE_DECLARATION_REQUEST","UPDATE_DECLARATION_SUCCESS","UPDATE_DECLARATION_FAILURE","UPLOAD_FILE_REQUEST","UPLOAD_FILE_SUCCESS","UPLOAD_FILE_FAILURE","FETCH_FILES_REQUEST","FETCH_FILES_SUCCESS","FETCH_FILES_FAILURE","DOWNLOAD_FILE_REQUEST","DOWNLOAD_FILE_SUCCESS","DOWNLOAD_FILE_FAILURE","DELETE_FILE_REQUEST","DELETE_FILE_SUCCESS","DELETE_FILE_FAILURE","EDIT_DOCUMENT_SUCCESS","SHARE_FILES_REQUEST","SHARE_FILES_SUCCESS","SHARE_FILES_FAILURE","FETCH_MESSAGE_REQUEST","FETCH_MESSAGE_SUCCESS","FETCH_USER_SERVICES_REQUEST","FETCH_USER_SERVICES_SUCCESS","FETCH_USER_SERVICES_FAILURE","ADD_USER_SERVICE_REQUEST","ADD_USER_SERVICE_SUCCESS","ADD_USER_SERVICE_FAILURE","ADD_USER_SERVICE_BATCH_REQUEST","ADD_USER_SERVICE_BATCH_SUCCESS","ADD_USER_SERVICE_BATCH_FAILURE","DELETE_USER_SERVICE_REQUEST","DELETE_USER_SERVICE_SUCCESS","DELETE_USER_SERVICE_FAILURE","FETCH_USER_SERVICES_DATA_REQUEST","FETCH_USER_SERVICES_DATA_SUCCESS","FETCH_USER_SERVICES_DATA_FAILURE","CREATE_USER_SERVICES_DATA_REQUEST","CREATE_USER_SERVICES_DATA_SUCCESS","CREATE_USER_SERVICES_DATA_FAILURE","UPDATE_USER_SERVICES_DATA_REQUEST","UPDATE_USER_SERVICES_DATA_SUCCESS","UPDATE_USER_SERVICES_DATA_FAILURE","DELETE_USER_SERVICES_DATA_REQUEST","DELETE_USER_SERVICES_DATA_SUCCESS","DELETE_USER_SERVICES_DATA_FAILURE","SET_COMPLETE_USER_SERVICES_DATA_REQUEST","SET_COMPLETE_USER_SERVICES_DATA_SUCCESS","SET_COMPLETE_USER_SERVICES_DATA_FAILURE","GENERATE_USER_LETTER_REQUEST","GENERATE_USER_LETTER_SUCCESS","GENERATE_USER_LETTER_FAILURE","GENERATE_USER_LETTERS_REQUEST","GENERATE_USER_LETTERS_SUCCESS","GENERATE_USER_LETTERS_FAILURE","FETCH_USER_LETTERS_REQUEST","FETCH_USER_LETTERS_SUCCESS","FETCH_USER_LETTERS_FAILURE","UPDATE_USER_LETTER_REQUEST","UPDATE_USER_LETTER_SUCCESS","UPDATE_USER_LETTER_FAILURE","FETCH_REFERENTS_REQUEST","FETCH_REFERENTS_SUCCESS","FETCH_REFERENTS_FAILURE","CREATE_REFERENT_REQUEST","CREATE_REFERENT_SUCCESS","CREATE_REFERENT_FAILURE","UPDATE_REFERENT_REQUEST","UPDATE_REFERENT_SUCCESS","UPDATE_REFERENT_FAILURE","DELETE_REFERENT_REQUEST","DELETE_REFERENT_SUCCESS","DELETE_REFERENT_FAILURE","FETCH_ONBOARDINGUSER_REQUEST","FETCH_ONBOARDINGUSER_SUCCESS","FETCH_ONBOARDINGUSER_FAILURE","UPDATE_ONBOARDINGUSER_REQUEST","UPDATE_ONBOARDINGUSER_SUCCESS","UPDATE_ONBOARDINGUSER_FAILURE","FETCH_ONBOARDINGUSER_ADDRESS_REQUEST","FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS","FETCH_ONBOARDINGUSER_ADDRESS_FAILURE","UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST","UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS","UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE","UPDATE_ONBOARDINGSTEP_REQUEST","UPDATE_ONBOARDINGSTEP_SUCCESS","UPDATE_ONBOARDINGSTEP_FAILURE","REPRESENTATIVE_INVITATION_REQUEST","REPRESENTATIVE_INVITATION_SUCCESS","REPRESENTATIVE_INVITATION_FAILURE","SERVER_ADDR_V1","EndPoints","backendHost","getAuthenticationUrl","sessionStorage","removeItem","authenticationUrl","authenticationTwoFactorUrl","registerUserUrl","resetPasswordEmail","setNewPassword","id","sendOTPUrl","verifyOTPUrl","module","exports","data","credentials","this","phoneNumber","email","password","referentAuth","twoFactorAuthenticationToken","jwtToken","child","birthDate","isHandicaped","fetchUserById","dispatch","type","ActionTypes","axios","urls","then","response","catch","error","undefined","status","statusText","window","location","updateUser","user","R","isEnabled","updateUserSecurity","changePhoneNumber","updateOnBoardingStep","step","addUserAddress","address","updateAddress","getUserAddress","userId","getUserRepresentatives","addUserRepresentative","representative","tmpRef","updateRepresentative","referent","deleteRepresentative","getUserRepresentativeAddress","addUserRepresentativeAddress","referentId","updateUserRepresentativeAddress","deleteService","service","getUserServices","addUserService","addUserServicesBatch","services","updateFileDescription","document","description","filePath","fileName","fileType","file","uploadDocument","FormData","config","headers","credential","name","append","documentName","getDocuments","shouldDispatch","path","getDocumentsProfile","Promise","resolve","reject","downloadDocument","responseType","Blob","fileurl","URL","webkitURL","createObjectURL","isMobile","link","createElement","href","download","body","appendChild","click","removeChild","open","revokeObjectURL","deleteDocument","updateUserMessage","message","getUserMessage","getProfilePicture","profilePictureName","Buffer","toString","deleteProfilePicture","pictureName","toBase64","reader","FileReader","readAsDataURL","onload","result","onerror","uploadProfilePicture","toReturnBase64","a","readDoc","FileTypes","ProfilePicture","resetUser","setComplete","addPaymentMethod","paymentMethodId","paymentMethod","getSetupIntent","getCurrentPrices","processPayment","discountCode","setupFeeInstallments","getBillingCustomerId","fetchInvoices","fetchPartnerCustomization","partnerId","changePhoneNumberSecurity","AuthActionTypes","newPhoneNumber","reason","Error","updateUserSecurityInfo","otpCode","oTPCode","errors","hasOwnProperty","updateUserEmailAndPassword","newPassword","newEmail","currentPassword","GetPaymentIntentsSecretKey","secret","DeathCertificate","Signature","Letter","TransportationInvoice","FuneralServicesInvoice","UserRepresentativeHeirProof","UserRepresentativeRib","UserRepresentativeIdCard","UserRepresentativeHealthCertificate","UserRepresentativeFiscalSituation","UserRepresentativeInvalidPensionCertificate","UserRepresentativeWorkDiseasePensionCertificate","UserRepresentativeWorkIncidentPensionCertificate","UserRepresentativeRetiredPensionCertificate","UserPensionProof","UserSocialSecurityCard","UserSocialSecurityRightCertificate","UserRetiredPensionCertificate","UserInvalidPensionCertificate","UserChildrenIdCard","UserIdCard","UserFamilyRecordBook","UserDonation","Other","Folder","FolderRH","Payslip","UserProofOfAddress","LastTaxNotice","BankAccountSheet","Deposit","ThreeMonthOldProofOfAddress","VaccinationCard","RegistrationCertificate","RelocationExpenses","FamilyBook","WorkContract","MedicalCertificate","IdCard","ProtectiveMeasure","VisualImpairment","SocialSecurityCertificate","LeaseContract","YearOldProofOfAddress","HigherEducationRegistration","FiletypeToDisplayName","isFacilita","userByIdUrl","userSecurityByIdUrl","changePhoneNumberUrl","userAddressByIdUrl","userAddressByIdWithIdUrl","addressId","userByPhoneNumberUrl","userBillingCustomerIdByIdUrl","userSoftDeleteByIdUrl","userRepresentativesUrlById","userRepresentativesUrl","userRepresentativeByIdUrl","userRepresentativeAdressByIdUrl","userRepresentativeAdressIdByIdUrl","userServicesUrl","userServiceByIdUrl","serviceId","userServicesBatchUrl","userDocumentUrl","userDocumentsUrl","userMessageUrl","userMessageByIdUrl","addPaymentMethodUrl","validateDiscountCodeUrl","removePaymentMethodUrl","getCurrentPricesUrl","getSetupIntentByIdUrl","processPaymentdUrl","updateOnBoardingStepUrl","updateOnBoardingStepByIdUrl","userShareDocument","completeById","getInvoicesUrl","getInvoicesByUserIdUrl","getRecipientInvoicesByIdUrl","declareDeathById","userServiceDataUrl","serviceType","lifeEvent","getPartnerCustomizationUrl","addPaymentMethodIntents","getUserLifeEventsByIdUrl","declareRelocationByIdUrl","generatePrintFile","gender","firstName","lastName","Date","representativeType","representedFirstName","representedLastName","representedRelation","createdByRepresentative","representedCreatedByRepresentative","AUTH_USER_REQUEST","AUTH_USER_SUCCESS","AUTH_USER_FAILURE","REGISTER_USER_REQUEST","REGISTER_USER_SUCCESS","REGISTER_USER_FAILURE","RESET_AUTH_STATE","RESET_PASSWORD_REQUEST","RESET_PASSWORD_SUCCESS","RESET_PASSWORD_FAILURE","SET_NEWPASSWORD_REQUEST","SET_NEWPASSWORD_SUCCESS","SET_NEWPASSWORD_FAILURE","SEND_MFA_CODE_REQUEST","SEND_MFA_CODE_SUCCESS","SEND_MFA_CODE_FAILURE","SEND_OTP_CODE_REQUEST","SEND_OTP_CODE_SUCCESS","SEND_OTP_CODE_FAILURE","VERIFY_OTP_REQUEST","VERIFY_OTP_SUCCESS","VERIFY_OTP_FAILURE","representing","processNumber","isDeceased","hasCompletedDossier","hasCompletedOnBoarding","hasValidatedAllLetters","etablissementId","hasDocumentSending","letterHistory","date","letterProgressStage","details","aggregate","ratingCount","ratingValue","FETCH_PARTNER_REQUEST","FETCH_PARTNER_SUCCESS","FETCH_PARTNER_FAILURE","FETCH_ETABLISSEMENT_LIST_REQUEST","FETCH_ETABLISSEMENT_LIST_SUCCESS","FETCH_ETABLISSEMENT_LIST_FAILURE","FETCH_ETABLISSEMENT_REQUEST","FETCH_ETABLISSEMENT_SUCCESS","FETCH_ETABLISSEMENT_FAILURE","FETCH_ANTICIPA_REQUEST","FETCH_ANTICIPA_SUCCESS","FETCH_ANTICIPA_FAILURE","FETCH_FACILITA_REQUEST","FETCH_FACILITA_SUCCESS","FETCH_FACILITA_FAILURE","FETCH_SERENITA_REQUEST","FETCH_SERENITA_SUCCESS","FETCH_SERENITA_FAILURE","FETCH_USERS_REQUEST","FETCH_USERS_SUCCESS","FETCH_USERS_FAILURE","CREATE_USER_REQUEST","CREATE_USER_SUCCESS","CREATE_USER_FAILURE","PAY_USER_INVOICE_REQUEST","PAY_USER_INVOICE_SUCCESS","PAY_USER_INVOICE_FAILURE","GetPartnerById","PartnerActionTypes","PartnerUrl","GetEtablissementsByPartnerId","GetPartnerLogo","GetEtablissementById","GetUsersByPartnerIdAndEtablissementId","pageNumber","searchTerm","startDate","endDate","sortByTerm","sortDesc","page","parseInt","isNaN","GetUsersByPartnerIdAndEtablissementIdDefaultAnticipa","pageSize","GetUsersByPartnerIdAndEtablissementIdDefaultFacilita","GetUsersByPartnerIdAndEtablissementIdDefaultSerenita","GetUsersByPartnerIdAndEtablissementIdDefault","CreateUsersByPartnerId","userDto","AddUserAddress","addressDto","AddReferentToUserId","referentDto","SendUserActivationEmailByPartnerId","role","GetEtablissementInvoicesToPay","GetEtablissementInvoicesToBill","GetPartnerInvoicesToPay","GetPartnerInvoicesToBill","resetPassword","ActionTypesAuth","authUrls","ActionTypesClients","userUrls","closeDossier","ActionTypesBO","payUserInvoice","invoiceId","RESET_BACKOFFICER_USER_STATE","FETCH_BACKOFFICE_USER_REQUEST","FETCH_BACKOFFICE_USER_SUCCESS","FETCH_BACKOFFICE_USER_FAILURE","FETCH_BACKOFFICE_USER_INVOICES_REQUEST","FETCH_BACKOFFICE_USER_INVOICES_SUCCESS","FETCH_BACKOFFICE_USER_INVOICES_FAILURE","UPDATE_BACKOFFICE_USER_REQUEST","UPDATE_BACKOFFICE_USER_SUCCESS","UPDATE_BACKOFFICE_USER_FAILURE","DELETE_BACKOFFICE_USER_REQUEST","DELETE_BACKOFFICE_USER_SUCCESS","DELETE_BACKOFFICE_USER_FAILURE","GENERATE_PRINT_REQUEST","GENERATE_PRINT_SUCCESS","GENERATE_PRINT_FAILURE","FETCH_BACKOFFICE_USER_SERVICES_REQUEST","FETCH_BACKOFFICE_USER_SERVICES_SUCCESS","FETCH_BACKOFFICE_USER_SERVICES_FAILURE","FETCH_CLIENTS_REQUEST","FETCH_CLIENTS_SUCCESS","FETCH_CLIENTS_FAILURE","DELETE_CLIENT_REQUEST","DELETE_CLIENT_SUCCESS","DELETE_CLIENT_FAILURE","UPDATE_CLIENT_REQUEST","UPDATE_CLIENT_SUCCESS","UPDATE_CLIENT_FAILURE","UPDATE_CLIENT_SECURITY_REQUEST","UPDATE_CLIENT_SECURITY_SUCCESS","UPDATE_CLIENT_SECURITY_FAILURE","SET_CLIENT_FILTER","endpoints","environment","stripePublicKey","hostname","AUTH_USER","SEND_PHONE_NUMBER","REGISTER_USER","VERIFYING_NUMBER","REGISTER_FAILED","toastConf","position","toast","POSITION","TOP_RIGHT","autoClose","AuthReducer","state","isLoading","loggedIn","authError","registered","resetByEmail","resetPasswordComplete","errorOnResetPassword","SMSWasSent","phoneConfirmed","roles","action","includes","Loadings","push","filter","l","authToken","setItem","common","authTokenDecoded","JwtDecode","rolesAuth","Array","isArray","authToken1","authToken1Decoded","rolesRegister","Email","Text","UserActionTypes","success","decodedJwt","User","professions","professionalSituation","Number","isInteger","allProfs","split","forEach","p","trim","emailConfirmed","birthPlace","departmentNumber","country","civilStatus","hasChildren","hasRepresentativeMessage","onBoardingStep","setupCompletedDate","stripeCustomerId","removeSetupFee","paymentMethods","billedByPartner","daysOfTraining","isEtablissementAdmin","childrens","hasHrDocuments","hasPets","recipientEmail","userName","Address","addressContract","addressLine1","addressLine2","addressType","city","postalCode","Referent","isMainRepresentative","addresses","map","CardPaymentMethod","brand","number","expMonth","expYear","cvc","phone","isDefault","SepaPaymentMethod","bankCode","branchCode","iban","FETCH_REPRESENTATIVES","FETCH_REPRESENTATIVES_ADDRESS","FETCH_USER","FETCH_SERVICES","UPLOADING_DOCUMENT","DELETING_DOCUMENT","ADDING_PAYMENTMETHOD","DELETING_PAYMENTMETHOD","PROCESSING_PAYMENT","GETTING_SETUPINTENT","UPDATING_SERVICES","FETCH_INVOICES","UPDATE_USER","UPDATE_SECURITY","AUTHENTICATING_USERREPRESENTING","FETCHING_USER_ADDRESSES","UPDATING_USER_ADDRESS","SENDING_OTP","VALIDATING_OTP","GETTING_BILLINGCUSTOMERID","FETCH_PARTNER_CUSTOMIZATION","FETCH_LIFEEVENTS","GENERATING_PRINT","FETCHING_DECLARATION","CREATING_DECLARATION","UPDATING_DECLARATION","FETCHING_FILES","UPLOADING_FILE","DELETING_FILE","SHARING_FILES","FETCHING_MESSAGE","FETCHING_USER_SERVICES_DATA","COMPLETING_USER_SERVICES_DATA","GENERATING_USER_LETTERS","FETCHING_REFERENTS","UPDATING_REFERENT","DELETING_REFERENT","CREATING_REFERENT","FETCHING_USER_CONNECTION","ADDING_USER_CONNECTION","ADDING_USER_CONNECTION_BATCH","REMOVING_USER_CONNECTION","FETCHING_USER","UPDATING_USER","FETCHING_ONBOARDINGUSER_ADDRESS","UPDATING_USER_ONBOARDINGSTEP","INVITING_REPRESENTATIVE","Invoice","invoice","amount","created","pdfUrl","paid","invoicesErrorMessage","updateMessageError","updateMessageSuccess","dataUpdatedSuccess","dataUpdateFailed","updateSecuritySuccess","udpateSecurityFailed","inviteRepresentativeSuccess","inviteRepresentativeFailed","invoicePaidSuccess","invoicePaidFailed","BackofficeUser","userStatus","isSerenita","statusOptions","notAccepted","ongoing","sending","getSerenitaStatus","getFacilitaStatus","finished","yearAndMore","closed","currentDate","paymentLimit","creationDate","setFullYear","getFullYear","paymentAlertLimit","setMonth","getMonth","toDeleteDate","getAntecipaStatus","etablissementName","partnerName","u","toLowerCase","onBoardingCompletedDate","hasPendingInvoice","pendingInvoiceId","UserReducer","referents","documents","serviceDatas","profilePicture","isDeletingReferent","stripeClientSecret","signupStep4Success","invoices","partnerCustomization","isLoaded","logoBase64Encoded","color","events","s","concat","length","r","referentIndex","findIndex","referentIndex3","referentIndex2","newReferent","sv","Service","DocumentFile","d","i","c","search","ActionTypesFacilita","LoadingsFacilita","FETCH_SERVICES_REQUEST","FETCH_SERVICES_SUCCESS","FETCH_SERVICES_FAILURE","DELETE_SERVICE_BY_ID_REQUEST","DELETE_SERVICE_BY_ID_SUCCESS","DELETE_SERVICE_BY_ID_FAILURE","FETCH_SERVICES_DATA_REQUEST","FETCH_SERVICES_DATA_SUCCESS","FETCH_SERVICES_DATA_FAILURE","ADD_SERVICES_DATA_REQUEST","ADD_SERVICES_DATA_SUCCESS","ADD_SERVICES_DATA_FAILURE","UPDATE_SERVICES_DATA_REQUEST","UPDATE_SERVICES_DATA_SUCCESS","UPDATE_SERVICES_DATA_FAILURE","DELETE_SERVICES_DATA_SUCCESS","DELETE_SERVICES_DATA_FAILURE","RESET_SERVICES","CREATE_SERVICES_REQUEST","CREATE_SERVICES_SUCCESS","CREATE_SERVICES_FAILURE","UPDATE_SERVICES_REQUEST","UPDATE_SERVICES_SUCCESS","UPDATE_SERVICES_FAILURE","BankAccount","bankAccount","comment","accountType","category","colNum","Bank","bank","isMain","accounts","b","Generic","generic","reference","Activity","activity","companyName","companyAddressStreet1","companyAddressStreet2","companyAddressPostalCode","companyAddressLocality","companyAddressCountry","function","contractType","companySavingsPlanReference","Etudiant","etudiant","AddressInfo","level","label","ConnectionTypes","notary","sport","internet","electricityProvider","mobilePhone","multimedia","socialSecurity","taxes","music","mutual","vehicle","insurance","waterSupplier","hobby","transportTicket","homeMaintenance","security","careAesthetic","homeService","paymentCard","technology","television","solidarity","socialNetworks","homeInsurance","other","facebook","youtube","instagram","whatsapp","snapchat","twitter","linkedin","tiktok","voitureAssurance","bateau","moto","scooter","loisirsInsurance","animaux","materiel","personnes","press","gas","lifeInsurance","deathInsurance","funeralInsurance","pension","otherActivity","poleEmploi","peePerco","caf","locataire","ehpad","animauxDomestiques","FrenchTypes","AssuranceOptions","connectionType","title","desc","icon","assurance","loisir","pet","mobile","tooltip","assurancelife","assurancedeath","assurancefuneral","AssuranceOptionsBO","SocialNetworksOptions","x","linkedIn","PersonalServices","detailedDescription","presse","loisirs","voiture","voitures","transport","maison","entretienmaison","securite","esthetique","soinesthetique","domicile","musique","cartPaiement","cartepaiment","tech","tv","solidaire","fournisseurgas","OtherService","autres","student","CommonServices","notaire","secSocial","securitesociale","banque","mutuelle","habitation","assurancehabitation","eau","fournisseureau","electricity","fournisseurelectricite","telephonemobile","impots","centreimpots","AuxiliarOptions","reseauxsociaux","convertConnectionTypesToServiceType","convertBackEndServiceTypesToFrontEndServiceType","PensionProfessionalCategoryMapping","options","value","ProfessionOptions","isSocialNetwork","str","isInsurance","OtherActivity","Pension","professionalCategory","pensionBaseServiceId","pensionComplementServiceId","customPensionBase","customPensionComplement","Lease","Ehpad","ServiceData","serviceName","customServiceDetails","payload","UPDATING_SERVICE_DATA","ADD_NEW_SERVICE","FETCHING_SERVICES","CREATING_SERVICE","UPDATING_SERVICE","DELETING_SERVICE","addedSuccessfully","tryAddAgain","updatedSuccessfully","tryUpdateAgain","deletedSuccessfully","tryDeleteAgain","ServicesReducer","serviceData","mappedServiceData","e","frontendServiceType","itemIndex","sr","splice","newItem","newItemFrontEndServiceType","updatedItem","itemToUpdateFrontEndServiceType","itemToUpdateIndex","serviceDataToDeleteIndex","FETCH_USERREPRESENTATIVE_REQUEST","FETCH_USERREPRESENTATIVE_SUCCESS","UPDATE_USERREPRESENTATIVE_REQUEST","UPDATE_USERREPRESENTATIVE_SUCCESS","AUTHENTICATE_REQUEST","AUTHENTICATE_SUCCESS","AUTHENTICATE_FAILURE","LINK_REQUEST","LINK_SUCCESS","LINK_FAILURE","FETCHING_USERREPRESENTATIVE","UPDATING_USERREPRESENTATIVE","AUTHENTICATING_USERREPRESENTATIVE","LINKING_USERREPRESENTATIVE","ReferentReducer","ReferentSelfcare","ReferentAuth","referentAuthLink","FacilitaReducer","m","RepresentingUser","FETCH_USER_LETTERS_TO_PRINT_REQUEST","FETCH_USER_LETTERS_TO_PRINT_SUCCESS","FETCH_USER_LETTERS_TO_PRINT_FAILURE","FETCHING_USER_LETTERS","letter","contentUrl","sendingLimitDate","sentDate","optionalData","postClientSendingId","postId","writtingUserId","letterId","userServiceId","ImpressionReducer","userLetters","totalPages","totalRecords","currentPage","ImpressionActionTypes","ImpressionLoadings","items","FETCH_PARTNERS_REQUEST","FETCH_PARTNERS_SUCCESS","FETCH_PARTNERS_FAILURE","CREATE_PARTNER_REQUEST","CREATE_PARTNER_SUCCESS","CREATE_PARTNER_FAILURE","UPDATE_PARTNER_REQUEST","UPDATE_PARTNER_SUCCESS","UPDATE_PARTNER_FAILURE","DELETE_PARTNER_REQUEST","DELETE_PARTNER_SUCCESS","DELETE_PARTNER_FAILURE","FETCH_ETABLISSEMENTS_REQUEST","FETCH_ETABLISSEMENTS_SUCCESS","FETCH_ETABLISSEMENTS_FAILURE","CREATE_ETABLISSEMENT_REQUEST","CREATE_ETABLISSEMENT_SUCCESS","CREATE_ETABLISSEMENT_FAILURE","UPDATE_ETABLISSEMENT_REQUEST","UPDATE_ETABLISSEMENT_SUCCESS","UPDATE_ETABLISSEMENT_FAILURE","DELETE_ETABLISSEMENT_REQUEST","DELETE_ETABLISSEMENT_SUCCESS","DELETE_ETABLISSEMENT_FAILURE","UPDATE_USERPARTNER_REQUEST","UPDATE_USERPARTNER_SUCCESS","UPDATE_USERPARTNER_FAILURE","DELETE_USER_REQUEST","DELETE_USER_SUCCESS","DELETE_USER_FAILURE","SEND_USER_ACTIVATION_REQUEST","SEND_USER_ACTIVATION_SUCCESS","SEND_USER_ACTIVATION_FAILURE","UPLOAD_LOGO_REQUEST","UPLOAD_LOGO_SUCCESS","UPLOAD_LOGO_FAILURE","FETCHING_PARTNERS","FETCHING_PARTNER","CREATING_PARTNER","UPDATING_PARTNER","DELETING_PARTNER","FETCHING_ETABLISSEMENTS","CREATING_ETABLISSEMENT","UPDATING_ETABLISSEMENT","DELETING_ETABLISSEMENT","FETCHING_USERS","CREATING_USER","DELETING_USER","SENDING_USER_ACTIVATION","UPLOADING_LOGO","Partner","partner","partnerInitialReduction","partnerInitialPercentage","partnerRecurentReduction","partnerRecurentPercentage","plateformInitialReduction","plateformInitialPercentage","plateformRecurentReduction","plateformRecurentPercentage","setupFee","personalization","billingFrequencyInMonths","numberOfDossiers","fullyQualifiedName","vatNumber","siret","addressDataTransferObject","hasLogo","activationEmailSendingError","activationEmailSendingSuccess","etablissementCreationConflict","PartnersReducer","partners","resetPasswordPhoneNumber","usersPagination","etablissementsPagination","PartnersActionTypes","PartnersLoadings","newPartner","etablissements","users","ToasterText","etablissement","FETCH_USERS_DOSSIERS_REQUEST","FETCH_USERS_DOSSIERS_SUCCESS","FETCH_USERS_DOSSIERS_FAILURE","FETCH_PARTNERS_DOSSIERS_REQUEST","FETCH_PARTNERS_DOSSIERS_SUCCESS","FETCH_PARTNERS_DOSSIERS_FAILURE","SET_DOSSIER_FILTER","FETCHING_USERS_DOSSIERS","FETCHING_PARTNERS_DOSSIERS","DossiersReducer","dossiers","globalFilters","order","column","asc","moreDossiers","newState","FETCHING_CLIENTS","clientDeleteSuccess","clientDeleteFailed","emailPasswordRecoveredSucess","emailPasswordRecoveredFailed","ClientsReducer","clients","isDeletingClient","nextPage","moreClients","TextClient","LoadingsUser","client","TextUser","DeathDeclaration","deathDate","allocations","houseHoldCount","isDeathRelatedToActivity","Child","isInvalid","declaringUserId","diedInActivityId","userDeceasedAddress","userResidenceAddress","DeathDeclarationReducer","declaration","files","connectionTypes","defaultValues","letters","userletterId","userletter","ref","userResidenceAddress1","addressContractToInt","addressTypeToInt","FETCH_RELOCATION_DECLARATION_REQUEST","FETCH_RELOCATION_DECLARATION_SUCCESS","FETCH_RELOCATION_DECLARATION_FAILURE","CREATE_RELOCATION_DECLARATION_REQUEST","CREATE_RELOCATION_DECLARATION_SUCCESS","CREATE_RELOCATION_DECLARATION_FAILURE","UPDATE_RELOCATION_DECLARATION_REQUEST","UPDATE_RELOCATION_DECLARATION_SUCCESS","UPDATE_RELOCATION_DECLARATION_FAILURE","DELETE_RELOCATION_DECLARATION_REQUEST","DELETE_RELOCATION_DECLARATION_SUCCESS","DELETE_RELOCATION_DECLARATION_FAILURE","FETCHING_RELOCATION_DECLARATION","CREATING_RELOCATION_DECLARATION","UPDATING_RELOCATION_DECLARATION","DELETING_RELOCATION_DECLARATION","UPDATING_USER_SERVICES_DATA","School","school","RelocationChild","isStudent","isEmployed","isDependent","age","schoolLevel","RelocationDeclaration","effectiveMovingDate","children","oldAddress","newAddress","movingType","sameArea","RelocationDeclarationReducer","FETCHING_ETABLISSEMENT","FETCHING_ANTICIPA","FETCHING_FACILITA","FETCHING_SERENITA","FETCHING_ETABLISSEMENT_LIST","initialState","etablissementList","pagination","allDossiers","anticipa","facilita","serenita","totalAnticipa","totalFacilita","totalSerenita","PartnerReducer","PartnerLoadings","anticpa","BackofficeActionTypes","allAnticipa","ActionTypesClient","ActionTypesUser","InvoicePartner","UserBackOfficeDetailReducer","FETCH_CLIENTS_INVOICES_REQUEST","FETCH_CLIENTS_INVOICES_SUCCESS","FETCH_CLIENTS_INVOICES_FAILURE","FETCH_ALL_CLIENTS_INVOICES_REQUEST","FETCH_ALL_CLIENTS_INVOICES_SUCCESS","FETCH_ALL_CLIENTS_INVOICES_FAILURE","FETCH_PARTNERS_INVOICES_REQUEST","FETCH_PARTNERS_INVOICES_SUCCESS","FETCH_PARTNERS_INVOICES_FAILURE","FETCH_ALL_PARTNERS_INVOICES_REQUEST","FETCH_ALL_PARTNERS_INVOICES_SUCCESS","FETCH_ALL_PARTNERS_INVOICES_FAILURE","FETCH_PARTNER_INVOICE_LINES_REQUEST","FETCH_PARTNER_INVOICE_LINES_SUCCESS","FETCH_PARTNER_INVOICE_LINES_FAILURE","MARKPAID_PARTNER_INVOICE_REQUEST","MARKPAID_PARTNER_INVOICE_SUCCESS","MARKPAID_PARTNER_INVOICE_FAILURE","FETCHING_CLIENTS_INVOICES","FETCHING_PARTNERS_INVOICES","FETCHING_ALL_CLIENTS_INVOICES","FETCHING_ALL_PARTNERS_INVOICES","FETCHING_PARTNER_LINES","MARKINGPAID_PARTNER_INVOICE","PaymentInvoice","recipientType","issuerType","isDueToAssista","issuerId","recipientName","totalToPay","totalToBill","InvoiceLine","invoiceLine","total","currentPrice","quantity","comissionEtablissement","comissionPartner","basePrice","priceId","product","setupfee1","setupfee4","setupfee6","annual","trainingday","assistrh","recipientId","reductionEtablissement","reductionPartner","taxRate","taxRateId","totalPrice","PaymentReducer","partnersInvoices","clientsInvoices","clientNextPage","partnerNextPage","partnerInvoiceLines","PaymentActionTypes","PaymentLoadings","line","CREATE_POSTAL_NUMBER_REQUEST","CREATE_POSTAL_NUMBER_SUCCESS","CREATE_POSTAL_NUMBER_FAILURE","FETCH_PRICE_REQUEST","FETCH_PRICE_SUCCESS","FETCH_PRICE_FAILURE","UPDATE_PRICE_REQUEST","UPDATE_PRICE_SUCCESS","UPDATE_PRICE_FAILURE","CREATING_POSTAL_NUMBER","FETCHING_PRICES","UPDATING_PRICES","LifeEvents","FrenchLifeEvents","val","ConfigurationReducer","prices","streetAddress","newService","TextService","ActionTypesConfig","LoadingsConfig","TextConfig","reduce","acc","newPrices","Reducer","history","pathname","startsWith","combineReducers","router","connectRouter","reducers","impressionReducer","partnersReducer","PartnersBackofficeReducer","dossiersReducer","DossiersBackofficeReducer","clientsReducer","ClientsBackofficerReducer","paymentReducer","userBackOfficeDetailReducer","configurationReducer","auth","partnerReducer","deathDeclaration","facilitaDeathDeclaration","relocationDeclaration","createBrowserHistory","Boolean","match","Navbar","className","to","src","logo","alt","width","Component","Footer","connect","example","target","authenticateUser","sendOTPCode","verifyOTPCode","resetAuth","activeClassName","disabled","Privacy","activeClass","spy","hashSpy","smooth","offset","duration","scope","style","verticalAlign","rowspan","Terms","class","Faq","partnerColor","logo_default","onError","ev","Help","passwordRequirements","personalDataRequirements","monReferentRequirements","stepsCompleted","monServiceRequirements","logoContent","useSelector","logo_hr","currentTarget","onClick","hasUpper","hasLower","hasDigits","preventDefault","stopPropagation","civil","familiar","contact","profession","principal","communes","personnal","SkipRegister","htmlFor","placeholder","defaultValue","$","modal","RegexFields","LoadingState","alignLeft","loadingClass","Profile","setPasswordRequirements","registerPage","setCredentials","credentialsForm","wasValidated","setWasValidated","isSettings","countries","require","registerLocale","useDispatch","useHistory","codeRef","useRef","securityForm","useState","passwordsMatch","setPasswordsMatch","showPassword","setShowPassword","showConfPassword","setShowConfPassword","showCurrentPassword","setShowCurrentPassword","wasSendOnce","setWasSendOnce","isOnFocus","setIsOnFocus","modifyNumber","setModifyNumber","tmpPhoneConfirmed","setTmpPhoneConfirmed","ignoreTmp","setIgnoreTmp","isUpdating","setIsUpdating","tokenUrl","setTokenUrl","activationByEmailOnly","setActivationByEmailOnly","parsedQueryString","queryString","parse","useEffect","acr_values","tokenParts","replace","tokenPayloadString","atob","decodeURI","tokenPayload","JSON","confirmPassword","current","focus","numberIsSame","countryCode","formSubmitRegister","event","checkValidity","internationalPhoneNumber","parsePhoneNumber","phoneCountry","isValid","getElementById","setCustomValidity","creds","registerUser","update","userToUpdate","updatingNumber","classList","add","phoneIsConfirmed","nextStepDisabled","credentialsSection","onSubmit","formatNational","required","onInput","onFocus","onBlur","tabIndex","indexOf","substring","onChange","pc","countryTelData","allCountryCodes","toUpperCase","allCountries","index","dialCode","getName","iso2","select","noValidate","formSubmit","pattern","minLength","maxLength","hidden","Fragment","getItem","nodes","querySelectorAll","scrollIntoView","behavior","scrollToFirstInvalid","Step1","redirectToSecondStep","nationalNumber","countryCallingCode","DateWithModal","selectedDate","setSelectedDate","isRequired","classToolbar","noMaxDate","fr","calendarRef","setDate","dateManualEdit","setDateManualEdit","manualDate","setManualDate","today","capitalize","charAt","slice","convertDateToUtc","month","monthString","day","getDate","dayString","removeSelectedFromCalendar","setTimeout","element","remove","toLocaleDateString","year","inputValue","replaceAll","parsedDate","now","utcDate","weekday","nativeEvent","stopImmediatePropagation","locale","placeholderText","showMonthDropdown","showYearDropdown","shouldCloseOnSelect","dateFormat","selected","onMonthChange","onYearChange","maxDate","inline","scrollableYearDropdown","yearDropdownItemNumber","DepartamentsList","DeleteModal","userID","widthIsBigger","setWidthIsBigger","Image","height","Personal","setPersonalDataRequirements","setSelectedGender","inModal","civilForm","familyForm","childrenForm","petsForm","assetForm","professionForm","updateCredentials","tmpPhone","find","depNumber","personalData","setPersonalData","estateType","zipCode","asset","setAsset","family","setFamily","childrenSelected","setChildrenSelected","petsSelected","setPetsSelected","professionSelected","setProfessionSelected","familyStatusText","married","Male","Female","divorced","widow","civilUnion","isCompleteSectionCivil","isFrance","skipSet","familyOptions","isCompleteSectionFamily","childrenOptions","isCompleteSectionChildren","petsOptions","isCompleteSectionPets","pets","assetTypeOptions","isCompleteSectionContact","assetNotNull","isCompleteSectionProfession","FirstName","LastName","etatCivilSection","checked","Object","keys","contriesList","getData","otherSections","celibataireM","celibataireW","unionsM","unionsW","divorceeM","divorceeW","veuveM","veuveW","noChildren","noPets","appartement","palace","hotel","peniche","divers","retraite","activite","pole","autre","university","formsAreNotNull","join","Step2","selectedGender","deleteAttempt","setDeleteAttempt","EditReferent","isNew","isEditing","setIsEditing","setNewReferent","refIndex","authFacilitaPage","referentForm","parsedPhoneNumber","isLienFamilialDirect","referentData","setReferentData","iso2Lookup","phoneInput","isValidPhoneNumber","validity","valid","validationMessage","defaultChecked","liendirect","userRepresentative","formatInternational","userRepresentativeAddress","tmpRefIndex","ColapsedReferent","hideResendInvitation","Parent","Sibling","Spouse","tmpEditing","stringify","ReferentIndex","setMonReferentRequirements","hasFooter","hasPrincipal","hasOther","messageRef","formNextStep","Message","setMessage","Step3","Step4","setMonServiceRequirements","subStep","setSubStep","redirect","setRedirect","selectedServices","setSelectedServices","hasCommon","values","hasPersonnal","tmpUser","AddOrRemove","option","tmpSelected","o","personalService","srv","ind","entries","entry","Step5","serviceOptions","maxWidth","featuresOverview","previewPdf","arrowDashed","arrowDirect","ToasterConfigurations","PaymentMethodCardDeclinedText","generic_decline","insufficient_funds","lost_card","stolen_card","PaymentMethodErrorsText","expired_card","incorrect_cvc","processing_error","incorrect_number","PaymentMethod3DSecureErrorsText","setup_intent_authentication_failure","AddCreditCardForm","formRef","formId","resetModal","setIsSaving","stripe","useStripe","elements","useElements","visibleSide","setVisibleSide","isLoadingSetupIntent","cardNumber","expirationDate","cvcCode","formElementsComplete","setformElementsComplete","iconCredit","iconCreditBack","handleSubmit","cardNumberElement","getElement","CardNumberElement","setupIntendId","confirmCardSetup","payment_method","card","errorMessage","code","getOwnPropertyNames","decline_code","setupIntent","console","log","complete","base","lineHeight","fontSize","fontSmoothing","invalid","iconColor","classes","empty","iconStyle","CreditCardTile","creditCards","AddVirementForm","ownerState","setOwnerState","setSetupIntent","ibanElement","IbanElement","confirmSepaDebitSetup","sepa_debit","billing_details","supportedCountries","placeholderCountry","VirementTile","onlinePayment","AddPaymentMethodModal","loadings","formReference","React","createRef","tempSelectedOptionCard","setTempSelectedOptionCard","selectedOptionCard","setSelectedOptionCard","isSaving","creditCardsIcon","onlinePaymentIcon","form","MainPaymentMethods","pi","URLSearchParams","get","paymentIntents","piSecret","confirmCardPayment","clientSecret","loadPaymentIntentsAsync","PaymentMethods","loadStripe","stripePromise","DiscountCode","discountCodeState","setDiscountCodeState","loadingState","setLoadingState","apiId","Step6","userAge","setUserAge","paymentType","setPaymentType","num","price","selectedOption","hasLoadedPrices","paymentOptions","setPaymentOptions","processing","setProcessing","endRegistration","redirect_uri","nonce","externalUserId","dateString","getAge","mappedPrices","toFixed","Cookies","showBanner","setShowBanner","cookieName","cookie","nameEQ","ca","getCookie","days","expires","setTime","getTime","toUTCString","setCookie","Signup","useLocation","stepNum","loadingFinished","setLoadingFinished","setStepsCompleted","setPartnerCustomization","checkSteps","tmpSteps","from","_","accessToken","decoded","customization","backgroundColor","req","backgroundImage","photoWoman","backgroundSize","backgroundRepeat","backgroundPosition","Signin","loginFormRef","loginWithEmail","setLoginWithEmail","displayError","setDisplayError","showLockedMessage","setShowLockedMessage","Credentials","minHeight","SigninIlustration","username","searchCityOrPostalCode","PostalCityInput","postalCodePattern","cityPattern","customClasses","postalCodeId","cityId","postalCodeRequired","cityRequired","postalCodeDisabled","cityDisabled","hasWrapper","wrapperClass","selectedCityOption","setSelectedCityOption","cityOptions","setCityOptions","cityMenuIsOpen","setCityMenuIsOpen","setIsLoading","_postalCode","setPostalCode","_city","setCity","isCityInvalid","sortByNameCaseInsensitive","loadAndSetCities","loadCities","searchResult","hasMore","el","Name","PostalCode","unorderedOptions","sortedOptions","InputFields","loadOptions","onInputChange","searchInput","debounceTimeout","loadingMessage","noOptionsMessage","loading","onMenuOpen","onMenuClose","menuIsOpen","loadOptionsOnMenuOpen","postUserRepresentativeSelfcareJwt","updateUserRepresentativeSelfcare","userData","linkUserRepresentativeSelfcareJwt","initState","updatedAddress","FormReferent","queryParamsToken","Password","passwordForm","showNewPassword","setShowNewPassword","newPass","confPass","passwordMatch","setPassword","LinkReferent","referentState","ReferentIlustration","exact","component","render","IdentityInit","numberFormRef","setPhoneNumber","endsWith","IdentityCode","loginPage","confirmationForm","codes","displayErrorMessage","confirmationCodeState","setConfirmationCodeState","confirmationRef","token","autoFocus","item","idx","nextIndex","onPaste","clipboardData","valueText","inputPaste","IdentityIndex","IdentityationIlustration","PasswordRecover","usernameForm","setUsername","emailRegex","RegExp","mobileRegex","test","PasswordNew","setToken","setUserId","ResetPasswordToken","decodeURIComponent","NewPassword","setNewPasswordFromReset","query","tmpToken","tmpUserId","PasswordIndex","PasswordIlustration","Code","returnUrl","rolesFromToken","partnersUrlDefault","partnersByIdUrl","partnerLogoByIdUrl","etablissementByPartnerIdUrlDefault","etablissementByIdAndPartnerIdUrl","usersByPartnerIdUrl","userByIdPartnerIdUrl","GenerateOtpCode","timestamp","signature","partnersUrl","PartnerInvitationStep0","setUser","setLoading","PartnerInvitationStep1","setLoadings","isValidated","setOtpCode","OTPCode","ValidatePhoneNumber","innerHTML","PartnerInvitationStep2","confirmationPassword","passwordState","setPasswordState","UpdatePassword","PartnerInvitationStep3","PartnerInvitation","useParams","GetUserById","PartnerCode","PartnerSignin","PartnerIndex","fillCredentials","setSelectedOption","PartnerSignup","App","Identity","Avatar","profilePictureDocument","setFile","deleteImage","setDeleteImage","setFileName","hideModal","accept","tmpFile","File","removeAccents","profileImagesToDelete","f","blob","readAsArrayBuffer","isFirefox","InstallTrigger","borderTopColor","fetchServices","frenchServiceType","getServiceById","addServiceData","updateServiceData","deleteServiceData","userAddressByUserIdUrl","userAddressByUserIdAndAddressIdUrl","userConnectionsUrl","generateUserLetterUrlByUserId","generateUserletterUrlByletterIdAndUserServiceId","userLetterUrlByUserId","letterUrlByletterId","letterContentUrlByletterId","userletterUrlByletterId","userRepresentativeByUserIdUrl","userRepresentativesByIdUrl","userRepresentativesInvitationByIdUrl","fetchLifeEvents","createRelocationDeclaration","EventDeclarationActionTypes","updateRelocationDeclaration","DeathDeclarationActionTypes","generateLettersForUserIdAndUserServiceId","ActivityDetails","removeActivity","generateRelocationLetters","initCollapsedState","setPayload","collapsed","setCollapsed","hasCompanySavingsPlanReference","showPee","setShowPee","activityState","setActivityState","activityVector","activitiesInState","EducationInstitutionDetails","educationInstitution","removeEducationInstitution","streetAddress2","addressLocality","addressCountry","getAlpha2Codes","EducationInstitution","educationInstitutionState","setEducationInstitutionState","educationInstitutionVector","ei","educationInstitutionsInState","CustomPensionForm","streetAddress3","PensionDetails","removePension","selectedCategory","setSelectedCategory","showCustomBasePensionFormInit","showCustomComplementaryPensionFormInit","showBasePensionFormInit","showComplementaryPensionFormInit","showCustomBasePensionForm","setShowCustomBasePensionForm","showCustomComplementaryPensionForm","setShowCustomComplementaryPensionForm","showBasePensionForm","setShowBasePensionForm","showComplementaryPensionForm","setShowComplementaryPensionForm","pensionBase","pensionsComplementary","selectedPensionComplementary","branchBase","branchComplementary","selectedProfessionalSubcategoryTitle","mapping","branches","cat","matchingOption","pensionComplementary","branch","compPension","pensionState","setPensionState","pensionsInState","OtherActivityDetails","activityName","LeaseDetails","Tenant","tenantState","setTenantState","leaseInState","addressStreet1","addressStreet2","addressPostalCode","EhpadDetails","ehpadState","setEhpadState","getProgress","bankData","CheckboxCard","labels","isSelected","topRef","progress","optionIsSocNet","optionIsVehicleIns","serviceToDelete","block","isActive","ServiceNavbar","selectedService","setSelectedService","personnalOptions","commonOptions","otherOption","bottomRef","selectedServiceRef","fetchServiceDataForServiceType","some","isLastCommonOption","Branch","geo","url","image","insuranceType","ServiceInfo","defaultId","nameNoAccents","aggregateRating","AggregateRating","sportsClubs","SearchService","searchPage","setSearchPage","searchFilter","setSearchFilter","setCurrentPage","updateLoadedItems","setLoadMore","selectSearch","sleep","ms","searchAreEqual","loadedOptions","responseJSON","filteredOptions","apply","additional","isMulti","cacheUniqs","Box","isCollapsed","setServiceOnFocus","contractReference","setContractReference","inputOnFocus","boxIndex","inputRef","payloads","setPayloads","toDelete","setToDelete","setAutoFocus","addressName","loadReferences","allServicesWithSameBranch","tmpPayloads","br","tmp","fieldName","tmpPayload","payloadIndex","tmpToDelete","newPayload","tmpContracts","serviceDataIndex","CustomBox","customServiceData","setShowCustomBox","customFormRef","serviceDetails","setServiceDetails","DefaultService","serviceTitle","serviceDetailedDescription","servicesRef","serviceOnFocus","resetPage","setResetPage","loadedServices","setLoadedServices","canFillContract","setCanFillContract","setExtraItems","showCustomBox","loadMore","currentConnectionType","setCurrentConnectionType","tmpLoadedServices","extra","addEventListener","handleClickOutside","removeEventListener","contains","loadNotVisibleUserServices","allBranches","normalizedNameAndAddress","hide","withServiceData","customServiceDatas","customServiceIdList","EmptyState","ServicesUploading","CustomBase","customeComponent","expanded","setSelectedNonOption","show","setShow","titleWithNoSpaces","oui","non","CardColumn","n","cardType","globalPayload","setGlobalPayload","setBankAccount","changePayload","_bankAccount","tmpAccounts","myElementIndex","aa","currentCol","accountsFromAllColumns","columnAccount","tmpBankAccount","Card","setNumber","arr","setArr","fullLines","Math","trunc","j","casesForLastLine","colIndex","BankAccountType","LivretA","Ldds","Lep","LivretJeune","Cel","Pel","Perp","LivretEpargneBancaire","Cat","CoffreFortBancaire","PasPlacements","AssuranceDeces","AssuranceObseque","AssuranceVie","PasAssurance","CreditVoiture","CreditImmobilier","CreditTravaux","CreditConsummation","CreditAutre","PasCredit","CompteCurrent","Scpi","Pea","CompteTitre","Opcvm","PasCurrent","Placement","cardTypes","checkbanque","Assurance","Credit","accountbanque","BankDetails","removeBranch","placements","credit","selectedNonOption","currentAccountBankAccountTypes","placementsBankAccountTypes","assuranceBankAccountTypes","creditsBankAccountTypes","hasCompteCurrentAccounts","hasPlacementAccounts","hasAssuranceAccounts","hasCreditAccounts","op","BranchBox","tmpBranch","setTmpBranch","payIndex","BranchBase","totalBranches","canCollapse","branchIsSelected","setBranchIsSelected","selectedBranch","setSelectedBranch","setSelectSearch","wasSaved","setWasSaved","sort","currentServiceIds","auxTitle","tmpBranches","GenericDetails","CustomBranch","addressRef","customBranchDetails","setCustomBranchDetails","BranchService","setBranches","setCanCollapse","addedNew","setAddedNew","serviceVector","setAllBranches","tmpItems","servicesInState","tmpAllServiceDatas","allServiceDatasIdList","notNullServicesLength","lastPosition","Infinity","tmpAllBranches","firstElement","sData","tmpPosition","pos","ServicesEdit","serviceModalRef","servicesData","setCommonOptions","setPersonnalOptions","setOtherOption","showCompleteState","setShowCompleteState","setGenerateRelocationLetters","obj","everythingIsComplete","inProgress","selectedServiceOption","UploadArea","documentType","uploadedFile","documentDescription","downloadFile","uploadFile","deleteFile","autoupload","selectable","setSelectFiles","selectedFiles","labelName","telechargerArea","modalTelechargerArea","toggleTelechargerArea","editDescription","setFiles","setDescription","descriptionParts","fileFullName","filesrc","onDrop","acceptedFiles","getRootProps","getInputProps","GradientSVG","startColor","endColor","idCSS","rotation","gradientTransform","stopColor","ServiceCard","Onboard","commonServices","setCommonServices","personnalServices","setPersonnalServices","otherServices","setOtherServices","doc","userDocuments","setUserDocuments","firstTitle","secondTitle","actions","userCommunServices","userPersonnalServices","demarchesCommuneDocuments","demarchesPersonnaliseeDocuments","minValue","maxValue","background","text","elementOnFocus","setElementOnFocus","elRefs","setElRefs","contracts","setContracts","cont","ids","fill","elemenetToFocus","contract","addOrRemove","Dashboard","spiderBoxes","setSpiderBoxes","getContracts","conType","initBoxes","tmpSpiderBoxes","Communes","getUserRepresentingById","createDeathDeclaration","getDeathDeclaration","updateDeathDeclaration","getUserConnections","addUserConnection","getUserServiceData","createServiceData","serviceDataUrls","getLetterInformationByLetterId","updateLetterById","urltest","abandonLetter","createUserRepresentativeForUserId","updateUserRepresentativeForUserId","getUserInfoById","updateOnboardingStep","ModalPartager","fileNames","userRepresentativeId","emailAddresses","setEmailAddresses","emails","getLabel","toEmailAddresses","shareDocuments","ModalEditFolder","currentPath","onFolderEdited","dossierName","setDossierName","ModalAddFile","onFileAdded","isDefaultFiles","injectedFiles","selectableFileTypesFacilita","useMemo","key","displayName","localeCompare","selectableFileTypesAnticipa","onDropRejected","filesErrors","fileErrors","selectableFileType","promises","uploadDocumentFacilita","all","ModalDelete","elementToDelete","onFileDelete","facilitaDeleteDocument","deletedfileName","ModalConfirmation","ModalFileDescription","onDocumentEdited","fileDescription","setFileDescription","editedFile","ModalRecipientEmail","Biblioteque","selectedFileNames","setSelectedFileNames","setCurrentPath","pathLastElement","setPathLastElement","setPath","personalFiles","setPersonalFiles","selectedElementToDelete","setSelectedElementToDelete","selectedElementToEdit","setSelectedElementToEdit","modalForDefaultData","setModalForDefaultData","draggedFiles","setDraggedFiles","browseFolder","folderPath","dbFiles","persoFiles","newPath","folderPathPart","folderName","fullPath","isRh","browseFolderRh","lastElement","part","noClick","isDragActive","servicesUploading","folderFullName","Header","SettingsProfil","SettingsNotifications","autoriserAlert","setautoriserAlert","notification","alarm","mail","Emptylustration","InvoiceList","orderOptions","invertOrder","setInvertOrder","setOrder","reverse","dateToString","formatAmount","rel","SettingsFacturation","allPayments","setAllPayments","SettingsPaiement","SettingsSecurite","Settings","deceasedUser","setOnboardingStep","colorCustom","colorContrast","Path","relocatedUser","setStep","every","getDeclaration","identForm","identFields","setIdentFields","FormCivil","setEditMode","phoneNUmber","Civil","parsedMobilePhoneNumber","editMode","FormAddress","addressForm","relocationFields","setRelocationFields","frenchCountryData","assetTypeLogo","FormFamily","civilData","setCivilData","homechildren","Family","familyStatus","FormFamilyEnv","showNewChildForm","newChildForm","childrenState","setChildrenState","differenceInYears","FamilyEnvironment","minorChildren","youngAdults","handicapedChildren","dependantChildren","studentChildren","employedChildren","FormSituationPro","activityForm","home","SituationPro","ModalActivitySection","removeFromList","showSavings","setShowSavings","FormActivity","activities","activityList","setActivityList","building","ModalOtherActivitySection","FormOtherActivity","RetraiteCustomForm","ModalRetraiteSection","pensionDetails","eqValues","retraiteForm","selectedPensionComplementaryInit","selectedPensionComplementaryBranchInit","selectedPensionBaseBranchInit","pensionBaseInit","selectedSubCategoryInit","selectedCategoryInit","selectedSubCategory","setSelectedSubCategory","selectedPensionBaseBranch","setSelectedPensionBaseBranch","setSelectedPensionComplementary","selectedPensionComplementaryBranch","setSelectedPensionComplementaryBranch","subcategories","setSubcategories","setPensionBase","setPensionComplementary","pensionBaseSelected","pensionComplementarySelected","names","namesLoaded","subcategory","selectedPensionBranch","countriesList","pensionComplementaryBranchSelected","FormRetraite","pensions","pensionList","setPensionList","Retraite","setPensionDetails","pensionBaseDetails","pensionComplementDetails","pensionBaseBranch","regime","pensionComplementBranch","categoryPro","ModalEducationInstitutionSection","educationInstitutionForm","FormEducationInstitution","educationInstitutions","educationInstitutionList","setEducationInstitutionList","lessThan20Children","CivilStatus","aides","familySupportAllowance","housingAssistance","cafRelocationIncentive","solidarityHousingFund","mobiliPassAssistance","agriMobilityAssistance","mobiliJeuneAssistance","statePersonnelInstallationAssistance","retirementRelocationAssistance","parcoursupMobilityAssistance","masterMobilityAssistance","mdphRelocationIncentive","selectedAllocations","setSelectedAllocations","boundary","aid","signatureFile","generateLettersForUserId","signatureRef","signatureCanvasRef","setWidth","setHeight","innerWidth","widthWindow","setWidthWindow","hasBeenDrawn","setHasBeenDrawn","canvasViewMode","setCanvasViewMode","textSignature","setTextSignature","fileSelector","resize","clientWidth","clientHeight","setAttribute","onchange","nameSplited","extension","base64Content","downloadDocumentAsBase64","downloadedFile","display","penColor","canvasProps","onEnd","rows","canvas","getCanvas","ctx","getContext","font","textAlign","fillStyle","fillText","sendToCanvas","dataURLtoBlob","toDataURL","saveSignature","DeclareModal","userState","relocationDeclarationState","setRelocatedUser","LetterProgressStage","Created","Abandonned","Validated","Printed","SentToPost","InDelivery","Delivered","InvalidAddress","RefusedByRecipient","OtherIssue","pdfjs","GlobalWorkerOptions","workerSrc","version","ModalValidation","setIsLoadingLetter","isLoadingLetters","currentlyConnectedUserId","relocationData","selectedServiceData","setSelectedServiceData","userLettersForServiceData","setUserLettersForServiceData","selectedUserLetter","setSelectedUserLetter","numPages","setNumPages","documentUrl","setDocumentUrl","lettersChoice","setLettersChoice","filesToUpload","setFilesToUpload","ul","letterTemplate","optionalDataform","optionalFiles","optionalFilesform","nextStageLetters","initLettersChoice","userLetter","httpHeaders","Authorization","matchingFile","tooltipTriggerList","tooltipTriggerEl","Tooltip","isValidURL","mailtoLink","encodeURIComponent","emailService","userLetterId","onLoadSuccess","parentServiceDataId","userLetterForServiceData","whiteSpace","popUp","otherUserLetterId","v","newOptionalData","lang","modifiedFiles","fileUploadPromises","validate","abandon","requests","promise","promiseExecution","nextServiceData","ModalCommencer","DashboardCard","userService","dateParts","mostRecentDate","displayDate","greenStatus","blueStatus","displayText","getSomeLettersEqualTo","property","getLetterHistoryDate","letterHistories","correspondingHistory","sortedHistoryParts","userLettersFiltered","sd","isClickable","userLettersCreated","userLettersValidated","properties","getAllLettersEqualTo","userLettersPrinted","userLettersSentPost","userLettersInDelivery","userLettersDelivered","userLettersAbandonned","allLetterHaveStatus","disableModifications","generateLetters","setIsLoadingServices","isLoadingServices","displayComments","payloadsToHandle","setCustomServiceDatas","newLoadedServices","branchAggregations","sortedBranches","serviceDataToUpdateOrCreate","max","sDataIndex","t","removeService","isFavorite","AddOrRemoveFromFavorites","activeUserConnections","setHideComplete","favoriteServices","setFavoriteServices","connection","removeUserConnection","fs","personalServices","votreBanque","compteCourant","votrePlacements","votreAssurance","votreCredit","ModalServiceWarning","selectedUserConnection","matchingServiceDatas","setMatchingServiceDatas","allServicesFilled","setAllServicesFilled","sortedActiveCommonServices","allCompleted","TerminateModal","onDelete","RelocationDashboard","relocationDate","isLoadingDelete","lastShownPopup","popupText","orderBy","before15Days","toBeHandled","before1Month","before3Months","in8Days","tilesValues","setTilesValues","userServices","setUserServices","dateBefore3Months","dateBefore1Month","dateBefore15Days","dateIn8Days","allServices","appService","lettersForService","hasBeenValidated","servicesToDisplay","servicesToHandle","servicesTotal","styles","buildStyles","textColor","opacity","pathColor","EventsRelocation","setIsLoadingDelete","stateIsLoading","setStateIsLoading","onDeleteRelocation","finally","getLettersForUserId","_stateIsLoading","UserLoadings","handleModalHidden","on","off","EventsMajority","EventsMarriage","EventsBirth","EventsDivorce","handleClick","Events","Anticipa","has","userRepresenting","pathParts","displaySubmenu","currentUserId","section","row","Landing","representingUser","countryTranslation","french","userInfo","setUserInfo","getNames","countryName","getAlpha2Code","userWithoutAddress","SettingsSecurity","otherSecurityForm","phoneNumberInputRef","editPhoneNumberStep","setEditPhoneNumberStep","novalidate","SettingsInvoicing","invoicesState","setInvoicesState","facilitaState","DossierLoading","hasLauchedGeneration","setHasLauchedGeneration","loadingPrimary","loadingSecondary","DossierDashboard","setPopupText","in7Days","in30Days","in6Months","dateIn7Days","dateIn30Days","dateIn6Months","DashboardAnticipa","setSelectedUserConnection","CivilForm","initValue","personalDataGender","setPersonalDataGender","FamilySituationForm","ModalFamilyEnv","ChildrenForm","ResidenceForm","ProfessionalSituationForm","DossierProfile","ColapsedView","toggleEditMode","isSendingInvitation","setIsSendingInvitation","deleteReferent","EditView","asYouType","AsYouType","internationalPhoneNumberReferent","deleteUserRepresentativeForUserId","DossierReferents","referentList","setReferentList","updateReferent","DossierComunes","DossierPersonal","addConnection","isConnectionTypeSelected","DossierBiblioteque","Dossier","deathDeclarationState","resp","getUserRepresentativesForUserId","deathCertificateUploadAlert","setDeathCertificateUploadAlert","deathCertificate","messageLines","ModalCivil","ModalAddress","ModalFamily","ModalSituationPro","showAccident","setShowAccident","ModalActivity","ModalOtherActivity","ModalRetraite","lessThan21Children","helpsForDeath","cpamTransportCosts","hearse","cpamFuneralCosts","headstone","bankFuneralCostsPayment","bankFuneralCostsRefund","cpamPriorityBeneficiary","cpamNoPriorityBeneficiary","cpamWidowhoodExceptionalAssitance","cafRsa","cpamBenefitForFamilyAssitance","cpamSolidarityBenefitForElderlyPeople","ProcessFinish","modalRef","removeClass","lessThan28Children","setOpen","rentes","education","idcard","travail","ascendant","retraites","cpamWidowhoodAllowance","retirement","complementaire","invalide","artisan","agriculteur","liberales","miniere","sncf","ancien","nonancien","noOptions","rente","ret","Declarer","subsectionsStatuses","serviceSubsectionsStatuses","onBoardingStepDefault","String","setOnBoardingStep","familySituationForm","residenceForm","professionalSituationForm","demarchesPersonalisee","defaultPersonalData","setSubsectionsStatuses","tempSubsectionsStatuses","isCivilFormValid","civilFormInputs","input","isResidenceFormValid","residenceFormInputs","naturalite","departmentNumberField","selectedIndex","familyStatusFilled","childrenFormFilled","professionFormFilled","validateForms","canUpdate","DemarchesCommunes","DemarchesPersonalisees","updateUserConnectionBatch","BilledByPartner","BilledByPlatform","reduction","loaded","paymentPrice","setPaymentPrice","processingPayment","setProcessingPayment","facilitaPrices","sortedFacilitaPrices","featuresMode","months","Onboarding","setLoaded","demarchesCommunes","setServiceSubsectionsStatuses","getOnboardingUserAddressesByUserId","Facilita","setRoles","customizationUserPartnerId","isPartner","showSerenita","setLogo","organizationName","DossierTypeSection","account","setAccount","dossierTypeOptions","steps","ReferentSection","setReferent","skipReferentSection","setSkipReferentSection","viewRelationShipOptions","setViewRelationshipOptions","collapse","PersonalInformationSection","AjouterDossierHeader","completedSteps","money","LettersSendingModeSection","print","envelope","AjouterDossier","creationForm","defaultSteps","partnerDocumentSendingType","setSteps","newSteps","isPersonalInformationSectionValid","personalInformationSectionInputs","isReferentSectionValid","referentSectionInputs","hasClass","addClass","adduserAddressPromise","addReferentPromise","results","fields","ModalCalendy","partnerstate","anticipaUsersRepresentative","facilitaUsersRepresentative","serenitaUsersRepresentative","filterOptions","facilitafilterOptions","filterAnticipa","setFilterAnticipa","filterFacilita","setFilterFacilita","filterSerenita","setFilterSerenita","headerStatistics","anticipaUsers","setAnticipaUsers","facilitaUsers","setFacilitaUsers","serenitaUsers","setSerenitaUsers","userEtablissement","mainRepresentative","Intl","DateTimeFormat","format","CloseProfile","clientUpdateInfo","handleCloseDossier","DonnesProfile","selectedProfile","setSelectedProfile","selectProfileCopy","buttonRef","removeAttribute","isValidEmail","PaySummary","setLinesToDisplay","filters","setFilters","currency","temp","NumberFormat","FacilitaHeader","partnerState","headerStats","setHeaderStats","allFacilitaDossier","statistics","dossier","fetchAllFacilitaDossier","FacilitaFilter","routerQuery","queryStatus","pageSearch","setPageSearch","sortBy","dateCalendar","FacilitaMain","isLoadingRepresentatives","selectedUser","setSelectedUser","selectedUserCopy","setSelectedUserCopy","setInvoices","invoicesData","FacilitaNotAccepted","FacilitaOngoing","FacilitaSending","handleGetInvoices","owner","GetPartners","pageLimit","GetPartnersDefault","UploadPartnerLogo","GetEtablissementsByPartnerIdDefault","GetUsersByPartnerId","NaN","GetUsersByPartnerIdDefault","DeleteUserByPartnerId","downloadReport","fromDate","toDate","searchQuery","pageQuery","usersWithRepresentatives","setUsersWithRepresentatives","renderRef","renderDateRef","timer","clearTimeout","toISOString","userPromises","representatives","userRepresent","SerenitaHeader","SerenitaFilter","SerenitaMain","SerenitaNotAccepted","SerenitaOngoing","SerenitaSending","Serenita","RegleModal","confirmButtonRef","handlePayInvoice","AnticipaHeader","allAnticipaDossier","fetchAllAnticipaDossier","AnticipaFilter","AnticipaMain","AnticipaNotAccepted","AnticipaOngoing","AnticipaFinished","AnticipaYearAndMore","AnticipaClosed","oneYearContract","addUser","fetchAllClients","fetchAllClientsData","updateClientSecurity","DeleteUser","deleteUser","formInfoRef","handleEnvoyerCode","firstFormInputs","userToUpdateData","userToUpdateSecurity","handleInfoForm","SettingsUsers","PaymentTableFilter","filterForm","querySelector","parentElement","PaymentTableNav","PaymentTableRow","setSelectedInvoice","PaymentTable","filteredInvoices","Paiement","setFilteredInvoices","selectedInvoice","invoiceStatus","invoicesToDisplay","sortingFunction","Payment","items2","allInvoices","GetUserLettersToPrint","urlSearchParams","impressionUrl","GetLetterById","DownloadLettersAndReco","userLetterIds","GenerateBordereau","ImpressionTableHeader","selectAll","areAllSelected","selectedDocuments","tableLinesToDisplay","table","ImpressionTableLine","selectDocuments","setSelectedDocuments","Impression","impressionState","tableLines","setTableLines","setTableLinesToDisplay","uniqueUserIds","uniqueLetterIds","promisesUser","promisesLetters","userDtos","letterDtos","substr","tl","userLettersToDisplay","tempSelectedDocs","tableLine","usersByRoleUrl","fetchUsersByRole","setFilterGlobal","DossiersFilter","dossierState","searchRef","partnersToDisplay","DossiersPagination","DossiersMain","usersToDisplay","setUsersToDisplay","setPartnersToDisplay","anticipaNotAccepted","facilitaNotAccepted","anticipaOngoing","facilitaOngoing","anticipaFinished","anticipaYearAndMore","anticipaClosed","facilitaSending","dossierTypeName","PrinterDoc","AlertProfile","duo","inviteUserRepresentative","urlsFacilita","ProcessDeces","readOnly","AddressLine1","City","Country","Married","Divorced","Widowed","CivilUnion","FreeUnion","Single","genders","familyOptionsEN","professionOptions","professionOptionsText","Retired","Employed","PoleEmploi","estateTypeFR","Apartment","House","Castel","Hotel","Boat","Camp","percent","done","HistoriqueProfile","EditProfile","PrintModal","validatedletterSections","isChecked","facultatives","setFacultatives","sortedFacultatives","sortedValidatedletterSections","guideNames","guideDtos","g","DownloadPrintFile","DossiersCard","setServiceDataLetters","setSelectedUserService","setServiceLetter","chosenServiceData","validUserLetters","PreviewDocLetter","serviceDataLetters","serviceLetter","selectedUserService","lettersOfChosenService","srvData","letterService","DossiersDetail","setValidatedletterSections","handleGetPartnerAndEtablissement","_validatedletterSections","Dossiers","ClientsMain","clientsState","updateClientAccount","selectedClient","setSelectedClient","selectedClientCopy","setSelectedClientCopy","admin","updateClient","deleteClient","Clients","PartnersHeader","totalUsers","setTotalUsers","totalPartners","setTotalPartners","allUsers","fetchAllUsers","allPartners","fetchAllPartner","xmlns","viewBox","PartnersMainTableHeader","PartnersMainTableRow","setSelectedPartner","AddPartner","inputFile","resetForm","setPartnerInfo","initPartnerFormValues","partnerInfo","showDroits","setShowDroits","logoPreview","autoComplete","humanFileSize","size","partnerDto","UpdatePartner","PartnersFilters","PartnersMainTable","displayableElements","setDisplayableElements","ExportPartner","partnerTemp","exportParameters","setExportParameters","DeletePartnerModal","selectedPartner","PartnersMain","DetailNav","AddPartnerUser","showFormation","setShowFormation","CreateUserByPartnerId","UpdateUserByPartnerId","DeletePartnerUser","UsersTableHeader","UsersTableRow","UsersTableNav","UsersTable","PartnersUsers","usersStats","setUsersStats","totalStatusAmount","getUsersDefault","usersIcon","EtablissementsTableHeader","EtablissementsTableRow","setSelectedEtablissement","numberOfUsers","EtablissementsTableNav","EtablissementsTable","AddPartnerEstablishment","selectedEtablissement","rhActivationLink","setEtablissementInfo","etablissementInfo","etablissementDto","CreateEtablissementsByPartnerId","UpdateEtablissementsByPartnerId","DeletePartnerEstablishment","PartnersEstablishment","active","inactive","etablissementStats","setEtablissementStats","allEtablissement","etabliss","getEtablissementDefault","Establishments","PartnersDetail","GetPartner","Partners","fetchClientsInvoices","paymentUrl","fetchAllClientsInvoices","fetchPartnersInvoices","fetchaAllPartnersInvoices","markPartnersInvoicesPaid","fetchInvoiceLines","PaiementHeader","paymentState","totalClientToPay","setTotalClientToPay","totalPartnersToPay","setTotalPartnersToPay","totalClientAmount","setTotalClientAmount","totalPartnersAmount","setTotalPartnersAmount","allPartnerInvoices","partnersToPay","partnersAmount","fetchPartners","allClientsInvoices","clientsToPay","clientsAmount","fetchClients","PaiementClientsTableFilter","PaiementClientTableNav","PaiementClientTableRow","PaiementClientTable","setinvoicesToDisplay","PaiementClients","PaySummaryHeader","setCollapse","PaySummaryNav","PaySummaryRow","PaySummaryTable","invoiceLines","linesToDisplay","invoiceSum","invoiceLinesToDisplay","setInvoiceLinesToDisplay","setTotalLinesAmount","PaiementPartnersTableFilter","PaiementPartnersTableNav","PaiementPartnersTableRow","PaiementPartnersTable","PaiementPartners","EditUser","resetServices","ActionTypesService","createPostalNumber","postalNumber","getProductsPrices","updateProductPrice","productName","browserHistory","ConfigurationHeader","ConfigurationGeneral","configState","impressionFormRef","pricesFormRef","buttonImpressionRef","buttonPriceRef","start","end","impression","setImpression","facilita4","anticipaMinus65","anticipa4","anticipa6","anticipaMonthly","formPrice","setFormPrice","setupfee1minus65","setupmonthly","min","facilitaPrice","parseFloat","anticipaPrice","anticipa4Price","anticipa6Price","partnerPrice","annualPrice","productsNewPrices","productPromises","ServiceModal","serviceModal","addressLine3","serviceForm","setServiceForm","Guid","raw","deathService","createService","handleDeleteUrl","ServiceTableFilter","ServiceTableNav","ServiceTableRow","ServiceTable","setServicesToDisplay","setServiceType","EditServiceModal","editServiceModal","Type","DeleteServiceModal","ConfigurationServices","servicesToDelete","normalizedTitle","normalize","toLocaleLowerCase","Configuration","store","createStore","createRootReducer","applyMiddleware","thunk","logger","routerMiddleware","ReactDOM","Auth","userReducer","hasLoadedInit","setHasLoadedInit","setIsPartner","setShowSerenita","usersAnticipa","usersFacilita","usersSerenita","getAllDossiers","defaults","navigator","serviceWorker","ready","registration","unregister","bytes","si","dp","thresh","abs","units","round","string","userAgent","searchServiceUrl","serviceByIdUrl","serviceByServiceTypeSearchUrl","servicetype","serviceUrl","getServiceByIdUrl","getServiceDetailByIdUrl","getServiceDataUrl","getServiceDataByTypeUrl","getServiceDataByIdUrl","serviceDataId","partnersByUrl","partnerByIdUrl","etablissementByPartnerIdUrl","usersByPartnerIdUrlDefault","createUserByPartnerIdUrl","userSendActivationEmailByIdPartnerIdUrl","partnerInvoicesToPay","partnerInvoicesToBill","etablissementInvoicesToPay","etablissementInvoicesToBill","invoiceLinesByInvoiceId","payInvoiceByIdUrl","FETCH_USER_REQUEST","FETCH_USER_SUCCESS","FETCH_USER_FAILURE","UPDATE_USER_REQUEST","UPDATE_USER_SUCCESS","UPDATE_USER_FAILURE","ADD_USER_ADDRESS_REQUEST","ADD_USER_ADDRESS_SUCCESS","ADD_USER_ADDRESS_FAILURE","UPDATE_USER_ADDRESS_REQUEST","UPDATE_USER_ADDRESS_SUCCESS","UPDATE_USER_ADDRESS_FAILURE","UPDATE_USER_SECURITY_REQUEST","UPDATE_USER_SECURITY_SUCCESS","UPDATE_USER_SECURITY_FAILURE","CHANGE_PHONENUMBER_REQUEST","CHANGE_PHONENUMBER_SUCCESS","CHANGE_PHONENUMBER_FAILURE","FETCH_USER_ADDRESS_REQUEST","FETCH_USER_ADDRESS_SUCCESS","FETCH_USER_ADDRESS_FAILURE","UPDATE_USER_SERVICE_REQUEST","UPDATE_USER_SERVICE_SUCCESS","UPDATE_USER_SERVICE_FAILURE","ADD_SERVICES_BATCH_REQUEST","ADD_SERVICES_BATCH_SUCCESS","ADD_SERVICES_BATCH_FAILURE","FETCH_REPRESENTATIVES_REQUEST","FETCH_REPRESENTATIVES_SUCCESS","FETCH_REPRESENTATIVES_FAILURE","ADD_REPRESENTATIVE_REQUEST","ADD_REPRESENTATIVE_SUCCESS","ADD_REPRESENTATIVE_FAILURE","UPDATE_REPRESENTATIVE_REQUEST","UPDATE_REPRESENTATIVE_SUCCESS","UPDATE_REPRESENTATIVE_FAILURE","FETCH_REPRESENTATIVES_ADDRESS_REQUEST","FETCH_REPRESENTATIVES_ADDRESS_SUCCESS","FETCH_REPRESENTATIVES_ADDRESS_FAILURE","ADD_REPRESENTATIVE_ADDRESS_REQUEST","ADD_REPRESENTATIVE_ADDRESS_SUCCESS","ADD_REPRESENTATIVE_ADDRESS_FAILURE","UPDATE_REPRESENTATIVE_ADDRESS_REQUEST","UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS","UPDATE_REPRESENTATIVE_ADDRESS_FAILURE","DELETE_REPRESENTATIVE_REQUEST","DELETE_REPRESENTATIVE_SUCCESS","DELETE_REPRESENTATIVE_FAILURE","RESET_USER_STATE","UPLOAD_DOCUMENT_REQUEST","UPLOAD_DOCUMENT_SUCCESS","UPLOAD_DOCUMENT_FAILURE","FETCH_DOCUMENTS_REQUEST","FETCH_DOCUMENTS_SUCCESS","FETCH_DOCUMENTS_FAILURE","DOWNLOAD_DOCUMENT_REQUEST","DOWNLOAD_DOCUMENT_SUCCESS","DOWNLOAD_DOCUMENT_FAILURE","DELETE_DOCUMENT_REQUEST","DELETE_DOCUMENT_SUCCESS","DELETE_DOCUMENT_FAILURE","UPDATE_MESSAGE_REQUEST","UPDATE_MESSAGE_SUCCESS","UPDATE_MESSAGE_FAILURE","FETCH_MESSAGE_FAILURE","GET_PROFILEPIC_REQUEST","GET_PROFILEPIC_SUCCESS","GET_PROFILEPIC_FAILURE","DELETE_PROFILEPIC_REQUEST","DELETE_PROFILEPIC_SUCCESS","DELETE_PROFILEPIC_FAILURE","UPLOAD_PROFILEPIC_REQUEST","UPLOAD_PROFILEPIC_SUCCESS","UPLOAD_PROFILEPIC_FAILURE","SET_COMPLETE_REQUEST","SET_COMPLETE_SUCCESS","SET_COMPLETE_FAILURE","ADD_PAYMENTMETHOD_REQUEST","ADD_PAYMENTMETHOD_SUCCESS","ADD_PAYMENTMETHOD_FAILURE","REMOVE_PAYMENTMETHOD_REQUEST","REMOVE_PAYMENTMETHOD_SUCCESS","REMOVE_PAYMENTMETHOD_FAILURE","PROCESS_PAYMENT_REQUEST","PROCESS_PAYMENT_SUCCESS","PROCESS_PAYMENT_FAILURE","GET_SETUPINTENT_REQUEST","GET_SETUPINTENT_SUCCESS","GET_SETUPINTENT_FAILURE","FETCH_INVOICES_REQUEST","FETCH_INVOICES_SUCCESS","FETCH_INVOICES_FAILURE","FETCH_USERREPRESENTING_REQUEST","FETCH_USERREPRESENTING_SUCCESS","FETCH_USERREPRESENTING_FAILURE","AUTHENTICATE_FACILITA_REQUEST","AUTHENTICATE_FACILITA_SUCCESS","GET_BILLINGCUSTOMERID_REQUEST","GET_BILLINGCUS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,UAMqB,IAAnB3B,EACA,GAEA,eAAC,KAAD,CACChX,IAAK8W,EACL8B,OAAO,KACPC,gBAAgB,GAChBC,mBAAiB,EACjBC,kBAAgB,EAChBC,qBAAqB,EACrBC,WAAW,aACXC,SAAUzmC,EAAK+jC,aACf7B,SAAU,SAACx/B,GACV,IAAIqjC,EAAUhB,EAAiBriC,GAC/B4hC,EAAQ,2BAAKtkC,GAAN,IAAY+jC,aAAcgC,KACjCrB,EAAcqB,EAAQN,mBAAmB,QAAS,CAAEP,IAAK,UAAWF,MAAO,UAAWU,KAAM,cAE7FgB,cAAe,WACdrB,KAEDsB,aAAc,WACbtB,KAEDuB,QAASzC,OAAYv0C,EAAY,IAAI8N,KACrCmpC,QAAM,EACNC,wBAAwB,EACxBC,uBAAwBpC,EAAM1yB,cAAgB,SAIjD,uBAAKumB,UAAU,cAAf,UACC,yBAAQppC,KAAK,SAASopC,UAAU,gBAAhC,qBAGA,yBAAQppC,KAAK,SAASopC,UAAU,eAAe6C,QAAS,kBAAM2I,EAAgBhkC,EAAK+jC,eAAnF,uCChKKiD,GAAmB,CAAC,WACjC,aACA,cACA,+BACA,oBACA,uBACA,kBACA,gBACA,iBACA,YACA,YACA,eACA,2BACA,gBACA,cACA,gBACA,yBACA,YACA,kBACA,oBACA,mBACA,oBACA,wBACA,cACA,gBACA,aACA,gBACA,YACA,oBACA,oBACA,YACA,qBACA,YACA,eACA,kBACA,uBACA,aACA,sBACA,gBACA,YACA,cACA,oBACA,aACA,mBACA,wBACA,cACA,WACA,sBACA,iBACA,sBACA,cACA,aACA,mBACA,eACA,0BACA,aACA,gBACA,eACA,iBACA,YACA,YACA,YACA,qBACA,sBACA,kCACA,6BACA,iCACA,gBACA,iBACA,iBACA,6BACA,sBACA,yBACA,cACA,cACA,oBACA,aACA,sBACA,sBACA,gBACA,sBACA,aACA,YACA,uBACA,WACA,gBACA,iBACA,cACA,oBACA,cACA,aACA,6BACA,eACA,sBACA,yBACA,oBACA,kBACA,mBACA,mB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wBACxB8nH,GAAwB,wBAExBC,GAAyB,yBACzBC,GAAyB,yBACzBC,GAAyB,yBAEzBC,GAA4B,4BAC5BC,GAA4B,4BAC5BC,GAA4B,4BAE5BC,GAA4B,4BAC5BC,GAA4B,4BAC5BC,GAA4B,4BAM5BvkH,GAAgC,gCAChCC,GAAgC,gCAGhCukH,GAAuB,uBACvBC,GAAuB,uBACvBC,GAAuB,uBAEvBC,GAA4B,4BAC5BC,GAA4B,4BAC5BC,GAA4B,4BAE5BC,GAA+B,+BAC/BC,GAA+B,+BAC/BC,GAA+B,+BAE/BC,GAA0B,0BAC1BC,GAA0B,0BAC1BC,GAA0B,0BAE1BC,GAA0B,0BAC1BC,GAA0B,0BAC1BC,GAA0B,0BAE1BC,GAAyB,yBACzBC,GAAyB,yBACzBC,GAAyB,yBAEzBC,GAAiC,iCACjCC,GAAiC,iCACjCC,GAAiC,iCAEjCC,GAAgC,gCAChCC,GAAgC,gCAGhCC,GAAgC,gCAChCC,GAAgC,gCAChCC,GAAgC,gCAGhCC,GAAsC,sCACtCC,GAAsC,sCACtCC,GAA8C,8CAC9CC,GAAsC,sCAGtCC,GAA2B,2BAC3BC,GAA2B,2BAC3BC,GAA2B,6B","file":"static/js/main.b8e690c5.chunk.js","sourcesContent":["export const FETCH_DECLARATION_REQUEST = 'FETCH_DECLARATION_REQUEST';\r\nexport const FETCH_DECLARATION_SUCCESS = 'FETCH_DECLARATION_SUCCESS';\r\nexport const FETCH_DECLARATION_FAILURE = 'FETCH_DECLARATION_FAILURE';\r\n\r\nexport const CREATE_DECLARATION_REQUEST = 'CREATE_DECLARATION_REQUEST';\r\nexport const CREATE_DECLARATION_SUCCESS = 'CREATE_DECLARATION_SUCCESS';\r\nexport const CREATE_DECLARATION_FAILURE = 'CREATE_DECLARATION_FAILURE';\r\n\r\nexport const UPDATE_DECLARATION_REQUEST = 'UPDATE_DECLARATION_REQUEST';\r\nexport const UPDATE_DECLARATION_SUCCESS = 'UPDATE_DECLARATION_SUCCESS';\r\nexport const UPDATE_DECLARATION_FAILURE = 'UPDATE_DECLARATION_FAILURE';\r\n\r\nexport const UPLOAD_FILE_REQUEST = \"UPLOAD_FILE_REQUEST\";\r\nexport const UPLOAD_FILE_SUCCESS = \"UPLOAD_FILE_SUCCESS\";\r\nexport const UPLOAD_FILE_FAILURE = \"UPLOAD_FILE_FAILURE\";\r\n\r\nexport const FETCH_FILES_REQUEST = \"FETCH_FILES_REQUEST\";\r\nexport const FETCH_FILES_SUCCESS = \"FETCH_FILES_SUCCESS\";\r\nexport const FETCH_FILES_FAILURE = \"FETCH_FILES_FAILURE\";\r\n\r\nexport const DOWNLOAD_FILE_REQUEST = \"DOWNLOAD_FILE_REQUEST\";\r\nexport const DOWNLOAD_FILE_SUCCESS = \"DOWNLOAD_FILE_SUCCESS\";\r\nexport const DOWNLOAD_FILE_FAILURE = \"DOWNLOAD_FILE_FAILURE\";\r\n\r\nexport const DELETE_FILE_REQUEST = \"DELETE_FILE_REQUEST\";\r\nexport const DELETE_FILE_SUCCESS = \"DELETE_FILE_SUCCESS\";\r\nexport const DELETE_FILE_FAILURE = \"DELETE_FILE_FAILURE\";\r\n\r\nexport const EDIT_DOCUMENT_REQUEST = 'EDIT_DOCUMENT_REQUEST';\r\nexport const EDIT_DOCUMENT_SUCCESS = 'EDIT_DOCUMENT_SUCCESS';\r\nexport const EDIT_DOCUMENT_FAILURE = 'EDIT_DOCUMENT_FAILURE';\r\n\r\nexport const SHARE_FILES_REQUEST = \"SHARE_FILES_REQUEST\";\r\nexport const SHARE_FILES_SUCCESS = \"SHARE_FILES_SUCCESS\";\r\nexport const SHARE_FILES_FAILURE = \"SHARE_FILES_FAILURE\";\r\n\r\nexport const FETCH_MESSAGE_REQUEST = \"FETCH_MESSAGE_REQUEST\";\r\nexport const FETCH_MESSAGE_SUCCESS = \"FETCH_MESSAGE_SUCCESS\";\r\nexport const FETCH_MESSAGE_FAILURE = \"FETCH_MESSAGE_FAILURE\";\r\n\r\nexport const FETCH_USER_SERVICES_REQUEST = \"FETCH_USER_SERVICES_REQUEST\";\r\nexport const FETCH_USER_SERVICES_SUCCESS = \"FETCH_USER_SERVICES_SUCCESS\";\r\nexport const FETCH_USER_SERVICES_FAILURE = \"FETCH_USER_SERVICES_FAILURE\";\r\n\r\nexport const ADD_USER_SERVICE_REQUEST = \"ADD_USER_SERVICE_REQUEST\";\r\nexport const ADD_USER_SERVICE_SUCCESS = \"ADD_USER_SERVICE_SUCCESS\";\r\nexport const ADD_USER_SERVICE_FAILURE = \"ADD_USER_SERVICE_FAILURE\";\r\n\r\nexport const ADD_USER_SERVICE_BATCH_REQUEST = \"ADD_USER_SERVICE_BATCH_REQUEST\";\r\nexport const ADD_USER_SERVICE_BATCH_SUCCESS = \"ADD_USER_SERVICE_BATCH_SUCCESS\";\r\nexport const ADD_USER_SERVICE_BATCH_FAILURE = \"ADD_USER_SERVICE_BATCH_FAILURE\";\r\n\r\nexport const DELETE_USER_SERVICE_REQUEST = \"DELETE_USER_SERVICE_REQUEST\";\r\nexport const DELETE_USER_SERVICE_SUCCESS = \"DELETE_USER_SERVICE_SUCCESS\";\r\nexport const DELETE_USER_SERVICE_FAILURE = \"DELETE_USER_SERVICE_FAILURE\";\r\n\r\n\r\nexport const FETCH_USER_SERVICES_DATA_REQUEST = \"FETCH_USER_SERVICES_DATA_REQUEST\";\r\nexport const FETCH_USER_SERVICES_DATA_SUCCESS = \"FETCH_USER_SERVICES_DATA_SUCCESS\";\r\nexport const FETCH_USER_SERVICES_DATA_FAILURE = \"FETCH_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const CREATE_USER_SERVICES_DATA_REQUEST = \"CREATE_USER_SERVICES_DATA_REQUEST\";\r\nexport const CREATE_USER_SERVICES_DATA_SUCCESS = \"CREATE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const CREATE_USER_SERVICES_DATA_FAILURE = \"CREATE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const UPDATE_USER_SERVICES_DATA_REQUEST = \"UPDATE_USER_SERVICES_DATA_REQUEST\";\r\nexport const UPDATE_USER_SERVICES_DATA_SUCCESS = \"UPDATE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const UPDATE_USER_SERVICES_DATA_FAILURE = \"UPDATE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const DELETE_USER_SERVICES_DATA_REQUEST = \"DELETE_USER_SERVICES_DATA_REQUEST\";\r\nexport const DELETE_USER_SERVICES_DATA_SUCCESS = \"DELETE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const DELETE_USER_SERVICES_DATA_FAILURE = \"DELETE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_REQUEST = \"SET_COMPLETE_USER_SERVICES_DATA_REQUEST\";\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_SUCCESS = \"SET_COMPLETE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_FAILURE = \"SET_COMPLETE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const GENERATE_USER_LETTER_REQUEST = 'GENERATE_USER_LETTER_REQUEST';\r\nexport const GENERATE_USER_LETTER_SUCCESS = 'GENERATE_USER_LETTER_SUCCESS';\r\nexport const GENERATE_USER_LETTER_FAILURE = 'GENERATE_USER_LETTER_FAILURE';\r\n\r\nexport const GENERATE_USER_LETTERS_REQUEST = 'GENERATE_USER_LETTERS_REQUEST';\r\nexport const GENERATE_USER_LETTERS_SUCCESS = 'GENERATE_USER_LETTERS_SUCCESS';\r\nexport const GENERATE_USER_LETTERS_FAILURE = 'GENERATE_USER_LETTERS_FAILURE';\r\n\r\nexport const FETCH_USER_LETTERS_REQUEST = 'FETCH_USER_LETTERS_REQUEST';\r\nexport const FETCH_USER_LETTERS_SUCCESS = 'FETCH_USER_LETTERS_SUCCESS';\r\nexport const FETCH_USER_LETTERS_FAILURE = 'FETCH_USER_LETTERS_FAILURE';\r\n\r\nexport const UPDATE_USER_LETTER_REQUEST = 'UPDATE_USER_LETTER_REQUEST';\r\nexport const UPDATE_USER_LETTER_SUCCESS = 'UPDATE_USER_LETTER_SUCCESS';\r\nexport const UPDATE_USER_LETTER_FAILURE = 'UPDATE_USER_LETTER_FAILURE';\r\n\r\nexport const FETCH_REFERENTS_REQUEST = 'FETCH_REFERENTS_REQUEST';\r\nexport const FETCH_REFERENTS_SUCCESS = 'FETCH_REFERENTS_SUCCESS';\r\nexport const FETCH_REFERENTS_FAILURE = 'FETCH_REFERENTS_FAILURE';\r\n\r\nexport const CREATE_REFERENT_REQUEST = 'CREATE_REFERENT_REQUEST';\r\nexport const CREATE_REFERENT_SUCCESS = 'CREATE_REFERENT_SUCCESS';\r\nexport const CREATE_REFERENT_FAILURE = 'CREATE_REFERENT_FAILURE';\r\n\r\nexport const UPDATE_REFERENT_REQUEST = 'UPDATE_REFERENT_REQUEST';\r\nexport const UPDATE_REFERENT_SUCCESS = 'UPDATE_REFERENT_SUCCESS';\r\nexport const UPDATE_REFERENT_FAILURE = 'UPDATE_REFERENT_FAILURE';\r\n\r\nexport const DELETE_REFERENT_REQUEST = 'DELETE_REFERENT_REQUEST';\r\nexport const DELETE_REFERENT_SUCCESS = 'DELETE_REFERENT_SUCCESS';\r\nexport const DELETE_REFERENT_FAILURE = 'DELETE_REFERENT_FAILURE';\r\n\r\nexport const FETCH_ONBOARDINGUSER_REQUEST = 'FETCH_ONBOARDINGUSER_REQUEST';\r\nexport const FETCH_ONBOARDINGUSER_SUCCESS = 'FETCH_ONBOARDINGUSER_SUCCESS';\r\nexport const FETCH_ONBOARDINGUSER_FAILURE = 'FETCH_ONBOARDINGUSER_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGUSER_REQUEST = 'UPDATE_ONBOARDINGUSER_REQUEST';\r\nexport const UPDATE_ONBOARDINGUSER_SUCCESS = 'UPDATE_ONBOARDINGUSER_SUCCESS';\r\nexport const UPDATE_ONBOARDINGUSER_FAILURE = 'UPDATE_ONBOARDINGUSER_FAILURE';\r\n\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_REQUEST = 'FETCH_ONBOARDINGUSER_ADDRESS_REQUEST';\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS = 'FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS';\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_FAILURE = 'FETCH_ONBOARDINGUSER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST = 'UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST';\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS = 'UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS';\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE = 'UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGSTEP_REQUEST = 'UPDATE_ONBOARDINGSTEP_REQUEST';\r\nexport const UPDATE_ONBOARDINGSTEP_SUCCESS = 'UPDATE_ONBOARDINGSTEP_SUCCESS';\r\nexport const UPDATE_ONBOARDINGSTEP_FAILURE = 'UPDATE_ONBOARDINGSTEP_FAILURE';\r\n\r\nexport const REPRESENTATIVE_INVITATION_REQUEST = 'REPRESENTATIVE_INVITATION_REQUEST';\r\nexport const REPRESENTATIVE_INVITATION_SUCCESS = 'REPRESENTATIVE_INVITATION_SUCCESS';\r\nexport const REPRESENTATIVE_INVITATION_FAILURE = 'REPRESENTATIVE_INVITATION_FAILURE';","import {EndPoints} from '../api-config';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\nexport const getAuthenticationUrl = () => {\r\n sessionStorage.removeItem(\"access_token\");\r\n return '/auth/signin';\r\n}\r\nexport const authenticationUrl = () => `${SERVER_ADDR_V1}/authentication/login`;\r\nexport const authenticationTwoFactorUrl = () => `${SERVER_ADDR_V1}/authentication/twoFactorAuthentication`;\r\nexport const registerUserUrl = () => `${SERVER_ADDR_V1}/user`;\r\nexport const resetPasswordEmail = () => `${SERVER_ADDR_V1}/user/resetPasswordEmail`;\r\nexport const setNewPassword = (id) => `${SERVER_ADDR_V1}/user/${id}/resetPassword`;\r\nexport const sendOTPUrl = () => `${SERVER_ADDR_V1}/sendPhoneNumberOTP`;\r\nexport const verifyOTPUrl = () => `${SERVER_ADDR_V1}/verifyPhoneNumberOTP`;","function Credentials(data){\r\n let credentials = data || {};\r\n this.phoneNumber = credentials.phoneNumber;\r\n this.email = credentials.email;\r\n this.password = credentials.password;\r\n}\r\nmodule.exports = Credentials;","function ReferentAuth(data){\r\n let referentAuth = data || {};\r\n this.phoneNumber = referentAuth.phoneNumber;\r\n this.email = referentAuth.email;\r\n this.password = referentAuth.password;\r\n this.twoFactorAuthenticationToken = referentAuth.twoFactorAuthenticationToken;\r\n this.jwtToken = referentAuth.jwtToken;\r\n}\r\nmodule.exports = ReferentAuth;","function Child(data){\r\n let child = data || {};\r\n this.birthDate = child.birthDate;\r\n this.isHandicaped = child.isHandicaped; \r\n}\r\nmodule.exports = Child;","import * as ActionTypes from '../constants/actiontypes/user';\r\nimport * as AuthActionTypes from '../constants/actiontypes/auth';\r\nimport * as DeathDeclarationActionTypes from '../constants/actiontypes/facilita/deathDeclaration';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../constants/webapi/user';\r\nimport * as serviceUrls from '../constants/webapi/services';\r\nimport { getAuthenticationUrl } from '../constants/webapi/auth';\r\nimport { FileTypes } from '../constants/utils/fileTypes';\r\nimport * as R from 'ramda';\r\nimport {isMobile} from './../utils/misc'\r\n\r\nexport function fetchUserByEmail(phoneNumber) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios.get(urls.userByPhoneNumberUrl(phoneNumber))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function fetchUserById(id) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_REQUEST, id: id });\r\n\t\treturn axios.get(urls.userByIdUrl(id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\nexport function updateUser(user) {\r\n\tif (R.isNil(user.isEnabled)) {\r\n\t\tuser.isEnabled = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_REQUEST, user: user.id });\r\n\t\treturn axios.put(urls.userByIdUrl(user.id), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tuser: user\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserSecurity(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_SECURITY_REQUEST, user: user.id });\r\n\t\treturn axios.put(urls.userSecurityByIdUrl(user.id), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SECURITY_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tuser: user\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SECURITY_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function changePhoneNumber(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.CHANGE_PHONENUMBER_REQUEST, user: user.id });\r\n\t\treturn axios.post(urls.changePhoneNumberUrl(user.id), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.CHANGE_PHONENUMBER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tuser: user\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.CHANGE_PHONENUMBER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteUser(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_USER_REQUEST, user: user });\r\n\t\treturn axios.delete(urls.userByIdUrl(user.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tuser: user\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateOnBoardingStep(step) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_ONBOARDINGSTEP_REQUEST, step: step });\r\n\r\n\t\treturn axios.put(urls.updateOnBoardingStepUrl(step))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tstep: step\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_REPRESENTATIVE_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addUserAddress(address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_USER_ADDRESS_REQUEST, user: address.user.id });\r\n\t\treturn axios.post(urls.userAddressByIdUrl(address.user.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateAddress(address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_ADDRESS_REQUEST, user: address.user.id, address: address.id });\r\n\t\treturn axios.put(urls.userAddressByIdWithIdUrl(address.user.id, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\taddress: address\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserAddress(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_ADDRESS_REQUEST, user: userId });\r\n\t\treturn axios.get(urls.userAddressByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserRepresentatives() {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_REPRESENTATIVES_REQUEST });\r\n\t\treturn axios.get(urls.userRepresentativesUrl())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_REPRESENTATIVES_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_REPRESENTATIVES_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addUserRepresentative(representative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_REPRESENTATIVE_REQUEST, representative: representative });\r\n\t\treturn axios.post(urls.userRepresentativesUrl(), representative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_REPRESENTATIVE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\ttmpRef: representative.tmpRef\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_REPRESENTATIVE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.response.data;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateRepresentative(representative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_REPRESENTATIVE_REQUEST, representative: representative });\r\n\t\treturn axios.put(urls.userRepresentativeByIdUrl(representative.id), representative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_REPRESENTATIVE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\treferent: representative\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_REPRESENTATIVE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteRepresentative(representative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_REPRESENTATIVE_REQUEST, representative: representative });\r\n\t\treturn axios.delete(urls.userRepresentativeByIdUrl(representative.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_REPRESENTATIVE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\treferent: representative\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_REPRESENTATIVE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserRepresentativeAddress(referent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_REQUEST, referent: referent });\r\n\t\treturn axios.get(urls.userRepresentativeAdressByIdUrl(referent.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\treferent: referent\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\treferent: referent\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\nexport function addUserRepresentativeAddress(id, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_REPRESENTATIVE_ADDRESS_REQUEST, referentId: id });\r\n\t\treturn axios.post(urls.userRepresentativeAdressByIdUrl(id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_REPRESENTATIVE_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\treferentId: id,\r\n\t\t\t\t\taddress: address\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_REPRESENTATIVE_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserRepresentativeAddress(id, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_REPRESENTATIVE_ADDRESS_REQUEST, id: id });\r\n\t\treturn axios.put(urls.userRepresentativeAdressIdByIdUrl(id, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\treferentId: id,\r\n\t\t\t\t\taddress: address\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_REPRESENTATIVE_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region Services\r\nexport function deleteService(user, service) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_USER_SERVICE_REQUEST, service: service.id });\r\n\t\treturn axios.delete(urls.userServiceByIdUrl(user.id, service.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tservice: service\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserServices(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_SERVICES_REQUEST, user: user.id });\r\n\t\treturn axios.get(urls.userServicesUrl(user.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserServiceData(userId, serviceType) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_REQUEST, user: userId });\r\n\t\treturn axios.get(urls.userServiceDataUrl(userId, serviceType))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserServiceDataDetails(serviceId) {\r\n\r\n\treturn new Promise((resolve, reject) => {\r\n\r\n\t\treturn axios.get(serviceUrls.getServiceDetailByIdUrl(serviceId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\treject(error.response);\r\n\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t});\r\n}\r\n\r\n\r\nexport function addUserService(user, service) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_USER_SERVICE_REQUEST, user: user.id });\r\n\t\treturn axios.post(urls.userServicesUrl(user.id), service)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tservice: service\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addUserServicesBatch(user, services) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_SERVICES_BATCH_REQUEST, user: user.id });\r\n\t\treturn axios.post(urls.userServicesBatchUrl(user.id), services)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_SERVICES_BATCH_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tservices: services\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_SERVICES_BATCH_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserService(user, service) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_SERVICE_REQUEST, user: user.id });\r\n\t\treturn axios.put(urls.userServiceByIdUrl(user.id, service.id), service)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region Documents\r\n// export function uploadDocument(userId, fileType, document, description) {\r\n// let data = new FormData();\r\n// const config = {\r\n// headers: { 'content-type': 'multipart/form-data', 'user-description': description },\r\n// credential: 'include'\r\n// }\r\n// \tdata.append(\"file\", document, document.name);\r\n\r\n// return (dispatch) => {\r\n// dispatch({ type: ActionTypes.UPLOAD_DOCUMENT_REQUEST, documentName: document.name, fileType: fileType });\r\n// return axios.post(urls.userDocumentUrl(userId, fileType), data, config)\r\n// .then((response) => {\r\n// dispatch({\r\n// type: ActionTypes.UPLOAD_DOCUMENT_SUCCESS,\r\n// data: response.data,\r\n// \t\t\t\t\tdocumentName: document.name,\r\n// \t\t\t\t\tfileType: fileType,\r\n// \t\t\t\t\tdescription: description\r\n// });\r\n// return response;\r\n// })\r\n// .catch((error) => {\r\n// if(error.response !== undefined && error.response.status === 401){\r\n// window.location = getAuthenticationUrl();\r\n// return;\r\n// }\r\n// dispatch({\r\n// type: ActionTypes.UPLOAD_DOCUMENT_FAILURE,\r\n// \t\t\t\t\terror: error.response,\r\n// \t\t\t\t\tdocumentName: document.name,\r\n// \t\t\t\t\tfileType: fileType\r\n// });\r\n// throw error;\r\n// })\r\n// };\r\n// }\r\n\r\nexport function updateFileDescription(userId, document, description, filePath){\r\n\treturn (dispatch) => {\r\n\t\treturn axios.patch(urls.userDocumentUrl(userId, document.fileName, filePath), {fileName: document.fileName, fileType: document.fileType, description: description})\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.EDIT_DOCUMENT_SUCCESS,\r\n\t\t\t\tfile: response.data\r\n\t\t\t});\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\nexport function uploadDocument(userId, fileType, document, description, filePath) {\r\n\tlet data = new FormData();\r\n\tconst config = {\r\n\t\theaders: { 'content-type': 'multipart/form-data' },\r\n\t\tcredential: 'include'\r\n\t};\r\n\tif(!R.isNil(document)){\r\n\t\tdata.append(\"file\", document, document.name);\r\n\t}else{\r\n\t\tdocument = {name: null}\r\n\t}\r\n\t\r\n\tdata.append(\"fileDescription\", description);\r\n\tif(!R.isNil(filePath)){\r\n\t\tdata.append(\"filePath\", filePath);\r\n\t}\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPLOAD_DOCUMENT_REQUEST, documentName: document.name, fileType: fileType });\r\n\t\treturn axios.post(urls.userDocumentUrl(userId, fileType), data, config)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tconst file = { fileName: document.name, fileType: fileType, description: description };\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPLOAD_DOCUMENT_SUCCESS,\r\n\t\t\t\t\tfile: file\r\n\t\t\t\t});\r\n\t\t\t\treturn file;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPLOAD_DOCUMENT_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t\tdocumentName: document.name,\r\n\t\t\t\t\tfileType: fileType\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getDocuments(user, shouldDispatch, path) {\r\n\tif(R.isNil(shouldDispatch)){\r\n\t\tshouldDispatch = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_DOCUMENTS_REQUEST, user: user.id });\r\n\t\treturn axios.get(urls.userDocumentsUrl(user.id, path))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif(shouldDispatch){\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: ActionTypes.FETCH_DOCUMENTS_SUCCESS,\r\n\t\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_DOCUMENTS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getDocumentsProfile(user) {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\taxios.get(urls.userDocumentsUrl(user.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\treject(error);\r\n\t\t\t});\r\n\t});\r\n}\r\n\r\nexport function downloadDocument(userId, fileType, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DOWNLOAD_DOCUMENT_REQUEST, fileType: fileType });\r\n\t\treturn axios.get(urls.userDocumentUrl(userId, fileType, path), { responseType: \"arraybuffer\" })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\t\tvar fileurl = (window.URL || window.webkitURL).createObjectURL(file);\r\n\t\t\t\t\r\n\t\t\t\tif (isMobile()) {\r\n\t\t\t\t\t// Mobile: Force Download\r\n\t\t\t\t\tvar link = document.createElement(\"a\");\r\n\t\t\t\t\tlink.href = fileurl;\r\n\t\t\t\t\tlink.download = fileType; // Change filename if needed\r\n\t\t\t\t\tdocument.body.appendChild(link);\r\n\t\t\t\t\tlink.click();\r\n\t\t\t\t\tdocument.body.removeChild(link);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Desktop: Open in New Tab\r\n\t\t\t\t\twindow.open(fileurl, \"_blank\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Cleanup\r\n\t\t\t\twindow.URL.revokeObjectURL(fileurl);\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DOWNLOAD_DOCUMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DOWNLOAD_DOCUMENT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteDocument(userId, fileName, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_DOCUMENT_REQUEST, fileType: fileName });\r\n\t\treturn axios.delete(urls.userDocumentUrl(userId, fileName, path))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_DOCUMENT_SUCCESS,\r\n\t\t\t\t\tfileType: fileName\r\n\t\t\t\t});\r\n\t\t\t\treturn fileName;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_DOCUMENT_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t\tfileType: fileName\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateDocumentDescription(userId, fileName, path, description) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_DOCUMENT_REQUEST, fileType: fileName });\r\n\t\treturn axios.patch(urls.userDocumentUrl(userId, fileName, path), {description})\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_DOCUMENT_SUCCESS,\r\n\t\t\t\t\tfileType: fileName\r\n\t\t\t\t});\r\n\t\t\t\treturn fileName;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_DOCUMENT_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t\tfileType: fileName\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region Message\r\nexport function updateUserMessage(message) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_MESSAGE_REQUEST });\r\n\t\treturn axios.put(urls.userMessageUrl(), { message })\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_MESSAGE_SUCCESS,\r\n\t\t\t\t\tmessage: message\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_MESSAGE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserMessage() {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_MESSAGE_REQUEST });\r\n\t\treturn axios.get(urls.userMessageUrl())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region ProfilePicture\r\nexport function getProfilePicture(userId, profilePictureName) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.GET_PROFILEPIC_REQUEST });\r\n\t\treturn axios.get(urls.userDocumentUrl(userId, profilePictureName), { responseType: \"arraybuffer\" })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_PROFILEPIC_SUCCESS,\r\n\t\t\t\t\tdata: `data:${response.headers['content-type']};base64,${new Buffer(response.data).toString('base64')}`\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_PROFILEPIC_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteProfilePicture(userId, pictureName) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_PROFILEPIC_REQUEST });\r\n\t\treturn axios.delete(urls.userDocumentUrl(userId, pictureName))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_PROFILEPIC_SUCCESS\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_PROFILEPIC_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\nexport function getProfileFiles(userId) {\r\n\treturn new Promise((resolve, reject) => {\r\n\r\n\t\taxios.get(urls.userDocumentsUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\treject(error.statusText);\r\n\t\t\t});\r\n\r\n\t});\r\n\r\n\r\n\r\n}\r\n\r\n\r\nconst toBase64 = file => new Promise((resolve, reject) => {\r\n\tconst reader = new FileReader();\r\n\treader.readAsDataURL(file);\r\n\treader.onload = () => resolve(reader.result);\r\n\treader.onerror = error => reject(error);\r\n});\r\n\r\nexport function uploadProfilePicture(userId, document) {\r\n\tlet data = new FormData();\r\n\tconst config = {\r\n\t\theaders: { 'content-type': 'multipart/form-data' },\r\n\t\tcredential: 'include'\r\n\t};\r\n\tdata.append(\"file\", document, document.name);\r\n\tlet toReturnBase64 = '';\r\n\tlet readDoc = async () => {\r\n\t\ttoReturnBase64 = await toBase64(document);\r\n\t};\r\n\treadDoc();\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPLOAD_PROFILEPIC_REQUEST, documentName: document.name, fileType: FileTypes.ProfilePicture });\r\n\t\treturn axios.post(urls.userDocumentUrl(userId, FileTypes.ProfilePicture), data, config)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPLOAD_PROFILEPIC_SUCCESS,\r\n\t\t\t\t\tdata: toReturnBase64\r\n\t\t\t\t});\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPLOAD_PROFILEPIC_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\nexport function resetUser() { return (dispatch) => { dispatch({ type: ActionTypes.RESET_USER_STATE }); }; };\r\n\r\nexport function setComplete(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.SET_COMPLETE_REQUEST, user: user.id });\r\n\t\treturn axios.put(urls.completeById(user.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.SET_COMPLETE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.SET_COMPLETE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addPaymentMethod(user, paymentMethodId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_PAYMENTMETHOD_REQUEST, user: user.id, paymentMethod: paymentMethodId });\r\n\t\treturn axios.post(urls.addPaymentMethodUrl(user.id), { paymentMethodId: paymentMethodId })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_PAYMENTMETHOD_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_PAYMENTMETHOD_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function removePaymentMethod(user, paymentMethod) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.REMOVE_PAYMENTMETHOD_REQUEST, user: user.id, paymentMethod: paymentMethod });\r\n\t\treturn axios.delete(urls.removePaymentMethodUrl(user.id, paymentMethod.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.REMOVE_PAYMENTMETHOD_SUCCESS,\r\n\t\t\t\t\tpaymentMethod: paymentMethod\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.REMOVE_PAYMENTMETHOD_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getSetupIntent(user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.GET_SETUPINTENT_REQUEST });\r\n\t\treturn axios.get(urls.getSetupIntentByIdUrl(user.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_SETUPINTENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_SETUPINTENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getCurrentPrices(userId) {\r\n\treturn axios.get(urls.getCurrentPricesUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\nexport function processPayment(user, discountCode, setupFeeInstallments) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.PROCESS_PAYMENT_REQUEST, });\r\n\t\treturn axios.post(urls.processPaymentdUrl(user.id), { discountCode: discountCode, setupFeeInstallments: setupFeeInstallments })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.PROCESS_PAYMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.PROCESS_PAYMENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function validateDiscountCode(user, discountCode) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.PROCESS_PAYMENT_REQUEST, });\r\n\t\treturn axios.post(urls.processPaymentdUrl(user.id), { discountCode: discountCode })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.PROCESS_PAYMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.PROCESS_PAYMENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getBillingCustomerId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.GET_BILLINGCUSTOMERID_REQUEST });\r\n\t\treturn axios.get(urls.userBillingCustomerIdByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_BILLINGCUSTOMERID_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_BILLINGCUSTOMERID_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region invoices\r\nexport function fetchInvoices() {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_INVOICES_REQUEST, });\r\n\t\treturn axios.get(urls.getInvoicesUrl())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_INVOICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_INVOICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\nexport function fetchPartnerCustomization(partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_PARTNER_CUSTOMIZATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(urls.getPartnerCustomizationUrl(partnerId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_PARTNER_CUSTOMIZATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_PARTNER_CUSTOMIZATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\n//#region Change PhoneNumber\r\n\r\nexport function changePhoneNumberSecurity(phoneNumber, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios.post(urls.changePhoneNumberUrl(userId), { newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\t\treason: error.response.status\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 409)\r\n\t\t\t\t\tthrow new Error(\"AlreadyExistingPhoneNumber\");\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserSecurityInfo(phoneNumber, otpCode, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode: otpCode });\r\n\t\treturn axios.put(urls.userSecurityByIdUrl(userId), { id: userId, oTPCode: otpCode, newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tphoneNumber: phoneNumber\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 400 && error.response.data.errors?.hasOwnProperty(\"otpCode\")) {\r\n\t\t\t\t\tthrow new Error(\"InvalidOtpCode\");\r\n\t\t\t\t}\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserEmailAndPassword(email, password, newPassword, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SET_NEWPASSWORD_REQUEST });\r\n\t\treturn axios.put(urls.userSecurityByIdUrl(userId), { id: userId, newEmail: email, currentPassword: password, newPassword: newPassword })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SET_NEWPASSWORD_SUCCESS,\r\n\t\t\t\t\temail: email,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SET_NEWPASSWORD_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\tthrow \"InvalidPassword\";\r\n\t\t\t\t}\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n\r\nexport function GetPaymentIntentsSecretKey(userId, secret) {\r\n\treturn axios.get(urls.addPaymentMethodIntents(userId, secret))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n","import * as R from \"ramda\";\r\nexport const FileTypes = {\r\n\tDeathCertificate: \"DeathCertificate\",\r\n\tSignature: \"Signature\",\r\n\tLetter: \"Letter\",\r\n\tTransportationInvoice: \"Death.UnderTaker.TransportationInvoice\",\r\n\tFuneralServicesInvoice: \"Death.UnderTaker.Invoice\",\r\n\tUserRepresentativeHeirProof: \"UserRepresentative.Heir.Proof\",\r\n\tUserRepresentativeRib: \"UserRepresentative.Rib\",\r\n\tUserRepresentativeIdCard: \"UserRepresentative.IdCard\",\r\n\tUserRepresentativeHealthCertificate: \"UserRepresentative.HealthCertificate\",\r\n\tUserRepresentativeFiscalSituation: \"UserRepresentative.FiscalSituation\",\r\n\tUserRepresentativeInvalidPensionCertificate: \"UserRepresentative.InvalidPensionCertificate\",\r\n\tUserRepresentativeWorkDiseasePensionCertificate: \"UserRepresentative.WorkDiseasePensionCertificate\",\r\n\tUserRepresentativeWorkIncidentPensionCertificate: \"UserRepresentative.WorkIncidentPensionCertificate\",\r\n\tUserRepresentativeRetiredPensionCertificate: \"UserRepresentative.RetiredPensionCertificate\",\r\n\tUserPensionProof: \"User.PensionProof\",\r\n\tUserSocialSecurityCard: \"User.SocialSecurityCard\",\r\n\tUserSocialSecurityRightCertificate: \"User.SocialSecurityRightCertificate\",\r\n\tUserRetiredPensionCertificate: \"User.RetiredPensionCertificate\",\r\n\tUserInvalidPensionCertificate: \"User.InvalidPensionCertificate\",\r\n\tUserChildrenIdCard: \"User.Children.IdCard\",\r\n\tUserIdCard: \"User.IdCard\",\r\n\tUserFamilyRecordBook: \"User.FamilyRecordBook\",\r\n\tUserDonation: \"User.Donation\",\r\n\tOther: \"Other\",\r\n\tProfilePicture: \"ProfilePicture\",\r\n\tFolder: \"Folder\",\r\n\tFolderRH: \"FolderRH\",\r\n\tPayslip: \"Payslip\",\r\n\tUserProofOfAddress: \"User.ProofOfAddress\",\r\n\tLastTaxNotice: \"Tax.LastTaxNotice\",\r\n\tBankAccountSheet: \"Bank.AccountSheet\",\r\n\tDeposit: \"Guarantee\",\r\n\tThreeMonthOldProofOfAddress: \"User.ThreeMonthOldProofOfAddress\",\r\n\tVaccinationCard: \"User.VaccinationCard\",\r\n\tRegistrationCertificate: \"User.RegistrationCertificate\",\r\n\tRelocationExpenses: \"Relocation.Expenses\",\r\n\tFamilyBook: \"User.FamilyBook\",\r\n\tWorkContract: \"User.WorkContract\",\r\n\tMedicalCertificate: \"User.DoctorCertificate\",\r\n\tIdCard: \"IdCard\",\r\n\tProtectiveMeasure: \"ProtectiveMeasure\",\r\n\tVisualImpairment: \"VisualImpairment\",\r\n\tSocialSecurityCertificate: \"SocialSecurityCertificate\",\r\n\tLeaseContract: \"LeaseContract\",\r\n\tYearOldProofOfAddress: \"User.YearOldProofOfAddress\",\r\n\tHigherEducationRegistration: \"HigherEducationRegistration\",\r\n};\r\n\r\nexport function FiletypeToDisplayName(fileType, isFacilita) {\r\n\tif (R.isNil(isFacilita)) {\r\n\t\tisFacilita = true;\r\n\t}\r\n\tconst displayNameMapping = {\r\n\t\t[FileTypes.DeathCertificate]: \"Acte de décès\",\r\n\t\t[FileTypes.Signature]: \"Signature\",\r\n\t\t[FileTypes.Letter]: \"Lettre\",\r\n\t\t[FileTypes.TransportationInvoice]: \"Facture des frais de transport du corps\",\r\n\t\t[FileTypes.FuneralServicesInvoice]: \"Facture des pompes funèbres\",\r\n\t\t[FileTypes.UserRepresentativeHeirProof]: \"Certificat de notoriété attestant de ma qualité d’héritier\",\r\n\t\t[FileTypes.UserRepresentativeRib]: \"RIB du référent\",\r\n\t\t[FileTypes.UserRepresentativeIdCard]: \"Pièce justificative de l'identité du référent\",\r\n\t\t[FileTypes.UserRepresentativeHealthCertificate]: \"Certificat médical constatant de l'incapacité du référent\",\r\n\t\t[FileTypes.UserRepresentativeFiscalSituation]: \"Situation fiscale du référent\",\r\n\t\t[FileTypes.UserRepresentativeInvalidPensionCertificate]: \"Notification du référent pour l'attribution pension d'invalidité\",\r\n\t\t[FileTypes.UserRepresentativeWorkDiseasePensionCertificate]: \"Notification du référent pour l'attribution de rente pour maladie professionnelle \",\r\n\t\t[FileTypes.UserRepresentativeWorkIncidentPensionCertificate]: \"Notification du référent pour l'attribution de rente pour accident du travail\",\r\n\t\t[FileTypes.UserRepresentativeRetiredPensionCertificate]: \"Notification du référent d'attribution de pension de retraite\",\r\n\t\t[FileTypes.UserPensionProof]: \"Attestation de rente du défunt (MP ou AT)\",\r\n\t\t[FileTypes.UserSocialSecurityCard]: \"Carte vitale du défunt\",\r\n\t\t[FileTypes.UserSocialSecurityRightCertificate]: \"Attestation de droits du défunt\",\r\n\t\t[FileTypes.UserRetiredPensionCertificate]: \"Notification d'attribution de pension d'invalidité du défunt\",\r\n\t\t[FileTypes.UserInvalidPensionCertificate]: \"Notification d'attribution de pension de retraite du défunt\",\r\n\t\t[FileTypes.UserChildrenIdCard]: \"Pièces justificatives de l'identité des enfants à charge du défunt\",\r\n\t\t[FileTypes.UserIdCard]: isFacilita ? \"Pièces justificatives de l'identité du défunt\" : \"Pièces justificatives de votre identité\",\r\n\t\t[FileTypes.UserFamilyRecordBook]: \"Livret de famille\" + (isFacilita ? \" du défunt\" : \"\"),\r\n\t\t[FileTypes.UserDonation]: \"Donation\" + (isFacilita ? \" du défunt\" : \"\"),\r\n\t\t[FileTypes.Other]: \"Autres\",\r\n\t\t[FileTypes.ProfilePicture]: \"Image de profil\",\r\n\t\t[FileTypes.Payslip]: \"Bulletin de paie\",\r\n\t\t[FileTypes.UserProofOfAddress]: \"Justificatif de domicile à votre nom\",\r\n\t\t[FileTypes.LastTaxNotice]: \"Dernier avis d'imposition\",\r\n\t\t[FileTypes.BankAccountSheet]: \"Relevé d'identité bancaire\",\r\n\t\t[FileTypes.Deposit]: \"Bail\",\r\n\t\t[FileTypes.ThreeMonthOldProofOfAddress]: \"Justificatif de domicile de moins de 3 mois\",\r\n\t\t[FileTypes.VaccinationCard]: \"Carnet de vaccination\",\r\n\t\t[FileTypes.RegistrationCertificate]: \"Certificat d'inscription délivré par la mairie\",\r\n\t\t[FileTypes.RelocationExpenses]: \"Tous les justificatifs des dépenses liées au déménagement : Facture déménageur professionnel OU factures achat de matériel, location de camion, essence et péages...\",\r\n\t\t[FileTypes.FamilyBook]: \"Livret de famille (si enfant(s) à charge)\",\r\n\t\t[FileTypes.WorkContract]: \"Contrat de travail et avenant ou attestation de l'employeur\",\r\n\t\t[FileTypes.MedicalCertificate]: \"Certificat médical à faire remplir par un médecin\",\r\n\t\t[FileTypes.IdCard]: \"Photocopie de votre carte d’identité recto verso\",\r\n\t\t[FileTypes.ProtectiveMeasure]: \"Photocopie éventuelle du jugement si une mesure de protection a été prise à votre encontre\",\r\n\t\t[FileTypes.VisualImpairment]: \"Bilan ophtalmologique ou auditif si vous êtes malvoyant ou malentendant\",\r\n\t\t[FileTypes.SocialSecurityCertificate]: \"Attestation de Sécurité Sociale\",\r\n\t\t[FileTypes.LeaseContract]: \"Copie complète du bail souscrit\",\r\n\t\t[FileTypes.YearOldProofOfAddress]: \"Copie de la facture des dépenses engagées à votre nom et datant de moins d'un an\",\r\n\t\t[FileTypes.HigherEducationRegistration]: \"Justificatif d'inscription dans l'établissement correspondant au vœu hors académie de résidence que vous avez accepté dans Parcoursup\",\r\n\t};\r\n\treturn displayNameMapping[fileType];\r\n}\r\n","import { EndPoints } from '../api-config';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n\r\nexport const userByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}`;\r\nexport const userSecurityByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/security`;\r\nexport const changePhoneNumberUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/changePhoneNumber`;\r\nexport const userAddressByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/address`;\r\nexport const userAddressByIdWithIdUrl = (id, addressId) => `${SERVER_ADDR_V1}/user/${id}/address/${addressId}`;\r\nexport const userByPhoneNumberUrl = (phoneNumber) => `${SERVER_ADDR_V1}/user?filters=PhoneNumber@=${phoneNumber}`;\r\nexport const userRepresentativeSelfcareAuthById = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}/auth`;\r\nexport const userBillingCustomerIdByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/billingcustomerId`;\r\nexport const userSoftDeleteByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/soft`;\r\n\r\n\r\nexport const userRepresentativeSelfcareById = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}`;\r\nexport const userRepresentativeSelfcareByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}`;\r\n\r\n\r\n\r\nexport const userRepresentativesUrlById = (id) => `${SERVER_ADDR_V1}/user/${id}/userRepresentatives`;\r\n\r\nexport const userRepresentativeAuthByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/${id}`;\r\nexport const userRepresentativesUrl = () => `${SERVER_ADDR_V1}/UserRepresentative`;\r\nexport const userRepresentativeByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/${id}`;\r\nexport const userRepresentativeAdressByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/${id}/address`;\r\nexport const userRepresentativeAdressIdByIdUrl = (id, addressId) => `${SERVER_ADDR_V1}/UserRepresentative/${id}/address/${addressId}`;\r\nexport const userServicesUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/connection`;\r\nexport const userServiceByIdUrl = (id, serviceId) => `${SERVER_ADDR_V1}/user/${id}/connection/${serviceId}`;\r\nexport const userServicesBatchUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/connection/batch`;\r\nexport const userDocumentUrl = (id, fileType, path) => `${SERVER_ADDR_V1}/user/${id}/file${fileType !== undefined ? '/' + fileType : \"\"}${path !== undefined ? '?path=' + path : ''}`;\r\nexport const userDocumentsUrl = (id, path) => `${SERVER_ADDR_V1}/user/${id}/file${path !== undefined ? '?path=' + path : ''}`;\r\nexport const userMessageUrl = () => `${SERVER_ADDR_V1}/user/message`;\r\nexport const userMessageByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/message`;\r\nexport const addPaymentMethodUrl = (id) => `${SERVER_ADDR_V1}/paymentmethods`;\r\nexport const validateDiscountCodeUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/discounts`;\r\nexport const removePaymentMethodUrl = (id, paymentMethodId) => `${SERVER_ADDR_V1}/paymentmethods/${paymentMethodId}`;\r\nexport const getCurrentPricesUrl = (id) => `${SERVER_ADDR_V1}/paymentmethods/${id}/prices`;\r\nexport const getSetupIntentUrl = () => `${SERVER_ADDR_V1}/paymentmethods/setupintent`;\r\nexport const getSetupIntentByIdUrl = (id) => `${SERVER_ADDR_V1}/paymentmethods/${id}/setupintent`;\r\nexport const processPaymentdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/processpayment`;\r\nexport const searchServiceUrl = (serviceType, pos, name) => `${SERVER_ADDR_V1}/services/list/${serviceType}${name !== undefined ? '?name=' + name : ''}${pos !== undefined ? '?pos=' + pos : ''}`;\r\nexport const updateOnBoardingStepUrl = (step) => `${SERVER_ADDR_V1}/user/onboardingStep?step=${step}`;\r\nexport const updateOnBoardingStepByIdUrl = (id, step) => `${SERVER_ADDR_V1}/user/${id}/onBoardingStep?step=${step}`;\r\n\r\nexport const userShareDocument = (id) => `${SERVER_ADDR_V1}/user/${id}/share`;\r\n\r\nexport const completeById = (id) => `${SERVER_ADDR_V1}/user/${id}/complete`;\r\nexport const getInvoicesUrl = () => `${SERVER_ADDR_V1}/invoices`;\r\nexport const getInvoicesByUserIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/invoices`;\r\nexport const getRecipientInvoicesByIdUrl = (id) => `${SERVER_ADDR_V1}/Invoices/recipient/${id}/USER`;\r\n\r\n\r\nexport const declareDeathById = (id) => `${SERVER_ADDR_V1}/user/${id}/declareDeath`;\r\nexport const userServiceDataUrl = (id, serviceType, lifeEvent) => `${SERVER_ADDR_V1}/user/${id}/serviceData${serviceType !== undefined ? \"?serviceType=\" + serviceType : \"\"}${lifeEvent !== undefined ? \"?lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const getPartnerCustomizationUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/customization`;\r\n\r\nexport const addPaymentMethodIntents = (userId, secret) => `${SERVER_ADDR_V1}/paymentmethods/${userId}/paymentIntents/${secret}`;\r\n\r\nexport const getUserLifeEventsByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/lifeEvents`;\r\nexport const declareRelocationByIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/declareRelocation`;\r\n\r\nexport const generatePrintFile = (id) => `${SERVER_ADDR_V1}/user/${id}/print`;","function ReferentSelfcare(data){\r\n let referent = data || {};\r\n this.id = referent.id;\r\n this.email = referent.email;\r\n this.gender = referent.gender === '0' ? undefined: referent.gender;\r\n this.firstName = referent.firstName;\r\n this.lastName = referent.lastName;\r\n this.birthDate = referent.birthDate === '0001-01-01T00:00:00Z' ? undefined: new Date(referent.birthDate);\r\n this.representativeType = referent.representativeType === '0' ? undefined: referent.representativeType;\r\n this.representedFirstName = referent.representedFirstName;\r\n this.representedLastName = referent.representedLastName;\r\n this.address = referent.address !== undefined ? referent.address : undefined;\r\n this.phoneNumber = referent.phoneNumber;\r\n this.representedRelation = referent.representedRelation;\r\n this.createdByRepresentative = referent.representedCreatedByRepresentative;\r\n}\r\nmodule.exports = ReferentSelfcare;","export const AUTH_USER_REQUEST = 'AUTH_USER_REQUEST';\r\nexport const AUTH_USER_SUCCESS = 'AUTH_USER_SUCCESS';\r\nexport const AUTH_USER_FAILURE = 'AUTH_USER_FAILURE';\r\n\r\nexport const REGISTER_USER_REQUEST = 'REGISTER_USER_REQUEST';\r\nexport const REGISTER_USER_SUCCESS = 'REGISTER_USER_SUCCESS';\r\nexport const REGISTER_USER_FAILURE = 'REGISTER_USER_FAILURE';\r\n\r\nexport const RESET_AUTH_STATE = 'RESET_AUTH_STATE';\r\n\r\nexport const RESET_PASSWORD_REQUEST = 'RESET_PASSWORD_REQUEST';\r\nexport const RESET_PASSWORD_SUCCESS = 'RESET_PASSWORD_SUCCESS';\r\nexport const RESET_PASSWORD_FAILURE = 'RESET_PASSWORD_FAILURE';\r\n\r\nexport const SET_NEWPASSWORD_REQUEST = 'SET_NEWPASSWORD_REQUEST';\r\nexport const SET_NEWPASSWORD_SUCCESS = 'SET_NEWPASSWORD_SUCCESS';\r\nexport const SET_NEWPASSWORD_FAILURE = 'SET_NEWPASSWORD_FAILURE';\r\n\r\nexport const SEND_MFA_CODE_REQUEST = 'SEND_MFA_CODE_REQUEST';\r\nexport const SEND_MFA_CODE_SUCCESS = 'SEND_MFA_CODE_SUCCESS';\r\nexport const SEND_MFA_CODE_FAILURE = 'SEND_MFA_CODE_FAILURE';\r\n\r\nexport const SEND_OTP_CODE_REQUEST = 'SEND_OTP_CODE_REQUEST';\r\nexport const SEND_OTP_CODE_SUCCESS = 'SEND_OTP_CODE_SUCCESS';\r\nexport const SEND_OTP_CODE_FAILURE = 'SEND_OTP_CODE_FAILURE';\r\n\r\nexport const VERIFY_OTP_REQUEST = 'VERIFY_OTP_REQUEST';\r\nexport const VERIFY_OTP_SUCCESS = 'VERIFY_OTP_SUCCESS';\r\nexport const VERIFY_OTP_FAILURE = 'VERIFY_OTP_FAILURE';\r\n","function RepresentingUser(data){\r\n let representing = data || {};\r\n this.id = representing.id;\r\n this.firstName = representing.firstName;\r\n this.lastName = representing.lastName;\r\n this.processNumber = representing.processNumber;\r\n this.isDeceased = representing.isDeceased;\r\n this.createdByRepresentative = representing.createdByRepresentative;\r\n this.hasCompletedDossier = representing.hasCompletedDossier;\r\n this.hasCompletedOnBoarding = representing.hasCompletedOnBoarding;\r\n this.hasValidatedAllLetters = representing.hasValidatedAllLetters;\r\n this.etablissementId = representing.etablissementId;\r\n this.partnerId = representing.partnerId;\r\n this.hasDocumentSending = representing.hasDocumentSending;\r\n}\r\nmodule.exports = RepresentingUser;","function LetterHistory(data){\r\n let letterHistory = data || {};\r\n this.date = letterHistory.date;\r\n this.letterProgressStage = letterHistory.letterProgressStage;\r\n this.details = letterHistory.details;\r\n this.userId = letterHistory.userId;\r\n}\r\nmodule.exports = LetterHistory;","function AggregateRating(data) {\r\n let aggregate = data || {};\r\n this.ratingCount = aggregate.ratingCount;\r\n this.ratingValue = aggregate.ratingValue;\r\n}\r\nmodule.exports = AggregateRating;","export const FETCH_PARTNER_REQUEST = 'FETCH_PARTNER_REQUEST';\r\nexport const FETCH_PARTNER_SUCCESS = 'FETCH_PARTNER_SUCCESS';\r\nexport const FETCH_PARTNER_FAILURE = 'FETCH_PARTNER_FAILURE';\r\n\r\nexport const FETCH_ETABLISSEMENT_LIST_REQUEST = 'FETCH_ETABLISSEMENT_LIST_REQUEST';\r\nexport const FETCH_ETABLISSEMENT_LIST_SUCCESS = 'FETCH_ETABLISSEMENT_LIST_SUCCESS';\r\nexport const FETCH_ETABLISSEMENT_LIST_FAILURE = 'FETCH_ETABLISSEMENT_LIST_FAILURE';\r\n\r\nexport const FETCH_ETABLISSEMENT_REQUEST = 'FETCH_ETABLISSEMENT_REQUEST';\r\nexport const FETCH_ETABLISSEMENT_SUCCESS = 'FETCH_ETABLISSEMENT_SUCCESS';\r\nexport const FETCH_ETABLISSEMENT_FAILURE = 'FETCH_ETABLISSEMENT_FAILURE';\r\n\r\nexport const FETCH_ANTICIPA_REQUEST = 'FETCH_ANTICIPA_REQUEST';\r\nexport const FETCH_ANTICIPA_SUCCESS = 'FETCH_ANTICIPA_SUCCESS';\r\nexport const FETCH_ANTICIPA_FAILURE = 'FETCH_ANTICIPA_FAILURE';\r\n\r\nexport const FETCH_FACILITA_REQUEST = 'FETCH_FACILITA_REQUEST';\r\nexport const FETCH_FACILITA_SUCCESS = 'FETCH_FACILITA_SUCCESS';\r\nexport const FETCH_FACILITA_FAILURE = 'FETCH_FACILITA_FAILURE';\r\n\r\nexport const FETCH_SERENITA_REQUEST = 'FETCH_SERENITA_REQUEST';\r\nexport const FETCH_SERENITA_SUCCESS = 'FETCH_SERENITA_SUCCESS';\r\nexport const FETCH_SERENITA_FAILURE = 'FETCH_SERENITA_FAILURE';\r\n\r\nexport const FETCH_USERS_REQUEST = 'FETCH_USERS_REQUEST';\r\nexport const FETCH_USERS_SUCCESS = 'FETCH_USERS_SUCCESS';\r\nexport const FETCH_USERS_FAILURE = 'FETCH_USERS_FAILURE';\r\n\r\nexport const CREATE_USER_REQUEST = 'CREATE_USER_REQUEST';\r\nexport const CREATE_USER_SUCCESS = 'CREATE_USER_SUCCESS';\r\nexport const CREATE_USER_FAILURE = 'CREATE_USER_FAILURE';\r\n\r\nexport const PAY_USER_INVOICE_REQUEST = 'PAY_USER_INVOICE_REQUEST';\r\nexport const PAY_USER_INVOICE_SUCCESS = 'PAY_USER_INVOICE_SUCCESS';\r\nexport const PAY_USER_INVOICE_FAILURE = 'PAY_USER_INVOICE_FAILURE';","import * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport * as PartnerActionTypes from '../../constants/actiontypes/partner/partner';\r\nimport * as PartnerUrl from '../../constants/webapi/partner/partner';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\nimport * as ActionTypesBO from '../../constants/actiontypes/backoffice/user';\r\n\r\nimport * as ActionTypesClients from '../../constants/actiontypes/backoffice/clients';\r\nimport * as ActionTypesAuth from '../../constants/actiontypes/auth';\r\nimport * as authUrls from '../../constants/webapi/auth';\r\nimport * as userUrls from '../../constants/webapi/user';\r\n\r\n\r\nexport function GetPartnerById(partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_PARTNER_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.partnerByIdUrl(partnerId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_PARTNER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_PARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetEtablissementsByPartnerId(partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.etablissementByPartnerIdUrl(partnerId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetPartnerLogo(partnerId) {\r\n\treturn axios.get(PartnerUrl.partnerLogoByIdUrl(partnerId), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\treturn `data:${response.headers['content-type']};base64,${new Buffer(response.data).toString('base64')}`;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined) {\r\n\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetEtablissementById(partnerId, etablissementId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_ETABLISSEMENT_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.etablissementByIdAndPartnerIdUrl(partnerId, etablissementId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ETABLISSEMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ETABLISSEMENT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerIdAndEtablissementId(partnerId, etablissementId, pageNumber, searchTerm, type, startDate, endDate, sortByTerm, sortDesc) {\r\n\tconst page = parseInt(pageNumber);\r\n\tif (!R.isNil(pageNumber) && isNaN(page)) {\r\n\t\tthrow new Error(\"pageNumber must be null or an integer\");\r\n\t}\r\n\r\n\tpageNumber = R.isNil(pageNumber) ? 0 : pageNumber - 1;\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_USERS_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.usersByPartnerIdUrl(partnerId, etablissementId, pageNumber, searchTerm, type, startDate, endDate, sortByTerm, sortDesc))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_USERS_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_USERS_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\nexport function GetUsersByPartnerIdAndEtablissementIdDefaultAnticipa(partnerId, etablissementId, type, pageSize) {\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_ANTICIPA_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.usersByPartnerIdUrlDefault(partnerId, etablissementId, type, pageSize))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ANTICIPA_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_ANTICIPA_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerIdAndEtablissementIdDefaultFacilita(partnerId, etablissementId, type, pageSize) {\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_FACILITA_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.usersByPartnerIdUrlDefault(partnerId, etablissementId, type, pageSize))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_FACILITA_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_FACILITA_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerIdAndEtablissementIdDefaultSerenita(partnerId, etablissementId, type, pageSize) {\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.FETCH_SERENITA_REQUEST });\r\n\t\treturn axios.get(PartnerUrl.usersByPartnerIdUrlDefault(partnerId, etablissementId, type, pageSize))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_SERENITA_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.FETCH_SERENITA_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerIdAndEtablissementIdDefault(partnerId, etablissementId, type, pageSize) {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\taxios.get(PartnerUrl.usersByPartnerIdUrlDefault(partnerId, etablissementId, type, pageSize))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\treject(error);\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t});\r\n}\r\n\r\nexport function CreateUsersByPartnerId(partnerId, userDto) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.CREATE_USER_REQUEST });\r\n\t\treturn axios.post(PartnerUrl.createUserByPartnerIdUrl(partnerId), userDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.CREATE_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.CREATE_USER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function AddUserAddress(userId, addressDto) {\r\n\treturn axios.post(PartnerUrl.userAddressByIdUrl(userId), addressDto)\r\n\t\t.then((response) => {\r\n\t\t\treturn response;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\nexport function AddReferentToUserId(userId, referentDto) {\r\n\treturn axios.post(PartnerUrl.userRepresentativesUrl(), { ...referentDto, userId: userId })\r\n\t\t.then((response) => {\r\n\t\t\treturn response;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\nexport function SendUserActivationEmailByPartnerId(userId, partnerId, role) {\r\n\treturn axios.put(PartnerUrl.userSendActivationEmailByIdPartnerIdUrl(partnerId, userId, role))\r\n\t\t.then((response) => {\r\n\t\t\treturn;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetEtablissementInvoicesToPay(etablissementId) {\r\n\treturn axios.get(PartnerUrl.etablissementInvoicesToPay(etablissementId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetEtablissementInvoicesToBill(etablissementId) {\r\n\treturn axios.get(PartnerUrl.etablissementInvoicesToBill(etablissementId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetPartnerInvoicesToPay(partnerId) {\r\n\treturn axios.get(PartnerUrl.partnerInvoicesToPay(partnerId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetPartnerInvoicesToBill(partnerId) {\r\n\treturn axios.get(PartnerUrl.partnerInvoicesToBill(partnerId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\n\r\nexport function GetInvoiceLines(invoiceId) {\r\n\treturn axios.get(PartnerUrl.invoiceLinesByInvoiceId(invoiceId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function resetPassword(email, phoneNumber) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypesAuth.RESET_PASSWORD_REQUEST });\r\n\t\treturn axios.post(authUrls.resetPasswordEmail(), { email, phoneNumber })\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesAuth.RESET_PASSWORD_SUCCESS\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesAuth.RESET_PASSWORD_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserSecurity(userId, user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypesClients.UPDATE_CLIENT_SECURITY_REQUEST, user: userId });\r\n\t\treturn axios.put(userUrls.userSecurityByIdUrl(userId), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesClients.UPDATE_CLIENT_SECURITY_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tuser: user,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesClients.UPDATE_CLIENT_SECURITY_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function closeDossier(userId, user) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypesBO.DELETE_BACKOFFICE_USER_REQUEST, user: userId });\r\n\r\n\t\treturn axios.delete(userUrls.userSoftDeleteByIdUrl(userId), user)\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesBO.DELETE_BACKOFFICE_USER_SUCCESS,\r\n\t\t\t\t\tuser: user,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesBO.DELETE_BACKOFFICE_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n};\r\n\r\nexport function payUserInvoice(invoiceId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnerActionTypes.PAY_USER_INVOICE_REQUEST, invoiceId: invoiceId });\r\n\r\n\t\treturn axios.put(PartnerUrl.payInvoiceByIdUrl(invoiceId))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.PAY_USER_INVOICE_SUCCESS,\r\n\t\t\t\t\tinvoiceId: invoiceId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnerActionTypes.PAY_USER_INVOICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n};\r\n\r\nexport function fetchInvoices(userId) {\r\n\treturn axios.get(userUrls.getRecipientInvoicesByIdUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}","\r\nexport const RESET_BACKOFFICER_USER_STATE = 'RESET_BACKOFFICER_USER_STATE';\r\n\r\nexport const FETCH_BACKOFFICE_USER_REQUEST = 'FETCH_BACKOFFICE_USER_REQUEST';\r\nexport const FETCH_BACKOFFICE_USER_SUCCESS = 'FETCH_BACKOFFICE_USER_SUCCESS';\r\nexport const FETCH_BACKOFFICE_USER_FAILURE = 'FETCH_BACKOFFICE_USER_FAILURE';\r\n\r\nexport const FETCH_BACKOFFICE_USER_INVOICES_REQUEST = 'FETCH_BACKOFFICE_USER_INVOICES_REQUEST';\r\nexport const FETCH_BACKOFFICE_USER_INVOICES_SUCCESS = 'FETCH_BACKOFFICE_USER_INVOICES_SUCCESS';\r\nexport const FETCH_BACKOFFICE_USER_INVOICES_FAILURE = 'FETCH_BACKOFFICE_USER_INVOICES_FAILURE';\r\n\r\n\r\n\r\nexport const FETCH_BACKOFFICE_USER_ADDRESSES_REQUEST = 'FETCH_BACKOFFICE_USER_ADDRESSES_REQUEST';\r\nexport const FETCH_BACKOFFICE_USER_ADDRESSES_SUCCESS = 'FETCH_BACKOFFICE_USER_ADDRESSES_SUCCESS';\r\nexport const FETCH_BACKOFFICE_USER_ADDRESSES_FAILURE = 'FETCH_BACKOFFICE_USER_ADDRESSES_FAILURE';\r\n\r\nexport const UPDATE_BACKOFFICE_USER_REQUEST = 'UPDATE_BACKOFFICE_USER_REQUEST';\r\nexport const UPDATE_BACKOFFICE_USER_SUCCESS = 'UPDATE_BACKOFFICE_USER_SUCCESS';\r\nexport const UPDATE_BACKOFFICE_USER_FAILURE = 'UPDATE_BACKOFFICE_USER_FAILURE';\r\n\r\nexport const DELETE_BACKOFFICE_USER_REQUEST = 'DELETE_BACKOFFICE_USER_REQUEST';\r\nexport const DELETE_BACKOFFICE_USER_SUCCESS = 'DELETE_BACKOFFICE_USER_SUCCESS';\r\nexport const DELETE_BACKOFFICE_USER_FAILURE = 'DELETE_BACKOFFICE_USER_FAILURE';\r\n\r\nexport const GENERATE_PRINT_REQUEST = \"GENERATE_PRINT_REQUEST\";\r\nexport const GENERATE_PRINT_SUCCESS = \"GENERATE_PRINT_SUCCESS\";\r\nexport const GENERATE_PRINT_FAILURE = \"GENERATE_PRINT_FAILURE\";\r\n\r\n// export const ADD_BACKOFFICE_USER_ADDRESS_REQUEST = 'ADD_USER_ADDRESS_REQUEST';\r\n// export const ADD_BACKOFFICE_USER_ADDRESS_SUCCESS = 'ADD_USER_ADDRESS_SUCCESS';\r\n// export const ADD_BACKOFFICE_USER_ADDRESS_FAILURE = 'ADD_USER_ADDRESS_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_USER_ADDRESS_REQUEST = 'UPDATE_USER_ADDRESS_REQUEST';\r\n// export const UPDATE_BACKOFFICE_USER_ADDRESS_SUCCESS = 'UPDATE_USER_ADDRESS_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_USER_ADDRESS_FAILURE = 'UPDATE_USER_ADDRESS_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_USER_SECURITY_REQUEST = 'UPDATE_USER_SECURITY_REQUEST';\r\n// export const UPDATE_BACKOFFICE_USER_SECURITY_SUCCESS = 'UPDATE_USER_SECURITY_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_USER_SECURITY_FAILURE = 'UPDATE_USER_SECURITY_FAILURE';\r\n\r\n// export const CHANGE_BACKOFFICE_PHONENUMBER_REQUEST = 'CHANGE_PHONENUMBER_REQUEST';\r\n// export const CHANGE_BACKOFFICE_PHONENUMBER_SUCCESS = 'CHANGE_PHONENUMBER_SUCCESS';\r\n// export const CHANGE_BACKOFFICE_PHONENUMBER_FAILURE = 'CHANGE_PHONENUMBER_FAILURE';\r\n\r\n// export const FETCH_BACKOFFICE_USER_ADDRESS_REQUEST = 'FETCH_USER_ADDRESS_REQUEST';\r\n// export const FETCH_BACKOFFICE_USER_ADDRESS_SUCCESS = 'FETCH_USER_ADDRESS_SUCCESS';\r\n// export const FETCH_BACKOFFICE_USER_ADDRESS_FAILURE = 'FETCH_USER_ADDRESS_FAILURE';\r\n\r\nexport const FETCH_BACKOFFICE_USER_SERVICES_REQUEST = 'FETCH_BACKOFFICE_USER_SERVICES_REQUEST';\r\nexport const FETCH_BACKOFFICE_USER_SERVICES_SUCCESS = 'FETCH_BACKOFFICE_USER_SERVICES_SUCCESS';\r\nexport const FETCH_BACKOFFICE_USER_SERVICES_FAILURE = 'FETCH_BACKOFFICE_USER_SERVICES_SUCCESS';\r\n\r\n// export const ADD_BACKOFFICE_USER_SERVICE_REQUEST = 'ADD_USER_SERVICE_REQUEST';\r\n// export const ADD_BACKOFFICE_USER_SERVICE_SUCCESS = 'ADD_USER_SERVICE_SUCCESS';\r\n// export const ADD_BACKOFFICE_USER_SERVICE_FAILURE = 'ADD_USER_SERVICE_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_USER_SERVICE_REQUEST = 'UPDATE_USER_SERVICE_REQUEST';\r\n// export const UPDATE_BACKOFFICE_USER_SERVICE_SUCCESS = 'UPDATE_USER_SERVICE_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_USER_SERVICE_FAILURE = 'UPDATE_USER_SERVICE_FAILURE';\r\n\r\n// export const ADD_BACKOFFICE_SERVICES_BATCH_REQUEST = 'ADD_SERVICES_BATCH_REQUEST';\r\n// export const ADD_BACKOFFICE_SERVICES_BATCH_SUCCESS = 'ADD_SERVICES_BATCH_SUCCESS';\r\n// export const ADD_BACKOFFICE_SERVICES_BATCH_FAILURE = 'ADD_SERVICES_BATCH_FAILURE';\r\n\r\n// export const DELETE_BACKOFFICE_USER_SERVICE_REQUEST = 'DELETE_USER_SERVICE_REQUEST';\r\n// export const DELETE_BACKOFFICE_USER_SERVICE_SUCCESS = 'DELETE_USER_SERVICE_SUCCESS';\r\n// export const DELETE_BACKOFFICE_USER_SERVICE_FAILURE = 'DELETE_USER_SERVICE_FAILURE';\r\n\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_REQUEST = 'FETCH_REPRESENTATIVES_REQUEST';\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_SUCCESS = 'FETCH_REPRESENTATIVES_SUCCESS';\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_FAILURE = 'FETCH_REPRESENTATIVES_FAILURE';\r\n\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_REQUEST = 'ADD_REPRESENTATIVE_REQUEST';\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_SUCCESS = 'ADD_REPRESENTATIVE_SUCCESS';\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_FAILURE = 'ADD_REPRESENTATIVE_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_REQUEST = 'UPDATE_REPRESENTATIVE_REQUEST';\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_SUCCESS = 'UPDATE_REPRESENTATIVE_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_FAILURE = 'UPDATE_REPRESENTATIVE_FAILURE';\r\n\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_ADDRESS_REQUEST = 'FETCH_REPRESENTATIVES_ADDRESS_REQUEST';\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_ADDRESS_SUCCESS = 'FETCH_REPRESENTATIVES_ADDRESS_SUCCESS';\r\n// export const FETCH_BACKOFFICE_REPRESENTATIVES_ADDRESS_FAILURE = 'FETCH_REPRESENTATIVES_ADDRESS_FAILURE';\r\n\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_ADDRESS_REQUEST = 'ADD_REPRESENTATIVE_ADDRESS_REQUEST';\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_ADDRESS_SUCCESS = 'ADD_REPRESENTATIVE_ADDRESS_SUCCESS';\r\n// export const ADD_BACKOFFICE_REPRESENTATIVE_ADDRESS_FAILURE = 'ADD_REPRESENTATIVE_ADDRESS_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_ADDRESS_REQUEST = 'UPDATE_REPRESENTATIVE_ADDRESS_REQUEST';\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_ADDRESS_SUCCESS = 'UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_REPRESENTATIVE_ADDRESS_FAILURE = 'UPDATE_REPRESENTATIVE_ADDRESS_FAILURE';\r\n\r\n// export const DELETE_BACKOFFICE_REPRESENTATIVE_REQUEST = 'DELETE_REPRESENTATIVE_REQUEST';\r\n// export const DELETE_BACKOFFICE_REPRESENTATIVE_SUCCESS = 'DELETE_REPRESENTATIVE_SUCCESS';\r\n// export const DELETE_BACKOFFICE_REPRESENTATIVE_FAILURE = 'DELETE_REPRESENTATIVE_FAILURE';\r\n\r\n// export const RESET_BACKOFFICE_USER_STATE = 'RESET_USER_STATE';\r\n\r\n// export const UPLOAD_BACKOFFICE_DOCUMENT_REQUEST = 'UPLOAD_DOCUMENT_REQUEST';\r\n// export const UPLOAD_BACKOFFICE_DOCUMENT_SUCCESS = 'UPLOAD_DOCUMENT_SUCCESS';\r\n// export const UPLOAD_BACKOFFICE_DOCUMENT_FAILURE = 'UPLOAD_DOCUMENT_FAILURE';\r\n\r\n// export const FETCH_BACKOFFICE_DOCUMENTS_REQUEST = 'FETCH_DOCUMENTS_REQUEST';\r\n// export const FETCH_BACKOFFICE_DOCUMENTS_SUCCESS = 'FETCH_DOCUMENTS_SUCCESS';\r\n// export const FETCH_BACKOFFICE_DOCUMENTS_FAILURE = 'FETCH_DOCUMENTS_FAILURE';\r\n\r\n// export const DOWNLOAD_BACKOFFICE_DOCUMENT_REQUEST = 'DOWNLOAD_DOCUMENT_REQUEST';\r\n// export const DOWNLOAD_BACKOFFICE_DOCUMENT_SUCCESS = 'DOWNLOAD_DOCUMENT_SUCCESS';\r\n// export const DOWNLOAD_BACKOFFICE_DOCUMENT_FAILURE = 'DOWNLOAD_DOCUMENT_FAILURE';\r\n\r\n// export const DELETE_BACKOFFICE_DOCUMENT_REQUEST = 'DELETE_DOCUMENT_REQUEST';\r\n// export const DELETE_BACKOFFICE_DOCUMENT_SUCCESS = 'DELETE_DOCUMENT_SUCCESS';\r\n// export const DELETE_BACKOFFICE_DOCUMENT_FAILURE = 'DELETE_DOCUMENT_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_MESSAGE_REQUEST = 'UPDATE_MESSAGE_REQUEST';\r\n// export const UPDATE_BACKOFFICE_MESSAGE_SUCCESS = 'UPDATE_MESSAGE_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_MESSAGE_FAILURE = 'UPDATE_MESSAGE_FAILURE';\r\n\r\n// export const FETCH_BACKOFFICE_MESSAGE_REQUEST = 'FETCH_MESSAGE_REQUEST';\r\n// export const FETCH_BACKOFFICE_MESSAGE_SUCCESS = 'FETCH_MESSAGE_SUCCESS';\r\n// export const FETCH_BACKOFFICE_MESSAGE_FAILURE = 'FETCH_MESSAGE_FAILURE';\r\n\r\n// export const GET_BACKOFFICE_PROFILEPIC_REQUEST = 'GET_PROFILEPIC_REQUEST';\r\n// export const GET_BACKOFFICE_PROFILEPIC_SUCCESS = 'GET_PROFILEPIC_SUCCESS';\r\n// export const GET_BACKOFFICE_PROFILEPIC_FAILURE = 'GET_PROFILEPIC_FAILURE';\r\n\r\n// export const DELETE_BACKOFFICE_PROFILEPIC_REQUEST = 'DELETE_PROFILEPIC_REQUEST';\r\n// export const DELETE_BACKOFFICE_PROFILEPIC_SUCCESS = 'DELETE_PROFILEPIC_SUCCESS';\r\n// export const DELETE_BACKOFFICE_PROFILEPIC_FAILURE = 'DELETE_PROFILEPIC_FAILURE';\r\n\r\n// export const UPLOAD_BACKOFFICE_PROFILEPIC_REQUEST = 'UPLOAD_PROFILEPIC_REQUEST';\r\n// export const UPLOAD_BACKOFFICE_PROFILEPIC_SUCCESS = 'UPLOAD_PROFILEPIC_SUCCESS';\r\n// export const UPLOAD_BACKOFFICE_PROFILEPIC_FAILURE = 'UPLOAD_PROFILEPIC_FAILURE';\r\n\r\n// export const SEARCH_BACKOFFICE_SERVICE_REQUEST = 'SEARCH_SERVICE_REQUEST';\r\n// export const SEARCH_BACKOFFICE_SERVICE_SUCCESS = 'SEARCH_SERVICE_SUCCESS';\r\n// export const SEARCH_BACKOFFICE_SERVICE_FAILURE = 'SEARCH_SERVICE_FAILURE';\r\n\r\n// export const UPDATE_BACKOFFICE_ONBOARDINGSTEP_REQUEST = 'UPDATE_ONBOARDINGSTEP_REQUEST';\r\n// export const UPDATE_BACKOFFICE_ONBOARDINGSTEP_SUCCESS = 'UPDATE_ONBOARDINGSTEP_SUCCESS';\r\n// export const UPDATE_BACKOFFICE_ONBOARDINGSTEP_FAILURE = 'UPDATE_ONBOARDINGSTEP_FAILURE';\r\n\r\n// export const SET_BACKOFFICE_COMPLETE_REQUEST = 'SET_COMPLETE_REQUEST';\r\n// export const SET_BACKOFFICE_COMPLETE_SUCCESS = 'SET_COMPLETE_SUCCESS';\r\n// export const SET_BACKOFFICE_COMPLETE_FAILURE = 'SET_COMPLETE_FAILURE';\r\n\r\n// export const ADD_BACKOFFICE_PAYMENTMETHOD_REQUEST = 'ADD_PAYMENTMETHOD_REQUEST';\r\n// export const ADD_BACKOFFICE_PAYMENTMETHOD_SUCCESS = 'ADD_PAYMENTMETHOD_SUCCESS';\r\n// export const ADD_BACKOFFICE_PAYMENTMETHOD_FAILURE = 'ADD_PAYMENTMETHOD_FAILURE';\r\n\r\n// export const REMOVE_BACKOFFICE_PAYMENTMETHOD_REQUEST = 'REMOVE_PAYMENTMETHOD_REQUEST';\r\n// export const REMOVE_BACKOFFICE_PAYMENTMETHOD_SUCCESS = 'REMOVE_PAYMENTMETHOD_SUCCESS';\r\n// export const REMOVE_BACKOFFICE_PAYMENTMETHOD_FAILURE = 'REMOVE_PAYMENTMETHOD_FAILURE';\r\n\r\n// export const PROCESS_PAYMENT_REQUEST = 'PROCESS_PAYMENT_REQUEST';\r\n// export const PROCESS_PAYMENT_SUCCESS = 'PROCESS_PAYMENT_SUCCESS';\r\n// export const PROCESS_PAYMENT_FAILURE = 'PROCESS_PAYMENT_FAILURE';\r\n\r\n// export const GET_SETUPINTENT_REQUEST = 'GET_SETUPINTENT_REQUEST';\r\n// export const GET_SETUPINTENT_SUCCESS = 'GET_SETUPINTENT_SUCCESS';\r\n// export const GET_SETUPINTENT_FAILURE = 'GET_SETUPINTENT_FAILURE';\r\n\r\n// export const FETCH_INVOICES_REQUEST = 'FETCH_INVOICES_REQUEST';\r\n// export const FETCH_INVOICES_SUCCESS = 'FETCH_INVOICES_SUCCESS';\r\n// export const FETCH_INVOICES_FAILURE = 'FETCH_INVOICES_FAILURE';\r\n\r\n// export const FETCH_USERREPRESENTING_REQUEST = 'FETCH_USERREPRESENTING_REQUEST';\r\n// export const FETCH_USERREPRESENTING_SUCCESS = 'FETCH_USERREPRESENTING_SUCCESS';\r\n// export const FETCH_USERREPRESENTING_FAILURE = 'FETCH_USERREPRESENTING_FAILURE';\r\n\r\n// export const AUTHENTICATE_FACILITA_REQUEST = 'AUTHENTICATE_FACILITA_REQUEST';\r\n// export const AUTHENTICATE_FACILITA_SUCCESS = 'AUTHENTICATE_FACILITA_SUCCESS';\r\n// export const AUTHENTICATE_FACILITA_FAILURE = 'AUTHENTICATE_FACILITA_FAILURE';\r\n\r\n// export const GET_BILLINGCUSTOMERID_REQUEST = 'GET_BILLINGCUSTOMERID_REQUEST';\r\n// export const GET_BILLINGCUSTOMERID_SUCCESS = 'GET_BILLINGCUSTOMERID_SUCCESS';\r\n// export const GET_BILLINGCUSTOMERID_FAILURE = 'GET_BILLINGCUSTOMERID_FAILURE';","export const FETCH_CLIENTS_REQUEST = 'FETCH_CLIENTS_REQUEST';\r\nexport const FETCH_CLIENTS_SUCCESS = 'FETCH_CLIENTS_SUCCESS';\r\nexport const FETCH_CLIENTS_FAILURE = 'FETCH_CLIENTS_FAILURE';\r\n\r\nexport const DELETE_CLIENT_REQUEST = 'DELETE_CLIENT_REQUEST';\r\nexport const DELETE_CLIENT_SUCCESS = 'DELETE_CLIENT_SUCCESS';\r\nexport const DELETE_CLIENT_FAILURE = 'DELETE_CLIENT_FAILURE';\r\n\r\nexport const UPDATE_CLIENT_REQUEST = 'UPDATE_CLIENT_REQUEST';\r\nexport const UPDATE_CLIENT_SUCCESS = 'UPDATE_CLIENT_SUCCESS';\r\nexport const UPDATE_CLIENT_FAILURE = 'UPDATE_CLIENT_FAILURE';\r\n\r\nexport const UPDATE_CLIENT_SECURITY_REQUEST = 'UPDATE_CLIENT_SECURITY_REQUEST';\r\nexport const UPDATE_CLIENT_SECURITY_SUCCESS = 'UPDATE_CLIENT_SECURITY_SUCCESS';\r\nexport const UPDATE_CLIENT_SECURITY_FAILURE = 'UPDATE_CLIENT_SECURITY_FAILURE';\r\n\r\nexport const SET_CLIENT_FILTER = 'SET_CLIENT_FILTER';\r\n","let endpoints = {\r\n backendHost: 'https://assistarobase-api-stg.azurewebsites.net',\r\n // backendHost: 'https://localhost:44316',\r\n environment: 'development',\r\n stripePublicKey: 'pk_test_51IJIZDCKG0sqpKaI60Hc3q7U5w5SXDgGETuT1Qr4YtQWTUhcSKtCJfhfPvOJR3dHg4s9ry8jWz8Dc4Okq2nozahU00AQWmn0MB'\r\n};\r\n\r\nconst hostname = window && window.location && window.location.hostname;\r\nif (hostname === 'agreeable-tree-0a8796f03.5.azurestaticapps.net') {\r\n endpoints.backendHost = 'https://assistarobase-api-dev.azurewebsites.net';\r\n}\r\nelse if (hostname === 'assistarobase-stg.azurewebsites.net') {\r\n endpoints.backendHost = 'https://assistarobase-api-stg.azurewebsites.net';\r\n endpoints.environment = 'production';\r\n}\r\nelse if (hostname === 'app-stg.assistarobase.fr') {\r\n endpoints.backendHost = 'https://api-stg.assistarobase.fr';\r\n endpoints.environment = 'production';\r\n}\r\nelse if (hostname === 'assistarobase.azurewebsites.net') {\r\n endpoints.backendHost = 'https://assistarobase-api.azurewebsites.net';\r\n endpoints.environment = 'production';\r\n endpoints.stripePublicKey = 'pk_live_51IJIZDCKG0sqpKaItpya3Gz49x84dbicsoJwgyUauGKPgXrbwr524c7cbxgRKmiDRxhKVECLv1FKSKHIs8QMmYfG00VO0jtDuc';\r\n}\r\nelse if (hostname === 'app.assistarobase.fr') {\r\n endpoints.backendHost = 'https://api.assistarobase.fr';\r\n endpoints.environment = 'production';\r\n endpoints.stripePublicKey = 'pk_live_51IJIZDCKG0sqpKaItpya3Gz49x84dbicsoJwgyUauGKPgXrbwr524c7cbxgRKmiDRxhKVECLv1FKSKHIs8QMmYfG00VO0jtDuc';\r\n}\r\nexport const EndPoints = endpoints;\r\n","export const AUTH_USER = 'AUTH_USER';\r\nexport const SEND_PHONE_NUMBER = 'SEND_PHONE_NUMBER';\r\nexport const REGISTER_USER = 'REGISTER_USER';\r\nexport const VERIFYING_NUMBER = 'VERIFYING_NUMBER';","export const REGISTER_FAILED = \"Une erreur s'est produite. Il n'a pas été possible de créer un compte.\";","import * as ActionTypes from '../constants/actiontypes/auth';\r\nimport * as UserActionTypes from '../constants/actiontypes/user';\r\nimport * as Loadings from '../constants/loadings/auth';\r\nimport * as axios from 'axios';\r\nimport * as Text from '../constants/toasterText/auth';\r\nimport { toast } from 'react-toastify';\r\nimport JwtDecode from 'jwt-decode';\r\nimport * as R from 'ramda';\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nconst AuthReducer = (state = {\r\n isLoading: [],\r\n loggedIn: undefined,\r\n authError: undefined,\r\n registered: false,\r\n userId: undefined,\r\n error: undefined,\r\n resetByEmail: undefined,\r\n resetPasswordComplete: undefined,\r\n errorOnResetPassword: undefined,\r\n SMSWasSent: false,\r\n phoneConfirmed: false,\r\n roles: []\r\n}, action) => {\r\n switch (action.type) {\r\n case ActionTypes.RESET_AUTH_STATE:\r\n state.isLoading = [];\r\n state.loggedIn = undefined;\r\n state.authError = undefined;\r\n state.registered = false;\r\n state.userId = undefined;\r\n state.error = undefined;\r\n state.resetByEmail = undefined;\r\n state.resetPasswordComplete = undefined;\r\n state.errorOnResetPassword = undefined;\r\n state.SMSWasSent = false;\r\n state.phoneConfirmed = false;\r\n return { ...state };\r\n case ActionTypes.AUTH_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.AUTH_USER)) {\r\n state.isLoading.push(Loadings.AUTH_USER);\r\n }\r\n state.authError = undefined;\r\n state.loggedIn = undefined;\r\n return { ...state };\r\n case ActionTypes.AUTH_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.AUTH_USER);\r\n let authToken = action.data.jwtToken;\r\n if (authToken !== undefined) {\r\n sessionStorage.removeItem(\"access_token\");\r\n sessionStorage.setItem(\"access_token\", authToken);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + authToken;\r\n let authTokenDecoded = JwtDecode(authToken);\r\n let rolesAuth = authTokenDecoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n if (!R.isNil(rolesAuth)) {\r\n if (Array.isArray(rolesAuth)) {\r\n state.roles = rolesAuth;\r\n } else {\r\n state.roles = [rolesAuth];\r\n }\r\n }\r\n }\r\n state.loggedIn = false;\r\n state.authError = undefined;\r\n state.phoneConfirmed = true;\r\n return { ...state };\r\n case ActionTypes.AUTH_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.AUTH_USER);\r\n if (action.response.status === 403 || action.response.status === 400) {\r\n state.authError = 'invalidCredentials';\r\n }\r\n return { ...state, loggedIn: undefined };\r\n\r\n case ActionTypes.REGISTER_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.REGISTER_USER)) {\r\n state.isLoading.push(Loadings.REGISTER_USER);\r\n }\r\n state.error = undefined;\r\n return { ...state };\r\n case ActionTypes.REGISTER_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.REGISTER_USER);\r\n state.registered = true;\r\n // state.userId = action.data.id;\r\n let authToken1 = action.data.jwtToken;\r\n if (authToken1 !== undefined) {\r\n sessionStorage.removeItem(\"access_token\");\r\n sessionStorage.setItem(\"access_token\", authToken1);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + authToken1;\r\n let authToken1Decoded = JwtDecode(authToken1);\r\n let rolesRegister = authToken1Decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n if (!R.isNil(rolesRegister)) {\r\n if (Array.isArray(rolesRegister)) {\r\n state.roles = rolesRegister;\r\n } else {\r\n state.roles = [rolesRegister];\r\n }\r\n }\r\n }\r\n state.loggedIn = true;\r\n state.authError = undefined;\r\n state.phoneConfirmed = true;\r\n return { ...state };\r\n case ActionTypes.REGISTER_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.REGISTER_USER);\r\n if (action.response.data !== undefined && action.response.data.errors !== undefined && action.response.data.errors.Email !== undefined && Array.isArray(action.response.data.errors.Email) && action.response.data.errors.Email[0] === \"There's already a user with this email.\") {\r\n state.error = 'email';\r\n }\r\n else {\r\n toast.error(Text.REGISTER_FAILED, toastConf);\r\n }\r\n return { ...state };\r\n case ActionTypes.RESET_PASSWORD_SUCCESS:\r\n state.resetByEmail = true;\r\n return { ...state };\r\n case ActionTypes.SET_NEWPASSWORD_SUCCESS:\r\n state.resetPasswordComplete = true;\r\n return { ...state };\r\n case ActionTypes.SET_NEWPASSWORD_FAILURE:\r\n state.errorOnResetPassword = 'error';\r\n return { ...state };\r\n\r\n case UserActionTypes.CHANGE_PHONENUMBER_REQUEST:\r\n case ActionTypes.SEND_OTP_CODE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.SEND_PHONE_NUMBER)) {\r\n state.isLoading.push(Loadings.SEND_PHONE_NUMBER);\r\n }\r\n state.phoneConfirmed = false;\r\n state.SMSWasSent = false;\r\n state.authError = undefined;\r\n return { ...state };\r\n case UserActionTypes.CHANGE_PHONENUMBER_SUCCESS:\r\n case ActionTypes.SEND_OTP_CODE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.SEND_PHONE_NUMBER);\r\n state.SMSWasSent = true;\r\n\r\n return { ...state };\r\n case UserActionTypes.CHANGE_PHONENUMBER_FAILURE:\r\n case ActionTypes.SEND_OTP_CODE_FAILURE:\r\n if (action.reason === 409) {\r\n state.authError = 'PhoneNumberTaken';\r\n } else {\r\n state.authError = 'OTPnotSent';\r\n }\r\n\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.SEND_PHONE_NUMBER);\r\n state.SMSWasSent = false;\r\n return { ...state };\r\n\r\n case ActionTypes.VERIFY_OTP_REQUEST:\r\n if (!state.isLoading.includes(Loadings.VERIFYING_NUMBER)) {\r\n state.isLoading.push(Loadings.VERIFYING_NUMBER);\r\n }\r\n return { ...state };\r\n case ActionTypes.VERIFY_OTP_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.VERIFYING_NUMBER);\r\n state.phoneConfirmed = true;\r\n toast.success(\"numéro de téléphone mis à jour avec succès\", toastConf);\r\n\r\n return { ...state };\r\n case ActionTypes.VERIFY_OTP_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.VERIFYING_NUMBER);\r\n state.authError = 'OTPfailure';\r\n state.phoneConfirmed = false;\r\n toast.error(\"Le code OTP n'est pas valide\", toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.SEND_MFA_CODE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.VERIFYING_NUMBER)) {\r\n state.isLoading.push(Loadings.VERIFYING_NUMBER);\r\n }\r\n state.authError = undefined;\r\n return { ...state };\r\n case ActionTypes.SEND_MFA_CODE_SUCCESS:\r\n let jwtToken = action.data.jwtToken;\r\n if (jwtToken !== undefined) {\r\n sessionStorage.removeItem(\"access_token\");\r\n sessionStorage.setItem(\"access_token\", jwtToken);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + jwtToken;\r\n let decodedJwt = JwtDecode(jwtToken);\r\n let roles = decodedJwt[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n if (!R.isNil(roles)) {\r\n if (Array.isArray(roles)) {\r\n state.roles = roles;\r\n } else {\r\n state.roles = [roles];\r\n }\r\n }\r\n\r\n }\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.VERIFYING_NUMBER);\r\n state.loggedIn = true;\r\n return { ...state };\r\n case ActionTypes.SEND_MFA_CODE_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.VERIFYING_NUMBER);\r\n state.authError = 'WrongMfa';\r\n return { ...state };\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default AuthReducer;","import * as R from 'ramda';\r\nexport default function User(data){\r\n let user = data || {};\r\n let professions = [];\r\n if(!Array.isArray(user.professionalSituation)){\r\n if(!R.isNil(user.professionalSituation) && user.professionalSituation !== \"\" && !Number.isInteger(user.professionalSituation) && user.professionalSituation !== 0 && user.professionalSituation !== \"0\"){\r\n let allProfs = user.professionalSituation.split(',');\r\n if(Array.isArray(allProfs)){\r\n allProfs.forEach(p => {professions.push(p.trim())});\r\n }\r\n else{\r\n professions.push(allProfs);\r\n }\r\n }\r\n }\r\n \r\n\r\n this.id = user.id;\r\n this.email = user.email;\r\n this.emailConfirmed = user.emailConfirmed;\r\n this.phoneNumber = user.phoneNumber;\r\n this.gender = user.gender === '0' ? undefined : user.gender;\r\n this.firstName = user.firstName;\r\n this.lastName = user.lastName;\r\n this.birthDate = R.isNil(user.birthDate) || user.birthDate === '0001-01-01T00:00:00Z' ? undefined: new Date(user.birthDate);\r\n this.birthPlace = user.birthPlace;\r\n this.departmentNumber = R.isNil(user.departmentNumber) ? \"\" : user.departmentNumber;\r\n this.country = R.isNil(user.country) ? \"FR\" : user.country;\r\n this.civilStatus = user.civilStatus === '0' ? undefined : user.civilStatus;\r\n this.hasChildren = user.hasChildren;\r\n this.professionalSituation = professions;\r\n this.processNumber = user.processNumber;\r\n this.hasRepresentativeMessage = user.hasRepresentativeMessage;\r\n this.onBoardingStep = user.onBoardingStep;\r\n this.setupCompletedDate = user.setupCompletedDate === '0001-01-01T00:00:00Z' || user.setupCompletedDate === null || user.setupCompletedDate === undefined ? undefined : new Date(user.setupCompletedDate);\r\n this.stripeCustomerId = user.stripeCustomerId;\r\n this.removeSetupFee = user.removeSetupFee;\r\n this.paymentMethods = R.isNil(user.paymentMethods) ? [] : user.paymentMethods;\r\n this.billedByPartner = user.billedByPartner;\r\n this.etablissementId = user.etablissementId;\r\n this.partnerId = user.partnerId;\r\n this.daysOfTraining = user.daysOfTraining;\r\n this.isEnabled = R.isNil(user.isEnabled) ? true : user.isEnabled;\r\n this.isEtablissementAdmin = R.isNil(user.isEtablissementAdmin) ? true : user.isEtablissementAdmin;\r\n this.childrens = R.isNil(user.childrens) ? [] : user.childrens;\r\n this.hasHrDocuments = user.hasHrDocuments;\r\n this.hasPets = user.hasPets;\r\n this.recipientEmail = user.recipientEmail;\r\n this.userName = user.userName;\r\n}","import * as R from 'ramda';\r\nexport default function Address(data) {\r\n let address = data || {};\r\n this.id = address.id;\r\n this.addressContract = address.addressContract === '0' ? undefined: address.addressContract ;\r\n this.addressLine1 = R.isNil(address.addressLine1) ? \"\" : address.addressLine1;\r\n this.addressLine2 = R.isNil(address.addressLine2) ? \"\" : address.addressLine2;\r\n this.addressType = address.addressType === '0' ? undefined: address.addressType;\r\n this.city = R.isNil(address.city) ? \"\" : address.city;\r\n this.country = R.isNil(address.country) ? 'FR' : address.country;\r\n this.phoneNumber = R.isNil(address.phoneNumber) ? \"\" : address.phoneNumber;\r\n this.postalCode = R.isNil(address.postalCode) ? \"\" : address.postalCode;\r\n}","import * as R from 'ramda';\r\nimport Address from './address';\r\n\r\nexport default function Referent(data){\r\n let referent = data || {};\r\n this.id = referent.id;\r\n this.email = R.isNil(referent.email) ? \"\" : referent.email;\r\n this.gender = referent.gender === '0' ? undefined: referent.gender;\r\n this.firstName = R.isNil(referent.firstName) ? \"\" : referent.firstName;\r\n this.lastName = R.isNil(referent.lastName) ? \"\" : referent.lastName;\r\n this.birthDate = referent.birthDate === '0001-01-01T00:00:00Z' || R.isNil(referent.birthDate) ? undefined : new Date(referent.birthDate);\r\n this.representativeType = referent.representativeType === '0' ? undefined: referent.representativeType;\r\n this.isMainRepresentative = referent.isMainRepresentative;\r\n this.userId = referent.userId;\r\n this.address = referent.address !== undefined ? referent.address : undefined;\r\n this.tmpRef = referent.tmpRef !== undefined ? referent.tmpRef: undefined;\r\n this.phoneNumber = R.isNil(referent.phoneNumber) ? \"\" : referent.phoneNumber;\r\n this.addresses = referent.addresses !== undefined ? referent.addresses.map(a => new Address(a)) : [];\r\n}","import Address from './address';\r\n\r\nexport default function CardPaymentMethod(data){\r\n let paymentMethod = data || {};\r\n this.id = paymentMethod.id;\r\n this.type = \"Card\";\r\n this.brand = paymentMethod.brand;\r\n this.number = paymentMethod.number;\r\n this.expMonth = paymentMethod.expMonth;\r\n this.expYear = paymentMethod.expYear;\r\n this.cvc = paymentMethod.cvc;\r\n this.name = paymentMethod.name;\r\n this.phone = paymentMethod.phone;\r\n this.isDefault = paymentMethod.isDefault;\r\n this.address = paymentMethod.address !== undefined ? new Address(paymentMethod.address) : undefined;\r\n}","import Address from './address';\r\n\r\nexport default function SepaPaymentMethod(data){\r\n let paymentMethod = data || {};\r\n this.id = paymentMethod.id;\r\n this.type = \"Sepa\";\r\n this.bankCode = paymentMethod.bankCode;\r\n this.branchCode = paymentMethod.branchCode;\r\n this.iban = paymentMethod.iban;\r\n this.country = paymentMethod.country;\r\n this.email = paymentMethod.email;\r\n this.name = paymentMethod.name;\r\n this.phone = paymentMethod.phone;\r\n this.isDefault = paymentMethod.isDefault;\r\n this.address = paymentMethod.address !== undefined ? new Address(paymentMethod.address) : undefined;\r\n}","export const FETCH_REPRESENTATIVES = 'FETCH_REPRESENTATIVES';\r\nexport const FETCH_REPRESENTATIVES_ADDRESS = 'FETCH_REPRESENTATIVES_ADDRESS';\r\nexport const FETCH_USER = 'FETCH_USER';\r\nexport const FETCH_REFERENT = 'FETCH_REFERENT';\r\nexport const FETCH_SERVICES = 'FETCH_SERVICES';\r\nexport const UPLOADING_DOCUMENT = 'UPLOADING_DOCUMENT';\r\nexport const DELETING_DOCUMENT = 'DELETING_DOCUMENT';\r\n\r\nexport const ADDING_PAYMENTMETHOD = 'ADDING_PAYMENTMETHOD';\r\nexport const DELETING_PAYMENTMETHOD = 'DELETING_PAYMENTMETHOD';\r\nexport const PROCESSING_PAYMENT = 'PROCESSING_PAYMENT';\r\n\r\nexport const GETTING_SETUPINTENT = 'GETTING_SETUPINTENT';\r\nexport const UPDATING_SERVICES = 'UPDATING_SERVICES';\r\nexport const FETCH_INVOICES = 'FETCH_INVOICES';\r\nexport const UPDATE_USER = 'UPDATE_USER';\r\nexport const UPDATE_SECURITY = 'UPDATE_SECURITY';\r\n\r\nexport const AUTHENTICATING_USERREPRESENTING = 'AUTHENTICATING_USERREPRESENTING';\r\nexport const FETCHING_USER_ADDRESSES = 'FETCHING_USER_ADDRESSES';\r\nexport const UPDATING_USER_ADDRESS = 'UPDATING_USER_ADDRESS';\r\n\r\nexport const SENDING_OTP = 'SENDING_OTP';\r\nexport const VALIDATING_OTP = 'VALIDATING_OTP';\r\nexport const GETTING_BILLINGCUSTOMERID = 'GETTING_BILLINGCUSTOMERID';\r\n\r\nexport const FETCH_PARTNER_CUSTOMIZATION = \"FETCH_PARTNER_CUSTOMIZATION\";\r\n\r\nexport const FETCH_LIFEEVENTS = 'FETCH_LIFEEVENTS';\r\n\r\nexport const GENERATING_PRINT = \"GENERATING_PRINT\";\r\n\r\n","export const FETCHING_DECLARATION = 'FETCHING_DECLARATION';\r\nexport const CREATING_DECLARATION = 'CREATING_DECLARATION';\r\nexport const UPDATING_DECLARATION = 'UPDATING_DECLARATION';\r\nexport const FETCHING_FILES = 'FETCHING_FILES';\r\nexport const UPLOADING_FILE = 'UPLOADING_FILE';\r\nexport const DELETING_FILE = 'DELETING_FILE';\r\nexport const SHARING_FILES = 'SHARING_FILES';\r\nexport const FETCHING_MESSAGE = 'FETCHING_MESSAGE';\r\n\r\nexport const FETCHING_USER_SERVICES_DATA = 'FETCHING_USER_SERVICES_DATA';\r\nexport const UPDATING_USER_SERVICES_DATA = 'UPDATING_USER_SERVICES_DATA';\r\nexport const CREATING_USER_SERVICES_DATA = 'UPDATING_USER_SERVICES_DATA';\r\nexport const DELETING_USER_SERVICES_DATA = 'DELETING_USER_SERVICES_DATA';\r\nexport const COMPLETING_USER_SERVICES_DATA = 'COMPLETING_USER_SERVICES_DATA';\r\nexport const GENERATING_USER_LETTERS = 'GENERATING_USER_LETTERS';\r\nexport const FETCHING_USER_LETTERS = 'FETCHING_USER_LETTERS';\r\nexport const UPDATING_USER_LETTER = 'UPDATING_USER_LETTER';\r\nexport const FETCHING_REFERENTS = 'FETCHING_REFERENTS';\r\nexport const UPDATING_REFERENT = 'UPDATING_REFERENT';\r\nexport const DELETING_REFERENT = 'DELETING_REFERENT';\r\nexport const CREATING_REFERENT = 'CREATING_REFERENT';\r\n\r\nexport const FETCHING_USER_CONNECTION = 'FETCHING_USER_CONNECTION';\r\nexport const ADDING_USER_CONNECTION = 'ADDING_USER_CONNECTION';\r\nexport const ADDING_USER_CONNECTION_BATCH = 'ADDING_USER_CONNECTION_BATCH';\r\nexport const REMOVING_USER_CONNECTION = 'REMOVING_USER_CONNECTION';\r\n\r\nexport const FETCHING_USER = 'FETCHING_USER';\r\nexport const UPDATING_USER = 'UPDATING_USER';\r\nexport const FETCHING_ONBOARDINGUSER_ADDRESS = 'FETCHING_ONBOARDINGUSER_ADDRESS';\r\nexport const UPDATING_USER_ONBOARDINGSTEP = 'UPDATING_USER_ONBOARDINGSTEP';\r\n\r\n\r\n\r\nexport const INVITING_REPRESENTATIVE = 'INVITING_REPRESENTATIVE';","export default function Invoice(data) {\r\n let invoice = data || {};\r\n this.id = invoice.id;\r\n this.amount = invoice.amount / 100;\r\n this.created = new Date(invoice.created);\r\n this.number = invoice.number;\r\n this.pdfUrl = invoice.pdfUrl;\r\n this.status = invoice.status;\r\n this.paid = invoice.paid;\r\n}","export const invoicesErrorMessage = \"Une erreur s'est produite. Les factures n'ont pas été récupérées\";\r\nexport const updateMessageError = \"Une erreur s'est produite. Le message n'a pas été mis à jour\";\r\nexport const updateMessageSuccess = \"Le message a été mis à jour avec succès\";\r\n\r\nexport const dataUpdatedSuccess = \"Vos données ont été mises à jour avec succès\";\r\nexport const dataUpdateFailed = \"Une erreur s'est produite. Vos données n'ont pas été mises à jour\";\r\nexport const updateSecuritySuccess = \"Les paramètres de sécurité ont été mis à jour avec succès\";\r\nexport const udpateSecurityFailed = \"Une erreur s'est produite lors de la mise à jour de vos paramètres de sécurité\";\r\n\r\nexport const inviteRepresentativeSuccess = \"Représentant invité avec succès\";\r\nexport const inviteRepresentativeFailed = \"Invitation représentant non envoyée\";\r\n\r\nexport const invoicePaidSuccess = \"Facture payée avec succès\";\r\nexport const invoicePaidFailed = \"Erreur lors du paiement de la facture\";\r\n\r\n\r\n","import * as R from 'ramda';\r\n\r\n\r\nexport default function BackofficeUser(data) {\r\n //const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", finished: \"terminé\", oneYearContract: \"contrat d'un an\" };\r\n let statusOptions;\r\n\r\n let user = data || {};\r\n let professions = [];\r\n if (!Array.isArray(user.professionalSituation)) {\r\n if (!R.isNil(user.professionalSituation) && user.professionalSituation !== \"\" && !Number.isInteger(user.professionalSituation) && user.professionalSituation !== 0 && user.professionalSituation !== \"0\") {\r\n let allProfs = user.professionalSituation.split(',');\r\n if (Array.isArray(allProfs)) {\r\n allProfs.forEach(p => { professions.push(p.trim()); });\r\n }\r\n else {\r\n professions.push(allProfs);\r\n }\r\n }\r\n }\r\n\r\n\r\n let userStatus = user.createdByRepresentative ? user.isSerenita ? getSerenitaStatus(user) : getFacilitaStatus(user) : getAntecipaStatus(user);\r\n\r\n this.id = user.id;\r\n this.email = user.email;\r\n this.emailConfirmed = user.emailConfirmed;\r\n this.phoneNumber = user.phoneNumber;\r\n this.gender = user.gender === '0' ? undefined : user.gender;\r\n this.firstName = user.firstName;\r\n this.lastName = user.lastName;\r\n this.birthDate = R.isNil(user.birthDate) || user.birthDate === '0001-01-01T00:00:00Z' ? undefined : new Date(user.birthDate);\r\n this.birthPlace = user.birthPlace;\r\n this.departmentNumber = R.isNil(user.departmentNumber) ? \"\" : user.departmentNumber;\r\n this.country = R.isNil(user.country) ? \"FR\" : user.country;\r\n this.civilStatus = user.civilStatus === '0' ? undefined : user.civilStatus;\r\n this.hasChildren = user.hasChildren;\r\n this.professionalSituation = professions;\r\n this.processNumber = user.processNumber;\r\n this.hasRepresentativeMessage = user.hasRepresentativeMessage;\r\n this.onBoardingStep = user.onBoardingStep;\r\n this.setupCompletedDate = user.setupCompletedDate === '0001-01-01T00:00:00Z' || user.setupCompletedDate === null || user.setupCompletedDate === undefined ? undefined : new Date(user.setupCompletedDate);\r\n this.creationDate = user.creationDate === '0001-01-01T00:00:00Z' || user.creationDate === null || user.creationDate === undefined ? undefined : new Date(user.creationDate);\r\n this.stripeCustomerId = user.stripeCustomerId;\r\n this.removeSetupFee = user.removeSetupFee;\r\n this.paymentMethods = R.isNil(user.paymentMethods) ? [] : user.paymentMethods;\r\n this.billedByPartner = user.billedByPartner;\r\n this.etablissementId = user.etablissementId;\r\n this.etablissementName = user.etablissementName;\r\n this.partnerId = user.partnerId;\r\n this.partnerName = user.partnerName;\r\n this.daysOfTraining = user.daysOfTraining;\r\n this.isEnabled = R.isNil(user.isEnabled) ? true : user.isEnabled;\r\n this.isEtablissementAdmin = R.isNil(user.isEtablissementAdmin) ? true : user.isEtablissementAdmin;\r\n this.childrens = R.isNil(user.childrens) ? [] : user.childrens;\r\n this.status = userStatus;\r\n this.createdByRepresentative = data.createdByRepresentative;\r\n this.roles = R.isNil(user.roles) ? [] : user.roles.map(u => u.toLowerCase());\r\n this.isDeceased = user.isDeceased;\r\n this.toDeleteDate = user.toDeleteDate === '0001-01-01T00:00:00Z' || R.isNil(user.toDeleteDate) ? undefined : new Date(user.toDeleteDate);\r\n this.onBoardingCompletedDate = R.isNil(user.onBoardingCompletedDate) || user.onBoardingCompletedDate === '0001-01-01T00:00:00Z' ? undefined : new Date(user.onBoardingCompletedDate);\r\n this.hasPendingInvoice = user.hasPendingInvoice;\r\n this.pendingInvoiceId = user.pendingInvoiceId;\r\n this.hasHrDocuments = user.hasHrDocuments;\r\n this.hasDocumentSending = user.hasDocumentSending;\r\n this.isSerenita = user.isSerenita;\r\n this.recipientEmail = user.recipientEmail;\r\n this.userName = user.userName;\r\n}\r\n\r\n\r\nfunction getFacilitaStatus(data) {\r\n\r\n // let statusOptions = { notAccepted: \"notAccepted\", ongoing: \"ongoing\", sending: \"sending\", overtime: \"overtime\" };\r\n let statusOptions = { notAccepted: \"notAccepted\", ongoing: \"ongoing\", sending: \"sending\" };\r\n let userStatus = statusOptions.ongoing;\r\n if (!data.billedByPartner && R.isNil(data.setupCompletedDate)) {\r\n userStatus = statusOptions.notAccepted;\r\n }\r\n if (data.isDeceased) {\r\n userStatus = statusOptions.sending;\r\n }\r\n // if (data.hasLettersToBeSentOvertime) {\r\n // userStatus = statusOptions.overtime;\r\n // }\r\n\r\n return userStatus;\r\n};\r\n\r\nfunction getSerenitaStatus(data) {\r\n\r\n // let statusOptions = { notAccepted: \"notAccepted\", ongoing: \"ongoing\", sending: \"sending\", overtime: \"overtime\" };\r\n let statusOptions = { notAccepted: \"notAccepted\", ongoing: \"ongoing\", sending: \"sending\" };\r\n\r\n let userStatus = statusOptions.ongoing;\r\n if (R.isNil(data.setupCompletedDate)) {\r\n userStatus = statusOptions.notAccepted;\r\n }\r\n if (data.isDeceased) {\r\n userStatus = statusOptions.sending;\r\n }\r\n // if (data.hasLettersToBeSentOvertime) {\r\n // userStatus = statusOptions.overtime;\r\n // }\r\n\r\n return userStatus;\r\n};\r\n\r\n\r\nfunction getAntecipaStatus(data) {\r\n\r\n let statusOptions = { notAccepted: \"notAccepted\", ongoing: \"ongoing\", finished: \"finished\", yearAndMore: \"yearAndMore\", closed: \"closed\" };\r\n\r\n const currentDate = new Date();\r\n const paymentLimit = new Date(data.creationDate);\r\n paymentLimit.setFullYear(paymentLimit.getFullYear() + 1);\r\n while(paymentLimit < currentDate){\r\n paymentLimit.setFullYear(paymentLimit.getFullYear() + 1);\r\n }\r\n\r\n const paymentAlertLimit = new Date(paymentLimit).setMonth(paymentLimit.getMonth() - 2);\r\n\r\n let userStatus = statusOptions.notAccepted;\r\n\r\n if (!R.isNil(data.toDeleteDate)) {\r\n userStatus = statusOptions.closed;\r\n } else if (data.onBoardingStep < 6 || R.isNil(data.onBoardingStep)) {\r\n userStatus = statusOptions.notAccepted;\r\n\r\n }else if (currentDate >= paymentAlertLimit && currentDate < paymentLimit){\r\n userStatus = statusOptions.yearAndMore;\r\n } else if (!R.isNil(data.setupCompletedDate)) {\r\n userStatus = statusOptions.finished;\r\n }else {\r\n userStatus = statusOptions.ongoing;\r\n //userStatus = statusOptions.finished;\r\n }\r\n\r\n\r\n\r\n return userStatus;\r\n};","import * as ActionTypes from \"../constants/actiontypes/user\";\r\nimport * as AuthActionTypes from \"../constants/actiontypes/auth\";\r\nimport * as ActionTypesFacilita from \"../constants/actiontypes/facilita/deathDeclaration\";\r\nimport User from \"../constants/models/user\";\r\nimport Address from \"../constants/models/address\";\r\nimport Referent from \"../constants/models/referent\";\r\nimport Service from \"../constants/models/service\";\r\nimport DocumentFile from \"../constants/models/documentFile\";\r\nimport CardPaymentMethod from \"../constants/models/cardPaymentMethod\";\r\nimport SepaPaymentMethod from \"../constants/models/sepaPaymentMethod\";\r\nimport * as Loadings from \"../constants/loadings/user\";\r\nimport * as LoadingsFacilita from \"../constants/loadings/facilita/deathDeclaration\";\r\nimport Invoice from \"../constants/models/invoice\";\r\nimport * as R from \"ramda\";\r\nimport * as Text from \"../constants/toasterText/user\";\r\nimport { toast } from \"react-toastify\";\r\nimport BackofficeUser from \"../constants/models/backofficeUser\";\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nconst UserReducer = (\r\n\tstate = {\r\n\t\tisLoading: [],\r\n\t\tuser: undefined,\r\n\t\taddress: undefined,\r\n\t\treferents: [],\r\n\t\tservices: [],\r\n\t\tdocuments: [],\r\n\t\tserviceDatas: [],\r\n\t\tmessage: \"\",\r\n\t\tprofilePicture: undefined,\r\n\t\tisDeletingReferent: false,\r\n\t\tstripeClientSecret: undefined,\r\n\t\tsignupStep4Success: false,\r\n\t\tinvoices: [],\r\n\t\tpartnerCustomization: {\r\n\t\t\tisLoaded: false,\r\n\t\t\tlogoBase64Encoded: undefined,\r\n\t\t\tcolor: undefined,\r\n\t\t},\r\n\t\tevents: [],\r\n\t},\r\n\taction\r\n) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.RESET_USER_STATE:\r\n\t\t\tstate.isLoading = [];\r\n\t\t\tstate.user = undefined;\r\n\t\t\tstate.address = undefined;\r\n\t\t\tstate.referents = [];\r\n\t\t\tstate.services = [];\r\n\t\t\tstate.serviceDatas = [];\r\n\t\t\tstate.isDeletingReferent = false;\r\n\t\t\tstate.partnerCustomization = {\r\n\t\t\t\tisLoaded: false,\r\n\t\t\t\tlogoBase64Encoded: undefined,\r\n\t\t\t\tcolor: undefined,\r\n\t\t\t};\r\n\t\t\tstate.events = [];\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_USER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCH_USER)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCH_USER);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_USER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_USER);\r\n\t\t\tif (Array.isArray(action.data)) {\r\n\t\t\t\tstate.user = new User(action.data[0]);\r\n\t\t\t} else {\r\n\t\t\t\tstate.user = new User(action.data);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_USER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_USER);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATE_USER)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.UPDATE_USER);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_SUCCESS:\r\n\t\t\tlet professions = [];\r\n\t\t\tif (!R.isEmpty(action.user.professionalSituation) && action.user.professionalSituation !== \"0\") {\r\n\t\t\t\tlet allProfs = action.user.professionalSituation.split(\",\");\r\n\t\t\t\tif (Array.isArray(allProfs)) {\r\n\t\t\t\t\tallProfs.forEach((p) => {\r\n\t\t\t\t\t\tprofessions.push(p.trim());\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprofessions.push(allProfs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tstate.user = {\r\n\t\t\t\t...state.user,\r\n\t\t\t\tbirthDate: action.user.birthDate,\r\n\t\t\t\tbirthPlace: action.user.birthPlace,\r\n\t\t\t\tcivilStatus: action.user.civilStatus,\r\n\t\t\t\tcountry: action.user.country,\r\n\t\t\t\tdepartmentNumber: action.user.departmentNumber,\r\n\t\t\t\tfirstName: action.user.firstName,\r\n\t\t\t\tgender: action.user.gender,\r\n\t\t\t\thasChildren: action.user.hasChildren,\r\n\t\t\t\thasPets: action.user.hasPets,\r\n\t\t\t\tlastName: action.user.lastName,\r\n\t\t\t\tprocessNumber: action.user.processNumber,\r\n\t\t\t\tprofessionalSituation: professions,\r\n\t\t\t};\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATE_USER);\r\n\t\t\ttoast.success(Text.dataUpdatedSuccess, toastConf);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATE_USER);\r\n\t\t\ttoast.error(Text.dataUpdateFailed, toastConf);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_USER_ADDRESS_SUCCESS:\r\n\t\t\tif (action.data.length > 0 && action.data[0] !== undefined) {\r\n\t\t\t\tstate.address = new Address(action.data[0]);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_ADDRESS_SUCCESS:\r\n\t\t\tstate.address = new Address(action.address);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_REPRESENTATIVES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCH_REPRESENTATIVES)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCH_REPRESENTATIVES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_REPRESENTATIVES_SUCCESS:\r\n\t\t\tstate.referents = action.data.filter((r) => r.userId === state.user.id).map((r) => new Referent(r));\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.FETCH_REPRESENTATIVES);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_REPRESENTATIVE_SUCCESS:\r\n\t\t\tlet referentIndex = state.referents.findIndex((r) => r.id === action.referent.id);\r\n\t\t\tif (referentIndex !== -1) {\r\n\t\t\t\tstate.referents[referentIndex] = new Referent(action.referent);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(`${Loadings.FETCH_REPRESENTATIVES_ADDRESS}_${action.referent.id}`)) {\r\n\t\t\t\tstate.isLoading.push(`${Loadings.FETCH_REPRESENTATIVES_ADDRESS}_${action.referent.id}`);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.FETCH_REPRESENTATIVES_ADDRESS}_${action.referent.id}`);\r\n\t\t\tlet referentId = state.referents.findIndex((r) => r.id === action.referent.id);\r\n\t\t\tif (referentId !== -1) {\r\n\t\t\t\tstate.referents[referentId].address = new Address(action.data[0]);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_REPRESENTATIVES_ADDRESS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.FETCH_REPRESENTATIVES_ADDRESS}_${action.referent.id}`);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.ADD_REPRESENTATIVE_ADDRESS_SUCCESS:\r\n\t\t\tlet referentIndex3 = state.referents.findIndex((r) => r.id === action.referentId);\r\n\t\t\tif (referentIndex3 !== -1) {\r\n\t\t\t\tstate.referents[referentIndex3].address = new Address(action.data);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS:\r\n\t\t\tlet referentIndex2 = state.referents.findIndex((r) => r.id === action.referentId);\r\n\t\t\tif (referentIndex2 !== -1) {\r\n\t\t\t\tstate.referents[referentIndex2].address = new Address(action.address);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.ADD_REPRESENTATIVE_SUCCESS:\r\n\t\t\tlet newReferent = new Referent(action.data);\r\n\t\t\tif (action.tmpRef !== undefined) {\r\n\t\t\t\tnewReferent.tmpRef = action.tmpRef;\r\n\t\t\t}\r\n\t\t\tstate.referents.push(newReferent);\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_REPRESENTATIVE_REQUEST:\r\n\t\t\tstate.isDeletingReferent = true;\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_REPRESENTATIVE_SUCCESS:\r\n\t\t\tstate.isDeletingReferent = false;\r\n\t\t\tstate.referents = state.referents.filter((r) => r.id !== action.referent.id);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_REPRESENTATIVE_FAILURE:\r\n\t\t\tstate.isDeletingReferent = false;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(`${Loadings.FETCH_SERVICES}`)) {\r\n\t\t\t\tstate.isLoading.push(`${Loadings.FETCH_SERVICES}`);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.FETCH_SERVICES);\r\n\t\t\tif (action.data.length > 0) {\r\n\t\t\t\taction.data.forEach((s) => {\r\n\t\t\t\t\tif (state.services.findIndex((sv) => sv.id === s.id) === -1) {\r\n\t\t\t\t\t\tstate.services.push(new Service(s));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_SUCCESS:\r\n\t\t\tif (state.services.findIndex((s) => s.id === action.data.id) === -1) {\r\n\t\t\t\tstate.services.push(new Service(action.data));\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_SERVICES_BATCH_REQUEST:\r\n\t\t\tstate.signupStep4Success = false;\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_SERVICES)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.UPDATING_SERVICES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.ADD_SERVICES_BATCH_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATING_SERVICES);\r\n\t\t\tstate.signupStep4Success = true;\r\n\r\n\t\t\tstate.services = action.data.map((s) => new Service(s));\r\n\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.ADD_SERVICES_BATCH_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATING_SERVICES);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICE_SUCCESS:\r\n\t\t\tstate.services = state.services.filter((s) => s.id !== action.service.id);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPLOAD_DOCUMENT_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(`${Loadings.UPLOADING_DOCUMENT}_${action.fileType}_${action.documentName}`)) {\r\n\t\t\t\tstate.isLoading.push(`${Loadings.UPLOADING_DOCUMENT}_${action.fileType}_${action.documentName}`);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPLOAD_DOCUMENT_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.UPLOADING_DOCUMENT}_${action.file.fileType}_${action.file.fileName}`);\r\n\t\t\tstate.documents.push(new DocumentFile({ fileName: action.file.fileName, fileType: action.file.fileType, description: action.file.description }));\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPLOAD_DOCUMENT_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.UPLOADING_DOCUMENT}_${action.fileType}_${action.documentName}`);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_DOCUMENTS_SUCCESS:\r\n\t\t\tif (action.data !== undefined && action.data.length > 0) {\r\n\t\t\t\tstate.documents = action.data.map((d) => new DocumentFile(d));\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.EDIT_DOCUMENT_SUCCESS:\r\n\t\t\tstate.documents = state.documents.map((document) => {\r\n\t\t\t\tif (document.fileName === action.file.fileName && document.fileType === action.file.fileType) {\r\n\t\t\t\t\treturn new DocumentFile({ fileName: action.file.fileName, fileType: action.file.fileType, description: action.file.description });\r\n\t\t\t\t}\r\n\t\t\t\treturn document;\r\n\t\t\t});\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_DOCUMENT_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(`${Loadings.DELETING_DOCUMENT}_${action.fileType}`)) {\r\n\t\t\t\tstate.isLoading.push(`${Loadings.DELETING_DOCUMENT}_${action.fileType}`);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_DOCUMENT_SUCCESS:\r\n\t\t\tstate.documents = state.documents.filter((d) => d.fileName !== action.fileType);\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.DELETING_DOCUMENT}_${action.fileType}`);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_DOCUMENT_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== `${Loadings.DELETING_DOCUMENT}_${action.fileType}`);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_MESSAGE_REQUEST:\r\n\t\t\tstate.message = undefined;\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_MESSAGE_SUCCESS:\r\n\t\t\tstate.message = action.message;\r\n\t\t\ttoast.success(Text.updateMessageSuccess, toastConf);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_MESSAGE_FAILURE:\r\n\t\t\tstate.message = \"\";\r\n\t\t\ttoast.error(Text.updateMessageError, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_MESSAGE_SUCCESS:\r\n\t\t\tstate.message = action.data;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GET_PROFILEPIC_SUCCESS:\r\n\t\t\tstate.profilePicture = action.data;\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_PROFILEPIC_SUCCESS:\r\n\t\t\tstate.profilePicture = undefined;\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPLOAD_PROFILEPIC_SUCCESS:\r\n\t\t\tstate.profilePicture = action.data;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS:\r\n\t\t\tstate.user.onBoardingStep = action.step;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SET_COMPLETE_SUCCESS:\r\n\t\t\tstate.user.setupCompletedDate = new Date();\r\n\t\t\twindow.location = `/anticipa/dashboard`;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_PAYMENTMETHOD_SUCCESS:\r\n\t\t\tfor (let i = 0; i < state.user.paymentMethods.length; i++) {\r\n\t\t\t\tstate.user.paymentMethods[i].isDefault = false;\r\n\t\t\t}\r\n\t\t\tif (action.data.type === \"Card\") {\r\n\t\t\t\tstate.user.paymentMethods = state.user.paymentMethods.concat(new CardPaymentMethod(action.data));\r\n\t\t\t} else if (action.data.type === \"Sepa\") {\r\n\t\t\t\tstate.user.paymentMethods = state.user.paymentMethods.concat(new SepaPaymentMethod(action.data));\r\n\t\t\t}\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.ADDING_PAYMENTMETHOD);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_PAYMENTMETHOD_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.ADDING_PAYMENTMETHOD)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.ADDING_PAYMENTMETHOD);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.REMOVE_PAYMENTMETHOD_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.DELETING_PAYMENTMETHOD)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.DELETING_PAYMENTMETHOD);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.REMOVE_PAYMENTMETHOD_SUCCESS:\r\n\t\t\tstate.user.paymentMethods = state.user.paymentMethods.filter((p) => p.id !== action.paymentMethod.id);\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.DELETING_PAYMENTMETHOD);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GET_SETUPINTENT_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.GETTING_SETUPINTENT)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.GETTING_SETUPINTENT);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.GET_SETUPINTENT_SUCCESS:\r\n\t\t\tstate.stripeClientSecret = action.data;\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.GETTING_SETUPINTENT);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_INVOICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCH_INVOICES)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.FETCH_INVOICES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_INVOICES_SUCCESS:\r\n\t\t\tif (!R.isNil(action.data) && action.data.length > 0) {\r\n\t\t\t\tstate.invoices = action.data.map((invoice) => new Invoice(invoice));\r\n\t\t\t}\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.FETCH_INVOICES);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.FETCH_INVOICES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.FETCH_INVOICES);\r\n\t\t\ttoast.error(Text.invoicesErrorMessage, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_SECURITY_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATE_SECURITY)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.UPDATE_SECURITY);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_SECURITY_SUCCESS:\r\n\t\t\tif (!R.isNil(action.user.newPhoneNumber)) {\r\n\t\t\t\tstate.user.phoneNumber = action.user.newPhoneNumber;\r\n\t\t\t\tsessionStorage.removeItem(\"access_token\");\r\n\t\t\t\twindow.location = \"/auth/signin\" + (window.location.search !== \"\" ? window.location.search : \"\");\r\n\t\t\t}\r\n\t\t\tif (!R.isNil(action.user.newEmail)) {\r\n\t\t\t\tstate.user.email = action.user.newEmail;\r\n\t\t\t}\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.UPDATE_SECURITY);\r\n\t\t\ttoast.success(Text.updateSecuritySuccess, toastConf);\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_SECURITY_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.UPDATE_SECURITY);\r\n\t\t\ttoast.error(Text.udpateSecurityFailed, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.PROCESS_PAYMENT_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.PROCESSING_PAYMENT)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.PROCESSING_PAYMENT);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.PROCESS_PAYMENT_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.PROCESSING_PAYMENT);\r\n\t\t\ttoast.error(Text.udpateSecurityFailed, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.PROCESS_PAYMENT_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((c) => c !== Loadings.PROCESSING_PAYMENT);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.VERIFY_OTP_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.VALIDATING_OTP)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.VALIDATING_OTP);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.VERIFY_OTP_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.VALIDATING_OTP);\r\n\t\t\tif (!R.isNil(action.phoneNumber)) {\r\n\t\t\t\tstate.user = { ...state.user, phoneNumber: action.phoneNumber };\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.VERIFY_OTP_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.VALIDATING_OTP);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SEND_OTP_CODE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.SENDING_OTP)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.SENDING_OTP);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SEND_OTP_CODE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.SENDING_OTP);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SEND_OTP_CODE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.SENDING_OTP);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SET_NEWPASSWORD_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATE_SECURITY)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATE_SECURITY);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SET_NEWPASSWORD_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATE_SECURITY);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase AuthActionTypes.SET_NEWPASSWORD_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATE_SECURITY);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesFacilita.FETCH_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(LoadingsFacilita.FETCHING_USER_SERVICES_DATA)) {\r\n\t\t\t\tstate.isLoading.push(LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesFacilita.FETCH_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n\t\t\tstate.serviceDatas = action.data;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesFacilita.FETCH_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_PARTNER_CUSTOMIZATION_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCH_PARTNER_CUSTOMIZATION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCH_PARTNER_CUSTOMIZATION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_PARTNER_CUSTOMIZATION_DEFAULT_SUCCESS:\r\n\t\t\tstate.partnerCustomization = { ...state.partnerCustomization, isLoaded: true };\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_PARTNER_CUSTOMIZATION_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_PARTNER_CUSTOMIZATION);\r\n\t\t\tstate.partnerCustomization = action.data;\r\n\t\t\tstate.partnerCustomization = { ...state.partnerCustomization, isLoaded: true };\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_PARTNER_CUSTOMIZATION_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_PARTNER_CUSTOMIZATION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_LIFEEVENTS_REQUEST:\r\n\t\t\tstate.events = [...state.events];\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_LIFEEVENTS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_LIFEEVENTS);\r\n\t\t\tstate.events = action.data;\r\n\t\t\tstate.events = [...state.events];\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_LIFEEVENTS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCH_LIFEEVENTS);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\nexport default UserReducer;\r\n","export const FETCH_SERVICES_REQUEST = 'FETCH_SERVICES_REQUEST';\r\nexport const FETCH_SERVICES_SUCCESS = 'FETCH_SERVICES_SUCCESS';\r\nexport const FETCH_SERVICES_FAILURE = 'FETCH_SERVICES_FAILURE';\r\n\r\nexport const GET_SERVICE_BY_ID_REQUEST = 'GET_SERVICE_BY_ID_REQUEST';\r\nexport const GET_SERVICE_BY_ID_SUCCESS = 'GET_SERVICE_BY_ID_SUCCESS';\r\nexport const GET_SERVICE_BY_ID_FAILURE = 'GET_SERVICE_BY_ID_FAILURE';\r\n\r\nexport const DELETE_SERVICE_BY_ID_REQUEST = 'DELETE_SERVICE_BY_ID_REQUEST';\r\nexport const DELETE_SERVICE_BY_ID_SUCCESS = 'DELETE_SERVICE_BY_ID_SUCCESS';\r\nexport const DELETE_SERVICE_BY_ID_FAILURE = 'DELETE_SERVICE_BY_ID_FAILURE';\r\n\r\nexport const FETCH_SERVICES_DATA_REQUEST = 'FETCH_SERVICES_DATA_REQUEST';\r\nexport const FETCH_SERVICES_DATA_SUCCESS = 'FETCH_SERVICES_DATA_SUCCESS';\r\nexport const FETCH_SERVICES_DATA_FAILURE = 'FETCH_SERVICES_DATA_FAILURE';\r\n\r\nexport const ADD_SERVICES_DATA_REQUEST = 'ADD_SERVICES_DATA_REQUEST';\r\nexport const ADD_SERVICES_DATA_SUCCESS = 'ADD_SERVICES_DATA_SUCCESS';\r\nexport const ADD_SERVICES_DATA_FAILURE = 'ADD_SERVICES_DATA_FAILURE';\r\n\r\nexport const UPDATE_SERVICES_DATA_REQUEST = 'UPDATE_SERVICES_DATA_REQUEST';\r\nexport const UPDATE_SERVICES_DATA_SUCCESS = 'UPDATE_SERVICES_DATA_SUCCESS';\r\nexport const UPDATE_SERVICES_DATA_FAILURE = 'UPDATE_SERVICES_DATA_FAILURE';\r\n\r\nexport const DELETE_SERVICES_DATA_REQUEST = 'DELETE_SERVICES_DATA_REQUEST';\r\nexport const DELETE_SERVICES_DATA_SUCCESS = 'DELETE_SERVICES_DATA_SUCCESS';\r\nexport const DELETE_SERVICES_DATA_FAILURE = 'DELETE_SERVICES_DATA_FAILURE';\r\n\r\n\r\nexport const RESET_SERVICES = 'RESET_SERVICES';\r\n\r\nexport const CREATE_SERVICES_REQUEST = 'CREATE_SERVICES_REQUEST';\r\nexport const CREATE_SERVICES_SUCCESS = 'CREATE_SERVICES_SUCCESS';\r\nexport const CREATE_SERVICES_FAILURE = 'CREATE_SERVICES_FAILURE';\r\n\r\nexport const UPDATE_SERVICES_REQUEST = 'UPDATE_SERVICES_REQUEST';\r\nexport const UPDATE_SERVICES_SUCCESS = 'UPDATE_SERVICES_SUCCESS';\r\nexport const UPDATE_SERVICES_FAILURE = 'UPDATE_SERVICES_FAILURE';\r\n\r\n","export default function BankAccount(data) {\r\n let bankAccount = data || {};\r\n this.number = bankAccount.number;\r\n this.comment = bankAccount.comment;\r\n this.accountType = bankAccount.accountType;\r\n this.category = bankAccount.category;\r\n this.colNum = bankAccount.colNum;\r\n}","import BankAccount from './bankAccount';\r\n\r\nexport default function Bank(data) {\r\n let bank = data || {};\r\n this.type = \"Banques\";\r\n this.isMain = bank.isMain;\r\n this.accounts = bank.accounts !== undefined && bank.accounts !== null && bank.accounts.length !== 0 ? bank.accounts.map(b => new BankAccount(b)): [];\r\n}","export default function Generic(data) {\r\n let generic = data || {};\r\n this.type = \"Generic\";\r\n this.reference = generic.reference;\r\n this.comment = generic.comment;\r\n}","\r\nexport default function Activity(data) {\r\n let activity = data || {};\r\n this.type = \"Activite\";\r\n this.companyName = activity.companyName;\r\n this.companyAddressStreet1 = activity.companyAddressStreet1;\r\n this.companyAddressStreet2 = activity.companyAddressStreet2;\r\n this.companyAddressPostalCode = activity.companyAddressPostalCode;\r\n this.companyAddressLocality = activity.companyAddressLocality;\r\n this.companyAddressCountry = activity.companyAddressCountry;\r\n this.function = activity.function;\r\n this.contractType = activity.contractType;\r\n this.companySavingsPlanReference = activity.companySavingsPlanReference;\r\n}","\r\nimport * as R from \"ramda\";\r\nimport AddressInfo from \"../addressInfo\";\r\n\r\n\r\nexport default function Etudiant(data) {\r\n let etudiant = data || {};\r\n this.type = \"Etudiant\";\r\n this.name = etudiant.name;\r\n this.address = R.isNil(data) || R.isNil(etudiant.address) ? new AddressInfo() : new AddressInfo(etudiant.address);\r\n this.level = etudiant.level;\r\n this.label = etudiant.label;\r\n}","export default __webpack_public_path__ + \"static/media/004-A-notaire.eadee8a5.png\";","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ4AAACACAYAAAD6WdCQAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABYJSURBVHgB7Z0JvBXTH8B/r12LpVJZi9DyKqWSJWRL2dIiZKmkLNmX4lORIkIkISJLRFFESIs2aRPt0iJK2kl7L735n+/xOfOf+97c173vzb3zrs7385maO3Nm7tx3f/d3zvltJ81xnDkiUl4sluSwIS0trX4htXOcWMGzJI8i/FNALJYQsIJnCQUreJZQsIJnCQUreJZQsIJnCQUreJZQsIJnCQUreJZQsIJnCQUreJZQsIJnCQUreJZQsIJnCYVCEhBbt+6VBQu2SJAUL15I0tNLyyGH+D/m3qnfSRAUPfcssSSXwARv/PjV0rr1VxIUzZqdIEOGNI4qdODsy5CNF10leaFg+SPlmPXLxZJc8mVXW7nyYTJw4PlSunTR6I0yMyVj3iKxpCb5TvAKFkyTCRNayLHHlsy5YYECUurOjlLihtZiST3yneB16JAulSqViqltWtGi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GwcY+iIYsW7asFkhTzoKq5SwxwLNgO8QzQggVldct+QAn4DEeflS/6uRUHiekCX8r1clZTbBly5aO6g51qQtKWigXmLNo0SK9piv7hEjhw4UqVaroshWwYMECp06dOnq/evXqjvJy6H2OcQ6oxE4IFpXmlcDrchmEZ23bts2xhEqwvlr8sZSooLuku8Vvaxg+fLhekohIEpZOYjNr05KHiyYieJSxIeudobnocln5Bhca/l0qspuAT7pcqgowJqQbJw+XjbXAGNtRLoPiQfhySZc0a8AyxgugarklCJwEzGrBu3YCkSTe9VxVd+fs2LFDzzoJ/gRmwhwDtKIyeeh1IQCt5b2eZebRklyvulx9TAm+1pawcePGiCBR1c06qst2LPmCYNe5sFhixKY3WsLDCp4lFKzgWULBCp4lFKzgWULBCp4lFKzgWULBCp4lFKzgWULBCp4lFKzgWULBCp4lFKzgWULBCp4lFKzgWULhf0JMcXVQFPFUAAAAAElFTkSuQmCC\"","export default __webpack_public_path__ + \"static/media/004-A-banque.6a2e9a82.svg\";","export default __webpack_public_path__ + \"static/media/004-A-mutuelle.c1fff996.svg\";","export default __webpack_public_path__ + \"static/media/100-assurance.f4575481.svg\";","export default __webpack_public_path__ + \"static/media/100-assurancehabitation.38e0e956.svg\";","export default __webpack_public_path__ + \"static/media/004-A-fournisseureau.ad5000b1.svg\";","export default __webpack_public_path__ + \"static/media/004-A-fournisseurelectricite.d0c36654.svg\";","export default __webpack_public_path__ + \"static/media/004-A-telephonemobile.40375874.svg\";","export default __webpack_public_path__ + \"static/media/004-A-dgfip.457a4230.png\";","export default __webpack_public_path__ + \"static/media/004-A-Caf.d57edc0e.svg\";","export default __webpack_public_path__ + \"static/media/004-B-sport.827127ff.svg\";","export default __webpack_public_path__ + \"static/media/004-B-internet.0e6ed53b.svg\";","export default __webpack_public_path__ + \"static/media/004-B-presse.1e628d1c.svg\";","export default __webpack_public_path__ + \"static/media/004-B-loisirs.0de62d62.svg\";","export default __webpack_public_path__ + \"static/media/004-B-voiture.0e4af7f7.svg\";","export default __webpack_public_path__ + \"static/media/004-B-transport.d82f0263.svg\";","export default __webpack_public_path__ + \"static/media/004-B-entretienmaison.71258a61.svg\";","export default __webpack_public_path__ + \"static/media/004-B-securite.7fa58daa.svg\";","export default __webpack_public_path__ + \"static/media/004-B-soinesthetique.0958a1e1.svg\";","export default __webpack_public_path__ + \"static/media/004-B-domicile.af82fccb.svg\";","export default __webpack_public_path__ + \"static/media/004-B-musique.d4b55150.svg\";","export default __webpack_public_path__ + \"static/media/004-B-cartepaiment.e841335d.svg\";","export default __webpack_public_path__ + \"static/media/004-B-multimedia.1a43becc.svg\";","export default __webpack_public_path__ + \"static/media/004-B-tech.f1ade65a.svg\";","export default __webpack_public_path__ + \"static/media/004-B-tv.a15a1391.svg\";","export default __webpack_public_path__ + \"static/media/004-B-solidaire.4f253daf.svg\";","export default __webpack_public_path__ + \"static/media/004-A-fournisseurgas.0d125332.svg\";","export default __webpack_public_path__ + \"static/media/020-facebook.71296914.svg\";","export default __webpack_public_path__ + \"static/media/019-youtube.5213846a.svg\";","export default __webpack_public_path__ + \"static/media/018-instagram-sketched.30b397e6.svg\";","export default __webpack_public_path__ + \"static/media/017-snapchat.1e07b1d0.svg\";","export default __webpack_public_path__ + \"static/media/023 - X.001c18d6.svg\";","export default __webpack_public_path__ + \"static/media/023-twitter-1.03bb06db.svg\";","export default __webpack_public_path__ + \"static/media/022-linkedin.4b07ec4c.svg\";","export default __webpack_public_path__ + \"static/media/021-whatsapp.ab1d72fa.svg\";","export default __webpack_public_path__ + \"static/media/016-tiktok.d485714d.svg\";","export default __webpack_public_path__ + \"static/media/029-football-ball.c8d87ec3.svg\";","export default __webpack_public_path__ + \"static/media/025-car.dc1f1d5c.svg\";","export default __webpack_public_path__ + \"static/media/026-boat.4b371617.svg\";","export default __webpack_public_path__ + \"static/media/027-motorcycle.2fd9e6b7.svg\";","export default __webpack_public_path__ + \"static/media/026-road.08556abb.svg\";","export default __webpack_public_path__ + \"static/media/028-pet-food.074daaac.svg\";","export default __webpack_public_path__ + \"static/media/024-furniture.ecde75b3.svg\";","export default __webpack_public_path__ + \"static/media/024-account.6ffc8dcb.svg\";","export default __webpack_public_path__ + \"static/media/004-B-autres.767099fd.svg\";","export default __webpack_public_path__ + \"static/media/104-social-media.7e8347e9.svg\";","export default __webpack_public_path__ + \"static/media/100-assurancelife.84f54ef6.svg\";","export default __webpack_public_path__ + \"static/media/100-death-assurance.322d3bad.svg\";","export default __webpack_public_path__ + \"static/media/100-assurancefuneral.f38bbb3c.svg\";","export default __webpack_public_path__ + \"static/media/035-id-card.b7df6827.svg\";","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgiSURBVHgB1Vp9bBTHFX8zsx93PmPs2LExrQuGQChQKCoVUUtUaKpGTZsoapU0RBRRoTaQNIZSklaqqliW0j+ISVWVoIRWbWgUNRRVimgDhTbgoggqVCpF5jvEJmAS4Gyfbc73tbszeXvnu5u5hLB7ObzmJ61235vZ2f3tvJn35s0SmMBob2/XIj09R/ByMQghCKVPbdqxY4ufNjSYYDhzaaTh/PuJKVQ39ejR/TMu9fQszhYQQjjn38WrW5Ngd8/gAl1jvwcOX9KoxjIpC0LNs2y5DiUkDT4xIQieejc6m2rafwWIMFoicDxccCvD5HqCkDj4BIUJAGIYO11yBYXInwVRKgoxCD4ROMHTPSN3IqEvyro8P1DpufNMP/hE4ASF7jSX6jjPUXRSSWUMIt8Y+MSEMFEZLrexIQh2YpioZSIKPhF8DwLUybLjFAwUCcaV90NP0Qc+EXwP2jBdFmWCVmKEK2VCJMAnAidIKWmSZUeilInHFBPV0dOD3/YhYKDZtcqyLXHgqaRSF0s+AJ8IfgwSofSg7RSvMyMDSo+FYrEL4BPBj0EBn5VFx86NQcFtwVMJOZIZbNu713eoFihBd4EggHxO1jkFFxF3vYU8Bt+BMhAowRPnR5uQga4oxwhiHFoSx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AAAASUVORK5CYII=\"","export default __webpack_public_path__ + \"static/media/034-clipboard.d8c07fe1.svg\";","export default __webpack_public_path__ + \"static/media/066-job-interview.674d9f0e.svg\";","export default __webpack_public_path__ + \"static/media/060-bank-account.12adde0d.svg\";","export default __webpack_public_path__ + \"static/media/043-contract.74e5385f.svg\";","export default __webpack_public_path__ + \"static/media/079-house-1.9431a7c6.svg\";","export default __webpack_public_path__ + \"static/media/146-university.0212db5f.png\";","export default __webpack_public_path__ + \"static/media/003-pets.fa078d0c.png\";","import notaire from '../../assets/images/svg/004-A-notaire.png';\r\nimport securitesociale from '../../assets/images/svg/004-A-securitesocial.png';\r\nimport banque from '../../assets/images/svg/004-A-banque.svg';\r\nimport mutuelle from '../../assets/images/svg/004-A-mutuelle.svg';\r\nimport assurance from '../../assets/images/svg/100-assurance.svg';\r\nimport assurancehabitation from '../../assets/images/svg/100-assurancehabitation.svg';\r\nimport fournisseureau from '../../assets/images/svg/004-A-fournisseureau.svg';\r\nimport fournisseurelectricite from '../../assets/images/svg/004-A-fournisseurelectricite.svg';\r\nimport telephonemobile from '../../assets/images/svg/004-A-telephonemobile.svg';\r\nimport centreimpots from '../../assets/images/svg/004-A-dgfip.png';\r\nimport caf from '../../assets/images/svg/004-A-Caf.svg';\r\nimport sport from '../../assets/images/svg/004-B-sport.svg';\r\nimport internet from '../../assets/images/svg/004-B-internet.svg';\r\nimport presse from '../../assets/images/svg/004-B-presse.svg';\r\nimport loisirs from '../../assets/images/svg/004-B-loisirs.svg';\r\nimport voitures from '../../assets/images/svg/004-B-voiture.svg';\r\nimport transport from '../../assets/images/svg/004-B-transport.svg';\r\nimport entretienmaison from '../../assets/images/svg/004-B-entretienmaison.svg';\r\nimport securite from '../../assets/images/svg/004-B-securite.svg';\r\nimport soinesthetique from '../../assets/images/svg/004-B-soinesthetique.svg';\r\nimport domicile from '../../assets/images/svg/004-B-domicile.svg';\r\nimport musique from '../../assets/images/svg/004-B-musique.svg';\r\nimport cartepaiment from '../../assets/images/svg/004-B-cartepaiment.svg';\r\nimport multimedia from '../../assets/images/svg/004-B-multimedia.svg';\r\nimport tech from '../../assets/images/svg/004-B-tech.svg';\r\nimport tv from '../../assets/images/svg/004-B-tv.svg';\r\nimport solidaire from '../../assets/images/svg/004-B-solidaire.svg';\r\nimport fournisseurgas from '../../assets/images/svg/004-A-fournisseurgas.svg';\r\nimport facebook from '../../assets/images/svg/020-facebook.svg';\r\nimport youtube from '../../assets/images/svg/019-youtube.svg';\r\nimport instagram from '../../assets/images/svg/018-instagram-sketched.svg';\r\nimport snapchat from '../../assets/images/svg/017-snapchat.svg';\r\nimport twitter from '../../assets/images/svg/023-twitter-1.svg';\r\nimport x from '../../assets/images/svg/023 - X.svg';\r\nimport linkedin from '../../assets/images/svg/022-linkedin.svg';\r\nimport whatsapp from '../../assets/images/svg/021-whatsapp.svg';\r\nimport tiktok from '../../assets/images/svg/016-tiktok.svg';\r\nimport voiture from '../../assets/images/svg/025-car.svg';\r\nimport bateau from '../../assets/images/svg/026-boat.svg';\r\nimport moto from '../../assets/images/svg/027-motorcycle.svg';\r\nimport scooter from '../../assets/images/svg/026-road.svg';\r\nimport loisir from '../../assets/images/svg/029-football-ball.svg';\r\nimport pet from '../../assets/images/svg/028-pet-food.svg';\r\nimport mobile from '../../assets/images/svg/024-furniture.svg';\r\nimport personnes from '../../assets/images/svg/024-account.svg';\r\nimport autres from '../../assets/images/svg/004-B-autres.svg';\r\nimport reseauxsociaux from '../../assets/images/svg/104-social-media.svg';\r\nimport assurancelife from '../../assets/images/svg/100-assurancelife.svg';\r\nimport assurancedeath from '../../assets/images/svg/100-death-assurance.svg';\r\nimport assurancefuneral from '../../assets/images/svg/100-assurancefuneral.svg';\r\nimport activity from '../../assets/images/svg/035-id-card.svg';\r\nimport pension from '../../assets/images/svg/111-rocking-chair.png';\r\nimport otherActivity from '../../assets/images/svg/034-clipboard.svg';\r\nimport poleEmploi from '../../assets/images/svg/066-job-interview.svg';\r\nimport peePerco from '../../assets/images/svg/060-bank-account.svg';\r\nimport locataire from '../../assets/images/svg/043-contract.svg';\r\nimport ehpad from '../../assets/images/svg/079-house-1.svg';\r\nimport student from \"../../assets/images/svg/146-university.png\";\r\nimport animauxDomestiques from \"../../assets/images/svg/003-pets.png\";\r\n\r\nexport const ConnectionTypes = {\r\n\tnotary: \"Notary\",\r\n\tsport: \"Sport\",\r\n\tinternet: \"Internet\",\r\n\telectricityProvider: \"ElectricityProvider\",\r\n\tmobilePhone: \"MobilePhone\",\r\n\tbank: \"Bank\",\r\n\tmultimedia: \"Multimedia\",\r\n\tsocialSecurity: \"SocialSecurity\",\r\n\ttaxes: \"TaxCenter\",\r\n\tmusic: \"Music\",\r\n\tmutual: \"Mutual\",\r\n\tvehicle: \"Vehicle\",\r\n\tinsurance: \"Insurance\",\r\n\twaterSupplier: \"WaterSupplier\",\r\n\thobby: \"Hobby\",\r\n\ttransportTicket: \"TransportTicket\",\r\n\thomeMaintenance: \"HomeMaintenance\",\r\n\tsecurity: \"Security\",\r\n\tcareAesthetic: \"CareAesthetic\",\r\n\thomeService: \"HomeService\",\r\n\tpaymentCard: \"PaymentCard\",\r\n\ttechnology: \"Technology\",\r\n\ttelevision: \"Television\",\r\n\tsolidarity: \"Solidarity\",\r\n\tsocialNetworks: \"SocialNetwork\",\r\n\thomeInsurance: \"HomeInsurance\",\r\n\tother: \"Other\",\r\n\tfacebook: \"Facebook\",\r\n\tyoutube: \"Youtube\",\r\n\tinstagram: \"Instagram\",\r\n\twhatsapp: \"Whatsapp\",\r\n\tsnapchat: \"Snapchat\",\r\n\ttwitter: \"Twitter\",\r\n\tlinkedin: \"LinkedIn\",\r\n\ttiktok: \"Tiktok\",\r\n\tvoitureAssurance: \"VehicleInsurance\",\r\n\tbateau: \"Boat\",\r\n\tmoto: \"Moto\",\r\n\tscooter: \"Scooter\",\r\n\tloisirsInsurance: \"HobbiesInsurance\",\r\n\tanimaux: \"Animal\",\r\n\tmateriel: \"Furniture\",\r\n\tpersonnes: \"People\",\r\n\tpress: \"Press\",\r\n\tgas: \"Gas\",\r\n\tlifeInsurance: \"LifeInsurance\",\r\n\tdeathInsurance: \"DeathInsurance\",\r\n\tfuneralInsurance: \"FuneralInsurance\",\r\n\tactivity: \"Activity\",\r\n\tpension: \"Pension\",\r\n\totherActivity: \"OtherActivity\",\r\n\tpoleEmploi: \"PoleEmploi\",\r\n\tetudiant: \"Etudiant\",\r\n\tpeePerco: \"PeePerco\",\r\n\tcaf: \"Caf\",\r\n\tlocataire: \"Locataire\",\r\n\tehpad: \"Ehpad\",\r\n\tanimauxDomestiques: \"AnimauxDomestiques\",\r\n};\r\n\r\nexport const FrenchTypes = {\r\n\tnotary: \"Notaires\",\r\n\tsport: \"Sport\",\r\n\tinternet: \"Internet\",\r\n\telectricityProvider: \"Electricite\",\r\n\tmobilePhone: \"TelephonieMobile\",\r\n\tbank: \"Banques\",\r\n\tmultimedia: \"Multimedia\",\r\n\tsocialSecurity: \"Cpam\",\r\n\ttaxes: \"CentreDesImpots\",\r\n\tmusic: \"Musique\",\r\n\tmutual: \"Mutuelles\",\r\n\tvehicle: \"Voiture\",\r\n\tinsurance: \"AssuranceVehicule\",\r\n\twaterSupplier: \"Eau\",\r\n\thobby: \"Loisirs\",\r\n\ttransportTicket: \"TitresDeTransport\",\r\n\thomeMaintenance: \"EntretienMaison\",\r\n\tsecurity: \"Securite\",\r\n\tcareAesthetic: \"SoinEsthetique\",\r\n\thomeService: \"ServicesDomicile\",\r\n\tpaymentCard: \"CartesDePaiement\",\r\n\ttechnology: \"Technologie\",\r\n\ttelevision: \"Television\",\r\n\tsolidarity: \"Solidarity\",\r\n\tsocialNetworks: \"ReseauxSociaux\",\r\n\thomeInsurance: \"AssurancesHabitation\",\r\n\tpress: \"Presse\",\r\n\tgas: \"Gaz\",\r\n\tlifeInsurance: \"AssurancesVie\",\r\n\tother: \"Autres\",\r\n\tanimaux: \"AssurancesAnimaux\",\r\n\tmateriel: \"AssuranceMateriels\",\r\n\tloisirsInsurance: \"AssuranceLoisirs\",\r\n\tdeathInsurance: \"AssuranceDeces\",\r\n\tfuneralInsurance: \"AssuranceObseques\",\r\n\tpersonsInsurance: \"AssurancesPersonne\",\r\n\tpeePerco: \"PeePerco\",\r\n\tactivity: \"Activite\",\r\n\tpension: \"Retraite\",\r\n\totherActivity: \"AutreActivite\",\r\n\tetudiant: \"Etudiant\",\r\n\tpoleEmploi: \"PoleEmploi\",\r\n\tcaf: \"Caf\",\r\n\tlocataire: \"Locataire\",\r\n\tehpad: \"Ehpad\",\r\n\tanimauxDomestiques: \"AnimauxDomestiques\",\r\n};\r\n\r\nexport const Icons = {\r\n\tnotary: notaire,\r\n\tsport: sport,\r\n\tinternet: internet,\r\n\telectricityProvider: fournisseurelectricite,\r\n\tmobilePhone: telephonemobile,\r\n\tbank: banque,\r\n\tmultimedia: multimedia,\r\n\tsocialSecurity: securitesociale,\r\n\ttaxes: centreimpots,\r\n\tmusic: musique,\r\n\tmutual: mutuelle,\r\n\tvehicle: voitures,\r\n\tinsurance: assurance,\r\n\twaterSupplier: fournisseureau,\r\n\thobby: loisirs,\r\n\ttransportTicket: transport,\r\n\thomeMaintenance: entretienmaison,\r\n\tsecurity: securite,\r\n\tcareAesthetic: soinesthetique,\r\n\thomeService: domicile,\r\n\tpaymentCard: cartepaiment,\r\n\ttechnology: tech,\r\n\ttelevision: tv,\r\n\tsolidarity: solidaire,\r\n\tsocialNetworks: reseauxsociaux,\r\n\thomeInsurance: assurancehabitation,\r\n\tother: autres,\r\n\tfacebook: facebook,\r\n\tyoutube: youtube,\r\n\tinstagram: instagram,\r\n\tsnapchat: snapchat,\r\n\ttwitter: twitter,\r\n\tlinkedin: linkedin,\r\n\tvoitureAssurance: voiture,\r\n\tbateau: bateau,\r\n\tmoto: moto,\r\n\tscooter: scooter,\r\n\tloisirsInsurance: loisir,\r\n\tanimaux: pet,\r\n\tmateriel: mobile,\r\n\tpersonnes: personnes,\r\n\tpress: presse,\r\n\tgas: fournisseurgas,\r\n\tlifeInsurance: assurancelife,\r\n\tdeathInsurance: assurancedeath,\r\n\tfuneralInsurance: assurancefuneral,\r\n\tactivity: activity,\r\n\totherActivity: otherActivity,\r\n\tpoleEmploi: poleEmploi,\r\n\tstudent: student,\r\n\tpeePerco: peePerco,\r\n\tlocataire: locataire,\r\n\tanimauxDomestiques: animauxDomestiques,\r\n};\r\n\r\nexport const AssuranceOptions = {\r\n\t// voitureAssurance: { connectionType: ConnectionTypes.voitureAssurance, title: \"assurance voiture\", desc: [\"...\"], icon: voiture },\r\n\t// bateau: { connectionType: ConnectionTypes.bateau, title: \"assurance bateau\", desc: [\"...\"], icon: bateau },\r\n\t// moto: { connectionType: ConnectionTypes.moto, title: \"assurance moto\", desc: [\"...\"], icon: moto },\r\n\t// scooter: { connectionType: ConnectionTypes.scooter, title: \"autres véhicules\", desc: [\"...\"], icon: scooter },\r\n\tinsurance: { connectionType: ConnectionTypes.insurance, title: \"assurance véhicules\", desc: [\"Assurance voiture, bateau, moto, scooter, autres véhicules, etc.\"], icon: assurance },\r\n\r\n\tloisirsInsurance: { connectionType: ConnectionTypes.loisirsInsurance, title: \"assurance loisirs\",desc: [\"...\"], icon: loisir },\r\n\tanimaux: { connectionType: ConnectionTypes.animaux, title: \"assurance animaux\",desc: [\"...\"], icon: pet },\r\n\tmateriel: { connectionType: ConnectionTypes.materiel, title: \"biens et extensions de garanties\",desc: [\"...\"], icon: mobile },\r\n\tpersonnes: { connectionType: ConnectionTypes.personnes, title: \"assurance des personnes\", desc: [\"...\"],icon: personnes, tooltip: \"Protection juridique familiale, individuelle\" },\r\n\tlifeInsurance: { connectionType: ConnectionTypes.lifeInsurance, title: \"assurance vie\", desc: [\"(Hors banque)\"], icon: assurancelife },\r\n\tdeathInsurance: { connectionType: ConnectionTypes.deathInsurance, title: \"assurance décès\",desc: [\"...\"], icon: assurancedeath },\r\n\tfuneralInsurance: { connectionType: ConnectionTypes.funeralInsurance, title: \"assurance obsèques\",desc: [\"...\"], icon: assurancefuneral },\r\n};\r\n\r\nexport const AssuranceOptionsBO = {\r\n\t// voitureAssurance: { connectionType: ConnectionTypes.insurance, title: 'assurance voiture', icon: voiture },\r\n\t// bateau: { connectionType: ConnectionTypes.insurance, title: 'assurance bateau', icon: bateau },\r\n\t// moto: { connectionType: ConnectionTypes.insurance, title: 'assurance moto', icon: moto },\r\n\t// scooter: { connectionType: ConnectionTypes.insurance, title: 'autres véhicules', icon: scooter },\r\n\tinsurance: { connectionType: ConnectionTypes.insurance, title: \"assurance véhicules\", desc: [\"Assurance voiture, bateau, moto, scooter, autres véhicules, etc.\"], icon: assurance },\r\n\tloisirsInsurance: { connectionType: ConnectionTypes.loisirsInsurance, title: 'assurance loisirs', icon: loisir },\r\n\tanimaux: { connectionType: ConnectionTypes.animaux, title: 'assurance animaux', icon: pet },\r\n\tmateriel: { connectionType: ConnectionTypes.materiel, title: 'biens et extensions de garanties', icon: mobile },\r\n\tpersonnes: { connectionType: ConnectionTypes.personnes, title: 'assurance des personnes', icon: personnes, tooltip: 'Protection juridique familiale, individuelle' },\r\n\tlifeInsurance: { connectionType: ConnectionTypes.lifeInsurance, title: 'assurance vie', icon: assurancelife },\r\n\tdeathInsurance: { connectionType: ConnectionTypes.deathInsurance, title: 'assurance décès', icon: assurancedeath },\r\n\tfuneralInsurance: { connectionType: ConnectionTypes.deathInsurance, title: 'assurance obsèques', icon: assurancefuneral }\r\n};\r\n\r\nexport const SocialNetworksOptions = {\r\n\tfacebook: { connectionType: ConnectionTypes.facebook, title: 'facebook', icon: facebook },\r\n\tyoutube: { connectionType: ConnectionTypes.youtube, title: 'youtube', icon: youtube },\r\n\tinstagram: { connectionType: ConnectionTypes.instagram, title: 'instagram', icon: instagram },\r\n\tsnapchat: { connectionType: ConnectionTypes.snapchat, title: 'snapchat', icon: snapchat },\r\n\ttwitter: { connectionType: ConnectionTypes.twitter, title: 'X', icon: x },\r\n\tlinkedIn: { connectionType: ConnectionTypes.linkedin, title: 'linkedin', icon: linkedin },\r\n\twhatsapp: { connectionType: ConnectionTypes.whatsapp, title: 'whatsapp', icon: whatsapp },\r\n\ttiktok: { connectionType: ConnectionTypes.tiktok, title: 'tiktok', icon: tiktok },\r\n};\r\n\r\nexport const PersonalServices = {\r\n\tsport: { connectionType: ConnectionTypes.sport, title: \"sport\", desc: [\"Fédération\", \"Salle de Sport\", \"Club ...\"], detailedDescription: \"Fédérations, salles de sport, clubs...\", icon: sport },\r\n\tinternet: { connectionType: ConnectionTypes.internet, title: \"internet\", desc: [\"Box\", \"Clé 3G ou 4G\", \"...\"], detailedDescription: \"Fournisseurs d'accès internet (Clé 3G ou 4G, Box)\", icon: internet },\r\n\tpress: { connectionType: ConnectionTypes.press, title: \"presse\", desc: [\"Presse locale\", \"Nationale\", \"Internationale\"], detailedDescription: \"Presse locale, nationale ou internationale\", icon: presse },\r\n\tloisirs: { connectionType: ConnectionTypes.hobby, title: \"loisirs\", desc: [\"Jeux en ligne\", \"Opéra\", \"...\"], detailedDescription: \"Jeux en ligne, opéra ou cinéma\", icon: loisirs },\r\n\tvoiture: { connectionType: ConnectionTypes.vehicle, title: \"voiture\", desc: [\"GPS\", \"Péage\", \"Parking\"], detailedDescription: \"Services GPS, péages ou parking\", icon: voitures },\r\n\ttransport: { connectionType: ConnectionTypes.transportTicket, title: \"titre de transport\", desc: [\"SNCF\", \"Bus\", \"...\"], detailedDescription: \"SNCF, Bus...\", icon: transport },\r\n\tmaison: { connectionType: ConnectionTypes.homeMaintenance, title: \"entretien maison\", desc: [\"Chaudière\", \"Ramonage\", \"...\"], detailedDescription: \"Chaudière, ramonage...\", icon: entretienmaison },\r\n\tsecurity: { connectionType: ConnectionTypes.security, title: \"sécurité\", desc: [\"Homiris\", \"Vérisure\", \"...\"], detailedDescription: \"Télé assistance, système de sécurité, alarme...\", icon: securite },\r\n\testhetique: { connectionType: ConnectionTypes.careAesthetic, title: \"soin et esthetique\", desc: [\"Body Minute\", \"Box beauté\", \"...\"], detailedDescription: \"Box de beauté, instituts de beauté...\", icon: soinesthetique },\r\n\tdomicile: { connectionType: ConnectionTypes.homeService, title: \"services a domicile\", desc: [\"Repas\", \"Femme de menage\", \"...\"], detailedDescription: \"Repas, services de nettoyage, femme de ménage...\", icon: domicile },\r\n\tmusic: { connectionType: ConnectionTypes.music, title: \"musique\", desc: [\"Deezer\", \"Spotify\", \"Apple Music\", \"...\"], detailedDescription: \"Services de musique en streaming (nom de l'organisme)\", icon: musique },\r\n\tcartPaiement: { connectionType: ConnectionTypes.paymentCard, title: \"carte de paiement\", desc: [\"(non fidélité et hors banques)\", \"Cora\", \"Auchan...\"], detailedDescription: \"Services de paiement par carte (non fidélité et hors banques)\", icon: cartepaiment },\r\n\tmultimedia: { connectionType: ConnectionTypes.multimedia, title: \"multimedia\", desc: [\"Netflix\", \"Amazon Prime\", \"...\"], detailedDescription: \"Services VOD (Netflix, Amazon Prime,...)\", icon: multimedia },\r\n\ttechnology: { connectionType: ConnectionTypes.technology, title: \"technologie\", desc: [\"Microsoft\", \"Adobe\", \"Apple (iTunes, iCloud...)\"], detailedDescription: \"Microsoft, Adobe, Apple (iTunes, iCloud...)\", icon: tech },\r\n\ttelevision: { connectionType: ConnectionTypes.television, title: \"télévision\", desc: [\"Bouquet TV\"], detailedDescription: \"Bouquets TV\", icon: tv },\r\n\tsolidarity: { connectionType: ConnectionTypes.solidarity, title: \"solidarité\", desc: [\"Dons\", \"Parrainage\", \"...\"], detailedDescription: \"Dons caritatifs ou Parrainages\", icon: solidaire },\r\n\tgas: { connectionType: ConnectionTypes.gas, title: \"fournisseur de gaz\", desc: [\"antargaz\", \"edf\", \"engie\", \"...\"], detailedDescription: \"Fournisseurs de gaz\", icon: fournisseurgas },\r\n\tpeePerco: { connectionType: ConnectionTypes.peePerco, title: \"plan d'épargne\", desc: [\"Entreprise (PEE)\", \"Retraite collective (PERCO)\", \"...\"], detailedDescription: \"Retraite, Entreprise (PEE), Retraite collective (PERCO), PERE-CO, PE-I, Perco-I\", icon: peePerco },\r\n\tehpad: { connectionType: ConnectionTypes.ehpad, title: \"ehpad\", desc: [\"Ehpad\", \"Maison de retraite\", \"...\"], detailedDescription: \"Ehpad, Maison de retraite, Mapad...\", icon: ehpad },\r\n\tanimauxDomestiques: { connectionType: ConnectionTypes.animauxDomestiques, title: \"animaux domestiques\", desc: [\"I-cad\", \"...\"], detailedDescription: \"I-cad (Identification des carnivores domestiques)\", icon: animauxDomestiques },\r\n};\r\n\r\nexport const OtherService = {\r\n\tother: { connectionType: ConnectionTypes.other, title: \"Autres abonnements, adhésions ou allocations\", desc: [\"Ajouter vos autres abonnements\", \"ex: Paniers bio, associations,...\" /*'Comme j\\'aime', 'Nespresso',*/], detailedDescription: \"APA, mairie de votre commune, Paniers bio, Comme j'aime, capsules Nespresso...\", icon: autres },\r\n\tactivity: { connectionType: ConnectionTypes.activity, title: \"En activité\", desc: [\"...\"], detailedDescription: \"Informations de votre employeur\", icon: activity },\r\n\tetudiant: { connectionType: ConnectionTypes.etudiant, title: \"Étudiant(e)\", desc: [\"...\"], detailedDescription: \"Informations de votre établissement d'enseignement\", icon: student },\r\n\tpension: { connectionType: ConnectionTypes.pension, title: \"Retraite\", desc: [\"...\"], detailedDescription: \"Informations de votre retaite\", icon: pension },\r\n\totherActivity: { connectionType: ConnectionTypes.otherActivity, title: \"Autre Activité\", desc: [\"Tuteur ou curateur\", \"Trésorier\", \"...\"], detailedDescription: \"Informations de votre autre activité\", icon: otherActivity },\r\n\tpoleEmploi: { connectionType: ConnectionTypes.poleEmploi, title: \"France Travail\", desc: [\"...\"], detailedDescription: \"Indiquez votre ville ou code postal.\", icon: poleEmploi },\r\n\tlocataire: { connectionType: ConnectionTypes.locataire, title: \"Locataire\", desc: [\"...\"], detailedDescription: \"Informations du propriétaire ou du cabinet gérant votre contrat de bail.\", icon: locataire },\r\n};\r\n\r\nexport const CommonServices = {\r\n\tnotaire: { connectionType: ConnectionTypes.notary, title: 'notaire', icon: notaire, detailedDescription: 'Veuillez renseigner le nom ou le code postal du notaire.' },\r\n\tsecSocial: { connectionType: ConnectionTypes.socialSecurity, title: 'securité sociale', icon: securitesociale, detailedDescription: 'Veuillez renseigner votre code postal ou sélectionner le service.' },\r\n\tbank: { connectionType: ConnectionTypes.bank, title: 'banque', icon: banque, detailedDescription: '' },\r\n\tmutuelle: { connectionType: ConnectionTypes.mutual, title: 'mutuelle', icon: mutuelle, detailedDescription: 'Veuillez renseigner le nom de l\\'organisme.' },\r\n\thabitation: { connectionType: ConnectionTypes.homeInsurance, title: 'assurance habitation', icon: assurancehabitation, detailedDescription: 'Veuillez renseigner le nom de l\\'organisme.' },\r\n\teau: { connectionType: ConnectionTypes.waterSupplier, title: \"fournisseur d'eau\", icon: fournisseureau, detailedDescription: 'Veuillez renseigner votre code postal ou sélectionner le service.' },\r\n\telectricity: { connectionType: ConnectionTypes.electricityProvider, title: \"fournisseur d'electricité\", icon: fournisseurelectricite, detailedDescription: 'Veuillez renseigner le nom de l\\'organisme.' },\r\n\tmobile: { connectionType: ConnectionTypes.mobilePhone, title: 'téléphone mobile', icon: telephonemobile, detailedDescription: 'Opérateurs mobiles' },\r\n\timpots: { connectionType: ConnectionTypes.taxes, title: 'centre des impots', icon: centreimpots, detailedDescription: 'Veuillez renseigner la ville du centre des impôts.' },\r\n\tcaf: { connectionType: ConnectionTypes.caf, title: 'Caisse d\\'Allocations Familiales', icon: caf, detailedDescription: 'Veuillez renseigner le nom de votre département.' }\r\n};\r\n\r\nexport const AuxiliarOptions = {\r\n\tinsurance: { connectionType: ConnectionTypes.insurance, title: \"assurance véhicules\", icon: assurance, detailedDescription: \"Assurance voiture, bateau, moto, scooter, autres véhicules, etc.\" },\r\n\tsocialNetworks: { connectionType: ConnectionTypes.socialNetworks, title: \"reseaux sociaux\", icon: reseauxsociaux, detailedDescription: \"\" },\r\n\tloisirsInsurance: { connectionType: ConnectionTypes.loisirsInsurance, title: \"assurance loisirs\", icon: loisir, detailedDescription: \"\" },\r\n\tanimaux: { connectionType: ConnectionTypes.animaux, title: \"assurance animaux\", icon: pet, detailedDescription: \"\" },\r\n\tmateriel: { connectionType: ConnectionTypes.materiel, title: \"assurance biens et extensions de garanties\", icon: mobile, detailedDescription: \"\" },\r\n\tpersonnes: { connectionType: ConnectionTypes.personnes, title: \"assurance personnes\", icon: personnes, tooltip: \"Protection juridique familiale, individuelle\", detailedDescription: \"Protection juridique familiale, individuelle\" },\r\n\tlifeInsurance: { connectionType: ConnectionTypes.lifeInsurance, title: \"assurance vie\", desc: [\"(hors banque)\"], icon: assurancelife, detailedDescription: \"(HORS BANQUE)\" },\r\n\tdeathInsurance: { connectionType: ConnectionTypes.deathInsurance, title: \"assurance décès\", desc: [\"...\"], icon: assurancedeath, detailedDescription: \"\" },\r\n\tfuneralInsurance: { connectionType: ConnectionTypes.funeralInsurance, title: \"assurance obsèques\", desc: [\"...\"], icon: assurancefuneral, detailedDescription: \"\" },\r\n};\r\n\r\nexport function convertConnectionTypesToServiceType(connectionType) {\r\n\tconst serviceTypesMapping = {\r\n\t\t[ConnectionTypes.notary]: FrenchTypes.notary,\r\n\t\t[ConnectionTypes.sport]: FrenchTypes.sport,\r\n\t\t[ConnectionTypes.internet]: FrenchTypes.internet,\r\n\t\t[ConnectionTypes.electricityProvider]: FrenchTypes.electricityProvider,\r\n\t\t[ConnectionTypes.mobilePhone]: FrenchTypes.mobilePhone,\r\n\t\t[ConnectionTypes.bank]: FrenchTypes.bank,\r\n\t\t[ConnectionTypes.multimedia]: FrenchTypes.multimedia,\r\n\t\t[ConnectionTypes.socialSecurity]: FrenchTypes.socialSecurity,\r\n\t\t[ConnectionTypes.taxes]: FrenchTypes.taxes,\r\n\t\t[ConnectionTypes.music]: FrenchTypes.music,\r\n\t\t[ConnectionTypes.mutual]: FrenchTypes.mutual,\r\n\t\t[ConnectionTypes.vehicle]: FrenchTypes.vehicle,\r\n\t\t[ConnectionTypes.insurance]: FrenchTypes.insurance,\r\n\t\t[ConnectionTypes.waterSupplier]: FrenchTypes.waterSupplier,\r\n\t\t[ConnectionTypes.hobby]: FrenchTypes.hobby,\r\n\t\t[ConnectionTypes.transportTicket]: FrenchTypes.transportTicket,\r\n\t\t[ConnectionTypes.homeMaintenance]: FrenchTypes.homeMaintenance,\r\n\t\t[ConnectionTypes.security]: FrenchTypes.security,\r\n\t\t[ConnectionTypes.careAesthetic]: FrenchTypes.careAesthetic,\r\n\t\t[ConnectionTypes.homeService]: FrenchTypes.homeService,\r\n\t\t[ConnectionTypes.paymentCard]: FrenchTypes.paymentCard,\r\n\t\t[ConnectionTypes.technology]: FrenchTypes.technology,\r\n\t\t[ConnectionTypes.television]: FrenchTypes.television,\r\n\t\t[ConnectionTypes.solidarity]: FrenchTypes.solidarity,\r\n\t\t[ConnectionTypes.socialNetworks]: FrenchTypes.socialNetworks,\r\n\t\t[ConnectionTypes.homeInsurance]: FrenchTypes.homeInsurance,\r\n\t\t[ConnectionTypes.press]: FrenchTypes.press,\r\n\t\t[ConnectionTypes.gas]: FrenchTypes.gas,\r\n\t\t[ConnectionTypes.lifeInsurance]: FrenchTypes.lifeInsurance,\r\n\t\t[ConnectionTypes.other]: FrenchTypes.other,\r\n\t\t[ConnectionTypes.animaux]: FrenchTypes.animaux,\r\n\t\t[ConnectionTypes.materiel]: FrenchTypes.materiel,\r\n\t\t[ConnectionTypes.loisirsInsurance]: FrenchTypes.loisirsInsurance,\r\n\t\t[ConnectionTypes.deathInsurance]: FrenchTypes.deathInsurance,\r\n\t\t[ConnectionTypes.funeralInsurance]: FrenchTypes.funeralInsurance,\r\n\t\t[ConnectionTypes.activity]: FrenchTypes.activity,\r\n\t\t[ConnectionTypes.etudiant]: FrenchTypes.etudiant,\r\n\t\t[ConnectionTypes.pension]: FrenchTypes.pension,\r\n\t\t[ConnectionTypes.otherActivity]: FrenchTypes.otherActivity,\r\n\t\t[ConnectionTypes.poleEmploi]: FrenchTypes.poleEmploi,\r\n\t\t[ConnectionTypes.personnes]: FrenchTypes.personsInsurance,\r\n\t\t[ConnectionTypes.peePerco]: FrenchTypes.peePerco,\r\n\t\t[ConnectionTypes.caf]: FrenchTypes.caf,\r\n\t\t[ConnectionTypes.locataire]: FrenchTypes.locataire,\r\n\t\t[ConnectionTypes.ehpad]: FrenchTypes.ehpad,\r\n\t\t[ConnectionTypes.animauxDomestiques]: FrenchTypes.animauxDomestiques,\r\n\t};\r\n\treturn serviceTypesMapping[[connectionType]];\r\n}\r\n\r\nexport function convertBackEndServiceTypesToFrontEndServiceType(connectionType) {\r\n\tconst serviceTypesMapping = {\r\n\t\t[FrenchTypes.notary]: ConnectionTypes.notary,\r\n\t\t[FrenchTypes.sport]: ConnectionTypes.sport,\r\n\t\t[FrenchTypes.internet]: ConnectionTypes.internet,\r\n\t\t[FrenchTypes.electricityProvider]: ConnectionTypes.electricityProvider,\r\n\t\t[FrenchTypes.mobilePhone]: ConnectionTypes.mobilePhone,\r\n\t\t[FrenchTypes.bank]: ConnectionTypes.bank,\r\n\t\t[FrenchTypes.multimedia]: ConnectionTypes.multimedia,\r\n\t\t[FrenchTypes.socialSecurity]: ConnectionTypes.socialSecurity,\r\n\t\t[FrenchTypes.taxes]: ConnectionTypes.taxes,\r\n\t\t[FrenchTypes.music]: ConnectionTypes.music,\r\n\t\t[FrenchTypes.mutual]: ConnectionTypes.mutual,\r\n\t\t[FrenchTypes.vehicle]: ConnectionTypes.vehicle,\r\n\t\t[FrenchTypes.insurance]: ConnectionTypes.insurance,\r\n\t\t[FrenchTypes.waterSupplier]: ConnectionTypes.waterSupplier,\r\n\t\t[FrenchTypes.hobby]: ConnectionTypes.hobby,\r\n\t\t[FrenchTypes.transportTicket]: ConnectionTypes.transportTicket,\r\n\t\t[FrenchTypes.homeMaintenance]: ConnectionTypes.homeMaintenance,\r\n\t\t[FrenchTypes.security]: ConnectionTypes.security,\r\n\t\t[FrenchTypes.careAesthetic]: ConnectionTypes.careAesthetic,\r\n\t\t[FrenchTypes.homeService]: ConnectionTypes.homeService,\r\n\t\t[FrenchTypes.paymentCard]: ConnectionTypes.paymentCard,\r\n\t\t[FrenchTypes.technology]: ConnectionTypes.technology,\r\n\t\t[FrenchTypes.television]: ConnectionTypes.television,\r\n\t\t[FrenchTypes.solidarity]: ConnectionTypes.solidarity,\r\n\t\t[FrenchTypes.socialNetworks]: ConnectionTypes.socialNetworks,\r\n\t\t[FrenchTypes.homeInsurance]: ConnectionTypes.homeInsurance,\r\n\t\t[FrenchTypes.press]: ConnectionTypes.press,\r\n\t\t[FrenchTypes.gas]: ConnectionTypes.gas,\r\n\t\t[FrenchTypes.lifeInsurance]: ConnectionTypes.lifeInsurance,\r\n\t\t[FrenchTypes.other]: ConnectionTypes.other,\r\n\t\t[FrenchTypes.animaux]: ConnectionTypes.animaux,\r\n\t\t[FrenchTypes.materiel]: ConnectionTypes.materiel,\r\n\t\t[FrenchTypes.loisirsInsurance]: ConnectionTypes.loisirsInsurance,\r\n\t\t[FrenchTypes.deathInsurance]: ConnectionTypes.deathInsurance,\r\n\t\t[FrenchTypes.funeralInsurance]: ConnectionTypes.funeralInsurance,\r\n\t\t[FrenchTypes.activity]: ConnectionTypes.activity,\r\n\t\t[FrenchTypes.pension]: ConnectionTypes.pension,\r\n\t\t[FrenchTypes.otherActivity]: ConnectionTypes.otherActivity,\r\n\t\t[FrenchTypes.etudiant]: ConnectionTypes.etudiant,\r\n\t\t[FrenchTypes.poleEmploi]: ConnectionTypes.poleEmploi,\r\n\t\t[FrenchTypes.personsInsurance]: ConnectionTypes.personnes,\r\n\t\t[FrenchTypes.peePerco]: ConnectionTypes.peePerco,\r\n\t\t[FrenchTypes.caf]: ConnectionTypes.caf,\r\n\t\t[FrenchTypes.locataire]: ConnectionTypes.locataire,\r\n\t\t[FrenchTypes.ehpad]: ConnectionTypes.ehpad,\r\n\t\t[FrenchTypes.animauxDomestiques]: ConnectionTypes.animauxDomestiques,\r\n\t};\r\n\treturn serviceTypesMapping[[connectionType]];\r\n}\r\n\r\nexport const PensionProfessionalCategoryMapping = [\r\n\t{\r\n\t\ttitle: 'Salarié',\r\n\t\toptions: [\r\n\t\t\t{ title: 'Salarié de l\\'agriculture', value: 'SalarieAgriculture' },\r\n\t\t\t{ title: 'Salarié', value: 'Salarie' },\r\n\t\t\t{ title: 'Salarié de l\\'industrie du commerce et des services', value: 'CommerceEtService' },\r\n\t\t\t{ title: \"Salarié des industries électriques et gazières\", value: \"ElectriqueEtGazieres\" },\r\n\t\t\t{ title: 'Agent non titulaire de l\\'Etat et des collectivités publiques', value: 'AgentsCollectivitePubliques' },\r\n\t\t\t{ title: 'Personnel navigant de l\\'aviation civile', value: 'AviationCivile' }\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\ttitle: 'Fonctionnaires',\r\n\t\toptions: [\r\n\t\t\t{ title: 'Fonctionnaire de l\\'Etat, magistrat et militaire', value: 'FonctionnairesEtatMagistratsEtMilitaires' },\r\n\t\t\t{ title: 'Agent de la fonction publique territoriale et hopistalière', value: 'TerritorialesEtHopistalière' },\r\n\t\t\t{ title: 'Ouvrier de l\\'Etat', value: 'OuvriersEtat' }\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\ttitle: 'Travailleurs indépendants',\r\n\t\toptions: [\r\n\t\t\t{ title: 'Exploitant agricole', value: 'ExploitantsAgricoles' },\r\n\t\t\t{ title: 'Artisan commercant et industriel', value: 'ArtisanCommercantIndustriels' },\r\n\t\t\t{ title: 'Profession libérale', value: 'ProfessionsLiberales' },\r\n\t\t\t{ title: 'Artiste, auteur d\\'oeuvres originales', value: 'ArtistesAuteurs' },\r\n\t\t\t{ title: 'Membres de cultes', value: 'MembresCultes' }\r\n\t\t]\r\n\t},\r\n\t{\r\n\t\ttitle: 'Autres',\r\n\t\toptions: [\r\n\t\t\t{ title: 'Autres', value: 'Autres' }\r\n\t\t]\r\n\t},\r\n];\r\n\r\nexport const ProfessionOptions = { retired: 'Retired', active: 'Employed', unemployed: 'PoleEmploi', other: 'OtherActivity', none: 'None', student: 'Student' };\r\n\r\nexport function isSocialNetwork(str) {\r\n\tif (str === ConnectionTypes.facebook || str === ConnectionTypes.youtube || str === ConnectionTypes.instagram || str === ConnectionTypes.whatsapp ||\r\n\t\tstr === ConnectionTypes.snapchat || str === ConnectionTypes.twitter || str === ConnectionTypes.linkedin || str === ConnectionTypes.tiktok ||\r\n\t\tstr === ConnectionTypes.socialNetworks) {\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}\r\n\r\nexport function isInsurance(str) {\r\n\tif (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}","import * as R from 'ramda';\r\nimport AddressInfo from '../addressInfo';\r\nimport {FrenchTypes} from '../../utils/connectionTypes';\r\n\r\nexport default function OtherActivity(data) {\r\n let activity = data || {};\r\n this.type = FrenchTypes.otherActivity;\r\n this.address = R.isNil(data) || R.isNil(data.address) ? new AddressInfo() : new AddressInfo(data.address);\r\n this.name = activity.name;\r\n this.function = activity.function;\r\n}","import * as R from 'ramda';\r\nimport OtherActivity from './otherActivity';\r\n\r\n\r\nexport default function Pension(data) {\r\n let activity = data || {};\r\n this.type = \"Retraite\";\r\n this.professionalCategory = activity.professionalCategory;\r\n this.pensionBaseServiceId = activity.pensionBaseServiceId;\r\n this.pensionComplementServiceId = activity.pensionComplementServiceId;\r\n this.customPensionBase = R.isNil(activity.customPensionBase) ? new OtherActivity() : new OtherActivity(activity.customPensionBase);\r\n this.customPensionComplement = R.isNil(activity.customPensionComplement) ? new OtherActivity() : new OtherActivity(activity.customPensionComplement);\r\n}","import * as R from 'ramda';\r\nimport AddressInfo from '../addressInfo';\r\nimport {FrenchTypes} from '../../utils/connectionTypes';\r\n\r\nexport default function Lease(data) {\r\n let activity = data || {};\r\n this.type = FrenchTypes.locataire;\r\n this.address = R.isNil(data) || R.isNil(data.address) ? new AddressInfo() : new AddressInfo(data.address);\r\n this.name = activity.name;\r\n}","import * as R from 'ramda';\r\nimport AddressInfo from '../addressInfo';\r\nimport {FrenchTypes} from '../../utils/connectionTypes';\r\n\r\nexport default function Ehpad(data) {\r\n let activity = data || {};\r\n this.type = FrenchTypes.ehpad;\r\n this.address = R.isNil(data) || R.isNil(data.address) ? new AddressInfo() : new AddressInfo(data.address);\r\n this.name = activity.name;\r\n}","import Assurance from './servicePayloads/assurance';\r\nimport Bank from './servicePayloads/bank';\r\nimport Generic from './servicePayloads/generic';\r\nimport Activity from './servicePayloads/activity';\r\nimport Etudiant from \"./servicePayloads/etudiant\";\r\nimport OtherActivity from './servicePayloads/otherActivity';\r\nimport Pension from './servicePayloads/pension';\r\nimport Lease from './servicePayloads/lease';\r\nimport Ehpad from './servicePayloads/ehpad';\r\n// import AddressInfo from './addressInfo';\r\nimport {FrenchTypes} from '../utils/connectionTypes';\r\n\r\nexport default function ServiceData(data){\r\n let service = data || {};\r\n this.id = service.id;\r\n this.userId = service.userId;\r\n this.serviceName = service.serviceName;\r\n this.serviceType = service.serviceType;\r\n this.serviceId = service.serviceId;\r\n this.customServiceDetails = service.customServiceDetails;\r\n this.payload = //service.serviceType === FrenchTypes.insurance ? new Assurance(service.payload):\r\n\t\t\tservice.serviceType === FrenchTypes.bank\r\n\t\t\t\t? new Bank(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.activity\r\n\t\t\t\t? new Activity(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.etudiant\r\n\t\t\t\t? new Etudiant(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.otherActivity\r\n\t\t\t\t? new OtherActivity(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.pension\r\n\t\t\t\t? new Pension(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.locataire\r\n\t\t\t\t? new Lease(service.payload)\r\n\t\t\t\t: service.serviceType === FrenchTypes.ehpad\r\n\t\t\t\t? new Ehpad(service.payload)\r\n\t\t\t\t: // service.serviceType === FrenchTypes.homeInsurance ? new AddressInfo(service.payload):\r\n\t\t\t\t new Generic(service.payload);\r\n this.position = service.position;\r\n this.lifeEvent = service.lifeEvent;\r\n}","export const UPDATING_SERVICE_DATA = 'UPDATING_SERVICE_DATA';\r\nexport const ADD_NEW_SERVICE = 'ADD_NEW_SERVICE';\r\nexport const FETCHING_SERVICES = 'FETCHING_SERVICES';\r\nexport const CREATING_SERVICE = 'CREATING_SERVICE';\r\nexport const UPDATING_SERVICE = 'CREATING_SERVICE';\r\nexport const DELETING_SERVICE = 'DELETING_SERVICE';\r\n","export const addedSuccessfully = \"Le nouveau service a été ajouté avec succès\";\r\nexport const tryAddAgain = \"Le service n'a pas été ajouté. Une erreur s'est produite, veuillez réessayer.\";\r\n\r\nexport const updatedSuccessfully = \"Le service a été mis à jour avec succès.\";\r\nexport const tryUpdateAgain = \"Une erreur s'est produite. Le service n'a pas été mis à jour.\";\r\n\r\nexport const deletedSuccessfully = \"Le service a été supprimé avec succès.\";\r\nexport const tryDeleteAgain = \"Une erreur s'est produite. Le service n'a pas été supprimé, veuillez réessayer.\";","import * as ActionTypes from '../constants/actiontypes/services';\r\nimport ServiceData from '../constants/models/serviceData';\r\nimport { convertBackEndServiceTypesToFrontEndServiceType } from '../constants/utils/connectionTypes';\r\nimport * as R from 'ramda';\r\nimport * as Loadings from '../constants/loadings/service';\r\nimport * as Text from '../constants/toasterText/services';\r\nimport { toast } from 'react-toastify';\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nconst ServicesReducer = (state = {\r\n isLoading: [],\r\n serviceData: []\r\n}, action) => {\r\n switch (action.type) {\r\n case ActionTypes.FETCH_SERVICES_DATA_SUCCESS:\r\n let mappedServiceData = action.data.map(e => new ServiceData(e));\r\n mappedServiceData.forEach(s => {\r\n let frontendServiceType = convertBackEndServiceTypesToFrontEndServiceType(s.serviceType);\r\n\r\n if (R.isNil(state.serviceData[frontendServiceType])) {\r\n state.serviceData[frontendServiceType] = [s];\r\n } else {\r\n let itemIndex = state.serviceData[frontendServiceType].findIndex(sr => sr.id === s.id);\r\n if (itemIndex !== -1) {\r\n state.serviceData[frontendServiceType].splice(itemIndex, 1);\r\n }\r\n state.serviceData[frontendServiceType].push(s);\r\n }\r\n });\r\n return { ...state };\r\n case ActionTypes.ADD_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.ADD_NEW_SERVICE + action.serviceId)) {\r\n state.isLoading = state.isLoading.concat(Loadings.ADD_NEW_SERVICE + action.serviceId);\r\n }\r\n return { ...state };\r\n case ActionTypes.ADD_SERVICES_DATA_SUCCESS:\r\n let newItem = new ServiceData(action.data);\r\n let newItemFrontEndServiceType = convertBackEndServiceTypesToFrontEndServiceType(newItem.serviceType);\r\n if (R.isNil(state.serviceData[newItemFrontEndServiceType])) {\r\n state.serviceData[newItemFrontEndServiceType] = [];\r\n }\r\n state.serviceData[newItemFrontEndServiceType] = state.serviceData[newItemFrontEndServiceType].concat(newItem);\r\n state.isLoading = state.isLoading.filter(c => c !== Loadings.ADD_NEW_SERVICE + action.serviceId);\r\n toast.success(Text.addedSuccessfully, toastConf);\r\n return { ...state };\r\n case ActionTypes.ADD_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(c => c !== Loadings.ADD_NEW_SERVICE + action.serviceId);\r\n toast.error(Text.tryAddAgain, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + action.id)) {\r\n state.isLoading = state.isLoading.concat(Loadings.UPDATING_SERVICE_DATA + action.id);\r\n }\r\n return { ...state };\r\n case ActionTypes.UPDATE_SERVICES_DATA_SUCCESS:\r\n let updatedItem = new ServiceData(action.data);\r\n let itemToUpdateFrontEndServiceType = convertBackEndServiceTypesToFrontEndServiceType(updatedItem.serviceType);\r\n let itemToUpdateIndex = state.serviceData[itemToUpdateFrontEndServiceType].findIndex(sr => sr.id === updatedItem.id);\r\n state.serviceData[itemToUpdateFrontEndServiceType][itemToUpdateIndex] = updatedItem;\r\n state.isLoading = state.isLoading.filter(c => c !== Loadings.UPDATING_SERVICE_DATA + action.id);\r\n toast.success(Text.updatedSuccessfully, toastConf);\r\n return { ...state };\r\n case ActionTypes.UPDATE_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(c => c !== Loadings.UPDATING_SERVICE_DATA + action.id);\r\n toast.error(Text.tryUpdateAgain, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_SERVICES_DATA_SUCCESS:\r\n let serviceDataToDeleteIndex = state.serviceData[action.connectionType].findIndex(s => s.id === action.id);\r\n if (serviceDataToDeleteIndex > -1) {\r\n state.serviceData[action.connectionType].splice(serviceDataToDeleteIndex, 1);\r\n }\r\n toast.success(Text.deletedSuccessfully, toastConf);\r\n return { ...state };\r\n case ActionTypes.DELETE_SERVICES_DATA_FAILURE:\r\n toast.error(Text.tryDeleteAgain, toastConf);\r\n return { ...state };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\nexport default ServicesReducer;","export const FETCH_USERREPRESENTATIVE_REQUEST = 'FETCH_USERREPRESENTATIVE_REQUEST';\r\nexport const FETCH_USERREPRESENTATIVE_SUCCESS = 'FETCH_USERREPRESENTATIVE_SUCCESS';\r\nexport const FETCH_USERREPRESENTATIVE_FAILURE = 'FETCH_USERREPRESENTATIVE_FAILURE';\r\n\r\nexport const UPDATE_USERREPRESENTATIVE_REQUEST = 'UPDATE_USERREPRESENTATIVE_REQUEST';\r\nexport const UPDATE_USERREPRESENTATIVE_SUCCESS = 'UPDATE_USERREPRESENTATIVE_SUCCESS';\r\nexport const UPDATE_USERREPRESENTATIVE_FAILURE = 'UPDATE_USERREPRESENTATIVE_FAILURE';\r\n\r\nexport const AUTHENTICATE_REQUEST = 'AUTHENTICATE_REQUEST';\r\nexport const AUTHENTICATE_SUCCESS = 'AUTHENTICATE_SUCCESS';\r\nexport const AUTHENTICATE_FAILURE = 'AUTHENTICATE_FAILURE';\r\n\r\nexport const LINK_REQUEST = 'LINK_REQUEST';\r\nexport const LINK_SUCCESS = 'LINK_SUCCESS';\r\nexport const LINK_FAILURE = 'LINK_FAILURE';\r\n","export const FETCHING_USERREPRESENTATIVE = 'FETCHING_USERREPRESENTATIVE';\r\nexport const UPDATING_USERREPRESENTATIVE = 'UPDATING_USERREPRESENTATIVE';\r\nexport const AUTHENTICATING_USERREPRESENTATIVE = 'AUTHENTICATING_USERREPRESENTATIVE';\r\nexport const LINKING_USERREPRESENTATIVE = 'LINKING_USERREPRESENTATIVE';\r\n\r\n","import * as ActionTypes from '../constants/actiontypes/referent';\r\nimport ReferentSelfcare from '../constants/models/referentSelfcare';\r\nimport ReferentAuth from '../constants/models/referentAuth';\r\nimport * as Loadings from '../constants/loadings/referent';\r\nimport * as R from 'ramda';\r\nimport * as Text from '../constants/toasterText/user';\r\nimport * as axios from 'axios';\r\nimport { toast } from 'react-toastify';\r\n\r\nconst toastConf = {position: toast.POSITION.TOP_RIGHT, autoClose:3000};\r\n\r\nconst ReferentReducer = (state = {\r\n isLoading: [],\r\n user: undefined\r\n \r\n}, action) => {\r\n switch(action.type){\r\n \r\n case ActionTypes.FETCH_USERREPRESENTATIVE_REQUEST:\r\n state.signupStep4Success = false;\r\n if (!state.isLoading.includes(Loadings.FETCHING_USERREPRESENTATIVE)) {\r\n state.isLoading = state.isLoading.concat(Loadings.FETCHING_USERREPRESENTATIVE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USERREPRESENTATIVE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_USERREPRESENTATIVE);\r\n state.user = new ReferentSelfcare(action.data); \r\n return { ...state };\r\n\r\n\r\n case ActionTypes.UPDATE_USERREPRESENTATIVE_REQUEST:\r\n state.signupStep4Success = false;\r\n if (!state.isLoading.includes(Loadings.UPDATING_USERREPRESENTATIVE)) {\r\n state.isLoading = state.isLoading.concat(Loadings.UPDATING_USERREPRESENTATIVE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USERREPRESENTATIVE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.UPDATING_USERREPRESENTATIVE);\r\n state.user = new ReferentSelfcare(action.data); \r\n return { ...state };\r\n\r\n\r\n case ActionTypes.AUTHENTICATE_REQUEST:\r\n state.signupStep4Success = false;\r\n if (!state.isLoading.includes(Loadings.AUTHENTICATING_USERREPRESENTATIVE)) {\r\n state.isLoading = state.isLoading.concat(Loadings.AUTHENTICATING_USERREPRESENTATIVE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.AUTHENTICATE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.AUTHENTICATING_USERREPRESENTATIVE);\r\n let referentAuth = new ReferentAuth(action.data);\r\n sessionStorage.setItem(\"access_token\", referentAuth.jwtToken);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + referentAuth.jwtToken; \r\n return { ...state };\r\n\r\n case ActionTypes.AUTHENTICATE_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.AUTHENTICATING_USERREPRESENTATIVE);\r\n return { ...state };\r\n\r\n case ActionTypes.LINK_REQUEST:\r\n if (!state.isLoading.includes(Loadings.LINKING_USERREPRESENTATIVE)) {\r\n state.isLoading = state.isLoading.concat(Loadings.LINKING_USERREPRESENTATIVE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.LINK_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.LINKING_USERREPRESENTATIVE);\r\n let referentAuthLink = new ReferentAuth(action.data);\r\n sessionStorage.removeItem(\"access_token\");\r\n sessionStorage.setItem(\"access_token\", referentAuthLink.jwtToken);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + referentAuthLink.jwtToken; \r\n return { ...state };\r\n\r\n case ActionTypes.LINK_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.LINKING_USERREPRESENTATIVE);\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\nexport default ReferentReducer;","import * as ActionTypes from '../../constants/actiontypes/user';\r\nimport * as AuthActionTypes from '../../constants/actiontypes/auth';\r\nimport RepresentingUser from '../../constants/models/facilita/representingUser';\r\nimport * as Loadings from '../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport * as Text from '../../constants/toasterText/user';\r\nimport * as axios from 'axios';\r\nimport { toast } from 'react-toastify';\r\nimport User from '../../constants/models/user';\r\nimport ReferentAuth from '../../constants/models/referentAuth';\r\nimport { StaticRouter } from 'react-router';\r\nimport CardPaymentMethod from '../../constants/models/cardPaymentMethod';\r\nimport SepaPaymentMethod from '../../constants/models/sepaPaymentMethod';\r\n\r\nconst toastConf = {position: toast.POSITION.TOP_RIGHT, autoClose:3000};\r\n\r\nconst FacilitaReducer = (state = {\r\n isLoading: [],\r\n user: undefined,\r\n profilePicture: undefined,\r\n representing: []\r\n \r\n}, action) => {\r\n switch(action.type){\r\n \r\n case ActionTypes.FETCH_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCH_USER)){\r\n state.isLoading.push(Loadings.FETCH_USER);\r\n }\r\n return { ...state };\r\n case ActionTypes.FETCH_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n state.user = new User(action.data);\r\n \r\n return { ...state };\r\n case ActionTypes.FETCH_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n return { ...state };\r\n\r\n case ActionTypes.GET_PROFILEPIC_SUCCESS:\r\n state.profilePicture = action.data;\r\n return { ...state}\r\n case ActionTypes.DELETE_PROFILEPIC_SUCCESS:\r\n state.profilePicture = undefined;\r\n return { ...state }\r\n case ActionTypes.UPLOAD_PROFILEPIC_SUCCESS:\r\n state.profilePicture = action.data;\r\n return { ...state }\r\n \r\n case ActionTypes.FETCH_USERREPRESENTING_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCH_USER)){\r\n state.isLoading.push(Loadings.FETCH_USER);\r\n }\r\n return { ...state };\r\n case ActionTypes.FETCH_USERREPRESENTING_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n\r\n if (action.data.length > 0) {\r\n \r\n state.representing = action.data.map(m => new RepresentingUser(m));\r\n } \r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_USERREPRESENTING_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n return { ...state };\r\n\r\n case ActionTypes.AUTHENTICATE_FACILITA_REQUEST:\r\n state.signupStep4Success = false;\r\n if (!state.isLoading.includes(Loadings.AUTHENTICATING_USERREPRESENTING)) {\r\n state.isLoading = state.isLoading.concat(Loadings.AUTHENTICATING_USERREPRESENTING);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.AUTHENTICATE_FACILITA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.AUTHENTICATING_USERREPRESENTING);\r\n let referentAuth = new ReferentAuth(action.data);\r\n sessionStorage.setItem(\"access_token\", referentAuth.jwtToken);\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + referentAuth.jwtToken; \r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER_ADDRESSES)){\r\n state.isLoading.push(Loadings.FETCHING_USER_ADDRESSES);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_USER_ADDRESS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_ADDRESSES);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_ADDRESS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_ADDRESSES);\r\n if(!R.isNil(state.user)){\r\n state.user.addresses = action.addresses;\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_USER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER_ADDRESS)){\r\n state.isLoading.push(Loadings.UPDATING_USER_ADDRESS);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_USER_ADDRESS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_ADDRESS);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_ADDRESS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_ADDRESS);\r\n if(!R.isNil(state.user) && !R.isNil(state.user.addresses)){\r\n state.user.addresses = state.user.addresses.map((address) => {\r\n if(address.id !== action.address.id){\r\n return address;\r\n }else{\r\n return {...action.address}\r\n }\r\n })\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATE_USER)){\r\n state.isLoading.push(Loadings.UPDATE_USER);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATE_USER);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATE_USER);\r\n state.user = {...action.user, addresses: state.user.addresses};\r\n return { ...state };\r\n\r\n case AuthActionTypes.SEND_OTP_CODE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.SENDING_OTP)){\r\n state.isLoading.push(Loadings.SENDING_OTP);\r\n }\r\n return { ...state };\r\n\r\n case AuthActionTypes.SEND_OTP_CODE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.SENDING_OTP);\r\n return { ...state };\r\n\r\n case AuthActionTypes.SEND_OTP_CODE_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.SENDING_OTP);\r\n return { ...state };\r\n\r\n case AuthActionTypes.VERIFY_OTP_REQUEST:\r\n if (!state.isLoading.includes(Loadings.VALIDATING_OTP)){\r\n state.isLoading.push(Loadings.VALIDATING_OTP);\r\n }\r\n return { ...state };\r\n\r\n case AuthActionTypes.VERIFY_OTP_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.VALIDATING_OTP);\r\n state.user = {...state.user, phoneNumber: action.phoneNumber}\r\n return { ...state };\r\n\r\n case AuthActionTypes.VERIFY_OTP_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.VALIDATING_OTP);\r\n return { ...state };\r\n \r\n case ActionTypes.GET_BILLINGCUSTOMERID_REQUEST:\r\n if (!state.isLoading.includes(Loadings.GETTING_BILLINGCUSTOMERID)){\r\n state.isLoading.push(Loadings.GETTING_BILLINGCUSTOMERID);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.GET_BILLINGCUSTOMERID_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.GETTING_BILLINGCUSTOMERID);\r\n return { ...state };\r\n\r\n case ActionTypes.GET_BILLINGCUSTOMERID_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.GETTING_BILLINGCUSTOMERID);\r\n state.user = {...state.user, addresses: {...state.user.addresses}, stripeCustomerId: action.data};\r\n return { ...state };\r\n \r\n case ActionTypes.ADD_PAYMENTMETHOD_SUCCESS:\r\n for(let i = 0; i < state.user.paymentMethods.length; i++){\r\n state.user.paymentMethods[i].isDefault = false;\r\n }\r\n if(action.data.type === \"Card\"){\r\n state.user.paymentMethods = state.user.paymentMethods.concat(new CardPaymentMethod(action.data));\r\n }else if(action.data.type === \"Sepa\"){\r\n state.user.paymentMethods = state.user.paymentMethods.concat(new SepaPaymentMethod(action.data));\r\n }\r\n state.isLoading = state.isLoading.filter(c => c !== Loadings.ADDING_PAYMENTMETHOD)\r\n return {...state}\r\n\r\n case ActionTypes.ADD_PAYMENTMETHOD_REQUEST:\r\n if (!state.isLoading.includes(Loadings.ADDING_PAYMENTMETHOD)){\r\n state.isLoading = state.isLoading.concat(Loadings.ADDING_PAYMENTMETHOD);\r\n }\r\n return { ...state }; \r\n default:\r\n return state;\r\n }\r\n}\r\nexport default FacilitaReducer;","export const FETCH_USER_LETTERS_TO_PRINT_REQUEST = 'FETCH_USER_LETTERS_TO_PRINT_REQUEST';\r\nexport const FETCH_USER_LETTERS_TO_PRINT_SUCCESS = 'FETCH_USER_LETTERS_TO_PRINT_SUCCESS';\r\nexport const FETCH_USER_LETTERS_TO_PRINT_FAILURE = 'FETCH_USER_LETTERS_TO_PRINT_FAILURE';\r\n\r\n","export const FETCHING_USER_LETTERS = 'FETCHING_USER_LETTERS';","import letterHistory from './letterHistory';\r\nimport * as R from 'ramda';\r\n\r\nexport default function Letter(data){\r\n let letter = data || {};\r\n this.id = letter.id;\r\n this.contentUrl = letter.contentUrl;\r\n this.letterProgressStage = letter.letterProgressStage;\r\n this.sendingLimitDate = letter.sendingLimitDate;\r\n this.sentDate = letter.sentDate;\r\n this.optionalData = letter.optionalData;\r\n this.postClientSendingId = letter.postClientSendingId;\r\n this.postId = letter.postId;\r\n this.userId = letter.userId;\r\n this.writtingUserId = letter.writtingUserId;\r\n this.letterId = letter.letterId;\r\n this.userServiceId = letter.userServiceId;\r\n this.letterHistory = R.isNil(letter.letterHistory) ? [] : letter.letterHistory.map(c => new letterHistory(c));\r\n}","import * as ImpressionActionTypes from '../../constants/actiontypes/backoffice/impression';\r\nimport * as ImpressionLoadings from '../../constants/loadings/backoffice/impression';\r\nimport Letter from '../../constants/models/facilita/letter';\r\nimport * as R from 'ramda';\r\n\r\n\r\nconst ImpressionReducer = (state = {\r\n isLoading: [],\r\n userLetters: [],\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0\r\n}, action) => {\r\n switch(action.type){\r\n\r\n case ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_REQUEST:\r\n if (!state.isLoading.includes(ImpressionLoadings.FETCHING_USER_LETTERS)) {\r\n state.isLoading = state.isLoading.concat(ImpressionLoadings.FETCHING_USER_LETTERS);\r\n }\r\n return { ...state };\r\n\r\n case ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== ImpressionLoadings.FETCHING_USER_LETTERS);\r\n state.userLetters = action.data.items.map(l => new Letter(l));\r\n return { ...state,\r\n isLoading: state.isLoading.filter(l => l !== ImpressionLoadings.FETCHING_USER_LETTERS),\r\n userLetters: action.data.items.map(l => new Letter(l)),\r\n totalPages: action.data.totalPages,\r\n totalRecords: action.data.totalRecords,\r\n currentPage: action.data.pageNumber + 1\r\n };\r\n\r\n\r\n case ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== ImpressionLoadings.FETCHING_USER_LETTERS);\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\nexport default ImpressionReducer;","export const FETCH_PARTNERS_REQUEST = 'FETCH_PARTNERS_REQUEST';\r\nexport const FETCH_PARTNERS_SUCCESS = 'FETCH_PARTNERS_SUCCESS';\r\nexport const FETCH_PARTNERS_FAILURE = 'FETCH_PARTNERS_FAILURE';\r\n\r\nexport const FETCH_PARTNER_REQUEST = 'FETCH_PARTNER_REQUEST';\r\nexport const FETCH_PARTNER_SUCCESS = 'FETCH_PARTNER_SUCCESS';\r\nexport const FETCH_PARTNER_FAILURE = 'FETCH_PARTNER_FAILURE';\r\n\r\nexport const CREATE_PARTNER_REQUEST = 'CREATE_PARTNER_REQUEST';\r\nexport const CREATE_PARTNER_SUCCESS = 'CREATE_PARTNER_SUCCESS';\r\nexport const CREATE_PARTNER_FAILURE = 'CREATE_PARTNER_FAILURE';\r\n\r\nexport const UPDATE_PARTNER_REQUEST = 'UPDATE_PARTNER_REQUEST';\r\nexport const UPDATE_PARTNER_SUCCESS = 'UPDATE_PARTNER_SUCCESS';\r\nexport const UPDATE_PARTNER_FAILURE = 'UPDATE_PARTNER_FAILURE';\r\n\r\nexport const DELETE_PARTNER_REQUEST = 'DELETE_PARTNER_REQUEST';\r\nexport const DELETE_PARTNER_SUCCESS = 'DELETE_PARTNER_SUCCESS';\r\nexport const DELETE_PARTNER_FAILURE = 'DELETE_PARTNER_FAILURE';\r\n\r\nexport const FETCH_ETABLISSEMENTS_REQUEST = 'FETCH_ETABLISSEMENTS_REQUEST';\r\nexport const FETCH_ETABLISSEMENTS_SUCCESS = 'FETCH_ETABLISSEMENTS_SUCCESS';\r\nexport const FETCH_ETABLISSEMENTS_FAILURE = 'FETCH_ETABLISSEMENTS_FAILURE';\r\n\r\nexport const CREATE_ETABLISSEMENT_REQUEST = 'CREATE_ETABLISSEMENT_REQUEST';\r\nexport const CREATE_ETABLISSEMENT_SUCCESS = 'CREATE_ETABLISSEMENT_SUCCESS';\r\nexport const CREATE_ETABLISSEMENT_FAILURE = 'CREATE_ETABLISSEMENT_FAILURE';\r\n\r\nexport const UPDATE_ETABLISSEMENT_REQUEST = 'UPDATE_ETABLISSEMENT_REQUEST';\r\nexport const UPDATE_ETABLISSEMENT_SUCCESS = 'UPDATE_ETABLISSEMENT_SUCCESS';\r\nexport const UPDATE_ETABLISSEMENT_FAILURE = 'UPDATE_ETABLISSEMENT_FAILURE';\r\n\r\nexport const DELETE_ETABLISSEMENT_REQUEST = 'DELETE_ETABLISSEMENT_REQUEST';\r\nexport const DELETE_ETABLISSEMENT_SUCCESS = 'DELETE_ETABLISSEMENT_SUCCESS';\r\nexport const DELETE_ETABLISSEMENT_FAILURE = 'DELETE_ETABLISSEMENT_FAILURE';\r\n\r\nexport const FETCH_USERS_REQUEST = 'FETCH_USERS_REQUEST';\r\nexport const FETCH_USERS_SUCCESS = 'FETCH_USERS_SUCCESS';\r\nexport const FETCH_USERS_FAILURE = 'FETCH_USERS_FAILURE';\r\n\r\nexport const CREATE_USER_REQUEST = 'CREATE_USER_REQUEST';\r\nexport const CREATE_USER_SUCCESS = 'CREATE_USER_SUCCESS';\r\nexport const CREATE_USER_FAILURE = 'CREATE_USER_FAILURE';\r\n\r\nexport const UPDATE_USERPARTNER_REQUEST = 'UPDATE_USERPARTNER_REQUEST';\r\nexport const UPDATE_USERPARTNER_SUCCESS = 'UPDATE_USERPARTNER_SUCCESS';\r\nexport const UPDATE_USERPARTNER_FAILURE = 'UPDATE_USERPARTNER_FAILURE';\r\n\r\nexport const DELETE_USER_REQUEST = 'DELETE_USER_REQUEST';\r\nexport const DELETE_USER_SUCCESS = 'DELETE_USER_SUCCESS';\r\nexport const DELETE_USER_FAILURE = 'DELETE_USER_FAILURE';\r\n\r\nexport const SEND_USER_ACTIVATION_REQUEST = 'SEND_USER_ACTIVATION_REQUEST';\r\nexport const SEND_USER_ACTIVATION_SUCCESS = 'SEND_USER_ACTIVATION_SUCCESS';\r\nexport const SEND_USER_ACTIVATION_FAILURE = 'SEND_USER_ACTIVATION_FAILURE';\r\n\r\nexport const UPLOAD_LOGO_REQUEST = 'UPLOAD_LOGO_REQUEST';\r\nexport const UPLOAD_LOGO_SUCCESS = 'UPLOAD_LOGO_SUCCESS';\r\nexport const UPLOAD_LOGO_FAILURE = 'UPLOAD_LOGO_FAILURE';\r\n\r\n\r\n","export const FETCHING_PARTNERS = 'FETCHING_PARTNERS';\r\nexport const FETCHING_PARTNER = 'FETCHING_PARTNER';\r\nexport const CREATING_PARTNER = 'CREATING_PARTNER';\r\nexport const UPDATING_PARTNER = 'UPDATING_PARTNER';\r\nexport const DELETING_PARTNER = 'DELETING_PARTNERS';\r\nexport const FETCHING_ETABLISSEMENTS = 'FETCHING_ETABLISSEMENTS';\r\nexport const CREATING_ETABLISSEMENT = 'CREATING_ETABLISSEMENT';\r\nexport const UPDATING_ETABLISSEMENT = 'UPDATING_ETABLISSEMENT';\r\nexport const DELETING_ETABLISSEMENT = 'DELETING_ETABLISSEMENT';\r\nexport const FETCHING_USERS = 'FETCHING_USERS';\r\nexport const CREATING_USER = 'CREATING_USER';\r\nexport const UPDATING_USER = 'UPDATING_USER';\r\nexport const DELETING_USER = 'DELETING_USER';\r\nexport const SENDING_USER_ACTIVATION = 'SENDING_USER_ACTIVATION';\r\nexport const UPLOADING_LOGO = 'UPLOADING_LOGO';","import * as R from 'ramda';\r\nimport Address from './../address';\r\n\r\nexport default function Partner(data) {\r\n let partner = data || {};\r\n this.id = partner.id;\r\n this.name = R.isNil(partner.name) ? \"\" : partner.name;\r\n this.email = R.isNil(partner.email) ? \"\" : partner.email;\r\n \r\n this.partnerInitialReduction = R.isNil(partner.partnerInitialReduction) ? 0 : partner.partnerInitialReduction;\r\n this.partnerInitialPercentage = R.isNil(partner.partnerInitialPercentage) ? 0 : partner.partnerInitialPercentage;\r\n this.partnerRecurentReduction = R.isNil(partner.partnerRecurentReduction) ? 0 : partner.partnerRecurentReduction;\r\n this.partnerRecurentPercentage = R.isNil(partner.partnerRecurentPercentage) ? 0 : partner.partnerRecurentPercentage;\r\n this.plateformInitialReduction = R.isNil(partner.plateformInitialReduction) ? 0 : partner.plateformInitialReduction;\r\n this.plateformInitialPercentage = R.isNil(partner.plateformInitialPercentage) ? 0 : partner.plateformInitialPercentage;\r\n this.plateformRecurentReduction = R.isNil(partner.plateformRecurentReduction) ? 0 : partner.plateformRecurentReduction;\r\n this.plateformRecurentPercentage = R.isNil(partner.plateformRecurentPercentage) ? 0 : partner.plateformRecurentPercentage;\r\n this.setupFee = R.isNil(partner.setupFee) ? 0 : partner.setupFee;\r\n this.personalization = R.isNil(partner.personalization) ? false : partner.personalization;\r\n this.billingFrequencyInMonths = R.isNil(partner.billingFrequencyInMonths) ? 0 : partner.billingFrequencyInMonths;\r\n this.color = R.isNil(partner.color) ? \"\" : partner.color;\r\n\r\n this.numberOfDossiers = R.isNil(partner.numberOfDossiers) ? 0 : partner.numberOfDossiers;\r\n\r\n this.isEnabled = R.isNil(partner.isEnabled) ? true : partner.isEnabled;\r\n this.fullyQualifiedName = R.isNil(partner.fullyQualifiedName) ? \"\" : partner.fullyQualifiedName;\r\n this.vatNumber = R.isNil(partner.vatNumber) ? \"\" : partner.vatNumber;\r\n this.siret = R.isNil(partner.siret) ? \"\" : partner.siret;\r\n this.addressDataTransferObject = new Address(partner.addressDataTransferObject);\r\n this.hasLogo = R.isNil(partner.hasLogo) ? false : partner.hasLogo;\r\n}","import {toast} from 'react-toastify';\r\nexport default {position: toast.POSITION.TOP_RIGHT, autoClose:3000};","export const activationEmailSendingError = \"Une erreur s'est produite. L'invitation n'a pas été envoyée.\";\r\nexport const activationEmailSendingSuccess = \"L'invitation n'a pas été envoyée avec succès.\";\r\nexport const etablissementCreationConflict = \"Il y a déjà un établissement avec ce numéro de SIRET.\";","import * as PartnersActionTypes from '../../constants/actiontypes/backoffice/partners';\r\nimport * as PartnersLoadings from '../../constants/loadings/backoffice/partners';\r\nimport Partner from '../../constants/models/backoffice/partner';\r\n\r\n\r\nimport User from '../../constants/models/user';\r\nimport * as R from 'ramda';\r\nimport { toast } from 'react-toastify';\r\nimport toastConf from '../../utils/toasterConfiguration';\r\n\r\nimport * as ToasterText from '../../constants/toasterText/backofficePartners';\r\n\r\n\r\n\r\nconst PartnersReducer = (state = {\r\n isLoading: [],\r\n partners: undefined,\r\n partner: undefined,\r\n resetPasswordPhoneNumber: false,\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n usersPagination: {\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n },\r\n etablissementsPagination: {\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n }\r\n\r\n}, action) => {\r\n switch (action.type) {\r\n case PartnersActionTypes.FETCH_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.FETCHING_PARTNER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.FETCHING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.FETCH_PARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_PARTNER);\r\n state.partner = new Partner(action.data);\r\n return { ...state };\r\n\r\n\r\n case PartnersActionTypes.FETCH_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_PARTNER);\r\n return { ...state };\r\n\r\n //#region Partners\r\n case PartnersActionTypes.FETCH_PARTNERS_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.FETCHING_PARTNERS)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.FETCHING_PARTNERS);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.FETCH_PARTNERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_PARTNERS);\r\n state.partners = action.data.items.map(l => new Partner(l));\r\n\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n\r\n case PartnersActionTypes.FETCH_PARTNERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_PARTNERS);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.CREATING_PARTNER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.CREATING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_PARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_PARTNER);\r\n state.partners = [...state.partners, new Partner(action.data)];\r\n return { ...state };\r\n\r\n\r\n case PartnersActionTypes.CREATE_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_PARTNER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.UPDATING_PARTNER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.UPDATING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_PARTNER_SUCCESS:\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // const newPartner = new Partner(action.data);\r\n // newPartner.users = partner.users;\r\n // newPartner.etablissements = partner.etablissements;\r\n // return newPartner;\r\n // }\r\n // });\r\n\r\n const newPartner = new Partner(action.data);\r\n newPartner.etablissements = state.partner.etablissements;\r\n newPartner.users = state.partner.users;\r\n state.partner = newPartner;\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_PARTNER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_PARTNER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.DELETING_USER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.DELETING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_PARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_PARTNER);\r\n state.partners = state.partners.filter(u => u.id !== action.partnerId);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_PARTNER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPLOAD_LOGO_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.UPLOADING_LOGO)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.UPLOADING_LOGO);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPLOAD_LOGO_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPLOADING_LOGO);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return { ...partner, hasLogo: true };\r\n // }\r\n // });\r\n state.partner = { ...state.partner, hasLogo: true };\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPLOAD_LOGO_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPLOADING_LOGO);\r\n return { ...state };\r\n\r\n //#endregion\r\n\r\n //#region Etablissements\r\n case PartnersActionTypes.FETCH_ETABLISSEMENTS_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.FETCHING_ETABLISSEMENTS)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.FETCHING_ETABLISSEMENTS);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.FETCH_ETABLISSEMENTS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_ETABLISSEMENTS);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // etablissements: action.data.items\r\n // };\r\n // }\r\n // });\r\n state.partner.etablissements = action.data.items;\r\n state.etablissementsPagination = {\r\n totalPages: action.data.totalPages,\r\n totalRecords: action.data.totalRecords,\r\n currentPage: action.data.pageNumber + 1,\r\n };\r\n // state.etablissementsPagination.totalPages = action.data.totalPages\r\n // state.etablissementsPagination.totalRecords = action.data.totalRecords\r\n // state.etablissementsPagination.currentPage = action.data.pageNumber + 1\r\n\r\n return { ...state };\r\n\r\n\r\n case PartnersActionTypes.FETCH_ETABLISSEMENTS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_ETABLISSEMENTS);\r\n return { ...state };\r\n\r\n\r\n\r\n case PartnersActionTypes.CREATE_ETABLISSEMENT_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.CREATING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.CREATING_ETABLISSEMENT);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_ETABLISSEMENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_ETABLISSEMENT);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // etablissements: [...partner.etablissements, action.data]\r\n // };\r\n // }\r\n // });\r\n state.partner.etablissements = [...state.partner.etablissements, action.data];\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_ETABLISSEMENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_ETABLISSEMENT);\r\n if(action.error.status === 409){\r\n toast.error(ToasterText.etablissementCreationConflict, toastConf);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_ETABLISSEMENT_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.UPDATING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.UPDATING_ETABLISSEMENT);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_ETABLISSEMENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_ETABLISSEMENT);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // etablissements: partner.etablissements.map((etablissement) => {\r\n // if (etablissement.id === action.data.id) {\r\n // return { ...action.data };\r\n // } else {\r\n // return etablissement;\r\n // }\r\n // })\r\n // };\r\n // }\r\n // });\r\n state.partner.etablissements = state.partner.etablissements.map((etablissement) => {\r\n if (etablissement.id === action.data.id) {\r\n return { ...action.data };\r\n } else {\r\n return etablissement;\r\n }\r\n });\r\n\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_ETABLISSEMENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_ETABLISSEMENT);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_ETABLISSEMENT_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.DELETING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.DELETING_ETABLISSEMENT);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_ETABLISSEMENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_ETABLISSEMENT);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // etablissements: partner.etablissements.filter(u => u.id !== action.etablissementId)\r\n // };\r\n // }\r\n // });\r\n state.partner.etablissements = state.partner.etablissements.filter(u => u.id !== action.etablissementId);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_ETABLISSEMENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_ETABLISSEMENT);\r\n return { ...state };\r\n //#endregion\r\n\r\n //#region Users\r\n case PartnersActionTypes.FETCH_USERS_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.FETCHING_USERS)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.FETCHING_USERS);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.FETCH_USERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_USERS);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // users: action.data.items.length > 0 ? action.data.items.map(u => new User(u)) : [],\r\n // };\r\n // }\r\n // });\r\n state.partner.users = action.data.items.length > 0 ? action.data.items.map(u => new User(u)) : [];\r\n state.usersPagination = {\r\n totalPages: action.data.totalPages,\r\n totalRecords: action.data.totalRecords,\r\n currentPage: action.data.pageNumber + 1,\r\n };\r\n return { ...state };\r\n\r\n\r\n case PartnersActionTypes.FETCH_USERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.FETCHING_USERS);\r\n return { ...state };\r\n\r\n\r\n\r\n case PartnersActionTypes.CREATE_USER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.CREATING_USER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.CREATING_USER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_USER);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // users: [...partner.users, new User(action.data)]\r\n // };\r\n // }\r\n // });\r\n state.partner.users = [...state.partner.users, new User(action.data)];\r\n return { ...state };\r\n\r\n case PartnersActionTypes.CREATE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.CREATING_USER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_USERPARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.UPDATING_USER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.UPDATING_USER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_USERPARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_USER);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // users: partner.users.map((user) => {\r\n // if (user.id === action.data.id) {\r\n // return new User(action.data);\r\n // } else {\r\n // return user;\r\n // }\r\n // })\r\n // };\r\n // }\r\n // });\r\n state.partner.users = state.partner.users.map((user) => {\r\n if (user.id === action.data.id) {\r\n return new User(action.data);\r\n } else {\r\n return user;\r\n }\r\n });\r\n return { ...state };\r\n\r\n case PartnersActionTypes.UPDATE_USERPARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.UPDATING_USER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_USER_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.DELETING_USER)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.DELETING_USER);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_USER);\r\n // state.partners = state.partners.map((partner) => {\r\n // if (partner.id !== action.partnerId) {\r\n // return partner;\r\n // } else {\r\n // return {\r\n // ...partner,\r\n // users: partner.users.filter(u => u.id !== action.userId)\r\n // };\r\n // }\r\n // });\r\n state.partner.users = state.partner.users.filter(u => u.id !== action.userId);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.DELETE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.DELETING_USER);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.SEND_USER_ACTIVATION_REQUEST:\r\n if (!state.isLoading.includes(PartnersLoadings.SENDING_USER_ACTIVATION)) {\r\n state.isLoading = state.isLoading.concat(PartnersLoadings.SENDING_USER_ACTIVATION);\r\n }\r\n return { ...state };\r\n\r\n case PartnersActionTypes.SEND_USER_ACTIVATION_SUCCESS:\r\n toast.success(ToasterText.activationEmailSendingSuccess, toastConf);\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.SENDING_USER_ACTIVATION);\r\n return { ...state };\r\n\r\n case PartnersActionTypes.SEND_USER_ACTIVATION_FAILURE:\r\n toast.error(ToasterText.activationEmailSendingError, toastConf);\r\n state.isLoading = state.isLoading.filter(l => l !== PartnersLoadings.SENDING_USER_ACTIVATION);\r\n return { ...state };\r\n\r\n //#endregion\r\n\r\n\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default PartnersReducer;\r\n//toast.success(Text.dataUpdatedSuccess, toastConf);","export const FETCH_USERS_DOSSIERS_REQUEST = 'FETCH_USERS_DOSSIERS_REQUEST';\r\nexport const FETCH_USERS_DOSSIERS_SUCCESS = 'FETCH_USERS_DOSSIERS_SUCCESS';\r\nexport const FETCH_USERS_DOSSIERS_FAILURE = 'FETCH_USERS_DOSSIERS_FAILURE';\r\n\r\n\r\nexport const FETCH_PARTNERS_DOSSIERS_REQUEST = 'FETCH_PARTNERS_DOSSIERS_REQUEST';\r\nexport const FETCH_PARTNERS_DOSSIERS_SUCCESS = 'FETCH_PARTNERS_DOSSIERS_SUCCESS';\r\nexport const FETCH_PARTNERS_DOSSIERS_FAILURE = 'FETCH_PARTNERS_DOSSIERS_FAILURE';\r\n\r\nexport const SET_DOSSIER_FILTER = 'SET_DOSSIER_FILTER';\r\n\r\n\r\n","export const FETCHING_USERS_DOSSIERS = 'FETCHING_USERS_DOSSIERS';\r\nexport const FETCHING_PARTNERS_DOSSIERS = 'FETCHING_PARTNERS_DOSSIERS';","import * as ActionTypes from '../../constants/actiontypes/backoffice/dossiers';\r\nimport * as Loadings from '../../constants/loadings/backoffice/dossiers';\r\nimport * as R from 'ramda';\r\nimport User from '../../constants/models/user';\r\nimport BackofficeUser from '../../constants/models/backofficeUser';\r\nimport Partner from '../../constants/models/backoffice/partner';\r\n\r\n\r\nconst DossiersReducer = (state = {\r\n isLoading: [],\r\n dossiers: undefined,\r\n partners: undefined,\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n globalFilters: {\r\n status: undefined,\r\n partner: {\r\n id: undefined,\r\n name: undefined\r\n },\r\n order: {\r\n column: \"lastName\",\r\n asc: false\r\n },\r\n search: \"\"\r\n }\r\n\r\n}, action) => {\r\n switch (action.type) {\r\n\r\n case ActionTypes.FETCH_USERS_DOSSIERS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USERS_DOSSIERS)) {\r\n state.isLoading = state.isLoading.concat(Loadings.FETCHING_USERS_DOSSIERS);\r\n }\r\n\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USERS_DOSSIERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_USERS_DOSSIERS);\r\n // if ((action.data.pageNumber + 1) === action.data.totalPages) {\r\n // state.nextPage = false;\r\n // } else {\r\n // state.nextPage = true;\r\n\r\n // }\r\n\r\n if (state.dossiers) {\r\n const moreDossiers = action.data.items.map(user => new BackofficeUser(user));\r\n state.dossiers = [...moreDossiers];\r\n } else {\r\n\r\n state.dossiers = action.data.items.map(user => new BackofficeUser(user));\r\n }\r\n\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n\r\n case ActionTypes.FETCH_USERS_DOSSIERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_USERS_DOSSIERS);\r\n return { ...state };\r\n\r\n\r\n //#region Partner \r\n case ActionTypes.FETCH_PARTNERS_DOSSIERS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_PARTNERS_DOSSIERS)) {\r\n state.isLoading = state.isLoading.concat(Loadings.FETCHING_PARTNERS_DOSSIERS);\r\n }\r\n\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_PARTNERS_DOSSIERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_PARTNERS_DOSSIERS);\r\n\r\n state.partners = action.data.map(partner => new Partner(partner));\r\n\r\n return { ...state };\r\n //#endregion\r\n\r\n case ActionTypes.FETCH_PARTNERS_DOSSIERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_PARTNERS_DOSSIERS);\r\n return { ...state };\r\n\r\n case ActionTypes.SET_DOSSIER_FILTER:\r\n const newState = { ...state.globalFilters, ...action.data };\r\n state.globalFilters = newState;\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default DossiersReducer;","export const FETCHING_CLIENTS = 'FETCHING_CLIENTS';","export const clientDeleteSuccess = \"Utilisateur supprimé avec succès\";\r\nexport const clientDeleteFailed = \"Échec de la suppression de l'utilisateur\";\r\n\r\nexport const emailPasswordRecoveredSucess = \"E-mail de récupération envoyé avec succès\";\r\nexport const emailPasswordRecoveredFailed = \"Échec de l'envoi de l'e-mail de récupération\";\r\n","import { toast } from 'react-toastify';\r\nimport * as ActionTypes from '../../constants/actiontypes/backoffice/clients';\r\nimport * as ActionTypesAuth from '../../constants/actiontypes/auth';\r\nimport * as ActionTypesUser from '../../constants/actiontypes/user';\r\nimport * as Loadings from '../../constants/loadings/backoffice/clients';\r\nimport * as LoadingsUser from '../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport User from '../../constants/models/user';\r\nimport BackofficeUser from '../../constants/models/backofficeUser';\r\nimport * as TextUser from '../../constants/toasterText/user';\r\nimport * as TextClient from '../../constants/toasterText/backofficeClients';\r\nimport { pageLimit } from '../../constants/paginations/paginationLimit';\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nconst ClientsReducer = (state = {\r\n isLoading: [],\r\n clients: undefined,\r\n isDeletingClient: false,\r\n resetPasswordPhoneNumber: false,\r\n nextPage: true,\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n globalFilters: {\r\n order: {\r\n column: \"lastName\",\r\n asc: false\r\n },\r\n role: undefined,\r\n search: \"\",\r\n }\r\n\r\n\r\n}, action) => {\r\n switch (action.type) {\r\n\r\n case ActionTypes.FETCH_CLIENTS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_CLIENTS)) {\r\n state.isLoading = state.isLoading.concat(Loadings.FETCHING_CLIENTS);\r\n }\r\n\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_CLIENTS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_CLIENTS);\r\n\r\n //action.data.length < pageLimit\r\n if ((action.data.pageNumber + 1) === action.data.totalPages) {\r\n state.nextPage = false;\r\n } else {\r\n state.nextPage = true;\r\n }\r\n\r\n if (state.clients) {\r\n const moreClients = action.data.items.map(user => new BackofficeUser(user));\r\n state.clients = [...moreClients];\r\n } else {\r\n\r\n state.clients = action.data.items.map(user => new BackofficeUser(user));\r\n }\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_CLIENTS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_CLIENTS);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_CLIENT_REQUEST:\r\n state.isDeletingClient = true;\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_CLIENT_SUCCESS:\r\n state.isDeletingReferent = false;\r\n state.clients = state.clients.filter(c => c.id !== action.user.id);\r\n toast.success(TextClient.clientDeleteSuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_CLIENT_FAILURE:\r\n state.isDeletingReferent = false;\r\n toast.error(TextClient.clientDeleteFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesAuth.RESET_PASSWORD_SUCCESS:\r\n state.resetPasswordPhoneNumber = true;\r\n toast.success(TextClient.emailPasswordRecoveredSucess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesAuth.RESET_PASSWORD_FAILURE:\r\n state.resetPasswordPhoneNumber = false;\r\n toast.error(TextClient.emailPasswordRecoveredFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_REQUEST:\r\n if (!state.isLoading.includes(LoadingsUser.UPDATE_USER)) {\r\n state.isLoading = state.isLoading.concat(LoadingsUser.UPDATE_USER);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_SUCCESS:\r\n state.clients = state.clients.map((client) => {\r\n if (client.id === action.userId) {\r\n client.isEnabled = action.user.isEnabled;\r\n return client;\r\n }\r\n return client;\r\n });\r\n\r\n state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.success(TextUser.dataUpdatedSuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.error(TextUser.dataUpdateFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_SECURITY_REQUEST:\r\n if (!state.isLoading.includes(LoadingsUser.UPDATE_SECURITY)) {\r\n state.isLoading = state.isLoading.concat(LoadingsUser.UPDATE_SECURITY);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_SECURITY_SUCCESS:\r\n if (!R.isNil(action.user.newPhoneNumber)) {\r\n //state.user.phoneNumber = action.user.newPhoneNumber;\r\n // sessionStorage.removeItem(\"access_token\");\r\n // window.location = \"/auth/signin\";\r\n state.clients = state.clients.map((client) => {\r\n if (client.id === action.userId) {\r\n client.phoneNumber = action.user.newPhoneNumber;\r\n return client;\r\n }\r\n return client;\r\n });\r\n\r\n }\r\n if (!R.isNil(action.user.newEmail)) {\r\n state.clients = state.clients.map((client) => {\r\n if (client.id === action.userId) {\r\n client.email = action.user.newEmail;\r\n return client;\r\n }\r\n return client;\r\n });\r\n\r\n }\r\n\r\n state.isLoading = state.isLoading.filter(c => c !== LoadingsUser.UPDATE_SECURITY);\r\n toast.success(TextUser.updateSecuritySuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_CLIENT_SECURITY_FAILURE:\r\n state.isLoading = state.isLoading.filter(c => c !== LoadingsUser.UPDATE_SECURITY);\r\n toast.error(TextUser.udpateSecurityFailed, toastConf);\r\n return { ...state };\r\n\r\n\r\n case ActionTypes.SET_CLIENT_FILTER:\r\n const newState = { ...state.globalFilters, ...action.data };\r\n state.globalFilters = newState;\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default ClientsReducer;","import Child from './child';\r\nimport Address from './../address';\r\nimport * as R from 'ramda';\r\n\r\nexport default function DeathDeclaration(data){\r\n let representing = data || {};\r\n let professions = [];\r\n if(!R.isNil(representing.professionalSituation)){\r\n if(!Array.isArray(representing.professionalSituation)){\r\n let allProfs = representing.professionalSituation.split(',');\r\n if(Array.isArray(allProfs)){\r\n allProfs.forEach(p => {professions.push(p.trim())});\r\n }\r\n else{\r\n professions.push(allProfs);\r\n }\r\n \r\n }\r\n }\r\n \r\n this.id = representing.id;\r\n this.processNumber = representing.processNumber;\r\n\r\n this.deathDate = R.isNil(representing.deathDate) ? undefined : representing.deathDate === '0001-01-01T00:00:00Z' ? undefined: new Date(representing.deathDate);\r\n this.allocations = R.isNil(representing.allocations) ? [] : representing.allocations;\r\n this.houseHoldCount = representing.houseHoldCount;\r\n this.isDeathRelatedToActivity = representing.isDeathRelatedToActivity;\r\n this.onBoardingStep = representing.onBoardingStep;\r\n this.hasChildren = representing.hasChildren;\r\n this.childrens = R.isNil(representing.childrens) ? [] : representing.childrens.map(c => new Child(c));\r\n\r\n this.email = representing.email;\r\n this.phoneNumber = representing.phoneNumber;\r\n this.gender = representing.gender;\r\n this.firstName = R.isNil(representing.firstName) ? \"\" : representing.firstName;\r\n this.lastName = R.isNil(representing.lastName) ? \"\" : representing.lastName;\r\n this.birthDate = R.isNil(representing.birthDate) ? undefined : representing.birthDate === '0001-01-01T00:00:00Z' ? undefined: new Date(representing.birthDate);\r\n this.birthPlace = representing.birthPlace;\r\n this.departmentNumber = representing.departmentNumber;\r\n this.country = representing.country;\r\n this.civilStatus = representing.civilStatus;\r\n this.professionalSituation = professions;\r\n this.isInvalid = representing.isInvalid;\r\n this.partnerId = representing.partnerId;\r\n this.etablissementId = representing.etablissementId;\r\n\r\n this.userId = representing.userId;\r\n this.declaringUserId = representing.declaringUserId;\r\n this.diedInActivityId = representing.diedInActivityId;\r\n this.userDeceasedAddress = new Address(representing.userDeceasedAddress);\r\n this.userResidenceAddress = new Address(representing.userResidenceAddress);\r\n \r\n}","import * as ActionTypes from '../../constants/actiontypes/facilita/deathDeclaration';\r\nimport * as Loadings from '../../constants/loadings/facilita/deathDeclaration';\r\nimport * as R from 'ramda';\r\nimport DeathDeclaration from '../../constants/models/facilita/deathDeclaration';\r\nimport Letter from '../../constants/models/facilita/letter';\r\nimport Service from '../../constants/models/service';\r\nimport { toast } from 'react-toastify';\r\nimport DocumentFile from '../../constants/models/documentFile';\r\nimport Referent from '../../constants/models/referent';\r\nimport User from '../../constants/models/user';\r\nimport * as Text from '../../constants/toasterText/services';\r\nimport toastConf from '../../utils/toasterConfiguration';\r\n\r\nimport {convertConnectionTypesToServiceType} from '../../constants/utils/connectionTypes';\r\nimport {addressContractToInt, addressTypeToInt} from '../../utils/misc';\r\n\r\n\r\nconst DeathDeclarationReducer = (state = {\r\n isLoading: [],\r\n declaration: undefined,\r\n files: [],\r\n message: undefined,\r\n connectionTypes: [],\r\n serviceDatas:[],\r\n userLetters: [],\r\n referents: [],\r\n user: undefined,\r\n \r\n}, action) => {\r\n switch(action.type){\r\n \r\n case ActionTypes.FETCH_DECLARATION_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_DECLARATION)){\r\n state.isLoading.push(Loadings.FETCHING_DECLARATION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_DECLARATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_DECLARATION);\r\n if(R.isNil(action.data)){\r\n let declaration = new DeathDeclaration({});\r\n if(!R.isNil(action.defaultValues)){\r\n declaration.firstName = action.defaultValues.firstName;\r\n declaration.lastName = action.defaultValues.lastName;\r\n declaration.processNumber = action.defaultValues.processNumber;\r\n }\r\n state.declaration = declaration; \r\n }else{\r\n state.declaration = new DeathDeclaration(action.data); \r\n }\r\n \r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_DECLARATION_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_DECLARATION);\r\n return { ...state };\r\n \r\n\r\n case ActionTypes.CREATE_DECLARATION_REQUEST:\r\n if (!state.isLoading.includes(Loadings.CREATING_DECLARATION)){\r\n state.isLoading.push(Loadings.CREATING_DECLARATION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_DECLARATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_DECLARATION);\r\n \r\n state.declaration = new DeathDeclaration(action.data); \r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_DECLARATION_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_DECLARATION);\r\n return { ...state };\r\n\r\n\r\n case ActionTypes.UPDATE_DECLARATION_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_DECLARATION)){\r\n state.isLoading.push(Loadings.UPDATING_DECLARATION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_DECLARATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_DECLARATION);\r\n state.declaration = new DeathDeclaration(action.data);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_FILES_REQUEST:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_FILES);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_FILES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_FILES);\r\n state.files = action.data.map(d => new DocumentFile(d));\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_FILE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.DELETING_FILE);\r\n state.files = state.files.filter(s => s.fileName !== action.data);\r\n return { ...state };\r\n\r\n case ActionTypes.UPLOAD_FILE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPLOADING_FILE + action.documentName)){\r\n state.isLoading.push(Loadings.UPLOADING_FILE + action.documentName);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPLOAD_FILE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPLOADING_FILE + action.file.fileName);\r\n state.files.push(new DocumentFile(action.file))\r\n return { ...state };\r\n\r\n case ActionTypes.UPLOAD_FILE_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPLOADING_FILE + action.documentName);\r\n return { ...state };\r\n\r\n case ActionTypes.EDIT_DOCUMENT_SUCCESS:\r\n state.files = state.files.map((document) => {\r\n if(document.fileName === action.file.fileName && document.fileType === action.file.fileType){\r\n return new DocumentFile({ fileName: action.file.fileName, fileType: action.file.fileType, description: action.file.description });\r\n }\r\n return document;\r\n })\r\n return { ...state };\r\n\r\n case ActionTypes.SHARE_FILES_REQUEST:\r\n if (!state.isLoading.includes(Loadings.SHARING_FILES)){\r\n state.isLoading.push(Loadings.SHARING_FILES);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.SHARE_FILES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.SHARING_FILES);\r\n return { ...state };\r\n\r\n case ActionTypes.SHARE_FILES_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.SHARING_FILES);\r\n return { ...state }; \r\n\r\n case ActionTypes.FETCH_MESSAGE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_MESSAGE)){\r\n state.isLoading.push(Loadings.FETCHING_MESSAGE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_MESSAGE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_MESSAGE);\r\n state.message = action.data;\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER_SERVICES_DATA)){\r\n state.isLoading.push(Loadings.FETCHING_USER_SERVICES_DATA);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_SERVICES_DATA);\r\n state.serviceDatas = action.data;\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_SERVICES_DATA);\r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId)){\r\n state.isLoading.push(Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n state.serviceDatas = state.serviceDatas.concat(action.data);\r\n toast.success(Text.addedSuccessfully, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n toast.error(Text.tryAddAgain, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id)){\r\n state.isLoading.push(Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n }\r\n return { ...state }; \r\n case ActionTypes.UPDATE_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n state.serviceDatas = state.serviceDatas.map((service) => {\r\n if(service.id === action.data.id)\r\n return {...service, ...action.data};\r\n\r\n return service;\r\n })\r\n toast.success(Text.updatedSuccessfully, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n toast.error(Text.tryUpdateAgain, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id)){\r\n state.isLoading.push(Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n }\r\n return { ...state }; \r\n case ActionTypes.DELETE_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id);\r\n state.serviceDatas = state.serviceDatas.filter(s => s.id !== action.id);\r\n toast.success(Text.deletedSuccessfully, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id);\r\n toast.error(Text.tryDeleteAgain, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTERS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId)){\r\n state.isLoading.push(Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n state.userLetters = action.data.map(l => new Letter(l));\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTER_REQUEST:\r\n if (!state.isLoading.includes(`${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`)){\r\n state.isLoading.push(`${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== `${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n return { ...state };\r\n\r\n case ActionTypes.GENERATE_USER_LETTER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== `${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n state.userLetters = state.userLetters.concat(action.data.map(d => new Letter(d)));\r\n return { ...state }; \r\n \r\n case ActionTypes.FETCH_USER_LETTERS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId)){\r\n state.isLoading.push(Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_USER_LETTERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_LETTERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n state.userLetters = action.letters.map(l => new Letter(l));\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_USER_LETTER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId)){\r\n state.isLoading.push(Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_USER_LETTER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_USER_LETTER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n state.userLetters = state.userLetters.map((userletter) => {\r\n if(userletter.id !== action.userletterId){\r\n return userletter;\r\n }\r\n return {...action.userletter}\r\n })\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_REFERENTS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_REFERENTS)){\r\n state.isLoading.push(Loadings.FETCHING_REFERENTS);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_REFERENTS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_REFERENTS);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_REFERENTS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_REFERENTS);\r\n state.referents = action.referents.map(l => new Referent(l));\r\n return { ...state };\r\n \r\n \r\n case ActionTypes.CREATE_REFERENT_REQUEST:\r\n if (!state.isLoading.includes(Loadings.CREATING_REFERENT)){\r\n state.isLoading.push(Loadings.CREATING_REFERENT);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.CREATE_REFERENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_REFERENT);\r\n return { ...state };\r\n\r\n case ActionTypes.CREATE_REFERENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.CREATING_REFERENT);\r\n state.referents = [...state.referents, new Referent(action.referent)];\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_REFERENT_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_REFERENT)){\r\n state.isLoading.push(Loadings.UPDATING_REFERENT);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.UPDATE_REFERENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_REFERENT);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_REFERENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_REFERENT);\r\n state.referents = state.referents.map((ref) => {\r\n if(ref.id !== action.referent.id){\r\n return ref;\r\n }else{\r\n return new Referent(action.referent)\r\n }\r\n \r\n \r\n });\r\n return { ...state };\r\n case ActionTypes.DELETE_REFERENT_REQUEST:\r\n if (!state.isLoading.includes(Loadings.DELETING_REFERENT)){\r\n state.isLoading.push(Loadings.DELETING_REFERENT);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.DELETE_REFERENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.DELETING_REFERENT);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_REFERENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.DELETING_REFERENT);\r\n state.referents = state.referents.filter(r => r.id !== action.referentId)\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_USER_SERVICES_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER_CONNECTION)){\r\n state.isLoading.push(Loadings.FETCHING_USER_CONNECTION);\r\n }\r\n return { ...state };\r\n \r\n case ActionTypes.FETCH_USER_SERVICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_CONNECTION);\r\n state.connectionTypes = action.data.map(c => new Service(c));\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_USER_SERVICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER_CONNECTION);\r\n return { ...state };\r\n\r\n case ActionTypes.ADD_USER_SERVICE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.ADDING_USER_CONNECTION)){\r\n state.isLoading.push(Loadings.ADDING_USER_CONNECTION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.ADD_USER_SERVICE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.ADDING_USER_CONNECTION);\r\n state.connectionTypes = [...state.connectionTypes, new Service(action.data)];\r\n return { ...state };\r\n\r\n case ActionTypes.ADD_USER_SERVICE_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.ADDING_USER_CONNECTION);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_USER_SERVICE_REQUEST:\r\n if (!state.isLoading.includes(Loadings.REMOVING_USER_CONNECTION)){\r\n state.isLoading.push(Loadings.REMOVING_USER_CONNECTION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_USER_SERVICE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.REMOVING_USER_CONNECTION);\r\n state.connectionTypes = state.connectionTypes.filter(s => s.id !== action.service.id);\r\n state.serviceDatas = state.serviceDatas.filter(s => s.serviceType !== convertConnectionTypesToServiceType(action.service.connectionType));\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_USER_SERVICE_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.REMOVING_USER_CONNECTION);\r\n return { ...state }; \r\n\r\n case ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(Loadings.COMPLETING_USER_SERVICES_DATA)){\r\n state.isLoading.push(Loadings.COMPLETING_USER_SERVICES_DATA);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.COMPLETING_USER_SERVICES_DATA);\r\n return { ...state };\r\n\r\n case ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.COMPLETING_USER_SERVICES_DATA);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER)){\r\n state.isLoading.push(Loadings.FETCHING_USER);\r\n }\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER);\r\n state.user = new User(action.data);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_USER);\r\n return { ...state };\r\n\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER)){\r\n state.isLoading.push(Loadings.UPDATING_USER);\r\n }\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER);\r\n const userResidenceAddress1 = {...state.user.userResidenceAddress};\r\n state.user = new User(action.data);\r\n state.user.userResidenceAddress = userResidenceAddress1;\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER);\r\n return { ...state }; \r\n \r\n case ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS)){\r\n state.isLoading.push(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n const userResidenceAddress = action.addresses[0];\r\n userResidenceAddress.addressContract = addressContractToInt(userResidenceAddress.addressContract);\r\n userResidenceAddress.addressType = addressTypeToInt(userResidenceAddress.addressType);\r\n state.user = {...state.user, userResidenceAddress: userResidenceAddress};\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS)){\r\n state.isLoading.push(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n }\r\n return { ...state }; \r\n\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER)){\r\n state.isLoading.push(Loadings.UPDATING_USER);\r\n }\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER);\r\n state.user = {...state.user, userResidenceAddress: action.data};\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER);\r\n return { ...state }; \r\n \r\n case ActionTypes.ADD_USER_SERVICE_BATCH_REQUEST:\r\n if (!state.isLoading.includes(Loadings.ADDING_USER_CONNECTION_BATCH)){\r\n state.isLoading.push(Loadings.ADDING_USER_CONNECTION_BATCH);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.ADD_USER_SERVICE_BATCH_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.ADDING_USER_CONNECTION_BATCH);\r\n state.connectionTypes = action.data.map(d => new Service(d));\r\n return { ...state };\r\n\r\n case ActionTypes.ADD_USER_SERVICE_BATCH_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.ADDING_USER_CONNECTION_BATCH);\r\n return { ...state }; \r\n\r\n case ActionTypes.UPDATE_ONBOARDINGSTEP_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATING_USER_ONBOARDINGSTEP)){\r\n state.isLoading.push(Loadings.UPDATING_USER_ONBOARDINGSTEP);\r\n }\r\n return { ...state }; \r\n\r\n case ActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.UPDATING_USER_ONBOARDINGSTEP);\r\n state.user = {...state.user, onBoardingStep: action.data};\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\nexport default DeathDeclarationReducer;","export const FETCH_RELOCATION_DECLARATION_REQUEST = 'FETCH_RELOCATION_DECLARATION_REQUEST';\r\nexport const FETCH_RELOCATION_DECLARATION_SUCCESS = 'FETCH_RELOCATION_DECLARATION_SUCCESS';\r\nexport const FETCH_RELOCATION_DECLARATION_FAILURE = 'FETCH_RELOCATION_DECLARATION_FAILURE';\r\n\r\nexport const CREATE_RELOCATION_DECLARATION_REQUEST = 'CREATE_RELOCATION_DECLARATION_REQUEST';\r\nexport const CREATE_RELOCATION_DECLARATION_SUCCESS = 'CREATE_RELOCATION_DECLARATION_SUCCESS';\r\nexport const CREATE_RELOCATION_DECLARATION_FAILURE = 'CREATE_RELOCATION_DECLARATION_FAILURE';\r\n\r\nexport const UPDATE_RELOCATION_DECLARATION_REQUEST = 'UPDATE_RELOCATION_DECLARATION_REQUEST';\r\nexport const UPDATE_RELOCATION_DECLARATION_SUCCESS = 'UPDATE_RELOCATION_DECLARATION_SUCCESS';\r\nexport const UPDATE_RELOCATION_DECLARATION_FAILURE = 'UPDATE_RELOCATION_DECLARATION_FAILURE';\r\n\r\nexport const DELETE_RELOCATION_DECLARATION_REQUEST = \"DELETE_RELOCATION_DECLARATION_REQUEST\";\r\nexport const DELETE_RELOCATION_DECLARATION_SUCCESS = \"DELETE_RELOCATION_DECLARATION_SUCCESS\";\r\nexport const DELETE_RELOCATION_DECLARATION_FAILURE = \"DELETE_RELOCATION_DECLARATION_FAILURE\";\r\n\r\nexport const UPLOAD_FILE_REQUEST = \"UPLOAD_FILE_REQUEST\";\r\nexport const UPLOAD_FILE_SUCCESS = \"UPLOAD_FILE_SUCCESS\";\r\nexport const UPLOAD_FILE_FAILURE = \"UPLOAD_FILE_FAILURE\";\r\n\r\nexport const FETCH_FILES_REQUEST = \"FETCH_FILES_REQUEST\";\r\nexport const FETCH_FILES_SUCCESS = \"FETCH_FILES_SUCCESS\";\r\nexport const FETCH_FILES_FAILURE = \"FETCH_FILES_FAILURE\";\r\n\r\nexport const DOWNLOAD_FILE_REQUEST = \"DOWNLOAD_FILE_REQUEST\";\r\nexport const DOWNLOAD_FILE_SUCCESS = \"DOWNLOAD_FILE_SUCCESS\";\r\nexport const DOWNLOAD_FILE_FAILURE = \"DOWNLOAD_FILE_FAILURE\";\r\n\r\nexport const DELETE_FILE_REQUEST = \"DELETE_FILE_REQUEST\";\r\nexport const DELETE_FILE_SUCCESS = \"DELETE_FILE_SUCCESS\";\r\nexport const DELETE_FILE_FAILURE = \"DELETE_FILE_FAILURE\";\r\n\r\nexport const EDIT_DOCUMENT_REQUEST = 'EDIT_DOCUMENT_REQUEST';\r\nexport const EDIT_DOCUMENT_SUCCESS = 'EDIT_DOCUMENT_SUCCESS';\r\nexport const EDIT_DOCUMENT_FAILURE = 'EDIT_DOCUMENT_FAILURE';\r\n\r\nexport const SHARE_FILES_REQUEST = \"SHARE_FILES_REQUEST\";\r\nexport const SHARE_FILES_SUCCESS = \"SHARE_FILES_SUCCESS\";\r\nexport const SHARE_FILES_FAILURE = \"SHARE_FILES_FAILURE\";\r\n\r\nexport const FETCH_MESSAGE_REQUEST = \"FETCH_MESSAGE_REQUEST\";\r\nexport const FETCH_MESSAGE_SUCCESS = \"FETCH_MESSAGE_SUCCESS\";\r\nexport const FETCH_MESSAGE_FAILURE = \"FETCH_MESSAGE_FAILURE\";\r\n\r\nexport const FETCH_USER_SERVICES_REQUEST = \"FETCH_USER_SERVICES_REQUEST\";\r\nexport const FETCH_USER_SERVICES_SUCCESS = \"FETCH_USER_SERVICES_SUCCESS\";\r\nexport const FETCH_USER_SERVICES_FAILURE = \"FETCH_USER_SERVICES_FAILURE\";\r\n\r\nexport const ADD_USER_SERVICE_REQUEST = \"ADD_USER_SERVICE_REQUEST\";\r\nexport const ADD_USER_SERVICE_SUCCESS = \"ADD_USER_SERVICE_SUCCESS\";\r\nexport const ADD_USER_SERVICE_FAILURE = \"ADD_USER_SERVICE_FAILURE\";\r\n\r\nexport const ADD_USER_SERVICE_BATCH_REQUEST = \"ADD_USER_SERVICE_BATCH_REQUEST\";\r\nexport const ADD_USER_SERVICE_BATCH_SUCCESS = \"ADD_USER_SERVICE_BATCH_SUCCESS\";\r\nexport const ADD_USER_SERVICE_BATCH_FAILURE = \"ADD_USER_SERVICE_BATCH_FAILURE\";\r\n\r\nexport const DELETE_USER_SERVICE_REQUEST = \"DELETE_USER_SERVICE_REQUEST\";\r\nexport const DELETE_USER_SERVICE_SUCCESS = \"DELETE_USER_SERVICE_SUCCESS\";\r\nexport const DELETE_USER_SERVICE_FAILURE = \"DELETE_USER_SERVICE_FAILURE\";\r\n\r\n\r\nexport const FETCH_USER_SERVICES_DATA_REQUEST = \"FETCH_USER_SERVICES_DATA_REQUEST\";\r\nexport const FETCH_USER_SERVICES_DATA_SUCCESS = \"FETCH_USER_SERVICES_DATA_SUCCESS\";\r\nexport const FETCH_USER_SERVICES_DATA_FAILURE = \"FETCH_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const CREATE_USER_SERVICES_DATA_REQUEST = \"CREATE_USER_SERVICES_DATA_REQUEST\";\r\nexport const CREATE_USER_SERVICES_DATA_SUCCESS = \"CREATE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const CREATE_USER_SERVICES_DATA_FAILURE = \"CREATE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const UPDATE_USER_SERVICES_DATA_REQUEST = \"UPDATE_USER_SERVICES_DATA_REQUEST\";\r\nexport const UPDATE_USER_SERVICES_DATA_SUCCESS = \"UPDATE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const UPDATE_USER_SERVICES_DATA_FAILURE = \"UPDATE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const DELETE_USER_SERVICES_DATA_REQUEST = \"DELETE_USER_SERVICES_DATA_REQUEST\";\r\nexport const DELETE_USER_SERVICES_DATA_SUCCESS = \"DELETE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const DELETE_USER_SERVICES_DATA_FAILURE = \"DELETE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_REQUEST = \"SET_COMPLETE_USER_SERVICES_DATA_REQUEST\";\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_SUCCESS = \"SET_COMPLETE_USER_SERVICES_DATA_SUCCESS\";\r\nexport const SET_COMPLETE_USER_SERVICES_DATA_FAILURE = \"SET_COMPLETE_USER_SERVICES_DATA_FAILURE\";\r\n\r\nexport const GENERATE_USER_LETTER_REQUEST = 'GENERATE_USER_LETTER_REQUEST';\r\nexport const GENERATE_USER_LETTER_SUCCESS = 'GENERATE_USER_LETTER_SUCCESS';\r\nexport const GENERATE_USER_LETTER_FAILURE = 'GENERATE_USER_LETTER_FAILURE';\r\n\r\nexport const GENERATE_USER_LETTERS_REQUEST = 'GENERATE_USER_LETTERS_REQUEST';\r\nexport const GENERATE_USER_LETTERS_SUCCESS = 'GENERATE_USER_LETTERS_SUCCESS';\r\nexport const GENERATE_USER_LETTERS_FAILURE = 'GENERATE_USER_LETTERS_FAILURE';\r\n\r\nexport const FETCH_USER_LETTERS_REQUEST = 'FETCH_USER_LETTERS_REQUEST';\r\nexport const FETCH_USER_LETTERS_SUCCESS = 'FETCH_USER_LETTERS_SUCCESS';\r\nexport const FETCH_USER_LETTERS_FAILURE = 'FETCH_USER_LETTERS_FAILURE';\r\n\r\nexport const UPDATE_USER_LETTER_REQUEST = 'UPDATE_USER_LETTER_REQUEST';\r\nexport const UPDATE_USER_LETTER_SUCCESS = 'UPDATE_USER_LETTER_SUCCESS';\r\nexport const UPDATE_USER_LETTER_FAILURE = 'UPDATE_USER_LETTER_FAILURE';\r\n\r\nexport const FETCH_REFERENTS_REQUEST = 'FETCH_REFERENTS_REQUEST';\r\nexport const FETCH_REFERENTS_SUCCESS = 'FETCH_REFERENTS_SUCCESS';\r\nexport const FETCH_REFERENTS_FAILURE = 'FETCH_REFERENTS_FAILURE';\r\n\r\nexport const CREATE_REFERENT_REQUEST = 'CREATE_REFERENT_REQUEST';\r\nexport const CREATE_REFERENT_SUCCESS = 'CREATE_REFERENT_SUCCESS';\r\nexport const CREATE_REFERENT_FAILURE = 'CREATE_REFERENT_FAILURE';\r\n\r\nexport const UPDATE_REFERENT_REQUEST = 'UPDATE_REFERENT_REQUEST';\r\nexport const UPDATE_REFERENT_SUCCESS = 'UPDATE_REFERENT_SUCCESS';\r\nexport const UPDATE_REFERENT_FAILURE = 'UPDATE_REFERENT_FAILURE';\r\n\r\nexport const DELETE_REFERENT_REQUEST = 'DELETE_REFERENT_REQUEST';\r\nexport const DELETE_REFERENT_SUCCESS = 'DELETE_REFERENT_SUCCESS';\r\nexport const DELETE_REFERENT_FAILURE = 'DELETE_REFERENT_FAILURE';\r\n\r\nexport const FETCH_ONBOARDINGUSER_REQUEST = 'FETCH_ONBOARDINGUSER_REQUEST';\r\nexport const FETCH_ONBOARDINGUSER_SUCCESS = 'FETCH_ONBOARDINGUSER_SUCCESS';\r\nexport const FETCH_ONBOARDINGUSER_FAILURE = 'FETCH_ONBOARDINGUSER_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGUSER_REQUEST = 'UPDATE_ONBOARDINGUSER_REQUEST';\r\nexport const UPDATE_ONBOARDINGUSER_SUCCESS = 'UPDATE_ONBOARDINGUSER_SUCCESS';\r\nexport const UPDATE_ONBOARDINGUSER_FAILURE = 'UPDATE_ONBOARDINGUSER_FAILURE';\r\n\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_REQUEST = 'FETCH_ONBOARDINGUSER_ADDRESS_REQUEST';\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS = 'FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS';\r\nexport const FETCH_ONBOARDINGUSER_ADDRESS_FAILURE = 'FETCH_ONBOARDINGUSER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST = 'UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST';\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS = 'UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS';\r\nexport const UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE = 'UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGSTEP_REQUEST = 'UPDATE_ONBOARDINGSTEP_REQUEST';\r\nexport const UPDATE_ONBOARDINGSTEP_SUCCESS = 'UPDATE_ONBOARDINGSTEP_SUCCESS';\r\nexport const UPDATE_ONBOARDINGSTEP_FAILURE = 'UPDATE_ONBOARDINGSTEP_FAILURE';\r\n\r\nexport const REPRESENTATIVE_INVITATION_REQUEST = 'REPRESENTATIVE_INVITATION_REQUEST';\r\nexport const REPRESENTATIVE_INVITATION_SUCCESS = 'REPRESENTATIVE_INVITATION_SUCCESS';\r\nexport const REPRESENTATIVE_INVITATION_FAILURE = 'REPRESENTATIVE_INVITATION_FAILURE';","export const FETCHING_RELOCATION_DECLARATION = 'FETCHING_RELOCATION_DECLARATION';\r\nexport const CREATING_RELOCATION_DECLARATION = 'CREATING_RELOCATION_DECLARATION';\r\nexport const UPDATING_RELOCATION_DECLARATION = 'UPDATING_RELOCATION_DECLARATION';\r\nexport const DELETING_RELOCATION_DECLARATION = \"DELETING_RELOCATION_DECLARATION\";\r\n\r\nexport const FETCHING_FILES = 'FETCHING_FILES';\r\nexport const UPLOADING_FILE = 'UPLOADING_FILE';\r\nexport const DELETING_FILE = 'DELETING_FILE';\r\nexport const SHARING_FILES = 'SHARING_FILES';\r\nexport const FETCHING_MESSAGE = 'FETCHING_MESSAGE';\r\n\r\nexport const FETCHING_USER_SERVICES_DATA = 'FETCHING_USER_SERVICES_DATA';\r\nexport const UPDATING_USER_SERVICES_DATA = 'UPDATING_USER_SERVICES_DATA';\r\nexport const CREATING_USER_SERVICES_DATA = 'UPDATING_USER_SERVICES_DATA';\r\nexport const DELETING_USER_SERVICES_DATA = 'DELETING_USER_SERVICES_DATA';\r\nexport const COMPLETING_USER_SERVICES_DATA = 'COMPLETING_USER_SERVICES_DATA';\r\nexport const GENERATING_USER_LETTERS = 'GENERATING_USER_LETTERS';\r\nexport const FETCHING_USER_LETTERS = 'FETCHING_USER_LETTERS';\r\nexport const UPDATING_USER_LETTER = 'UPDATING_USER_LETTER';\r\nexport const FETCHING_REFERENTS = 'FETCHING_REFERENTS';\r\nexport const UPDATING_REFERENT = 'UPDATING_REFERENT';\r\nexport const DELETING_REFERENT = 'DELETING_REFERENT';\r\nexport const CREATING_REFERENT = 'CREATING_REFERENT';\r\n\r\nexport const FETCHING_USER_CONNECTION = 'FETCHING_USER_CONNECTION';\r\nexport const ADDING_USER_CONNECTION = 'ADDING_USER_CONNECTION';\r\nexport const ADDING_USER_CONNECTION_BATCH = 'ADDING_USER_CONNECTION_BATCH';\r\nexport const REMOVING_USER_CONNECTION = 'REMOVING_USER_CONNECTION';\r\n\r\nexport const FETCHING_USER = 'FETCHING_USER';\r\nexport const UPDATING_USER = 'UPDATING_USER';\r\nexport const FETCHING_ONBOARDINGUSER_ADDRESS = 'FETCHING_ONBOARDINGUSER_ADDRESS';\r\nexport const UPDATING_USER_ONBOARDINGSTEP = 'UPDATING_USER_ONBOARDINGSTEP';\r\n\r\n\r\n\r\nexport const INVITING_REPRESENTATIVE = 'INVITING_REPRESENTATIVE';","import Address from \"../address\";\r\n\r\nexport default function School(data) {\r\n\tlet school = data || {};\r\n \r\n\tthis.name = school.name;\r\n\tthis.address = new Address(school.address);\r\n}\r\n","\r\nimport School from \"./school\";\r\n\r\nexport default function RelocationChild(data) {\r\n\tlet child = data || {};\r\n\tthis.birthDate = child.birthDate;\r\n\tthis.isHandicaped = child.isHandicaped;\r\n\tthis.isStudent = child.isStudent;\r\n\tthis.isEmployed = child.isEmployed;\r\n\tthis.isDependent = child.isDependent;\r\n\tthis.age = child.age;\r\n\tthis.name = child.name;\r\n\r\n\tthis.schoolLevel = child.schoolLevel;\r\n\tthis.school = new School(child.school);\r\n}","import RelocationChild from \"./relocationChild\";\r\n\r\nimport Address from \"../address\";\r\nimport * as R from \"ramda\";\r\n\r\nexport default function RelocationDeclaration(data) {\r\n\tlet representing = data || {};\r\n\tlet professions = [];\r\n\tif (!R.isNil(representing.professionalSituation)) {\r\n\t\tif (!Array.isArray(representing.professionalSituation)) {\r\n\t\t\tlet allProfs = representing.professionalSituation.split(\", \");\r\n\t\t\tif (Array.isArray(allProfs)) {\r\n\t\t\t\tallProfs.forEach((p) => {\r\n\t\t\t\t\tprofessions.push(p.trim());\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tprofessions.push(allProfs);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\trepresenting.professionalSituation.forEach((p) => {\r\n\t\t\t\tprofessions.push(p.trim());\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tthis.id = representing.id;\r\n\tthis.processNumber = representing.processNumber;\r\n\r\n\tthis.effectiveMovingDate = R.isNil(representing.effectiveMovingDate) ? undefined : representing.effectiveMovingDate === \"0001-01-01T00:00:00Z\" ? undefined : new Date(representing.effectiveMovingDate);\r\n\tthis.allocations = R.isNil(representing.allocations) ? [] : representing.allocations;\r\n\tthis.houseHoldCount = representing.houseHoldCount;\r\n\tthis.civilStatus = representing.civilStatus;\r\n\tthis.gender = representing.gender;\r\n\r\n\tthis.onBoardingStep = representing.onBoardingStep || 1;\r\n\tthis.hasChildren = representing.hasChildren;\r\n\tthis.children = R.isNil(representing.children) ? [] : representing.children.map((c) => new RelocationChild(c));\r\n\tthis.hasPets = representing.hasPets;\r\n\r\n\tthis.email = representing.email;\r\n\tthis.phoneNumber = representing.phoneNumber;\r\n\r\n\tthis.firstName = R.isNil(representing.firstName) ? \"\" : representing.firstName;\r\n\tthis.lastName = R.isNil(representing.lastName) ? \"\" : representing.lastName;\r\n\r\n\t// this.professionalSituation = professions;\r\n\tthis.professionalSituation = professions;\r\n\tthis.partnerId = representing.partnerId;\r\n\tthis.etablissementId = representing.etablissementId;\r\n\r\n\tthis.userId = representing.userId;\r\n\tthis.declaringUserId = representing.declaringUserId;\r\n\tthis.oldAddress = new Address(representing.oldAddress);\r\n\tthis.newAddress = new Address(representing.newAddress);\r\n\r\n\tthis.movingType = representing.movingType;\r\n\tthis.reason = representing.reason;\r\n\tthis.sameArea = representing.sameArea;\r\n}\r\n","import * as ActionTypes from \"../../constants/actiontypes/relocationDeclaration\";\r\nimport * as Loadings from \"../../constants/loadings/relocationDeclaration\";\r\nimport * as R from \"ramda\";\r\nimport RelocationDeclaration from \"../../constants/models/events/relocationDeclaration\";\r\nimport Letter from \"../../constants/models/facilita/letter\";\r\nimport Service from \"../../constants/models/service\";\r\nimport { toast } from \"react-toastify\";\r\nimport DocumentFile from \"../../constants/models/documentFile\";\r\nimport User from \"../../constants/models/user\";\r\nimport * as Text from \"../../constants/toasterText/services\";\r\nimport toastConf from \"../../utils/toasterConfiguration\";\r\n\r\nimport { convertConnectionTypesToServiceType } from \"../../constants/utils/connectionTypes\";\r\nimport { addressContractToInt, addressTypeToInt } from \"../../utils/misc\";\r\n\r\nconst RelocationDeclarationReducer = (\r\n\tstate = {\r\n\t\tisLoading: [],\r\n\t\tdeclaration: undefined,\r\n\t\tfiles: [],\r\n\t\tmessage: undefined,\r\n\t\tconnectionTypes: [],\r\n\t\tserviceDatas: [],\r\n\t\tuserLetters: [],\r\n\t\tuser: undefined,\r\n\t},\r\n\taction\r\n) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.FETCH_RELOCATION_DECLARATION_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_RELOCATION_DECLARATION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_RELOCATION_DECLARATION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_RELOCATION_DECLARATION_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_RELOCATION_DECLARATION);\r\n\t\t\tif (!action.data) {\r\n\t\t\t\tlet declaration = new RelocationDeclaration(action.defaultValues);\r\n\t\t\t\tstate.declaration = declaration;\r\n\t\t\t} else {\r\n\t\t\t\tconst newAddress = action.data.newAddress;\r\n\r\n\t\t\t\tstate.declaration = new RelocationDeclaration(action.data);\r\n\t\t\t\tstate.declaration = { ...state.declaration, newAddress: newAddress };\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_RELOCATION_DECLARATION_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_RELOCATION_DECLARATION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_RELOCATION_DECLARATION_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.CREATING_RELOCATION_DECLARATION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.CREATING_RELOCATION_DECLARATION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_RELOCATION_DECLARATION_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.CREATING_RELOCATION_DECLARATION);\r\n\r\n\t\t\tstate.declaration = new RelocationDeclaration(action.data);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_RELOCATION_DECLARATION_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.CREATING_RELOCATION_DECLARATION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_RELOCATION_DECLARATION_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_RELOCATION_DECLARATION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_RELOCATION_DECLARATION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_RELOCATION_DECLARATION_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_RELOCATION_DECLARATION);\r\n\t\t\tstate.declaration = new RelocationDeclaration(action.data);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_RELOCATION_DECLARATION_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_RELOCATION_DECLARATION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_RELOCATION_DECLARATION_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.DELETING_RELOCATION_DECLARATION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.DELETING_RELOCATION_DECLARATION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_RELOCATION_DECLARATION_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.DELETING_RELOCATION_DECLARATION);\r\n\t\t\tstate.declaration = undefined;\r\n\t\t\tstate.userLetters = [];\r\n\t\t\ttoast.success(Text.deletedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_RELOCATION_DECLARATION_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.DELETING_RELOCATION_DECLARATION);\r\n\t\t\ttoast.error(Text.tryDeleteAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_FILES_REQUEST:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_FILES);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_FILES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_FILES);\r\n\t\t\tstate.files = action.data.map((d) => new DocumentFile(d));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_FILE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.DELETING_FILE);\r\n\t\t\tstate.files = state.files.filter((s) => s.fileName !== action.data);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPLOAD_FILE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPLOADING_FILE + action.documentName)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPLOADING_FILE + action.documentName);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPLOAD_FILE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPLOADING_FILE + action.file.fileName);\r\n\t\t\tstate.files.push(new DocumentFile(action.file));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPLOAD_FILE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPLOADING_FILE + action.documentName);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.EDIT_DOCUMENT_SUCCESS:\r\n\t\t\tstate.files = state.files.map((document) => {\r\n\t\t\t\tif (document.fileName === action.file.fileName && document.fileType === action.file.fileType) {\r\n\t\t\t\t\treturn new DocumentFile({ fileName: action.file.fileName, fileType: action.file.fileType, description: action.file.description });\r\n\t\t\t\t}\r\n\t\t\t\treturn document;\r\n\t\t\t});\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SHARE_FILES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.SHARING_FILES)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.SHARING_FILES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SHARE_FILES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.SHARING_FILES);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SHARE_FILES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.SHARING_FILES);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_MESSAGE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_MESSAGE)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_MESSAGE);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_MESSAGE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_MESSAGE);\r\n\t\t\tstate.message = action.data;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_USER_SERVICES_DATA)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_USER_SERVICES_DATA);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_SERVICES_DATA);\r\n\t\t\tstate.serviceDatas = action.data;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_SERVICES_DATA);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n\t\t\tstate.serviceDatas = state.serviceDatas.concat(action.data);\r\n\t\t\ttoast.success(Text.addedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.CREATING_USER_SERVICES_DATA + \"_\" + action.serviceId);\r\n\t\t\ttoast.error(Text.tryAddAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.UPDATE_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\tstate.serviceDatas = state.serviceDatas.map((service) => {\r\n\t\t\t\tif (service.id === action.data.id) return { ...service, ...action.data };\r\n\r\n\t\t\t\treturn service;\r\n\t\t\t});\r\n\t\t\ttoast.success(Text.updatedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\ttoast.error(Text.tryUpdateAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\t\tcase ActionTypes.DELETE_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\tstate.serviceDatas = state.serviceDatas.filter((s) => s.id !== action.id);\r\n\t\t\ttoast.success(Text.deletedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.DELETING_USER_SERVICES_DATA + \"_\" + action.id);\r\n\t\t\ttoast.error(Text.tryDeleteAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTERS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTERS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTERS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.GENERATING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\tstate.userLetters = action.data.map((l) => new Letter(l));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(`${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`)) {\r\n\t\t\t\tstate.isLoading.push(`${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== `${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.GENERATE_USER_LETTER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== `${Loadings.GENERATING_USER_LETTERS}_${action.userId}_${action.userServiceId}`);\r\n\t\t\tstate.userLetters = state.userLetters.concat(action.data.map((d) => new Letter(d)));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_LETTERS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_LETTERS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_LETTERS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n\t\t\tstate.userLetters = action.letters.map((l) => new Letter(l));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_LETTER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_LETTER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_USER_LETTER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER_LETTER + \"_\" + action.userletterId);\r\n\t\t\tstate.userLetters = state.userLetters.map((userletter) => {\r\n\t\t\t\tif (userletter.id !== action.userletterId) {\r\n\t\t\t\t\treturn userletter;\r\n\t\t\t\t}\r\n\t\t\t\treturn { ...action.userletter };\r\n\t\t\t});\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_USER_CONNECTION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_USER_CONNECTION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_CONNECTION);\r\n\t\t\tstate.connectionTypes = action.data.map((c) => new Service(c));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_USER_SERVICES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER_CONNECTION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.ADDING_USER_CONNECTION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.ADDING_USER_CONNECTION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.ADDING_USER_CONNECTION);\r\n\t\t\tstate.connectionTypes = [...state.connectionTypes, new Service(action.data)];\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.ADDING_USER_CONNECTION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.REMOVING_USER_CONNECTION)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.REMOVING_USER_CONNECTION);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.REMOVING_USER_CONNECTION);\r\n\t\t\tstate.connectionTypes = state.connectionTypes.filter((s) => s.id !== action.service.id);\r\n\t\t\tstate.serviceDatas = state.serviceDatas.filter((s) => s.serviceType !== convertConnectionTypesToServiceType(action.service.connectionType));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_USER_SERVICE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.REMOVING_USER_CONNECTION);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.COMPLETING_USER_SERVICES_DATA)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.COMPLETING_USER_SERVICES_DATA);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.COMPLETING_USER_SERVICES_DATA);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.SET_COMPLETE_USER_SERVICES_DATA_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.COMPLETING_USER_SERVICES_DATA);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_USER)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_USER);\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER);\r\n\t\t\tstate.user = new User(action.data);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_USER);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_USER)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_USER);\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER);\r\n\t\t\tconst userResidenceAddress1 = { ...state.user.userResidenceAddress };\r\n\t\t\tstate.user = new User(action.data);\r\n\t\t\tstate.user.userResidenceAddress = userResidenceAddress1;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n\t\t\tconst userResidenceAddress = action.addresses[0];\r\n\t\t\tuserResidenceAddress.addressContract = addressContractToInt(userResidenceAddress.addressContract);\r\n\t\t\tuserResidenceAddress.addressType = addressTypeToInt(userResidenceAddress.addressType);\r\n\t\t\tstate.user = { ...state.user, userResidenceAddress: userResidenceAddress };\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.FETCHING_ONBOARDINGUSER_ADDRESS);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_USER)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_USER);\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER);\r\n\t\t\tstate.user = { ...state.user, userResidenceAddress: action.data };\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_BATCH_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.ADDING_USER_CONNECTION_BATCH)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.ADDING_USER_CONNECTION_BATCH);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_BATCH_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.ADDING_USER_CONNECTION_BATCH);\r\n\t\t\tstate.connectionTypes = action.data.map((d) => new Service(d));\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.ADD_USER_SERVICE_BATCH_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.ADDING_USER_CONNECTION_BATCH);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGSTEP_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_USER_ONBOARDINGSTEP)) {\r\n\t\t\t\tstate.isLoading.push(Loadings.UPDATING_USER_ONBOARDINGSTEP);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((s) => s !== Loadings.UPDATING_USER_ONBOARDINGSTEP);\r\n\t\t\tstate.user = { ...state.user, onBoardingStep: action.data };\r\n\t\t\treturn { ...state };\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\nexport default RelocationDeclarationReducer;\r\n","export const FETCHING_PARTNER = 'FETCHING_PARTNER';\r\nexport const FETCHING_ETABLISSEMENT = 'FETCHING_ETABLISSEMENT';\r\nexport const FETCHING_ANTICIPA = 'FETCHING_ANTICIPA';\r\nexport const FETCHING_FACILITA = 'FETCHING_FACILITA';\r\nexport const FETCHING_SERENITA = 'FETCHING_SERENITA';\r\nexport const FETCHING_USERS = 'FETCHING_USERS';\r\nexport const CREATING_USER = 'CREATING_USER';\r\nexport const FETCHING_ETABLISSEMENT_LIST = 'FETCHING_ETABLISSEMENT_LIST';","import * as R from 'ramda';\r\nimport * as PartnerActionTypes from '../../constants/actiontypes/partner/partner';\r\nimport * as BackofficeActionTypes from '../../constants/actiontypes/backoffice/user';\r\nimport * as PartnerLoadings from '../../constants/loadings/partner/partner';\r\nimport Partner from '../../constants/models/backoffice/partner';\r\nimport * as ActionTypesUser from '../../constants/actiontypes/backoffice/user';\r\n\r\nimport * as ActionTypesAuth from '../../constants/actiontypes/auth';\r\nimport * as ActionTypesClient from '../../constants/actiontypes/backoffice/clients';\r\nimport * as LoadingsUser from '../../constants/loadings/user';\r\nimport { toast } from 'react-toastify';\r\nimport toastConf from '../../utils/toasterConfiguration';\r\nimport * as TextClient from '../../constants/toasterText/backofficeClients';\r\nimport * as TextUser from '../../constants/toasterText/user';\r\nimport BackofficeUser from '../../constants/models/backofficeUser';\r\n\r\nlet initialState = {\r\n isLoading: [],\r\n partner: undefined,\r\n etablissement: undefined,\r\n etablissementList: {items: [], pagination: undefined},\r\n users: [],\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0,\r\n allDossiers: { anticipa: undefined, facilita: undefined, serenita: undefined, totalAnticipa: 0, totalFacilita: 0, totalSerenita: 0 }\r\n};\r\n\r\nconst PartnerReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_PARTNER)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_PARTNER);\r\n state.partner = new Partner(action.data);\r\n return { ...state };\r\n\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_PARTNER);\r\n return { ...state };\r\n\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_ETABLISSEMENT_LIST);\r\n }\r\n return { ...state }; \r\n \r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT_LIST);\r\n state.etablissementList.items = action.data.items;\r\n state.etablissementList.pagination = {\r\n totalPages: action.data.totalPages,\r\n totalRecords: action.data.totalRecords,\r\n currentPage: action.data.pageNumber + 1,\r\n };\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_LIST_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT_LIST);\r\n return { ...state }; \r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n }\r\n return { ...state }; \r\n \r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n state.etablissement = action.data;\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_USERS_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_USERS)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_USERS);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_USERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_USERS);\r\n state.users = action.data.items.map(u => new BackofficeUser(u));\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_USERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_USERS);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ANTICIPA_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_ANTICIPA)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_ANTICIPA);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ANTICIPA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ANTICIPA);\r\n let anticpa = action.data.items.map(u => new BackofficeUser(u));\r\n\r\n return { ...state, allDossiers: { ...state.allDossiers, anticipa: anticpa, totalAnticipa: action.data.totalRecords } };\r\n\r\n\r\n case PartnerActionTypes.FETCH_ANTICIPA_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ANTICIPA);\r\n return { ...state };\r\n\r\n \r\n case PartnerActionTypes.FETCH_SERENITA_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_SERENITA)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_SERENITA);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_SERENITA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_SERENITA);\r\n let serenita = action.data.items.map(u => new BackofficeUser(u));\r\n return { ...state, allDossiers: { ...state.allDossiers, serenita: serenita, totalSerenita: action.data.totalRecords } };\r\n\r\n\r\n case PartnerActionTypes.FETCH_SERENITA_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_SERENITA);\r\n return { ...state };\r\n \r\n\r\n case BackofficeActionTypes.DELETE_BACKOFFICE_USER_REQUEST:\r\n // if (!state.isLoading.includes(PartnerLoadings.FETCHING_ANTICIPA)) {\r\n // state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_ANTICIPA);\r\n // }\r\n return { ...state };\r\n\r\n case BackofficeActionTypes.DELETE_BACKOFFICE_USER_SUCCESS:\r\n state.users = state.users.filter(user => user.id !== action.userId);\r\n let allAnticipa = state.allDossiers.anticipa.filter(user => user.id !== action.userId);\r\n let totalAnticipa = state.allDossiers.totalAnticipa - 1;\r\n\r\n return { ...state, allDossiers: { ...state.allDossiers, anticipa: allAnticipa, totalAnticipa: totalAnticipa } };\r\n\r\n\r\n case BackofficeActionTypes.DELETE_BACKOFFICE_USER_FAILURE:\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_FACILITA_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_FACILITA)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_FACILITA);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_FACILITA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_FACILITA);\r\n let facilita = action.data.items.map(u => new BackofficeUser(u));\r\n return { ...state, allDossiers: { ...state.allDossiers, facilita: facilita, totalFacilita: action.data.totalRecords } };\r\n\r\n case PartnerActionTypes.FETCH_FACILITA_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_FACILITA);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.CREATE_USER_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.CREATING_USER)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.CREATING_USER);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.CREATE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.CREATING_USER);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.CREATE_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.CREATING_USER);\r\n state.users = [...state.users, new BackofficeUser(action.data)];\r\n if (action.data.createdByRepresentative) {\r\n state.allDossiers.facilita = R.isNil(state.allDossiers.facilita) ? [] : state.allDossiers.facilita;\r\n state.allDossiers = { ...state.allDossiers, facilita: [...state.allDossiers.facilita, new BackofficeUser(action.data)], totalFacilita: state.allDossiers.totalFacilita + 1 };\r\n } else {\r\n state.allDossiers.anticipa = R.isNil(state.allDossiers.anticipa) ? [] : state.allDossiers.anticipa;\r\n state.allDossiers = { ...state.allDossiers, anticipa: [...state.allDossiers.anticipa, new BackofficeUser(action.data)], totalAnticipa: state.allDossiers.totalAnticipa + 1 };\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesAuth.RESET_PASSWORD_SUCCESS:\r\n state.resetPasswordPhoneNumber = true;\r\n toast.success(TextClient.emailPasswordRecoveredSucess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesAuth.RESET_PASSWORD_FAILURE:\r\n state.resetPasswordPhoneNumber = false;\r\n toast.error(TextClient.emailPasswordRecoveredFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesClient.UPDATE_CLIENT_SECURITY_REQUEST:\r\n if (!state.isLoading.includes(LoadingsUser.UPDATE_SECURITY)) {\r\n state.isLoading = state.isLoading.concat(LoadingsUser.UPDATE_SECURITY);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesClient.UPDATE_CLIENT_SECURITY_SUCCESS:\r\n if (!R.isNil(action.user.newPhoneNumber)) {\r\n //state.user.phoneNumber = action.user.newPhoneNumber;\r\n // sessionStorage.removeItem(\"access_token\");\r\n // window.location = \"/auth/signin\";\r\n state.users = state.users.map((user) => {\r\n if (user.id === action.userId) {\r\n user.phoneNumber = action.user.newPhoneNumber;\r\n return user;\r\n }\r\n return user;\r\n });\r\n\r\n }\r\n if (!R.isNil(action.user.newEmail)) {\r\n state.users = state.users.map((user) => {\r\n if (user.id === action.userId) {\r\n user.email = action.user.newEmail;\r\n return user;\r\n }\r\n return user;\r\n });\r\n\r\n }\r\n\r\n state.isLoading = state.isLoading.filter(c => c !== LoadingsUser.UPDATE_SECURITY);\r\n toast.success(TextUser.updateSecuritySuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesClient.UPDATE_CLIENT_SECURITY_FAILURE:\r\n state.isLoading = state.isLoading.filter(c => c !== LoadingsUser.UPDATE_SECURITY);\r\n toast.error(TextUser.udpateSecurityFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesUser.UPDATE_BACKOFFICE_USER_REQUEST:\r\n if (!state.isLoading.includes(LoadingsUser.UPDATE_USER)) {\r\n state.isLoading = state.isLoading.concat(LoadingsUser.UPDATE_USER);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesUser.UPDATE_BACKOFFICE_USER_SUCCESS:\r\n state.user = { ...state.user, isEnabled: false };\r\n\r\n state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.success(TextUser.dataUpdatedSuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypesUser.UPDATE_BACKOFFICE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.error(TextUser.dataUpdateFailed, toastConf);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.PAY_USER_INVOICE_REQUEST:\r\n // if (!state.isLoading.includes(LoadingsUser.UPDATE_USER)) {\r\n // state.isLoading = state.isLoading.concat(LoadingsUser.UPDATE_USER);\r\n // }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.PAY_USER_INVOICE_SUCCESS:\r\n //state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.success(TextUser.invoicePaidSuccess, toastConf);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.PAY_USER_INVOICE_FAILURE:\r\n // state.isLoading = state.isLoading.filter(l => l !== LoadingsUser.UPDATE_USER);\r\n toast.error(TextUser.invoicePaidFailed, toastConf);\r\n return { ...state };\r\n\r\n\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default PartnerReducer;","export default function InvoicePartner(data) {\r\n let invoice = data || {};\r\n this.id = invoice.id;\r\n this.amount = invoice.amount;\r\n this.created = new Date(invoice.created);\r\n this.number = invoice.number;\r\n this.pdfUrl = invoice.pdfUrl;\r\n this.paid = invoice.paid;\r\n}","import * as R from \"ramda\";\r\nimport { toast } from 'react-toastify';\r\nimport BackofficeUser from '../../constants/models/backofficeUser';\r\nimport * as ActionTypes from '../../constants/actiontypes/backoffice/user';\r\nimport * as ActionTypesUser from '../../constants/actiontypes/user';\r\nimport * as ActionTypesFacilita from '../../constants/actiontypes/facilita/deathDeclaration';\r\nimport * as PartnerActionTypes from '../../constants/actiontypes/partner/partner';\r\nimport * as PartnerLoadings from '../../constants/loadings/partner/partner';\r\nimport * as Loadings from '../../constants/loadings/user';\r\nimport * as LoadingsFacilita from '../../constants/loadings/facilita/deathDeclaration';\r\nimport Service from '../../constants/models/service';\r\nimport ServiceData from '../../constants/models/serviceData';\r\nimport Address from '../../constants/models/address';\r\nimport Referent from '../../constants/models/referent';\r\nimport Letter from '../../constants/models/facilita/letter';\r\nimport DocumentFile from '../../constants/models/documentFile';\r\nimport DeathDeclaration from '../../constants/models/facilita/deathDeclaration';\r\nimport toastConf from '../../utils/toasterConfiguration';\r\nimport * as TextUser from '../../constants/toasterText/user';\r\nimport * as ToasterText from '../../constants/toasterText/user';\r\nimport InvoicePartner from \"../../constants/models/invoicePartner\";\r\nimport Partner from \"../../constants/models/backoffice/partner\";\r\n\r\nlet initialState = {\r\n isLoading: [],\r\n user: undefined,\r\n address: undefined,\r\n referents: [],\r\n services: [],\r\n documents: [],\r\n serviceDatas: [],\r\n userLetters: [],\r\n documents: [],\r\n declaration: undefined,\r\n message: '',\r\n profilePicture: undefined,\r\n isDeletingReferent: false,\r\n stripeClientSecret: undefined,\r\n signupStep4Success: false,\r\n deathDate: undefined,\r\n invoices: [],\r\n etablissement: undefined,\r\n partner: undefined\r\n};\r\n\r\n\r\nconst UserBackOfficeDetailReducer = (state = initialState, action) => {\r\n\r\n switch (action.type) {\r\n case ActionTypes.RESET_BACKOFFICER_USER_STATE:\r\n state.isLoading = [];\r\n state.connectionTypes = [];\r\n state.documents = [];\r\n state.user = undefined;\r\n state.address = undefined;\r\n state.declaration = undefined;\r\n state.referents = [];\r\n state.services = [];\r\n state.userLetters = [];\r\n state.serviceDatas = [];\r\n state.isDeletingReferent = false;\r\n state.deathDate = undefined;\r\n state.invoices = [];\r\n state.etablissement = undefined;\r\n state.partner = undefined;\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCH_USER)) {\r\n state.isLoading.push(Loadings.FETCH_USER);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n\r\n if (Array.isArray(action.data)) {\r\n state.user = new BackofficeUser(action.data[0]);\r\n }\r\n else {\r\n state.user = new BackofficeUser(action.data);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_USER);\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_INVOICES_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCH_INVOICES)) {\r\n state.isLoading.push(Loadings.FETCH_INVOICES);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_INVOICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_INVOICES);\r\n state.invoices = action.data.items.map(invoice => new InvoicePartner(invoice));\r\n\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_INVOICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== Loadings.FETCH_INVOICES);\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_BACKOFFICE_USER_REQUEST:\r\n // if (!state.isLoading.includes(Loadings.FETCH_USER)) {\r\n // state.isLoading.push(Loadings.FETCH_USER);\r\n // }\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_BACKOFFICE_USER_SUCCESS:\r\n state.user.status = \"closed\";\r\n return { ...state };\r\n\r\n case ActionTypes.DELETE_BACKOFFICE_USER_FAILURE:\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_SERVICES_REQUEST:\r\n if (!state.isLoading.includes(`${Loadings.FETCH_SERVICES}`)) {\r\n state.isLoading.push(`${Loadings.FETCH_SERVICES}`);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.FETCH_BACKOFFICE_USER_SERVICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCH_SERVICES);\r\n\r\n if (action.data.length > 0) {\r\n action.data.forEach(s => {\r\n if (state.services.findIndex(sv => sv.id === s.id) === -1) {\r\n state.services.push(new Service(s));\r\n }\r\n });\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_SERVICES_DATA_REQUEST:\r\n if (!state.isLoading.includes(LoadingsFacilita.FETCHING_USER_SERVICES_DATA)) {\r\n state.isLoading.push(LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_SERVICES_DATA_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n state.serviceDatas = action.data;\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_SERVICES_DATA_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_USER_SERVICES_DATA);\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_USER_ADDRESS_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCHING_USER_ADDRESSES)) {\r\n state.isLoading.push(Loadings.FETCHING_USER_ADDRESSES);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_USER_ADDRESS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCHING_USER_ADDRESSES);\r\n if (action.data.length > 0 && action.data[0] !== undefined) {\r\n state.address = new Address(action.data[0]);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_REPRESENTATIVES_REQUEST:\r\n if (!state.isLoading.includes(Loadings.FETCH_REPRESENTATIVES)) {\r\n state.isLoading.push(Loadings.FETCH_REPRESENTATIVES);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_REPRESENTATIVES_SUCCESS:\r\n state.referents = action.data.map(r => new Referent(r));\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCH_REPRESENTATIVES);\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_REPRESENTATIVES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.FETCH_REPRESENTATIVES);\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_LETTERS_REQUEST:\r\n if (!state.isLoading.includes(LoadingsFacilita.FETCHING_USER_LETTERS + \"_\" + action.userId)) {\r\n state.isLoading.push(LoadingsFacilita.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_LETTERS_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_USER_LETTERS_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_USER_LETTERS + \"_\" + action.userId);\r\n state.userLetters = action.letters.map(l => new Letter(l));\r\n return { ...state };\r\n\r\n case ActionTypesUser.FETCH_DOCUMENTS_SUCCESS:\r\n if (action.data !== undefined && action.data.length > 0) {\r\n state.documents = action.data.map(d => new DocumentFile(d));\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.CREATE_DECLARATION_REQUEST:\r\n if (!state.isLoading.includes(LoadingsFacilita.CREATING_DECLARATION)) {\r\n state.isLoading.push(LoadingsFacilita.CREATING_DECLARATION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.CREATE_DECLARATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.CREATING_DECLARATION);\r\n\r\n state.declaration = new DeathDeclaration(action.data);\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.CREATE_DECLARATION_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.CREATING_DECLARATION);\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_DECLARATION_REQUEST:\r\n if (!state.isLoading.includes(LoadingsFacilita.FETCHING_DECLARATION)) {\r\n state.isLoading.push(LoadingsFacilita.FETCHING_DECLARATION);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_DECLARATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_DECLARATION);\r\n state.deathDate = new Date(action.data.deathDate);\r\n\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.FETCH_DECLARATION_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.FETCHING_DECLARATION);\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.REPRESENTATIVE_INVITATION_FAILURE:\r\n if (!state.isLoading.includes(LoadingsFacilita.INVITING_REPRESENTATIVE)) {\r\n state.isLoading.push(LoadingsFacilita.INVITING_REPRESENTATIVE);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.REPRESENTATIVE_INVITATION_SUCCESS:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.INVITING_REPRESENTATIVE);\r\n toast.success(ToasterText.inviteRepresentativeSuccess, toastConf);\r\n\r\n return { ...state };\r\n\r\n case ActionTypesFacilita.REPRESENTATIVE_INVITATION_FAILURE:\r\n state.isLoading = state.isLoading.filter(s => s !== LoadingsFacilita.INVITING_REPRESENTATIVE);\r\n toast.error(ToasterText.inviteRepresentativeFailed, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_BACKOFFICE_USER_REQUEST:\r\n if (!state.isLoading.includes(Loadings.UPDATE_USER)) {\r\n state.isLoading = state.isLoading.concat(Loadings.UPDATE_USER);\r\n }\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_BACKOFFICE_USER_SUCCESS:\r\n state.user = { ...state.user, isEnabled: false };\r\n\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.UPDATE_USER);\r\n toast.success(TextUser.dataUpdatedSuccess, toastConf);\r\n return { ...state };\r\n\r\n case ActionTypes.UPDATE_BACKOFFICE_USER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== Loadings.UPDATE_USER);\r\n toast.error(TextUser.dataUpdateFailed, toastConf);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_PARTNER)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_PARTNER);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_PARTNER);\r\n state.partner = new Partner(action.data);\r\n return { ...state };\r\n\r\n\r\n case PartnerActionTypes.FETCH_PARTNER_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_PARTNER);\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_REQUEST:\r\n if (!state.isLoading.includes(PartnerLoadings.FETCHING_ETABLISSEMENT)) {\r\n state.isLoading = state.isLoading.concat(PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n }\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n state.etablissement = action.data;\r\n return { ...state };\r\n\r\n case PartnerActionTypes.FETCH_ETABLISSEMENT_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PartnerLoadings.FETCHING_ETABLISSEMENT);\r\n return { ...state };\r\n\r\n default:\r\n return state;\r\n\r\n }\r\n};\r\n\r\nexport default UserBackOfficeDetailReducer;","export const FETCH_CLIENTS_INVOICES_REQUEST = 'FETCH_CLIENTS_INVOICES_REQUEST';\r\nexport const FETCH_CLIENTS_INVOICES_SUCCESS = 'FETCH_CLIENTS_INVOICES_SUCCESS';\r\nexport const FETCH_CLIENTS_INVOICES_FAILURE = 'FETCH_CLIENTS_INVOICES_FAILURE';\r\n\r\nexport const FETCH_ALL_CLIENTS_INVOICES_REQUEST = 'FETCH_ALL_CLIENTS_INVOICES_REQUEST';\r\nexport const FETCH_ALL_CLIENTS_INVOICES_SUCCESS = 'FETCH_ALL_CLIENTS_INVOICES_SUCCESS';\r\nexport const FETCH_ALL_CLIENTS_INVOICES_FAILURE = 'FETCH_ALL_CLIENTS_INVOICES_FAILURE';\r\n\r\nexport const FETCH_PARTNERS_INVOICES_REQUEST = 'FETCH_PARTNERS_INVOICES_REQUEST';\r\nexport const FETCH_PARTNERS_INVOICES_SUCCESS = 'FETCH_PARTNERS_INVOICES_SUCCESS';\r\nexport const FETCH_PARTNERS_INVOICES_FAILURE = 'FETCH_PARTNERS_INVOICES_FAILURE';\r\n\r\nexport const FETCH_ALL_PARTNERS_INVOICES_REQUEST = 'FETCH_ALL_PARTNERS_INVOICES_REQUEST';\r\nexport const FETCH_ALL_PARTNERS_INVOICES_SUCCESS = 'FETCH_ALL_PARTNERS_INVOICES_SUCCESS';\r\nexport const FETCH_ALL_PARTNERS_INVOICES_FAILURE = 'FETCH_ALL_PARTNERS_INVOICES_FAILURE';\r\n\r\nexport const FETCH_PARTNER_INVOICE_LINES_REQUEST = 'FETCH_PARTNER_INVOICE_LINES_REQUEST';\r\nexport const FETCH_PARTNER_INVOICE_LINES_SUCCESS = 'FETCH_PARTNER_INVOICE_LINES_SUCCESS';\r\nexport const FETCH_PARTNER_INVOICE_LINES_FAILURE = 'FETCH_PARTNER_INVOICE_LINES_FAILURE';\r\n\r\nexport const MARKPAID_PARTNER_INVOICE_REQUEST = 'MARKPAID_PARTNER_INVOICE_REQUEST';\r\nexport const MARKPAID_PARTNER_INVOICE_SUCCESS = 'MARKPAID_PARTNER_INVOICE_SUCCESS';\r\nexport const MARKPAID_PARTNER_INVOICE_FAILURE = 'MARKPAID_PARTNER_INVOICE_FAILURE';","export const FETCHING_CLIENTS_INVOICES = 'FETCHING_CLIENTS_INVOICES';\r\nexport const FETCHING_PARTNERS_INVOICES = 'FETCHING_PARTNERS_INVOICES';\r\nexport const FETCHING_ALL_CLIENTS_INVOICES = 'FETCHING_ALL_CLIENTS_INVOICES';\r\nexport const FETCHING_ALL_PARTNERS_INVOICES = 'FETCHING_ALL_PARTNERS_INVOICES';\r\nexport const FETCHING_PARTNER_LINES = 'FETCHING_PARTNER_LINES';\r\nexport const MARKINGPAID_PARTNER_INVOICE = 'MARKINGPAID_PARTNER_INVOICE';\r\n","import * as R from \"ramda\";\r\n\r\nexport default function PaymentInvoice(data) {\r\n let invoice = data || {};\r\n let recipientType = \"\";\r\n let issuerType = \"\";\r\n\r\n if (!R.isNil(invoice.partnerName) && R.isNil(invoice.etablissementName) && invoice.isDueToAssista) {\r\n recipientType = \"Partner\";\r\n } else if (!R.isNil(invoice.partnerName) && !R.isNil(invoice.etablissementName) && invoice.isDueToAssista) {\r\n recipientType = \"Etablissement\";\r\n }\r\n\r\n if (!R.isNil(invoice.partnerName) && R.isNil(invoice.etablissementName) && !invoice.isDueToAssista) {\r\n issuerType = \"Partner\";\r\n } else if (!R.isNil(invoice.partnerName) && !R.isNil(invoice.etablissementName) && !invoice.isDueToAssista) {\r\n issuerType = \"Etablissement\";\r\n }\r\n\r\n\r\n this.paid = invoice.paid;\r\n this.issuerId = invoice.issuerId;\r\n this.recipientName = invoice.recipientName;\r\n this.id = invoice.id;\r\n this.amount = invoice.amount;\r\n this.created = new Date(invoice.created);\r\n this.number = invoice.number;\r\n this.isDueToAssista = invoice.isDueToAssista;\r\n this.pdfUrl = invoice.pdfUrl;\r\n this.partnerName = invoice.partnerName;\r\n this.etablissementName = invoice.etablissementName;\r\n this.recipientType = recipientType;\r\n this.issuerType = issuerType;\r\n this.totalToPay = invoice.isDueToAssista ? 0 : invoice.amount;\r\n this.totalToBill = invoice.isDueToAssista ? invoice.amount : 0;\r\n this.status = invoice.status;\r\n\r\n\r\n}","export default function InvoiceLine(data) {\r\n let invoiceLine = data || {};\r\n\r\n const productName = {\r\n facilita: \"Ouverture dossier Facilita\",\r\n setupfee1: \"Ouverture dossier Anticipa\",\r\n setupfee4: \"Anticipa mensualité en 4 fois\",\r\n setupfee6: \"Anticipa mensualité en 6 fois\",\r\n annual: \"Suivi annuel\",\r\n trainingday: \"Journée de formation\",\r\n assistrh: \"Assist'RH\"\r\n };\r\n\r\n let total = 0;\r\n\r\n switch (invoiceLine.type) {\r\n case \"EtablissementReduced\":\r\n case \"EtablissementAnnualReduced\":\r\n case \"EtablissementTraining\":\r\n case \"PartnerTraining\":\r\n case \"UserAnnualReduced\":\r\n case \"AssistRh\":\r\n total = invoiceLine.currentPrice * invoiceLine.quantity;\r\n\r\n break;\r\n\r\n case \"BilledForEtablissementComission\":\r\n case \"BilledByEtablissementComission\":\r\n total = (invoiceLine.currentPrice * invoiceLine.quantity * invoiceLine.comissionEtablissement) / 100;\r\n\r\n break;\r\n\r\n case \"BilledForPartnerComission\":\r\n case \"BilledByPartnerComission\":\r\n total = (invoiceLine.currentPrice * invoiceLine.quantity * invoiceLine.comissionPartner) / 100;\r\n\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n this.basePrice = invoiceLine.basePrice;\r\n this.billedByPartner = invoiceLine.billedByPartner;\r\n this.comissionEtablissement = invoiceLine.comissionEtablissement;\r\n this.comissionPartner = invoiceLine.comissionPartner;\r\n this.currentPrice = invoiceLine.currentPrice;\r\n this.endDate = new Date(invoiceLine.endDate);\r\n this.startDate = new Date(invoiceLine.startDate);\r\n this.invoiceId = invoiceLine.invoiceId;\r\n this.priceId = invoiceLine.priceId;\r\n this.product = productName[invoiceLine.product.toLowerCase()];\r\n this.quantity = invoiceLine.quantity;\r\n this.recipientId = invoiceLine.recipientId;\r\n this.recipientType = invoiceLine.recipientType;\r\n this.reductionEtablissement = invoiceLine.reductionEtablissement;\r\n this.reductionPartner = invoiceLine.reductionPartner;\r\n this.taxRate = invoiceLine.taxRate;\r\n this.taxRateId = invoiceLine.taxRateId;\r\n this.type = invoiceLine.type;\r\n this.totalPrice = total;\r\n\r\n}","import * as PaymentActionTypes from '../../constants/actiontypes/backoffice/payments';\r\nimport * as PaymentLoadings from '../../constants/loadings/backoffice/payments';\r\nimport Partner from '../../constants/models/backoffice/partner';\r\n\r\nimport User from '../../constants/models/user';\r\nimport * as R from 'ramda';\r\nimport { toast } from 'react-toastify';\r\nimport toastConf from '../../utils/toasterConfiguration';\r\n\r\nimport * as ToasterText from '../../constants/toasterText/backofficePartners';\r\nimport PaymentInvoice from '../../constants/models/paymentInvoice';\r\nimport InvoiceLine from '../../constants/models/InvoiceLine';\r\n\r\n\r\n\r\nconst PaymentReducer = (state = {\r\n isLoading: [],\r\n partnersInvoices: undefined,\r\n clientsInvoices: undefined,\r\n partners: undefined,\r\n clients: undefined,\r\n clientNextPage: false,\r\n partnerNextPage: false,\r\n partnerInvoiceLines: undefined,\r\n\r\n\r\n}, action) => {\r\n switch (action.type) {\r\n\r\n case PaymentActionTypes.FETCH_CLIENTS_INVOICES_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.FETCHING_CLIENTS_INVOICES)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.FETCHING_CLIENTS_INVOICES);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_CLIENTS_INVOICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_CLIENTS_INVOICES);\r\n\r\n // if (action.data.items.length < 100) {\r\n // state.clientNextPage = false;\r\n // } else {\r\n // state.clientNextPage = true;\r\n // }\r\n\r\n // if (state.clientsInvoices) {\r\n // const moreClientInvoices = action.data.items.map(invoice => new PaymentInvoice(invoice));\r\n // state.clientsInvoices = [...moreClientInvoices];\r\n // } else {\r\n\r\n // state.clientsInvoices = action.data.items.map(invoice => new PaymentInvoice(invoice));\r\n // }\r\n\r\n state.clientsInvoices = action.data.items.map(user => new PaymentInvoice(user));\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_CLIENTS_INVOICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_CLIENTS_INVOICES);\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.FETCHING_ALL_CLIENTS_INVOICES)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.FETCHING_ALL_CLIENTS_INVOICES);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_ALL_CLIENTS_INVOICES);\r\n\r\n state.clients = action.data.items.map(user => new PaymentInvoice(user));\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_ALL_CLIENTS_INVOICES);\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNERS_INVOICES_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.FETCHING_PARTNERS_INVOICES)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.FETCHING_PARTNERS_INVOICES);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNERS_INVOICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_PARTNERS_INVOICES);\r\n\r\n // if (action.data.length < 100) {\r\n // state.partnerNextPage = false;\r\n // } else {\r\n // state.partnerNextPage = true;\r\n // }\r\n\r\n // if (state.partnersInvoices) {\r\n // const moreClientInvoices = action.data.items.map(invoice => new PaymentInvoice(invoice));\r\n // state.partnersInvoices = [...moreClientInvoices];\r\n // } else {\r\n\r\n // state.partnersInvoices = action.data.items.map(invoice => new PaymentInvoice(invoice));\r\n // }\r\n\r\n state.partnersInvoices = action.data.items.map(user => new PaymentInvoice(user));\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNERS_INVOICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_PARTNERS_INVOICES);\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.FETCHING_ALL_PARTNERS_INVOICES)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.FETCHING_ALL_PARTNERS_INVOICES);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_ALL_PARTNERS_INVOICES);\r\n\r\n state.partners = action.data.items.map(user => new PaymentInvoice(user));\r\n state.totalPages = action.data.totalPages;\r\n state.totalRecords = action.data.totalRecords;\r\n state.currentPage = action.data.pageNumber + 1;\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_ALL_PARTNERS_INVOICES);\r\n return { ...state };\r\n\r\n case PaymentActionTypes.MARKPAID_PARTNER_INVOICE_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.MARKINGPAID_PARTNER_INVOICE)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.MARKINGPAID_PARTNER_INVOICE);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.MARKPAID_PARTNER_INVOICE_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.MARKINGPAID_PARTNER_INVOICE);\r\n\r\n state.partnersInvoices = state.partnersInvoices.map(partner => {\r\n\r\n if (partner.id === action.partnerId) {\r\n partner.paid = action.data.paid;\r\n return partner;\r\n }\r\n return partner;\r\n });\r\n return { ...state };\r\n\r\n case PaymentActionTypes.MARKPAID_PARTNER_INVOICE_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.MARKINGPAID_PARTNER_INVOICE);\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_REQUEST:\r\n if (!state.isLoading.includes(PaymentLoadings.FETCHING_PARTNER_LINES)) {\r\n state.isLoading = state.isLoading.concat(PaymentLoadings.FETCHING_PARTNER_LINES);\r\n }\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_SUCCESS:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_PARTNER_LINES);\r\n\r\n state.partnerInvoiceLines = action.data.map(line => new InvoiceLine(line));\r\n\r\n return { ...state };\r\n\r\n case PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_FAILURE:\r\n state.isLoading = state.isLoading.filter(l => l !== PaymentLoadings.FETCHING_PARTNER_LINES);\r\n return { ...state };\r\n\r\n\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\nexport default PaymentReducer;\r\n//toast.success(Text.dataUpdatedSuccess, toastConf);","\r\n\r\nexport const CREATE_POSTAL_NUMBER_REQUEST = 'CREATE_POSTAL_NUMBER_REQUEST';\r\nexport const CREATE_POSTAL_NUMBER_SUCCESS = 'CREATE_POSTAL_NUMBER_SUCCESS';\r\nexport const CREATE_POSTAL_NUMBER_FAILURE = 'CREATE_POSTAL_NUMBER_FAILURE';\r\n\r\nexport const FETCH_PRICE_REQUEST = 'FETCH_PRICE_REQUEST';\r\nexport const FETCH_PRICE_SUCCESS = 'FETCH_PRICE_SUCCESS';\r\nexport const FETCH_PRICE_FAILURE = 'FETCH_PRICE_FAILURE';\r\n\r\nexport const UPDATE_PRICE_REQUEST = 'UPDATE_PRICE_REQUEST';\r\nexport const UPDATE_PRICE_SUCCESS = 'UPDATE_PRICE_SUCCESS';\r\nexport const UPDATE_PRICE_FAILURE = 'UPDATE_PRICE_FAILURE'; ","export const CREATING_POSTAL_NUMBER = 'CREATING_POSTAL_NUMBER';\r\nexport const FETCHING_PRICES = 'FETCHING_PRICES';\r\nexport const UPDATING_PRICES = 'UPDATING_PRICES';","export const addedSuccessfully = \"La nouvelle plage d'impressions a été ajoutée avec succès\";\r\nexport const tryAddAgain = \"Le plage d'impressions n'a pas été ajouté. Une erreur s'est produite, veuillez réessayer.\";\r\n\r\nexport const updatedSuccessfully = \"Le prix a été mis à jour avec succès\";\r\nexport const tryUpdateAgain = \"Le prix n'a pas été ajouté. Une erreur s'est produite, veuillez réessayer.\";","export const LifeEvents = {\r\n 0: \"Death\",\r\n 1: \"Relocation\",\r\n // 2: \"Majority\",\r\n // 3: \"Marriage\",\r\n // 4: \"Birth\",\r\n // 5: \"Divorce\"\r\n};\r\n\r\nexport const FrenchLifeEvents = (val) => {\r\n let value = \"\";\r\n switch (val) {\r\n case \"Death\":\r\n default:\r\n value = \"Succession\";\r\n break;\r\n case \"Relocation\":\r\n value = \"Déménagement\";\r\n break;\r\n case \"Majority\":\r\n value = \"Passage majorité\";\r\n break;\r\n case \"Marriage\":\r\n value = \"Mariage\";\r\n break;\r\n case \"Birth\":\r\n value = \"Naissance\";\r\n break;\r\n case \"Divorce\":\r\n value = \"Divorce\";\r\n break;\r\n }\r\n\r\n return value;\r\n}","import * as R from \"ramda\";\r\nimport { toast } from \"react-toastify\";\r\nimport * as ActionTypes from \"../../constants/actiontypes/services\";\r\nimport * as ActionTypesConfig from \"../../constants/actiontypes/backoffice/configuration\";\r\nimport * as Loadings from \"../../constants/loadings/service\";\r\nimport * as LoadingsConfig from \"../../constants/loadings/backoffice/configuration\";\r\n\r\nimport * as TextConfig from \"../../constants/toasterText/backofficeConfig\";\r\nimport * as TextService from \"../../constants/toasterText/services\";\r\n\r\nimport { LifeEvents } from \"../../constants/utils/lifeEvents\";\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nconst ConfigurationReducer = (\r\n\tstate = {\r\n\t\tisLoading: [],\r\n\t\tservices: undefined,\r\n\t\tprices: undefined,\r\n\t\tserviceType: \"\",\r\n\t\tlifeEvent: \"Death\",\r\n\t\ttotalPages: 0,\r\n\t\ttotalRecords: 0,\r\n\t\tcurrentPage: 0,\r\n\t},\r\n\taction\r\n) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.FETCH_SERVICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.FETCHING_SERVICES)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.FETCHING_SERVICES);\r\n\t\t\t}\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_SERVICES_SUCCESS:\r\n\t\t\t// if (action.data.length < 100) {\r\n\t\t\t// state.nextPage = false;\r\n\t\t\t// } else {\r\n\t\t\t// state.nextPage = true;\r\n\t\t\t// }\r\n\r\n\t\t\t// let allBranches = [];\r\n\t\t\t// action.data.forEach(d => {\r\n\t\t\t// if (d.branches.length > 0) {\r\n\t\t\t// const branche = d.branches.forEach(b => {\r\n\t\t\t// allBranches.push({ ...d, branches: b, address: b.address.addressLocality, branchName: b.name });\r\n\t\t\t// });\r\n\r\n\t\t\t// }\r\n\t\t\t// });\r\n\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.FETCHING_SERVICES);\r\n\t\t\tstate.services = action.data.items.map((s) => {\r\n\t\t\t\ts.streetAddress = s.address?.streetAddress;\r\n\t\t\t\treturn s;\r\n\t\t\t});\r\n\t\t\tstate.serviceType = action.serviceType;\r\n\t\t\tstate.lifeEvent = action.data.items.length > 0 ? LifeEvents[action.data.items[0].lifeEvent] : \"Death\";\r\n\r\n\t\t\tstate.totalPages = action.data.totalPages;\r\n\t\t\tstate.totalRecords = action.data.totalRecords;\r\n\t\t\tstate.currentPage = action.data.pageNumber + 1;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.FETCH_SERVICES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.FETCHING_SERVICES);\r\n\t\t\tstate.services = [];\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_SERVICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.CREATING_SERVICE)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.CREATING_SERVICE);\r\n\t\t\t}\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_SERVICES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.CREATING_SERVICE);\r\n\t\t\tlet newService = { ...action.data };\r\n\t\t\tnewService.streetAddress = newService.address.streetAddress;\r\n\t\t\tif (action.serviceType === state.serviceType && LifeEvents[newService.lifeEvent] === state.lifeEvent) {\r\n\t\t\t\tstate.services = [...state.services, newService];\r\n\t\t\t}\r\n\r\n\t\t\ttoast.success(TextService.addedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.CREATE_SERVICES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.CREATING_SERVICE);\r\n\t\t\ttoast.error(TextService.tryAddAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_SERVICES_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.UPDATING_SERVICE)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.UPDATING_SERVICE);\r\n\t\t\t}\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_SERVICES_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATING_SERVICE);\r\n\t\t\tstate.services = state.services.map((s) => {\r\n\t\t\t\tif (s.id === action.data.id) {\r\n\t\t\t\t\treturn action.data;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t});\r\n\r\n\t\t\tif (action.serviceType !== state.serviceType || LifeEvents[action.data.lifeEvent] !== state.lifeEvent) {\r\n\t\t\t\tstate.services = state.services.filter((s) => s.id !== action.data.id);\r\n\t\t\t}\r\n\r\n\t\t\ttoast.success(TextService.updatedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.UPDATE_SERVICES_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.UPDATING_SERVICE);\r\n\t\t\ttoast.error(TextService.tryUpdateAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_SERVICE_BY_ID_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(Loadings.DELETING_SERVICE)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(Loadings.DELETING_SERVICE);\r\n\t\t\t}\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_SERVICE_BY_ID_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.DELETING_SERVICE);\r\n\t\t\tstate.services = state.services.map((s) => {\r\n\t\t\t\tif (s.id === action.data.id) {\r\n\t\t\t\t\treturn action.data;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t});\r\n\r\n\t\t\tif (action.service?.serviceType !== state.serviceType || LifeEvents[action.service?.lifeEvent] !== state.lifeEvent) {\r\n\t\t\t\tstate.services = state.services.filter((s) => s.id !== action.service.id);\r\n\t\t\t}\r\n\r\n\t\t\ttoast.success(TextService.deletedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.DELETE_SERVICE_BY_ID_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== Loadings.DELETING_SERVICE);\r\n\t\t\ttoast.error(TextService.tryDeleteAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypes.RESET_SERVICES:\r\n\t\t\tstate.services = [];\r\n\t\t\tstate.serviceType = \"\";\r\n\t\t\tstate.lifeEvent = \"Death\";\r\n\t\t\tstate.totalPages = 0;\r\n\t\t\tstate.totalRecords = 0;\r\n\t\t\tstate.currentPage = 0;\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.CREATE_POSTAL_NUMBER_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(LoadingsConfig.CREATING_POSTAL_NUMBER)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(LoadingsConfig.CREATING_POSTAL_NUMBER);\r\n\t\t\t}\r\n\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.CREATE_POSTAL_NUMBER_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.CREATING_POSTAL_NUMBER);\r\n\t\t\ttoast.success(TextConfig.addedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.CREATE_POSTAL_NUMBER_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.CREATING_POSTAL_NUMBER);\r\n\t\t\ttoast.error(TextConfig.tryAddAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.FETCH_PRICE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(LoadingsConfig.FETCHING_PRICES)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(LoadingsConfig.FETCHING_PRICES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.FETCH_PRICE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.FETCHING_PRICES);\r\n\t\t\tstate.prices = action.data.reduce((acc, product) => {\r\n\t\t\t\tacc[product.product.toLowerCase()] = product;\r\n\t\t\t\treturn acc;\r\n\t\t\t}, {});\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.FETCH_PRICE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.FETCHING_PRICES);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.UPDATE_PRICE_REQUEST:\r\n\t\t\tif (!state.isLoading.includes(LoadingsConfig.UPDATING_PRICES)) {\r\n\t\t\t\tstate.isLoading = state.isLoading.concat(LoadingsConfig.UPDATING_PRICES);\r\n\t\t\t}\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.UPDATE_PRICE_SUCCESS:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.UPDATING_PRICES);\r\n\t\t\tconst newPrices = { ...state.prices };\r\n\t\t\tnewPrices[action.data.product.toLowerCase()] = action.data;\r\n\t\t\tstate.prices = { ...newPrices };\r\n\t\t\ttoast.success(TextConfig.updatedSuccessfully, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tcase ActionTypesConfig.UPDATE_PRICE_FAILURE:\r\n\t\t\tstate.isLoading = state.isLoading.filter((l) => l !== LoadingsConfig.UPDATING_PRICES);\r\n\t\t\ttoast.error(TextConfig.tryUpdateAgain, toastConf);\r\n\t\t\treturn { ...state };\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\nexport default ConfigurationReducer;\r\n","import { connectRouter } from 'connected-react-router';\r\nimport { combineReducers } from 'redux';\r\nimport auth from './auth';\r\nimport user from './user';\r\nimport services from './services';\r\nimport referent from './referent';\r\nimport facilita from './facilita';\r\nimport ImpressionReducer from './backoffice/impression';\r\nimport PartnersBackofficeReducer from './backoffice/partners';\r\nimport DossiersBackofficeReducer from './backoffice/dossiers';\r\nimport ClientsBackofficerReducer from './backoffice/clients';\r\nimport facilitaDeathDeclaration from './facilita/deathDeclaration';\r\nimport RelocationDeclarationReducer from \"./events/relocationDeclaration\";\r\n\r\nimport PartnerReducer from './partner';\r\nimport UserBackOfficeDetailReducer from './backoffice/user';\r\nimport PaymentReducer from './backoffice/payments';\r\nimport ConfigurationReducer from './backoffice/configuration';\r\n\r\n\r\nconst Reducer = (history) => {\r\n if (history.location.pathname.startsWith(\"/auth/referent\")) {\r\n return combineReducers({\r\n router: connectRouter(history),\r\n referent\r\n });\r\n }\r\n\r\n if (history.location.pathname.startsWith(\"/backoffice\")) {\r\n let reducers = {\r\n impressionReducer: ImpressionReducer,\r\n partnersReducer: PartnersBackofficeReducer,\r\n dossiersReducer: DossiersBackofficeReducer,\r\n clientsReducer: ClientsBackofficerReducer,\r\n paymentReducer: PaymentReducer,\r\n userBackOfficeDetailReducer: UserBackOfficeDetailReducer,\r\n configurationReducer: ConfigurationReducer,\r\n user,\r\n auth\r\n };\r\n\r\n reducers.router = connectRouter(history);\r\n return combineReducers(reducers);\r\n }\r\n\r\n if (history.location.pathname.startsWith(\"/partner\")) {\r\n let reducers = {\r\n partnerReducer: PartnerReducer,\r\n user,\r\n auth\r\n };\r\n\r\n reducers.router = connectRouter(history);\r\n return combineReducers(reducers);\r\n }\r\n\r\n if (history.location.pathname.startsWith(\"/facilita\")) {\r\n let reducers = {\r\n facilita,\r\n deathDeclaration: facilitaDeathDeclaration,\r\n user\r\n };\r\n\r\n // var pattern = /^\\/facilita\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/declarer\\/\\w*/i;\r\n // if(pattern.test(history.location.pathname) === true){\r\n // reducers = {...reducers, deathDeclaration: facilitaDeathDeclaration}; \r\n // }\r\n\r\n reducers.router = connectRouter(history);\r\n return combineReducers(reducers);\r\n }\r\n\r\n return combineReducers({\r\n\t\trouter: connectRouter(history),\r\n\t\trelocationDeclaration: RelocationDeclarationReducer,\r\n\t\tauth,\r\n\t\tuser,\r\n\t\tservices,\r\n\t});\r\n\r\n};\r\nexport default Reducer;","import { createBrowserHistory } from 'history';\r\n\r\nexport default createBrowserHistory();","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' }\r\n })\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready\r\n .then(registration => {\r\n registration.unregister();\r\n })\r\n .catch(error => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","export default __webpack_public_path__ + \"static/media/assista_horizontal-punchout.b1607d04.svg\";","import React, { Component } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { connect } from 'react-redux';\r\n\r\nimport logo from './../assets/images/brand/assista_horizontal-punchout.svg';\r\n\r\nclass Navbar extends Component {\r\n render() {\r\n return (\r\n
\r\n
\r\n \r\n \"Assist@\"\r\n

Assist@: Menu

\r\n \r\n \r\n \r\n
\r\n
\r\n )\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n example: state.example,\r\n });\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Navbar);","import React, { Component } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { connect } from 'react-redux';\r\n\r\nclass Footer extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Footer);\r\n","export default __webpack_public_path__ + \"static/media/photo-woman.b527da69.jpeg\";","export default __webpack_public_path__ + \"static/media/landigCTA.4d70eab3.png\";","import * as ActionTypes from '../constants/actiontypes/auth';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../constants/webapi/auth';\r\n\r\nexport function authenticateUser(credentials){\r\n return (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.AUTH_USER_REQUEST, credentials: credentials.userName });\r\n\t\treturn axios.post(urls.authenticationUrl(), credentials)\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.AUTH_USER_SUCCESS,\r\n\t\t\t\tdata: response.data\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif(error.response !== undefined && error.response.status === 423){\r\n\t\t\t\treturn \"Locked\";\r\n\t\t\t}\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.AUTH_USER_FAILURE,\r\n\t\t\t\tresponse: error.response\r\n\t\t\t});\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n\t};\r\n}\r\n\r\nexport function sendMfaCode(token){\r\n return (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.SEND_MFA_CODE_REQUEST, token: token });\r\n\t\treturn axios.post(urls.authenticationTwoFactorUrl(), {twoFactorAuthenticationToken: token})\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.SEND_MFA_CODE_SUCCESS,\r\n\t\t\t\tdata: response.data\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.SEND_MFA_CODE_FAILURE,\r\n\t\t\t\tresponse: error.response\r\n\t\t\t});\r\n\t\t});\r\n\t};\r\n}\r\n\r\nexport function sendOTPCode(phoneNumber){\r\n return (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios.post(urls.sendOTPUrl(), {phoneNumber: phoneNumber})\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\tdata: response.data\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\treason: error.response.status\r\n\t\t\t});\r\n\t\t});\r\n\t};\r\n}\r\n\r\nexport function verifyOTPCode(phoneNumber, otpCode){\r\n return (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode:otpCode });\r\n\t\treturn axios.post(urls.verifyOTPUrl(), {phoneNumber: phoneNumber, otpCode: otpCode})\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\tdata: response.data\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\tresponse: error.response\r\n\t\t\t});\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n\t};\r\n}\r\n\r\nexport function registerUser(credentials){\r\n return (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.REGISTER_USER_REQUEST, credentials: credentials.phoneNumber });\r\n\t\treturn axios.post(urls.registerUserUrl(), credentials)\r\n\t\t.then((response) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.REGISTER_USER_SUCCESS,\r\n\t\t\t\tdata: response.data\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tdispatch({\r\n\t\t\t\ttype: ActionTypes.REGISTER_USER_FAILURE,\r\n\t\t\t\tresponse: error.response\r\n\t\t\t});\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n\t};\r\n}\r\n\r\nexport function resetAuth() { return (dispatch) => { dispatch({ type: ActionTypes.RESET_AUTH_STATE }); }; };\r\n\r\n//#region ResetPassword\r\nexport function resetPassword(email, phoneNumber) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.RESET_PASSWORD_REQUEST});\r\n\t\treturn axios.post(urls.resetPasswordEmail(), {email, phoneNumber})\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.RESET_PASSWORD_SUCCESS\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.RESET_PASSWORD_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t})\r\n\t};\r\n}\r\n\r\nexport function setNewPasswordFromReset(userId, token, password){\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.SET_NEWPASSWORD_REQUEST});\r\n\t\treturn axios.post(urls.setNewPassword(userId), {ResetPasswordToken: decodeURIComponent(token), NewPassword: password})\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.SET_NEWPASSWORD_SUCCESS\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.SET_NEWPASSWORD_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t})\r\n\t};\r\n}\r\n//#endregion\r\n","import React, { Component } from 'react';\r\nimport { connect, useDispatch } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\n\r\nimport Navbar from './navbar';\r\nimport Footer from './footer';\r\n\r\nimport landigCTA from './../assets/images/placeholder/landigCTA.png';\r\nimport photoWoman from './../assets/images/placeholder/photo-woman.jpeg';\r\nimport { resetUser } from '../actions/user-api';\r\nimport { resetAuth } from '../actions/auth-api';\r\n\r\nexport const Landing = () => {\r\n const dispatch = useDispatch();\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n }\r\n\r\n window.location = \"https://www.assistarobase.fr\";\r\n return '';\r\n\r\n return (\r\n
\r\n

Assist@

\r\n \r\n
\r\n

Assist@: Main

\r\n
\r\n
\r\n
\r\n

Accompagnement et aide à la gestion des formalités

\r\n

Préparer vos démarches c'est faciliter demain

\r\n
\r\n Accès partenaires\r\n Créer un compte\r\n
\r\n
\r\n
\r\n \"Call\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\t);\r\n};","export const DepartamentsList = [\"01 : Ain\",\r\n\"02 : Aisne\",\r\n\"03 : Allier\",\r\n\"04 : Alpes-de-Haute-Provence\",\r\n\"05 : Hautes-Alpes\",\r\n\"06 : Alpes-Maritimes\",\r\n\"07 : Ardèche\",\r\n\"08 : Ardennes\",\r\n\"09 : Ariège\",\r\n\"10 : Aube\",\r\n\"11 : Aude\",\r\n\"12 : Aveyron\",\r\n\"13 : Bouches-du-Rhône\",\r\n\"14 : Calvados\",\r\n\"15 : Cantal\",\r\n\"16 : Charente\",\r\n\"17 : Charente-Maritime\",\r\n\"18 : Cher\",\r\n\"19 : Corrèze\",\r\n\"2A : Corse-du-Sud\",\r\n\"2B : Haute-Corse\",\r\n\"21 : Côte-d'Or\",\r\n\"22 : Côtes-d'Armor\",\r\n\"23 : Creuse\",\r\n\"24 : Dordogne\",\r\n\"25 : Doubs\",\r\n\"26 : Drôme\",\r\n\"27 : Eure\",\r\n\"28 : Eure-et-Loir\",\r\n\"29 : Finistère\",\r\n\"30 : Gard\",\r\n\"31 : Haute-Garonne\",\r\n\"32 : Gers\",\r\n\"33 : Gironde\",\r\n\"34 : Hérault\",\r\n\"35 : Ille-et-Vilaine\",\r\n\"36 : Indre\",\r\n\"37 : Indre-et-Loire\",\r\n\"38 : Isère\",\r\n\"39 : Jura\",\r\n\"40 : Landes\",\r\n\"41 : Loir-et-Cher\",\r\n\"42 : Loire\",\r\n\"43 : Haute-Loire\",\r\n\"44 : Loire-Atlantique\",\r\n\"45 : Loiret\",\r\n\"46 : Lot\",\r\n\"47 : Lot-et-Garonne\",\r\n\"48 : Lozère\",\r\n\"49 : Maine-et-Loire\",\r\n\"50 : Manche\",\r\n\"51 : Marne\",\r\n\"52 : Haute-Marne\",\r\n\"53 : Mayenne\",\r\n\"54 : Meurthe-et-Moselle\",\r\n\"55 : Meuse\",\r\n\"56 : Morbihan\",\r\n\"57 : Moselle\",\r\n\"58 : Nièvre\",\r\n\"59 : Nord\",\r\n\"60 : Oise\",\r\n\"61 : Orne\",\r\n\"62 : Pas-de-Calais\",\r\n\"63 : Puy-de-Dôme\",\r\n\"64 : Pyrénées-Atlantiques\",\r\n\"65 : Hautes-Pyrénées\",\r\n\"66 : Pyrénées-Orientales\",\r\n\"67 : Bas-Rhin\",\r\n\"68 : Haut-Rhin\",\r\n\"69D : Rhône\",\r\n\"69M : Métropole de Lyon\",\r\n\"70 : Haute-Saône\",\r\n\"71 : Saône-et-Loire\",\r\n\"72 : Sarthe\",\r\n\"73 : Savoie\",\r\n\"74 : Haute-Savoie\",\r\n\"75 : Paris\",\r\n\"76 : Seine-Maritime\",\r\n\"77 : Seine-et-Marne\",\r\n\"78 : Yvelines\",\r\n\"79 : Deux-Sèvres\",\r\n\"80 : Somme\",\r\n\"81 : Tarn\",\r\n\"82 : Tarn-et-Garonne\",\r\n\"83 : Var\",\r\n\"84 : Vaucluse\",\r\n\"85 : Vendée\",\r\n\"86 : Vienne\",\r\n\"87 : Haute-Vienne\",\r\n\"88 : Vosges\",\r\n\"89 : Yonne\",\r\n\"90 : Territoire de Belfort\",\r\n\"91 : Essonne\",\r\n\"92 : Hauts-de-Seine\",\r\n\"93 : Seine-Saint-Denis\",\r\n\"94 : Val-de-Marne\",\r\n\"95 : Val-d'Oise\",\r\n\"971 : Guadeloupe\",\r\n\"972 : Martinique\",\r\n\"973 : Guyane\",\r\n\"974 : La Réunion\",\r\n\"975 : Saint-Pierre-et-Miquelon\",\r\n\"976 : Mayotte\",\r\n\"977 : Saint-Barthélemy\",\r\n\"978 : Saint-Martin\",\r\n\"984 : Terres australes et antarctiques françaises\",\r\n\"986 : Wallis-et-Futuna\",\r\n\"987 : Polynésie française\",\r\n\"988 : Nouvelle-Calédonie\"];","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nexport const DeleteModal = (userID) => {\r\n const user = useSelector(state => state.user);\r\n const [widthIsBigger, setWidthIsBigger] = useState(false);\r\n useEffect(() => {\r\n if (!R.isNil(user.profilePicture)) {\r\n let i = new Image();\r\n i.onload = function () {\r\n setWidthIsBigger(i.width > i.height);\r\n };\r\n i.src = user.profilePicture;\r\n }\r\n }, [user.profilePicture]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Supprimer

\r\n
\r\n
Supprimer compte
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {!R.isNil(user.profilePicture) ?\r\n \"avatar\"\r\n :\r\n \r\n }\r\n
\r\n
Etes-vous sûr(e) de vouloir supprimer la compte \"{R.isNil(user) ? '' : user.user.firstName} {R.isNil(user) ? '' : user.user.lastName}\"?
\r\n
Cette action est irréversible.
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","import React, { useEffect, useRef, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\nimport * as R from \"ramda\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\n\r\nimport celibataireW from \"./../../assets/images/svg/001-W-celibataire.svg\";\r\nimport unionsW from \"./../../assets/images/svg/001-W-unions.svg\";\r\nimport divorceeW from \"./../../assets/images/svg/001-W-divorcee.svg\";\r\nimport veuveW from \"./../../assets/images/svg/001-W-veuve.svg\";\r\n\r\nimport celibataireM from \"./../../assets/images/svg/001-M-celibataire.svg\";\r\nimport unionsM from \"./../../assets/images/svg/001-M-unions.svg\";\r\nimport divorceeM from \"./../../assets/images/svg/001-M-divorcee.svg\";\r\nimport veuveM from \"./../../assets/images/svg/001-M-veuve.svg\";\r\n\r\nimport children from \"./../../assets/images/svg/002-children.svg\";\r\nimport noChildren from \"./../../assets/images/svg/002-nochildren.svg\";\r\nimport pets from \"./../../assets/images/svg/003-pets.png\";\r\nimport noPets from \"./../../assets/images/svg/003-nopets.png\";\r\nimport appartement from \"./../../assets/images/svg/090-flats.svg\";\r\nimport maison from \"./../../assets/images/svg/069-home.svg\";\r\nimport palace from \"./../../assets/images/svg/093-palace.svg\";\r\nimport hotel from \"./../../assets/images/svg/087-hotel.svg\";\r\nimport peniche from \"./../../assets/images/svg/091-house-2.svg\";\r\nimport divers from \"./../../assets/images/svg/092-camping-tent.svg\";\r\nimport retraite from \"./../../assets/images/svg/111-rocking-chair.png\";\r\nimport activite from \"./../../assets/images/svg/035-id-card.svg\";\r\nimport pole from \"./../../assets/images/svg/066-job-interview.svg\";\r\nimport autre from \"./../../assets/images/svg/034-clipboard.svg\";\r\nimport university from \"./../../assets/images/svg/146-university.png\";\r\nimport { RegexFields } from \"../../constants/utils/regexFields\";\r\nimport { updateUser, addUserAddress, updateAddress, updateOnBoardingStep } from \"../../actions/user-api\";\r\nimport { ProfessionOptions } from \"../../constants/utils/connectionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { DateWithModal } from \"../dateWithModal\";\r\nimport { DepartamentsList } from \"./departamentsList\";\r\nimport countryTelData from \"country-telephone-data\";\r\nimport { DeleteModal } from \"./deleteModal\";\r\nimport * as Loadings from \"../../constants/loadings/user\";\r\nimport queryString from \"query-string\";\r\n\r\nexport const Personal = ({ personalDataRequirements, setPersonalDataRequirements, isSettings, setSelectedGender, inModal }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\t// const credentialsForm = useRef(null);\r\n\tconst history = useHistory();\r\n\tconst civilForm = useRef(null);\r\n\tconst familyForm = useRef(null);\r\n\tconst childrenForm = useRef(null);\r\n\tconst petsForm = useRef(null);\r\n\tconst assetForm = useRef(null);\r\n\tconst professionForm = useRef(null);\r\n\r\n\tconst router = useSelector((state) => state.router);\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\t// const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\tconst [credentials, setCredentials] = useState({\r\n\t\temail: \"\",\r\n\t\tpassword: \"\",\r\n\t\tconfirmPassword: \"\",\r\n\t\tphoneNumber: \"\",\r\n\t\totpCode: \"\",\r\n\t\tcountryCode: \"+33\",\r\n\t});\r\n\r\n\tfunction updateCredentials() {\r\n\t\tlet number = undefined;\r\n\t\tlet dialCode = undefined;\r\n\r\n\t\tif (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber) && user.user.phoneNumber !== \"\") {\r\n\t\t\tlet i = 1;\r\n\t\t\tlet tmpPhone = user.user.phoneNumber.slice(1);\r\n\t\t\twhile (R.isNil(dialCode) && i < tmpPhone.length) {\r\n\t\t\t\tlet country = countryTelData.allCountries.find((c) => c.dialCode === tmpPhone.slice(0, i));\r\n\t\t\t\tif (!R.isNil(country)) {\r\n\t\t\t\t\tdialCode = country.dialCode;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\r\n\t\t\tnumber = tmpPhone.slice(dialCode.length);\r\n\t\t}\r\n\t\tsetCredentials({\r\n\t\t\t...credentials,\r\n\t\t\temail: !R.isNil(user.user) && !R.isNil(user.user.email) && user.user.email !== \"\" ? user.user.email : \"\",\r\n\t\t\tphoneNumber: !R.isNil(number) ? number.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") : \"\",\r\n\t\t\tcountryCode: !R.isNil(dialCode) ? \"+\" + dialCode : \"+33\",\r\n\t\t});\r\n\t}\r\n\r\n\t//civil\r\n\tconst [personalData, setPersonalData] = useState({\r\n\t\tgender: !R.isNil(user.user) && !R.isNil(user.user.gender) ? user.user.gender : undefined,\r\n\t\tfirstName: !R.isNil(user.user) && !R.isNil(user.user.firstName) ? user.user.firstName : \"\",\r\n\t\tlastName: !R.isNil(user.user) && !R.isNil(user.user.lastName) ? user.user.lastName : \"\",\r\n\t\tbirthDate: !R.isNil(user.user) && !R.isNil(user.user.birthDate) ? user.user.birthDate : undefined,\r\n\t\tbirthPlace: !R.isNil(user.user) && !R.isNil(user.user.birthPlace) ? user.user.birthPlace : \"\",\r\n\t\tdepNumber: !R.isNil(user.user) && !R.isNil(user.user.departmentNumber) ? user.user.departmentNumber : \"\",\r\n\t\tcountry: !R.isNil(user.user) && !R.isNil(user.user.country) && user.user.country !== \"\" ? user.user.country : \"FR\",\r\n\t});\r\n\r\n\t//contact\r\n\tconst [asset, setAsset] = useState({\r\n\t\taddress: !R.isNil(user.address) && !R.isNil(user.address.addressLine1) ? user.address.addressLine1 : \"\",\r\n\t\ttype: !R.isNil(user.address) && !R.isNil(user.address.addressContract) ? user.address.addressContract : undefined,\r\n\t\testateType: !R.isNil(user.address) && !R.isNil(user.address.addressType) ? user.address.addressType : undefined,\r\n\t\tcity: !R.isNil(user.address) && !R.isNil(user.address.city) ? user.address.city : \"\",\r\n\t\tcountry: !R.isNil(user.address) && !R.isNil(user.address.country) ? user.address.country : \"FR\",\r\n\t\tzipCode: !R.isNil(user.address) && !R.isNil(user.address.postalCode) ? user.address.postalCode : \"\",\r\n\t\tphone: !R.isNil(user.address) && !R.isNil(user.address.phoneNumber) ? user.address.phoneNumber : \"\",\r\n\t\t// mobile: !R.isNil(user.user) && !R.isNil(user.user) ? user.user.phoneNumber : ''\r\n\t});\r\n\r\n\t//family\r\n\tconst [family, setFamily] = useState(!R.isNil(user.user) && !R.isNil(user.user.civilStatus) ? user.user.civilStatus : undefined);\r\n\r\n\t//children\r\n\tconst [childrenSelected, setChildrenSelected] = useState(!R.isNil(user.user) && !R.isNil(user.user.hasChildren) ? user.user.hasChildren : undefined);\r\n\r\n\t//pets\r\n\tconst [petsSelected, setPetsSelected] = useState(!R.isNil(user.user) && !R.isNil(user.user.hasPets) ? user.user.hasPets : undefined);\r\n\r\n\t//profession\r\n\tconst [professionSelected, setProfessionSelected] = useState(!R.isNil(user.user) && !R.isNil(user.user.professionalSituation) ? user.user.professionalSituation : []);\r\n\r\n\tconst familyStatusText = {\r\n\t\tmarried: { Male: \"Marié\", Female: \"Mariée\" },\r\n\t\tdivorced: { Male: \"Divorcé\", Female: \"Divorcée\" },\r\n\t\twidow: { Male: \"Veuf\", Female: \"Veuve\" },\r\n\t\tcivilUnion: { Male: \"Pacsé\", Female: \"Pacsée\" },\r\n\t};\r\n\r\n\t//#region etat civil\r\n\tconst gender = { male: \"Male\", female: \"Female\" };\r\n\r\n\tfunction isCompleteSectionCivil() {\r\n\t\tlet isFrance = personalData.country === \"FR\" || personalData.country === \"GF\" || personalData.country === \"PF\" || personalData.country === \"TF\" || personalData.country === null;\r\n\t\tlet skipSet = false;\r\n\t\tif (personalData.firstName !== \"\" && personalData.lastName !== \"\" && personalData.birthDate !== undefined && personalData.gender !== undefined && personalDataRequirements.civil === false) {\r\n\t\t\tif (isFrance && (personalData.depNumber === \"\" || personalData.birthPlace === \"\")) {\r\n\t\t\t\tskipSet = true;\r\n\t\t\t}\r\n\t\t\tif (skipSet === false) {\r\n\t\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, civil: true });\r\n\t\t\t}\r\n\t\t} else if ((personalData.firstName === \"\" || personalData.lastName === \"\" || personalData.birthDate === undefined || personalData.gender === undefined || (isFrance && (personalData.depNumber === \"\" || personalData.birthPlace === \"\"))) && personalDataRequirements.civil === true) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, civil: false });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\t//#region family\r\n\tconst familyOptions = { celibataire: \"Single\", mariee: \"Married\", divorcee: \"Divorced\", veuve: \"Widowed\", libre: \"FreeUnion\", civilUnion: \"CivilUnion\" };\r\n\tfunction isCompleteSectionFamily() {\r\n\t\tif (family !== undefined && personalDataRequirements.familiar === false) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, familiar: true });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\t//#region children\r\n\tconst childrenOptions = { noChildren: false, hasChildren: true };\r\n\tfunction isCompleteSectionChildren() {\r\n\t\tif (childrenSelected !== undefined && personalDataRequirements.children === false) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, children: true });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\t//#region pets\r\n\tconst petsOptions = { noPets: false, hasPets: true };\r\n\tfunction isCompleteSectionPets() {\r\n\t\tif (petsSelected !== undefined && personalDataRequirements.pets === false) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, pets: true });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\t//#region contact\r\n\tconst assetTypeOptions = { owner: \"Owner\", tenant: \"Tenant\", other: \"Other\" };\r\n\tconst estateType = { appartement: \"Apartment\", house: \"House\", castel: \"Castle\", hotel: \"Hotel\", boat: \"Houseboat\", camp: \"Other\" };\r\n\tfunction isCompleteSectionContact() {\r\n\t\tlet assetNotNull = !R.isNil(asset) && !R.isNil(asset.type) && !R.isNil(asset.estateType) && asset.address !== \"\" && asset.zipCode !== \"\" && asset.city !== \"\" && asset.country !== \"\";\r\n\t\tif (assetNotNull === true && personalDataRequirements.contact === false) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, contact: true });\r\n\t\t} else if (assetNotNull === false && personalDataRequirements.contact === true) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, contact: false });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\t//#region profession\r\n\tfunction isCompleteSectionProfession() {\r\n\t\tif (professionSelected.length !== 0 && personalDataRequirements.profession === false) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, profession: true });\r\n\t\t} else if (professionSelected.length === 0 && personalDataRequirements.profession === true) {\r\n\t\t\tsetPersonalDataRequirements({ ...personalDataRequirements, profession: false });\r\n\t\t}\r\n\t}\r\n\t//#endregion\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionCivil();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [personalData]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionFamily();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [family]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionChildren();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [childrenSelected]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionPets();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [petsSelected]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionProfession();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [professionSelected]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionContact();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [asset]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.user)) {\r\n\t\t\tlet firstName = user.user.firstName;\r\n\t\t\tlet lastName = user.user.lastName;\r\n\t\t\tconst parsedQueryString = queryString.parse(window.location.search);\r\n\t\t\tif (!R.isNil(parsedQueryString.acr_values) && parsedQueryString.acr_values.startsWith(\"signup:\")) {\r\n\t\t\t\tconst token = parsedQueryString.acr_values.replace(\"signup:\", \"\");\r\n\t\t\t\tconst tokenParts = token.split(\".\");\r\n\t\t\t\tif (tokenParts.length === 3) {\r\n\t\t\t\t\tconst tokenPayloadString = atob(decodeURI(tokenParts[1]));\r\n\t\t\t\t\tconst tokenPayload = JSON.parse(tokenPayloadString);\r\n\t\t\t\t\tfirstName = tokenPayload.FirstName;\r\n\t\t\t\t\tlastName = tokenPayload.LastName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetPersonalData({\r\n\t\t\t\t...personalData,\r\n\t\t\t\tgender: user.user.gender,\r\n\t\t\t\tfirstName: firstName,\r\n\t\t\t\tlastName: lastName,\r\n\t\t\t\tbirthDate: user.user.birthDate,\r\n\t\t\t\tbirthPlace: user.user.birthPlace,\r\n\t\t\t\tdepNumber: user.user.departmentNumber,\r\n\t\t\t\tcountry: user.user.country,\r\n\t\t\t});\r\n\t\t\tsetFamily(user.user.civilStatus);\r\n\t\t\tsetChildrenSelected(!!user.user.hasChildren);\r\n\t\t\tsetPetsSelected(!!user.user.hasPets);\r\n\t\t\tsetProfessionSelected(user.user.professionalSituation || []);\r\n\t\t\t// dispatch(getUserAddress(tmpUser.id));\r\n\t\t}\r\n\t\tupdateCredentials();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.address)) {\r\n\t\t\tsetAsset({\r\n\t\t\t\t...asset,\r\n\t\t\t\taddress: user.address.addressLine1,\r\n\t\t\t\ttype: user.address.addressContract,\r\n\t\t\t\testateType: user.address.addressType,\r\n\t\t\t\tcity: user.address.city,\r\n\t\t\t\tcountry: user.address.country,\r\n\t\t\t\tzipCode: user.address.postalCode,\r\n\t\t\t\tphone: user.address.phoneNumber,\r\n\t\t\t});\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.address]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tisCompleteSectionCivil();\r\n\t\t\tisCompleteSectionFamily();\r\n\t\t\tisCompleteSectionChildren();\r\n\t\t\tisCompleteSectionPets();\r\n\t\t\tisCompleteSectionContact();\r\n\t\t\tisCompleteSectionProfession();\r\n\t\t}\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === undefined) {\r\n\t\t\tsetSelectedGender(personalData.gender);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [personalData]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isSettings === true && credentials.phoneNumber === \"\" && !R.isNil(user.user)) {\r\n\t\t\tupdateCredentials();\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [!R.isNil(user.user) && user.user.phoneNumber]);\r\n\r\n\tfunction scrollToFirstInvalid() {\r\n\t\tconst nodes = window.document.querySelectorAll(\".was-validated .form-control:invalid\");\r\n\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t// let nodesNotHidden = nodes.find(n => !n.classList.includes('hidden'));\r\n\t\t\tnodes[0].scrollIntoView({ behavior: \"smooth\" });\r\n\t\t}\r\n\t}\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\tlet etatCivilSection = (\r\n\t\t
\r\n\t\t\t

ETAT CIVIL

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, gender: gender.female });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, gender: gender.male });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPersonalData({ ...personalData, birthDate: d })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t{personalData.country === \"FR\" || personalData.country === \"GF\" || personalData.country === \"PF\" || personalData.country === \"TF\" || personalData.country === null ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, birthPlace: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{personalData.country === \"FR\" || personalData.country === \"GF\" || personalData.country === \"PF\" || personalData.country === \"TF\" || personalData.country === null ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, depNumber: event.target.value });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{DepartamentsList.map((country, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, country: event.target.value });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n\tlet otherSections = (\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t

SITUATION FAMILIALE *

\r\n\t\t\t\t{/* Change source for all images according to Gender (ex: from celibataireW to celibataireM) */}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.celibataire);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"Célibataire\"\r\n\t\t\t\t\t\t\t\t

Célibataire

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.mariee);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{familyStatusText.married[personalData.gender]}\r\n\t\t\t\t\t\t\t\t

{familyStatusText.married[personalData.gender]}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.divorcee);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{familyStatusText.divorced[personalData.gender]}\r\n\t\t\t\t\t\t\t\t

{familyStatusText.divorced[personalData.gender]}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.veuve);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{familyStatusText.widow[personalData.gender]}\r\n\t\t\t\t\t\t\t\t

{familyStatusText.widow[personalData.gender]}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.libre);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"Union\r\n\t\t\t\t\t\t\t\t

Union Libre

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetFamily(familyOptions.civilUnion);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{familyStatusText.civilUnion[personalData.gender]}\r\n\t\t\t\t\t\t\t\t

{familyStatusText.civilUnion[personalData.gender]}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t

enfants *

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetChildrenSelected(childrenOptions.hasChildren);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"oui\"\r\n\t\t\t\t\t\t\t\t

{router.location.pathname !== `/auth/partner` ? `J'ai des enfants` : `il/elle avait des enfants`}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetChildrenSelected(childrenOptions.noChildren);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"none\"\r\n\t\t\t\t\t\t\t\t

{router.location.pathname !== `/auth/partner` ? `Je n'ai pas d'enfants` : `il/elle n’avait pas d’enfant`}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t

animaux domestiques *

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPetsSelected(petsOptions.hasPets);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"oui\"\r\n\t\t\t\t\t\t\t\t

{router.location.pathname !== `/auth/partner` ? `J'ai des animaux domestiques` : `il/elle avait des animaux domestiques`}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPetsSelected(petsOptions.noPets);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"none\"\r\n\t\t\t\t\t\t\t\t

{router.location.pathname !== `/auth/partner` ? `Je n'ai pas d'animaux domestiques` : `il/elle n’avait pas animaux domestiques`}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t

COORDONNÉES *

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
TYPE DE BIEN
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: assetTypeOptions.owner })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: assetTypeOptions.tenant })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: assetTypeOptions.other })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
type de bien immobilier
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.appartement })}>\r\n\t\t\t\t\t\t\t\t\t\"appartement\"\r\n\t\t\t\t\t\t\t\t\t

appartement

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.house })}>\r\n\t\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t\t

Maison

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.castel })}>\r\n\t\t\t\t\t\t\t\t\t\"palace\"\r\n\t\t\t\t\t\t\t\t\t

château

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.hotel })}>\r\n\t\t\t\t\t\t\t\t\t\"hotel\"\r\n\t\t\t\t\t\t\t\t\t

Hôtel

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.boat })}>\r\n\t\t\t\t\t\t\t\t\t\"peniche\"\r\n\t\t\t\t\t\t\t\t\t

Péniche

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: estateType.camp })}>\r\n\t\t\t\t\t\t\t\t\t\"divers\"\r\n\t\t\t\t\t\t\t\t\t

divers

\r\n\t\t\t\t\t\t\t\t\t

Résident EHPAD, maison de retraite...

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, address: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{asset.country === null || asset.country === \"FR\" || asset.country === \"GF\" || asset.country === \"PF\" || asset.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, zipCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, zipCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, city: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, country: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, phone: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchPhoneNumber}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/*
\r\n \r\n {\r\n setAsset({ ...asset, mobile: event.target.value })\r\n }} pattern={RegexFields.frenchPhoneNumber} />\r\n
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Situation Professionnelle *

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{router.location.pathname !== `/auth/partner` ?
JE SUIS
: \"\"}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected, ProfessionOptions.retired]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.retired));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"retraite\"\r\n\t\t\t\t\t\t\t\t\t

RETRAITÉ(E)

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected, ProfessionOptions.active]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.active));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"activite\"\r\n\t\t\t\t\t\t\t\t\t

EN ACTIVITÉ(E)

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected, ProfessionOptions.unemployed]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.unemployed));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"pole\"\r\n\t\t\t\t\t\t\t\t\t

À FRANCE TRAVAIL

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.other) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected, ProfessionOptions.other]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.other));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t\t

AUTRE ACTIVITÉ

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.student)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([ProfessionOptions.student]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.student));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"etudiant\"\r\n\t\t\t\t\t\t\t\t\t

ÉTUDIANT(E)

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([ProfessionOptions.none]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tsetProfessionSelected(professionSelected.filter((p) => p !== ProfessionOptions.none));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t\t

SANS ACTIVITÉ

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{isSettings === undefined ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t{etatCivilSection}\r\n\t\t\t\t\t{personalData.gender === undefined ? \"\" : otherSections}\r\n\t\t\t\t
\r\n\t\t\t) : inModal === undefined ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*

Settings: Profil

*/}\r\n\t\t\t\t\t{/* */}\r\n\t\t\t\t\t{/*

Mes données

*/}\r\n\t\t\t\t\t{etatCivilSection}\r\n\t\t\t\t\t{personalData.gender === undefined ? \"\" : otherSections}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t\t\t{etatCivilSection}\r\n\t\t\t\t\t{personalData.gender === undefined ? \"\" : otherSections}\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t\t{inModal === undefined ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\"\"\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Personal } from '../../../_common/personal';\r\n\r\nexport const Step2 = ({ personalDataRequirements, setPersonalDataRequirements }) => {\r\n const [selectedGender, setSelectedGender] = useState(undefined);\r\n\r\n return (\r\n
\r\n
\r\n {\r\n selectedGender === undefined ?\r\n
\r\n

Bienvenue !

\r\n

Personnalisez cette expérience

\r\n
:\r\n
\r\n

Données Personnelles

\r\n

Aidez-nous à mieux vous connaître.

\r\n
}\r\n
\r\n \r\n
\r\n )\r\n}","export default __webpack_public_path__ + \"static/media/049-family.6dad947c.svg\";","export default __webpack_public_path__ + \"static/media/051-parents.a79e86ff.svg\";","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { deleteRepresentative } from '../../actions/user-api';\r\nimport $ from 'jquery';\r\n\r\nexport const DeleteModal = ({ referent }) => {\r\n const user = useSelector(state => state.user);\r\n const [deleteAttempt, setDeleteAttempt] = useState(false);\r\n const dispatch = useDispatch();\r\n\r\n const hideModal = () => { $('.modal').modal('hide'); };\r\n\r\n useEffect(() => {\r\n if (user.isDeletingReferent === false && deleteAttempt === true) {\r\n if (user.referents.findIndex(r => r.id === referent.id) === -1) {\r\n setTimeout(() => {\r\n hideModal();\r\n }, (100));\r\n }\r\n setDeleteAttempt(false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.isDeletingReferent]);\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Supprimer référent
\r\n
\r\n
Supprimer le référent
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Supprimer le référent?
\r\n
Ce référent est sur le point d'être supprimé. Veuillez confirmer cette action.
\r\n
AVERTISSEMENT: cette action est irréversible.
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","\r\n\r\nimport React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { registerLocale } from \"react-datepicker\";\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport fr from \"date-fns/locale/fr\";\r\nimport liendirect from './../../assets/images/svg/049-family.svg';\r\nimport autres from './../../assets/images/svg/051-parents.svg';\r\nimport { updateRepresentative, addUserRepresentative, addUserRepresentativeAddress, updateUserRepresentativeAddress} from '../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {RegexFields} from '../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../dateWithModal';\r\nimport {DeleteModal} from './deleteModal';\r\nimport countryTelData from 'country-telephone-data';\r\nimport {isValidPhoneNumber} from 'libphonenumber-js';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nexport const EditReferent = ({ data, isNew, inModal, isEditing, setIsEditing, setNewReferent, refIndex, authFacilitaPage}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n registerLocale(\"fr\", fr);\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n const [wasValidated, setWasValidated] = useState(false);\r\n //#region form\r\n const referentForm = useRef(null);\r\n const gender = { male: 'Male', female: 'Female' };\r\n const representativeType = {child: 'Child', parent:'Parent', sibling:'Sibling', spouse:'Spouse', other:'Other'};\r\n\r\n let parsedPhoneNumber = undefined;\r\n if(!R.isNil(data.phoneNumber)){\r\n parsedPhoneNumber = parsePhoneNumber(data.phoneNumber);\r\n }\r\n\r\n const [referentData, setReferentData] = useState({\r\n id: !R.isNil(data) && !R.isNil(data.id)? data.id : undefined,\r\n gender: !R.isNil(data) && !R.isNil(data.gender) ? data.gender : undefined,\r\n firstName: !R.isNil(data) && !R.isNil(data.firstName) ? data.firstName : '',\r\n lastName: !R.isNil(data) && !R.isNil(data.lastName) ? data.lastName : '',\r\n birthDate: !R.isNil(data) && !R.isNil(data.birthDate) ? new Date(data.birthDate) : undefined,\r\n email: !R.isNil(data) && !R.isNil(data.email) ? data.email : '',\r\n representativeType: !R.isNil(data) && !R.isNil(data.representativeType)? data.representativeType : undefined,\r\n isLienFamilialDirect: !R.isNil(data) && !R.isNil(data.representativeType) && (\r\n data.representativeType === representativeType.child ||\r\n data.representativeType === representativeType.parent ||\r\n data.representativeType === representativeType.sibling\r\n ) ? true: false,\r\n isMainRepresentative: !R.isNil(data) && !R.isNil(data.isMainRepresentative)? data.isMainRepresentative : false,\r\n country: !R.isNil(data) && !R.isNil(data.address) && !R.isNil(data.address.country) ? data.address.country : 'FR',\r\n city: !R.isNil(data) && !R.isNil(data.address) && !R.isNil(data.address.city) ? data.address.city : '',\r\n zipCode: !R.isNil(data) && !R.isNil(data.address) && !R.isNil(data.address.postalCode)? data.address.postalCode : '',\r\n address: !R.isNil(data) && !R.isNil(data.address) && !R.isNil(data.address.addressLine1)? data.address.addressLine1 : '',\r\n tmpRef: !R.isNil(data) && !R.isNil(data.tmpRef) ? data.tmpRef : undefined,\r\n countryCode: !R.isNil(parsedPhoneNumber) ? parsedPhoneNumber.countryCallingCode : '33',\r\n phoneCountry: !R.isNil(parsedPhoneNumber) ? parsedPhoneNumber.country : 'FR',\r\n phoneNumber: !R.isNil(parsedPhoneNumber) ? parsedPhoneNumber.formatNational() : ''\r\n });\r\n\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n //#endregion\r\n \r\n return (\r\n
\r\n {isNew === true || authFacilitaPage ? '' :\r\n

{referentData.isMainRepresentative === true ? '' : 'AUTRE'} RÉFÉRENT {referentData.isMainRepresentative === true ? 'PRINCIPAL *' : ''}

\r\n }\r\n {referentData.isMainRepresentative === true ?\r\n \r\n

Votre Référent Principal est la personne qui aura accès et qui validera l’envoi des courriers obligatoires le moment venu.

\r\n

Le Référent sera averti par mail et par SMS annuellement de votre démarche mais n’aura pas accès aux informations de votre dossier (comptes bancaires, contrats d’assurances...).

\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n
\r\n \r\n {\r\n setReferentData({ ...referentData, email: event.target.value })\r\n }} pattern={RegexFields.email} />\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n {\r\n if(e.target.value !== \"\"){\r\n const phoneInput = document.getElementById(\"PhoneNumber\" + refIndex);\r\n const parsedPhoneNumber = parsePhoneNumber(\"+\" + referentData.countryCode + e.target.value);\r\n if(R.isNil(parsedPhoneNumber) || !isValidPhoneNumber(parsedPhoneNumber.number)){\r\n phoneInput.setCustomValidity(\"Numéro de télephone invalide.\");\r\n }else if(parsedPhoneNumber.number === user.user.phoneNumber){\r\n phoneInput.setCustomValidity(\"Le numéro de téléphone du référent ne peut être le même que celui du dossier.\");\r\n }else if(!R.isNil(user.referents.find((referent) => referent.phoneNumber === parsedPhoneNumber.number))){\r\n phoneInput.setCustomValidity(\"Il existe déjà un référent avec ce même numéro de téléphone.\");\r\n }else{\r\n phoneInput.setCustomValidity(\"\");\r\n }\r\n }\r\n setReferentData({ ...referentData, phoneNumber: e.target.value })\r\n }}/>\r\n
\r\n {\r\n wasValidated && document.getElementById(\"PhoneNumber\" + refIndex)?.validity.valid === false ?\r\n
\r\n {\r\n document.getElementById(\"PhoneNumber\" + refIndex)?.validationMessage\r\n }\r\n
\r\n : \"\"\r\n }\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n {\r\n setReferentData({ ...referentData, gender: gender.female });\r\n }} />\r\n \r\n
\r\n
\r\n {\r\n setReferentData({ ...referentData, gender: gender.male });\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setReferentData({ ...referentData, firstName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers}/>\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setReferentData({ ...referentData, lastName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers}/>\r\n
\r\n\r\n
\r\n \r\n setReferentData({ ...referentData, birthDate: d })} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {/*

*/}\r\n
\r\n {\r\n setReferentData({ ...referentData, address: event.target.value })\r\n }} />\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n referentData.country === null || referentData.country === 'FR' || referentData.country === 'GF' || referentData.country === 'PF' || referentData.country === 'TF' ?\r\n {\r\n setReferentData({ ...referentData, zipCode: event.target.value })\r\n }} pattern={RegexFields.frenchZipCode} />\r\n :\r\n {\r\n setReferentData({ ...referentData, zipCode: event.target.value })\r\n }} />\r\n }\r\n
\r\n
\r\n \r\n {\r\n setReferentData({ ...referentData, city: event.target.value })\r\n }} pattern={RegexFields.nameWithoutNumbers}/>\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
{setReferentData({...referentData, isLienFamilialDirect: true, representativeType: undefined});}}>\r\n \"lien\r\n

lien familial direct

\r\n
\r\n
\r\n
\r\n
{setReferentData({...referentData, representativeType: representativeType.other, isLienFamilialDirect: false})}}>\r\n \"autres\"\r\n

autres

\r\n
\r\n
\r\n
\r\n {\r\n referentData.isLienFamilialDirect === true ?\r\n
\r\n \r\n
\r\n
{setReferentData({...referentData, representativeType: representativeType.child})}}>\r\n \r\n \r\n
\r\n
{setReferentData({...referentData, representativeType: representativeType.parent})}}>\r\n \r\n \r\n
\r\n
{setReferentData({...referentData, representativeType: representativeType.sibling})}}>\r\n \r\n \r\n
\r\n
{setReferentData({...referentData, representativeType: representativeType.spouse})}}>\r\n \r\n \r\n
\r\n
\r\n
\r\n : ''\r\n }\r\n
\r\n Veuillez choisir une option\r\n
\r\n
\r\n \r\n
\r\n {isNew === true ? '' :\r\n \r\n \r\n \r\n {authFacilitaPage ? '' :\r\n \r\n }\r\n \r\n }\r\n {inModal === true ? \r\n ''\r\n :\r\n \r\n }\r\n
\r\n
\r\n \r\n
\r\n )\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport liendirect from './../../assets/images/svg/049-family.svg';\r\nimport autres from './../../assets/images/svg/051-parents.svg';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nexport const ColapsedReferent = ({data, isEditing, setIsEditing, authFacilitaPage, hideResendInvitation}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const gender = { male: 'Male', female: 'Female' };\r\n const representativeType = {direct: 'Family', other:'Other'};\r\n const representativeTypeFamily = {Child: 'Fils/Fille', Parent:'Parent', Sibling:'Frère/Soeur', Spouse:'Conjoint'};\r\n\r\n if (R.isNil(data.address)){\r\n return '';\r\n }\r\n const parsedPhoneNumber = !R.isNil(data.phoneNumber) && data.phoneNumber !== \"\" ? parsePhoneNumber(data.phoneNumber).formatInternational() : undefined;\r\n\r\n return (\r\n
\r\n {authFacilitaPage ? '' :\r\n \r\n
\r\n
\r\n

{data.isMainRepresentative === true ? '' : 'AUTRE'} RÉFÉRENT {data.isMainRepresentative === true? 'PRINCIPAL' : ''}

\r\n {\r\n hideResendInvitation ?\r\n ''\r\n :\r\n \r\n }\r\n \r\n
\r\n
\r\n
\r\n }\r\n \r\n
\r\n {authFacilitaPage ?\r\n '' :\r\n \r\n

{data.gender === gender.male ? 'Monsieur' : 'Madame'}

\r\n

{data.lastName} {data.firstName}

\r\n
\r\n }\r\n
\r\n {data.representativeType\r\n

{data.representativeType === representativeType.other ? 'Autres' : representativeTypeFamily[data.representativeType]}

\r\n
\r\n
\r\n \r\n

{new Date(data.birthDate).toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric' })}

\r\n
\r\n
\r\n \r\n

{data.address.addressLine1}
{data.address.postalCode} {data.address.city}, {countries.getName(data.address.country, \"fr\", {select: \"official\"})}

\r\n
\r\n {\r\n R.isNil(data.email) || data.email === \"\" ? \r\n ''\r\n :\r\n
\r\n \r\n

{data.email}

\r\n
\r\n }\r\n {\r\n R.isNil(parsedPhoneNumber) ? \r\n ''\r\n :\r\n
\r\n \r\n

{parsedPhoneNumber}

\r\n
\r\n }\r\n \r\n
\r\n\r\n {authFacilitaPage ?\r\n
\r\n \r\n
\r\n : ''\r\n }\r\n
\r\n )\r\n}","export default __webpack_public_path__ + \"static/media/076-envelope.d5d661ed.svg\";","import React, { useEffect, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { EditReferent } from './editReferent';\r\nimport { ColapsedReferent } from './collapsedReferent';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { updateOnBoardingStep } from '../../actions/user-api';\r\nimport messageRef from './../../assets/images/svg/076-envelope.svg';\r\nimport queryString from 'query-string';\r\n\r\nexport const ReferentIndex = ({ monReferentRequirements, setMonReferentRequirements, hasFooter }) => {\r\n const router = useSelector(state => state.router);\r\n const user = useSelector(state => state.user);\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n const [isEditing, setIsEditing] = useState([]);\r\n const [newReferent, setNewReferent] = useState(false);\r\n let hasPrincipal = user.referents.filter(r => r.isMainRepresentative === true).length > 0;\r\n\r\n useEffect(() => {\r\n if (hasFooter === true) {\r\n\r\n let hasOther = user.referents.filter(r => r.isMainRepresentative === false).length > 0;\r\n if (user.referents.length > 0 && monReferentRequirements.principal === false) {\r\n setMonReferentRequirements({ ...monReferentRequirements, principal: hasPrincipal, other: hasOther });\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.referents.length]);\r\n\r\n\r\n function formNextStep(event) {\r\n event.preventDefault();\r\n const parsedQueryString = queryString.parse(window.location.search);\r\n if(parsedQueryString.state !== \"\"){\r\n dispatch(updateOnBoardingStep(3)).then(() => history.push(\"/auth/signup/step4\" + (window.location.search !== '' ? window.location.search : '')))\r\n return;\r\n }\r\n\r\n if (!R.isNil(user.user) && !R.isNil(user.referents) && user.referents.length > 0) {\r\n dispatch(updateOnBoardingStep(3));\r\n history.push(\"/auth/signup/step4\" + (window.location.search !== '' ? window.location.search : ''));\r\n }\r\n }\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Mon référent

\r\n

C'est le proche de confiance qui accédera à mon dossier uniquement en cas d'événement de vie (décès)

\r\n
\r\n
\r\n
\r\n
\r\n {(router.location.pathname.toLowerCase().indexOf(\"/anticipa/referent\") === 0) || (router.location.pathname.toLowerCase().indexOf(\"/auth/signup/step3\") === 0) ?\r\n
\r\n
\r\n
\r\n
\r\n \"message\r\n
\r\n
\r\n

\r\n {\r\n R.isEmpty(user.message) ?\r\n \"Écrivez un message à votre/vos Référent(s)\"\r\n :\r\n \"Modifier le message à votre/vos Référent(s)\"\r\n }\r\n

\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n : ''\r\n }\r\n
\r\n {(user.referents.length > 0) ?\r\n user.referents.map((r, index) => {\r\n if (isEditing.includes(r.id)) {\r\n return ;\r\n }\r\n else {\r\n return ;\r\n }\r\n })\r\n :\r\n user.user.hasHrDocuments ?\r\n ''\r\n :\r\n
\r\n \r\n
\r\n }\r\n
\r\n \r\n\r\n

IL EST FORTEMENT CONSEILLÉ DE RENSEIGNER AU MOINS 2 RÉFÉRENTS AFIN D’OPTIMISER VOTRE SERVICE.

\r\n

Chaque référent sera averti par mail et message annuellement de votre démarche.
Au même titre, il n’aura pas accès aux informations de votre dossier (comptes bancaires, contrats d’assurance...).

\r\n\r\n {\r\n newReferent === true ?\r\n \r\n
\r\n \r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n
\r\n {\r\n hasFooter === true ?\r\n
\r\n \r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport {updateUserMessage, getUserMessage} from '../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nexport const Message = () => {\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n const [message, setMessage] = useState(user.message);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const messageRef = useRef(null);\r\n\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n };\r\n useEffect(() => {\r\n dispatch(getUserMessage());\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (user.message === message || user.message === undefined) {\r\n setWasValidated(false);\r\n hideModal();\r\n }\r\n else if (message === '' && user.message !== '') {\r\n setMessage(user.message);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.message]);\r\n\r\n return (\r\n
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
{setWasValidated(false);}}>\r\n\t\t\t\t\t\t
\r\n
Référent message
\r\n\t\t\t\t\t\t\t
message à votre référent
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Ce message ne sera visible par votre ou vos réferent(s) qu'aprés votre décès.

\r\n\t\t\t\t\t\t\t
\r\n \r\n
\r\n Veuillez écrire un message\r\n
\r\n
\r\n
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n );\r\n}","import React from 'react';\r\nimport { ReferentIndex } from '../../../_common/referent';\r\nimport { Message } from '../_common/message';\r\n\r\nexport const Step3 = ({ monReferentRequirements, setMonReferentRequirements }) => {\r\n return(\r\n \r\n \r\n \r\n \r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { addUserServicesBatch, updateOnBoardingStep } from '../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport { CommonServices, PersonalServices, SocialNetworksOptions, AssuranceOptions, OtherService, ConnectionTypes, AuxiliarOptions } from '../../../constants/utils/connectionTypes';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\nexport const Step4 = ({ monServiceRequirements, setMonServiceRequirements }) => {\r\n const history = useHistory();\r\n const [subStep, setSubStep] = useState(1);\r\n const user = useSelector(state => state.user);\r\n const [redirect, setRedirect] = useState(false);\r\n const dispatch = useDispatch();\r\n\r\n const [selectedServices, setSelectedServices] = useState([\r\n CommonServices.notaire, CommonServices.secSocial, CommonServices.bank, CommonServices.mutuelle, CommonServices.habitation,\r\n CommonServices.eau, CommonServices.electricity, CommonServices.mobile, CommonServices.impots, CommonServices.caf\r\n ]);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [subStep]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi && s.connectionType !== ConnectionTypes.locataire).length > 0) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.services, user.services.length]);\r\n\r\n useEffect(() => {\r\n let hasCommon = selectedServices.filter(s => Object.values(CommonServices).findIndex(service => service.connectionType === s.connectionType) !== -1).length > 0;\r\n let hasPersonnal = selectedServices.filter(s => Object.values(CommonServices).findIndex(service => service.connectionType === s.connectionType) === -1).length > 0;\r\n setMonServiceRequirements({ ...monServiceRequirements, common: hasCommon, personnal: hasPersonnal });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedServices.length]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi && s.connectionType !== ConnectionTypes.locataire).length > 0 && selectedServices.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi && s.connectionType !== ConnectionTypes.locataire).length === 9) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [subStep]);\r\n\r\n\r\n if (redirect === true && !user.isLoading.includes(Loadings.UPDATING_SERVICES) && user.signupStep4Success === true) {\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step !== 6 && step !== -1) {\r\n if (tmpUser.onBoardingStep === \"Completed\") {\r\n step = 6;\r\n }\r\n }\r\n if (step >= 4) {\r\n setRedirect(false);\r\n history.push(\"/auth/signup/step5\" + (window.location.search !== '' ? window.location.search : ''));\r\n }\r\n }\r\n\r\n function AddOrRemove(option) {\r\n let tmpSelected = JSON.parse(JSON.stringify(selectedServices));\r\n if (tmpSelected.findIndex(o => o.connectionType === option.connectionType) !== -1) {\r\n tmpSelected = tmpSelected.filter(o => o.connectionType !== option.connectionType);\r\n }\r\n else {\r\n tmpSelected.push(option);\r\n }\r\n setSelectedServices(tmpSelected);\r\n }\r\n\r\n if (user.isLoading.includes(Loadings.FETCH_SERVICES)) {\r\n return ;\r\n }\r\n\r\n function personalService(srv, index) {\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
; })}

\r\n :\r\n ''\r\n }\r\n\r\n
\r\n
\r\n );\r\n }\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{subStep === 1 ? 'Organismes de bases' : 'Organismes complémentaires'}

\r\n
\r\n
\r\n
\r\n {subStep === 1 ?\r\n\r\n
\r\n
\r\n

Organismes déjà compris dans le service :

\r\n

Déselectionnez les organismes que vous n'avez pas.

\r\n
\r\n
\r\n {R.sortWith([R.ascend(R.prop('title'))])(Object.values(CommonServices)).map((srv, index) => {\r\n return (\r\n personalService(srv, index)\r\n //
\r\n //
\r\n // {srv.title}\r\n //

{srv.title}

\r\n // {/* */}\r\n //
\r\n //
\r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n\r\n :\r\n\r\n
\r\n
\r\n

Vie quotidienne à sélectionner :

\r\n

Vous devez sélectionner les organismes avec lesquels vous avez un contrat ou un abonnement (paiement mensuel, trimestriel ou annuel).

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(PersonalServices).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n personalService(srv, index)\r\n );\r\n })\r\n }\r\n {\r\n Object.entries(OtherService).map(entry => entry[1]).map((srv, index) => {\r\n if (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.activity ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.pension ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.otherActivity ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.poleEmploi ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.locataire ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrv.connectionType === ConnectionTypes.etudiant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n return (personalService(srv, index + (PersonalServices.length)));\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

RÉSEAUX SOCIAUX ( à sélectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(SocialNetworksOptions).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {/* s.connectionType === srv.connectionType) !== -1 ? 'checkmark-circle-outline' : 'radio-button-off-outline')}> */}\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

ASSURANCES ( à selectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(AssuranceOptions).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} data-toggle={(srv.tooltip !== undefined ? \"tooltip\" : \"\")} data-placement={(srv.tooltip !== undefined ? \"top\" : \"\")} data-html={(srv.tooltip !== undefined ? \"false\" : \"\")} title={(srv.tooltip !== undefined ? srv.tooltip : \"\")} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
; })}

\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n\r\n }\r\n
\r\n
\r\n {\r\n subStep === 1 ?\r\n Retour\r\n :\r\n \r\n }\r\n {\r\n subStep === 1 ?\r\n \r\n :\r\n \r\n }\r\n {/*
* champs obligatoires
*/}\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/Features-Overview.a461fddd.svg\";","export default __webpack_public_path__ + \"static/media/039-file.1c8f99aa.svg\";","export default __webpack_public_path__ + \"static/media/005-arrow-down-dashed.a5bf1714.svg\";","export default __webpack_public_path__ + \"static/media/005-arrow-down-direct.b9fac8a4.svg\";","export default __webpack_public_path__ + \"static/media/pdf-placeholder.21d261a0.jpg\";","import React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\n\r\nimport featuresOverview from './../../../assets/images/placeholder/Features-Overview.svg';\r\nimport file from './../../../assets/images/svg/039-file.svg';\r\nimport arrowDashed from './../../../assets/images/svg/005-arrow-down-dashed.svg';\r\nimport arrowDirect from './../../../assets/images/svg/005-arrow-down-direct.svg';\r\nimport previewPdf from './../../../assets/images/placeholder/pdf-placeholder.jpg';\r\nimport * as R from 'ramda';\r\nimport { updateOnBoardingStep } from '../../../actions/user-api';\r\nimport { ConnectionTypes, AssuranceOptions, SocialNetworksOptions, PersonalServices, CommonServices, OtherService } from '../../../constants/utils/connectionTypes';\r\n\r\nexport const Step5 = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n if (R.isNil(user) || R.isNil(user.services) || user.services.length === 0) {\r\n return '';\r\n }\r\n\r\n const serviceOptions = [].concat(Object.values(AssuranceOptions), Object.values(SocialNetworksOptions), Object.values(PersonalServices), Object.values(CommonServices), Object.values(OtherService));\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Ma situation

\r\n
\r\n
\r\n
\r\n
\r\n

Pour votre information, entre les organismes de bases et les organismes complémentaires,

\r\n

vous avez sélectionné {user.services.length} services (plusieurs organismes par service).

Lors d'un événement de vie, il est essentiel d'informer chacun des services concernés tout en effectuant des demandes adaptées à votre situation personnelle, professionnelle ou familiale. En moyenne, le complément de demandes (aides, allocations, etc.) correspond à la rédaction de 2 à 4 courriers supplémentaires.

\r\n
\r\n
\r\n \"features\r\n
\r\n
\r\n {\r\n user.user.hasHrDocuments ? \r\n ''\r\n :\r\n
\r\n
\r\n \"file\"\r\n
\r\n
Exemple: Courrier de résiliation pour votre mobile
\r\n

Visualisation du document nécessaire à la résiliation du contrat de la société de téléphonie mobile.

\r\n
\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(user.services.filter(s => s.connectionType !== ConnectionTypes.activity)).map((s, index) => {\r\n let service = Object.values(serviceOptions).find(o => o.connectionType === s.connectionType);\r\n if (R.isNil(service)) {\r\n return '';\r\n }\r\n return (\r\n
\r\n \"file\"\r\n
\r\n

{service.title}

\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n }\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n { dispatch(updateOnBoardingStep(5)); }}>Passer à l'étape suivante
\r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
aperçu du document
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"pdf\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"file\"\r\n
\r\n

Liste des tâches à faire par vos proches au moment du décès.

\r\n
\r\n
\r\n
\r\n
\r\n
Sans notre aide
\r\n

Rechercher et lister tous les organismes

\r\n \"Step\"\r\n

Chercher leurs coordonnées

\r\n \"Step\"\r\n

Rédiger les courriers selon les mentions légales

\r\n \"Step\"\r\n

En faire une copie

\r\n \"Step\"\r\n

Les poster en recommandé

\r\n
\r\n
\r\n
Avec notre aide
\r\n

Se connecter

\r\n \"Direct\"\r\n
Valider
\r\n
\r\n
\r\n
\r\n
\r\n {/*

Vous voulez notre aide ?

*/}\r\n \r\n {/* */}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import { toast } from 'react-toastify';\r\n\r\nconst configs = {\r\n position: toast.POSITION.TOP_RIGHT,\r\n autoClose:3000\r\n};\r\n\r\nexport const ToasterConfigurations = configs;","export const PaymentMethodCardDeclinedText = {\r\n generic_decline: \"Votre carte a été refusée.\",\r\n insufficient_funds: \"Votre carte n'a pas suffisamment de fonds disponibles.\",\r\n lost_card: \"Votre carte a été refusée.\",\r\n stolen_card: \"Votre carte a été refusée.\",\r\n\r\n}\r\n\r\nexport const PaymentMethodErrorsText = {\r\n expired_card: \"Votre carte a expiré.\",\r\n incorrect_cvc: \"Le code de sécurité de votre carte (cryptogramme ou code CVC) est invalide.\",\r\n processing_error: \"Une erreur s'est produite lors du traitement de votre carte. Veuillez réessayer ultérieurement.\",\r\n incorrect_number: \"Le numéro de la carte est invalide.\"\r\n}\r\n\r\nexport const PaymentMethod3DSecureErrorsText = {\r\n setup_intent_authentication_failure: \"L'authentification de votre méthode de paiement a échoué. Veuillez réessayer.\"\r\n}\r\n\r\nexport function HandlePaymentMethodsError(error){\r\n if(error.type === \"card_error\"){\r\n if(error.code === \"card_declined\"){\r\n return Object.getOwnPropertyNames(PaymentMethodCardDeclinedText).indexOf(error.decline_code) > -1 ? PaymentMethodCardDeclinedText[error.decline_code] : PaymentMethodCardDeclinedText.generic_decline;\r\n }else{\r\n return Object.getOwnPropertyNames(PaymentMethodErrorsText).indexOf(error.code) > -1 ? PaymentMethodErrorsText[error.code] : PaymentMethodCardDeclinedText.generic_decline;\r\n }\r\n }else if(error.type === \"invalid_request_error\"){\r\n return Object.getOwnPropertyNames(PaymentMethod3DSecureErrorsText).indexOf(error.code) > -1 ? PaymentMethod3DSecureErrorsText[error.code] : PaymentMethodCardDeclinedText.generic_decline;\r\n }else{\r\n return PaymentMethodCardDeclinedText.generic_decline;\r\n } \r\n}","export default __webpack_public_path__ + \"static/media/142-credit-salary.7396218a.svg\";","export default __webpack_public_path__ + \"static/media/142-virement.8bb49ac1.svg\";","import React, { useState, useEffect } from 'react';\r\nimport { CardNumberElement, CardExpiryElement, CardCvcElement } from '@stripe/react-stripe-js';\r\nimport { useElements, useStripe } from '@stripe/react-stripe-js';\r\nimport { toast } from 'react-toastify';\r\nimport { getSetupIntentByIdUrl } from '../../../constants/webapi/user';\r\nimport * as axios from 'axios';\r\nimport $ from 'jquery';\r\n\r\nimport { LoadingState } from '../../loadingState';\r\nimport {ToasterConfigurations} from '../../../constants/toasterText/configurations';\r\nimport {HandlePaymentMethodsError} from '../../../constants/toasterText/paymentMethodErrors';\r\n\r\nimport { addPaymentMethod } from '../../../actions/user-api';\r\n\r\n\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport iconCredit from '../../../assets/images/svg/142-credit-salary.svg';\r\nimport iconCreditBack from '../../../assets/images/svg/142-virement.svg';\r\n\r\nexport const AddCreditCardForm = ({ paymentMethod, formRef, user, formId, resetModal, setIsSaving }) => {\r\n let dispatch = useDispatch();\r\n const stripe = useStripe();\r\n const elements = useElements();\r\n const [setupIntent, setSetupIntent] = useState(undefined);\r\n const [visibleSide, setVisibleSide] = useState('front');\r\n const [isLoadingSetupIntent, setIsLoadingSetupIntent] = useState(false);\r\n const [formElementsComplete, setformElementsComplete] = useState({ cardNumber: false, expirationDate: false, cvcCode: false});\r\n\r\n let icon = iconCredit;\r\n if (visibleSide === 'front') {\r\n icon = iconCredit;\r\n } else {\r\n icon = iconCreditBack;\r\n }\r\n\r\n const handleSubmit = async (event) => {\r\n event.preventDefault();\r\n if (!stripe || !elements) {\r\n // Stripe.js has not loaded yet. Make sure to disable\r\n // form submission until Stripe.js has loaded.\r\n return;\r\n }\r\n if(formElementsComplete.cardNumber !== true || formElementsComplete.expirationDate !== true || formElementsComplete.cvcCode !== true){\r\n return;\r\n }\r\n setIsSaving(true);\r\n //const cardElement = elements.getElement(CardElement);\r\n const cardNumberElement = elements.getElement(CardNumberElement);\r\n\r\n await axios.get(getSetupIntentByIdUrl(user.id))\r\n .then(async (response) => {\r\n const setupIntendId = response.data;\r\n const result = await stripe.confirmCardSetup(setupIntendId, {\r\n payment_method: {\r\n type: 'card',\r\n card: cardNumberElement,\r\n }\r\n });\r\n if (result.error) {\r\n const errorMessage = HandlePaymentMethodsError(result.error);\r\n toast.error(errorMessage, ToasterConfigurations);\r\n setIsSaving(false);\r\n } else {\r\n await dispatch(addPaymentMethod(user, result.setupIntent.payment_method))\r\n .then(() => {\r\n setIsSaving(false);\r\n $('.modal').modal(\"hide\");\r\n resetModal();\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error.response);\r\n });\r\n\r\n\r\n \r\n // const { error, paymentMethod } = await stripe.createPaymentMethod({\r\n // type: 'card',\r\n // card: cardNumberElement,\r\n // });\r\n // if (paymentMethod) {\r\n // await dispatch(addPaymentMethod(user, paymentMethod));\r\n // }\r\n };\r\n // useEffect(() => {\r\n // if (setupIntent === undefined) {\r\n // setIsLoadingSetupIntent(true);\r\n // axios.get(getSetupIntentByIdUrl(user.id))\r\n // .then((response) => {\r\n // setSetupIntent(response.data);\r\n // setIsLoadingSetupIntent(false);\r\n // })\r\n // .catch((error) => {\r\n // console.log(error.response);\r\n // });\r\n // }\r\n // // eslint-disable-next-line react-hooks/exhaustive-deps\r\n // }, []);\r\n\r\n if (isLoadingSetupIntent) {\r\n return ();\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n
\r\n
\r\n \r\n {\r\n R.isNil(paymentMethod) ?\r\n {\r\n if (!R.isNil(setVisibleSide)) {\r\n setVisibleSide('front');\r\n }\r\n }\r\n }\r\n onChange={(e) => setformElementsComplete({...formElementsComplete, cardNumber: e.complete})}\r\n options={{\r\n style: {\r\n base: {\r\n color: '#26262e',\r\n lineHeight: '20px',\r\n fontSize: '15px',\r\n fontSmoothing: 'antialiased',\r\n '::placeholder': {\r\n color: '#9e9eac',\r\n },\r\n },\r\n invalid: {\r\n iconColor: '#B81412',\r\n color: '#B81412',\r\n }\r\n },\r\n classes: {\r\n base: 'form-control h-auto',\r\n complete: 'is-valid',\r\n invalid: 'bg-alert-danger border-none',\r\n empty: ''\r\n },\r\n iconStyle: 'default'\r\n }} />\r\n :\r\n \r\n\r\n }\r\n\r\n
\r\n
\r\n
\r\n \r\n {\r\n R.isNil(paymentMethod) ?\r\n {\r\n if (!R.isNil(setVisibleSide)) {\r\n setVisibleSide('front');\r\n }\r\n }\r\n }\r\n onChange={(e) => setformElementsComplete({...formElementsComplete, expirationDate: e.complete})}\r\n options={{\r\n style: {\r\n base: {\r\n color: '#26262e',\r\n lineHeight: '20px',\r\n fontSize: '15px',\r\n fontSmoothing: 'antialiased',\r\n '::placeholder': {\r\n color: '#9e9eac',\r\n },\r\n },\r\n invalid: {\r\n iconColor: '#B81412',\r\n color: '#B81412',\r\n }\r\n },\r\n classes: {\r\n base: 'form-control h-auto',\r\n complete: 'is-valid',\r\n invalid: 'bg-alert-danger border-none',\r\n empty: ''\r\n },\r\n iconStyle: 'default'\r\n }}\r\n />\r\n :\r\n \r\n\r\n }\r\n\r\n
\r\n
\r\n \r\n {\r\n R.isNil(paymentMethod) ?\r\n {\r\n if (!R.isNil(setVisibleSide)) {\r\n setVisibleSide('back');\r\n }\r\n }\r\n }\r\n onChange={(e) => setformElementsComplete({...formElementsComplete, cvcCode: e.complete})}\r\n options={{\r\n style: {\r\n base: {\r\n color: '#26262e',\r\n lineHeight: '20px',\r\n fontSize: '15px',\r\n fontSmoothing: 'antialiased',\r\n '::placeholder': {\r\n color: '#9e9eac',\r\n },\r\n },\r\n invalid: {\r\n iconColor: '#B81412',\r\n color: '#B81412',\r\n }\r\n },\r\n classes: {\r\n base: 'form-control h-auto',\r\n complete: 'is-valid',\r\n invalid: 'bg-alert-danger border-none',\r\n empty: ''\r\n },\r\n iconStyle: 'default'\r\n }}\r\n />\r\n :\r\n \r\n\r\n }\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/053-credit-cards.04c89f32.svg\";","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { AddCreditCardForm } from '../modal/addCreditCardForm';\r\nimport creditCards from '../../../assets/images/svg/053-credit-cards.svg';\r\n\r\n\r\nexport const CreditCardTile = ({ paymentMethod, user }) => {\r\n return (\r\n
\r\n
\r\n \"creditCards\"\r\n

Carte de crédit

\r\n
\r\n
\r\n \r\n {\r\n !R.isNil(paymentMethod) ? : ''\r\n }\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/053-online-payment.eff31f72.svg\";","import React, { useState, useEffect } from 'react';\r\nimport {IbanElement, useElements, useStripe} from '@stripe/react-stripe-js';\r\nimport { addPaymentMethod } from '../../../actions/user-api';\r\nimport { useDispatch } from 'react-redux';\r\nimport { toast } from 'react-toastify';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\n\r\nimport { getSetupIntentByIdUrl } from '../../../constants/webapi/user';\r\nimport * as axios from 'axios';\r\n\r\nexport const AddVirementForm = ({ownerState, setOwnerState, formRef, user, formId, resetModal, setIsSaving, paymentMethod}) => {\r\n const toastConf = {position: toast.POSITION.TOP_RIGHT, autoClose:3000};\r\n let dispatch = useDispatch();\r\n const stripe = useStripe();\r\n const elements = useElements();\r\n const [setupIntent, setSetupIntent] = useState(undefined);\r\n\r\n const handleSubmit = async (event) => {\r\n\r\n event.preventDefault();\r\n if (!stripe || !elements) {\r\n // Stripe.js has not loaded yet. Make sure to disable\r\n // form submission until Stripe.js has loaded.\r\n return;\r\n }\r\n setIsSaving(true);\r\n const ibanElement = elements.getElement(IbanElement);\r\n const result = await stripe.confirmSepaDebitSetup(setupIntent, {\r\n payment_method:{\r\n type: 'sepa_debit',\r\n sepa_debit: ibanElement,\r\n billing_details: ownerState\r\n }\r\n });\r\n if (result.error) {\r\n toast.error(result.error.message, toastConf);\r\n } else {\r\n await dispatch(addPaymentMethod(user, result.setupIntent.payment_method))\r\n .then(() => {\r\n setIsSaving(false);\r\n $('.modal').modal(\"hide\");\r\n setSetupIntent(undefined);\r\n resetModal();\r\n });\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if(setupIntent === undefined){\r\n axios.get(getSetupIntentByIdUrl(user.id))\r\n .then((response) => {\r\n setSetupIntent(response.data);\r\n })\r\n .catch((error) => {\r\n console.log(error.response);\r\n });\r\n }\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n return (\r\n
\r\n
\r\n \r\n setOwnerState({ ...ownerState, name: e.target.value })\r\n }\r\n disabled={!R.isNil(paymentMethod)} />\r\n
\r\n
\r\n \r\n setOwnerState({ ...ownerState, email: e.target.value })\r\n }\r\n disabled={!R.isNil(paymentMethod)} />\r\n
\r\n {\r\n R.isNil(paymentMethod) ?\r\n
\r\n \r\n \r\n
\r\n :\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n }\r\n \r\n
\r\n )\r\n}","import React, { useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport onlinePayment from './../../../assets/images/svg/053-online-payment.svg';\r\nimport { AddVirementForm } from '../modal/addVirementForm';\r\n\r\n\r\nexport const VirementTile = ({ user, paymentMethod }) => {\r\n const [ownerState, setOwnerState] = useState({\r\n name: `${user.firstName} ${user.lastName}`,\r\n email: `${user.email}`\r\n });\r\n\r\n return (\r\n
\r\n
\r\n \"virement\"\r\n

Virement

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n {\r\n !R.isNil(paymentMethod) ? : ''\r\n }\r\n
\r\n
\r\n );\r\n};","import React, { useState } from 'react';\r\nimport {AddCreditCardForm} from './addCreditCardForm';\r\nimport {AddVirementForm} from './addVirementForm';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport onlinePaymentIcon from '../../../assets/images/svg/053-online-payment.svg';\r\nimport creditCardsIcon from '../../../assets/images/svg/053-credit-cards.svg';\r\nimport * as R from 'ramda';\r\n\r\n\r\n\r\nexport const AddPaymentMethodModal = ({ user, loadings }) => {\r\n\tlet formReference = React.createRef();\r\n\tconst [tempSelectedOptionCard, setTempSelectedOptionCard] = useState(undefined);\r\n\tconst [selectedOptionCard, setSelectedOptionCard] = useState(undefined);\r\n\tconst [isSaving, setIsSaving] = useState(false);\r\n\tconst [ownerState, setOwnerState] = useState({\r\n\t\tname: `${user.firstName} ${user.lastName}`,\r\n\t\temail: `${user.email}`\r\n\t});\r\n\tconst formId = \"FormId\";\r\n\r\n\tfunction resetModal(){\r\n\t\tsetTempSelectedOptionCard(undefined);\r\n\t\tsetSelectedOptionCard(undefined);\r\n\t}\r\n return (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Avatar

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Configurer une méthode de paiement
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{R.isNil(selectedOptionCard) ?\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
{ e.preventDefault(); setTempSelectedOptionCard('card')}}>\r\n\t\t\t\t\t\t\t\t\t\t\"crédit\"\r\n\t\t\t\t\t\t\t\t\t\t

carte de crédit

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
{ e.preventDefault(); setTempSelectedOptionCard('sepa_debit') }}>\r\n\t\t\t\t\t\t\t\t\t\t\"virement\"\r\n\t\t\t\t\t\t\t\t\t\t

virement

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t: ''\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t(selectedOptionCard === \"card\") ? : \"\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t(selectedOptionCard === \"sepa_debit\") ? : \"\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\tR.isNil(paymentMethod) ?\r\n\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t!R.isNil(loadings) && loadings.includes(Loadings.DELETING_PAYMENTMETHOD) ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{!R.isNil(selectedOptionCard) ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t: ''\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tR.isNil(user.paymentMethod) ?\r\n\t\t\t\t\t\t\t\t!R.isNil(loadings) && loadings.includes(Loadings.ADDING_PAYMENTMETHOD) ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\tR.isNil(selectedOptionCard) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\tR.isNil(user.paymentMethod) ?\r\n\t\t\t\t\t\t\t\t\t\t\t(!R.isNil(loadings) && loadings.includes(Loadings.ADDING_PAYMENTMETHOD)) || isSaving ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n\r\n}","import React, { useEffect } from 'react';\r\nimport * as R from \"ramda\";\r\nimport { useHistory } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { CreditCardTile } from './creditCardTile';\r\nimport { VirementTile } from './virementTile';\r\nimport { AddPaymentMethodModal } from '../modal/addPaymentMethodModal';\r\nimport { useStripe } from '@stripe/react-stripe-js';\r\nimport { GetPaymentIntentsSecretKey } from '../../../actions/user-api';\r\nimport toastConf from '../../../utils/toasterConfiguration';\r\n\r\nexport const MainPaymentMethods = ({ user, loadings }) => {\r\n const stripe = useStripe();\r\n const history = useHistory();\r\n let paymentMethod = user.paymentMethods.find(p => p.isDefault === true);\r\n const pi = new URLSearchParams(history.location.search).get(\"pi\");\r\n\r\n useEffect(() =>\r\n {\r\n async function loadPaymentIntentsAsync() {\r\n if (!R.isNil(pi) && !R.isNil(stripe)) {\r\n await paymentIntents(user.id);\r\n }\r\n }\r\n loadPaymentIntentsAsync();\r\n\r\n }, [stripe, pi, user.id]);\r\n\r\n async function paymentIntents(id) {\r\n\r\n // if (R.isNil(stripe)) return;\r\n\r\n const piSecret = await GetPaymentIntentsSecretKey(id, pi);\r\n if (!piSecret) return;\r\n\r\n stripe.confirmCardPayment(piSecret.clientSecret)\r\n .then((result) => {\r\n if (result.error) {\r\n toast.error(result.error.message, toastConf);\r\n } else {\r\n toast.success(\"Paiement avec succès!\", toastConf);\r\n }\r\n });\r\n }\r\n\r\n\r\n return (\r\n \r\n {\r\n user.paymentMethods.length > 0 ?\r\n user.paymentMethods[0].type.toLowerCase() === \"card\" ?\r\n \r\n :\r\n \r\n :\r\n \r\n }\r\n {\r\n // user.paymentMethods.length > 0 ?\r\n // \r\n // :\r\n // ''\r\n }\r\n \r\n \r\n );\r\n};","import React, {useState} from 'react';\r\nimport { loadStripe } from '@stripe/stripe-js';\r\nimport { Elements } from '@stripe/react-stripe-js';\r\nimport { EndPoints } from '../../constants/api-config';\r\nimport { MainPaymentMethods } from './main/index';\r\n\r\nexport const PaymentMethods = ({ user, loadings }) => {\r\n const [stripePromise] = useState(() => loadStripe(EndPoints.stripePublicKey))\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};","import React, { useState, useEffect } from 'react';\r\nimport * as R from 'ramda';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../../../constants/webapi/user';\r\n\r\nexport const DiscountCode = ({user, discountCodeState, setDiscountCodeState}) => {\r\n const [loadingState, setLoadingState] = useState(false);\r\n function validateDiscountCode(code){\r\n setLoadingState(true);\r\n return axios.post(urls.validateDiscountCodeUrl(user.id), {code: code})\r\n .then((response) => {\r\n setDiscountCodeState({...discountCodeState, isValid: true, code: response.data.code, apiId: response.data.apiId});\r\n setLoadingState(false);\r\n })\r\n .catch((error) => {\r\n setDiscountCodeState({...discountCodeState,isValid: false});\r\n setLoadingState(false);\r\n });\r\n }\r\n\r\n return (\r\n <>\r\n

Code partenaire

\r\n

Insérer le code partenaire ci-dessous

\r\n
\r\n
\r\n \r\n
\r\n {\r\n setDiscountCodeState({...discountCodeState, code: e.target.value});\r\n\r\n }\r\n } />\r\n \r\n \r\n
\r\n {\r\n !R.isNil(discountCodeState.isValid) ?\r\n !discountCodeState.isValid ?\r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n :\r\n

Code appliqué: le tarif a été mis à jour.

\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n \r\n );\r\n}","import React, { useState, useEffect } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { updateOnBoardingStep, processPayment, getCurrentPrices } from '../../../actions/user-api';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { PaymentMethods } from '../../../_common/payments2';\r\nimport { DiscountCode } from './discountCode';\r\nimport featuresOverview from './../../../assets/images/placeholder/Features-Overview.svg';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport queryString from 'query-string';\r\n\r\nexport const Step6 = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const [userAge, setUserAge] = useState(0);\r\n const [paymentType, setPaymentType] = useState(0);\r\n\r\n const prices = [{ num: 1, price: '299,00' }, { num: 4, price: '74,75' }, { num: 6, price: '49,95' }, { num: -1, price: '29,99' }];\r\n const [paymentOptions, setPaymentOptions] = useState({\r\n prices: prices,\r\n selectedOption: prices[0],\r\n hasLoadedPrices: false\r\n });\r\n\r\n\r\n const [processing, setProcessing] = useState(false);\r\n const [discountCodeState, setDiscountCodeState] = useState({\r\n code: undefined,\r\n apiId: undefined,\r\n isValid: undefined,\r\n });\r\n\r\n useEffect(() => {\r\n setUserAge(getAge(user.user.birthDate));\r\n }, []);\r\n\r\n useEffect(() => {\r\n\r\n getCurrentPrices(user.user.id)\r\n .then((prices) => {\r\n let mappedPrices = prices.map((price) => {\r\n if (price.product === \"SetupFee1Minus65\" && userAge < 65) {\r\n return { num: 1, price: price.currentPrice.toFixed(2) };\r\n }\r\n if (price.product === \"SetupFee1\" && userAge >= 65) {\r\n return { num: 1, price: price.currentPrice.toFixed(2) };\r\n }\r\n if (price.product === \"SetupMonthly\") {\r\n return { num: 12, price: price.currentPrice.toFixed(2) };\r\n }\r\n if (price.product === \"SetupFee4\") {\r\n return { num: 4, price: price.currentPrice.toFixed(2) };\r\n }\r\n if (price.product === \"SetupFee6\") {\r\n return { num: 6, price: price.currentPrice.toFixed(2) };\r\n }\r\n if (price.product === \"Annual\") {\r\n return { num: -1, price: price.currentPrice.toFixed(2) };\r\n }\r\n }).filter(e => !R.isNil(e));\r\n\r\n mappedPrices = R.sortBy(R.prop('num'))(mappedPrices);\r\n setPaymentOptions({ ...paymentOptions, prices: mappedPrices, selectedOption: mappedPrices.find(p => p.num === 1), hasLoadedPrices: true });\r\n });\r\n\r\n\r\n }, [userAge]);\r\n\r\n function getAge(dateString) {\r\n var today = new Date();\r\n var birthDate = new Date(dateString);\r\n var age = today.getFullYear() - birthDate.getFullYear();\r\n var m = today.getMonth() - birthDate.getMonth();\r\n if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {\r\n age--;\r\n }\r\n return age;\r\n }\r\n\r\n\r\n async function endRegistration() {\r\n setProcessing(true);\r\n if (!user.user.billedByPartner && !user.user.hasHrDocuments) {\r\n await dispatch(processPayment(user.user, discountCodeState.apiId, paymentOptions.selectedOption.num));\r\n }\r\n await dispatch(updateOnBoardingStep(6));\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step === 6 || step === -1) {\r\n if (tmpUser.onBoardingStep === \"Completed\" || tmpUser.onBoardingStep === 6) {\r\n setProcessing(false);\r\n\r\n const parsedQueryString = queryString.parse(window.location.search);\r\n if (!R.isNil(parsedQueryString.redirect_uri) && !R.isNil(parsedQueryString.nonce) && !R.isNil(parsedQueryString.state)) {\r\n const search = {\r\n state: parsedQueryString.state,\r\n nonce: parsedQueryString.nonce,\r\n externalUserId: user.user.id\r\n };\r\n window.location = parsedQueryString.redirect_uri + \"?\" + queryString.stringify(search);\r\n return;\r\n }\r\n\r\n window.location = `/anticipa?fc=1`;\r\n }\r\n }\r\n }\r\n if (R.isNil(user.user) || !paymentOptions.hasLoadedPrices) {\r\n return ;\r\n }\r\n\r\n\r\n if (user.user.billedByPartner || user.user.hasHrDocuments) {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \"features\r\n
\r\n

Validation

\r\n

Résumé de votre dossier.

\r\n
\r\n
\r\n
\r\n {/*

Deux formules au choix :

*/}\r\n {/*

Votre dossier comprend :

*/}\r\n
\r\n {/* uncomment bellow to display 2 types of tarif */}\r\n {/*
\r\n \r\n
    \r\n
  • \r\n
  • \r\n
\r\n
*/}\r\n
\r\n
\r\n \r\n Création de votre dossier personnalisé\r\n
\r\n
\r\n \r\n Archivage dans un coffre-fort numérique sécurisé\r\n
\r\n
\r\n \r\n Suivi et courrier d’information annuel de votre dossier personnalisé\r\n
\r\n
\r\n \r\n Modification de vos données incluses\r\n
\r\n
\r\n \r\n Confirmation des coordonnées de votre (vos) référent(s) annuellement\r\n
\r\n {\r\n user.user.hasHrDocuments ?\r\n <>\r\n
\r\n \r\n Création, copie et adressage en recommandé de tous les organismes en lien avec vous.\r\n
\r\n \r\n :\r\n <>\r\n
\r\n \r\n Intérruption de votre abonnement à tout moment\r\n
\r\n
\r\n \r\n Accompagnement administratif dans les évènements de vie (déménagement ...)\r\n
\r\n
\r\n \r\n En cas de décès : Création, copie et adressage de toutes vos démarches en recommandé\r\n
\r\n \r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n processing ?\r\n \r\n :\r\n \r\n\r\n }\r\n
\r\n
\r\n
\r\n );\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n

Validation

\r\n

Résumé de votre dossier

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Mode de paiement

\r\n

Cliquez ci-dessous pour ajouter ou modifier une méthode de paiement

\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n

{userAge < 65 && user.user.etablissementId === \"00000000-0000-0000-0000-000000000000\" ? \"Deux formules au choix\" : \"Votre Formule\"} :

\r\n
\r\n {/* UI -- A */}\r\n {/* \r\n
    \r\n
  • \r\n
  • \r\n
*/}\r\n {/* UI -- B */}\r\n {userAge < 65 && user.user.etablissementId === \"00000000-0000-0000-0000-000000000000\" ? (\r\n
\r\n
\r\n {\r\n setPaymentType(1);\r\n let option = paymentOptions.prices.find((p) => p.num === 12);\r\n if (option !== null) {\r\n setPaymentOptions({ ...paymentOptions, selectedOption: option });\r\n }\r\n }}>\r\n Simplicité\r\n \r\n {\r\n setPaymentType(0);\r\n let option = paymentOptions.prices.find((p) => p.num === 1);\r\n if (option !== null) {\r\n setPaymentOptions({ ...paymentOptions, selectedOption: option });\r\n }\r\n }}>\r\n Liberté\r\n \r\n
\r\n
\r\n ) : (\r\n
\r\n
\r\n \r\n
\r\n
\r\n )}\r\n\r\n
\r\n
\r\n
\r\n \r\n Création de votre dossier personnalisé\r\n
\r\n
\r\n \r\n Archivage dans un coffre-fort numérique sécurisé\r\n
\r\n
\r\n \r\n \r\n Accompagne dans vos évènements de vie : déménagement, passage à la majorité, mariage, naissance d'un enfant, divorce\r\n \r\n
\r\n
\r\n \r\n Suivi et courrier d’information annuel de votre dossier personnalisé\r\n
\r\n
\r\n \r\n Modification de vos données incluses\r\n
\r\n
\r\n \r\n Confirmation des coordonnées de votre (vos) référent(s) annuellement\r\n
\r\n
\r\n \r\n Accompagnement administratif dans les évènements de vie (déménagement ...)\r\n
\r\n
\r\n \r\n Intérruption de votre abonnement à tout moment\r\n
\r\n
\r\n \r\n \r\n En cas de décès : Création, copie et adressage de toutes vos démarches en recommandé\r\n \r\n
\r\n
\r\n {/*
\r\n

Organismes de bases

\r\n {\r\n discountCodeState.isValid ?\r\n

0,00 €

\r\n :\r\n

60,00 €

\r\n }\r\n
\r\n
\r\n

Organismes complémentaires

\r\n {\r\n discountCodeState.isValid ?\r\n

0,00 €

\r\n :\r\n

239,00 €

\r\n }\r\n
*/}\r\n
\r\n {paymentType === 0 ? (\r\n
\r\n
\r\n

Total TTC

\r\n {discountCodeState.isValid ?

0,00 €

:

{paymentOptions.prices.find((p) => p.num === 1).price} €

}\r\n
\r\n
\r\n
\r\n

PUIS

\r\n

{paymentOptions.prices.find((p) => p.num === -1).price} € par an

\r\n
\r\n

Pour l'actualisation et le suivi du dossier

\r\n
\r\n ) : (\r\n
\r\n
\r\n

Total TTC

\r\n {discountCodeState.isValid ?

0,00 €

:

{paymentOptions.prices.find((p) => p.num === 12).price} € / Mois

}\r\n
\r\n
\r\n )}\r\n
\r\n {discountCodeState.isValid || userAge < 65 || user.user.etablissementId === \"00000000-0000-0000-0000-000000000000\" ? (\r\n \"\"\r\n ) : (\r\n
\r\n
\r\n
Vous pouvez mensualiser votre dossier
\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n let option = paymentOptions.prices.find((p) => p.num.toString() === e.target.value);\r\n if (option !== null) {\r\n setPaymentOptions({ ...paymentOptions, selectedOption: option });\r\n }\r\n }}\r\n value={paymentOptions.selectedOption.num}>\r\n {paymentOptions.prices.map((option, index) => {\r\n if (option.num !== -1 && option.num !== 12)\r\n return (\r\n \r\n );\r\n })}\r\n \r\n {/* */}\r\n \r\n
\r\n

{paymentOptions.selectedOption.price} €

\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Retour\r\n \r\n {R.isEmpty(user.user.paymentMethods) && !discountCodeState.isValid ? (\r\n \r\n ) : user.isLoading.includes(Loadings.PROCESSING_PAYMENT) || processing ? (\r\n \r\n ) : (\r\n {\r\n await endRegistration();\r\n }}>\r\n Payer maintenant
\r\n \r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","\r\nimport React, {useState} from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\n\r\nexport const Cookies = () => {\r\n\tconst [showBanner, setShowBanner] = useState(true);\r\n\tconst cookieName = \"cookieAcceptance\";\r\n\tfunction setCookie(name,value,days) {\r\n\t\tvar expires = \"\";\r\n\t\tif (days) {\r\n\t\t\tvar date = new Date();\r\n\t\t\tdate.setTime(date.getTime() + (days*24*60*60*1000));\r\n\t\t\texpires = \"; expires=\" + date.toUTCString();\r\n\t\t}\r\n\t\tdocument.cookie = name + \"=\" + (value || \"\") + expires + \"; path=/\";\r\n\t}\r\n\tfunction getCookie(name) {\r\n\t\tvar nameEQ = name + \"=\";\r\n\t\tvar ca = document.cookie.split(';');\r\n\t\tfor(var i=0;i < ca.length;i++) {\r\n\t\t\tvar c = ca[i];\r\n\t\t\twhile (c.charAt(0)==' ') c = c.substring(1,c.length);\r\n\t\t\tif (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\r\n\tconst cookie = getCookie(cookieName);\r\n\tif(!R.isNil(cookie) || !showBanner){\r\n\t\treturn '';\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

\r\n\t\t\t\t\tNous déposons uniquement des cookies strictement nécessaires au bon fonctionnement de notre site web qui ne peuvent pas être désactivés.\r\n\t\t\t\t

\r\n\t\t\t\t

\r\n\t\t\t\t\t\r\n\t\t\t\t

\r\n\t\t\t\t

\r\n\t\t\t\t\tPour en savoir plus, vous pouvez consulter notre politique de confidentialité et notre politique de gestion des cookies\r\n\t\t\t\t

\r\n\t\t\t\t\r\n\t\t\t\t{/* */}\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t)\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { ToastContainer } from 'react-toastify';\r\nimport { Link, useLocation } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { EndPoints } from '../../constants/api-config';\r\n// Signup\r\n// ==========================================\r\n// Signup: Common\r\nimport Help from './_common/help';\r\nimport {Navbar} from './_common/navbar';\r\nimport {SkipRegister} from './_common/skipRegister';\r\nimport photoWoman from './../../assets/images/placeholder/photo-woman.jpeg';\r\nimport { resetUser } from './../../actions/user-api';\r\nimport { resetAuth } from './../../actions/auth-api';\r\n\r\n// Signup: Views\r\nimport { Step1 } from './step1';\r\nimport { Step2 } from './step2';\r\nimport {Step3} from './step3/index';\r\n// import Step3 from './step3/_oldindex';\r\nimport {Step4} from './step4';\r\nimport {Step5} from './step5';\r\nimport {Step6} from './step6';\r\n\r\nimport { Cookies } from '../_common/cookies';\r\nimport * as R from 'ramda';\r\nimport { fetchUserById, getUserAddress, getUserRepresentatives, getUserRepresentativeAddress, getUserServices, fetchPartnerCustomization } from '../../actions/user-api';\r\nimport JwtDecode from 'jwt-decode';\r\n\r\nexport const Signup = () => {\r\n const location = useLocation(); \r\n const router = useSelector(state => state.router);\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const auth = useSelector(state => state.auth);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [personalDataRequirements, setPersonalDataRequirements] = useState({\r\n civil: false,\r\n familiar: false,\r\n children: false,\r\n contact: false,\r\n profession: false\r\n });\r\n const [monReferentRequirements, setMonReferentRequirements] = useState({principal: false, other: false});\r\n const [monServiceRequirements, setMonServiceRequirements] = useState({ communes: true, personnal: false });\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n }\r\n\r\n let SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n let pathname = router.location.pathname.toLowerCase();\r\n let stepNum = pathname.substring(17,18);\r\n let step = stepNum !== '' ? parseInt(stepNum): 1;\r\n\r\n const [loadingFinished, setLoadingFinished] = useState(false);\r\n\r\n const [stepsCompleted, setStepsCompleted] = useState([]);\r\n const [partnerCustomization, setPartnerCustomization] = useState({\r\n logoBase64Encoded: undefined,\r\n color: undefined\r\n });\r\n\r\n const partnerId = new URLSearchParams(location.search).get(\"partnerId\");\r\n const color = new URLSearchParams(location.search).get(\"color\");\r\n\r\n useEffect(() => {\r\n\r\n if (R.isNil(user.user) && !R.isNil(partnerId) && partnerId !== \"\"){\r\n setPartnerCustomization({...partnerCustomization,\r\n color: color,\r\n logoBase64Encoded: `${SERVER_ADDR_V1}/partners/${partnerId}/logo`\r\n });\r\n }\r\n }, [partnerId, color]);\r\n\r\n useEffect(() => {\r\n var accessToken = sessionStorage.getItem(\"access_token\");\r\n if (accessToken !== undefined && accessToken !== null && accessToken !== '') {\r\n var decoded = JwtDecode(accessToken);\r\n if (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n dispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n }\r\n }else{\r\n setLoadingFinished(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n var accessToken = sessionStorage.getItem(\"access_token\");\r\n if (accessToken !== undefined && accessToken !== null && accessToken !== '') {\r\n var decoded = JwtDecode(accessToken);\r\n if (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n dispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.registered]);\r\n\r\n\r\n useEffect(() => {\r\n let tmpUser = user.user;\r\n if (!R.isNil(tmpUser) && tmpUser.id !== undefined) {\r\n dispatch(getUserAddress(tmpUser.id));\r\n dispatch(getUserRepresentatives(tmpUser.id));\r\n dispatch(getUserServices(tmpUser));\r\n if(!R.isNil(tmpUser.partnerId) && tmpUser.partnerId !== '00000000-0000-0000-0000-000000000000') {\r\n dispatch(fetchPartnerCustomization(tmpUser.partnerId))\r\n\t\t\t\t\t.then((customization) => {\r\n\t\t\t\t\t\tsetLoadingFinished(true);\r\n\t\t\t\t\t\tif (!R.isNil(customization) && !R.isNil(customization.data)) {\r\n\t\t\t\t\t\t\tsetPartnerCustomization(customization.data);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(() => setLoadingFinished(true));\r\n }else{\r\n setLoadingFinished(true);\r\n }\r\n \r\n checkSteps();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.user]);\r\n\r\n useEffect(() => {\r\n if(!R.isNil(user.referents) && user.referents.length > 0){\r\n user.referents.forEach(r => {\r\n dispatch(getUserRepresentativeAddress(r))\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.referents]);\r\n\r\n useEffect(() => {\r\n checkSteps();\r\n }, [!R.isNil(user.user) ? user.user.onBoardingStep : user.user]);\r\n\r\n\r\n function checkSteps(){\r\n let tmpSteps = [];\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step !== 6 && step !== -1) {\r\n\t\t\tif(tmpUser.onBoardingStep === \"Completed\"){\r\n step = 6;\r\n\t\t\t}\r\n\t\t}\r\n\r\n if (step !== -1){\r\n tmpSteps = Array.from({length: step}, (_, i) => i + 1);\r\n }\r\n setStepsCompleted(tmpSteps);\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.user)){\r\n checkSteps();\r\n }\r\n if (step === 1 && !stepsCompleted.includes(1) && (auth.loggedIn !== true || user.user === undefined)) {\r\n $('#commencerRegister').modal('show');\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [loadingFinished]);\r\n\r\n if(loadingFinished === false)\r\n return '';\r\n\r\n return (\r\n
\r\n

Assist@

\r\n \r\n \r\n
\r\n

Assist@: Main

\r\n \r\n {\r\n step === 1 ? {setPasswordRequirements(req)}}/>: \r\n step === 2 ? setPersonalDataRequirements(req)}/>:\r\n step === 3 ? setMonReferentRequirements(req)} />:\r\n step === 4 ? {setMonServiceRequirements(req)}}/>:\r\n step === 5 ? :\r\n step === 6 ? :\r\n ''\r\n }\r\n
\r\n {\r\n (!R.isNil(user.user) && !R.isNil(user.user.partnerId)) || window.location.search !== '' ? \r\n ''\r\n :\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Bienvenue sur Assist@.

\r\n

Après une expérience dans les services, et notamment la gestion de patrimoine durant 15 ans, j’ai décidé de créer l’entreprise ASSIST@ afin de faciliter l’administratif pour vous mais surtout pour vos proches.

\r\n\r\n

\r\n

Pour vous :

\r\n

Avec ANTICIPA, vous avez enfin un espace dédié regroupant tous les organismes en lien avec vous (noms et adresses) qui permet de préparer vos démarches.\r\n Votre synthèse innovante disponible à la fin de votre dossier est simple et modifiable. Elle vous permet en un « coup d’œil » de voir l’intégralité de vos services : centre de CPAM, fournisseur d’électricité, d’eau, abonnements, nom de votre notaire… le tout à jour. De plus, vous avez la possibilité de noter le tarif de vos abonnements et prélèvements qui\r\n vous permet d’avoir un suivi de votre situation.

\r\n

Pour vos proches :

\r\n

Un service qui s’articule autour de la gestion administrative, accessible en ligne, permettant\r\n l’automatisation des courriers obligatoires de la création à l'envoi inclus le moment venu.
\r\n Notre offre apporte gain de temps, facilité de traitement, fiabilité et anticipation.
\r\n Notre mode de fonctionnement est basé sur la confidentialité et le professionnalisme.

\r\n

\r\n \r\n

\r\n Faites pour vos proches les démarches qu’ils auraient eu à faire pour vous
\r\n Notre équipe est à votre écoute, bon dossier.\r\n

\r\n

\r\n Aurélie Fournier
\r\n Fondatrice\r\n

\r\n
\r\n {\r\n dispatch(resetAuth());\r\n dispatch(resetUser());\r\n if (sessionStorage.getItem(\"access_token\") !== undefined) {\r\n sessionStorage.removeItem(\"access_token\");\r\n }\r\n hideModal();\r\n }}>Quitter\r\n Commencer\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n }\r\n \r\n \r\n \r\n
\r\n )\r\n}\r\n","export default __webpack_public_path__ + \"static/media/Signin-ilustration.fd4ff524.svg\";","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, useHistory, useLocation } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport SigninIlustration from './../../assets/images/placeholder/Signin-ilustration.svg';\r\nimport * as Loadings from '../../constants/loadings/auth';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { authenticateUser } from '../../actions/auth-api';\r\nimport Credentials from '../../constants/models/credentials';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\n\r\nimport { Cookies } from '../_common/cookies';\r\n\r\nexport const Signin = () => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n const location = useLocation();\r\n const loginFormRef = useRef(null);\r\n const auth = useSelector(state => state.auth);\r\n const [credentials, setCredentials] = useState({\r\n email: '',\r\n phoneNumber: '',\r\n password: '',\r\n countryCode: '33',\r\n phoneCountry: \"FR\"\r\n });\r\n const [loginWithEmail, setLoginWithEmail] = useState(true);\r\n\r\n const errors = { invalidCredentials: 'invalidCredentials' };\r\n const [displayError, setDisplayError] = useState(undefined);\r\n const [showPassword, setShowPassword] = useState(false);\r\n const [showLockedMessage, setShowLockedMessage] = useState(false);\r\n\r\n const returnUrl = new URLSearchParams(location.search).get(\"returnUrl\");\r\n const color = new URLSearchParams(location.search).get(\"color\");\r\n const partnerId = new URLSearchParams(location.search).get(\"partnerId\");\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.authError)) {\r\n switch (auth.authError) {\r\n case 'invalidCredentials':\r\n setDisplayError(errors.invalidCredentials);\r\n setCredentials({ ...credentials, password: '' });\r\n loginFormRef.current.classList.remove('was-validated');\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.authError]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.loggedIn) && auth.loggedIn === false) {\r\n\r\n history.push(`/auth/signin/code${location.search}`);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.loggedIn]);\r\n\r\n function formSubmit(event) {\r\n event.preventDefault();\r\n if (loginFormRef.current.checkValidity() && !auth.isLoading.includes(Loadings.AUTH_USER)) {\r\n let creds = undefined;\r\n if (loginWithEmail) {\r\n creds = new Credentials({ email: credentials.email, password: credentials.password });\r\n }\r\n else {\r\n const internationalPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n if (internationalPhoneNumber.isValid()) {\r\n creds = new Credentials({ phoneNumber: internationalPhoneNumber.number, password: credentials.password });\r\n } else {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n return;\r\n }\r\n }\r\n dispatch(authenticateUser(creds))\r\n .then((reason) => {\r\n if (reason === \"Locked\") {\r\n setShowLockedMessage(true);\r\n }\r\n });\r\n }\r\n loginFormRef.current.classList.add('was-validated');\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n

Registration de Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n
\r\n {\r\n R.isNil(partnerId) ?\r\n \r\n :\r\n \"\"\r\n }\r\n
{ formSubmit(event); }}>\r\n

Bienvenue

\r\n
\r\n
\r\n \r\n
\r\n {\r\n loginWithEmail === false ?\r\n
\r\n \r\n {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value });\r\n setShowLockedMessage(false);\r\n }}\r\n onBlur={() => {\r\n setCredentials({ ...credentials, phoneNumber: credentials.phoneNumber.trim() });\r\n }} />\r\n
\r\n :\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n setDisplayError(undefined);\r\n setShowLockedMessage(false);\r\n }} onBlur={() => {\r\n setCredentials({ ...credentials, email: credentials.email.replace(/\\s/g, '').trim() });;\r\n }} />\r\n }\r\n\r\n
Champs obligatoire
\r\n
\r\n
\r\n
\r\n \r\n Mot de passe oublié ?\r\n
\r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, password: event.target.value });\r\n setDisplayError(undefined);\r\n }} />\r\n
\r\n
\r\n { setShowPassword(!showPassword); }}>\r\n
\r\n
\r\n
Champs obligatoire
\r\n
\r\n
\r\n
\r\n Identifiants incorrects\r\n
\r\n
\r\n Votre compte est bloqué. Veuillez contacter le support pour plus d'informations.\r\n
\r\n
{ setLoginWithEmail(!loginWithEmail); }\r\n }>\r\n Se connecter avec son\r\n {loginWithEmail ? 'numéro de portable' : 'adresse email'}\r\n ?\r\n
\r\n \r\n
\r\n
\r\n Fermer\r\n {/* Se connecter */}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n );\r\n};","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport liendirect from './../../../assets/images/svg/049-family.svg';\r\nimport autres from './../../../assets/images/svg/051-parents.svg';\r\nimport * as Loadings from '../../../constants/loadings/referent';\r\nimport { useSelector } from 'react-redux';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nexport const ColapsedReferent = ({data, setIsEditing}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n //const gender = { male: 'Male', female: 'Female' };\r\n const referent = useSelector(state => state.referent)\r\n const representativeType = {direct: 'Family', other:'Other'};\r\n const representativeTypeFamily = ['', 'Fils/Fille', 'Parent', 'Frère/Soeur', 'Conjoint'];\r\n if (R.isNil(data)){\r\n return '';\r\n }\r\n const parsedPhoneNumber = !R.isNil(data.phoneNumber) && data.phoneNumber !== \"\" ? parsePhoneNumber(data.phoneNumber)?.formatInternational() : undefined;\r\n return (\r\n
\r\n
\r\n
\r\n {data.representativeType\r\n

{data.representativeType === representativeType.other ? 'Autres' : representativeTypeFamily[data.representativeType]}

\r\n
\r\n
\r\n \r\n

{R.isNil(data.birthDate) ? \"N/D\" : new Date(data.birthDate).toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric' })}

\r\n
\r\n
\r\n \r\n

{data.address.addressLine1}
{data.address.postalCode} {data.address.city}, {countries.getName(data.address.country, \"fr\", {select: \"official\"})}

\r\n
\r\n {\r\n R.isNil(data.email) || data.email === \"\" ?\r\n ''\r\n :\r\n
\r\n \r\n

{data.email}

\r\n
\r\n }\r\n {\r\n R.isNil(parsedPhoneNumber) || parsedPhoneNumber === \"\" ?\r\n ''\r\n :\r\n
\r\n \r\n

{parsedPhoneNumber}

\r\n
\r\n }\r\n
\r\n
\r\n \r\n
\r\n
\r\n )\r\n}","import { EndPoints } from \"../api-config\";\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const searchCityOrPostalCode = (search) => `${SERVER_ADDR_V1}/PostalCode/search?textSearch=${search}`;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { AsyncPaginate } from \"react-select-async-paginate\";\r\nimport * as axios from \"axios\";\r\nimport * as urls from \"../constants/webapi/postalcodeCity\";\r\nimport { RegexFields } from \"../constants/utils/regexFields\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const PostalCityInput = ({\r\n\tpostalCode,\r\n\tcity,\r\n\tonChange,\r\n\tpostalCodePattern = RegexFields.frenchZipCode,\r\n\tcityPattern = RegexFields.nameWithoutNumbers,\r\n\tcustomClasses = {},\r\n\tpostalCodeId = \"PostalCodeInput\",\r\n\tcityId = \"CityInput\",\r\n\tpostalCodeRequired = true,\r\n\tcityRequired = true,\r\n\tpostalCodeDisabled = false,\r\n\tcityDisabled = false,\r\n\thasWrapper = true,\r\n\twrapperClass = \"\",\r\n\tcountry,\r\n}) => {\r\n\tconst [selectedCityOption, setSelectedCityOption] = useState(\r\n\t\tcity || postalCode\r\n\t\t\t? {\r\n\t\t\t\t\tlabel: city,\r\n\t\t\t\t\tvalue: city,\r\n\t\t\t\t\tpostalCode: postalCode,\r\n\t\t\t }\r\n\t\t\t: null\r\n\t);\r\n\tconst [cityOptions, setCityOptions] = useState([]);\r\n\tconst [cityMenuIsOpen, setCityMenuIsOpen] = useState(false);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [_postalCode, setPostalCode] = useState(postalCode);\r\n\tconst [_city, setCity] = useState(city);\r\n\r\n\tconst [isCityInvalid, setIsCityInvalid] = useState(false);\r\n\r\n\tconst sortByNameCaseInsensitive = R.sortBy(R.compose(R.toLower, R.prop(\"label\")));\r\n\r\n\tuseEffect(() => {\r\n\t\tif (_city === \"\" && (country === \"FR\" || country === \"France\")) {\r\n\t\t\tsetSelectedCityOption(null);\r\n\t\t\t// setPostalCode(undefined);\r\n\t\t}\r\n\t\tif (_postalCode?.length === 5 || (country !== \"FR\" && country !== \"France\")) {\r\n\t\t\tsetCityMenuIsOpen(true);\r\n\t\t\tif (!selectedCityOption) {\r\n\t\t\t\tsetCity(\"\");\r\n\t\t\t}\r\n\t\t\tasync function loadAndSetCities() {\r\n\t\t\t\tconst searchResult = await loadCities(_postalCode);\r\n\t\t\t\tsetCityOptions(searchResult.options);\r\n\t\t\t}\r\n\t\t\tloadAndSetCities();\r\n\t\t} else {\r\n\t\t\tsetCityOptions([{ label: \"Ajout manuel\", postalCode: _postalCode, value: _city || \" \" }]);\r\n\t\t}\r\n\r\n\t\tif (_city !== \"\" && (_postalCode?.length === 5 || (country !== \"FR\" && country !== \"France\")) && !selectedCityOption) {\r\n\t\t\tsetSelectedCityOption({\r\n\t\t\t\tlabel: _city,\r\n\t\t\t\tvalue: _city,\r\n\t\t\t\tpostalCode: _postalCode,\r\n\t\t\t});\r\n\t\t}\r\n\t}, [_city, _postalCode, selectedCityOption]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (postalCode && (_postalCode === \"\" || !_postalCode)) {\r\n\t\t\tsetPostalCode(postalCode);\r\n\r\n\t\t\tif (postalCode?.length === 5 || (country !== \"FR\" && country !== \"France\")) {\r\n\t\t\t\tsetCityMenuIsOpen(true);\r\n\t\t\t\tif (!selectedCityOption) {\r\n\t\t\t\t\tsetCity(\"\");\r\n\t\t\t\t}\r\n\t\t\t\tasync function loadAndSetCities() {\r\n\t\t\t\t\tconst searchResult = await loadCities(postalCode);\r\n\t\t\t\t\tsetCityOptions(searchResult.options);\r\n\t\t\t\t}\r\n\t\t\t\tloadAndSetCities();\r\n\t\t\t} else {\r\n\t\t\t\tsetCityOptions([{ label: \"Ajout manuel\", postalCode: _postalCode, value: _city || \" \" }]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (city && _city === \"\") {\r\n\t\t\tsetCity(city);\r\n\t\t}\r\n\r\n\t\tif (city !== \"\" && (_postalCode?.length === 5 || (country !== \"FR\" && country !== \"France\")) && !selectedCityOption) {\r\n\t\t\tsetSelectedCityOption({\r\n\t\t\t\tlabel: city,\r\n\t\t\t\tvalue: city,\r\n\t\t\t\tpostalCode: postalCode,\r\n\t\t\t});\r\n\t\t}\r\n\t}, [city, postalCode]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (country && country !== \"FR\" && country !== \"France\") {\r\n\t\t\tsetSelectedCityOption({\r\n\t\t\t\tlabel: _city,\r\n\t\t\t\tvalue: _city,\r\n\t\t\t\tpostalCode: _postalCode,\r\n\t\t\t});\r\n\t\t\tonChange({ postalCode: _postalCode, city: _city });\r\n\t\t\treturn;\r\n\t\t}\r\n\t}, [country]);\r\n\r\n\tconst loadCities = async (search) => {\r\n\t\tif (!search) return { options: [], hasMore: false };\r\n\t\ttry {\r\n\t\t\tsetIsLoading(true);\r\n\t\t\tconst response = await axios.get(urls.searchCityOrPostalCode(search));\r\n\t\t\tlet result = [];\r\n\t\t\tresponse.data.forEach((el) => {\r\n\t\t\t\tconst exists = result.find((x) => x.Name === el.Name && x.PostalCode === el.PostalCode);\r\n\t\t\t\tif (!exists) {\r\n\t\t\t\t\tresult.push(el);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tconst unorderedOptions = result.map((d) => ({\r\n\t\t\t\tlabel: `${d.Name} (${d.PostalCode})`,\r\n\t\t\t\tvalue: d.Name,\r\n\t\t\t\tpostalCode: d.PostalCode,\r\n\t\t\t}));\r\n\t\t\tconst sortedOptions = sortByNameCaseInsensitive(unorderedOptions);\r\n\t\t\tsortedOptions.push({ label: \"Ajout manuel\", postalCode: _postalCode, value: _city || \" \" });\r\n\t\t\tsetIsLoading(false);\r\n\t\t\treturn { options: sortedOptions, hasMore: false };\r\n\t\t} catch (error) {\r\n\t\t\tsetIsLoading(false);\r\n\t\t\tconsole.error(\"Error loading cities:\", error);\r\n\t\t\treturn { options: [], hasMore: false };\r\n\t\t}\r\n\t};\r\n\tconst updateCityValidityState = (isInvalid) => {\r\n\t\tsetIsCityInvalid(isInvalid);\r\n\t};\r\n\r\n\tconst InputFields = (\r\n\t\t<>\r\n\t\t\t{country === \"FR\" || country === \"France\" ? (\r\n\t\t\t\t<>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{country === null || country === \"FR\" || country === \"GF\" || country === \"PF\" || country === \"TF\" ? (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPostalCode(e.target.value);\r\n\t\t\t\t\t\t\t\t\tonChange({ postalCode: e.target.value, city: _city });\r\n\t\t\t\t\t\t\t\t\tif (e.target.value.length !== 5) {\r\n\t\t\t\t\t\t\t\t\t\tsetSelectedCityOption(null);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetCityMenuIsOpen(true);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={postalCodePattern}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPostalCode(e.target.value);\r\n\t\t\t\t\t\t\t\t\tonChange({ postalCode: e.target.value, city: _city });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{_postalCode ? \"Le format n'est pas correct\" : \"Ce champ est requis\"}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{R.isNil(selectedCityOption) && (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPostalCode(option.postalCode || _postalCode);\r\n\t\t\t\t\t\t\t\t\tsetCity(option.value);\r\n\t\t\t\t\t\t\t\t\tonChange({ postalCode: option.postalCode || _postalCode, city: option.value });\r\n\t\t\t\t\t\t\t\t\tsetSelectedCityOption({ postalCode: option.postalCode || _postalCode, city: option.value });\r\n\t\t\t\t\t\t\t\t\tsetCityMenuIsOpen(false);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tonInputChange={(searchInput) => {\r\n\t\t\t\t\t\t\t\t\tif (searchInput && searchInput !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\tsetCity(searchInput);\r\n\t\t\t\t\t\t\t\t\t\tonChange({ postalCode: _postalCode, city: searchInput });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tdebounceTimeout={1000}\r\n\t\t\t\t\t\t\t\tplaceholder=\"ex: Paris\"\r\n\t\t\t\t\t\t\t\tloadingMessage={() => \"Chargement...\"}\r\n\t\t\t\t\t\t\t\tnoOptionsMessage={() => \"Aucun résultat\"}\r\n\t\t\t\t\t\t\t\tloading={isLoading}\r\n\t\t\t\t\t\t\t\tonMenuOpen={() => setCityMenuIsOpen(true)}\r\n\t\t\t\t\t\t\t\tonMenuClose={() => setCityMenuIsOpen(false)}\r\n\t\t\t\t\t\t\t\tmenuIsOpen={cityMenuIsOpen}\r\n\t\t\t\t\t\t\t\tloadOptionsOnMenuOpen={false}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetCity(e.target.value);\r\n\t\t\t\t\t\t\t\tonChange({ postalCode: _postalCode, city: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t) : (\r\n\t\t\t\t<>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPostalCode(e.target.value);\r\n\t\t\t\t\t\t\t\tonChange({ postalCode: e.target.value, city: _city });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetCity(e.target.value);\r\n\t\t\t\t\t\t\t\tonChange({ postalCode: _postalCode, city: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t\r\n\t);\r\n\r\n\treturn hasWrapper ?
{InputFields}
: InputFields;\r\n};\r\n","import {EndPoints} from '../api-config';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n\r\nexport const userRepresentativeSelfcareLinkByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}/link`;\r\nexport const userRepresentativeSelfcareAuthByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}/auth`;\r\nexport const userRepresentativeByIdUrl = (id) => `${SERVER_ADDR_V1}/UserRepresentative/selfcare/${id}`;","import * as ActionTypes from '../constants/actiontypes/referent';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../constants/webapi/userRepresentativeSelfcare';\r\nimport { getAuthenticationUrl } from '../constants/webapi/auth';\r\n\r\n\r\n\r\nexport function postUserRepresentativeSelfcareJwt(id, password) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.AUTHENTICATE_REQUEST });\r\n\t\treturn axios.post(urls.userRepresentativeSelfcareAuthByIdUrl(id), { password })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.AUTHENTICATE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.AUTHENTICATE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserRepresentativeSelfcare(id) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USERREPRESENTATIVE_REQUEST });\r\n\t\treturn axios.get(urls.userRepresentativeByIdUrl(id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USERREPRESENTATIVE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 404) {\r\n\t\t\t\t\twindow.location = \"index\";\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USERREPRESENTATIVE_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\treferentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserRepresentativeSelfcare(id, userData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USERREPRESENTATIVE_REQUEST });\r\n\t\treturn axios.put(urls.userRepresentativeByIdUrl(id), userData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USERREPRESENTATIVE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 404) {\r\n\t\t\t\t\twindow.location = \"index\";\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USERREPRESENTATIVE_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\treferentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function linkUserRepresentativeSelfcareJwt(id) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.LINK_REQUEST });\r\n\t\treturn axios.get(urls.userRepresentativeSelfcareLinkByIdUrl(id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.LINK_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.LINK_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { registerLocale } from \"react-datepicker\";\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport fr from \"date-fns/locale/fr\";\r\nimport liendirect from './../../../assets/images/svg/049-family.svg';\r\nimport autres from './../../../assets/images/svg/051-parents.svg';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {RegexFields} from '../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../_common/dateWithModal';\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\nimport countryTelData from 'country-telephone-data';\r\nimport {updateUserRepresentativeSelfcare} from '../../../actions/referent-api';\r\n\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\n\r\nexport const EditReferent = ({ data, setIsEditing}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n registerLocale(\"fr\", fr);\r\n const dispatch = useDispatch();\r\n const [wasValidated, setWasValidated] = useState(false);\r\n\r\n //#region form\r\n const referentForm = useRef(null);\r\n const gender = { male: 2, female: 1 };\r\n const representativeType = {child: 1, parent:2, sibling:3, spouse:4, other:5};\r\n \r\n\r\n let initState = {...data};\r\n if(R.isNil(data.phoneNumber) || data.phoneNumber === \"\"){\r\n initState.phoneCountry = \"FR\";\r\n initState.countryCode = \"33\";\r\n }else{\r\n let phone = parsePhoneNumber(data.phoneNumber);\r\n if(!R.isNil(phone)){\r\n initState.phoneNumber = phone.nationalNumber;\r\n initState.countryCode = phone.countryCallingCode;\r\n initState.phoneCountry = phone.country;\r\n }else{\r\n initState.phoneCountry = \"FR\";\r\n initState.countryCode = \"33\";\r\n }\r\n }\r\n\r\n const [referentData, setReferentData] = useState(initState);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n //#endregion\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, email: event.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/* */}\r\n\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, countryCode: event.target.value, phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t{countryTelData.allCountries.map((country, index) => {\r\n\t\t\t\t\t\t\t\t\tlet dialCode = country.dialCode;\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t{/* {\r\n e.preventDefault();\r\n e.target.value = e.target.value.replace(/ /g, ''); \r\n var number = referentData.countryCode === \"+33\" ? e.target.value.replace(/\\B(?=(\\d{2})+(?!\\d))/g, \" \") : e.target.value.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \");\r\n setReferentData({ ...referentData, phoneNumber: number.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") });\r\n }} /> */}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, gender: gender.female });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, gender: gender.male });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setReferentData({ ...referentData, birthDate: d })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, address: { ...referentData.address, addressLine1: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setReferentData({ ...referentData, address: { ...referentData.address, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={referentData.address.country}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm col-xl\", postalCode: \"form-group col-12 col-sm col-xl\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{referentData.address.country === null || referentData.address.country === \"FR\" || referentData.address.country === \"GF\" || referentData.address.country === \"PF\" || referentData.address.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, address: { ...referentData.address, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, address: { ...referentData.address, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, address: { ...referentData.address, city: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, address: { ...referentData.address, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* {\r\n data.createdByRepresentative ? \r\n \r\n :\r\n \r\n } */}\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, isLienFamilialDirect: true, representativeType: undefined });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"lien\r\n\t\t\t\t\t\t\t\t\t

lien familial direct

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.other });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"autres\"\r\n\t\t\t\t\t\t\t\t\t

autres

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{referentData.representativeType !== representativeType.other ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.child });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.parent });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.sibling });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.spouse });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetIsEditing(false);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tAnnuler\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\t\t\t\t\tlet internationalPhoneNumber = null;\r\n\t\t\t\t\t\t\t\tif (!R.isNil(referentData.phoneNumber) && !R.isEmpty(referentData.phoneNumber)) {\r\n\t\t\t\t\t\t\t\t\tinternationalPhoneNumber = parsePhoneNumber(referentData.phoneNumber, referentData.phoneCountry);\r\n\t\t\t\t\t\t\t\t\tif (!internationalPhoneNumber.isValid()) {\r\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"phoneNumberInput\").setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (referentForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tdispatch(updateUserRepresentativeSelfcare(referentData.id, { ...referentData, phoneNumber: internationalPhoneNumber?.number })).then(() => setIsEditing(false));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!R.isNil(referentForm) && !R.isNil(referentForm.current) && !R.isNil(referentForm.current.classList)) {\r\n\t\t\t\t\t\t\t\t\treferentForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tsetWasValidated(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n}","import React, { useEffect, useState} from 'react';\r\nimport { Link, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n// import { ReferentIndex } from '../../../_common/referent';\r\nimport { ColapsedReferent } from './collapsedReferent';\r\nimport { EditReferent } from './editReferent';\r\nimport { getUserRepresentativeSelfcare, getUserRepresentativeSelfcareJwt} from '../../../actions/referent-api';\r\nimport JwtDecode from 'jwt-decode';\r\nimport * as axios from 'axios';\r\nimport * as Loadings from '../../../constants/loadings/referent';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\n\r\nexport const FormReferent = () => {\r\n\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const [isEditing, setIsEditing] = useState(false);\r\n const dispatch = useDispatch();\r\n const location = useLocation();\r\n const referent = useSelector(state => state.referent)\r\n const gender = { male: 2, female: 1 };\r\n const queryParamsToken = new URLSearchParams(location.search).get(\"token\");\r\n\r\n\r\n\r\n if(R.isNil(queryParamsToken)){\r\n //redirect to index\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(queryParamsToken)) {\r\n dispatch(getUserRepresentativeSelfcare(queryParamsToken))\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n },[]);\r\n\r\n if(R.isNil(referent)){\r\n return \"\";\r\n }\r\n\r\n if(R.isNil(referent) || R.isNil(referent.user)){\r\n //SHOW A LOADING\r\n if (referent.isLoading.includes(Loadings.FETCHING_USERREPRESENTATIVE)) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n return \"\";\r\n }\r\n\r\n return (\r\n
\r\n {\r\n referent.user.createdByRepresentative ?\r\n
\r\n

Bienvenue {referent.user.gender === gender.male ? 'Mr' : 'Mme'} {referent.user.firstName} {referent.user.lastName}.

\r\n

Vous allez pouvoir compléter le dossier de votre {referent.user.representedRelation}, {referent.user.representedFirstName} {referent.user.representedLastName}.

\r\n

Veuillez confirmer vos informations.

\r\n
\r\n :\r\n
\r\n

Bienvenue {referent.user.gender === gender.male ? 'Mr' : 'Mme'} {referent.user.firstName} {referent.user.lastName}.

\r\n

Votre {referent.user.representedRelation}, {referent.user.representedFirstName} {referent.user.representedLastName}, vous a choisi comme réfèrent dans son dossier ANTICIPA.

\r\n

Veuillez trouver ci-dessous les informations notées afin que nous vous informions annuellement du suivi du dossier.

\r\n
\r\n }\r\n\r\n
\r\n
\r\n { isEditing ?\r\n \r\n :\r\n \r\n }\r\n
\r\n

En cliquant sur \"Suivant\", vous acceptez les Conditions générales d'utilisation et la Politique de protection des données.

\r\n
\r\n
\r\n Fermer\r\n Suivant\r\n {/* {\r\n dispatch(getUserRepresentativeSelfcareJwt(referent.user.id));\r\n }}>Suivant */}\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect, useRef } from 'react';\r\nimport { Link, useLocation, useHistory } from 'react-router-dom';\r\nimport { postUserRepresentativeSelfcareJwt } from '../../../actions/referent-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport * as loadings from '../../../constants/loadings/referent';\r\n\r\n\r\nimport terms from './../../../assets/images/svg/054-terms.svg';\r\n\r\nexport const Password = () => {\r\n const passwordForm = useRef();\r\n const location = useLocation();\r\n const referent = useSelector(state => state.referent);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n const [showNewPassword, setShowNewPassword] = useState(false);\r\n const [showConfPassword, setShowConfPassword] = useState(false);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [passwordsMatch, setPasswordsMatch] = useState(false);\r\n\r\n const [password, setPassword] = useState({\r\n newPass: '',\r\n confPass: '',\r\n passwordMatch: false\r\n });\r\n\r\n useEffect(() => {\r\n if (!R.isNil(password.newPass)) {\r\n let hasUpper = !R.isNil(password.newPass.match(RegexFields.hasUpperCase));\r\n let hasLower = !R.isNil(password.newPass.match(RegexFields.hasLowerCase));\r\n let hasDigits = !R.isNil(password.newPass.match(RegexFields.hasDigits));\r\n setPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper });\r\n }\r\n setPasswordsMatch(password.newPass === password.confPass);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [password]);\r\n\r\n return (\r\n
\r\n
\r\n

Définition de votre mot de passe

\r\n

Afin de pouvoir accéder à votre espace référent, veuillez définir un mot de passe.

\r\n

Pour les connexions ultérieures, vous pourrez vous connecter en utilisant votre adresse e-mail ou numéro de téléphone ainsi que le mot de passe renseigné ci-dessous.

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setPassword({ ...password, newPass: event.target.value });\r\n }\r\n } />\r\n
\r\n
\r\n { setShowNewPassword(!showNewPassword); }}>\r\n
\r\n
\r\n
Mot de passe invalide
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setPassword({ ...password, confPass: event.target.value });\r\n }\r\n } />\r\n
\r\n
\r\n { setShowConfPassword(!showConfPassword); }}>\r\n
\r\n
\r\n
Mot de passe invalide
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n

Pour un mot de passe plus sûr

\r\n

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n
\r\n \r\n une lettre majuscule (A-Z)\r\n
\r\n
\r\n \r\n une lettre minuscule (a-z)\r\n
\r\n
\r\n \r\n un chiffre (0-9)\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n Retour\r\n {\r\n referent.isLoading.includes(loadings.AUTHENTICATING_USERREPRESENTATIVE) ?\r\n \r\n :\r\n \r\n }\r\n\r\n\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/054-terms.64040af2.svg\";","import React, { useEffect} from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\n\r\nimport { linkUserRepresentativeSelfcareJwt} from '../../../actions/referent-api';\r\nimport * as Loadings from '../../../constants/loadings/referent';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\n\r\nexport const LinkReferent = () => {\r\n const location = useLocation();\r\n const dispatch = useDispatch();\r\n const referentState = useSelector(state => state.referent);\r\n const queryParamsToken = new URLSearchParams(location.search).get(\"token\");\r\n\r\n useEffect(() => {\r\n if (!R.isNil(queryParamsToken)) {\r\n dispatch(linkUserRepresentativeSelfcareJwt(queryParamsToken))\r\n .then(() => window.location='/facilita')\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n },[]);\r\n\r\n // if(R.isNil(referent)){\r\n // return \"\";\r\n // }\r\n\r\n if(!R.isNil(referentState)){\r\n //SHOW A LOADING\r\n if (referentState.isLoading.includes(Loadings.LINKING_USERREPRESENTATIVE)) {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n return \"\";\r\n }\r\n return \"\";\r\n}","export default __webpack_public_path__ + \"static/media/YoungReferent-ilustration.a8f28220.svg\";","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\nimport { FormReferent } from './form/';\r\nimport { Password } from './password';\r\nimport { LinkReferent } from './link';\r\n\r\nimport ReferentIlustration from './../../assets/images/placeholder/YoungReferent-ilustration.svg';\r\n\r\nexport const Referent = () => {\r\n const location = useLocation();\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Registration de Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useRef, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport * as Loadings from '../../../constants/loadings/auth';\r\n\r\nexport const IdentityInit = () => {\r\n\tconst history = useHistory();\r\n\tconst numberFormRef = useRef(null);\r\n\tconst auth = useSelector(state => state.auth);\r\n\tconst [phoneNumber, setPhoneNumber] = useState('');\r\n\r\n\tfunction formSubmit(event) {\r\n\t\tevent.preventDefault();\r\n\t\tif (numberFormRef.current.checkValidity()) {\r\n\t\t\t//dispatch(sendCode());\r\n\t\t\thistory.push(\"/auth/identity/code\");\r\n\t\t}\r\n\t\tnumberFormRef.current.classList.add('was-validated');\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
{ formSubmit(event); }}>\r\n\t\t\t\t

Confirmation d’identité.

\r\n\t\t\t\t

Veuillez mettre votre numéro de téléphone pour recevoir par message un code

\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\tif (event.target.value.match(/^[+\\d ]*$/) !== null || event.target.value === '') {\r\n\t\t\t\t\t\t\t\tif (!event.target.value.endsWith(' ')) {\r\n\t\t\t\t\t\t\t\t\tsetPhoneNumber(event.target.value.replace(/\\s/g, '').trim());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tsetPhoneNumber(event.target.value);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}} onBlur={() => {\r\n\t\t\t\t\t\t\tsetPhoneNumber(phoneNumber.trim());\r\n\t\t\t\t\t\t}} />\r\n\t\t\t\t\t
Wrong number
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\tFermer\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { sendMfaCode, resetAuth } from '../../../actions/auth-api';\r\nimport * as loadings from '../../../constants/loadings/auth';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nexport const IdentityCode = ({ loginPage }) => {\r\n\tconst confirmationForm = useRef(null);\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tconst auth = useSelector(state => state.auth);\r\n\tconst [confirmationCodeState, setConfirmationCodeState] = useState({ codes: ['', '', '', '', '', ''], displayErrorMessage: auth.authError === \"WrongMfa\" });\r\n\tconst ref0 = useRef(null);\r\n\tconst ref1 = useRef(null);\r\n\tconst ref2 = useRef(null);\r\n\tconst ref3 = useRef(null);\r\n\tconst ref4 = useRef(null);\r\n\tconst ref5 = useRef(null);\r\n\tconst confirmationRef = [ref0, ref1, ref2, ref3, ref4, ref5];\r\n\r\n\tuseEffect(() => {\r\n\t\tif (auth.authError === \"WrongMfa\" && !auth.isLoading.includes(loadings.VERIFYING_NUMBER)) {\r\n\t\t\tsetConfirmationCodeState({ codes: ['', '', '', '', '', ''], displayErrorMessage: true });\r\n\t\t\tconfirmationForm.current.classList.remove('was-validated');\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [auth, auth.authError]);\r\n\r\n\tfunction inputPaste(event) {\r\n\t\tevent.preventDefault();\r\n\t\tconst value = event.clipboardData.getData('Text');\r\n\t\tif (value) {\r\n\t\t\tconst valueText = value.toString();\r\n\t\t\tif (valueText.length === 6) {\r\n\t\t\t\tsetConfirmationCodeState({\r\n\t\t\t\t\t...confirmationCodeState,\r\n\t\t\t\t\tcodes: valueText.split('')\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction formSubmit(event) {\r\n\t\tevent.preventDefault();\r\n\t\tif (confirmationForm.current.checkValidity()) {\r\n\t\t\tdispatch(sendMfaCode(confirmationCodeState.codes.join('')));\r\n\t\t\tif (loginPage !== true) {\r\n\t\t\t\thistory.push(\"/auth/password/new\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tconfirmationForm.current.classList.add('was-validated');\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
{ formSubmit(event); }}>\r\n\t\t\t\t

Confirmation d’identité.

\r\n\t\t\t\t

Entrez le code à 6 chiffres envoyé à votre numéro de mobile ou adresse e-mail.

\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{confirmationCodeState.codes.map((code, index) => {\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetConfirmationCodeState({\r\n\t\t\t\t\t\t\t\t\t\t\t\t...confirmationCodeState,\r\n\t\t\t\t\t\t\t\t\t\t\t\tcodes: confirmationCodeState.codes.map((item, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (idx === index) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn event.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn item;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\tdisplayErrorMessage: (confirmationCodeState.displayErrorMessage === true && index === 0) ? false : confirmationCodeState.displayErrorMessage\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\tlet nextIndex = +index + 1;\r\n\t\t\t\t\t\t\t\t\t\t\tif (event.target.value !== '' && !R.isNil(confirmationRef[nextIndex])) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconfirmationRef[nextIndex].current.focus();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}} \r\n\t\t\t\t\t\t\t\t\t\tonPaste={(event) => { inputPaste(event); }} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t})}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tconfirmationCodeState.displayErrorMessage === true ?\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\tCode invalide. Veuillez réessayer de nouveau.\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t:
Code invalide
\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\tif (loginPage) {\r\n\t\t\t\t\t\tdispatch(resetAuth());\r\n\t\t\t\t\t}\r\n\t\t\t\t}}>Fermer\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","export default __webpack_public_path__ + \"static/media/confirmation-ilustration.269aa109.svg\";","import React, { Component } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { connect } from 'react-redux';\r\n\r\nimport { IdentityInit } from './init';\r\nimport { IdentityCode } from './code';\r\n\r\nimport IdentityationIlustration from './../../assets/images/placeholder/confirmation-ilustration.svg';\r\n\r\nclass IdentityIndex extends Component {\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n

Registratio Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n example: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(IdentityIndex);","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, useHistory, useLocation } from 'react-router-dom';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport { resetPassword, resetAuth } from '../../../actions/auth-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport * as R from 'ramda';\r\n\r\nexport const PasswordRecover = () => {\r\n\tconst usernameForm = useRef(null);\r\n\tconst history = useHistory();\r\n\tconst location = useLocation();\r\n\tconst dispatch = useDispatch();\r\n\tconst auth = useSelector(state => state.auth);\r\n\r\n\r\n\t//if loggedin logout\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [username, setUsername] = useState('');\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(sessionStorage.getItem(\"access_token\"))) {\r\n\t\t\tsessionStorage.removeItem(\"access_token\");\r\n\t\t}\r\n\t\tdispatch(resetAuth());\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tfunction formSubmit(event) {\r\n\t\tevent.preventDefault();\r\n\t\tconst emailRegex = new RegExp(RegexFields.email);\r\n\t\tconst mobileRegex = new RegExp(RegexFields.frenchPhoneNumber);\r\n\r\n\t\tif (mobileRegex.test(username)) {\r\n\t\t\tconst phoneNumber = parsePhoneNumber(username, 'FR');\r\n\t\t\tif (R.isNil(phoneNumber)) {\r\n\t\t\t\tdocument.getElementById(\"username\").setCustomValidity(\"Numéro de télephone invalide.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (usernameForm.current.checkValidity()) {\r\n\t\t\tsetIsLoading(true);\r\n\t\t\tif (emailRegex.test(username)) {\r\n\t\t\t\tdispatch(resetPassword(username, null))\r\n\t\t\t\t\t.then(() => setIsLoading(false))\r\n\t\t\t\t\t.catch(() => setIsLoading(false))\r\n\r\n\t\t\t}\r\n\t\t\telse if (mobileRegex.test(username)) {\r\n\t\t\t\tconst phoneNumber = parsePhoneNumber(username, 'FR');\r\n\t\t\t\tif (!R.isNil(phoneNumber)) {\r\n\t\t\t\t\tdispatch(resetPassword(null, phoneNumber.formatInternational().replace(/\\s/g, '').trim()))\r\n\t\t\t\t\t\t.then(() => setIsLoading(false));\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tusernameForm.current.classList.add('was-validated');\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t {\r\n\t\t\t\t\tformSubmit(event);\r\n\t\t\t\t}}>\r\n\t\t\t\t

Récupérez votre mot de passe

\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\tdocument.getElementById(\"username\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\tif (!R.isNil(auth.resetByEmail)) {\r\n\t\t\t\t\t\t\t\tdispatch(resetAuth());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsetUsername(event.target.value);\r\n\t\t\t\t\t\t\t// setDisplayError(undefined);\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\t\tsetUsername(username.replace(/\\s/g, \"\").trim());\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t
Email ou numéro de portable invalide.
\r\n\t\t\t\t\t{auth.resetByEmail === true ?
Un e-mail contenant un lien de réinitialisation de mot de passe a été envoyé à l'adresse e-mail de l'utilisateur.
: \"\"}\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\tRetour\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\t\tformSubmit(event);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tRécupérer\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { setNewPasswordFromReset, resetAuth } from '../../../actions/auth-api';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\n\r\nexport const PasswordNew = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst auth = useSelector(state => state.auth);\r\n\tconst passwordForm = useRef();\r\n\tconst history = useHistory();\r\n\tconst router = useSelector(state => state.router);\r\n\tconst [token, setToken] = useState(undefined);\r\n\tconst [userId, setUserId] = useState(undefined);\r\n\r\n\tconst [showNewPassword, setShowNewPassword] = useState(false);\r\n\tconst [showConfPassword, setShowConfPassword] = useState(false);\r\n\r\n\tconst [password, setPassword] = useState({\r\n\t\tnewPass: '',\r\n\t\tconfPass: ''\r\n\t});\r\n\r\n\tconst [passwordsMatch, setPasswordsMatch] = useState(false);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(password.newPass)) {\r\n\t\t\tlet hasUpper = !R.isNil(password.newPass.match(RegexFields.hasUpperCase));\r\n\t\t\tlet hasLower = !R.isNil(password.newPass.match(RegexFields.hasLowerCase));\r\n\t\t\tlet hasDigits = !R.isNil(password.newPass.match(RegexFields.hasDigits));\r\n\t\t\tsetPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper })\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [password]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(router.location.query)) {\r\n\t\t\tlet tmpToken = router.location.query.token;\r\n\t\t\tlet tmpUserId = router.location.query.userId;\r\n\r\n\t\t\tif (!R.isNil(tmpToken) && !R.isNil(tmpUserId)) {\r\n\t\t\t\tsetToken(tmpToken);\r\n\t\t\t\tsetUserId(tmpUserId);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(password)) {\r\n\t\t\tif (passwordsMatch === true && password.newPass !== password.confPass) {\r\n\t\t\t\tsetPasswordsMatch(false);\r\n\t\t\t}\r\n\t\t\telse if (passwordsMatch === false && password.newPass === password.confPass) {\r\n\t\t\t\tsetPasswordsMatch(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [password]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(auth.resetPasswordComplete) && auth.resetPasswordComplete === true) {\r\n\t\t\tdispatch(resetAuth());\r\n\t\t\thistory.push(\"/auth/signin\");\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [auth])\r\n\r\n\tfunction formSubmit(event) {\r\n\t\tevent.preventDefault();\r\n\t\tif (passwordForm.current.checkValidity() && passwordsMatch === true && passwordRequirements.hasDigits && passwordRequirements.hasLower && passwordRequirements.hasUpper) {\r\n\t\t\tif (!R.isNil(token) && !R.isNil(userId)) {\r\n\t\t\t\tdispatch(setNewPasswordFromReset(userId, token, password.newPass));\r\n\t\t\t}\r\n\t\t}\r\n\t\tpasswordForm.current.classList.add('was-validated');\r\n\t\tsetWasValidated(true);\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
{ formSubmit(event); }}>\r\n\t\t\t\t

Réinitialisation du mot de passe

\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPassword({ ...password, newPass: event.target.value });\r\n\t\t\t\t\t\t\t\tif (!R.isNil(auth.errorOnResetPassword)) {\r\n\t\t\t\t\t\t\t\t\tdispatch(resetAuth());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t { setShowNewPassword(!showNewPassword); }}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tInvalid or empty field.\r\n
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPassword({ ...password, confPass: event.target.value });\r\n\t\t\t\t\t\t\t\tif (!R.isNil(auth.errorOnResetPassword)) {\r\n\t\t\t\t\t\t\t\t\tdispatch(resetAuth());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t { setShowConfPassword(!showConfPassword); }}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Invalid or empty field.
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\tPasswords do not match.\r\n
\r\n\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Pour un mot de passe plus sûr

\r\n\t\t\t\t\t\t\t

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tune lettre majuscule (A-Z)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tune lettre minuscule (a-z)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tun chiffre (0-9)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{\r\n\t\t\t\t\t!R.isNil(auth.errorOnResetPassword) ?\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tSomething went wrong\r\n
\r\n\t\t\t\t\t\t: ''\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\tRetour\r\n\t\t\t\t{/* Enregistrer */}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","export default __webpack_public_path__ + \"static/media/Password-illustration.1d138f72.svg\";","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\nimport { PasswordRecover } from './recover';\r\nimport { PasswordNew } from './new';\r\n\r\nimport PasswordIlustration from './../../assets/images/placeholder/Password-illustration.svg';\r\n\r\nexport const PasswordIndex = () => {\r\n const location = useLocation();\r\n return (\r\n
\r\n
\r\n
\r\n

Reset Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n\r\n};","import React, { useEffect } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { IdentityCode } from '../identity/code/index';\r\nimport IdentityationIlustration from './../../assets/images/placeholder/confirmation-ilustration.svg';\r\nimport * as R from 'ramda';\r\nimport { useHistory, useLocation } from 'react-router';\r\nimport JwtDecode from 'jwt-decode';\r\n\r\nexport const Code = () => {\r\n const auth = useSelector(state => state.auth);\r\n const history = useHistory();\r\n const location = useLocation();\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.loggedIn) && auth.loggedIn === true) {\r\n\r\n const returnUrl = new URLSearchParams(location.search).get(\"returnUrl\");\r\n if (!R.isNil(returnUrl)) {\r\n window.location = returnUrl;\r\n return;\r\n }\r\n\r\n let accessToken = sessionStorage.getItem(\"access_token\");\r\n if (!R.isNil(accessToken)) {\r\n let decodedJwt = JwtDecode(accessToken);\r\n let rolesFromToken = decodedJwt[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n if (!R.isNil(rolesFromToken)) {\r\n let roles = Array.isArray(rolesFromToken) ? rolesFromToken : [rolesFromToken];\r\n if (roles.includes(\"DISTRIBUTER\") || (roles.includes(\"ADMIN\") && roles.length === 1)) {\r\n window.location = \"/backoffice\";\r\n return;\r\n } else if (roles.includes(\"REPRESENTATIVE\")) {\r\n window.location = \"/facilita\";\r\n return;\r\n }\r\n else {\r\n window.location = `/anticipa${location.search}`;\r\n return;\r\n }\r\n }\r\n }\r\n // if(auth.roles.include(\"USER\")){\r\n // history.push(\"/anticipa\");\r\n // }else if(auth.roles.include(\"REPRESENTATIVE\")){\r\n // history.push(\"/facilita\");\r\n // }\r\n\r\n\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.loggedIn]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Registratio Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/partner.d2a27de8.jpg\";","import { EndPoints } from '../../api-config';\r\nimport * as R from 'ramda';\r\nimport { pageLimit } from '../../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n\r\n// export const partnersUrl = () => `${SERVER_ADDR_V1}/partners`;\r\nexport const partnersUrl = (pageNumber, searchTerm, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/partners?pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&textSearch=' + searchTerm : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`;\r\nexport const partnersUrlDefault = () => `${SERVER_ADDR_V1}/partners`;\r\nexport const partnersByIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}`;\r\nexport const partnerLogoByIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/logo`;\r\n\r\nexport const etablissementByPartnerIdUrl = (partnerId, pageNumber, searchTerm, status, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/partners/${partnerId}/etablissements?pageSize=${pageLimit}${!R.isNil(pageNumber) ? \"&pageNumber=\" + pageNumber : \"\"}${searchTerm !== \"\" ? '&textSearch=' + searchTerm : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${status !== \"\" ? '&isEnabledSearch=' + status : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`;\r\nexport const etablissementByPartnerIdUrlDefault = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/etablissements`;\r\nexport const etablissementByIdAndPartnerIdUrl = (partnerId, etablissementId) => `${SERVER_ADDR_V1}/partners/${partnerId}/etablissements/${etablissementId}`;\r\n\r\nexport const usersByPartnerIdUrl = (partnerId, role) => `${SERVER_ADDR_V1}/partners/${partnerId}/users` + (!R.isNil(role) ? `?role=${role}` : '');\r\nexport const userByIdPartnerIdUrl = (partnerId, userId, role) => `${SERVER_ADDR_V1}/partners/${partnerId}/users/${userId}` + (!R.isNil(role) ? `?role=${role}` : '');\r\nexport const userByIdUrl = (userId) => `${SERVER_ADDR_V1}/user/${userId}`;\r\nexport const userSendActivationEmailByIdPartnerIdUrl = (partnerId, userId, role) => `${SERVER_ADDR_V1}/partners/${partnerId}/users/${userId}/sendactivation` + (!R.isNil(role) ? `?role=${role}` : '');\r\n\r\nexport const downloadReport = (partnerId, fromDate, toDate) => `${SERVER_ADDR_V1}/BackOffice/report?partnerId=${partnerId}&fromDate=${fromDate}&toDate=${toDate}`;\r\n\r\n","import * as axios from 'axios';\r\nimport * as partnersUrl from '../../constants/webapi/backoffice/partners';\r\n\r\nexport function GetUserById(userId, timestamp, nonce, signature) {\r\n\treturn axios.get(partnersUrl.userByIdPartnerIdUrl(\"0\", userId) + `?timestamp=${timestamp}&nonce=${nonce}&signature=${signature}`)\r\n\t\t.then((response) => {\r\n\t\t\treturn {\r\n\t\t\t\tuserId: response.data.id,\r\n\t\t\t\tphoneNumber: response.data.phoneNumber\r\n\t\t\t};\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GenerateOtpCode(userId, timestamp, nonce, signature, phoneNumber) {\r\n\treturn axios.put(partnersUrl.userByIdPartnerIdUrl(\"0\", userId) + `/generateOtp?timestamp=${timestamp}&nonce=${nonce}&signature=${signature}`, { newPhoneNumber: phoneNumber })\r\n\t\t.then((response) => {\r\n\t\t\treturn {\r\n\t\t\t\tuserId: response.data.id,\r\n\t\t\t\tphoneNumber: response.data.phoneNumber\r\n\t\t\t};\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function ValidatePhoneNumber(userId, timestamp, nonce, signature, otpCode, phoneNumber) {\r\n\treturn axios.put(partnersUrl.userByIdPartnerIdUrl(\"0\", userId) + `/updatephone?timestamp=${timestamp}&nonce=${nonce}&signature=${signature}`, { newPhoneNumber: phoneNumber, OTPCode: otpCode })\r\n\t\t.then((response) => {\r\n\t\t\treturn {\r\n\t\t\t\tuserId: userId,\r\n\t\t\t\tphoneNumber: phoneNumber\r\n\t\t\t};\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function UpdatePassword(userId, timestamp, nonce, signature, password) {\r\n\treturn axios.put(partnersUrl.userByIdPartnerIdUrl(\"0\", userId) + `/setpassword?timestamp=${timestamp}&nonce=${nonce}&signature=${signature}`, { newPassword: password })\r\n\t\t.then((response) => {\r\n\t\t\treturn {\r\n\t\t\t\tuserId: userId\r\n\t\t\t};\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n","import React, {useEffect, useState, useRef} from 'react';\r\nimport * as R from 'ramda';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport { useHistory, useLocation } from 'react-router-dom';\r\n\r\nimport {GenerateOtpCode} from '../../../../actions/auth/partnersInvitation';\r\n\r\n\r\nexport const PartnerInvitationStep0 = ({user, setUser, timestamp, nonce, signature}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const history = useHistory();\r\n const location = useLocation();\r\n\r\n const formRef = useRef();\r\n let phone = {\r\n nationalNumber: '',\r\n countryCallingCode: '',\r\n country: ''\r\n };\r\n if(!R.isNil(user) && !R.isNil(user.phoneNumber)){\r\n phone = parsePhoneNumber(user.phoneNumber);\r\n }\r\n const [loading, setLoading] = useState(false);\r\n const [phoneNumber, setPhoneNumber] = useState({\r\n phoneNumber: phone?.nationalNumber,\r\n countryCode: phone?.countryCallingCode,\r\n phoneCountry: phone?.country\r\n });\r\n\r\n useEffect(() => {\r\n if(!R.isNil(user) && !R.isNil(user.phoneNumber)){\r\n const phone = parsePhoneNumber(user.phoneNumber);\r\n setPhoneNumber({\r\n phoneNumber: phone?.nationalNumber,\r\n countryCode: phone?.countryCallingCode,\r\n phoneCountry: phone?.country\r\n });\r\n }\r\n }, [user])\r\n\r\n useEffect(() => {\r\n const parsedPhoneNumber = parsePhoneNumber(phoneNumber.phoneNumber, phoneNumber.phoneCountry);\r\n if(!R.isNil(parsedPhoneNumber) && parsedPhoneNumber.isValid() && user.phoneNumber !== parsedPhoneNumber.number){\r\n setUser({...user, phoneNumber: parsedPhoneNumber.number});\r\n }\r\n }, [phoneNumber])\r\n \r\n return (\r\n <>\r\n
\r\n

Activation de votre compte

\r\n
\r\n \r\n
\r\n \r\n {setPhoneNumber({ ...phoneNumber, phoneNumber: e.target.value }); document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");}}\r\n />\r\n
\r\n \r\n Ce numéro n'est pas valide.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n loading ?\r\n \r\n :\r\n \r\n }\r\n \r\n
\r\n \r\n )\r\n}","import React, {useRef, useState} from 'react';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport * as R from 'ramda';\r\nimport { useHistory, useLocation } from 'react-router-dom';\r\nimport {GenerateOtpCode, ValidatePhoneNumber} from '../../../../actions/auth/partnersInvitation';\r\n\r\nexport const PartnerInvitationStep1 = ({user, timestamp, nonce, signature}) => {\r\n const history = useHistory();\r\n const location = useLocation();\r\n const formRef = useRef();\r\n const [loadings, setLoadings] = useState([]);\r\n const [otpCode, setOtpCode] = useState({\r\n code: \"\",\r\n isValidated: false\r\n });\r\n const parsedPhoneNumber = parsePhoneNumber(user.phoneNumber);\r\n return (\r\n <>\r\n
\r\n

Activation de votre compte

\r\n
\r\n \r\n\r\n {\r\n otpCode.isValidated ?\r\n ''\r\n :\r\n <>\r\n
\r\n {\r\n formRef.current.classList.remove('was-validated');\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n setOtpCode({...otpCode, code:e.target.value});\r\n }}/>\r\n \r\n {\r\n loadings.includes(\"VALIDATING_OTP\") ?\r\n \r\n :\r\n \r\n }\r\n {/* */}\r\n \r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n\r\n
\r\n \r\n {\r\n loadings.includes(\"SENDING_OTP\") ?\r\n
\r\n
\r\n Loading...\r\n
\r\n Veuillez patienter...\r\n
\r\n :\r\n

Vous ne l'avez pas reçu ? {\r\n e.preventDefault();\r\n setLoadings([...loadings, \"SENDING_OTP\"]);\r\n GenerateOtpCode(user.userId, timestamp, nonce, signature, user.phoneNumber)\r\n .then(() => {\r\n setLoadings(loadings.filter(l => l !== \"SENDING_OTP\"));\r\n });\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n\r\n }}>En recevoir un nouveau

\r\n }\r\n \r\n }\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n )\r\n}","import React, {useEffect, useRef, useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport { useHistory, useLocation } from 'react-router-dom';\r\nimport {UpdatePassword } from '../../../../actions/auth/partnersInvitation';\r\nimport { RegexFields } from '../../../../constants/utils/regexFields';\r\n\r\nexport const PartnerInvitationStep2 = ({user, timestamp, nonce, signature}) => {\r\n const history = useHistory();\r\n const location = useLocation();\r\n const formRef = useRef();\r\n const [showNewPassword, setShowNewPassword] = useState(false);\r\n\tconst [showConfPassword, setShowConfPassword] = useState(false);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [passwordState, setPasswordState] = useState({\r\n password: '',\r\n confirmationPassword: ''\r\n });\r\n\r\n useEffect(() => {\r\n if (!R.isNil(passwordState.password)) {\r\n\t\t\tlet hasUpper = !R.isNil(passwordState.password.match(RegexFields.hasUpperCase));\r\n\t\t\tlet hasLower = !R.isNil(passwordState.password.match(RegexFields.hasLowerCase));\r\n\t\t\tlet hasDigits = !R.isNil(passwordState.password.match(RegexFields.hasDigits));\r\n\t\t\tsetPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper })\r\n\t\t}\r\n }, [passwordState])\r\n\r\n return (\r\n <>\r\n
\r\n

Activation de votre compte

\r\n \r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"passwordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setPasswordState({...passwordState, password: event.target.value});\r\n }\r\n } />\r\n
\r\n
\r\n { setShowNewPassword(!showNewPassword); }}>\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"confirmPasswordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setPasswordState({...passwordState, confirmationPassword: event.target.value});\r\n }\r\n } />\r\n
\r\n
\r\n { setShowConfPassword(!showConfPassword); }}>\r\n
\r\n
\r\n
\r\n
\r\n
Les mots de passe ne sont pas identiques.
\r\n
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Pour un mot de passe plus sûr

\r\n\t\t\t\t\t\t\t

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tune lettre majuscule (A-Z)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tune lettre minuscule (a-z)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tun chiffre (0-9)\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n
\r\n
\r\n \r\n {\r\n isLoading ?\r\n \r\n :\r\n \r\n }\r\n \r\n
\r\n \r\n )\r\n}","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const PartnerInvitationStep3 = () => {\r\n return (\r\n <>\r\n
\r\n

Activation de votre compte

\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n Terminer \r\n
\r\n \r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation, useParams } from 'react-router-dom';\r\nimport PasswordIlustration from '../../../assets/images/placeholder/partner.jpg';\r\n\r\nimport { GetUserById } from '../../../actions/auth/partnersInvitation';\r\n\r\nimport { PartnerInvitationStep0 } from './steps/step0';\r\nimport { PartnerInvitationStep1 } from './steps/step1';\r\nimport { PartnerInvitationStep2 } from './steps/step2';\r\nimport { PartnerInvitationStep3 } from './steps/step3';\r\n\r\nexport const PartnerInvitation = ({ }) => {\r\n const location = useLocation();\r\n const [user, setUser] = useState(undefined);\r\n\r\n const { userId } = useParams();\r\n\r\n const timestamp = new URLSearchParams(location.search).get(\"timestamp\");\r\n const nonce = new URLSearchParams(location.search).get(\"nonce\");\r\n const signature = new URLSearchParams(location.search).get(\"signature\");\r\n\r\n useEffect(() => {\r\n GetUserById(userId, timestamp, nonce, signature)\r\n .then((userDto) => {\r\n setUser(userDto);\r\n });\r\n\r\n }, []);\r\n\r\n if(R.isNil(user)){\r\n return '';\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Reset Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n
\r\n \r\n {\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n if(!R.isNil(user) && !R.isNil(user.phoneNumber)){\r\n return ;\r\n }else{\r\n return ;\r\n }\r\n \r\n }} />\r\n \r\n\r\n\r\n // (() => {\r\n // switch(step){\r\n // case 0:\r\n // return ()\r\n\r\n // case 1:\r\n // return ()\r\n\r\n // case 2:\r\n // return ()\r\n\r\n // case 3:\r\n // return ()\r\n // }\r\n // })()\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { IdentityCode } from '../../identity/code/index';\r\nimport IdentityationIlustration from './../../../assets/images/placeholder/confirmation-ilustration.svg';\r\nimport * as R from 'ramda';\r\nimport { useHistory, useLocation } from 'react-router';\r\nimport JwtDecode from 'jwt-decode';\r\n\r\nexport const PartnerCode = () => {\r\n const auth = useSelector(state => state.auth);\r\n const history = useHistory();\r\n const location = useLocation();\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.loggedIn) && auth.loggedIn === true) {\r\n\r\n const returnUrl = new URLSearchParams(location.search).get(\"returnUrl\");\r\n if (!R.isNil(returnUrl)) {\r\n window.location = returnUrl;\r\n return;\r\n }\r\n\r\n let accessToken = sessionStorage.getItem(\"access_token\");\r\n if (!R.isNil(accessToken)) {\r\n let decodedJwt = JwtDecode(accessToken);\r\n let rolesFromToken = decodedJwt[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n if (!R.isNil(rolesFromToken)) {\r\n let roles = Array.isArray(rolesFromToken) ? rolesFromToken : [rolesFromToken];\r\n if (roles.includes(\"ADMIN\") || roles.includes(\"DISTRIBUTER\")) {\r\n window.location = \"/backoffice\";\r\n return;\r\n } else if (roles.includes(\"REPRESENTATIVE\")) {\r\n window.location = \"/facilita\";\r\n return;\r\n } else if (roles.includes(\"ETABLISSEMENT\") || roles.includes(\"PARTNER\")) {\r\n window.location = \"/partner\";\r\n return;\r\n }\r\n else {\r\n window.location = \"/anticipa\";\r\n return;\r\n }\r\n }\r\n }\r\n // if(auth.roles.include(\"USER\")){\r\n // history.push(\"/anticipa\");\r\n // }else if(auth.roles.include(\"REPRESENTATIVE\")){\r\n // history.push(\"/facilita\");\r\n // }\r\n\r\n\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.loggedIn]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Registratio Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, useHistory, useLocation } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport SigninIlustration from '../../../assets/images/placeholder/Signin-ilustration.svg';\r\nimport * as Loadings from '../../../constants/loadings/auth';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { authenticateUser } from '../../../actions/auth-api';\r\nimport Credentials from '../../../constants/models/credentials';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nimport { Cookies } from '../../_common/cookies';\r\n\r\n\r\nexport const PartnerSignin = () => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n const location = useLocation();\r\n const loginFormRef = useRef(null);\r\n const auth = useSelector(state => state.auth);\r\n const [credentials, setCredentials] = useState({\r\n email: '',\r\n phoneNumber: '',\r\n password: '',\r\n countryCode: '33',\r\n phoneCountry: \"FR\"\r\n });\r\n const [loginWithEmail, setLoginWithEmail] = useState(true);\r\n\r\n const errors = { invalidCredentials: 'invalidCredentials' };\r\n const [displayError, setDisplayError] = useState(undefined);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n const returnUrl = new URLSearchParams(location.search).get(\"returnUrl\");\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.authError)) {\r\n switch (auth.authError) {\r\n case 'invalidCredentials':\r\n setDisplayError(errors.invalidCredentials);\r\n setCredentials({ ...credentials, password: '' });\r\n loginFormRef.current.classList.remove('was-validated');\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.authError]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(auth.loggedIn) && auth.loggedIn === false) {\r\n\r\n history.push(\"/auth/partner/signin/code\" + (!R.isNil(returnUrl) ? `?returnUrl=${returnUrl}` : \"\"));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.loggedIn]);\r\n\r\n function formSubmit(event) {\r\n event.preventDefault();\r\n if (loginFormRef.current.checkValidity() && !auth.isLoading.includes(Loadings.AUTH_USER)) {\r\n let creds = undefined;\r\n if (loginWithEmail) {\r\n creds = new Credentials({ email: credentials.email, password: credentials.password });\r\n }\r\n else {\r\n const internationalPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n if (internationalPhoneNumber.isValid()) {\r\n creds = new Credentials({ phoneNumber: internationalPhoneNumber.number, password: credentials.password });\r\n } else {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n return;\r\n }\r\n }\r\n dispatch(authenticateUser(creds));\r\n }\r\n loginFormRef.current.classList.add('was-validated');\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n

Registration de Compte

\r\n
\r\n
\r\n \"Assist@\"\r\n
\r\n
\r\n \r\n
{ formSubmit(event); }}>\r\n

Accès espace partenaires

\r\n
\r\n
\r\n \r\n
\r\n {\r\n loginWithEmail === false ?\r\n
\r\n \r\n {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value });\r\n }}\r\n onBlur={() => {\r\n setCredentials({ ...credentials, phoneNumber: credentials.phoneNumber.trim() });\r\n }} />\r\n
\r\n :\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n setDisplayError(undefined);\r\n }} onBlur={() => {\r\n setCredentials({ ...credentials, email: credentials.email.replace(/\\s/g, '').trim() });;\r\n }} />\r\n }\r\n\r\n
Champs obligatoire
\r\n
\r\n
\r\n
\r\n \r\n Mot de passe oublié ?\r\n
\r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, password: event.target.value });\r\n setDisplayError(undefined);\r\n }} />\r\n
\r\n
\r\n { setShowPassword(!showPassword); }}>\r\n
\r\n
\r\n
Champs obligatoire
\r\n
\r\n
\r\n
\r\n Identifiants incorrects\r\n
\r\n
{ setLoginWithEmail(!loginWithEmail); }\r\n }>\r\n Se connecter avec son\r\n {loginWithEmail ? 'numéro de portable' : 'adresse email'}\r\n ?\r\n
\r\n \r\n
\r\n
\r\n Fermer\r\n {/* Se connecter */}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n );\r\n};","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\n\r\nimport { PartnerInvitation } from './invitation';\r\nimport { PartnerCode } from './signin/code';\r\nimport { PartnerSignin } from './signin';\r\n// import { PartnerSignup } from './onboarding';\r\n\r\n\r\nexport const PartnerIndex = ({ }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n );\r\n};","import React, { Component } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { connect } from 'react-redux';\r\n\r\nclass Help extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Help);","import React from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { NavLink, Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport logo_hr from '../../../../assets/images/brand/assista_horizontal-punchout.svg';\r\nimport logo from '../../../../assets/images/brand/assista.svg';\r\n\r\nexport const Navbar = ({ step, passwordRequirements, personalDataRequirements, monReferentRequirements, stepsCompleted, monServiceRequirements }) => {\r\n const user = useSelector(state => state.user);\r\n return (\r\n
\r\n
\r\n \r\n \"Assist@\"\r\n

Assist@: Menu

\r\n \r\n
\r\n

Un service d’accompagnement personnalisé, bienveillant, simple et qui respecte les délais

\r\n

La création de votre compte en quelques clics

\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport { Profile } from '../../../../_common/profile';\r\n// import { authenticateUser } from '../../../../actions/auth-api';\r\n// import Credentials from '../../../../constants/models/credentials';\r\nimport * as R from 'ramda';\r\nimport countryTelData from 'country-telephone-data';\r\nimport {updateOnBoardingStep} from '../../../../actions/user-api';\r\n\r\nexport const Step1 = ({ passwordRequirements, setPasswordRequirements }) => {\r\n const dispatch = useDispatch();\r\n const auth = useSelector(state => state.auth);\r\n const user = useSelector(state => state.user);\r\n const history = useHistory();\r\n const credentialsForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [credentials, setCredentials] = useState({\r\n email: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: '',\r\n otpCode: '',\r\n countryCode: '33',\r\n phoneCountry: 'FR'\r\n });\r\n\r\n function fillCredentials(){\r\n let number = undefined;\r\n let dialCode = undefined;\r\n\r\n if (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber) && user.user.phoneNumber !== '') {\r\n let tmpPhone = user.user.phoneNumber.slice(1);\r\n\r\n for (let i = 1; i c.dialCode === tmpPhone.slice(0, i));\r\n if (!R.isNil(country)) {\r\n dialCode = country.dialCode;\r\n break;\r\n }\r\n }\r\n number = tmpPhone.slice(dialCode.length);\r\n }\r\n setCredentials({\r\n ...credentials, email: !R.isNil(user.user) && !R.isNil(user.user.email) && user.user.email !== '' ? user.user.email : '',\r\n phoneNumber: !R.isNil(number) ? number.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") : '',\r\n countryCode: !R.isNil(dialCode) ? dialCode : '33'\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n async function redirectToSecondStep() {\r\n // await dispatch(authenticateUser(new Credentials({ email: credentials.email, phoneNumber: credentials.countryCode+credentials.phoneNumber.replace(/ /g,''), password: credentials.password })));\r\n dispatch(updateOnBoardingStep(1));\r\n history.push(\"/auth/signup/step2\");\r\n }\r\n if (!R.isNil(auth.registered) && auth.registered === true && (R.isNil(user.user) || R.isNil(user.user.phoneNumber) || user.user.phoneNumber === '')) {\r\n redirectToSecondStep();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.registered]);\r\n\r\n useEffect(() => {\r\n fillCredentials();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.user]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Créer un compte

\r\n

Veuillez saisir votre identifiant et créer un mot de passe

\r\n
\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useState } from 'react';\r\nimport { Personal } from '../../../../_common/personal';\r\n\r\nexport const Step2 = ({ personalDataRequirements, setPersonalDataRequirements }) => {\r\n const [selectedGender, setSelectedGender] = useState(undefined);\r\n\r\n return (\r\n
\r\n
\r\n {\r\n selectedGender === undefined ?\r\n
\r\n

Bienvenue !

\r\n

Personnalisez cette expérience

\r\n
:\r\n
\r\n

Informations du défunt

\r\n {/*

Aidez-nous à mieux vous connaître.

*/}\r\n
}\r\n
\r\n \r\n
\r\n );\r\n};","import React from 'react';\r\nimport { ReferentIndex } from '../../../../_common/referent';\r\n\r\nexport const Step3 = ({ monReferentRequirements, setMonReferentRequirements }) => {\r\n return \r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { addUserServicesBatch, updateOnBoardingStep } from '../../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as Loadings from '../../../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport {CommonServices, PersonalServices, SocialNetworksOptions, AssuranceOptions, OtherService, ConnectionTypes} from '../../../../constants/utils/connectionTypes';\r\nimport {LoadingState} from '../../../../_common/loadingState';\r\n\r\nexport const Step4 = ({ monServiceRequirements, setMonServiceRequirements }) => {\r\n const history = useHistory();\r\n const [subStep, setSubStep] = useState(1);\r\n const user = useSelector(state => state.user);\r\n const [redirect, setRedirect] = useState(false);\r\n const dispatch = useDispatch();\r\n\r\n const [selectedServices, setSelectedServices] = useState([\r\n CommonServices.notaire, CommonServices.secSocial, CommonServices.bank, CommonServices.mutuelle, CommonServices.habitation,\r\n CommonServices.eau, CommonServices.electricity, CommonServices.mobile, CommonServices.impots, CommonServices.caf\r\n ]);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [subStep]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi).length > 0) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.services, user.services.length]);\r\n\r\n useEffect(() => {\r\n let hasCommon = selectedServices.filter(s => Object.values(CommonServices).findIndex(service => service.connectionType === s.connectionType) !== -1).length > 0;\r\n let hasPersonnal = selectedServices.filter(s => Object.values(CommonServices).findIndex(service => service.connectionType === s.connectionType) === -1).length > 0;\r\n setMonServiceRequirements({ ...monServiceRequirements, common: hasCommon, personnal: hasPersonnal });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedServices.length]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi).length > 0 && selectedServices.filter(s => s.connectionType !== ConnectionTypes.activity && s.connectionType !== ConnectionTypes.otherActivity && s.connectionType !== ConnectionTypes.pension && s.connectionType !== ConnectionTypes.poleEmploi).length === 9) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [subStep]);\r\n\r\n\r\n if (redirect === true && !user.isLoading.includes(Loadings.UPDATING_SERVICES) && user.signupStep4Success === true) {\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step !== 6 && step !== -1) {\r\n if (tmpUser.onBoardingStep === \"Completed\") {\r\n step = 6;\r\n }\r\n }\r\n if (step >= 4) {\r\n setRedirect(false);\r\n history.push(\"/auth/signup/step5\");\r\n }\r\n }\r\n\r\n function AddOrRemove(option) {\r\n let tmpSelected = JSON.parse(JSON.stringify(selectedServices));\r\n if (tmpSelected.findIndex(o => o.connectionType === option.connectionType) !== -1) {\r\n tmpSelected = tmpSelected.filter(o => o.connectionType !== option.connectionType);\r\n }\r\n else {\r\n tmpSelected.push(option);\r\n }\r\n setSelectedServices(tmpSelected);\r\n }\r\n\r\n if (user.isLoading.includes(Loadings.FETCH_SERVICES)) {\r\n return ;\r\n }\r\n\r\n function personalService(srv, index){\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
})}

\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n )\r\n }\r\n \r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{subStep === 1 ? 'Organismes de bases' : 'Organismes complémentaires'}

\r\n
\r\n
\r\n {subStep === 1 ?\r\n
\r\n
\r\n
\r\n

Démarches déjà comprises dans le service :

\r\n

Déselectionnez les démarches que le défunt n'a pas.

\r\n
\r\n
\r\n {R.sortWith([R.ascend(R.prop('title'))])(Object.values(CommonServices)).map((srv, index) => {\r\n return (\r\n personalService(srv, index)\r\n //
\r\n //
\r\n // {srv.title}\r\n //

{srv.title}

\r\n // {/* */}\r\n //
\r\n //
\r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n :\r\n
\r\n
\r\n
\r\n

Vie quotidienne à sélectionner :

\r\n

Vous devez sélectionner les organismes avec lesquels le défunt a un contrat ou un abonnement (paiement mensuel, trimestriel ou annuel).

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(PersonalServices).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n personalService(srv, index)\r\n )\r\n })\r\n }\r\n {\r\n Object.entries(OtherService).map(entry => entry[1]).map((srv, index) => {\r\n if(srv.connectionType === ConnectionTypes.activity || srv.connectionType === ConnectionTypes.pension || srv.connectionType === ConnectionTypes.otherActivity || srv.connectionType === ConnectionTypes.poleEmploi)\r\n return '';\r\n return (personalService(srv, index + (PersonalServices.length)))\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

RÉSEAUX SOCIAUX ( à sélectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(SocialNetworksOptions).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {/* s.connectionType === srv.connectionType) !== -1 ? 'checkmark-circle-outline' : 'radio-button-off-outline')}> */}\r\n
\r\n
\r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

ASSURANCES ( à selectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(AssuranceOptions).map(entry => entry[1])).map((srv, index) => {\r\n return (\r\n
\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')} data-toggle={(srv.tooltip !== undefined ? \"tooltip\" : \"\")} data-placement={(srv.tooltip !== undefined ? \"top\" : \"\")} data-html={(srv.tooltip !== undefined ? \"false\" : \"\")} title={(srv.tooltip !== undefined ? srv.tooltip : \"\")} onClick={() => { AddOrRemove(srv); }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {/* s.connectionType === srv.connectionType) !== -1 ? 'checkmark-circle-outline' : 'radio-button-off-outline')}> */}\r\n
\r\n
\r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n {\r\n subStep === 1 ?\r\n Retour\r\n :\r\n \r\n }\r\n {\r\n subStep === 1 ?\r\n \r\n :\r\n \r\n }\r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\n\r\nimport featuresOverview from './../../../../assets/images/placeholder/Features-Overview.svg';\r\nimport file from './../../../../assets/images/svg/039-file.svg';\r\nimport arrowDashed from './../../../../assets/images/svg/005-arrow-down-dashed.svg';\r\nimport arrowDirect from './../../../../assets/images/svg/005-arrow-down-direct.svg';\r\nimport previewPdf from './../../../../assets/images/placeholder/pdf-placeholder.jpg';\r\nimport * as R from 'ramda';\r\nimport { updateOnBoardingStep } from '../../../../actions/user-api';\r\nimport {ConnectionTypes, AssuranceOptions, SocialNetworksOptions, PersonalServices, CommonServices } from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const Step5 = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n if (R.isNil(user) || R.isNil(user.services) || user.services.length === 0) {\r\n return '';\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

La situation du défunt

\r\n
\r\n
\r\n
\r\n
\r\n

Pour votre information, entre les organismes de bases et les organismes complémentaires que vous avez sélectionné.

\r\n

Il y a: {user.services.length} démarches à effectuer.

\r\n
\r\n
\r\n \"features\r\n
\r\n
\r\n
\r\n
\r\n \"file\"\r\n
\r\n
Exemple: Courrier de résiliation d’abonnement mobile
\r\n

Visualisation du document nécessaire à la résiliation du contrat de la société de téléphonie mobile.

\r\n
\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(user.services.filter(s => s.connectionType !== ConnectionTypes.activity)).map((s, index) => {\r\n let serviceOptions = [].concat(Object.values(AssuranceOptions), Object.values(SocialNetworksOptions), Object.values(PersonalServices), Object.values(CommonServices));\r\n let service = Object.entries(serviceOptions).map(entry => entry[1]).find(o => o.connectionType === s.connectionType);\r\n if (R.isNil(service)) {\r\n return '';\r\n }\r\n return (\r\n
\r\n \"file\"\r\n
\r\n

{service.title}

\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n { dispatch(updateOnBoardingStep(5)); }}>Passer à l'étape suivante
\r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
aperçu du document
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"pdf\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"file\"\r\n
\r\n

Liste des tâches à faire par vos proches au moment du décès.

\r\n
\r\n
\r\n
\r\n
\r\n
Sans notre aide
\r\n

Rechercher et lister tous les organismes

\r\n \"Step\"\r\n

Chercher leurs coordonnées

\r\n \"Step\"\r\n

Rédiger les courriers selon les mentions légales

\r\n \"Step\"\r\n

En faire une copie

\r\n \"Step\"\r\n

Les poster en recommandé

\r\n
\r\n
\r\n
Avec notre aide
\r\n

Se connecter

\r\n \"Direct\"\r\n
Valider
\r\n
\r\n
\r\n
\r\n
\r\n {/*

Vous voulez notre aide ?

*/}\r\n \r\n {/* */}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react';\r\nimport * as R from 'ramda';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../../../../constants/webapi/user';\r\n\r\nexport const DiscountCode = ({user, discountCodeState, setDiscountCodeState}) => {\r\n const [loadingState, setLoadingState] = useState(false);\r\n function validateDiscountCode(code){\r\n setLoadingState(true);\r\n return axios.post(urls.validateDiscountCodeUrl(user.id), {code: code})\r\n .then((response) => {\r\n setDiscountCodeState({...discountCodeState, isValid: true, code: response.data.code, apiId: response.data.apiId});\r\n setLoadingState(false);\r\n })\r\n .catch((error) => {\r\n setDiscountCodeState({...discountCodeState,isValid: false});\r\n setLoadingState(false);\r\n });\r\n }\r\n\r\n return (\r\n <>\r\n

Code partenaire

\r\n

Insérer le code partenaire ci-dessous

\r\n
\r\n
\r\n \r\n
\r\n {\r\n setDiscountCodeState({...discountCodeState, code: e.target.value});\r\n\r\n }\r\n } />\r\n \r\n \r\n
\r\n {\r\n !R.isNil(discountCodeState.isValid) ?\r\n !discountCodeState.isValid ?\r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n :\r\n

Code appliqué: le tarif a été mis à jour.

\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n \r\n );\r\n}","import React, { useState, useEffect } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { updateOnBoardingStep, processPayment } from '../../../../actions/user-api';\r\nimport * as Loadings from '../../../../constants/loadings/user';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { PaymentMethods } from '../../../../_common/payments2';\r\nimport {DiscountCode} from './discountCode';\r\n\r\nimport featuresOverview from './../../../../assets/images/placeholder/Features-Overview.svg';\r\n\r\nexport const Step6 = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const paymentOptions = [{ num: 1, price: '299,00' }, { num: 4, price: '74,75' }, { num: 6, price: '49,95' }];\r\n const [selectedOption, setSelectedOption] = useState(paymentOptions[0]);\r\n const [processing, setProcessing] = useState(false);\r\n const [discountCodeState, setDiscountCodeState] = useState({\r\n code: undefined,\r\n apiId: undefined,\r\n isValid: undefined,\r\n });\r\n\r\n async function endRegistration() {\r\n setProcessing(true)\r\n if (!user.user.billedByPartner) {\r\n await dispatch(processPayment(user.user, discountCodeState.apiId, selectedOption.num));\r\n }\r\n await dispatch(updateOnBoardingStep(6));\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step === 6 || step === -1) {\r\n if (tmpUser.onBoardingStep === \"Completed\" || tmpUser.onBoardingStep === 6) {\r\n setProcessing(false)\r\n window.location = `/anticipa?fc=1`;\r\n }\r\n }\r\n }\r\n if(R.isNil(user.user)){\r\n return '';\r\n }\r\n if (user.user.billedByPartner) {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \"features\r\n
\r\n

Validation

\r\n

Résumé de votre dossier.

\r\n
\r\n
\r\n
\r\n

Votre dossier comprend :

\r\n
\r\n
\r\n
\r\n \r\n Création d’un dossier personnalisé\r\n
\r\n
\r\n \r\n Création, copie et adressage de toutes vos démarches en recommandé\r\n
\r\n
\r\n \r\n Un espace bibliothèque pour déposer des documents accessibles à tous les proches invités\r\n
\r\n
\r\n \r\n Un accès à la plateforme pendant 1 an après le décès\r\n
\r\n
\r\n \r\n Modification de vos données incluses\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n processing ?\r\n \r\n :\r\n \r\n\r\n }\r\n
\r\n
\r\n
\r\n )\r\n }\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Validation

\r\n\t\t\t\t\t\t

Résumé de votre dossier

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Mode de paiement

\r\n\t\t\t\t\t\t\t\t\t

Cliquez ci-dessous pour ajouter ou modifier une méthode de paiement

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Votre dossier comprend :

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCréation de votre dossier personnalisé\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tArchivage dans un coffre-fort numérique sécurisé\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAccompagne dans vos évènements de vie : déménagement, passage à la majorité, mariage, naissance d'un enfant, divorce\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSuivi et courrier d’information annuel de votre dossier personnalisé\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tModification de vos données incluses\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tConfirmation des coordonnées de votre (vos) référent(s) annuellement\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIntérruption de votre abonnement à tout moment\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAccompagnement administratif dans les évènements de vie (déménagement ...)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEn cas de décès : Création, copie et adressage de toutes vos démarches en recommandé\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Organismes de bases

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{discountCodeState.isValid ?

0,00 €

:

60,00 €

}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Organismes complémentaires

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{discountCodeState.isValid ?

0,00 €

:

239,00 €

}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Total TTC

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{discountCodeState.isValid ?

0,00 €

:

299,00 €

}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{discountCodeState.isValid ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
Vous pouvez mensualiser votre dossier
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet option = paymentOptions.find((p) => p.num.toString() === e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (option !== null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedOption(option);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={selectedOption.num}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{paymentOptions.map((option, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{selectedOption.price} €

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tRetour\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{R.isEmpty(user.user.paymentMethods) && !discountCodeState.isValid ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : user.isLoading.includes(Loadings.PROCESSING_PAYMENT) || processing ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tawait endRegistration();\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tPayer maintenant
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\n\r\n// Signup\r\n// ==========================================\r\n// Signup: Common\r\nimport Help from './_common/help';\r\nimport { Navbar } from './_common/navbar';\r\nimport { SkipRegister } from './_common/skipRegister';\r\nimport photoWoman from './../../../assets/images/placeholder/photo-woman.jpeg';\r\nimport { resetUser } from './../../../actions/user-api';\r\nimport { resetAuth } from './../../../actions/auth-api';\r\n\r\n// Signup: Views\r\nimport { Step1 } from './step1';\r\nimport { Step2 } from './step2';\r\nimport { Step3 } from './step3/index';\r\n// import Step3 from './step3/_oldindex';\r\nimport { Step4 } from './step4';\r\nimport { Step5 } from './step5';\r\nimport { Step6 } from './step6';\r\nimport * as R from 'ramda';\r\nimport { fetchUserById, getUserAddress, getUserRepresentatives, getUserRepresentativeAddress, getUserServices } from '../../../actions/user-api';\r\nimport JwtDecode from 'jwt-decode';\r\n\r\nexport const PartnerSignup = () => {\r\n const router = useSelector(state => state.router);\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const auth = useSelector(state => state.auth);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [personalDataRequirements, setPersonalDataRequirements] = useState({\r\n civil: false,\r\n familiar: false,\r\n children: false,\r\n contact: false,\r\n profession: false\r\n });\r\n const [monReferentRequirements, setMonReferentRequirements] = useState({ principal: false, other: false });\r\n const [monServiceRequirements, setMonServiceRequirements] = useState({ communes: true, personnal: false });\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n };\r\n\r\n let pathname = router.location.pathname.toLowerCase();\r\n let stepNum = pathname.substring(17, 18);\r\n let step = stepNum !== '' ? parseInt(stepNum) : 1;\r\n const [stepsCompleted, setStepsCompleted] = useState([]);\r\n\r\n useEffect(() => {\r\n var accessToken = sessionStorage.getItem(\"access_token\");\r\n if (accessToken !== undefined && accessToken !== null && accessToken !== '') {\r\n var decoded = JwtDecode(accessToken);\r\n if (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n dispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n var accessToken = sessionStorage.getItem(\"access_token\");\r\n if (accessToken !== undefined && accessToken !== null && accessToken !== '') {\r\n var decoded = JwtDecode(accessToken);\r\n if (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]) && user.user === undefined) {\r\n dispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth]);\r\n\r\n\r\n useEffect(() => {\r\n let tmpUser = user.user;\r\n if (!R.isNil(tmpUser)) {\r\n dispatch(getUserAddress(tmpUser.id));\r\n dispatch(getUserRepresentatives(tmpUser.id));\r\n dispatch(getUserServices(tmpUser));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.user]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.referents) && user.referents.length > 0) {\r\n user.referents.forEach(r => {\r\n dispatch(getUserRepresentativeAddress(r));\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.referents]);\r\n\r\n function checkSteps() {\r\n let tmpSteps = [];\r\n let tmpUser = user.user;\r\n let step = !R.isNil(user) && !R.isNil(tmpUser) && !R.isNil(tmpUser.onBoardingStep) ? parseInt(JSON.stringify(tmpUser.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n if (step !== 6 && step !== -1) {\r\n if (tmpUser.onBoardingStep === \"Completed\") {\r\n step = 6;\r\n }\r\n }\r\n\r\n if (step !== -1) {\r\n tmpSteps = Array.from({ length: step }, (_, i) => i + 1);\r\n }\r\n setStepsCompleted(tmpSteps);\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.user)) {\r\n checkSteps();\r\n }\r\n if (step === 1 && !stepsCompleted.includes(1) && (auth.loggedIn !== true || user.user === undefined)) {\r\n $('#commencerRegister').modal('show');\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user]);\r\n\r\n return (\r\n
\r\n

Assist@

\r\n \r\n
\r\n

Assist@: Main

\r\n \r\n {\r\n step === 1 ? { setPasswordRequirements(req); }} /> :\r\n step === 2 ? setPersonalDataRequirements(req)} /> :\r\n step === 3 ? setMonReferentRequirements(req)} /> :\r\n step === 4 ? { setMonServiceRequirements(req); }} /> :\r\n step === 5 ? :\r\n step === 6 ? :\r\n ''\r\n }\r\n
\r\n {/* */}\r\n
\r\n );\r\n};\r\n","import React, { Component, Fragment } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\n\r\nimport './auth.scss';\r\n\r\n// Auth: Common\r\nimport { Navbar } from './_common/navbar';\r\n\r\n// Auth: Views\r\nimport { Signup } from './signup';\r\nimport { Signin } from './signin';\r\nimport { Referent } from './referent';\r\nimport Identity from './identity';\r\nimport { PasswordIndex } from './password';\r\nimport * as R from 'ramda';\r\nimport * as axios from 'axios';\r\nimport { Code } from './signin/code';\r\nimport { PartnerIndex } from './partner';\r\nimport { PartnerSignup } from './partner/onboarding';\r\n\r\n\r\n\r\nexport const App = () => {\r\n\r\n const location = useLocation();\r\n let authToken = sessionStorage.getItem(\"access_token\");\r\n if (!R.isNil(authToken)) {\r\n axios.defaults.headers.common['Authorization'] = \"Bearer \" + authToken;\r\n }\r\n\r\n const color = new URLSearchParams(location.search).get(\"color\");\r\n const partnerId = new URLSearchParams(location.search).get(\"partnerId\");\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
\r\n

Assist@

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return ;\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default App;\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { uploadProfilePicture, deleteProfilePicture, getDocumentsProfile } from './../actions/user-api';\r\nimport removeAccents from 'remove-accents';\r\nimport $ from 'jquery';\r\nimport { FileTypes } from '../constants/utils/fileTypes';\r\n\r\nexport const Avatar = ({ user, profilePicture, profilePictureDocument }) => {\r\n\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst [file, setFile] = useState(undefined);\r\n\tconst modal = useRef(null);\r\n\tconst [deleteImage, setDeleteImage] = useState(false);\r\n\tconst [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\tconst [fileName, setFileName] = useState(profilePictureDocument?.fileName);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!R.isNil(profilePictureDocument)) {\r\n\r\n\t\t\tsetFileName(profilePictureDocument.fileName);\r\n\t\t}\r\n\r\n\r\n\t}, [file, profilePictureDocument]);\r\n\r\n\r\n\tconst hideModal = () => {\r\n\t\t$('.modal').modal('hide');\r\n\t\tsetTimeout(() => {\r\n\t\t\tsetDeleteImage(false);\r\n\t\t\tsetFile(undefined);\r\n\t\t}, 300);\r\n\t};\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(profilePicture)) {\r\n\t\t\tlet i = new Image();\r\n\t\t\ti.onload = function () {\r\n\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t};\r\n\t\t\ti.src = profilePicture;\r\n\t\t}\r\n\t}, [profilePicture]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(file)) {\r\n\t\t\tvar reader = new FileReader();\r\n\r\n\t\t\t//uploadFile\r\n\t\t\treader.onload = async () => {\r\n\t\t\t\tlet i = new Image();\r\n\t\t\t\ti.onload = function () {\r\n\t\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t\t};\r\n\t\t\t\ti.src = reader.result;\r\n\t\t\t};\r\n\t\t\treader.readAsDataURL(file);\r\n\t\t}\r\n\t}, [file]);\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Avatar

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Modifier photo
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t e.target.value = null} onChange={(e) => {\r\n\t\t\t\t\t\t\t\t\tconst files = [...e.target.files];\r\n\t\t\t\t\t\t\t\t\tif (files.length > 0) {\r\n\t\t\t\t\t\t\t\t\t\tconst tmpFile = files[0];\r\n\t\t\t\t\t\t\t\t\t\tsetFile(new File([tmpFile], removeAccents(tmpFile.name).toLowerCase().replace(/\\s/gi, \"\")));\r\n\t\t\t\t\t\t\t\t\t\tsetDeleteImage(false);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t{(file !== undefined || !R.isNil(profilePicture)) && deleteImage === false ? \"profile\"\r\n\t\t\t\t\t\t\t\t\t\t: }\r\n\t\t\t\t\t\t\t\t\t{/* show default bellow if user has no defined photo */}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

Veuillez cliquer ci-dessus pour modifier votre photo de profil.
Vous pouvez charger un fichier jpg, gif ou png. Taille maximum du fichier: 4MB

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useState } from \"react\";\r\nimport { Link, NavLink } from \"react-router-dom\";\r\nimport JwtDecode from \"jwt-decode\";\r\nimport logo_hr from \"../../../assets/images/brand/assista_horizontal-punchout.svg\";\r\nimport * as R from \"ramda\";\r\n\r\nimport { Avatar } from \"./../../../_common/avatar\";\r\n\r\nexport const Navbar = ({ user, profilePicture, profilePictureDocument, logoContent }) => {\r\n\tconst [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\tconst isFirefox = typeof InstallTrigger !== \"undefined\";\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(profilePictureDocument)) {\r\n\t\t\tlet i = new Image();\r\n\t\t\ti.onload = function () {\r\n\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t};\r\n\t\t\ti.src = profilePicture;\r\n\t\t}\r\n\t}, [profilePictureDocument, profilePicture]);\r\n\r\n\tlet roles = [];\r\n\tvar accessToken = sessionStorage.getItem(\"access_token\");\r\n\tif (!R.isNil(accessToken) && accessToken !== \"\") {\r\n\t\tvar decodedJwt = JwtDecode(accessToken);\r\n\t\tlet rolesFromToken = decodedJwt[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n\t\tif (!R.isNil(rolesFromToken)) {\r\n\t\t\tif (Array.isArray(rolesFromToken)) {\r\n\t\t\t\troles = rolesFromToken;\r\n\t\t\t} else {\r\n\t\t\t\troles = [rolesFromToken];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tconst logo = R.isNil(logoContent) ? logo_hr : logoContent;\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{\"Assist@\" (ev.target.src = logo_hr)} />\r\n\t\t\t\t\t\t{/* \"Assist@\" */}\r\n\t\t\t\t\t\t

Assist@: Menu

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
Numéro de processus
\r\n\t\t\t\t\t\t\t\t\t\t
{!R.isNil(user) && !R.isNil(user.processNumber) && user.processNumber ? user.processNumber : \"N/D\"}
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tTableau de bord\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tMes référents\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tOrganismes de base\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tOrganismes complémentaires\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tÉvènements de vie\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tBibliothèque de documents\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{roles.indexOf(\"REPRESENTATIVE\") > -1 ? (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\twindow.location = \"/facilita\";\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tJe suis référent(e)\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\nexport const Help = () => {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t};","import * as ActionTypes from '../constants/actiontypes/services';\r\nimport * as axios from 'axios';\r\nimport * as urls from '../constants/webapi/services';\r\nimport { convertConnectionTypesToServiceType } from '../constants/utils/connectionTypes';\r\n\r\nexport function fetchServices(serviceType, position, name) {\r\n\r\n\tlet frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_SERVICES_REQUEST, serviceType: serviceType, position: position, name: name });\r\n\t\treturn axios.get(urls.searchServiceUrl(frenchServiceType, position, name))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceType: serviceType\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_SUCCESS,\r\n\t\t\t\t\t\tserviceType: serviceType\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getServiceById(serviceType, serviceId) {\r\n\r\n\tlet frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.GET_SERVICE_BY_ID_REQUEST, serviceType: serviceType, serviceId: serviceId });\r\n\t\treturn axios.get(urls.getServiceByIdUrl(frenchServiceType, serviceId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_SERVICE_BY_ID_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.GET_SERVICE_BY_ID_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function fetchServiceDataForServiceType(serviceType, lifeEvent) {\r\n\tlet frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_SERVICES_DATA_REQUEST, serviceType: serviceType, lifeEvent: lifeEvent });\r\n\t\treturn axios\r\n\t\t\t.get(urls.getServiceDataByTypeUrl(frenchServiceType, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceType: serviceType,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function fetchAllServiceData(lifeEvent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_SERVICES_DATA_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(urls.getServiceDataUrl(lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_SERVICES_DATA_REQUEST, serviceId: serviceData.serviceId });\r\n\t\treturn axios.post(urls.getServiceDataUrl(), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceId: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tserviceId: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_SERVICES_DATA_REQUEST, id: serviceData.serviceId });\r\n\t\treturn axios.put(urls.getServiceDataByIdUrl(serviceData.id), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tid: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteServiceData(id, connectionType) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_SERVICES_DATA_REQUEST, id: id, connectionType: connectionType });\r\n\t\treturn axios.delete(urls.getServiceDataByIdUrl(id))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t\tconnectionType: connectionType\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}","import {EndPoints} from '../api-config';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const userByIdUrl = (id) => `${SERVER_ADDR_V1}/User/${id}`;\r\nexport const userAddressByUserIdUrl = (id) => `${SERVER_ADDR_V1}/User/${id}/address`;\r\nexport const userAddressByUserIdAndAddressIdUrl = (userId, addressId) => `${SERVER_ADDR_V1}/User/${userId}/address/${addressId}`;\r\nexport const userRepresentingByIdUrl = (id) => `${SERVER_ADDR_V1}/User/${id}/representing`;\r\nexport const userConnectionsUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/connection`;\r\nexport const userServiceByIdUrl = (id, serviceId) => `${SERVER_ADDR_V1}/user/${id}/connection/${serviceId}`;\r\nexport const userServicesBatchUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/connection/batch`;\r\nexport const generateUserLetterUrlByUserId = (userId, lifeEvent) => `${SERVER_ADDR_V1}/userletter/user/${userId}${lifeEvent !== undefined ? \"?lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const generateUserletterUrlByletterIdAndUserServiceId = (userId, userServiceId, lifeEvent) => `${SERVER_ADDR_V1}/userletter/user/${userId}/userservice/${userServiceId}${lifeEvent !== undefined ? \"?lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const userLetterUrlByUserId = (userId, lifeEvent) => `${SERVER_ADDR_V1}/user/${userId}/userletter${lifeEvent !== undefined ? \"?lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const letterUrlByletterId = (letterId) => `${SERVER_ADDR_V1}/letter/${letterId}`;\r\nexport const letterContentUrlByletterId = (letterId) => `${SERVER_ADDR_V1}/userletter/${letterId}/content`;\r\nexport const userletterUrlByletterId = (letterId) => `${SERVER_ADDR_V1}/userletter/${letterId}`;\r\nexport const userRepresentativeByUserIdUrl = (id) => `${SERVER_ADDR_V1}/user/${id}/userrepresentatives`;\r\nexport const userRepresentativesUrl = () => `${SERVER_ADDR_V1}/userRepresentative`;\r\nexport const userRepresentativesByIdUrl = (id) => `${SERVER_ADDR_V1}/userRepresentative/${id}`;\r\nexport const userRepresentativesInvitationByIdUrl = (id) => `${SERVER_ADDR_V1}/userRepresentative/${id}/invitation/send`;\r\nexport const sendOTPUrl = () => `${SERVER_ADDR_V1}/sendPhoneNumberOTP`;\r\nexport const verifyOTPUrl = () => `${SERVER_ADDR_V1}/verifyPhoneNumberOTP`;\r\nexport const addUserRoleUrl = (userId) => `${SERVER_ADDR_V1}/user/${userId}/adduserrole`;\r\n","import * as ActionTypes from \"../constants/actiontypes/user\";\r\nimport * as EventDeclarationActionTypes from \"../constants/actiontypes/relocationDeclaration\";\r\nimport * as DeathDeclarationActionTypes from \"../constants/actiontypes/facilita/deathDeclaration\";\r\nimport * as AuthActionTypes from \"../constants/actiontypes/auth\";\r\nimport * as axios from \"axios\";\r\nimport * as R from \"ramda\";\r\nimport * as urls from \"../constants/webapi/facilita\";\r\nimport * as userUrls from \"../constants/webapi/user\";\r\nimport * as serviceDataUrls from \"../constants/webapi/services\";\r\nimport { getAuthenticationUrl } from \"../constants/webapi/auth\";\r\nimport Letter from \"../constants/models/facilita/letter\";\r\n\r\nexport function fetchLifeEvents(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_LIFEEVENTS_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.getUserLifeEventsByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_LIFEEVENTS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_LIFEEVENTS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region RelocationDeclaration\r\n\r\nexport function getRelocationDeclaration(userId, defaultValues) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_RELOCATION_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.declareRelocationByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (R.isNil(response.data) || response.data === \"\") {\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\t\tdata: null,\r\n\t\t\t\t\t\tdefaultValues,\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\t\t\tdata: {},\r\n\t\t\t\t\t\t\tdefaultValues,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn \"NotFound\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_RELOCATION_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createRelocationDeclaration(userId, relocationDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.CREATE_RELOCATION_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.post(userUrls.declareRelocationByIdUrl(userId), { ...relocationDeclaration, professionalSituation: Array.isArray(relocationDeclaration.professionalSituation) ? relocationDeclaration.professionalSituation.join(\", \") : relocationDeclaration.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_RELOCATION_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateRelocationDeclaration(userId, relocationDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_RELOCATION_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.declareRelocationByIdUrl(userId), { ...relocationDeclaration, professionalSituation: Array.isArray(relocationDeclaration.professionalSituation) ? relocationDeclaration.professionalSituation.join(\", \") : relocationDeclaration.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_RELOCATION_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteRelocationDeclaration(id) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.DELETE_RELOCATION_DECLARATION_REQUEST, id: id });\r\n\t\treturn axios\r\n\t\t\t.delete(userUrls.declareRelocationByIdUrl(id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_RELOCATION_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: null,\r\n\t\t\t\t});\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_RELOCATION_DECLARATION_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region DeathDeclaration\r\nexport function createDeathDeclaration(userId, deathDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.CREATE_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.post(userUrls.declareDeathById(userId), deathDeclaration)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getDeathDeclaration(userId, defaultValues) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.declareDeathById(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n\t\t\t\t\t\t\tdata: {},\r\n\t\t\t\t\t\t\tdefaultValues,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn \"NotFound\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateDeathDeclaration(userId, deathDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_DECLARATION_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.declareDeathById(userId), { ...deathDeclaration, professionalSituation: Array.isArray(deathDeclaration.professionalSituation) ? deathDeclaration.professionalSituation.join(\",\") : deathDeclaration.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region Documents\r\nexport function getDocuments(userId, shouldDispatch, path) {\r\n\tif (R.isNil(shouldDispatch)) {\r\n\t\tshouldDispatch = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_FILES_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.userDocumentsUrl(userId, path))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (shouldDispatch) {\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_FILES_SUCCESS,\r\n\t\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_FILES_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function uploadDocument(userId, fileType, document, description, filePath) {\r\n\tlet data = new FormData();\r\n\tconst config = {\r\n\t\theaders: { \"content-type\": \"multipart/form-data\" },\r\n\t\tcredential: \"include\",\r\n\t};\r\n\r\n\tif (!R.isNil(document)) {\r\n\t\tdata.append(\"file\", document, document.name);\r\n\t} else {\r\n\t\tdocument = { name: null };\r\n\t}\r\n\r\n\tif (!R.isNil(filePath)) {\r\n\t\tdata.append(\"filePath\", filePath);\r\n\t}\r\n\tdata.append(\"fileDescription\", description);\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPLOAD_FILE_REQUEST, documentName: document.name, fileType: fileType });\r\n\t\treturn axios\r\n\t\t\t.post(userUrls.userDocumentUrl(userId, fileType), data, config)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tconst file = { fileName: document.name, fileType: fileType, description: description };\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPLOAD_FILE_SUCCESS,\r\n\t\t\t\t\tfile: file,\r\n\t\t\t\t});\r\n\t\t\t\treturn file;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPLOAD_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t\tdocumentName: document.name,\r\n\t\t\t\t\tfileType: fileType,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadDocument(userId, fileType, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DOWNLOAD_FILE_REQUEST, fileType: fileType });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.userDocumentUrl(userId, fileType, path), { responseType: \"arraybuffer\" })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\t\twindow.open(fileurl);\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DOWNLOAD_FILE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DOWNLOAD_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadDocumentAsBase64(userId, fileType) {\r\n\treturn axios\r\n\t\t.get(userUrls.userDocumentUrl(userId, fileType), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\treturn new Promise((resolve, reject) => {\r\n\t\t\t\tlet blob = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\t\tlet reader = new FileReader();\r\n\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\treader.onload = () => resolve({ base64Content: reader.result, type: blob.type });\r\n\t\t\t\treader.onerror = (error) => reject(error);\r\n\t\t\t});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function deleteDocument(userId, fileName, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DELETE_FILE_REQUEST, fileName: fileName });\r\n\t\treturn axios\r\n\t\t\t.delete(userUrls.userDocumentUrl(userId, fileName, path))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_FILE_SUCCESS,\r\n\t\t\t\t\tdata: fileName,\r\n\t\t\t\t});\r\n\t\t\t\treturn fileName;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function shareDocuments(userId, toEmailAddresses, fileNames, userRepresentativeId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.SHARE_FILES_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.post(userUrls.userShareDocument(userId), {\r\n\t\t\t\tuserRepresentativeId,\r\n\t\t\t\tuserId,\r\n\t\t\t\tfileNames,\r\n\t\t\t\ttoEmailAddresses,\r\n\t\t\t})\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SHARE_FILES_SUCCESS,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SHARE_FILES_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\nexport function getUserMessage(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_MESSAGE_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.userMessageByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserConnections(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_SERVICES_REQUEST, user: userId });\r\n\t\treturn axios\r\n\t\t\t.get(urls.userConnectionsUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addUserConnection(userId, service) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_USER_SERVICE_REQUEST, user: userId });\r\n\t\treturn axios\r\n\t\t\t.post(urls.userConnectionsUrl(userId), service)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tservice: service,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function removeUserConnection(userId, connection) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_USER_SERVICE_REQUEST, user: userId });\r\n\t\treturn axios\r\n\t\t\t.delete(urls.userServiceByIdUrl(userId, connection.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tservice: connection,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region ServiceData\r\nexport function getUserServiceData(userId, serviceType, lifeEvent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_USER_SERVICES_DATA_REQUEST, user: userId });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.userServiceDataUrl(userId, serviceType, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\t// if(error.response !== undefined && error.response.status === 401){\r\n\t\t\t\t// \twindow.location = getAuthenticationUrl();\r\n\t\t\t\t// \treturn;\r\n\t\t\t\t// }\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.CREATE_USER_SERVICES_DATA_REQUEST, serviceId: serviceData.serviceId });\r\n\t\treturn axios\r\n\t\t\t.post(serviceDataUrls.getServiceDataUrl(), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceId: serviceData.serviceId,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tserviceId: serviceData.serviceId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_REQUEST, id: serviceData.id });\r\n\t\treturn axios\r\n\t\t\t.put(serviceDataUrls.getServiceDataByIdUrl(serviceData.id), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tid: serviceData.id,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: serviceData.serviceId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteServiceData(id, connectionType) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.DELETE_USER_SERVICES_DATA_REQUEST, id: id, connectionType: connectionType });\r\n\t\treturn axios\r\n\t\t\t.delete(serviceDataUrls.getServiceDataByIdUrl(id))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t\tconnectionType: connectionType,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function setCompletedServiceDataFilling(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.completeById(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#endregion\r\n\r\n//#region Letters\r\nexport function generateLettersForUserId(userId, lifeEvent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.GENERATE_USER_LETTERS_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.post(urls.generateUserLetterUrlByUserId(userId, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.GENERATE_USER_LETTERS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.GENERATE_USER_LETTERS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function generateLettersForUserIdAndUserServiceId(userId, userServiceId, lifeEvent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.GENERATE_USER_LETTER_REQUEST, userId, userServiceId, lifeEvent });\r\n\t\treturn axios\r\n\t\t\t.post(urls.generateUserletterUrlByletterIdAndUserServiceId(userId, userServiceId, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.GENERATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tuserServiceId: userServiceId,\r\n\t\t\t\t\tlifeEvent: lifeEvent,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.GENERATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tlifeEvent: lifeEvent,\r\n\t\t\t\t\tuserServiceId: userServiceId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getLettersForUserId(userId, lifeEvent) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_USER_LETTERS_REQUEST, userId: userId, lifeEvent: lifeEvent });\r\n\t\treturn axios\r\n\t\t\t.get(urls.userLetterUrlByUserId(userId, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_USER_LETTERS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tletters: response.data,\r\n\t\t\t\t\tlifeEvent: lifeEvent,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_USER_LETTERS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tlifeEvent: lifeEvent,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getLetterInformationByLetterId(letterId) {\r\n\treturn axios\r\n\t\t.get(urls.letterUrlByletterId(letterId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function updateLetterById(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\tconst urltest = urls.userletterUrlByletterId(userletter.id);\r\n\t\treturn axios\r\n\t\t\t.put(urltest, new Letter(userletter))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function validateLetter(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\treturn axios\r\n\t\t\t.put(urls.userletterUrlByletterId(userletter.id) + \"/validate\")\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function abandonLetter(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\treturn axios\r\n\t\t\t.put(urls.userletterUrlByletterId(userletter.id) + \"/abandon\")\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadLetter(userLetterId) {\r\n\treturn axios\r\n\t\t.get(urls.letterContentUrlByletterId(userLetterId), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\twindow.open(fileurl);\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\n//#region UserRepresentative\r\nexport function getUserRepresentativesForUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_REFERENTS_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.get(urls.userRepresentativeByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_REFERENTS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferents: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_REFERENTS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createUserRepresentativeForUserId(userId, userRepresentative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.CREATE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.post(urls.userRepresentativesUrl(), userRepresentative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferent: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.CREATE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserRepresentativeForUserId(userId, userRepresentative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.put(urls.userRepresentativesByIdUrl(userRepresentative.id), userRepresentative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferent: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteUserRepresentativeForUserId(userId, userRepresentativeId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.DELETE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.delete(urls.userRepresentativesByIdUrl(userRepresentativeId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferentId: userRepresentativeId,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.DELETE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function InviteUserRepresentative(userRepresentativeId) {\r\n\treturn axios\r\n\t\t.post(urls.userRepresentativesInvitationByIdUrl(userRepresentativeId))\r\n\t\t.then((response) => {\r\n\t\t\treturn;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\n//#region User Address\r\nexport function getAddressesByUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_ADDRESS_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.get(urls.userAddressByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddresses: response.data,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateAddressById(userId, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_ADDRESS_REQUEST, userId: userId, addressId: address.id });\r\n\t\treturn axios\r\n\t\t\t.put(urls.userAddressByUserIdAndAddressIdUrl(userId, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddress: address,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\taddressId: address.id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region User & Security\r\nexport function updateUser(user) {\r\n\tif (R.isNil(user.isEnabled)) {\r\n\t\tuser.isEnabled = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_REQUEST, userId: user.id });\r\n\t\treturn axios\r\n\t\t\t.put(urls.userByIdUrl(user.id), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SUCCESS,\r\n\t\t\t\t\tuser: user,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: user.id,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function sendOTPCode(phoneNumber) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios\r\n\t\t\t.post(urls.sendOTPUrl(), { phoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\t\treason: error.response.status,\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 409) throw new Error(\"AlreadyExistingPhoneNumber\");\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function verifyOTPCode(phoneNumber, otpCode) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode: otpCode });\r\n\t\treturn axios\r\n\t\t\t.post(urls.verifyOTPUrl(), { phoneNumber: phoneNumber, otpCode: otpCode })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tphoneNumber: phoneNumber,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 400 && error.response.data.errors?.hasOwnProperty(\"otpCode\")) {\r\n\t\t\t\t\tthrow new Error(\"InvalidOtpCode\");\r\n\t\t\t\t}\r\n\t\t\t\tthrow new Error(error.statusText);\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function changePhoneNumber(phoneNumber, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios\r\n\t\t\t.post(userUrls.changePhoneNumberUrl(userId), { newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\t\treason: error.response.status,\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 409) throw new Error(\"AlreadyExistingPhoneNumber\");\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserSecurity(phoneNumber, otpCode, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode: otpCode });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.userSecurityByIdUrl(userId), { id: userId, oTPCode: otpCode, newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tphoneNumber: phoneNumber,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 400 && error.response.data.errors?.hasOwnProperty(\"otpCode\")) {\r\n\t\t\t\t\tthrow new Error(\"InvalidOtpCode\");\r\n\t\t\t\t}\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region onBoarding\r\nexport function getUserInfoById(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.get(userUrls.userByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserInfoById(userInfo) {\r\n\tif (R.isNil(userInfo.isEnabled)) {\r\n\t\tuserInfo.isEnabled = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.userByIdUrl(userInfo.id), { ...userInfo, professionalSituation: Array.isArray(userInfo.professionalSituation) ? userInfo.professionalSituation.join(\",\") : userInfo.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_SUCCESS,\r\n\t\t\t\t\tdata: userInfo,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateOnboardingUserAddressById(userId, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.userAddressByIdWithIdUrl(userId, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: address,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getOnboardingUserAddressesByUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST, userId: userId });\r\n\t\treturn axios\r\n\t\t\t.get(urls.userAddressByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddresses: response.data,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserConnectionBatch(userId, services) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.ADD_USER_SERVICE_BATCH_REQUEST });\r\n\t\treturn axios\r\n\t\t\t.post(\r\n\t\t\t\tuserUrls.userServicesBatchUrl(userId),\r\n\t\t\t\tservices.map((s) => {\r\n\t\t\t\t\treturn { connectionType: s };\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.ADD_USER_SERVICE_BATCH_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.ADD_USER_SERVICE_BATCH_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateOnboardingStep(userId, step) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: EventDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_REQUEST, step: step });\r\n\r\n\t\treturn axios\r\n\t\t\t.put(userUrls.updateOnBoardingStepByIdUrl(userId, step))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS,\r\n\t\t\t\t\tdata: step,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: EventDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getCurrentPrices(userId) {\r\n\treturn axios\r\n\t\t.get(userUrls.getCurrentPricesUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\n//#region Invoices\r\nexport function fetchInvoices(userId) {\r\n\treturn axios\r\n\t\t.get(userUrls.getInvoicesByUserIdUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\nexport function addUserRole(userId) {\r\n\treturn axios\r\n\t\t.get(urls.addUserRoleUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\tif (sessionStorage.getItem(\"access_token\") !== undefined) {\r\n\t\t\t\tsessionStorage.removeItem(\"access_token\");\r\n\t\t\t}\r\n\t\t\tsessionStorage.setItem(\"access_token\", response.data.jwtToken);\r\n\t\t\taxios.defaults.headers.common[\"Authorization\"] = \"Bearer \" + response.data.jwtToken;\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n","import React, { useRef, useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\n\r\nexport const ActivityDetails = ({ index, activity, user, removeActivity, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst formRef = useRef(null);\r\n\tlet companyName = undefined;\r\n\tlet initCollapsedState = true;\r\n\tlet initState = {\r\n\t\ttype: \"Activite\",\r\n\t\tcompanyName: \"\",\r\n\t\tcompanyAddressStreet1: \"\",\r\n\t\tcompanyAddressStreet2: \"\",\r\n\t\tcompanyAddressPostalCode: \"\",\r\n\t\tcompanyAddressLocality: \"\",\r\n\t\tcompanyAddressCountry: \"FR\",\r\n\t\tfunction: \"\",\r\n\t\tcontractType: \"CDD\",\r\n\t\tcompanySavingsPlanReference: \"\",\r\n\t};\r\n\tif (!R.isNil(activity.id)) {\r\n\t\tinitState = activity.payload;\r\n\t\tinitCollapsedState = false;\r\n\t\tcompanyName = activity.payload.companyName;\r\n\t}\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tlet hasCompanySavingsPlanReference = false;\r\n\tif (!R.isNil(payload.companySavingsPlanReference) && payload.companySavingsPlanReference !== \"\") {\r\n\t\thasCompanySavingsPlanReference = true;\r\n\t}\r\n\tconst [showPee, setShowPee] = useState(hasCompanySavingsPlanReference);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Votre activité principale\" : \"Autre activité\"}

\r\n\t\t\t\t\t{!R.isNil(companyName) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{companyName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
nom de l’entreprise
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, companyName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, companyAddressStreet1: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, companyAddressStreet2: e.target.value })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, companyAddressPostalCode: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, companyAddressLocality: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
statut professionnel
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, function: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
Plan d'épargne entreprise
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setShowPee(!showPee)} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{showPee ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, companySavingsPlanReference: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.activity), serviceId: \"activite\" + index, payload: payload, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.activity));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport {ActivityDetails} from './activityDetails';\r\nimport { ConnectionTypes } from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const Activity = ({ generateRelocationLetters }) => {\r\n\tconst [activityState, setActivityState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst activityVector = services.serviceData[\"Activity\"];\r\n\tuseEffect(() => {\r\n\t\tlet activitiesInState = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[ConnectionTypes.activity]) ? services.serviceData[ConnectionTypes.activity] : [];\r\n\t\tif (activitiesInState.length > 0) {\r\n\t\t\tsetActivityState({\r\n\t\t\t\titems: activitiesInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetActivityState({ ...activityState, items: activityState.items.concat({}) });\r\n\t\t}\r\n\t}, [services, services.serviceData, activityVector]);\r\n\r\n\tfunction removeActivity(activity) {\r\n\t\tsetActivityState({ ...activityState, items: activityState.items.filter((a) => a !== activity) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

En activité

\r\n\t\t\t{activityState.items.map((activity, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter une autre ACTIVITÉ

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetActivityState({ ...activityState, items: activityState.items.concat({}) });\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter une autre ACTIVITÉ\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useState, useRef } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport countries from \"i18n-iso-countries\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const EducationInstitutionDetails = ({ index, educationInstitution, user, removeEducationInstitution, generateRelocationLetters }) => {\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst formRef = useRef(null);\r\n\r\n\tlet initCollapsedState = true;\r\n\tlet initState = {\r\n\t\ttype: \"Etudiant\",\r\n\t\tname: \"\",\r\n\t\taddress: {\r\n\t\t\tstreetAddress: \"\",\r\n\t\t\tstreetAddress2: \"\",\r\n\t\t\tpostalCode: \"\",\r\n\t\t\taddressLocality: \"\",\r\n\t\t\taddressCountry: \"FR\",\r\n\t\t},\r\n\t\tlevel: \"\",\r\n\t\tlabel: \"\",\r\n\t};\r\n\r\n\tif (!R.isNil(educationInstitution.id)) {\r\n\t\tinitState = {\r\n\t\t\t...educationInstitution.payload,\r\n\t\t\taddress: {\r\n\t\t\t\tstreetAddress: educationInstitution.payload?.address?.streetAddress || \"\",\r\n\t\t\t\tstreetAddress2: educationInstitution.payload?.address?.streetAddress2 || \"\",\r\n\t\t\t\tpostalCode: educationInstitution.payload?.address?.postalCode || \"\",\r\n\t\t\t\taddressLocality: educationInstitution.payload?.address?.addressLocality || \"\",\r\n\t\t\t\taddressCountry: educationInstitution.payload?.address?.addressCountry || \"FR\",\r\n\t\t\t},\r\n\t\t};\r\n\t\tinitCollapsedState = false;\r\n\t}\r\n\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tconst handleSave = (e) => {\r\n\t\te.preventDefault();\r\n\t\tif (formRef.current.checkValidity()) {\r\n\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\tuserId: user.user.id,\r\n\t\t\t\tserviceType: convertConnectionTypesToServiceType(ConnectionTypes.etudiant),\r\n\t\t\t\tserviceId: \"etudiant\" + index,\r\n\t\t\t\tpayload: payload,\r\n\t\t\t\tlifeEvent: payload.lifeEvent || 1,\r\n\t\t\t});\r\n\r\n\t\t\tif (R.isNil(educationInstitution.id)) {\r\n\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tserviceData.id = educationInstitution.id;\r\n\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tsetCollapsed(!collapsed);\r\n\t\t}\r\n\t\tformRef.current.classList.add(\"was-validated\");\r\n\t};\r\n\r\n\tconst handleDelete = (e) => {\r\n\t\te.preventDefault();\r\n\t\tif (R.isNil(educationInstitution.id)) {\r\n\t\t\tremoveEducationInstitution(educationInstitution);\r\n\t\t} else {\r\n\t\t\tdispatch(deleteServiceData(educationInstitution.id, ConnectionTypes.etudiant));\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setCollapsed(!collapsed)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Votre établissement d'enseignement principal\" : \"Autre établissement\"}

\r\n\t\t\t\t\t{!R.isNil(payload.name) && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{payload.name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/* Nom de l'établissement */}\r\n\t\t\t\t\t
Nom de l'établissement
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
Cursus
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, level: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, label: e.target.value })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index !== 0 && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport * as R from \"ramda\";\r\nimport { EducationInstitutionDetails } from \"./educationInstitutionDetails\";\r\nimport { ConnectionTypes } from \"../../../../../constants/utils/connectionTypes\";\r\n\r\nexport const EducationInstitution = ({ generateRelocationLetters }) => {\r\n\tconst [educationInstitutionState, setEducationInstitutionState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst educationInstitutionVector = services.serviceData[\"Etudiant\"];\r\n\tuseEffect(() => {\r\n\t\tlet educationInstitutionsInState = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[ConnectionTypes.etudiant]) ? services.serviceData[ConnectionTypes.etudiant] : [];\r\n\t\tif (educationInstitutionsInState.length > 0) {\r\n\t\t\tsetEducationInstitutionState({\r\n\t\t\t\titems: educationInstitutionsInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: [{}] });\r\n\t\t}\r\n\t}, [services, services.serviceData, educationInstitutionVector]);\r\n\r\n\tfunction removeEducationInstitution(educationInstitution) {\r\n\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: educationInstitutionState.items.filter((ei) => ei !== educationInstitution) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Établissement d'enseignement

\r\n\t\t\t{educationInstitutionState.items.map((educationInstitution, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter un autre ÉTABLISSEMENT D'ENSEIGNEMENT

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: educationInstitutionState.items.concat({}) });\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter un autre ÉTABLISSEMENT D'ENSEIGNEMENT\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport {RegexFields} from '../../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const CustomPensionForm = ({payload, setPayload, index}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} required />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress3: e.target.value } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} pattern={RegexFields.frenchZipCode} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n}","import React, { useRef, useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport * as R from \"ramda\";\r\nimport { CustomPensionForm } from \"./customPensionForm\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport Pension from \"../../../../../constants/models/servicePayloads/pension\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, PensionProfessionalCategoryMapping } from \"../../../../../constants/utils/connectionTypes\";\r\nimport OtherActivity from \"../../../../../constants/models/servicePayloads/otherActivity\";\r\n\r\nexport const PensionDetails = ({ index, pension, user, removePension, services, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst [selectedCategory, setSelectedCategory] = useState(undefined);\r\n\r\n\tconst formRef = useRef(null);\r\n\tlet initCollapsedState = true;\r\n\tlet initState = new Pension({\r\n\t\ttype: \"Retraite\",\r\n\t\tprofessionalCategory: \"\",\r\n\t\tpensionBaseServiceId: \"\",\r\n\t\tpensionComplementServiceId: \"\",\r\n\t});\r\n\tlet showCustomBasePensionFormInit = false;\r\n\tlet showCustomComplementaryPensionFormInit = false;\r\n\tlet showBasePensionFormInit = true;\r\n\tlet showComplementaryPensionFormInit = true;\r\n\tif (!R.isNil(pension.id)) {\r\n\t\tinitState = pension.payload;\r\n\t\tlet category = PensionProfessionalCategoryMapping.find((c) => c.options.find((o) => o.value === pension.payload.professionalCategory) !== undefined);\r\n\r\n\t\tif (!R.isNil(category) && R.isNil(selectedCategory)) {\r\n\t\t\tsetSelectedCategory(category);\r\n\t\t}\r\n\t\tinitCollapsedState = false;\r\n\r\n\t\tif (!R.isNil(pension.payload.customPensionBase) && !R.isNil(pension.payload.customPensionBase.name)) {\r\n\t\t\tshowCustomBasePensionFormInit = true;\r\n\t\t}\r\n\t\tif (!R.isNil(pension.payload.customPensionComplement) && !R.isNil(pension.payload.customPensionComplement.name)) {\r\n\t\t\tshowCustomComplementaryPensionFormInit = true;\r\n\t\t}\r\n\t\tif (R.isNil(pension.payload.pensionBaseServiceId) || pension.payload.pensionBaseServiceId === \"\") {\r\n\t\t\tshowBasePensionFormInit = false;\r\n\t\t}\r\n\t\tif (R.isNil(pension.payload.pensionComplementServiceId) || pension.payload.pensionComplementServiceId === \"\") {\r\n\t\t\tshowComplementaryPensionFormInit = false;\r\n\t\t}\r\n\t}\r\n\r\n\tconst [showCustomBasePensionForm, setShowCustomBasePensionForm] = useState(showCustomBasePensionFormInit);\r\n\tconst [showCustomComplementaryPensionForm, setShowCustomComplementaryPensionForm] = useState(showCustomComplementaryPensionFormInit);\r\n\r\n\tconst [showBasePensionForm, setShowBasePensionForm] = useState(showBasePensionFormInit);\r\n\tconst [showComplementaryPensionForm, setShowComplementaryPensionForm] = useState(showComplementaryPensionFormInit);\r\n\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\tlet pensionBase = undefined;\r\n\tlet pensionsComplementary = undefined;\r\n\tlet selectedPensionComplementary = undefined;\r\n\tlet branchBase = undefined;\r\n\tlet branchComplementary = undefined;\r\n\tlet selectedProfessionalSubcategoryTitle = undefined;\r\n\tif (payload.professionalCategory !== \"\") {\r\n\t\tpensionBase = services.find((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Base\"));\r\n\t\tif (!R.isNil(pensionBase)) {\r\n\t\t\tbranchBase = pensionBase.branches.find((b) => b.id === payload.pensionBaseServiceId);\r\n\t\t}\r\n\r\n\t\tpensionsComplementary = services.filter((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Complementary\"));\r\n\r\n\t\tif (payload.pensionComplementServiceId !== \"\") {\r\n\t\t\tselectedPensionComplementary = pensionsComplementary.find((p) => p.branches.find((b) => b.id === payload.pensionComplementServiceId) !== undefined);\r\n\t\t\tif (!R.isNil(selectedPensionComplementary)) branchComplementary = selectedPensionComplementary.branches.find((b) => b.id === payload.pensionComplementServiceId);\r\n\t\t} else {\r\n\t\t\tif (pensionsComplementary.length > 1) {\r\n\t\t\t\tselectedPensionComplementary = undefined;\r\n\t\t\t} else {\r\n\t\t\t\tselectedPensionComplementary = pensionsComplementary[0];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tPensionProfessionalCategoryMapping.forEach((cat) => {\r\n\t\t\tlet matchingOption = cat.options.find((o) => o.value === payload.professionalCategory);\r\n\t\t\tif (!R.isNil(matchingOption)) {\r\n\t\t\t\tselectedProfessionalSubcategoryTitle = matchingOption.title;\r\n\t\t\t}\r\n\t\t});\r\n\t\t// if(payload.professionalCategory === \"Autres\"){\r\n\t\t// selectedProfessionalSubcategoryTitle = \"Autres\";\r\n\t\t// }\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(pension.id)) {\r\n\t\t\tsetShowBasePensionForm(true);\r\n\t\t\tsetShowComplementaryPensionForm(true);\r\n\t\t}\r\n\t}, [selectedCategory, payload.professionalCategory]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Votre retraite principale\" : \"Autre retraite\"}

\r\n\t\t\t\t\t{payload.professionalCategory !== \"\" ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{selectedProfessionalSubcategoryTitle}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
Catégorie sociaux professionelle avant la retraite
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tformRef.current.classList.remove(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\tif (e.target.value === \"none\") {\r\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedCategory(undefined);\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, professionalCategory: \"\", pensionComplementServiceId: \"\", pensionBaseServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tlet category = PensionProfessionalCategoryMapping.find((c) => c.title === e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(category)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedCategory(category);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (category.title !== \"Autres\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet pensionBase = services.find((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[category.options[0].value]) && s.mapping[category.options[0].value].includes(\"Base\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet pensionComplementary = services.find((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[category.options[0].value]) && s.mapping[category.options[0].value].includes(\"Complementary\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t...payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tprofessionalCategory: category.options[0].value,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpensionBaseServiceId: R.isNil(pensionBase) || pensionBase.branches.length > 1 ? \"\" : pensionBase.branches[0].id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpensionComplementServiceId: R.isNil(pensionComplementary) || pensionComplementary.branches.length > 1 ? \"\" : pensionComplementary.branches[0].id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomComplementaryPensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBasePensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomComplementaryPensionForm(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBasePensionForm(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, professionalCategory: \"Autres\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{PensionProfessionalCategoryMapping.map((category, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{!R.isNil(selectedCategory) && selectedCategory.title !== \"Autres\" ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tlet pensionBase = services.find((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[e.target.value]) && s.mapping[e.target.value].includes(\"Base\"));\r\n\t\t\t\t\t\t\t\t\t\t\tlet pensionComplementary = services.filter((s) => !R.isNil(s.mapping) && !R.isNil(s.mapping[e.target.value]) && s.mapping[e.target.value].includes(\"Complementary\"));\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayload({\r\n\t\t\t\t\t\t\t\t\t\t\t\t...payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\tprofessionalCategory: e.target.value,\r\n\t\t\t\t\t\t\t\t\t\t\t\tpensionBaseServiceId: R.isNil(pensionBase) || pensionBase.branches.length > 1 ? \"\" : pensionBase.branches[0].id,\r\n\t\t\t\t\t\t\t\t\t\t\t\tpensionComplementServiceId: pensionComplementary.length > 1 ? \"\" : R.isNil(pensionComplementary[0]) || pensionComplementary[0].branches.length > 1 ? \"\" : pensionComplementary[0].branches[0].id,\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t{selectedCategory.options.map((option, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t{payload.professionalCategory !== \"\" ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{showBasePensionForm || showCustomBasePensionForm ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\tRégime de base\r\n\t\t\t\t\t\t\t\t\t\t\t\t{showComplementaryPensionForm && R.isNil(pension.id) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowBasePensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionBaseServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{payload.professionalCategory === \"Autres\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{showCustomBasePensionForm ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBasePensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, customPensionBase: new OtherActivity() });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRevenir à la liste des régimes \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBasePensionForm(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionBaseServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tformRef.current.classList.remove(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCliquez ici si vous ne trouvez pas votre régime \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{showCustomBasePensionForm ? (\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, customPensionBase: val })} />\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t{showComplementaryPensionForm || showCustomComplementaryPensionForm ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tRégime complémentaire\r\n\t\t\t\t\t\t\t\t\t\t\t{showBasePensionForm && R.isNil(pension.id) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowComplementaryPensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionComplementServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{payload.professionalCategory === \"Autres\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{showCustomComplementaryPensionForm ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomComplementaryPensionForm(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, customPensionBase: new OtherActivity() });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRevenir à la liste des régimes \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomComplementaryPensionForm(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionComplementServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tformRef.current.classList.remove(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCliquez ici si vous ne trouvez pas votre régime \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{showCustomComplementaryPensionForm ? (\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, customPensionComplement: val })} />\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionsComplementary.length == 1 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.target.value === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionComplementServiceId: \"\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet compPension = services.find((s) => s.name === e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, pensionComplementServiceId: compPension.branches[0].id });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionsComplementary.map((pension, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{payload.professionalCategory === \"\" ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.pension), serviceId: \"pension\" + index, payload: payload, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(pension.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tserviceData.id = pension.id;\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(pension.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremovePension(pension);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(pension.id, ConnectionTypes.pension));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { fetchServices } from '../../../../../actions/services-api';\r\nimport { PensionDetails } from './pensionDetails';\r\nimport { ConnectionTypes } from '../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Pension = ({ generateRelocationLetters }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst [pensionState, setPensionState] = useState({\r\n\t\titems: [],\r\n\t\tservices: [],\r\n\t});\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst activityVector = services.serviceData[\"Pension\"];\r\n\tuseEffect(async () => {\r\n\t\tif (R.isEmpty(pensionState.services)) {\r\n\t\t\tlet elements = await dispatch(fetchServices(ConnectionTypes.pension));\r\n\t\t\tsetPensionState({ ...pensionState, items: [...pensionState.items], services: pensionState.services.concat(elements.items) });\r\n\t\t}\r\n\t}, [pensionState]);\r\n\tuseEffect(() => {\r\n\t\tlet pensionsInState = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[ConnectionTypes.pension]) ? services.serviceData[ConnectionTypes.pension] : [];\r\n\t\tif (pensionsInState.length > 0) {\r\n\t\t\tsetPensionState({\r\n\t\t\t\t...pensionState,\r\n\t\t\t\titems: pensionsInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetPensionState({ ...pensionState, items: pensionState.items.concat({}) });\r\n\t\t}\r\n\t}, [services.serviceData, activityVector]);\r\n\r\n\tfunction removePension(pension) {\r\n\t\tsetPensionState({ ...pensionState, items: pensionState.items.filter((a) => a !== pension) });\r\n\t}\r\n\r\n\tif (R.isEmpty(pensionState.services)) {\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Retraite

\r\n\t\t\t{pensionState.items.map((item, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter une autre RETRAITE

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetPensionState({ ...pensionState, items: pensionState.items.concat({}) });\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter une autre RETRAITE\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, FrenchTypes } from \"../../../../../constants/utils/connectionTypes\";\r\nimport AddressInfo from \"../../../../../constants/models/addressInfo\";\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const OtherActivityDetails = ({ index, activity, user, removeActivity, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef(null);\r\n\r\n\tlet initState = {\r\n\t\ttype: FrenchTypes.otherActivity,\r\n\t\tname: \"\",\r\n\t\taddress: new AddressInfo({ addressCountry: \"FR\", streetAddress: \"\", streetAddress2: \"\", postalCode: \"\", addressLocality: \"\" }),\r\n\t\tfunction: \"\",\r\n\t};\r\n\tlet initCollapsedState = true;\r\n\tlet activityName = undefined;\r\n\tif (!R.isNil(activity.id)) {\r\n\t\tinitState = activity.payload;\r\n\t\tinitCollapsedState = false;\r\n\t\tactivityName = activity.payload.name;\r\n\t}\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\tconst [payload, setPayload] = useState(initState);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Autre activité\" : \"Autre activité\"}

\r\n\t\t\t\t\t{!R.isNil(activityName) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{activityName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t

Association, tutelle, curatelle...

\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*
nom de l’activité
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{/*
function professionnel
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, function: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.otherActivity), serviceId: FrenchTypes.otherActivity + index, payload: payload, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.otherActivity));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport {OtherActivityDetails} from './otherActiviteDetails';\r\nimport { ConnectionTypes } from '../../../../../constants/utils/connectionTypes'\r\n\r\nexport const OtherActivity = ({ generateRelocationLetters }) => {\r\n\tconst [activityState, setActivityState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst activityVector = services.serviceData[ConnectionTypes.otherActivity];\r\n\tuseEffect(() => {\r\n\t\tlet activitiesInState = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[ConnectionTypes.otherActivity]) ? services.serviceData[ConnectionTypes.otherActivity] : [];\r\n\t\tif (activitiesInState.length > 0) {\r\n\t\t\tsetActivityState({\r\n\t\t\t\titems: activitiesInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetActivityState({ ...activityState, items: activityState.items.concat({}) });\r\n\t\t}\r\n\t}, [services.serviceData, activityVector]);\r\n\r\n\tfunction removeActivity(activity) {\r\n\t\tsetActivityState({ ...activityState, items: activityState.items.filter((a) => a !== activity) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

autre activité

\r\n\t\t\t{activityState.items.map((activity, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter une autre ACTIVITÉ

\r\n\t\t\t\t JSON.stringify(item) === JSON.stringify({})) !== -1}\r\n\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetActivityState({ ...activityState, items: activityState.items.concat({}) });\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter une autre ACTIVITÉ\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\n//import { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../actions/facilita-api';\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport AddressInfo from \"../../../../../constants/models/addressInfo\";\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const LeaseDetails = ({ index, activity, userId, removeActivity, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst formRef = useRef(null);\r\n\tlet name = undefined;\r\n\tlet initCollapsedState = true;\r\n\tlet initState = {\r\n\t\ttype: \"Locataire\",\r\n\t\tname: \"\",\r\n\t\taddress: new AddressInfo({ addressCountry: \"FR\", streetAddress: \"\", streetAddress2: \"\", postalCode: \"\", addressLocality: \"\" }),\r\n\t};\r\n\tif (!R.isNil(activity.id)) {\r\n\t\tinitState = activity.payload;\r\n\t\tinitCollapsedState = false;\r\n\t\tname = activity.payload.name;\r\n\t}\r\n\tconst [payload, setPayload] = useState({ ...initState });\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(activity.payload)) {\r\n\t\t\tsetPayload({ ...activity.payload });\r\n\t\t}\r\n\r\n\t\tif (!R.isNil(activity.id)) {\r\n\t\t\tsetCollapsed(false);\r\n\t\t}\r\n\t}, [activity]);\r\n\r\n\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Votre bail principal\" : \"Autre bail\"}

\r\n\t\t\t\t\t{!R.isNil(name) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*
nom du propriétaire ou du cabinet
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tconst serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.locataire), serviceId: \"locataire\" + index, payload: { ...payload }, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.locataire));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport {LeaseDetails} from './leaseDetails';\r\nimport { FrenchTypes } from '../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Tenant = ({ generateRelocationLetters }) => {\r\n\tconst [tenantState, setTenantState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst serviceData = R.isNil(services.serviceData[FrenchTypes.locataire]) ? [] : services.serviceData[FrenchTypes.locataire];\r\n\tuseEffect(() => {\r\n\t\tlet leaseInState = serviceData.filter((s) => s.serviceType === FrenchTypes.locataire);\r\n\t\tif (leaseInState.length > 0) {\r\n\t\t\tsetTenantState({\r\n\t\t\t\titems: leaseInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetTenantState({ ...tenantState, items: tenantState.items.concat({}) });\r\n\t\t}\r\n\t}, [services.serviceData]);\r\n\r\n\tfunction removeActivity(locataire) {\r\n\t\tsetTenantState({ ...tenantState, items: tenantState.items.filter((a) => a !== locataire) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Bail

\r\n\t\t\t{tenantState.items.map((activity, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter un autre BAIL

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetTenantState({\r\n\t\t\t\t\t\t\t...tenantState,\r\n\t\t\t\t\t\t\titems: tenantState.items.concat({\r\n\t\t\t\t\t\t\t\ttype: \"Locataire\",\r\n\t\t\t\t\t\t\t\tname: \"\",\r\n\t\t\t\t\t\t\t\taddressStreet1: \"\",\r\n\t\t\t\t\t\t\t\taddressStreet2: \"\",\r\n\t\t\t\t\t\t\t\taddressPostalCode: \"\",\r\n\t\t\t\t\t\t\t\taddressLocality: \"\",\r\n\t\t\t\t\t\t\t\taddressCountry: \"FR\",\r\n\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter un autre BAIL\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\n//import { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../actions/facilita-api';\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport AddressInfo from \"../../../../../constants/models/addressInfo\";\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const EhpadDetails = ({ index, activity, userId, removeActivity, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst formRef = useRef(null);\r\n\tlet name = undefined;\r\n\tlet initCollapsedState = true;\r\n\tlet initState = {\r\n\t\ttype: \"Ehpad\",\r\n\t\tname: \"\",\r\n\t\taddress: new AddressInfo({ addressCountry: \"FR\", streetAddress: \"\", streetAddress2: \"\", postalCode: \"\", addressLocality: \"\" }),\r\n\t};\r\n\tif (!R.isNil(activity.id)) {\r\n\t\tinitState = activity.payload;\r\n\t\tinitCollapsedState = false;\r\n\t\tname = activity.payload.name;\r\n\t}\r\n\tconst [payload, setPayload] = useState({ ...initState });\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(activity.payload)) {\r\n\t\t\tsetPayload({ ...activity.payload });\r\n\t\t}\r\n\r\n\t\tif (!R.isNil(activity.id)) {\r\n\t\t\tsetCollapsed(false);\r\n\t\t}\r\n\t}, [activity]);\r\n\r\n\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Etablissement principal\" : \"Autre établissement\"}

\r\n\t\t\t\t\t{!R.isNil(name) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*
nom du propriétaire ou du cabinet
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tconst serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.ehpad), serviceId: \"ehpad\" + index, payload: { ...payload }, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.ehpad));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport {EhpadDetails} from './ehpadDetails';\r\nimport { FrenchTypes } from '../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Ehpad = ({ generateRelocationLetters }) => {\r\n\tconst [ehpadState, setEhpadState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\r\n\tconst serviceData = R.isNil(services.serviceData[FrenchTypes.ehpad]) ? [] : services.serviceData[FrenchTypes.ehpad];\r\n\tuseEffect(() => {\r\n\t\tlet leaseInState = serviceData.filter((s) => s.serviceType === FrenchTypes.ehpad);\r\n\t\tif (leaseInState.length > 0) {\r\n\t\t\tsetEhpadState({\r\n\t\t\t\titems: leaseInState,\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetEhpadState({ ...ehpadState, items: ehpadState.items.concat({}) });\r\n\t\t}\r\n\t}, [services.serviceData]);\r\n\r\n\tfunction removeActivity(ehpad) {\r\n\t\tsetEhpadState({ ...ehpadState, items: ehpadState.items.filter((a) => a !== ehpad) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Bail

\r\n\t\t\t{ehpadState.items.map((activity, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter un autre BAIL

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetEhpadState({\r\n\t\t\t\t\t\t\t...ehpadState,\r\n\t\t\t\t\t\t\titems: ehpadState.items.concat({\r\n\t\t\t\t\t\t\t\ttype: \"Ehpad\",\r\n\t\t\t\t\t\t\t\tname: \"\",\r\n\t\t\t\t\t\t\t\taddressStreet1: \"\",\r\n\t\t\t\t\t\t\t\taddressStreet2: \"\",\r\n\t\t\t\t\t\t\t\taddressPostalCode: \"\",\r\n\t\t\t\t\t\t\t\taddressLocality: \"\",\r\n\t\t\t\t\t\t\t\taddressCountry: \"FR\",\r\n\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter un autre BAIL\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import {ConnectionTypes} from '../../../../constants/utils/connectionTypes';\r\nimport * as R from 'ramda';\r\n\r\nexport function getProgress(serviceData, connectionType){\r\n if (connectionType === ConnectionTypes.bank){\r\n let bankData = serviceData[\"Bank\"];\r\n if (!R.isNil(bankData) && bankData.length > 0){\r\n return 100;\r\n }\r\n }\r\n else{\r\n if (Object.keys(serviceData).indexOf(connectionType) > -1 && serviceData[connectionType].length > 0){\r\n return 100;\r\n }\r\n }\r\n return 0;\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { deleteService } from '../../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {ConnectionTypes} from '../../../../constants/utils/connectionTypes';\r\nimport {getProgress} from './calculateProgress';\r\n\r\nexport const CheckboxCard = ({ labels, isSelected, topRef, isSocialNetwork, isInsurance, selectedServices, setSelectedServices, service }) => {\r\n const dispatch = useDispatch();\r\n const services = useSelector(state => state.services);\r\n const user = useSelector(state => state.user);\r\n // const mandatory = [ConnectionTypes.notary, ConnectionTypes.socialSecurity, ConnectionTypes.bank, ConnectionTypes.mutual, ConnectionTypes.homeInsurance, ConnectionTypes.waterSupplier, ConnectionTypes.electricityProvider, ConnectionTypes.mobilePhone, ConnectionTypes.taxes];\r\n\r\n let progress = getProgress(services.serviceData, service.connectionType);\r\n\r\n function AddOrRemove(option) {\r\n let optionIsSocNet = option.connectionType === ConnectionTypes.socialNetworks;\r\n let optionIsVehicleIns = option.connectionType === ConnectionTypes.insurance;\r\n\r\n let tmpSelected = JSON.parse(JSON.stringify(selectedServices));\r\n if (tmpSelected.findIndex(o => optionIsSocNet ? isSocialNetwork(o.connectionType) : optionIsVehicleIns ? isInsurance(o.connectionType): o.connectionType === option.connectionType) !== -1) {\r\n // if (!mandatory.includes(option.connectionType)) {\r\n tmpSelected = tmpSelected.filter(o => optionIsSocNet ? !isSocialNetwork(o.connectionType) : optionIsVehicleIns ? !isInsurance(o.connectionType) : o.connectionType !== option.connectionType);\r\n let servicesToDelete = user.services.filter(sv => optionIsSocNet ? isSocialNetwork(sv.connectionType) : optionIsVehicleIns ? isInsurance(sv.connectionType) :\r\n sv.connectionType === option.connectionType);\r\n\r\n servicesToDelete.forEach(serviceToDelete => {\r\n dispatch(deleteService(user.user, serviceToDelete));\r\n });\r\n if (!R.isNil(topRef) && !R.isNil(topRef.current)) {\r\n topRef.current.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n }\r\n // }\r\n }\r\n setSelectedServices(tmpSelected);\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n {service.title}\r\n
\r\n {\r\n isSelected ?\r\n
\r\n
\r\n

{service.title}

\r\n
\r\n AddOrRemove(service)}>\r\n {/* */}\r\n {/*
    */}\r\n {/*
  • */}\r\n {/*
  • */}\r\n {/*
*/}\r\n
\r\n
\r\n
\r\n :\r\n
\r\n
\r\n

{service.title}

\r\n {/* */}\r\n
\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n }\r\n
\r\n {\r\n isSelected ?\r\n
\r\n {\r\n !R.isNil(labels) && labels.length > 0 ?\r\n
\r\n {\r\n !R.isNil(labels) && labels.length > 0 && labels.map((label, index) => {\r\n return (
{label.name}
)\r\n })\r\n }\r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n \r\n )\r\n}","import React, { useEffect, useRef, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\nimport { fetchServiceDataForServiceType } from \"../../../../actions/services-api\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { CheckboxCard } from \"./checkboxCard\";\r\nimport { ConnectionTypes, isSocialNetwork } from \"../../../../constants/utils/connectionTypes\";\r\n\r\nexport const ServiceNavbar = ({ selectedService, setSelectedService, personnalOptions, commonOptions, otherOption }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst bottomRef = useRef(null);\r\n\tconst topRef = useRef(null);\r\n\tconst selectedServiceRef = useRef(null);\r\n\tconst [selectedServices, setSelectedServices] = useState([]);\r\n\tconst isFirefox = typeof InstallTrigger !== \"undefined\";\r\n\r\n\tconst isInsurance = (str) => [ConnectionTypes.scooter, ConnectionTypes.moto, ConnectionTypes.bateau, ConnectionTypes.voitureAssurance, ConnectionTypes.insurance].includes(str);\r\n\r\n\t// Update selectedServices when user.services changes\r\n\tuseEffect(() => {\r\n\t\tif (user?.services?.length > 0) {\r\n\t\t\tsetSelectedServices(user.services);\r\n\r\n\t\t\t// // Update selectedService if it is not in user.services\r\n\t\t\t// if (selectedService && !user.services.some((s) => s.connectionType === selectedService || isSocialNetwork(s.connectionType))) {\r\n\t\t\t// \tconst serviceToBeSet = R.sortWith([R.ascend(R.prop(\"title\"))])(\r\n\t\t\t// \t\tObject.entries(\r\n\t\t\t// \t\t\t[...commonOptions, ...personnalOptions, ...otherOption].filter((sr) =>\r\n\t\t\t// \t\t\t\tuser.services.some((r) => (isSocialNetwork(r.connectionType) ? ConnectionTypes.socialNetworks === sr.connectionType : isInsurance(r.connectionType) ? ConnectionTypes.insurance === sr.connectionType : r.connectionType === sr.connectionType))\r\n\t\t\t// \t\t\t)\r\n\t\t\t// \t\t).map((entry) => entry[1])\r\n\t\t\t// \t)[0];\r\n\r\n\t\t\t// \tsetSelectedService(isSocialNetwork(serviceToBeSet.connectionType) ? ConnectionTypes.socialNetworks : isInsurance(serviceToBeSet.connectionType) ? ConnectionTypes.insurance : serviceToBeSet.connectionType);\r\n\t\t\t// }\r\n\t\t}\r\n\t}, [user.services, selectedService, commonOptions, personnalOptions, otherOption]);\r\n\r\n\t// Fetch service data when selectedService changes\r\n\tuseEffect(() => {\r\n\t\tif (selectedService) {\r\n\t\t\tdispatch(fetchServiceDataForServiceType(selectedService, \"relocation\"));\r\n\t\t}\r\n\t}, [selectedService, dispatch]);\r\n\r\n\t// Scroll to selectedService when it changes\r\n\tuseEffect(() => {\r\n\t\tif (selectedServiceRef.current) {\r\n\t\t\tselectedServiceRef.current.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\r\n\t\t}\r\n\t}, [selectedService]);\r\n\r\n\tconst handleScrollToTop = () => {\r\n\t\tif (topRef.current) {\r\n\t\t\ttopRef.current.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleScrollToBottom = () => {\r\n\t\tif (bottomRef.current) {\r\n\t\t\tbottomRef.current.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};\r\n","import AddressInfo from './addressInfo';\r\n\r\nexport default function Branch(data) {\r\n let branch = data || {};\r\n this.id = branch.id;\r\n this.name = branch.name;\r\n this.description = branch.description;\r\n this.address = new AddressInfo(branch.address);\r\n this.geo = branch.geo;\r\n this.url = branch.url;\r\n this.image = branch.image;\r\n this.email = branch.email;\r\n this.insuranceType = branch.insuranceType !== undefined ? branch.insuranceType : [];\r\n}","import AggregateRating from './aggregateRating';\r\nimport Branch from './branch';\r\nimport removeAccents from 'remove-accents';\r\n\r\nexport default function ServiceInfo(data){\r\n let service = data || {};\r\n this.id = service.id;\r\n this.defaultId = service.defaultId;\r\n this.name = service.name;\r\n this.nameNoAccents = removeAccents(service.name).toLowerCase().replace(/\\s/gi, \"\");\r\n this.description = service.description;\r\n this.aggregateRating = new AggregateRating(service.aggregateRating);\r\n this.branches = service.branches !== undefined && service.branches.length > 0 ? service.branches.map(b => new Branch(b)): service.sportsClubs !== undefined && service.sportsClubs.length >0 ? service.sportsClubs.map(b => new Branch(b)) : [];\r\n}","import React, { useEffect } from 'react';\r\nimport { AsyncPaginate } from 'react-select-async-paginate';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport { fetchServices } from '../../../../../actions/services-api';\r\nimport ServiceInfo from '../../../../../constants/models/serviceInfo';\r\nimport { ConnectionTypes } from '../../../../../constants/utils/connectionTypes';\r\n\r\nexport const SearchService = ({ connectionType, searchPage, setSearchPage, searchFilter, setSearchFilter, setCurrentPage, updateLoadedItems, setLoadMore }) => {\r\n const dispatch = useDispatch();\r\n let selectSearch = '';\r\n\r\n const sleep = ms =>\r\n new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve();\r\n }, ms);\r\n });\r\n\r\n async function searchAreEqual(search) {\r\n await sleep(1000);\r\n return search === selectSearch;\r\n }\r\n\r\n\r\n\r\n async function loadOptions(search, loadedOptions, { page }) {\r\n let response = [];\r\n let responseJSON = [];\r\n let hasMore = false;\r\n if (search === '' || R.isNil(search) ) {\r\n response = await dispatch(fetchServices(connectionType, page));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n hasMore = responseJSON.length === 100;\r\n }\r\n else if ((search !== '' && !R.isNil(search))) {\r\n let areEqual = await searchAreEqual(search);\r\n if (areEqual) {\r\n response = await dispatch(fetchServices(connectionType, selectSearch !== search ? 0 : searchPage, search));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n if (responseJSON.length === 100) {\r\n setSearchPage(searchPage + 1);\r\n hasMore = true;\r\n }\r\n else {\r\n hasMore = false;\r\n }\r\n }\r\n else {\r\n hasMore = true;\r\n }\r\n }\r\n updateLoadedItems(response);\r\n let filteredOptions = responseJSON.filter(s => s.branches.length > 0).length > 0 && responseJSON.filter(s => s.branches.length > 0).map(sr =>\r\n sr.branches.map(s => {\r\n let city = !R.isNil(s.address.addressLocality) && s.address.addressLocality !== '' ? s.address.addressLocality[0].toUpperCase() + s.address.addressLocality.toLowerCase().slice(1) : '';\r\n let val = s.name + (city !== '' ? ' (' + (!R.isNil(s.address.postalCode) ? s.address.postalCode + ' ' : '') + city + ')' : '');\r\n if(connectionType === ConnectionTypes.waterSupplier){\r\n val = `${s.name} (${sr.name})`;\r\n }\r\n return {\r\n label: val,\r\n value: val\r\n };\r\n }));\r\n filteredOptions = !R.isNil(filteredOptions) && filteredOptions.length > 0 ? [].concat.apply([], filteredOptions) : [];\r\n\r\n if ((R.isNil(search) || search === '') && !R.isNil(page)) {\r\n setCurrentPage((parseInt(page) + 1));\r\n }\r\n if ((R.isNil(search) || search === '') && response.length === 100) {\r\n setLoadMore(true);\r\n }\r\n else if ((R.isNil(search) || search === '') && response.length < 100) {\r\n setLoadMore(false);\r\n }\r\n return {\r\n options: filteredOptions,\r\n hasMore: hasMore,\r\n additional: {\r\n page: !R.isNil(search) && search !== '' ? searchPage : page + 1,\r\n }\r\n };\r\n }\r\n\r\n useEffect(() => {\r\n loadOptions(\"\", null, 0);\r\n \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [connectionType]);\r\n\r\n return (\r\n { setSearchFilter(option.map(o => { return { label: o.value, value: o.value }; })); }}\r\n isMulti={true}\r\n cacheUniqs={[connectionType]}\r\n additional={{ page: 0 }}\r\n onInputChange={(searchInput) => {\r\n selectSearch = searchInput;\r\n if (!searchInput.includes(selectSearch)) {\r\n setSearchPage(0);\r\n }\r\n }}\r\n placeholder=\"Rechercher...\"\r\n loadingMessage={() => \"Chargement...\"}\r\n noOptionsMessage={() => \"Aucun résultat\"}\r\n\r\n />\r\n );\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport Generic from \"../../../../../constants/models/servicePayloads/generic\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as Loadings from \"../../../../../constants/loadings/service\";\r\n\r\nexport const Box = ({ isCollapsed, setServiceOnFocus, branch, contractReference, setContractReference, inputOnFocus, connectionType, boxIndex, setSearchFilter, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst inputRef = useRef(null);\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [payloads, setPayloads] = useState({ items: [{ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }] });\r\n\tconst [toDelete, setToDelete] = useState([]);\r\n\tconst [autoFocus, setAutoFocus] = useState(false);\r\n\r\n\tlet addressName =\r\n\t\t(!R.isNil(branch.address.streetAddress) ? branch.address.streetAddress : \"\") +\r\n\t\t(!R.isNil(branch.address.streetAddress2) ? \" \" + branch.address.streetAddress2 : \"\") +\r\n\t\t(!R.isNil(branch.address.streetAddress3) ? \" \" + branch.address.streetAddress3 : \"\") +\r\n\t\t(!R.isNil(branch.address.postalCode) && !R.isNil(branch.address.addressLocality) ? \",\" + branch.address.postalCode + \" \" + branch.address.addressLocality : \"\") +\r\n\t\t(!R.isNil(branch.address.addressCountry) ? \", \" + countries.getName(branch.address.addressCountry, \"fr\", { select: \"official\" }) : \"\");\r\n\tfunction loadReferences() {\r\n\t\tlet allServicesWithSameBranch = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) ? services.serviceData[connectionType].filter((b) => b.serviceId === branch.id && b.lifeEvent != 0) : [];\r\n\t\tlet tmpPayloads = { items: payloads.items.filter((i) => toDelete.findIndex((d) => d === i.id) === -1) };\r\n\t\tallServicesWithSameBranch.forEach((br) => {\r\n\t\t\tif (tmpPayloads.items.findIndex((tmp) => tmp.id === br.id) === -1) {\r\n\t\t\t\ttmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n\t\t\tif (tmpPayloads.items[0].payload.reference === \"\") {\r\n\t\t\t\ttmpPayloads.items.splice(0, 1);\r\n\t\t\t}\r\n\t\t\tsetPayloads(tmpPayloads);\r\n\t\t}\r\n\t\tsetToDelete([]);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [!R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType], !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length]);\r\n\r\n\tlet fieldName = \"Référence\";\r\n\tif (connectionType === ConnectionTypes.socialNetworks) {\r\n\t\tfieldName = \"Nom d'utilisateur, adresse e-mail ou téléphone\";\r\n\t} else if (connectionType === ConnectionTypes.homeService) {\r\n\t\tfieldName = \"Référence ou nº CESU\";\r\n\t} else if (connectionType === ConnectionTypes.multimedia) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.technology) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.music) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.poleEmploi) {\r\n\t\tfieldName = \"Numéro d'adhérent\";\r\n\t} else if (connectionType === ConnectionTypes.socialSecurity) {\r\n\t\tfieldName = \"Numéro de Sécurité Sociale\";\r\n\t} else if (connectionType === ConnectionTypes.caf) {\r\n\t\tfieldName = \"Numéro de Sécurité Sociale\";\r\n\t} else if (connectionType === ConnectionTypes.taxes) {\r\n\t\tfieldName = \"Numéro fiscal\";\r\n\t}\r\n\r\n\tif (isCollapsed) {\r\n\t\treturn (\r\n\t\t\t {\r\n\t\t\t\t\tsetServiceOnFocus(branch.id);\r\n\t\t\t\t}}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{branch.name}

\r\n\t\t\t\t\t{!R.isNil(branch.address.addressLocality) && branch.address.addressLocality.trim() !== \"\" ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{branch.address.addressLocality === \"Invalid\" ? \"Lien de connexion\" : branch.address.addressLocality}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

{connectionType === ConnectionTypes.socialSecurity ? \"CPAM\" : connectionType === ConnectionTypes.poleEmploi ? \"Pôle Emploi\" : branch.name}

\r\n\t\t\t\t{addressName.indexOf(\"Pas d'adresse\") > -1 || addressName.indexOf(\"00000\") > -1 ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/**/}\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t
\r\n\t\t\t\t) : !R.isNil(addressName) && addressName.trim() !== \"\" ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{addressName}\r\n\t\t\t\t\t
\r\n\t\t\t\t) : (\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{connectionType === ConnectionTypes.notary\r\n\t\t\t\t\t\t? \"\"\r\n\t\t\t\t\t\t: payloads.items.map((br, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: e.target.value, comment: tmpPayload[payloadIndex].payload.comment }) };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: e.target.value, comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Les cases commentaires sont personnelles (ne seront pas visibles par le référent), elles vous permettent d'ajouter des notes à vos services.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: tmpPayload[payloadIndex].payload.reference, comment: e.target.value }) };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: e.target.value }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{(index === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t })}\r\n\t\t\t\t\t{connectionType === ConnectionTypes.notary ? (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: payloads.items.concat({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }) });\r\n\t\t\t\t\t\t\t\tsetAutoFocus(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tAjouter une autre référence\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tif (connectionType !== ConnectionTypes.notary) {\r\n\t\t\t\t\t\t\t\tinputRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\tif (inputRef.current.checkValidity() || (payloads.items.length === 1 && payloads.items[0].payload.reference !== \"\")) {\r\n\t\t\t\t\t\t\t\t\tpayloads.items.length > 0 &&\r\n\t\t\t\t\t\t\t\t\t\tpayloads.items.forEach((payload) => {\r\n\t\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: branch.id, payload: payload.payload, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(payload.id) || payload.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tserviceData.id = payload.id;\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tsetPayloads({ payloads, items: payloads.items.filter((i) => i.id !== \"\") });\r\n\r\n\t\t\t\t\t\t\t\t\tsetToDelete([]);\r\n\t\t\t\t\t\t\t\t\tsetSearchFilter([]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t//Notaire\r\n\t\t\t\t\t\t\t\tlet tmpContracts = JSON.parse(JSON.stringify(contractReference));\r\n\t\t\t\t\t\t\t\ttmpContracts[branch.id] = branch.id;\r\n\t\t\t\t\t\t\t\tsetContractReference(tmpContracts);\r\n\r\n\t\t\t\t\t\t\t\tlet serviceDataIndex = !R.isNil(services.serviceData[connectionType]) ? services.serviceData[connectionType].findIndex((s) => s.serviceId === branch.id) : -1;\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: branch.id, payload: new Generic({ reference: branch.id }), lifeEvent: 1 }, );\r\n\t\t\t\t\t\t\t\tif (serviceDataIndex === -1) {\r\n\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t{!R.isNil(contractReference[branch.id]) && contractReference[branch.id] !== \"\" && connectionType === ConnectionTypes.notary ? (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t//Notary\r\n\t\t\t\t\t\t\t\tlet tmpContracts = JSON.parse(JSON.stringify(contractReference));\r\n\t\t\t\t\t\t\t\ttmpContracts[branch.id] = \"\";\r\n\t\t\t\t\t\t\t\tsetContractReference(tmpContracts);\r\n\r\n\t\t\t\t\t\t\t\tlet serviceDataIndex = !R.isNil(services.serviceData[connectionType]) ? services.serviceData[connectionType].findIndex((s) => s.serviceId === branch.id) : -1;\r\n\t\t\t\t\t\t\t\tif (serviceDataIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(services.serviceData[connectionType][serviceDataIndex].id, connectionType));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\n\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport Generic from \"../../../../../constants/models/servicePayloads/generic\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as Loadings from \"../../../../../constants/loadings/service\";\r\nimport { RegexFields } from \"../../../../../constants/utils/regexFields\";\r\n\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const CustomBox = ({ customServiceData, inputOnFocus, connectionType, boxIndex, setShowCustomBox, isActive, setSearchFilter, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst customFormRef = useRef(null);\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [payloads, setPayloads] = useState({ items: [{ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }] });\r\n\tconst [toDelete, setToDelete] = useState([]);\r\n\tconst [autoFocus, setAutoFocus] = useState(false);\r\n\tconst [isEditing, setIsEditing] = useState(R.isNil(customServiceData) ? true : false);\r\n\r\n\tfunction loadReferences() {\r\n\t\tlet allServicesWithSameBranch = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && !R.isNil(customServiceData) ? services.serviceData[connectionType].filter((b) => b.serviceId === customServiceData.serviceId) : [];\r\n\t\tlet tmpPayloads = { items: payloads.items.filter((i) => toDelete.findIndex((d) => d === i.id) === -1) };\r\n\t\tallServicesWithSameBranch.forEach((br) => {\r\n\t\t\tif (tmpPayloads.items.findIndex((tmp) => tmp.id === br.id) === -1) {\r\n\t\t\t\ttmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n\t\t\tif (tmpPayloads.items[0].payload.reference === \"\") {\r\n\t\t\t\ttmpPayloads.items.splice(0, 1);\r\n\t\t\t}\r\n\t\t\tsetPayloads(tmpPayloads);\r\n\t\t}\r\n\t\tsetToDelete([]);\r\n\t}\r\n\r\n\tlet customServiceDetails = R.isNil(customServiceData) ? null : customServiceData.customServiceDetails;\r\n\tif (R.isNil(customServiceDetails)) {\r\n\t\tcustomServiceDetails = {\r\n\t\t\tname: \"\",\r\n\t\t\taddress: {\r\n\t\t\t\tstreetAddress: \"\",\r\n\t\t\t\tstreetAddress2: \"\",\r\n\t\t\t\tpostalCode: \"\",\r\n\t\t\t\taddressLocality: \"\",\r\n\t\t\t\taddressCountry: \"FR\",\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n\tconst [serviceDetails, setServiceDetails] = useState(customServiceDetails);\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [!R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType], !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length]);\r\n\r\n\tlet addressName =\r\n\t\t(!R.isNil(serviceDetails.address.streetAddress) ? serviceDetails.address.streetAddress : \"\") +\r\n\t\t(!R.isNil(serviceDetails.address.streetAddress2) ? \" \" + serviceDetails.address.streetAddress2 : \"\") +\r\n\t\t(!R.isNil(serviceDetails.address.streetAddress3) ? \" \" + serviceDetails.address.streetAddress3 : \"\") +\r\n\t\t(!R.isNil(serviceDetails.address.postalCode) && !R.isNil(serviceDetails.address.addressLocality) ? \",\" + serviceDetails.address.postalCode + \" \" + serviceDetails.address.addressLocality : \"\") +\r\n\t\t(!R.isNil(serviceDetails.address.addressCountry) ? \", \" + countries.getName(serviceDetails.address.addressCountry, \"fr\", { select: \"official\" }) : \"\");\r\n\r\n\tlet fieldName = \"Référence\";\r\n\tif (connectionType === ConnectionTypes.socialNetworks) {\r\n\t\tfieldName = \"Nom d'utilisateur, adresse e-mail ou téléphone\";\r\n\t} else if (connectionType === ConnectionTypes.homeService) {\r\n\t\tfieldName = \"Référence ou nº CESU\";\r\n\t} else if (connectionType === ConnectionTypes.multimedia) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.technology) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.music) {\r\n\t\tfieldName = \"Référence ou adresse e-mail\";\r\n\t} else if (connectionType === ConnectionTypes.poleEmploi) {\r\n\t\tfieldName = \"Numéro d'adhérent\";\r\n\t} else if (connectionType === ConnectionTypes.socialSecurity) {\r\n\t\tfieldName = \"Numéro de Sécurité Sociale\";\r\n\t} else if (connectionType === ConnectionTypes.caf) {\r\n\t\tfieldName = \"Numéro de Sécurité Sociale\";\r\n\t} else if (connectionType === ConnectionTypes.taxes) {\r\n\t\tfieldName = \"Numéro fiscal\";\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{isEditing ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, streetAddress: e.target.value } })}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={serviceDetails.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\tpostalCodePattern={serviceDetails.address.addressCountry === \"FR\" ? RegexFields.frenchZipCode : undefined}\r\n\t\t\t\t\t\t\t\t\tcityPattern={\".*S+.*\"}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, addressLocality: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t) : (\r\n\t\t\t\t
\r\n\t\t\t\t\t

{serviceDetails.name}

\r\n\t\t\t\t\t{!R.isNil(addressName) && addressName.trim() !== \"\" ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{addressName}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t)}\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{connectionType === ConnectionTypes.notary\r\n\t\t\t\t\t\t? \"\"\r\n\t\t\t\t\t\t: payloads.items.map((br, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: e.target.value, comment: tmpPayload[payloadIndex].payload.comment }) };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: e.target.value, comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Les cases commentaires sont personnelles (ne seront pas visibles par le référent), elles vous permettent d'ajouter des notes à vos services.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: tmpPayload[payloadIndex].payload.reference, comment: e.target.value }) };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: e.target.value }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{(index === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t })}\r\n\t\t\t\t\t{connectionType === ConnectionTypes.notary ? (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: payloads.items.concat({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }) });\r\n\t\t\t\t\t\t\t\tsetAutoFocus(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tAjouter une autre référence\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\r\n\t\t\t\t{isEditing ?
: \"\"}\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tif (connectionType !== ConnectionTypes.notary) {\r\n\t\t\t\t\t\t\t\tcustomFormRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\tif (customFormRef.current.checkValidity() || (payloads.items.length === 1 && payloads.items[0].payload.reference === \"\")) {\r\n\t\t\t\t\t\t\t\t\tpayloads.items.length > 0 &&\r\n\t\t\t\t\t\t\t\t\t\tpayloads.items.forEach((payload) => {\r\n\t\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: \"custom\", customServiceDetails: serviceDetails, payload: payload.payload, lifeEvent: 1 });\r\n\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(customServiceData) && !R.isNil(customServiceData.serviceId) && customServiceData.serviceId !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tserviceData.serviceId = customServiceData.serviceId;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(payload.id) || payload.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tserviceData.id = payload.id;\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tsetPayloads({ payloads, items: payloads.items.filter((i) => i.id !== \"\") });\r\n\t\t\t\t\t\t\t\t\tsetToDelete([]);\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(setSearchFilter)) {\r\n\t\t\t\t\t\t\t\t\t\tsetSearchFilter([]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t//Notaire\r\n\t\t\t\t\t\t\t\tif (R.isNil(customServiceData) && (payloads.items[0].payload.reference === \"\" || R.isNil(payloads.items[0].payload.reference))) {\r\n\t\t\t\t\t\t\t\t\tpayloads.items[0].payload.reference = \"custom\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: \"custom\", customServiceDetails: serviceDetails, payload: payloads.items[0].payload, lifeEvent: payloads.items[0].payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\tif (R.isNil(customServiceData)) {\r\n\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tserviceData.id = customServiceData.id;\r\n\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!R.isNil(setSearchFilter)) {\r\n\t\t\t\t\t\t\t\t\tsetSearchFilter([]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tif (R.isNil(customServiceData)) {\r\n\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tdispatch(deleteServiceData(customServiceData.id, connectionType));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tsetIsEditing(!isEditing);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport removeAccents from 'remove-accents';\r\nimport { fetchServices, getServiceById } from '../../../../../actions/services-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { SearchService } from './searchService';\r\nimport { Box } from './box';\r\nimport { CustomBox } from './customBox';\r\nimport ServiceInfo from '../../../../../constants/models/serviceInfo';\r\nimport { ConnectionTypes } from '../../../../../constants/utils/connectionTypes';\r\nimport { LoadingState } from '../../../../../_common/loadingState';\r\n\r\nexport const DefaultService = ({ connectionType, serviceTitle, serviceDetailedDescription, generateRelocationLetters }) => {\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst dispatch = useDispatch();\r\n\tconst servicesRef = useRef(null);\r\n\tconst [serviceOnFocus, setServiceOnFocus] = useState(undefined);\r\n\tconst [searchPage, setSearchPage] = useState(0);\r\n\tconst [currentPage, setCurrentPage] = useState(1);\r\n\tconst [resetPage, setResetPage] = useState(false);\r\n\tconst [contractReference, setContractReference] = useState({});\r\n\tconst [searchFilter, setSearchFilter] = useState([]);\r\n\tconst [loadedServices, setLoadedServices] = useState([]);\r\n\tconst [canFillContract, setCanFillContract] = useState(false);\r\n\tconst [extraItems, setExtraItems] = useState(0);\r\n\tconst [showCustomBox, setShowCustomBox] = useState(false);\r\n\tconst [loadMore, setLoadMore] = useState(false);\r\n\tconst [currentConnectionType, setCurrentConnectionType] = useState(connectionType);\r\n\r\n\tfunction updateLoadedItems(data) {\r\n\t\tif (!R.isNil(data.items) && data.items.length > 0) {\r\n\t\t\tif (currentConnectionType != connectionType) {\r\n\t\t\t\tsetLoadedServices(data.items.map((e) => new ServiceInfo(e)));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tlet tmpLoadedServices = [...loadedServices];\r\n\t\t\tdata.items.forEach((d) => {\r\n\t\t\t\tif (tmpLoadedServices.findIndex((i) => i.name === d.name) === -1) {\r\n\t\t\t\t\ttmpLoadedServices.push(new ServiceInfo(d));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tsetLoadedServices(tmpLoadedServices);\r\n\t\t}\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tsetContractReference({});\r\n\t\tsetServiceOnFocus({});\r\n\t\tsetSearchFilter([]);\r\n\t\tsetSearchPage(0);\r\n\t\tsetCurrentPage(1);\r\n\t\tsetResetPage(true);\r\n\r\n\t\tsetCanFillContract(false);\r\n\t\tsetExtraItems(0);\r\n\t\tsetShowCustomBox(false);\r\n\t\tsetLoadedServices([]);\r\n\t\tif (!R.isNil(connectionType)) {\r\n\t\t\tsetCurrentConnectionType(connectionType);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [connectionType]);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetTimeout(() => {\r\n\t\t\tsetResetPage(false);\r\n\t\t}, 1);\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [resetPage]);\r\n\r\n\tuseEffect(() => {\r\n\t\tdocument.addEventListener(\"click\", handleClickOutside, true);\r\n\t\treturn () => {\r\n\t\t\tdocument.removeEventListener(\"click\", handleClickOutside, true);\r\n\t\t};\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t});\r\n\r\n\tasync function loadNotVisibleUserServices() {\r\n\t\tlet extra = 0;\r\n\t\tfor (const serviceData of services.serviceData[connectionType]) {\r\n\t\t\tif (serviceData.serviceId.startsWith(\"Custom\")) continue;\r\n\t\t\tif (loadedServices.find((service) => service.branches.findIndex((b) => b.id === serviceData.serviceId) !== -1) === undefined) {\r\n\t\t\t\tlet response = await dispatch(getServiceById(connectionType, serviceData.serviceId));\r\n\r\n\t\t\t\tif (Array.isArray(response) === false) {\r\n\t\t\t\t\tresponse = { items: [response] };\r\n\t\t\t\t}\r\n\t\t\t\tupdateLoadedItems(response);\r\n\t\t\t\textra++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetExtraItems(extra);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (canFillContract === true) {\r\n\t\t\tlet tmpContracts = {};\r\n\t\t\tif (!R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType])) {\r\n\t\t\t\tservices.serviceData[connectionType].forEach((serviceData) => {\r\n\t\t\t\t\ttmpContracts[serviceData.serviceId] = serviceData.payload.reference;\r\n\t\t\t\t\t// switch (connectionType){\r\n\t\t\t\t\t// case ConnectionTypes.insurance:\r\n\t\t\t\t\t// if (R.isNil(tmpContracts[serviceData.serviceId])){\r\n\t\t\t\t\t// tmpContracts[serviceData.serviceId] = [];\r\n\t\t\t\t\t// }\r\n\t\t\t\t\t// serviceData.payload.insuredItems.forEach(sd => {\r\n\t\t\t\t\t// if (sd !== 'boat' && sd !== 'car' && sd !== 'moto' && sd !== 'scooter'){\r\n\t\t\t\t\t// tmpContracts[serviceData.serviceId][\"other\"] = sd;\r\n\t\t\t\t\t// }\r\n\t\t\t\t\t// else {\r\n\t\t\t\t\t// tmpContracts[serviceData.serviceId].push(sd);\r\n\t\t\t\t\t// }\r\n\t\t\t\t\t// });\r\n\t\t\t\t\t// break;\r\n\t\t\t\t\t// default:\r\n\t\t\t\t\t// tmpContracts[serviceData.serviceId] = serviceData.payload.reference;\r\n\t\t\t\t\t// break;\r\n\t\t\t\t\t// }\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tsetContractReference(tmpContracts);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [canFillContract, !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length]);\r\n\r\n\tconst handleClickOutside = (event) => {\r\n\t\tif (servicesRef.current && !servicesRef.current.contains(event.target)) {\r\n\t\t\tsetServiceOnFocus(undefined);\r\n\t\t\tsetSearchPage(0);\r\n\t\t}\r\n\t};\r\n\r\n\tif (canFillContract === false && !R.isNil(loadedServices) && loadedServices.length > 0 && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType])) {\r\n\t\tloadNotVisibleUserServices();\r\n\t\tsetCanFillContract(true);\r\n\t}\r\n\tif (canFillContract === false && !R.isNil(services.serviceData) && R.isNil(services.serviceData[connectionType])) {\r\n\t\tsetCanFillContract(true);\r\n\t}\r\n\r\n\tlet allBranches = [];\r\n\tif (!R.isNil(loadedServices) && canFillContract === true) {\r\n\t\tR.sortWith([R.ascend(R.prop(\"nameNoAccents\"))])(loadedServices)\r\n\t\t\t.filter((s) => s.branches.length !== 0)\r\n\t\t\t.forEach((s) => {\r\n\t\t\t\ts.branches.forEach((branch) => {\r\n\t\t\t\t\tlet a = R.isNil(branch.name) ? \"\" : branch.name.toLowerCase();\r\n\t\t\t\t\tlet b = currentConnectionType !== ConnectionTypes.waterSupplier ?\r\n R.isNil(branch.address.addressLocality) ? '' : (!R.isNil(branch.address.postalCode) ? branch.address.postalCode + ' ' : '') + branch.address.addressLocality.toLowerCase()\r\n :\r\n s.name.toLowerCase()\r\n\t\t\t\t\tlet c = R.isNil(branch.address.streetAddress) ? \"\" : branch.address.streetAddress.toLowerCase();\r\n\t\t\t\t\tlet normalizedNameAndAddress = removeAccents(a).replace(/\\s/gi, \"\") + \"(\" + removeAccents(b).replace(/\\s/gi, \"\") + \")\" + removeAccents(c).replace(/\\s/gi, \"\");\r\n\t\t\t\t\tlet hide = searchFilter.length > 0 ? true : false;\r\n\t\t\t\t\tsearchFilter.length > 0 &&\r\n\t\t\t\t\t\tsearchFilter.forEach((f) => {\r\n\t\t\t\t\t\t\tif (normalizedNameAndAddress.includes(removeAccents(f.value.toLowerCase()).replace(/\\s/gi, \"\")) && (!R.isNil(f.address) ? normalizedNameAndAddress.includes(removeAccents(f.address.toLowerCase()).replace(/\\s/gi, \"\")) : true)) {\r\n\t\t\t\t\t\t\t\thide = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\tif (hide !== true) {\r\n\t\t\t\t\t\tlet inputOnFocus = branch.id === serviceOnFocus;\r\n\t\t\t\t\t\tlet withServiceData = !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].findIndex((s) => s.serviceId === branch.id) !== -1;\r\n\t\t\t\t\t\tlet isCollapsed = !(inputOnFocus || (!R.isNil(contractReference[branch.id]) && (connectionType === ConnectionTypes.insurance ? contractReference[branch.id].length > 0 : contractReference[branch.id] !== \"\"))) && !withServiceData;\r\n\t\t\t\t\t\tallBranches.push({ isCollapsed: isCollapsed, branch: branch, inputOnFocus: inputOnFocus, withServiceData: withServiceData });\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tlet customServiceDatas = null;\r\n\tlet customServiceIdList = [];\r\n\tif (!R.isNil(services.serviceData[connectionType])) {\r\n\t\tservices.serviceData[connectionType]\r\n\t\t\t.filter((s) => !R.isNil(s.serviceId) && s.serviceId !== \"\" && s.serviceId.toLowerCase().startsWith(\"custom\"))\r\n\t\t\t.forEach((srv) => {\r\n\t\t\t\tif (customServiceDatas === null) {\r\n\t\t\t\t\tcustomServiceDatas = [];\r\n\t\t\t\t}\r\n\t\t\t\tif (!customServiceIdList.includes(srv.serviceId)) {\r\n\t\t\t\t\tcustomServiceDatas.push(srv);\r\n\t\t\t\t\tcustomServiceIdList.push(srv.serviceId);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

{serviceTitle}

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{serviceTitle ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
{serviceTitle}
\r\n\t\t\t\t\t\t\t\t

{serviceDetailedDescription}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetShowCustomBox(true);\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tCliquez ici si vous ne trouvez pas votre {serviceTitle} \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{showCustomBox ? : \"\"}\r\n\t\t\t\t\t

Sélectionner un ou plusieurs organismes en cliquant sur les éléments ci-dessous.

\r\n\t\t\t\t\t{loadedServices.length === 0 ? : \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{R.isNil(customServiceDatas)\r\n\t\t\t\t\t\t\t? \"\"\r\n\t\t\t\t\t\t\t: customServiceDatas.map((customServiceData, index) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t })}\r\n\r\n\t\t\t\t\t\t{!R.isNil(allBranches) && allBranches.length > 0\r\n\t\t\t\t\t\t\t? R.sortWith([R.descend(R.prop(\"withServiceData\"))])(allBranches).map((b, index) => {\r\n\t\t\t\t\t\t\t\t\tlet isCollapsed = b.isCollapsed;\r\n\t\t\t\t\t\t\t\t\tif (allBranches.length === 1) {\r\n\t\t\t\t\t\t\t\t\t\tisCollapsed = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t })\r\n\t\t\t\t\t\t\t: \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{loadMore ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Plus

\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tlet response = await dispatch(fetchServices(connectionType, currentPage));\r\n\t\t\t\t\t\t\t\t\tif (response.items.length < 100) {\r\n\t\t\t\t\t\t\t\t\t\tsetLoadMore(false);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetLoadMore(true);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tupdateLoadedItems(response);\r\n\t\t\t\t\t\t\t\t\tsetCurrentPage(currentPage + 1);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\tclassName=\"btn btn-icon btn-alert-light mx-auto py-2\">\r\n\t\t\t\t\t\t\t\tPlus\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","export default __webpack_public_path__ + \"static/media/ServicesUploading-ilustration.be98eeb8.png\";","import React from 'react';\r\nimport ServicesUploading from './../../../assets/images/placeholder/ServicesUploading-ilustration.png';\r\nimport {setComplete} from '../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nexport const EmptyState = () => {\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n\r\n return (\r\n
\r\n

Finished setup

\r\n
\r\n \"Services\r\n
Félicitations! Votre dossier est complet.
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nexport const CustomBase = ({title, description, customeComponent, index, expanded, branch, setSelectedNonOption}) => {\r\n const [show, setShow] = useState(undefined);\r\n useEffect(() => {\r\n if (!R.isNil(expanded)) {\r\n if (!R.isNil(branch.serviceId)) {\r\n setShow(expanded);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n let titleWithNoSpaces = title.replace(/ /g,'') + \"showInput\" + index;\r\n\r\n let oui = show !== undefined && show === true ? true: false;\r\n let non = show !== undefined && show === false ? true: false;\r\n\r\n useEffect(() => {\r\n if (!R.isNil(show)) {\r\n setSelectedNonOption(show === false ? true : false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [show]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
{title}
\r\n
\r\n
\r\n {/*
*/}\r\n
\r\n setShow(true)} onChange={() => {}} className=\"custom-control-input\" checked={oui} />\r\n \r\n
\r\n
\r\n setShow(false)} onChange={() => {}} className=\"custom-control-input\" checked={non} />\r\n \r\n \r\n
\r\n {/*
*/}\r\n {/* */}\r\n {/*
\r\n setShow(!show)} defaultChecked={show} />\r\n \r\n
*/}\r\n
\r\n
\r\n {(show === true && description !== undefined) ?

Mentionnez le numéro que vous avez. Le numéro de chacun est facultatif.

: ''}\r\n {\r\n show ?\r\n customeComponent\r\n :\r\n ''\r\n }\r\n
\r\n )\r\n}","export default __webpack_public_path__ + \"static/media/060-bank-check.79bffb6b.svg\";","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport Bank from '../../../../../constants/models/servicePayloads/bank';\r\nimport BankAccount from '../../../../../constants/models/servicePayloads/bankAccount';\r\nimport * as R from 'ramda';\r\n\r\nexport const CardColumn = ({ n, cardType, isMain, globalPayload, setGlobalPayload }) => {\r\n const [bankAccount, setBankAccount] = useState(new BankAccount({accountType: cardType.accountType, comment: '', number: '', colNum: n}));\r\n\r\n function changePayload(remove, _bankAccount) {\r\n let tmpAccounts = !R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.map((a) => {\r\n let elementsFromColumn = globalPayload.payload.accounts.filter(aa => aa.accountType === cardType.accountType);\r\n let myElementIndex = elementsFromColumn.findIndex(e => e === a);\r\n return {...a,\r\n colNum: myElementIndex\r\n }}) : [];\r\n let currentCol = tmpAccounts.findIndex(a => !R.isNil(a.colNum) && a.colNum === n && a.accountType === cardType.accountType);\r\n\r\n if (currentCol !== -1 && remove === true){\r\n tmpAccounts = tmpAccounts.filter((a,i) => i !== currentCol);\r\n }\r\n else{\r\n if (currentCol === -1) {\r\n tmpAccounts.push(_bankAccount);\r\n }\r\n else {\r\n tmpAccounts[currentCol] = _bankAccount;\r\n }\r\n }\r\n setGlobalPayload({...globalPayload, payload: new Bank({ isMain: isMain, accounts: tmpAccounts })});\r\n };\r\n\r\n useEffect(() => {\r\n let accountsFromAllColumns = !R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.filter(a => a.accountType === cardType.accountType): undefined;\r\n if (!R.isNil(accountsFromAllColumns) && accountsFromAllColumns.length >= n && !R.isNil(accountsFromAllColumns[n])) {\r\n let columnAccount = JSON.parse(JSON.stringify(accountsFromAllColumns[n]));\r\n setBankAccount({ ...bankAccount, comment: columnAccount.comment, number: columnAccount.number });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n \r\n return (\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n {\r\n e.preventDefault();\r\n let tmpBankAccount = {...bankAccount, number: e.target.value};\r\n setBankAccount(tmpBankAccount);\r\n changePayload(null, tmpBankAccount);\r\n }} />\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n {\r\n bankAccount.comment !== '' || bankAccount.number !== '' ?\r\n {\r\n e.preventDefault();\r\n setBankAccount({...bankAccount, comment: '', number: ''});\r\n changePayload(true);\r\n }}> : ''\r\n }\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react';\r\nimport { CardColumn } from './cardColumn';\r\nimport * as R from 'ramda';\r\n\r\nexport const Card = ({ cardType, icon, branch, isMain, globalPayload, setGlobalPayload}) => {\r\n const [number, setNumber] = useState(!R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.filter(a => a.accountType === cardType.accountType).length : 0);\r\n\r\n const [arr, setArr] = useState([]);\r\n useEffect(() => {\r\n if(number === 0){\r\n setArr([]);\r\n }\r\n else if(number > 0 && number < 4){\r\n setArr([[...Array(number).keys()]]);\r\n }else{\r\n let a = [[1, 2, 3]];\r\n let fullLines = Math.trunc((number - 3)/4);\r\n let num = 3;\r\n\r\n let i = 0;\r\n for(; i < fullLines; i++){\r\n a[i + 1] = [];\r\n for(let j = 0; j < 4; j++, num++){\r\n a[i + 1][j] = num;\r\n }\r\n }\r\n\r\n let casesForLastLine = (number - 3)%4;\r\n a[i + 1] = [];\r\n for(let j = 0; j < casesForLastLine; j++, num++){\r\n a[i + 1][j] = num;\r\n }\r\n \r\n setArr(a);\r\n \r\n }\r\n }, [number]);\r\n return (\r\n
0 && number < 3 ? ' active shadow grid-column-' + (number + 1) : '') + (number > 2 ? ' active shadow grid-column-4' : '')}>\r\n
\r\n
\r\n {cardType.name}\r\n
{cardType.name}
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n let val = e.target.value === \"\" ? 0 : parseInt(e.target.value);\r\n setNumber(val < 0 ? 0 : val > 20 ? 20 : val);\r\n }} />\r\n
\r\n
\r\n {\r\n R.isNil(arr[0]) ?\r\n ''\r\n :\r\n arr[0].map((n, index) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n
\r\n {\r\n R.isNil(arr[0]) ?\r\n ''\r\n :\r\n Object.values(arr).map((line, colIndex) => {\r\n if(colIndex === 0)\r\n return ''\r\n else\r\n return(
\r\n {\r\n line.map((n, index) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n
)\r\n })\r\n\r\n }\r\n
\r\n );\r\n}","export const BankAccountType = {\r\n LivretA : {accountType: \"LivretA\", name: 'Livret A'},\r\n Ldds : {accountType:\"Ldds\", name: 'Livret de développement durable et solidaire (LDDS)'},\r\n Lep : {accountType: \"Lep\", name: \"Livret d'épargne populaire (lep)\"},\r\n LivretJeune : {accountType:\"LivretJeune\", name: 'Livret jeune'},\r\n Cel : {accountType:\"Cel\", name: 'Compte épargne logement (CEL)'},\r\n Pel : {accountType:\"Pel\", name: 'Plan épargne logement (PEL)'},\r\n Perp : {accountType:\"Perp\", name: \"Plan d'épargne retraite populaire (PERP)\"},\r\n LivretEpargneBancaire : {accountType:\"LivretEpargneBancaire\", name: \"Livret d'épargne bancaire\"},\r\n Cat : {accountType:\"Cat\", name: 'Compte à terme (CAT)'},\r\n CoffreFortBancaire : {accountType:\"CoffreFortBancaire\", name: 'Coffre fort bancaire'},\r\n PasPlacements: {accountType: \"PasPlacements\", name: \"Pas de placements\"},\r\n AssuranceDeces : {accountType:\"AssuranceDeces\", name: 'Décès'},\r\n AssuranceObseque : {accountType:\"AssuranceObseque\", name: 'Obsèques'},\r\n AssuranceVie : {accountType:\"AssuranceVie\", name: 'Vie'},\r\n PasAssurance: {accountType:\"PasAssurance\", name: \"Pas d'assurance\"},\r\n CreditVoiture : {accountType:\"CreditVoiture\", name: 'Voiture'},\r\n CreditImmobilier : {accountType:\"CreditImmobilier\", name: 'Immobilier'},\r\n CreditTravaux : {accountType:\"CreditTravaux\", name: 'Travaux'},\r\n CreditConsummation: {accountType: \"CreditConsummation\", name:\"Credit à la consommation\"},\r\n CreditAutre : {accountType:\"CreditAutre\", name: 'Autre'},\r\n PasCredit: {accountType:\"PasCredit\", name: \"Pas de crédit\"},\r\n CompteCurrent:{accountType:\"CompteCurrent\", name:\"Compte courant\"},\r\n Scpi:{accountType:\"Scpi\", name:\"Société civile de placement immobilier\"},\r\n Pea:{accountType:\"Pea\", name:\"Plan d'epargne en action\"},\r\n CompteTitre:{accountType:\"CompteTitre\", name:\"Compte Titre\"},\r\n Opcvm:{accountType:\"Opcvm\", name:\"Organismes de Placement Collectif en Valeurs Mobilières (OPCVM)\"},\r\n PasCurrent:{accountType:\"PasCurrent\", name:\"Pas de compte courant\"}\r\n}","import React from 'react';\r\nimport checkbanque from './../../../../../assets/images/svg/060-bank-check.svg';\r\nimport {Card} from './card';\r\nimport {BankAccountType} from '../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const Placement = ({branch, isMain, globalPayload, setGlobalPayload}) => {\r\n const cardTypes = [BankAccountType.LivretA, BankAccountType.Ldds, BankAccountType.Lep, BankAccountType.LivretJeune, BankAccountType.Cel,\r\n BankAccountType.Pel, BankAccountType.Perp, BankAccountType.LivretEpargneBancaire, BankAccountType.Cat, BankAccountType.CoffreFortBancaire,\r\n BankAccountType.Scpi, BankAccountType.Pea, BankAccountType.CompteTitre, BankAccountType.Opcvm\r\n ];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React from 'react';\r\nimport {Card} from './card';\r\nimport assurance from './../../../../../assets/images/svg/100-assurance.svg';\r\nimport {BankAccountType} from '../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const Assurance = ({branch, isMain, globalPayload, setGlobalPayload}) => {\r\n const cardTypes = [BankAccountType.AssuranceDeces, BankAccountType.AssuranceObseque, BankAccountType.AssuranceVie];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React from 'react';\r\nimport { Card } from './card';\r\nimport accountbanque from './../../../../../assets/images/svg/060-bank-account.svg';\r\nimport { BankAccountType } from '../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const Credit = ({ branch, isMain, globalPayload, setGlobalPayload}) => {\r\n const cardTypes = [BankAccountType.CreditVoiture, BankAccountType.CreditImmobilier, BankAccountType.CreditTravaux,\r\n BankAccountType.CreditConsummation, BankAccountType.CreditAutre];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","export default __webpack_public_path__ + \"static/media/016-account-card.0f8e95a3.svg\";","import React from 'react';\r\nimport checkbanque from './../../../../../assets/images/svg/016-account-card.svg';\r\nimport {Card} from './card';\r\nimport {BankAccountType} from '../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const CompteCurrent = ({branch, isMain, globalPayload, setGlobalPayload}) => {\r\n const cardTypes = [BankAccountType.CompteCurrent];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React, { useState } from \"react\";\r\nimport * as R from \"ramda\";\r\nimport { CustomBase } from \"./customBase\";\r\nimport { Placement } from \"./placement\";\r\nimport { Assurance } from \"./assurance\";\r\nimport { Credit } from \"./credit\";\r\nimport { CompteCurrent } from \"./compteCurrent\";\r\nimport { BankAccountType } from \"../../../../../constants/models/servicePayloads/bankAccountType\";\r\nimport Bank from \"../../../../../constants/models/servicePayloads/bank\";\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\nimport * as Loadings from \"../../../../../constants/loadings/service\";\r\n\r\nexport const BankDetails = ({ isMain, branch, index, removeBranch, setShowCustomBox, formRef, setCollapsed, generateRelocationLetters }) => {\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [selectedNonOption, setSelectedNonOption] = useState({\r\n\t\tcurrent: false,\r\n\t\tplacements: false,\r\n\t\tassurance: false,\r\n\t\tcredit: false,\r\n\t});\r\n\tconst dispatch = useDispatch();\r\n\tconst currentAccountBankAccountTypes = [BankAccountType.CompteCurrent.accountType];\r\n\tconst placementsBankAccountTypes = [\r\n\t\tBankAccountType.LivretA.accountType,\r\n\t\tBankAccountType.Ldds.accountType,\r\n\t\tBankAccountType.Lep.accountType,\r\n\t\tBankAccountType.LivretJeune.accountType,\r\n\t\tBankAccountType.Cel.accountType,\r\n\t\tBankAccountType.Pel.accountType,\r\n\t\tBankAccountType.Perp.accountType,\r\n\t\tBankAccountType.LivretEpargneBancaire.accountType,\r\n\t\tBankAccountType.Cat.accountType,\r\n\t\tBankAccountType.CoffreFortBancaire.accountType,\r\n\t\tBankAccountType.Scpi.accountType,\r\n\t\tBankAccountType.Pea.accountType,\r\n\t\tBankAccountType.CompteTitre.accountType,\r\n\t\tBankAccountType.Opcvm.accountType,\r\n\t];\r\n\tconst assuranceBankAccountTypes = [BankAccountType.AssuranceDeces.accountType, BankAccountType.AssuranceObseque.accountType, BankAccountType.AssuranceVie.accountType];\r\n\tconst creditsBankAccountTypes = [BankAccountType.CreditVoiture.accountType, BankAccountType.CreditImmobilier.accountType, BankAccountType.CreditTravaux.accountType, BankAccountType.CreditConsummation.accountType, BankAccountType.CreditAutre.accountType];\r\n\r\n\tlet hasCompteCurrentAccounts = false;\r\n\tlet hasPlacementAccounts = false;\r\n\tlet hasAssuranceAccounts = false;\r\n\tlet hasCreditAccounts = false;\r\n\tif (!R.isNil(branch) && !R.isNil(branch.payload) && !R.isNil(branch.payload.accounts)) {\r\n\t\thasCompteCurrentAccounts = branch.payload.accounts.findIndex((a) => currentAccountBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n\t\thasPlacementAccounts = branch.payload.accounts.findIndex((a) => placementsBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n\t\thasAssuranceAccounts = branch.payload.accounts.findIndex((a) => assuranceBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n\t\thasCreditAccounts = branch.payload.accounts.findIndex((a) => creditsBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n\t}\r\n\r\n\tlet initState = {\r\n\t\tserviceType: ConnectionTypes.Bank,\r\n\t\tserviceId: branch.serviceId,\r\n\t\tpayload: new Bank(),\r\n\t};\r\n\tif (!R.isNil(branch.id)) {\r\n\t\tinitState = branch;\r\n\t}\r\n\r\n\tconst [globalPayload, setGlobalPayload] = useState(initState);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t {\r\n\t\t\t\t\tsetSelectedNonOption({ ...selectedNonOption, current: op });\r\n\t\t\t\t}}\r\n\t\t\t\tbranch={branch}\r\n\t\t\t\texpanded={hasCompteCurrentAccounts}\r\n\t\t\t\ttitle=\"Compte courant\"\r\n\t\t\t\tcustomeComponent={}\r\n\t\t\t/>\r\n\t\t\t
\r\n\r\n\t\t\t {\r\n\t\t\t\t\tsetSelectedNonOption({ ...selectedNonOption, placements: op });\r\n\t\t\t\t}}\r\n\t\t\t\tbranch={branch}\r\n\t\t\t\texpanded={hasPlacementAccounts}\r\n\t\t\t\ttitle=\"Vos placements bancaires\"\r\n\t\t\t\tcustomeComponent={}\r\n\t\t\t/>\r\n\r\n\t\t\t
\r\n\r\n\t\t\t {\r\n\t\t\t\t\tsetSelectedNonOption({ ...selectedNonOption, assurance: op });\r\n\t\t\t\t}}\r\n\t\t\t\tbranch={branch}\r\n\t\t\t\texpanded={hasAssuranceAccounts}\r\n\t\t\t\ttitle=\"Vos assurances bancaires\"\r\n\t\t\t\tcustomeComponent={}\r\n\t\t\t/>\r\n\t\t\t
\r\n\r\n\t\t\t {\r\n\t\t\t\t\tsetSelectedNonOption({ ...selectedNonOption, credit: op });\r\n\t\t\t\t}}\r\n\t\t\t\tbranch={branch}\r\n\t\t\t\texpanded={hasCreditAccounts}\r\n\t\t\t\ttitle=\"Vos crédits bancaires\"\r\n\t\t\t\tcustomeComponent={}\r\n\t\t\t/>\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t a.number !== \"\").length === 0) || services.isLoading.includes(Loadings.ADD_NEW_SERVICE + branch.id) || services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + branch.id)}\r\n\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.bank), serviceId: branch.id, customServiceDetails: branch.customServiceDetails, payload: globalPayload.payload });\r\n\t\t\t\t\t\t\tif (R.isNil(serviceData.serviceId) || serviceData.serviceId === \"\") {\r\n\t\t\t\t\t\t\t\tserviceData.serviceId = branch.id !== \"\" ? branch.id : !R.isNil(branch.customServiceDetails) ? \"custom\" : branch.serviceId;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (selectedNonOption.current === true) {\r\n\t\t\t\t\t\t\t\tserviceData.payload.accounts = serviceData.payload.accounts.filter((a) => currentAccountBankAccountTypes.indexOf(a.accountType) === -1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (selectedNonOption.placements === true) {\r\n\t\t\t\t\t\t\t\tserviceData.payload.accounts = serviceData.payload.accounts.filter((a) => placementsBankAccountTypes.indexOf(a.accountType) === -1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (selectedNonOption.assurance === true) {\r\n\t\t\t\t\t\t\t\tserviceData.payload.accounts = serviceData.payload.accounts.filter((a) => assuranceBankAccountTypes.indexOf(a.accountType) === -1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (selectedNonOption.credit === true) {\r\n\t\t\t\t\t\t\t\tserviceData.payload.accounts = serviceData.payload.accounts.filter((a) => creditsBankAccountTypes.indexOf(a.accountType) === -1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (R.isNil(branch.serviceId)) {\r\n\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(true);\r\n\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tif (!R.isNil(setShowCustomBox)) {\r\n\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tserviceData.id = branch.id;\r\n\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\tsetCollapsed(true);\r\n\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tenregistrer\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tif (R.isNil(branch.serviceId)) {\r\n\t\t\t\t\t\t\tif (!R.isNil(setShowCustomBox)) {\r\n\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!R.isNil(removeBranch)) {\r\n\t\t\t\t\t\t\t\tremoveBranch(branch.serviceId);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tdispatch(deleteServiceData(branch.id, ConnectionTypes.bank));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport Generic from \"../../../../../constants/models/servicePayloads/generic\";\r\nimport { convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport * as R from \"ramda\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as Loadings from \"../../../../../constants/loadings/service\";\r\n\r\nexport const BranchBox = ({ branch, connectionType, index, removeBranch, bottomRef, formRef, generateRelocationLetters }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [payloads, setPayloads] = useState({ items: [{ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }] });\r\n\tconst [toDelete, setToDelete] = useState([]);\r\n\tconst [autoFocus, setAutoFocus] = useState(false);\r\n\tconst [tmpBranch, setTmpBranch] = useState(branch);\r\n\r\n\tfunction loadReferences() {\r\n\t\tlet allServicesWithSameBranch = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) ? services.serviceData[connectionType].filter((b) => b.serviceId === branch.serviceId || (R.isNil(branch.serviceId) && branch.id === b.serviceId)) : [];\r\n\t\tlet tmpPayloads = { items: tmpBranch === branch ? payloads.items.filter((i) => toDelete.findIndex((d) => d === i.id) === -1) : [{ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }] };\r\n\t\tif (tmpBranch !== branch) {\r\n\t\t\tsetTmpBranch(branch);\r\n\t\t}\r\n\t\tallServicesWithSameBranch.forEach((br) => {\r\n\t\t\tif (tmpPayloads.items.findIndex((tmp) => tmp.id === br.id) === -1) {\r\n\t\t\t\ttmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n\t\t\tif (tmpPayloads.items[0].payload.reference === \"\") {\r\n\t\t\t\ttmpPayloads.items.splice(0, 1);\r\n\t\t\t}\r\n\t\t\tsetPayloads(tmpPayloads);\r\n\t\t}\r\n\t\tsetToDelete([]);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [branch, connectionType, !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType], !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{payloads.items.map((br, payIndex) => {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === payIndex);\r\n\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: e.target.value, comment: tmpPayload[payloadIndex].payload.comment }) };\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: e.target.value, comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\ttitle=\"Les cases commentaires sont personnelles (ne seront pas visibles par le référent), elles vous permettent d'ajouter des notes à vos services.\">\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === payIndex);\r\n\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: tmpPayload[payloadIndex].payload.reference, comment: e.target.value }) };\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: e.target.value }) });\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{(payIndex === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== payIndex);\r\n\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\r\n\t\t\t\t);\r\n\t\t\t})}\r\n\t\t\t{\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetPayloads({ ...payloads, items: payloads.items.concat({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }) });\r\n\t\t\t\t\t\tsetAutoFocus(true);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t\r\n\t\t\t\t\tAjouter une autre référence\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\tif (formRef.current.checkValidity() || (payloads.items.length === 1 && payloads.items[0].payload.reference !== \"\")) {\r\n\t\t\t\t\t\t\tpayloads.items.length > 0 &&\r\n\t\t\t\t\t\t\t\tpayloads.items.forEach((payload) => {\r\n\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: user.user.id, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: !R.isNil(branch.serviceId) && !R.isNil(branch.id) ? branch.id : branch.serviceId, payload: payload.payload, lifeEvent: payload.lifeEvent || 1 });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(serviceData.serviceId) || serviceData.serviceId === \"\") {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.serviceId = branch.id;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(payload.id) || payload.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = branch.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tsetPayloads({ payloads, items: payloads.items.filter((i) => i.id !== \"\") });\r\n\t\t\t\t\t\t\tsetToDelete([]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tenregistrer\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tif ((R.isNil(branch) || R.isNil(branch.serviceId)) && !R.isNil(removeBranch)) {\r\n\t\t\t\t\t\t\tremoveBranch(branch.serviceId);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlet allServicesToDelete = services.serviceData[connectionType].filter((s) => s.serviceId === branch.serviceId);\r\n\t\t\t\t\t\t\tallServicesToDelete.forEach((s) => {\r\n\t\t\t\t\t\t\t\tdispatch(deleteServiceData(s.id, connectionType));\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { AsyncPaginate } from 'react-select-async-paginate';\r\nimport { fetchServices } from '../../../../../actions/services-api';\r\nimport ServiceInfo from '../../../../../constants/models/serviceInfo';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { ConnectionTypes } from '../../../../../constants/utils/connectionTypes';\r\nimport { BankDetails } from '../bankDetails';\r\nimport { BranchBox } from './branchBox';\r\nimport * as Loadings from '../../../../../constants/loadings/service';\r\n\r\nexport const BranchBase = ({ branch, index, totalBranches, connectionType, title, isMain, setShowCustomBox, canCollapse, removeBranch, bottomRef, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [branchIsSelected, setBranchIsSelected] = useState(null);\r\n\tconst [selectedOption, setSelectedOption] = useState(undefined);\r\n\tconst [selectedBranch, setSelectedBranch] = useState(undefined);\r\n\tconst [searchFilter, setSearchFilter] = useState([]);\r\n\tconst [selectSearch, setSelectSearch] = useState(\"\");\r\n\tconst [searchPage, setSearchPage] = useState(0);\r\n\tconst [loadedServices, setLoadedServices] = useState([]);\r\n\tconst [collapsed, setCollapsed] = useState(false);\r\n\tconst [wasSaved, setWasSaved] = useState(false);\r\n\tconst formRef = useRef(null);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetSearchPage(0);\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [selectSearch]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(selectedBranch) && !R.isNil(setBranchIsSelected)) {\r\n\t\t\tsetBranchIsSelected(selectedBranch);\r\n\t\t}\r\n\t\tif (R.isNil(selectedBranch) && !R.isNil(setBranchIsSelected)) {\r\n\t\t\tsetBranchIsSelected(null);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [selectedBranch]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(branch) && !R.isNil(loadedServices) && loadedServices.length > 0) {\r\n\t\t\t//find branch and option\r\n\t\t\tlet srv = !R.isNil(branch.serviceId) ? loadedServices.find((sr) => sr.name === branch.serviceName || sr.branches.find((s)=>{return s.name === branch.serviceName;})) : undefined;\r\n\t\t\tif (!R.isNil(srv)) {\r\n\t\t\t\tsrv.branches.sort((a, b) => (a.name > b.name ? 1 : -1));\r\n\t\t\t\tlet option = srv.branches.find((b) => b.id === branch.serviceId);\r\n\t\t\t\tsetSelectedOption(srv);\r\n\t\t\t\tsetSelectedBranch(option);\r\n\t\t\t\tsetSearchFilter({ label: srv.name, value: srv.name });\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [loadedServices, branch]);\r\n\r\n\tfunction updateLoadedItems(data) {\r\n\t\tif (!R.isNil(data) && data.length > 0) {\r\n\t\t\t//remove branches that are already registered\r\n\t\t\tif (R.isNil(loadedServices) || loadedServices.length === 0) {\r\n\t\t\t\tsetLoadedServices(data.map((e) => new ServiceInfo(e)));\r\n\t\t\t} else {\r\n\t\t\t\tlet tmpLoadedServices = loadedServices;\r\n\t\t\t\tdata.forEach((d) => {\r\n\t\t\t\t\tif (loadedServices.findIndex((i) => i.name === d.name) === -1) {\r\n\t\t\t\t\t\ttmpLoadedServices.push(new ServiceInfo(d));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsetLoadedServices(tmpLoadedServices);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tconst sleep = (ms) =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tresolve();\r\n\t\t\t}, ms);\r\n\t\t});\r\n\r\n\tasync function searchAreEqual(search) {\r\n\t\t//Wait one second, after user stops typing, before sending the request\r\n\t\tawait sleep(1000);\r\n\t\treturn search === selectSearch;\r\n\t}\r\n\r\n\tasync function loadOptions(search, loadedOptions, { page }) {\r\n\t\tlet response = [];\r\n\t\tlet responseJSON = [];\r\n\t\tlet hasMore = false;\r\n\t\tif (search === \"\" || R.isNil(search)) {\r\n\t\t\tresponse = await dispatch(fetchServices(connectionType, page));\r\n\r\n\t\t\t// servicesWithBranches = response.items.reduce((acc, srv) => {\r\n\t\t\t// acc[srv.organizationName] = { ...acc[srv.organizationName], name: srv.organizationName, nameNoAccents: removeAccents(srv.organizationName).toLowerCase().replace(/\\s/gi, \"\") };\r\n\t\t\t// acc[srv.organizationName][\"branches\"] = acc[srv.organizationName][\"branches\"] ? acc[srv.organizationName][\"branches\"] : [];\r\n\t\t\t// acc[srv.organizationName][\"branches\"].push(new Branch(srv));\r\n\t\t\t// return acc;\r\n\t\t\t// }, {});\r\n\t\t\t// responseJSON = Object.values(servicesWithBranches);\r\n\r\n\t\t\tresponseJSON = response.items.map((e) => new ServiceInfo(e));\r\n\t\t\thasMore = responseJSON.length === 100;\r\n\t\t} else if (search !== \"\" && !R.isNil(search)) {\r\n\t\t\tlet areEqual = await searchAreEqual(search);\r\n\t\t\tif (areEqual) {\r\n\t\t\t\tresponse = await dispatch(fetchServices(connectionType, selectSearch !== search ? 0 : searchPage, search));\r\n\r\n\t\t\t\t// servicesWithBranches = response.items.reduce((acc, srv) => {\r\n\t\t\t\t// acc[srv.organizationName] = { ...acc[srv.organizationName], name: srv.organizationName, nameNoAccents: removeAccents(srv.organizationName).toLowerCase().replace(/\\s/gi, \"\") };\r\n\t\t\t\t// acc[srv.organizationName][\"branches\"] = acc[srv.organizationName][\"branches\"] ? acc[srv.organizationName][\"branches\"] : [];\r\n\t\t\t\t// acc[srv.organizationName][\"branches\"].push(new Branch(srv));\r\n\t\t\t\t// return acc;\r\n\t\t\t\t// }, {});\r\n\t\t\t\t// responseJSON = Object.values(servicesWithBranches);\r\n\r\n\t\t\t\tresponseJSON = response.items.map((e) => new ServiceInfo(e));\r\n\t\t\t\tif (responseJSON.length === 100) {\r\n\t\t\t\t\tsetSearchPage(searchPage + 1);\r\n\t\t\t\t\thasMore = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\thasMore = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\thasMore = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdateLoadedItems(responseJSON);\r\n\r\n\t\tlet filteredOptions =\r\n\t\t\tresponseJSON.filter((s) => s.branches.length > 0).length > 0\r\n\t\t\t\t? responseJSON\r\n\t\t\t\t\t\t.filter((s) => s.branches.length > 0)\r\n\t\t\t\t\t\t.map((sr) => {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tlabel: sr.name,\r\n\t\t\t\t\t\t\t\tvalue: sr.name,\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})\r\n\t\t\t\t: [{ label: \"\", value: \"\" }];\r\n\r\n\t\treturn {\r\n\t\t\toptions: filteredOptions,\r\n\t\t\thasMore: hasMore,\r\n\t\t\tadditional: {\r\n\t\t\t\tpage: !R.isNil(search) && search !== \"\" ? searchPage : page + 1,\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tloadOptions(\"\", null, 0);\r\n\t\tif (!R.isNil(branch)) {\r\n\t\t\tsetCollapsed(true);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (index !== totalBranches - 1 && canCollapse === true && totalBranches > 0) {\r\n\t\t\tsetCollapsed(true);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [totalBranches]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (\r\n\t\t\t!R.isNil(branch)\r\n\t\t\t\t? services.isLoading.includes(Loadings.ADD_NEW_SERVICE + branch.id) || services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + branch.id)\r\n\t\t\t\t: !R.isNil(selectedBranch) && (services.isLoading.includes(Loadings.ADD_NEW_SERVICE + selectedBranch.id) || services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + selectedBranch.id))\r\n\t\t) {\r\n\t\t\tsetWasSaved(true);\r\n\t\t}\r\n\t}, [branch, selectedBranch, services.isLoading]);\r\n\r\n\tif (\r\n\t\twasSaved &&\r\n\t\tcollapsed === false &&\r\n\t\t!R.isNil(branch) &&\r\n\t\t!services.isLoading.includes(Loadings.ADD_NEW_SERVICE + branch.id) &&\r\n\t\t!services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + branch.id) &&\r\n\t\tJSON.stringify(branch) === JSON.stringify(services.serviceData[connectionType].find((b) => b.id === branch.id))\r\n\t) {\r\n\t\tsetWasSaved(false);\r\n\t\tsetCollapsed(true);\r\n\t}\r\n\r\n\tlet currentServiceIds =\r\n\t\t!R.isNil(services.serviceData) &&\r\n\t\t!R.isNil(services.serviceData[connectionType]) &&\r\n\t\tservices.serviceData[connectionType].map((s) => {\r\n\t\t\treturn s.serviceId;\r\n\t\t});\r\n\tcurrentServiceIds = R.uniq(currentServiceIds);\r\n\r\n\tlet auxTitle = !R.isNil(selectedBranch) ? selectedBranch.name : undefined;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tsetCollapsed(collapsed === true ? false : true);\r\n\t\t\t\t\t}, 200);\r\n\t\t\t\t}}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{isMain ? title + (title === \"Sport\" || title === \"Service à domicile\" ? \" Principal\" : \" Principale\") : \"Autre \" + title}

\r\n\t\t\t\t\t{!R.isNil(auxTitle) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{auxTitle}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
Votre {title} *
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetShowCustomBox(true);\r\n\t\t\t\t\t\t\t\t\tremoveBranch(index);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tCliquez ici si vous ne trouvez pas votre {title} \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetSearchFilter({ label: option.value, value: option.value });\r\n\t\t\t\t\t\t\t\t\t\tif (!R.isNil(loadedServices)) {\r\n\t\t\t\t\t\t\t\t\t\t\tlet srv = loadedServices.find((sr) => sr.name === option.value);\r\n\t\t\t\t\t\t\t\t\t\t\tsrv.branches.sort((a, b) => (a.name > b.name ? 1 : -1));\r\n\t\t\t\t\t\t\t\t\t\t\tlet tmpBranches = srv.branches.filter((br) => (R.isNil(branch) || (branch.serviceId !== br.id && branch.id !== br.id) ? !currentServiceIds.includes(br.id) : true));\r\n\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(srv)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedOption(srv);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (tmpBranches.length > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedBranch(tmpBranches[0]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedBranch(undefined);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tisMulti={false}\r\n\t\t\t\t\t\t\t\t\tcacheUniqs={[]}\r\n\t\t\t\t\t\t\t\t\tadditional={{ page: 0 }}\r\n\t\t\t\t\t\t\t\t\tonInputChange={(searchInput) => {\r\n\t\t\t\t\t\t\t\t\t\tsetSelectSearch(searchInput);\r\n\t\t\t\t\t\t\t\t\t\tif (!searchInput.includes(selectSearch)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetSearchPage(0);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tplaceholder=\"Rechercher...\"\r\n\t\t\t\t\t\t\t\t\tloadingMessage={() => \"Chargement...\"}\r\n\t\t\t\t\t\t\t\t\tnoOptionsMessage={() => \"Aucun résultat\"}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tlet tmpBranch = selectedOption.branches.find((b) => b.id === e.target.value);\r\n\t\t\t\t\t\t\t\t\t\tif (!R.isNil(tmpBranch)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedBranch(tmpBranch);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tvalue={selectedBranch?.id}>\r\n\t\t\t\t\t\t\t\t\t{!R.isNil(selectedOption) && !R.isNil(loadedServices)\r\n\t\t\t\t\t\t\t\t\t\t? selectedOption.branches.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (currentServiceIds.includes(s.id) && (R.isNil(branch) || branch.serviceId !== s.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t })\r\n\t\t\t\t\t\t\t\t\t\t: \"\"}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{!R.isNil(branchIsSelected) && !R.isNil(selectedBranch) ? (\r\n\t\t\t\t\tconnectionType === ConnectionTypes.bank ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t) : (\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t)}\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\nimport { addServiceData, updateServiceData, deleteServiceData } from \"../../../../../actions/services-api\";\r\nimport { generateLettersForUserIdAndUserServiceId } from \"../../../../../actions/events-api\";\r\nimport ServiceData from \"../../../../../constants/models/serviceData\";\r\nimport Generic from \"../../../../../constants/models/servicePayloads/generic\";\r\nimport { convertConnectionTypesToServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as Loadings from \"../../../../../constants/loadings/service\";\r\n\r\nexport const GenericDetails = ({ customServiceData, inputOnFocus, connectionType, boxIndex, setShowCustomBox, customFormRef, removeBranch, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [payloads, setPayloads] = useState({ items: [{ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }] });\r\n\tconst [toDelete, setToDelete] = useState([]);\r\n\tconst [autoFocus, setAutoFocus] = useState(false);\r\n\r\n\tfunction loadReferences() {\r\n\t\tlet allServicesWithSameBranch = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && !R.isNil(customServiceData) ? services.serviceData[connectionType].filter((b) => b.serviceId === customServiceData.serviceId) : [];\r\n\t\tlet tmpPayloads = { items: payloads.items.filter((i) => toDelete.findIndex((d) => d === i.id) === -1) };\r\n\t\tallServicesWithSameBranch.forEach((br) => {\r\n\t\t\tif (tmpPayloads.items.findIndex((tmp) => tmp.id === br.id) === -1) {\r\n\t\t\t\ttmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n\t\t\tif (tmpPayloads.items[0].payload.reference === \"\") {\r\n\t\t\t\ttmpPayloads.items.splice(0, 1);\r\n\t\t\t}\r\n\t\t\tsetPayloads(tmpPayloads);\r\n\t\t}\r\n\t\tsetToDelete([]);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tloadReferences();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [!R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType], !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{payloads.items.map((br, index) => {\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: e.target.value, comment: tmpPayload[payloadIndex].payload.comment }) };\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: e.target.value, comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"Les cases commentaires sont personnelles (ne seront pas visibles par le référent), elles vous permettent d'ajouter des notes à vos services.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tlet tmpPayload = JSON.parse(JSON.stringify(payloads.items));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tlet payloadIndex = tmpPayload.findIndex((p, idx) => idx === index);\r\n\t\t\t\t\t\t\t\t\t\t\tif (payloadIndex !== -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload[payloadIndex] = { id: br.id, payload: new Generic({ reference: tmpPayload[payloadIndex].payload.reference, comment: e.target.value }) };\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: e.target.value }) });\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: tmpPayload });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{(index === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t);\r\n\t\t\t\t})}\r\n\t\t\t\t{\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: payloads.items.concat({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }) });\r\n\t\t\t\t\t\t\tsetAutoFocus(true);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tAjouter une autre référence\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tcustomFormRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\tif (customFormRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\tpayloads.items.length > 0 &&\r\n\t\t\t\t\t\t\t\tpayloads.items.forEach((payload) => {\r\n\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\t\t\t\t\t\t\tuserId: user.user.id,\r\n\t\t\t\t\t\t\t\t\t\tserviceType: convertConnectionTypesToServiceType(connectionType),\r\n\t\t\t\t\t\t\t\t\t\tserviceId: !R.isNil(customServiceData.serviceId) && !R.isNil(customServiceData.id) ? customServiceData.id : !R.isNil(customServiceData.serviceId) && customServiceData.serviceId !== \"\" ? customServiceData.serviceId : \"custom\",\r\n\t\t\t\t\t\t\t\t\t\tcustomServiceDetails: customServiceData.customServiceDetails,\r\n\t\t\t\t\t\t\t\t\t\tpayload: payload.payload,\r\n\t\t\t\t\t\t\t\t\t\tlifeEvent: payload.lifeEvent || 1,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(serviceData.serviceId) || serviceData.serviceId === \"\") {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.serviceId = customServiceData.id !== \"\" ? customServiceData.id : \"custom\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(payload.id) || payload.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = customServiceData.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (generateRelocationLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(user.user.id, s.id, \"relocation\"));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tsetPayloads({ payloads, items: payloads.items.filter((i) => i.id !== \"\") });\r\n\t\t\t\t\t\t\tsetToDelete([]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tenregistrer\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tif (R.isNil(customServiceData) || R.isNil(customServiceData.serviceId)) {\r\n\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\tif (!R.isNil(removeBranch)) {\r\n\t\t\t\t\t\t\t\tremoveBranch(customServiceData.serviceId);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlet allServicesToDelete = services.serviceData[connectionType].filter((s) => s.serviceId === customServiceData.serviceId);\r\n\t\t\t\t\t\t\tallServicesToDelete.forEach((s) => {\r\n\t\t\t\t\t\t\t\tdispatch(deleteServiceData(s.id, connectionType));\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (boxIndex === 0) {\r\n\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../constants/utils/regexFields';\r\nimport { BankDetails } from '../bankDetails';\r\nimport {GenericDetails} from './genericDetails';\r\nimport ServiceData from '../../../../../constants/models/serviceData';\r\nimport {ConnectionTypes} from '../../../../../constants/utils/connectionTypes';\r\nimport * as Loadings from '../../../../../constants/loadings/service';\r\nimport { useSelector } from 'react-redux';\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const CustomBranch = ({ customServiceData, boxIndex, setShowCustomBox, isMain, totalBranches, canCollapse, connectionType, title, removeBranch, generateRelocationLetters }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst addressRef = useRef(null);\r\n\tconst [collapsed, setCollapsed] = useState(false);\r\n\tconst [wasSaved, setWasSaved] = useState(false);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [customBranchDetails, setCustomBranchDetails] = useState(\r\n\t\tR.isNil(customServiceData)\r\n\t\t\t? {\r\n\t\t\t\t\tcustomServiceDetails: {\r\n\t\t\t\t\t\tname: \"\",\r\n\t\t\t\t\t\taddress: {\r\n\t\t\t\t\t\t\tstreetAddress: \"\",\r\n\t\t\t\t\t\t\tstreetAddress2: \"\",\r\n\t\t\t\t\t\t\tpostalCode: \"\",\r\n\t\t\t\t\t\t\taddressLocality: \"\",\r\n\t\t\t\t\t\t\taddressCountry: \"FR\",\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t},\r\n\t\t\t\t\tserviceId: undefined,\r\n\t\t\t\t\tid: \"custom\",\r\n\t\t\t }\r\n\t\t\t: new ServiceData(customServiceData)\r\n\t);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!isMain && !R.isNil(customServiceData)) {\r\n\t\t\tsetCollapsed(true);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (boxIndex !== totalBranches - 1 && canCollapse === true) {\r\n\t\t\tsetCollapsed(true);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [totalBranches]);\r\n\r\n\tlet auxTitle = !R.isNil(customServiceData) && !R.isNil(customServiceData.customServiceDetails) ? customServiceData.customServiceDetails.name : undefined;\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(customServiceData) && (services.isLoading.includes(Loadings.ADD_NEW_SERVICE + customServiceData.id) || services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + customServiceData.id))) {\r\n\t\t\tsetWasSaved(true);\r\n\t\t}\r\n\t}, [customServiceData, services.isLoading]);\r\n\r\n\tif (\r\n\t\twasSaved &&\r\n\t\tcollapsed === false &&\r\n\t\t!R.isNil(customServiceData) &&\r\n\t\t!services.isLoading.includes(Loadings.ADD_NEW_SERVICE + customServiceData.id) &&\r\n\t\t!services.isLoading.includes(Loadings.UPDATING_SERVICE_DATA + customServiceData.id) &&\r\n\t\tJSON.stringify(customServiceData) === JSON.stringify(services.serviceData[connectionType].find((b) => b.id === customServiceData.id))\r\n\t) {\r\n\t\tsetWasSaved(false);\r\n\t\tsetCollapsed(true);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tsetCollapsed(collapsed === true ? false : true);\r\n\t\t\t\t\t}, 200);\r\n\t\t\t\t}}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{isMain ? title + \" Principale\" : \"Autre \" + title}

\r\n\t\t\t\t\t{!R.isNil(auxTitle) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{auxTitle}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
Votre {title} *
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, name: e.target.value } })}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, streetAddress: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, streetAddress2: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={!R.isNil(customBranchDetails.customServiceDetails) ? customBranchDetails.customServiceDetails.address.addressCountry : \"FR\"}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\tpostalCodePattern={!R.isNil(customBranchDetails.customServiceDetails) && customBranchDetails.customServiceDetails.address.addressCountry === \"FR\" ? RegexFields.frenchZipCode : undefined}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, postalCode: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, addressLocality: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, country: e.target.value, addressCountry: e.target.value } } })}>\r\n\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (country === \"FR\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{connectionType === ConnectionTypes.bank ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { BranchBase } from './branchBase.js';\r\nimport * as R from 'ramda';\r\nimport { CustomBranch } from './customBranch';\r\n\r\nexport const BranchService = ({ connectionType, title, generateRelocationLetters }) => {\r\n\tconst [resetPage, setResetPage] = useState(false);\r\n\tconst bottomRef = useRef(null);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [branches, setBranches] = useState({ items: [] });\r\n\tconst [showCustomBox, setShowCustomBox] = useState(false);\r\n\tconst [canCollapse, setCanCollapse] = useState(false);\r\n\tconst [addedNew, setAddedNew] = useState(false);\r\n\tconst serviceVector = services.serviceData[connectionType];\r\n\tconst [allBranches, setAllBranches] = useState([]);\r\n\r\n\tfunction removeBranch(serviceId) {\r\n\t\tlet tmpItems = branches.items.filter((b) => (!R.isNil(serviceId) && !R.isNil(b) ? serviceId !== b.serviceId : !R.isNil(b)));\r\n\t\tsetBranches({ ...branches, items: tmpItems });\r\n\t\tif (tmpItems.length === 0) {\r\n\t\t\tsetResetPage(true);\r\n\t\t}\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(connectionType)) {\r\n\t\t\tlet servicesInState = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) ? services.serviceData[connectionType] : [];\r\n\t\t\tif (servicesInState.length > 0) {\r\n\t\t\t\tsetBranches({ items: servicesInState });\r\n\t\t\t} else {\r\n\t\t\t\tsetBranches({ ...branches, items: [] });\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [services.serviceData, serviceVector]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(connectionType)) {\r\n\t\t\tsetCanCollapse(false);\r\n\t\t\tsetAddedNew(false);\r\n\t\t\tsetShowCustomBox(false);\r\n\t\t\tsetResetPage(true);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [connectionType]);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetTimeout(() => {\r\n\t\t\tsetResetPage(false);\r\n\t\t}, 1);\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [resetPage]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (addedNew === true && !R.isNil(bottomRef) && !R.isNil(bottomRef.current)) {\r\n\t\t\tbottomRef.current.scrollIntoView({ behavior: \"smooth\", block: \"end\" });\r\n\t\t}\r\n\t\tsetAddedNew(false);\r\n\t}, [addedNew]);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet tmpAllServiceDatas = [];\r\n\t\tlet allServiceDatasIdList = [];\r\n\t\tif (!R.isNil(services.serviceData[connectionType])) {\r\n\t\t\tbranches.items\r\n\t\t\t\t.filter((br) => R.isNil(br) || !R.isNil(br.serviceId))\r\n\t\t\t\t.forEach((srv) => {\r\n\t\t\t\t\tif (R.isNil(srv) || !allServiceDatasIdList.includes(srv.serviceId)) {\r\n\t\t\t\t\t\ttmpAllServiceDatas.push(srv);\r\n\t\t\t\t\t\tif (!R.isNil(srv)) {\r\n\t\t\t\t\t\t\tallServiceDatasIdList.push(srv.serviceId);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t\tlet notNullServicesLength = tmpAllServiceDatas.filter((b) => !R.isNil(b)).length;\r\n\r\n\t\tlet lastPosition =\r\n\t\t\tnotNullServicesLength !== 0\r\n\t\t\t\t? R.reduce(\r\n\t\t\t\t\t\tR.max,\r\n\t\t\t\t\t\t-Infinity,\r\n\t\t\t\t\t\ttmpAllServiceDatas.filter((s) => !R.isNil(s)).map((s) => s.position)\r\n\t\t\t\t ) + 1\r\n\t\t\t\t: 0;\r\n\t\tlet tmpAllBranches = [];\r\n\t\tlet index = 0;\r\n\t\tlet firstElement = !R.isNil(services) && !R.isNil(services.serviceData) && !R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].length > 0 ? services.serviceData[connectionType][0] : undefined;\r\n\r\n\r\n\t\ttmpAllServiceDatas.length > 0 &&\r\n\t\t\ttmpAllServiceDatas.forEach((sData) => {\r\n\t\t\t\tlet tmpPosition = R.isNil(sData) ? lastPosition : sData.position;\r\n\t\t\t\tlet isMain = R.isNil(sData) || R.isNil(firstElement) ? notNullServicesLength === 0 : tmpPosition === firstElement.position;\r\n\t\t\t\tif (!R.isNil(sData) && sData.serviceId.toLowerCase().startsWith(\"custom\")) {\r\n\t\t\t\t\ttmpAllBranches.push({\r\n\t\t\t\t\t\tpos: tmpPosition,\r\n\t\t\t\t\t\tdata: (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmpAllBranches.push({\r\n\t\t\t\t\t\tpos: tmpPosition,\r\n\t\t\t\t\t\tdata: (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tindex++;\r\n\t\t\t});\r\n\r\n\t\tif (tmpAllBranches.length === 0 && showCustomBox === false) {\r\n\t\t\ttmpAllBranches.push({ pos: 0, data: });\r\n\t\t}\r\n\t\tsetAllBranches(tmpAllBranches);\r\n\t}, [branches, branches.items, branches.items.length, canCollapse, connectionType, services, showCustomBox, title]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

{title}

\r\n\t\t\t{resetPage === false && R.sortWith([R.ascend(R.prop(\"pos\"))])(allBranches).map((b) => b.data)}\r\n\t\t\t{showCustomBox ? : \"\"}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Add new

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetCanCollapse(true);\r\n\t\t\t\t\t\tsetBranches({ ...branches, items: branches.items.concat(undefined) });\r\n\t\t\t\t\t\tsetAddedNew(true);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter un autre {title.toUpperCase()}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\n// import { Music } from './services/music';\r\nimport { Activity } from \"./services/activity\";\r\nimport { EducationInstitution } from \"./services/educationInstitution\";\r\nimport { Pension } from \"./services/pension\";\r\nimport { OtherActivity } from \"./services/otherActivity\";\r\nimport { Tenant } from \"./services/tenant\";\r\nimport { Ehpad } from \"./services/ehpad\";\r\nimport { ServiceNavbar } from \"./serviceNavbar\";\r\nimport { DefaultService } from \"./services/defaultService\";\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, isSocialNetwork } from \"../../../constants/utils/connectionTypes\";\r\nimport { EmptyState } from \"./emptyState\";\r\nimport { getProgress } from \"../../anticipa/_common/serviceNavbar/calculateProgress\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { BranchService } from \"./services/branchService\";\r\n\r\nexport const ServicesEdit = ({ selectedService, setSelectedService }) => {\r\n\tconst serviceModalRef = useRef(null);\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst servicesData = useSelector((state) => state.services);\r\n\r\n\tconst [commonOptions, setCommonOptions] = useState([]);\r\n\tconst [personnalOptions, setPersonnalOptions] = useState([]);\r\n\tconst [otherOption, setOtherOption] = useState([]);\r\n\r\n\tconst [showCompleteState, setShowCompleteState] = useState(false);\r\n\tconst [generateRelocationLetters, setGenerateRelocationLetters] = useState(false);\r\n\r\n\tfunction isInsurance(str) {\r\n\t\tif (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// const handleClickOutside = (event) => {\r\n\t// if (serviceModalRef.current && !serviceModalRef.current.contains(event.target)) {\r\n\t// setShowCompleteState(undefined);\r\n\t// }\r\n\t// };\r\n\tfunction service(connectionType, title, icon, detailedDescription) {\r\n\t\treturn { connectionType: connectionType, title: title, icon: icon, detailedDescription: detailedDescription };\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tlet tmp = [];\r\n\t\t[PersonalServices, AuxiliarOptions].forEach((services) => {\r\n\t\t\tObject.values(services).forEach((obj) => {\r\n\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon, obj.detailedDescription));\r\n\t\t\t});\r\n\t\t});\r\n\t\tsetPersonnalOptions(tmp);\r\n\t\ttmp = [];\r\n\t\t[CommonServices].forEach((services) => {\r\n\t\t\tObject.values(services).forEach((obj) => {\r\n\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon, obj.detailedDescription));\r\n\t\t\t});\r\n\t\t});\r\n\t\tsetCommonOptions(tmp);\r\n\t\ttmp = [];\r\n\t\t[OtherService].forEach((services) => {\r\n\t\t\tObject.values(services).forEach((obj) => {\r\n\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon, obj.detailedDescription));\r\n\t\t\t});\r\n\t\t});\r\n\t\tsetOtherOption(tmp);\r\n\t\t//document.addEventListener('click', handleClickOutside, true);\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(personnalOptions) && !R.isNil(commonOptions) && personnalOptions.length > 0 && commonOptions.length > 0) {\r\n\t\t\tlet everythingIsComplete = true;\r\n\t\t\tif (!R.isNil(selectedService)) {\r\n\t\t\t\tpersonnalOptions\r\n\t\t\t\t\t.filter((u) => user.services.findIndex((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)) !== -1)\r\n\t\t\t\t\t.forEach((s) => {\r\n\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, s.connectionType);\r\n\t\t\t\t\t\tif (progress !== 100) {\r\n\t\t\t\t\t\t\teverythingIsComplete = false;\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\tcommonOptions\r\n\t\t\t\t\t.filter((u) => user.services.findIndex((i) => i.connectionType === u.connectionType) !== -1)\r\n\t\t\t\t\t.forEach((s) => {\r\n\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, s.connectionType);\r\n\t\t\t\t\t\tif (progress !== 100) {\r\n\t\t\t\t\t\t\teverythingIsComplete = false;\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\totherOption\r\n\t\t\t\t\t.filter((u) => user.services.findIndex((i) => i.connectionType === u.connectionType) !== -1)\r\n\t\t\t\t\t.forEach((s) => {\r\n\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, s.connectionType);\r\n\t\t\t\t\t\tif (progress !== 100) {\r\n\t\t\t\t\t\t\teverythingIsComplete = false;\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (everythingIsComplete === true /* && complete === false*/) {\r\n\t\t\t\tsetShowCompleteState(true);\r\n\t\t\t} else {\r\n\t\t\t\tsetShowCompleteState(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [selectedService, servicesData.serviceData[selectedService], servicesData.isLoading /*!R.isNil(selectedService) && !R.isNil(servicesData.serviceData) && !R.isNil(servicesData.serviceData[selectedService]) && servicesData.serviceData[selectedService].length*/]);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetShowCompleteState(false);\r\n\t}, [selectedService]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\t// Generate userLetters if there is a, ongoing relocationDeclaration with step > 4\r\n\t\tsetGenerateRelocationLetters(\r\n\t\t\t!R.isNil(user.events) &&\r\n\t\t\t\tuser.events.find((e) => {\r\n\t\t\t\t\treturn e.type === \"UserRelocation\" && e.inProgress && e.step > 4;\r\n\t\t\t\t})\r\n\t\t);\r\n\t}, [user.events]);\r\n\r\n\t// useEffect(() => {\r\n\t// \tdocument.addEventListener('click', handleClickOutside, true);\r\n\t// \treturn () => {\r\n\t// \t\tdocument.removeEventListener('click', handleClickOutside, true);\r\n\t// \t};\r\n\t// \t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t// });\r\n\r\n\tlet selectedServiceOption = [].concat(personnalOptions, commonOptions, otherOption).find((s) => s.connectionType === selectedService);\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Services

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tremplir les champs\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Services setup

\r\n\t\t\t\t\t\t\t\t{(() => {\r\n\t\t\t\t\t\t\t\t\tif (showCompleteState) return ;\r\n\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(selectedService) && selectedService === \"\") return \"\";\r\n\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(selectedServiceOption)) return \"\";\r\n\r\n\t\t\t\t\t\t\t\t\tswitch (selectedService) {\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.bank:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.sport:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.homeService:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.activity:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.etudiant:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.pension:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.otherActivity:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.locataire:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.ehpad:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})()}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useState } from 'react';\r\nimport { useLocation } from \"react-router-dom\";\r\nimport removeAccents from 'remove-accents';\r\nimport * as R from 'ramda';\r\nimport Dropzone from 'react-dropzone';\r\nimport filesrc from './../../assets/images/svg/039-file.svg';\r\nimport { FiletypeToDisplayName, FileTypes } from '../../constants/utils/fileTypes';\r\n// import { ModalPartager } from './partager';\r\n\r\nexport const UploadArea = ({ documentName, documentType, documentDescription, uploadedFile, downloadFile, uploadFile, deleteFile, autoupload, selectable, setSelectFiles, selectedFiles, labelName, telechargerArea, modalTelechargerArea, toggleTelechargerArea, editDescription }) => {\r\n\r\n const [files, setFiles] = useState([]);\r\n const [description, setDescription] = useState(\"\");\r\n const location = useLocation();\r\n\r\n if (!R.isNil(uploadedFile)) {\r\n // let description = R.isNil(uploadedFile.description) || R.isEmpty(uploadedFile.description) || uploadedFile.description === \"undefined\" ? 'Pas de description' : uploadedFile.description;\r\n let description = R.isNil(uploadedFile.description) || R.isEmpty(uploadedFile.description) || uploadedFile.description === \"undefined\" ? uploadedFile.fileName : uploadedFile.description;\r\n \r\n if(uploadedFile.fileType === FileTypes.Payslip){\r\n const descriptionParts = description.split(\"_\");\r\n if(descriptionParts[descriptionParts.length - 1].toLowerCase() === \"payslip\"){\r\n description = \"Bulletin de paie\"\r\n }\r\n if(/^\\d+$/.test(descriptionParts[descriptionParts.length - 2])){\r\n description = \"Bulletin de paie \" + descriptionParts[descriptionParts.length - 2].substring(0, 6);\r\n }\r\n }\r\n return location.pathname.includes(\"biblioteque\") ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tR.isNil(uploadedFile.fileType) || R.isEmpty(uploadedFile.fileType) ? \"\" :

{R.isNil(documentType) ? FiletypeToDisplayName(uploadedFile.fileType) : documentType}

\r\n\r\n\t\t\t\t\t\t\t\t\t//

{FiletypeToDisplayName(uploadedFile.fileType)}

\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t{selectable === true && (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst fileFullName = R.isNil(uploadedFile.path) ? uploadedFile.fileName : uploadedFile.fileType === FileTypes.Payslip ? \"RH:\" + uploadedFile.description + \"/\" + uploadedFile.fileName : uploadedFile.path + \"/\" + uploadedFile.fileName;\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (selectedFiles.indexOf(fileFullName) === -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles([...selectedFiles, fileFullName]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles(selectedFiles.filter((s) => s !== fileFullName));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tdownloadFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

{description}

\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t{uploadedFile.fileName}\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{uploadedFile.fileType === FileTypes.Payslip ? (\r\n\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeleteFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSupprimer\r\n\t\t\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\teditDescription(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRenommer\r\n\t\t\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownloadFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTélécharger\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeleteFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSupprimer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\teditDescription(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tRenommer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownloadFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTélécharger\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t) : (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tdownloadFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t{/*
\r\n \r\n \r\n
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{R.isNil(uploadedFile.fileType) || R.isEmpty(uploadedFile.fileType) ? \"\" :

{FiletypeToDisplayName(uploadedFile.fileType)}

}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t{uploadedFile.fileName}\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t

{R.isNil(uploadedFile.description) || uploadedFile.description === \"undefined\" ? \"\" : uploadedFile.description}

\r\n\t\t\t\t\t\t\t\t{selectable === true ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (selectedFiles.indexOf(uploadedFile.fileName) === -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles([...selectedFiles, uploadedFile.fileName]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles(selectedFiles.filter((s) => s !== uploadedFile.fileName));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tdeleteFile(uploadedFile);\r\n\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t);\r\n }\r\n\r\n if (files.length > 0) {\r\n return location.pathname.includes(\"biblioteque\") ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{R.sortBy(R.compose(R.toLower, R.prop(\"name\")))(files)\r\n\t\t\t\t\t\t\t\t.map((file) => (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/*

{file.fileType}

*/}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"file\"\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{file.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* { setFiles([]); }}> */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetDescription(e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{modalTelechargerArea && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t{(!modalTelechargerArea || toggleTelechargerArea) && (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{toggleTelechargerArea ? (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst file = files[0];\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst reader = new FileReader();\r\n\t\t\t\t\t\t\t\t\t\t\t\t//uploadFile\r\n\t\t\t\t\t\t\t\t\t\t\t\treader.onload = async () => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet blob = reader.result;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuploadFile(new File([blob], removeAccents(file.name).toLowerCase().replace(/\\s/gi, \"\")), description);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\treader.readAsArrayBuffer(file);\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCliquer pour enregistrer\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\tAnnuler{\" \"}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t) : (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"file\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{files.map((file) => (\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t{file.name}\r\n\t\t\t\t\t\t\t\t\t\t{/* {file.name} - {file.size} bytes */}\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetDescription(e.target.value);\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tconst file = files[0];\r\n\t\t\t\t\t\t\t\t\tconst reader = new FileReader();\r\n\t\t\t\t\t\t\t\t\t//uploadFile\r\n\t\t\t\t\t\t\t\t\treader.onload = async () => {\r\n\t\t\t\t\t\t\t\t\t\tlet blob = reader.result;\r\n\t\t\t\t\t\t\t\t\t\tuploadFile(new File([blob], removeAccents(file.name).toLowerCase().replace(/\\s/gi, \"\")), description);\r\n\t\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\treader.readAsArrayBuffer(file);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t Cliquer pour enregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetFiles([]);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tAnnuler{\" \"}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t);\r\n }\r\n\r\n return (\r\n (location.pathname.includes(\"biblioteque\")) ?\r\n telechargerArea ?\r\n modalTelechargerArea ?\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n

{documentName}

\r\n

{labelName ? labelName : \"Aucun document\"}

\r\n
\r\n
\r\n
\r\n :\r\n
\r\n {\r\n if (autoupload) {\r\n const reader = new FileReader();\r\n //uploadFile\r\n reader.onload = async () => {\r\n let blob = reader.result;\r\n uploadFile(new File([blob], removeAccents(acceptedFiles[0].name).toLowerCase().replace(/\\s/gi, \"\")), description);\r\n setFiles([]);\r\n };\r\n reader.readAsArrayBuffer(acceptedFiles[0]);\r\n } else {\r\n setFiles(acceptedFiles);\r\n }\r\n }} accept={\"application/pdf\"}>\r\n {({ getRootProps, getInputProps }) => (\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

{documentName}

\r\n

{labelName ? labelName : \"aucun document\"}

\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n :\r\n
\r\n {\r\n if (autoupload) {\r\n const reader = new FileReader();\r\n //uploadFile\r\n reader.onload = async () => {\r\n let blob = reader.result;\r\n uploadFile(new File([blob], removeAccents(acceptedFiles[0].name).toLowerCase().replace(/\\s/gi, \"\")), description);\r\n setFiles([]);\r\n };\r\n reader.readAsArrayBuffer(acceptedFiles[0]);\r\n } else {\r\n setFiles(acceptedFiles);\r\n }\r\n }} accept={\"application/pdf\"}>\r\n {({ getRootProps, getInputProps }) => (\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

{documentName}

\r\n

{labelName ? labelName : \"Aucun document\"}

\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n\r\n :\r\n //is-uploading\r\n
\r\n {\r\n if (autoupload) {\r\n const reader = new FileReader();\r\n //uploadFile\r\n reader.onload = async () => {\r\n let blob = reader.result;\r\n uploadFile(new File([blob], removeAccents(acceptedFiles[0].name).toLowerCase().replace(/\\s/gi, \"\")), description);\r\n setFiles([]);\r\n };\r\n reader.readAsArrayBuffer(acceptedFiles[0]);\r\n } else {\r\n setFiles(acceptedFiles);\r\n }\r\n }} accept={\"application/pdf\"}>\r\n {({ getRootProps, getInputProps }) => (\r\n
\r\n \r\n
\r\n \r\n
\r\n

{documentName}

\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport {updateUserMessage} from '../../../actions/user-api';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nexport const Message = () => {\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n const [message, setMessage] = useState(user.message);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const messageRef = useRef(null);\r\n\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n };\r\n\r\n useEffect(() => {\r\n if (user.message === message || user.message === undefined) {\r\n setWasValidated(false);\r\n hideModal();\r\n }\r\n else if (message === '' && user.message !== '') {\r\n setMessage(user.message);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.message]);\r\n\r\n return (\r\n
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
{setWasValidated(false);}}>\r\n\t\t\t\t\t\t
\r\n
Référent message
\r\n\t\t\t\t\t\t\t
message à votre référent
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Ce message ne sera visible par votre ou vos réferent(s) qu'aprés votre décès.

\r\n\t\t\t\t\t\t\t
\r\n \r\n
\r\n Veuillez écrire un message\r\n
\r\n
\r\n
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n );\r\n}","import React from 'react';\r\n\r\nexport const GradientSVG = ({ startColor, endColor, idCSS, rotation } ) => {\r\n let gradientTransform = `rotate(${rotation})`;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}","import React from 'react';\r\n\r\nexport const ServiceCard = ({service, progress, setSelectedService}) => {\r\n return (\r\n
\r\n
{\r\n e.preventDefault();\r\n setSelectedService(service.connectionType);\r\n }}>\r\n {service.title}\r\n

{service.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { ServicesEdit } from './../_common/servicesEdit';\r\nimport messageRef from './../../../assets/images/svg/076-envelope.svg';\r\nimport { UploadArea } from './../../_common/upload-area';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Message } from '../_common/message';\r\nimport * as R from 'ramda';\r\nimport { getUserMessage } from '../../../actions/user-api';\r\nimport { CircularProgressbar } from 'react-circular-progressbar';\r\nimport { GradientSVG } from './gradientSvg';\r\nimport $ from 'jquery';\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, isSocialNetwork } from '../../../constants/utils/connectionTypes';\r\nimport { ServiceCard } from './serviceCard';\r\nimport { getProgress } from '../../anticipa/_common/serviceNavbar/calculateProgress';\r\n\r\nexport const Onboard = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const servicesData = useSelector(state => state.services);\r\n const [selectedService, setSelectedService] = useState(undefined);\r\n const [commonServices, setCommonServices] = useState([]);\r\n const [personnalServices, setPersonnalServices] = useState([]);\r\n const [otherServices, setOtherServices] = useState([]);\r\n const [userDocuments, setUserDocuments] = useState({\r\n items: [doc('démarches', 'communes', 0, 0),\r\n doc('démarches', 'personnalisées', 0, 0)]\r\n }\r\n );\r\n // const otherEntry = Object.entries(OtherService).map(entry => entry[1])[0];\r\n // const otherService = service(otherEntry.connectionType, otherEntry.title, otherEntry.icon, 0);\r\n\r\n function service(connectionType, title, icon, progress, tooltip) { return { connectionType: connectionType, title: title, icon: icon, progress: (progress === undefined ? 0 : progress), tooltip: tooltip }; };\r\n function doc(firstTitle, secondTitle, num, actions) { return { firstTitle: firstTitle, secondTitle: secondTitle, num: num, actions: actions }; };\r\n\r\n const getDocument = (docType) => {\r\n if (!R.isNil(user) && !R.isNil(user.documents) && user.documents.length > 0) {\r\n let docIndex = user.documents.findIndex(d => d.fileName === docType);\r\n if (docIndex !== -1) {\r\n return user.documents[docIndex];\r\n }\r\n }\r\n return undefined;\r\n };\r\n\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services)) {\r\n let userCommunServices = commonServices.filter(u => user.services.findIndex(i => i.connectionType === u.connectionType) !== -1).map((s) => {\r\n let progress = getProgress(servicesData.serviceData, s.connectionType);\r\n // if (s.connectionType === ConnectionTypes.bank && progress !== 100){\r\n // if (progress === 0){\r\n // return 5;\r\n // }\r\n // return 5 - ((progress*5)/100);\r\n // }\r\n return progress === 100 ? 0 : 1;\r\n });\r\n\r\n let userPersonnalServices = [].concat(personnalServices, otherServices).filter(u => user.services.findIndex(i => isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType :\r\n isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType) !== -1).map((s) => {\r\n let progress = getProgress(servicesData.serviceData, s.connectionType);\r\n return progress === 100 ? 0 : 1;\r\n });\r\n\r\n let demarchesCommuneDocuments = userDocuments.items.find(d => d.secondTitle === \"communes\");\r\n demarchesCommuneDocuments.num = userCommunServices.length;\r\n demarchesCommuneDocuments.actions = userCommunServices.reduce((a, b) => a + b, 0);\r\n\r\n let demarchesPersonnaliseeDocuments = userDocuments.items.find(d => d.secondTitle === \"personnalisées\");\r\n demarchesPersonnaliseeDocuments.num = userPersonnalServices.length;\r\n demarchesPersonnaliseeDocuments.actions = userPersonnalServices.reduce((a, b) => a + b, 0);\r\n\r\n setUserDocuments({ ...userDocuments, items: userDocuments.items });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [servicesData, user]);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n let tmp = [];\r\n [PersonalServices, AuxiliarOptions].forEach(services => {\r\n Object.values(services).forEach(obj => {\r\n tmp.push(service(obj.connectionType, obj.title, obj.icon, 0));\r\n });\r\n });\r\n setPersonnalServices(tmp);\r\n\r\n tmp = [];\r\n [CommonServices].forEach(services => {\r\n Object.values(services).forEach(obj => {\r\n tmp.push(service(obj.connectionType, obj.title, obj.icon, 0));\r\n });\r\n });\r\n setCommonServices(tmp);\r\n\r\n tmp = [];\r\n [OtherService].forEach(services => {\r\n Object.values(services).forEach(obj => {\r\n tmp.push(service(obj.connectionType, obj.title, obj.icon, 0));\r\n });\r\n });\r\n setOtherServices(tmp);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n function isInsurance(str) {\r\n if (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n if (!R.isNil(user.user) && !R.isNil(user.user.setupCompletedDate)) {\r\n window.location = `/anticipa/dashboard`;\r\n }\r\n\r\n\r\n return (\r\n
\r\n

Onboard

\r\n
\r\n
\r\n

Status

\r\n
\r\n {userDocuments.items.map((d, index) => {\r\n return (\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

{d.firstTitle}
{d.secondTitle}

\r\n

{d.actions.toString()} actions à faire

\r\n
\r\n
\r\n {/*
\r\n\r\n
\r\n

{d.num}

\r\n
\r\n
\r\n

{d.firstTitle}
{d.secondTitle}

\r\n

{d.actions} actions

\r\n
\r\n
*/}\r\n
\r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

veuillez compléter les données pour chaque section :

\r\n
\r\n Sélectionner d'autres démarches \r\n
\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(commonServices.filter(u => user.services.findIndex(i => i.connectionType === u.connectionType) !== -1)).map((s, index) => {\r\n let progress = getProgress(servicesData.serviceData, s.connectionType);\r\n return ;\r\n })\r\n }\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(personnalServices.filter(u => user.services.findIndex(i => isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType :\r\n isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType) !== -1)).map((s, index) => {\r\n let progress = getProgress(servicesData.serviceData, s.connectionType);\r\n return ;\r\n })\r\n }\r\n {\r\n otherServices.filter(u => user.services.findIndex(i => i.connectionType === u.connectionType) !== -1).map((s, index) => {\r\n let progress = getProgress(servicesData.serviceData, s.connectionType);\r\n return ;\r\n })\r\n }\r\n \r\n
\r\n {/*
\r\n
\r\n

Vous pouvez dès à présent déposer vos documents et laisser un message à votre référent.

\r\n
\r\n Voir documents \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
{\r\n e.preventDefault();\r\n dispatch(getUserMessage());\r\n }}>\r\n \"message\r\n
\r\n

Écrivez un message
à votre Référent

\r\n
\r\n
\r\n
\r\n \r\n \r\n
*/}\r\n
\r\n
\r\n \r\n
\r\n );\r\n};","import React, { createRef, useEffect, useRef, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\nimport { deleteServiceData } from \"../../../actions/services-api\";\r\nimport { ConnectionTypes, PensionProfessionalCategoryMapping } from \"../../../constants/utils/connectionTypes\";\r\nimport { useDispatch } from \"react-redux\";\r\n\r\nexport const Box = ({ service, alignLeft, setSelectedService }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst [elementOnFocus, setElementOnFocus] = useState(0);\r\n\tconst [elRefs, setElRefs] = useState([]);\r\n\tconst [contracts, setContracts] = useState([]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(service.contracts)) {\r\n\t\t\tlet tmpContracts = [];\r\n\t\t\tif (service.contracts.length > 0) {\r\n\t\t\t\tservice.contracts.forEach((c) => {\r\n\t\t\t\t\tlet name = \"\";\r\n\t\t\t\t\tif (c.serviceId.toLowerCase().startsWith(\"custom\")) {\r\n\t\t\t\t\t\tname = !R.isNil(c.customServiceDetails) ? c.customServiceDetails.name : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.otherActivity) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.name : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.activity) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.companyName : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.locataire) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.name : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.activity) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.companyName : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.etudiant) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.name : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.ehpad) {\r\n\t\t\t\t\t\tname = !R.isNil(c.payload) ? c.payload.name : \"\";\r\n\t\t\t\t\t} else if (service.connectionType === ConnectionTypes.pension) {\r\n\t\t\t\t\t\tif (R.isNil(c.payload)) {\r\n\t\t\t\t\t\t\tname = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlet professionalName = \"\";\r\n\t\t\t\t\t\t\tPensionProfessionalCategoryMapping.forEach((cat) => {\r\n\t\t\t\t\t\t\t\tlet matchingOption = cat.options.find((o) => o.value === c.payload.professionalCategory);\r\n\t\t\t\t\t\t\t\tif (!R.isNil(matchingOption)) {\r\n\t\t\t\t\t\t\t\t\tname = matchingOption.title;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tname = c.serviceName; //c.serviceId.split('|')[1];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tlet index = tmpContracts.findIndex((cont) => cont.name === name);\r\n\t\t\t\t\tif (index === -1) {\r\n\t\t\t\t\t\ttmpContracts.push({ name: name, ids: [c.id] });\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttmpContracts[index].ids.push(c.id);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tsetContracts(tmpContracts);\r\n\r\n\t\t\tsetElRefs((elRefs) =>\r\n\t\t\t\tArray(tmpContracts.length)\r\n\t\t\t\t\t.fill()\r\n\t\t\t\t\t.map((_, i) => elRefs[i] || createRef())\r\n\t\t\t);\r\n\t\t}\r\n\t}, [service.contracts, service.contracts.length]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{service.title}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{/*
\r\n {service.title}\r\n
*/}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{service.title}\r\n\t\t\t\t\t\t|\r\n\t\t\t\t\t\t{!R.isNil(contracts) ? contracts.length : 0}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{!R.isNil(contracts) && contracts.length > 1 && (alignLeft || (alignLeft === false && elementOnFocus > 0)) ? (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tlet elemenetToFocus = elementOnFocus;\r\n\t\t\t\t\t\t\t\t\tif (alignLeft === false && elementOnFocus > 0) {\r\n\t\t\t\t\t\t\t\t\t\telemenetToFocus = elementOnFocus - 1;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tif (elementOnFocus < service.contracts.length - 1) {\r\n\t\t\t\t\t\t\t\t\t\t\telemenetToFocus = elementOnFocus + 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(elRefs[elemenetToFocus]) && !R.isNil(elRefs[elemenetToFocus].current)) {\r\n\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.scrollIntoView({ behavior: \"smooth\", block: alignLeft ? \"end\" : \"start\" });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetElementOnFocus(elemenetToFocus);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{!R.isNil(contracts) && contracts.length > 0 ? (\r\n\t\t\t\t\t\t\t\t\tcontracts.map((c, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{c.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{c.ids.length > 1 ? \" #\" + c.ids.length : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.ids.forEach((contract) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(contract, service.connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"icon-close eva eva-close-outline text-primary align-middle h4 lh-solid mb-0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tAucune démarche configurée. \r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{!R.isNil(contracts) && contracts.length > 1 ? (\r\n\t\t\t\t\t\t\t 0) ? \" d-xl-none\" : \"\")}\r\n\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\tlet elemenetToFocus = elementOnFocus;\r\n\t\t\t\t\t\t\t\t\tif (alignLeft && elementOnFocus > 0) {\r\n\t\t\t\t\t\t\t\t\t\telemenetToFocus = elementOnFocus - 1;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tif (elementOnFocus < service.contracts.length - 1) {\r\n\t\t\t\t\t\t\t\t\t\t\telemenetToFocus = elemenetToFocus + 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(elRefs[elemenetToFocus]) && !R.isNil(elRefs[elemenetToFocus].current)) {\r\n\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.scrollIntoView({ behavior: \"smooth\", block: alignLeft ? \"end\" : \"start\" });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetElementOnFocus(elemenetToFocus);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tsetSelectedService(service.connectionType);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tsetSelectedService(service);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\nimport * as R from 'ramda';\r\n\r\nexport const DeleteModal = ({service, addOrRemove}) => {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Supprimer

\r\n
\r\n
Supprimer demarche
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {R.isNil(service)\r\n
Etes-vous sûr(e) de vouloir supprimer la démarche \"{R.isNil(service) ? '' : service.title}\"?
\r\n
Cette action est irréversible.
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","import React, { useEffect, useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport * as R from \"ramda\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { Box } from \"./box\";\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, isSocialNetwork } from \"../../../constants/utils/connectionTypes\";\r\nimport { ServicesEdit } from \"./../_common/servicesEdit\";\r\nimport { deleteService } from \"../../../actions/user-api\";\r\nimport { DeleteModal } from \"./deleteModal\";\r\n\r\nexport const Dashboard = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst user = useSelector((state) => state.user);\r\n\tconst services = useSelector((state) => state.services);\r\n\tconst [spiderBoxes, setSpiderBoxes] = useState([]);\r\n\tconst [selectedService, setSelectedService] = useState(undefined);\r\n\tconst [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\tconst isFirefox = typeof InstallTrigger !== \"undefined\";\r\n\r\n\tconst [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\r\n\tfunction addOrRemove(connectionType) {\r\n\t\tlet optionIsSocNet = connectionType === ConnectionTypes.socialNetworks;\r\n\t\tlet optionIsVehicleIns = connectionType === ConnectionTypes.insurance;\r\n\r\n\t\tlet tmpSelected = JSON.parse(JSON.stringify(user.services));\r\n\t\tif (tmpSelected.findIndex((o) => (optionIsSocNet ? isSocialNetwork(o.connectionType) : optionIsVehicleIns ? isInsurance(o.connectionType) : o.connectionType === connectionType)) !== -1) {\r\n\t\t\ttmpSelected = tmpSelected.filter((o) => (optionIsSocNet ? !isSocialNetwork(o.connectionType) : optionIsVehicleIns ? !isInsurance(o.connectionType) : o.connectionType !== connectionType));\r\n\t\t\tlet servicesToDelete = user.services.filter((sv) => (optionIsSocNet ? isSocialNetwork(sv.connectionType) : optionIsVehicleIns ? isInsurance(sv.connectionType) : sv.connectionType === connectionType));\r\n\r\n\t\t\tservicesToDelete.forEach((serviceToDelete) => {\r\n\t\t\t\tdispatch(deleteService(user.user, serviceToDelete));\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tfunction isInsurance(str) {\r\n\t\tif (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n\r\n\tfunction service(connectionType, title, icon) {\r\n\t\treturn { connectionType: connectionType, title: title, icon: icon };\r\n\t}\r\n\tfunction getContracts(conType) {\r\n\t\tif (Object.keys(services.serviceData).indexOf(conType) > -1 && services.serviceData[conType].length > 0) {\r\n\t\t\treturn services.serviceData[conType];\r\n\t\t}\r\n\t\treturn [];\r\n\t}\r\n\r\n\tfunction initBoxes() {\r\n\t\tlet tmpSpiderBoxes = [];\r\n\t\tlet tmp = [];\r\n\t\t[CommonServices].forEach((services) => {\r\n\t\t\tObject.values(services).forEach((obj) => {\r\n\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon));\r\n\t\t\t});\r\n\t\t});\r\n\t\tR.sortWith([R.ascend(R.prop(\"title\"))])(tmp.filter((u) => user.services.findIndex((i) => i.connectionType === u.connectionType) !== -1)).forEach((s) => {\r\n\t\t\ttmpSpiderBoxes.push({ title: s.title, icon: s.icon, contracts: getContracts(s.connectionType), connectionType: s.connectionType });\r\n\t\t});\r\n\r\n\t\ttmp = [];\r\n\t\t[PersonalServices, AuxiliarOptions].forEach((services) => {\r\n\t\t\tObject.values(services).forEach((obj) => {\r\n\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon));\r\n\t\t\t});\r\n\t\t});\r\n\t\tR.sortWith([R.ascend(R.prop(\"title\"))])(\r\n\t\t\ttmp.filter((u) => user.services.findIndex((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)) !== -1)\r\n\t\t).forEach((s) => {\r\n\t\t\ttmpSpiderBoxes.push({ title: s.title, icon: s.icon, contracts: getContracts(s.connectionType), connectionType: s.connectionType });\r\n\t\t});\r\n\r\n\t\ttmp = [];\r\n\t\t[OtherService].forEach((services) => {\r\n\t\t\tObject.entries(services)\r\n\t\t\t\t.map((entry) => entry[1])\r\n\t\t\t\t.forEach((obj) => {\r\n\t\t\t\t\ttmp.push(service(obj.connectionType, obj.title, obj.icon));\r\n\t\t\t\t});\r\n\t\t});\r\n\t\tR.sortWith([R.ascend(R.prop(\"title\"))])(tmp.filter((u) => user.services.findIndex((i) => i.connectionType === u.connectionType) !== -1)).forEach((s) => {\r\n\t\t\ttmpSpiderBoxes.push({ title: s.title, icon: s.icon, contracts: getContracts(s.connectionType), connectionType: s.connectionType });\r\n\t\t});\r\n\t\tsetSpiderBoxes(tmpSpiderBoxes);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tinitBoxes();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tinitBoxes();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [services, user.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.profilePicture)) {\r\n\t\t\tlet i = new Image();\r\n\t\t\ti.onload = function () {\r\n\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t};\r\n\t\t\ti.src = user.profilePicture;\r\n\t\t}\r\n\t}, [user.profilePicture]);\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
Dashboard
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{!R.isNil(user.events) &&\r\n\t\t\t\t\t\tuser.events.find((e) => {\r\n\t\t\t\t\t\t\treturn e.type === \"UserRelocation\" && e.inProgress;\r\n\t\t\t\t\t\t}) && (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
Évènement de vie en cours
\r\n\t\t\t\t\t\t\t\t\t\t\t

Vous avez commencé la déclaration d'un évènement de vie.

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{spiderBoxes.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\tif (index === 0 || index % 2 === 0) {\r\n\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{!R.isNil(user.profilePicture) ? \"avatar\" : }\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{spiderBoxes.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\tif (index !== 0 && index % 2 !== 0) {\r\n\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\nimport { ReferentIndex } from '../../../_common/referent';\r\nimport { Message } from '../_common/message';\r\n\r\nexport const Referent = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { ServicesEdit } from './../_common/servicesEdit';\r\nimport { CommonServices } from '../../../constants/utils/connectionTypes';\r\nimport { getProgress } from '../../anticipa/_common/serviceNavbar/calculateProgress';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport { addUserService } from '../../../actions/user-api';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\nexport const Communes = () => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(state => state.user);\r\n const [selectedService, setSelectedService] = useState(undefined);\r\n const servicesData = useSelector(state => state.services);\r\n const [selectedServices, setSelectedServices] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user) && !R.isNil(user.services) && user.services !== []) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.length > 0) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.services]);\r\n\r\n function addOrRemove(option) {\r\n let tmpSelected = JSON.parse(JSON.stringify(selectedServices));\r\n if (tmpSelected.findIndex(o => o.connectionType === option.connectionType) === -1) {\r\n tmpSelected.push(option);\r\n dispatch(addUserService(user.user, { connectionType: option.connectionType }));\r\n }\r\n setSelectedServices(tmpSelected);\r\n }\r\n\r\n if (user.isLoading.includes(Loadings.FETCH_SERVICES)) {\r\n return ;\r\n }\r\n\r\n\r\n return (\r\n
\r\n {/*
*/}\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.entries(CommonServices).map(entry => entry[1])).map((srv, index) => {\r\n let progress = getProgress(servicesData.serviceData, srv.connectionType);\r\n return (\r\n
{\r\n e.preventDefault();\r\n setSelectedService(srv.connectionType);\r\n addOrRemove(srv);\r\n }}>\r\n
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')}>\r\n {srv.title}\r\n

{srv.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n {/*
*/}\r\n \r\n
\r\n );\r\n};","import React from 'react';\r\nimport { ConnectionTypes } from '../../../constants/utils/connectionTypes';\r\n\r\nexport const ServiceCard = ({ selectedServices, setSelectedService, service, progress, addOrRemove, isSocialNetwork }) => {\r\n\r\n function isInsurance(str) {\r\n\t\tif (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n }\r\n \r\n return (\r\n
\r\n
s.connectionType === service.connectionType) !== -1 ? ' active' : '')} data-toggle=\"modal\" data-target=\"#servicesEdit\" onClick={(e) => {\r\n e.preventDefault();\r\n setSelectedService(isSocialNetwork ? 'SocialNetwork' : isInsurance(service.connectionType) ? 'Insurance' : service.connectionType);\r\n addOrRemove(service);\r\n }}>\r\n {service.title}\r\n

{service.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport { addUserService } from '../../../actions/user-api';\r\nimport { ServicesEdit } from './../_common/servicesEdit';\r\nimport { AssuranceOptions, SocialNetworksOptions, PersonalServices, OtherService, ConnectionTypes } from '../../../constants/utils/connectionTypes';\r\nimport { ServiceCard } from './serviceCard';\r\nimport { getProgress } from '../../anticipa/_common/serviceNavbar/calculateProgress';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\nexport const Personal = () => {\r\n const dispatch = useDispatch();\r\n const [selectedService, setSelectedService] = useState(undefined);\r\n const user = useSelector(state => state.user);\r\n const servicesData = useSelector(state => state.services);\r\n const [selectedServices, setSelectedServices] = useState([]);\r\n\r\n function isInsurance(str) {\r\n if (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user) && !R.isNil(user.services) && !R.isEmpty(user.services)) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user) && !R.isNil(user.services) && user.services.length > 0) {\r\n setSelectedServices(user.services);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.services]);\r\n\r\n function AddOrRemove(option) {\r\n let tmpSelected = JSON.parse(JSON.stringify(selectedServices));\r\n if (tmpSelected.findIndex(o => o.connectionType === option.connectionType) === -1) {\r\n tmpSelected.push(option);\r\n dispatch(addUserService(user.user, { connectionType: option.connectionType }));\r\n }\r\n setSelectedServices(tmpSelected);\r\n }\r\n\r\n if (user.isLoading.includes(Loadings.FETCH_SERVICES)) {\r\n return ;\r\n }\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t{/*
*/}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Vie quotidienne à sélectionner :

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(PersonalServices)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, srv.connectionType);\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t{Object.values(OtherService)\r\n\t\t\t\t\t\t\t\t.filter(\r\n\t\t\t\t\t\t\t\t\t(o) =>\r\n\t\t\t\t\t\t\t\t\t\to.connectionType !== ConnectionTypes.activity && o.connectionType !== ConnectionTypes.pension && o.connectionType !== ConnectionTypes.otherActivity && o.connectionType !== ConnectionTypes.poleEmploi && o.connectionType !== ConnectionTypes.locataire && o.connectionType !== ConnectionTypes.etudiant\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t.map((srv, index) => {\r\n\t\t\t\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, srv.connectionType);\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

SITUATION PROFESSIONNELLE ( à sélectionner)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{Object.values(OtherService)\r\n\t\t\t\t\t\t\t\t.filter((o) => o.connectionType !== ConnectionTypes.other && o.connectionType !== ConnectionTypes.locataire)\r\n\t\t\t\t\t\t\t\t.map((srv, index) => {\r\n\t\t\t\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, srv.connectionType);\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

RÉSEAUX SOCIAUX ( à sélectionner)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(SocialNetworksOptions)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = 0;\r\n\t\t\t\t\t\t\t\tif (!R.isNil(servicesData.serviceData[ConnectionTypes.socialNetworks]) && selectedServices.findIndex((s) => s.connectionType === srv.connectionType) !== -1) {\r\n\t\t\t\t\t\t\t\t\tprogress = getProgress(servicesData.serviceData, ConnectionTypes.socialNetworks);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

ASSURANCE ( à selectionner)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(AssuranceOptions)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = getProgress(servicesData.serviceData, srv.connectionType);\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t// let progress = 0;\r\n\t\t\t\t\t\t\t\t// if (!R.isNil(servicesData.serviceData[isInsurance(srv.connectionType) ? ConnectionTypes.insurance : srv.connectionType]) && selectedServices.findIndex(s => s.connectionType === srv.connectionType) !== -1) {\r\n\t\t\t\t\t\t\t\t// progress = getProgress(servicesData.serviceData, ConnectionTypes.insurance);\r\n\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{/*
*/}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n}","import * as ActionTypes from '../constants/actiontypes/user';\r\nimport * as DeathDeclarationActionTypes from '../constants/actiontypes/facilita/deathDeclaration';\r\nimport * as AuthActionTypes from '../constants/actiontypes/auth';\r\nimport * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport * as urls from '../constants/webapi/facilita';\r\nimport * as userUrls from '../constants/webapi/user';\r\nimport * as serviceDataUrls from '../constants/webapi/services';\r\nimport { getAuthenticationUrl } from '../constants/webapi/auth';\r\nimport Letter from '../constants/models/facilita/letter';\r\n\r\nexport function getUserRepresentingById(id) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USERREPRESENTING_REQUEST });\r\n\t\treturn axios.get(urls.userRepresentingByIdUrl(id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USERREPRESENTING_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USERREPRESENTING_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region DeathDeclaration\r\nexport function createDeathDeclaration(userId, deathDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.CREATE_DECLARATION_REQUEST });\r\n\t\treturn axios.post(userUrls.declareDeathById(userId), deathDeclaration)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getDeathDeclaration(userId, defaultValues) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_DECLARATION_REQUEST });\r\n\t\treturn axios.get(userUrls.declareDeathById(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n\t\t\t\t\t\t\tdata: {},\r\n\t\t\t\t\t\t\tdefaultValues\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn \"NotFound\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateDeathDeclaration(userId, deathDeclaration) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_DECLARATION_REQUEST });\r\n\t\treturn axios.put(userUrls.declareDeathById(userId), { ...deathDeclaration, professionalSituation: Array.isArray(deathDeclaration.professionalSituation) ? deathDeclaration.professionalSituation.join(',') : deathDeclaration.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_DECLARATION_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_DECLARATION_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region Documents\r\nexport function getDocuments(userId, shouldDispatch, path) {\r\n\tif(R.isNil(shouldDispatch)){\r\n\t\tshouldDispatch = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_FILES_REQUEST });\r\n\t\treturn axios.get(userUrls.userDocumentsUrl(userId, path))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif(shouldDispatch){\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_FILES_SUCCESS,\r\n\t\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined) {\r\n\t\t\t\t\tif (error.response.status === 401) {\r\n\t\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_FILES_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\t// referentId: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function uploadDocument(userId, fileType, document, description, filePath) {\r\n\tlet data = new FormData();\r\n\tconst config = {\r\n\t\theaders: { 'content-type': 'multipart/form-data' },\r\n\t\tcredential: 'include'\r\n\t};\r\n\r\n\tif(!R.isNil(document)){\r\n\t\tdata.append(\"file\", document, document.name);\r\n\t}else{\r\n\t\tdocument = {name: null}\r\n\t}\r\n\r\n\tif(!R.isNil(filePath)){\r\n\t\tdata.append(\"filePath\", filePath);\r\n\t}\r\n\tdata.append(\"fileDescription\", description);\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPLOAD_FILE_REQUEST, documentName: document.name, fileType: fileType });\r\n\t\treturn axios.post(userUrls.userDocumentUrl(userId, fileType), data, config)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tconst file = { fileName: document.name, fileType: fileType, description: description };\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPLOAD_FILE_SUCCESS,\r\n\t\t\t\t\tfile: file\r\n\t\t\t\t});\r\n\t\t\t\treturn file;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPLOAD_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t\tdocumentName: document.name,\r\n\t\t\t\t\tfileType: fileType\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadDocument(userId, fileType, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DOWNLOAD_FILE_REQUEST, fileType: fileType });\r\n\t\treturn axios.get(userUrls.userDocumentUrl(userId, fileType, path), { responseType: \"arraybuffer\" })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\t\twindow.open(fileurl);\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DOWNLOAD_FILE_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DOWNLOAD_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadDocumentAsBase64(userId, fileType) {\r\n\r\n\treturn axios.get(userUrls.userDocumentUrl(userId, fileType), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\treturn new Promise((resolve, reject) => {\r\n\t\t\t\tlet blob = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\t\tlet reader = new FileReader();\r\n\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\treader.onload = () => resolve({ base64Content: reader.result, type: blob.type });\r\n\t\t\t\treader.onerror = error => reject(error);\r\n\t\t\t});\r\n\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n};\r\n\r\nexport function deleteDocument(userId, fileName, path) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DELETE_FILE_REQUEST, fileName: fileName });\r\n\t\treturn axios.delete(userUrls.userDocumentUrl(userId, fileName, path))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_FILE_SUCCESS,\r\n\t\t\t\t\tdata: fileName\r\n\t\t\t\t});\r\n\t\t\t\treturn fileName;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_FILE_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function shareDocuments(userId, toEmailAddresses, fileNames, userRepresentativeId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.SHARE_FILES_REQUEST });\r\n\t\treturn axios.post(userUrls.userShareDocument(userId), {\r\n\t\t\tuserRepresentativeId,\r\n\t\t\tuserId,\r\n\t\t\tfileNames,\r\n\t\t\ttoEmailAddresses\r\n\t\t})\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SHARE_FILES_SUCCESS,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SHARE_FILES_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\nexport function getUserMessage(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_MESSAGE_REQUEST });\r\n\t\treturn axios.get(userUrls.userMessageByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_MESSAGE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getUserConnections(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_SERVICES_REQUEST, user: userId });\r\n\t\treturn axios.get(urls.userConnectionsUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_SERVICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function addUserConnection(userId, service) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.ADD_USER_SERVICE_REQUEST, user: userId });\r\n\t\treturn axios.post(urls.userConnectionsUrl(userId), service)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tservice: service\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.ADD_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function removeUserConnection(userId, connection) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.DELETE_USER_SERVICE_REQUEST, user: userId });\r\n\t\treturn axios.delete(urls.userServiceByIdUrl(userId, connection.id))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_SUCCESS,\r\n\t\t\t\t\tservice: connection,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.DELETE_USER_SERVICE_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#region ServiceData\r\nexport function getUserServiceData(userId, serviceType) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_REQUEST, user: userId });\r\n\t\treturn axios.get(userUrls.userServiceDataUrl(userId, serviceType))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\t// if(error.response !== undefined && error.response.status === 401){\r\n\t\t\t\t// \twindow.location = getAuthenticationUrl();\r\n\t\t\t\t// \treturn;\r\n\t\t\t\t// }\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.CREATE_USER_SERVICES_DATA_REQUEST, serviceId: serviceData.serviceId });\r\n\t\treturn axios.post(serviceDataUrls.getServiceDataUrl(), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceId: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tserviceId: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateServiceData(serviceData) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_REQUEST, id: serviceData.id });\r\n\t\treturn axios.put(serviceDataUrls.getServiceDataByIdUrl(serviceData.id), serviceData)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tid: serviceData.id\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: serviceData.serviceId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteServiceData(id, connectionType) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DELETE_USER_SERVICES_DATA_REQUEST, id: id, connectionType: connectionType });\r\n\t\treturn axios.delete(serviceDataUrls.getServiceDataByIdUrl(id))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t\tid: id,\r\n\t\t\t\t\tconnectionType: connectionType\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tid: id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function setCompletedServiceDataFilling(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_REQUEST, userId: userId });\r\n\t\treturn axios.put(userUrls.completeById(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_SUCCESS,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.SET_COMPLETE_USER_SERVICES_DATA_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n//#endregion\r\n\r\n//#region Letters\r\nexport function generateLettersForUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.GENERATE_USER_LETTERS_REQUEST, userId: userId });\r\n\t\treturn axios.post(urls.generateUserLetterUrlByUserId(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.GENERATE_USER_LETTERS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.GENERATE_USER_LETTERS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function generateLettersForUserIdAndUserServiceId(userId, userServiceId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.GENERATE_USER_LETTER_REQUEST, userId, userServiceId });\r\n\t\treturn axios.post(urls.generateUserletterUrlByletterIdAndUserServiceId(userId, userServiceId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.GENERATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tuserServiceId: userServiceId,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.GENERATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tuserServiceId: userServiceId,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getLettersForUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_USER_LETTERS_REQUEST, userId: userId });\r\n\t\treturn axios.get(urls.userLetterUrlByUserId(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_LETTERS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tletters: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_USER_LETTERS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getLetterInformationByLetterId(letterId) {\r\n\treturn axios.get(urls.letterUrlByletterId(letterId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function updateLetterById(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\tconst urltest = urls.userletterUrlByletterId(userletter.id);\r\n\t\treturn axios.put(urltest, new Letter(userletter))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function validateLetter(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\treturn axios.put(urls.userletterUrlByletterId(userletter.id) + \"/validate\")\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function abandonLetter(userletter) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_USER_LETTER_REQUEST, userletterId: userletter.id });\r\n\t\treturn axios.put(urls.userletterUrlByletterId(userletter.id) + \"/abandon\")\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_SUCCESS,\r\n\t\t\t\t\tuserletterId: userletter.id,\r\n\t\t\t\t\tuserletter: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_USER_LETTER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserletterId: userletter.id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadLetter(userLetterId) {\r\n\treturn axios.get(urls.letterContentUrlByletterId(userLetterId), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\twindow.open(fileurl);\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n};\r\n//#endregion\r\n\r\n//#region UserRepresentative\r\nexport function getUserRepresentativesForUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_REFERENTS_REQUEST, userId: userId });\r\n\t\treturn axios.get(urls.userRepresentativeByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_REFERENTS_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferents: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_REFERENTS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createUserRepresentativeForUserId(userId, userRepresentative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.CREATE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios.post(urls.userRepresentativesUrl(), userRepresentative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferent: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.CREATE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserRepresentativeForUserId(userId, userRepresentative) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios.put(urls.userRepresentativesByIdUrl(userRepresentative.id), userRepresentative)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferent: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function deleteUserRepresentativeForUserId(userId, userRepresentativeId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.DELETE_REFERENT_REQUEST, userId: userId });\r\n\t\treturn axios.delete(urls.userRepresentativesByIdUrl(userRepresentativeId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_REFERENT_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\treferentId: userRepresentativeId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.DELETE_REFERENT_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function InviteUserRepresentative(userRepresentativeId) {\r\n\treturn axios.post(urls.userRepresentativesInvitationByIdUrl(userRepresentativeId))\r\n\t\t.then((response) => {\r\n\t\t\treturn;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\n//#region User Address\r\nexport function getAddressesByUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.FETCH_USER_ADDRESS_REQUEST, userId: userId });\r\n\t\treturn axios.get(urls.userAddressByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddresses: response.data,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.FETCH_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateAddressById(userId, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_ADDRESS_REQUEST, userId: userId, addressId: address.id });\r\n\t\treturn axios.put(urls.userAddressByUserIdAndAddressIdUrl(userId, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddress: address,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\taddressId: address.id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\n//#region User & Security\r\nexport function updateUser(user) {\r\n\tif (R.isNil(user.isEnabled)) {\r\n\t\tuser.isEnabled = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypes.UPDATE_USER_REQUEST, userId: user.id });\r\n\t\treturn axios.put(urls.userByIdUrl(user.id), user)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_SUCCESS,\r\n\t\t\t\t\tuser: user\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypes.UPDATE_USER_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: user.id\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function sendOTPCode(phoneNumber) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios.post(urls.sendOTPUrl(), { phoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\t\treason: error.response.status\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 409)\r\n\t\t\t\t\tthrow new Error(\"AlreadyExistingPhoneNumber\");\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function verifyOTPCode(phoneNumber, otpCode) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode: otpCode });\r\n\t\treturn axios.post(urls.verifyOTPUrl(), { phoneNumber: phoneNumber, otpCode: otpCode })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tphoneNumber: phoneNumber\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 400 && error.response.data.errors?.hasOwnProperty(\"otpCode\")) {\r\n\t\t\t\t\tthrow new Error(\"InvalidOtpCode\");\r\n\t\t\t\t}\r\n\t\t\t\tthrow new Error(error.statusText);\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function changePhoneNumber(phoneNumber, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.SEND_OTP_CODE_REQUEST, phoneNumber: phoneNumber });\r\n\t\treturn axios.post(userUrls.changePhoneNumberUrl(userId), { newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.SEND_OTP_CODE_FAILURE,\r\n\t\t\t\t\treason: error.response.status\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 409)\r\n\t\t\t\t\tthrow new Error(\"AlreadyExistingPhoneNumber\");\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserSecurity(phoneNumber, otpCode, userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: AuthActionTypes.VERIFY_OTP_REQUEST, phoneNumber: phoneNumber, otpCode: otpCode });\r\n\t\treturn axios.put(userUrls.userSecurityByIdUrl(userId), { id: userId, oTPCode: otpCode, newPhoneNumber: phoneNumber })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tphoneNumber: phoneNumber\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: AuthActionTypes.VERIFY_OTP_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tif (error.response.status === 400 && error.response.data.errors?.hasOwnProperty(\"otpCode\")) {\r\n\t\t\t\t\tthrow new Error(\"InvalidOtpCode\");\r\n\t\t\t\t}\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n//#endregion\r\n\r\nexport function fetchPartnerCustomization(partnerId) {\r\n\treturn axios.get(userUrls.getPartnerCustomizationUrl(partnerId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\n//#region onBoarding\r\nexport function getUserInfoById(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_REQUEST });\r\n\t\treturn axios.get(userUrls.userByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserInfoById(userInfo) {\r\n\tif (R.isNil(userInfo.isEnabled)) {\r\n\t\tuserInfo.isEnabled = true;\r\n\t}\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_REQUEST });\r\n\t\treturn axios.put(userUrls.userByIdUrl(userInfo.id), { ...userInfo, professionalSituation: Array.isArray(userInfo.professionalSituation) ? userInfo.professionalSituation.join(',') : userInfo.professionalSituation })\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_SUCCESS,\r\n\t\t\t\t\tdata: userInfo,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateOnboardingUserAddressById(userId, address) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_REQUEST });\r\n\t\treturn axios.put(userUrls.userAddressByIdWithIdUrl(userId, address.id), address)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_SUCCESS,\r\n\t\t\t\t\tdata: address,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGUSER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getOnboardingUserAddressesByUserId(userId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_REQUEST, userId: userId });\r\n\t\treturn axios.get(urls.userAddressByUserIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_SUCCESS,\r\n\t\t\t\t\taddresses: response.data,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.FETCH_ONBOARDINGUSER_ADDRESS_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t\tuserId: userId\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateUserConnectionBatch(userId, services) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.ADD_USER_SERVICE_BATCH_REQUEST });\r\n\t\treturn axios.post(userUrls.userServicesBatchUrl(userId), services.map(s => { return { connectionType: s }; }))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.ADD_USER_SERVICE_BATCH_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.ADD_USER_SERVICE_BATCH_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function updateOnboardingStep(userId, step) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: DeathDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_REQUEST, step: step });\r\n\r\n\t\treturn axios.put(userUrls.updateOnBoardingStepByIdUrl(userId, step))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_SUCCESS,\r\n\t\t\t\t\tdata: step\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: DeathDeclarationActionTypes.UPDATE_ONBOARDINGSTEP_FAILURE,\r\n\t\t\t\t\tresponse: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function getCurrentPrices(userId) {\r\n\treturn axios.get(userUrls.getCurrentPricesUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\n//#region Invoices\r\nexport function fetchInvoices(userId) {\r\n\treturn axios.get(userUrls.getInvoicesByUserIdUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n//#endregion\r\n\r\nexport function addUserRole(userId) {\r\n\treturn axios.get(urls.addUserRoleUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\tif (sessionStorage.getItem(\"access_token\") !== undefined) {\r\n\t\t\t\tsessionStorage.removeItem(\"access_token\");\r\n\t\t\t}\r\n\t\t\tsessionStorage.setItem(\"access_token\", response.data.jwtToken);\r\n\t\t\taxios.defaults.headers.common['Authorization'] = \"Bearer \" + response.data.jwtToken;\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\n\r\n","import React, {useRef, useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport { ReactMultiEmail } from \"react-multi-email\";\r\nimport {shareDocuments} from '../../actions/facilita-api';\r\nimport \"react-multi-email/style.css\";\r\nimport { useDispatch } from 'react-redux';\r\nimport * as loadings from '../../constants/loadings/facilita/deathDeclaration';\r\nimport {ToasterConfigurations} from '../../constants/toasterText/configurations';\r\nimport $ from 'jquery';\r\nimport { toast } from 'react-toastify';\r\n\r\nexport const ModalPartager = ({fileNames, userId, userRepresentativeId, isLoading }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef();\r\n\tconst [emailAddresses, setEmailAddresses] = useState([]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Share docs

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Partager document
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Veuillez renseigner les adresses e-mail des personnes avec qui vous souhaitez partager {fileNames.length > 1 ? 'les ' + fileNames.length + ' documents' : 'le document'}.

\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetEmailAddresses(emails);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tgetLabel={(email, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn (
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{email}\r\n\t\t\t\t\t\t\t\t\t\t\t\t setEmailAddresses(emailAddresses.filter(e => e !== email))}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t×\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
)\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*

Vous pouvez renseigner plus d'une adresse séparée par un ';'

*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tAdresse e-mail invalide\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.SHARING_FILES) ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport {uploadDocument} from '../../actions/user-api';\r\nimport {FileTypes} from '../../constants/utils/fileTypes';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalEditFolder = ({userId, currentPath, onFolderEdited }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef();\r\n\tconst [dossierName, setDossierName] = useState('');\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Gestion docs

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Créer un dossier personnalisé
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*

Gérer les Dossiers

*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setDossierName(e.target.value)} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, {useEffect, useRef, useState, useMemo} from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport filesrc from './../../assets/images/svg/039-file.svg';\r\nimport {uploadDocument} from '../../actions/user-api';\r\nimport {uploadDocument as uploadDocumentFacilita} from '../../actions/facilita-api';\r\nimport Dropzone from 'react-dropzone';\r\nimport {FileTypes, FiletypeToDisplayName} from '../../constants/utils/fileTypes';\r\nimport {ToasterConfigurations} from '../../constants/toasterText/configurations';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalAddFile = ({ userId, currentPath, onFileAdded, isDefaultFiles, isFacilita, injectedFiles }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef();\r\n\tconst [files, setFiles] = useState(R.isNil(injectedFiles) ? [] : injectedFiles);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\r\n\tif(R.isNil(isFacilita)){\r\n isFacilita = false;\r\n }\r\n\tif(R.isNil(isDefaultFiles)){\r\n\t\tisDefaultFiles = false;\r\n\t}\r\n\tuseEffect(()=> {\r\n\t\tsetFiles(injectedFiles);\r\n\t}, [injectedFiles]);\r\n\r\n\tconst selectableFileTypesFacilita = useMemo(() => Object.keys(FileTypes)\r\n\t\t\t.filter(fileType => \r\n\t\t\t\tfileType !== FileTypes.Letter && \r\n\t\t\t\tfileType !== FileTypes.Signature &&\r\n\t\t\t\tfileType !== FileTypes.Other &&\r\n\t\t\t\tfileType !== FileTypes.ProfilePicture &&\r\n\t\t\t\tfileType !== FileTypes.Folder &&\r\n\t\t\t\tfileType !== FileTypes.FolderRH &&\r\n\t\t\t\tfileType !== FileTypes.Payslip)\r\n\t\t\t.map(key => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tkey: key,\r\n\t\t\t\t\tfileType: FileTypes[key],\r\n\t\t\t\t\tdisplayName: FiletypeToDisplayName(FileTypes[key])\r\n\t\t\t\t};\t\t\r\n\t\t\t}).sort((a,b) => a.displayName.localeCompare(b.displayName))\r\n\t\t, [FileTypes]);\r\n\t\r\n\tconst selectableFileTypesAnticipa = [{\r\n\t\t\tkey: FileTypes.UserIdCard,\r\n\t\t\tfileType: FileTypes.UserIdCard,\r\n\t\t\tdisplayName: FiletypeToDisplayName(FileTypes.UserIdCard, isFacilita)\r\n\t\t},\r\n\t\t{\r\n\t\t\tkey: FileTypes.UserFamilyRecordBook,\r\n\t\t\tfileType: FileTypes.UserFamilyRecordBook,\r\n\t\t\tdisplayName: FiletypeToDisplayName(FileTypes.UserFamilyRecordBook, isFacilita)\r\n\t\t},\r\n\t\t{\r\n\t\t\tkey: FileTypes.UserDonation,\r\n\t\t\tfileType: FileTypes.UserDonation,\r\n\t\t\tdisplayName: FiletypeToDisplayName(FileTypes.UserDonation, isFacilita)\r\n\t\t},\r\n\t\t{\r\n\t\t\tkey: FileTypes.Other,\r\n\t\t\tfileType: FileTypes.Other,\r\n\t\t\tdisplayName: FiletypeToDisplayName(FileTypes.Other, isFacilita)\r\n\t\t}\r\n\t\t].sort((a,b) => a.displayName.localeCompare(b.displayName));\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Upload docs

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Charger des fichiers
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tR.isEmpty(files) ?\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tif(!R.isEmpty(acceptedFiles)){\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetFiles(acceptedFiles.map(f => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tf.description = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tf.fileType = isDefaultFiles ? \"default\" : FileTypes.Other\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn f;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}} \r\n\t\t\t\t\t\t\t\t\t\tonDropRejected={(filesErrors) => {\r\n\t\t\t\t\t\t\t\t\t\t\tfilesErrors.map(fileErrors => fileErrors.errors.map(error => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(error.code === 'file-invalid-type'){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttoast.error(`Le fichier '${fileErrors.file.name}' n'est pas un fichier PDF.`, ToasterConfigurations)\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}))\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\taccept={\"application/pdf\"}>\r\n\t\t\t\t\t\t\t\t\t\t\t{({ getRootProps, getInputProps }) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Parcourir...

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Cliquez ici pour choisir les fichiers ou glissez et déposez les ici.

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tfiles.map((file, index) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/*

{file.fileType}

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"file\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{file.name}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, {useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport {FileTypes} from '../../constants/utils/fileTypes';\r\nimport $ from 'jquery';\r\nimport { deleteDocument} from '../../actions/user-api';\r\nimport { deleteDocument as facilitaDeleteDocument} from '../../actions/facilita-api';\r\n\r\nexport const ModalDelete = ({ userId, elementToDelete, currentPath, onFileDelete, isFacilita }) => {\r\n const [isLoading, setIsLoading] = useState(false);\r\n const dispatch = useDispatch();\r\n\r\n if(R.isNil(isFacilita)){\r\n isFacilita = false;\r\n }\r\n if(R.isNil(elementToDelete)){\r\n return \"\";\r\n }\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Supprimer

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Supprimer
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
Supprimer le fichier?
*/}\r\n\t\t\t\t\t\t
Etes-vous sûr(e) de vouloir supprimer le {elementToDelete.fileType === FileTypes.Folder ? \"dossier\" : \"fichier\"} \"{R.isNil(elementToDelete) ? '' : elementToDelete.fileName}\"?
\r\n\t\t\t\t\t\t
AVERTISSEMENT: Cette action est irréversible.
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}","import React, {useRef, useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport {RegexFields} from '../../constants/utils/regexFields';\r\nimport { ReactMultiEmail } from \"react-multi-email\";\r\nimport {shareDocuments} from '../../actions/facilita-api';\r\nimport \"react-multi-email/style.css\";\r\nimport { useDispatch } from 'react-redux';\r\nimport * as loadings from '../../constants/loadings/facilita/deathDeclaration';\r\nimport {ToasterConfigurations} from '../../constants/toasterText/configurations';\r\nimport $ from 'jquery';\r\nimport { toast } from 'react-toastify';\r\n\r\nexport const ModalConfirmation = ({fileNames, userId, userRepresentativeId, isLoading }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef();\r\n\tconst [emailAddresses, setEmailAddresses] = useState([]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Share docs

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Confirmation document
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Veuillez remplir le formulaire ci-dessous en conséquence pour confirmer que vous souhaitez remplacer le document existant.

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport {updateFileDescription} from '../../actions/user-api';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useEffect } from 'react';\r\n\r\nexport const ModalFileDescription = ({userId, currentPath, onDocumentEdited, document }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst formRef = useRef();\r\n\tconst [fileDescription, setFileDescription] = useState(R.isNil(document) ? undefined : document.description);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tif(!R.isNil(document))\r\n\t\t\tsetFileDescription(document.description);\r\n\t}, [document])\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Gestion docs

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Modifier description du fichier
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*

Gérer les Dossiers

*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setFileDescription(e.target.value)} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React from \"react\";\r\n\r\nexport const ModalRecipientEmail = ({ recipientEmail }) => {\r\n\t\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Recipient email

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tAdresse e-mail de réception\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Les documents envoyés à votre adresse e-mail de réception seront automatiquement importés dans votre bibliothèque.

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
Email de réception
\r\n\t\t\t\t\t\t\t\t\t

{recipientEmail}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as R from \"ramda\";\r\n\r\nimport Dropzone from \"react-dropzone\";\r\nimport { toast } from \"react-toastify\";\r\n\r\nimport { Link } from \"react-router-dom\";\r\n\r\n\r\nimport DocumentFile from \"../../../constants/models/documentFile\";\r\nimport $ from \"jquery\";\r\nimport { uploadDocument, downloadDocument, getDocuments } from \"../../../actions/user-api\";\r\nimport { FileTypes, FiletypeToDisplayName } from \"../../../constants/utils/fileTypes\";\r\nimport { ToasterConfigurations } from \"../../../constants/toasterText/configurations\";\r\n\r\nimport { ModalPartager } from \"../../_common/partager\";\r\nimport { ModalEditFolder } from \"../../_common/modalEditFolder\";\r\nimport { ModalAddFile } from \"../../_common/modalAddFile\";\r\nimport { ModalDelete } from \"../../_common/modalDelete\";\r\nimport { ModalConfirmation } from \"./../../_common/confirmation\";\r\nimport { ModalFileDescription } from \"../../_common/modalEditFileDescription\";\r\nimport { UploadArea } from \"../../_common/upload-area\";\r\nimport {ModalRecipientEmail} from \"./modalRecipientEmail\";\r\nimport servicesUploading from \"./../../../assets/images/placeholder/ServicesUploading-ilustration.png\";\r\n\r\nexport const Biblioteque = ({ userId, files, isLoading, recipientEmail }) => {\r\n\tconst [selectedFileNames, setSelectedFileNames] = useState([]);\r\n\tconst [currentPath, setCurrentPath] = useState(\"\");\r\n\tconst [pathLastElement, setPathLastElement] = useState([]);\r\n\tconst [path, setPath] = useState([]);\r\n\tconst [personalFiles, setPersonalFiles] = useState([]);\r\n\tconst [selectedElementToDelete, setSelectedElementToDelete] = useState(undefined);\r\n\tconst [selectedElementToEdit, setSelectedElementToEdit] = useState(undefined);\r\n\tconst [modalForDefaultData, setModalForDefaultData] = useState(false);\r\n\tconst [draggedFiles, setDraggedFiles] = useState([]);\r\n\r\n\tconst dispatch = useDispatch();\r\n\tfiles = files.filter((f) => f.fileType !== FileTypes.ProfilePicture && f.fileType !== FileTypes.Signature);\r\n\r\n\tfunction browseFolder(folderPath) {\r\n\t\tdispatch(getDocuments({ id: userId }, false, folderPath)).then((dbFiles) => {\r\n\t\t\tconst persoFiles = dbFiles.map((x) => new DocumentFile(x));\r\n\t\t\tsetPersonalFiles([...persoFiles.filter((x) => x.fileType === FileTypes.Other || x.fileType === FileTypes.Payslip || x.fileType === FileTypes.Folder || x.fileType === FileTypes.FolderRH)]);\r\n\r\n\t\t\tlet newPath = [];\r\n\t\t\tif (!R.isNil(folderPath)) {\r\n\t\t\t\tconst folderPathParts = folderPath.split(\"/\");\r\n\t\t\t\tfolderPathParts.map((folderPathPart, index) => {\r\n\t\t\t\t\tnewPath.push({\r\n\t\t\t\t\t\tfolderName: folderPathPart,\r\n\t\t\t\t\t\tfullPath: (newPath.length > 0 ? newPath[index - 1].fullPath + \"/\" : \"\") + folderPathPart,\r\n\t\t\t\t\t\tisRh: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tsetPath(newPath);\r\n\t\t});\r\n\t}\r\n\r\n\tfunction browseFolderRh(folderPath, folderName) {\r\n\t\tdispatch(getDocuments({ id: userId }, false, folderPath)).then((dbFiles) => {\r\n\t\t\tconst persoFiles = dbFiles.map((x) => new DocumentFile(x));\r\n\t\t\tsetPersonalFiles([...persoFiles.filter((x) => x.fileType === FileTypes.Payslip || x.fileType === FileTypes.FolderRH)]);\r\n\r\n\t\t\tlet newPath = [];\r\n\t\t\tif (!R.isNil(folderPath)) {\r\n\t\t\t\tfor (let i = 0; i < path.length; i++) {\r\n\t\t\t\t\tnewPath.push({ ...path[i], isRh: true });\r\n\t\t\t\t\tif (path[i].fullPath === folderPath) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (newPath.length === 0 || newPath[newPath.length - 1].fullPath !== folderPath) {\r\n\t\t\t\t\tnewPath.push({\r\n\t\t\t\t\t\tfolderName: folderName,\r\n\t\t\t\t\t\tfullPath: folderPath,\r\n\t\t\t\t\t\tisRh: true,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetPath(newPath);\r\n\t\t\tsetSelectedFileNames([]);\r\n\t\t});\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tbrowseFolder();\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst lastElement = path[path.length - 1];\r\n\t\tsetPathLastElement(lastElement);\r\n\t\tsetCurrentPath(R.isNil(lastElement) ? undefined : lastElement.fullPath);\r\n\t}, [path]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Vous pouvez dès à présent avancer les procédures requises en déposant les documents suivants :

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{/*
*/}\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Documents utiles

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t x.fileType === FileTypes.UserIdCard)}\r\n\t\t\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserIdCard, document, description))}\r\n\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t x.fileType === FileTypes.UserFamilyRecordBook)}\r\n\t\t\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserFamilyRecordBook, document, description))}\r\n\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t x.fileType === FileTypes.UserDonation)}\r\n\t\t\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserDonation, document, description))}\r\n\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t dispatch(uploadDocument(userId, FileTypes.Other, document, description))}\r\n\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t x.fileType === FileTypes.UserIdCard)}\r\n\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserIdCard, document, description))}\r\n\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#deleteDoc\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\teditDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#ModalFileDescription\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tselectable={true}\r\n\t\t\t\t\t\t\t\tselectedFiles={selectedFileNames}\r\n\t\t\t\t\t\t\t\tsetSelectFiles={setSelectedFileNames}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t x.fileType === FileTypes.UserFamilyRecordBook)}\r\n\t\t\t\t\t\t\t\tdocumentType={FiletypeToDisplayName(FileTypes.UserFamilyRecordBook, false)}\r\n\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserFamilyRecordBook, document, description))}\r\n\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#deleteDoc\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\teditDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#ModalFileDescription\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tselectable={true}\r\n\t\t\t\t\t\t\t\tselectedFiles={selectedFileNames}\r\n\t\t\t\t\t\t\t\tsetSelectFiles={setSelectedFileNames}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t x.fileType === FileTypes.UserDonation)}\r\n\t\t\t\t\t\t\t\tdocumentType={FiletypeToDisplayName(FileTypes.UserDonation, false)}\r\n\t\t\t\t\t\t\t\tuploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserDonation, document, description))}\r\n\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#deleteDoc\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\teditDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t$(\"#ModalFileDescription\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tselectable={true}\r\n\t\t\t\t\t\t\t\tselectedFiles={selectedFileNames}\r\n\t\t\t\t\t\t\t\tsetSelectFiles={setSelectedFileNames}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t{files\r\n\t\t\t\t\t\t\t\t.filter((file) => file.fileType !== FileTypes.UserIdCard && file.fileType !== FileTypes.UserFamilyRecordBook && file.fileType !== FileTypes.UserDonation && file.fileType !== FileTypes.Other && file.fileType !== FileTypes.Folder && file.fileType !== FileTypes.FolderRH)\r\n\t\t\t\t\t\t\t\t.map((file, index) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t dispatch(uploadDocument(userId, file.fileType, document, description))}\r\n\t\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t$(\"#deleteDoc\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\teditDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t$(\"#ModalFileDescription\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tkey={file.fileName + index}\r\n\t\t\t\t\t\t\t\t\t\t\tselectable={true}\r\n\t\t\t\t\t\t\t\t\t\t\tselectedFiles={selectedFileNames}\r\n\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles={setSelectedFileNames}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
setModalForDefaultData(true)}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Télécharger

\r\n\t\t\t\t\t\t\t\t\t\t

Charger un document utile

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Dossiers personnalisés

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tbrowseFolder();\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tDossier\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{path.map((part) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t/\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (part.isRh) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolderRh(part.fullPath, part.folderName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolder(part.fullPath);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{part.folderName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tif (!R.isEmpty(acceptedFiles)) {\r\n\t\t\t\t\t\t\t\t\tsetDraggedFiles(\r\n\t\t\t\t\t\t\t\t\t\tacceptedFiles.map((f) => {\r\n\t\t\t\t\t\t\t\t\t\t\tf.description = null;\r\n\t\t\t\t\t\t\t\t\t\t\tf.fileType = FileTypes.Other;\r\n\t\t\t\t\t\t\t\t\t\t\treturn f;\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t$(\"#fichier\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tonDropRejected={(filesErrors) => {\r\n\t\t\t\t\t\t\t\tfilesErrors.map((fileErrors) =>\r\n\t\t\t\t\t\t\t\t\tfileErrors.errors.map((error) => {\r\n\t\t\t\t\t\t\t\t\t\tif (error.code === \"file-invalid-type\") {\r\n\t\t\t\t\t\t\t\t\t\t\ttoast.error(`Le fichier '${fileErrors.file.name}' n'est pas un fichier PDF.`, ToasterConfigurations);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tnoClick={true}\r\n\t\t\t\t\t\t\taccept={\"application/pdf\"}>\r\n\t\t\t\t\t\t\t{({ isDragActive, getRootProps, getInputProps }) =>\r\n\t\t\t\t\t\t\t\tpersonalFiles.length === 0 ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
Biblioteque - Empty
\r\n\t\t\t\t\t\t\t\t\t\t\t\"features\r\n\t\t\t\t\t\t\t\t\t\t\t

Déposez vos fichiers ici.

\r\n\t\t\t\t\t\t\t\t\t\t\t

ou utilisez le bouton \"télécharger\"

\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{personalFiles\r\n\t\t\t\t\t\t\t\t\t\t\t\t.filter((x) => x.fileType === FileTypes.Other || x.fileType === FileTypes.Folder || x.fileType === FileTypes.FolderRH || x.fileType === FileTypes.Payslip)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.map((file) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (file.fileType === FileTypes.Folder || file.fileType === FileTypes.FolderRH) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet folderFullName = (R.isNil(pathLastElement) ? \"\" : pathLastElement.fullPath + \"/\") + file.fileName;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (file.fileType === FileTypes.FolderRH) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfolderFullName = \"RH:\" + file.description;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Dossier {file.fileType === FileTypes.FolderRH ? \"RH\" : \"\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (selectedFileNames.indexOf(folderFullName + \"/*\") === -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedFileNames([...selectedFileNames, folderFullName + \"/*\"]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedFileNames(selectedFileNames.filter((s) => s !== folderFullName + \"/*\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (file.fileType === FileTypes.FolderRH) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolderRh(folderFullName, file.fileName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolder(folderFullName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{file.fileName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/*

10 documents

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{file.fileType === FileTypes.FolderRH ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(file);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSupprimer dossier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (file.fileType === FileTypes.FolderRH) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolderRh(folderFullName, file.fileName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolder((R.isNil(pathLastElement) ? \"\" : pathLastElement.fullPath + \"/\") + file.fileName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVoir dossier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfile.path = currentPath;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t dispatch(uploadDocument(userId, file.fileType, document, description))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName, file.fileType === FileTypes.Payslip ? \"RH:\" + document.description : currentPath))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\"#deleteDoc\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teditDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(\"#ModalFileDescription\").modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tselectable={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tselectedFiles={selectedFileNames}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectFiles={setSelectedFileNames}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{/* {(personalFiles.length === 0) ?\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
Biblioteque - Empty
\r\n\t\t\t\t\t\t\t\t\t\t\"features\r\n\t\t\t\t\t\t\t\t\t\t
Déposez vos fichiers ici.
\r\n\t\t\t\t\t\t\t\t\t\t

ou utilisez le bouton \"télécharger\"

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{personalFiles.filter(x =>\r\n\t\t\t\t\t\t\t\t\t\tx.fileType === FileTypes.Other ||\r\n\t\t\t\t\t\t\t\t\t\tx.fileType === FileTypes.Folder).map((file) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif(file.fileType === FileTypes.Folder){\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Dossier

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbrowseFolder((R.isNil(pathLastElement) ? \"\" : pathLastElement.fullPath + \"/\") + file.fileName)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{file.fileName}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
)\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn dispatch(uploadDocument(userId, file.fileType, document, description))}\r\n\t\t\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(userId, document.fileName, currentPath))}\r\n\t\t\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToDelete(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('#deleteDoc').modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{/* */}\r\n\t\t\t\r\n\r\n\t\t\t browseFolder(currentPath)} isDefaultFiles={modalForDefaultData} injectedFiles={draggedFiles} isFacilita={false} />\r\n\t\t\t browseFolder(currentPath)} />\r\n\t\t\t browseFolder(currentPath)} />\r\n\t\t\t browseFolder(currentPath)} document={selectedElementToEdit} />\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n","export default __webpack_public_path__ + \"static/media/109-money.a036c8bf.svg\";","import React from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\n\r\nimport money from './../../../../assets/images/svg/109-money.svg';\r\nimport archives from './../../../../assets/images/svg/111-archives.svg';\r\n\r\nexport const Header = () => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t{/*
\r\n\t\t\t\t

Settings: Status

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"money\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Paiement

\r\n\t\t\t\t\t\t\t\t

Fait

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"archives\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

besoin d'alerte

\r\n\t\t\t\t\t\t\t\t

0 documents

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
*/}\r\n\t\t\t\r\n\t\t
\r\n\t)\r\n}","export default __webpack_public_path__ + \"static/media/111-archives.6cc02430.svg\";","import React from 'react';\r\nimport { Header } from './../_common/header';\r\nimport { Personal } from './../../../../_common/personal';\r\n\r\nexport const SettingsProfil = () => {\r\n return (\r\n \r\n )\r\n};","export default __webpack_public_path__ + \"static/media/074-notification-1.f6c8d01b.svg\";","export default __webpack_public_path__ + \"static/media/073-alarm-1.62eeceee.svg\";","export default __webpack_public_path__ + \"static/media/075-mail.f94deb23.svg\";","import React, { useState } from 'react';\r\n\r\nimport notification from './../../../../assets/images/svg/074-notification-1.svg';\r\nimport alarm from './../../../../assets/images/svg/073-alarm-1.svg';\r\nimport mail from './../../../../assets/images/svg/075-mail.svg';\r\n\r\nexport const SettingsNotifications = () => {\r\n const [autoriserAlert, setautoriserAlert] = useState(undefined);\r\n return (\r\n \r\n
\r\n
\r\n
\r\n
\r\n

notifications

\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n

Gestion automatisée des relances et actions

\r\n
\r\n \r\n \r\n
\r\n {autoriserAlert ?\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \"notification\"\r\n
\r\n
\r\n
alerte de plate-forme
\r\n

Proin fermentum leo vel orci porta non pulvinar.

\r\n
\r\n
\r\n
\r\n
\r\n \"alarm\"\r\n
\r\n
\r\n
message de téléphone mobile
\r\n

Proin fermentum leo vel orci porta non pulvinar.

\r\n
\r\n
\r\n
\r\n
\r\n \"mail\"\r\n
\r\n
\r\n
envoi de email
\r\n

Proin fermentum leo vel orci porta non pulvinar.

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n )\r\n};","export default __webpack_public_path__ + \"static/media/047-ticket.4273a60a.svg\";","import React from 'react';\r\nimport Emptylustration from './../../../../assets/images/svg/047-ticket.svg';\r\n\r\nexport const EmptyState = () => {\r\n return (\r\n
\r\n \"Assist@\"\r\n
\r\n

Aucune facture trouvée!

\r\n

Lorsque vous êtes prêt, affichez et gérez les modes de paiement pour profiter d'Assist@.

\r\n
\r\n
\r\n )\r\n}","import React, { useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { dateToString, formatAmount } from '../../../../utils/misc';\r\n\r\nexport const InvoiceList = () => {\r\n const user = useSelector(state => state.user);\r\n const orderOptions = { number: 'number', emission: 'created', total: 'amount' };\r\n const [invertOrder, setInvertOrder] = useState(false);\r\n const [order, setOrder] = useState(undefined);\r\n\r\n let invoices = R.sortWith([R.ascend(R.prop(order))])(user.invoices);\r\n if (invertOrder) {\r\n invoices = invoices.reverse();\r\n }\r\n\r\n return (\r\n
\r\n
Facturation
\r\n \r\n {\r\n invoices.map((invoice, index) => {\r\n let awaitingPayment = false;\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
{invoice.number}
\r\n
\r\n
\r\n
\r\n
\r\n
{dateToString(invoice.created)}
\r\n
\r\n
\r\n {/*
\r\n
\r\n
12-11-2021
\r\n
\r\n
*/}\r\n
\r\n
\r\n
{formatAmount(invoice.amount)} €
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n !invoice.paid ?\r\n //
\r\n //
en paiement
\r\n // \r\n //
\r\n
\r\n {(() => {\r\n switch (invoice.status) {\r\n case \"new\":\r\n case \"retry3\":\r\n case \"retry7\":\r\n return
en Paiement
;\r\n\r\n case \"canceled\":\r\n return
Annulé
;\r\n\r\n case \"unpaid\":\r\n return
Echoué
;\r\n\r\n default:\r\n return
Inconnu
;\r\n }\r\n\r\n })()}\r\n
\r\n :\r\n
\r\n
Paiement effectué
\r\n \r\n \r\n \r\n
\r\n }\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { EmptyState } from './emptyState';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport { InvoiceList } from './invoiceList';\r\nimport { fetchInvoices, getSetupIntent } from '../../../../actions/user-api';\r\nimport * as Loadings from '../../../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\n\r\nexport const SettingsFacturation = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst user = useSelector(state => state.user);\r\n\tconst [allPayments, setAllPayments] = useState(undefined);\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(fetchInvoices());\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip('update');\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(user.stripeClientSecret) && !user.isLoading.includes(Loadings.GETTING_SETUPINTENT)) {\r\n\t\t\tdispatch(getSetupIntent(user.user));\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.stripeClientSecret]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(allPayments) && allPayments < user.user.paymentMethods.length) {\r\n\t\t\tdispatch(getSetupIntent(user.user));\r\n\t\t}\r\n\t\tsetAllPayments(user.user.paymentMethods.length);\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [!R.isNil(user.user) && user.user.paymentMethods.length]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{user.isLoading.includes(Loadings.FETCH_INVOICES) ?
:\r\n\t\t\t\t\tuser.invoices.length === 0 ?\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n};","import React from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { PaymentMethods } from '../../../../_common/payments2';\r\nimport { EndPoints } from '../../../../constants/api-config';\r\n\r\n\r\nexport const SettingsPaiement = () => {\r\n\tconst user = useSelector(state => state.user);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { useSelector } from 'react-redux';\r\nimport { Profile } from './../../../../_common/profile';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nexport const SettingsSecurite = () => {\r\n const securityForm = useRef(null);\r\n const user = useSelector(state => state.user);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\r\n let initState = {\r\n email: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: '',\r\n otpCode: '',\r\n countryCode: '33',\r\n phoneCountry: 'FR'\r\n }\r\n\r\n if(!R.isNil(user.user.phoneNumber) && !R.isEmpty(user.user.phoneNumber)){\r\n const phone = parsePhoneNumber(user.user.phoneNumber);\r\n if(phone.isValid()){\r\n initState.phoneNumber = phone.nationalNumber;\r\n initState.countryCode = phone.countryCallingCode;\r\n initState.phoneCountry = phone.country;\r\n }\r\n }\r\n\r\n if(!R.isEmpty(user.user.email)){\r\n initState.email = user.user.email;\r\n }\r\n const [credentials, setCredentials] = useState(initState);\r\n return (\r\n \r\n )\r\n};","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\n\r\nimport { SettingsProfil } from './profile';\r\nimport { SettingsNotifications } from './notifications';\r\nimport { SettingsFacturation } from './facturation';\r\nimport { SettingsPaiement } from './paiement';\r\nimport { SettingsSecurite } from './securite';\r\n\r\nimport { Header } from './_common/header';\r\n\r\nexport const Settings = () => {\r\n return (\r\n
\r\n

Settings

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n return \r\n }} />\r\n \r\n
\r\n )\r\n};","import React, { useEffect, useState } from \"react\";\r\nimport { Link, NavLink } from \"react-router-dom\";\r\nimport { useSelector } from \"react-redux\";\r\nimport * as R from \"ramda\";\r\n\r\nimport colorContrast from \"color-contrast\";\r\nimport logo_hr from \"../../../../../../assets/images/brand/assista_horizontal-punchout.svg\";\r\nimport logo from \"../../../../../../assets/images/brand/assista.svg\";\r\n\r\nexport const Navbar = ({ user, deceasedUser, relocationDeclaration, partnerColor, logoContent, setOnboardingStep, onBoardingStep }) => {\r\n\tconst router = useSelector((state) => state.router);\r\n\tconst isFirefox = typeof InstallTrigger !== \"undefined\";\r\n\tconst colorCustom = !R.isNil(partnerColor) && partnerColor !== \"\" ? (colorContrast(\"#fff\", partnerColor) >= 2.5 ? \" text-white navbar-dark\" : \" navbar-light\") : \" text-white navbar-dark\";\r\n\tconst logo = R.isNil(logoContent) ? logo_hr : logoContent;\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(onBoardingStep)) {\r\n\t\t\tsetOnboardingStep(1);\r\n\t\t}\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t{\"Assist@\" (ev.target.src = logo_hr)} />\r\n\t\t\t\t\t

Assist@: Menu

\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t

Déclarer un déménagement

\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const Path = ({ relocatedUser, declaration, userLetters }) => {\r\n\tconst [step, setStep] = useState(0);\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(declaration) || declaration.onBoardingStep < 5) {\r\n\t\t\tsetStep(1);\r\n\t\t} else {\r\n\t\t\tif (R.isNil(declaration.onBoardingStep) || declaration.onBoardingStep < 6) {\r\n\t\t\t\tsetStep(2);\r\n\t\t\t} else if (declaration.onBoardingStep === 5) {\r\n\t\t\t\tif (userLetters.every((l) => l.letterProgressStage !== \"Created\")) {\r\n\t\t\t\t\tsetStep(3);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetStep(2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}, [declaration, relocatedUser, userLetters]);\r\n\r\n\tif (R.isNil(relocatedUser)) {\r\n\t\treturn \"\";\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
    \r\n\t\t\t\t
  • 1 ? \" completed\" : \"\")}>\r\n\t\t\t\t\t1\r\n\t\t\t\t\tCOMPLETER\r\n\t\t\t\t
  • \r\n\t\t\t\t
  • 2 ? \" completed\" : \"\")}>\r\n\t\t\t\t\t2\r\n\t\t\t\t\tVALIDER\r\n\t\t\t\t
  • \r\n\t\t\t\t
  • 3 ? \" completed\" : \"\")}>\r\n\t\t\t\t\t3\r\n\t\t\t\t\tCOURRIERS / SUIVI\r\n\t\t\t\t
  • \r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport $ from \"jquery\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\nimport { UploadArea } from \"../../../../../_common/upload-area\";\r\nimport * as R from \"ramda\";\r\nimport { registerLocale } from \"react-datepicker\";\r\nimport fr from \"date-fns/locale/fr\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport { createRelocationDeclaration, updateRelocationDeclaration, fetchLifeEvents } from \"../../../../../../actions/events-api\";\r\nimport { RegexFields } from \"../../../../../../constants/utils/regexFields\";\r\nimport { DateWithModal } from \"../../../../../../_common/dateWithModal\";\r\nimport RelocationDeclaration from \"../../../../../../constants/models/events/relocationDeclaration\";\r\nimport Address from \"../../../../../../constants/models/address\";\r\nimport * as loadings from \"../../../../../../constants/loadings/relocationDeclaration\";\r\nimport { PostalCityInput } from \"../../../../../../_common/postalCityInput\";\r\n\r\nimport appartement from \"../../../../../../assets/images/svg/090-flats.svg\";\r\nimport maison from \"../../../../../../assets/images/svg/069-home.svg\";\r\nimport palace from \"../../../../../../assets/images/svg/093-palace.svg\";\r\nimport hotel from \"../../../../../../assets/images/svg/087-hotel.svg\";\r\nimport peniche from \"../../../../../../assets/images/svg/091-house-2.svg\";\r\nimport divers from \"../../../../../../assets/images/svg/092-camping-tent.svg\";\r\n\r\nexport const Step1 = ({ relocatedUser, relocationDeclaration, isLoading, setOnboardingStep, getDeclaration }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tregisterLocale(\"fr\", fr);\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst identForm = useRef(null);\r\n\tconst [identFields, setIdentFields] = useState(new RelocationDeclaration(relocationDeclaration));\r\n\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\r\n\tconst addressContract = { owner: 1, tenant: 2, other: 3 };\r\n\tconst addressType = { appartement: 1, house: 2, castle: 3, hotel: 4, boat: 5, camp: 6 };\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif(!R.isNil(identFields.newAddress?.city)) {\r\n\t\t\tsetIdentFields({ ...identFields, sameArea: identFields.newAddress?.city == identFields.oldAddress?.city });\r\n\t\t}\r\n\t\tif (!R.isNil(identFields.newAddress?.postalCode)) {\r\n\t\t\tsetIdentFields({ ...identFields, sameArea: identFields.newAddress?.postalCode == identFields.oldAddress?.postalCode });\r\n\t\t}\r\n\t}, [identFields?.newAddress]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Déclarer un déménagement

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*

téléchargement obligatoire

*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tInformations générales\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={identFields.lastName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={identFields.firstName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, phone: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchPhoneNumber}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, email: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={identFields.email}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tAdresse actuelle\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, addressLine1: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t setIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\tcountry={identFields.oldAddress.country}\r\n\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm\", postalCode: \"form-group col-12 col-sm\" }}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{identFields.country === null || identFields.country === \"FR\" || identFields.country === \"GF\" || identFields.country === \"PF\" || identFields.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, city: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, oldAddress: { ...identFields.oldAddress, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tNouvelle adresse postale\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressLine1: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\tcountry={identFields.newAddress.country}\r\n\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm\", postalCode: \"form-group col-12 col-sm\" }}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{identFields.country === null || identFields.country === \"FR\" || identFields.country === \"GF\" || identFields.country === \"PF\" || identFields.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, city: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
type de bien immobilier
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.appartement } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"appartement\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

appartement

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.house } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Maison

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.castle } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"palace\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

château

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.hotel } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"hotel\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Hôtel

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.boat } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"peniche\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Péniche

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
setIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressType: addressType.camp } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"divers\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

divers

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Résident EHPAD, maison de retraite...

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
SITUATION APRÈS LE DÉMÉNAGEMENT
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressContract: addressContract.owner } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressContract: addressContract.tenant } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, newAddress: { ...identFields.newAddress, addressContract: addressContract.other } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, sameArea: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, reason: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setIdentFields({ ...identFields, effectiveMovingDate: d })} isRequired={true} noMaxDate={true} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Attention

\r\n\t\t\t\t\t\t\t\t\t\t\t\t

En passant à l'étape suivante, veuillez être certain de déménager à la date renseignée car vous ne pourrez pas la modifier après validation.

\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 1} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVeuillez confirmer la véracité des informations fournies.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) || isLoading.includes(loadings.CREATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(identFields.effectiveMovingDate) || identFields.effectiveMovingDate < new Date()) {\r\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"date-modal\").setCustomValidity(\"Invalid value\");\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"date-modal\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tidentForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tif (!document.getElementById(\"customSwitch1\").checked) {\r\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"customSwitch1InvalidFeedback\").classList.add(\"d-block\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (identForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(identFields.id) || identFields.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(createRelocationDeclaration(relocatedUser.id, { ...identFields, movingType: identFields.newAddress.addressContract, allocations: identFields.allocations, professionalSituation: identFields.professionalSituation.join(\", \"), onBoardingStep: 2 })).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetOnboardingStep(2);\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(fetchLifeEvents(relocatedUser.id));\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateRelocationDeclaration(relocatedUser.id, { ...identFields, movingType: identFields.newAddress.addressContract })).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetOnboardingStep(2);\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tPasser à l'étape suivante\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useState } from 'react';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { useDispatch } from 'react-redux';\r\nimport { RegexFields } from '../../../../../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../../../../../_common/dateWithModal';\r\nimport {updateRelocationDeclaration} from '../../../../../../../actions/events-api';\r\nimport * as loadings from '../../../../../../../constants/loadings/relocationDeclaration';\r\nimport $ from 'jquery';\r\n\r\nexport const FormCivil = ({ relocationDeclaration, userId, isLoading, setEditMode }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst civilForm = useRef(null);\r\n\r\n\tconst [personalData, setPersonalData] = useState({\r\n\t\tfirstName: relocationDeclaration?.firstName,\r\n\t\tlastName: relocationDeclaration?.lastName,\r\n\t\tphoneNumber: relocationDeclaration?.phoneNumber,\r\n\t\temail: relocationDeclaration?.email,\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, email: event.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, phoneNumber: event.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.frenchPhoneNumber}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tcivilForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\tif (civilForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\tupdateRelocationDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t...relocationDeclaration,\r\n\t\t\t\t\t\t\t\t\t\tfirstName: personalData?.firstName,\r\n\t\t\t\t\t\t\t\t\t\tlastName: personalData?.lastName,\r\n\t\t\t\t\t\t\t\t\t\tphoneNumber: personalData?.phoneNUmber,\r\n\t\t\t\t\t\t\t\t\t\temail: personalData?.email,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t).then(() => setEditMode(false));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport parsePhoneNumber from \"libphonenumber-js\";\r\nimport * as R from \"ramda\";\r\nimport { FormCivil } from \"./forms/formCivil\";\r\n\r\nexport const Civil = ({ relocationDeclaration, userId, isLoading }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tlet parsedMobilePhoneNumber = undefined;\r\n\tif (!relocationDeclaration?.phoneNumber?.startsWith(\"+00\")) {\r\n\t\tparsedMobilePhoneNumber = !R.isNil(relocationDeclaration?.phoneNumber) && relocationDeclaration?.phoneNumber !== \"\" ? parsePhoneNumber(relocationDeclaration?.phoneNumber).formatInternational() : undefined;\r\n\t}\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{/* If card is not active replace: \r\n\t\t\t\t1. in card title \" text-secondary\" with \" text-gray\"\r\n\t\t\t\t2. remove checked from switch\r\n\t\t\t*/}\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Informations personnelles

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Nom

\r\n\t\t\t\t\t\t

{relocationDeclaration?.lastName}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Prénom

\r\n\t\t\t\t\t\t

{relocationDeclaration?.firstName}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Email

\r\n\t\t\t\t\t\t

{relocationDeclaration?.email}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{R.isNil(parsedMobilePhoneNumber) ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Téléphone

\r\n\t\t\t\t\t\t\t

{relocationDeclaration?.phoneNumber === \"\" ? \"N/D\" : relocationDeclaration?.phoneNumber}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Mobile

\r\n\t\t\t\t\t\t\t

{parsedMobilePhoneNumber}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useState, useEffect } from \"react\";\r\nimport $ from \"jquery\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport appartement from \"../../../../../../../assets/images/svg/090-flats.svg\";\r\nimport maison from \"../../../../../../../assets/images/svg/069-home.svg\";\r\nimport palace from \"../../../../../../../assets/images/svg/093-palace.svg\";\r\nimport hotel from \"../../../../../../../assets/images/svg/087-hotel.svg\";\r\nimport peniche from \"../../../../../../../assets/images/svg/091-house-2.svg\";\r\nimport divers from \"../../../../../../../assets/images/svg/092-camping-tent.svg\";\r\nimport { RegexFields } from \"../../../../../../../constants/utils/regexFields\";\r\nimport { updateRelocationDeclaration } from \"../../../../../../../actions/events-api\";\r\nimport * as loadings from \"../../../../../../../constants/loadings/relocationDeclaration\";\r\n\r\nimport { DateWithModal } from \"../../../../../../../_common/dateWithModal\";\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const FormAddress = ({ relocationDeclaration, userId, isLoading, type, setEditMode }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst addressForm = useRef(null);\r\n\tconst [relocationFields, setRelocationFields] = useState({\r\n\t\tmovingType: relocationDeclaration?.movingType,\r\n\t\teffectiveMovingDate: relocationDeclaration?.effectiveMovingDate,\r\n\t\treason: relocationDeclaration?.reason,\r\n\t});\r\n\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [asset, setAsset] = useState({\r\n\t\taddress: relocationDeclaration[type]?.addressLine1,\r\n\t\ttype: relocationDeclaration[type]?.addressContract,\r\n\t\testateType: relocationDeclaration[type]?.addressType,\r\n\t\tcity: relocationDeclaration[type]?.city,\r\n\t\tcountry: relocationDeclaration[type]?.country,\r\n\t\tpostalCode: relocationDeclaration[type]?.postalCode,\r\n\t});\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
TYPE DE CONTRAT
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 1 })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 2 })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 3 })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
type de bien immobilier
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 1 })}>\r\n\t\t\t\t\t\t\t\t\t\"appartement\"\r\n\t\t\t\t\t\t\t\t\t

appartement

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 2 })}>\r\n\t\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t\t

Maison

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 3 })}>\r\n\t\t\t\t\t\t\t\t\t\"palace\"\r\n\t\t\t\t\t\t\t\t\t

château

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 4 })}>\r\n\t\t\t\t\t\t\t\t\t\"hotel\"\r\n\t\t\t\t\t\t\t\t\t

Hôtel

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 5 })}>\r\n\t\t\t\t\t\t\t\t\t\"peniche\"\r\n\t\t\t\t\t\t\t\t\t

Péniche

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 6 })}>\r\n\t\t\t\t\t\t\t\t\t\"divers\"\r\n\t\t\t\t\t\t\t\t\t

divers

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{/*

*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, address: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t setAsset({ ...asset, postalCode: updatedAddress.postalCode, city: updatedAddress.city })}\r\n\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\tcountry={asset.country}\r\n\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-md\", postalCode: \"form-group col-md\" }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{asset.country === null || asset.country === \"FR\" || asset.country === \"GF\" || asset.country === \"PF\" || asset.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, postalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, postalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, city: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, country: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{type === \"newAddress\" && (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetRelocationFields({ ...relocationFields, sameArea: event.target.value == \"true\" ? true : false });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetRelocationFields({ ...relocationFields, reason: event.target.value == \"0\" ? 0 : 1 });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setRelocationFields({ ...relocationFields, effectiveMovingDate: d })} isRequired={true} noMaxDate={true} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\r\n\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\taddressForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\tif (addressForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\tupdateRelocationDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t...relocationDeclaration,\r\n\t\t\t\t\t\t\t\t\t\t[type]: {\r\n\t\t\t\t\t\t\t\t\t\t\t...relocationDeclaration[type],\r\n\t\t\t\t\t\t\t\t\t\t\taddressLine1: asset.address,\r\n\t\t\t\t\t\t\t\t\t\t\taddressContract: asset.type,\r\n\t\t\t\t\t\t\t\t\t\t\taddressType: asset.estateType,\r\n\t\t\t\t\t\t\t\t\t\t\tcity: asset.city,\r\n\t\t\t\t\t\t\t\t\t\t\tcountry: asset.country,\r\n\t\t\t\t\t\t\t\t\t\t\tpostalCode: asset.postalCode,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\tmovingType: type == \"newAddress\" ? asset.type : relocationDeclaration.movingType,\r\n\t\t\t\t\t\t\t\t\t\treason: type == \"newAddress\" ? relocationFields.reason : relocationDeclaration.reason,\r\n\t\t\t\t\t\t\t\t\t\teffectiveMovingDate: type == \"newAddress\" ? relocationFields.effectiveMovingDate : relocationDeclaration.effectiveMovingDate,\r\n\t\t\t\t\t\t\t\t\t\tsameArea: type == \"newAddress\" ? relocationFields.sameArea : relocationDeclaration.sameArea,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t).then(() => setEditMode(false));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport * as R from \"ramda\";\r\nimport * as countries from \"i18n-iso-countries\";\r\nimport frenchCountryData from \"i18n-iso-countries/langs/fr.json\";\r\n\r\nimport appartement from \"../../../../../../assets/images/svg/090-flats.svg\";\r\nimport maison from \"../../../../../../assets/images/svg/069-home.svg\";\r\nimport palace from \"../../../../../../assets/images/svg/093-palace.svg\";\r\nimport hotel from \"../../../../../../assets/images/svg/087-hotel.svg\";\r\nimport peniche from \"../../../../../../assets/images/svg/091-house-2.svg\";\r\nimport divers from \"../../../../../../assets/images/svg/092-camping-tent.svg\";\r\n\r\nimport { FormAddress} from \"./forms/formAddress\";\r\n\r\nexport const Address = ({ relocationDeclaration, userId, isLoading, type }) => {\r\n\tcountries.registerLocale(frenchCountryData);\r\n\tconst contractType = [\"\", \"Propriétaire\", \"Locataire\", \"Autre\"];\r\n\tconst assetTypeLogo = [\"\", appartement, maison, palace, hotel, peniche, divers];\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{type === \"oldAddress\" ? \"Adresse actuelle\" : \"Nouvelle adresse postale\"}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 2} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t

{contractType[relocationDeclaration[type]?.addressContract]}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t{relocationDeclaration[type]?.addressLine1}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{relocationDeclaration[type]?.addressLine2 !== \"\" ? (\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t{relocationDeclaration[type]?.addressLine2}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t{relocationDeclaration[type]?.postalCode} {relocationDeclaration[type]?.city}, {countries.getName(relocationDeclaration[type]?.country, \"fr\", { select: \"official\" })}\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{type === \"newAddress\" && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Même commune

\r\n\t\t\t\t\t\t\t\t

{relocationDeclaration?.sameArea ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Raison du déménagement

\r\n\t\t\t\t\t\t\t\t

{relocationDeclaration?.reason == 0 ? \"Motif personnel\" : \"Motif professionnel\"}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Date d'effet du déménagement

\r\n\t\t\t\t\t\t\t\t

{relocationDeclaration?.effectiveMovingDate?.toLocaleDateString(\"fr-FR\")}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","export default __webpack_public_path__ + \"static/media/002-homechildren.731ac583.svg\";","import React, { useRef, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\n\r\nimport children from \"../../../../../../../assets/images/svg/002-children.svg\";\r\nimport noChildren from \"../../../../../../../assets/images/svg/002-nochildren.svg\";\r\n\r\nimport pets from \"../../../../../../../assets/images/svg/003-pets.png\";\r\nimport noPets from \"../../../../../../../assets/images/svg/003-nopets.png\";\r\n\r\nimport celibataireW from \"../../../../../../../assets/images/svg/001-W-celibataire.svg\";\r\nimport unionsW from \"../../../../../../../assets/images/svg/001-W-unions.svg\";\r\nimport divorceeW from \"../../../../../../..//assets/images/svg/001-W-divorcee.svg\";\r\nimport veuveW from \"../../../../../../..//assets/images/svg/001-W-veuve.svg\";\r\n\r\nimport celibataireM from \"../../../../../../../assets/images/svg/001-M-celibataire.svg\";\r\nimport unionsM from \"../../../../../../../assets/images/svg/001-M-unions.svg\";\r\nimport divorceeM from \"../../../../../../../assets/images/svg/001-M-divorcee.svg\";\r\nimport veuveM from \"../../../../../../../assets/images/svg/001-M-veuve.svg\";\r\nimport homechildren from \"../../../../../../../assets/images/svg/002-homechildren.svg\";\r\nimport { updateRelocationDeclaration } from \"../../../../../../../actions/events-api\";\r\nimport * as loadings from \"../../../../../../../constants/loadings/relocationDeclaration\";\r\nimport $ from \"jquery\";\r\n\r\nexport const FormFamily = ({ relocationDeclaration, userId, isLoading, setEditMode }) => {\r\n\tconst familyForm = useRef(null);\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst familyStatusText = [\r\n\t\t{},\r\n\t\t{ Male: { label: \"Célibataire\", logo: celibataireM }, Female: { label: \"Célibataire\", logo: celibataireW } },\r\n\t\t{ Male: { label: \"Marié\", logo: unionsM }, Female: { label: \"Mariée\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Divorcé\", logo: divorceeM }, Female: { label: \"Divorcée\", logo: divorceeW } },\r\n\t\t{ Male: { label: \"Veuf\", logo: veuveM }, Female: { label: \"Veuve\", logo: veuveW } },\r\n\t\t{ Male: { label: \"Union libre\", logo: unionsM }, Female: { label: \"Union libre\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Pacsé\", logo: unionsM }, Female: { label: \"Pacsée\", logo: unionsW } },\r\n\t];\r\n\tconst gender = [\"\", \"Female\", \"Male\", \"Other\"];\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [family, setFamily] = useState(undefined);\r\n\r\n\tconst [civilData, setCivilData] = useState({\r\n\t\tcivilStatus: relocationDeclaration?.civilStatus,\r\n\t\thouseHoldCount: relocationDeclaration?.houseHoldCount,\r\n\t\thasChildren: relocationDeclaration?.hasChildren,\r\n\t\thasPets: relocationDeclaration?.hasPets,\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
SITUATION FAMILIALE
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 1 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"Célibataire\"\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[1][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 2 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{familyStatusText[2][gender[relocationDeclaration?.gender]].label}\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[2][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 3 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{familyStatusText[3][gender[relocationDeclaration?.gender]].label}\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[3][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 4 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{familyStatusText[4][gender[relocationDeclaration?.gender]].label}\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[4][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 5 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{familyStatusText[5][gender[relocationDeclaration?.gender]].label}\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[5][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, civilStatus: 6 });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{familyStatusText[6][gender[relocationDeclaration?.gender]].label}\r\n\t\t\t\t\t\t\t\t\t

{familyStatusText[6][gender[relocationDeclaration?.gender]].label}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
ENFANTS
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, hasChildren: true });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"oui\"\r\n\t\t\t\t\t\t\t\t\t\t

J'ai des enfants

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, hasChildren: false });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"none\"\r\n\t\t\t\t\t\t\t\t\t\t

Je n'ai pas d'enfants

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Autres
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
0 ? \" active\" : \"\")}>\r\n\t\t\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t\t\t{/*

Autre Personne
Dans Le Foyer

*/}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, houseHoldCount: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
ANIMAUX DOMESTIQUES
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, hasPets: true });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"oui\"\r\n\t\t\t\t\t\t\t\t\t\t

J'ai des animaux domestiques

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetCivilData({ ...civilData, hasPets: false });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"none\"\r\n\t\t\t\t\t\t\t\t\t\t

Je n'ai pas d'animaux domestiques

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tfamilyForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\tif (familyForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\tupdateRelocationDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t...relocationDeclaration,\r\n\t\t\t\t\t\t\t\t\t\tcivilStatus: civilData?.civilStatus,\r\n\t\t\t\t\t\t\t\t\t\thouseHoldCount: civilData?.houseHoldCount,\r\n\t\t\t\t\t\t\t\t\t\thasChildren: civilData?.hasChildren,\r\n\t\t\t\t\t\t\t\t\t\thasPets: civilData?.hasPets,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t).then(() => setEditMode(false));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport autres from \"../../../../../../assets/images/svg/051-parents.svg\";\r\nimport children from \"../../../../../../assets/images/svg/002-children.svg\";\r\nimport noChildren from \"../../../../../../assets/images/svg/002-nochildren.svg\";\r\nimport pets from \"../../../../../../assets/images/svg/003-pets.png\";\r\nimport noPets from \"../../../../../../assets/images/svg/003-nopets.png\";\r\nimport homechildren from \"../../../../../../assets/images/svg/002-homechildren.svg\";\r\n\r\nimport celibataireW from \"../../../../../../assets/images/svg/001-W-celibataire.svg\";\r\nimport unionsW from \"../../../../../../assets/images/svg/001-W-unions.svg\";\r\nimport divorceeW from \"../../../../../../assets/images/svg/001-W-divorcee.svg\";\r\nimport veuveW from \"../../../../../../assets/images/svg/001-W-veuve.svg\";\r\n\r\nimport celibataireM from \"../../../../../../assets/images/svg/001-M-celibataire.svg\";\r\nimport unionsM from \"../../../../../../assets/images/svg/001-M-unions.svg\";\r\nimport divorceeM from \"../../../../../../assets/images/svg/001-M-divorcee.svg\";\r\nimport veuveM from \"../../../../../../assets/images/svg/001-M-veuve.svg\";\r\n\r\nimport { FormFamily } from \"./forms/formFamily\";\r\n\r\nexport const Family = ({ relocationDeclaration, userId, isLoading }) => {\r\n\tconst familyStatusText = [\r\n\t\t{},\r\n\t\t{ Male: { label: \"Célibataire\", logo: celibataireM }, Female: { label: \"Célibataire\", logo: celibataireW } },\r\n\t\t{ Male: { label: \"Marié\", logo: unionsM }, Female: { label: \"Mariée\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Divorcé\", logo: divorceeM }, Female: { label: \"Divorcée\", logo: divorceeW } },\r\n\t\t{ Male: { label: \"Veuf\", logo: veuveM }, Female: { label: \"Veuve\", logo: veuveW } },\r\n\t\t{ Male: { label: \"Union libre\", logo: unionsM }, Female: { label: \"Union libre\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Pacsé\", logo: unionsM }, Female: { label: \"Pacsée\", logo: unionsW } },\r\n\t];\r\n\r\n\tvar civilStatus = relocationDeclaration?.civilStatus;\r\n\t// if (civilStatus == 0) {\r\n\t// \tcivilStatus = 1;\r\n\t// }\r\n\t//#region etat civil\r\n\tconst gender = [\"\", \"Female\", \"Male\", \"Other\"];\r\n\tlet familyStatus = familyStatusText[civilStatus]?.[gender[relocationDeclaration?.gender]];\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

SITUATION FAMILIALE

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"autres\"\r\n\t\t\t\t\t\t

{familyStatus?.label}

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"children\"\r\n\t\t\t\t\t\t

{relocationDeclaration?.hasChildren ? \"\" : \"Pas d'\"}enfants

\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"autres\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

autre personne dans le foyer

\r\n\t\t\t\t\t\t\t

{relocationDeclaration?.houseHoldCount} personne(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"pets\"\r\n\t\t\t\t\t\t

{relocationDeclaration?.hasPets ? \"\" : \"Pas d'\"}animaux domestiques

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useState, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\nimport { RegexFields } from \"../../../../../../../constants/utils/regexFields\";\r\n\r\nimport { DateWithModal } from \"../../../../../../../_common/dateWithModal\";\r\nimport RelocationChild from \"../../../../../../../constants/models/events/relocationChild\";\r\nimport { updateRelocationDeclaration } from \"../../../../../../../actions/events-api\";\r\nimport * as loadings from \"../../../../../../../constants/loadings/relocationDeclaration\";\r\nimport $ from \"jquery\";\r\n\r\nexport const FormFamilyEnv = ({ relocationDeclaration, userId, isLoading, setEditMode }) => {\r\n\tconst form = useRef(null);\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst today = new Date();\r\n\r\n\tconst initialState = {\r\n\t\titems: relocationDeclaration?.children || [],\r\n\t\tshowNewChildForm: false,\r\n\t\tnewChildForm: { name: undefined, age: undefined, birthDate: undefined, isHandicaped: false, isDependent: false, isStudent: false, isEmployed: false },\r\n\t};\r\n\r\n\tconst [childrenState, setChildrenState] = useState(initialState);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (childrenState.newChildForm.birthDate) {\r\n\t\t\tsetChildrenState({ ...childrenState, newChildForm: { ...childrenState.newChildForm, age: differenceInYears(today, new Date(childrenState.newChildForm.birthDate)) } });\r\n\t\t}\r\n\t}, [childrenState.newChildForm.birthDate]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t\t\t{/* { childrenState.showNewChildForm === true ? '' : */}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetChildrenState({ ...childrenState, showNewChildForm: true });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAjouter un enfant\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* } */}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{childrenState.showNewChildForm === true ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tsetChildrenState({ ...childrenState, newChildForm: { ...childrenState.newChildForm, name: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setChildrenState({ ...childrenState, newChildForm: { ...childrenState.newChildForm, birthDate: d } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
Handicapé(e)
\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
A charge
\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
Étudiant(e)
\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
Salarié(e)
\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tform.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\tif (form.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetChildrenState({\r\n\t\t\t\t\t\t\t\t\t\t\t\t...childrenState,\r\n\t\t\t\t\t\t\t\t\t\t\t\titems: childrenState.items.concat(new RelocationChild(childrenState.newChildForm)),\r\n\t\t\t\t\t\t\t\t\t\t\t\tshowNewChildForm: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\tnewChildForm: { name: undefined, age: undefined, birthDate: undefined, isHandicaped: false, isDependent: false, isStudent: false, isEmployed: false },\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tAjouter\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetChildrenState({ ...childrenState, showNewChildForm: false, newChildForm: { name: undefined, birthDate: undefined, isHandicaped: false, isDependent: false, isStudent: false, isEmployed: false } });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tAnnuler\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t{childrenState.items.length > 0 ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{childrenState.items.map((child, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t
1 ? \" mt-2\" : \"\")} key={index}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

Nom: {child.name}

\r\n\t\t\t\t\t\t\t\t\t\t\t

Âge: {differenceInYears(today, new Date(child.birthDate))}

\r\n\t\t\t\t\t\t\t\t\t\t\t

Handicapé(e): {child.isHandicaped ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t

A charge: {child.isDependent ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t

Étudiant(e): {child.isStudent ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t

Salarié(e): {child.isEmployed ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetChildrenState({ ...childrenState, items: childrenState.items.filter((c) => c !== child), showNewChildForm: false, newChildForm: { name: undefined, birthDate: undefined, isHandicaped: false, isDependent: false, isStudent: false, isEmployed: false } });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tsetChildrenState(initialState);\r\n\t\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tAnnuler\r\n\t\t\t\t\t\r\n\t\t\t\t\t{childrenState.showNewChildForm === true ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\tupdateRelocationDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t...relocationDeclaration,\r\n\t\t\t\t\t\t\t\t\t\tchildren: childrenState.items,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t).then(() => setEditMode(false));\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport noChildren from \"../../../../../../assets/images/svg/002-nochildren.svg\";\r\nimport children from \"../../../../../../assets/images/svg/002-children.svg\";\r\nimport homechildren from \"../../../../../../assets/images/svg/002-homechildren.svg\";\r\nimport { FormFamilyEnv } from \"./forms/formFamilyEnv\";\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\n\r\nexport const FamilyEnvironment = ({ relocationDeclaration, userId, isLoading }) => {\r\n\tconst today = new Date();\r\n\tlet minorChildren = relocationDeclaration?.children?.filter((c) => differenceInYears(today, new Date(c.birthDate)) < 18) || [];\r\n\tlet youngAdults = relocationDeclaration?.children?.filter((c) => differenceInYears(today, new Date(c.birthDate)) >= 18 && differenceInYears(today, new Date(c.birthDate)) <= 20) || [];\r\n\tlet handicapedChildren = relocationDeclaration?.children?.filter((c) => c.isHandicaped === true) || [];\r\n\tlet dependantChildren = relocationDeclaration?.children?.filter((c) => c.isDependent === true) || [];\r\n\tlet studentChildren = relocationDeclaration?.children?.filter((c) => c.isStudent === true) || [];\r\n\tlet employedChildren = relocationDeclaration?.children?.filter((c) => c.isEmployed === true) || [];\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Environnement familial et privé

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

enfants

\r\n\t\t\t\t\t\t\t

{relocationDeclaration?.children?.length}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"-18\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

< 18 ans

\r\n\t\t\t\t\t\t\t

{minorChildren.length} mineur(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"-18\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

18 à 20 ans

\r\n\t\t\t\t\t\t\t

{youngAdults.length} majeur(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"+21\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

> 20 ans

\r\n\t\t\t\t\t\t\t

{relocationDeclaration?.children?.length - minorChildren?.length - youngAdults?.length} majeur(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"handicapée\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

handicapée(s)

\r\n\t\t\t\t\t\t\t

{handicapedChildren?.length} personne(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"a\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

à charge

\r\n\t\t\t\t\t\t\t

{dependantChildren?.length} personne(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"etudiant\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

étudiante(s)

\r\n\t\t\t\t\t\t\t

{studentChildren?.length} personne(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"salarie\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

salariée(s)

\r\n\t\t\t\t\t\t\t

{employedChildren?.length} personne(s)

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport retraite from \"../../../../../../../assets/images/svg/111-rocking-chair.png\";\r\nimport activite from \"../../../../../../../assets/images/svg/035-id-card.svg\";\r\nimport pole from \"../../../../../../../assets/images/svg/066-job-interview.svg\";\r\nimport autre from \"../../../../../../../assets/images/svg/034-clipboard.svg\";\r\nimport home from \"../../../../../../../assets/images/svg/069-home.svg\";\r\nimport university from \"../../../../../../../assets/images/svg/146-university.png\";\r\nimport {ProfessionOptions} from '../../../../../../../constants/utils/connectionTypes';\r\nimport {updateRelocationDeclaration} from '../../../../../../../actions/events-api';\r\nimport * as loadings from '../../../../../../../constants/loadings/relocationDeclaration';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nexport const FormSituationPro = ({ relocationDeclaration, userId, isLoading, setEditMode, getDeclaration }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst activityForm = useRef(null);\r\n\tconst [professionSelected, setProfessionSelected] = useState(relocationDeclaration.professionalSituation);\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.slice(), ProfessionOptions.active]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.filter((p) => p !== ProfessionOptions.active)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"activite\"\r\n\t\t\t\t\t\t\t\t

EN ACTIVITÉ(E)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.slice(), ProfessionOptions.retired]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.filter((p) => p !== ProfessionOptions.retired)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"retraite\"\r\n\t\t\t\t\t\t\t\t

RETRAITÉ(E)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.slice(), ProfessionOptions.unemployed]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.filter((p) => p !== ProfessionOptions.unemployed)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"pole\"\r\n\t\t\t\t\t\t\t\t

À FRANCE TRAVAIL

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.other) && !professionSelected.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.slice(), ProfessionOptions.other]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.filter((p) => p !== ProfessionOptions.other)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t

autre

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected?.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([ProfessionOptions.none]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected?.filter((p) => p !== ProfessionOptions.none)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t

Sans activité

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!professionSelected.includes(ProfessionOptions.student)) {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([ProfessionOptions.student]);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetProfessionSelected([...professionSelected.filter((p) => p !== ProfessionOptions.student)]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"student\"\r\n\t\t\t\t\t\t\t\t

Étudiant(e)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\tactivityForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\tif (activityForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\tupdateRelocationDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t...relocationDeclaration,\r\n\t\t\t\t\t\t\t\t\t\tprofessionalSituation: professionSelected,\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t).then(() => {\r\n\t\t\t\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport retraite from \"../../../../../../assets/images/svg/111-rocking-chair.png\";\r\nimport activite from \"../../../../../../assets/images/svg/035-id-card.svg\";\r\nimport pole from \"../../../../../../assets/images/svg/066-job-interview.svg\";\r\nimport autre from \"../../../../../../assets/images/svg/034-clipboard.svg\";\r\nimport home from \"../../../../../../assets/images/svg/069-home.svg\";\r\nimport university from \"../../../../../../assets/images/svg/146-university.png\";\r\nimport { FormSituationPro } from \"./forms/formSituationPro\";\r\nimport { ProfessionOptions } from \"../../../../../../constants/utils/connectionTypes\";\r\nexport const SituationPro = ({ relocationDeclaration, userId, isLoading, getDeclaration }) => {\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

SITUATION PROFESSIONNELLE

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 2} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

En activite

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

RETRAITÉ(E)

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

À FRANCE TRAVAIL

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

Autre activité

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

Étudiant(e)

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t

Sans activité

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","export default __webpack_public_path__ + \"static/media/110-hotel-1.a70f35d8.svg\";","import React, { useRef, useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../../../constants/utils/regexFields';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport * as loadings from '../../../../../../../../constants/loadings/relocationDeclaration';\r\nimport {createServiceData, updateServiceData, deleteServiceData} from '../../../../../../../../actions/facilita-api';\r\nimport {ConnectionTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\n\r\n\r\n\r\n\r\nexport const ModalActivitySection = ({ activity, initCollapsedState, index, isLoading, removeFromList, relocationDeclaration }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tlet initState = {\r\n\t\t...activity.payload,\r\n\t};\r\n\tinitCollapsedState = R.isNil(activity.collapsed) ? initCollapsedState : activity.collapsed;\r\n\r\n\tconst activityForm = useRef(null);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tlet hasCompanySavingsPlanReference = false;\r\n\tif (!R.isNil(payload.companySavingsPlanReference) && payload.companySavingsPlanReference !== \"\") {\r\n\t\thasCompanySavingsPlanReference = true;\r\n\t}\r\n\r\n\tconst [showSavings, setShowSavings] = useState(hasCompanySavingsPlanReference);\r\n\t// const [showAccident, setShowAccident] = useState(relocationDeclaration?.diedInActivityId === activity.id);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Activité principale\" : \"Autre activité\"}

\r\n\t\t\t\t\t{!R.isNil(payload.companyName) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{payload.companyName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
nom de l’entreprise
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyName: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressStreet1: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressStreet2: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{payload.companyAddressCountry === null || payload.companyAddressCountry === \"FR\" || payload.companyAddressCountry === \"GF\" || payload.companyAddressCountry === \"PF\" || payload.companyAddressCountry === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressPostalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressPostalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressLocality: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, companyAddressCountry: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
statut professionnel
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, function: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, contractType: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
Plan d'épargne entreprise
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t setShowSavings(!showSavings)} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{showSavings ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, companySavingsPlanReference: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t{/*
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
DÉCÈS SUITE À UN ACCIDENT DE TRAVAIL
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setShowAccident(!showAccident)} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + activity.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + activity.serviceId) || isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tactivityForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tif (activityForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id) || activity.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tcreateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\tremoveFromList(index);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.activity));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport {FrenchTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../../../constants/models/serviceData';\r\n\r\nimport {ModalActivitySection} from './activitySection';\r\n\r\nexport const FormActivity = ({ activities, isLoading, userId, relocationDeclaration, setEditMode }) => {\r\n\tconst [activityList, setActivityList] = useState([...activities]);\r\n\tuseEffect(() => {\r\n\t\tsetActivityList([...activities]);\r\n\t}, [activities]);\r\n\r\n\tfunction removeFromList(index) {\r\n\t\tsetActivityList(activityList.filter((a) => a !== activityList[index]));\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{/*

Modifier les champs qui ne sont pas mis à jour

*/}\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t

En activité

\r\n\r\n\t\t\t\t\t{activityList.map((activity, index) => {\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t})}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Ajouter une autre ACTIVITÉ

\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\t\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\t\t\t\t\tserviceType: FrenchTypes.activity,\r\n\t\t\t\t\t\t\t\t\tserviceId: \"activite\" + activityList.length,\r\n\t\t\t\t\t\t\t\t\tpayload: {\r\n\t\t\t\t\t\t\t\t\t\ttype: \"Activite\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyName: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyAddressStreet1: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyAddressStreet2: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyAddressPostalCode: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyAddressLocality: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcompanyAddressCountry: \"FR\",\r\n\t\t\t\t\t\t\t\t\t\tfunction: \"\",\r\n\t\t\t\t\t\t\t\t\t\tcontractType: \"CDD\",\r\n\t\t\t\t\t\t\t\t\t\tcompanySavingsPlanReference: \"\",\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tsetActivityList([...activityList, { ...serviceData, collapsed: true }]);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAjouter une autre ACTIVITÉ\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetActivityList([...activities]);\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tactivityForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\tsetWasValidated(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t */}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport building from \"../../../../../../assets/images/svg/110-hotel-1.svg\";\r\nimport { FormActivity } from \"./forms/formActivity\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const Activity = ({ activities, isLoading, userId, relocationDeclaration }) => {\r\n\r\n\t// activities = R.sortBy(R.prop(\"position\"), activities) || [];\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{/*
2
*/}\r\n\t\t\t\t\t\tEn activite(e)\r\n\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{/*
*/}\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t{!R.isNil(activities) && activities.length > 0 ? (\r\n\t\t\t\t\t\tactivities.map((activity) => {\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t\t\t\t\t

{activity.payload.companyName}

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.companyAddressStreet1}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(activity.payload.companyAddressStreet2) && activity.payload.companyAddressStreet2 !== \"\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{activity.payload.companyAddressStreet2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.companyAddressPostalCode} {activity.payload.companyAddressLocality}, {activity.payload.companyAddressCountry}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Intitulé du poste

\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.function}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.contractType === \"Trial\" ? \"Autre\" : activity.payload.contractType}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Plan d'épargne entreprise

\r\n\t\t\t\t\t\t\t\t\t\t

{activity.payload.companySavingsPlanReference !== \"\" ? \"Oui\" : \"Non\"}

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n

DÉCÈS SUITE À UN ACCIDENT DE TRAVAIL OU MALADIE PROFESSIONNELLE

\r\n

{activity.id === relocationDeclaration?.diedInActivityId ? 'Oui' : 'Non'}

\r\n
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

C'est vide...

\r\n\t\t\t\t\t\t\t\t

Compléter votre situation professionnelle

\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tclassName=\"btn btn-white-primary text-primary\">\r\n\t\t\t\t\t\t\t\t\tAjouter\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../../../constants/utils/regexFields';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport * as loadings from '../../../../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport {createServiceData, updateServiceData, deleteServiceData} from '../../../../../../../../actions/facilita-api';\r\nimport {ConnectionTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\n\r\nimport { PostalCityInput } from \"../../../../../../../../_common/postalCityInput\";\r\n\r\nexport const ModalOtherActivitySection = ({activity, initCollapsedState, index, isLoading, removeFromList}) => {\r\n const dispatch = useDispatch();\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n let initState = {\r\n ...activity.payload\r\n };\r\n initCollapsedState = R.isNil(activity.collapsed) ? initCollapsedState : activity.collapsed;\r\n\r\n const activityForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [payload, setPayload] = useState(initState);\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n let hasCompanySavingsPlanReference = false;\r\n if (!R.isNil(payload.companySavingsPlanReference) && payload.companySavingsPlanReference !== \"\") {\r\n hasCompanySavingsPlanReference = true;\r\n }\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n \r\n return (\r\n\t\t\t
\r\n\t\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Autre activité

\r\n\t\t\t\t\t\t{!R.isNil(payload.name) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{payload.name}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
nom de l’entreprise
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, function: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + activity.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + activity.serviceId) ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tactivityForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\tif (activityForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id) || activity.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcreateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\tremoveFromList(index);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.activity));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n};","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport {FrenchTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../../../constants/models/serviceData';\r\nimport AddressInfo from '../../../../../../../../constants/models/addressInfo';\r\n\r\nimport {ModalOtherActivitySection} from './otherActivitySection';\r\n\r\nexport const FormOtherActivity = ({ activities, isLoading, userId, setEditMode }) => {\r\n\tconst [activityList, setActivityList] = useState([...activities]);\r\n\tuseEffect(() => {\r\n\t\tsetActivityList([...activities]);\r\n\t}, [activities]);\r\n\r\n\tfunction removeFromList(index) {\r\n\t\tsetActivityList(activityList.filter((a) => a !== activityList[index]));\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{/*

Modifier les champs qui ne sont pas mis à jour

*/}\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t

En activité

\r\n\r\n\t\t\t\t\t{activityList.map((activity, index) => {\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t})}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Ajouter une autre ACTIVITÉ

\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\t\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\t\t\t\t\tserviceType: FrenchTypes.otherActivity,\r\n\t\t\t\t\t\t\t\t\tserviceId: FrenchTypes.otherActivity + activityList.length,\r\n\t\t\t\t\t\t\t\t\tpayload: {\r\n\t\t\t\t\t\t\t\t\t\ttype: FrenchTypes.otherActivity,\r\n\t\t\t\t\t\t\t\t\t\tname: \"\",\r\n\t\t\t\t\t\t\t\t\t\taddress: new AddressInfo({ addressCountry: \"FR\", streetAddress: \"\", streetAddress2: \"\", postalCode: \"\", addressLocality: \"\" }),\r\n\t\t\t\t\t\t\t\t\t\tfunction: \"\",\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tsetActivityList([...activityList, { ...serviceData, collapsed: true }]);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAjouter une autre ACTIVITÉ\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetActivityList([...activities]);\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport building from \"../../../../../../assets/images/svg/110-hotel-1.svg\";\r\nimport { FormOtherActivity } from \"./forms/formOtherActivity\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const OtherActivity = ({ activities, isLoading, userId, relocationDeclaration }) => {\r\n\tactivities = R.sortBy(R.prop(\"position\"), activities);\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{/*
2
*/}\r\n\t\t\t\t\t\tAutre activité\r\n\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 2} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{/*
*/}\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t{!R.isNil(activities) && activities.length > 0 ? (\r\n\t\t\t\t\t\tactivities.map((activity) => {\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t\t\t\t\t

{activity.payload.name}

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.address.streetAddress}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.address.streetAddress2 !== \"\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{activity.payload.address.streetAddress2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{activity.payload.address.postalCode} {activity.payload.address.addressLocality}, {activity.payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Intitulé du poste

\r\n\t\t\t\t\t\t\t\t\t\t

{activity.payload.function}

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

C'est vide...

\r\n\t\t\t\t\t\t\t\t

Compléter votre situation professionnelle

\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tclassName=\"btn btn-white-primary text-primary\">\r\n\t\t\t\t\t\t\t\t\tAjouter\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport {RegexFields} from '../../../../../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const RetraiteCustomForm = ({payload, setPayload, index}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} required />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress3: e.target.value } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} pattern={RegexFields.frenchZipCode} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport countriesList from 'iso-3166-1-alpha-2';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, PensionProfessionalCategoryMapping } from '../../../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport { createServiceData, updateServiceData, deleteServiceData } from '../../../../../../../../actions/facilita-api';\r\nimport * as R from 'ramda';\r\nimport * as loadings from '../../../../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { RetraiteCustomForm } from './retraiteCustomForm';\r\nimport OtherActivity from '../../../../../../../../constants/models/servicePayloads/otherActivity';\r\n\r\n\r\nexport const ModalRetraiteSection = ({ pension, initCollapsedState, index, isLoading, removeFromList, pensionDetails, countries }) => {\r\n const dispatch = useDispatch();\r\n const eqValues = R.compose(R.isEmpty, R.symmetricDifference);\r\n initCollapsedState = R.isNil(pension.collapsed) ? initCollapsedState : pension.collapsed;\r\n\r\n let initState = {\r\n ...pension.payload\r\n };\r\n\r\n const retraiteForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [payload, setPayload] = useState(initState);\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n let showCustomBasePensionFormInit = false;\r\n let showCustomComplementaryPensionFormInit = false;\r\n let showBasePensionFormInit = true;\r\n let showComplementaryPensionFormInit = true;\r\n\r\n\r\n if (!R.isNil(pension.id)) {\r\n\r\n if (!R.isNil(pension.payload.customPensionBase) && !R.isNil(pension.payload.customPensionBase.name)) {\r\n showCustomBasePensionFormInit = true;\r\n }\r\n if (!R.isNil(pension.payload.customPensionComplement) && !R.isNil(pension.payload.customPensionComplement.name)) {\r\n showCustomComplementaryPensionFormInit = true;\r\n }\r\n if ((R.isNil(pension.payload.pensionBaseServiceId) || pension.payload.pensionBaseServiceId === \"\") && R.isNil(pension.payload.customPensionBase.name)) {\r\n showBasePensionFormInit = false;\r\n }\r\n if ((R.isNil(pension.payload.pensionComplementServiceId) || pension.payload.pensionComplementServiceId === \"\") && R.isNil(pension.payload.customPensionComplement.name)) {\r\n showComplementaryPensionFormInit = false;\r\n }\r\n\r\n }\r\n\r\n const [showCustomBasePensionForm, setShowCustomBasePensionForm] = useState(showCustomBasePensionFormInit);\r\n const [showCustomComplementaryPensionForm, setShowCustomComplementaryPensionForm] = useState(showCustomComplementaryPensionFormInit);\r\n\r\n const [showBasePensionForm, setShowBasePensionForm] = useState(showBasePensionFormInit);\r\n const [showComplementaryPensionForm, setShowComplementaryPensionForm] = useState(showComplementaryPensionFormInit);\r\n\r\n let pensionsComplementary = undefined;\r\n let selectedPensionComplementaryInit = undefined;\r\n let selectedPensionComplementaryBranchInit = undefined;\r\n let selectedPensionBaseBranchInit = undefined;\r\n\r\n let branchComplementary = undefined;\r\n let pensionBaseInit = undefined;\r\n\r\n let selectedSubCategoryInit = undefined;\r\n let selectedCategoryInit = undefined;\r\n if (!R.isNil(payload.professionalCategory) && payload.professionalCategory !== \"\") {\r\n pensionBaseInit = pensionDetails.find(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Base\"));\r\n if (!R.isNil(pensionBaseInit)) {\r\n selectedPensionBaseBranchInit = pensionBaseInit.branches.find(b => b.id === payload.pensionBaseServiceId);\r\n }\r\n\r\n pensionsComplementary = pensionDetails.filter(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Complementary\"));\r\n if (payload.pensionComplementServiceId !== \"\") {\r\n selectedPensionComplementaryInit = pensionsComplementary.find(p => p.branches.find(b => b.id === payload.pensionComplementServiceId) !== undefined);\r\n\r\n if (!R.isNil(selectedPensionComplementaryInit)) {\r\n selectedPensionComplementaryBranchInit = selectedPensionComplementaryInit.branches.find(b => b.id === payload.pensionComplementServiceId);\r\n }\r\n\r\n } else {\r\n selectedPensionComplementaryBranchInit = undefined;\r\n }\r\n\r\n PensionProfessionalCategoryMapping.forEach((cat) => {\r\n let matchingOption = cat.options.find(o => o.value === payload.professionalCategory);\r\n if (!R.isNil(matchingOption)) {\r\n selectedSubCategoryInit = matchingOption;\r\n selectedCategoryInit = cat;\r\n }\r\n });\r\n // if(payload.professionalCategory === \"Autres\"){\r\n // selectedProfessionalSubcategoryTitle = \"Autres\";\r\n // }\r\n }\r\n\r\n const [selectedCategory, setSelectedCategory] = useState(selectedCategoryInit);\r\n const [selectedSubCategory, setSelectedSubCategory] = useState(selectedSubCategoryInit);\r\n const [selectedPensionBaseBranch, setSelectedPensionBaseBranch] = useState(selectedPensionBaseBranchInit);\r\n const [selectedPensionComplementary, setSelectedPensionComplementary] = useState(selectedPensionComplementaryInit);\r\n const [selectedPensionComplementaryBranch, setSelectedPensionComplementaryBranch] = useState(selectedPensionComplementaryBranchInit);\r\n\r\n const [subcategories, setSubcategories] = useState([]);\r\n const [pensionBase, setPensionBase] = useState(pensionBaseInit);\r\n const [pensionComplementary, setPensionComplementary] = useState(pensionsComplementary);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(selectedCategory)) {\r\n setSubcategories(selectedCategory.options);\r\n setSelectedSubCategory(selectedCategory.options[0]);\r\n }\r\n\r\n }, [selectedCategory]);\r\n\r\n useEffect(() => {\r\n if (R.isNil(selectedSubCategory))\r\n return;\r\n\r\n if (selectedSubCategory.value === 'Autres') {\r\n setShowCustomBasePensionForm(true);\r\n setShowCustomComplementaryPensionForm(true);\r\n setPensionBase([]);\r\n return;\r\n }\r\n\r\n let pensionBaseSelected = pensionDetails.find(s => !R.isNil(s.mapping[selectedSubCategory.value]) && s.mapping[selectedSubCategory.value].includes(\"Base\"));\r\n if (pensionBaseSelected !== pensionBaseInit) {\r\n if (!R.isNil(pensionBaseSelected)) {\r\n setPensionBase(pensionBaseSelected);\r\n }\r\n }\r\n\r\n\r\n let pensionComplementarySelected = pensionDetails.filter(s => !R.isNil(s.mapping[selectedSubCategory.value]) && s.mapping[selectedSubCategory.value].includes(\"Complementary\"));\r\n let names = pensionComplementarySelected.map((p) => p.name);\r\n let namesLoaded = R.isNil(pensionComplementary) ? [] : pensionComplementary.map((p) => p.name);\r\n if (!R.isNil(pensionComplementarySelected)) {\r\n if (!eqValues(names, namesLoaded)) {\r\n setPensionComplementary(pensionComplementarySelected);\r\n setSelectedPensionComplementary(pensionComplementarySelected[0]);\r\n if (pensionComplementarySelected[0].branches.length > 1) {\r\n setSelectedPensionComplementaryBranch(undefined);\r\n } else {\r\n setSelectedPensionComplementaryBranch(pensionComplementarySelected[0].branches[0]);\r\n }\r\n }\r\n\r\n\r\n //setSelectedPensionComplementaryBranch(pensionComplementarySelected[0].branches[0]);\r\n }\r\n }, [selectedSubCategory, selectedCategory]);\r\n\r\n useEffect(() => {\r\n setPayload({\r\n ...payload,\r\n professionalCategory: !R.isNil(selectedSubCategory) ? selectedSubCategory.value : undefined,\r\n pensionBaseServiceId: !R.isNil(selectedPensionBaseBranch) ? selectedPensionBaseBranch.id : undefined,\r\n pensionComplementServiceId: !R.isNil(selectedPensionComplementaryBranch) ? selectedPensionComplementaryBranch.id : undefined,\r\n });\r\n }, [selectedSubCategory, selectedPensionBaseBranch, selectedPensionComplementaryBranch]);\r\n\r\n\r\n\r\n return (\r\n
\r\n
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n
\r\n

Retraite

\r\n {\r\n !R.isNil(selectedSubCategory) ?\r\n {selectedSubCategory.title}\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Catégorie sociaux professionelle avant la retraite
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {(!R.isNil(selectedCategory) && selectedCategory.title !== \"Autres\" ?\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n :\r\n ''\r\n )}\r\n {!R.isNil(selectedSubCategory) && !R.isNil(pensionBase) ?\r\n \r\n {\r\n showBasePensionForm ?\r\n \r\n
\r\n
\r\n
Régime de base\r\n {\r\n showComplementaryPensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n }\r\n
\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomBasePensionForm ?\r\n \r\n :\r\n \r\n }\r\n\r\n
\r\n }\r\n\r\n
\r\n\r\n {\r\n showCustomBasePensionForm ?\r\n setPayload({ ...payload, customPensionBase: val })} index={index} />\r\n\r\n :\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n : \"\"\r\n }\r\n\r\n {\r\n showComplementaryPensionForm ?\r\n \r\n\r\n
\r\n
\r\n
Régime complémentaire\r\n {\r\n showBasePensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n\r\n }\r\n
\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomComplementaryPensionForm ?\r\n \r\n :\r\n \r\n }\r\n
\r\n }\r\n
\r\n\r\n\r\n {\r\n showCustomComplementaryPensionForm ?\r\n setPayload({ ...payload, customPensionComplement: val })} index={index} />\r\n :\r\n
\r\n
\r\n
\r\n \r\n {\r\n pensionComplementary.length === 1 ?\r\n \r\n :\r\n \r\n }\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n : \"\"\r\n }\r\n\r\n
\r\n :\r\n ''\r\n }\r\n\r\n\r\n
\r\n
\r\n {\r\n isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + pension.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + pension.serviceId) ?\r\n \r\n\r\n :\r\n \r\n }\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../../../constants/utils/regexFields';\r\nimport OtherActivity from '../../../../../../../../constants/models/servicePayloads/otherActivity';\r\nimport {FrenchTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../../../constants/models/serviceData';\r\nimport {ModalRetraiteSection} from './retraiteSection';\r\n\r\nexport const FormRetraite = ({ pensions, isLoading, userId, pensionDetails, setEditMode }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst [pensionList, setPensionList] = useState([...pensions]);\r\n\tuseEffect(() => {\r\n\t\tsetPensionList([...pensions]);\r\n\t}, [pensions]);\r\n\r\n\tfunction removeFromList(index) {\r\n\t\tsetPensionList(pensionList.filter((a) => a !== pensionList[index]));\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Retraité

\r\n\r\n\t\t\t\t\t{pensionList.map((pension, index) => {\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Ajouter une autre RETRAITE

\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\t\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\t\t\t\t\tserviceType: FrenchTypes.pension,\r\n\t\t\t\t\t\t\t\t\tserviceId: \"pension\" + pensionList.length,\r\n\t\t\t\t\t\t\t\t\tpayload: {\r\n\t\t\t\t\t\t\t\t\t\tprofessionalCategory: null,\r\n\t\t\t\t\t\t\t\t\t\tpensionBaseServiceId: null,\r\n\t\t\t\t\t\t\t\t\t\tpensionComplementServiceId: null,\r\n\t\t\t\t\t\t\t\t\t\tcustomPensionBase: {\r\n\t\t\t\t\t\t\t\t\t\t\tname: null,\r\n\t\t\t\t\t\t\t\t\t\t\taddress: {\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress2: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress3: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tpostalCode: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\taddressLocality: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\taddressCountry: null,\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\tfunction: null,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\tcustomPensionComplement: {\r\n\t\t\t\t\t\t\t\t\t\t\tname: null,\r\n\t\t\t\t\t\t\t\t\t\t\taddress: {\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress2: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tstreetAddress3: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\tpostalCode: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\taddressLocality: null,\r\n\t\t\t\t\t\t\t\t\t\t\t\taddressCountry: null,\r\n\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\tfunction: null,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tsetPensionList([...pensionList, { ...serviceData, collapsed: true }]);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAjouter une autre RETRAITE\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetPensionList([...pensions]);\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tFermer\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","export default __webpack_public_path__ + \"static/media/105-profile.f3892e9e.svg\";","import React, { useState, useEffect } from 'react';\r\nimport * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport { FormRetraite } from \"./forms/formRetraite\";\r\nimport categoryPro from '../../../../../../assets/images/svg/105-profile.svg';\r\nimport { PensionProfessionalCategoryMapping, FrenchTypes } from '../../../../../../constants/utils/connectionTypes';\r\nimport * as urls from '../../../../../../constants/webapi/services';\r\n\r\n\r\n\r\nexport const Retraite = ({ pensions, isLoading, userId, relocationDeclaration }) => {\r\n const [pensionDetails, setPensionDetails] = useState([]);\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n const getAllPensionsDetails = () => {\r\n return axios.get(urls.searchServiceUrl(FrenchTypes.pension))\r\n .then(function (response) {\r\n setPensionDetails(response.data.items);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getAllPensionsDetails();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n if (pensionDetails.length === 0) {\r\n return \"\";\r\n }\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t{/*
1
*/}\r\n\t\t\t\t\t\t\tRetraité(e)\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t 2} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{/*
*/}\r\n\t\t\t\t
\r\n\t\t\t\t{!R.isNil(pensions) && pensions.length > 0 ? (\r\n\t\t\t\t\tpensions.map((pension) => {\r\n\t\t\t\t\t\tif (pensionDetails.length === 0) {\r\n\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tlet category = PensionProfessionalCategoryMapping.find((c) => c.options.find((o) => o.value === pension.payload.professionalCategory) !== undefined);\r\n\t\t\t\t\t\tlet subcategory = category.options.find((o) => o.value === pension.payload.professionalCategory);\r\n\t\t\t\t\t\tlet pensionBaseDetails = undefined;\r\n\t\t\t\t\t\tlet pensionComplementDetails = undefined;\r\n\t\t\t\t\t\tif (pension.payload.professionalCategory !== \"Autres\") {\r\n\t\t\t\t\t\t\tpensionDetails.forEach((o) => {\r\n\t\t\t\t\t\t\t\tlet pensionBaseBranch = o.branches.find((b) => b.id === pension.payload.pensionBaseServiceId);\r\n\t\t\t\t\t\t\t\tif (!R.isNil(pensionBaseBranch)) {\r\n\t\t\t\t\t\t\t\t\tpensionBaseDetails = { ...pensionBaseBranch, regime: o.name };\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlet pensionComplementBranch = o.branches.find((b) => b.id === pension.payload.pensionComplementServiceId);\r\n\t\t\t\t\t\t\t\tif (!R.isNil(pensionComplementBranch)) {\r\n\t\t\t\t\t\t\t\t\tpensionComplementDetails = { ...pensionComplementBranch, regime: o.name };\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!R.isNil(pensionBaseDetails) && !R.isNil(pensionComplementBranch)) {\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tpensionBaseDetails = pension.payload.customPensionBase;\r\n\t\t\t\t\t\t\tpensionBaseDetails.regime = subcategory.value;\r\n\r\n\t\t\t\t\t\t\tpensionComplementDetails = pension.payload.customPensionComplement;\r\n\t\t\t\t\t\t\tpensionComplementDetails.regime = subcategory.value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!R.isNil(pension.payload.customPensionBase.name) || !R.isNil(pension.payload.customPensionComplement.name)) {\r\n\t\t\t\t\t\t\tpensionBaseDetails = pension.payload.customPensionBase;\r\n\t\t\t\t\t\t\tpensionBaseDetails.regime = subcategory.value;\r\n\r\n\t\t\t\t\t\t\tpensionComplementDetails = pension.payload.customPensionComplement;\r\n\t\t\t\t\t\t\tpensionComplementDetails.regime = subcategory.value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t{!editMode ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{subcategory.title}

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{R.isNil(pensionBaseDetails) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Régime de base

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{pensionBaseDetails.regime}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{pensionBaseDetails.name}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionBaseDetails.address.streetAddress && }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionBaseDetails.address.streetAddress}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(pensionBaseDetails.address.streetAddress2) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionBaseDetails.address.streetAddress2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(pensionBaseDetails.address.streetAddress3) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionBaseDetails.address.streetAddress3}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionBaseDetails.address.postalCode} {pensionBaseDetails.address.addressLocality}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{R.isNil(pensionComplementDetails) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Régime complémentaire

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{pensionComplementDetails.regime}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{pensionComplementDetails.name}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionComplementDetails.address.streetAddress && }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionComplementDetails.address.streetAddress}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(pensionComplementDetails.address.streetAddress2) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionComplementDetails.address.streetAddress2}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(pensionComplementDetails.address.streetAddress3) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionComplementDetails.address.streetAddress3}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{pensionComplementDetails.address.postalCode} {pensionComplementDetails.address.addressLocality}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t})\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t{!editMode ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

C'est vide...

\r\n\t\t\t\t\t\t\t\t\t

Compléter votre situation professionnelle

\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"btn btn-white-primary text-primary\">\r\n\t\t\t\t\t\t\t\t\t\tAjouter\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t);\r\n};","import React, { useRef, useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport { RegexFields } from \"../../../../../../../../constants/utils/regexFields\";\r\nimport * as R from \"ramda\";\r\nimport $ from \"jquery\";\r\nimport * as loadings from \"../../../../../../../../constants/loadings/relocationDeclaration\";\r\nimport { createServiceData, updateServiceData, deleteServiceData } from \"../../../../../../../../actions/facilita-api\";\r\nimport { ConnectionTypes } from \"../../../../../../../../constants/utils/connectionTypes\";\r\n\r\nimport { PostalCityInput } from \"../../../../../../../../_common/postalCityInput\";\r\n\r\nexport const ModalEducationInstitutionSection = ({ educationInstitution, initCollapsedState, index, isLoading, removeFromList, relocationDeclaration }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tlet initState = {\r\n\t\t...educationInstitution.payload,\r\n\t\taddress: {\r\n\t\t\tstreetAddress: educationInstitution.payload?.address?.streetAddress || \"\",\r\n\t\t\tstreetAddress2: educationInstitution.payload?.address?.streetAddress2 || \"\",\r\n\t\t\tpostalCode: educationInstitution.payload?.address?.postalCode || \"\",\r\n\t\t\taddressLocality: educationInstitution.payload?.address?.addressLocality || \"\",\r\n\t\t\taddressCountry: educationInstitution.payload?.address?.addressCountry || \"FR\",\r\n\t\t},\r\n\t};\r\n\tinitCollapsedState = R.isNil(educationInstitution.collapsed) ? initCollapsedState : educationInstitution.collapsed;\r\n\r\n\tconst educationInstitutionForm = useRef(null);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Établissement principal\" : \"Autre établissement\"}

\r\n\t\t\t\t\t{!R.isNil(payload.name) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{payload.name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
nom de l’entreprise
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPayload({ ...payload, name: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{payload.companyAddressCountry === null || payload.companyAddressCountry === \"FR\" || payload.companyAddressCountry === \"GF\" || payload.companyAddressCountry === \"PF\" || payload.companyAddressCountry === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
Cursus
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, level: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, label: e.target.value })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + educationInstitution.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + educationInstitution.serviceId) || isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\teducationInstitutionForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tif (educationInstitutionForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(educationInstitution.id) || educationInstitution.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tcreateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...educationInstitution,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...educationInstitution,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (R.isNil(educationInstitution.id)) {\r\n\t\t\t\t\t\t\t\t\tremoveFromList(index);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(educationInstitution.id, ConnectionTypes.etudiant));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport {FrenchTypes} from '../../../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../../../constants/models/serviceData';\r\n\r\nimport { ModalEducationInstitutionSection } from \"./educationInstitutionSection\";\r\n\r\nexport const FormEducationInstitution = ({ educationInstitutions, isLoading, userId, relocationDeclaration, setEditMode }) => {\r\n\tconst [educationInstitutionList, setEducationInstitutionList] = useState([...educationInstitutions]);\r\n\tuseEffect(() => {\r\n\t\tsetEducationInstitutionList([...educationInstitutions]);\r\n\t}, [educationInstitutions]);\r\n\r\n\tfunction removeFromList(index) {\r\n\t\tsetEducationInstitutionList(educationInstitutionList.filter((a) => a !== educationInstitutionList[index]));\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Étudiant(e)

\r\n\t\t\t\t\t{educationInstitutionList.map((educationInstitution, index) => {\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t})}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Ajouter un autre ÉTABLISSEMENT

\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\t\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\t\t\t\t\tserviceType: FrenchTypes.etudiant,\r\n\t\t\t\t\t\t\t\t\tserviceId: \"etudiant\" + educationInstitutionList.length,\r\n\t\t\t\t\t\t\t\t\tpayload: {\r\n\t\t\t\t\t\t\t\t\t\ttype: \"Etudiant\",\r\n\t\t\t\t\t\t\t\t\t\tname: \"\",\r\n\t\t\t\t\t\t\t\t\t\taddress: {\r\n\t\t\t\t\t\t\t\t\t\t\tstreetAddress: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\tstreetAddress2: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\tpostalCode: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\taddressLocality: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\taddressCountry: \"FR\",\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\tlevel: \"\",\r\n\t\t\t\t\t\t\t\t\t\tlabel: \"\",\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tsetEducationInstitutionList([...educationInstitutionList, { ...serviceData, collapsed: true }]);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAjouter un autre ÉTABLISSEMENT\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetEducationInstitutionList([...educationInstitutions]);\r\n\t\t\t\t\t\tsetEditMode(false);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAnnuler\r\n\t\t\t\t\r\n\t\t\t\t{/* {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\teducationInstitutionForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\tsetWasValidated(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t */}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\n\r\nimport building from \"../../../../../../assets/images/svg/110-hotel-1.svg\";\r\nimport { FormEducationInstitution } from \"./forms/formEducationInstitution\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const EducationInstitution = ({ educationInstitutions, isLoading, userId, relocationDeclaration }) => {\r\n\t// educationInstitutions = R.sortBy(R.prop(\"position\"), educationInstitutions) || [];\r\n\r\n\tconst [editMode, setEditMode] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{/*
2
*/}\r\n\t\t\t\t\t\tEtudiant(e)\r\n\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t{/*
*/}\r\n\t\t\t
\r\n\t\t\t{!editMode ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t{!R.isNil(educationInstitutions) && educationInstitutions.length > 0 ? (\r\n\t\t\t\t\t\teducationInstitutions.map((educationInstitution) => {\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"building\"\r\n\t\t\t\t\t\t\t\t\t\t

{educationInstitution.payload.name}

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{educationInstitution.payload.address?.streetAddress}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(educationInstitution.payload.address?.streetAddress2) && educationInstitution.payload.address?.streetAddress2 !== \"\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{educationInstitution.payload.address?.streetAddress}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{educationInstitution.payload.address?.postalCode} {educationInstitution.payload.address?.addressLocality}, {educationInstitution.payload.address?.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Cursus

\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{educationInstitution.payload.level}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{educationInstitution.payload.label}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

C'est vide...

\r\n\t\t\t\t\t\t\t\t

Compléter votre situation professionnelle

\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetEditMode(true);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tclassName=\"btn btn-white-primary text-primary\">\r\n\t\t\t\t\t\t\t\t\tAjouter\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useRef } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\nimport { Civil } from \"./civil\";\r\nimport { Address } from \"./address\";\r\nimport { Family } from \"./family\";\r\nimport { FamilyEnvironment } from \"./familyEnv\";\r\nimport { SituationPro } from \"./situationPro\";\r\nimport { Activity } from \"./activity\";\r\nimport { OtherActivity } from \"./otherActivity\";\r\nimport { Retraite } from \"./retraite\";\r\nimport { EducationInstitution } from \"./educationInstitution\";\r\nimport * as loadings from \"../../../../../../constants/loadings/relocationDeclaration\";\r\nimport { updateDeathDeclaration, getUserServiceData } from \"../../../../../../actions/facilita-api\";\r\nimport { updateRelocationDeclaration } from \"../../../../../../actions/events-api\";\r\nimport { ProfessionOptions, FrenchTypes } from \"../../../../../../constants/utils/connectionTypes\";\r\n\r\nexport const Step2 = ({ userId, relocationDeclaration, isLoading, serviceDatas, setOnboardingStep, getDeclaration }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tconst formRef = useRef();\r\n\tuseEffect(() => {\r\n\t\tdispatch(getUserServiceData(userId));\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Valider vos informations

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{relocationDeclaration?.hasChildren && }\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{relocationDeclaration?.professionalSituation?.includes(ProfessionOptions.active) && s.serviceType === FrenchTypes.activity)} isLoading={isLoading} userId={userId} relocationDeclaration={relocationDeclaration} />}\r\n\t\t\t\t\t\t{relocationDeclaration?.professionalSituation?.includes(ProfessionOptions.retired) && s.serviceType === FrenchTypes.pension)} isLoading={isLoading} userId={userId} relocationDeclaration={relocationDeclaration} />}\r\n\t\t\t\t\t\t{relocationDeclaration?.professionalSituation?.includes(ProfessionOptions.other) && s.serviceType === FrenchTypes.otherActivity)} isLoading={isLoading} userId={userId} relocationDeclaration={relocationDeclaration} />}\r\n\t\t\t\t\t\t{relocationDeclaration?.professionalSituation?.includes(ProfessionOptions.student) && s.serviceType === FrenchTypes.etudiant)} isLoading={isLoading} userId={userId} relocationDeclaration={relocationDeclaration} />}\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetOnboardingStep(1);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tRetour\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateRelocationDeclaration(userId, { ...relocationDeclaration, onBoardingStep: 3 })).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t\t\t\tsetOnboardingStep(3);\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tPasser à l'étape suivante
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\n\r\nimport solidaire from \"../../../../../../assets/images/svg/004-B-solidaire.svg\";\r\n\r\nimport * as loadings from \"../../../../../../constants/loadings/relocationDeclaration\";\r\nimport { updateRelocationDeclaration } from \"../../../../../../actions/events-api\";\r\n\r\nexport const Step3 = ({ userId, relocationDeclaration, isLoading, setOnboardingStep, getDeclaration }) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tlet lessThan20Children = relocationDeclaration.children.filter((c) => differenceInYears(new Date(), new Date(c.birthDate)) < 20);\r\n\r\n\tlet CivilStatus = {\r\n\t\tSingle: 1,\r\n\t\tMarried: 2,\r\n\t\tDivorced: 3,\r\n\t\tWidowed: 4,\r\n\t\tFreeUnion: 5,\r\n\t\tCivilUnion: 6,\r\n\t};\r\n\r\n\tconst aides = {\r\n\t\tfamilySupportAllowance: {\r\n\t\t\tid: \"familySupportAllowance\",\r\n\t\t\tname: \"Allocation de soutien familial\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"C'est une aide valable pour les personnes vivant seules avec un enfant de moins de 20 ans. Pour avoir droit à l'ASF, vous devez remplir l'ensemble des conditions suivantes : vivre seul(e), résider en France, avoir au moins 1 enfant à charge pour lequel l'autre parent ne participe plus à l'entretien depuis au moins 1 mois ou vous verse une pension alimentaire inférieure à 195,85 €.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: lessThan20Children.length > 0 && relocationDeclaration.civilStatus !== CivilStatus.Married && relocationDeclaration.civilStatus !== CivilStatus.FreeUnion && relocationDeclaration.civilStatus !== CivilStatus.CivilUnion,\r\n\t\t},\r\n\t\thousingAssistance: {\r\n\t\t\tid: \"housingAssistance\",\r\n\t\t\tname: \"Aides au logement\",\r\n\t\t\ttitle: \"Si vous payez un loyer ou remboursez un prêt et que vos ressources sont modestes, vous pouvez bénéficier de l'une des trois aides au logement proposées par la CAF.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.newAddress.contractType !== 3,\r\n\t\t},\r\n\t\tcafRelocationIncentive: {\r\n\t\t\tid: \"cafRelocationIncentive\",\r\n\t\t\tname: \"Prime au déménagement CAF\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"La prime de déménagement est une aide verséé par la Caf pour compenser cette dépense si votre déménagement est dû à l’agrandissement de votre foyer. Pour en bénéficier, vous devez avoir au moins 3 enfants à charge, avoir déménagé entre le 1er jour du mois civil qui suit la fin de votre 3ème mois de grossesse et le dernier jour du mois précédent le 2ème anniversaire de votre dernier enfant, avoir droit à l’Apl (aide personnalisée au logement) ou à l’Alf (allocation logement à caractère familial) pour votre nouveau logement.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid:\r\n\t\t\t\trelocationDeclaration.children.filter((child) => {\r\n\t\t\t\t\treturn child.isDependent;\r\n\t\t\t\t}).length > 2,\r\n\t\t},\r\n\t\tsolidarityHousingFund: {\r\n\t\t\tid: \"solidarityHousingFund\",\r\n\t\t\tname: \"Fond de solidarité pour le logement (FSL)\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"Le FSL est un dispositif mis en place pour aider les personnes aux ressources modestes à accéder et à se maintenir dans un logement (locations, sous-locations, résidence sociale), adapté à leur situation familiale et financière. Cette aide peut vous être attribuée sous conditions de ressources. Pour en bénéficier, vous devez vous rapprocher d'une assistante sociale qui se chargera de votre demande d'aide.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: true,\r\n\t\t},\r\n\t\tmobiliPassAssistance: {\r\n\t\t\tid: \"mobiliPassAssistance\",\r\n\t\t\tname: \"Aide Mobili-pass\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"Vous pouvez en bénéficier si vous êtes salarié d’une entreprise (non agricole) employant au moins 10 personnes ; vous déménagez pour des raisons professionnelles (embauche, mutation, déménagement de l’entreprise) sur le territoire français ; une distance d’au moins 70 km sépare votre ancienne résidence de votre nouvelle résidence ou le temps de transport est supérieur à 1h15 entre votre ancienne résidence et votre lieu de travail. Notez que cette condition ne s’applique pas dans le cas d’un déménagement de votre entreprise ou dans le cadre d’une procédure collective.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.reason == 1,\r\n\t\t},\r\n\t\tagriMobilityAssistance: {\r\n\t\t\tid: \"agriMobilityAssistance\",\r\n\t\t\tname: \"Aide Agri Mobilité\",\r\n\t\t\ttitle: \"Si vous êtes salarié du secteur agricole, l'aide Agri-mobilité peut vous être proposée pour accompagner votre mobilité professionnelle.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.professionalSituation.includes(\"Employed\") && relocationDeclaration.reason == 1,\r\n\t\t},\r\n\t\tmobiliJeuneAssistance: {\r\n\t\t\tid: \"mobiliJeuneAssistance\",\r\n\t\t\tname: \"Aide Mobili-jeune\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"Vous pouvez en bénéficier si : vous avez moins de 30 ans ; vous êtes salarié d’une entreprise du secteur privé non agricole ; vous êtes en contrat d’apprentissage ou de professionnalisation ; vous n'avez pas de dossier MOBILI-JEUNE® en cours chez Action Logement ou votre précédent dossier MOBILI-JEUNE® est terminé ; votre salaire mensuel brut est inférieur ou égal à 80% du SMIC ; votre logement actuel correspond à un rapprochement de votre lieu de travail et doit être situé à plus de 70 km de votre ancienne adresse ou d'un temps de trajet supérieur à 40 minutes OU vous occupez 2 logements sur la même période et justifiez d'une double charge de loyer ; votre date d’effet du bail doit être 3 mois avant ou 3 mois après la date d'exécution du contrat d'alternance ; votre demande d'aide doit être réalisée 3 mois avant ou 3 mois après le début de la date d'exécution du contrat d'alternance.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.newAddress.contractType === 3 && relocationDeclaration.professionalSituation.includes(\"Employed\") && relocationDeclaration.professionalSituation.includes(\"Student\"),\r\n\t\t},\r\n\t\tstatePersonnelInstallationAssistance: {\r\n\t\t\tid: \"statePersonnelInstallationAssistance\",\r\n\t\t\tname: \"Aide à l’installation des personnels de l’État (AIP)\",\r\n\t\t\ttitle: \"L’aide à l’installation des personnels de l’État (AIP) est réservée aux agents (fonctionnaire stagiaire ou titulaire, agent contractuel…) ayant récemment intégré la fonction publique de l’État, exercant la majeure partie de leurs fonctions en quartiers prioritaires de la politique de la ville.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.professionalSituation.includes(\"Employed\"),\r\n\t\t},\r\n\t\tretirementRelocationAssistance: {\r\n\t\t\tid: \"retirementRelocationAssistance\",\r\n\t\t\tname: \"Aide au déménagement retraite\",\r\n\t\t\ttitle: \"Si vous êtes retraités, vous pouvez demander une aide au déménagement à votre caisse de retraite. Les conditions sont variables selon la caisse de retraite.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.professionalSituation.includes(\"Retired\"),\r\n\t\t},\r\n\t\tparcoursupMobilityAssistance: {\r\n\t\t\tid: \"parcoursupMobilityAssistance\",\r\n\t\t\tname: \"Aide à la mobilité des bacheliers\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"C'est une aide financière de 500 € pour les futurs étudiants boursiers qui souhaitent s'inscrire dans une formation située hors de leur académie de résidence. Les conditions à remplir : être bénéficiaire d'une bourse de lycée ; être inscrit sur Parcoursup cette année et avoir confirmé au moins un vœu en-dehors de son académie de résidence ; avoir accepté définitivement une proposition d'admission (OUI ou OUI-SI) pour un vœu confirmé hors de son académie de résidence\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.professionalSituation.includes(\"Student\"),\r\n\t\t},\r\n\t\tmasterMobilityAssistance: {\r\n\t\t\tid: \"masterMobilityAssistance\",\r\n\t\t\tname: \"Aide mobilité Master 1\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"C'est une aide financière de 1 000 € pour les étudiants boursiers s'inscrivant en 1ère année de Master dans une académie différente de celle où la licence a été obtenu. Pour en bénéficier, vous devez, à la rentrée universitaire, remplir l’ensemble des conditions suivantes : - Avoir obtenu une licence l'année précédente. Attention, l'obtention d'une licence professionnelle ne vous permet pas de bénéficier de l'aide. - Vous inscrire pour la 1re fois en 1re année de Master - Bénéficier de la bourse sur critères sociaux ou d'une allocation annuelle spécifique pour étudiant en difficulté - Vous inscrire dans une université d'une région différente de celle où vous avez obtenu votre licence\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: relocationDeclaration.professionalSituation.includes(\"Student\"),\r\n\t\t},\r\n\t\tmdphRelocationIncentive: {\r\n\t\t\tid: \"mdphRelocationIncentive\",\r\n\t\t\tname: \"Prime au déménagement MDPH\",\r\n\t\t\ttitle:\r\n\t\t\t\t\"La prime au déménagement est versée pour les personnes en situation de handicap éligibles à la PCH. Les frais de déménagement peuvent être intégrés à votre PCH. Le coût d’un déménagement peut être couvert dans le cadre d’une PCH déménagement si l’aménagement du logement occupé s’avère trop coûteux ou techniquement impossible ou si la personne emménage dans un logement adapté.\",\r\n\t\t\ticon: solidaire,\r\n\t\t\tvalid: true,\r\n\t\t},\r\n\t};\r\n\r\n\tconst [selectedAllocations, setSelectedAllocations] = useState({\r\n\t\titems: relocationDeclaration.allocations,\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip({ boundary: \"window\" });\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Aides et Allocations au déménagement

\r\n\t\t\t\t\t

Sélectionnez les aides et allocations que vous souhaitez pour l’édition des documents

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{Object.values(aides).map((aid, index) => {\r\n\t\t\t\t\t\t\t\tif (aid.valid === false) return \"\";\r\n\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t -1 ? \" active\" : \"\")}\r\n\t\t\t\t\t\t\t\t\t\tdata-toggle=\"tooltip\"\r\n\t\t\t\t\t\t\t\t\t\tdata-placement=\"bottom\"\r\n\t\t\t\t\t\t\t\t\t\tdata-template='
'\r\n\t\t\t\t\t\t\t\t\t\ttitle={aid.title}\r\n\t\t\t\t\t\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (selectedAllocations.items.indexOf(aid.id) > -1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.filter((i) => i !== aid.id) });\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.concat(aid.id) });\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t{aid.name}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{aid.name.split(\"\\n\").map((p, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{p}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetOnboardingStep(2);\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tRetour\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\tdispatch(updateRelocationDeclaration(userId, { ...relocationDeclaration, onBoardingStep: 4, allocations: selectedAllocations.items })).then(() => {\r\n\t\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t\t\tsetOnboardingStep(4);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tÉtape suivante
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","export default __webpack_public_path__ + \"static/media/036-retirement.976f9b87.svg\";","import React, { useEffect, useRef, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\n\r\nimport { Link } from \"react-router-dom\";\r\nimport SignatureCanvas from \"react-signature-canvas\";\r\nimport dataURLtoBlob from \"blueimp-canvas-to-blob\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\n\r\nimport idcard from \"../../../../../../assets/images/svg/035-id-card.svg\";\r\nimport solidaire from \"../../../../../../assets/images/svg/004-B-solidaire.svg\";\r\nimport retirement from \"../../../../../../assets/images/svg/036-retirement.svg\";\r\nimport { FileTypes } from \"../../../../../../constants/utils/fileTypes\";\r\n\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\nimport { uploadDocument, downloadDocumentAsBase64, deleteDocument, updateRelocationDeclaration, getDocuments } from \"../../../../../../actions/events-api\";\r\n\r\nimport * as loadings from \"../../../../../../constants/loadings/relocationDeclaration\";\r\nimport { toast } from \"react-toastify\";\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nexport const Step4 = ({ userId, signatureFile, relocationDeclaration, isLoading, setOnboardingStep, getDeclaration, fetchLifeEvents, generateLettersForUserId }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst signatureRef = useRef(null);\r\n\tconst signatureCanvasRef = useRef({});\r\n\r\n\tconst [width, setWidth] = useState(0);\r\n\tconst [height, setHeight] = useState(0);\r\n\tconst [widthWindow, setWidthWindow] = useState(window.innerWidth);\r\n\tconst [file, setFile] = useState(undefined);\r\n\tconst [hasBeenDrawn, setHasBeenDrawn] = useState(false);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\r\n\tconst [canvasViewMode, setCanvasViewMode] = useState(undefined);\r\n\tconst [textSignature, setTextSignature] = useState(undefined);\r\n\r\n\tconst fileSelector = document.createElement(\"input\");\r\n\tfileSelector.setAttribute(\"type\", \"file\");\r\n\tfileSelector.setAttribute(\"accept\", \"image/*\");\r\n\tfileSelector.onchange = function (event) {\r\n\t\tconst nameSplited = event.target.files[0].name.split(\".\");\r\n\t\tconst extension = nameSplited[nameSplited.length - 1].toLowerCase();\r\n\t\tconst fileExtesions = [\"jpg\", \"png\", \"jpeg\", \"pdf\", \"svg\", \"gif\"];\r\n\t\tif (!fileExtesions.includes(extension)) {\r\n\t\t\ttoast.error(\"Seuls les fichiers image sont autorisés !\", toastConf);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdispatch(uploadDocument(userId, FileTypes.Signature, event.target.files[0]));\r\n\t};\r\n\r\n\tfunction resize() {\r\n\t\tif (widthWindow > 0 ) {\r\n\t\t\tif (!R.isNil(signatureRef) && !R.isNil(signatureRef.current) && (width !== signatureRef.current.clientWidth || height !== signatureRef.current.clientHeight)) {\r\n\t\t\t\tsetWidth(signatureRef.current.clientWidth);\r\n\t\t\t\tsetHeight(signatureRef.current.clientHeight);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction saveSignature() {\r\n\t\tconst canvas = signatureCanvasRef.current.getCanvas();\r\n\t\tconst blob = dataURLtoBlob(canvas.toDataURL(\"image/png\", 1.0));\r\n\t\tblob.name = \"signature.png\";\r\n\t\tdispatch(uploadDocument(userId, FileTypes.Signature, blob)).then(() => {\r\n\t\t\tsetHasBeenDrawn(false);\r\n\t\t});\r\n\t}\r\n\r\n\tfunction sendToCanvas() {\r\n\t\tconst canvas = signatureCanvasRef.current.getCanvas();\r\n\t\tconst ctx = canvas.getContext('2d');\r\n\t\t//const img = new Image();\r\n\t\t//ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\r\n\t\tctx.font = '400 64px Calligraffitti';\r\n\t\tctx.textAlign = 'left';\r\n\t\tctx.fillStyle = '#000000';\r\n\t\tctx.fillText(textSignature, 5, canvas.height / 2);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(signatureFile)) {\r\n\t\t\tdownloadDocumentAsBase64(userId, signatureFile.fileName).then((downloadedFile) => {\r\n\t\t\t\tsetFile(downloadedFile);\r\n\t\t\t});\r\n\t\t}\r\n\t}, [signatureFile]);\r\n\r\n\tuseEffect(() => {\r\n\t\tresize();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst handleResize = () => setWidthWindow(window.innerWidth);\r\n\t\twindow.addEventListener(\"resize\", handleResize);\r\n\t\tresize();\r\n\t\t// return () => {\r\n\t\t// \twindow.removeEventListener(\"resize\", handleResize);\r\n\t\t// };\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [window.innerWidth]);\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Signature

\r\n\t\t\t\t\t

A ce stade, nous avons l'intégralité des informations requises pour créer les démarches administratives.

\r\n\t\t\t\t\t

Il ne manque plus que votre signature. Vous avez trois options: écrire, dessiner ou télécharger votre signature.

\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/*

La seule chose que nous demandons est votre signature

*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetCanvasViewMode(\"Type\");\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tÉcrivez votre signature\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetCanvasViewMode(\"Draw\");\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tDessinez votre signature\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetCanvasViewMode(\"Upload\");\r\n\t\t\t\t\t\t\t\t\t\tfileSelector.click();\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCharger une signature\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{/* { canvasViewMode === \"Draw\" ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\t\t\t{/* Charger une signature
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{R.isNil(file) ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\tChargez votre signature ici...
\r\n\t\t\t\t\t\t\t\t\t\t\tImages haute résolution (png, jpg, gif)\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetHasBeenDrawn(true);\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (e.target.value !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetHasBeenDrawn(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetTextSignature(e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetHasBeenDrawn(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"signature\"\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{!R.isNil(file) ? (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteDocument(userId, signatureFile.fileName)).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetFile(undefined);\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetHasBeenDrawn(false);\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\tSupprimer\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t{hasBeenDrawn ? (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tif (canvasViewMode !== \"Draw\") sendToCanvas();\r\n\t\t\t\t\t\t\t\t\t\t\tsaveSignature();\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{wasValidated && R.isNil(file) ? (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tVeuillez ajouter votre signature\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetOnboardingStep(3);\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\tRetour\r\n\t\t\t\t\t\r\n\t\t\t\t\t{isLoading.includes(loadings.UPDATING_RELOCATION_DECLARATION) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\tdispatch(updateRelocationDeclaration(userId, { ...relocationDeclaration, onBoardingStep: 5 })).then(() => {\r\n\t\t\t\t\t\t\t\t\tgetDeclaration();\r\n\t\t\t\t\t\t\t\t\tsetOnboardingStep(5);\r\n\t\t\t\t\t\t\t\t\tgenerateLettersForUserId();\r\n\t\t\t\t\t\t\t\t\tdispatch(fetchLifeEvents(userId));\r\n\t\t\t\t\t\t\t\t\t$(\"#declareRelocation\").modal(\"hide\");\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tDémarrer le processus
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Route, Switch, Redirect } from \"react-router\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { getDeathDeclaration, getDocuments } from \"../../../../../actions/facilita-api\";\r\nimport { getRelocationDeclaration } from \"../../../../../actions/events-api\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport * as R from \"ramda\";\r\n\r\nimport { FileTypes } from \"../../../../../constants/utils/fileTypes\";\r\n\r\n// Declarer\r\n// ==========================================\r\n// Declarer: Common\r\n// import { Help } from '../../../_common/help';\r\n\r\nimport { Navbar } from \"./_common/navbar\";\r\nimport { Path } from \"../_common/path\";\r\n\r\n// Declarer: Views\r\nimport { Step1 } from \"./step1\";\r\nimport { Step2 } from \"./step2\";\r\nimport { Step3 } from \"./step3\";\r\nimport { Step4 } from \"./step4\";\r\n\r\nexport const DeclareModal = ({ userState, relocationDeclarationState, getDeclaration, fetchLifeEvents, generateLettersForUserId }) => {\r\n\tconst [onBoardingStep, setOnboardingStep] = useState();\r\n\tconst [user, setUser] = useState();\r\n\tconst [relocatedUser, setRelocatedUser] = useState();\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(relocationDeclarationState?.declaration?.onBoardingStep) && R.isNil(onBoardingStep)) {\r\n\t\t\tsetOnboardingStep(relocationDeclarationState.declaration.onBoardingStep);\r\n\t\t}\r\n\t\tif (!R.isNil(userState)) {\r\n\t\t\tsetUser(userState);\r\n\t\t}\r\n\t\tif (!R.isNil(userState?.user)) {\r\n\t\t\tsetRelocatedUser(userState.user);\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [relocationDeclarationState?.declaration?.onBoardingStep, userState, userState?.user]);\r\n\r\n\tif (R.isNil(user) || R.isNil(relocationDeclarationState) || R.isNil(relocationDeclarationState.declaration)) {\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Assist@

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Assist@: Main

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{onBoardingStep == 1 && }\r\n\t\t\t\t\t\t\t\t{onBoardingStep == 2 && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{onBoardingStep == 3 && }\r\n\t\t\t\t\t\t\t\t{onBoardingStep == 4 && (\r\n\t\t\t\t\t\t\t\t\t f.fileType === FileTypes.Signature)}\r\n\t\t\t\t\t\t\t\t\t\tfetchLifeEvents={fetchLifeEvents}\r\n\t\t\t\t\t\t\t\t\t\tgenerateLettersForUserId={generateLettersForUserId}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","export const LetterProgressStage = {\r\n Created: \"Créé\",\r\n Abandonned: \"Non selectionné\",\r\n Validated: \"Validé\",\r\n Printed: \"Imprimé\",\r\n SentToPost: \"Remis à la Poste\",\r\n InDelivery: \"En livraison\",\r\n Delivered: \"Livré\",\r\n InvalidAddress: \"Adresse invalide\",\r\n RefusedByRecipient: \"Refusé par le destinataire\",\r\n OtherIssue: \"Problème non identifié\",\r\n};","import React, { useRef, useState, useEffect, createRef } from \"react\";\r\nimport * as R from \"ramda\";\r\n\r\nimport { Tooltip } from \"bootstrap/dist/js/bootstrap.bundle\";\r\n\r\nimport { getLetterInformationByLetterId, updateLetterById, validateLetter, abandonLetter } from \"../../../../actions/facilita-api\";\r\nimport { Document, Page, pdfjs } from \"react-pdf\";\r\nimport * as urls from \"../../../../constants/webapi/facilita\";\r\nimport { FrenchTypes, PensionProfessionalCategoryMapping } from \"../../../../constants/utils/connectionTypes\";\r\nimport { LetterProgressStage } from \"../../../../constants/utils/letterProgressStage\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport $ from \"jquery\";\r\nimport * as loadings from \"../../../../constants/loadings/facilita/deathDeclaration\";\r\n\r\nimport { uploadDocument, downloadDocument, deleteDocument, downloadLetter } from \"../../../../actions/facilita-api\";\r\n\r\nimport { isValidURL } from \"../../../../utils/misc\";\r\n\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport previewPdf from \"./../../../../assets/images/placeholder/pdf-placeholder.jpg\";\r\n\r\npdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;\r\n\r\nexport const ModalValidation = ({ service, userLetters, serviceDatas, files, userId, isLoading, setIsLoadingLetter, isLoadingLetters, declaringUserId, currentlyConnectedUserId, hasDocumentSending, relocationData }) => {\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [elementOnFocus, setElementOnFocus] = useState(0);\r\n\tconst [elRefs, setElRefs] = useState([]);\r\n\r\n\tconst [selectedServiceData, setSelectedServiceData] = useState(R.isNil(service) ? undefined : service.serviceDatas[0]);\r\n\tconst [userLettersForServiceData, setUserLettersForServiceData] = useState(undefined);\r\n\tconst [selectedUserLetter, setSelectedUserLetter] = useState(undefined);\r\n\tconst [numPages, setNumPages] = useState(null);\r\n\tconst [documentUrl, setDocumentUrl] = useState(undefined);\r\n\tconst [lettersChoice, setLettersChoice] = useState({});\r\n\r\n\t//Files\r\n\tconst [filesToUpload, setFilesToUpload] = useState({});\r\n\r\n\tconst emailService = (service) => {\r\n\t\tconst address = `${relocationData.newAddress.addressLine1}, ${relocationData.newAddress.postalCode} ${relocationData.newAddress.city}, ${countries.getName(relocationData.newAddress.country, \"fr\", { select: \"official\" })}`;\r\n\t\tconst email = service.email;\r\n\t\tconst subject = \"Information de changement d'adresse\";\r\n\t\tconst body = `Madame, Monsieur,\\n\\nJe vous informe par la présente de mon changement d’adresse qui prendra effet à compter de la date du ${new Date(relocationData.effectiveMovingDate).toLocaleDateString(\"fr-FR\", {\r\n\t\t\tday: \"numeric\",\r\n\t\t\tmonth: \"numeric\",\r\n\t\t\tyear: \"numeric\",\r\n\t\t})}.\\n\\nJe vous remercie de bien vouloir prendre note de mes nouvelles coordonnées : ${address}.\\n\\nVeuillez agréer, Madame, Monsieur, l’expression de mes salutations distinguées.`;\r\n\t\tconst mailtoLink = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;\r\n\r\n\t\tconst link = document.createElement(\"a\");\r\n\t\tlink.href = mailtoLink; // URL to open\r\n\t\tlink.target = \"_blank\"; // Open in new tab\r\n\t\tlink.rel = \"noopener noreferrer\"; // Security attributes\r\n\t\tlink.click();\r\n\t};\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(service)) {\r\n\t\t\tsetSelectedServiceData(service.serviceDatas[0]);\r\n\t\t\tsetElRefs((elRefs) => service.serviceDatas.map((_, i) => createRef()));\r\n\t\t}\r\n\t}, [service]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(selectedServiceData)) {\r\n\t\t\tlet ul = userLetters.filter((l) => l.userServiceId === selectedServiceData.id);\r\n\r\n\t\t\tlet promises = [];\r\n\t\t\tul.forEach((l) => {\r\n\t\t\t\tpromises.push(getLetterInformationByLetterId(l.letterId));\r\n\t\t\t});\r\n\t\t\tif (R.isEmpty(ul)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tPromise.all(promises).then((letters) => {\r\n\t\t\t\tfor (let i = 0; i < letters.length; i++) {\r\n\t\t\t\t\tul[i].letterTemplate = letters[i];\r\n\t\t\t\t\tif (!R.isEmpty(ul[i].letterTemplate.optionalData)) {\r\n\t\t\t\t\t\tul[i].optionalDataform = React.createRef();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!R.isEmpty(ul[i].letterTemplate.optionalFiles)) {\r\n\t\t\t\t\t\tul[i].optionalFilesform = React.createRef();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst nextStageLetters = ul.filter((u) => u.letterProgressStage !== \"Created\");\r\n\t\t\t\t//console.log(nextStageLetters);\r\n\t\t\t\tif (nextStageLetters.length === 0) {\r\n\t\t\t\t\tsetUserLettersForServiceData(ul);\r\n\t\t\t\t\tif (R.isNil(selectedUserLetter) || ul.find((l) => l.id === selectedUserLetter.id) === undefined) setSelectedUserLetter(ul[0]);\r\n\r\n\t\t\t\t\tif (R.isEmpty(lettersChoice) || !Object.keys(lettersChoice).includes(ul[0]?.id)) {\r\n\t\t\t\t\t\tconst initLettersChoice = {};\r\n\t\t\t\t\t\tul.map((userLetter) => {\r\n\t\t\t\t\t\t\tif (userLetter.letterProgressStage === \"Created\") initLettersChoice[userLetter.id] = undefined;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tsetLettersChoice(initLettersChoice);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//const validLetters = nextStageLetters.filter(a => a.letterHistory[a.letterHistory.length - 1].letterProgressStage !== \"Abandonned\")\r\n\t\t\t\t\tsetUserLettersForServiceData(nextStageLetters);\r\n\t\t\t\t\tif (R.isNil(selectedUserLetter) || ul.indexOf(selectedUserLetter) === -1) setSelectedUserLetter(nextStageLetters[0]);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}, [selectedServiceData, userLetters]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(documentUrl) && !R.isNil(selectedUserLetter)) {\r\n\t\t\tsetDocumentUrl({\r\n\t\t\t\turl: urls.letterContentUrlByletterId(selectedUserLetter.id),\r\n\t\t\t\thttpHeaders: {\r\n\t\t\t\t\tAuthorization: \"Bearer \" + sessionStorage.getItem(\"access_token\"),\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (!R.isNil(selectedUserLetter) && !R.isNil(documentUrl) && documentUrl.url !== urls.letterContentUrlByletterId(selectedUserLetter.id)) {\r\n\t\t\tsetDocumentUrl({\r\n\t\t\t\turl: urls.letterContentUrlByletterId(selectedUserLetter.id),\r\n\t\t\t\thttpHeaders: {\r\n\t\t\t\t\tAuthorization: \"Bearer \" + sessionStorage.getItem(\"access_token\"),\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t\tif (selectedUserLetter.letterProgressStage === \"Created\" && !R.isNil(selectedUserLetter.letterTemplate.optionalFiles)) {\r\n\t\t\t\tObject.keys(selectedUserLetter.letterTemplate.optionalFiles).map((key) => {\r\n\t\t\t\t\tconst matchingFile = files.find((f) => f.fileType === key);\r\n\t\t\t\t\tif (!R.isNil(matchingFile)) {\r\n\t\t\t\t\t\tfilesToUpload[key] = { ...matchingFile, name: matchingFile.fileName };\r\n\t\t\t\t\t\tsetFilesToUpload(filesToUpload);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}, [selectedUserLetter]);\r\n\r\n\tuseEffect(() => {\r\n\t\t// Initialize all bootstrap\r\n\t\tconst tooltipTriggerList = [...document.querySelectorAll('[data-toggle=\"tooltip\"]')];\r\n\t\t[...tooltipTriggerList].map((tooltipTriggerEl) => {\r\n\t\t\tnew Tooltip(tooltipTriggerEl);\r\n\t\t});\r\n\t}, []);\r\n\r\n\t// if (R.isNil(service)) {\r\n\t// \treturn '';\r\n\t// }\r\n\t// if (R.isNil(service.serviceDatas)) {\r\n\t// \treturn '';\r\n\t// }\r\n\r\n\t// if (R.isNil(userLettersForServiceData)) {\r\n\t// \treturn '';\r\n\t// }\r\n\r\n\t// if (R.isNil(selectedUserLetter)) {\r\n\t// \treturn '';\r\n\t// }\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{!R.isNil(selectedUserLetter) && !R.isNil(userLettersForServiceData) && !R.isNil(service.serviceDatas) && !R.isNil(service) ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tValidation des documents\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{!R.isNil(selectedServiceData) && (R.isNil(selectedServiceData.urls) || R.isEmpty(selectedServiceData.urls)) && !R.isNil(selectedUserLetter) && !isValidURL(selectedUserLetter.letterTemplate.body) ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(relocationData) && !R.isNil(selectedServiceData) && !R.isEmpty(selectedServiceData.email) && !R.isNil(selectedServiceData.email) && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\temailService(selectedServiceData);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-toggle=\"tooltip\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-placement=\"bottom\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-html=\"true\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-template='
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Veillez à avoir configuré votre application mail\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnvoyer email\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownloadLetter(selectedUserLetter.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTélécharger\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t setNumPages(numPages)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Array.apply(null, Array(numPages))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.map((x, i) => i + 1)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.map((page) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

Ce service a été configuré avec les données suivantes :

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Identifiant

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{selectedServiceData.payload.reference}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(selectedUserLetter) && !isValidURL(selectedUserLetter.letterTemplate.body) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{!R.isNil(relocationData) ? \"Pour mettre à jour vos données dans l'espace personnel cliquer sur : \" : \"Pour valider la clôture de ce compte cliquer sur :\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(selectedServiceData.urls).map((key, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.open(selectedServiceData.urls[key], \"_blank\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{key}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Ou copier et coller le(s) lien(s) ci-dessous:

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(selectedServiceData.urls).map((key, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{key}:{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{selectedServiceData.urls[key]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Veuillez accéder le lien ci-dessous :

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.open(selectedUserLetter.letterTemplate.body, \"_blank\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDémarche en ligne\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Ou copier et coller le(s) lien(s) ci-dessous:

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDémarche en ligne:{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{selectedUserLetter.letterTemplate.body}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(service.serviceDatas) && service.serviceDatas.length > 1 && elementOnFocus > 0 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet elemenetToFocus = elementOnFocus;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (elementOnFocus > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telemenetToFocus = elementOnFocus - 1;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(elRefs[elemenetToFocus]) && !R.isNil(elRefs[elemenetToFocus].current)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.scrollIntoView({ behavior: \"smooth\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetElementOnFocus(elemenetToFocus);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(service.serviceDatas) && service.serviceDatas.length > 1 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet elemenetToFocus = elementOnFocus;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (elementOnFocus < service.serviceDatas.length - 1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telemenetToFocus = elemenetToFocus + 1;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(elRefs[elemenetToFocus]) && !R.isNil(elRefs[elemenetToFocus].current)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.scrollIntoView({ behavior: \"smooth\" });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telRefs[elemenetToFocus].current.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetElementOnFocus(elemenetToFocus);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t{R.isNil(userLettersForServiceData) ?

CHARGEMENT

: \"\"}\r\n\r\n\t\t\t\t\t\t\t\t\t\t{userLettersForServiceData.map((userLetterForServiceData, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\tif (userLetterForServiceData.letterProgressStage !== \"Created\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (userLetterForServiceData.letterProgressStage === \"Abandonned\" && !hasDocumentSending) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
setSelectedUserLetter(userLetterForServiceData)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{userLetterForServiceData.letterTemplate.name.substring(userLetterForServiceData.letterTemplate.name.indexOf(\"-\") + 1)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{R.isEmpty(selectedServiceData.urls) || R.isNil(selectedServiceData.urls) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Chronologie
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(userLetterForServiceData.postId) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNuméro suivi postal: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{userLetterForServiceData.postId}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{userLetterForServiceData.letterHistory.map((history, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{history.date.substring(0, 10)}: {LetterProgressStage[history.letterProgressStage]} {!R.isNil(history.details) && history.details !== \"\" ? `(${history.details})` : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(userLetterForServiceData.letterTemplate)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t//let letterChoice = lettersChoice.find(l => l.id === userLetterForServiceData.id);\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
setSelectedUserLetter(userLetterForServiceData)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{userLetterForServiceData.letterTemplate.name.substring(userLetterForServiceData.letterTemplate.name.indexOf(\"-\") + 1)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{selectedUserLetter.id === userLetterForServiceData.id ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{selectedUserLetter.letterTemplate.popUp}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/*

{selectedUserLetter.letterTemplate.popUp}

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{R.isNil(selectedServiceData.urls) || R.isEmpty(selectedServiceData.urls) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/*
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst a = { ...lettersChoice };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta[userLetterForServiceData.id] = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst otherUserLetterId = Object.keys(lettersChoice).find((i) => i !== userLetterForServiceData.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"transfert\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Object.values(lettersChoice).every((v) => R.isNil(v)) || a[otherUserLetterId] === true)) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"avenant\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Object.values(lettersChoice).every((v) => R.isNil(v)) || a[otherUserLetterId] === true)) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"modification\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Object.values(lettersChoice).every((v) => R.isNil(v)) || a[otherUserLetterId] === true)) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"information\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"modification\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Object.values(lettersChoice).every((v) => R.isNil(v)) || a[otherUserLetterId] === true)) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résilitation de la mutuelle du défunt\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résilitation de la mutuelle du défunt et maintien pour le conjoint\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Object.values(lettersChoice).every((v) => R.isNil(v)) || a[otherUserLetterId] === true))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(otherUserLetterId)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta[otherUserLetterId] = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetLettersChoice(a);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchecked={lettersChoice[userLetterForServiceData.id] === true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst a = { ...lettersChoice };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta[userLetterForServiceData.id] = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"transfert\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.values(lettersChoice).every((v) => R.isNil(v))) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"avenant\") > -1) && Object.keys(lettersChoice).length > 1 && Object.values(lettersChoice).every((v) => R.isNil(v))) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résiliation\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"modification\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.values(lettersChoice).every((v) => R.isNil(v))) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"information\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"modification\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.values(lettersChoice).every((v) => R.isNil(v))) ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résilitation de la mutuelle du défunt\") > -1 || userLetterForServiceData.letterTemplate.name.toLowerCase().indexOf(\"résilitation de la mutuelle du défunt et maintien pour le conjoint\") > -1) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(lettersChoice).length > 1 &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.values(lettersChoice).every((v) => R.isNil(v)))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst otherUserLetterId = Object.keys(lettersChoice).find((i) => i !== userLetterForServiceData.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(otherUserLetterId)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta[otherUserLetterId] = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetLettersChoice(a);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchecked={lettersChoice[userLetterForServiceData.id] === false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{(!R.isNil(userLetterForServiceData.letterTemplate.optionalData) && !R.isEmpty(userLetterForServiceData.letterTemplate.optionalData)) || (!R.isNil(userLetterForServiceData.letterTemplate.optionalFiles) && !R.isEmpty(userLetterForServiceData.letterTemplate.optionalFiles)) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{userLetterForServiceData.letterProgressStage === \"Created\" && !R.isNil(userLetterForServiceData.letterTemplate.optionalData) && !R.isEmpty(userLetterForServiceData.letterTemplate.optionalData) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Champs à compléter
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(userLetterForServiceData.letterTemplate.optionalData).map((key, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (userLetterForServiceData.letterTemplate.id.toUpperCase() === \"852F8D6D-9740-4430-942B-3254D2FE94F1\" && userLetterForServiceData.optionalData[\"Checkbox.UserToImmatriculate\"] === \"false\" && key.startsWith(\"UsersToImmatriculate\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{key.startsWith(\"Checkbox\") ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetUserLettersForServiceData(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tuserLettersForServiceData.map((ul, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ul.id !== userLetterForServiceData.id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn ul;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newOptionalData = { ...ul.optionalData };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewOptionalData[key] = e.target.value.toString();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...ul,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toptionalData: newOptionalData,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetUserLettersForServiceData(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tuserLettersForServiceData.map((ul, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ul.id !== userLetterForServiceData.id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn ul;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newOptionalData = { ...ul.optionalData };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewOptionalData[key] = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tre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t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tuserLetterForServiceData.optionalDataform.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (userLetterForServiceData.optionalDataform.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateLetterById(userLetterForServiceData)).then(() => setDocumentUrl({ ...documentUrl }));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(userLetterForServiceData.letterTemplate.optionalFiles) && !R.isEmpty(userLetterForServiceData.letterTemplate.optionalFiles) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Pièces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\t\t\t\t\t\t\t\t\t\t\t\t\t\tfilesToUpload[key] = e.target.files[0];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetFilesToUpload({ ...filesToUpload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{filesToUpload[key].name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst { [key]: undefined, ...modifiedFiles } = filesToUpload;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetFilesToUpload(modifiedFiles);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(filesToUpload).map((key) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(filesToUpload[key].fileName)) fileUploadPromises.push(dispatch(uploadDocument(userId, key, filesToUpload[key])));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPromise.all(fileUploadPromises).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateLetterById(userLetterForServiceData)).then(() => setDocumentUrl({ ...documentUrl }));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{userLettersForServiceData.filter((u) => u.letterProgressStage === \"Created\").length > 0 ? (\r\n\t\t\t\t\t\t\t\t(Object.values(lettersChoice).indexOf(undefined) > -1 && R.isEmpty(selectedServiceData.urls)) || currentlyConnectedUserId !== declaringUserId ? (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t) : userLettersForServiceData.some((ul) => isLoading.includes(loadings.UPDATING_USER_LETTER + \"_\" + ul.id)) ? (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tsetIsLoadingLetter(isLoadingLetters.concat(service.title));\r\n\t\t\t\t\t\t\t\t\t\t\tconst promises = userLettersForServiceData.reduce(\r\n\t\t\t\t\t\t\t\t\t\t\t\t(acc, userLetter) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (lettersChoice[userLetter.id] === true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(userLetter.optionalDataform)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tuserLetter.optionalDataform.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!userLetter.optionalDataform.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//userLetter.optionalDataform.current.focus();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$('form:first *:input[type!=hidden]:first').focus();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn acc;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tacc.validate.push(validateLetter(userLetter));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// acc.validate.push(userLetter);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tacc.abandon.push(abandonLetter(userLetter));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// acc.abandon.push(userLetter);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn acc;\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t{ validate: [], abandon: [] }\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tconst requests = [...promises.validate, ...promises.abandon];\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tlet promiseExecution = async () => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor (let promise of requests) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tawait dispatch(promise);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t//await Promise.all([...promises.validate, ...promises.abandon]);\r\n\t\t\t\t\t\t\t\t\t\t\t//#region recursion\r\n\t\t\t\t\t\t\t\t\t\t\t// async function requestRecursion(arrayLetter, callback) {\r\n\t\t\t\t\t\t\t\t\t\t\t// \tif (arrayLetter.length <= 0) return;\r\n\t\t\t\t\t\t\t\t\t\t\t// \tawait dispatch(callback(arrayLetter.slice(0, 1)[0]));\r\n\t\t\t\t\t\t\t\t\t\t\t// \tawait requestRecursion(arrayLetter.slice(1, arrayLetter.length), callback);\r\n\t\t\t\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t\t\t\t\t// await requestRecursion(promises.validate, validateLetter);\r\n\t\t\t\t\t\t\t\t\t\t\t// await requestRecursion(promises.abandon, abandonLetter);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// userLettersForServiceData.map((userLetter) => {\r\n\t\t\t\t\t\t\t\t\t\t\t// \tif (lettersChoice[userLetter.id] === true) {\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tif (!R.isNil(userLetter.optionalDataform)) {\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\tuserLetter.optionalDataform.current.classList.add('was-validated');\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\tif (!userLetter.optionalDataform.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\t\t//userLetter.optionalDataform.current.focus();\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\t\t//$('form:first *:input[type!=hidden]:first').focus();\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tdispatch(validateLetter(userLetter));\r\n\t\t\t\t\t\t\t\t\t\t\t// \t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// \t\tdispatch(abandonLetter(userLetter));\r\n\t\t\t\t\t\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t\t\t\t\t\t// });\r\n\t\t\t\t\t\t\t\t\t\t\t//#endregion\r\n\t\t\t\t\t\t\t\t\t\t\tpromiseExecution().then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (service.serviceDatas.length > service.serviceDatas.indexOf(selectedServiceData) + 1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst nextServiceData = service.serviceDatas[service.serviceDatas.indexOf(selectedServiceData) + 1];\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedServiceData(nextServiceData);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetElementOnFocus(service.serviceDatas.indexOf(nextServiceData));\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$(\"#validation\").modal(\"toggle\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetIsLoadingLetter([]);\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\tValider\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t) : (\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\n\r\nexport const ModalCommencer = ({text}) => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Information

\r\n\t\t\t\t\t\t

{text}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}","import React from \"react\";\r\nimport * as R from \"ramda\";\r\n\r\nexport const DashboardCard = ({ userService, index, setSelectedService, userLetters, isLoadingLetters, hasDocumentSending }) => {\r\n\tconst dateParts = userService.mostRecentDate.substring(0, 10).split(\"-\");\r\n\tlet displayDate = dateParts[2] + \"-\" + dateParts[1] + \"-\" + dateParts[0];\r\n\tlet noneLetter = [\"Rempli\", \"Non rempli\", \"Lettres générées\", \"En traitement...\"];\r\n\tlet greenStatus = [\"Lettres validées\", \"Lettres imprimées\", \"Lettres postées\", \"Lettres distribuées\", \"Traité\", \"En livraison\"];\r\n\tlet blueStatus = [\"Rempli\", \"Lettres générées\", \"En traitement...\"];\r\n\tlet displayText = \"Générées\";\r\n\t//let status = \"Lettres validées\";\r\n\r\n\tfunction getAllLettersEqualTo(userLetters, properties) {\r\n\t\treturn userLetters.every((letter) => properties.includes(letter.letterProgressStage));\r\n\t}\r\n\tfunction getSomeLettersEqualTo(userLetters, property) {\r\n\t\treturn userLetters.some((letter) => letter.letterProgressStage === property);\r\n\t}\r\n\tfunction allLetterHaveStatus(userLetters, status) {\r\n\t\treturn userLetters.every((letter) => letter.letterProgressStage === status);\r\n\t}\r\n\r\n\tfunction getLetterHistoryDate(userLetters, letterProgressStage) {\r\n\t\tuserLetters = userLetters.filter((ul) => ul.letterProgressStage === letterProgressStage);\r\n\t\tlet letterHistories = [];\r\n\t\tfor (let i = 0; i < userLetters.length; i++) {\r\n\t\t\tvar correspondingHistory = userLetters[i].letterHistory.filter((l) => l.letterProgressStage === letterProgressStage);\r\n\t\t\tletterHistories = R.concat(letterHistories, correspondingHistory);\r\n\t\t}\r\n\t\tif (R.isEmpty(letterHistories)) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tconst sortedHistory = R.sortBy(R.prop(\"date\"))(letterHistories);\r\n\t\tconst sortedHistoryParts = sortedHistory[0].date.substring(0, 10).split(\"-\");\r\n\t\treturn sortedHistoryParts[2] + \"-\" + sortedHistoryParts[1] + \"-\" + sortedHistoryParts[0];\r\n\t}\r\n\r\n\tlet userLettersFiltered = userLetters.filter((ul) => userService.serviceDatas.some((sd) => sd.id === ul.userServiceId));\r\n\tlet status;\r\n\tlet isClickable = true;\r\n\r\n\tif (!R.isEmpty(userService.serviceDatas)) {\r\n\t\tstatus = \"En traitement...\";\r\n\r\n\t\tconst userLettersCreated = R.isEmpty(userLettersFiltered) ? false : userLettersFiltered.some((letter) => letter.letterProgressStage === \"Created\");\r\n\t\t// const userLettersValidated = getSomeLettersEqualTo(userLettersFiltered, \"Validated\");\r\n\t\tconst userLettersValidated = getAllLettersEqualTo(userLettersFiltered, [\"Validated\", \"Abandonned\"]);\r\n\t\tconst userLettersPrinted = getSomeLettersEqualTo(userLettersFiltered, \"Printed\");\r\n\t\tconst userLettersSentPost = getSomeLettersEqualTo(userLettersFiltered, \"SentToPost\");\r\n\t\tconst userLettersInDelivery = getSomeLettersEqualTo(userLettersFiltered, \"InDelivery\");\r\n\t\tconst userLettersDelivered = getSomeLettersEqualTo(userLettersFiltered, \"Delivered\");\r\n\t\tconst userLettersAbandonned = allLetterHaveStatus(userLettersFiltered, \"Abandonned\");\r\n\r\n\t\tif (userLettersCreated) {\r\n\t\t\tstatus = \"Lettres générées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"Created\");\r\n\t\t} else if (userLettersAbandonned) {\r\n\t\t\tstatus = \"Traité\";\r\n\t\t\tdisplayText = \"Traitées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"Abandonned\");\r\n\t\t\tif (!hasDocumentSending) {\r\n\t\t\t\tisClickable = false;\r\n\t\t\t}\r\n\t\t} else if (userLettersValidated) {\r\n\t\t\tstatus = \"Lettres validées\";\r\n\t\t\tdisplayText = \"Validées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"Validated\");\r\n\t\t} else if (userLettersPrinted) {\r\n\t\t\tstatus = \"Lettres imprimées\";\r\n\t\t\tdisplayText = \"Imprimées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"Printed\");\r\n\t\t} else if (userLettersSentPost) {\r\n\t\t\tstatus = \"Lettres postées\";\r\n\t\t\tdisplayText = \"Postées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"SentToPost\");\r\n\t\t} else if (userLettersInDelivery) {\r\n\t\t\tstatus = \"En livraison\";\r\n\t\t\tdisplayText = \"En livraison\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"InDelivery\");\r\n\t\t} else if (userLettersDelivered) {\r\n\t\t\tstatus = \"Lettres distribuées\";\r\n\t\t\tdisplayText = \"Distribuées\";\r\n\t\t\tdisplayDate = getLetterHistoryDate(userLettersFiltered, \"Delivered\");\r\n\t\t}\r\n\t} else {\r\n\t\tstatus = \"Non rempli\";\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t{isClickable ? (\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tsetSelectedService(userService);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{userService.title}\r\n\t\t\t\t\t\t

{userService.title}

\r\n\t\t\t\t\t\t

Valide

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!isLoadingLetters.includes(userService.title) ? status :
}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{displayText} le\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{displayDate}\r\n\t\t\t\t\t

\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{userService.title}\r\n\t\t\t\t\t\t

{userService.title}

\r\n\t\t\t\t\t\t

Valide

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{!isLoadingLetters.includes(userService.title) ? status :
}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{displayText} le\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{displayDate}\r\n\t\t\t\t\t

\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t\r\n\t);\r\n};\r\n","import React, { useRef, useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as R from 'ramda';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const ActivityDetails = ({index, activity, userId, removeActivity, disableModifications, generateLetters}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n \r\n const formRef = useRef(null);\r\n let companyName = undefined;\r\n let initCollapsedState = true;\r\n let initState = {\r\n type: 'Activite',\r\n companyName: \"\",\r\n companyAddressStreet1: \"\",\r\n companyAddressStreet2: \"\",\r\n companyAddressPostalCode: \"\",\r\n companyAddressLocality: \"\",\r\n companyAddressCountry: \"FR\",\r\n function: \"\",\r\n contractType: \"CDD\",\r\n companySavingsPlanReference: \"\"\r\n };\r\n if(!R.isNil(activity.id)){\r\n initState = activity.payload;\r\n initCollapsedState = false;\r\n companyName = activity.payload.companyName;\r\n }\r\n const [payload, setPayload] = useState({...initState});\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n const [showPee, setShowPee] = useState(false);\r\n\r\n useEffect(() =>{\r\n if(!R.isNil(activity.payload)){\r\n setPayload({...activity.payload});\r\n }\r\n \r\n\r\n let hasCompanySavingsPlanReference = false;\r\n if(!R.isNil(activity.payload) && !R.isNil(activity.payload.companySavingsPlanReference)){\r\n hasCompanySavingsPlanReference = activity.payload.companySavingsPlanReference !== \"\";\r\n }\r\n setShowPee(hasCompanySavingsPlanReference);\r\n if(!R.isNil(activity.id)){\r\n setCollapsed(false);\r\n }\r\n\r\n }, [activity]);\r\n\r\n\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n return (\r\n
\r\n
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n
\r\n

{index === 0 ? 'Votre activité principale' : 'Autre activité'}

\r\n {\r\n !R.isNil(companyName) ?\r\n {companyName}\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
nom de l’entreprise
\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, companyName: e.target.value})} disabled={disableModifications && !R.isNil(activity.id)} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, companyAddressStreet1: e.target.value})} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, companyAddressStreet2: e.target.value})} />\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, companyAddressPostalCode: e.target.value})}/>\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, companyAddressLocality: e.target.value})} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
statut professionnel
\r\n
\r\n
\r\n
\r\n \r\n setPayload({...payload, function: e.target.value})} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Plan d'épargne entreprise
\r\n
\r\n \r\n
\r\n setShowPee(!showPee)} disabled={disableModifications && !R.isNil(activity.id)} />\r\n \r\n
\r\n
\r\n\r\n
\r\n {\r\n showPee ?\r\n
\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n setPayload({...payload, companySavingsPlanReference: e.target.value})} disabled={disableModifications && !R.isNil(activity.id)} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n\r\n
\r\n
\r\n \r\n {\r\n index === 0 ? \r\n ''\r\n :\r\n {\r\n e.preventDefault();\r\n if(R.isNil(activity.id)){\r\n removeActivity(activity);\r\n }else{\r\n dispatch(deleteServiceData(activity.id, ConnectionTypes.activity));\r\n }\r\n }}>\r\n\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport {ActivityDetails} from './activityDetails';\r\nimport { FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Activity = ({userId, serviceDatas, disableModifications, generateLetters}) => {\r\n const [activityState, setActivityState] = useState({\r\n items: []\r\n });\r\n\r\n useEffect(() => {\r\n let activitiesInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.activity);\r\n if (activitiesInState.length > 0){\r\n setActivityState({\r\n items: activitiesInState\r\n });\r\n }else{\r\n setActivityState({...activityState, items: activityState.items.concat({})});\r\n }\r\n }, [serviceDatas]);\r\n\r\n function removeActivity(activity) {\r\n setActivityState({...activityState, items: activityState.items.filter(a => a !== activity)});\r\n }\r\n\r\n return (\r\n
\r\n

En activité

\r\n {\r\n activityState.items.map((activity, index) => {\r\n return \r\n })\r\n \r\n }\r\n \r\n
\r\n

Ajouter une autre ACTIVITÉ

\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport {RegexFields} from '../../../../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\nexport const CustomPensionForm = ({payload, setPayload, index}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} required />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress3: e.target.value } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} pattern={RegexFields.frenchZipCode} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as R from 'ramda';\r\nimport { CustomPensionForm } from './customPensionForm';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport Pension from '../../../../../../../constants/models/servicePayloads/pension';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, PensionProfessionalCategoryMapping } from '../../../../../../../constants/utils/connectionTypes';\r\nimport OtherActivity from '../../../../../../../constants/models/servicePayloads/otherActivity';\r\n\r\nexport const PensionDetails = ({ index, pension, userId, removePension, services, disableModifications, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const [selectedCategory, setSelectedCategory] = useState(undefined);\r\n\r\n\r\n const formRef = useRef(null);\r\n let initCollapsedState = true;\r\n let initState = new Pension({\r\n type: 'Retraite',\r\n professionalCategory: \"\",\r\n pensionBaseServiceId: \"\",\r\n pensionComplementServiceId: \"\"\r\n });\r\n let showCustomBasePensionFormInit = false;\r\n let showCustomComplementaryPensionFormInit = false;\r\n let showBasePensionFormInit = true;\r\n let showComplementaryPensionFormInit = true;\r\n if (!R.isNil(pension.id)) {\r\n initState = pension.payload;\r\n let category = PensionProfessionalCategoryMapping.find(c => c.options.find(o => o.value === pension.payload.professionalCategory) !== undefined);\r\n\r\n if (!R.isNil(category) && R.isNil(selectedCategory)) {\r\n setSelectedCategory(category);\r\n }\r\n initCollapsedState = false;\r\n\r\n if (!R.isNil(pension.payload.customPensionBase) && !R.isNil(pension.payload.customPensionBase.name)) {\r\n showCustomBasePensionFormInit = true;\r\n }\r\n if (!R.isNil(pension.payload.customPensionComplement) && !R.isNil(pension.payload.customPensionComplement.name)) {\r\n showCustomComplementaryPensionFormInit = true;\r\n }\r\n if ((R.isNil(pension.payload.pensionBaseServiceId) || pension.payload.pensionBaseServiceId === \"\") && R.isNil(pension.payload.customPensionBase.name)) {\r\n showBasePensionFormInit = false;\r\n }\r\n if ((R.isNil(pension.payload.pensionComplementServiceId) || pension.payload.pensionComplementServiceId === \"\") && R.isNil(pension.payload.customPensionComplement.name)) {\r\n showComplementaryPensionFormInit = false;\r\n }\r\n }\r\n\r\n const [showCustomBasePensionForm, setShowCustomBasePensionForm] = useState(showCustomBasePensionFormInit);\r\n const [showCustomComplementaryPensionForm, setShowCustomComplementaryPensionForm] = useState(showCustomComplementaryPensionFormInit);\r\n\r\n const [showBasePensionForm, setShowBasePensionForm] = useState(showBasePensionFormInit);\r\n const [showComplementaryPensionForm, setShowComplementaryPensionForm] = useState(showComplementaryPensionFormInit);\r\n\r\n const [payload, setPayload] = useState({ ...initState });\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n let pensionBase = undefined;\r\n let pensionsComplementary = undefined;\r\n let selectedPensionComplementary = undefined;\r\n let branchBase = undefined;\r\n let branchComplementary = undefined;\r\n let selectedProfessionalSubcategoryTitle = undefined;\r\n if (payload.professionalCategory !== \"\") {\r\n pensionBase = services.find(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Base\") && s.name !== \"ONaCVG\");\r\n if (!R.isNil(pensionBase)) {\r\n branchBase = pensionBase.branches.find(b => b.id === payload.pensionBaseServiceId);\r\n }\r\n pensionsComplementary = services.filter(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Complementary\"));\r\n if (payload.pensionComplementServiceId !== \"\") {\r\n selectedPensionComplementary = pensionsComplementary.find(p => p.branches.find(b => b.id === payload.pensionComplementServiceId) !== undefined);\r\n if (!R.isNil(selectedPensionComplementary))\r\n branchComplementary = selectedPensionComplementary.branches.find(b => b.id === payload.pensionComplementServiceId);\r\n } else {\r\n if (pensionsComplementary.length > 1) {\r\n selectedPensionComplementary = undefined;\r\n } else {\r\n selectedPensionComplementary = pensionsComplementary[0];\r\n }\r\n\r\n }\r\n\r\n PensionProfessionalCategoryMapping.forEach((cat) => {\r\n let matchingOption = cat.options.find(o => o.value === payload.professionalCategory);\r\n if (!R.isNil(matchingOption)) {\r\n selectedProfessionalSubcategoryTitle = matchingOption.title;\r\n }\r\n });\r\n // if(payload.professionalCategory === \"Autres\"){\r\n // selectedProfessionalSubcategoryTitle = \"Autres\";\r\n // }\r\n }\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n useEffect(() => {\r\n setPayload({ ...initState });\r\n\r\n }, [pension]);\r\n\r\n useEffect(() => {\r\n if (!disableModifications || R.isNil(pension.id)) {\r\n setShowBasePensionForm(true);\r\n setShowComplementaryPensionForm(true);\r\n }\r\n }, [selectedCategory, payload.professionalCategory]);\r\n\r\n return (\r\n
\r\n
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n
\r\n

{index === 0 ? 'Votre retraite principale' : 'Autre retraite/réversion'}

\r\n {\r\n payload.professionalCategory !== \"\" ?\r\n {selectedProfessionalSubcategoryTitle}\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Catégorie socioprofessionnelle avant la retraite
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {\r\n !R.isNil(selectedCategory) && selectedCategory.title !== \"Autres\" ?\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n\r\n {\r\n payload.professionalCategory !== \"\" ?\r\n \r\n {\r\n showBasePensionForm || showCustomBasePensionForm ?\r\n \r\n
\r\n
\r\n
\r\n
Régime de base\r\n {\r\n showComplementaryPensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n }\r\n
\r\n\r\n
\r\n\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomBasePensionForm ?\r\n \r\n :\r\n \r\n }\r\n\r\n\r\n\r\n
\r\n }\r\n\r\n
\r\n {\r\n showCustomBasePensionForm ?\r\n setPayload({ ...payload, customPensionBase: val, pensionBaseServiceId: \"\" })} />\r\n :\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n :\r\n ''\r\n }\r\n\r\n {\r\n showComplementaryPensionForm || showCustomComplementaryPensionForm ?\r\n \r\n
\r\n
\r\n
\r\n
Régime complémentaire\r\n {\r\n showBasePensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n\r\n }\r\n
\r\n
\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomComplementaryPensionForm ?\r\n \r\n :\r\n \r\n }\r\n
\r\n }\r\n
\r\n {\r\n\r\n showCustomComplementaryPensionForm ?\r\n setPayload({ ...payload, customPensionComplement: val, pensionComplementServiceId: \"\" })} />\r\n :\r\n
\r\n
\r\n
\r\n \r\n {\r\n pensionsComplementary.length === 1 ?\r\n \r\n :\r\n \r\n }\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n :\r\n ''\r\n\r\n }\r\n\r\n\r\n\r\n
\r\n\r\n :\r\n ''\r\n }\r\n\r\n\r\n
\r\n
\r\n {\r\n payload.professionalCategory === \"\" ?\r\n \r\n :\r\n \r\n\r\n }\r\n\r\n {\r\n index === 0 || (disableModifications && !R.isNil(pension.id)) ?\r\n ''\r\n :\r\n {\r\n e.preventDefault();\r\n if (R.isNil(pension.id)) {\r\n removePension(pension);\r\n } else {\r\n dispatch(deleteServiceData(pension.id, ConnectionTypes.pension));\r\n }\r\n }}>\r\n\r\n }\r\n\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { fetchServices } from '../../../../../../../actions/services-api';\r\nimport { PensionDetails } from './pensionDetails';\r\nimport { ConnectionTypes, FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { set } from 'date-fns';\r\nimport { LoadingState } from '../../../../../../../_common/loadingState';\r\n\r\nexport const Pension = ({ userId, serviceDatas, disableModifications, generateLetters }) => {\r\n const dispatch = useDispatch();\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [pensionState, setPensionState] = useState({\r\n items: [{}],\r\n services: []\r\n });\r\n\r\n\r\n useEffect(async () => {\r\n if (R.isEmpty(pensionState.services)) {\r\n setIsLoading(true);\r\n let elements = await dispatch(fetchServices(ConnectionTypes.pension));\r\n setPensionState({ ...pensionState, items: R.isEmpty(pensionState.items.filter(i => !R.isEmpty(i))) ? [{}] : [...pensionState.items.filter(i => !R.isEmpty(i) && i.serviceName != \"ONaCVG\")], services: pensionState.services.concat(elements.items.filter(e => e.serviceName != \"ONaCVG\")) });\r\n setIsLoading(false);\r\n }\r\n }, [pensionState]);\r\n\r\n useEffect(() => {\r\n const pensionsInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.pension);\r\n if (pensionsInState.length > 0) {\r\n setPensionState({\r\n ...pensionState,\r\n items: pensionsInState\r\n });\r\n } else {\r\n //setPensionState({...pensionState, items: [{}]});\r\n }\r\n }, [serviceDatas]);\r\n\r\n function removePension(pension) {\r\n setPensionState({ ...pensionState, items: pensionState.items.filter(a => a !== pension) });\r\n }\r\n\r\n // if (true) {\r\n // return (
\r\n //
\r\n // \r\n //
\r\n //
);\r\n // }\r\n\r\n if (isLoading) {\r\n return
;\r\n }\r\n if (R.isEmpty(pensionState.services)) {\r\n return '';\r\n }\r\n return (\r\n
\r\n

Retraite

\r\n {\r\n pensionState.items.map((item, index) => {\r\n return ;\r\n })\r\n\r\n }\r\n\r\n
\r\n

Ajouter une autre RETRAITE

\r\n \r\n
\r\n
\r\n );\r\n};","import React, { useRef, useState, useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as R from 'ramda';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\nimport AddressInfo from '../../../../../../../constants/models/addressInfo';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const OtherActivityDetails = ({index, activity, userId, removeActivity, disableModifications, generateLetters}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const formRef = useRef(null);\r\n\r\n let initState = {\r\n type: FrenchTypes.otherActivity,\r\n name: \"\",\r\n address: new AddressInfo({addressCountry:'FR', streetAddress: \"\",streetAddress2: \"\",postalCode: \"\", addressLocality: \"\"}),\r\n function: \"\",\r\n };\r\n let initCollapsedState = true;\r\n let activityName = undefined;\r\n if(!R.isNil(activity.id)){\r\n initState = activity.payload;\r\n initCollapsedState = false;\r\n activityName = activity.payload.name;\r\n }\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n const [payload, setPayload] = useState({...initState});\r\n\r\n useEffect(() => {\r\n setPayload({...activity.payload, address: !R.isNil(activity.payload) ? {...activity.payload.address} : new AddressInfo({addressCountry:'FR', streetAddress: \"\",streetAddress2: \"\",postalCode: \"\", addressLocality: \"\"})});\r\n activityName = R.isNil(activity.payload) ? '' : activity.payload.name;\r\n if(!R.isNil(activity.id)){\r\n setCollapsed(false);\r\n }\r\n }, [activity])\r\n\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{index === 0 ? \"Autre activité\" : \"Autre activité\"}

\r\n\t\t\t\t\t\t{!R.isNil(activityName) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{activityName}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

Association, tutelle, curatelle...

\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
nom de l’activité
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\tpostalCodeDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcityDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
function professionnel
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, function: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.otherActivity), serviceId: FrenchTypes.otherActivity + index, payload: payload });\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(createServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (generateLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{index === 0 || (disableModifications && !R.isNil(activity.id)) ? (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.otherActivity));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport {OtherActivityDetails} from './otherActiviteDetails';\r\nimport { FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const OtherActivity = ({userId, serviceDatas, disableModifications, generateLetters}) => {\r\n\r\n const [activityState, setActivityState] = useState({\r\n items: []\r\n });\r\n\r\n useEffect(() => {\r\n let activitiesInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.otherActivity);\r\n if (activitiesInState.length > 0){\r\n setActivityState({\r\n items: activitiesInState\r\n });\r\n }else{\r\n setActivityState({...activityState, items: [{}]});\r\n }\r\n }, [serviceDatas]);\r\n\r\n function removeActivity(activity) {\r\n setActivityState({...activityState, items: activityState.items.filter(a => a !== activity)});\r\n }\r\n\r\n return (\r\n
\r\n

autre activité

\r\n {\r\n activityState.items.map((activity, index) => {\r\n return \r\n })\r\n \r\n }\r\n\r\n
\r\n

Ajouter une autre ACTIVITÉ

\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as R from 'ramda';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\nimport AddressInfo from '../../../../../../../constants/models/addressInfo';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\nexport const LeaseDetails = ({index, activity, userId, removeActivity, disableModifications, generateLetters}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n \r\n const formRef = useRef(null);\r\n let name = undefined;\r\n let initCollapsedState = true;\r\n let initState = {\r\n type: 'Locataire',\r\n name: \"\",\r\n address: new AddressInfo({addressCountry:'FR', streetAddress: \"\",streetAddress2: \"\",postalCode: \"\", addressLocality: \"\"}),\r\n };\r\n if(!R.isNil(activity.id)){\r\n initState = activity.payload;\r\n initCollapsedState = false;\r\n name = activity.payload.name;\r\n }\r\n const [payload, setPayload] = useState({...initState});\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n useEffect(() =>{\r\n if(!R.isNil(activity.payload)){\r\n setPayload({...activity.payload});\r\n }\r\n \r\n if(!R.isNil(activity.id)){\r\n setCollapsed(false);\r\n }\r\n\r\n }, [activity]);\r\n\r\n\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{index === 0 ? \"Votre bail principal\" : \"Autre bail\"}

\r\n\t\t\t\t\t\t{!R.isNil(name) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{name}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
nom du propriétaire ou du cabinet
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} disabled={disableModifications && !R.isNil(activity.id)} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\tpostalCodeDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcityDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.locataire), serviceId: FrenchTypes.locataire + index, payload: payload });\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(createServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (generateLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.locataire));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport {LeaseDetails} from './leaseDetails';\r\nimport { FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Tenant = ({userId, serviceDatas, disableModifications, generateLetters}) => {\r\n const [tenantState, setTenantState] = useState({\r\n items: []\r\n });\r\n\r\n useEffect(() => {\r\n let leaseInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.locataire);\r\n if (leaseInState.length > 0){\r\n setTenantState({\r\n items: leaseInState\r\n });\r\n }else{\r\n setTenantState({...tenantState, items: [{\r\n type: 'Locataire',\r\n name: \"\",\r\n addressStreet1: \"\",\r\n addressStreet2: \"\",\r\n addressPostalCode: \"\",\r\n addressLocality: \"\",\r\n addressCountry: \"FR\"\r\n }]});\r\n }\r\n }, [serviceDatas]);\r\n\r\n function removeActivity(locataire) {\r\n setTenantState({...tenantState, items: tenantState.items.filter(a => a !== locataire)});\r\n }\r\n\r\n return (\r\n
\r\n

Bail

\r\n {\r\n tenantState.items.map((activity, index) => {\r\n return \r\n })\r\n \r\n }\r\n \r\n
\r\n

Ajouter un autre BAIL

\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { AsyncPaginate } from 'react-select-async-paginate';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport { fetchServices } from '../../../../../../../actions/services-api';\r\nimport ServiceInfo from '../../../../../../../constants/models/serviceInfo';\r\nimport { ConnectionTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\n\r\nexport const SearchService = ({ connectionType, searchPage, setSearchPage, searchFilter, setSearchFilter, setCurrentPage, updateLoadedItems, setLoadMore, setIsLoadingServices, isLoadingServices }) => {\r\n const dispatch = useDispatch();\r\n const [selectSearch, setSelectSearch] = useState('');\r\n\r\n const sleep = ms =>\r\n new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve();\r\n }, ms);\r\n });\r\n\r\n async function searchAreEqual(search) {\r\n await sleep(1000);\r\n return search === selectSearch;\r\n }\r\n\r\n\r\n\r\n async function loadOptions(search, loadedOptions, { page }) {\r\n // if(isLoadingServices){\r\n // return null;\r\n // }\r\n let response = [];\r\n let responseJSON = [];\r\n let hasMore = false;\r\n setIsLoadingServices(true);\r\n if (search === '' || R.isNil(search)) {\r\n response = await dispatch(fetchServices(connectionType, page));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n hasMore = responseJSON.length === 100;\r\n }\r\n //else if ((search !== '' && !R.isNil(search))) {\r\n else {\r\n let areEqual = await searchAreEqual(search);\r\n if (areEqual) {\r\n response = await dispatch(fetchServices(connectionType, 0, search));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n if (responseJSON.length === 100) {\r\n setSearchPage(searchPage + 1);\r\n hasMore = true;\r\n }\r\n else {\r\n hasMore = false;\r\n }\r\n }\r\n else {\r\n hasMore = true;\r\n }\r\n }\r\n updateLoadedItems(response);\r\n setIsLoadingServices(false);\r\n let filteredOptions = responseJSON.filter(s => s.branches.length > 0).length > 0 && responseJSON.filter(s => s.branches.length > 0).map(sr =>\r\n sr.branches.map(s => {\r\n let city = !R.isNil(s.address.addressLocality) && s.address.addressLocality !== '' ? s.address.addressLocality[0].toUpperCase() + s.address.addressLocality.toLowerCase().slice(1) : '';\r\n let val = s.name + (city !== '' ? ' (' + (!R.isNil(s.address.postalCode) ? s.address.postalCode + ' ' : '') + city + ')' : '');\r\n if(connectionType === ConnectionTypes.waterSupplier){\r\n val = `${s.name} (${sr.name})`;\r\n }\r\n return {\r\n label: val,\r\n value: val\r\n };\r\n }));\r\n filteredOptions = !R.isNil(filteredOptions) && filteredOptions.length > 0 ? [].concat.apply([], filteredOptions) : [];\r\n\r\n if ((R.isNil(search) || search === '') && !R.isNil(page)) {\r\n setCurrentPage((parseInt(page) + 1));\r\n }\r\n if ((R.isNil(search) || search === '') && response.length === 100) {\r\n setLoadMore(true);\r\n }\r\n else if ((R.isNil(search) || search === '') && response.length < 100) {\r\n setLoadMore(false);\r\n }\r\n return {\r\n options: filteredOptions,\r\n hasMore: hasMore,\r\n additional: {\r\n page: !R.isNil(search) && search !== '' ? searchPage : page + 1,\r\n }\r\n };\r\n }\r\n\r\n useEffect(() => {\r\n loadOptions(\"\", null, 0);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n { setSearchFilter(option.map(o => { return { label: o.value, value: o.value }; })); }}\r\n isMulti={true}\r\n cacheUniqs={[]}\r\n additional={{ page: 0 }}\r\n debounceTimeout={1000}\r\n onInputChange={(searchInput) => {\r\n setSelectSearch(searchInput);\r\n // selectSearch = searchInput;\r\n // if (!searchInput.includes(selectSearch)) {\r\n // setSearchPage(0);\r\n // }\r\n }}\r\n placeholder=\"Rechercher...\"\r\n loadingMessage={() => \"Chargement...\"}\r\n noOptionsMessage={() => \"Aucun résultat\"}\r\n />\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';//createServiceData\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport Generic from '../../../../../../../constants/models/servicePayloads/generic';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as Loadings from '../../../../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nexport const Box = ({ isCollapsed, setServiceOnFocus, branch, contractReference, setContractReference, inputOnFocus, connectionType, boxIndex, setSearchFilter, isLoading, userId, serviceDatas, displayComments, disableModifications, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const inputRef = useRef(null);\r\n const [payloads, setPayloads] = useState({items: [{id: 'new', payload: new Generic({reference: '', comment: ''})}]});\r\n const [toDelete, setToDelete] = useState([]);\r\n const [autoFocus, setAutoFocus] = useState(false);\r\n\r\n let addressName = (!R.isNil(branch.address.streetAddress) ? branch.address.streetAddress : '') + (!R.isNil(branch.address.streetAddress2) ? ' ' + branch.address.streetAddress2 : '') + (!R.isNil(branch.address.streetAddress3) ? ' ' + branch.address.streetAddress3 : '') + (!R.isNil(branch.address.postalCode) && !R.isNil(branch.address.addressLocality) ? ',' + branch.address.postalCode + ' ' + branch.address.addressLocality : '') + (!R.isNil(branch.address.addressCountry) ? ', ' + countries.getName(branch.address.addressCountry, \"fr\", {select: \"official\"}) : '');\r\n function loadReferences(){\r\n let allServicesWithSameBranch = serviceDatas.filter(b => b.serviceId === branch.id);\r\n let tmpPayloads = {items: payloads.items.filter(i => toDelete.findIndex(d => d === i.id) === -1)};\r\n allServicesWithSameBranch.forEach(br => {\r\n if (tmpPayloads.items.findIndex(tmp => tmp.id === br.id) === -1){\r\n tmpPayloads.items.push({id: br.id, payload: br.payload});\r\n }\r\n });\r\n if (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0){\r\n if(tmpPayloads.items[0].payload.reference === ''){\r\n tmpPayloads.items.splice(0,1);\r\n }\r\n setPayloads(tmpPayloads);\r\n }\r\n setToDelete([]);\r\n }\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [serviceDatas]);\r\n\r\n let fieldName = \"Référence\";\r\n if(connectionType === ConnectionTypes.socialNetworks){\r\n fieldName = \"Nom d'utilisateur, adresse e-mail ou téléphone\";\r\n }else if(connectionType === ConnectionTypes.homeService){\r\n fieldName = \"Référence ou nº CESU\";\r\n }else if(connectionType === ConnectionTypes.multimedia){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.technology){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.music){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.poleEmploi){\r\n fieldName = \"Numéro d'adhérent\";\r\n }else if(connectionType === ConnectionTypes.socialSecurity){\r\n fieldName = \"Numéro de Sécurité Sociale\";\r\n }else if(connectionType === ConnectionTypes.caf){\r\n fieldName = \"Numéro de Sécurité Sociale\";\r\n }else if(connectionType === ConnectionTypes.taxes){\r\n fieldName = \"Numéro fiscal\";\r\n }\r\n\r\n if (isCollapsed) {\r\n return (\r\n
{\r\n setServiceOnFocus(branch.id);\r\n }}>\r\n
\r\n

{branch.name}

\r\n {\r\n !R.isNil(branch.address.addressLocality) && branch.address.addressLocality.trim() !== '' ?\r\n
\r\n {branch.address.addressLocality == \"Invalid\" ? \"Lien de connexion\" : branch.address.addressLocality}\r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n );\r\n }\r\n\r\n return (\r\n
\r\n
\r\n

\r\n {\r\n connectionType === ConnectionTypes.socialSecurity ? \r\n branch.name.toUpperCase().indexOf('MSA') > -1 ||\r\n branch.name.toUpperCase().indexOf('CAMIEG') > -1 ||\r\n branch.name.toUpperCase().indexOf('CNMSS') > -1 ||\r\n branch.name.toUpperCase().indexOf('ENIM') > -1 ||\r\n branch.name.toUpperCase().indexOf('CANSSM') > -1 ||\r\n branch.name.toUpperCase().indexOf('CPRPSNCF') > -1 ? \r\n branch.name \r\n : \r\n \"CPAM\" \r\n : connectionType === ConnectionTypes.poleEmploi ? \r\n \"France Travail\" \r\n : connectionType === ConnectionTypes.taxes ? \r\n \"Service des impôts des particuliers\"\r\n : \r\n branch.name\r\n }

\r\n {\r\n addressName.indexOf('Pas d\\'adresse') > -1 || addressName.indexOf('00000') > -1 ? \r\n
{/**/} 
\r\n :\r\n !R.isNil(addressName) && addressName.trim() !== '' ?
{addressName}
\r\n : ''\r\n }\r\n
\r\n\r\n\r\n
\r\n
\r\n {\r\n connectionType === ConnectionTypes.notary ? '' :\r\n payloads.items.map((br, index) => {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, reference: e.target.value} };\r\n }\r\n })});\r\n }} />\r\n\r\n {\r\n //!displayComments && !R.isEmpty(br.id) ?\r\n // ''\r\n //: \r\n disableModifications && !R.isEmpty(br.id) && !R.startsWith('new', br.id) ?\r\n ''\r\n :\r\n (index === 0 ? br.payload.reference !== '' : true) ?\r\n {\r\n e.preventDefault();\r\n if (!R.isNil(br.id) && br.id !== '' && !R.startsWith('new', br.id)) {\r\n let tmpToDelete = toDelete.concat(br.id);\r\n setToDelete(tmpToDelete);\r\n dispatch(deleteServiceData(br.id, connectionType));\r\n }\r\n let newPayload = payloads.items.filter(i => i.id !==br.id);\r\n if (newPayload.length === 0) {\r\n newPayload.push({ id: '', payload: new Generic({ reference: '', comment: '' }) });\r\n }\r\n setPayloads({ ...payloads, items: newPayload });\r\n }}>\r\n\r\n : \r\n ''\r\n }\r\n
\r\n \r\n
\r\n {\r\n displayComments ? \r\n
\r\n
\r\n \r\n

\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, comment: e.target.value} };\r\n }\r\n })});\r\n }} /> \r\n {\r\n disableModifications && !R.isEmpty(br.id) ?\r\n ''\r\n : \r\n (index === 0 ? br.payload.reference !== '' : true) ?\r\n {\r\n e.preventDefault();\r\n if (!R.isNil(br.id) && br.id !== '') {\r\n let tmpToDelete = toDelete.concat(br.id);\r\n setToDelete(tmpToDelete);\r\n dispatch(deleteServiceData(br.id, connectionType));\r\n }\r\n let newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n if (newPayload.length === 0) {\r\n newPayload.push({ id: '', payload: new Generic({ reference: '', comment: '' }) });\r\n }\r\n setPayloads({ ...payloads, items: newPayload });\r\n }}>\r\n\r\n : \r\n ''\r\n } \r\n
\r\n
\r\n :\r\n ''\r\n }\r\n
Champs invalide
\r\n
\r\n )\r\n })\r\n }\r\n {\r\n connectionType === ConnectionTypes.notary ? '' :\r\n \r\n }\r\n
\r\n \r\n
\r\n \r\n\r\n {!R.isNil(contractReference[branch.id]) && contractReference[branch.id] !== '' && connectionType === ConnectionTypes.notary ?\r\n {\r\n e.preventDefault();\r\n //Notary\r\n let tmpContracts = JSON.parse(JSON.stringify(contractReference));\r\n tmpContracts[branch.id] = '';\r\n setContractReference(tmpContracts);\r\n\r\n const serviceDataIndex = serviceDatas.findIndex(s => s.serviceId === branch.id);\r\n if (serviceDataIndex !== -1) {\r\n dispatch(deleteServiceData(serviceDatas[serviceDataIndex].id, connectionType));\r\n }\r\n }}>\r\n : ''}\r\n
\r\n
\r\n
\r\n );\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport Generic from '../../../../../../../constants/models/servicePayloads/generic';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as Loadings from '../../../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { RegexFields } from '../../../../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const CustomBox = ({ customServiceData, inputOnFocus, connectionType, boxIndex, setShowCustomBox, isActive, setSearchFilter, userId, serviceDatas, isLoading, displayComments, disableModifications, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const customFormRef = useRef(null);\r\n const [payloads, setPayloads] = useState({ items: [{ id: '', payload: new Generic({ reference: '', comment: '' }) }] });\r\n const [toDelete, setToDelete] = useState([]);\r\n const [autoFocus, setAutoFocus] = useState(false);\r\n const [isEditing, setIsEditing] = useState(R.isNil(customServiceData) ? true : false);\r\n\r\n function loadReferences() {\r\n let allServicesWithSameBranch = serviceDatas.filter(b => b.serviceId === customServiceData.serviceId);\r\n let tmpPayloads = { items: payloads.items.filter(i => toDelete.findIndex(d => d === i.id) === -1) };\r\n allServicesWithSameBranch.forEach(br => {\r\n if (tmpPayloads.items.findIndex(tmp => tmp.id === br.id) === -1) {\r\n tmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n }\r\n });\r\n if (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n if (tmpPayloads.items[0].payload.reference === '') {\r\n tmpPayloads.items.splice(0, 1);\r\n }\r\n setPayloads(tmpPayloads);\r\n }\r\n setToDelete([]);\r\n }\r\n\r\n\r\n let customServiceDetails = R.isNil(customServiceData) ? null : customServiceData.customServiceDetails;\r\n if (R.isNil(customServiceDetails)) {\r\n customServiceDetails = {\r\n name: \"\",\r\n address: {\r\n streetAddress: \"\",\r\n streetAddress2: \"\",\r\n postalCode: \"\",\r\n addressLocality: \"\",\r\n addressCountry: \"FR\"\r\n }\r\n };\r\n }\r\n const [serviceDetails, setServiceDetails] = useState(customServiceDetails);\r\n\r\n useEffect(() => {\r\n if(!R.isNil(customServiceData)){\r\n loadReferences();\r\n }\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [serviceDatas]);\r\n\r\n let addressName = (!R.isNil(serviceDetails.address.streetAddress) ? serviceDetails.address.streetAddress : '') + (!R.isNil(serviceDetails.address.streetAddress2) ? ' ' + serviceDetails.address.streetAddress2 : '') + (!R.isNil(serviceDetails.address.streetAddress3) ? ' ' + serviceDetails.address.streetAddress3 : '') + (!R.isNil(serviceDetails.address.postalCode) && !R.isNil(serviceDetails.address.addressLocality) ? ',' + serviceDetails.address.postalCode + ' ' + serviceDetails.address.addressLocality : '') + (!R.isNil(serviceDetails.address.addressCountry) ? ', ' + countries.getName(serviceDetails.address.addressCountry, \"fr\", {select: \"official\"}) : '');\r\n \r\n let fieldName = \"Référence\";\r\n if(connectionType === ConnectionTypes.socialNetworks){\r\n fieldName = \"Nom d'utilisateur, adresse e-mail ou téléphone\";\r\n }else if(connectionType === ConnectionTypes.homeService){\r\n fieldName = \"Référence ou nº CESU\";\r\n }else if(connectionType === ConnectionTypes.multimedia){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.technology){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.music){\r\n fieldName = \"Référence ou adresse e-mail\";\r\n }else if(connectionType === ConnectionTypes.poleEmploi){\r\n fieldName = \"Numéro d'adhérent\";\r\n }else if(connectionType === ConnectionTypes.socialSecurity){\r\n fieldName = \"Numéro de Sécurité Sociale\";\r\n }else if(connectionType === ConnectionTypes.caf){\r\n fieldName = \"Numéro de Sécurité Sociale\";\r\n }else if(connectionType === ConnectionTypes.taxes){\r\n fieldName = \"Numéro fiscal\";\r\n }\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t{isEditing ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, streetAddress: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={serviceDetails.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setServiceDetails({ ...serviceDetails, address: { ...serviceDetails.address, addressLocality: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{serviceDetails.name}

\r\n\t\t\t\t\t\t{!R.isNil(addressName) && addressName.trim() !== \"\" ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{addressName}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{connectionType === ConnectionTypes.notary\r\n\t\t\t\t\t\t\t? \"\"\r\n\t\t\t\t\t\t\t: payloads.items.map((br, index) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Une référence permet à vos organismes de vous identifier afin de faire les démarches nécessaires.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...payloads,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titems: payloads.items.map((i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i.id !== br.id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn { ...br, payload: { ...br.payload, reference: e.target.value } };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{!displayComments && !R.isEmpty(br.id) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : disableModifications && !R.isEmpty(br.id) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (index === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{displayComments ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{displayComments ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Les cases commentaires sont personnelles (ne seront pas visibles par le référent), elles vous permettent d'ajouter des notes à vos services.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...payloads,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titems: payloads.items.map((i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i.id !== br.id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn { ...br, payload: { ...br.payload, comment: e.target.value } };\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{disableModifications && !R.isEmpty(br.id) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (index === 0 ? br.payload.reference !== \"\" : true) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(br.id) && br.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(br.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(br.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlet newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newPayload.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewPayload.push({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: newPayload });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t })}\r\n\t\t\t\t\t\t{connectionType === ConnectionTypes.notary ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetPayloads({ ...payloads, items: payloads.items.concat({ id: \"\", payload: new Generic({ reference: \"\", comment: \"\" }) }) });\r\n\t\t\t\t\t\t\t\t\tsetAutoFocus(true);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tAjouter une autre référence\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t\t{isEditing ?
: \"\"}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t !R.isEmpty(i.id)))\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (connectionType !== ConnectionTypes.notary) {\r\n\t\t\t\t\t\t\t\t\tcustomFormRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tif (customFormRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tlet payloadsToHandle = payloads.items;\r\n\t\t\t\t\t\t\t\t\t\tif (disableModifications) {\r\n\t\t\t\t\t\t\t\t\t\t\tpayloadsToHandle = payloads.items.filter((i) => R.isEmpty(i.id));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tpayloadsToHandle.forEach((payload) => {\r\n\t\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: \"custom\", customServiceDetails: serviceDetails, payload: payload.payload });\r\n\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(customServiceData) && !R.isNil(customServiceData.serviceId) && customServiceData.serviceId !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tserviceData.serviceId = customServiceData.serviceId;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(payload.id) || R.isEmpty(payload.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(createServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (generateLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tserviceData.id = payload.id;\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\tsetPayloads({ payloads, items: payloads.items.filter((i) => i.id !== \"\") });\r\n\t\t\t\t\t\t\t\t\t\tsetToDelete([]);\r\n\t\t\t\t\t\t\t\t\t\tif (!R.isNil(setSearchFilter)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetSearchFilter([]);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t//Notaire\r\n\t\t\t\t\t\t\t\t\tif ((R.isNil(customServiceData) && payloads.items[0].payload.reference === \"\") || R.isNil(payloads.items[0].payload.reference)) {\r\n\t\t\t\t\t\t\t\t\t\tpayloads.items[0].payload.reference = \"custom\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(connectionType), serviceId: \"custom\", customServiceDetails: serviceDetails, payload: payloads.items[0].payload });\r\n\t\t\t\t\t\t\t\t\tif (R.isNil(customServiceData)) {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(createServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t\tsetShowCustomBox(false);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tserviceData.id = customServiceData.id;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(setSearchFilter)) {\r\n\t\t\t\t\t\t\t\t\t\tsetSearchFilter([]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t{disableModifications && payloads.items.some((i) => !R.isEmpty(i.id)) ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetIsEditing(!isEditing);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t{!R.isNil(customServiceData) && customServiceData.id !== \"\" && connectionType === ConnectionTypes.notary ? (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(customServiceData.id) && customServiceData.id !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\tlet tmpToDelete = toDelete.concat(customServiceData.id);\r\n\t\t\t\t\t\t\t\t\t\tsetToDelete(tmpToDelete);\r\n\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(customServiceData.id, connectionType));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport removeAccents from 'remove-accents';\r\nimport { fetchServices, getServiceById } from '../../../../../../../actions/services-api';\r\nimport { useDispatch } from 'react-redux';\r\nimport { SearchService } from './searchService';\r\nimport { Box } from './box';\r\nimport { CustomBox } from './customBox';\r\nimport ServiceInfo from '../../../../../../../constants/models/serviceInfo';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { LoadingState } from '../../../../../../../_common/loadingState';\r\n\r\nexport const DefaultService = ({ selectedService, serviceDatas, isLoading, userId, displayComments, disableModifications, generateLetters }) => {\r\n const dispatch = useDispatch();\r\n const servicesRef = useRef(null);\r\n const [serviceOnFocus, setServiceOnFocus] = useState(undefined);\r\n const [searchPage, setSearchPage] = useState(0);\r\n const [currentPage, setCurrentPage] = useState(1);\r\n const [resetPage, setResetPage] = useState(false);\r\n const [contractReference, setContractReference] = useState({});\r\n const [searchFilter, setSearchFilter] = useState([]);\r\n const [loadedServices, setLoadedServices] = useState([]);\r\n const [canFillContract, setCanFillContract] = useState(false);\r\n const [showCustomBox, setShowCustomBox] = useState(false);\r\n const [loadMore, setLoadMore] = useState(false);\r\n const [allBranches, setAllBranches] = useState([]);\r\n const [isLoadingServices, setIsLoadingServices] = useState(false);\r\n\r\n const [customServiceDatas, setCustomServiceDatas] = useState([]);\r\n\r\n const serviceType = convertConnectionTypesToServiceType(selectedService.connectionType);\r\n\r\n\r\n\r\n function updateLoadedItems(data) {\r\n if (!R.isNil(data) && data.items.length > 0) {\r\n let newLoadedServices = loadedServices;\r\n data.items.map(d => {\r\n if (!loadedServices.some(l => l.name === d.name)) {\r\n newLoadedServices = [...newLoadedServices, new ServiceInfo(d)];\r\n\r\n }\r\n });\r\n setLoadedServices(newLoadedServices);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (!R.isNil(selectedService.connectionType)) {\r\n setContractReference({});\r\n setServiceOnFocus({});\r\n setSearchFilter([]);\r\n setSearchPage(0);\r\n setCurrentPage(1);\r\n setResetPage(true);\r\n setLoadedServices([]);\r\n setCanFillContract(false);\r\n setShowCustomBox(false);\r\n }\r\n\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedService]);\r\n\r\n\r\n useEffect(() => {\r\n setTimeout(() => {\r\n setResetPage(false);\r\n }, 1);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [resetPage]);\r\n\r\n useEffect(() => {\r\n document.addEventListener('click', handleClickOutside, true);\r\n\r\n return () => {\r\n document.removeEventListener('click', handleClickOutside, true);\r\n };\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n function loadNotVisibleUserServices() {\r\n for (const serviceData of serviceDatas) {\r\n if (serviceData.serviceId.startsWith('Custom'))\r\n continue;\r\n\r\n if (serviceData.serviceType !== serviceType) {\r\n continue;\r\n }\r\n\r\n if (loadedServices.find(service => service.branches.findIndex(b => b.id === serviceData.serviceId) !== -1) === undefined) {\r\n dispatch(getServiceById(selectedService.connectionType, serviceData.serviceId)).then((response) => {\r\n if (Array.isArray(response) === false) {\r\n response = { items: [response] };\r\n }\r\n //setLoadedServices(response.map(e => new ServiceInfo(e)));\r\n updateLoadedItems(response);\r\n });\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (!isLoadingServices && loadedServices.length > 0) {\r\n loadNotVisibleUserServices();\r\n }\r\n\r\n }, [isLoadingServices]);\r\n\r\n useEffect(() => {\r\n if (canFillContract === true) {\r\n let tmpContracts = {};\r\n if (!R.isEmpty(serviceDatas)) {\r\n serviceDatas.forEach(serviceData => {\r\n tmpContracts[serviceData.serviceId] = serviceData.payload.reference;\r\n });\r\n }\r\n setContractReference(tmpContracts);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [canFillContract, serviceDatas]);\r\n\r\n const handleClickOutside = (event) => {\r\n if (servicesRef.current && !servicesRef.current.contains(event.target)) {\r\n setServiceOnFocus(undefined);\r\n setSearchPage(0);\r\n }\r\n };\r\n if (canFillContract === false && !R.isEmpty(serviceDatas)) {\r\n setCanFillContract(true);\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(loadedServices)) {\r\n\r\n const branchAggregations = [];\r\n R.sortWith([R.ascend(R.prop('nameNoAccents'))])(loadedServices).filter(s => s.branches.length !== 0).forEach((s) => {\r\n s.branches.forEach((branch) => {\r\n\r\n let a = R.isNil(branch.name) ? '' : branch.name.toLowerCase();\r\n let b = selectedService.connectionType !== ConnectionTypes.waterSupplier ?\r\n R.isNil(branch.address.addressLocality) ? '' : (!R.isNil(branch.address.postalCode) ? branch.address.postalCode + ' ' : '') + branch.address.addressLocality.toLowerCase()\r\n :\r\n s.name.toLowerCase(); \r\n let c = R.isNil(branch.address.streetAddress) ? '' : branch.address.streetAddress.toLowerCase();\r\n let normalizedNameAndAddress = removeAccents(a).replace(/\\s/gi, \"\") + '(' + removeAccents(b).replace(/\\s/gi, \"\") + ')' + removeAccents(c).replace(/\\s/gi, \"\");\r\n let hide = searchFilter.length > 0 ? true : false;\r\n searchFilter.length > 0 && searchFilter.forEach(f => {\r\n if (normalizedNameAndAddress.includes(removeAccents(f.value.toLowerCase()).replace(/\\s/gi, \"\")) && (!R.isNil(f.address) ? normalizedNameAndAddress.includes(removeAccents(f.address.toLowerCase()).replace(/\\s/gi, \"\")) : true)) {\r\n hide = false;\r\n }\r\n });\r\n if (hide !== true) {\r\n const inputOnFocus = branch.id === serviceOnFocus;\r\n const withServiceData = serviceDatas.some(s => s.serviceId === branch.id);\r\n //let withServiceData = (!R.isNil(services.serviceData[connectionType]) && services.serviceData[connectionType].findIndex(s => s.serviceId === branch.id) !== -1);\r\n let isCollapsed = !(inputOnFocus || (!R.isNil(contractReference[branch.id]) && (selectedService.connectionType === ConnectionTypes.insurance ? contractReference[branch.id].length > 0 : contractReference[branch.id] !== ''))) && !withServiceData;\r\n branchAggregations.push({ isCollapsed: isCollapsed, branch: branch, inputOnFocus: inputOnFocus, withServiceData: withServiceData });\r\n //setAllBranches([...allBranches, { isCollapsed: isCollapsed, branch: branch, inputOnFocus: inputOnFocus, withServiceData: withServiceData }])\r\n }\r\n });\r\n });\r\n const sortedBranches = R.sortWith([R.descend(R.prop('withServiceData'))])(branchAggregations);\r\n setAllBranches(sortedBranches);\r\n\r\n };\r\n\r\n setCustomServiceDatas(serviceDatas.filter(s => s.serviceType === serviceType && !R.isNil(s.serviceId) && s.serviceId !== '' && s.serviceId.toLowerCase().startsWith('custom')));\r\n }, [serviceDatas, selectedService, loadedServices, serviceOnFocus, searchFilter]);\r\n\r\n return (\r\n
\r\n

{selectedService.title}

\r\n
\r\n
\r\n {selectedService.title ? (\r\n
\r\n
\r\n
{selectedService.title}
\r\n

{selectedService.detailedDescription}

\r\n
\r\n
\r\n \r\n
\r\n
\r\n ) : ''}\r\n {!R.isNil(loadedServices) ?\r\n
\r\n {\r\n resetPage ? '' :\r\n \r\n }\r\n\r\n
: ''}\r\n {\r\n showCustomBox ?\r\n \r\n :\r\n ''\r\n }\r\n

Sélectionner un ou plusieurs organismes en cliquant sur les éléments ci-dessous.

\r\n {loadedServices.length === 0 ? : ''}\r\n
\r\n {\r\n R.isNil(customServiceDatas) ?\r\n ''\r\n :\r\n customServiceDatas.map((customServiceData, index) => {\r\n if (R.isNil(customServiceData.customServiceDetails)) {\r\n return '';\r\n }\r\n return ;\r\n })\r\n\r\n }\r\n\r\n {allBranches.map((b, index) => {\r\n let isCollapsed = b.isCollapsed;\r\n if (allBranches.length === 1) {\r\n isCollapsed = false;\r\n }\r\n return ;\r\n })}\r\n
\r\n {\r\n loadMore ?
\r\n

Plus

\r\n \r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nexport const CustomBase = ({title, description, customeComponent, index, expanded, branch, setSelectedNonOption, globalPayload, disableModifications}) => {\r\n const [show, setShow] = useState(expanded);\r\n useEffect(() => {\r\n if (!R.isNil(expanded)) {\r\n if (!R.isNil(branch.serviceId)) {\r\n setShow(expanded);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [expanded]);\r\n let titleWithNoSpaces = title.replace(/ /g,'') + \"showInput\" + index;\r\n\r\n let oui = show !== undefined && show === true ? true: false;\r\n let non = show !== undefined && show === false ? true: false;\r\n\r\n useEffect(() => {\r\n if (!R.isNil(show)) {\r\n setSelectedNonOption(show === false ? true : false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [show]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
{title}
\r\n
\r\n
\r\n {/*
*/}\r\n
\r\n setShow(true)} onChange={() => {}} className=\"custom-control-input\" checked={oui} disabled={disableModifications && !R.isNil(globalPayload.id)} />\r\n \r\n
\r\n
\r\n setShow(false)} onChange={() => {}} className=\"custom-control-input\" checked={non} disabled={disableModifications && !R.isNil(globalPayload.id)} />\r\n \r\n \r\n
\r\n {/*
*/}\r\n {/* */}\r\n {/*
\r\n setShow(!show)} defaultChecked={show} />\r\n \r\n
*/}\r\n
\r\n
\r\n {(show === true && description !== undefined) ?

Mentionnez le numéro que vous avez. Le numéro de chacun est facultatif.

: ''}\r\n {\r\n show ?\r\n customeComponent\r\n :\r\n ''\r\n }\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport Bank from '../../../../../../../constants/models/servicePayloads/bank';\r\nimport BankAccount from '../../../../../../../constants/models/servicePayloads/bankAccount';\r\nimport * as R from 'ramda';\r\n\r\nexport const CardColumn = ({ n, cardType, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications }) => {\r\n const [bankAccount, setBankAccount] = useState(new BankAccount({accountType: cardType.accountType, comment: '', number: '', colNum: n}));\r\n\r\n function changePayload(remove, _bankAccount) {\r\n let tmpAccounts = !R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.map((a) => {\r\n let elementsFromColumn = globalPayload.payload.accounts.filter(aa => aa.accountType === cardType.accountType);\r\n let myElementIndex = elementsFromColumn.findIndex(e => e === a);\r\n return {...a,\r\n colNum: myElementIndex\r\n }}) : [];\r\n let currentCol = tmpAccounts.findIndex(a => !R.isNil(a.colNum) && a.colNum === n && a.accountType === cardType.accountType);\r\n\r\n if (currentCol !== -1 && remove === true){\r\n tmpAccounts = tmpAccounts.filter((a,i) => i !== currentCol);\r\n }\r\n else{\r\n if (currentCol === -1) {\r\n tmpAccounts.push(_bankAccount);\r\n }\r\n else {\r\n tmpAccounts[currentCol] = _bankAccount;\r\n }\r\n }\r\n setGlobalPayload({...globalPayload, payload: new Bank({ isMain: isMain, accounts: tmpAccounts })});\r\n };\r\n\r\n useEffect(() => {\r\n let accountsFromAllColumns = !R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.filter(a => a.accountType === cardType.accountType): undefined;\r\n if (!R.isNil(accountsFromAllColumns) && accountsFromAllColumns.length >= n && !R.isNil(accountsFromAllColumns[n])) {\r\n let columnAccount = JSON.parse(JSON.stringify(accountsFromAllColumns[n]));\r\n setBankAccount({ ...bankAccount, comment: columnAccount.comment, number: columnAccount.number });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n \r\n return (\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n {\r\n e.preventDefault();\r\n let tmpBankAccount = {...bankAccount, number: e.target.value};\r\n setBankAccount(tmpBankAccount);\r\n changePayload(null, tmpBankAccount);\r\n }} \r\n />\r\n
\r\n {\r\n displayComments ? \r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n {\r\n (bankAccount.comment !== '' || bankAccount.number !== '') && (disableModifications && R.isNil(globalPayload.id)) ?\r\n {\r\n e.preventDefault();\r\n setBankAccount({...bankAccount, comment: '', number: ''});\r\n changePayload(true);\r\n }}> : ''\r\n }\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react';\r\nimport { CardColumn } from './cardColumn';\r\nimport * as R from 'ramda';\r\n\r\nexport const Card = ({ cardType, icon, branch, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications}) => {\r\n const [number, setNumber] = useState(!R.isNil(globalPayload.payload) ? globalPayload.payload.accounts.filter(a => a.accountType === cardType.accountType).length : 0);\r\n\r\n const [arr, setArr] = useState([]);\r\n useEffect(() => {\r\n if(number === 0){\r\n setArr([]);\r\n }\r\n else if(number > 0 && number < 4){\r\n setArr([[...Array(number).keys()]]);\r\n }else{\r\n let a = [[1, 2, 3]];\r\n let fullLines = Math.trunc((number - 3)/4);\r\n let num = 3;\r\n\r\n let i = 0;\r\n for(; i < fullLines; i++){\r\n a[i + 1] = [];\r\n for(let j = 0; j < 4; j++, num++){\r\n a[i + 1][j] = num;\r\n }\r\n }\r\n\r\n let casesForLastLine = (number - 3)%4;\r\n a[i + 1] = [];\r\n for(let j = 0; j < casesForLastLine; j++, num++){\r\n a[i + 1][j] = num;\r\n }\r\n \r\n setArr(a);\r\n \r\n }\r\n }, [number]);\r\n return (\r\n
0 && number < 3 ? ' active shadow grid-column-' + (number + 1) : '') + (number > 2 ? ' active shadow grid-column-4' : '')}>\r\n
\r\n
\r\n {cardType.name}\r\n
{cardType.name}
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n let val = e.target.value === \"\" ? 0 : parseInt(e.target.value);\r\n\r\n setNumber(val < 0 ? 0 : val > 20 ? 20 : val);\r\n }} />\r\n
\r\n
\r\n {\r\n R.isNil(arr[0]) ?\r\n ''\r\n :\r\n arr[0].map((n, index) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n
\r\n {\r\n R.isNil(arr[0]) ?\r\n ''\r\n :\r\n Object.values(arr).map((line, colIndex) => {\r\n if(colIndex === 0)\r\n return ''\r\n else\r\n return(
\r\n {\r\n line.map((n, index) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n
)\r\n })\r\n\r\n }\r\n
\r\n );\r\n}","import React from 'react';\r\nimport checkbanque from '../../../../../../../assets/images/svg/060-bank-check.svg';\r\nimport {Card} from './card';\r\nimport {PasService} from './pasService';\r\nimport {BankAccountType} from '../../../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const Placement = ({branch, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications}) => {\r\n const cardTypes = [BankAccountType.LivretA, BankAccountType.Ldds, BankAccountType.Lep, BankAccountType.LivretJeune, BankAccountType.Cel,\r\n BankAccountType.Pel, BankAccountType.Perp, BankAccountType.LivretEpargneBancaire, BankAccountType.Cat, BankAccountType.CoffreFortBancaire,\r\n BankAccountType.Scpi, BankAccountType.Pea, BankAccountType.CompteTitre, BankAccountType.Opcvm\r\n ];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React from 'react';\r\nimport {Card} from './card';\r\nimport assurance from '../../../../../../../assets/images/svg/100-assurance.svg';\r\nimport {BankAccountType} from '../../../../../../../constants/models/servicePayloads/bankAccountType';\r\nimport {PasService} from './pasService';\r\n\r\nexport const Assurance = ({branch, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications}) => {\r\n const cardTypes = [BankAccountType.AssuranceDeces, BankAccountType.AssuranceObseque, BankAccountType.AssuranceVie];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React from 'react';\r\nimport { Card } from './card';\r\nimport accountbanque from '../../../../../../../assets/images/svg/060-bank-account.svg';\r\nimport { BankAccountType } from '../../../../../../../constants/models/servicePayloads/bankAccountType';\r\nimport { PasService } from './pasService';\r\n\r\nexport const Credit = ({ branch, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications}) => {\r\n const cardTypes = [BankAccountType.CreditVoiture, BankAccountType.CreditImmobilier, BankAccountType.CreditTravaux,\r\n BankAccountType.CreditConsummation, BankAccountType.CreditAutre];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React from 'react';\r\nimport checkbanque from '../../../../../../../assets/images/svg/016-account-card.svg';\r\nimport {Card} from './card';\r\nimport {PasService} from './pasService';\r\nimport {BankAccountType} from '../../../../../../../constants/models/servicePayloads/bankAccountType';\r\n\r\nexport const CompteCurrent = ({branch, isMain, globalPayload, setGlobalPayload, displayComments, disableModifications}) => {\r\n const cardTypes = [BankAccountType.CompteCurrent];\r\n\r\n return (\r\n
\r\n {\r\n cardTypes.map((name, index) => {\r\n return \r\n })\r\n }\r\n {/* */}\r\n
\r\n );\r\n}","import React, { useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { CustomBase } from './customBase';\r\nimport { Placement } from './placement';\r\nimport { Assurance } from './assurance';\r\nimport { Credit } from './credit';\r\nimport { CompteCurrent } from './compteCurrent';\r\nimport { BankAccountType } from '../../../../../../../constants/models/servicePayloads/bankAccountType';\r\nimport Bank from '../../../../../../../constants/models/servicePayloads/bank';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport * as Loadings from '../../../../../../../constants/loadings/service';\r\n\r\nexport const BankDetails = ({ isMain, branch, index, removeBranch, setShowCustomBox, formRef, setCollapsed, serviceData, isLoading, userId, displayComments, disableModifications, generateLetters }) => {\r\n const [selectedNonOption, setSelectedNonOption] = useState({\r\n current: false,\r\n placements: false,\r\n assurance: false,\r\n credit: false\r\n });\r\n const dispatch = useDispatch();\r\n const currentAccountBankAccountTypes = [BankAccountType.CompteCurrent.accountType];\r\n const placementsBankAccountTypes = [BankAccountType.LivretA.accountType, BankAccountType.Ldds.accountType, BankAccountType.Lep.accountType, BankAccountType.LivretJeune.accountType,\r\n BankAccountType.Cel.accountType, BankAccountType.Pel.accountType, BankAccountType.Perp.accountType, BankAccountType.LivretEpargneBancaire.accountType,\r\n BankAccountType.Cat.accountType, BankAccountType.CoffreFortBancaire.accountType, BankAccountType.Scpi.accountType, BankAccountType.Pea.accountType,\r\n BankAccountType.CompteTitre.accountType, BankAccountType.Opcvm.accountType];\r\n const assuranceBankAccountTypes = [BankAccountType.AssuranceDeces.accountType, BankAccountType.AssuranceObseque.accountType, BankAccountType.AssuranceVie.accountType];\r\n const creditsBankAccountTypes = [BankAccountType.CreditVoiture.accountType, BankAccountType.CreditImmobilier.accountType, BankAccountType.CreditTravaux.accountType, BankAccountType.CreditConsummation.accountType, BankAccountType.CreditAutre.accountType];\r\n\r\n let hasCompteCurrentAccounts = false;\r\n let hasPlacementAccounts = false;\r\n let hasAssuranceAccounts = false;\r\n let hasCreditAccounts = false;\r\n if (!R.isNil(serviceData) && !R.isNil(serviceData.payload) && !R.isNil(serviceData.payload.accounts)) {\r\n hasCompteCurrentAccounts = serviceData.payload.accounts.findIndex(a => currentAccountBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n hasPlacementAccounts = serviceData.payload.accounts.findIndex(a => placementsBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n hasAssuranceAccounts = serviceData.payload.accounts.findIndex(a => assuranceBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n hasCreditAccounts = serviceData.payload.accounts.findIndex(a => creditsBankAccountTypes.indexOf(a.accountType) > -1) > -1;\r\n }\r\n\r\n let initState = {\r\n id: serviceData?.id == \"custom\" ? undefined : serviceData?.id,\r\n serviceType: convertConnectionTypesToServiceType(ConnectionTypes.bank),\r\n serviceId: branch?.id,\r\n payload: serviceData?.payload\r\n }\r\n\r\n const [globalPayload, setGlobalPayload] = useState(initState);\r\n return (\r\n
\r\n { setSelectedNonOption({ ...selectedNonOption, current: op }) }} branch={branch} expanded={!R.isNil(globalPayload.id) ? hasCompteCurrentAccounts : undefined} globalPayload={globalPayload} title=\"Compte courant\" disableModifications={disableModifications} customeComponent={} />\r\n
\r\n\r\n { setSelectedNonOption({ ...selectedNonOption, placements: op }) }} branch={branch} expanded={!R.isNil(globalPayload.id) ? hasPlacementAccounts : undefined} globalPayload={globalPayload} title=\"Vos placements bancaires\" disableModifications={disableModifications} customeComponent={} />\r\n\r\n
\r\n\r\n { setSelectedNonOption({ ...selectedNonOption, assurance: op }) }} branch={branch} expanded={!R.isNil(globalPayload.id) ? hasAssuranceAccounts : undefined} globalPayload={globalPayload} title=\"Vos assurances bancaires\" disableModifications={disableModifications} customeComponent={} />\r\n
\r\n\r\n { setSelectedNonOption({ ...selectedNonOption, credit: op }) }} branch={branch} expanded={!R.isNil(globalPayload.id) ? hasCreditAccounts : undefined} globalPayload={globalPayload} title=\"Vos crédits bancaires\" disableModifications={disableModifications} customeComponent={} disableModifications={disableModifications} />\r\n
\r\n
\r\n {\r\n isLoading.includes(Loadings.ADD_NEW_SERVICE+branch.id) || isLoading.includes(Loadings.UPDATING_SERVICE_DATA+branch.id) ?\r\n \r\n :\r\n \r\n }\r\n {\r\n disableModifications && !R.isNil(globalPayload.id) ? \r\n ''\r\n : \r\n {\r\n e.preventDefault();\r\n if (R.isNil(serviceData)) {\r\n if (!R.isNil(setShowCustomBox)) {\r\n setShowCustomBox(false);\r\n }\r\n if (!R.isNil(removeBranch)) {\r\n removeBranch(branch.serviceId);\r\n }\r\n } else {\r\n dispatch(deleteServiceData(serviceData.id, ConnectionTypes.bank));\r\n }\r\n }}>\r\n\r\n }\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport Generic from '../../../../../../../constants/models/servicePayloads/generic';\r\nimport { convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as Loadings from '../../../../../../../constants/loadings/service';\r\n\r\nexport const BranchBox = ({ branch, connectionType, index, removeBranch, bottomRef, formRef, serviceDatas, isLoading, userId, displayComments, disableModifications }) => {\r\n const dispatch = useDispatch();\r\n const services = useSelector(state => state.services);\r\n const [payloads, setPayloads] = useState({ items: [{ id: '', payload: new Generic({ reference: '', comment: '' }) }] });\r\n const [toDelete, setToDelete] = useState([]);\r\n const [autoFocus, setAutoFocus] = useState(false);\r\n const [tmpBranch, setTmpBranch] = useState(branch);\r\n\r\n function loadReferences() {\r\n let allServicesWithSameBranch = serviceDatas.filter(b => b.serviceId === branch.serviceId || (R.isNil(branch.serviceId) && branch.id === b.serviceId));\r\n let tmpPayloads = { items: tmpBranch === branch ? payloads.items.filter(i => toDelete.findIndex(d => d === i.id) === -1) : [{ id: '', payload: new Generic({ reference: '', comment: '' }) }] };\r\n if (tmpBranch !== branch){\r\n setTmpBranch(branch);\r\n }\r\n allServicesWithSameBranch.forEach(br => {\r\n if (tmpPayloads.items.findIndex(tmp => tmp.id === br.id) === -1) {\r\n tmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n }\r\n });\r\n if (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n if (tmpPayloads.items[0].payload.reference === '') {\r\n tmpPayloads.items.splice(0, 1);\r\n }\r\n setPayloads(tmpPayloads);\r\n }\r\n setToDelete([]);\r\n }\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [branch, connectionType, serviceDatas]);\r\n return (\r\n
\r\n {\r\n payloads.items.map((br, payIndex) => {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, reference: e.target.value} };\r\n }\r\n })});\r\n }} />\r\n {\r\n !displayComments && !R.isEmpty(br.id) ?\r\n ''\r\n : \r\n disableModifications && !R.isEmpty(br.id) ?\r\n ''\r\n :\r\n (index === 0 ? br.payload.reference !== '' : true) ?\r\n {\r\n e.preventDefault();\r\n if (!R.isNil(br.id) && br.id !== '') {\r\n let tmpToDelete = toDelete.concat(br.id);\r\n setToDelete(tmpToDelete);\r\n dispatch(deleteServiceData(br.id, connectionType));\r\n }\r\n let newPayload = payloads.items.filter(i => i.id !==br.id);\r\n if (newPayload.length === 0) {\r\n newPayload.push({ id: '', payload: new Generic({ reference: '', comment: '' }) });\r\n }\r\n setPayloads({ ...payloads, items: newPayload });\r\n }}>\r\n\r\n : \r\n ''\r\n }\r\n
\r\n
\r\n {\r\n displayComments ?\r\n
\r\n
\r\n \r\n

\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, comment: e.target.value} };\r\n }\r\n })});\r\n }} />\r\n {(payIndex === 0 ? br.payload.reference !== '' : true) ?\r\n {\r\n e.preventDefault();\r\n if (!R.isNil(br.id) && br.id !== '') {\r\n let tmpToDelete = toDelete.concat(br.id);\r\n setToDelete(tmpToDelete);\r\n dispatch(deleteServiceData(br.id, connectionType));\r\n }\r\n let newPayload = payloads.items.filter((p, idx) => idx !== payIndex);\r\n if (newPayload.length === 0) {\r\n newPayload.push({ id: '', payload: new Generic({ reference: '', comment: '' }) });\r\n }\r\n setPayloads({ ...payloads, items: newPayload });\r\n }}>\r\n\r\n : ''}\r\n
\r\n
\r\n :\r\n ''\r\n\r\n }\r\n \r\n
Champs invalide
\r\n
\r\n )\r\n })\r\n }\r\n {\r\n \r\n }\r\n\r\n
\r\n \r\n\r\n {\r\n disableModifications ? \r\n ''\r\n :\r\n {\r\n e.preventDefault();\r\n if ((R.isNil(branch) || R.isNil(branch.serviceId)) && !R.isNil(removeBranch)) {\r\n removeBranch(branch.serviceId);\r\n }\r\n else {\r\n let allServicesToDelete = services.serviceData[connectionType].filter(s => s.serviceId === branch.serviceId);\r\n allServicesToDelete.forEach(s => {\r\n dispatch(deleteServiceData(s.id, connectionType));\r\n });\r\n }\r\n }}>\r\n }\r\n\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { AsyncPaginate } from 'react-select-async-paginate';\r\nimport { fetchServices } from '../../../../../../../actions/services-api';\r\nimport ServiceInfo from '../../../../../../../constants/models/serviceInfo';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { ConnectionTypes } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { BankDetails } from '../bankDetails';\r\nimport { BranchBox } from './branchBox';\r\nimport * as Loadings from '../../../../../../../constants/loadings/service';\r\n\r\nexport const BranchBase = ({ branch, index, totalBranches, connectionType, title, isMain, setShowCustomBox, canCollapse, removeBranch, bottomRef, serviceDatas, isLoading, userId, displayComments, disableModifications, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const [branchIsSelected, setBranchIsSelected] = useState(null);\r\n const [selectedOption, setSelectedOption] = useState(undefined);\r\n const [selectedBranch, setSelectedBranch] = useState(undefined);\r\n const [searchFilter, setSearchFilter] = useState([]);\r\n const [selectSearch, setSelectSearch] = useState('');\r\n const [searchPage, setSearchPage] = useState(0);\r\n const [loadedServices, setLoadedServices] = useState([]);\r\n const [collapsed, setCollapsed] = useState(false);\r\n const [wasSaved, setWasSaved] = useState(false);\r\n const formRef = useRef(null);\r\n\r\n useEffect(() => {\r\n setSearchPage(0);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectSearch]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(selectedBranch) && !R.isNil(setBranchIsSelected)) {\r\n setBranchIsSelected(selectedBranch);\r\n }\r\n if (R.isNil(selectedBranch) && !R.isNil(setBranchIsSelected)) {\r\n setBranchIsSelected(null);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedBranch]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(branch) && !R.isNil(loadedServices) && loadedServices.length > 0) {\r\n //find branch and option\r\n let srv = !R.isNil(branch.serviceId) ? loadedServices.find(sr => sr.name === branch.serviceName) : undefined;\r\n if (!R.isNil(srv)) {\r\n srv.branches.sort((a, b) => (a.name > b.name) ? 1 : -1);\r\n let option = srv.branches.find(b => b.id === branch.serviceId);\r\n setSelectedOption(srv);\r\n setSelectedBranch(option);\r\n setSearchFilter({ label: srv.name, value: srv.name });\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [loadedServices, branch]);\r\n\r\n function updateLoadedItems(data) {\r\n if (!R.isNil(data) && data.items.length > 0) {\r\n //remove branches that are already registered\r\n if (R.isNil(loadedServices) || loadedServices.length === 0) {\r\n setLoadedServices(data.items.map(e => new ServiceInfo(e)));\r\n }\r\n else {\r\n let tmpLoadedServices = loadedServices;\r\n data.items.forEach(d => {\r\n if (loadedServices.findIndex(i => i.name === d.name) === -1) {\r\n tmpLoadedServices.push(new ServiceInfo(d));\r\n }\r\n setLoadedServices(tmpLoadedServices);\r\n });\r\n }\r\n }\r\n }\r\n\r\n const sleep = ms =>\r\n new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve();\r\n }, ms);\r\n });\r\n\r\n async function searchAreEqual(search) {\r\n //Wait one second, after user stops typing, before sending the request\r\n await sleep(1000);\r\n return search === selectSearch;\r\n }\r\n\r\n async function loadOptions(search, loadedOptions, { page }) {\r\n let response = [];\r\n let responseJSON = [];\r\n let hasMore = false;\r\n if (search === '' || R.isNil(search)) {\r\n response = await dispatch(fetchServices(connectionType, page));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n hasMore = responseJSON.length === 100;\r\n }\r\n else if ((search !== '' && !R.isNil(search))) {\r\n let areEqual = await searchAreEqual(search);\r\n if (areEqual) {\r\n response = await dispatch(fetchServices(connectionType, selectSearch !== search ? 0 : searchPage, search));\r\n responseJSON = response.items.map(e => new ServiceInfo(e));\r\n if (responseJSON.length === 100) {\r\n setSearchPage(searchPage + 1);\r\n hasMore = true;\r\n }\r\n else {\r\n hasMore = false;\r\n }\r\n }\r\n else {\r\n hasMore = true;\r\n }\r\n }\r\n updateLoadedItems(response);\r\n\r\n let filteredOptions = responseJSON.filter(s => s.branches.length > 0).length > 0 && responseJSON.filter(s => s.branches.length > 0).map(sr => {\r\n return {\r\n label: sr.name,\r\n value: sr.name\r\n };\r\n });\r\n\r\n return {\r\n options: filteredOptions,\r\n hasMore: hasMore,\r\n additional: {\r\n page: !R.isNil(search) && search !== '' ? searchPage : page + 1,\r\n }\r\n };\r\n }\r\n\r\n useEffect(() => {\r\n loadOptions(\"\", null, 0);\r\n if (!R.isNil(branch)) {\r\n setCollapsed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (index !== totalBranches - 1 && canCollapse === true && totalBranches > 0) {\r\n setCollapsed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [totalBranches]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(branch) ? (isLoading.includes(Loadings.ADD_NEW_SERVICE + branch.id) || isLoading.includes(Loadings.UPDATING_SERVICE_DATA + branch.id)) :\r\n !R.isNil(selectedBranch) && (isLoading.includes(Loadings.ADD_NEW_SERVICE + selectedBranch.id) || isLoading.includes(Loadings.UPDATING_SERVICE_DATA + selectedBranch.id))) {\r\n setWasSaved(true);\r\n }\r\n }, [isLoading, selectedBranch]);\r\n\r\n if (wasSaved && collapsed === false &&\r\n !R.isNil(branch) && !isLoading.includes(Loadings.ADD_NEW_SERVICE + branch.id) && !isLoading.includes(Loadings.UPDATING_SERVICE_DATA + branch.id) &&\r\n JSON.stringify(branch) === JSON.stringify(serviceDatas.find(b => b.id === branch.id))) {\r\n setWasSaved(false);\r\n setCollapsed(true);\r\n }\r\n\r\n let currentServiceIds = serviceDatas.map(s => {\r\n return s.serviceId;\r\n });\r\n currentServiceIds = R.uniq(currentServiceIds);\r\n\r\n let auxTitle = !R.isNil(selectedBranch) ? selectedBranch.name : undefined;\r\n return (\r\n
\r\n
{\r\n setTimeout(() => {\r\n setCollapsed(collapsed === true ? false : true);\r\n }, 200);\r\n }}>\r\n
\r\n

{isMain ? title + (title === \"Sport\" ? ' Principal' : ' Principale') : 'Autre ' + title}

{!R.isNil(auxTitle) ? {auxTitle} : ''}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Votre {title} *
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n {\r\n setSearchFilter({ label: option.value, value: option.value });\r\n if (!R.isNil(loadedServices)) {\r\n let srv = loadedServices.find(sr => sr.name === option.value);\r\n srv.branches.sort((a, b) => (a.name > b.name) ? 1 : -1);\r\n let tmpBranches = srv.branches.filter(br => R.isNil(branch)/* || (branch.serviceId !== br.id && branch.id !== br.id) ? !currentServiceIds.includes(br.id) : true*/);\r\n if (!R.isNil(srv)) {\r\n setSelectedOption(srv);\r\n if (tmpBranches.length > 0) {\r\n\r\n setSelectedBranch(tmpBranches[0]);\r\n }\r\n else {\r\n setSelectedBranch(undefined);\r\n }\r\n }\r\n }\r\n }}\r\n isMulti={false}\r\n cacheUniqs={[]}\r\n additional={{ page: 0 }}\r\n onInputChange={(searchInput) => {\r\n setSelectSearch(searchInput);\r\n if (!searchInput.includes(selectSearch)) {\r\n setSearchPage(0);\r\n }\r\n }}\r\n placeholder=\"Rechercher...\"\r\n loadingMessage={() => \"Chargement...\"}\r\n noOptionsMessage={() => \"Aucun résultat\"}\r\n />\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n !R.isNil(branchIsSelected) && !R.isNil(selectedBranch) ?\r\n connectionType === ConnectionTypes.bank ?\r\n :\r\n \r\n : ''\r\n }\r\n \r\n
\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport Generic from '../../../../../../../constants/models/servicePayloads/generic';\r\nimport { convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as Loadings from '../../../../../../../constants/loadings/service';\r\n\r\nexport const GenericDetails = ({ customServiceData, inputOnFocus, connectionType, boxIndex, setShowCustomBox, customFormRef, removeBranch, serviceDatas, isLoading, userId, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n const services = useSelector(state => state.services);\r\n const [payloads, setPayloads] = useState({ items: [{ id: '', payload: new Generic({ reference: '', comment: '' }) }] });\r\n const [toDelete, setToDelete] = useState([]);\r\n const [autoFocus, setAutoFocus] = useState(false);\r\n\r\n function loadReferences() {\r\n let allServicesWithSameBranch = serviceDatas.filter(b => b.serviceId === customServiceData.serviceId);\r\n let tmpPayloads = { items: payloads.items.filter(i => toDelete.findIndex(d => d === i.id) === -1) };\r\n allServicesWithSameBranch.forEach(br => {\r\n if (tmpPayloads.items.findIndex(tmp => tmp.id === br.id) === -1) {\r\n tmpPayloads.items.push({ id: br.id, payload: br.payload });\r\n }\r\n });\r\n if (allServicesWithSameBranch.length > 0 && tmpPayloads.items.length > 0) {\r\n if (tmpPayloads.items[0].payload.reference === '') {\r\n tmpPayloads.items.splice(0, 1);\r\n }\r\n setPayloads(tmpPayloads);\r\n }\r\n setToDelete([]);\r\n }\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n loadReferences();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [serviceDatas]);\r\n\r\n return (\r\n
\r\n
\r\n {\r\n payloads.items.map((br, index) => {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, reference: e.target.value} };\r\n }\r\n })});\r\n }} />\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n
\r\n {\r\n e.preventDefault();\r\n setPayloads({ ...payloads, items: payloads.items.map((i) => {\r\n if(i.id !== br.id){\r\n return i;\r\n }else{\r\n return {...br, payload: {...br.payload, comment: e.target.value} };\r\n }\r\n })});\r\n }} />\r\n {(index === 0 ? br.payload.reference !== '' : true) ?\r\n {\r\n e.preventDefault();\r\n if (!R.isNil(br.id) && br.id !== '') {\r\n let tmpToDelete = toDelete.concat(br.id);\r\n setToDelete(tmpToDelete);\r\n dispatch(deleteServiceData(br.id, connectionType));\r\n }\r\n let newPayload = payloads.items.filter((p, idx) => idx !== index);\r\n if (newPayload.length === 0) {\r\n newPayload.push({ id: '', payload: new Generic({ reference: '', comment: '' }) });\r\n }\r\n setPayloads({ ...payloads, items: newPayload });\r\n }}>\r\n\r\n : ''}\r\n
\r\n
\r\n
Champs invalide
\r\n
\r\n )\r\n })\r\n }\r\n {\r\n \r\n }\r\n
\r\n\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n if (R.isNil(customServiceData) || R.isNil(customServiceData.serviceId)) {\r\n setShowCustomBox(false);\r\n if (!R.isNil(removeBranch)) {\r\n removeBranch(customServiceData.serviceId);\r\n }\r\n } else {\r\n let allServicesToDelete = serviceDatas.filter(s => s.serviceId === customServiceData.serviceId);\r\n allServicesToDelete.forEach(s => {\r\n dispatch(deleteServiceData(s.id, connectionType));\r\n });\r\n }\r\n if (boxIndex === 0) {\r\n setShowCustomBox(false);\r\n }\r\n }}>\r\n
\r\n
\r\n );\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../../constants/utils/regexFields';\r\nimport { BankDetails } from '../bankDetails';\r\nimport {GenericDetails} from './genericDetails';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport {ConnectionTypes} from '../../../../../../../constants/utils/connectionTypes';\r\nimport * as Loadings from '../../../../../../../constants/loadings/service';\r\nimport { useSelector } from 'react-redux';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const CustomBranch = ({ customServiceData, boxIndex, setShowCustomBox, isMain, totalBranches, canCollapse, connectionType, title, removeBranch, serviceDatas, isLoading, userId, displayComments, disableModifications, generateLetters }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const addressRef = useRef(null);\r\n const [collapsed, setCollapsed] = useState(false);\r\n const [wasSaved, setWasSaved] = useState(false);\r\n const [customBranchDetails, setCustomBranchDetails] = useState(R.isNil(customServiceData) ?\r\n {\r\n customServiceDetails: {\r\n name: \"\",\r\n address: {\r\n streetAddress: \"\",\r\n streetAddress2: \"\",\r\n postalCode: \"\",\r\n addressLocality: \"\",\r\n addressCountry: \"FR\"\r\n }\r\n },\r\n serviceId: undefined,\r\n id: 'custom'\r\n } : new ServiceData(customServiceData));\r\n\r\n useEffect(() => {\r\n if (!isMain && !R.isNil(customServiceData)) {\r\n setCollapsed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (boxIndex !== totalBranches - 1 && canCollapse === true) {\r\n setCollapsed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [totalBranches]);\r\n\r\n let auxTitle = !R.isNil(customServiceData) && !R.isNil(customServiceData.customServiceDetails) ? customServiceData.customServiceDetails.name : undefined;\r\n\r\n useEffect(() => {\r\n if (!R.isNil(customServiceData) && (isLoading.includes(Loadings.ADD_NEW_SERVICE + customServiceData.id) || isLoading.includes(Loadings.UPDATING_SERVICE_DATA + customServiceData.id))) {\r\n setWasSaved(true);\r\n }\r\n });\r\n\r\n if (wasSaved && collapsed === false &&\r\n !R.isNil(customServiceData) && !isLoading.includes(Loadings.ADD_NEW_SERVICE + customServiceData.id) && !isLoading.includes(Loadings.UPDATING_SERVICE_DATA + customServiceData.id) &&\r\n JSON.stringify(customServiceData) === JSON.stringify(serviceDatas.find(b => b.id === customServiceData.id))) {\r\n setWasSaved(false);\r\n setCollapsed(true);\r\n }\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t {\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tsetCollapsed(collapsed === true ? false : true);\r\n\t\t\t\t\t\t}, 200);\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{isMain ? title + \" Principale\" : \"Autre \" + title}

\r\n\t\t\t\t\t\t{!R.isNil(auxTitle) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{auxTitle}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Votre {title} *
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, name: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, streetAddress: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, streetAddress2: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={!R.isNil(customBranchDetails.customServiceDetails) ? customBranchDetails.customServiceDetails.address.addressCountry : \"FR\"}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, postalCode: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, addressLocality: e.target.value } } })}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setCustomBranchDetails({ ...customBranchDetails, customServiceDetails: { ...customBranchDetails.customServiceDetails, address: { ...customBranchDetails.customServiceDetails.address, country: e.target.value, addressCountry: e.target.value } } })}>\r\n\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (country === \"FR\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{connectionType === ConnectionTypes.bank ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport { BranchBase } from './branchBase.js';\r\nimport * as R from 'ramda';\r\nimport {CustomBranch} from './customBranch';\r\nimport {ConnectionTypes} from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const BranchService = ({ connectionType, title, serviceDatas, isLoading, userId, displayComments, disableModifications, generateLetters }) => {\r\n const [resetPage, setResetPage] = useState(false);\r\n const bottomRef = useRef(null);\r\n const [branches, setBranches] = useState({ items: [] });\r\n const [showCustomBox, setShowCustomBox] = useState(false);\r\n const [canCollapse, setCanCollapse] = useState(false);\r\n const [addedNew, setAddedNew] = useState(false);\r\n const [allBranches, setAllBranches] = useState([]);\r\n\r\n function removeBranch(serviceId) {\r\n let tmpItems = branches.items.filter(b => !R.isNil(serviceId) && !R.isNil(b) ? serviceId !== b.serviceId: !R.isNil(b));\r\n setBranches({ ...branches, items: tmpItems });\r\n if (tmpItems.length === 0){\r\n setResetPage(true);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (!R.isNil(connectionType)) {\r\n if (serviceDatas.length > 0) {\r\n setBranches({ items: R.sortWith([R.ascend(R.prop('position'))])(serviceDatas) });\r\n } else {\r\n setBranches({ ...branches, items: [] });\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [serviceDatas]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(connectionType)) {\r\n setCanCollapse(false);\r\n setAddedNew(false);\r\n setShowCustomBox(false);\r\n setResetPage(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [connectionType]);\r\n\r\n useEffect(() => {\r\n setTimeout(() => {\r\n setResetPage(false);\r\n }, 1);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [resetPage]);\r\n\r\n useEffect(() => {\r\n if (addedNew === true && !R.isNil(bottomRef) && !R.isNil(bottomRef.current)) {\r\n bottomRef.current.scrollIntoView({ behavior: 'smooth', block: 'end' });\r\n }\r\n setAddedNew(false);\r\n }, [addedNew]);\r\n\r\n useEffect(() => { \r\n let lastPosition = R.isEmpty(branches.items) ? 0 : (Math.max(...branches.items.filter(b => !R.isNil(b)).map(b => b.position)) + 1);\r\n const tmpAllBranches = [];\r\n branches.items.map((sData, sDataIndex) => { \r\n let tmpPosition = R.isNil(sData) ? lastPosition++ : sData.position;\r\n const isMain = sDataIndex === 0;\r\n if (!R.isNil(sData) && sData.serviceId.toLowerCase().startsWith('custom') && !tmpAllBranches.some(t => t.serviceId === sData.serviceId)) {\r\n tmpAllBranches.push({ pos: tmpPosition, serviceId: sData.serviceId, data: });\r\n }\r\n else {\r\n if(R.isNil(sData)){\r\n tmpAllBranches.push({ pos: tmpPosition, serviceId: sData?.serviceId, data: });\r\n }else{\r\n //if(!tmpAllBranches.some(t => t.serviceId === sData.serviceId)){\r\n tmpAllBranches.push({ pos: tmpPosition, serviceId: sData?.serviceId, data: });\r\n //}\r\n }\r\n \r\n }\r\n\r\n });\r\n \r\n if (tmpAllBranches.length === 0 && showCustomBox === false){\r\n tmpAllBranches.push({pos: 0, data:});\r\n }\r\n setAllBranches(R.sortWith([R.ascend(R.prop('pos'))])(tmpAllBranches));\r\n }, [branches]);\r\n\r\n return (\r\n
\r\n

{title}

\r\n {resetPage === false && allBranches.map(b => b.data)}\r\n {\r\n showCustomBox ? : ''\r\n }\r\n\r\n
\r\n

Add new

\r\n \r\n
\r\n
\r\n );\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport ServicesUploading from '../../../../../assets/images/placeholder/ServicesUploading-ilustration.png';\r\nimport { useDispatch } from 'react-redux';\r\nimport { useHistory } from 'react-router-dom';\r\nimport {setCompletedServiceDataFilling} from '../../../../../actions/facilita-api';\r\nimport * as Loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nexport const EmptyState = ({user, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n if(R.isNil(user)){\r\n return \"\";\r\n }\r\n\r\n return (\r\n
\r\n

Finished setup

\r\n
\r\n \"Services\r\n
Vous avez finalisé le dossier de {user.firstName} {user.lastName}.
\r\n Vous pouvez dès à présent : déposer l'acte de décès, confirmer et valider les informations transmises afin que les courriers soient créés et envoyés.\r\n
\r\n
\r\n
\r\n {\r\n isLoading.includes(Loadings.COMPLETING_USER_SERVICES_DATA) ? \r\n \r\n :\r\n \r\n }\r\n \r\n
\r\n\r\n
\r\n )\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as R from 'ramda';\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\nimport AddressInfo from '../../../../../../../constants/models/addressInfo';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const EhpadDetails = ({index, activity, userId, removeActivity, disableModifications, generateLetters}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const dispatch = useDispatch();\r\n \r\n const formRef = useRef(null);\r\n let name = undefined;\r\n let initCollapsedState = true;\r\n let initState = {\r\n type: 'Ehpad',\r\n name: \"\",\r\n address: new AddressInfo({addressCountry:'FR', streetAddress: \"\",streetAddress2: \"\",postalCode: \"\", addressLocality: \"\"}),\r\n };\r\n if(!R.isNil(activity.id)){\r\n initState = activity.payload;\r\n initCollapsedState = false;\r\n name = activity.payload.name;\r\n }\r\n const [payload, setPayload] = useState({...initState});\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n useEffect(() =>{\r\n if(!R.isNil(activity.payload)){\r\n setPayload({...activity.payload});\r\n }\r\n \r\n if(!R.isNil(activity.id)){\r\n setCollapsed(false);\r\n }\r\n\r\n }, [activity]);\r\n\r\n\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{index === 0 ? \"Etablissement principal\" : \"Autre établissement\"}

\r\n\t\t\t\t\t\t{!R.isNil(name) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{name}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
nom du propriétaire ou du cabinet
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} disabled={disableModifications && !R.isNil(activity.id)} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\t\tpostalCodeDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcityDisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={disableModifications && !R.isNil(activity.id)}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tlet serviceData = new ServiceData({ userId: userId, serviceType: convertConnectionTypesToServiceType(ConnectionTypes.ehpad), serviceId: FrenchTypes.ehpad + index, payload: payload });\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(createServiceData(serviceData)).then((s) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (generateLetters) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, s.id));\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tserviceData.id = activity.id;\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tenregistrer\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{index === 0 ? (\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tremoveActivity(activity);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.ehpad));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport {EhpadDetails} from './ehpadDetails';\r\nimport { FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Ehpad = ({userId, serviceDatas, disableModifications, generateLetters}) => {\r\n const [ehpadState, setEhpadState] = useState({\r\n items: []\r\n });\r\n\r\n useEffect(() => {\r\n let leaseInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.ehpad);\r\n if (leaseInState.length > 0){\r\n setEhpadState({\r\n items: leaseInState\r\n });\r\n }else{\r\n setEhpadState({...ehpadState, items: [{\r\n type: 'Ehpad',\r\n name: \"\",\r\n addressStreet1: \"\",\r\n addressStreet2: \"\",\r\n addressPostalCode: \"\",\r\n addressLocality: \"\",\r\n addressCountry: \"FR\"\r\n }]});\r\n }\r\n }, [serviceDatas]);\r\n\r\n function removeActivity(locataire) {\r\n setEhpadState({...ehpadState, items: ehpadState.items.filter(a => a !== locataire)});\r\n }\r\n\r\n return (\r\n
\r\n

Maison de retraite

\r\n {\r\n ehpadState.items.map((activity, index) => {\r\n return \r\n })\r\n \r\n }\r\n \r\n
\r\n

Ajouter un autre Etablissement

\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useState, useRef, useEffect } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport countries from \"i18n-iso-countries\";\r\nimport * as R from \"ramda\";\r\nimport { createServiceData, updateServiceData, deleteServiceData, generateLettersForUserIdAndUserServiceId } from '../../../../../../../actions/facilita-api';\r\n\r\nimport ServiceData from '../../../../../../../constants/models/serviceData';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType } from '../../../../../../../constants/utils/connectionTypes';\r\nimport { PostalCityInput } from \"../../../../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const EducationInstitutionDetails = ({ index, educationInstitution, userId, removeEducationInstitution, generateLetters }) => {\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst formRef = useRef(null);\r\n\r\n\tlet initCollapsedState = true;\r\n\tlet initState = {\r\n\t\ttype: \"Etudiant\",\r\n\t\tname: \"\",\r\n\t\taddress: {\r\n\t\t\tstreetAddress: \"\",\r\n\t\t\tstreetAddress2: \"\",\r\n\t\t\tpostalCode: \"\",\r\n\t\t\taddressLocality: \"\",\r\n\t\t\taddressCountry: \"FR\",\r\n\t\t},\r\n\t\tlevel: \"\",\r\n\t\tlabel: \"\",\r\n\t};\r\n\r\n\tif (!R.isNil(educationInstitution.id)) {\r\n\t\tinitState = {\r\n\t\t\t...educationInstitution.payload,\r\n\t\t\taddress: {\r\n\t\t\t\tstreetAddress: educationInstitution.payload?.address?.streetAddress || \"\",\r\n\t\t\t\tstreetAddress2: educationInstitution.payload?.address?.streetAddress2 || \"\",\r\n\t\t\t\tpostalCode: educationInstitution.payload?.address?.postalCode || \"\",\r\n\t\t\t\taddressLocality: educationInstitution.payload?.address?.addressLocality || \"\",\r\n\t\t\t\taddressCountry: educationInstitution.payload?.address?.addressCountry || \"FR\",\r\n\t\t\t},\r\n\t\t};\r\n\t\tinitCollapsedState = false;\r\n\t}\r\n\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tconst handleSave = (e) => {\r\n\t\te.preventDefault();\r\n\t\tif (formRef.current.checkValidity()) {\r\n\t\t\tlet serviceData = new ServiceData({\r\n\t\t\t\tuserId: userId,\r\n\t\t\t\tserviceType: convertConnectionTypesToServiceType(ConnectionTypes.etudiant),\r\n\t\t\t\tserviceId: \"etudiant\" + index,\r\n\t\t\t\tpayload: payload,\r\n\t\t\t});\r\n\r\n\t\t\tif (R.isNil(educationInstitution.id)) {\r\n\t\t\t\tdispatch(createServiceData(serviceData));\r\n\t\t\t} else {\r\n\t\t\t\tserviceData.id = educationInstitution.id;\r\n\t\t\t\tdispatch(updateServiceData(serviceData));\r\n\t\t\t}\r\n\t\t\tif (generateLetters) {\r\n\t\t\t\tdispatch(generateLettersForUserIdAndUserServiceId(userId, \"etudiant\" + index, \"relocation\"));\r\n\t\t\t}\r\n\r\n\t\t\tsetCollapsed(!collapsed);\r\n\t\t}\r\n\t\tformRef.current.classList.add(\"was-validated\");\r\n\t};\r\n\r\n\tconst handleDelete = (e) => {\r\n\t\te.preventDefault();\r\n\t\tif (R.isNil(educationInstitution.id)) {\r\n\t\t\tremoveEducationInstitution(educationInstitution);\r\n\t\t} else {\r\n\t\t\tdispatch(deleteServiceData(educationInstitution.id, ConnectionTypes.etudiant));\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() =>{\r\n\t\t\tif(!R.isNil(educationInstitution.payload)){\r\n\t\t\t\tsetPayload({...educationInstitution.payload});\r\n\t\t\t}\r\n\t\r\n\t\t}, [educationInstitution]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setCollapsed(!collapsed)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

{index === 0 ? \"Votre établissement d'enseignement principal\" : \"Autre établissement\"}

\r\n\t\t\t\t\t{!R.isNil(payload.name) && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{payload.name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/* Nom de l'établissement */}\r\n\t\t\t\t\t
Nom de l'établissement
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t\t
*/}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
Cursus
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, level: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
Ce champ est requis
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, label: e.target.value })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{index !== 0 && (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport * as R from \"ramda\";\r\nimport { EducationInstitutionDetails } from \"./educationInstitutionDetails\";\r\nimport { ConnectionTypes, FrenchTypes } from '../../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const EducationInstitution = ({ serviceDatas, userId, generateLetters }) => {\r\n\r\n\tconst [educationInstitutionState, setEducationInstitutionState] = useState({\r\n\t\titems: [],\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\tlet educationInstitutionsInState = serviceDatas.filter(s => s.serviceType === FrenchTypes.etudiant);\r\n\t\tif (educationInstitutionsInState.length > 0) {\r\n\t\t\tsetEducationInstitutionState({\r\n\t\t\t\titems: educationInstitutionsInState\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: educationInstitutionState.items.concat({}) });\r\n\t\t}\r\n\t}, [serviceDatas]);\r\n\r\n\tfunction removeEducationInstitution(educationInstitution) {\r\n\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: educationInstitutionState.items.filter((ei) => ei !== educationInstitution) });\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Établissement d'enseignement

\r\n\t\t\t{educationInstitutionState.items.map((educationInstitution, index) => {\r\n\t\t\t\treturn ;\r\n\t\t\t})}\r\n\r\n\t\t\t
\r\n\t\t\t\t

Ajouter un autre ÉTABLISSEMENT D'ENSEIGNEMENT

\r\n\t\t\t\t {\r\n\t\t\t\t\t\tconst nodes = window.document.querySelectorAll(\".collapse.show\");\r\n\t\t\t\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\t\t\t\tnodes.forEach((element) => {\r\n\t\t\t\t\t\t\t\telement.classList.remove([\"show\"]);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetEducationInstitutionState({ ...educationInstitutionState, items: educationInstitutionState.items.concat({}) });\r\n\t\t\t\t\t}}>\r\n\t\t\t\t\tAjouter un autre ÉTABLISSEMENT D'ENSEIGNEMENT\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport {convertConnectionTypesToServiceType} from '../../../../../../constants/utils/connectionTypes';\r\n\r\nexport const CheckboxCard = ({ labels, isSelected, service, serviceDatas, removeService, isFavorite, AddOrRemoveFromFavorites }) => {\r\n \r\n const progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(service.connectionType)) ? 100 : 0;\r\n\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n {service.title}\r\n
\r\n
\r\n

{service.title}

\r\n
\r\n \r\n\r\n {/* AddOrRemove(service)}> */}\r\n {/* \r\n
    \r\n
  • \r\n
  • \r\n
*/}\r\n
\r\n
\r\n
\r\n {\r\n isSelected ?\r\n
\r\n {\r\n !R.isNil(labels) && labels.length > 0 ?\r\n
\r\n {\r\n !R.isNil(labels) && labels.length > 0 && labels.map((label, index) => {\r\n return (
{label.name}
)\r\n })\r\n }\r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n :\r\n
\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n }\r\n { isSelected &&\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t
\r\n }\r\n \r\n )\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { CheckboxCard } from './checkboxCard';\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, isSocialNetwork, isInsurance } from '../../../../../../constants/utils/connectionTypes';\r\nimport { removeUserConnection } from '../../../../../../actions/facilita-api';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nexport const ServiceNavbar = ({ selectedService, setSelectedService, activeUserConnections, serviceDatas, setHideComplete, userId, favoriteServices, setFavoriteServices, setShowCompleteState, generateLetters }) => {\r\n const dispatch = useDispatch();\r\n const bottomRef = useRef(null);\r\n const topRef = useRef(null);\r\n const selectedServiceRef = useRef(null);\r\n const [selectedServices, setSelectedServices] = useState([]);\r\n const isFirefox = typeof InstallTrigger !== 'undefined';\r\n\r\n\r\n\r\n useEffect(() => {\r\n setTimeout(() => {\r\n if (!R.isNil(selectedServiceRef) && !R.isNil(selectedServiceRef.current)) {\r\n selectedServiceRef.current.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n }\r\n }, 350);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [selectedService]);\r\n\r\n function removeService(connectionType) {\r\n dispatch(removeUserConnection(userId, connectionType));\r\n if (!R.isNil(topRef) && !R.isNil(topRef.current)) {\r\n topRef.current.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n }\r\n }\r\n\r\n function isFavorite(connectionType){\r\n return favoriteServices.indexOf(connectionType) > -1;\r\n }\r\n\r\n function AddOrRemoveFromFavorites(connectionType){\r\n const isFavorite = favoriteServices.indexOf(connectionType);\r\n if(isFavorite < 0){\r\n setFavoriteServices([...favoriteServices, connectionType]);\r\n }else{\r\n setFavoriteServices(favoriteServices.filter(fs => fs != connectionType));\r\n }\r\n }\r\n\r\n // useEffect(() => {\r\n // //dispatch(fetchServiceDataForServiceType(selectedService))\r\n // // eslint-disable-next-line react-hooks/exhaustive-deps\r\n // }, [selectedService]);\r\n\r\n // useEffect(() => {\r\n // if (!R.isNil(user) && !R.isNil(user.services) && user.services.length > 0) {\r\n // setSelectedServices(user.services);\r\n // if (!R.isNil(selectedService) && selectedService !== '' && user.services.findIndex(s => s.connectionType === selectedService) === -1) {\r\n // let serviceToBeSet = R.sortWith([R.ascend(R.prop('title'))])(Object.entries([].concat(commonOptions, personnalOptions, otherOption).filter(sr => selectedServices.findIndex(r =>\r\n // isSocialNetwork(r.connectionType) ? ConnectionTypes.socialNetworks === sr.connectionType :\r\n // isInsurance(r.connectionType) ? ConnectionTypes.insurance === sr.connectionType :\r\n // r.connectionType === sr.connectionType) !== -1)).map(entry => entry[1]))[0];\r\n // setSelectedService(isSocialNetwork(serviceToBeSet.connectionType) ? ConnectionTypes.socialNetworks : isInsurance(serviceToBeSet.connectionType) ? ConnectionTypes.insurance : serviceToBeSet.connectionType);\r\n // }\r\n // }\r\n // }, [user.services]);\r\n\r\n const personalServices = [].concat(Object.values(PersonalServices), Object.values(AuxiliarOptions));\r\n\r\n if (R.isNil(selectedService)) {\r\n return '';\r\n }\r\n\r\n return (\r\n \r\n );\r\n};","import React from \"react\";\r\n\r\nexport const ModalServiceWarning = () => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Attention
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tAttention\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tVeuillez compléter 100 % des services sélectionnés ou mettre en favoris (en cliquant sur l'icône étoile ) pour accéder à l'espace courriers, sinon les supprimer afin de les ajouter plus tard\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useRef, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\nimport { Activity } from \"./services/activity\";\r\nimport { Pension } from \"./services/pension\";\r\nimport { OtherActivity } from \"./services/otherActivity\";\r\nimport { Tenant } from \"./services/tenant\";\r\nimport { DefaultService } from \"./services/defaultService\";\r\nimport { BranchService } from \"./services/branchService\";\r\nimport { EmptyState } from \"./emptyState\";\r\nimport { Ehpad } from \"./services/ehpad\";\r\nimport { EducationInstitution } from \"./services/educationInstitution\";\r\n\r\n\r\nimport { ServiceNavbar } from \"./serviceNavbar\";\r\nimport { ModalServiceWarning } from \"./modalServiceWarning\";\r\n\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, convertConnectionTypesToServiceType, isSocialNetwork, isInsurance } from \"../../../../../constants/utils/connectionTypes\";\r\n\r\nexport const ServicesEdit = ({ userId, user, selectedUserConnection, activeUserConnections, displayComments, disableModifications, serviceDatas, isLoading, generateLetters }) => {\r\n\tconst serviceModalRef = useRef(null);\r\n\tconst [selectedService, setSelectedService] = useState(undefined);\r\n\tconst [matchingServiceDatas, setMatchingServiceDatas] = useState([]);\r\n\tconst [showCompleteState, setShowCompleteState] = useState(false);\r\n\tconst [favoriteServices, setFavoriteServices] = useState([]);\r\n\tconst [allServicesFilled, setAllServicesFilled] = useState(false);\r\n\r\n\tif (R.isNil(displayComments)) {\r\n\t\tdisplayComments = true;\r\n\t}\r\n\r\n\tif (R.isNil(disableModifications)) {\r\n\t\tdisableModifications = false;\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(selectedUserConnection) || !activeUserConnections.some((a) => a.connectionType === selectedUserConnection.connectionType)) {\r\n\t\t\tconst sortedActiveCommonServices = R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(CommonServices).filter((sr) => activeUserConnections.findIndex((r) => r.connectionType === sr.connectionType) !== -1));\r\n\t\t\tsetSelectedService(sortedActiveCommonServices[0]);\r\n\t\t}\r\n\t}, [activeUserConnections]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(selectedUserConnection)) {\r\n\t\t\tsetSelectedService(selectedUserConnection);\r\n\t\t}\r\n\t}, [selectedUserConnection]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(selectedService)) {\r\n\t\t\tsetMatchingServiceDatas(serviceDatas.filter((s) => s.serviceType === convertConnectionTypesToServiceType(selectedService.connectionType)));\r\n\t\t\tsetShowCompleteState(false);\r\n\t\t}\r\n\t}, [selectedService]);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet allCompleted = true;\r\n\t\tsetAllServicesFilled(true);\r\n\t\tObject.values(CommonServices)\r\n\t\t\t.concat(Object.values(PersonalServices))\r\n\t\t\t.concat(Object.values(AuxiliarOptions))\r\n\t\t\t.concat(Object.values(OtherService))\r\n\t\t\t.filter((u) => activeUserConnections.some((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)))\r\n\t\t\t.map((srv) => {\r\n\t\t\t\tif (favoriteServices.indexOf(srv.connectionType) == -1 && !serviceDatas.some((s) => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType))) {\r\n\t\t\t\t\tallCompleted = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\tif (!R.isNil(selectedService)) {\r\n\t\t\tsetMatchingServiceDatas(serviceDatas.filter((s) => s.serviceType === convertConnectionTypesToServiceType(selectedService.connectionType)));\r\n\t\t\tsetShowCompleteState(false);\r\n\t\t}\r\n\t\tsetShowCompleteState(allCompleted);\r\n\t\tsetAllServicesFilled(allCompleted);\r\n\t}, [serviceDatas, favoriteServices, activeUserConnections]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (allServicesFilled) {\r\n\t\t\tsetShowCompleteState(true);\r\n\t\t}\r\n\t}, [allServicesFilled]);\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Services

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tVEUILLEZ COMPLETER 100 % DES SERVICES SELECTIONNÉS OU METTRE EN FAVORIS POUR ACCEDER À L’ESPACE COURRIERS
\r\n\t\t\t\t\t\t\t\t\t\tsinon les supprimer afin de les ajouter plus tard\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Services setup

\r\n\t\t\t\t\t\t\t\t\t{(() => {\r\n\t\t\t\t\t\t\t\t\t\tif (showCompleteState && !generateLetters) return ;\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(selectedService)) return \"\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t// if(R.isNil(selectedServiceOption))\r\n\t\t\t\t\t\t\t\t\t\t// \treturn '';\r\n\r\n\t\t\t\t\t\t\t\t\t\tswitch (selectedService.connectionType) {\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.bank:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.sport:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.activity:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.pension:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.otherActivity:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.locataire:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.ehpad:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcase ConnectionTypes.etudiant:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})()}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React from \"react\";\r\n\r\nexport const TerminateModal = ({onDelete, isLoading }) => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Clôturer

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tClôturer dossier de déménagement\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tEtes-vous sûr(e) de vouloir clôturer le dossier de déménagement?\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

Une fois le dossier clôturé, les courriers ne seront plus accessibles. Confirmez que vous avez téléchargé tous les courriers dont vous avez besoin.

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useState, useEffect } from \"react\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\n\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, convertBackEndServiceTypesToFrontEndServiceType } from \"../../../../../constants/utils/connectionTypes\";\r\n\r\nimport { CircularProgressbar, buildStyles } from \"react-circular-progressbar\";\r\n\r\nimport { ModalValidation } from \"../../../../facilita/dossier/_common/modalValidation\";\r\nimport { ModalCommencer } from \"../../../../facilita/dossier/_common/modalCommencer\";\r\nimport { DashboardCard } from \"./dashboardCard\";\r\nimport { ServicesEdit } from \"../../../../facilita/dossier/_common/serviceEdit\";\r\n\r\nimport { Path } from \"./../_common/path\";\r\nimport {TerminateModal} from \"./terminateModal\";\r\n\r\nexport const RelocationDashboard = ({ serviceDatas, declaration, userLetters, files, userId, relocationDate, isLoading, connectionTypes, declaringUserId, currentlyConnectedUserId, relocatedUser, onDelete, isLoadingDelete }) => {\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\tconst [isLoadingLetters, setIsLoadingLetter] = useState([]);\r\n\tconst [popupText, setPopupText] = useState({ text: \"\", lastShownPopup: 0 });\r\n\tconst [selectedService, setSelectedService] = useState(undefined);\r\n\tconst [orderBy, setOrderBy] = useState(\"mostRecent\");\r\n\tconst [searchFilter, setSearchFilter] = useState(\"\");\r\n\tconst [tilesValues, setTilesValues] = useState({\r\n\t\tbefore15Days: { total: [], toBeHandled: [] },\r\n\t\tbefore1Month: { total: [], toBeHandled: [] },\r\n\t\tbefore3Months: { total: [], toBeHandled: [] },\r\n\t\tin8Days: { total: [], toBeHandled: [] },\r\n\t});\r\n\r\n\t//We should get it from backend!\r\n\tfunction service(title, icon, progress, sendingLimitDate, mostRecentDate, serviceDatas, hasBeenValidated) {\r\n\t\treturn { title: title, icon: icon, sendingLimitDate: sendingLimitDate, mostRecentDate: mostRecentDate, progress: progress === undefined ? 0 : progress, serviceDatas: serviceDatas, hasBeenValidated: hasBeenValidated };\r\n\t}\r\n\r\n\tconst [userServices, setUserServices] = useState([]);\r\n\r\n\tconst dateBefore3Months = new Date(relocationDate);\r\n\tdateBefore3Months.setDate(dateBefore3Months.getDate() - 89);\r\n\r\n\tconst dateBefore1Month = new Date(relocationDate);\r\n\tdateBefore1Month.setDate(dateBefore1Month.getDate() - 29);\r\n\r\n\tconst dateBefore15Days = new Date(relocationDate);\r\n\tdateBefore15Days.setDate(dateBefore15Days.getDate() - 14);\r\n\r\n\tconst dateIn8Days = new Date(relocationDate);\r\n\tdateIn8Days.setDate(dateIn8Days.getDate() + 9);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst allServices = Object.values(PersonalServices).concat(Object.values(AuxiliarOptions)).concat(Object.values(CommonServices)).concat(Object.values(OtherService));\r\n\t\tlet services = [];\r\n\t\tserviceDatas.map((serviceData) => {\r\n\t\t\tlet connectionType = convertBackEndServiceTypesToFrontEndServiceType(serviceData.serviceType);\r\n\r\n\t\t\tlet appService = allServices.find((obj) => obj.connectionType === connectionType);\r\n\r\n\t\t\tconst s = services.find((s) => s.title === appService.title);\r\n\r\n\t\t\tconst lettersForService = userLetters.filter((l) => l.userServiceId === serviceData.id);\r\n\t\t\tconst hasBeenValidated = lettersForService.find((l) => l.letterProgressStage === \"Created\") === undefined;\r\n\r\n\t\t\tif (!R.isNil(appService) && R.isNil(s)) {\r\n\t\t\t\tlet mostRecentDate = \"\";\r\n\r\n\t\t\t\tif (!R.isEmpty(lettersForService)) {\r\n\t\t\t\t\tlettersForService.sort((a, b) => (a.sendingLimitDate < b.sendingLimitDate ? -1 : a.sendingLimitDate > b.sendingLimitDate ? 1 : 0));\r\n\t\t\t\t\tmostRecentDate = lettersForService[0].sendingLimitDate;\r\n\t\t\t\t\tif (lettersForService[0].letterProgressStage !== \"Created\") {\r\n\t\t\t\t\t\tmostRecentDate = lettersForService[0].letterHistory.find((l) => l.letterProgressStage === \"Validated\" || l.letterProgressStage === \"Abandonned\").date;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tservices.push(service(appService.title, appService.icon, 0, lettersForService[0].sendingLimitDate, mostRecentDate, [serviceData], hasBeenValidated));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (s.hasBeenValidated === true && hasBeenValidated === false) {\r\n\t\t\t\t\ts.hasBeenValidated = hasBeenValidated;\r\n\t\t\t\t\ts.mostRecentDate = lettersForService[0].sendingLimitDate;\r\n\t\t\t\t}\r\n\r\n\t\t\t\ts.serviceDatas.push(serviceData);\r\n\t\t\t}\r\n\t\t});\r\n\t\tif (orderBy === \"mostRecent\") {\r\n\t\t\tservices.sort((a, b) => (a.sendingLimitDate < b.sendingLimitDate ? -1 : a.sendingLimitDate > b.sendingLimitDate ? 1 : 0));\r\n\t\t} else {\r\n\t\t\tservices.sort((a, b) => (a.title < b.title ? -1 : a.title > b.title ? 1 : 0));\r\n\t\t}\r\n\r\n\t\t// if(searchFilter !== \"\"){\r\n\t\t// \tservices = services.filter(s => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\t\t// }\r\n\t\tsetUserServices(services);\r\n\t}, [serviceDatas, orderBy, searchFilter, userLetters]);\r\n\r\n\tuseEffect(() => {\r\n\t\t// if (userServices.length === 0) return;\r\n\r\n\t\t// if (userServices.every((s) => s.hasBeenValidated === false)) {\r\n\t\t// \tsetPopupText({ text: \"Vous avez quattre sections de délai, vous devez commencer par valider les courriers à transmettre jusqu'à 3 mois avant la date d'effet du déménagement.\", lastShownPopup: 1 });\r\n\t\t// \tif (popupText.lastShownPopup < 1) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\t\t// if (userServices.filter((s) => s.hasBeenValidated).length === 1) {\r\n\t\t// \tif (relocatedUser.hasDocumentSending) {\r\n\t\t// \t\tsetPopupText({ text: \"Vous pouvez suivre vos courriers envoyés en recommandé en cliquant sur les cases validées.\", lastShownPopup: 2 });\r\n\t\t// \t} else {\r\n\t\t// \t\tsetPopupText({ text: \"Vous pouvez télécharger vos courriers à envoyer en cliquant sur les cases validées.\", lastShownPopup: 2 });\r\n\t\t// \t}\r\n\t\t// \tif (popupText.lastShownPopup < 2) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\t// if (userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore3Months && s.hasBeenValidated === true).length === 4) {\r\n\t\t// \tsetPopupText({ text: \"INFO : Vous avez un espace bibliothèque mis à disposition qui vous permet de transmettre tous les documents que vous aurez sélectionné de façon simple et sécurisée à vos interlocuteurs (membres de la famille, notaire…).\", lastShownPopup: 3 });\r\n\t\t// \tif (popupText.lastShownPopup < 3) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\t// if (userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore3Months).every((s) => s.hasBeenValidated === true) && userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore1Month).every((s) => s.hasBeenValidated === false)) {\r\n\t\t// \tsetPopupText({ text: \"Bravo! Tous les courriers devant être transmis aux organismes jusqu'à 3 mois avant la date d'effet du déménagement ont été validés. Veuillez maintenant valider les démarches à faire 1 mois avant.\", lastShownPopup: 4 });\r\n\t\t// \tif (popupText.lastShownPopup < 4) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\t// if (userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore1Month).every((s) => s.hasBeenValidated === true) && userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore15Days).every((s) => s.hasBeenValidated === false)) {\r\n\t\t// \tsetPopupText({ text: \"Bravo! Tous les courriers devant être transmis aux organismes jusqu'à 1 mois avant la date d'effet du déménagement ont été validés. Veuillez maintenant valider les démarches à faire 15 jours avant.\", lastShownPopup: 5 });\r\n\t\t// \tif (popupText.lastShownPopup < 5) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\t// if (userServices.filter((s) => new Date(s.sendingLimitDate) <= dateBefore15Days).every((s) => s.hasBeenValidated === true) && userServices.filter((s) => new Date(s.sendingLimitDate) > dateIn8Days).every((s) => s.hasBeenValidated === false)) {\r\n\t\t// \tsetPopupText({ text: \"Vous avez validé la section de documents à envoyer dans les 15 jours. Enfin, pour terminer les démarches, vous devez valider les courriers à faire dans les 8 jours après le déménagement.\", lastShownPopup: 6 });\r\n\t\t// \tif (popupText.lastShownPopup < 6) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\t// if (userServices.length > 0 && userServices.every((s) => s.hasBeenValidated === true)) {\r\n\t\t// \tsetPopupText({ text: \"Votre dossier d’accompagnement dans les démarches administratives est finalisé, il reste disponible pour vous et vos proches pendant 1 an ainsi que tous les documents dans l’espace bibliothèque.\", lastShownPopup: 7 });\r\n\t\t// \tif (popupText.lastShownPopup < 7) $(\"#commencerReferent\").modal(\"show\");\r\n\t\t// }\r\n\r\n\t\tconst servicesToDisplay = userServices.filter((s) => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\r\n\t\tconst before15Days = { total: [], toBeHandled: [] };\r\n\t\tconst before1Month = { total: [], toBeHandled: [] };\r\n\t\tconst before3Months = { total: [], toBeHandled: [] };\r\n\t\tconst in8Days = { total: [], toBeHandled: [] };\r\n\r\n\t\tbefore3Months.total = servicesToDisplay.filter((s) => new Date(s.sendingLimitDate) <= dateBefore3Months);\r\n\t\tbefore3Months.toBeHandled = before3Months.total.filter((u) => u.hasBeenValidated === false);\r\n\r\n\t\tbefore1Month.total = servicesToDisplay.filter((s) => new Date(s.sendingLimitDate) <= dateBefore1Month && new Date(s.sendingLimitDate) > dateBefore3Months);\r\n\t\tbefore1Month.toBeHandled = before1Month.total.filter((u) => u.hasBeenValidated === false);\r\n\r\n\t\tbefore15Days.total = servicesToDisplay.filter((s) => new Date(s.sendingLimitDate) <= dateBefore15Days && new Date(s.sendingLimitDate) > dateBefore1Month);\r\n\t\tbefore15Days.toBeHandled = before15Days.total.filter((s) => s.hasBeenValidated === false);\r\n\r\n\t\tin8Days.total = servicesToDisplay.filter((s) => new Date(s.sendingLimitDate) <= dateIn8Days && new Date(s.sendingLimitDate) > dateBefore15Days);\r\n\t\tin8Days.toBeHandled = in8Days.total.filter((s) => s.hasBeenValidated === false);\r\n\r\n\t\tsetTilesValues({\r\n\t\t\tbefore15Days: before15Days,\r\n\t\t\tbefore1Month: before1Month,\r\n\t\t\tbefore3Months: before3Months,\r\n\t\t\tin8Days: in8Days,\r\n\t\t});\r\n\t}, [userServices]);\r\n\r\n\tconst servicesToHandle = [tilesValues.before3Months.toBeHandled.length, tilesValues.before1Month.toBeHandled.length, tilesValues.before15Days.toBeHandled.length, tilesValues.in8Days.toBeHandled.length].reduce((a, b) => a + b, 0);\r\n\tconst servicesTotal = [tilesValues.before3Months.total.length, tilesValues.before1Month.total.length, tilesValues.before15Days.total.length, , tilesValues.in8Days.toBeHandled.length].reduce((a, b) => a + b, 0);\r\n\r\n\tconst servicesToDisplay = userServices.filter((s) => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Status

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Jusqu'à 3 mois avant

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.before3Months.toBeHandled.length === 0 ? (tilesValues.before3Months.total.length === 0 ? \"0\" : \"Fait\") : tilesValues.before3Months.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Jusqu'à 1 mois avant

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.before1Month.toBeHandled.length === 0 ? (tilesValues.before1Month.total.length === 0 ? \"0\" : \"Fait\") : tilesValues.before1Month.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Jusqu'à 15 jours avant

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.before15Days.toBeHandled.length === 0 ? (tilesValues.before15Days.total.length === 0 ? \"0\" : \"Fait\") : tilesValues.before15Days.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Jusqu'à 8 jours après

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.in8Days.toBeHandled.length === 0 ? (tilesValues.in8Days.total.length === 0 ? \"0\" : \"Fait\") : tilesValues.in8Days.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Courriers à valider

\r\n\t\t\t\t\t\t\t\t\t

{servicesToHandle}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{relocatedUser.hasDocumentSending ? (\r\n\t\t\t\t\t\t\t\t\t

valider les documents nécessaires pour que nous puissions les envoyer :

\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t

valider les documents nécessaires pour pouvoir les télécharger :

\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Important :

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t\t.filter((s) => s.title === \"assurance habitation\")\r\n\t\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer jusqu'à 3 mois avant le déménagement:

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateBefore3Months)\r\n\t\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer jusqu'à 1 mois avant le déménagement:

\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t\t// .filter((s) => new Date(s.sendingLimitDate) <= dateBefore1Month && new Date(s.sendingLimitDate) > dateBefore3Months && s.title !== \"assurance habitation\")\r\n\t\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateBefore1Month && new Date(s.sendingLimitDate) > dateBefore3Months)\r\n\t\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer jusqu'à 15 jours avant le déménagement:

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateBefore15Days && new Date(s.sendingLimitDate) > dateBefore1Month)\r\n\t\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer jusqu'à 8 jours après le déménagement:

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateIn8Days && new Date(s.sendingLimitDate) > dateBefore15Days)\r\n\t\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nexport const DeleteModal = ({ text, onDelete, isLoading }) => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Supprimer

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{text.title}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tEtes-vous sûr(e) de vouloir supprimer {text.body}?\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Cette action est irréversible.
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport $ from \"jquery\";\r\n\r\nimport * as R from \"ramda\";\r\nimport featuresOverview from \"./../../../../assets/images/placeholder/Features-Overview.svg\";\r\nimport { LoadingState } from \"../../../../_common/loadingState\";\r\nimport { DeclareModal } from \"./declareModal\";\r\nimport { RelocationDashboard } from \"./dashboard\";\r\nimport { DeleteModal } from \"../_common/deleteModal\";\r\nimport { getRelocationDeclaration, deleteRelocationDeclaration, fetchLifeEvents, getDocuments, getLettersForUserId, getUserConnections, getUserServiceData, generateLettersForUserId } from \"../../../../actions/events-api\";\r\nimport * as Loadings from \"../../../../constants/loadings/relocationDeclaration\";\r\nimport * as UserLoadings from \"../../../../constants/loadings/user\";\r\n\r\nexport const EventsRelocation = () => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst userState = useSelector((state) => state.user);\r\n\tconst relocationDeclarationState = useSelector((state) => state.relocationDeclaration);\r\n\r\n\tconst deleteTexts = { title: \"Supprimer dossier de déménagement\", body: \"le dossier de déménagement\" };\r\n\tconst [isLoadingDelete, setIsLoadingDelete] = useState(false);\r\n\tconst [stateIsLoading, setStateIsLoading] = useState(false);\r\n\r\n\tconst onDeleteRelocation = () => {\r\n\t\tsetIsLoadingDelete(true);\r\n\t\tdispatch(deleteRelocationDeclaration(userState.user.id))\r\n\t\t\t.then(() => {\r\n\t\t\t\tdispatch(fetchLifeEvents(userState.user.id));\r\n\t\t\t\tgetDeclaration();\r\n\t\t\t})\r\n\t\t\t.finally(() => {\r\n\t\t\t\tsetIsLoadingDelete(false);\r\n\r\n\t\t\t\t// Use Bootstrap modal hide instead of manually removing classes\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t$(\"#deleteDeclaration\").modal(\"hide\");\r\n\t\t\t\t\t$(\".modal-backdrop\").remove(); // Ensure backdrop is removed\r\n\t\t\t\t}, 100); // Give it a bit of time to fully process\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst getDeclaration = () => {\r\n\t\tconst representing = { ...userState.user, oldAddress: userState.address, onBoardingStep: 1, id: undefined };\r\n\t\tdispatch(getRelocationDeclaration(userState.user.id, representing));\r\n\t};\r\n\r\n\tconst generateLetters = () => {\r\n\t\tdispatch(generateLettersForUserId(userState.user.id, \"relocation\"));\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(userState.user)) {\r\n\t\t\tdispatch(getDocuments(userState.user.id));\r\n\t\t\tdispatch(getLettersForUserId(userState.user.id, \"relocation\"));\r\n\t\t\tdispatch(getUserConnections(userState.user.id));\r\n\t\t\tdispatch(getUserServiceData(userState.user.id, undefined, \"relocation\"));\r\n\t\t}\r\n\t}, [dispatch, userState.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(userState.user) && !R.isNil(userState.address)) {\r\n\t\t\tgetDeclaration();\r\n\t\t}\r\n\t}, [userState.address]);\r\n\r\n\t// Display Loading\r\n\tuseEffect(() => {\r\n\t\tconst _stateIsLoading =\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.FETCHING_RELOCATION_DECLARATION) ||\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.CREATING_RELOCATION_DECLARATION) ||\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.UPDATING_RELOCATION_DECLARATION) ||\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.FETCHING_USER_CONNECTION) ||\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.FETCHING_FILES) ||\r\n\t\t\trelocationDeclarationState.isLoading.some((item) => item.startsWith(Loadings.FETCHING_USER_SERVICES_DATA)) ||\r\n\t\t\trelocationDeclarationState.isLoading.some((item) => item.startsWith(Loadings.UPDATING_USER_SERVICES_DATA)) ||\r\n\t\t\trelocationDeclarationState.isLoading.some((item) => item.startsWith(Loadings.GENERATING_USER_LETTERS)) ||\r\n\t\t\trelocationDeclarationState.isLoading.includes(Loadings.FETCHING_USER_LETTERS) ||\r\n\t\t\tuserState.isLoading.includes(UserLoadings.FETCH_LIFEEVENTS);\r\n\r\n\t\tif (_stateIsLoading !== stateIsLoading) {\r\n\t\t\tsetStateIsLoading(_stateIsLoading);\r\n\t\t}\r\n\t}, [userState.isLoading, relocationDeclarationState.isLoading]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst handleModalHidden = () => {\r\n\t\t\t// Check if any modals are still open\r\n\t\t\tconst anyModalsOpen = $(\".modal.show\").length > 0;\r\n\r\n\t\t\tif (!anyModalsOpen) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t$(\".modal-backdrop\").remove();\r\n\t\t\t\t}, 100);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t$(document).on(\"hidden.bs.modal\", handleModalHidden);\r\n\t\treturn () => {\r\n\t\t\t$(document).off(\"hidden.bs.modal\", handleModalHidden);\r\n\t\t};\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{stateIsLoading ? (\r\n\t\t\t\t\r\n\t\t\t) : (\r\n\t\t\t\t
\r\n\t\t\t\t\t{userState.events?.some((e) => e.type === \"UserRelocation\" && e.inProgress && e.step > 4) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"features\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Accompagnement aux démarches administratives

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Pourquoi?

\r\n\t\t\t\t\t\t\t\t

Ce service a été mis en place afin de vous accompagner et vous faciliter les démarches administratives à faire lors d’un déménagement.

\r\n\t\t\t\t\t\t\t\t

Notre service

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tVous propose les courriers personnalisés\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tVous informe sur les délais à respecter et les aides et allocations\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tLes archives pour vous, dans un coffre-fort numérique disponible\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tVous permet de déposer simplement les documents de la famille (livrets, pièces d’identités…) dans un espace bibliothèque.\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t

Attention

\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\tAssurez-vous d'avoir complété la case «Autres abonnements, adhésions ou allocations» dans les Organismes Complémentaires si vous déménagez dans une autre commune pour accéder à l'inscription sur les listes électorales et à l'inscription à l'école si vous avez des\r\n\t\t\t\t\t\t\t\t\t\t\t\tenfants.\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t

En passant à l’étape suivante, veuillez être certain que vos organismes (bases et complémentaires) soient bien à jour afin que vous puissiez les informer du changement de situation.

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{userState.events?.some((e) => e.type === \"UserRelocation\" && e.inProgress) ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t)}\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nexport const EventsMajority = () => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nexport const EventsMarriage = () => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nexport const EventsBirth = () => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nexport const EventsDivorce = () => {\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect } from \"react\";\r\nimport $ from \"jquery\";\r\nimport { NavLink } from \"react-router-dom\";\r\n\r\nexport const Header = () => {\r\n\tconst handleClick = (e) => {\r\n\t\te.preventDefault();\r\n\t};\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React from \"react\";\r\nimport { Route, Switch, Redirect } from \"react-router\";\r\n\r\nimport { EventsRelocation } from \"./relocation\";\r\nimport { EventsMajority } from \"./majority\";\r\nimport { EventsMarriage } from \"./marriage\";\r\nimport { EventsBirth } from \"./birth\";\r\nimport { EventsDivorce } from \"./divorce\";\r\n\r\nimport { Header } from \"./_common/header\";\r\n\r\nexport const Events = () => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Events

\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t {\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t}}\r\n\t\t\t\t/>\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory, useLocation, Link } from 'react-router-dom';\r\nimport { setComplete } from '../../actions/user-api';\r\nimport $ from 'jquery';\r\n\r\n// Anticipa\r\n// ==========================================\r\n// Anticipa: Common\r\nimport { Navbar } from './_common/navbar';\r\nimport { Help } from './_common/help';\r\nimport JwtDecode from 'jwt-decode';\r\n// Anticipa: Views\r\nimport {Onboard} from './onboard';\r\nimport {Dashboard} from './dashboard';\r\nimport {Referent} from './referent';\r\nimport {Communes} from './communes';\r\nimport {Personal} from './personal';\r\nimport {Biblioteque} from './biblioteque';\r\nimport { Settings } from './settings';\r\nimport { Events } from \"./events\";\r\nimport SigninIlustration from './../../assets/images/placeholder/Signin-ilustration.svg';\r\nimport * as Loadings from '../../constants/loadings/user';\r\nimport {FileTypes} from '../../constants/utils/fileTypes';\r\nimport * as R from 'ramda';\r\nimport * as axios from 'axios';\r\nimport {getUserAddress, getUserRepresentatives, getUserRepresentativeAddress, getUserServices, getDocuments, getProfilePicture, fetchUserById, getUserMessage, fetchPartnerCustomization} from '../../actions/user-api';\r\nimport { fetchLifeEvents } from \"../../actions/events-api\";\r\nimport {fetchAllServiceData} from '../../actions/services-api';\r\n\r\nimport * as ActionTypes from \"../../constants/actiontypes/user\";\r\n\r\n\r\nexport const Anticipa = () => {\r\n\tconst user = useSelector(state => state.user);\r\n\t// const auth = useSelector(state => state.auth);\r\n\tconst router = useSelector(state => state.router);\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst location = useLocation();\r\n\tconst history = useHistory();\r\n\r\n\tconst queryParams = new URLSearchParams(location.search);\r\n\tif(queryParams.has('fc')){\r\n\t\t$('#commencerAnticipa').modal('show');\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tlet authToken = sessionStorage.getItem(\"access_token\");\r\n\t\tif (!R.isNil(authToken)) {\r\n\t\t axios.defaults.headers.common['Authorization'] = \"Bearer \" + authToken;\r\n\t\t}\r\n\t }, [])\r\n\r\n\tuseEffect(() => {\r\n\t\tif (user.user === undefined && !user.isLoading.includes(Loadings.FETCH_USER)) {\r\n\t\t\tvar accessToken = sessionStorage.getItem(\"access_token\");\r\n\t\t\tif (accessToken !== undefined && accessToken !== null && accessToken !== '') {\r\n\t\t\t var decoded = JwtDecode(accessToken);\r\n\t\t\t if (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n\t\t\t\tdispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tlet tmpUser = user.user;\r\n\t\t\tif (!R.isNil(tmpUser)) {\r\n\t\t\t\tif(!R.isNil(tmpUser.partnerId) && tmpUser.partnerId !== '00000000-0000-0000-0000-000000000000'){\t\t\t\t\t\r\n\t\t\t\t\tdispatch(fetchPartnerCustomization(tmpUser.partnerId));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdispatch({type: ActionTypes.FETCH_PARTNER_CUSTOMIZATION_DEFAULT_SUCCESS})\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.user)) {\r\n\t\t\tdispatch(getUserAddress(user.user.id));\r\n\t\t\tdispatch(getUserRepresentatives(user.user.id));\r\n\t\t\tdispatch(getUserServices(user.user));\r\n\t\t\tdispatch(getDocuments(user.user));\r\n\t\t\tdispatch(getUserMessage());\r\n\t\t\tdispatch(fetchAllServiceData(\"Relocation\"));\r\n\t\t\tdispatch(fetchLifeEvents(user.user.id));\r\n\t\t}\r\n\t}, [user.partnerCustomization]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst profilePicture = user.documents.find(d => d.fileType === FileTypes.ProfilePicture);\r\n\t\tif(!R.isNil(profilePicture))\r\n\t\t\tdispatch(getProfilePicture(user.user.id, profilePicture.fileName));\r\n\t}, [user.documents]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif(!R.isNil(user.referents) && user.referents.length > 0){\r\n\t\t\tuser.referents.forEach(r => {\r\n\t\t\tdispatch(getUserRepresentativeAddress(r))\r\n\t\t\t});\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.referents]);\r\n\r\n\tlet authToken = sessionStorage.getItem(\"access_token\");\r\n if (R.isNil(authToken)) {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t

Assist@

\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Votre session a expiré

\r\n\t\t\t\t\t\t\t

Vous devrez vous reconnecter avec votre compte Assist@ pour continuer.

\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsessionStorage.removeItem(\"access_token\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tOK\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\tif (R.isNil(user.user) || !user.partnerCustomization.isLoaded) {\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\tlet step = !R.isNil(user.user.onBoardingStep) ? parseInt(JSON.stringify(user.user.onBoardingStep).replace(/\\D/g, \"\")) : -1;\r\n\tif (step !== 6 && step !== -1) {\r\n\t\tif(user.user.onBoardingStep !== \"Completed\"){\r\n\t\t\twindow.location = `/auth/signup/step${(step+1)}${location.search}`;\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Assist@

\r\n\t\t\t d.fileType === FileTypes.ProfilePicture)} logoContent={user.partnerCustomization.logoBase64Encoded} />\r\n\t\t\t
\r\n\t\t\t\t

Assist@: Main

\r\n\t\t\t\t\r\n\t\t\t\t{!R.isNil(user.user.setupCompletedDate) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
\r\n\t\t\t{router.location.pathname.toLowerCase() === \"/anticipa\" ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\tAstuces:\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Conseils pour faciliter votre expérience

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tVous pouvez compléter votre dossier en une seule fois (15 à 30 minutes) ou progressivement, au fur et à mesure que vous recevez vos courriers, emails et documents.\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tNotre plateforme est simple et sécurisée. Aucune donnée financière ne sera partagée. Vous n'avez besoin que de vos références et numéros pour que vos services puissent vous identifier.\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tPour vous aider à remplir votre dossier rapidement et éviter les déplacements, nous vous conseillons d'avoir les documents suivants à portée de main :\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t Dossier impôts\r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t Dossier maison : électricité, gaz, internet, eau, etc.\r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t Dossiers bancaires et assurances\r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t Carte de mutuelle\r\n\t\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\tDes espaces commentaires sont disponibles pour chaque abonnement ou placement. Vous pouvez y noter vos montants de prélèvements ou capitaux pour un suivi personnel. Ces informations sont strictement confidentielles et ne seront jamais visibles ni utilisées dans vos courriers.\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tCe service est conçu pour vous offrir plus de flexibilité et de confort dans la gestion de votre dossier.\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t

Bon dossier,

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\thistory.replace({\r\n\t\t\t\t\t\t\t\t\t\t\tsearch: \"\",\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tCommencer\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\"\"\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Link, NavLink, useHistory } from 'react-router-dom';\r\nimport JwtDecode from 'jwt-decode';\r\nimport colorContrast from 'color-contrast';\r\nimport * as R from 'ramda';\r\n\r\nimport logo_hr from './../../../assets/images/brand/assista_horizontal-punchout.svg';\r\n// import { Avatar } from './avatar';\r\nimport { Avatar } from '../../../_common/avatar';\r\nimport { addUserRole } from '../../../actions/facilita-api';\r\nimport { FileTypes } from '../../../constants/utils/fileTypes';\r\n\r\n\r\nexport const Navbar = ({ user, profilePicture, userRepresenting, partnerColor, roles, logoContent }) => {\r\n const history = useHistory();\r\n const router = useSelector(state => state.router);\r\n const [widthIsBigger, setWidthIsBigger] = useState(false);\r\n const userState = useSelector(state => state.user);\r\n\r\n\r\n useEffect(() => {\r\n if (!R.isNil(profilePicture)) {\r\n let i = new Image();\r\n i.onload = function () {\r\n setWidthIsBigger(i.width > i.height);\r\n };\r\n i.src = profilePicture;\r\n }\r\n }, [profilePicture]);\r\n\r\n // let roles = [];\r\n // var accessToken = sessionStorage.getItem(\"access_token\");\r\n // if (!R.isNil(accessToken) && accessToken !== '') {\r\n // var decodedJwt = JwtDecode(accessToken);\r\n // let rolesFromToken = decodedJwt[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n // if(!R.isNil(rolesFromToken)){\r\n // if(Array.isArray(rolesFromToken)){\r\n // roles = rolesFromToken;\r\n // }else{\r\n // roles = [rolesFromToken];\r\n // }\r\n // }\r\n // }\r\n\r\n const pathParts = router.location.pathname.split(\"/\");\r\n let displaySubmenu = false;\r\n let currentUserId = undefined;\r\n let section = undefined;\r\n if (pathParts.length >= 3) {\r\n if (/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(pathParts[2])) {\r\n displaySubmenu = true;\r\n currentUserId = pathParts[2];\r\n\r\n if (!R.isNil(pathParts[3])) {\r\n section = pathParts[3];\r\n }\r\n }\r\n }\r\n\r\n const colorCustom = (!R.isNil(partnerColor) && partnerColor !== '') ? (colorContrast('#fff', partnerColor) >= 2.5 ? \" text-white navbar-dark\" : \" navbar-light\") : \" text-white navbar-dark\";\r\n const logo = R.isNil(logoContent) ? logo_hr : logoContent;\r\n return (\r\n \r\n
\r\n
\r\n {\r\n R.isNil(logoContent) ? \r\n ''\r\n :\r\n \r\n {\"Assist@\" ev.target.src = logo_hr} />\r\n

Assist@: Menu

\r\n \r\n }\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n d.fileType === FileTypes.ProfilePicture)} />\r\n
\r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda'\r\n\r\nexport const Help = ({row}) => {\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t};","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nexport const Path = ({ deceasedUser, declaration, serviceDatas, userLetters }) => {\r\n const [step, setStep] = useState(0);\r\n useEffect(() => {\r\n if(R.isNil(declaration)){\r\n setStep(1);\r\n }else if(!deceasedUser.hasCompletedDossier && deceasedUser.createdByRepresentative){\r\n setStep(1);\r\n }else{\r\n if(R.isNil(declaration.onBoardingStep) || declaration.onBoardingStep < 6){\r\n setStep(2);\r\n }else if(declaration.onBoardingStep === 6){\r\n if(userLetters.every(l => l.letterProgressStage !== \"Created\")){\r\n setStep(4);\r\n }else{\r\n setStep(3);\r\n }\r\n }\r\n }\r\n }, [declaration, deceasedUser, serviceDatas, userLetters])\r\n\r\n if(R.isNil(deceasedUser)){\r\n return \"\"\r\n }\r\n return(\r\n
\r\n
    \r\n
  • 1 ? \" completed\" : \"\")}>\r\n 1\r\n COMPLETER\r\n
  • \r\n
  • 2 ? \" completed\" : \"\")}>\r\n 2\r\n ACTE DE DÉCÈS\r\n
  • \r\n
  • 3 ? \" completed\" : \"\")}>\r\n 3\r\n VALIDER\r\n
  • \r\n
  • 4 ? \" completed\" : \"\")}>\r\n 4\r\n COURRIERS / SUIVI\r\n
  • \r\n
\r\n
\r\n )\r\n\r\n};","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\n\r\nimport featuresOverview from './../../../assets/images/placeholder/Features-Overview.svg';\r\n\r\nexport const Landing = ({ representingUser }) => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\"features\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Dossier d'aide et d'accompagnement administratif

\r\n\t\t\t\t\t\t\t{/*

Être référent c’est quoi ? Vos avantages et votre rôle ?

*/}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Être référent c’est quoi ?

\r\n\t\t\t\t\t\t

Être référent est une marque de confiance, c’est être le relais de votre proche.

\r\n\t\t\t\t\t\t

Pourquoi?

\r\n\t\t\t\t\t\t

Ce service a été mis en place afin d’adapter et vous faciliter toutes les démarches administratives que vous aurez à faire et à envoyer le moment venu.

\r\n\t\t\t\t\t\t

Notre service

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tVous propose les courriers personnalisés\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCrée les démarches et les envoie en fonction des délais légaux\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tLes archives pour vous, dans un coffre-fort numérique disponible\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tVous permet de déposer simplement les documents de la famille (livrets, pièces d’identités…) dans un espace bibliothèque que vous pouvez rendre accessible.\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tR.isNil(representingUser) ? \r\n\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\tJe souhaite déclarer le décès\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React from 'react';\r\n// import { useSelector } from 'react-redux';\r\nimport { NavLink } from 'react-router-dom';\r\n\r\nimport money from './../../../../assets/images/svg/109-money.svg';\r\nimport archives from './../../../../assets/images/svg/111-archives.svg';\r\n\r\nexport const Header = ({ roles }) => {\r\n\t// const router = useSelector(state => state.router);\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport countryTranslation from 'i18n-iso-countries';\r\nimport french from 'i18n-iso-countries/langs/fr.json';\r\nimport { toast } from 'react-toastify';\r\nimport { ToasterConfigurations } from '../../../../constants/toasterText/configurations';\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { PostalCityInput } from \"../../../../_common/postalCityInput\";\r\n\r\nimport { Header } from '../_common/header';\r\nimport * as loadings from '../../../../constants/loadings/user';\r\nimport { getAddressesByUserId, updateAddressById, updateUser } from '../../../../actions/facilita-api';\r\n\r\nexport const SettingsProfil = ({ user, isLoading, roles }) => {\r\n const dispatch = useDispatch();\r\n countryTranslation.registerLocale(french);\r\n\r\n const [userInfo, setUserInfo] = useState(user);\r\n\r\n const gender = { male: 'Male', female: 'Female' };\r\n\r\n useEffect(() => {\r\n dispatch(getAddressesByUserId(user.id));\r\n }, [user]);\r\n\r\n if (R.isNil(userInfo.addresses)) {\r\n return '';\r\n\r\n }\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Mes données

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

ETAT CIVIL

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, gender: gender.female })} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, gender: gender.male })} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, firstName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, lastName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, birthDate: d })} />\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{/* Show only if admin or super admin */}\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n \r\n \r\n
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t

ADRESSE

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...userInfo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taddresses: userInfo.addresses.map((address, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn idx === 0 ? { ...address, addressLine1: e.target.value } : address;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({\r\n\t\t\t\t\t\t\t\t\t\t\t\t...userInfo,\r\n\t\t\t\t\t\t\t\t\t\t\t\taddresses: userInfo.addresses.map((address, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn idx === 0 ? { ...address, postalCode: updatedAddress.postalCode, city: updatedAddress.city } : address;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={R.isNil(userInfo.addresses) ? \"\" : userInfo.addresses[0].country}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col col-xl-4\", postalCode: \"form-group col col-xl-4\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...userInfo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taddresses: userInfo.addresses.map((address, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn idx === 0 ? { ...address, postalCode: e.target.value } : address;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...userInfo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taddresses: userInfo.addresses.map((address, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn idx === 0 ? { ...address, city: e.target.value } : address;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...userInfo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taddresses: userInfo.addresses.map((address, idx) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn idx === 0 ? { ...address, country: e.target.value } : address;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t}>\r\n\t\t\t\t\t\t\t\t\t\t\t{Object.values(countryTranslation.getNames(\"fr\", { select: \"official\" }))\r\n\t\t\t\t\t\t\t\t\t\t\t\t.sort()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.map((countryName) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst countryCode = countryTranslation.getAlpha2Code(countryName, \"fr\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{isLoading.includes(loadings.UPDATE_USER) || isLoading.includes(loadings.UPDATING_USER_ADDRESS) ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tconst { addresses, ...userWithoutAddress } = userInfo;\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateUser({ ...userWithoutAddress, professionalSituation: userWithoutAddress.professionalSituation.toString() }))\r\n\t\t\t\t\t\t\t\t\t\t\t.then(() => dispatch(updateAddressById(userWithoutAddress.id, addresses[0])))\r\n\t\t\t\t\t\t\t\t\t\t\t.then(() => toast.success(\"Les données ont été mises à jour.\", ToasterConfigurations))\r\n\t\t\t\t\t\t\t\t\t\t\t.catch(() => toast.error(\"Une erreur est survenue.\", ToasterConfigurations));\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t
* champs obligatoires
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n};","import React, { useRef, useState, useEffect } from 'react';\r\nimport { Header } from './../_common/header';\r\n\r\nimport * as R from 'ramda';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { RegexFields } from '../../../../constants/utils/regexFields';\r\nimport { Profile } from './../../../../_common/profile';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nimport { updateUserSecurity, changePhoneNumber } from '../../../../actions/facilita-api';\r\n\r\nimport * as Loadings from '../../../../constants/loadings/user';\r\n\r\nexport const SettingsSecurity = ({ user, isLoading, roles }) => {\r\n const dispatch = useDispatch();\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const securityForm = useRef(null);\r\n\r\n const otherSecurityForm = useRef(null);\r\n\r\n const phoneNumberInputRef = useRef(null);\r\n\r\n const auth = useSelector(state => state.auth);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [showCurrentPassword, setShowCurrentPassword] = useState(false);\r\n const [showConfPassword, setShowConfPassword] = useState(false);\r\n const [passwordsMatch, setPasswordsMatch] = useState(false);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n\r\n const [editPhoneNumberStep, setEditPhoneNumberStep] = useState(0);\r\n const registerPage = useState(false);\r\n\r\n let initState = {\r\n email: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: '',\r\n otpCode: '',\r\n countryCode: '33',\r\n phoneCountry: 'FR'\r\n };\r\n\r\n let phone = undefined;\r\n if (!R.isNil(user.phoneNumber)) {\r\n phone = parsePhoneNumber(user.phoneNumber);\r\n if (phone.isValid()) {\r\n initState.phoneNumber = phone.nationalNumber;\r\n initState.countryCode = phone.countryCallingCode;\r\n initState.phoneCountry = phone.country;\r\n }\r\n }\r\n\r\n if (!R.isEmpty(user.email)) {\r\n initState.email = user.email;\r\n }\r\n\r\n const [credentials, setCredentials] = useState(initState);\r\n\r\n useEffect(() => {\r\n if (editPhoneNumberStep === 2) {\r\n document.getElementById(\"otpCodeInput\").focus();\r\n securityForm.current.classList.remove('was-validated');\r\n }\r\n }, [editPhoneNumberStep]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials) && !R.isNil(credentials.password)) {\r\n let hasUpper = !R.isNil(credentials.password.match(RegexFields.hasUpperCase));\r\n let hasLower = !R.isNil(credentials.password.match(RegexFields.hasLowerCase));\r\n let hasDigits = !R.isNil(credentials.password.match(RegexFields.hasDigits));\r\n setPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials.password]);\r\n\r\n const newPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Données du compte
\r\n
\r\n
Données du compte
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {\r\n (() => {\r\n switch (editPhoneNumberStep) {\r\n case 0:\r\n return (
\r\n
\r\n \r\n {R.isNil(phone) ? '': phone.formatInternational()}\r\n Validé\r\n
\r\n {/*
\r\n \r\n Le numéro de téléphone a été activé avec succès.\r\n
\r\n

Les codes de validation sont envoyés par SMS.

*/}\r\n \r\n
);\r\n\r\n case 1:\r\n return (
\r\n \r\n
\r\n \r\n {\r\n e.preventDefault();\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value });\r\n }}\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n {\r\n isLoading.includes(Loadings.SENDING_OTP) ?\r\n \r\n :\r\n \r\n }\r\n \r\n
);\r\n\r\n case 2:\r\n const parsedPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n return (\r\n
\r\n \r\n\r\n
\r\n {\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, otpCode: e.target.value });\r\n }} />\r\n \r\n {\r\n isLoading.includes(Loadings.VALIDATING_OTP) ?\r\n \r\n :\r\n \r\n }\r\n \r\n \r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n\r\n
\r\n\r\n {\r\n isLoading.includes(Loadings.SENDING_OTP) ?\r\n
\r\n
\r\n Loading...\r\n
\r\n Veuillez patienter...\r\n
\r\n :\r\n

Vous ne l'avez pas reçu ? {\r\n e.preventDefault();\r\n dispatch(changePhoneNumber(newPhoneNumber.number, user.id));\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, otpCode: '' });\r\n }}>En recevoir un nouveau

\r\n }\r\n
);\r\n }\r\n })()\r\n }\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n }} pattern={RegexFields.email} />\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, currentPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowCurrentPassword(!showCurrentPassword); }}>\r\n
\r\n
\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"passwordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setCredentials({ ...credentials, password: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowPassword(!showPassword); }}>\r\n
\r\n
\r\n {/*
\r\n Champs invalide\r\n
*/}\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"confirmPasswordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setCredentials({ ...credentials, confirmPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowConfPassword(!showConfPassword); }}>\r\n
\r\n
\r\n {/*
\r\n Champs invalide\r\n
*/}\r\n
\r\n
\r\n
\r\n Les mots de passe ne sont pas identiques.\r\n
\r\n
\r\n Il y a déjà un utilisateur avec cet e-mail.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Pour un mot de passe plus sûr
\r\n

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n
\r\n \r\n une lettre majuscule (A-Z)\r\n
\r\n
\r\n \r\n une lettre minuscule (a-z)\r\n
\r\n
\r\n \r\n un chiffre (0-9)\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n );\r\n};","import React from 'react';\r\nimport Emptylustration from './../../../../assets/images/svg/047-ticket.svg';\r\n\r\nexport const EmptyState = () => {\r\n return (\r\n
\r\n \"Assist@\"\r\n
\r\n

Aucune facture trouvée!

\r\n

Lorsque vous êtes prêt, affichez et gérez les modes de paiement pour profiter d'Assist@.

\r\n
\r\n
\r\n )\r\n}","import React, { useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { dateToString, formatAmount } from '../../../../utils/misc';\r\n\r\nexport const InvoiceList = ({ invoices }) => {\r\n const orderOptions = { number: 'number', emission: 'created', total: 'amount' };\r\n const [invertOrder, setInvertOrder] = useState(false);\r\n const [order, setOrder] = useState(undefined);\r\n\r\n invoices = R.sortWith([R.ascend(R.prop(order))])(invoices);\r\n if (invertOrder) {\r\n invoices = invoices.reverse();\r\n }\r\n\r\n return (\r\n
\r\n
Facturation
\r\n \r\n {\r\n invoices.map((invoice, index) => {\r\n let awaitingPayment = false;\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
{invoice.number}
\r\n
\r\n
\r\n
\r\n
\r\n
{dateToString(invoice.created)}
\r\n
\r\n
\r\n {/*
\r\n
\r\n
12-11-2021
\r\n
\r\n
*/}\r\n
\r\n
\r\n
{formatAmount(invoice.amount)} €
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n !invoice.paid ?\r\n
\r\n {(() => {\r\n switch (invoice.status) {\r\n case \"new\":\r\n case \"retry3\":\r\n case \"retry7\":\r\n return
en Paiement
;\r\n\r\n case \"canceled\":\r\n return
Annulé
;\r\n\r\n case \"unpaid\":\r\n return
Echoué
;\r\n\r\n default:\r\n return
Inconnu
;\r\n }\r\n\r\n })()}\r\n
\r\n :\r\n
\r\n
Paiement effectué
\r\n \r\n \r\n \r\n
\r\n }\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { EmptyState } from './emptyState';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport { InvoiceList } from './invoiceList';\r\nimport { fetchInvoices } from '../../../../actions/facilita-api';\r\nimport { Header } from '../_common/header';\r\nimport Invoice from '../../../../constants/models/invoice';\r\n\r\n\r\nexport const SettingsInvoicing = ({ user, roles }) => {\r\n\tconst [invoicesState, setInvoicesState] = useState({\r\n\t\tinvoices: [],\r\n\t\tisLoading: false\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\tsetInvoicesState({ ...invoicesState, isLoading: true });\r\n\t\tfetchInvoices(user.id).then((invoices) => {\r\n\t\t\tsetInvoicesState({ ...invoicesState, isLoading: false, invoices: invoices.length > 0 ? invoices.map(i => new Invoice(i)) : [] });\r\n\t\t});\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{invoicesState.isLoading ?
:\r\n\t\t\t\t\t\tinvoicesState.invoices.length === 0 ?\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useSelector, useDispatch } from 'react-redux';\r\n\r\nimport { SettingsProfil } from './profile';\r\nimport { SettingsSecurity } from './securite';\r\nimport { SettingsInvoicing } from './invoicing';\r\nimport { SettingsPreferences } from './preferences';\r\n\r\nexport const Settings = ({ roles }) => {\r\n const facilitaState = useSelector(state => state.facilita);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return ;\r\n }} />\r\n \r\n );\r\n};","export default __webpack_public_path__ + \"static/media/loading-primary.7797a8f8.png\";","export default __webpack_public_path__ + \"static/media/loading-secondary.212bd8cc.png\";","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { useDispatch } from 'react-redux';\r\nimport {generateLettersForUserId} from '../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nimport loadingPrimary from './../../../../assets/images/placeholder/loading-primary.png';\r\nimport loadingSecondary from './../../../../assets/images/placeholder/loading-secondary.png';\r\n\r\nexport const DossierLoading = ({userId, isLoading}) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [hasLauchedGeneration, setHasLauchedGeneration] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(generateLettersForUserId(userId))\r\n\t\t.then(() => setHasLauchedGeneration(true))\r\n\t\t.catch(() => setHasLauchedGeneration(true));\r\n\t}, []);\r\n\r\n\tif(!hasLauchedGeneration || isLoading.includes(loadings.GENERATING_USER_LETTERS + \"_\" + userId)){\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"loading\r\n\t\t\t\t\t\t\t\"loading\r\n\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

Veuillez patienter

\r\n\t\t\t\t\t\t

Nous sommes en train de générer les courriers...

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t} else {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"loading\r\n\t\t\t\t\t\t\t\"loading\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t

Les courriers ont été générés!

\r\n\t\t\t\t\t\t

Veuillez cliquez ci-dessous pour accéder au tableau de bord et valider les courriers à envoyer.

\r\n\t\t\t\t\t\tAccéder au tableau de bord\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t\t// return \r\n\t}\r\n\r\n\t\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\n\r\nexport const DashboardCard = ({ userService, index, setSelectedService, userLetters, isLoadingLetters, hasDocumentSending }) => {\r\n\r\n const dateParts = userService.mostRecentDate.substring(0, 10).split('-');\r\n let displayDate = dateParts[2] + \"-\" + dateParts[1] + \"-\" + dateParts[0];\r\n let noneLetter = [\"Rempli\", \"Non rempli\", \"Lettres générées\", \"En traitement...\"];\r\n let greenStatus = [\"Lettres validées\", \"Lettres imprimées\", \"Lettres postées\", \"Lettres distribuées\", \"Traité\", \"En livraison\"];\r\n let blueStatus = [\"Rempli\", \"Lettres générées\", \"En traitement...\"];\r\n let displayText = \"Générées\";\r\n //let status = \"Lettres validées\";\r\n\r\n function getAllLettersEqualTo(userLetters, properties) { return userLetters.every(letter => properties.includes(letter.letterProgressStage)); };\r\n function getSomeLettersEqualTo(userLetters, property) { return userLetters.some(letter => letter.letterProgressStage === property); };\r\n function allLetterHaveStatus(userLetters, status) { return userLetters.every(letter => letter.letterProgressStage === status); };\r\n\r\n function getLetterHistoryDate(userLetters, letterProgressStage) {\r\n userLetters = userLetters.filter(ul => ul.letterProgressStage === letterProgressStage);\r\n let letterHistories = [];\r\n for (let i = 0; i < userLetters.length; i++) {\r\n var correspondingHistory = userLetters[i].letterHistory.filter(l => l.letterProgressStage === letterProgressStage);\r\n letterHistories = R.concat(letterHistories, correspondingHistory);\r\n }\r\n if (R.isEmpty(letterHistories)) {\r\n return \"\";\r\n }\r\n const sortedHistory = R.sortBy(R.prop('date'))(letterHistories);\r\n const sortedHistoryParts = sortedHistory[0].date.substring(0, 10).split('-');\r\n return sortedHistoryParts[2] + \"-\" + sortedHistoryParts[1] + \"-\" + sortedHistoryParts[0];\r\n }\r\n\r\n let userLettersFiltered = userLetters.filter(ul => userService.serviceDatas.some(sd => sd.id === ul.userServiceId));\r\n let status;\r\n let isClickable = true;\r\n\r\n if (!R.isEmpty(userService.serviceDatas)) {\r\n status = \"En traitement...\";\r\n\r\n const userLettersCreated = R.isEmpty(userLettersFiltered) ? false : userLettersFiltered.some(letter => letter.letterProgressStage === \"Created\");\r\n // const userLettersValidated = getSomeLettersEqualTo(userLettersFiltered, \"Validated\");\r\n const userLettersValidated = getAllLettersEqualTo(userLettersFiltered, [\"Validated\", \"Abandonned\"]);\r\n const userLettersPrinted = getSomeLettersEqualTo(userLettersFiltered, \"Printed\");\r\n const userLettersSentPost = getSomeLettersEqualTo(userLettersFiltered, \"SentToPost\");\r\n const userLettersInDelivery = getSomeLettersEqualTo(userLettersFiltered, \"InDelivery\");\r\n const userLettersDelivered = getSomeLettersEqualTo(userLettersFiltered, \"Delivered\");\r\n const userLettersAbandonned = allLetterHaveStatus(userLettersFiltered, \"Abandonned\");\r\n\r\n if (userLettersCreated) {\r\n\r\n status = \"Lettres générées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"Created\");\r\n\r\n } else if (userLettersAbandonned) {\r\n status = \"Traité\";\r\n displayText = \"Traitées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"Abandonned\");\r\n if(!hasDocumentSending){\r\n isClickable = false;\r\n }\r\n } else if (userLettersValidated) {\r\n\r\n status = \"Lettres validées\";\r\n displayText = \"Validées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"Validated\");\r\n\r\n } else if (userLettersPrinted) {\r\n\r\n status = \"Lettres imprimées\";\r\n displayText = \"Imprimées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"Printed\");\r\n\r\n } else if (userLettersSentPost) {\r\n\r\n status = \"Lettres postées\";\r\n displayText = \"Postées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"SentToPost\");\r\n\r\n } else if (userLettersInDelivery) {\r\n\r\n status = \"En livraison\";\r\n displayText = \"En livraison\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"InDelivery\");\r\n\r\n }\r\n \r\n else if (userLettersDelivered) {\r\n\r\n status = \"Lettres distribuées\";\r\n displayText = \"Distribuées\";\r\n displayDate = getLetterHistoryDate(userLettersFiltered, \"Delivered\");\r\n }\r\n\r\n\r\n } else {\r\n\r\n status = \"Non rempli\";\r\n\r\n }\r\n return (\r\n
\r\n\r\n {\r\n isClickable ?\r\n
{\r\n e.preventDefault();\r\n setSelectedService(userService);\r\n }\r\n }>\r\n
\r\n {userService.title}\r\n

{userService.title}

\r\n

Valide

\r\n
\r\n
\r\n
\r\n {!isLoadingLetters.includes(userService.title) ?\r\n status\r\n :\r\n
}\r\n
\r\n
\r\n
\r\n

{displayText} le
{displayDate}

\r\n
\r\n :\r\n
\r\n
\r\n {userService.title}\r\n

{userService.title}

\r\n

Valide

\r\n
\r\n
\r\n
\r\n {!isLoadingLetters.includes(userService.title) ?\r\n status\r\n :\r\n
}\r\n
\r\n
\r\n
\r\n

{displayText} le
{displayDate}

\r\n
\r\n }\r\n\r\n\r\n\r\n
\r\n );\r\n};","import React, { useState, useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport { Link } from \"react-router-dom\";\r\n\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, convertBackEndServiceTypesToFrontEndServiceType } from '../../../../constants/utils/connectionTypes';\r\n\r\nimport { CircularProgressbar, buildStyles } from 'react-circular-progressbar';\r\n\r\nimport { ModalValidation } from './../_common/modalValidation';\r\nimport { ModalCommencer } from './../_common/modalCommencer';\r\nimport { DashboardCard } from './dashboardCard';\r\nimport { ServicesEdit } from '../_common/serviceEdit';\r\n\r\nexport const DossierDashboard = ({ serviceDatas, userLetters, files, userId, deathDate, isLoading, connectionTypes, declaringUserId, currentlyConnectedUserId, deceasedUser, generateLetters }) => {\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n\t}, []);\r\n\r\n\tconst [isLoadingLetters, setIsLoadingLetter] = useState([]);\r\n\tconst [popupText, setPopupText] = useState({ text: \"\", lastShownPopup: 0 });\r\n\tconst [selectedService, setSelectedService] = useState(undefined);\r\n\tconst [orderBy, setOrderBy] = useState(\"mostRecent\");\r\n\tconst [searchFilter, setSearchFilter] = useState(\"\");\r\n\tconst [tilesValues, setTilesValues] = useState({\r\n\t\tin7Days: { total: [], toBeHandled: [] },\r\n\t\tin30Days: { total: [], toBeHandled: [] },\r\n\t\tin6Months: { total: [], toBeHandled: [] }\r\n\t});\r\n\r\n\t//We should get it from backend!\r\n\tfunction service(title, icon, progress, sendingLimitDate, mostRecentDate, serviceDatas, hasBeenValidated) { return { title: title, icon: icon, sendingLimitDate: sendingLimitDate, mostRecentDate: mostRecentDate, progress: (progress === undefined ? 0 : progress), serviceDatas: serviceDatas, hasBeenValidated: hasBeenValidated }; };\r\n\r\n\r\n\tconst [userServices, setUserServices] = useState([]);\r\n\r\n\tconst dateIn7Days = new Date(deathDate);\r\n\tdateIn7Days.setDate(dateIn7Days.getDate() + 8);\r\n\r\n\tconst dateIn30Days = new Date(deathDate);\r\n\tdateIn30Days.setDate(dateIn30Days.getDate() + 31);\r\n\r\n\tconst dateIn6Months = new Date(deathDate);\r\n\tdateIn6Months.setMonth(dateIn6Months.getMonth() + 6);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst allServices = Object.values(PersonalServices).concat(Object.values(AuxiliarOptions)).concat(Object.values(CommonServices)).concat(Object.values(OtherService));\r\n\t\tlet services = [];\r\n\t\tserviceDatas.map((serviceData) => {\r\n\t\t\tlet connectionType = convertBackEndServiceTypesToFrontEndServiceType(serviceData.serviceType);\r\n\r\n\t\t\tlet appService = allServices.find(obj => obj.connectionType === connectionType);\r\n\r\n\r\n\t\t\tconst s = services.find(s => s.title === appService.title);\r\n\r\n\t\t\tconst lettersForService = userLetters.filter(l => l.userServiceId === serviceData.id);\r\n\t\t\tconst hasBeenValidated = lettersForService.find(l => l.letterProgressStage === \"Created\") === undefined;\r\n\r\n\t\t\tif (!R.isNil(appService) && R.isNil(s)) {\r\n\t\t\t\tlet mostRecentDate = \"\";\r\n\r\n\t\t\t\tif (!R.isEmpty(lettersForService)) {\r\n\t\t\t\t\tlettersForService.sort((a, b) => a.sendingLimitDate < b.sendingLimitDate ? -1 : a.sendingLimitDate > b.sendingLimitDate ? 1 : 0);\r\n\t\t\t\t\tmostRecentDate = lettersForService[0].sendingLimitDate;\r\n\t\t\t\t\tif (lettersForService[0].letterProgressStage !== \"Created\") {\r\n\t\t\t\t\t\tmostRecentDate = lettersForService[0].letterHistory.find(l => l.letterProgressStage === \"Validated\" || l.letterProgressStage === \"Abandonned\").date;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tservices.push(service(appService.title, appService.icon, 0, lettersForService[0].sendingLimitDate, mostRecentDate, [serviceData], hasBeenValidated));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (s.hasBeenValidated === true && hasBeenValidated === false) {\r\n\t\t\t\t\ts.hasBeenValidated = hasBeenValidated;\r\n\t\t\t\t\ts.mostRecentDate = lettersForService[0].sendingLimitDate;\r\n\t\t\t\t}\r\n\r\n\t\t\t\ts.serviceDatas.push(serviceData);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tif (orderBy === \"mostRecent\") {\r\n\t\t\tservices.sort((a, b) => a.sendingLimitDate < b.sendingLimitDate ? -1 : a.sendingLimitDate > b.sendingLimitDate ? 1 : 0);\r\n\t\t} else {\r\n\t\t\tservices.sort((a, b) => a.title < b.title ? -1 : a.title > b.title ? 1 : 0);\r\n\t\t}\r\n\r\n\t\t// if(searchFilter !== \"\"){\r\n\t\t// \tservices = services.filter(s => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\t\t// }\r\n\t\tsetUserServices(services);\r\n\r\n\r\n\r\n\r\n\t}, [serviceDatas, orderBy, searchFilter, userLetters]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (userServices.length === 0)\r\n\t\t\treturn;\r\n\r\n\t\tif (userServices.every(s => s.hasBeenValidated === false)) {\r\n\t\t\tsetPopupText({ text: \"Vous avez trois sections de délai, vous devez commencer par valider les courriers à transmettre dans les 7 jours.\", lastShownPopup: 1 });\r\n\t\t\tif (popupText.lastShownPopup < 1)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\t\tif (userServices.filter(s => s.hasBeenValidated === true).length === 1) {\r\n\t\t\tif(deceasedUser.hasDocumentSending){\r\n\t\t\t\tsetPopupText({ text: \"Vous pouvez suivre vos courriers envoyés en recommandé en cliquant sur les cases validées.\", lastShownPopup: 2 });\r\n\t\t\t}else{\r\n\t\t\t\tsetPopupText({ text: \"Vous pouvez télécharger vos courriers à envoyer en cliquant sur les cases validées.\", lastShownPopup: 2 });\r\n\t\t\t}\r\n\t\t\tif (popupText.lastShownPopup < 2)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\r\n\t\tif (userServices.filter(s => new Date(s.sendingLimitDate) <= dateIn7Days && s.hasBeenValidated === true).length === 4) {\r\n\t\t\tsetPopupText({ text: \"INFO : Vous avez un espace bibliothèque mis à disposition qui vous permet de transmettre tous les documents que vous aurez sélectionné de façon simple et sécurisée à vos interlocuteurs (membre de la famille, notaire…).\", lastShownPopup: 3 });\r\n\t\t\tif (popupText.lastShownPopup < 3)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\r\n\t\tif (userServices.filter(s => new Date(s.sendingLimitDate) <= dateIn7Days).every(s => s.hasBeenValidated === true) &&\r\n\t\t\tuserServices.filter(s => new Date(s.sendingLimitDate) > dateIn7Days).every(s => s.hasBeenValidated === false)) {\r\n\t\t\tsetPopupText({ text: \"Bravo! Tous les courriers devant être transmis aux organismes dans les 7 jours ont été validés. Veuillez maintenant valider les démarches à faire dans les 30 jours.\", lastShownPopup: 4 });\r\n\t\t\tif (popupText.lastShownPopup < 4)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\t\tif (userServices.filter(s => new Date(s.sendingLimitDate) <= dateIn30Days).every(s => s.hasBeenValidated === true) &&\r\n\t\t\tuserServices.filter(s => new Date(s.sendingLimitDate) > dateIn6Months).every(s => s.hasBeenValidated === false)) {\r\n\t\t\tsetPopupText({ text: \"Vous avez validé la section de documents à envoyer dans les 30 jours. Enfin, pour terminer les démarches, vous devez valider les courriers à faire dans les 6 mois.\", lastShownPopup: 5 });\r\n\t\t\tif (popupText.lastShownPopup < 5)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\r\n\t\tif (userServices.length > 0 && userServices.every(s => s.hasBeenValidated === true)) {\r\n\t\t\tsetPopupText({ text: \"Votre dossier d’accompagnement dans les démarches administratives est finalisé, il reste disponible pour vous et vos proches pendant 1 an ainsi que tous les documents dans l’espace bibliothèque.\", lastShownPopup: 6 });\r\n\t\t\tif (popupText.lastShownPopup < 6)\r\n\t\t\t\t$('#commencerReferent').modal('show');\r\n\t\t}\r\n\t\tconst servicesToDisplay = userServices.filter(s => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\r\n\t\tconst in7Days = { total: [], toBeHandled: [] };\r\n\t\tconst in30Days = { total: [], toBeHandled: [] };\r\n\t\tconst in6Months = { total: [], toBeHandled: [] };\r\n\r\n\t\tin7Days.total = servicesToDisplay.filter(s => new Date(s.sendingLimitDate) <= dateIn7Days);\r\n\t\tin7Days.toBeHandled = in7Days.total.filter(s => s.hasBeenValidated === false);\r\n\r\n\t\tin30Days.total = servicesToDisplay.filter(s => new Date(s.sendingLimitDate) <= dateIn30Days && new Date(s.sendingLimitDate) > dateIn7Days);\r\n\t\tin30Days.toBeHandled = in30Days.total.filter(u => u.hasBeenValidated === false);\r\n\r\n\t\tin6Months.total = servicesToDisplay.filter(s => new Date(s.sendingLimitDate) <= dateIn6Months && new Date(s.sendingLimitDate) > dateIn30Days);\r\n\t\tin6Months.toBeHandled = in6Months.total.filter(u => u.hasBeenValidated === false);\r\n\r\n\t\tsetTilesValues({\r\n\t\t\tin7Days: in7Days,\r\n\t\t\tin30Days: in30Days,\r\n\t\t\tin6Months: in6Months\r\n\t\t});\r\n\t}, [userServices]);\r\n\r\n\r\n\r\n\r\n\tconst servicesToHandle = [tilesValues.in7Days.toBeHandled.length, tilesValues.in30Days.toBeHandled.length, tilesValues.in6Months.toBeHandled.length].reduce((a, b) => a + b, 0);\r\n\tconst servicesTotal = [tilesValues.in7Days.total.length, tilesValues.in30Days.total.length, tilesValues.in6Months.total.length].reduce((a, b) => a + b, 0);\r\n\r\n\tconst servicesToDisplay = userServices.filter(s => s.title.toLowerCase().indexOf(searchFilter.toLowerCase()) > -1);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{/*
\r\n\t\t\t\t\t

Status

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

différentes actions effectuées par Assist@

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t1\r\n\t\t\t\t\t\t\t\t\tCompte créé\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t2\r\n\t\t\t\t\t\t\t\t\tDocuments générés\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t3\r\n\t\t\t\t\t\t\t\t\tDécès de Catwoman\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t4\r\n\t\t\t\t\t\t\t\t\tNotification Notaire\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t5\r\n\t\t\t\t\t\t\t\t\tNotification Notaire\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t6\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t7\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t8\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t9\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t10\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t11\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\t\t12\r\n\t\t\t\t\t\t\t\t\tNotification d'entité\r\n\t\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
*/}\r\n\t\t\t\t
\r\n\t\t\t\t\t

Status

\r\n\t\t\t\t\t{/*

différentes actions effectuées par Assist@

*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer sous 7 jours

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.in7Days.toBeHandled.length === 0 ? \"Fait\" : tilesValues.in7Days.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer sous 30 jours

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.in30Days.toBeHandled.length === 0 ? \"Fait\" : tilesValues.in30Days.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

À envoyer sous 6 mois

\r\n\t\t\t\t\t\t\t\t\t

{tilesValues.in6Months.toBeHandled.length === 0 ? \"Fait\" : tilesValues.in6Months.toBeHandled.length}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Courriers à valider

\r\n\t\t\t\t\t\t\t\t\t

{servicesToHandle}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{deceasedUser.hasDocumentSending ? (\r\n\t\t\t\t\t\t\t\t

valider les documents nécessaires pour que nous puissions les envoyer :

\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t

valider les documents nécessaires pour pouvoir les télécharger :

\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

À envoyer sous 7 jours:

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateIn7Days)\r\n\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

À envoyer sous 30 jours:

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateIn30Days && new Date(s.sendingLimitDate) > dateIn7Days)\r\n\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

À envoyer sous 6 mois:

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{servicesToDisplay\r\n\t\t\t\t\t\t\t\t\t.filter((s) => new Date(s.sendingLimitDate) <= dateIn6Months && new Date(s.sendingLimitDate) > dateIn30Days)\r\n\t\t\t\t\t\t\t\t\t.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { CircularProgressbar } from 'react-circular-progressbar';\r\nimport * as R from 'ramda';\r\nimport { Link } from 'react-router-dom';\r\nimport { ServicesEdit } from '../_common/serviceEdit';\r\n\r\nimport { ConnectionTypes, CommonServices, PersonalServices, AuxiliarOptions, OtherService, convertConnectionTypesToServiceType, isSocialNetwork, isInsurance } from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const DashboardAnticipa = ({ userId, user, serviceDatas, connectionTypes, isLoading }) => {\r\n\r\n const [selectedUserConnection, setSelectedUserConnection] = useState(undefined);\r\n const [userDocuments, setUserDocuments] = useState({\r\n items: [doc('démarches', 'communes', 0, 0),\r\n doc('démarches', 'personnalisées', 0, 0)]\r\n }\r\n );\r\n\r\n function doc(firstTitle, secondTitle, num, actions) { return { firstTitle: firstTitle, secondTitle: secondTitle, num: num, actions: actions }; };\r\n\r\n useEffect(() => {\r\n let userCommunServices = Object.values(CommonServices).filter(u => connectionTypes.some(i => i.connectionType === u.connectionType)).map((srv) => {\r\n let progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n return progress === 100 ? 0 : 1;\r\n });\r\n\r\n let userPersonnalServices = (Object.values(PersonalServices).concat(Object.values(AuxiliarOptions)).concat(Object.values(OtherService)).filter(u => connectionTypes.some(i => isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)))\r\n .map((srv) => {\r\n let progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n return progress === 100 ? 0 : 1;\r\n });\r\n\r\n\r\n\r\n let demarchesCommuneDocuments = userDocuments.items.find(d => d.secondTitle === \"communes\");\r\n demarchesCommuneDocuments.num = userCommunServices.length;\r\n demarchesCommuneDocuments.actions = userCommunServices.reduce((a, b) => a + b, 0);\r\n\r\n let demarchesPersonnaliseeDocuments = userDocuments.items.find(d => d.secondTitle === \"personnalisées\");\r\n demarchesPersonnaliseeDocuments.num = userPersonnalServices.length;\r\n demarchesPersonnaliseeDocuments.actions = userPersonnalServices.reduce((a, b) => a + b, 0);\r\n\r\n setUserDocuments({ ...userDocuments, items: userDocuments.items });\r\n }, [serviceDatas]);\r\n\r\n return (\r\n
\r\n

Onboard

\r\n
\r\n
\r\n

Status

\r\n
\r\n {userDocuments.items.map((d, index) => {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

{d.firstTitle}
{d.secondTitle}

\r\n

{d.actions.toString()} actions à faire

\r\n
\r\n
\r\n {/*
\r\n\r\n
\r\n

{d.num}

\r\n
\r\n
\r\n

{d.firstTitle}
{d.secondTitle}

\r\n

{d.actions} actions

\r\n
\r\n
*/}\r\n
\r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n

VEUILLEZ COMPLETER 100% DES SERVICES SELECTIONNÉS POUR ACCEDER À L’ESPACE COURRIERS

\r\n

Vous pouvez les supprimer pour les reprendre plus tard

\r\n
\r\n
\r\n Sélectionner d'autres démarches \r\n
\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(CommonServices).filter(u => connectionTypes.some(i => i.connectionType === u.connectionType))).map((srv, index) => {\r\n let progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n return (\r\n
{\r\n setSelectedUserConnection(srv);\r\n }}>\r\n
\r\n {srv.title}\r\n

{srv.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(PersonalServices).concat(Object.values(AuxiliarOptions)).filter(u => connectionTypes.some(i => isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType))).map((srv, index) => {\r\n let progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n return (\r\n
{\r\n setSelectedUserConnection(srv);\r\n }}>\r\n
\r\n {srv.title}\r\n

{srv.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(OtherService).filter(u => connectionTypes.some(i => i.connectionType === u.connectionType))).map((srv, index) => {\r\n let progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n return (\r\n
{\r\n setSelectedUserConnection(srv);\r\n }}>\r\n
\r\n {srv.title}\r\n

{srv.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n );\r\n};","import React, {useState, useRef, useEffect} from 'react';\r\nimport {RegexFields} from '../../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../../_common/dateWithModal';\r\nimport countryTranslation from 'i18n-iso-countries';\r\nimport french from 'i18n-iso-countries/langs/fr.json';\r\nimport { DepartamentsList } from '../../../../_common/personal/departamentsList';\r\n\r\nexport const CivilForm = ({ personalData, setPersonalData, formReference }) => {\r\n\tcountryTranslation.registerLocale(french);\r\n\tconst initValue = parseInt(personalData.gender) || personalData.gender === \"Male\" ? 2 : 1;\r\n\tconst [personalDataGender, setPersonalDataGender] = useState(initValue);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet value = 1;\r\n\t\tif (personalData.gender === \"Male\") {\r\n\t\t\tvalue = 2;\r\n\t\t}\r\n\t\tif (typeof personalData.gender == \"number\") {\r\n\t\t\tvalue = personalData.gender;\r\n\t\t}\r\n\t\tsetPersonalDataGender(value);\r\n\t}, [personalData.gender]);\r\n\r\n\t//let personalDataGender = ;\r\n\tconst gender = { male: 2, female: 1 };\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

ETAT CIVIL

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, gender: gender.female });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, gender: gender.male });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPersonalData({ ...personalData, birthDate: d })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{personalData.country === \"FR\" || personalData.country === \"GF\" || personalData.country === \"PF\" || personalData.country === \"TF\" || personalData.country === null ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, birthPlace: e.target.value });\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{personalData.country === \"FR\" || personalData.country === \"GF\" || personalData.country === \"PF\" || personalData.country === \"TF\" || personalData.country === null ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, departmentNumber: event.target.value });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{DepartamentsList.map((country, index) => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, country: event.target.value });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t{Object.values(countryTranslation.getNames(\"fr\", { select: \"official\" }))\r\n\t\t\t\t\t\t\t\t.sort()\r\n\t\t\t\t\t\t\t\t.map((countryName) => {\r\n\t\t\t\t\t\t\t\t\tconst countryCode = countryTranslation.getAlpha2Code(countryName, \"fr\");\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, {useState, useRef} from 'react';\r\n\r\nimport celibataireW from '../../../../assets//images/svg/001-W-celibataire.svg';\r\nimport unionsW from '../../../../assets/images/svg/001-W-unions.svg';\r\nimport divorceeW from '../../../../assets/images/svg/001-W-divorcee.svg';\r\nimport veuveW from '../../../../assets/images/svg/001-W-veuve.svg';\r\n\r\n\r\nimport celibataireM from '../../../../assets/images/svg/001-M-celibataire.svg';\r\nimport unionsM from '../../../../assets/images/svg/001-M-unions.svg';\r\nimport divorceeM from '../../../../assets/images/svg/001-M-divorcee.svg';\r\nimport veuveM from '../../../../assets/images/svg/001-M-veuve.svg';\r\n\r\n\r\nimport {RegexFields} from '../../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../../_common/dateWithModal';\r\nimport countryTranslation from 'i18n-iso-countries';\r\nimport french from 'i18n-iso-countries/langs/fr.json';\r\nimport { DepartamentsList } from '../../../../_common/personal/departamentsList';\r\n\r\nexport const FamilySituationForm = ({ personalData, setPersonalData, formReference }) => {\r\n\tconst filledRef = useRef(null);\r\n\tcountryTranslation.registerLocale(french);\r\n\tlet personalDataGender = parseInt(personalData.gender) || personalData.gender === \"Male\" ? 2 : 1;\r\n\tconst gender = [\"\", \"Female\", \"Male\", \"Other\"];\r\n\r\n\tconst familyStatusText = [\r\n\t\t{},\r\n\t\t{ Male: { label: \"Célibataire\", logo: celibataireM }, Female: { label: \"Célibataire\", logo: celibataireW } },\r\n\t\t{ Male: { label: \"Marié\", logo: unionsM }, Female: { label: \"Mariée\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Divorcé\", logo: divorceeM }, Female: { label: \"Divorcée\", logo: divorceeW } },\r\n\t\t{ Male: { label: \"Veuf\", logo: veuveM }, Female: { label: \"Veuve\", logo: veuveW } },\r\n\t\t{ Male: { label: \"Union Libre\", logo: unionsM }, Female: { label: \"Union Libre\", logo: unionsW } },\r\n\t\t{ Male: { label: \"Pacsé\", logo: unionsM }, Female: { label: \"Pacsée\", logo: unionsW } },\r\n\t];\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

SITUATION FAMILIALE *

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 1 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"Célibataire\"\r\n\t\t\t\t\t\t\t

{familyStatusText[1][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 2 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{familyStatusText[2][gender[personalDataGender]].label}\r\n\t\t\t\t\t\t\t

{familyStatusText[2][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 3 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{familyStatusText[3][gender[personalDataGender]].label}\r\n\t\t\t\t\t\t\t

{familyStatusText[3][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 4 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{familyStatusText[4][gender[personalDataGender]].label}\r\n\t\t\t\t\t\t\t

{familyStatusText[4][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 5 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{familyStatusText[5][gender[personalDataGender]].label}\r\n\t\t\t\t\t\t\t

{familyStatusText[5][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tsetPersonalData({ ...personalData, civilStatus: 6 });\r\n\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{familyStatusText[6][gender[personalDataGender]].label}\r\n\t\t\t\t\t\t\t

{familyStatusText[6][gender[personalDataGender]].label}

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\nimport {DateWithModal} from '../../../../../_common/dateWithModal';\r\nimport Child from '../../../../../constants/models/facilita/child';\r\nimport {updateDeathDeclaration} from '../../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalFamilyEnv = ({deathDeclaration, userId, isLoading}) => {\r\n const form = useRef(null);\r\n const dispatch = useDispatch();\r\n \r\n const today = new Date();\r\n\r\n const initialState = {\r\n items: deathDeclaration.childrens, \r\n showNewChildForm: false,\r\n newChildForm : { birthDate: undefined, isHandicaped: false }\r\n };\r\n\r\n const [childrenState, setChildrenState] = useState(initialState);\r\n\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Information deceased

\r\n
ENVIRONNEMENT FAMILIAL ET PRIVÉ
\r\n
\r\n
\r\n
\r\n
\r\n

Modifier les informations qui ne sont pas à jour.

\r\n {/* { childrenState.showNewChildForm === true ? '' : */}\r\n \r\n {/* } */}\r\n
\r\n {\r\n childrenState.showNewChildForm === true ?\r\n
\r\n
\r\n
\r\n \r\n setChildrenState({...childrenState, newChildForm: {...childrenState.newChildForm, birthDate:d}}))} />\r\n
\r\n
\r\n
Handicapé(e)
\r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n :\r\n ''\r\n }\r\n {\r\n childrenState.items.length > 0 ?\r\n
\r\n {childrenState.items.map((child, index) => {\r\n return (\r\n
1 ? \" mt-2\" : \"\")} key={index}>\r\n \r\n

Âge: {differenceInYears(today, new Date(child.birthDate))}

\r\n

Handicapé(e): {child.isHandicaped ? 'Oui' : 'Non'}

\r\n
\r\n \r\n
\r\n )\r\n })}\r\n
\r\n : ''\r\n }\r\n
\r\n
\r\n \r\n {\r\n childrenState.showNewChildForm === true ?\r\n \r\n :\r\n isLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n \r\n\r\n :\r\n \r\n\t\t\t\t\t\t}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, {useRef} from 'react';\r\nimport * as R from 'ramda';\r\nimport children from './../../../../assets/images/svg/002-children.svg';\r\nimport noChildren from './../../../../assets/images/svg/002-nochildren.svg';\r\nimport homechildren from './../../../../assets/images/svg/002-homechildren.svg';\r\n\r\nimport { ModalFamilyEnv } from './../../declarer/step3/modals/modalFamilyEnv';\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\n\r\nexport const ChildrenForm = ({ personalData, setPersonalData, isLoading, isFacilita, formReference }) => {\r\n\tconst today = new Date();\r\n\tif (R.isNil(isFacilita)) {\r\n\t\tisFacilita = false;\r\n\t}\r\n\tlet minorChildren = R.isNil(personalData.childrens) ? [] : personalData.childrens.filter((c) => differenceInYears(today, new Date(c.birthDate)) < 18);\r\n\tlet youngAdults = R.isNil(personalData.childrens) ? [] : personalData.childrens.filter((c) => differenceInYears(today, new Date(c.birthDate)) > 18 && differenceInYears(today, new Date(c.birthDate)) < 21);\r\n\tlet handicapedChildren = R.isNil(personalData.childrens) ? [] : personalData.childrens.filter((c) => c.isHandicaped === true);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

enfants *

\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, hasChildren: true });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"oui\"\r\n\t\t\t\t\t\t\t\t

{isFacilita ? (personalData.gender === 2 || personalData.gender === \"Male\" ? \"il avait des enfants\" : \"elle avait des enfants\") : \"J'ai des enfants\"}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, hasChildren: false });\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"none\"\r\n\t\t\t\t\t\t\t\t

{isFacilita ? (personalData.gender === 2 || personalData.gender === \"Male\" ? \"il n'avait pas d'enfants\" : \"elle n'avait pas d'enfants\") : \"Je n'ai pas d'enfants\"}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{personalData.hasChildren === true && !isFacilita ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Environnement familial et privé

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

enfants

\r\n\t\t\t\t\t\t\t\t

{personalData.childrens.length}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"-18\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

< 18 ans

\r\n\t\t\t\t\t\t\t\t

{minorChildren.length} mineur(s)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"-18\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

18 à 21 ans

\r\n\t\t\t\t\t\t\t\t

{youngAdults.length} majeur(s)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"+21\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

> 21 ans

\r\n\t\t\t\t\t\t\t\t

{personalData.childrens.length - minorChildren.length - youngAdults.length} majeur(s)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"handicapée\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

handicapée(s)

\r\n\t\t\t\t\t\t\t\t

{handicapedChildren.length} personne(s)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t) : (\r\n\t\t\t\t\"\"\r\n\t\t\t)}\r\n\t\t\r\n\t);\r\n};","import React, {useRef} from 'react';\r\nimport appartement from '../../../../assets/images/svg/090-flats.svg';\r\nimport maison from '../../../../assets/images/svg/069-home.svg';\r\nimport palace from '../../../../assets/images/svg/093-palace.svg';\r\nimport hotel from '../../../../assets/images/svg/087-hotel.svg';\r\nimport peniche from '../../../../assets/images/svg/091-house-2.svg';\r\nimport divers from '../../../../assets/images/svg/092-camping-tent.svg';\r\n\r\nimport countryTranslation from 'i18n-iso-countries';\r\nimport french from 'i18n-iso-countries/langs/fr.json';\r\n\r\nimport {RegexFields} from '../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../_common/postalCityInput\";\r\n\r\n\r\nexport const ResidenceForm = ({personalData, setPersonalData}) => {\r\n const assetForm = useRef();\r\n countryTranslation.registerLocale(french);\r\n\tconst childrenForm = useRef(null);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

COORDONNÉES *

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
TYPE DE BIEN
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressContract: 1 } })} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressContract: 2 } })} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressContract: 3 } })} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
type de bien immobilier
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 1 } })}>\r\n\t\t\t\t\t\t\t\t\"appartement\"\r\n\t\t\t\t\t\t\t\t

appartement

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 2 } })}>\r\n\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t

Maison

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 3 } })}>\r\n\t\t\t\t\t\t\t\t\"palace\"\r\n\t\t\t\t\t\t\t\t

château

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 4 } })}>\r\n\t\t\t\t\t\t\t\t\"hotel\"\r\n\t\t\t\t\t\t\t\t

Hôtel

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 5 } })}>\r\n\t\t\t\t\t\t\t\t\"peniche\"\r\n\t\t\t\t\t\t\t\t

Péniche

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressType: 6 } })}>\r\n\t\t\t\t\t\t\t\t\"divers\"\r\n\t\t\t\t\t\t\t\t

divers

\r\n\t\t\t\t\t\t\t\t

Résident EHPAD, maison de retraite...

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, addressLine1: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t setPersonalData({ ...personalData, userResidenceAddress: { ...personalData.address, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={personalData.userResidenceAddress.country}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm col-xl\", postalCode: \"form-group col-12 col-sm col-xl\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{personalData.userResidenceAddress.country === null || personalData.userResidenceAddress.country === \"FR\" || personalData.userResidenceAddress.country === \"GF\" || personalData.userResidenceAddress.country === \"PF\" || personalData.userResidenceAddress.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, city: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t{Object.values(countryTranslation.getNames(\"fr\", { select: \"official\" }))\r\n\t\t\t\t\t\t\t\t\t.sort()\r\n\t\t\t\t\t\t\t\t\t.map((countryName) => {\r\n\t\t\t\t\t\t\t\t\t\tconst countryCode = countryTranslation.getAlpha2Code(countryName, \"fr\");\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, userResidenceAddress: { ...personalData.userResidenceAddress, phoneNumber: event.target.value } });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.frenchPhoneNumber}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{/*
\r\n \r\n {\r\n setAsset({ ...asset, mobile: event.target.value })\r\n }} pattern={RegexFields.frenchPhoneNumber} />\r\n
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}","import React, {useRef} from 'react';\r\nimport retraite from '../../../../assets/images/svg/111-rocking-chair.png';\r\nimport activite from '../../../../assets/images/svg/035-id-card.svg';\r\nimport pole from '../../../../assets/images/svg/066-job-interview.svg';\r\nimport autre from '../../../../assets/images/svg/034-clipboard.svg';\r\nimport maison from '../../../../assets/images/svg/069-home.svg';\r\nimport {ProfessionOptions} from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const ProfessionalSituationForm = ({ personalData, setPersonalData, formReference }) => {\r\n\tconst professionForm = useRef(null);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Situation Professionnelle *

\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*
JE SUIS
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!personalData.professionalSituation.includes(ProfessionOptions.active) && !personalData.professionalSituation.includes(ProfessionOptions.unemployed)) {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: [...personalData.professionalSituation.slice(), ProfessionOptions.active] });\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: personalData.professionalSituation.filter((p) => p !== ProfessionOptions.active) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"activite\"\r\n\t\t\t\t\t\t\t\t

EN ACTIVITÉ(E)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!personalData.professionalSituation.includes(ProfessionOptions.retired) && !personalData.professionalSituation.includes(ProfessionOptions.unemployed)) {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: [...personalData.professionalSituation.slice(), ProfessionOptions.retired] });\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: personalData.professionalSituation.filter((p) => p !== ProfessionOptions.retired) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"retraite\"\r\n\t\t\t\t\t\t\t\t

RETRAITÉ(E)

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!personalData.professionalSituation.includes(ProfessionOptions.unemployed) && !personalData.professionalSituation.includes(ProfessionOptions.active) && !personalData.professionalSituation.includes(ProfessionOptions.retired)) {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: [...personalData.professionalSituation.slice(), ProfessionOptions.unemployed] });\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: personalData.professionalSituation.filter((p) => p !== ProfessionOptions.unemployed) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"pole\"\r\n\t\t\t\t\t\t\t\t

À FRANCE TRAVAIL

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!personalData.professionalSituation.includes(ProfessionOptions.other)) {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: [...personalData.professionalSituation.slice(), ProfessionOptions.other] });\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: personalData.professionalSituation.filter((p) => p !== ProfessionOptions.other) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t

AUTRE ACTIVITÉ

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (!personalData.professionalSituation.includes(ProfessionOptions.none)) {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: [ProfessionOptions.none] });\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, professionalSituation: personalData.professionalSituation.filter((p) => p !== ProfessionOptions.none) });\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\"autre\"\r\n\t\t\t\t\t\t\t\t

SANS ACTIVITÉ

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, {useState, useRef, useEffect} from 'react';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport {updateDeathDeclaration} from '../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nimport {CivilForm} from './civilForm';\r\nimport {FamilySituationForm} from './familySituationForm';\r\nimport {ChildrenForm} from './childrenForm';\r\nimport {ResidenceForm} from './residenceForm';\r\nimport {ProfessionalSituationForm} from './professionalSituationForm';\r\nimport {ToasterConfigurations} from '../../../../constants/toasterText/configurations';\r\nimport { toast } from 'react-toastify';\r\n\r\n\r\nexport const DossierProfile = ({userInfo, userId, isLoading}) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst [personalData, setPersonalData] = useState({...userInfo});\r\n\tuseEffect(() => {\r\n\t\tsetPersonalData({...userInfo})\r\n\t}, [userInfo])\r\n\r\n\tif(R.isNil(personalData) || R.isEmpty(personalData)){\r\n\t\treturn '';\r\n\t}\r\n\r\n\t\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t
* champs obligatoires
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, {useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport liendirect from '../../../../assets/images/svg/049-family.svg';\r\nimport autres from '../../../../assets/images/svg/051-parents.svg';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport {InviteUserRepresentative} from '../../../../actions/facilita-api';\r\n\r\nexport const ColapsedView = ({referent, toggleEditMode}) => {\r\n const [isSendingInvitation, setIsSendingInvitation] = useState(false);\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const gender = { male: 2, female: 1 };\r\n const representativeType = {direct: 'Family', other:'Other'};\r\n const representativeTypeFamily = {Child: 'Fils/Fille', Parent:'Parent', Sibling:'Frère/Soeur', Spouse:'Conjoint'};\r\n\r\n const parsedPhoneNumber = !R.isNil(referent.phoneNumber) && referent.phoneNumber !== \"\" ? parsePhoneNumber(referent.phoneNumber).formatInternational() : undefined;\r\n return (\r\n
\r\n
\r\n
\r\n

{referent.isMainRepresentative === true ? 'RÉFÉRENT PRINCIPAL' : 'AUTRE RÉFÉRENT'}

\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n

{referent.gender === gender.male ? 'Monsieur' : 'Madame'}

\r\n

{referent.lastName} {referent.firstName}

\r\n
\r\n {referent.representativeType\r\n

{referent.representativeType === representativeType.other ? 'Autres' : representativeTypeFamily[referent.representativeType]}

\r\n
\r\n
\r\n \r\n

{new Date(referent.birthDate).toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric' })}

\r\n
\r\n
\r\n \r\n

{referent.addresses[0].addressLine1}
{referent.addresses[0].postalCode} {referent.addresses[0].city}, {countries.getName(referent.addresses[0].country, \"fr\", {select: \"official\"})}

\r\n
\r\n {\r\n R.isNil(referent.email) || referent.email === \"\" ? \r\n ''\r\n :\r\n
\r\n \r\n

{referent.email}

\r\n
\r\n }\r\n {\r\n R.isNil(parsedPhoneNumber) ? \r\n ''\r\n :\r\n
\r\n \r\n

{parsedPhoneNumber}

\r\n
\r\n }\r\n \r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\n\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport $ from 'jquery';\r\n\r\nexport const DeleteModal = ({ referent, deleteReferent, isLoading }) => {\r\n\r\n const hideModal = () => { $('.modal').modal('hide'); };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Supprimer référent
\r\n
\r\n
Supprimer le référent
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Supprimer le référent?
\r\n
Ce référent est sur le point d'être supprimé. Veuillez confirmer cette action.
\r\n
AVERTISSEMENT: cette action est irréversible.
\r\n
\r\n
\r\n \r\n {\r\n isLoading.includes(loadings.DELETING_REFERENT) ?\r\n \r\n :\r\n \r\n\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","\r\n\r\nimport React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport { registerLocale } from \"react-datepicker\";\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport fr from \"date-fns/locale/fr\";\r\nimport liendirect from './../../../../assets/images/svg/049-family.svg';\r\nimport autres from './../../../../assets/images/svg/051-parents.svg';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {RegexFields} from '../../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../../_common/dateWithModal';\r\nimport { PostalCityInput } from \"../../../../_common/postalCityInput\";\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport {DeleteModal} from './deleteModal';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport {AsYouType} from 'libphonenumber-js/max';\r\n\r\nimport {createUserRepresentativeForUserId, updateUserRepresentativeForUserId, deleteUserRepresentativeForUserId} from '../../../../actions/facilita-api';\r\n \r\n\r\nexport const EditView = ({ referent, referentId, toggleEditMode, removeFromList, userId, isLoading }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n registerLocale(\"fr\", fr);\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const isNew = false;\r\n\r\n //#region form\r\n const referentForm = useRef(null);\r\n const gender = { male: 2, female: 1 };\r\n const representativeType = {child: 1, parent:2, sibling:3, spouse:4, other:5};\r\n\r\n\r\n let initState = {...referent, isLienFamilialDirect: referent.representativeType < 5};\r\n if(R.isNil(referent.phoneNumber) || referent.phoneNumber === \"\"){\r\n initState.phoneCountry = \"FR\";\r\n initState.countryCode = \"33\";\r\n }else{\r\n let phone = parsePhoneNumber(referent.phoneNumber);\r\n initState.phoneNumber = phone.nationalNumber;\r\n initState.countryCode = phone.countryCallingCode;\r\n initState.phoneCountry = phone.country;\r\n }\r\n initState.asYouType = new AsYouType(initState.phoneCountry);\r\n \r\n const [referentData, setReferentData] = useState(initState);\r\n\r\n\r\n useEffect(() => {\r\n //fillCredentials();\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n //#endregion\r\n return (\r\n\t\t\t
\r\n\t\t\t\t{isNew === true ? (\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t) : (\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t{referentData.isMainRepresentative === true ? \"\" : \"AUTRE\"} RÉFÉRENT {referentData.isMainRepresentative === true ? \"PRINCIPAL *\" : \"\"}\r\n\t\t\t\t\t

\r\n\t\t\t\t)}\r\n\t\t\t\t{referentData.isMainRepresentative === true ? (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Votre Référent Principal est la personne qui aura accès et qui validera l’envoi des courriers obligatoires le moment venu.

\r\n\t\t\t\t\t\t

Le Référent sera averti par mail et par SMS annuellement de votre démarche mais n’aura pas accès aux informations de votre dossier (comptes bancaires, contrats d’assurances...).

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t) : (\r\n\t\t\t\t\t\"\"\r\n\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, email: event.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, countryCode: event.target.value, asYouType: new AsYouType(pc), phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t{countryTelData.allCountries.map((country, index) => {\r\n\t\t\t\t\t\t\t\t\tlet dialCode = country.dialCode;\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setReferentData({ ...referentData, phoneNumber: e.target.value })}\r\n\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t{/* setReferentData({ ...referentData, phoneNumber: \"+\"+referentData.countryCode + value})} /> */}\r\n\t\t\t\t\t\t\t{/* {\r\n e.preventDefault();\r\n e.target.value = e.target.value.replace(/ /g, ''); \r\n var number = referentData.countryCode === \"+33\" ? e.target.value.replace(/\\B(?=(\\d{2})+(?!\\d))/g, \" \") : e.target.value.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \");\r\n setReferentData({ ...referentData, phoneNumber: number.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \") });\r\n }} /> */}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, gender: gender.female });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, gender: gender.male });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setReferentData({ ...referentData, birthDate: d })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], addressLine1: event.target.value }] });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], postalCode: updatedAddress.postalCode, city: updatedAddress.city }] })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={referentData.addresses[0].country}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm col-xl\", postalCode: \"form-group col-12 col-sm col-xl\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{referentData.country === null || referentData.country === \"FR\" || referentData.country === \"GF\" || referentData.country === \"PF\" || referentData.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], postalCode: event.target.value }] });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], postalCode: event.target.value }] });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], city: event.target.value }] });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, addresses: [{ ...referentData.addresses[0], country: event.target.value }] });\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, isLienFamilialDirect: true, representativeType: undefined });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"lien\r\n\t\t\t\t\t\t\t\t\t

lien familial direct

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.other, isLienFamilialDirect: false });\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\"autres\"\r\n\t\t\t\t\t\t\t\t\t

autres

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{referentData.isLienFamilialDirect === true ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.child });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.parent });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.sibling });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferentData({ ...referentData, representativeType: representativeType.spouse });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tif (referentData.id === \"new\") {\r\n\t\t\t\t\t\t\t\t\tremoveFromList(referent.id);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ttoggleEditMode(referentData.id);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tAnnuler\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{referentData.id === \"new\" ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_REFERENT) || isLoading.includes(loadings.CREATING_REFERENT) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\tlet internationalPhoneNumberReferent = null;\r\n\t\t\t\t\t\t\t\t\tif (referentData.phoneNumber !== \"\") {\r\n\t\t\t\t\t\t\t\t\t\tinternationalPhoneNumberReferent = parsePhoneNumber(referentData.phoneNumber, referentData.phoneCountry);\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(internationalPhoneNumberReferent) || !internationalPhoneNumberReferent.isValid()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"phone\" + referentId).setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (referentForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (referentData.id === \"new\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(createUserRepresentativeForUserId(userId, { ...referentData, asYouType: null, userId: userId, phoneNumber: R.isNil(internationalPhoneNumberReferent) ? \"\" : internationalPhoneNumberReferent.number }));\r\n\t\t\t\t\t\t\t\t\t\t\t//removeFromList(referent.id)\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(updateUserRepresentativeForUserId(userId, { ...referentData, asYouType: null, userId: userId, phoneNumber: R.isNil(internationalPhoneNumberReferent) ? \"\" : internationalPhoneNumberReferent.number })).then(() => toggleEditMode(referentData.id));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\treferentForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tsetWasValidated(true);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t dispatch(deleteUserRepresentativeForUserId(userId, referentData.id))} isLoading={isLoading} />\r\n\t\t\t\r\n\t\t);\r\n}","import React, {useState, useEffect} from 'react';\r\nimport * as R from 'ramda';\r\nimport {ColapsedView} from './colapsedView';\r\nimport {EditView} from './editView';\r\nimport Referent from '../../../../constants/models/referent';\r\nimport Address from '../../../../constants/models/address';\r\n\r\nexport const DossierReferents = ({referents, userId, isLoading}) => {\r\n\r\n\tconst [referentList, setReferentList] = useState(referents.map((r) => {return {...r, isEditing: false}}));\r\n\tfunction toggleEditMode(referentId){\r\n\t\tsetReferentList(referentList.map((r) => {\r\n\t\t\tif(r.id !== referentId){\r\n\t\t\t\treturn r;\r\n\t\t\t}else{\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...r,\r\n\t\t\t\t\tisEditing: !r.isEditing\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}))\r\n\t}\r\n\r\n\tfunction removeFromList(referentId){\r\n\t\tsetReferentList(referentList.filter((r) => r.id !== referentId));\r\n\t}\r\n\t\r\n\tuseEffect(() => {\r\n\t\tsetReferentList(referents.map((r) => {return {...r, isEditing: false}}));\r\n\t}, [referents])\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Les référents

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treferentList.map((referent) => {\r\n\t\t\t\t\t\t\t\tif(R.isNil(referent))\r\n\t\t\t\t\t\t\t\t\treturn ''\r\n\r\n\t\t\t\t\t\t\t\treturn referent.isEditing === true ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n \r\n \r\n

IL EST FORTEMENT CONSEILLÉ DE RENSEIGNER AU MOINS 2 RÉFÉRENTS AFIN D’OPTIMISER VOTRE SERVICE.

\r\n {/*

Chaque référent sera averti par mail et message annuellement de votre démarche.
Au même titre, il n’aura pas accès aux informations de votre dossier (comptes bancaires, contrats d’assurance...).

*/}\r\n \r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React,{useState} from 'react';\r\nimport {addUserConnection} from '../../../../actions/facilita-api';\r\nimport { CommonServices, convertConnectionTypesToServiceType } from '../../../../constants/utils/connectionTypes';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport { ServicesEdit } from '../_common/serviceEdit';\r\n// import {} from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const DossierComunes = ({connectionTypes, userId, user, serviceDatas, isLoading, generateLetters}) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst [selectedUserConnection, setSelectedUserConnection] = useState(undefined);\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tR.sortWith([R.ascend(R.prop('title'))])(Object.values(CommonServices)).map((srv, index) => {\r\n\t\t\t\t\t\t\tlet progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t
{\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif(!connectionTypes.some(c => c.connectionType === srv.connectionType)){\r\n\t\t\t\t\t\t\t\t\t\tdispatch(addUserConnection(userId, srv));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tsetSelectedUserConnection(srv);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t
s.connectionType === srv.connectionType) !== -1 ? ' active' : '')}>\r\n\t\t\t\t\t\t\t\t\t\t{srv.title}\r\n\t\t\t\t\t\t\t\t\t\t

{srv.title}

\r\n\t\t\t\t\t\t\t\t\t\t

À compléter

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
{progress}%
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t)\r\n}","import React from 'react';\r\nimport { ConnectionTypes, AuxiliarOptions } from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const ServiceCard = ({ isSelected, setSelectedUserConnection, service, progress, addOrRemove, isSocialNetwork, isInsurance }) => {\r\n\r\n function isInsurance(str) {\r\n\t\tif (str === ConnectionTypes.voitureAssurance || str === ConnectionTypes.bateau || str === ConnectionTypes.moto || str === ConnectionTypes.scooter) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n }\r\n \r\n return (\r\n
\r\n
{\r\n e.preventDefault();\r\n\r\n setSelectedUserConnection(isSocialNetwork ? AuxiliarOptions.socialNetworks : isInsurance(service.connectionType) ? AuxiliarOptions.insurance : service);\r\n addOrRemove(service);\r\n }}>\r\n {service.title}\r\n

{service.title}

\r\n

À compléter

\r\n
\r\n
\r\n
{progress}%
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, {useState} from 'react';\r\nimport * as R from 'ramda';\r\nimport {addUserConnection} from '../../../../actions/facilita-api';\r\nimport {ServiceCard} from './serviceCard';\r\nimport { PersonalServices, OtherService, ConnectionTypes,SocialNetworksOptions, AssuranceOptions, convertConnectionTypesToServiceType } from '../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport { ServicesEdit } from '../_common/serviceEdit';\r\n\r\nexport const DossierPersonal = ({connectionTypes, userId, user, serviceDatas, isLoading, generateLetters}) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst [selectedUserConnection, setSelectedUserConnection] = useState(undefined);\r\n\r\n\tfunction addConnection(userId, service){\r\n\t\tif(!connectionTypes.some(c => c.connectionType === service.connectionType))\r\n\t\t\tdispatch(addUserConnection(userId, service));\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Vie quotidienne à sélectionner :

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tR.sortWith([R.ascend(R.prop('title'))])(Object.values(PersonalServices)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\t\t\t\t\treturn c.connectionType === srv.connectionType)} service={srv} addOrRemove={() => addConnection(userId, srv)} setSelectedUserConnection={setSelectedUserConnection} />\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tObject.values(OtherService).filter(o => o.connectionType !== ConnectionTypes.activity && o.connectionType !== ConnectionTypes.pension && o.connectionType !== ConnectionTypes.otherActivity && o.connectionType !== ConnectionTypes.poleEmploi && o.connectionType !== ConnectionTypes.locataire && o.connectionType !== ConnectionTypes.etudiant).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\t\t\t\t\treturn c.connectionType === srv.connectionType)} service={srv} addOrRemove={() => addConnection(userId, srv)} setSelectedUserConnection={setSelectedUserConnection} />\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

SITUATION PROFESSIONNELLE ( à sélectionner)

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tObject.values(OtherService).filter(o => o.connectionType !== ConnectionTypes.other && o.connectionType !== ConnectionTypes.locataire).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\t\t\t\t\treturn c.connectionType === srv.connectionType)} service={srv} addOrRemove={() => addConnection(userId, srv)} setSelectedUserConnection={setSelectedUserConnection} />\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

RÉSEAUX SOCIAUX ( à sélectionner)

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tR.sortWith([R.ascend(R.prop('title'))])(Object.values(SocialNetworksOptions)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet progress = 0;\r\n\t\t\t\t\t\t\t\tlet isConnectionTypeSelected = connectionTypes.some(c => c.connectionType === srv.connectionType);\r\n\t\t\t\t\t\t\t\tif (serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(ConnectionTypes.socialNetworks)) && isConnectionTypeSelected) {\r\n\t\t\t\t\t\t\t\t\tprogress = 100;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn addConnection(userId, srv)} setSelectedUserConnection={setSelectedUserConnection} />\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

ASSURANCE ( à selectionner)

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tR.sortWith([R.ascend(R.prop('title'))])(Object.values(AssuranceOptions)).map((srv, index) => {\r\n\t\t\t\t\t\t\t\tlet connectionType = srv.connectionType;\r\n\t\t\t\t\t\t\t\tif (connectionType === ConnectionTypes.voitureAssurance || connectionType === ConnectionTypes.bateau || connectionType === ConnectionTypes.moto || connectionType === ConnectionTypes.scooter) {\r\n\t\t\t\t\t\t\t\t\tconnectionType = ConnectionTypes.insurance;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tlet progress = 0;\r\n\t\t\t\t\t\t\t\tlet isConnectionTypeSelected = connectionTypes.some(c => c.connectionType === srv.connectionType);\r\n\t\t\t\t\t\t\t\tif (serviceDatas.some(s => s.serviceType === convertConnectionTypesToServiceType(connectionType)) && isConnectionTypeSelected) {\r\n\t\t\t\t\t\t\t\t\tprogress = 100;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn c.connectionType === srv.connectionType)} isInsurance={true} service={srv} addOrRemove={() => addConnection(userId, srv)} setSelectedUserConnection={setSelectedUserConnection} />\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t)\r\n}","import React, {useState, useEffect, useMemo} from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { toast } from 'react-toastify';\r\nimport Dropzone from 'react-dropzone';\r\n\r\nimport DocumentFile from '../../../../constants/models/documentFile';\r\nimport {ToasterConfigurations} from '../../../../constants/toasterText/configurations';\r\n\r\nimport { uploadDocument, downloadDocument, deleteDocument, getDocuments } from '../../../../actions/facilita-api';\r\n\r\nimport { FileTypes, FiletypeToDisplayName } from '../../../../constants/utils/fileTypes';\r\nimport { UploadArea } from './../../../_common/upload-area';\r\n\r\nimport { ModalEditFolder } from './../../../_common/modalEditFolder';\r\nimport { ModalAddFile } from './../../../_common/modalAddFile';\r\nimport { ModalDelete } from './../../../_common/modalDelete';\r\nimport { ModalFileDescription } from './../../../_common/modalEditFileDescription'\r\n\r\nimport { ModalConfirmation } from './../../../_common/confirmation';\r\nimport { ModalPartager } from './../../../_common/partager';\r\nimport servicesUploading from './../../../../assets/images/placeholder/ServicesUploading-ilustration.png';\r\n\r\nexport const DossierBiblioteque = ({ files, userId, userRepresentativeId, isLoading }) => {\r\n const dispatch = useDispatch();\r\n const [selectedFileNames, setSelectedFileNames] = useState([]);\r\n\r\n\tconst [currentPath, setCurrentPath] = useState(\"\");\r\n\tconst [pathLastElement, setPathLastElement] = useState([]);\r\n\tconst [path, setPath] = useState([]);\r\n\tconst [personalFiles, setPersonalFiles] = useState([]);\r\n\tconst [selectedElementToDelete, setSelectedElementToDelete] = useState(undefined);\r\n const [selectedElementToEdit, setSelectedElementToEdit] = useState(undefined);\r\n const [modalForDefaultData, setModalForDefaultData] = useState(false);\r\n\r\n const [draggedFiles, setDraggedFiles] = useState([]);\r\n\r\n\r\n function browseFolder(folderPath){\r\n\t\tdispatch(getDocuments(userId, false, folderPath)).then((dbFiles) => {\r\n\t\t\tconst persoFiles = dbFiles.map(x => new DocumentFile(x));\r\n\t\t\tsetPersonalFiles([...persoFiles.filter(x => x.fileType === FileTypes.Other || x.fileType === FileTypes.Folder)]);\r\n\r\n\t\t\tlet newPath = [];\r\n\t\t\tif(!R.isNil(folderPath)){\r\n\t\t\t\tconst folderPathParts = folderPath.split('/');\r\n\t\t\t\tfolderPathParts.map((folderPathPart, index) => {\r\n\t\t\t\t\tnewPath.push({\r\n\t\t\t\t\t\tfolderName: folderPathPart,\r\n\t\t\t\t\t\tfullPath: (newPath.length > 0 ? newPath[index - 1].fullPath + \"/\" : \"\") + folderPathPart\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tsetPath(newPath)\r\n\t\t});\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n browseFolder();\r\n }, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst lastElement = path[path.length - 1];\r\n setPathLastElement(lastElement);\r\n\t\tsetCurrentPath(R.isNil(lastElement) ? undefined : lastElement.fullPath)\r\n }, [path]);\r\n\r\n const retraiteBaseLink = \"https://www.lassuranceretraite.fr/portail-info/files/live/sites/pub/files/PDF/demande%20de%20retraite%20de%20r%c3%a9version.pdf\";\r\n const retraiteComplementaireLink = \"https://www.agirc-arrco.fr/wp-content/uploads/2021/10/Formulaire_de_reversion_AA.pdf\";\r\n const mesDroitsSociauxLink = \"https://www.mesdroitssociaux.gouv.fr/dd1pnds-ria/#destination/simu-foyer\";\r\n\r\n files = files.filter(f => f.fileType !== FileTypes.ProfilePicture && f.fileType !== FileTypes.Signature);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Vous pouvez dès à présent avancer les procédures requises en déposant les documents suivants :

\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n {/* \r\n */}\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n {/* */}\r\n \r\n
\r\n {/*
\r\n \r\n \r\n \r\n
*/}\r\n
\r\n
\r\n
\r\n

Documents Utiles

\r\n
\r\n x.fileType === FileTypes.UserIdCard)}\r\n uploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserIdCard, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n // deleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n deleteFile={(document) => {\r\n setSelectedElementToDelete(document);\r\n $('#deleteDoc').modal(\"show\");\r\n }}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n editDescription={(document) => {\r\n setSelectedElementToEdit(document);\r\n $('#ModalFileDescription').modal(\"show\");\r\n }}\r\n />\r\n x.fileType === FileTypes.UserFamilyRecordBook)}\r\n uploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserFamilyRecordBook, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n deleteFile={(document) => {\r\n setSelectedElementToDelete(document);\r\n $('#deleteDoc').modal(\"show\");\r\n }}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n editDescription={(document) => {\r\n setSelectedElementToEdit(document);\r\n $('#ModalFileDescription').modal(\"show\");\r\n }}\r\n />\r\n x.fileType === FileTypes.UserDonation)}\r\n uploadFile={(document, description) => dispatch(uploadDocument(userId, FileTypes.UserDonation, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n deleteFile={(document) => {\r\n setSelectedElementToDelete(document);\r\n $('#deleteDoc').modal(\"show\");\r\n }}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n editDescription={(document) => {\r\n setSelectedElementToEdit(document);\r\n $('#ModalFileDescription').modal(\"show\");\r\n }}\r\n />\r\n {/* dispatch(uploadDocument(userId, FileTypes.Other, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n deleteFile={(document) => dispatch(deleteDocument(userId, document.fileName))}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n /> */}\r\n {\r\n files.filter(file =>\r\n file.fileType !== FileTypes.UserIdCard &&\r\n file.fileType !== FileTypes.UserFamilyRecordBook &&\r\n file.fileType !== FileTypes.UserDonation &&\r\n file.fileType !== FileTypes.Other &&\r\n file.fileType !== FileTypes.Folder).map((file, index) =>\r\n {\r\n return dispatch(uploadDocument(userId, file.fileType, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName))}\r\n deleteFile={(document) => {\r\n setSelectedElementToDelete(document);\r\n $('#deleteDoc').modal(\"show\");\r\n }}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n key={file.fileName + index}\r\n editDescription={(document) => {\r\n setSelectedElementToEdit(document);\r\n $('#ModalFileDescription').modal(\"show\");\r\n }}\r\n />\r\n })\r\n }\r\n
setModalForDefaultData(true)}>\r\n
\r\n
\r\n \r\n
\r\n
\r\n

Télécharger

\r\n

Charger un document utile

\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n

\r\n Dossiers personnalisés\r\n

\r\n
\r\n

{browseFolder() }}>\r\n \r\n Racine\r\n

\r\n {\r\n path.map((part) =>{\r\n return (\r\n <>\r\n /\r\n

{browseFolder(part.fullPath) }}>\r\n {/* */}\r\n {part.folderName}\r\n

\r\n \r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n if(!R.isEmpty(acceptedFiles)){\r\n setDraggedFiles(acceptedFiles.map(f => {\r\n f.description = null;\r\n f.fileType = FileTypes.Other\r\n return f;\r\n }));\r\n $(\"#fichier\").modal(\"show\");\r\n }\r\n }}\r\n onDropRejected={(filesErrors) => {\r\n filesErrors.map(fileErrors => fileErrors.errors.map(error => {\r\n if(error.code === 'file-invalid-type'){\r\n toast.error(`Le fichier '${fileErrors.file.name}' n'est pas un fichier PDF.`, ToasterConfigurations)\r\n }\r\n }))\r\n }}\r\n\r\n noClick={true}\r\n accept={\"application/pdf\"}>\r\n {({ isDragActive, getRootProps, getInputProps }) => (\r\n (personalFiles.length === 0) ?\r\n
\r\n \r\n
\r\n
Biblioteque - Empty
\r\n \"features\r\n

Déposez vos fichiers ici.

\r\n

ou utilisez le bouton \"télécharger\"

\r\n \r\n
\r\n
\r\n\r\n\r\n :\r\n
\r\n \r\n
\r\n {personalFiles.filter(x =>\r\n x.fileType === FileTypes.Other ||\r\n x.fileType === FileTypes.Folder).map((file) => {\r\n if(file.fileType === FileTypes.Folder){\r\n const folderFullName = (R.isNil(pathLastElement) ? \"\" : pathLastElement.fullPath + \"/\") + file.fileName;\r\n return (
\r\n
\r\n
\r\n

Dossier

\r\n
\r\n {\r\n if (selectedFileNames.indexOf(folderFullName + \"/*\") === -1) {\r\n setSelectedFileNames([...selectedFileNames, folderFullName + \"/*\"]);\r\n } else {\r\n setSelectedFileNames(selectedFileNames.filter(s => s !== folderFullName + \"/*\"));\r\n }\r\n }}/>\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
{\r\n e.preventDefault();\r\n browseFolder(folderFullName)\r\n }}>\r\n

{file.fileName}

\r\n {/*

10 documents

*/}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
)\r\n\r\n }else{\r\n file.path = currentPath;\r\n return dispatch(uploadDocument(userId, file.fileType, document, description))}\r\n downloadFile={(document) => dispatch(downloadDocument(userId, document.fileName, currentPath))}\r\n deleteFile={(document) => {\r\n setSelectedElementToDelete(document);\r\n $('#deleteDoc').modal(\"show\");\r\n }}\r\n selectable={true}\r\n selectedFiles={selectedFileNames}\r\n setSelectFiles={setSelectedFileNames}\r\n editDescription={(document) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedElementToEdit(document);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('#ModalFileDescription').modal(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n />\r\n }\r\n\r\n })\r\n }\r\n
\r\n
\r\n )}\r\n \r\n\r\n
\r\n
\r\n \r\n\r\n browseFolder(currentPath)} isDefaultFiles={modalForDefaultData} isFacilita={true} injectedFiles={draggedFiles}/>\r\n\t\t\t browseFolder(currentPath)} />\r\n\t\t\t browseFolder(currentPath)} isFacilita={true} />\r\n browseFolder(currentPath)} document={selectedElementToEdit} />\r\n
\r\n );\r\n};","import React, {useEffect, useState} from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport {useParams} from \"react-router-dom\";\r\nimport * as R from 'ramda';\r\n\r\nimport { Help } from './../_common/help';\r\nimport { Path } from './../_common/path';\r\n\r\nimport { DossierLoading } from './loading';\r\nimport { DossierDashboard } from './dashboard';\r\nimport { DashboardAnticipa } from './dashboard-anticipa';\r\nimport { DossierProfile } from './profile';\r\nimport { DossierReferents } from './referents';\r\nimport { DossierComunes } from './comunes';\r\nimport { DossierPersonal } from './personal';\r\nimport { DossierBiblioteque } from './biblioteque';\r\n\r\nimport { useSelector, useDispatch } from 'react-redux';\r\nimport { getDeathDeclaration, getDocuments, getLettersForUserId, getUserConnections, getUserServiceData, getUserRepresentativesForUserId, getUserInfoById } from './../../../actions/facilita-api';\r\n\r\n\r\nexport const Dossier = () => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst router = useSelector(state => state.router);\r\n\tconst facilitaState = useSelector(state => state.facilita);\r\n\tconst deathDeclarationState = useSelector(state => state.deathDeclaration);\r\n\r\n\tlet { userId } = useParams();\r\n\tlet deceasedUser = facilitaState.representing.find(r => r.id === userId);\r\n\r\n\tuseEffect(() => {\r\n if (!R.isNil(deceasedUser)) {\r\n dispatch(getDeathDeclaration(deceasedUser.id, deceasedUser)).\r\n\t\t\tthen((resp) => {\r\n\t\t\t\tif(resp === \"NotFound\"){\r\n\t\t\t\t\tdispatch(getUserInfoById(deceasedUser.id));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tdispatch(getDocuments(deceasedUser.id));\r\n\t\t\tdispatch(getLettersForUserId(deceasedUser.id));\r\n\t\t\tdispatch(getUserConnections(deceasedUser.id));\r\n\t\t\tdispatch(getUserServiceData(deceasedUser.id, undefined));\r\n\t\t\tdispatch(getUserRepresentativesForUserId(deceasedUser.id));\r\n\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [deceasedUser]);\r\n\r\n\tconst deathDate = R.isNil(deathDeclarationState.declaration) ? undefined : deathDeclarationState.declaration.deathDate;\r\n\tif(R.isNil(deathDeclarationState.declaration)){\r\n\t\treturn \"\";\r\n\t}\r\n\treturn (\r\n\t\t<>\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tR.isNil(deathDeclarationState.user) ?\r\n\t\t\t\t\t\r\n\t\t\t\t\t:\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t {\r\n\t\t\t\treturn \r\n\t\t\t}} />\r\n\t\t\r\n\t\t\r\n\t)\r\n}","import React from 'react';\r\nimport { Link, NavLink } from 'react-router-dom';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport colorContrast from 'color-contrast';\r\nimport logo_hr from '../../../../assets/images/brand/assista_horizontal-punchout.svg';\r\nimport logo from '../../../../assets/images/brand/assista.svg';\r\n\r\nexport const Navbar = ({ user, deathDeclaration, partnerColor, logoContent}) => {\r\n const router = useSelector(state => state.router);\r\n\r\n const onBoardingStep = deathDeclaration.onBoardingStep;\r\n\r\n const colorCustom = (!R.isNil(partnerColor) && partnerColor !== '') ? (colorContrast('#fff', partnerColor) >= 2.5 ? \" text-white navbar-dark\" : \" navbar-light\") : \" text-white navbar-dark\";\r\n const logo = R.isNil(logoContent) ? logo_hr : logoContent;\r\n return (\r\n
\r\n
\r\n \r\n {\"Assist@\" ev.target.src = logo_hr} />\r\n

Assist@: Menu

\r\n \r\n
\r\n

Un service d’accompagnement personnalisé, bienveillant, simple et qui respecte les délais

\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n {/* Annuler */}\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport $ from 'jquery';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { UploadArea } from '../../../_common/upload-area';\r\nimport * as R from 'ramda';\r\nimport { registerLocale } from \"react-datepicker\";\r\nimport fr from \"date-fns/locale/fr\";\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { createDeathDeclaration, updateDeathDeclaration, uploadDocument, downloadDocument, deleteDocument } from './../../../../actions/facilita-api';\r\nimport { RegexFields } from './../../../../constants/utils/regexFields';\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { PostalCityInput } from \"../../../../_common/postalCityInput\";\r\n\r\nimport DeathDeclaration from '../../../../constants/models/facilita/deathDeclaration';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { FileTypes } from './../../../../constants/utils/fileTypes';\r\n\r\nexport const Step1 = ({ user, deceasedUser, files, isLoading }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n registerLocale(\"fr\", fr);\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n //const user = useSelector(state => state.user);\r\n const identForm = useRef(null);\r\n const [deathCertificateUploadAlert, setDeathCertificateUploadAlert] = useState(false);\r\n const [identFields, setIdentFields] = useState(new DeathDeclaration({\r\n ...user,\r\n firstName: deceasedUser.firstName,\r\n lastName: deceasedUser.lastName\r\n }));\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n let deathCertificate = files.find(f => f.fileType === FileTypes.DeathCertificate);\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Déclarer le décès de votre proche

\r\n\t\t\t\t\t\t{/*

Vous pouvez dès à présent effectuer la déclaration

*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

téléchargement obligatoire

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tDonnes de Défunt\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={identFields.lastName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={identFields.firstName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setIdentFields({ ...identFields, deathDate: d })} isRequired={true} />\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tLieu du décès\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, addressLine1: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n setIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcountry={identFields.userDeceasedAddress.country}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t{/*
\r\n \r\n\t\t\t\t\t\t\t\t\t\t\t\t{identFields.country === null || identFields.country === \"FR\" || identFields.country === \"GF\" || identFields.country === \"PF\" || identFields.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, postalCode: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, city: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIdentFields({ ...identFields, userDeceasedAddress: { ...identFields.userDeceasedAddress, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(uploadDocument(deceasedUser.id, FileTypes.DeathCertificate, document, description));\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetDeathCertificateUploadAlert(false);\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tdownloadFile={(document) => dispatch(downloadDocument(deceasedUser.id, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\t\tdeleteFile={(document) => dispatch(deleteDocument(deceasedUser.id, document.fileName))}\r\n\t\t\t\t\t\t\t\t\t\t\tautoupload={true}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
Veuillez charger un document
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Attention

\r\n\t\t\t\t\t\t\t\t\t\t\t\t

En déposant l'acte de décès, vous vous engagez à déposer un document authentique sous peine de 5 ans de prison et 75 000 € d’amende.

\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tEn déposant l'acte de décès lisible, vous acceptez d’être le référent principal des démarches de votre proche. Afin de vous faciliter et de vous soulager dans toutes ces démarches, les courriers seront établis avec votre adresse et votre signature. Vous n'aurez plus qu'à confirmer et\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalider l’envoi.\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 3} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVeuillez confirmer la véracité des informations fournies.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tFermer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* Passer à l'étape suivante */}\r\n\t\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_DECLARATION) || isLoading.includes(loadings.CREATING_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(identFields.deathDate) || identFields.deathDate > new Date()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"date-modal\").setCustomValidity(\"Invalid value\");\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"date-modal\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tidentForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\tif (!document.getElementById(\"customSwitch1\").checked) {\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"customSwitch1InvalidFeedback\").classList.add(\"d-block\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(deathCertificate)) {\r\n\t\t\t\t\t\t\t\t\t\t\tsetDeathCertificateUploadAlert(true);\r\n\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (identForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(identFields.id) || identFields.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(createDeathDeclaration(deceasedUser.id, { ...identFields, allocations: identFields.allocations, professionalSituation: \"\" })).then(() => history.push(`/facilita/${deceasedUser.id}/declarer/step2`));\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdispatch(updateDeathDeclaration(deceasedUser.id, identFields)).then(() => history.push(`/facilita/${deceasedUser.id}/declarer/step2`));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tPasser à l'étape suivante\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { getUserMessage } from './../../../../actions/facilita-api';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport { updateDeathDeclaration } from './../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\n//userMessageByIdUrl\r\n\r\n\r\nexport const Step2 = ({deathDeclaration, deceasedUser, userId, message, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n useEffect(() => {\r\n dispatch(getUserMessage(deathDeclaration.userId));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [message]);\r\n\r\n if(R.isNil(message)){\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n let messageLines = message.split(\"\\n\");\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Vous avez un message

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n R.isNil(message) || R.isEmpty(message) ?\r\n ''\r\n :\r\n <>\r\n
\r\n { messageLines.map(function(item, idx) {\r\n return (\r\n

{item}

\r\n )\r\n })}\r\n {\r\n !R.isNil(message) && !R.isEmpty(message) ?

{deathDeclaration.firstName} {deathDeclaration.lastName}

: ''\r\n }\r\n
\r\n
\r\n \r\n\r\n }\r\n\r\n {\r\n deceasedUser.createdByRepresentative ? \r\n

Nous nous associons pleinement à votre chagrin et sommes présent pour vous accompagner afin de pouvoir établir tous les courriers dans les délais légaux, de les envoyer et surtout de vous soulager dans ce moment particulièrement difficile.\r\n
Vous avez à disposition un espace dédié pour déposer tous les documents qui seront nécessaires pour vous et votre famille.\r\n
Nous vous prions de recevoir nos très sincères condoléances.\r\n

\r\n :\r\n

L’équipe d’Assist@ s’associe pleinement à votre chagrin et est présent pour vous accompagner dans le dossier qu’a fait votre proche.\r\n
Il a listé l’intégralité des organismes avec lesquels il était en lien afin de pouvoir établir tous les courriers dans les délais légaux, de les envoyer et surtout de vous soulager dans ce moment particulièrement difficile.\r\n
Vous avez à disposition un espace dédié pour déposer tous les documents qui seront nécessaires pour vous et votre famille.\r\n
Vous n’avez rien à régler tout a été pris en charge par votre proche.\r\n
Nous vous prions de recevoir nos très sincères condoléances.\r\n

\r\n }\r\n

Aurélie Fournier
Fondatrice

\r\n
\r\n {/* \"signature\" */}\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n isLoading.includes(loadings.UPDATING_DECLARATION) ?\r\n \r\n :\r\n \r\n }\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useRef, useState } from 'react';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { useDispatch } from 'react-redux';\r\nimport { RegexFields } from './../../../../../constants/utils/regexFields';\r\nimport {DateWithModal} from '../../../../../_common/dateWithModal';\r\nimport {updateDeathDeclaration} from '../../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalCivil = ({deathDeclaration, userId, isLoading}) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst civilForm = useRef(null);\r\n\r\n\tconst [personalData, setPersonalData] = useState({\r\n\t\tfirstName: deathDeclaration.firstName,\r\n\t\tlastName: deathDeclaration.lastName,\r\n\t\tbirthDate: deathDeclaration.birthDate,\r\n\t\tcountry: deathDeclaration.country,\r\n\t\tphone: deathDeclaration.userResidenceAddress.phoneNumber,\r\n\t\tmobile: deathDeclaration.phoneNumber,\r\n\t\tisInvalid: deathDeclaration.isInvalid,\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Information deceased

\r\n\t\t\t\t\t\t\t
modifier les champs
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t}} pattern={RegexFields.nameWithoutNumbers} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t}} pattern={RegexFields.nameWithoutNumbers} />\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t}} pattern={RegexFields.nameWithoutNumbers} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setPersonalData({...personalData, birthDate: d}))} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, phone: event.target.value })\r\n\t\t\t\t\t\t\t\t\t}} pattern={RegexFields.frenchPhoneNumber} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tpersonalData.mobile.startsWith(\"+00\") ? \r\n\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetPersonalData({ ...personalData, mobile: event.target.value })\r\n\t\t\t\t\t\t\t\t\t\t\t}} pattern={RegexFields.frenchPhoneNumber} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React from 'react';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport * as R from 'ramda';\r\nimport { ModalCivil } from './modals/modalCivil';\r\n\r\nexport const Civil = ({deathDeclaration, userId, isLoading}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n let parsedMobilePhoneNumber = undefined;\r\n if(!deathDeclaration.phoneNumber.startsWith(\"+00\")){\r\n parsedMobilePhoneNumber = !R.isNil(deathDeclaration.phoneNumber) && deathDeclaration.phoneNumber !== \"\" ? parsePhoneNumber(deathDeclaration.phoneNumber).formatInternational() : undefined;\r\n }\r\n return (\r\n
\r\n {/* If card is not active replace: \r\n 1. in card title \" text-secondary\" with \" text-gray\"\r\n 2. remove checked from switch\r\n */}\r\n
\r\n
\r\n

Informations du défunt

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Nom

\r\n

{deathDeclaration.lastName}

\r\n
\r\n
\r\n

Prénom

\r\n

{deathDeclaration.firstName}

\r\n
\r\n
\r\n

Date de naissance

\r\n

{deathDeclaration.birthDate.toLocaleDateString('fr-FR')}

\r\n
\r\n
\r\n

Pays

\r\n

{countries.getName(deathDeclaration.country, \"fr\", { select: \"official\" })}

\r\n
\r\n
\r\n

Téléphone fixe

\r\n

{deathDeclaration.userResidenceAddress.phoneNumber === \"\" ? \"N/D\" : deathDeclaration.userResidenceAddress.phoneNumber}

\r\n
\r\n {\r\n R.isNil(parsedMobilePhoneNumber) ?\r\n ''\r\n :\r\n
\r\n

Mobile

\r\n

{parsedMobilePhoneNumber}

\r\n
\r\n }\r\n \r\n
\r\n

Invalide

\r\n

{deathDeclaration.isInvalid ? \"Oui\" : \"Non\"}

\r\n
\r\n
\r\n {/*
\r\n
\r\n
\r\n

Invalide

\r\n {deathDeclaration.isInvalid ? \"Oui\" : \"Non\"}\r\n
\r\n
*/}\r\n \r\n
\r\n )\r\n}","import React, { useRef, useState, useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { useDispatch } from 'react-redux';\r\nimport appartement from './../../../../../assets/images/svg/090-flats.svg';\r\nimport maison from './../../../../../assets/images/svg/069-home.svg';\r\nimport palace from './../../../../../assets/images/svg/093-palace.svg';\r\nimport hotel from './../../../../../assets/images/svg/087-hotel.svg';\r\nimport peniche from './../../../../../assets/images/svg/091-house-2.svg';\r\nimport divers from './../../../../../assets/images/svg/092-camping-tent.svg';\r\nimport { RegexFields } from './../../../../../constants/utils/regexFields';\r\nimport {updateDeathDeclaration} from '../../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nimport { PostalCityInput } from \"../../../../../_common/postalCityInput\";\r\n\r\nexport const ModalAddress = ({deathDeclaration, userId, isLoading}) => {\r\n const dispatch = useDispatch();\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const addressForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [asset, setAsset] = useState({\r\n address: deathDeclaration.userResidenceAddress.addressLine1,\r\n type: deathDeclaration.userResidenceAddress.addressContract,\r\n estateType: deathDeclaration.userResidenceAddress.addressType,\r\n city: deathDeclaration.userResidenceAddress.city,\r\n country: deathDeclaration.userResidenceAddress.country,\r\n postalCode: deathDeclaration.userResidenceAddress.postalCode,\r\n });\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Information deceased

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tmodifier les champs\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Modifier les informations qui ne sont pas à jour.

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/*
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
*/}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
TYPE DE BIEN
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 1 })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 2 })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t setAsset({ ...asset, type: 3 })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
type de bien immobilier
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 1 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"appartement\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

appartement

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 2 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Maison

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 3 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"palace\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

château

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 4 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"hotel\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Hôtel

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 5 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"peniche\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Péniche

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
setAsset({ ...asset, estateType: 6 })}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"divers\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t

divers

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*

*/}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, address: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t setAsset({ ...asset, postalCode: updatedAddress.postalCode, city: updatedAddress.city })}\r\n\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\tcountry={asset.country}\r\n\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-md\", postalCode: \"form-group col-md\" }}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{asset.country === null || asset.country === \"FR\" || asset.country === \"GF\" || asset.country === \"PF\" || asset.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, postalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, postalCode: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, city: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetAsset({ ...asset, country: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_DECLARATION) ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\taddressForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\t\tif (addressForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateDeathDeclaration(userId, {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...deathDeclaration,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuserResidenceAddress: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t...deathDeclaration.userResidenceAddress,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taddressLine1: asset.address,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taddressContract: asset.type,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taddressType: asset.estateType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcity: asset.city,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcountry: asset.country,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpostalCode: asset.postalCode,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => $(\".modal\").modal(\"hide\"));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\tSauvegarder\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport * as countries from 'i18n-iso-countries';\r\nimport frenchCountryData from 'i18n-iso-countries/langs/fr.json';\r\n\r\nimport appartement from './../../../../assets/images/svg/090-flats.svg';\r\nimport maison from './../../../../assets/images/svg/069-home.svg';\r\nimport palace from './../../../../assets/images/svg/093-palace.svg';\r\nimport hotel from './../../../../assets/images/svg/087-hotel.svg';\r\nimport peniche from './../../../../assets/images/svg/091-house-2.svg';\r\nimport divers from './../../../../assets/images/svg/092-camping-tent.svg';\r\n\r\nimport { ModalAddress } from './modals/modalAddress';\r\n\r\nexport const Address = ({deathDeclaration, userId, isLoading}) => {\r\n countries.registerLocale(frenchCountryData);\r\n const contractType = ['', 'Propriétaire', 'Locataire', 'Autre'];\r\n const assetTypeLogo = ['', appartement, maison, palace, hotel, peniche, divers];\r\n\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

adresse

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"maison\"\r\n

{contractType[deathDeclaration.userResidenceAddress.addressContract]}

\r\n
\r\n
\r\n \r\n

\r\n {deathDeclaration.userResidenceAddress.addressLine1}
\r\n {\r\n !R.isNil(deathDeclaration.userResidenceAddress.addressLine2) ? \r\n <>{deathDeclaration.userResidenceAddress.addressLine2}
\r\n \r\n : \"\"\r\n }\r\n {deathDeclaration.userResidenceAddress.postalCode} {deathDeclaration.userResidenceAddress.city}, {countries.getName(deathDeclaration.userResidenceAddress.country, \"fr\", {select: \"official\"})}

\r\n
\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport children from './../../../../../assets/images/svg/002-children.svg';\r\nimport noChildren from './../../../../../assets/images/svg/002-nochildren.svg';\r\n\r\nimport celibataireW from './../../../../../assets/images/svg/001-W-celibataire.svg';\r\nimport unionsW from './../../../../../assets/images/svg/001-W-unions.svg';\r\nimport divorceeW from './../../../../../assets/images/svg/001-W-divorcee.svg';\r\nimport veuveW from './../../../../../assets/images/svg/001-W-veuve.svg';\r\n\r\nimport celibataireM from './../../../../../assets/images/svg/001-M-celibataire.svg';\r\nimport unionsM from './../../../../../assets/images/svg/001-M-unions.svg';\r\nimport divorceeM from './../../../../../assets/images/svg/001-M-divorcee.svg';\r\nimport veuveM from './../../../../../assets/images/svg/001-M-veuve.svg';\r\nimport homechildren from './../../../../../assets/images/svg/002-homechildren.svg';\r\nimport {updateDeathDeclaration} from '../../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalFamily = ({deathDeclaration, userId, isLoading}) => {\r\n const familyForm = useRef(null);\r\n const dispatch = useDispatch();\r\n\r\n const familyStatusText = [\r\n {},\r\n { 'Male': {label:'Célibataire', logo:celibataireM}, 'Female': {label:'Célibataire', logo:celibataireW} },\r\n { 'Male': {label:'Marié', logo:unionsM}, 'Female': {label:'Mariée', logo:unionsW} },\r\n { 'Male': {label:'Divorcé', logo:divorceeM}, 'Female': {label:'Divorcée', logo:divorceeW} },\r\n { 'Male': {label:'Veuf', logo:veuveM}, 'Female': {label:'Veuve', logo:veuveW} },\r\n { 'Male': {label:'Union libre', logo:unionsM}, 'Female': {label:'Union libre', logo:unionsW} },\r\n { 'Male': {label:'Pacsé', logo:unionsM}, 'Female': {label:'Pacsée', logo:unionsW} }\r\n ];\r\n const gender = [ '', 'Female', 'Male', 'Other' ];\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [family, setFamily] = useState(undefined);\r\n\r\n const [civilData, setCivilData] = useState({\r\n\t\tcivilStatus: deathDeclaration.civilStatus,\r\n\t\thouseHoldCount: deathDeclaration.houseHoldCount,\r\n hasChildren: deathDeclaration.hasChildren\r\n\t});\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Information deceased

\r\n
modifier les champs
\r\n
\r\n
\r\n
\r\n

Modifier les informations qui ne sont pas à jour.

\r\n
\r\n
\r\n
SITUATION FAMILIALE
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 1}) }}>\r\n
\r\n \"Célibataire\"\r\n

{familyStatusText[1][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 2}) }}>\r\n
\r\n {familyStatusText[2][gender[deathDeclaration.gender]].label}\r\n

{familyStatusText[2][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 3}) }}>\r\n
\r\n {familyStatusText[3][gender[deathDeclaration.gender]].label}\r\n

{familyStatusText[3][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 4}) }}>\r\n
\r\n {familyStatusText[4][gender[deathDeclaration.gender]].label}\r\n

{familyStatusText[4][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 5}) }}>\r\n
\r\n {familyStatusText[5][gender[deathDeclaration.gender]].label}\r\n

{familyStatusText[5][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
{ setCivilData({...civilData, civilStatus: 6}) }}>\r\n
\r\n {familyStatusText[6][gender[deathDeclaration.gender]].label}\r\n

{familyStatusText[6][gender[deathDeclaration.gender]].label}

\r\n
\r\n
\r\n
\r\n
\r\n Veuillez choisir une option\r\n
\r\n
\r\n
\r\n
\r\n
ENFANTS
\r\n
\r\n
{ setCivilData({ ...civilData, hasChildren: true }) }}>\r\n
\r\n \"oui\"\r\n

J'ai des enfants

\r\n
\r\n
\r\n
{ setCivilData({ ...civilData, hasChildren: false }) }}>\r\n
\r\n \"none\"\r\n

Je n'ai pas d'enfants

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Autres
\r\n
\r\n
\r\n
0) ? ' active' : '')}>\r\n \"autre\"\r\n {/*

Autre Personne
Dans Le Foyer

*/}\r\n \r\n {\r\n setCivilData({ ...civilData, houseHoldCount: event.target.value })\r\n }} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport autres from './../../../../assets/images/svg/051-parents.svg';\r\nimport children from './../../../../assets/images/svg/002-children.svg';\r\nimport noChildren from './../../../../assets/images/svg/002-nochildren.svg';\r\nimport homechildren from './../../../../assets/images/svg/002-homechildren.svg';\r\n\r\nimport celibataireW from './../../../../assets/images/svg/001-W-celibataire.svg';\r\nimport unionsW from './../../../../assets/images/svg/001-W-unions.svg';\r\nimport divorceeW from './../../../../assets/images/svg/001-W-divorcee.svg';\r\nimport veuveW from './../../../../assets/images/svg/001-W-veuve.svg';\r\n\r\nimport celibataireM from './../../../../assets/images/svg/001-M-celibataire.svg';\r\nimport unionsM from './../../../../assets/images/svg/001-M-unions.svg';\r\nimport divorceeM from './../../../../assets/images/svg/001-M-divorcee.svg';\r\nimport veuveM from './../../../../assets/images/svg/001-M-veuve.svg';\r\n\r\nimport { ModalFamily } from './modals/modalFamily';\r\n\r\nexport const Family = ({deathDeclaration, userId, isLoading}) => {\r\n const familyStatusText = [\r\n {},\r\n { 'Male': {label:'Célibataire', logo:celibataireM}, 'Female': {label:'Célibataire', logo:celibataireW} },\r\n { 'Male': {label:'Marié', logo:unionsM}, 'Female': {label:'Mariée', logo:unionsW} },\r\n { 'Male': {label:'Divorcé', logo:divorceeM}, 'Female': {label:'Divorcée', logo:divorceeW} },\r\n { 'Male': {label:'Veuf', logo:veuveM}, 'Female': {label:'Veuve', logo:veuveW} },\r\n { 'Male': {label:'Union libre', logo:unionsM}, 'Female': {label:'Union libre', logo:unionsW} },\r\n { 'Male': {label:'Pacsé', logo:unionsM}, 'Female': {label:'Pacsée', logo:unionsW} }\r\n ];\r\n \r\n var civilStatus = deathDeclaration.civilStatus;\r\n if(civilStatus == 0){\r\n civilStatus = 1;\r\n }\r\n //#region etat civil\r\n const gender = [ '', 'Female', 'Male', 'Other' ];\r\n let familyStatus = familyStatusText[civilStatus][gender[deathDeclaration.gender]];\r\n\r\n \r\n\r\n let childrenLogo = deathDeclaration.hasChildren ? children : noChildren;\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

SITUATION FAMILIALE

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"autres\"\r\n

{familyStatus.label}

\r\n
\r\n
\r\n \"children\"\r\n

{deathDeclaration.hasChildren ? \"\" : \"Pas d'\"}enfants

\r\n
\r\n
\r\n \"autres\"\r\n
\r\n

autre personne dans le foyer

\r\n

{deathDeclaration.houseHoldCount} personne(s)

\r\n
\r\n
\r\n
\r\n \r\n
\r\n )\r\n}","import React from 'react';\r\nimport noChildren from './../../../../assets/images/svg/002-nochildren.svg';\r\nimport children from './../../../../assets/images/svg/002-children.svg';\r\nimport homechildren from './../../../../assets/images/svg/002-homechildren.svg';\r\nimport { ModalFamilyEnv } from './modals/modalFamilyEnv';\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\n\r\nexport const FamilyEnvironment = ({deathDeclaration, userId, isLoading}) => {\r\n const today = new Date();\r\n let minorChildren = deathDeclaration.childrens.filter(c => differenceInYears(today, new Date(c.birthDate)) < 18);\r\n let youngAdults = deathDeclaration.childrens.filter(c => differenceInYears(today, new Date(c.birthDate)) > 18 && differenceInYears(today, new Date(c.birthDate)) < 21);\r\n let handicapedChildren = deathDeclaration.childrens.filter(c => c.isHandicaped === true);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Environnement familial et privé

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"maison\"\r\n
\r\n

enfants

\r\n

{deathDeclaration.childrens.length}

\r\n
\r\n
\r\n
\r\n \"-18\"\r\n
\r\n

< 18 ans

\r\n

{minorChildren.length} mineur(s)

\r\n
\r\n
\r\n
\r\n \"-18\"\r\n
\r\n

18 à 21 ans

\r\n

{youngAdults.length} majeur(s)

\r\n
\r\n
\r\n
\r\n \"+21\"\r\n
\r\n

> 21 ans

\r\n

{deathDeclaration.childrens.length - minorChildren.length - youngAdults.length} majeur(s)

\r\n
\r\n
\r\n
\r\n \"handicapée\"\r\n
\r\n

handicapée(s)

\r\n

{handicapedChildren.length} personne(s)

\r\n
\r\n
\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport retraite from './../../../../../assets/images/svg/111-rocking-chair.png';\r\nimport activite from './../../../../../assets/images/svg/035-id-card.svg';\r\nimport pole from './../../../../../assets/images/svg/066-job-interview.svg';\r\nimport autre from './../../../../../assets/images/svg/034-clipboard.svg';\r\nimport home from './../../../../../assets/images/svg/069-home.svg';\r\nimport {ProfessionOptions} from '../../../../../constants/utils/connectionTypes';\r\nimport {updateDeathDeclaration} from '../../../../../actions/facilita-api';\r\nimport * as loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nexport const ModalSituationPro = ({deathDeclaration, userId, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const activityForm = useRef(null);\r\n const [professionSelected, setProfessionSelected] = useState(deathDeclaration.professionalSituation); \r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Situation Professionnelle

\r\n
Situation Professionnelle
\r\n
\r\n
\r\n
\r\n

Modifier les informations qui ne sont pas à jour.

\r\n
\r\n
\r\n
\r\n
{\r\n if (!professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n setProfessionSelected([...professionSelected.slice(), ProfessionOptions.active])\r\n } else {\r\n setProfessionSelected([...professionSelected.filter(p => p !== ProfessionOptions.active)])\r\n }\r\n }}>\r\n \"activite\"\r\n

EN ACTIVITÉ(E)

\r\n
\r\n
\r\n
\r\n
{\r\n if (!professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.none)) {\r\n setProfessionSelected([...professionSelected.slice(), ProfessionOptions.retired])\r\n } else {\r\n setProfessionSelected([...professionSelected.filter(p => p !== ProfessionOptions.retired)])\r\n }\r\n }}>\r\n \"retraite\"\r\n

RETRAITÉ(E)

\r\n
\r\n
\r\n \r\n
\r\n
{\r\n if (!professionSelected.includes(ProfessionOptions.unemployed) && !professionSelected.includes(ProfessionOptions.active) && !professionSelected.includes(ProfessionOptions.retired) && !professionSelected.includes(ProfessionOptions.none)) {\r\n setProfessionSelected([...professionSelected.slice(), ProfessionOptions.unemployed])\r\n } else {\r\n setProfessionSelected([...professionSelected.filter(p => p !== ProfessionOptions.unemployed)])\r\n }\r\n }}>\r\n \"pole\"\r\n

À FRANCE TRAVAIL

\r\n
\r\n
\r\n
\r\n
{\r\n if (!professionSelected.includes(ProfessionOptions.other) && !professionSelected.includes(ProfessionOptions.none)) {\r\n setProfessionSelected([...professionSelected.slice(), ProfessionOptions.other])\r\n } else {\r\n setProfessionSelected([...professionSelected.filter(p => p !== ProfessionOptions.other)])\r\n } \r\n }}>\r\n \"autre\"\r\n

autre

\r\n
\r\n
\r\n
\r\n
{\r\n if (!professionSelected.includes(ProfessionOptions.none)) {\r\n setProfessionSelected([ProfessionOptions.none])\r\n } else {\r\n setProfessionSelected([...professionSelected.filter(p => p !== ProfessionOptions.none)])\r\n } \r\n }}>\r\n \"autre\"\r\n

Sans activité

\r\n
\r\n
\r\n
\r\n Veuillez choisir une option\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport retraite from './../../../../assets/images/svg/111-rocking-chair.png';\r\nimport activite from './../../../../assets/images/svg/035-id-card.svg';\r\nimport pole from './../../../../assets/images/svg/066-job-interview.svg';\r\nimport autre from './../../../../assets/images/svg/034-clipboard.svg';\r\nimport home from './../../../../assets/images/svg/069-home.svg';\r\nimport { ModalSituationPro } from './modals/modalSituationPro';\r\nimport {ProfessionOptions} from '../../../../constants/utils/connectionTypes';\r\nexport const SituationPro = ({deathDeclaration, userId, isLoading}) => {\r\n return (\r\n
\r\n
\r\n
\r\n

SITUATION PROFESSIONNELLE

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"building\"\r\n

En activite

\r\n
\r\n
\r\n \"building\"\r\n

RETRAITÉ(E)

\r\n
\r\n
\r\n \"building\"\r\n

À FRANCE TRAVAIL

\r\n
\r\n
\r\n \"building\"\r\n

Autre activité

\r\n
\r\n
\r\n \"building\"\r\n

Sans activité

\r\n
\r\n\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../constants/utils/regexFields';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport * as loadings from '../../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport {createServiceData, updateServiceData, deleteServiceData} from '../../../../../../actions/facilita-api';\r\nimport {ConnectionTypes} from '../../../../../../constants/utils/connectionTypes';\r\nimport { updateDeathDeclaration } from './../../../../../../actions/facilita-api';\r\n\r\n\r\n\r\n\r\nexport const ModalActivitySection = ({activity, initCollapsedState, index, isLoading, removeFromList, deathDeclaration}) => {\r\n const dispatch = useDispatch();\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n let initState = {\r\n ...activity.payload\r\n };\r\n initCollapsedState = R.isNil(activity.collapsed) ? initCollapsedState : activity.collapsed;\r\n\r\n const activityForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [payload, setPayload] = useState(initState);\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n let hasCompanySavingsPlanReference = false;\r\n if (!R.isNil(payload.companySavingsPlanReference) && payload.companySavingsPlanReference !== \"\") {\r\n hasCompanySavingsPlanReference = true;\r\n }\r\n\r\n const [showSavings, setShowSavings] = useState(hasCompanySavingsPlanReference);\r\n const [showAccident, setShowAccident] = useState(deathDeclaration.diedInActivityId === activity.id);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n \r\n return(\r\n
\r\n
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n
\r\n

{index === 0 ? \"Activité principale\" : \"Autre activité\"}

\r\n {\r\n !R.isNil(payload.companyName) ?\r\n {payload.companyName}\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
nom de l’entreprise
\r\n
\r\n
\r\n
\r\n \r\n {\r\n setPayload({ ...payload, companyName: event.target.value })\r\n }} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n {\r\n setPayload({ ...payload, companyAddressStreet1: event.target.value })\r\n }} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n {\r\n setPayload({ ...payload, companyAddressStreet2: event.target.value })\r\n }} />\r\n
\r\n
\r\n
\r\n \r\n {\r\n payload.companyAddressCountry === null || payload.companyAddressCountry === 'FR' || payload.companyAddressCountry === 'GF' || payload.companyAddressCountry === 'PF' || payload.companyAddressCountry === 'TF' ?\r\n {\r\n setPayload({ ...payload, companyAddressPostalCode: event.target.value })\r\n }} pattern={RegexFields.frenchZipCode} />\r\n :\r\n {\r\n setPayload({ ...payload, companyAddressPostalCode: event.target.value })\r\n }} />\r\n }\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n\r\n {\r\n setPayload({ ...payload, companyAddressLocality: event.target.value })\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
statut professionnel
\r\n
\r\n
\r\n
\r\n \r\n {\r\n setPayload({ ...payload, function: event.target.value })\r\n }} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Plan d'épargne entreprise
\r\n
\r\n setShowSavings(!showSavings)} />\r\n \r\n
\r\n
\r\n { showSavings ?\r\n
\r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n setPayload({ ...payload, companySavingsPlanReference: e.target.value })} />\r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n
\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n
DÉCÈS SUITE À UN ACCIDENT DE TRAVAIL
\r\n
\r\n
\r\n setShowAccident(!showAccident)} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n {\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + activity.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + activity.serviceId) || isLoading.includes(loadings.UPDATING_DECLARATION) ? \r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n )\r\n};","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport {FrenchTypes} from '../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../constants/models/serviceData';\r\n\r\nimport {ModalActivitySection} from './activitySection';\r\n\r\nexport const ModalActivity = ({activities, isLoading, userId, deathDeclaration}) => {\r\n const [activityList, setActivityList] = useState([...activities]);\r\n useEffect(() => {\r\n setActivityList([...activities]);\r\n }, [activities]);\r\n\r\n function removeFromList(index){\r\n setActivityList(activityList.filter(a => a !== activityList[index]));\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Information deceased

\r\n
En activité(e)
\r\n
\r\n
\r\n
\r\n {/*

Modifier les champs qui ne sont pas mis à jour

*/}\r\n\r\n
\r\n

En activité

\r\n \r\n {\r\n activityList.map((activity, index) => {\r\n return ()\r\n })\r\n }\r\n
\r\n

Ajouter une autre ACTIVITÉ

\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {/* */}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport building from './../../../../assets/images/svg/110-hotel-1.svg';\r\nimport { ModalActivity } from './modals/modalActivity';\r\nimport * as R from 'ramda';\r\n\r\nexport const Activity = ({activities, isLoading, userId, deathDeclaration}) => {\r\n activities = R.sortBy(R.prop(\"position\"), activities);\r\n return (\r\n
\r\n
\r\n
\r\n

\r\n {/*
2
*/}\r\n En activite(e)

\r\n
\r\n \r\n
\r\n 3}/>\r\n \r\n
\r\n
\r\n
\r\n {/*
*/}\r\n
\r\n
\r\n {!R.isNil(activities) && activities.length > 0 ? activities.map((activity) => {\r\n return (
\r\n
\r\n \"building\"\r\n

{activity.payload.companyName}

\r\n
\r\n
\r\n \r\n

{activity.payload.companyAddressStreet1} { !R.isNil(activity.payload.companyAddressStreet2) && activity.payload.companyAddressStreet2 !== \"\" ?
{activity.payload.companyAddressStreet2}
: \"\"}
{activity.payload.companyAddressPostalCode} {activity.payload.companyAddressLocality}, {activity.payload.companyAddressCountry}

\r\n
\r\n
\r\n

Intitulé du poste

\r\n

{activity.payload.function}
{activity.payload.contractType === \"Trial\" ? \"Autre\" : activity.payload.contractType}

\r\n
\r\n
\r\n

Plan d'épargne entreprise

\r\n

{activity.payload.companySavingsPlanReference !== \"\" ? \"Oui\" : \"Non\"}

\r\n
\r\n
\r\n

DÉCÈS SUITE À UN ACCIDENT DE TRAVAIL OU MALADIE PROFESSIONNELLE

\r\n

{activity.id === deathDeclaration.diedInActivityId ? 'Oui' : 'Non'}

\r\n
\r\n
)\r\n }) :\r\n
\r\n \r\n
\r\n

C'est vide...

\r\n

Compléter votre situation professionnelle

\r\n \r\n
\r\n
\r\n }\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useRef, useEffect, useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport { RegexFields } from \"../../../../../../constants/utils/regexFields\";\r\nimport * as R from \"ramda\";\r\nimport $ from \"jquery\";\r\nimport * as loadings from \"../../../../../../constants/loadings/facilita/deathDeclaration\";\r\nimport { createServiceData, updateServiceData, deleteServiceData } from \"../../../../../../actions/facilita-api\";\r\nimport { ConnectionTypes } from \"../../../../../../constants/utils/connectionTypes\";\r\n\r\nimport { PostalCityInput } from \"../../../../../../_common/postalCityInput\";\r\n\r\nexport const ModalOtherActivitySection = ({ activity, initCollapsedState, index, isLoading, removeFromList }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tlet initState = {\r\n\t\t...activity.payload,\r\n\t};\r\n\tinitCollapsedState = R.isNil(activity.collapsed) ? initCollapsedState : activity.collapsed;\r\n\r\n\tconst activityForm = useRef(null);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\tconst [payload, setPayload] = useState(initState);\r\n\tconst [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n\tlet hasCompanySavingsPlanReference = false;\r\n\tif (!R.isNil(payload.companySavingsPlanReference) && payload.companySavingsPlanReference !== \"\") {\r\n\t\thasCompanySavingsPlanReference = true;\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n\t\t\t\t
\r\n\t\t\t\t\t

Autre activité

\r\n\t\t\t\t\t{!R.isNil(payload.name) ? (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{payload.name}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
nom de l’entreprise
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setPayload({ ...payload, function: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + activity.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + activity.serviceId) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tactivityForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tif (activityForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(activity.id) || activity.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tcreateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateServiceData({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t...activity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpayload: payload,\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t).then(() => setCollapsed(!collapsed));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsetCollapsed(!collapsed);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\tif (R.isNil(activity.id)) {\r\n\t\t\t\t\t\t\t\t\tremoveFromList(index);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tdispatch(deleteServiceData(activity.id, ConnectionTypes.activity));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport {FrenchTypes} from '../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../constants/models/serviceData';\r\nimport AddressInfo from '../../../../../../constants/models/addressInfo';\r\n\r\nimport {ModalOtherActivitySection} from './otherActivitySection';\r\n\r\nexport const ModalOtherActivity = ({activities, isLoading, userId}) => {\r\n const [activityList, setActivityList] = useState([...activities]);\r\n useEffect(() => {\r\n setActivityList([...activities]);\r\n }, [activities]);\r\n\r\n function removeFromList(index){\r\n setActivityList(activityList.filter(a => a !== activityList[index]));\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Information deceased

\r\n
Autre activité
\r\n
\r\n
\r\n
\r\n {/*

Modifier les champs qui ne sont pas mis à jour

*/}\r\n\r\n
\r\n

En activité

\r\n \r\n {\r\n activityList.map((activity, index) => {\r\n return ()\r\n })\r\n }\r\n
\r\n

Ajouter une autre ACTIVITÉ

\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {/* */}\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport building from './../../../../assets/images/svg/110-hotel-1.svg';\r\nimport { ModalOtherActivity } from './modals/modalOtherActivity';\r\nimport * as R from 'ramda';\r\n\r\nexport const OtherActivity = ({activities, isLoading, userId, deathDeclaration}) => {\r\n activities = R.sortBy(R.prop(\"position\"), activities);\r\n return (\r\n
\r\n
\r\n
\r\n

\r\n {/*
2
*/}\r\n Autre activité

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n {/*
*/}\r\n
\r\n
\r\n {!R.isNil(activities) && activities.length > 0 ?\r\n activities.map((activity) => {\r\n return (
\r\n
\r\n \"building\"\r\n

{activity.payload.name}

\r\n
\r\n
\r\n \r\n

{activity.payload.address.streetAddress} { activity.payload.address.streetAddress2 !== \"\" ?
{activity.payload.address.streetAddress2}
: \"\"}
{activity.payload.address.postalCode} {activity.payload.address.addressLocality}, {activity.payload.address.addressCountry}

\r\n
\r\n
\r\n

Intitulé du poste

\r\n

{activity.payload.function}

\r\n
\r\n
)\r\n }) :\r\n
\r\n \r\n
\r\n

C'est vide...

\r\n

Compléter votre situation professionnelle

\r\n \r\n
\r\n
\r\n }\r\n
\r\n \r\n
\r\n )\r\n}","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport {RegexFields} from '../../../../../../constants/utils/regexFields';\r\nimport { PostalCityInput } from \"../../../../../../_common/postalCityInput\";\r\n\r\nexport const RetraiteCustomForm = ({payload, setPayload, index}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, name: e.target.value })} required />\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress2: e.target.value } })} />\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, streetAddress3: e.target.value } })} />\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: updatedAddress.postalCode, addressLocality: updatedAddress.city } })}\r\n\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\tcountry={payload.address.addressCountry}\r\n\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, postalCode: e.target.value } })} pattern={RegexFields.frenchZipCode} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t setPayload({ ...payload, address: { ...payload.address, addressLocality: e.target.value } })} required />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n}","import React, { useRef, useEffect, useState } from 'react';\r\nimport countriesList from 'iso-3166-1-alpha-2';\r\nimport { ConnectionTypes, convertConnectionTypesToServiceType, PensionProfessionalCategoryMapping } from '../../../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport { createServiceData, updateServiceData, deleteServiceData } from '../../../../../../actions/facilita-api';\r\nimport * as R from 'ramda';\r\nimport * as loadings from '../../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { RetraiteCustomForm } from './retraiteCustomForm';\r\nimport OtherActivity from '../../../../../../constants/models/servicePayloads/otherActivity';\r\n\r\n\r\nexport const ModalRetraiteSection = ({ pension, initCollapsedState, index, isLoading, removeFromList, pensionDetails, countries }) => {\r\n const dispatch = useDispatch();\r\n const eqValues = R.compose(R.isEmpty, R.symmetricDifference);\r\n initCollapsedState = R.isNil(pension.collapsed) ? initCollapsedState : pension.collapsed;\r\n\r\n let initState = {\r\n ...pension.payload\r\n };\r\n\r\n const retraiteForm = useRef(null);\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [payload, setPayload] = useState(initState);\r\n const [collapsed, setCollapsed] = useState(initCollapsedState);\r\n\r\n let showCustomBasePensionFormInit = false;\r\n let showCustomComplementaryPensionFormInit = false;\r\n let showBasePensionFormInit = true;\r\n let showComplementaryPensionFormInit = true;\r\n\r\n\r\n if (!R.isNil(pension.id)) {\r\n\r\n if (!R.isNil(pension.payload.customPensionBase) && !R.isNil(pension.payload.customPensionBase.name)) {\r\n showCustomBasePensionFormInit = true;\r\n }\r\n if (!R.isNil(pension.payload.customPensionComplement) && !R.isNil(pension.payload.customPensionComplement.name)) {\r\n showCustomComplementaryPensionFormInit = true;\r\n }\r\n if ((R.isNil(pension.payload.pensionBaseServiceId) || pension.payload.pensionBaseServiceId === \"\") && R.isNil(pension.payload.customPensionBase.name)) {\r\n showBasePensionFormInit = false;\r\n }\r\n if ((R.isNil(pension.payload.pensionComplementServiceId) || pension.payload.pensionComplementServiceId === \"\") && R.isNil(pension.payload.customPensionComplement.name)) {\r\n showComplementaryPensionFormInit = false;\r\n }\r\n\r\n }\r\n\r\n const [showCustomBasePensionForm, setShowCustomBasePensionForm] = useState(showCustomBasePensionFormInit);\r\n const [showCustomComplementaryPensionForm, setShowCustomComplementaryPensionForm] = useState(showCustomComplementaryPensionFormInit);\r\n\r\n const [showBasePensionForm, setShowBasePensionForm] = useState(showBasePensionFormInit);\r\n const [showComplementaryPensionForm, setShowComplementaryPensionForm] = useState(showComplementaryPensionFormInit);\r\n\r\n let pensionsComplementary = undefined;\r\n let selectedPensionComplementaryInit = undefined;\r\n let selectedPensionComplementaryBranchInit = undefined;\r\n let selectedPensionBaseBranchInit = undefined;\r\n\r\n let branchComplementary = undefined;\r\n let pensionBaseInit = undefined;\r\n\r\n let selectedSubCategoryInit = undefined;\r\n let selectedCategoryInit = undefined;\r\n if (!R.isNil(payload.professionalCategory) && payload.professionalCategory !== \"\") {\r\n pensionBaseInit = pensionDetails.find(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Base\") && s.name !== \"ONaCVG\");\r\n if (!R.isNil(pensionBaseInit)) {\r\n selectedPensionBaseBranchInit = pensionBaseInit.branches.find(b => b.id === payload.pensionBaseServiceId);\r\n }\r\n\r\n pensionsComplementary = pensionDetails.filter(s => !R.isNil(s.mapping[payload.professionalCategory]) && s.mapping[payload.professionalCategory].includes(\"Complementary\"));\r\n if (payload.pensionComplementServiceId !== \"\") {\r\n selectedPensionComplementaryInit = pensionsComplementary.find(p => p.branches.find(b => b.id === payload.pensionComplementServiceId) !== undefined);\r\n\r\n if (!R.isNil(selectedPensionComplementaryInit)) {\r\n selectedPensionComplementaryBranchInit = selectedPensionComplementaryInit.branches.find(b => b.id === payload.pensionComplementServiceId);\r\n }\r\n\r\n } else {\r\n selectedPensionComplementaryBranchInit = undefined;\r\n }\r\n\r\n PensionProfessionalCategoryMapping.forEach((cat) => {\r\n let matchingOption = cat.options.find(o => o.value === payload.professionalCategory);\r\n if (!R.isNil(matchingOption)) {\r\n selectedSubCategoryInit = matchingOption;\r\n selectedCategoryInit = cat;\r\n }\r\n });\r\n // if(payload.professionalCategory === \"Autres\"){\r\n // selectedProfessionalSubcategoryTitle = \"Autres\";\r\n // }\r\n }\r\n\r\n const [selectedCategory, setSelectedCategory] = useState(selectedCategoryInit);\r\n const [selectedSubCategory, setSelectedSubCategory] = useState(selectedSubCategoryInit);\r\n const [selectedPensionBaseBranch, setSelectedPensionBaseBranch] = useState(selectedPensionBaseBranchInit);\r\n const [selectedPensionComplementary, setSelectedPensionComplementary] = useState(selectedPensionComplementaryInit);\r\n const [selectedPensionComplementaryBranch, setSelectedPensionComplementaryBranch] = useState(selectedPensionComplementaryBranchInit);\r\n\r\n const [subcategories, setSubcategories] = useState([]);\r\n const [pensionBase, setPensionBase] = useState(pensionBaseInit);\r\n const [pensionComplementary, setPensionComplementary] = useState(pensionsComplementary);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(selectedCategory)) {\r\n setSubcategories(selectedCategory.options);\r\n setSelectedSubCategory(selectedCategory.options[0]);\r\n }\r\n\r\n }, [selectedCategory]);\r\n\r\n useEffect(() => {\r\n if (R.isNil(selectedSubCategory))\r\n return;\r\n\r\n if (selectedSubCategory.value === 'Autres') {\r\n setShowCustomBasePensionForm(true);\r\n setShowCustomComplementaryPensionForm(true);\r\n setPensionBase([]);\r\n return;\r\n }\r\n\r\n let pensionBaseSelected = pensionDetails.find(s => !R.isNil(s.mapping[selectedSubCategory.value]) && s.mapping[selectedSubCategory.value].includes(\"Base\") && s.name !== \"ONaCVG\");\r\n if (pensionBaseSelected !== pensionBaseInit) {\r\n if (!R.isNil(pensionBaseSelected)) {\r\n setPensionBase(pensionBaseSelected);\r\n }\r\n }\r\n\r\n\r\n let pensionComplementarySelected = pensionDetails.filter(s => !R.isNil(s.mapping[selectedSubCategory.value]) && s.mapping[selectedSubCategory.value].includes(\"Complementary\"));\r\n let names = pensionComplementarySelected.map((p) => p.name);\r\n let namesLoaded = R.isNil(pensionComplementary) ? [] : pensionComplementary.map((p) => p.name);\r\n if (!R.isNil(pensionComplementarySelected)) {\r\n if (!eqValues(names, namesLoaded)) {\r\n setPensionComplementary(pensionComplementarySelected);\r\n setSelectedPensionComplementary(pensionComplementarySelected[0]);\r\n if (pensionComplementarySelected[0].branches.length > 1) {\r\n setSelectedPensionComplementaryBranch(undefined);\r\n } else {\r\n setSelectedPensionComplementaryBranch(pensionComplementarySelected[0].branches[0]);\r\n }\r\n }\r\n\r\n\r\n //setSelectedPensionComplementaryBranch(pensionComplementarySelected[0].branches[0]);\r\n }\r\n }, [selectedSubCategory, selectedCategory]);\r\n\r\n useEffect(() => {\r\n setPayload({\r\n ...payload,\r\n professionalCategory: !R.isNil(selectedSubCategory) ? selectedSubCategory.value : undefined,\r\n pensionBaseServiceId: !R.isNil(selectedPensionBaseBranch) ? selectedPensionBaseBranch.id : undefined,\r\n pensionComplementServiceId: !R.isNil(selectedPensionComplementaryBranch) ? selectedPensionComplementaryBranch.id : undefined,\r\n });\r\n }, [selectedSubCategory, selectedPensionBaseBranch, selectedPensionComplementaryBranch]);\r\n\r\n\r\n\r\n return (\r\n
\r\n
setTimeout(() => setCollapsed(!collapsed), 200)}>\r\n
\r\n

Retraite

\r\n {\r\n !R.isNil(selectedSubCategory) ?\r\n {selectedSubCategory.title}\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Catégorie sociaux professionelle avant la retraite
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {(!R.isNil(selectedCategory) && selectedCategory.title !== \"Autres\" ?\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n :\r\n ''\r\n )}\r\n {!R.isNil(selectedSubCategory) && !R.isNil(pensionBase) ?\r\n \r\n {\r\n showBasePensionForm ?\r\n \r\n
\r\n
\r\n
Régime de base\r\n {\r\n showComplementaryPensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n }\r\n
\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomBasePensionForm ?\r\n \r\n :\r\n \r\n }\r\n\r\n
\r\n }\r\n\r\n
\r\n\r\n {\r\n showCustomBasePensionForm ?\r\n setPayload({ ...payload, customPensionBase: val })} index={index} />\r\n\r\n :\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n : \"\"\r\n }\r\n\r\n {\r\n showComplementaryPensionForm ?\r\n \r\n\r\n
\r\n
\r\n
Régime complémentaire\r\n {\r\n showBasePensionForm && R.isNil(pension.id) ?\r\n \r\n :\r\n ''\r\n\r\n }\r\n
\r\n {\r\n payload.professionalCategory === \"Autres\" ?\r\n ''\r\n :\r\n
\r\n {\r\n showCustomComplementaryPensionForm ?\r\n \r\n :\r\n \r\n }\r\n
\r\n }\r\n
\r\n\r\n\r\n {\r\n showCustomComplementaryPensionForm ?\r\n setPayload({ ...payload, customPensionComplement: val })} index={index} />\r\n :\r\n
\r\n
\r\n
\r\n \r\n {\r\n pensionComplementary.length === 1 ?\r\n \r\n :\r\n \r\n }\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n

\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n Ce champ est requis\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n }\r\n
\r\n : \"\"\r\n }\r\n\r\n
\r\n :\r\n ''\r\n }\r\n\r\n\r\n
\r\n
\r\n {\r\n isLoading.includes(loadings.UPDATING_USER_SERVICES_DATA + \"_\" + pension.id) || isLoading.includes(loadings.CREATING_USER_SERVICES_DATA + \"_\" + pension.serviceId) ?\r\n \r\n\r\n :\r\n \r\n }\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useRef, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../../../../constants/utils/regexFields';\r\nimport OtherActivity from '../../../../../../constants/models/servicePayloads/otherActivity';\r\nimport {FrenchTypes} from '../../../../../../constants/utils/connectionTypes';\r\nimport ServiceData from '../../../../../../constants/models/serviceData';\r\nimport {ModalRetraiteSection} from './retraiteSection';\r\n\r\nexport const ModalRetraite = ({pensions, isLoading, userId, pensionDetails}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst [pensionList, setPensionList] = useState([...pensions]);\r\n useEffect(() => {\r\n setPensionList([...pensions]);\r\n }, [pensions]);\r\n\r\n function removeFromList(index){\r\n setPensionList(pensionList.filter(a => a !== pensionList[index]));\r\n }\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Information deceased

\r\n\t\t\t\t\t\t\t
Retraité(e)
\r\n
\r\n
\r\n
\r\n
\r\n\t\t\t\t\t\t\t

Retraité

\r\n \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpensionList.map((pension, index) => {\r\n\t\t\t\t\t\t\t\t\treturn ()\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t
\r\n

Ajouter une autre RETRAITE

\r\n \r\n
\r\n
\r\n
\r\n
\r\n\t\t\t\t\t\t\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useState, useEffect } from 'react';\r\nimport * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport { ModalRetraite } from './modals/modalRetraite';\r\nimport categoryPro from './../../../../assets/images/svg/105-profile.svg';\r\nimport { PensionProfessionalCategoryMapping, FrenchTypes } from '../../../../constants/utils/connectionTypes';\r\nimport * as urls from '../../../../constants/webapi/services';\r\n\r\n\r\n\r\nexport const Retraite = ({ pensions, isLoading, userId, deathDeclaration }) => {\r\n const [pensionDetails, setPensionDetails] = useState([]);\r\n\r\n const getAllPensionsDetails = () => {\r\n return axios.get(urls.searchServiceUrl(FrenchTypes.pension))\r\n .then(function (response) {\r\n setPensionDetails(response.data.items);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getAllPensionsDetails();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n if (pensionDetails.length === 0) {\r\n return \"\";\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

\r\n {/*
1
*/}\r\n Retraité(e)\r\n

\r\n
\r\n \r\n
\r\n 3} />\r\n \r\n
\r\n
\r\n
\r\n {/*
*/}\r\n
\r\n {!R.isNil(pensions) && pensions.length > 0 ?\r\n pensions.map((pension) => {\r\n\r\n if (pensionDetails.length === 0) {\r\n return \"\";\r\n }\r\n\r\n let category = PensionProfessionalCategoryMapping.find(c => c.options.find(o => o.value === pension.payload.professionalCategory) !== undefined);\r\n let subcategory = category.options.find(o => o.value === pension.payload.professionalCategory);\r\n let pensionBaseDetails = undefined;\r\n let pensionComplementDetails = undefined;\r\n if (pension.payload.professionalCategory !== \"Autres\") {\r\n pensionDetails.forEach((o) => {\r\n let pensionBaseBranch = o.branches.find(b => b.id === pension.payload.pensionBaseServiceId);\r\n if (!R.isNil(pensionBaseBranch)) {\r\n pensionBaseDetails = { ...pensionBaseBranch, regime: o.name };\r\n }\r\n\r\n let pensionComplementBranch = o.branches.find(b => b.id === pension.payload.pensionComplementServiceId);\r\n if (!R.isNil(pensionComplementBranch)) {\r\n pensionComplementDetails = { ...pensionComplementBranch, regime: o.name };\r\n }\r\n if (!R.isNil(pensionBaseDetails) && !R.isNil(pensionComplementBranch)) {\r\n return;\r\n }\r\n });\r\n } else {\r\n pensionBaseDetails = pension.payload.customPensionBase;\r\n pensionBaseDetails.regime = subcategory.value;\r\n\r\n pensionComplementDetails = pension.payload.customPensionComplement;\r\n pensionComplementDetails.regime = subcategory.value;\r\n }\r\n\r\n if (!R.isNil(pension.payload.customPensionBase.name) || !R.isNil(pension.payload.customPensionComplement.name)) {\r\n pensionBaseDetails = pension.payload.customPensionBase;\r\n pensionBaseDetails.regime = subcategory.value;\r\n\r\n pensionComplementDetails = pension.payload.customPensionComplement;\r\n pensionComplementDetails.regime = subcategory.value;\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \"building\"\r\n

{subcategory.title}

\r\n
\r\n {\r\n R.isNil(pensionBaseDetails) ?\r\n
\r\n :\r\n
\r\n

Régime de base

\r\n
\r\n
\r\n

{pensionBaseDetails.regime}

\r\n

{pensionBaseDetails.name}

\r\n
\r\n
\r\n {pensionBaseDetails.address.streetAddress && }\r\n

\r\n {pensionBaseDetails.address.streetAddress}\r\n {!R.isNil(pensionBaseDetails.address.streetAddress2) ? <>
{pensionBaseDetails.address.streetAddress2} : \"\"}\r\n {!R.isNil(pensionBaseDetails.address.streetAddress3) ? <>
{pensionBaseDetails.address.streetAddress3} : \"\"}\r\n
{pensionBaseDetails.address.postalCode} {pensionBaseDetails.address.addressLocality}\r\n

\r\n
\r\n
\r\n
\r\n }\r\n {\r\n R.isNil(pensionComplementDetails) ?\r\n
\r\n :\r\n
\r\n

Régime complémentaire

\r\n
\r\n
\r\n

{pensionComplementDetails.regime}

\r\n

{pensionComplementDetails.name}

\r\n
\r\n
\r\n {pensionComplementDetails.address.streetAddress && }\r\n

\r\n {pensionComplementDetails.address.streetAddress}\r\n {!R.isNil(pensionComplementDetails.address.streetAddress2) ? <>
{pensionComplementDetails.address.streetAddress2} : \"\"}\r\n {!R.isNil(pensionComplementDetails.address.streetAddress3) ? <>
{pensionComplementDetails.address.streetAddress3} : \"\"}\r\n
{pensionComplementDetails.address.postalCode} {pensionComplementDetails.address.addressLocality}\r\n

\r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n );\r\n }) :\r\n
\r\n \r\n
\r\n

C'est vide...

\r\n

Compléter votre situation professionnelle

\r\n \r\n
\r\n
\r\n }\r\n {/*
\r\n
\r\n
\r\n

RETRAITÉ

\r\n Non\r\n
\r\n
*/}\r\n \r\n
\r\n );\r\n};","import React, { useEffect, useRef } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { Civil } from './civil';\r\nimport { Address } from './address';\r\nimport { Family } from './family';\r\nimport { FamilyEnvironment } from './familyEnv';\r\nimport { SituationPro } from './situationPro';\r\nimport { Activity } from './activity';\r\nimport { OtherActivity } from './otherActivity';\r\nimport { Retraite } from './retraite';\r\nimport { Handicap } from './handicap';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { updateDeathDeclaration, getUserServiceData } from './../../../../actions/facilita-api';\r\nimport { ProfessionOptions, FrenchTypes } from '../../../../constants/utils/connectionTypes';\r\n\r\nexport const Step3 = ({ userId, deathDeclaration, isLoading, serviceDatas }) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const formRef = useRef();\r\n useEffect(() => {\r\n dispatch(getUserServiceData(userId));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

Valider les informations du défunt au jour du décès

\r\n {/*

Veuillez vérifier les informations relatives au défunt

*/}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n {\r\n deathDeclaration.hasChildren ?\r\n \r\n :\r\n ''\r\n }\r\n\r\n \r\n {\r\n deathDeclaration.professionalSituation.includes(ProfessionOptions.active) ?\r\n s.serviceType === FrenchTypes.activity)} isLoading={isLoading} userId={userId} deathDeclaration={deathDeclaration} />\r\n :\r\n ''\r\n }\r\n\r\n {\r\n deathDeclaration.professionalSituation.includes(ProfessionOptions.retired) ?\r\n <>\r\n {/*
*/}\r\n s.serviceType === FrenchTypes.pension)} isLoading={isLoading} userId={userId} deathDeclaration={deathDeclaration} />\r\n \r\n :\r\n ''\r\n }\r\n\r\n {\r\n deathDeclaration.professionalSituation.includes(ProfessionOptions.other) ?\r\n <>\r\n {/*
*/}\r\n s.serviceType === FrenchTypes.otherActivity)} isLoading={isLoading} userId={userId} deathDeclaration={deathDeclaration} />\r\n \r\n :\r\n ''\r\n }\r\n\r\n {/* */}\r\n \r\n
\r\n\r\n
\r\n
\r\n Retour\r\n {\r\n isLoading.includes(loadings.UPDATING_DECLARATION) ?\r\n \r\n :\r\n \r\n }\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/031-hearse.9455e3f3.svg\";","export default __webpack_public_path__ + \"static/media/037-headstone.e8d9fd30.svg\";","import React, { cloneElement, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { updateDeathDeclaration } from './../../../../actions/facilita-api';\r\n\r\nimport solidaire from './../../../../assets/images/svg/004-B-solidaire.svg';\r\nimport hearse from './../../../../assets/images/svg/031-hearse.svg';\r\nimport headstone from './../../../../assets/images/svg/037-headstone.svg';\r\n\r\nexport const Step4 = ({ userId, deathDeclaration, user, isLoading }) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const today = new Date();\r\n let lessThan21Children = deathDeclaration.childrens.filter(c => differenceInYears(today, new Date(c.birthDate)) < 21);\r\n\r\n const helpsForDeath = {\r\n\t\t\t//notaryRefund: { id:\"notaryRefund\", name: 'Notaire', details: 'Demande de remboursement de frais funéraire au notaire', title: \"Demande de remboursement des frais funéraires au notaire en charge de la succession.Si le solde bancaire du défunt est créditeur, il est possible de demander à la banque le déblocage du compte afin financer les funérailles dans la limite de 5 000€ (Article L312-1-4 du Code monétaire et financier, Arrêté du 25 octobre 2013 relatif au règlement des frais funéraires).\", icon: headstone, valid: true },\r\n\t\t\t//Personne en activité\r\n\t\t\tcpamTransportCosts: {\r\n\t\t\t\tid: \"cpamTransportCosts\",\r\n\t\t\t\tname: \"frais de transport\",\r\n\t\t\t\tdetails: \"Demande de prise en charge CPAM pour les Frais de Transport\",\r\n\t\t\t\ttitle: \"L'assuré doit être décédé lors d'un déplacement professionnel effectué à la demande de l'employeur. Les frais de transport seront remboursés dans la limite d'un plafond. Le remboursement des frais de transport du défunt jusqu'au lieu de sa sépulture peut être pris en charge par l'Assurance maladie.\",\r\n\t\t\t\ticon: hearse,\r\n\t\t\t\tvalid: !R.isNil(deathDeclaration.diedInActivityId),\r\n\t\t\t},\r\n\t\t\t//Accident du travail\r\n\t\t\tcpamFuneralCosts: {\r\n\t\t\t\tid: \"cpamFuneralCosts\",\r\n\t\t\t\tname: \"Prise en charge par la CPAM\",\r\n\t\t\t\tdetails: \"Demande de prise en charge CPAM pour les Frais Funeraires\",\r\n\t\t\t\ttitle: \"La prise en charge des frais funéraires par la CPAM est uniquement imputable lorsque le décès est en rapport avec une maladie professionnelle ou un accident du travail.\",\r\n\t\t\t\ticon: headstone,\r\n\t\t\t\tvalid: !R.isNil(deathDeclaration.diedInActivityId),\r\n\t\t\t},\r\n\t\t\tbankFuneralCostsPayment: {\r\n\t\t\t\tid: \"bankFuneralCostsPayment\",\r\n\t\t\t\tname: \"Paiement par la banque\",\r\n\t\t\t\tdetails: \"Demande de paiement de frais funéraires à la banque\",\r\n\t\t\t\ttitle:\r\n\t\t\t\t\t\"Paiement de la banque directement à l’organisme de pompes funèbres sur présentation de facture. Si le solde bancaire du défunt est créditeur, il est possible de demander à la banque le déblocage du compte afin de financer les funérailles dans la limite de 5 910€ et du montant disponible sur le compte (Article L312-1-4 du Code monétaire et financier, Arrêté du 25 octobre 2013 relatif au règlement des frais funéraires).\",\r\n\t\t\t\ticon: headstone,\r\n\t\t\t\tvalid: true,\r\n\t\t\t},\r\n\t\t\tbankFuneralCostsRefund: {\r\n\t\t\t\tid: \"bankFuneralCostsRefund\",\r\n\t\t\t\tname: \"Remboursement par la banque\",\r\n\t\t\t\tdetails: \"Demande de remboursement de frais funéraire à la banque\",\r\n\t\t\t\ttitle:\r\n\t\t\t\t\t\"Remboursement de la banque à la personne qui a payé la facture des frais funéraire. Si le solde bancaire du défunt est créditeur, il est possible de demander à la banque le déblocage du compte afin financer les funérailles dans la limite de 5 910€ et du montant disponible sur le compte (Article L312-1-4 du Code monétaire et financier, Arrêté du 25 octobre 2013 relatif au règlement des frais funéraires).\",\r\n\t\t\t\ticon: headstone,\r\n\t\t\t\tvalid: true,\r\n\t\t\t},\r\n\t\t};\r\n\r\n const aides = {\r\n //Activité ou Pole Emploi ou Accident travail\r\n cpamPriorityBeneficiary: { id: \"cpamPriorityBeneficiary\", name: 'Capital décès\\nBeneficiaire Prioritaire', title: \"Les bénéficiaires prioritaires sont les personnes à la charge effective, totale et permanente du défunt au jour de son décès, c’est-à-dire les proches dépendants financièrement du défunt : conjoint, enfants, ascendants.\", icon: solidaire, valid: !R.isNil(deathDeclaration.diedInActivityId) || deathDeclaration.professionalSituation.includes(\"Employed\") || deathDeclaration.professionalSituation.includes(\"PoleEmploi\") || deathDeclaration.isInvalid },\r\n //Activité ou Pole Emploi ou Accident travail\r\n cpamNoPriorityBeneficiary: { id: \"cpamNoPriorityBeneficiary\", name: 'Capital décès\\nBeneficiaire Non Prioritaire', title: \"En l’absence de bénéficiaires prioritaires, le capital décès est versé par ordre de priorité aux bénéficiaires non prioritaires: au conjoint, aux descendants puis aux ascendants\", icon: solidaire, valid: !R.isNil(deathDeclaration.diedInActivityId) || deathDeclaration.professionalSituation.includes(\"Employed\") || deathDeclaration.professionalSituation.includes(\"PoleEmploi\") || deathDeclaration.isInvalid },\r\n cpamWidowhoodExceptionalAssitance: { id: \"cpamWidowhoodExceptionalAssitance\", name: 'Secours Exceptionnel veuvage', title: \"Prestation soumise à condition de ressources, accordée pour faire face à des difficultés financières liées au décès, l'attribution d'un secours exceptionnel est étudiée au cas par cas, sur présentation d'un dossier détaillé exposant la nécessité de la demande d'aide et dans la limite des dépenses à engager. Ne faire la demande qu'une fois si vous avez travaillé dans les secteurs d\\'activités : salarié, salarié agricole, professions liberales (hors avocats) ou régime des cultes\", icon: solidaire, valid: deathDeclaration.civilStatus === 2 },\r\n caf: { id: \"caf\", name: 'CAF', title: \"Suite au décès de l'époux(se), la CAF recalcule le montant des prestations versées en fonction des ressources du foyer. Si le conjoint survivant se trouve dans une situation financière difficile, il peut avoir droit à de nouvelles prestations telles que l'aide au logement, le RSA, l'aide à domicile ou l'aide aux vacances. S'il a des enfants, il a le droit à l'allocation de soutien familial peu importe ses ressources.\", icon: solidaire, valid: deathDeclaration.civilStatus === 2 },\r\n cafRsa: { id: \"cafRsa\", name: 'Revenu de solidarité active', title: \"Le RSA : Selon le montant de vos revenus et la composition de votre foyer, le RSA vous assure un minimum de resources en venant compléter vos ressources existantes. Attention : plafond de ressources\", icon: solidaire, valid: true },\r\n cpamBenefitForFamilyAssitance: { id: \"cpamBenefitForFamilyAssitance\", name: 'Allocation soutien familial', title: \"L’allocation soutien familial : L’Asf est versée pour élever un enfant de moins de 20 ans, à charge, privé de l’aide de l’un ou de ses deux parents.\", icon: solidaire, valid: lessThan21Children.length > 0 },\r\n cpamSolidarityBenefitForElderlyPeople: { id: \"cpamSolidarityBenefitForElderlyPeople\", name: 'Allocation de solidarité aux personnes agées', title: \"L'allocation de solidarité aux personnes âgées (Aspa) est une prestation mensuelle accordée aux retraités ayant de faibles ressources et vivant en France. Elle est versée par la Carsat (ou la MSA si vous dépendez du régime agricole). Son montant dépend de vos ressources et de votre situation familiale.\", icon: solidaire, valid: deathDeclaration.professionalSituation.includes(\"Retired\") }\r\n };\r\n\r\n const [selectedAllocations, setSelectedAllocations] = useState({\r\n items: deathDeclaration.allocations\r\n });\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip({ boundary: 'window' });\r\n if(R.isEmpty(selectedAllocations.items) && (!R.isNil(deathDeclaration.diedInActivityId) || deathDeclaration.professionalSituation.includes(\"Employed\") || deathDeclaration.professionalSituation.includes(\"PoleEmploi\") || deathDeclaration.isInvalid)){\r\n setSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.concat(aides.cpamPriorityBeneficiary.id)});\r\n }\r\n }, []);\r\n \r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Allocations et Aides suite au décès

\r\n

Les documents seront créés et envoyés en fonction de votre choix.

\r\n
\r\n

Remboursements frais funéraires

\r\n
\r\n {\r\n Object.values(helpsForDeath).map((aid, index) => {\r\n if (aid.valid === false)\r\n return \"\";\r\n\r\n return (\r\n
-1) ? \" active\" : \"\") +\r\n (selectedAllocations.items.some(i => i !== aid.id && Object.values(helpsForDeath).map(o => o.id).includes(i)) ? \" disabled o-20\" : \"\")\r\n } onClick={(e) => {\r\n if (selectedAllocations.items.some(i => i !== aid.id && Object.values(helpsForDeath).map(o => o.id).includes(i))) {\r\n return;\r\n }\r\n if (selectedAllocations.items.indexOf(aid.id) > -1) {\r\n setSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.filter(i => i !== aid.id) });\r\n } else {\r\n setSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.concat(aid.id) });\r\n }\r\n }} title={aid.title} data-toggle=\"tooltip\" data-template='
'>\r\n {aid.name}\r\n

{aid.name}

\r\n

{aid.details}

\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n

aides pour la famille

\r\n
\r\n {\r\n Object.values(aides).map((aid, index) => {\r\n if (aid.valid === false)\r\n return \"\";\r\n\r\n return (\r\n
-1) ? \" active\" : \"\") + ((aid.id === aides.cpamPriorityBeneficiary.id && (selectedAllocations.items.indexOf(aides.cpamNoPriorityBeneficiary.id) > -1)) ? ' disabled o-20' : '') + ((aid.id === aides.cpamNoPriorityBeneficiary.id && (selectedAllocations.items.indexOf(aides.cpamPriorityBeneficiary.id) > -1)) ? ' disabled o-20' : '')} data-toggle=\"tooltip\" data-placement=\"bottom\" data-template='
' title={aid.title} onClick={(e) => {\r\n if (aid.id === aides.cpamPriorityBeneficiary.id && selectedAllocations.items.indexOf(aides.cpamNoPriorityBeneficiary.id) > -1) {\r\n return;\r\n }\r\n if (aid.id === aides.cpamNoPriorityBeneficiary.id && selectedAllocations.items.indexOf(aides.cpamPriorityBeneficiary.id) > -1) {\r\n return;\r\n }\r\n\r\n if (selectedAllocations.items.indexOf(aid.id) > -1) {\r\n setSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.filter(i => i !== aid.id) });\r\n } else {\r\n setSelectedAllocations({ ...selectedAllocations, items: selectedAllocations.items.concat(aid.id) });\r\n }\r\n }}>\r\n {aid.name}\r\n

\r\n {\r\n aid.name.split('\\n').map((p, idx) => {\r\n return (<>{p}
);\r\n })\r\n }\r\n

\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n isLoading.includes(loadings.UPDATING_DECLARATION) ?\r\n \r\n :\r\n \r\n }\r\n\r\n {/* Passer à l'étape suivante */}\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useHistory } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport SignatureCanvas from 'react-signature-canvas';\r\nimport dataURLtoBlob from 'blueimp-canvas-to-blob';\r\nimport photoWoman from './../../../../assets/images/placeholder/photo-woman.jpeg';\r\nimport { uploadDocument, downloadDocumentAsBase64, deleteDocument, updateDeathDeclaration } from '../../../../actions/facilita-api';\r\nimport { FileTypes } from '../../../../constants/utils/fileTypes';\r\nimport * as R from 'ramda';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as loadings from '../../../../constants/loadings/facilita/deathDeclaration';\r\nimport { toast } from 'react-toastify';\r\n\r\nconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\nexport const ProcessFinish = ({ open, userId, signatureFile, deathDeclaration, allocations, isLoading }) => {\r\n\tconst history = useHistory();\r\n\tconst dispatch = useDispatch();\r\n\tconst signatureRef = useRef(null);\r\n\tconst signatureCanvasRef = useRef({});\r\n\tconst modalRef = useRef(null);\r\n\tfunction hideModal() { \r\n\t\t$('#processfinish').modal(\"hide\"); \r\n\t\t$('body').removeClass('modal-open');\r\n\t\t$('.modal-backdrop').remove();\r\n\t};\r\n\tconst [width, setWidth] = useState(0);\r\n\tconst [height, setHeight] = useState(0);\r\n\tconst [widthWindow, setWidthWindow] = useState(window.innerWidth);\r\n\tconst [file, setFile] = useState(undefined);\r\n\tconst [hasBeenDrawn, setHasBeenDrawn] = useState(false);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\r\n\tconst [canvasViewMode, setCanvasViewMode] = useState(undefined);\r\n\tconst [textSignature, setTextSignature] = useState(undefined);\r\n\r\n\tconst fileSelector = document.createElement('input');\r\n\tfileSelector.setAttribute('type', 'file');\r\n\tfileSelector.setAttribute('accept', 'image/*');\r\n\tfileSelector.onchange = function (event) {\r\n\t\tconst nameSplited = event.target.files[0].name.split(\".\");\r\n\t\tconst extension = nameSplited[nameSplited.length - 1].toLowerCase();\r\n\t\tconst fileExtesions = [\"jpg\", \"png\", \"jpeg\", \"pdf\", \"svg\", \"gif\"];\r\n\t\tif (!fileExtesions.includes(extension)) {\r\n\t\t\ttoast.error(\"Seuls les fichiers image sont autorisés !\", toastConf);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdispatch(uploadDocument(userId, FileTypes.Signature, event.target.files[0]));\r\n\t};\r\n\r\n\tfunction resize() {\r\n\t\tif (widthWindow > 0 && !R.isNil(modalRef) && !R.isNil(modalRef.current) && modalRef.current.classList.length > 0 && modalRef.current.classList.contains('show')) {\r\n\t\t\tif (!R.isNil(signatureRef) && !R.isNil(signatureRef.current) && (width !== signatureRef.current.clientWidth || height !== signatureRef.current.clientHeight)) {\r\n\t\t\t\tsetWidth(signatureRef.current.clientWidth);\r\n\t\t\t\tsetHeight(signatureRef.current.clientHeight);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tfunction saveSignature() {\r\n\t\tconst canvas = signatureCanvasRef.current.getCanvas();\r\n\t\tconst blob = dataURLtoBlob(canvas.toDataURL('image/png', 1.0));\r\n\t\tblob.name = \"signature.png\";\r\n\t\tdispatch(uploadDocument(userId, FileTypes.Signature, blob))\r\n\t\t\t.then(() => {\r\n\t\t\t\tsetHasBeenDrawn(false);\r\n\t\t\t});\r\n\t}\r\n\r\n\tfunction sendToCanvas() {\r\n\t\tconst canvas = signatureCanvasRef.current.getCanvas();\r\n\t\tconst ctx = canvas.getContext('2d');\r\n\t\t//const img = new Image();\r\n\t\t//ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\r\n\t\tctx.font = '400 64px Calligraffitti';\r\n\t\tctx.textAlign = 'left';\r\n\t\tctx.fillStyle = '#000000';\r\n\t\tctx.fillText(textSignature, 5, canvas.height / 2);\r\n\t\t// setCanvasViewMode('Draw');\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(signatureFile)) {\r\n\t\t\tdownloadDocumentAsBase64(userId, signatureFile.fileName)\r\n\t\t\t\t.then((downloadedFile) => {\r\n\t\t\t\t\tsetFile(downloadedFile);\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t}, [signatureFile]);\r\n\r\n\tuseEffect(() => {\r\n\t\tresize();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [open]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst handleResize = () => setWidthWindow(window.innerWidth);\r\n\t\twindow.addEventListener(\"resize\", handleResize);\r\n\t\tresize();\r\n\t\t// return () => {\r\n\t\t// \twindow.removeEventListener(\"resize\", handleResize);\r\n\t\t// };\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [window.innerWidth]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Confirm death declaration process

\r\n\t\t\t\t\t\t\t
démarrer le processus
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

A ce stade, nous avons l'intégralité des informations requises pour créer les démarches administratives.

\r\n\t\t\t\t\t\t\t\t

Il ne manque plus que votre signature. Vous avez trois options: écrire, dessiner ou télécharger votre signature.

\r\n\t\t\t\t\t\t\t\t{/*

Je suis Aurélie, directrice générale de ce projet. Je suis ici pour vous aider tout au long du processus douloureux d'une personne qui a perdu un être cher.

\r\n\t\t\t\t\t\t\t\t

Notre mission est de faciliter et de rationaliser cette partie bureaucratique. Vous serez informé tout au long du processus.

*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/*

La seule chose que nous demandons est votre signature

*/}\r\n\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{/* { canvasViewMode === \"Draw\" ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\t\t\t\t{/* Charger une signature
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{R.isNil(file) ?\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t

Chargez votre signature ici...
Images haute résolution (png, jpg, gif)

\r\n\t\t\t\t\t\t\t\t\t\t\t { setHasBeenDrawn(true); }} />\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\"signature\"\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t!R.isNil(file) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\thasBeenDrawn ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\twasValidated && R.isNil(file) ?\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tVeuillez ajouter votre signature\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(loadings.UPDATING_DECLARATION) ?\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport differenceInYears from \"date-fns/differenceInYears\";\r\n\r\nimport { ProcessFinish } from './../_common/processfinish';\r\n\r\nimport idcard from './../../../../assets/images/svg/035-id-card.svg';\r\nimport solidaire from './../../../../assets/images/svg/004-B-solidaire.svg';\r\nimport retirement from './../../../../assets/images/svg/036-retirement.svg';\r\nimport {FileTypes} from '../../../../constants/utils/fileTypes';\r\n\r\nexport const Step5 = ({userId, deathDeclaration, user, isLoading, files}) => {\r\n\r\n const today = new Date();\r\n let lessThan28Children = deathDeclaration.childrens.filter(c => differenceInYears(today, new Date(c.birthDate)) < 28);\r\n let handicapedChildren = deathDeclaration.childrens.filter(c => c.isHandicaped === true);\r\n\r\n \r\n\r\n const [open, setOpen] = useState(false);\r\n const rentes = {\r\n education: { id:\"renteEducation\", name: 'rente education', title: \"La rente éducation est généralement versée jusqu’au 18e anniversaire des enfants bénéficiaires, 26 ou 28 ans dans le cas de poursuite d’études. Elle est servie à vie aux enfants reconnus invalides ou handicapés.\", icon: idcard, valid: lessThan28Children.length > 0 || handicapedChildren.length > 0},\r\n // ipp: { id:\"renteIpp\", name: 'rente ipp', title: \"Une victime d’accident du travail ou de maladie professionnelle a pu opter pour la réversion de la rente d’incapacité au profit d’un conjoint survivant.\", icon: idcard, valid: !R.isNil(deathDeclaration.diedInActivityId) },\r\n travail: { id:\"renteAccidentDuTravail\", name: 'rente accident du travail', title: \"En cas de décès d’un salarié suite à un accident du travail ou à une maladie professionnelle, les ayants droit proches du défunt peuvent bénéficier d’une rente. Les ayants droit sont
-Conjoint marié, le partenaire pacsé ou le concubin
-Enfants de l’assuré décédé
-Ascendants de l’assuré décédé\", icon: idcard, valid: !R.isNil(deathDeclaration.diedInActivityId) },\r\n ascendant: { id:\"renteParAscendant\", name: 'rente par ascendant', title: \"Si vous êtes l'ascendant d'un salarié décédé à la suite d'un accident de travail, vous avez droit, sous conditions, à une indemnisation sous forme de rente. Vous avez droit à une rente si vous remplissez l'une des conditions suivantes :
Si le défunt vivait en couple ou avait au moins 1 enfant, vous devez prouver que vous étiez à sa charge ; Si le défunt ne vivait pas en couple et n'avait pas d'enfant, vous devez prouver que vous auriez pu obtenir de sa part une pension alimentaire.\", icon: idcard, valid: deathDeclaration.civilStatus === 1 && !R.isNil(deathDeclaration.diedInActivityId)}\r\n };\r\n\r\n const retraites = {\r\n cpamWidowhoodAllowance: { id:\"cpamWidowhoodAllowance\", name: 'Allocation veuvage', title: \"L'allocation de veuvage est une allocation temporaire qui peut être attribuée à l'époux(se) survivant(e), sous condition de ressources. Vous devez avoir moins de 55 ans\", icon: solidaire, valid: deathDeclaration.civilStatus === 2},\r\n base: { id:\"reversionBase\", name: 'reversion de base', title: \"Salariés, artisans, commerçants .Le bénéficiaire de la réversion doit obligatoirement avoir été marié avec l'assuré, sans condition de durée minimale. Il conservera le droit à la pension de réversion même s'il se remarie.
Pour en bénéficier, il devra, toutefois, au minimum être âgé de 55 ans et justifier de conditions de ressources annuelles maximum ou être invalide ou avoir 2 enfants à charge.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n complementaire: { id:\"reversionComplementaire\", name: 'reversion complementaire', title: \"Le conjoint ou ex-conjoint non remarié peut faire une demande. Il peut y avoir un ou plusieurs bénéficiaires: conjoint(e), veuf(ve), ex-conjoint(e)(s), sans conditions de ressources mais avoir au moins 55 ans ou être invalide ou avoir 2 enfants à charge.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n invalide: { id:\"reversionVeuf\", name: 'reversion veuf ou veuve invalide', title: \"Vous pouvez bénéficier de cette pension parce que vous êtes veuve ou veuf, invalide et vous avez moins de 55 ans. Vous ne pouvez pas en bénéficier si vous êtes valide, même si votre conjoint(e) décédé(e) était invalide.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n artisan: { id:\"reversionCommercantArtisant\", name: 'Réversion Orphelin', title: \"Pour les orphelins : suivant les régimes et sous conditions: avoir moins de 21 ans ou 25 ans (études ou à charge) ou invalidité (reconnue avant 21 ans) pour toutes les retraites de base et complémentaires, pour les orphelins des miniers être âgés de moins de 16 ans ou jusqu'à ses 20 ans si scolarisé.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n agriculteur: { id:\"ReversionAgriculteur\", name: 'Reversion agriculteur', title: \"Vous pouvez obtenir une pension de réversion versée par votre organisme de sécurité sociale (l'assurance retraite ou la MSA, Mutualité sociale agricole) si vous remplissez les conditions suivantes: avoir au moins 55 ans sauf invalidité.
Vous devez avoir été marié(e) avec la personne décédée.La durée du mariage n'est pas prise en compte, il n'y a pas de durée minimale. il y a un plafond de ressource (1 er 01/25 soit 24 710,40 €).Vous pouvez demander la pension de réversion même si vous vivez de nouveau en couple (Mariage, Pacs ou concubinage (union libre)) après le décès. Pour la retraite complémentaire: accessible pour le conjoint et ex-conjoint non remarié.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n liberales: { id:\"ReversionProfessionsLiberale\", name: 'Reversion professions liberales ( sauf avocat )', title: \"Retraite de base et complémentaire : Le conjoint ou ex conjoint non remarié peut faire une demande de pension de réversion, elle peut être accordée même lorsque le conjoint est décédé avant d'avoir pris sa retraite. Elle est calculée à partir des droits que le défunt avait obtenus au cours de sa carrière il faut être âgé de plus de 55 ans sauf en cas d’invalidité et ne pas dépasser certains plafonds de ressources.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n miniere: { id:\"reversionPensionMiniere\", name: 'Reversion pension miniere', title: \"Retraite de base (retraite des mines): le conjoint ou ex-conjoint non remarié d’un retraité ou d’un cotisant à la retraite minière a droit à une pension à condition d’avoir été marié au moins 2 ans avec lui, ou qu’1 enfants soit né du mariage, pas de condition d'âge, ni de ressources. Pour la complémentaire (ABELIO) demande pour le conjoint ou ex conjoint non remarié peut être versée à un ou plusieurs bénéficiaires: conjoint(e), veuf(ve), ex-conjointes(e)(s), sans conditions de ressources et avoir au moins 55 ans ou invalide ou 2 enfants à charge.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n sncf: { id:\"reversionSncf\", name: 'Reversion fonctionnaires', title: \"Contrairement aux régimes de base des salariés, des indépendants, des professions libérales et des exploitants agricoles, il n'y a pas de condition d'âge ni de ressources pour le conjoint survivant pour qu'il puisse toucher la pension de réversion. Le conjoint et l’ex-conjoint (ou ex-conjoints) d’un fonctionnaire ont droit à la réversion à condition de ne pas vivre en couple au moment de la demande, d'avoir été marié avec lui au moins 4 ans, ou 2 ans avant le départ en retraite du défunt, ou avoir eu des enfants avec lui ainsi que pour les orphelins de -21 ans.Ils doivent donc ne pas être remariés, ne pas avoir conclu de Pacs et ne pas vivre en concubinage.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n ancien: { id:\"reversionAncienCombattants\", name: 'Reversion ancien combattant d\\'Algérie, Maroc et Tunisie', title: \"Le conjoint ou ex conjoint non remarié peut faire une demande de réversion lorsque le défunt percevait un pension d'ancien combattant, Algérie, Maroc ou Tunisie.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 },\r\n nonancien: { id:\"nonReversionAncienCombattants\", name: 'Non-réversion ancien combattant', title: \"A faire lorsque le défunt percevait un pension d'ancien combattant HORS Algérie, Maroc ou Tunisie.\", icon: retirement, valid:deathDeclaration.civilStatus === 2 || deathDeclaration.civilStatus === 3 }\r\n }\r\n \r\n const [selectedAllocations, setSelectedAllocations] = useState({\r\n items: deathDeclaration.allocations\r\n });\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip({ boundary: 'window' });\r\n }, []);\r\n\r\n const noOptions = R.isEmpty(Object.values(rentes).filter(r => r.valid === true)) && R.isEmpty(Object.values(retraites).filter(r => r.valid === true));\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

Reversion

\r\n

Revenus de retraite de votre conjoint qui peuvent vous être reversés sous certaines conditions.

\r\n

{noOptions ? \"Aucune option disponible pour votre situation, veuillez démarrer le processus.\" : \"Sélectionnez les documents nécessaires\"}

\r\n {\r\n R.isEmpty(Object.values(rentes).filter(r => r.valid === true)) ? \r\n ''\r\n :\r\n
\r\n

RENTES

\r\n
\r\n {\r\n Object.values(rentes).map((rente, index) => {\r\n if(rente.valid === false)\r\n return \"\";\r\n\r\n return (\r\n
-1) ? \" active\" : \"\")} data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" data-template='
' title={rente.title} onClick={(e) => {\r\n if(selectedAllocations.items.indexOf(rente.id) > -1){\r\n setSelectedAllocations({...selectedAllocations, items: selectedAllocations.items.filter(i => i !== rente.id) });\r\n }else{\r\n setSelectedAllocations({...selectedAllocations, items: selectedAllocations.items.concat(rente.id) });\r\n }\r\n }}>\r\n {rente.name}\r\n

{rente.name}

\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n }\r\n {\r\n R.isEmpty(Object.values(retraites).filter(r => r.valid === true)) ?\r\n ''\r\n :\r\n
\r\n

REVERSIONS

\r\n
\r\n {\r\n Object.values(retraites).map((ret, index) => {\r\n if(ret.valid === false)\r\n return \"\";\r\n\r\n return (\r\n
-1) ? \" active\" : \"\")} data-toggle=\"tooltip\" data-placement=\"top\" data-html=\"true\" data-template='
' title={ret.title} onClick={(e) => {\r\n if(selectedAllocations.items.indexOf(ret.id) > -1){\r\n setSelectedAllocations({...selectedAllocations, items: selectedAllocations.items.filter(i => i !== ret.id) });\r\n }else{\r\n setSelectedAllocations({...selectedAllocations, items: selectedAllocations.items.concat(ret.id) });\r\n }\r\n }}>\r\n {ret.name}\r\n

{ret.name}

\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n }\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n Retour\r\n \r\n {/* \r\n =======================\r\n O link em baixo é so para facilitar a ida para a dashboard\r\n =======================\r\n \r\n */}\r\n
\r\n
\r\n f.fileType === FileTypes.Signature)} deathDeclaration={deathDeclaration} allocations={selectedAllocations.items} isLoading={isLoading} />\r\n
\r\n )\r\n}","import React, {useEffect, useState} from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useSelector, useDispatch } from 'react-redux';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { getDeathDeclaration, getDocuments } from './../../../actions/facilita-api';\r\nimport { fetchPartnerCustomization } from './../../../actions/user-api';\r\nimport {useParams} from \"react-router-dom\";\r\nimport * as R from 'ramda';\r\n\r\n// Declarer\r\n// ==========================================\r\n// Declarer: Common\r\nimport { Navbar } from './_common/navbar';\r\nimport { Help } from '../_common/help';\r\nimport { Path } from '../_common/path';\r\n\r\n// Declarer: Views\r\nimport { Step1 } from './step1';\r\nimport { Step2 } from './step2';\r\nimport { Step3 } from './step3';\r\nimport { Step4 } from './step4';\r\nimport { Step5 } from './step5';\r\n\r\nexport const Declarer = () => {\r\n\tconst history = useHistory();\r\n\tconst dispatch = useDispatch();\r\n\tconst router = useSelector(state => state.router);\r\n\tconst facilitaState = useSelector(state => state.facilita);\r\n\tconst deathDeclarationState = useSelector(state => state.deathDeclaration);\r\n\r\n\tlet { userId } = useParams();\r\n\tlet deceasedUser = facilitaState.representing.find(r => r.id === userId);\r\n\r\n\tconst [partnerCustomization, setPartnerCustomization] = useState({\r\n\t\tisLoaded: false,\r\n\t\tlogoBase64Encoded: undefined,\r\n\t\tcolor: undefined\r\n\t });\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(facilitaState.user) && !R.isNil(deceasedUser)) {\r\n\t\t\tif(!R.isNil(deceasedUser.partnerId) && deceasedUser.partnerId !== '00000000-0000-0000-0000-000000000000'){\r\n\t\t\t\tdispatch(fetchPartnerCustomization(deceasedUser.partnerId))\r\n\t\t\t\t\t.then((customization) => {\r\n\t\t\t\t\t\tif (!R.isNil(customization) && !R.isNil(customization.data)) {\r\n\t\t\t\t\t\t\tsetPartnerCustomization({ ...customization.data, isLoaded: true });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(() => setPartnerCustomization({ ...partnerCustomization, isLoaded: true }));\r\n\t\t\t}else{\r\n\t\t\t\tsetPartnerCustomization({...partnerCustomization, isLoaded: true})\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [facilitaState.user, deceasedUser]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(deceasedUser)) {\r\n dispatch(getDeathDeclaration(deceasedUser.id, deceasedUser));\r\n\t\t\tdispatch(getDocuments(deceasedUser.id));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [facilitaState.representing]);\r\n\r\n\r\n\tif(R.isNil(deceasedUser) || R.isNil(deathDeclarationState) || R.isNil(deathDeclarationState.declaration) || !partnerCustomization.isLoaded){\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\t// if(deathDeclarationState.declaration.onBoardingStep === 6){\r\n\t// \treturn \r\n\t// }\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t

Assist@

\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t

Assist@: Main

\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\treturn \r\n\t\t\t\t\t}} />\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link, NavLink } from 'react-router-dom';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport colorContrast from 'color-contrast';\r\nimport logo_hr from '../../../assets/images/brand/assista_horizontal-punchout.svg';\r\nimport logo from '../../../assets/images/brand/assista.svg';\r\n\r\nexport const Navbar = ({user, deathDeclaration, partnerColor, logoContent, subsectionsStatuses, serviceSubsectionsStatuses}) => {\r\n const router = useSelector(state => state.router);\r\n let onBoardingStepDefault = \"0\";\r\n if(!R.isNil(user.onBoardingStep) && (typeof user.onBoardingStep === 'string' || user.onBoardingStep instanceof String)){\r\n if(user.onBoardingStep === \"Completed\"){\r\n onBoardingStepDefault = 6;\r\n }else{\r\n onBoardingStepDefault = parseInt(user.onBoardingStep.replace(/\\D/g, \"\"));\r\n }\r\n\r\n }\r\n\r\n const [onBoardingStep, setOnBoardingStep] = useState(onBoardingStepDefault);\r\n\r\n useEffect(() => {\r\n if(!R.isNil(user.onBoardingStep)){\r\n if((typeof user.onBoardingStep === 'string' || user.onBoardingStep instanceof String)){\r\n if(user.onBoardingStep === \"Completed\"){\r\n setOnBoardingStep(6);\r\n }else{\r\n setOnBoardingStep(parseInt(user.onBoardingStep.replace(/\\D/g, \"\")));\r\n }\r\n }else{\r\n setOnBoardingStep(user.onBoardingStep);\r\n }\r\n }\r\n\r\n\r\n }, [user.onBoardingStep])\r\n\r\n const colorCustom = (!R.isNil(partnerColor) && partnerColor !== '') ? (colorContrast('#fff', partnerColor) >= 2.5 ? \" text-white navbar-dark\" : \" navbar-light\") : \" text-white navbar-dark\";\r\n const logo = R.isNil(logoContent) ? logo_hr : logoContent;\r\n return (\r\n
\r\n
\r\n \r\n {\"Assist@\" ev.target.src = logo_hr} />\r\n {/* \"Assist@\" ev.target.src = logo_hr} /> */}\r\n

Assist@: Menu

\r\n \r\n
\r\n

Un service d’accompagnement personnalisé, bienveillant, simple et qui respecte les délais

\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n {/* Annuler */}\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState, useRef } from \"react\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\nimport * as R from \"ramda\";\r\nimport * as $ from \"jquery\";\r\n\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport * as axios from \"axios\";\r\nimport { ToastContainer } from \"react-toastify\";\r\n\r\nimport { updateUserInfoById, updateOnboardingUserAddressById, updateOnboardingStep } from \"../../../../../actions/facilita-api\";\r\n\r\nimport { CivilForm } from \"../../../dossier/profile/civilForm\";\r\nimport { FamilySituationForm } from \"../../../dossier/profile/familySituationForm\";\r\nimport { ChildrenForm } from \"../../../dossier/profile/childrenForm\";\r\nimport { ResidenceForm } from \"../../../dossier/profile/residenceForm\";\r\nimport { ProfessionalSituationForm } from \"../../../dossier/profile/professionalSituationForm\";\r\n\r\nexport const Step1 = ({ defaultPersonalData, isLoading, subsectionsStatuses, setSubsectionsStatuses }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tconst [personalData, setPersonalData] = useState({ ...defaultPersonalData });\r\n\tconst [isUpdating, setIsUpdating] = useState(false);\r\n\r\n\tconst civilForm = useRef(null);\r\n\tconst familySituationForm = useRef(null);\r\n\tconst childrenForm = useRef(null);\r\n\r\n\tconst professionalSituationForm = useRef(null);\r\n\r\n\t// useEffect(() => {\r\n\t// if(!R.isNil(defaultPersonalData)){\r\n\t// setPersonalData({...defaultPersonalData});\r\n\t// }\r\n\t// }, [defaultPersonalData])\r\n\r\n\tconst validateForms = () => {\r\n\t\t//CivilForm\r\n\t\tconst naturalite = document.getElementById(\"naturalite\");\r\n\t\tconst departmentNumberField = document.getElementById(\"departmentNumber\");\r\n\t\tif (naturalite.options[naturalite.selectedIndex].value == \"FR\" && departmentNumberField.options[departmentNumberField.selectedIndex].value === \"\") {\r\n\t\t\tdepartmentNumberField.setCustomValidity(\"Numéro de département non sélectionné\");\r\n\t\t} else {\r\n\t\t\tdepartmentNumberField.setCustomValidity(\"\");\r\n\t\t}\r\n\r\n\t\t//FamilySituationForm\r\n\t\tconst familyStatusFilled = document.getElementById(\"familyStatusFilled\");\r\n\t\tif (R.isNil(personalData.civilStatus)) {\r\n\t\t\tfamilyStatusFilled.setCustomValidity(\"Situation familiale non déclarée\");\r\n\t\t} else {\r\n\t\t\tfamilyStatusFilled.setCustomValidity(\"\");\r\n\t\t}\r\n\r\n\t\t//ChildrenFprm\r\n\t\tconst childrenFormFilled = document.getElementById(\"childrenFilled\");\r\n\t\tif (R.isNil(personalData.hasChildren)) {\r\n\t\t\tchildrenFormFilled.setCustomValidity(\"Situation familiale non déclarée\");\r\n\t\t} else {\r\n\t\t\tchildrenFormFilled.setCustomValidity(\"\");\r\n\t\t}\r\n\r\n\t\t//professionalSituationForm\r\n\t\tconst professionFormFilled = document.getElementById(\"professionFormFilled\");\r\n\t\tif (personalData.professionalSituation.length == 0) {\r\n\t\t\tprofessionFormFilled.setCustomValidity(\"Situation professionnelle non déclarée\");\r\n\t\t} else {\r\n\t\t\tprofessionFormFilled.setCustomValidity(\"\");\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(civilForm.current)) {\r\n\t\t\tcivilForm.current.classList.remove(\"was-validated\");\r\n\t\t}\r\n\t\tif (!R.isNil(familySituationForm.current)) {\r\n\t\t\tfamilySituationForm.current.classList.remove(\"was-validated\");\r\n\t\t}\r\n\t\tif (!R.isNil(childrenForm.current)) {\r\n\t\t\tchildrenForm.current.classList.remove(\"was-validated\");\r\n\t\t}\r\n\t\tif (!R.isNil(childrenForm.current)) {\r\n\t\t\tchildrenForm.current.classList.remove(\"was-validated\");\r\n\t\t}\r\n\t\tif (!R.isNil(professionalSituationForm.current)) {\r\n\t\t\tprofessionalSituationForm.current.classList.remove(\"was-validated\");\r\n\t\t}\r\n\r\n\t\tlet tempSubsectionsStatuses = { ...subsectionsStatuses };\r\n\r\n\t\tlet isCivilFormValid = true;\r\n\t\tconst civilFormInputs = $(\"#CivilForm :input\");\r\n\t\tcivilFormInputs.map((index, input) => {\r\n\t\t\tif (!input.checkValidity()) isCivilFormValid = false;\r\n\t\t});\r\n\r\n\t\tif (personalData.departmentNumber === \"\") {\r\n\t\t\tisCivilFormValid = false;\r\n\t\t\tdocument.getElementById(\"departmentNumber\").setCustomValidity(\"Numéro de département non sélectionné\");\r\n\t\t}\r\n\t\tif (isCivilFormValid && civilFormInputs.length > 0) {\r\n\t\t\ttempSubsectionsStatuses.civilForm = true;\r\n\t\t} else {\r\n\t\t\ttempSubsectionsStatuses.civilForm = false;\r\n\t\t}\r\n\r\n\t\tif (!R.isNil(personalData.civilStatus)) {\r\n\t\t\ttempSubsectionsStatuses.familySituationForm = true;\r\n\t\t}\r\n\r\n\t\tif (!R.isNil(personalData.hasChildren)) {\r\n\t\t\ttempSubsectionsStatuses.childrenForm = true;\r\n\t\t}\r\n\r\n\t\tif (personalData.professionalSituation.length > 0) {\r\n\t\t\ttempSubsectionsStatuses.professionalSituationForm = true;\r\n\t\t}\r\n\r\n\t\tlet isResidenceFormValid = true;\r\n\t\tconst residenceFormInputs = $(\"#ResidenceForm :input\");\r\n\t\tresidenceFormInputs.map((index, input) => {\r\n\t\t\tif (!input.checkValidity()) isResidenceFormValid = false;\r\n\t\t});\r\n\t\tif (isResidenceFormValid && residenceFormInputs.length > 0) {\r\n\t\t\ttempSubsectionsStatuses.residenceForm = true;\r\n\t\t} else {\r\n\t\t\ttempSubsectionsStatuses.residenceForm = false;\r\n\t\t}\r\n\t\tsetSubsectionsStatuses(tempSubsectionsStatuses);\r\n\t}, [personalData]);\r\n\r\n\tif (R.isNil(personalData) || R.isNil(defaultPersonalData)) {\r\n\t\treturn \"\";\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Informations du défunt

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*

En cliquant sur \"Passer à l'étape suivante\", vous acceptez les Conditions générales d'utilisation et la Politique de protection des données.

*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {}}>\r\n\t\t\t\t\t\t\tRetour\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\tsetIsUpdating(true);\r\n\t\t\t\t\t\t\t\tvalidateForms();\r\n\t\t\t\t\t\t\t\tlet canUpdate = true;\r\n\t\t\t\t\t\t\t\tif (!civilForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tcivilForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tcanUpdate = false;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (!familySituationForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tfamilySituationForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tcanUpdate = false;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (!childrenForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tchildrenForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tcanUpdate = false;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (!professionalSituationForm.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\tprofessionalSituationForm.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t\tcanUpdate = false;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (canUpdate) {\r\n\t\t\t\t\t\t\t\t\tPromise.all([dispatch(updateUserInfoById(personalData)), dispatch(updateOnboardingUserAddressById(personalData.id, personalData.userResidenceAddress))]).then(() => {\r\n\t\t\t\t\t\t\t\t\t\tdispatch(updateOnboardingStep(personalData.id, 2));\r\n\t\t\t\t\t\t\t\t\t\tsetIsUpdating(false);\r\n\t\t\t\t\t\t\t\t\t\thistory.push(`/facilita/${personalData.id}/onboarding/step2`);\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tsetIsUpdating(false);\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\tPasser à l'étape suivante\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { CommonServices } from '../../../../../constants/utils/connectionTypes';\r\n\r\n\r\nexport const DemarchesCommunes = ({userId, setSubStep, setSelectedUserConnection, selectedUserConnection}) => {\r\n return (\r\n
\r\n
\r\n
\r\n

Démarches communes

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Démarches déjà comprises dans le service :

\r\n

Déselectionnez les démarches que le défunt n'a pas.

\r\n
\r\n
\r\n {R.sortWith([R.ascend(R.prop('title'))])(Object.values(CommonServices)).map((srv, index) => {\r\n return (\r\n
\r\n
{\r\n if(!selectedUserConnection.includes(srv.connectionType)){\r\n setSelectedUserConnection([...selectedUserConnection, srv.connectionType]);\r\n }else{\r\n setSelectedUserConnection(selectedUserConnection.filter(s => s != srv.connectionType));\r\n }\r\n }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
})}

\r\n :\r\n ''\r\n }\r\n \r\n
\r\n
\r\n );\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n \r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport { useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { PersonalServices, SocialNetworksOptions, AssuranceOptions } from '../../../../../constants/utils/connectionTypes';\r\nimport * as Loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\n\r\nimport {updateUserConnectionBatch, updateOnboardingStep} from '../../../../../actions/facilita-api';\r\nimport { useDispatch } from 'react-redux';\r\n\r\n\r\nexport const DemarchesPersonalisees = ({userId, setSubStep, setSelectedUserConnection, selectedUserConnection, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n return (\r\n
\r\n
\r\n
\r\n

Démarches personnalisées

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Vie quotidienne à sélectionner :

\r\n

Vous devez sélectionner les organismes avec lesquels le défunt a un contrat ou un abonnement.

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(PersonalServices)).map((srv, index) => {\r\n return (\r\n
\r\n
{\r\n if(!selectedUserConnection.includes(srv.connectionType)){\r\n setSelectedUserConnection([...selectedUserConnection, srv.connectionType]);\r\n }else{\r\n setSelectedUserConnection(selectedUserConnection.filter(s => s !== srv.connectionType));\r\n }\r\n }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
})}

\r\n :\r\n ''\r\n }\r\n\r\n
\r\n
\r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

RÉSEAUX SOCIAUX ( à sélectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(SocialNetworksOptions)).map((srv, index) => {\r\n return (\r\n
\r\n
{\r\n if(!selectedUserConnection.includes(srv.connectionType)){\r\n setSelectedUserConnection([...selectedUserConnection, srv.connectionType]);\r\n }else{\r\n setSelectedUserConnection(selectedUserConnection.filter(s => s !== srv.connectionType));\r\n }\r\n }}>\r\n {srv.title}\r\n

{srv.title}

\r\n
\r\n
\r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n

ASSURANCES ( à selectionner)

\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(Object.values(AssuranceOptions)).map((srv, index) => {\r\n return (\r\n
\r\n
{\r\n if(!selectedUserConnection.includes(srv.connectionType)){\r\n setSelectedUserConnection([...selectedUserConnection, srv.connectionType]);\r\n }else{\r\n setSelectedUserConnection(selectedUserConnection.filter(s => s !== srv.connectionType));\r\n }\r\n }}>\r\n {srv.title}\r\n

{srv.title}

\r\n {\r\n !R.isNil(srv.desc) && srv.desc !== \"\" ?\r\n

{srv.desc.map((d, ind) => { return {d}{ind !== (srv.desc.length - 1) ?
: ''}
})}

\r\n :\r\n ''\r\n }\r\n
\r\n
\r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n {/*
\r\n
*/}\r\n
\r\n \r\n\r\n {\r\n isLoading.includes(Loadings.ADDING_USER_CONNECTION_BATCH) ?\r\n \r\n :\r\n \r\n }\r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { CommonServices, OtherService } from '../../../../../constants/utils/connectionTypes';\r\nimport {getUserConnections} from '../../../../../actions/facilita-api';\r\n\r\nimport { DemarchesCommunes } from './demarchesCommunes';\r\nimport { DemarchesPersonalisees } from './demarchesPersonalisees';\r\nimport { useDispatch } from 'react-redux';\r\n\r\n\r\nexport const Step2 = ({defaultPersonalData, isLoading, connectionTypes, setSubsectionsStatuses, subsectionsStatuses}) => {\r\n const dispatch = useDispatch();\r\n const [subStep, setSubStep] = useState(1);\r\n\r\n let initialState = Object.values(CommonServices).map(o => o.connectionType);\r\n if(connectionTypes.filter(c => c.connectionType !== OtherService.activity.connectionType && c.connectionType !== OtherService.pension.connectionType && c.connectionType !== OtherService.poleEmploi.connectionType && c.connectionType !== OtherService.otherActivity.connectionType && c.connectionType !== OtherService.locataire.connectionType ).length > 0){\r\n initialState = connectionTypes.map(c => c.connectionType);\r\n }\r\n\r\n const [selectedUserConnection, setSelectedUserConnection] = useState(initialState);\r\n\r\n useEffect(() => {\r\n dispatch(getUserConnections(defaultPersonalData.id));\r\n }, [])\r\n\r\n\r\n useEffect(() => {\r\n if(subStep > 1){\r\n setSubsectionsStatuses({...subsectionsStatuses, demarchesPersonalisee: true});\r\n }\r\n }, [subStep])\r\n\r\n useEffect(() => {\r\n if(connectionTypes.filter(c => c.connectionType !== OtherService.activity.connectionType && c.connectionType !== OtherService.pension.connectionType && c.connectionType !== OtherService.poleEmploi.connectionType && c.connectionType !== OtherService.otherActivity.connectionType && c.connectionType !== OtherService.locataire.connectionType ).length === 0){\r\n setSelectedUserConnection(Object.values(CommonServices).map(o => o.connectionType));\r\n }else{\r\n setSelectedUserConnection(connectionTypes.map(c => c.connectionType));\r\n }\r\n \r\n }, [connectionTypes])\r\n\r\n\r\n if(subStep === 1){\r\n return ();\r\n }else{\r\n return \r\n }\r\n}","import React from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\n\r\nimport featuresOverview from '../../../../../assets/images/placeholder/Features-Overview.svg';\r\nimport file from '../../../../../assets/images/svg/039-file.svg';\r\nimport arrowDashed from '../../../../../assets/images/svg/005-arrow-down-dashed.svg';\r\nimport arrowDirect from '../../../../../assets/images/svg/005-arrow-down-direct.svg';\r\nimport previewPdf from '../../../../../assets/images/placeholder/pdf-placeholder.jpg';\r\nimport * as R from 'ramda';\r\nimport * as Loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport {updateOnboardingStep} from '../../../../../actions/facilita-api';\r\nimport {ConnectionTypes, AssuranceOptions, SocialNetworksOptions, PersonalServices, CommonServices, OtherService } from '../../../../../constants/utils/connectionTypes';\r\n\r\nexport const Step3 = ({userId, connectionTypes, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n const serviceOptions = [].concat(Object.values(AssuranceOptions), Object.values(SocialNetworksOptions), Object.values(PersonalServices), Object.values(CommonServices), Object.values(OtherService));\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

La situation du défunt

\r\n
\r\n
\r\n
\r\n
\r\n

Pour votre information, entre les organismes de bases et les organismes complémentaires que vous avez sélectionné.

\r\n

Il y aura {connectionTypes.length} services à contacter (plusieurs organismes ou courriers par service).

A cela s'ajoutent 4 à 6 courriers (aides, allocations, réversions...)

\r\n
\r\n
\r\n \"features\r\n
\r\n
\r\n
\r\n
\r\n \"file\"\r\n
\r\n
Exemple: Courrier de résiliation d'abonnement mobile
\r\n

Visualisation du document nécessaire à la résiliation du contrat de la société de téléphonie mobile.

\r\n
\r\n
\r\n
\r\n {\r\n R.sortWith([R.ascend(R.prop('title'))])(connectionTypes).map((s, index) => {\r\n let service = Object.values(serviceOptions).find(o => o.connectionType === s.connectionType);\r\n if (R.isNil(service)) {\r\n return '';\r\n }\r\n return (\r\n
\r\n \"file\"\r\n
\r\n

{service.title}

\r\n
\r\n
\r\n );\r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n isLoading.includes(Loadings.UPDATING_USER_ONBOARDINGSTEP) ? \r\n
Passer à l'étape suivante
\r\n :\r\n
{ \r\n dispatch(updateOnboardingStep(userId, 5))\r\n .then(() => {\r\n history.push(`/facilita/${userId}/onboarding/step4`)\r\n })\r\n \r\n }}>Passer à l'étape suivante
\r\n }\r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
aperçu du document
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"pdf\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"file\"\r\n
\r\n

Liste des tâches à faire par vos proches au moment du décès.

\r\n
\r\n
\r\n
\r\n
\r\n
Sans notre aide
\r\n

Rechercher et lister tous les organismes

\r\n \"Step\"\r\n

Chercher leurs coordonnées

\r\n \"Step\"\r\n

Rédiger les courriers selon les mentions légales

\r\n \"Step\"\r\n

En faire une copie

\r\n \"Step\"\r\n

Les poster en recommandé

\r\n
\r\n
\r\n
Avec notre aide
\r\n

Se connecter

\r\n \"Direct\"\r\n
Valider
\r\n
\r\n
\r\n
\r\n
\r\n {/*

Vous voulez notre aide ?

*/}\r\n \r\n {/* */}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\n\r\nimport * as Loadings from '../../../../../constants/loadings/facilita/deathDeclaration';\r\nimport featuresOverview from '../../../../../assets/images/placeholder/Features-Overview.svg';\r\nimport {updateOnboardingStep} from '../../../../../actions/facilita-api';\r\n\r\nexport const BilledByPartner = ({userId, isLoading}) => {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \"features\r\n
\r\n

Résumé

\r\n

Résumé du dossier du défunt.

\r\n
\r\n
\r\n
\r\n

Votre dossier comprend :

\r\n
\r\n
\r\n
\r\n \r\n Création d'un dossier personnalisé\r\n
\r\n
\r\n \r\n Création, copie et adressage\r\n
\r\n
\r\n \r\n Un espace bibliothèque pour déposer des documents accessibles à tous les proches invités\r\n
\r\n
\r\n \r\n Un accès à la plateforme pendant 1 an après le décès\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n isLoading.includes(Loadings.UPDATING_USER_ONBOARDINGSTEP) ?\r\n \r\n :\r\n \r\n }\r\n \r\n
\r\n
\r\n
\r\n )\r\n}","export default __webpack_public_path__ + \"static/media/Features-mode.b7b9c62e.svg\";","import React, { useEffect, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport {PaymentMethods} from '../../../../../_common/payments2/index';\r\nimport {getCurrentPrices, updateOnboardingStep} from '../../../../../actions/facilita-api';\r\nimport {getBillingCustomerId, processPayment} from '../../../../../actions/user-api';\r\nimport {LoadingState} from '../../../../../_common/loadingState';\r\nimport * as R from 'ramda';\r\nimport featuresMode from '../../../../../assets/images/placeholder/Features-mode.svg';\r\n\r\nexport const BilledByPlatform = ({user, isLoading, referent}) => {\r\n const prices = [{product: \"Facilita\", basePrice: 260, reduction:0, currentPrice: 260, num: 1}, {product: \"Facilita4\", basePrice: 64, reduction:0, currentPrice: 64, num:4}]\r\n const [paymentPrice, setPaymentPrice] = useState({loaded: false, prices: prices, selectedOption: prices[0] });\r\n const [processingPayment, setProcessingPayment] = useState(false);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n\r\n useEffect(() => {\r\n dispatch(getBillingCustomerId(referent.id)).then(() => {\r\n getCurrentPrices(user.id)\r\n .then((prices) => {\r\n const facilitaPrices = prices.filter(p => p.product === \"Facilita\" || p.product === \"Facilita4\");\r\n if(!R.isEmpty(facilitaPrices)){\r\n let sortedFacilitaPrices = R.sortBy(R.prop(\"product\"), facilitaPrices);\r\n setPaymentPrice({loaded: true, prices: sortedFacilitaPrices, selectedOption:sortedFacilitaPrices[0]});\r\n }else{\r\n setPaymentPrice({...paymentPrice, loaded: true});\r\n }\r\n });\r\n }); \r\n \r\n }, []);\r\n\r\n if(!paymentPrice.loaded || R.isNil(referent)){\r\n return ;\r\n }\r\n \r\n return (\r\n
\r\n
\r\n
\r\n

Paiement

\r\n

Résumé du dossier du défunt.

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
0 ? \"\" : \" text-center\")}>\r\n { referent.paymentMethods.length > 0 ?\r\n ''\r\n :\r\n \"features\r\n }\r\n

Mode de paiement

\r\n

Cliquez ci-dessous pour ajouter ou modifier une méthode de paiement

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Votre dossier comprend :

\r\n
\r\n
\r\n
\r\n
\r\n \r\n Création d’un dossier personnalisé\r\n
\r\n
\r\n \r\n Création, copie et adressage\r\n
\r\n
\r\n \r\n Un espace bibliothèque pour déposer des documents accessibles à tous les proches invités\r\n
\r\n
\r\n \r\n Un accès à la plateforme pendant 1 an après le décès\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Total TTC

\r\n

{paymentPrice.prices.find(p => p.product === \"Facilita\").currentPrice.toFixed(2)} €

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Vous pouvez mensualiser votre dossier
\r\n
\r\n
\r\n \r\n {/* */}\r\n \r\n
\r\n

{paymentPrice.selectedOption.currentPrice} €

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Retour\r\n {\r\n processingPayment ?\r\n \r\n :\r\n \r\n\r\n }\r\n \r\n
\r\n
\r\n
\r\n )\r\n}","import React from 'react';\r\nimport { BilledByPartner } from './billedByPartner';\r\nimport { BilledByPlatform } from './billedByPlatform';\r\n\r\n\r\nexport const Step4 = ({user, isLoading, referent}) => {\r\n if(user.billedByPartner){\r\n return \r\n }else{\r\n return \r\n }\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useParams } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\n\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { ToastContainer } from 'react-toastify';\r\n\r\nimport {getUserInfoById, getOnboardingUserAddressesByUserId} from '../../../actions/facilita-api';\r\nimport { fetchPartnerCustomization } from './../../../actions/user-api';\r\n\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport { Navbar } from './navbar';\r\nimport { Help } from './../_common/help';\r\nimport { Path } from './../_common/path';\r\n\r\nimport { Step1 } from './steps/step1';\r\nimport { Step2 } from './steps/step2';\r\nimport { Step3 } from './steps/step3';\r\nimport { Step4 } from './steps/step4';\r\n\r\nexport const Onboarding = ({user}) => {\r\n const dispatch = useDispatch();\r\n const deathDeclarationState = useSelector(state => state.deathDeclaration);\r\n const facilitaState = useSelector(state => state.facilita);\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n const [partnerCustomization, setPartnerCustomization] = useState({\r\n\t\tisLoaded: false,\r\n\t\tlogoBase64Encoded: undefined,\r\n\t\tcolor: undefined\r\n\t });\r\n \r\n\r\n const [subsectionsStatuses, setSubsectionsStatuses] = useState({\r\n civilForm: false,\r\n familySituationForm: false,\r\n childrenForm: false,\r\n residenceForm: false,\r\n professionalSituationForm: false,\r\n });\r\n\r\n const [serviceSubsectionsStatuses, setServiceSubsectionsStatuses] = useState({\r\n demarchesCommunes: false,\r\n demarchesPersonalisee: false\r\n });\r\n\r\n const {userId} = useParams();\r\n\r\n useEffect(() => {\r\n dispatch(getUserInfoById(userId))\r\n .then(() => {\r\n dispatch(getOnboardingUserAddressesByUserId(userId)).then(() => setLoaded(true));\r\n }\r\n );\r\n }, [userId]);\r\n\r\n useEffect(() => {\r\n if(!R.isNil(deathDeclarationState.user.partnerId) && deathDeclarationState.user.partnerId !== '00000000-0000-0000-0000-000000000000'){\r\n dispatch(fetchPartnerCustomization(deathDeclarationState.user.partnerId))\r\n\t\t\t\t.then((customization) => {\r\n\t\t\t\t\tif (!R.isNil(customization) && !R.isNil(customization.data)) {\r\n\t\t\t\t\t\tsetPartnerCustomization({ ...customization.data, isLoaded: true });\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch(() => setPartnerCustomization({ ...partnerCustomization, isLoaded: true }));\r\n }else{\r\n setPartnerCustomization({...partnerCustomization, isLoaded: true})\r\n }\r\n }, [deathDeclarationState.user])\r\n\r\n\r\n \r\n\r\n if(!loaded){\r\n return (\r\n
\r\n \r\n
\r\n )\r\n }\r\n\r\n const deceasedUser = facilitaState.representing.find(r => r.id === userId);\r\n \r\n\r\n return (\r\n
\r\n \r\n\t\t\t\t\t

Assist@

\r\n \r\n
\r\n\t\t\t\t\t\t

Assist@: Main

\r\n
\r\n \r\n \t\t\t\t\t\t\t\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return \r\n }} />\r\n \r\n
\r\n
\r\n )\r\n}","import React, { useEffect, Fragment, useState } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport * as Loadings from '../../constants/loadings/user';\r\nimport JwtDecode from 'jwt-decode';\r\nimport { fetchUserById, getProfilePicture, fetchPartnerCustomization, getDocuments } from '../../actions/user-api';\r\n\r\nimport * as axios from 'axios';\r\nimport { getUserRepresentingById } from '../../actions/facilita-api';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n\r\n// Referent\r\n// ==========================================\r\n// Referent: Common\r\nimport { Navbar } from './_common/navbar';\r\nimport { Help } from './_common/help';\r\nimport { Path } from './_common/path';\r\n\r\n// Facilita: Views\r\nimport { Landing } from './landing';\r\nimport { Settings } from './settings';\r\nimport { Dossier } from './dossier';\r\nimport { Declarer } from './declarer';\r\nimport { Onboarding } from './onboarding';\r\n\r\nimport * as R from 'ramda';\r\nimport { FileTypes } from '../../constants/utils/fileTypes';\r\n// import Dossier from './dossier';\r\n\r\nexport const Facilita = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst location = useLocation();\r\n\tconst router = useSelector(state => state.router);\r\n\tconst userState = useSelector(state => state.facilita);\r\n\tconst user = useSelector(state => state.user);\r\n\tconst deathDeclarationState = useSelector(state => state.deathDeclaration);\r\n\tconst [roles, setRoles] = useState([]);\r\n\r\n\tconst [partnerCustomization, setPartnerCustomization] = useState({\r\n\t\tisLoaded: false,\r\n\t\tlogoBase64Encoded: undefined,\r\n\t\tcolor: undefined\r\n\t});\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tvar accessToken = sessionStorage.getItem(\"access_token\");\r\n\r\n\t\tif (!R.isNil(accessToken)) {\r\n\t\t\taxios.defaults.headers.common['Authorization'] = \"Bearer \" + accessToken;\r\n\t\t\tvar decoded = JwtDecode(accessToken);\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n\t\t\t\tdispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n\t\t\t}\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"])) {\r\n\t\t\t\tsetRoles(decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(userState.user)) {\r\n\t\t\tdispatch(getDocuments(user.user));\r\n\t\t\tdispatch(getUserRepresentingById(userState.user.id));\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [userState.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst profilePicture = user.documents.find(d => d.fileType === FileTypes.ProfilePicture);\r\n\t\tif (!R.isNil(profilePicture))\r\n\t\t\tdispatch(getProfilePicture(user.user.id, profilePicture.fileName));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.documents]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif ((!R.isNil(deathDeclarationState.user) && !R.isNil(deathDeclarationState.user.partnerId) && deathDeclarationState.user.partnerId !== '00000000-0000-0000-0000-000000000000') ||\r\n\t\t\t(!R.isNil(deathDeclarationState.declaration) && !R.isNil(deathDeclarationState.declaration.partnerId) && deathDeclarationState.declaration.partnerId !== '00000000-0000-0000-0000-000000000000')) {\r\n\t\t\tconst customizationUserPartnerId = !R.isNil(deathDeclarationState.user) ? deathDeclarationState.user.partnerId : deathDeclarationState.declaration.partnerId;\r\n\t\t\tdispatch(fetchPartnerCustomization(customizationUserPartnerId))\r\n\t\t\t\t.then((customization) => {\r\n\t\t\t\t\tif (!R.isNil(customization) && !R.isNil(customization.data)) {\r\n\t\t\t\t\t\tsetPartnerCustomization({ ...customization.data, isLoaded: true });\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch(() => setPartnerCustomization({ ...partnerCustomization, isLoaded: true }));\r\n\t\t} else {\r\n\t\t\tsetPartnerCustomization({ color: undefined, logoBase64Encoded: undefined, isLoaded: true });\r\n\t\t}\r\n\t}, [deathDeclarationState.user, deathDeclarationState.declaration]);\r\n\r\n\r\n\tif (!partnerCustomization.isLoaded) {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n\r\n\r\n\tif (R.isNil(userState.user) || !partnerCustomization.isLoaded) {\r\n\t\t//SHOW A LOADING\r\n\t\tif (userState.isLoading.includes(Loadings.FETCH_USER)) {\r\n\t\t\treturn (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t{/*
*/}\r\n\t\t\t\t\t

Assist@

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Assist@: Main

\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t !r.isDeceased && r.hasCompletedDossier)} />\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Link, NavLink } from 'react-router-dom';\r\nimport colorContrast from 'color-contrast';\r\nimport * as R from 'ramda';\r\nimport { GetPartnerLogo } from './../../actions/partner/partner';\r\n\r\nimport logo_hr from './../../assets/images/brand/assista_horizontal-punchout.svg';\r\nimport logo from './../../assets/images/brand/assista.svg';\r\nimport { Avatar } from './../../_common/avatar';\r\nimport { FileTypes } from '../../constants/utils/fileTypes';\r\n\r\nexport const Navbar = ({ user, partner, etablissement, profilePicture, isPartner, userInfo, showSerenita }) => {\r\n const router = useSelector(state => state.router);\r\n\r\n\r\n const [logo, setLogo] = useState(logo_hr);\r\n const [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(profilePicture)) {\r\n let i = new Image();\r\n i.onload = function () {\r\n setWidthIsBigger(i.width > i.height);\r\n };\r\n i.src = profilePicture;\r\n }\r\n }, [profilePicture]);\r\n\r\n const organizationName = R.isNil(etablissement) ? R.isNil(partner) ? '' : partner.name : etablissement.name;\r\n if (partner.hasLogo) {\r\n GetPartnerLogo(partner.id).then((resp) => {\r\n setLogo(resp);\r\n });\r\n }\r\n if (R.isNil(user)) {\r\n return \"\";\r\n }\r\n\r\n return (\r\n \r\n
= 2.5 ? \" text-white navbar-dark\" : \" navbar-light\") : \" text-white navbar-dark\")}>\r\n
\r\n \r\n {partner.hasLogo ?\r\n \"Assist@\r\n :\r\n \"Assist@\"\r\n }\r\n {/* \"Assist@\" */}\r\n

Assist@: Menu

\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n d.fileType === FileTypes.ProfilePicture)} />\r\n
\r\n );\r\n};","export default __webpack_public_path__ + \"static/media/112-person-white.65e04deb.svg\";","export default __webpack_public_path__ + \"static/media/113-funeral.8b1b79f7.svg\";","export default __webpack_public_path__ + \"static/media/145-customer-service.025b917d.svg\";","import React from 'react';\r\nimport * as R from 'ramda';\r\n\r\nimport anticipa from './../../../assets/images/svg/112-person-white.svg';\r\nimport facilita from './../../../assets/images/svg/113-funeral.svg';\r\nimport serenita from './../../../assets/images/svg/145-customer-service.svg';\r\n\r\n\r\nexport const DossierTypeSection = ({ account, setAccount, dossierTypeOptions, steps, etablissement}) => {\r\n return (\r\n
\r\n
\r\n
\r\n

Type de dossier

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Choisissez le type de dossier que vous souhaitez créer:

\r\n
\r\n
{setAccount({...account, type: dossierTypeOptions.anticipa})}}>\r\n
\r\n
\r\n \"Anticipa\"\r\n
\r\n
\r\n
\r\n
Anticipa
\r\n

Dossier administratif qui accompagne vos clients toute leur vie

\r\n
\r\n
\r\n
{setAccount({...account, type: dossierTypeOptions.facilita})}}>\r\n
\r\n
\r\n \"facilita\"\r\n
\r\n
\r\n
\r\n
Facilita
\r\n

Dossier qui accompagne dans toutes les démarches lors d'un décès

\r\n
\r\n
\r\n {\r\n etablissement.isSerenita ?\r\n
{setAccount({...account, type: dossierTypeOptions.serenita})}}>\r\n
\r\n
\r\n \"facilita\"\r\n
\r\n
\r\n
\r\n
Serenita
\r\n

Accompagnement téléphonique à la complétude du dossier et réalisation des démarches après décès

\r\n
\r\n
\r\n :\r\n \"\"\r\n }\r\n
\r\n
Veuillez choisir une option
\r\n
\r\n
\r\n )\r\n}","import React, { useState } from 'react';\r\nimport {DateWithModal} from '../../../_common/dateWithModal';\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport {RegexFields} from '../../../constants/utils/regexFields';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport $ from 'jquery';\r\n\r\nimport liendirect from './../../../assets/images/svg/049-family.svg';\r\nimport autres from './../../../assets/images/svg/051-parents.svg';\r\n\r\n\r\nexport const ReferentSection = ({referent, setReferent, skipReferentSection, steps, setSkipReferentSection, dossierTypeOptions, accountType}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const gender = { male: 2, female: 1 };\r\n const [viewRelationShipOptions, setViewRelationshipOptions] = useState(true);\r\n const representativeType = {child: 1, parent:2, sibling:3, spouse:4, other:5};\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tInformations sur le référent\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

ETAT CIVIL *

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setReferent({ ...referent, gender: gender.female })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setReferent({ ...referent, gender: gender.male })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setReferent({ ...referent, firstName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setReferent({ ...referent, lastName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, birthDate: d });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, email: event.target.value });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, countryCode: event.target.value, phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t{countryTelData.allCountries.map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\tlet dialCode = country.dialCode;\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"TelephoneReferentInput\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setReferent({ ...referent, address: { ...referent.address, addressLine1: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t setReferent({ ...referent, address: { ...referent.address, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\tcountry={referent.address.country}\r\n\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{referent.address.country === null || referent.address.country === \"FR\" || referent.address.country === \"GF\" || referent.address.country === \"PF\" || referent.address.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, address: { ...referent.address, postalCode: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, address: { ...referent.address, postalCode: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setReferent({ ...referent, address: { ...referent.address, city: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, address: { ...referent.address, country: event.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

{accountType !== dossierTypeOptions.anticipa ? \"Vous êtes\" : \"Relation avec la personne\"} *

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
setViewRelationshipOptions(true)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\"lien\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\tlien familial
\r\n\t\t\t\t\t\t\t\t\t\t\t\tdirect\r\n\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetViewRelationshipOptions(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetReferent({ ...referent, representativeType: representativeType.other });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\"autres\"\r\n\t\t\t\t\t\t\t\t\t\t\t

autres

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{viewRelationShipOptions ? (\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t setReferent({ ...referent, representativeType: representativeType.child })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t setReferent({ ...referent, representativeType: representativeType.parent })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t setReferent({ ...referent, representativeType: representativeType.sibling })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t setReferent({ ...referent, representativeType: representativeType.spouse })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t{accountType !== dossierTypeOptions.anticipa ? (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t————————ou————————\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tif (skipReferentSection) {\r\n\t\t\t\t\t\t\t\t\t\tif (steps.length > 3) {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#accordionSendingMode\").collapse(\"show\");\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#accordionRefDossier\").collapse(\"hide\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tsetSkipReferentSection(true);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tRemplir plus tard\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React, { useState } from 'react';\r\nimport {DateWithModal} from '../../../_common/dateWithModal';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport {RegexFields} from '../../../constants/utils/regexFields';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\n\r\nexport const PersonalInformationSection = ({ account, setAccount, dossierTypeOptions, steps}) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const gender = { male: 2, female: 1 };\r\n\r\n return (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{account.type === dossierTypeOptions.anticipa ? \"Renseignements personnels\" : \"Renseignements du défunt\"}\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

ETAT CIVIL*

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAccount({ ...account, gender: gender.female })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAccount({ ...account, gender: gender.male })} />\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
Veuillez choisir une option
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, firstName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, lastName: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.nameWithoutNumbers}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, birthDate: d });\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// account.type === dossierTypeOptions.facilita ?\r\n\t\t\t\t\t\t\t\t//
\r\n\t\t\t\t\t\t\t\t// \r\n\t\t\t\t\t\t\t\t//
\r\n\t\t\t\t\t\t\t\t// {setAccount({...account, deathDate: d})}} />\r\n\t\t\t\t\t\t\t\t//
\r\n\t\t\t\t\t\t\t\t//
\r\n\t\t\t\t\t\t\t\t// :\r\n\t\t\t\t\t\t\t\t// ''\t\t\t\t\t\t\t\tadresse mail du défunt ou du service assistance\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{account.type !== dossierTypeOptions.anticipa ? (\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, email: event.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"email\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.email}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, countryCode: event.target.value, phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t{countryTelData.allCountries.map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet dialCode = country.dialCode;\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"phoneNumber\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setAccount({ ...account, address: { ...account.address, addressLine1: e.target.value } })} />\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t setAccount({ ...account, address: { ...account.address, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\tcountry={account.address.country}\r\n\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{account.address.country === null || account.address.country === \"FR\" || account.address.country === \"GF\" || account.address.country === \"PF\" || account.address.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, address: { ...account.address, postalCode: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\tpattern={RegexFields.frenchZipCode}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, address: { ...account.address, postalCode: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, address: { ...account.address, city: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetAccount({ ...account, address: { ...account.address, country: e.target.value } });\r\n\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { CircularProgressbar } from 'react-circular-progressbar';\r\nimport money from './../../../assets/images/svg/109-money.svg';\r\nimport anticipa from './../../../assets/images/svg/112-person-white.svg';\r\nimport facilita from './../../../assets/images/svg/113-funeral.svg';\r\nimport serenita from './../../../assets/images/svg/145-customer-service.svg';\r\n\r\nexport const AjouterDossierHeader = ({account, setAccount, dossierTypeOptions, steps, etablissement}) => {\r\n if(R.isNil(steps)){\r\n return '';\r\n }\r\n\r\n const completedSteps = steps.filter(s => s === true);\r\n\r\n let logo = anticipa;\r\n if(account.type === dossierTypeOptions.facilita){\r\n logo = facilita;\r\n }else if(account.type === dossierTypeOptions.serenita){\r\n logo = serenita;\r\n } \r\n \r\n return (\r\n
\r\n

Status

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n

Actions

\r\n

{steps.filter(s => !s).length} à réaliser

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {account.type}\r\n
\r\n
\r\n
\r\n

Type

\r\n

{account.type}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"money\"\r\n
\r\n
\r\n
\r\n

Paiement

\r\n

\r\n {\r\n account.billedByPartner === true ?\r\n \"En interne\"\r\n :\r\n account.billedByPartner === false ?\r\n \"Par le client en direct\"\r\n :\r\n \"-\"\r\n }\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","export default __webpack_public_path__ + \"static/media/143-envelope.48892151.svg\";","export default __webpack_public_path__ + \"static/media/059-cash.b7f06057.svg\";","export default __webpack_public_path__ + \"static/media/060-bank.c029c172.svg\";","export default __webpack_public_path__ + \"static/media/144-print.6cd1f913.svg\";","import React from 'react';\r\nimport envelope from './../../../assets/images/svg/143-envelope.svg';\r\nimport print from './../../../assets/images/svg/144-print.svg';\r\n\r\n\r\nexport const LettersSendingModeSection = ({account, setAccount, steps}) => {\r\n return (\r\n
\r\n
\r\n
\r\n

Mode d'envoi des courriers

\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Choisissez le mode d'envoi des courriers générés

\r\n
\r\n
setAccount({...account, hasDocumentSending:false})}>\r\n
\r\n
\r\n \"print\"\r\n
\r\n
\r\n
\r\n
Téléchargement et impression par le client
\r\n
\r\n
\r\n
setAccount({...account, hasDocumentSending:true})}>\r\n
\r\n
\r\n \"envelope\"\r\n
\r\n
\r\n
\r\n
Envoi par la poste en recommandé via application
\r\n
\r\n
\r\n
\r\n
Veuillez choisir une option
\r\n
\r\n
\r\n )\r\n}","import React, { useRef, useState, useEffect } from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nimport {CreateUsersByPartnerId, AddUserAddress, AddReferentToUserId, SendUserActivationEmailByPartnerId} from '../../../actions/partner/partner';\r\nimport {ToasterConfigurations} from '../../../constants/toasterText/configurations';\r\n\r\nimport { DossierTypeSection } from './dossierTypeSection';\r\nimport { ReferentSection } from './referentSection';\r\nimport { PersonalInformationSection } from './personalInformationSection';\r\nimport {AjouterDossierHeader} from './header';\r\nimport {PaymentModeSection} from './paymentModeSection';\r\nimport { useDispatch } from 'react-redux';\r\nimport { toast } from 'react-toastify';\r\nimport { LettersSendingModeSection } from './lettersSendingModeSection';\r\n\r\nexport const AjouterDossier = ({partner, etablissement}) => {\r\n\tconst history = useHistory();\r\n\tconst dispatch = useDispatch();\r\n\tconst creationForm = useRef(null);\r\n\r\n\tlet defaultSteps = [false, false, false];\r\n\tif(etablissement.partnerDocumentSendingType === 'DefineOnAccountCreation'){\r\n\t\tdefaultSteps = [false, false, false, false];\r\n\t}\r\n\r\n\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [steps, setSteps] = useState(defaultSteps);\r\n\tconst [skipReferentSection, setSkipReferentSection] = useState(false);\r\n\t\r\n\tconst dossierTypeOptions = {anticipa:'Anticipa', facilita: 'Facilita', serenita: 'Serenita'};\r\n\r\n\r\n\tfunction scrollToFirstInvalid() {\r\n const nodes = window.document.querySelectorAll('.was-validated .form-control:invalid');\r\n if (!R.isNil(nodes) && nodes.length > 0) {\r\n // let nodesNotHidden = nodes.find(n => !n.classList.includes('hidden'));\r\n nodes[0].scrollIntoView({ behavior: 'smooth' });\r\n }\r\n\t}\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\t\r\n\r\n\tconst [account, setAccount] = useState({\r\n\t\ttype: undefined,\r\n\t\tgender: undefined,\r\n\t\tfirstName: '', \r\n\t\tlastName:'', \r\n\t\tbirthDate: undefined,\r\n\t\tdeathDate: undefined,\r\n\t\temail: '',\r\n\t\tphoneNumber: '',\r\n\t\tcountryCode: '33',\r\n\t\tphoneCountry: 'FR',\r\n\t\tbilledByPartner: true,\r\n\t\tpartnerId: partner?.id,\r\n\t\tetablissementId: etablissement?.id,\r\n\t\thasDocumentSending: etablissement?.partnerDocumentSendingType === \"AlwaysSendByPost\" ? true : etablissement?.partnerDocumentSendingType === \"NeverSendByPost\" ? false : undefined,\r\n\t\taddress: {\r\n\t\t\taddressContract:'1',\r\n\t\t\taddressType:'1',\r\n\t\t\taddressLine1:'',\r\n\t\t\taddressLine2:'',\r\n\t\t\tpostalCode:'',\r\n\t\t\tcity:'',\r\n\t\t\tcountry:'FR',\r\n\t\t},\r\n\t\treferent:{\r\n\t\t\tgender: undefined,\r\n\t\t\tfirstName: '', \r\n\t\t\tlastName:'',\r\n\t\t\tbirthDate: undefined,\r\n\t\t\temail: '',\r\n\t\t\tphoneNumber: '',\r\n\t\t\tcountryCode: '33',\r\n\t\t\tphoneCountry: 'FR',\r\n\t\t\tuserId: undefined,\r\n\t\t\taddress: {\r\n\t\t\t\taddressContract:'1',\r\n\t\t\t\taddressType:'1',\r\n\t\t\t\taddressLine1:'',\r\n\t\t\t\taddressLine2:'',\r\n\t\t\t\tpostalCode:'',\r\n\t\t\t\tcity:'',\r\n\t\t\t\tcountry:'FR',\r\n\t\t\t},\r\n\t\t}\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\tif(!R.isNil(creationForm.current)){\r\n\t\t\tcreationForm.current.classList.remove('was-validated');\r\n\t\t}\r\n\r\n\t\t\r\n\t\tlet newSteps = [...steps];\r\n\t\tif(!R.isNil(account.type)){\r\n\t\t\tnewSteps = newSteps.map((value, index) => index === 0 ? true : value);\r\n\t\t\t$($(\"#accordionTypeDossier .invalid-feedback\")[0]).removeClass(\"d-block\");\r\n\t\t}\r\n\r\n\t\t// if(!R.isNil(account.billedByPartner)){\r\n\t\t// \tnewSteps = newSteps.map((value, index) => index === 3 ? true : value);\r\n\t\t// \t$($(\"#accordionPayDossier .invalid-feedback\")[0]).removeClass(\"d-block\");\r\n\t\t// }\r\n\r\n\t\tif(etablissement.partnerDocumentSendingType === 'DefineOnAccountCreation' && !R.isNil(account.hasDocumentSending)){\r\n\t\t\tnewSteps = newSteps.map((value, index) => index === 3 ? true : value);\r\n\t\t\t$($(\"#accordionSendingMode .invalid-feedback\")[0]).removeClass(\"d-block\");\r\n\t\t}\r\n\t\t\r\n\t\tlet isPersonalInformationSectionValid = true;\r\n\t\tconst personalInformationSectionInputs = $(\"#PersonalInformationSection :input\");\r\n\t\tpersonalInformationSectionInputs.map((index, input) => {\r\n\t\t\tif(!input.checkValidity())\r\n\t\t\tisPersonalInformationSectionValid = false;\r\n\t\t});\r\n\t\tif(isPersonalInformationSectionValid && personalInformationSectionInputs.length > 0){\r\n\t\t\tnewSteps = newSteps.map((value, index) => index === 1 ? true : value);\r\n\t\t}else{\r\n\t\t\tnewSteps = newSteps.map((value, index) => index === 1 ? false : value);\r\n\t\t}\r\n\r\n\t\tif(skipReferentSection){\r\n\t\t\tnewSteps = newSteps.map((value, index) => index === 2 ? true : value);\r\n\t\t}else{\r\n\t\t\tlet isReferentSectionValid = true;\r\n\t\t\tconst referentSectionInputs = $(\"#ReferentSection :input\");\r\n\t\t\treferentSectionInputs.map((index, input) => {\r\n\t\t\t\tif(!input.checkValidity())\r\n\t\t\t\tisReferentSectionValid = false;\r\n\t\t\t});\r\n\t\t\tif(isReferentSectionValid && referentSectionInputs.length > 0){\r\n\t\t\t\tnewSteps = newSteps.map((value, index) => index === 2 ? true : value);\r\n\t\t\t}else{\r\n\t\t\t\tnewSteps = newSteps.map((value, index) => index === 2 ? false : value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetSteps(newSteps);\r\n\t\t\t\r\n\t}, [account, skipReferentSection]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif(steps.every(step => step === true) && skipReferentSection){\r\n\t\t\t$('#accordionRefDossier').collapse('hide');\r\n\t\t}\r\n\t\tif(steps.length === 4 && steps.slice(0,3).every(step => step === true) && steps[3] === false){\r\n\t\t\tdocument.getElementById(\"next-button\").click();\r\n\t\t}\r\n\t}, [steps])\r\n\r\n\tuseEffect(() => {\r\n\t\tsetSkipReferentSection(false);\r\n\t}, [account.referent])\r\n\r\n\t\r\n\r\n\tif(R.isNil(etablissement) || R.isNil(partner))\r\n\t\treturn '';\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Partner Dossier

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
ajouter un nouveau dossier
\r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{/* to lock and accordion add to the card-header the classes: 'o-60 no-event' once is done add to title h3 the class: 'text-success'*/}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t setAccount({...account, referent:referent})} steps={steps} skipReferentSection={skipReferentSection} setSkipReferentSection={setSkipReferentSection} dossierTypeOptions={dossierTypeOptions} accountType={account.type} />\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tetablissement.partnerDocumentSendingType === 'DefineOnAccountCreation' ?\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tFermer\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsteps.some(step => step === false) ?\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\tisLoading ? \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
* champs obligatoires
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n}","export default __webpack_public_path__ + \"static/media/057-contract-1.cd7a7b1e.svg\";","import React from 'react';\r\n\r\nexport const ModalCalendy = ({text}) => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

Prise de RDV avec conseiller Sérénita

\r\n\t\t\t\t\t\t

\r\n Veuillez réserver un rendez-vous avec un conseiller Sérénita au travers du lien:
\r\n https://calendly.com/service-serenita/serenita\r\n

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}","import React, { useEffect, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\nimport $ from \"jquery\";\r\nimport { Link, NavLink } from \"react-router-dom\";\r\n\r\nimport Emptylustration from \"./../../assets/images/svg/057-contract-1.svg\";\r\nimport anticipa from \"./../../assets/images/svg/112-person-white.svg\";\r\nimport facilita from \"./../../assets/images/svg/113-funeral.svg\";\r\nimport serenita from \"./../../assets/images/svg/145-customer-service.svg\";\r\n\r\nimport { ModalCalendy } from \"./modalCalendy\";\r\n\r\nexport const Dashboard = ({ users, partner, etablissement, isPartner, partnerstate, anticipaUsersRepresentative, facilitaUsersRepresentative, serenitaUsersRepresentative }) => {\r\n\tconst filterOptions = { all: \"tous\", notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", finished: \"complété\", yearAndMore: \"plus d'un an\", closed: \"clôture\" };\r\n\tconst facilitafilterOptions = { all: \"tous\", notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", sending: \"A envoyer\" };\r\n\t// const facilitafilterOptions = { all: \"tous\", notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", sending: \"A envoyer\", overtime: \"Dépassé la limite\" };\r\n\tconst [filterAnticipa, setFilterAnticipa] = useState(filterOptions.all);\r\n\tconst [filterFacilita, setFilterFacilita] = useState(facilitafilterOptions.all);\r\n\tconst [filterSerenita, setFilterSerenita] = useState(facilitafilterOptions.all);\r\n\r\n\tconst [headerStatistics, setHeaderStatistics] = useState({ facilita: partnerstate.allDossiers.totalFacilita, anticipa: partnerstate.allDossiers.totalAnticipa, serenita: partnerstate.allDossiers.totalSerenita });\r\n\tconst [anticipaUsers, setAnticipaUsers] = useState([]);\r\n\tconst [facilitaUsers, setFacilitaUsers] = useState([]);\r\n\tconst [serenitaUsers, setSerenitaUsers] = useState([]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(anticipaUsersRepresentative) && R.isNil(facilitaUsersRepresentative) && R.isNil(serenitaUsersRepresentative)) return;\r\n\r\n\t\tif (filterAnticipa === filterOptions.all) {\r\n\t\t\tsetAnticipaUsers(anticipaUsersRepresentative);\r\n\t\t} else {\r\n\t\t\tsetAnticipaUsers(anticipaUsersRepresentative.filter((u) => filterOptions[u.status] === filterAnticipa));\r\n\t\t}\r\n\r\n\t\tif (filterFacilita === facilitafilterOptions.all) {\r\n\t\t\tsetFacilitaUsers(facilitaUsersRepresentative);\r\n\t\t} else {\r\n\t\t\tsetFacilitaUsers(facilitaUsersRepresentative.filter((u) => facilitafilterOptions[u.status] === filterFacilita));\r\n\t\t}\r\n\r\n\t\tif (filterSerenita === facilitafilterOptions.all) {\r\n\t\t\tsetSerenitaUsers(serenitaUsersRepresentative);\r\n\t\t} else {\r\n\t\t\tsetSerenitaUsers(serenitaUsersRepresentative.filter((u) => facilitafilterOptions[u.status] === filterSerenita));\r\n\t\t}\r\n\t}, [filterAnticipa, filterFacilita, filterSerenita, anticipaUsersRepresentative, facilitaUsersRepresentative, serenitaUsersRepresentative]);\r\n\r\n\tif (window.location.search !== \"\") {\r\n\t\tconst modal = new URLSearchParams(window.location.search).get(\"showModal\");\r\n\t\tif (modal === \"calendly\") {\r\n\t\t\t$(\"#commencerReferent\").modal(\"show\");\r\n\t\t}\r\n\t}\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"Anticipa\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

nombre dossier

\r\n\t\t\t\t\t\t\t\t\t

{headerStatistics.anticipa} Anticipa

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"Facilita\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

nombre dossier

\r\n\t\t\t\t\t\t\t\t\t

{headerStatistics.facilita} Facilita

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{!R.isNil(etablissement) && etablissement.isSerenita ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\"Serenita\"\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t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t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Anticipa

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tVoir tout \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{!R.isEmpty(anticipaUsers) ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{anticipaUsers.slice(0, 50).map((user) => {\r\n\t\t\t\t\t\t\t\t\tconst userEtablissement = isPartner ? partnerstate.etablissementList.items.find((i) => i.id === user.etablissementId) : null;\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{user.firstName + \" \" + user.lastName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{user.hasHrDocuments ? RH : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{!R.isNil(user.mainRepresentative) ? user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName : \"\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{filterOptions[user.status] === filterOptions.notAccepted ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tN'a pas accepté\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : filterOptions[user.status] === filterOptions.ongoing ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ten cours\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : filterOptions[user.status] === filterOptions.finished ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComplété\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tContrat d'un an\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{new Intl.DateTimeFormat(\"fr-FR\").format(user.creationDate)}

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{isPartner ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tEtablissement: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{userEtablissement.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Aucun dossier

\r\n\t\t\t\t\t\t\t\t\t

S'il vous plaît voir un autre état.

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Facilita

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tVoir tout \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{!R.isNil(facilitaUsers) && !R.isEmpty(facilitaUsers) ? (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{facilitaUsers.slice(0, 50).map((user) => {\r\n\t\t\t\t\t\t\t\t\tconst userEtablissement = isPartner ? partnerstate.etablissementList.items.find((i) => i.id === user.etablissementId) : null;\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{user.firstName + \" \" + user.lastName} {user.hasHrDocuments ? RH : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{!R.isNil(user.mainRepresentative) ? user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName : \"\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfacilitafilterOptions[user.status] === facilitafilterOptions.notAccepted ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tN'a pas accepté\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : facilitafilterOptions[user.status] === facilitafilterOptions.ongoing ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ten cours\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA envoyer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// facilitafilterOptions[user.status] === facilitafilterOptions.sending ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
A envoyer
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
Dépassé la limite
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

{new Intl.DateTimeFormat(\"fr-FR\").format(user.creationDate)}

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t{isPartner ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tEtablissement: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{userEtablissement.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Aucun dossier

\r\n\t\t\t\t\t\t\t\t\t

S'il vous plaît voir un autre état.

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t{!R.isNil(etablissement) && etablissement.isSerenita ? (\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

Serenita

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tVoir tout \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!R.isNil(serenitaUsers) && !R.isEmpty(serenitaUsers) ? (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t{serenitaUsers.slice(0, 50).map((user) => {\r\n\t\t\t\t\t\t\t\t\t\tconst userEtablissement = isPartner ? partnerstate.etablissementList.items.find((i) => i.id === user.etablissementId) : null;\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.firstName + \" \" + user.lastName} {user.hasHrDocuments ? RH : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{!R.isNil(user.mainRepresentative) ? user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName : \"\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{facilitafilterOptions[user.status] === facilitafilterOptions.notAccepted ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tN'a pas accepté\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : facilitafilterOptions[user.status] === facilitafilterOptions.ongoing ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ten cours\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA envoyer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// facilitafilterOptions[user.status] === facilitafilterOptions.sending ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\tA envoyer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t\tDépassé la limite\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// )\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

{new Intl.DateTimeFormat(\"fr-FR\").format(user.creationDate)}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t{isPartner ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tEtablissement: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{userEtablissement.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

Aucun dossier

\r\n\t\t\t\t\t\t\t\t\t\t

S'il vous plaît voir un autre état.

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n","import React, { Component } from 'react';\r\nimport { connect, useDispatch } from 'react-redux';\r\nimport { closeDossier } from '../../actions/partner/partner';\r\n\r\nexport const CloseProfile = ({ user }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tfunction handleCloseDossier(e) {\r\n\r\n\t\tconst clientUpdateInfo = {\r\n\t\t\tid: user.id,\r\n\t\t\tgender: user.gender,\r\n\t\t\tisEnabled: false,\r\n\t\t\tfirstName: user.firstName,\r\n\t\t\tlastName: user.lastName,\r\n\t\t\tbirthDate: user.birthDate,\r\n\t\t\tbirthPlace: user.birthPlace,\r\n\t\t\tdepartmentNumber: user.departmentNumber,\r\n\t\t\tcountry: user.country,\r\n\t\t\tcivilStatus: user.civilStatus,\r\n\t\t\thasChildren: user.hasChildren,\r\n\t\t\tprofessionalSituation: user.professionalSituation,\r\n\t\t\tonBoardingStep: user.onBoardingStep,\r\n\t\t};\r\n\r\n\t\tdispatch(closeDossier(user.id, clientUpdateInfo));\r\n\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

User terminate

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Clôture du dossier
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

La clôture du dossier Anticipa intervient lorsque le client n'a pas souhaité conserver ou régler son dossier.

\r\n\t\t\t\t\t\t

L'intégralité des courriers correspondant aux services complétés lui seront transmis par mail à la date de sa dernière actualisation.

\r\n\t\t\t\t\t\t

Attention : toute clôture est définitive.

\r\n\t\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

28 août 1942

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

28 septembre 2020

\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\n\r\n","import React, { useRef, useState } from 'react';\r\nimport * as R from \"ramda\";\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport { isValidPhoneNumber } from 'libphonenumber-js';\r\nimport { updateUserSecurity } from '../../actions/partner/partner';\r\nimport { isValidEmail } from '../../utils/misc';\r\n\r\nexport const DonnesProfile = ({ selectedProfile, setSelectedProfile, selectProfileCopy }) => {\r\n\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst DonnesProfile = useRef();\r\n\tconst buttonRef = useRef();\r\n\t//const [selectedProfile, setSelectedProfile] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\" });\r\n\r\n\tfunction handleSubmit(e) {\r\n\t\te.preventDefault();\r\n\t\tDonnesProfile.current.classList.add(\"was-validated\");\r\n\r\n\t\tif (DonnesProfile.current.checkValidity()) {\r\n\r\n\t\t\tconst phoneNumber = selectedProfile.phoneNumber?.includes(\"+\") ? \"+\" + selectedProfile.countryCode + parsePhoneNumber(selectedProfile.phoneNumber).nationalNumber.replace(/ /g, '') : \"+\" + selectedProfile.countryCode + selectedProfile.phoneNumber?.replace(/ /g, '');\r\n\r\n\t\t\tif (selectProfileCopy.phoneNumber !== selectedProfile.phoneNumber) {\r\n\t\t\t\tdispatch(updateUserSecurity(selectedProfile.id, { newPhoneNumber: phoneNumber }));\r\n\t\t\t}\r\n\r\n\t\t\tif (selectProfileCopy.email !== selectedProfile.email) {\r\n\t\t\t\tdispatch(updateUserSecurity(selectedProfile.id, { newEmail: selectedProfile.email }));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tbuttonRef.current.setAttribute(\"data-dismiss\", \"modal\");\r\n\t\t\tbuttonRef.current.click();\r\n\t\t}\r\n\r\n\t\tbuttonRef.current.removeAttribute(\"data-dismiss\");\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

User Account Donnes

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\tDonnées du compte utilisateur\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\tConsultez et modifiez ci-dessous les détails du compte {selectedProfile?.name} en conséquence.\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedProfile({ ...selectedProfile, countryCode: event.target.value, phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tlet dialCode = countryTelData.allCountries[countryTelData.iso2Lookup[country.toLowerCase()]].dialCode;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst phoneInput = document.getElementById(\"phone\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tconst parsedPhoneNumber = parsePhoneNumber(\"+\" + selectedProfile.countryCode + e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(parsedPhoneNumber) || !isValidPhoneNumber(parsedPhoneNumber.number)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tphoneInput.setCustomValidity(\"Numéro de télephone invalide.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tphoneInput.setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedProfile({ ...selectedProfile, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t{/* setSelectedProfile({ ...selectedProfile, phoneNumber: e.target.value })} /> */}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tValider votre numéro de téléphone\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tNous utiliserons ce numéro pour assurer la sécurité de votre compte.\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setSelectedProfile({ ...selectedProfile, email: e.target.value })} required pattern=\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\" />\r\n\t\t\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
Champs invalide
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useMemo, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport Emptylustration from './../../assets/images/svg/057-contract-1.svg';\r\n\r\nexport const PaySummary = ({ invoices, user, etablissement, partner }) => {\r\n\r\n\t// const invoices = [1, 2, 3];\r\n\tconst [linesToDisplay, setLinesToDisplay] = useState([]);\r\n\tconst [collapse, setCollapse] = useState(true);\r\n\tconst [filters, setFilters] = useState({\r\n\t\torder: {\r\n\t\t\tcolumn: \"number\",\r\n\t\t\tasc: true\r\n\t\t},\r\n\r\n\t});\r\n\r\n\tconst invoiceSum = useMemo(() => !R.isNil(invoices) ? invoices.reduce((acc, line) => { acc += line.amount; return acc; }, 0) : 0, [invoices]);\r\n\tconst options = { style: 'currency', currency: 'EUR' };\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!R.isNil(invoices)) {\r\n\r\n\t\t\tlet temp = invoices.filter(i => i.totalPrice !== 0);\r\n\r\n\t\t\tif (filters.order.asc) {\r\n\r\n\t\t\t\ttemp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\ttemp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsetLinesToDisplay(temp);\r\n\t\t}\r\n\r\n\r\n\t}, [filters, invoices]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Payment summary

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Information du paiement
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
Partenaire: {partner.name} Établissement: {etablissement?.name}
\r\n\t\t\t\t\t\t{!R.isEmpty(invoices) ?\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

A Payer

\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t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\t}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { GetUsersByPartnerIdAndEtablissementIdDefault } from '../../../actions/partner/partner';\r\nimport BackofficeUser from '../../../constants/models/backofficeUser';\r\nimport facilita from './../../../assets/images/svg/113-funeral.svg';\r\nimport * as R from 'ramda';\r\nconst FacilitaHeader = ({ users, statusOptions, partnerState, etablissement, isPartner }) => {\r\n\r\n // const [headerStats, setHeaderStats] = useState({ total: 0, notAccepted: 0, ongoing: 0, sending: 0, overtime: 0 });\r\n const [headerStats, setHeaderStats] = useState({ total: 0, notAccepted: 0, ongoing: 0, sending: 0 });\r\n\r\n useEffect(() => {\r\n\r\n async function fetchAllFacilitaDossier() {\r\n\r\n if(R.isNil(partnerState.etablissement)){\r\n return 0;\r\n }\r\n\r\n const allFacilitaDossier = await GetUsersByPartnerIdAndEtablissementIdDefault(partnerState.partner.id, partnerState.etablissement.id, \"facilita\");\r\n const statistics = allFacilitaDossier.items.reduce((acc, dossier) => {\r\n\r\n const newDossier = new BackofficeUser(dossier);\r\n switch (newDossier.status) {\r\n case \"notAccepted\":\r\n acc.notAccepted += 1;\r\n break;\r\n case \"sending\":\r\n acc.sending += 1;\r\n break;\r\n case \"ongoing\":\r\n acc.ongoing += 1;\r\n break;\r\n // case \"overtime\":\r\n // acc.overtime += 1;\r\n // break;\r\n\r\n default:\r\n break;\r\n }\r\n return acc;\r\n\r\n // }, { total: allFacilitaDossier.totalRecords, notAccepted: 0, ongoing: 0, sending: 0, overtime: 0 });\r\n }, { total: allFacilitaDossier.totalRecords, notAccepted: 0, ongoing: 0, sending: 0 });\r\n\r\n setHeaderStats(statistics);\r\n }\r\n fetchAllFacilitaDossier();\r\n }, []);\r\n\r\n return
\r\n
\r\n
\r\n
\r\n {\r\n !isPartner ?\r\n \r\n
\r\n \r\n
\r\n
\r\n

ajouter un
nouveau dossier

\r\n
\r\n \r\n :\r\n \"\"\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"Facilita\"\r\n
\r\n
\r\n

nombre total

\r\n

{headerStats.total} Facilita

\r\n
\r\n
\r\n
\r\n

N'a pas accepté

\r\n

{headerStats.notAccepted}

\r\n
\r\n
\r\n

en cours

\r\n

{headerStats.ongoing}

\r\n
\r\n
\r\n

a envoyer

\r\n

{headerStats.sending}

\r\n
\r\n {/*
\r\n

dépassé la limite

\r\n

{headerStats.overtime}

\r\n
*/}\r\n
\r\n
\r\n
\r\n
\r\n
;\r\n};\r\n\r\nexport default FacilitaHeader;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { DateWithModal } from '../../../_common/dateWithModal';\r\n\r\nconst FacilitaFilter = ({ routerQuery, queryStatus, pageSearch, setPageSearch, date, setDate }) => {\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default FacilitaFilter;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\n\r\nimport { CloseProfile } from './../../_common/closeProfile';\r\nimport { DonnesProfile } from './../../_common/donnesProfile';\r\nimport { PaySummary } from '../../_common/paySummary';\r\n\r\nimport Emptylustration from './../../../assets/images/svg/057-contract-1.svg';\r\nimport { fetchInvoices, resetPassword } from '../../../actions/partner/partner';\r\nimport FacilitaHeader from './header';\r\nimport InvoicePartner from '../../../constants/models/invoicePartner';\r\nimport FacilitaFilter from './filter';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/partner/partner';\r\n\r\nexport const FacilitaMain = ({ users, partnerState, routerQuery, pageSearch, setPageSearch, date, setDate, isLoadingRepresentatives, etablissement, partner, isPartner }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n const dispatch = useDispatch();\r\n\r\n // const filterOptions = { all: 'tous', notAccepted: \"n'a pas accepté\", ongoing: 'en cours', sending: 'A envoyer', overtime: \"dépassé la limite\" };\r\n // const queryStatus = { FacilitaNotAccepted: \"n'a pas accepté\", FacilitaOngoing: 'en cours', FacilitaSending: 'A envoyer', FacilitaOvertime: \"dépassé la limite\" };\r\n const queryStatus = { FacilitaNotAccepted: \"n'a pas accepté\", FacilitaOngoing: \"en cours\", FacilitaSending: \"A envoyer\" };\r\n // const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: 'en cours', sending: 'A envoyer', overtime: \"dépassé la limite\" };\r\n const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", sending: \"A envoyer\" };\r\n\r\n const [usersToDisplay, setUsersToDisplay] = useState(users);\r\n const [selectedUser, setSelectedUser] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\", recipientEmail: \"\" });\r\n const [selectedUserCopy, setSelectedUserCopy] = useState({});\r\n const [invoices, setInvoices] = useState([]);\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip('update');\r\n }, []);\r\n\r\n\r\n async function handleGetInvoices(userId) {\r\n setIsLoading(true);\r\n\r\n try {\r\n let invoicesData = await fetchInvoices(userId);\r\n invoicesData = invoicesData.items.map(i => new InvoicePartner(i));\r\n\r\n setIsLoading(false);\r\n setInvoices(invoicesData);\r\n } catch (error) {\r\n setIsLoading(false);\r\n }\r\n }\r\n\r\n\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n isLoadingRepresentatives || partnerState.isLoading.includes(Loadings.FETCHING_USERS) ?\r\n :\r\n <>\r\n {!R.isEmpty(users) ?\r\n
\r\n {users.map((user, index) => {\r\n let phone = R.isNil(user.phoneNumber) ? null : parsePhoneNumber(user.phoneNumber);\r\n const userEtablissement = isPartner ? partnerState.etablissementList.items.find(i => i.id === user.etablissementId) : null;\r\n return (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedUser({ ...user, countryCode: R.isNil(phone) ? \"33\" : parseInt(phone.countryCallingCode), phoneCountry: R.isNil(phone) ? \"\" : phone.country, email: user.email, recipientEmail: user.recipientEmail });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedUserCopy(user);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Données personnelles\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Envoyer un e-mail de récupération\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleGetInvoices(user.id);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedUser({ ...user });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Voir Paiements\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.firstName + \" \" + user.lastName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.hasHrDocuments ? RH : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{!R.isNil(user.mainRepresentative) ? user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName : \"\"}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

{user.owner}

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n })}\r\n \r\n :\r\n
\r\n \"Assist@\"\r\n
\r\n

Aucun dossier

\r\n

S'il vous plaît voir un autre état.

\r\n
\r\n
}\r\n \r\n }\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n","import * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport * as PartnersActionTypes from '../../constants/actiontypes/backoffice/partners';\r\n\r\nimport * as partnersUrl from '../../constants/webapi/backoffice/partners';\r\nimport * as userUrls from '../../constants/webapi/user';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\nimport { pageLimit } from '../../constants/paginations/paginationLimit';\r\n\r\nexport function GetPartners(pageNumber, searchTerm, sortByTerm, sortDesc) {\r\n\r\n\tconst page = parseInt(pageNumber);\r\n\tif (!R.isNil(pageNumber) && isNaN(page)) {\r\n\t\tthrow new Error(\"pageNumber must be null or an integer\");\r\n\t}\r\n\r\n\tpageNumber -= 1;\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.FETCH_PARTNERS_REQUEST });\r\n\t\treturn axios.get(partnersUrl.partnersUrl(pageNumber, searchTerm, sortByTerm, sortDesc))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNERS_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNERS_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetPartnersDefaultState() {\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.FETCH_PARTNERS_REQUEST });\r\n\t\treturn axios.get(partnersUrl.partnersUrlDefault())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNERS_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNERS_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetPartnersDefault() {\r\n\r\n\treturn new Promise((resolve, reject) => {\r\n\t\taxios.get(partnersUrl.partnersUrlDefault())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\treject(error);\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t});\r\n}\r\n\r\nexport function GetPartner(partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.FETCH_PARTNER_REQUEST });\r\n\t\treturn axios.get(partnersUrl.partnersByIdUrl(partnerId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_PARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function CreatePartner(partnerDto) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.CREATE_PARTNER_REQUEST });\r\n\t\treturn axios.post(partnersUrl.partnersUrlDefault(), partnerDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_PARTNER_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_PARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function UpdatePartner(partnerDto) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.UPDATE_PARTNER_REQUEST });\r\n\t\treturn axios.put(partnersUrl.partnersByIdUrl(partnerDto.id), partnerDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_PARTNER_SUCCESS,\r\n\t\t\t\t\t//data: response.data,\r\n\t\t\t\t\tdata: partnerDto,\r\n\t\t\t\t\tpartnerId: partnerDto.id\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_PARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function DeletePartner(partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.DELETE_PARTNER_REQUEST });\r\n\t\treturn axios.delete(partnersUrl.partnersByIdUrl(partnerId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_PARTNER_SUCCESS,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_PARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function UploadPartnerLogo(partnerId, logo) {\r\n\tconst config = {\r\n\t\theaders: { 'content-type': 'multipart/form-data' },\r\n\t\tcredential: 'include'\r\n\t};\r\n\tlet data = new FormData();\r\n\tdata.append(\"file\", logo, logo.name);\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.UPLOAD_LOGO_REQUEST, fileName: logo.name });\r\n\t\treturn axios.post(partnersUrl.partnerLogoByIdUrl(partnerId), data, config)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPLOAD_LOGO_SUCCESS,\r\n\t\t\t\t\tfileName: logo.name,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t\treturn response;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPLOAD_LOGO_FAILURE,\r\n\t\t\t\t\terror: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function DownloadPartnerLogo(partnerId) {\r\n\treturn axios.get(partnersUrl.partnerLogoByIdUrl(partnerId), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tlet blob = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tif (!R.isNil(response.headers[\"content-disposition\"])) {\r\n\t\t\t\tconst fileName = response.headers[\"content-disposition\"].split(\";\").find(p => p.trim().startsWith(\"filename=\"))?.replace(\"filename=\", \"\");\r\n\t\t\t\treturn new File([blob], fileName);\r\n\t\t\t} else {\r\n\t\t\t\treturn new File([blob], \"logo\");\r\n\t\t\t}\r\n\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetEtablissementsByPartnerId(partnerId, pageNumber, searchTerm, status, sortByTerm, sortDesc) {\r\n\tpageNumber -= 1;\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.FETCH_ETABLISSEMENTS_REQUEST });\r\n\t\treturn axios.get(partnersUrl.etablissementByPartnerIdUrl(partnerId, pageNumber, searchTerm, status, sortByTerm, sortDesc))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_ETABLISSEMENTS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_ETABLISSEMENTS_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetEtablissementsByPartnerIdDefault(partnerId) {\r\n\treturn axios.get(partnersUrl.etablissementByPartnerIdUrlDefault(partnerId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthrow error.statusText;\r\n\t\t});\r\n}\r\n\r\nexport function CreateEtablissementsByPartnerId(etablissementDto, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.CREATE_ETABLISSEMENT_REQUEST });\r\n\t\treturn axios.post(partnersUrl.etablissementByPartnerIdUrlDefault(partnerId), etablissementDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_ETABLISSEMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_ETABLISSEMENT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function UpdateEtablissementsByPartnerId(etablissementDto, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.UPDATE_ETABLISSEMENT_REQUEST });\r\n\t\treturn axios.put(partnersUrl.etablissementByIdAndPartnerIdUrl(partnerId, etablissementDto.id), etablissementDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_ETABLISSEMENT_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_ETABLISSEMENT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function DeleteEtablissementsByPartnerId(etablissementId, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.DELETE_ETABLISSEMENT_REQUEST });\r\n\t\treturn axios.delete(partnersUrl.etablissementByIdAndPartnerIdUrl(partnerId, etablissementId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_ETABLISSEMENT_SUCCESS,\r\n\t\t\t\t\tetablissementId: etablissementId,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_ETABLISSEMENT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerId(partnerId, pageNumber, searchTerm, role, status, sortByTerm, sortDesc) {\r\n\tconst page = parseInt(pageNumber);\r\n\tif (!R.isNil(pageNumber) && page === NaN) {\r\n\t\tthrow \"pageNumber must be null or an integer\";\r\n\t}\r\n\tpageNumber -= 1;\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.FETCH_USERS_REQUEST });\r\n\t\treturn axios.get(partnersUrl.usersByPartnerIdUrl(partnerId) + `?${role !== \"\" ? 'roles=' + role : \"roles=PARTNER,ETABLISSEMENT\"}&pagesize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&textSearch=' + searchTerm : \"\"}${role !== \"\" ? '&roles=' + role : \"\"}${status !== \"\" ? '&status=' + status : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_USERS_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.FETCH_USERS_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function GetUsersByPartnerIdDefault(partnerId) {\r\n\treturn axios.get(partnersUrl.usersByPartnerIdUrl(partnerId) + `?roles=PARTNER,ETABLISSEMENT`)\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthrow error;\r\n\t\t});\r\n\r\n}\r\n\r\n\r\nexport function getUserRepresentatives(userId) {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\taxios.get(userUrls.userRepresentativesUrlById(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tresolve(response.data);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\treject(error);\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t});\r\n}\r\n\r\nexport function CreateUserByPartnerId(userDto, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.CREATE_USER_REQUEST });\r\n\t\treturn axios.post(partnersUrl.usersByPartnerIdUrl(partnerId, R.isNil(userDto.etablissementId) ? \"PARTNER\" : \"ETABLISSEMENT\"), userDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_USER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.CREATE_USER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function UpdateUserByPartnerId(userDto, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.UPDATE_USERPARTNER_REQUEST });\r\n\t\treturn axios.put(partnersUrl.userByIdPartnerIdUrl(partnerId, userDto.id, R.isNil(userDto.etablissementId) ? \"PARTNER\" : \"ETABLISSEMENT\"), userDto)\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_USERPARTNER_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.UPDATE_USERPARTNER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function DeleteUserByPartnerId(userId, partnerId) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.DELETE_USER_REQUEST });\r\n\t\treturn axios.delete(partnersUrl.userByIdUrl(userId))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_USER_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.DELETE_USER_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function SendUserActivationEmailByPartnerId(userId, partnerId, role) {\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: PartnersActionTypes.SEND_USER_ACTIVATION_REQUEST });\r\n\t\treturn axios.put(partnersUrl.userSendActivationEmailByIdPartnerIdUrl(partnerId, userId, role))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.SEND_USER_ACTIVATION_SUCCESS,\r\n\t\t\t\t\tuserId: userId,\r\n\t\t\t\t\tpartnerId: partnerId\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: PartnersActionTypes.SEND_USER_ACTIVATION_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function downloadReport(partnerId, fromDate, toDate) {\r\n\treturn axios.get(partnersUrl.downloadReport(partnerId, fromDate, toDate), { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\tconst a = document.createElement('a');\r\n\t\t\ta.style.display = 'none';\r\n\t\t\ta.href = fileurl;\r\n\t\t\t// the filename you want\r\n\t\t\ta.download = R.isNil(response.headers[\"content-disposition\"]) ? \"file.csv\" : response.headers[\"content-disposition\"].split(\";\").find(s => s.trim().startsWith(\"filename=\")).replace(\" filename=\", \"\");\r\n\t\t\tdocument.body.appendChild(a);\r\n\t\t\ta.click();\r\n\t\t\twindow.URL.revokeObjectURL(file);\r\n\t\t\t//var fileurl = window.URL.createObjectURL(file);\r\n\t\t\t//window.open(fileurl);\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\n\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useLocation, useHistory, Route, Switch, Redirect } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport removeAccents from 'remove-accents';\r\n\r\nimport { fetchInvoices, GetUsersByPartnerIdAndEtablissementId, resetPassword } from '../../actions/partner/partner';\r\nimport { FacilitaMain } from './main';\r\nimport { getUserRepresentatives } from '../../actions/backoffice/partners';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n\r\n\r\nexport const Facilita = ({ partnerState, etablissement, partner, isPartner }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet type = pageQuery.get('type');\r\n\tlet startDate = pageQuery.get('startDate');\r\n\tlet endDate = pageQuery.get('endDate');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\ttype = R.isNil(type) ? \"facilita\" : type;\r\n\tstartDate = R.isNil(startDate) ? \"\" : startDate;\r\n\tendDate = R.isNil(endDate) ? \"\" : endDate;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [usersWithRepresentatives, setUsersWithRepresentatives] = useState([]);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [date, setDate] = useState({\r\n\t\tstartDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n\t\tendDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n\t});\r\n\r\n\tconst renderRef = useRef(false);\r\n\tconst renderDateRef = useRef(false);\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip('update');\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/partner/facilita\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//pageNumber, searchTerm,role, sortByTerm, sortDesc\r\n\t\tconst etablissementId = !R.isNil(etablissement) ? etablissement.id : null;\r\n\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissementId, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/partner/facilita?page=${1}${type !== \"\" ? \"&type=\" + type : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissement.id, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderDateRef.current) {\r\n\t\t\trenderDateRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/facilita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n\t\t\thistory.push(`/partner/facilita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/facilita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else {\r\n\t\t\thistory.push(`/partner/facilita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [date]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\t// fetch all representatives by user id\r\n\r\n\t\tif (R.isNil(partnerState.users) || R.isEmpty(partnerState.users)) {\r\n\t\t\tsetUsersWithRepresentatives([]);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsetIsLoading(true);\r\n\r\n\t\tlet userPromises = [];\r\n\t\tpartnerState.users.forEach(user => {\r\n\t\t\tuserPromises.push(getUserRepresentatives(user.id));\r\n\t\t});\r\n\r\n\t\tPromise.all(userPromises).then((representatives) => {\r\n\r\n\t\t\trepresentatives = representatives.filter(u => !R.isEmpty(u)).map(userRepresent => userRepresent.filter(r => r.isMainRepresentative)[0]);\r\n\r\n\t\t\tlet users = partnerState.users.map(u => {\r\n\r\n\t\t\t\tlet representative = representatives.find(r => r.userId === u.id);\r\n\r\n\t\t\t\tif (!R.isNil(representative)) {\r\n\r\n\t\t\t\t\tu.mainRepresentative = {\r\n\t\t\t\t\t\tid: representative.id,\r\n\t\t\t\t\t\tfirstName: representative.firstName,\r\n\t\t\t\t\t\tlastName: representative.lastName\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\treturn u;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\treturn u;\r\n\t\t\t});\r\n\r\n\t\t\tsetIsLoading(false);\r\n\t\t\tsetUsersWithRepresentatives(users);\r\n\t\t}).catch(error => {\r\n\t\t\tsetIsLoading(false);\r\n\t\t});\r\n\r\n\r\n\t}, [partnerState.users]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\ttype,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tendDate,\r\n\t\tstartDate,\r\n\t\tdate\r\n\t};\r\n\r\n\r\n\t// if (R.isNil(usersWithRepresentatives)) return ();\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{/* */}\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { GetUsersByPartnerIdAndEtablissementIdDefault } from '../../../actions/partner/partner';\r\nimport BackofficeUser from '../../../constants/models/backofficeUser';\r\nimport facilita from './../../../assets/images/svg/113-funeral.svg';\r\nimport serenita from './../../../assets/images/svg/145-customer-service.svg';\r\nimport * as R from 'ramda';\r\nconst SerenitaHeader = ({ users, statusOptions, partnerState, etablissement, isPartner }) => {\r\n\r\n // const [headerStats, setHeaderStats] = useState({ total: 0, notAccepted: 0, ongoing: 0, sending: 0, overtime: 0 });\r\n const [headerStats, setHeaderStats] = useState({ total: 0, notAccepted: 0, ongoing: 0, sending: 0 });\r\n\r\n useEffect(() => {\r\n\r\n async function fetchAllFacilitaDossier() {\r\n\r\n if(R.isNil(partnerState.etablissement)){\r\n return 0;\r\n }\r\n\r\n const allFacilitaDossier = await GetUsersByPartnerIdAndEtablissementIdDefault(partnerState.partner.id, partnerState.etablissement.id, \"serenita\");\r\n const statistics = allFacilitaDossier.items.reduce((acc, dossier) => {\r\n\r\n const newDossier = new BackofficeUser(dossier);\r\n switch (newDossier.status) {\r\n case \"notAccepted\":\r\n acc.notAccepted += 1;\r\n break;\r\n case \"sending\":\r\n acc.sending += 1;\r\n break;\r\n case \"ongoing\":\r\n acc.ongoing += 1;\r\n break;\r\n // case \"overtime\":\r\n // acc.overtime += 1;\r\n // break;\r\n\r\n default:\r\n break;\r\n }\r\n return acc;\r\n\r\n // }, { total: allFacilitaDossier.totalRecords, notAccepted: 0, ongoing: 0, sending: 0, overtime: 0 });\r\n }, { total: allFacilitaDossier.totalRecords, notAccepted: 0, ongoing: 0, sending: 0 });\r\n\r\n setHeaderStats(statistics);\r\n }\r\n fetchAllFacilitaDossier();\r\n }, []);\r\n\r\n return
\r\n
\r\n
\r\n
\r\n {\r\n !isPartner ?\r\n \r\n
\r\n \r\n
\r\n
\r\n

ajouter un
nouveau dossier

\r\n
\r\n \r\n :\r\n \"\"\r\n }\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"Serenita\"\r\n
\r\n
\r\n

nombre total

\r\n

{headerStats.total} Serenita

\r\n
\r\n
\r\n
\r\n

N'a pas accepté

\r\n

{headerStats.notAccepted}

\r\n
\r\n
\r\n

en cours

\r\n

{headerStats.ongoing}

\r\n
\r\n
\r\n

a envoyer

\r\n

{headerStats.sending}

\r\n
\r\n {/*
\r\n

dépassé la limite

\r\n

{headerStats.overtime}

\r\n
*/}\r\n
\r\n
\r\n
\r\n
\r\n
;\r\n};\r\n\r\nexport default SerenitaHeader;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { DateWithModal } from '../../../_common/dateWithModal';\r\n\r\nconst SerenitaFilter = ({ routerQuery, queryStatus, pageSearch, setPageSearch, date, setDate }) => {\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SerenitaFilter;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\n\r\nimport { CloseProfile } from '../../_common/closeProfile';\r\nimport { DonnesProfile } from '../../_common/donnesProfile';\r\nimport { PaySummary } from '../../_common/paySummary';\r\n\r\nimport Emptylustration from './../../../assets/images/svg/057-contract-1.svg';\r\nimport { fetchInvoices, resetPassword } from '../../../actions/partner/partner';\r\nimport SerenitaHeader from './header';\r\nimport InvoicePartner from '../../../constants/models/invoicePartner';\r\nimport SerenitaFilter from './filter';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/partner/partner';\r\n\r\nexport const SerenitaMain = ({ users, partnerState, routerQuery, pageSearch, setPageSearch, date, setDate, isLoadingRepresentatives, etablissement, partner, isPartner }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n const dispatch = useDispatch();\r\n\r\n // const filterOptions = { all: 'tous', notAccepted: \"n'a pas accepté\", ongoing: 'en cours', sending: 'A envoyer', overtime: \"dépassé la limite\" };\r\n // const queryStatus = { SerenitaNotAccepted: \"n'a pas accepté\", SerenitaOngoing: 'en cours', SerenitaSending: 'A envoyer', SerenitaOvertime: \"dépassé la limite\" };\r\n const queryStatus = { SerenitaNotAccepted: \"n'a pas accepté\", SerenitaOngoing: \"en cours\", SerenitaSending: \"A envoyer\" };\r\n // const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: 'en cours', sending: 'A envoyer', overtime: \"dépassé la limite\" };\r\n const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", sending: \"A envoyer\" };\r\n\r\n const [usersToDisplay, setUsersToDisplay] = useState(users);\r\n const [selectedUser, setSelectedUser] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\", recipientEmail: \"\" });\r\n const [selectedUserCopy, setSelectedUserCopy] = useState({});\r\n const [invoices, setInvoices] = useState([]);\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip('update');\r\n }, []);\r\n\r\n\r\n async function handleGetInvoices(userId) {\r\n setIsLoading(true);\r\n\r\n try {\r\n let invoicesData = await fetchInvoices(userId);\r\n invoicesData = invoicesData.items.map(i => new InvoicePartner(i));\r\n\r\n setIsLoading(false);\r\n setInvoices(invoicesData);\r\n } catch (error) {\r\n setIsLoading(false);\r\n }\r\n }\r\n\r\n\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n isLoadingRepresentatives || partnerState.isLoading.includes(Loadings.FETCHING_USERS) ?\r\n :\r\n <>\r\n {!R.isEmpty(users) ?\r\n
\r\n {users.map((user, index) => {\r\n let phone = R.isNil(user.phoneNumber) ? null : parsePhoneNumber(user.phoneNumber);\r\n const userEtablissement = isPartner ? partnerState.etablissementList.items.find(i => i.id === user.etablissementId) : null;\r\n return (\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n \r\n

{user.firstName + \" \" + user.lastName}{user.hasHrDocuments ? RH :\"\"}

\r\n

{!R.isNil(user.mainRepresentative) ? (user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName) : \"\"}

\r\n

{user.owner}

\r\n {/*
*/}\r\n
\r\n {/*
\r\n
{statusOptions[user.status]}
\r\n
\r\n

\r\n {new Intl.DateTimeFormat('fr-FR').format(user.creationDate)}\r\n

\r\n \r\n {\r\n isPartner ?\r\n
\r\n Etablissement: \r\n {userEtablissement.name}\r\n
\r\n :\r\n \"\"\r\n }\r\n
\r\n );\r\n })}\r\n
\r\n :\r\n
\r\n \"Assist@\"\r\n
\r\n

Aucun dossier

\r\n

S'il vous plaît voir un autre état.

\r\n
\r\n
}\r\n \r\n }\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useLocation, useHistory, Route, Switch, Redirect } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport removeAccents from 'remove-accents';\r\n\r\nimport { fetchInvoices, GetUsersByPartnerIdAndEtablissementId, resetPassword } from '../../actions/partner/partner';\r\nimport { SerenitaMain } from './main';\r\nimport { getUserRepresentatives } from '../../actions/backoffice/partners';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n\r\n\r\nexport const Serenita = ({ partnerState, etablissement, partner, isPartner }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet type = pageQuery.get('type');\r\n\tlet startDate = pageQuery.get('startDate');\r\n\tlet endDate = pageQuery.get('endDate');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\ttype = R.isNil(type) ? \"serenita\" : type;\r\n\tstartDate = R.isNil(startDate) ? \"\" : startDate;\r\n\tendDate = R.isNil(endDate) ? \"\" : endDate;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [usersWithRepresentatives, setUsersWithRepresentatives] = useState([]);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [date, setDate] = useState({\r\n\t\tstartDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n\t\tendDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n\t});\r\n\r\n\tconst renderRef = useRef(false);\r\n\tconst renderDateRef = useRef(false);\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip('update');\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/partner/serenita\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst etablissementId = !R.isNil(etablissement) ? etablissement.id : null;\r\n\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissementId, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/partner/serenita?page=${1}${type !== \"\" ? \"&type=\" + type : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissement.id, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderDateRef.current) {\r\n\t\t\trenderDateRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/serenita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n\t\t\thistory.push(`/partner/serenita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/serenita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else {\r\n\t\t\thistory.push(`/partner/serenita?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [date]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\t// fetch all representatives by user id\r\n\r\n\t\tif (R.isNil(partnerState.users) || R.isEmpty(partnerState.users)) {\r\n\t\t\tsetUsersWithRepresentatives([]);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsetIsLoading(true);\r\n\r\n\t\tlet userPromises = [];\r\n\t\tpartnerState.users.forEach(user => {\r\n\t\t\tuserPromises.push(getUserRepresentatives(user.id));\r\n\t\t});\r\n\r\n\t\tPromise.all(userPromises).then((representatives) => {\r\n\r\n\t\t\trepresentatives = representatives.filter(u => !R.isEmpty(u)).map(userRepresent => userRepresent.filter(r => r.isMainRepresentative)[0]);\r\n\r\n\t\t\tlet users = partnerState.users.map(u => {\r\n\r\n\t\t\t\tlet representative = representatives.find(r => r.userId === u.id);\r\n\r\n\t\t\t\tif (!R.isNil(representative)) {\r\n\r\n\t\t\t\t\tu.mainRepresentative = {\r\n\t\t\t\t\t\tid: representative.id,\r\n\t\t\t\t\t\tfirstName: representative.firstName,\r\n\t\t\t\t\t\tlastName: representative.lastName\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\treturn u;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\treturn u;\r\n\t\t\t});\r\n\r\n\t\t\tsetIsLoading(false);\r\n\t\t\tsetUsersWithRepresentatives(users);\r\n\t\t}).catch(error => {\r\n\t\t\tsetIsLoading(false);\r\n\t\t});\r\n\r\n\r\n\t}, [partnerState.users]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\ttype,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tendDate,\r\n\t\tstartDate,\r\n\t\tdate\r\n\t};\r\n\r\n\r\n\t// if (R.isNil(usersWithRepresentatives)) return ();\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{/* */}\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n};","import React, { useRef } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { payUserInvoice } from '../../actions/partner/partner';\r\n\r\n\r\nexport const RegleModal = ({ selectedUser }) => {\r\n\r\n const dispatch = useDispatch();\r\n const confirmButtonRef = useRef(null);\r\n\r\n async function handlePayInvoice(pendingInvoiceId) {\r\n try {\r\n await dispatch(payUserInvoice(pendingInvoiceId));\r\n confirmButtonRef.current.setAttribute(\"data-dismiss\", \"modal\");\r\n confirmButtonRef.current.click();\r\n confirmButtonRef.current.removeAttribute(\"data-dismiss\");\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Règlement actualisation

\r\n
\r\n
Règlement actualisation
\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Vous allez confirmer que votre client souhaite poursuivre son dossier ANTICIPA et vous a réglé l'actualisation. Toute validation est définitive.

\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { GetUsersByPartnerIdAndEtablissementIdDefault } from '../../../actions/partner/partner';\r\nimport BackofficeUser from '../../../constants/models/backofficeUser';\r\nimport anticipa from './../../../assets/images/svg/112-person-white.svg';\r\nimport * as R from 'ramda';\r\n\r\n\r\nconst AnticipaHeader = ({ users, statusOptions, partnerState, isPartner }) => {\r\n\r\n const [headerStats, setHeaderStats] = useState({ total: 0, notAccepted: 0, finished: 0, ongoing: 0, yearAndMore: 0 });\r\n\r\n useEffect(() => {\r\n\r\n async function fetchAllAnticipaDossier() {\r\n if(R.isNil(partnerState.etablissement)){\r\n return 0;\r\n }\r\n\r\n const allAnticipaDossier = await GetUsersByPartnerIdAndEtablissementIdDefault(partnerState.partner.id, partnerState.etablissement.id, \"anticipa\");\r\n const statistics = allAnticipaDossier.items.reduce((acc, dossier) => {\r\n\r\n const newDossier = new BackofficeUser(dossier);\r\n switch (newDossier.status) {\r\n case \"notAccepted\":\r\n acc.notAccepted += 1;\r\n break;\r\n case \"finished\":\r\n acc.finished += 1;\r\n break;\r\n case \"ongoing\":\r\n acc.ongoing += 1;\r\n break;\r\n case \"yearAndMore\":\r\n acc.yearAndMore += 1;\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n return acc;\r\n\r\n }, { total: allAnticipaDossier.totalRecords, notAccepted: 0, finished: 0, ongoing: 0, yearAndMore: 0 });\r\n\r\n setHeaderStats(statistics);\r\n }\r\n fetchAllAnticipaDossier();\r\n }, []);\r\n\r\n\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n {\r\n !isPartner ? \r\n \r\n
\r\n \r\n
\r\n
\r\n

Ajouter un
nouveau dossier

\r\n
\r\n \r\n :\r\n \"\"\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n

Dossier Anticipa

\r\n
\r\n
\r\n
\r\n \"Anticipa\"\r\n
\r\n
\r\n
nombre total
\r\n

{headerStats.total} Anticipa

\r\n
\r\n
\r\n
\r\n
N'a pas accepté
\r\n

{headerStats.notAccepted}

\r\n
\r\n
\r\n
en cours
\r\n

{headerStats.ongoing}

\r\n
\r\n
\r\n
Complété
\r\n

{headerStats.finished}

\r\n
\r\n
\r\n
plus d'un an
\r\n

{headerStats.yearAndMore}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default AnticipaHeader;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport { DateWithModal } from '../../../_common/dateWithModal';\r\n\r\nconst AnticipaFilter = ({ routerQuery, queryStatus, pageSearch, setPageSearch, date, setDate }) => {\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default AnticipaFilter;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport { useDispatch } from 'react-redux';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nimport { CloseProfile } from './../../_common/closeProfile';\r\nimport { DonnesProfile } from './../../_common/donnesProfile';\r\nimport { PaySummary } from '../../_common/paySummary';\r\n\r\nimport Emptylustration from './../../../assets/images/svg/057-contract-1.svg';\r\nimport { fetchInvoices, resetPassword } from '../../../actions/partner/partner';\r\nimport { RegleModal } from '../../_common/regleModal';\r\nimport InvoicePartner from '../../../constants/models/invoicePartner';\r\nimport AnticipaHeader from './header';\r\nimport AnticipaFilter from './filter';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/partner/partner';\r\n\r\n\r\n\r\n\r\nexport const AnticipaMain = ({ users, partnerState, routerQuery, pageSearch, setPageSearch, date, setDate, isLoadingRepresentatives, etablissement, partner, isPartner }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n const dispatch = useDispatch();\r\n\r\n //const filterOptions = { all: 'tous', notAccepted: \"n'a pas accepté\", ongoing: 'en cours', finished: 'complété', yearAndMore: \"plus d'un an\" };\r\n const queryStatus = { AnticipaNotAccepted: \"n'a pas accepté\", AnticipaOngoing: \"en cours\", AnticipaFinished: \"complété\", AnticipaYearAndMore: \"contrat d'un an\", AnticipaClosed: \"clôture\" };\r\n const statusOptions = { notAccepted: \"n'a pas accepté\", ongoing: \"en cours\", finished: \"complété\", yearAndMore: \"contrat d'un an\", closed: \"clôture\" };\r\n\r\n const [usersToDisplay, setUsersToDisplay] = useState(users);\r\n const [selectedUser, setSelectedUser] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\", recipientEmail: \"\" });\r\n const [selectedUserCopy, setSelectedUserCopy] = useState({});\r\n const [invoices, setInvoices] = useState([]);\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n }, []);\r\n\r\n\r\n async function handleGetInvoices(userId) {\r\n setIsLoading(true);\r\n\r\n try {\r\n let invoicesData = await fetchInvoices(userId);\r\n invoicesData = invoicesData.items.map(i => new InvoicePartner(i));\r\n\r\n setIsLoading(false);\r\n setInvoices(invoicesData);\r\n } catch (error) {\r\n setIsLoading(false);\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n return (\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n isLoadingRepresentatives || partnerState.isLoading.includes(Loadings.FETCHING_USERS) ?\r\n :\r\n <>\r\n {!R.isEmpty(users) ?\r\n
\r\n

Anticipa Users

\r\n {users.map((user, index) => {\r\n let phone = R.isNil(user.phoneNumber) ? null : parsePhoneNumber(user.phoneNumber);\r\n const userEtablissement = isPartner ? partnerState.etablissementList.items.find(i => i.id === user.etablissementId) : null;\r\n return (\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

{user.firstName + \" \" + user.lastName}{user.hasHrDocuments ? RH :\"\"}

\r\n

{!R.isNil(user.mainRepresentative) ? (user.mainRepresentative.firstName + \" \" + user.mainRepresentative.lastName) : \"\"}

\r\n
\r\n
\r\n
{statusOptions[user.status]}
\r\n
\r\n\r\n

\r\n {new Intl.DateTimeFormat('fr-FR').format(user.creationDate)}\r\n

\r\n
\r\n \r\n {/*
*/}\r\n
\r\n \r\n
\r\n {\r\n user.hasPendingInvoice ?\r\n \r\n :\r\n \"\"\r\n }\r\n \r\n
\r\n {\r\n isPartner ?\r\n
\r\n Etablissement: \r\n {userEtablissement.name}\r\n
\r\n :\r\n \"\"\r\n }\r\n
\r\n );\r\n })}\r\n
\r\n :\r\n
\r\n \"Assist@\"\r\n
\r\n

Aucun dossier

\r\n

S'il vous plaît voir un autre état.

\r\n
\r\n
\r\n }\r\n \r\n }\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useLocation, useHistory, Route, Switch, Redirect } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport { fetchInvoices, GetUsersByPartnerIdAndEtablissementId, resetPassword } from '../../actions/partner/partner';\r\nimport Emptylustration from './../../assets/images/svg/057-contract-1.svg';\r\nimport { AnticipaMain } from './main';\r\nimport { getUserRepresentatives } from '../../actions/backoffice/partners';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n\r\n\r\n\r\nexport const Anticipa = ({ partnerState, etablissement, partner, isPartner }) => {\r\n\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet type = pageQuery.get('type');\r\n\tlet startDate = pageQuery.get('startDate');\r\n\tlet endDate = pageQuery.get('endDate');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\ttype = R.isNil(type) ? \"anticipa\" : type;\r\n\tstartDate = R.isNil(startDate) ? \"\" : startDate;\r\n\tendDate = R.isNil(endDate) ? \"\" : endDate;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [usersWithRepresentatives, setUsersWithRepresentatives] = useState([]);\r\n\tconst [date, setDate] = useState({\r\n\t\tstartDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n\t\tendDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n\t});\r\n\r\n\tconst renderRef = useRef(false);\r\n\tconst renderDateRef = useRef(false);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/partner/anticipa\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//partnerId, etablissementId, pageNumber, searchTerm, role, sortByTerm, sortDesc\r\n\t\tconst etablissementId = !R.isNil(etablissement) ? etablissement.id : null;\r\n\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissementId, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/partner/anticipa?page=${1}${type !== \"\" ? \"&type=\" + type : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementId(partnerState.partner.id, etablissement.id, page, pageSearch, type, startDate, endDate, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderDateRef.current) {\r\n\t\t\trenderDateRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/anticipa?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n\t\t\thistory.push(`/partner/anticipa?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/partner/anticipa?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else {\r\n\t\t\thistory.push(`/partner/anticipa?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${type !== \"\" ? \"&type=\" + type : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [date]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\t// fetch all representatives by user id\r\n\r\n\t\tif (R.isNil(partnerState.users) || R.isEmpty(partnerState.users)) {\r\n\t\t\tsetUsersWithRepresentatives([]);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsetIsLoading(true);\r\n\r\n\t\tlet userPromises = [];\r\n\t\tpartnerState.users.forEach(user => {\r\n\t\t\tuserPromises.push(getUserRepresentatives(user.id));\r\n\t\t});\r\n\r\n\t\tPromise.all(userPromises).then((representatives) => {\r\n\r\n\t\t\trepresentatives = representatives.filter(u => !R.isEmpty(u)).map(userRepresent => userRepresent.filter(r => r.isMainRepresentative)[0]);\r\n\r\n\t\t\tlet users = partnerState.users.map(u => {\r\n\r\n\t\t\t\tlet representative = representatives.find(r => r.userId === u.id);\r\n\r\n\t\t\t\tif (!R.isNil(representative)) {\r\n\r\n\t\t\t\t\tu.mainRepresentative = {\r\n\t\t\t\t\t\tid: representative.id,\r\n\t\t\t\t\t\tfirstName: representative.firstName,\r\n\t\t\t\t\t\tlastName: representative.lastName\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\treturn u;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\treturn u;\r\n\t\t\t});\r\n\r\n\t\t\tsetIsLoading(false);\r\n\t\t\tsetUsersWithRepresentatives(users);\r\n\t\t}).catch(error => {\r\n\t\t\tsetIsLoading(false);\r\n\t\t});\r\n\r\n\t}, [partnerState.users]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\ttype,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tendDate,\r\n\t\tstartDate,\r\n\t\tdate\r\n\t};\r\n\r\n\r\n\t// if (R.isNil(usersWithRepresentatives)) return \"\";\r\n\t// if (R.isNil(usersWithRepresentatives)) return ();\r\n\t// if (R.isNil(usersWithRepresentatives)) return (\r\n\t// \t
\r\n\t// \t\t\"Assist@\"\r\n\t// \t\t
\r\n\t// \t\t\t

Aucun dossier

\r\n\t// \t\t\t

S'il vous plaît voir un autre état.

\r\n\t// \t\t
\r\n\t// \t
\r\n\t// );\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{/* */}\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n};\r\n","import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nclass addUser extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Add user

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
ajouter un nouveau utilisateur
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Vous pouvez ajouter un nouvel utilisateur à n'importe quel fichier Facilita. Choisissez le dossier et ajoutez les données du nouveau référent.

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(addUser);","export default __webpack_public_path__ + \"static/media/114-users.d79b69ae.svg\";","export default __webpack_public_path__ + \"static/media/115-bank.c0f99ca2.svg\";","export default __webpack_public_path__ + \"static/media/101-file.8b489e3c.svg\";","export default __webpack_public_path__ + \"static/media/116-cash.77fb8bb1.svg\";","export default __webpack_public_path__ + \"static/media/108-employee.fd1f9af2.svg\";","import React from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Link, NavLink } from 'react-router-dom';\r\n\r\nimport AddUser from './addUser.js';\r\n\r\nimport users from './../../../assets/images/svg/114-users.svg';\r\nimport bank from './../../../assets/images/svg/115-bank.svg';\r\nimport cash from './../../../assets/images/svg/116-cash.svg';\r\nimport employee from './../../../assets/images/svg/108-employee.svg';\r\nimport file from './../../../assets/images/svg/101-file.svg';\r\n\r\nexport const Header = () => {\r\n\tconst router = useSelector(state => state.router);\r\n\treturn (\r\n\t\t
\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t)\r\n}","import { EndPoints } from '../../api-config';\r\nimport { pageLimit } from '../../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n\r\nexport const usersByUrl = (pageNumber, searchTerm, roles, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/user?pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&textSearch=' + searchTerm : \"\"}${roles !== \"\" ? '&roles=' + roles : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`;\r\nexport const usersByUrlData = () => `${SERVER_ADDR_V1}/user`;","import * as axios from 'axios';\r\nimport * as ActionTypes from '../../constants/actiontypes/backoffice/clients';\r\nimport * as ActionTypesAuth from '../../constants/actiontypes/auth';\r\nimport * as urls from '../../constants/webapi/backoffice/clients';\r\nimport * as authUrls from '../../constants/webapi/auth';\r\nimport * as R from 'ramda';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\nimport * as ActionTypesClients from '../../constants/actiontypes/backoffice/clients';\r\nimport * as userUrls from '../../constants/webapi/user';\r\n\r\n\r\nexport function fetchAllClients(pageNumber, searchTerm, roles, sortByTerm, sortDesc) {\r\n const page = parseInt(pageNumber);\r\n if (!R.isNil(pageNumber) && isNaN(page)) {\r\n throw new Error(\"pageNumber must be null or an integer\");\r\n }\r\n pageNumber -= 1;\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypes.FETCH_CLIENTS_REQUEST });\r\n return axios.get(urls.usersByUrl(pageNumber, searchTerm, roles, sortByTerm, sortDesc))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypes.FETCH_CLIENTS_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypes.FETCH_CLIENTS_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function fetchAllClientsData() {\r\n return new Promise((resolve, reject) => {\r\n axios.get(urls.usersByUrlData())\r\n .then((response) => {\r\n resolve(response.data);\r\n })\r\n .catch((error) => {\r\n reject(error);\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n\r\n throw error.statusText;\r\n });\r\n });\r\n\r\n\r\n}\r\n\r\nexport function deleteClient(user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesClients.DELETE_CLIENT_REQUEST, user: user });\r\n return axios.delete(userUrls.userByIdUrl(user.id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesClients.DELETE_CLIENT_SUCCESS,\r\n data: response.data,\r\n user: user\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesClients.DELETE_CLIENT_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function updateClient(userId, user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesClients.UPDATE_CLIENT_REQUEST, user: userId });\r\n return axios.put(userUrls.userByIdUrl(userId), user)\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesClients.UPDATE_CLIENT_SUCCESS,\r\n data: response.data,\r\n user: user,\r\n userId: userId\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesClients.UPDATE_CLIENT_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function updateClientSecurity(userId, user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesClients.UPDATE_CLIENT_SECURITY_REQUEST, user: userId });\r\n return axios.put(userUrls.userSecurityByIdUrl(userId), user)\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesClients.UPDATE_CLIENT_SECURITY_SUCCESS,\r\n data: response.data,\r\n user: user,\r\n userId: userId\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesClients.UPDATE_CLIENT_SECURITY_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function resetPassword(email, phoneNumber) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesAuth.RESET_PASSWORD_REQUEST });\r\n return axios.post(authUrls.resetPasswordEmail(), { email, phoneNumber })\r\n .then(() => {\r\n dispatch({\r\n type: ActionTypesAuth.RESET_PASSWORD_SUCCESS\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: ActionTypesAuth.RESET_PASSWORD_FAILURE,\r\n error: error.response\r\n });\r\n throw error;\r\n });\r\n };\r\n}\r\n\r\nexport function setFilterGlobal(filter) {\r\n\r\n return {\r\n type: ActionTypes.SET_CLIENT_FILTER,\r\n data: filter\r\n };\r\n\r\n}","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { deleteClient } from '../../actions/backoffice/clients';\r\n\r\n\r\nexport const DeleteUser = ({ selectedUser, deleteUser }) => {\r\n\r\n\tconst user = useSelector(state => state.user);\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t

Delete user

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
Supprimer l'utilisateur
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
Etes-vous sûr(e) de vouloir supprimer la compte {selectedUser.firstName} {selectedUser.lastName}?
\r\n\t\t\t\t\t\t
Cette action est irréversible.
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useRef, useState, useEffect } from 'react';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport * as loadings from '../../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport { ToasterConfigurations } from '../../../constants/toasterText/configurations';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Header } from './../_common/header';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport * as Loadings from '../../../constants/loadings/auth';\r\nimport { registerUser, resetAuth, sendOTPCode, verifyOTPCode } from '../../../actions/auth-api';\r\nimport { resetUser, updateUserSecurity, changePhoneNumber, updateUser, deleteUser } from '../../../actions/user-api';\r\n\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport { DeleteUser } from '../../_common/deleteUser';\r\n\r\n\r\nexport const SettingsProfil = ({ isLoading }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n const user = useSelector(state => state.user);\r\n const auth = useSelector(state => state.auth);\r\n const dispatch = useDispatch();\r\n\r\n //phone\r\n const [modifyNumber, setModifyNumber] = useState(false);\r\n const [ignoreTmp, setIgnoreTmp] = useState(false);\r\n const [isOnFocus, setIsOnFocus] = useState(false);\r\n const [tmpPhoneConfirmed, setTmpPhoneConfirmed] = useState(false);\r\n const [wasSendOnce, setWasSendOnce] = useState(false);\r\n\r\n //email\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [showCurrentPassword, setShowCurrentPassword] = useState(false);\r\n const [passwordsMatch, setPasswordsMatch] = useState(false);\r\n const [showConfPassword, setShowConfPassword] = useState(false);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n\r\n const codeRef = useRef(null);\r\n const formInfoRef = useRef(null);\r\n const credentialsForm = useRef(null);\r\n const securityForm = useRef(null);\r\n\r\n let parsedPhoneNumber = undefined;\r\n if (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber)) {\r\n parsedPhoneNumber = parsePhoneNumber(user.user.phoneNumber);\r\n }\r\n\r\n\r\n const [credentials, setCredentials] = useState({\r\n email: !R.isNil(user.user) && !R.isNil(user.user.email) ? user.user.email : '',\r\n currentPassword: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.nationalNumber,\r\n countryCode: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.countryCallingCode,\r\n phoneCountry: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.country,\r\n });\r\n\r\n\r\n\r\n const [personalData, setPersonalData] = useState({\r\n gender: !R.isNil(user.user) && !R.isNil(user.user.gender) ? user.user.gender : undefined,\r\n firstName: !R.isNil(user.user) && !R.isNil(user.user.firstName) ? user.user.firstName : '',\r\n lastName: !R.isNil(user.user) && !R.isNil(user.user.lastName) ? user.user.lastName : '',\r\n birthDate: !R.isNil(user.user) && !R.isNil(user.user.birthDate) ? user.user.birthDate : undefined,\r\n birthPlace: !R.isNil(user.user) && !R.isNil(user.user.birthPlace) ? user.user.birthPlace : '',\r\n depNumber: !R.isNil(user.user) && !R.isNil(user.user.departmentNumber) ? user.user.departmentNumber : '',\r\n country: !R.isNil(user.user) && !R.isNil(user.user.country) && user.user.country !== '' ? user.user.country : 'FR'\r\n });\r\n\r\n const gender = { male: 'Male', female: 'Female' };\r\n const registerPage = false;\r\n let loggedIn = !R.isNil(user) && !R.isNil(user.user) && !R.isNil(user.user.phoneNumber) && user.user.phoneNumber !== '';\r\n let updatingNumber = loggedIn && modifyNumber === true;\r\n let phoneIsConfirmed = loggedIn ? (ignoreTmp ? auth.phoneConfirmed : true) : auth.phoneConfirmed === true;\r\n let numberIsSame = !(R.isNil(user.user) || R.isNil(user.user.phoneNumber) || (\"+\" + credentials.countryCode + credentials.phoneNumber.replace(/ /g, '')) !== user.user.phoneNumber);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber)) {\r\n setTmpPhoneConfirmed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.user]);\r\n\r\n useEffect(() => {\r\n if (auth.SMSWasSent === true && !R.isNil(codeRef) && !R.isNil(codeRef.current)) {\r\n setWasSendOnce(true);\r\n codeRef.current.focus();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.SMSWasSent]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials)) {\r\n if (passwordsMatch === true && credentials.password !== credentials.confirmPassword) {\r\n setPasswordsMatch(false);\r\n }\r\n else if (passwordsMatch === false && credentials.password === credentials.confirmPassword) {\r\n setPasswordsMatch(true);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials) && !R.isNil(credentials.password)) {\r\n let hasUpper = !R.isNil(credentials.password.match(RegexFields.hasUpperCase));\r\n let hasLower = !R.isNil(credentials.password.match(RegexFields.hasLowerCase));\r\n let hasDigits = !R.isNil(credentials.password.match(RegexFields.hasDigits));\r\n setPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials]);\r\n\r\n\r\n\r\n function handleEnvoyerCode(e) {\r\n\r\n e.preventDefault();\r\n securityForm.current.classList.add('was-validated');\r\n\r\n const internationalPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n if (!internationalPhoneNumber.isValid()) {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n return;\r\n }\r\n\r\n if (!R.isNil(user.user) && !R.isNil(user.user.id)) {\r\n let userToUpdate = {\r\n id: user.user.id,\r\n newPhoneNumber: internationalPhoneNumber.number\r\n };\r\n dispatch(changePhoneNumber(userToUpdate));\r\n }\r\n else {\r\n dispatch(sendOTPCode(internationalPhoneNumber.number));\r\n }\r\n\r\n if (ignoreTmp === false) {\r\n setIgnoreTmp(true);\r\n }\r\n setModifyNumber(false);\r\n }\r\n\r\n\r\n function handleInfoForm(e) {\r\n e.preventDefault();\r\n const firstFormInputs = document.querySelectorAll(\"#firstForm input\");\r\n firstFormInputs.forEach(input => {\r\n input.removeAttribute('id', \"input-hide-icon\");\r\n });\r\n\r\n formInfoRef.current.classList.add('was-validated');\r\n\r\n let userToUpdateData = {\r\n id: user.user.id,\r\n gender: personalData.gender,\r\n firstName: personalData.firstName,\r\n lastName: personalData.lastName,\r\n birthDate: user.user.birthDate,\r\n birthPlace: user.user.birthPlace,\r\n departmentNumber: user.user.depNumber,\r\n country: user.user.country,\r\n civilStatus: user.user.civilStatus,\r\n hasChildren: user.user.hasChildren,\r\n professionalSituation: user.user.professionalSituation.join(','),\r\n // phoneNumber: asset.mobile,\r\n //processNumber: user.user.processNumber\r\n };\r\n\r\n if (formInfoRef.current.checkValidity() && (credentials.password !== '' && credentials.confirmPassword !== '' && passwordsMatch === true)) {\r\n\r\n let userToUpdateSecurity = {\r\n id: user.user.id,\r\n currentPassword: null,\r\n newPassword: null,\r\n newEmail: null,\r\n newPhoneNumber: null,\r\n otpCode: null\r\n };\r\n\r\n if (credentials.email !== user.user.email) {\r\n userToUpdateSecurity.newEmail = credentials.email;\r\n }\r\n\r\n if (credentials.password !== '' && credentials.password === credentials.confirmPassword) {\r\n userToUpdateSecurity.currentPassword = credentials.currentPassword;\r\n userToUpdateSecurity.newPassword = credentials.password;\r\n }\r\n\r\n dispatch(updateUserSecurity(userToUpdateSecurity));\r\n dispatch(updateUser(userToUpdateData));\r\n\r\n // setTimeout(() => {\r\n // formInfoRef.current.classList.remove('was-validated');\r\n // }, 5000);\r\n return;\r\n\r\n\r\n\r\n\r\n }\r\n if (formInfoRef.current.checkValidity()) {\r\n\r\n firstFormInputs.forEach(input => {\r\n input.setAttribute('id', \"input-hide-icon\");\r\n });\r\n\r\n dispatch(updateUser(userToUpdateData));\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n function handleDeleteUser(user) {\r\n //dispatch(deleteUser(user));\r\n }\r\n\r\n\r\n return (\r\n
\r\n {/*
*/}\r\n
\r\n
\r\n {/* */}\r\n\r\n {\r\n\r\n
\r\n
Données du compte
\r\n
\r\n \r\n
\r\n
\r\n }\r\n\r\n
e.preventDefault()}>\r\n {\r\n (((auth.SMSWasSent === false && wasSendOnce === false) || modifyNumber === true) && !auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER)) && (loggedIn ? updatingNumber : true) ?\r\n
\r\n\r\n \r\n
\r\n \r\n\r\n {\r\n e.preventDefault();\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value });\r\n }} />\r\n
\r\n \r\n \r\n \r\n {/*
\r\n Champs invalide\r\n
*/}\r\n
\r\n \r\n Valider votre numéro de téléphone\r\n
\r\n
\r\n {\r\n !R.isNil(auth.authError) && auth.authError === \"PhoneNumberTaken\" ?\r\n
\r\n \r\n Ce numéro de téléphone est déjà utilisé.\r\n
\r\n :\r\n

Nous utiliserons ce numéro pour assurer la sécurité de votre compte.

\r\n }\r\n\r\n
\r\n :\r\n\r\n auth.phoneConfirmed === false && (loggedIn && ignoreTmp === false ? tmpPhoneConfirmed === false : true) ?\r\n
\r\n \r\n\r\n
\r\n {\r\n setCredentials({ ...credentials, otpCode: e.target.value });\r\n }} onFocus={() => {\r\n if (isOnFocus === false) {\r\n setIsOnFocus(true);\r\n }\r\n }} onBlur={() => {\r\n setIsOnFocus(false);\r\n }} />\r\n \r\n \r\n \r\n \r\n {isOnFocus === false && !auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER) ?\r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n : ''\r\n }\r\n
\r\n {\r\n auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER) || auth.isLoading.includes(Loadings.VERIFYING_NUMBER) ?\r\n \r\n :\r\n ''\r\n }\r\n {auth.SMSWasSent === true ?\r\n

Vous ne l'avez pas reçu ? {\r\n e.preventDefault();\r\n setModifyNumber(true);\r\n setCredentials({ ...credentials, otpCode: '' });\r\n codeRef.current.focus();\r\n }}>En recevoir un nouveau

\r\n : ''\r\n }\r\n
\r\n : ''\r\n\r\n\r\n }\r\n {(auth.phoneConfirmed && modifyNumber === false) || (loggedIn && (updatingNumber === false && numberIsSame && (tmpPhoneConfirmed && ignoreTmp === false))) ?\r\n
\r\n
\r\n \r\n +{credentials.countryCode} {parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry).formatNational()}\r\n Validé\r\n
\r\n
\r\n \r\n Le numéro de téléphone a été activé avec succès.\r\n
\r\n {registerPage === false ?

Les codes de validation sont envoyés par SMS.

: ''}\r\n {\r\n registerPage === false ?\r\n \r\n :\r\n ''\r\n }\r\n\r\n
\r\n : ''\r\n }\r\n
\r\n\r\n {loggedIn || ((modifyNumber || auth.phoneConfirmed) && registerPage) ?\r\n
handleInfoForm(e)} ref={formInfoRef} noValidate>\r\n
\r\n
\r\n
{\r\n event.preventDefault();\r\n // if (registerPage === true) {\r\n // formSubmitRegister(event);\r\n // }\r\n // else {\r\n // formSubmit(event);\r\n // }\r\n }}>\r\n
\r\n \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n }} pattern={RegexFields.email} />\r\n
\r\n Champs invalide\r\n
\r\n
\r\n {\r\n registerPage === true && (R.isNil(user.user) || R.isNil(user.user.id)) ? '' :\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, currentPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowCurrentPassword(!showCurrentPassword); }}>\r\n
\r\n
\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n }\r\n\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, password: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowPassword(!showPassword); }}>\r\n
\r\n
\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, confirmPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowConfPassword(!showConfPassword); }}>\r\n
\r\n
\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n
\r\n Les mots de passe ne sont pas identiques\r\n
\r\n
\r\n {auth.error === 'email' ? 'Il y a déjà un utilisateur avec cet e-mail.' : ''}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Pour un mot de passe plus sûr
\r\n

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n
\r\n \r\n une lettre majuscule (A-Z)\r\n
\r\n
\r\n \r\n une lettre minuscule (a-z)\r\n
\r\n
\r\n \r\n un chiffre (0-9)\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {/* another form */}\r\n\r\n
\r\n
\r\n
\r\n

Mes données

\r\n
\r\n

ETAT CIVIL

\r\n
\r\n
\r\n {\r\n setPersonalData({ ...personalData, gender: gender.female });\r\n }} />\r\n \r\n
\r\n
\r\n {\r\n setPersonalData({ ...personalData, gender: gender.male });\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, firstName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, lastName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n : ''\r\n }\r\n\r\n {/*
\r\n

Mes données

\r\n
\r\n

ETAT CIVIL

\r\n
\r\n
\r\n {\r\n setPersonalData({ ...personalData, gender: gender.female });\r\n }} />\r\n \r\n
\r\n
\r\n {\r\n setPersonalData({ ...personalData, gender: gender.male });\r\n }} />\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, firstName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
\r\n
\r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, lastName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
*/}\r\n {/* Show only if admin or super admin */}\r\n {/*
\r\n \r\n \r\n
*/}\r\n {/*
\r\n
\r\n
*/}\r\n
\r\n
\r\n
\r\n \r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n \r\n
\r\n );\r\n};","import React, { useRef, useState, useEffect } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport * as loadings from '../../../constants/loadings/user';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\nimport * as Loadings from '../../../constants/loadings/user';\r\nimport {changePhoneNumberSecurity, updateUserSecurityInfo, updateUserEmailAndPassword} from '../../../actions/user-api';\r\nimport {ToasterConfigurations} from '../../../constants/toasterText/configurations';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Header } from '../_common/header';\r\n\r\nimport { useDispatch } from 'react-redux';\r\n\r\nexport const SettingsSecurity = ({user, isLoading}) => {\r\n const dispatch = useDispatch();\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n const securityForm = useRef(null);\r\n\r\n const otherSecurityForm = useRef(null);\r\n\r\n const phoneNumberInputRef = useRef(null);\r\n\r\n const auth = useSelector(state => state.auth);\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [showCurrentPassword, setShowCurrentPassword] = useState(false);\r\n const [showConfPassword, setShowConfPassword] = useState(false);\r\n const [passwordsMatch, setPasswordsMatch] = useState(false);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n \r\n const [editPhoneNumberStep, setEditPhoneNumberStep] = useState(0);\r\n const registerPage = useState(false);\r\n\r\n let initState = {\r\n email: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: '',\r\n otpCode: '',\r\n countryCode: '33',\r\n phoneCountry: 'FR'\r\n }\r\n\r\n let phone = undefined;\r\n if(!R.isEmpty(user.phoneNumber)){\r\n phone = parsePhoneNumber(user.phoneNumber);\r\n if(phone.isValid()){\r\n initState.phoneNumber = phone.nationalNumber;\r\n initState.countryCode = phone.countryCallingCode;\r\n initState.phoneCountry = phone.country;\r\n }\r\n }\r\n\r\n if(!R.isEmpty(user.email)){\r\n initState.email = user.email;\r\n }\r\n\r\n const [credentials, setCredentials] = useState(initState);\r\n\r\n useEffect(() => {\r\n if(editPhoneNumberStep === 2){\r\n document.getElementById(\"otpCodeInput\").focus();\r\n securityForm.current.classList.remove('was-validated');\r\n }\r\n }, [editPhoneNumberStep]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials) && !R.isNil(credentials.password)) {\r\n let hasUpper = !R.isNil(credentials.password.match(RegexFields.hasUpperCase));\r\n let hasLower = !R.isNil(credentials.password.match(RegexFields.hasLowerCase));\r\n let hasDigits = !R.isNil(credentials.password.match(RegexFields.hasDigits));\r\n setPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper })\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials.password]);\r\n\r\n const newPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry) \r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
Données du compte
\r\n
\r\n
Données du compte
\r\n {/*
\r\n \r\n
*/}\r\n
\r\n
\r\n {\r\n (() => {\r\n switch(editPhoneNumberStep){\r\n case 0:\r\n return (
\r\n
\r\n \r\n {phone.formatInternational()}\r\n Validé\r\n
\r\n {/*
\r\n \r\n Le numéro de téléphone a été activé avec succès.\r\n
\r\n

Les codes de validation sont envoyés par SMS.

*/}\r\n \r\n
)\r\n\r\n case 1:\r\n return (
\r\n \r\n
\r\n \r\n {\r\n e.preventDefault();\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value }); \r\n }}\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n {\r\n isLoading.includes(Loadings.SENDING_OTP) ?\r\n \r\n :\r\n \r\n }\r\n \r\n
)\r\n\r\n case 2:\r\n const parsedPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n return(\r\n
\r\n \r\n\r\n
\r\n {\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, otpCode: e.target.value });\r\n }}/>\r\n \r\n {\r\n isLoading.includes(Loadings.VALIDATING_OTP) ?\r\n \r\n :\r\n \r\n }\r\n \r\n \r\n
\r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
\r\n\r\n
\r\n \r\n {\r\n isLoading.includes(Loadings.SENDING_OTP) ?\r\n
\r\n
\r\n Loading...\r\n
\r\n Veuillez patienter...\r\n
\r\n :\r\n

Vous ne l'avez pas reçu ? {\r\n e.preventDefault();\r\n dispatch(changePhoneNumberSecurity(newPhoneNumber.number, user.id));\r\n document.getElementById(\"otpCodeInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, otpCode: '' });\r\n }}>En recevoir un nouveau

\r\n }\r\n
)\r\n }\r\n })() \r\n }\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n }} pattern={RegexFields.email} />\r\n
\r\n Champs invalide\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"WrongPasswordMessage\").classList.remove(\"d-block\");\r\n setCredentials({ ...credentials, currentPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowCurrentPassword(!showCurrentPassword); }}>\r\n
\r\n
\r\n
\r\n Champs invalide\r\n
\r\n \r\n
\r\n
\r\n Le mot de passe est incorrect.\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"passwordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setCredentials({ ...credentials, password: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowPassword(!showPassword); }}>\r\n
\r\n
\r\n {/*
\r\n Champs invalide\r\n
*/}\r\n
\r\n
\r\n
\r\n \r\n
\r\n {\r\n event.preventDefault();\r\n document.getElementById(\"confirmPasswordInput\").setCustomValidity(\"\");\r\n document.getElementById(\"NotIdenticalPasswordsDiv\").classList.remove('d-block');\r\n setCredentials({ ...credentials, confirmPassword: event.target.value });\r\n }} />\r\n
\r\n
\r\n { setShowConfPassword(!showConfPassword); }}>\r\n
\r\n
\r\n {/*
\r\n Champs invalide\r\n
*/}\r\n
\r\n
\r\n
\r\n Les mots de passe ne sont pas identiques.\r\n
\r\n
\r\n Il y a déjà un utilisateur avec cet e-mail.\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Pour un mot de passe plus sûr
\r\n

Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

\r\n
\r\n \r\n une lettre majuscule (A-Z)\r\n
\r\n
\r\n \r\n une lettre minuscule (a-z)\r\n
\r\n
\r\n \r\n un chiffre (0-9)\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n
\r\n {\r\n isLoading.includes(loadings.UPDATE_SECURITY) ? \r\n \r\n :\r\n \r\n }\r\n \r\n
* champs obligatoires
\r\n
\r\n
\r\n
\r\n )\r\n};","import React, { useRef, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport { Header } from './../_common/header';\r\n\r\nexport const SettingsPaiement = () => {\r\n\tconst user = useSelector(state => state.user);\r\n\tconst [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\tconst [credentials, setCredentials] = useState({\r\n\t\temail: !R.isNil(user.user) && !R.isNil(user.user.email) ? user.user.email : '',\r\n\t\tpassword: '',\r\n\t\tconfirmPassword: ''\r\n\t});\r\n\tconst credentialsForm = useRef(null);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Zdenek Croquetaigne

\r\n\t\t\t\t\t\t\t\t

Audric Goddu

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Marmion De La Ronde

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Vick Poisson

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Peverell Arnoux

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Hilaire Marier

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Vedette Sorel

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Mathilde Jolicoeur

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Antoine Faucher

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Zdenek Croquetaigne

\r\n\t\t\t\t\t\t\t\t

Audric Goddu

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Marmion De La Ronde

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Vick Poisson

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Peverell Arnoux

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Clementine Laframouenr

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
payé
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Zoé Latourelle

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Anouk Poirier

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Christine Bourgeau

\r\n\t\t\t\t\t\t\t\t

reglé en interne

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
en attente de paiement
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t)\r\n};","import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nimport liendirect from './../../../assets/images/svg/049-family.svg';\r\n// import autres from './../../../assets/images/svg/051-parents.svg';\r\n\r\nclass deleteUser extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Delete user

\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\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

2 mars 1960

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

71, rue de Raymond Poincaré
11100 NARBONNE, France

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

theundertaker@rhyta.com

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Attaché au numéro de dossier
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

240220201040

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Type du dossier
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Anticipa

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Nom du client
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

Marmion de la Ronde

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\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t\t\t
Attaché au numéro de dossier
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

240220201040

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
Type du dossier
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Facilita

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
Nom du client
\r\n\t\t\t\t\t\t\t\t\t\t\t\t

Marmion de la Ronde

\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(deleteUser);","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\n\r\nimport { Header } from './../_common/header';\r\nimport DeleteUser from './../_common/deleteUser';\r\n\r\nexport const SettingsUsers = () => {\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip('update');\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

Zdenek Croquetaigne

\r\n\t\t\t\t\t\t\t\t

Type of user

\r\n\t\t\t\t\t\t\t
\r\n\t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t\t
\r\n\t\t\t\t\t\t\t\t

Christine Bourgeau

\r\n\t\t\t\t\t\t\t\t

TYPE OF USER

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t)\r\n};","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\n\r\nimport { SettingsProfil } from './profile';\r\nimport { SettingsSecurity } from './securite';\r\nimport { SettingsPaiement } from './paiement';\r\nimport { SettingsUsers } from './users';\r\n\r\nexport const Settings = ({user, isLoading}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n return \r\n }} />\r\n \r\n )\r\n};","import React, { useEffect } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport * as R from 'ramda';\r\n\r\nexport const PaymentTableFilter = ({ routerQuery, pageSearch, setPageSearch, date, setDate }) => {\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n useEffect(() => {\r\n const filterForm = document.querySelector(\"#filterForm\");\r\n const handleClick = (e) => {\r\n if (e.target.type === \"button\") {\r\n e.target.parentElement.classList.remove(\"show\");\r\n }\r\n };\r\n\r\n filterForm.addEventListener(\"click\", handleClick);\r\n return () => filterForm.removeEventListener(\"click\", handleClick);\r\n // eslint-disable-next-line \r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nconst PaymentTableNav = ({ routerQuery, invoices }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default PaymentTableNav;","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { dateToString, formatAmount } from '../../../../utils/misc';\r\nimport InvoicePartner from '../../../../constants/models/invoicePartner';\r\n\r\nexport const PaymentTableRow = ({ invoice, setSelectedInvoice, partner, etablissement }) => {\r\n return (\r\n
\r\n
\r\n
\r\n
{invoice.number}
\r\n
\r\n
\r\n
{R.isNil(invoice.etablissement) ? '-' : invoice.etablissement}
\r\n
\r\n
\r\n
{dateToString(invoice.date)}
\r\n
\r\n
\r\n
{invoice.totalToPay !== '' ? formatAmount(invoice.totalToPay) + \" €\" : \"\"}
\r\n
\r\n
\r\n
{invoice.totalToBill !== '' ? formatAmount(invoice.totalToBill / 1.2) + \" €\" : \"\"}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {\r\n !invoice.paid ?\r\n (() => {\r\n switch (invoice.status) {\r\n case \"new\":\r\n case \"retry3\":\r\n case \"retry7\":\r\n return
en Paiement
;\r\n\r\n case \"canceled\":\r\n return
Annulé
;\r\n\r\n case \"unpaid\":\r\n return
Echoué
;\r\n\r\n default:\r\n return
Inconnu
;\r\n }\r\n\r\n })()\r\n\r\n :\r\n \r\n {/*
A payer
*/}\r\n
Payé
\r\n {/* */}\r\n
\r\n \r\n
\r\n {\r\n invoice.issuerId !== etablissement.id && invoice.issuerId !== partner.id ?\r\n Télécharger la facture\r\n :\r\n \r\n }\r\n
\r\n
\r\n
\r\n }\r\n\r\n\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\n","import React from 'react';\r\nimport * as R from \"ramda\";\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport { PaymentTableFilter } from './filter';\r\nimport PaymentTableNav from './nav';\r\nimport { PaymentTableRow } from './row';\r\nimport Emptylustration from '../../../../assets/images/svg/057-contract-1.svg';\r\n\r\nexport const PaymentTable = ({ invoices, filteredInvoices, routerQuery, pageSearch, setPageSearch, date, setDate, setSelectedInvoice, partner, etablissement }) => {\r\n return (\r\n
\r\n \r\n\r\n {R.isEmpty(invoices.items) ?\r\n
\r\n \"Assist@\"\r\n
\r\n

Il n'y a pas de factures.

\r\n
\r\n
\r\n :\r\n invoices.isLoading ?\r\n
\r\n :\r\n
\r\n \r\n {\r\n filteredInvoices.map((invoice) => {\r\n return ;\r\n })\r\n }\r\n
}\r\n
\r\n );\r\n};\r\n\r\n","import React, { Component, useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { GetEtablissementInvoicesToPay, GetEtablissementInvoicesToBill, GetPartnerInvoicesToPay, GetPartnerInvoicesToBill } from '../../../actions/partner/partner';\r\nimport { dateToString, formatAmount } from '../../../utils/misc';\r\nimport { PaySummary } from '../../_common/paySummary';\r\nimport { DateWithModal } from '../../../_common/dateWithModal';\r\nimport { Link } from 'react-router-dom';\r\nimport { PaymentTable } from './table';\r\n\r\nexport const Paiement = ({ invoices, partner, etablissement, pageSearch, setPageSearch, routerQuery, date, setDate, }) => {\r\n\tconst columns = { number: 'number', etablissement: 'etablissement', date: 'date', totalToPay: 'totalToPay', totalToBill: 'totalToBill' };\r\n\tconst [filteredInvoices, setFilteredInvoices] = useState([]);\r\n\tconst [selectedInvoice, setSelectedInvoice] = useState(undefined);\r\n\tconst [filters, setFilters] = useState({\r\n\t\tsearch: '',\r\n\t\tinvoiceStatus: 'All',\r\n\t\tfromDate: undefined,\r\n\t\ttoDate: undefined\r\n\t});\r\n\tconst [orderBy, setOrderBy] = useState({\r\n\t\tcolumn: columns.date,\r\n\t\tasc: false\r\n\t});\r\n\r\n\r\n\r\n\t// useEffect(() => {\r\n\t// \tsetInvoices({ ...invoices, isLoading: true });\r\n\t// \tif (R.isNil(etablissement)) {\r\n\t// \t\tPromise.all([GetPartnerInvoicesToPay(partner.id), GetPartnerInvoicesToBill(partner.id)])\r\n\t// \t\t\t.then((data) => {\r\n\t// \t\t\t\tconst invoices = data[0].concat(data[1]).filter(i => i.recipientType !== \"USER\").filter(i => i.totalToBill !== 0 || i.totalToPay !== 0);\r\n\t// \t\t\t\tsetInvoices({ isLoading: false, items: invoices });\r\n\t// \t\t\t});\r\n\t// \t} else {\r\n\t// \t\tPromise.all([GetEtablissementInvoicesToPay(etablissement.id), GetEtablissementInvoicesToBill(etablissement.id)])\r\n\t// \t\t\t.then((data) => {\r\n\t// \t\t\t\tlet items = data[0].items.map(i => { return { ...i, number: R.isNil(i.number) ? '' : i.number, date: new Date(i.created), etablissement: etablissement.name, totalToPay: i.issuerId !== etablissement.id ? i.amount : 0, totalToBill: i.issuerId === etablissement.id ? i.amount : 0 }; });\r\n\t// \t\t\t\tlet items2 = data[1].items.map(i => { return { ...i, number: R.isNil(i.number) ? '' : i.number, date: new Date(i.created), etablissement: etablissement.name, totalToPay: i.issuerId !== etablissement.id ? i.amount : 0, totalToBill: i.issuerId === etablissement.id ? i.amount : 0 }; });\r\n\t// \t\t\t\tconst invoices = items.concat(items2).filter(i => i.recipientType !== \"USER\").filter(i => i.totalToBill !== 0 || i.totalToPay !== 0);\r\n\t// \t\t\t\tsetInvoices({ isLoading: false, items: invoices });\r\n\t// \t\t\t});\r\n\t// \t}\r\n\t// }, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet invoicesToDisplay = invoices.items;\r\n\t\t// if (!R.isEmpty(filters.search)) {\r\n\t\t// \tinvoicesToDisplay = invoicesToDisplay.filter(i => !R.isNil(i.number) && i.number.toLowerCase().indexOf(filters.search.toLowerCase()) > -1);\r\n\t\t// }\r\n\t\t// if (filters.invoiceStatus !== 'All') {\r\n\t\t// \tinvoicesToDisplay = invoicesToDisplay.filter(i => i.paid === (filters.invoiceStatus === \"Paid\"));\r\n\t\t// }\r\n\t\t// if (!R.isNil(filters.fromDate)) {\r\n\t\t// \tinvoicesToDisplay = invoicesToDisplay.filter(i => i.date >= filters.fromDate);\r\n\t\t// }\r\n\t\t// if (!R.isNil(filters.toDate)) {\r\n\t\t// \tinvoicesToDisplay = invoicesToDisplay.filter(i => i.date <= filters.toDate);\r\n\t\t// }\r\n\t\tconst sortingFunction = orderBy.asc ? R.ascend(R.prop(orderBy.column)) : R.descend(R.prop(orderBy.column));\r\n\t\tsetFilteredInvoices(R.sort(sortingFunction, invoicesToDisplay));\r\n\t}, [invoices.items, filters, orderBy]);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{/*
*/}\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { useHistory, useLocation } from 'react-router';\r\nimport * as R from 'ramda';\r\nimport { Paiement } from './main';\r\nimport { GetEtablissementInvoicesToBill, GetEtablissementInvoicesToPay, GetPartnerInvoicesToBill, GetPartnerInvoicesToPay } from '../../actions/partner/partner';\r\n\r\nexport const Payment = ({ partner, etablissement }) => {\r\n const dispatch = useDispatch();\r\n const searchQuery = useLocation();\r\n const history = useHistory();\r\n const pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n let page = pageQuery.get('page');\r\n let search = pageQuery.get('search');\r\n let status = pageQuery.get('status');\r\n let startDate = pageQuery.get('startDate');\r\n let endDate = pageQuery.get('endDate');\r\n let sortBy = pageQuery.get('sortBy');\r\n let sortDesc = pageQuery.get('sortDesc');\r\n\r\n page = R.isNil(page) ? 1 : parseInt(page);\r\n search = R.isNil(search) ? \"\" : search;\r\n status = R.isNil(status) ? \"\" : status;\r\n startDate = R.isNil(startDate) ? \"\" : startDate;\r\n endDate = R.isNil(endDate) ? \"\" : endDate;\r\n sortBy = R.isNil(sortBy) ? \"creationdate\" : sortBy;\r\n sortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n const [pageSearch, setPageSearch] = useState(search);\r\n const [invoices, setInvoices] = useState({\r\n isLoading: undefined,\r\n items: [],\r\n totalPages: 0,\r\n totalRecords: 0,\r\n currentPage: 0\r\n\r\n });\r\n const [date, setDate] = useState({\r\n startDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n endDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n });\r\n\r\n const renderRef = useRef(false);\r\n const renderDateRef = useRef(false);\r\n\r\n\r\n useEffect(() => {\r\n\r\n if (isNaN(page) || page === 0) {\r\n history.push(\"/partner/paiement\");\r\n return;\r\n }\r\n\r\n //pageNumber, searchTerm, sortByTerm, sortDesc\r\n //dispatch(fetchClientsInvoices(page, search, status, startDate, endDate, sortBy, sortDesc));\r\n\r\n setInvoices({ ...invoices, isLoading: true });\r\n if (R.isNil(etablissement)) {\r\n Promise.all([GetPartnerInvoicesToPay(partner.id), GetPartnerInvoicesToBill(partner.id)])\r\n .then((data) => {\r\n const invoices = data[0].items.concat(data[1].items).filter(i => i.recipientType !== \"USER\").filter(i => i.totalToBill !== 0 || i.totalToPay !== 0);\r\n // setInvoices(\r\n // { ...invoices, \r\n // isLoading: false ,\r\n // totalPages: 0,\r\n // totalRecords: 0,\r\n // currentPage: 0\r\n // });\r\n });\r\n } else {\r\n Promise.all([GetEtablissementInvoicesToPay(etablissement.id), GetEtablissementInvoicesToBill(etablissement.id)])\r\n .then((data) => {\r\n\r\n let items = data[0].items.map(i => { return { ...i, number: R.isNil(i.number) ? '' : i.number, date: new Date(i.created), etablissement: etablissement.name, totalToPay: i.issuerId !== etablissement.id ? i.amount : 0, totalToBill: i.issuerId === etablissement.id ? i.amount : 0 }; });\r\n let items2 = data[1].items.map(i => { return { ...i, number: R.isNil(i.number) ? '' : i.number, date: new Date(i.created), etablissement: etablissement.name, totalToPay: i.issuerId !== etablissement.id ? i.amount : 0, totalToBill: i.issuerId === etablissement.id ? i.amount : 0 }; });\r\n const allInvoices = items.concat(items2).filter(i => i.recipientType !== \"USER\").filter(i => i.totalToBill !== 0 || i.totalToPay !== 0);\r\n setInvoices(\r\n {\r\n ...invoices,\r\n items: allInvoices,\r\n isLoading: false,\r\n totalPages: data[0].totalPages > data[1].totalPages ? data[0].totalPages : data[1].totalPages,\r\n totalRecords: data[0].totalRecords > data[1].totalRecords ? data[0].totalRecords : data[1].totalRecords,\r\n currentPage: data[0].pageNumber > data[1].pageNumber ? data[0].pageNumber + 1 : data[1].pageNumber + 1\r\n });\r\n\r\n });\r\n }\r\n\r\n\r\n // eslint-disable-next-line \r\n }, [searchQuery.search, history.location]);\r\n\r\n\r\n let timer = null;\r\n useEffect(() => {\r\n\r\n if (!renderRef.current) {\r\n renderRef.current = true;\r\n return;\r\n };\r\n\r\n if (R.isEmpty(pageSearch)) {\r\n history.push(`/partner/paiement?page=${1}${status !== \"\" ? \"&status=\" + status : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n return;\r\n }\r\n\r\n clearTimeout(timer);\r\n timer = setTimeout(() => {\r\n //dispatch(fetchClientsInvoices(page, pageSearch, status, startDate, endDate, sortBy, sortDesc));\r\n }, 1000);\r\n\r\n\r\n return () => clearTimeout(timer);\r\n\r\n // eslint-disable-next-line \r\n }, [pageSearch]);\r\n\r\n\r\n useEffect(() => {\r\n\r\n if (!renderDateRef.current) {\r\n renderDateRef.current = true;\r\n return;\r\n };\r\n\r\n if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n history.push(`/partner/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n return;\r\n\r\n } else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n history.push(`/partner/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n return;\r\n\r\n } else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n history.push(`/partner/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n return;\r\n\r\n } else {\r\n history.push(`/partner/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}`);\r\n }\r\n\r\n // eslint-disable-next-line \r\n }, [date]);\r\n\r\n const routerQuery = {\r\n page,\r\n search,\r\n status,\r\n sortBy,\r\n sortDesc,\r\n endDate,\r\n startDate,\r\n date\r\n };\r\n\r\n //if (!R.isEmpty(invoices.items)) return \"\";\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\n","import React, { useEffect, useState } from 'react';\r\nimport { useSelector, useDispatch } from 'react-redux';\r\nimport { Link, NavLink } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\n\r\n\r\nimport { getProfileFiles, getProfilePicture } from '../../actions/user-api';\r\nimport { FileTypes } from '../../constants/utils/fileTypes';\r\n\r\n\r\nimport logo_hr from './../../assets/images/brand/assista_horizontal-punchout.svg';\r\nimport logo from './../../assets/images/brand/assista.svg';\r\nimport { Avatar } from './../../_common/avatar';\r\n\r\n\r\nexport const Navbar = ({ roles }) => {\r\n const router = useSelector(state => state.router);\r\n const user = useSelector(state => state.user);\r\n const dispatch = useDispatch();\r\n\r\n const [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\r\n useEffect(() => {\r\n\r\n // if (!R.isNil(user.user)) {\r\n\r\n // getProfileFiles(user.user.id)\r\n // .then(data => {\r\n // const profilePictures = data.filter(file => file.fileType === FileTypes.ProfilePicture);\r\n // const fileName = !R.isEmpty(profilePictures) ? profilePictures[profilePictures.length - 1].fileName : \"\";\r\n\r\n // dispatch(getProfilePicture(user.user.id, fileName));\r\n\r\n // });\r\n // }\r\n\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.profilePicture)) {\r\n let i = new Image();\r\n i.onload = function () {\r\n setWidthIsBigger(i.width > i.height);\r\n };\r\n i.src = user.profilePicture;\r\n }\r\n }, [user.profilePicture]);\r\n\r\n\r\n return (\r\n \r\n
\r\n
\r\n \r\n \"Assist@\"\r\n {/* \"Assist@\" */}\r\n

Assist@: Menu

\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n d.fileType === FileTypes.ProfilePicture)} />\r\n
\r\n );\r\n};","import { EndPoints } from '../../api-config';\r\nimport * as R from 'ramda';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const userlettersToPrintUrl = (urlSearchParams) => `${SERVER_ADDR_V1}/userletter/print/list` + (!R.isNil(urlSearchParams) ? `?${urlSearchParams.toString()}` : '');\r\nexport const getUserByIdUrl = (userId) => `${SERVER_ADDR_V1}/user/${userId}`;\r\nexport const getLetterByIdUrl = (letterId) => `${SERVER_ADDR_V1}/letter/${letterId}`;\r\nexport const letterContentUrlByletterId = (letterId) => `${SERVER_ADDR_V1}/userletter/${letterId}/content`;\r\n\r\nexport const letterAndRecoContentUrl = () => `${SERVER_ADDR_V1}/userletter/print/content`;\r\nexport const generateBoredereauUrl = () => `${SERVER_ADDR_V1}/userletter/print/validate`;\r\n\r\n\r\n","import * as R from 'ramda';\r\nimport * as axios from 'axios';\r\nimport * as ImpressionActionTypes from '../../constants/actiontypes/backoffice/impression';\r\nimport * as impressionUrl from '../../constants/webapi/backoffice/impression';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\n\r\nexport function GetUserLettersToPrint(pageNumber) {\r\n\tconst page = parseInt(pageNumber);\r\n\tif (!R.isNil(pageNumber) && isNaN(page)) {\r\n\t\tthrow new Error(\"pageNumber must be null or an integer\");\r\n\t}\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_REQUEST });\r\n\t\treturn axios.get(impressionUrl.userlettersToPrintUrl(new URLSearchParams({\r\n\t\t\tpageNumber: R.isNil(pageNumber) ? 0 : pageNumber - 1,\r\n\t\t\tpageSize: 50\r\n\t\t})))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_SUCCESS,\r\n\t\t\t\t\tdata: response.data\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ImpressionActionTypes.FETCH_USER_LETTERS_TO_PRINT_FAILURE,\r\n\t\t\t\t\terror: error.response\r\n\t\t\t\t});\r\n\t\t\t\tthrow error;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\n\r\nexport function GetUserById(userId) {\r\n\treturn axios.get(impressionUrl.getUserByIdUrl(userId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function GetLetterById(letterId) {\r\n\treturn axios.get(impressionUrl.getLetterByIdUrl(letterId))\r\n\t\t.then((response) => {\r\n\t\t\treturn response.data;\r\n\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tthrow error;\r\n\t\t});\r\n}\r\n\r\nexport function DownloadLettersAndReco(userLetterIds) {\r\n\treturn axios.post(impressionUrl.letterAndRecoContentUrl(), userLetterIds, { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\twindow.open(fileurl);\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n};\r\n\r\n\r\nexport function GenerateBordereau(userLetterIds) {\r\n\treturn axios.post(impressionUrl.generateBoredereauUrl(), userLetterIds, { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\twindow.open(fileurl);\r\n\t\t})\r\n\t\t.catch((error) => {\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\n\r\n// import { AddPartner } from './../_common/AddPartner';\r\n\r\nexport const ImpressionTableHeader = ({ selectAll, areAllSelected, selectedDocuments, tableLinesToDisplay, filters, setFilters }) => {\r\n return (\r\n \r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport {DownloadLettersAndReco} from '../../actions/backoffice/impression';\r\n\r\n// import { AddPartner } from './../_common/AddPartner';\r\n\r\nexport const ImpressionTableLine = ({userLetter, user, letter, selectDocuments, setSelectedDocuments}) => {\r\n return (\r\n
  • \r\n

    List: item

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    {user.processNumber}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {letter.name.substring(letter.name.indexOf('-') + 1)}
    \r\n
    \r\n {/*
    \r\n
    Engie
    \r\n
    */}\r\n
    \r\n
    {userLetter.postId}
    \r\n
    \r\n {/*
    \r\n
    -
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n
    \r\n {/*
    A traiter
    */}\r\n \r\n {/* */}\r\n\r\n
    \r\n
    \r\n
  • \r\n )\r\n}","import React, { useEffect, useState } from 'react';\r\nimport { Link, useLocation } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { GetUserLettersToPrint, GetUserById, GetLetterById, DownloadLettersAndReco, GenerateBordereau } from '../../actions/backoffice/impression';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport Emptylustration from './../../assets/images/svg/057-contract-1.svg';\r\n\r\nimport { ImpressionHeader } from './ImpressionHeader';\r\nimport { ImpressionTableHeader } from './ImpressionTableHeader';\r\nimport { ImpressionTableLine } from './ImpressionTableLine';\r\n\r\nimport * as Loadings from '../../constants/loadings/backoffice/impression';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n// import { AddPartner } from './../_common/AddPartner';\r\n\r\nexport const Impression = ({ impressionState }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst [selectedDocuments, setSelectedDocuments] = useState([]);\r\n\r\n\tconst [tableLines, setTableLines] = useState([]);\r\n\tconst [tableLinesToDisplay, setTableLinesToDisplay] = useState([]);\r\n\tconst [filters, setFilters] = useState({\r\n\t\torder: {\r\n\t\t\ttable: \"letter\",\r\n\t\t\tcolumn: \"name\",\r\n\t\t\tasc: true\r\n\t\t},\r\n\t\tsearch: \"\",\r\n\t});\r\n\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\tlet page = pageQuery.get('page');\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(GetUserLettersToPrint(R.isNil(page) ? 1 : page));\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [page]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst uniqueUserIds = [];\r\n\t\tconst uniqueLetterIds = [];\r\n\r\n\t\tconst promisesUser = [];\r\n\t\tconst promisesLetters = [];\r\n\r\n\t\t//setSelectedDocuments(impressionState.userLetters.map(u => u.id));\r\n\r\n\t\timpressionState.userLetters.map((userLetter) => {\r\n\t\t\tif (uniqueUserIds.indexOf(userLetter.userId) === -1) {\r\n\t\t\t\tuniqueUserIds.push(userLetter.userId);\r\n\t\t\t\tpromisesUser.push(GetUserById(userLetter.userId));\r\n\t\t\t}\r\n\t\t\tif (uniqueLetterIds.indexOf(userLetter.letterId) === -1) {\r\n\t\t\t\tuniqueLetterIds.push(userLetter.letterId);\r\n\t\t\t\tpromisesLetters.push(GetLetterById(userLetter.letterId));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tlet users = [];\r\n\t\tlet letters = [];\r\n\t\tsetIsLoading(true);\r\n\t\tPromise.all(promisesUser)\r\n\t\t\t.then((userDtos) => {\r\n\t\t\t\tusers = userDtos;\r\n\t\t\t\tPromise.all(promisesLetters)\r\n\t\t\t\t\t.then((letterDtos) => {\r\n\t\t\t\t\t\tletters = letterDtos;\r\n\t\t\t\t\t\tconst t = [];\r\n\t\t\t\t\t\timpressionState.userLetters.map((userLetter) => {\r\n\t\t\t\t\t\t\tconst letter = letters.find(l => l.id === userLetter.letterId);\r\n\t\t\t\t\t\t\tletter.name = letter.name.substring(letter.name.indexOf('-') + 1);\r\n\t\t\t\t\t\t\tletter.name = letter.name.substr(0, 1).toUpperCase() + letter.name.substring(1);\r\n\r\n\t\t\t\t\t\t\tt.push({\r\n\t\t\t\t\t\t\t\tuserLetter,\r\n\t\t\t\t\t\t\t\tuser: users.find(u => u.id === userLetter.userId),\r\n\t\t\t\t\t\t\t\tletter: letter\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tsetTableLines(t);\r\n\t\t\t\t\t\tsetIsLoading(false);\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [impressionState.userLetters]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tlet temp = [...tableLines];\r\n\r\n\t\tif (filters.order.asc) {\r\n\r\n\t\t\ttemp = R.sort(R.ascend(R.path([filters.order.table, filters.order.column])), temp);\r\n\r\n\t\t} else {\r\n\r\n\t\t\ttemp = R.sort(R.descend(R.path([filters.order.table, filters.order.column])), temp);\r\n\r\n\t\t}\r\n\r\n\t\tif (!R.isEmpty(filters.search)) {\r\n\t\t\ttemp = temp.filter(tl => tl.letter?.name?.toLowerCase().includes(filters.search.toLowerCase()) || tl.user.processNumber.toString().toLowerCase().includes(filters.search.toLowerCase()));\r\n\r\n\t\t}\r\n\r\n\t\tsetTableLinesToDisplay(temp);\r\n\r\n\t}, [filters, tableLines]);\r\n\r\n\t// if (impressionState.isLoading.includes(Loadings.FETCHING_USER_LETTERS)) {\r\n\t// \treturn ;\r\n\t// }\r\n\r\n\tif (R.isEmpty(impressionState.userLetters)) {\r\n\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t\"Assist@\"\r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Il n'y a pas de

    lettres.

    \r\n\t\t\t\t\t

    L'utilisateur veuillez ajouter un nouvel lettres.

    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t

    Backoffice: Print

    \r\n\t\t\t
    \r\n\t\t\t\t{/* */}\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{!tableLinesToDisplay.length >= 1 ?\r\n\t\t\t\t\t\tfilters.search.trim() !== \"\" ?\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Il n'y a pas de

    lettres.

    \r\n\t\t\t\t\t\t\t\t\t

    Malheureusement, nous ne parvenons pas à trouver le contenu que vous recherchez.

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t< LoadingState />\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Print: List

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\tconst userLettersToDisplay = tableLinesToDisplay.map(t => t.userLetter.id);\r\n\t\t\t\t\t\t\t\t\tif (userLettersToDisplay.every(t => selectedDocuments.includes(t))) {\r\n\t\t\t\t\t\t\t\t\t\tsetSelectedDocuments(selectedDocuments.filter(d => !userLettersToDisplay.includes(d)));\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tconst tempSelectedDocs = selectedDocuments.concat(userLettersToDisplay);\r\n\t\t\t\t\t\t\t\t\t\tsetSelectedDocuments(R.uniq(tempSelectedDocs));\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}} areAllSelected={tableLinesToDisplay.every(t => selectedDocuments.includes(t.userLetter.id))} selectedDocuments={selectedDocuments.length} setSelectedDocuments={setSelectedDocuments} totalRecords={impressionState.totalRecords} tableLinesToDisplay={tableLinesToDisplay.length} />\r\n\t\t\t\t\t\t\t\t{!R.isNil(selectedDocuments) && selectedDocuments.length > 0 ?\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{selectedDocuments.length} lettres sélectionnées sur un total de {impressionState.totalRecords}.\r\n\t\t\t\t\t\t\t\t\t\t setSelectedDocuments([])}>Supprimer la sélection\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{impressionState.isLoading.includes(Loadings.FETCHING_USER_LETTERS) || isLoading ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
      \r\n\t\t\t\t\t\t\t\t\t{tableLinesToDisplay.map((tableLine) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t}\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import { EndPoints } from '../../api-config';\r\nimport { pageLimit } from '../../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n\r\n//export const usersByRoleUrl = (role, page) => `${SERVER_ADDR_V1}/user?roles=${role}&pagesize=${pageLimit}&pagenumber=${parseInt(page) - 1}`;\r\n//https://assistarobase-api-stg.azurewebsites.net/user?pagesize=30&pagenumber=0&filter=PartnerId eq 'ce925133-b91d-43f9-0260-08d979205526'\r\nexport const usersByRoleUrl = (role, page, search, partnerId, type, sortBy, sortDesc) => `${SERVER_ADDR_V1}/user?roles=${role}&pagesize=${pageLimit}&pagenumber=${parseInt(page) - 1}${search === \"\" ? \"\" : \"&textSearch=\" + search}${type === \"\" ? \"\" : \"&type=\" + type}${sortBy === \"\" ? \"\" : \"&sortBy=\" + sortBy}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}${partnerId !== \"\" ? \"&partnerId=\" + partnerId : \"\"}`;\r\n","import * as axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport * as ActionTypes from '../../constants/actiontypes/backoffice/dossiers';\r\nimport * as urls from '../../constants/webapi/backoffice/dossiers';\r\nimport * as partnerUrls from '../../constants/webapi/partner/partner';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\n\r\n\r\nexport function fetchUsersByRole(role, pageNumber, search, partnerId = \"\", type, sortBy, sortDesc) {\r\n const page = parseInt(pageNumber);\r\n if (!R.isNil(pageNumber) && isNaN(page)) {\r\n throw new Error(\"pageNumber must be null or an integer\");\r\n }\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypes.FETCH_USERS_DOSSIERS_REQUEST, role: role });\r\n return axios.get(urls.usersByRoleUrl(role, pageNumber, search, partnerId, type, sortBy, sortDesc))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypes.FETCH_USERS_DOSSIERS_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypes.FETCH_USERS_DOSSIERS_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function fetchAllPartners() {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypes.FETCH_PARTNERS_DOSSIERS_REQUEST });\r\n return axios.get(partnerUrls.partnersByUrl())\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypes.FETCH_PARTNERS_DOSSIERS_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypes.FETCH_PARTNERS_DOSSIERS_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function setFilterGlobal(filter) {\r\n\r\n return {\r\n type: ActionTypes.SET_DOSSIER_FILTER,\r\n data: filter\r\n };\r\n\r\n}\r\n","export default __webpack_public_path__ + \"static/media/088-duo.4d086a96.svg\";","import React from 'react';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from \"ramda\";\r\n\r\nexport const DossiersFilter = ({ dossierState, statusOptions, searchRef, pageSearch, setFilterGlobal, setPageSearch, partnersToDisplay, routerQuery }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\r\n\tconst partnerName = !R.isNil(partnersToDisplay) && !R.isEmpty(partnersToDisplay) ? partnersToDisplay.find(p => p.id === routerQuery.partner)?.name : \"\";\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const DossiersPagination = ({ dossierState, pageSearch, routerQuery }) => {\r\n\treturn (\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from \"ramda\";\r\n\r\nimport * as Loadings from '../../../constants/loadings/backoffice/dossiers';\r\nimport { setFilterGlobal } from '../../../actions/backoffice/dossiers';\r\nimport { EnvoisProfile } from '../_common/EnvoisProfile';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\nimport { DossiersFilter } from './filter';\r\nimport { DossiersPagination } from './pagination';\r\n\r\nexport const DossiersMain = ({ dossierState, partnerState, partners, pageSearch, setPageSearch, routerQuery }) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [usersToDisplay, setUsersToDisplay] = useState(dossierState.dossiers);\r\n\tconst [partnersToDisplay, setPartnersToDisplay] = useState(partners);\r\n\t// const statusOptionsRoute = { anticipaNotAccepted: \"N'a pas accepté\", facilitaNotAccepted: \"N'a pas accepté\", anticipaOngoing: \"En cours\", facilitaOngoing: \"En cours\", anticipaFinished: \"Complété\", anticipaYearAndMore: \"Contrat d'un an\", anticipaClosed: \"Clôture\", all: 'Tous les dossiers', facilitaSending: 'A envoyer', facilitaOvertime: \"Dépassé la limite\" };\r\n\tconst statusOptionsRoute = {\r\n\t\tanticipaNotAccepted: \"N'a pas accepté\",\r\n\t\tfacilitaNotAccepted: \"N'a pas accepté\",\r\n\t\tanticipaOngoing: \"En cours\",\r\n\t\tfacilitaOngoing: \"En cours\",\r\n\t\tanticipaFinished: \"Complété\",\r\n\t\tanticipaYearAndMore: \"Contrat d'un an\",\r\n\t\tanticipaClosed: \"Clôture\",\r\n\t\tall: \"Tous les dossiers\",\r\n\t\tfacilitaSending: \"A envoyer\"\r\n\t};\r\n\t// const statusOptions = { notAccepted: \"N'a pas accepté\", ongoing: \"En cours\", finished: \"Complété\", yearAndMore: \"Contrat d'un an\", all: \"Tous les dossiers\", sending: \"A envoyer\", overtime: \"Dépassé la limite\", closed: \"Clôture\" };\r\n\tconst statusOptions = { notAccepted: \"N'a pas accepté\", ongoing: \"En cours\", finished: \"Complété\", yearAndMore: \"Contrat d'un an\", all: 'Tous les dossiers', sending: 'A envoyer', closed: \"Clôture\" };\r\n\tconst searchRef = useRef();\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(searchRef.current) && pageSearch !== \"\") {\r\n\t\t\tsearchRef.current.focus();\r\n\t\t}\r\n\t}, [pageSearch]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tlet temp = partners;\r\n\t\tsetPartnersToDisplay(temp);\r\n\r\n\t\t// if ((!R.isNil(pagePartner) || pagePartner !== \"\") && R.isNil(dossierState.globalFilters.partner.id) && !R.isNil(dossierState.partners)) {\r\n\r\n\t\t// \tconst findPartner = dossierState.partners.find(p => p.id === pagePartner);\r\n\t\t// \tif (!R.isNil(findPartner)) {\r\n\t\t// \t\tdispatch(setFilterGlobal({ partner: { id: findPartner.id, name: findPartner.name } }));\r\n\t\t// \t}\r\n\r\n\t\t// }\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [partners]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tlet temp = dossierState.dossiers;\r\n\r\n\t\t// if (!R.isNil(dossierState.globalFilters.type)) {\r\n\t\t// \ttemp = temp.filter(user => user.status === dossierState.globalFilters.type);\r\n\t\t// }\r\n\r\n\t\t// if (dossierState.globalFilters.order.asc) {\r\n\t\t// \ttemp = R.sort(R.ascend(R.prop(dossierState.globalFilters.order.column)), temp);\r\n\t\t// }\r\n\r\n\t\t// if (!R.isNil(dossierState.globalFilters.partner.id)) {\r\n\t\t// \ttemp = temp.filter(user => user.partnerId === dossierState.globalFilters.partner.id);\r\n\t\t// }\r\n\t\t// if (!R.isEmpty(dossierState.globalFilters.search)) {\r\n\t\t// \ttemp = temp.filter(user => user.firstName?.toLowerCase().includes(dossierState.globalFilters.search.toLowerCase()) || user.lastName?.toLowerCase().includes(dossierState.globalFilters.search.toLowerCase()));\r\n\t\t// \t//history.push(`/backoffice/dossiers?page=1&search=${dossierState.globalFilters.search}`);\r\n\t\t// }\r\n\r\n\r\n\t\t//setUsers(dossierState.globalFilters.order.asc ? R.sort(R.ascend(R.prop(dossierState.globalFilters.order.column)), temp) : R.sort(R.descend(R.prop(dossierState.globalFilters.order.column)), temp));\r\n\r\n\t\tsetUsersToDisplay(temp);\r\n\r\n\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [dossierState.globalFilters, dossierState]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tconst filterForm = document.querySelector(\"#filterForm\");\r\n\t\tconst handleClick = (e) => {\r\n\t\t\tif (e.target.type === \"button\") {\r\n\t\t\t\te.target.parentElement.classList.remove(\"show\");\r\n\t\t\t}\r\n\t\t};\r\n\t\tconst filterFormEvent = filterForm.addEventListener(\"click\", handleClick);\r\n\r\n\t\treturn () => filterForm.removeEventListener(\"click\", handleClick);\r\n\t}, []);\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{\r\n\t\t\t\t\tdossierState.isLoading.includes(Loadings.FETCHING_USERS_DOSSIERS) ?\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{!R.isEmpty(usersToDisplay) ?\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{usersToDisplay.map(user => {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(user);\r\n\t\t\t\t\t\t\t\t\t\tlet dossierTypeName = (user.createdByRepresentative ? \"Facilita\" : \"Anticipa\") + (user.hasDocumentSending ? \"\" : \" light\");\r\n\t\t\t\t\t\t\t\t\t\tif(user.createdByRepresentative && !user.hasDocumentSending && user.isSerenita){\r\n\t\t\t\t\t\t\t\t\t\t\tdossierTypeName = \"Serenita\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    {user.firstName} {user.lastName}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{dossierTypeName} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.hasHrDocuments ? RH :\"\"}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tR.isNil(user.etablissementName) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tR.isNil(user.partnerId)?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPartner: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.partnerName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPartner: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.partnerName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tEtablissement: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{user.etablissementName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* {statusOptions[user.status]} */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[user.status] === statusOptions.notAccepted && {statusOptions[user.status]}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[user.status] === statusOptions.ongoing && {statusOptions[user.status]}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[user.status] === statusOptions.finished && {statusOptions[user.status]}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[user.status] === statusOptions.sending && {statusOptions[user.status]}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* {statusOptions[user.status] === statusOptions.overtime && {statusOptions[user.status]}} */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstatusOptions[user.status] !== statusOptions.notAccepted &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstatusOptions[user.status] !== statusOptions.ongoing &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstatusOptions[user.status] !== statusOptions.finished &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstatusOptions[user.status] !== statusOptions.sending &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// statusOptions[user.status] !== statusOptions.overtime &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[user.status]}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

    Vallis Lajoie

    \r\n\t\t\t\t\t\t\t\t

    Facilita

    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\tEn cours\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

    Catwoman

    \r\n\t\t\t\t\t\t\t\t

    Facilita

    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\tEn cours\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

    Batman

    \r\n\t\t\t\t\t\t\t\t

    Anticipa

    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\tEn terminé\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

    Batman

    \r\n\t\t\t\t\t\t\t\t

    Anticipa

    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\tEn cloture\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    */}\r\n\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    Agent - Empty
    \r\n\t\t\t\t\t\t\t\t\t\t
    On dirait
    qu'il est vide.
    \r\n\t\t\t\t\t\t\t\t\t\t

    Malheureusement, nous ne parvenons pas à trouver le contenu que vous recherchez.

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
    }\r\n\t\t\t\t{/* */}\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nimport previewPdf from './../../assets/images/placeholder/pdf-placeholder.jpg';\r\n\r\nclass PrinterDoc extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    User deceased

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    impression de documents
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\"pdf\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    Chronologie
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Validation et soumission à AGEESMA

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(PrinterDoc);","import React, { useState } from 'react';\r\n// import { useSelector } from 'react-redux';\r\n\r\nimport notaire from './../../../assets/images/svg/004-A-notaire.png';\r\nimport securitesociale from './../../../assets/images/svg/004-A-securitesocial.png';\r\nimport banque from './../../../assets/images/svg/004-A-banque.svg';\r\nimport mutuelle from './../../../assets/images/svg/004-A-mutuelle.svg';\r\nimport assurance from './../../../assets/images/svg/100-assurance.svg';\r\nimport fournisseureau from './../../../assets/images/svg/004-A-fournisseureau.svg';\r\nimport fournisseurelectricite from './../../../assets/images/svg/004-A-fournisseurelectricite.svg';\r\nimport telephonemobile from './../../../assets/images/svg/004-A-telephonemobile.svg';\r\nimport centreimpots from './../../../assets/images/svg/004-A-dgfip.png';\r\n\r\nimport sport from './../../../assets/images/svg/004-B-sport.svg';\r\nimport internet from './../../../assets/images/svg/004-B-internet.svg';\r\nimport loisirs from './../../../assets/images/svg/004-B-loisirs.svg';\r\nimport voitures from './../../../assets/images/svg/004-B-voiture.svg';\r\nimport transport from './../../../assets/images/svg/004-B-transport.svg';\r\nimport entretienmaison from './../../../assets/images/svg/004-B-entretienmaison.svg';\r\nimport securite from './../../../assets/images/svg/004-B-securite.svg';\r\nimport soinesthetique from './../../../assets/images/svg/004-B-soinesthetique.svg';\r\nimport domicile from './../../../assets/images/svg/004-B-domicile.svg';\r\nimport musique from './../../../assets/images/svg/004-B-musique.svg';\r\nimport cartepaiment from './../../../assets/images/svg/004-B-cartepaiment.svg';\r\nimport multimedia from './../../../assets/images/svg/004-B-multimedia.svg';\r\nimport tech from './../../../assets/images/svg/004-B-tech.svg';\r\nimport tv from './../../../assets/images/svg/004-B-tv.svg';\r\nimport solidaire from './../../../assets/images/svg/004-B-solidaire.svg';\r\nimport autres from './../../../assets/images/svg/004-B-autres.svg';\r\n\r\nimport reseauxsociaux from './../../../assets/images/svg/104-social-media.svg';\r\nimport loisir from './../../../assets/images/svg/029-football-ball.svg';\r\nimport pet from './../../../assets/images/svg/028-pet-food.svg';\r\nimport mobile from './../../../assets/images/svg/024-furniture.svg';\r\nimport personnes from './../../../assets/images/svg/024-account.svg';\r\nimport duo from './../../../assets/images/svg/088-duo.svg';\r\n\r\nexport const AlertProfile = () => {\r\n\t// const router = useSelector(state => state.router);\r\n\t//We should get it from backend!\r\n\tfunction service(title, icon, progress) { return { title: title, icon: icon, progress: (progress === undefined ? 0 : progress) } };\r\n\tfunction doc(firstTitle, secondTitle, num, actions) { return { firstTitle: firstTitle, secondTitle: secondTitle, num: num, actions: actions } };\r\n\tconst [userServices, setUserServices] = useState([\r\n\t\tservice('notaire', notaire, 100), service('sport', sport, 100), service('internet', internet, 0), service('fournisseur d\\'électricité', fournisseurelectricite, 100),\r\n\t\tservice('téléphone mobile', telephonemobile, 100), service('banque', banque, 100), service('multimedia', multimedia, 100), service('dissolution du pacs', securitesociale, 100),\r\n\t\tservice('centre des impôts', centreimpots, 100), service('musique', musique, 100), service('mutuelle', mutuelle, 100), service('voiture', voitures, 100),\r\n\t\tservice('assurance', assurance, 100), service('fournisseur d\\'eau', fournisseureau, 100), service('loisirs', loisirs, 100), service('titre de transport', transport, 100),\r\n\t\tservice('entretien maison', entretienmaison, 100), service('sécurité', securite, 100), service('SOIN ET ESTHETIQUE', soinesthetique, 100), service('Services a domicile', domicile, 100),\r\n\t\tservice('CARTE DE PAIEMENT', cartepaiment, 100), service('Technology', tech, 100), service('TÉLÉVISION', tv), service('solidarité', solidaire, 100),\r\n\t\tservice('autres', autres, 100), service('reseaux sociaux', reseauxsociaux, 100), service('loisirs', loisir), service('animaux', pet, 100),\r\n\t\tservice('MATERIEL / MOBILE', mobile), service('personnes', personnes, 100), service('duo', duo, 100)\r\n\t]);\r\n\tconst [userDocuments, setUserDocuments] = useState([doc('documents', 'personnels', 0, 4), doc('documents', 'référent', 0, 3), doc('démarches', 'communes', 3, 10), doc('démarches', 'personnalisées', 4, 20)]);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    User Alert

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Envoyer une alerte
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    Confirmez rapidement la prochaine date d'alerte programmée pour l'utilisateur \"Prénom Nom\" ci-dessous.

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/* show only the ones in danger */}\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tuserServices.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t(s.progress !== 100) ?\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{s.title}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {s.title}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    Envoyer jusqu'au jour

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    14/07/2020
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t)\t\r\n}","export default __webpack_public_path__ + \"static/media/056-file-2.900c422c.svg\";","\r\nimport * as axios from 'axios';\r\nimport * as ActionTypesBO from '../../constants/actiontypes/backoffice/user';\r\nimport * as ActionTypesUser from '../../constants/actiontypes/user';\r\nimport * as DeathDeclarationActionTypes from '../../constants/actiontypes/facilita/deathDeclaration';\r\nimport * as PartnerActionTypes from '../../constants/actiontypes/partner/partner';\r\nimport * as PartnerUrl from '../../constants/webapi/partner/partner';\r\nimport * as userUrls from '../../constants/webapi/user';\r\nimport * as urlsFacilita from '../../constants/webapi/facilita';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\n\r\n\r\nexport function resetDetailUser() {\r\n return ({ type: ActionTypesBO.RESET_BACKOFFICER_USER_STATE });\r\n}\r\n\r\nexport function fetchUserById(id) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesBO.FETCH_BACKOFFICE_USER_REQUEST, id: id });\r\n return axios.get(userUrls.userByIdUrl(id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function fetchUserInvoicesById(id) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesBO.FETCH_BACKOFFICE_USER_INVOICES_REQUEST, id: id });\r\n return axios.get(userUrls.getRecipientInvoicesByIdUrl(id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_INVOICES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_INVOICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function getUserServices(user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesBO.FETCH_BACKOFFICE_USER_SERVICES_REQUEST, user: user.id });\r\n return axios.get(userUrls.userServicesUrl(user.id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_SERVICES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesBO.FETCH_BACKOFFICE_USER_SERVICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function getUserServiceData(userId, serviceType) {\r\n return (dispatch) => {\r\n dispatch({ type: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_REQUEST, user: userId });\r\n return axios.get(userUrls.userServiceDataUrl(userId, serviceType))\r\n .then((response) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_USER_SERVICES_DATA_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function getDocuments(user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesUser.FETCH_DOCUMENTS_REQUEST, user: user.id });\r\n return axios.get(userUrls.userDocumentsUrl(user.id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesUser.FETCH_DOCUMENTS_SUCCESS,\r\n data: response.data,\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesUser.FETCH_DOCUMENTS_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function getUserAddress(userId) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesUser.FETCH_USER_ADDRESS_REQUEST, user: userId });\r\n return axios.get(userUrls.userAddressByIdUrl(userId))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesUser.FETCH_USER_ADDRESS_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesUser.FETCH_USER_ADDRESS_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function getUserConnections(userId) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesUser.FETCH_USER_SERVICES_REQUEST, user: userId });\r\n return axios.get(urlsFacilita.userConnectionsUrl(userId))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesUser.FETCH_USER_SERVICES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesUser.FETCH_USER_SERVICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function getLettersForUserId(userId) {\r\n return (dispatch) => {\r\n dispatch({ type: DeathDeclarationActionTypes.FETCH_USER_LETTERS_REQUEST, userId: userId });\r\n return axios.get(urlsFacilita.userLetterUrlByUserId(userId))\r\n .then((response) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_USER_LETTERS_SUCCESS,\r\n userId: userId,\r\n letters: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_USER_LETTERS_FAILURE,\r\n response: error.response,\r\n userId: userId\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function getUserRepresentatives(userId) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesUser.FETCH_REPRESENTATIVES_REQUEST });\r\n return axios.get(userUrls.userRepresentativesUrlById(userId))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesUser.FETCH_REPRESENTATIVES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesUser.FETCH_REPRESENTATIVES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function createDeathDeclaration(userId, deathDeclaration) {\r\n return (dispatch) => {\r\n dispatch({ type: DeathDeclarationActionTypes.CREATE_DECLARATION_REQUEST });\r\n return axios.post(userUrls.declareDeathById(userId), deathDeclaration)\r\n .then((response) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.CREATE_DECLARATION_SUCCESS,\r\n data: response.data,\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: DeathDeclarationActionTypes.CREATE_DECLARATION_FAILURE,\r\n response: error.response,\r\n // referentId: id\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function getDeathDeclaration(userId, defaultValues) {\r\n return (dispatch) => {\r\n dispatch({ type: DeathDeclarationActionTypes.FETCH_DECLARATION_REQUEST });\r\n return axios.get(userUrls.declareDeathById(userId))\r\n .then((response) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n data: response.data\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined) {\r\n if (error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_DECLARATION_SUCCESS,\r\n data: {},\r\n defaultValues\r\n });\r\n return \"NotFound\";\r\n }\r\n }\r\n dispatch({\r\n type: DeathDeclarationActionTypes.FETCH_DECLARATION_FAILURE,\r\n response: error.response,\r\n // referentId: id\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function inviteUserRepresentative(userRepresentativeId) {\r\n return (dispatch) => {\r\n dispatch({ type: DeathDeclarationActionTypes.REPRESENTATIVE_INVITATION_REQUEST });\r\n return axios.post(urlsFacilita.userRepresentativesInvitationByIdUrl(userRepresentativeId))\r\n .then((response) => {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.REPRESENTATIVE_INVITATION_SUCCESS,\r\n data: response.data\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined) {\r\n if (error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: DeathDeclarationActionTypes.REPRESENTATIVE_INVITATION_FAILURE,\r\n data: {},\r\n });\r\n return \"NotFound\";\r\n }\r\n }\r\n dispatch({\r\n type: DeathDeclarationActionTypes.REPRESENTATIVE_INVITATION_FAILURE,\r\n response: error.response,\r\n // referentId: id\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function closeDossier(userId, user) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesBO.DELETE_BACKOFFICE_USER_REQUEST, user: userId });\r\n return axios.delete(userUrls.userSoftDeleteByIdUrl(userId), user)\r\n .then(() => {\r\n dispatch({\r\n type: ActionTypesBO.DELETE_BACKOFFICE_USER_SUCCESS,\r\n user: user,\r\n userId: userId\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesBO.DELETE_BACKOFFICE_USER_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function GetPartnerById(partnerId) {\r\n return (dispatch) => {\r\n dispatch({ type: PartnerActionTypes.FETCH_PARTNER_REQUEST });\r\n return axios.get(PartnerUrl.partnerByIdUrl(partnerId))\r\n .then((response) => {\r\n dispatch({\r\n type: PartnerActionTypes.FETCH_PARTNER_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PartnerActionTypes.FETCH_PARTNER_FAILURE,\r\n error: error.response\r\n });\r\n throw error;\r\n });\r\n };\r\n}\r\n\r\nexport function GetEtablissementById(partnerId, etablissementId) {\r\n return (dispatch) => {\r\n dispatch({ type: PartnerActionTypes.FETCH_ETABLISSEMENT_REQUEST });\r\n return axios.get(PartnerUrl.etablissementByIdAndPartnerIdUrl(partnerId, etablissementId))\r\n .then((response) => {\r\n dispatch({\r\n type: PartnerActionTypes.FETCH_ETABLISSEMENT_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PartnerActionTypes.FETCH_ETABLISSEMENT_FAILURE,\r\n error: error.response\r\n });\r\n throw error;\r\n });\r\n };\r\n}\r\n\r\n// export function InviteUserRepresentative(userRepresentativeId) {\r\n// return axios.post(urls.userRepresentativesInvitationByIdUrl(userRepresentativeId))\r\n// .then((response) => {\r\n// return;\r\n// })\r\n// .catch((error) => {\r\n// throw error.statusText;\r\n// });\r\n// }\r\n\r\nexport function DownloadPrintFile(userId, guideNames) {\r\n return (dispatch) => {\r\n const guideDtos = [];\r\n guideNames.map(g => guideDtos.push({name: g.file}));\r\n dispatch({ type: ActionTypesBO.GENERATE_PRINT_REQUEST, data:userId });\r\n return axios.post(userUrls.generatePrintFile(userId), guideDtos, { responseType: \"arraybuffer\" })\r\n\t\t.then((response) => {\r\n\t\t\tvar file = new Blob([response.data], { type: response.headers[\"content-type\"] });\r\n\t\t\tvar fileurl = window.URL.createObjectURL(file);\r\n\t\t\twindow.open(fileurl);\r\n dispatch({ type: ActionTypesBO.GENERATE_PRINT_SUCCESS});\r\n\t\t})\r\n\t\t.catch((error) => {\r\n dispatch({ type: ActionTypesBO.GENERATE_PRINT_FAILURE });\r\n\t\t\tif (error.response !== undefined && error.response.status === 401) {\r\n\t\t\t\twindow.location = getAuthenticationUrl();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthrow error;\r\n\t\t});\r\n }\r\n};","import React, { useRef, useState } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { createDeathDeclaration } from '../../../actions/backoffice/user';\r\nimport * as R from \"ramda\";\r\nimport DatePicker, { registerLocale } from 'react-datepicker';\r\nimport fr from \"date-fns/locale/fr\";\r\nimport parse from \"date-fns/parse\";\r\n\r\n\r\n\r\n\r\n\r\nexport const ProcessDeces = ({ userId, birthDate, address }) => {\r\n\tregisterLocale(\"fr\", fr);\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst calendarRef = useRef(null);\r\n\tconst [date, setDate] = useState({\r\n\t\tselectedDate: new Date()\r\n\t});\r\n\r\n\tconst [personalData, setPersonalData] = useState({});\r\n\r\n\r\n\tconst [dateManualEdit, setDateManualEdit] = useState(false);\r\n\tconst [manualDate, setManualDate] = useState(new Date().toLocaleDateString('fr-FR', { day: 'numeric', month: 'numeric', year: 'numeric' }));\r\n\tconst today = new Date();\r\n\r\n\t// useEffect(() => {\r\n\t// if (!R.isNil(selectedDate)) {\r\n\t// setDate({ selectedDate: selectedDate });\r\n\t// }\r\n\t// }, [selectedDate]);\r\n\r\n\tfunction capitalize(s) {\r\n\t\tif (typeof s !== 'string') return '';\r\n\t\treturn s.charAt(0).toUpperCase() + s.slice(1);\r\n\t}\r\n\r\n\tfunction convertDateToUtc(date) {\r\n\t\tlet month = date.getMonth() + 1;\r\n\t\tlet monthString = month < 10 ? '0' + month : '' + month;\r\n\t\tlet day = date.getDate();\r\n\t\tlet dayString = day < 10 ? '0' + day : '' + day;\r\n\t\treturn new Date(date.getFullYear() + \"-\" + monthString + \"-\" + dayString + \"T00:00:00Z\");\r\n\t}\r\n\r\n\tfunction removeSelectedFromCalendar() {\r\n\t\tsetTimeout(() => {\r\n\t\t\tconst nodes = window.document.querySelectorAll('.react-datepicker__day--keyboard-selected');\r\n\t\t\tif (!R.isNil(nodes) && nodes.length > 0) {\r\n\t\t\t\tnodes.forEach(element => {\r\n\t\t\t\t\telement.classList.remove(['react-datepicker__day--keyboard-selected']);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, 0);\r\n\t}\r\n\r\n\r\n\tfunction onSubmitDeathDeclaration(e) {\r\n\t\te.preventDefault();\r\n\t\tconst options = {\r\n\t\t\tdeathDate: date.selectedDate,\r\n\t\t\taddress: {\r\n\t\t\t\tAddressLine1: address.addressLine1,\r\n\t\t\t\tPostalCode: address.postalCode,\r\n\t\t\t\tCity: address.city,\r\n\t\t\t\tCountry: address.country\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tdispatch(createDeathDeclaration(userId, options));\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    User deceased

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    client décÈdé
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    Avant de commencer le processus, veuillez saisir la date du décès. Un mail et un message sera envoyé au reférent pour le prevenir , afin que celui-ci lance la procédure des démarches administratives à faire suite au décès

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat('fr-FR', { day: \"numeric\", month: \"long\", year: \"numeric\" }).format(birthDate)}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {date.selectedDate.getFullYear()}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {capitalize(date.selectedDate.toLocaleDateString('fr-FR', { weekday: 'long' }))},
    {capitalize(date.selectedDate.toLocaleDateString('fr-FR', { month: 'long' })) + date.selectedDate.getDate()}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.nativeEvent.stopImmediatePropagation();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdateManualEdit === true ? '' :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetDate({ ...date, selectedDate: startDate });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetManualDate(startDate.toLocaleDateString('fr-FR', { day: 'numeric', month: 'numeric', year: 'numeric' }));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonMonthChange={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tremoveSelectedFromCalendar();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonYearChange={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tremoveSelectedFromCalendar();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxDate={new Date()}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinline\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscrollableYearDropdown={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyearDropdownItemNumber={(today.getFullYear() - 1900)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n\r\n};\r\n\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from \"ramda\";\r\n\r\nimport appartement from './../../../assets/images/svg/090-flats.svg';\r\nimport maison from './../../../assets/images/svg/069-home.svg';\r\nimport palace from './../../../assets/images/svg/093-palace.svg';\r\nimport hotel from './../../../assets/images/svg/087-hotel.svg';\r\nimport peniche from './../../../assets/images/svg/091-house-2.svg';\r\nimport divers from './../../../assets/images/svg/092-camping-tent.svg';\r\n\r\nimport union from './../../../assets/images/svg/051-parents.svg';\r\nimport locataire from './../../../assets/images/svg/069-home.svg';\r\nimport activite from './../../../assets/images/svg/035-id-card.svg';\r\nimport retraite from './../../../assets/images/svg/111-rocking-chair.png';\r\nimport pole from './../../../assets/images/svg/066-job-interview.svg';\r\nimport autre from './../../../assets/images/svg/034-clipboard.svg';\r\n\r\nimport liendirect from './../../../assets/images/svg/049-family.svg';\r\nimport autres from './../../../assets/images/svg/051-parents.svg';\r\n\r\nimport celibataireW from './../../../assets/images/svg/001-W-celibataire.svg';\r\nimport unionsW from './../../../assets/images/svg/001-W-unions.svg';\r\nimport divorceeW from './../../../assets/images/svg/001-W-divorcee.svg';\r\nimport veuveW from './../../../assets/images/svg/001-W-veuve.svg';\r\n\r\nimport celibataireM from './../../../assets/images/svg/001-M-celibataire.svg';\r\nimport unionsM from './../../../assets/images/svg/001-M-unions.svg';\r\nimport divorceeM from './../../../assets/images/svg/001-M-divorcee.svg';\r\nimport veuveM from './../../../assets/images/svg/001-M-veuve.svg';\r\nimport { inviteUserRepresentative } from '../../../actions/backoffice/user';\r\n\r\n\r\n\r\n\r\nexport const DonnesProfile = ({ email, phoneNumber, firstName, lastName, birthDate, processNumber, civilStatus, gender, professionalSituation, address, mainRepresentative, representatives, userDocuments, isDeceased, recipientEmail }) => {\r\n\tconst hideModal = () => {\r\n\t\t$(\".modal\").modal(\"hide\");\r\n\t};\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst familyOptionsToEN = { celibataire: \"Single\", mariee: \"Married\", divorcee: \"Divorced\", veuve: \"Widowed\", libre: \"FreeUnion\", civilUnion: \"CivilUnion\" };\r\n\tconst familyOptionsToFR = { single: \"Célibataire\", married: \"Mariée\", divorced: \"Divorcee\", widowed: \"Veuve\", freeUnion: \"Libre\", civilUnion: \"CivilUnion\" };\r\n\t//const familyOptions = { celibataire: 'Single', mariee: 'Married', divorcee: 'Divorced', veuve: 'Widowed', libre: 'FreeUnion', civilUnion: 'CivilUnion' }\r\n\r\n\tconst familyStatusText = {\r\n\t\tMarried: { Male: \"Marié\", Female: \"Mariée\" },\r\n\t\tDivorced: { Male: \"Divorcé\", Female: \"Divorcée\" },\r\n\t\tWidowed: { Male: \"Veuf\", Female: \"Veuve\" },\r\n\t\tCivilUnion: { Male: \"Pacsé\", Female: \"Pacsée\" },\r\n\t\tFreeUnion: { Male: \"Union Libre\", Female: \"Union Libre\" },\r\n\t\tSingle: { Male: \"Célibataire\", Female: \"Célibataire\" },\r\n\t};\r\n\tconst genders = { male: \"Male\", female: \"Female\" };\r\n\r\n\tconst familyOptionsEN = { single: \"Single\", married: \"Married\", divorced: \"Divorced\", widowed: \"Widowed\", freeUnion: \"FreeUnion\", civilUnion: \"CivilUnion\" };\r\n\tconst representativeType = { child: 1, parent: 2, sibling: 3, spouse: 4, other: 5 };\r\n\r\n\tconst professionOptions = { Retired: \"Retired\", Employed: \"Employed\", Unemployed: \"PoleEmploi\", OtherActivity: \"OtherActivity\" };\r\n\tconst professionOptionsText = { Retired: \"RETRAITÉ(E)\", Employed: \"EN ACTIVITÉ(E)\", PoleEmploi: \"À FRANCE TRAVAIL\", OtherActivity: \"AUTRE ACTIVITÉ\" };\r\n\r\n\tconst estateType = { appartement: \"Apartment\", house: \"House\", castel: \"Castle\", hotel: \"Hotel\", boat: \"Houseboat\", camp: \"Other\" };\r\n\tconst estateTypeFR = { Apartment: \"Appartement\", House: \"Maison\", Castel: \"Châteu\", Hotel: \"Hotel\", Boat: \"Péniche\", Camp: \"Divers\" };\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    User Profile

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tdonnées personnelles\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t{firstName} {lastName}\r\n\t\t\t\t\t\t\t\t

    \r\n\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    Email
    \r\n\t\t\t\t\t\t\t\t\t\t

    {email}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    Téléphone
    \r\n\t\t\t\t\t\t\t\t\t\t

    {phoneNumber}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t{userDocuments.items.map((doc, index) => (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    D. {doc.secondTitle}
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{doc.done}/{doc.num}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t))}\r\n\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    Email de réception
    \r\n\t\t\t\t\t\t\t\t\t\t

    {recipientEmail}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\"maison\"\r\n\t\t\t\t\t\t\t\t\t

    {familyOptionsToFR[civilStatus?.toLowerCase()]}

    \r\n\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.single && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.married && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.divorced && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.widowed && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.freeUnion && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{civilStatus === familyOptionsEN.civilUnion && (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{familyStatusText[civilStatus][gender]}\r\n\t\t\t\t\t\t\t\t\t\t

    {familyStatusText[civilStatus][gender]}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{address && (\r\n\t\t\t\t\t\t\t\t\t
    1 ? \" col-lg\" : \" justify-content-md-center mx-auto\")}>\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.appartement && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.house && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.castel && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.hotel && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.boat && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{address.addressType === estateType.camp && {estateTypeFR[address.addressType]}}\r\n\t\t\t\t\t\t\t\t\t\t{/*

    locataire du maison

    */}\r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t{address?.addressLine1},
    {address?.postalCode}, {address?.city}\r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{professionalSituation.length > 1 &&
    }\r\n\t\t\t\t\t\t\t\t{professionalSituation.map((profession) => (\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{professionOptions.Employed === profession && \"maison\"}\r\n\t\t\t\t\t\t\t\t\t\t{professionOptions.Retired === profession && \"maison\"}\r\n\t\t\t\t\t\t\t\t\t\t{professionOptions.Unemployed === profession && \"maison\"}\r\n\t\t\t\t\t\t\t\t\t\t{professionOptions.OtherActivity === profession && \"maison\"}\r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t{professionOptionsText[profession]}\r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{!R.isNil(mainRepresentative) && (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    Referent principal

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    {mainRepresentative.gender === 2 ? \"Monsieur\" : \"Madame\"}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{mainRepresentative.lastName} {mainRepresentative.firstName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{mainRepresentative.representativeType < 5 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\"lien\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    lien familial direct

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\"autres\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    autres

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat(\"fr-FR\", { day: \"numeric\", month: \"long\", year: \"numeric\" }).format(mainRepresentative.birthDate)}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{mainRepresentative.addresses[0].addressLine1}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    {mainRepresentative.addresses[0].postalCode} {mainRepresentative.addresses[0].city}, {mainRepresentative.addresses[0].country}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    {mainRepresentative.email}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{!R.isEmpty(representatives) &&\r\n\t\t\t\t\t\t\t\t\t\trepresentatives.map((representative) => (\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    autre Referent

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    {representative.gender === 2 ? \"Monsieur\" : \"Madame\"}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{representative.lastName} {representative.firstName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{representative.representativeType < 5 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\"lien\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    lien familial direct

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\"autres\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    autres

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat(\"fr-FR\", { day: \"numeric\", month: \"long\", year: \"numeric\" }).format(representative.birthDate)}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{representative.addresses[0].addressLine1}
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{representative.addresses[0].postalCode} {representative.addresses[0].city}, {representative.addresses[0].country}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {representative.email}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Enfants

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Monsieur

    \r\n\t\t\t\t\t\t\t\t\t\t\t

    data.lastName + firstName

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    2 mars 1960

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    71, rue de Raymond Poincaré
    11100 NARBONNE, France

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    theundertaker@rhyta.com

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    01.76.91.27.98

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Monsieur

    \r\n\t\t\t\t\t\t\t\t\t\t\t

    data.lastName + firstName

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    4 juin 1945

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    71, rue de Raymond Poincaré
    11100 NARBONNE, France

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    -

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    +33 01.42.99.41.42

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Madame

    \r\n\t\t\t\t\t\t\t\t\t\t\t

    data.lastName + firstName

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    4 juin 1945

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    71, rue de Raymond Poincaré
    11100 NARBONNE, France

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    -

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    +33 05.68.79.41.13

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{/* {\r\n\t\t\t\t\t\t\thideModal();\r\n\t\t\t\t\t\t}} data-toggle=\"modal\" data-target=\"#processDeces\">Client décèdé */}\r\n\t\t\t\t\t\t{/* {isDeceased ? \"\" : } */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { closeDossier } from '../../../actions/backoffice/user';\r\n\r\nexport const CloseProfile = ({ user }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tfunction handleCloseDossier(e) {\r\n\r\n\r\n\t\tconst clientUpdateInfo = {\r\n\t\t\tid: user.id,\r\n\t\t\tgender: user.gender,\r\n\t\t\tisEnabled: false,\r\n\t\t\tfirstName: user.firstName,\r\n\t\t\tlastName: user.lastName,\r\n\t\t\tbirthDate: user.birthDate,\r\n\t\t\tbirthPlace: user.birthPlace,\r\n\t\t\tdepartmentNumber: user.departmentNumber,\r\n\t\t\tcountry: user.country,\r\n\t\t\tcivilStatus: user.civilStatus,\r\n\t\t\thasChildren: user.hasChildren,\r\n\t\t\tprofessionalSituation: user.professionalSituation.toString(),\r\n\t\t\tonBoardingStep: user.onBoardingStep,\r\n\t\t};\r\n\r\n\t\tdispatch(closeDossier(user.id, clientUpdateInfo));\r\n\r\n\t}\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    User terminate

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Clôture du dossier
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    La clôture du dossier Anticipa intervient lorsque le client n'a pas souhaité conserver ou régler son dossier.

    \r\n\t\t\t\t\t\t

    L'intégralité des courriers correspondant aux services complétés lui seront transmis par mail à la date de sa dernière actualisation.

    \r\n\t\t\t\t\t\t

    Attention : toute clôture est définitive.

    \r\n\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

    28 août 1942

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t

    28 septembre 2020

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n\r\n};\r\n","import React, { useState, useEffect } from 'react';\r\n\r\nimport notaire from './../../../assets/images/svg/004-A-notaire.png';\r\nimport securitesociale from './../../../assets/images/svg/004-A-securitesocial.png';\r\nimport banque from './../../../assets/images/svg/004-A-banque.svg';\r\nimport mutuelle from './../../../assets/images/svg/004-A-mutuelle.svg';\r\nimport assurance from './../../../assets/images/svg/100-assurance.svg';\r\nimport fournisseureau from './../../../assets/images/svg/004-A-fournisseureau.svg';\r\nimport fournisseurelectricite from './../../../assets/images/svg/004-A-fournisseurelectricite.svg';\r\nimport telephonemobile from './../../../assets/images/svg/004-A-telephonemobile.svg';\r\nimport centreimpots from './../../../assets/images/svg/004-A-dgfip.png';\r\n\r\nimport sport from './../../../assets/images/svg/004-B-sport.svg';\r\nimport internet from './../../../assets/images/svg/004-B-internet.svg';\r\nimport loisirs from './../../../assets/images/svg/004-B-loisirs.svg';\r\nimport voitures from './../../../assets/images/svg/004-B-voiture.svg';\r\nimport transport from './../../../assets/images/svg/004-B-transport.svg';\r\nimport entretienmaison from './../../../assets/images/svg/004-B-entretienmaison.svg';\r\nimport securite from './../../../assets/images/svg/004-B-securite.svg';\r\nimport soinesthetique from './../../../assets/images/svg/004-B-soinesthetique.svg';\r\nimport domicile from './../../../assets/images/svg/004-B-domicile.svg';\r\nimport musique from './../../../assets/images/svg/004-B-musique.svg';\r\nimport cartepaiment from './../../../assets/images/svg/004-B-cartepaiment.svg';\r\nimport multimedia from './../../../assets/images/svg/004-B-multimedia.svg';\r\nimport tech from './../../../assets/images/svg/004-B-tech.svg';\r\nimport tv from './../../../assets/images/svg/004-B-tv.svg';\r\nimport solidaire from './../../../assets/images/svg/004-B-solidaire.svg';\r\nimport autres from './../../../assets/images/svg/004-B-autres.svg';\r\n\r\nimport reseauxsociaux from './../../../assets/images/svg/104-social-media.svg';\r\nimport loisir from './../../../assets/images/svg/029-football-ball.svg';\r\nimport pet from './../../../assets/images/svg/028-pet-food.svg';\r\nimport mobile from './../../../assets/images/svg/024-furniture.svg';\r\nimport personnes from './../../../assets/images/svg/024-account.svg';\r\nimport duo from './../../../assets/images/svg/088-duo.svg';\r\n\r\nexport const HistoriqueProfile = () => {\r\n\t//We should get it from backend!\r\n\tfunction service(title, icon, progress) { return { title: title, icon: icon, progress: (progress === undefined ? 0 : progress) } };\r\n\tfunction doc(firstTitle, secondTitle, num, actions) { return { firstTitle: firstTitle, secondTitle: secondTitle, num: num, actions: actions } };\r\n\tconst [userServices, setUserServices] = useState([\r\n\t\tservice('notaire', notaire, 100), service('sport', sport, 100), service('internet', internet, 0), service('fournisseur d\\'électricité', fournisseurelectricite, 100),\r\n\t\tservice('téléphone mobile', telephonemobile, 100), service('banque', banque, 100), service('multimedia', multimedia, 100), service('dissolution du pacs', securitesociale, 100),\r\n\t\tservice('centre des impôts', centreimpots, 100), service('musique', musique, 100), service('mutuelle', mutuelle, 100), service('voiture', voitures, 100),\r\n\t\tservice('assurance', assurance, 100), service('fournisseur d\\'eau', fournisseureau, 100), service('loisirs', loisirs, 100), service('titre de transport', transport, 100),\r\n\t\tservice('entretien maison', entretienmaison, 100), service('sécurité', securite, 100), service('SOIN ET ESTHETIQUE', soinesthetique, 100), service('Services a domicile', domicile, 100),\r\n\t\tservice('CARTE DE PAIEMENT', cartepaiment, 100), service('Technology', tech, 100), service('TÉLÉVISION', tv), service('solidarité', solidaire, 100),\r\n\t\tservice('autres', autres, 100), service('reseaux sociaux', reseauxsociaux, 100), service('loisirs', loisir), service('animaux', pet, 100),\r\n\t\tservice('MATERIEL / MOBILE', mobile), service('personnes', personnes, 100), service('duo', duo, 100)\r\n\t]);\r\n\tconst [userDocuments, setUserDocuments] = useState([doc('documents', 'personnels', 0, 4), doc('documents', 'référent', 0, 3), doc('démarches', 'communes', 3, 10), doc('démarches', 'personnalisées', 4, 20)]);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    User Historique

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Historique
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Les plus récents

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Vendredi, 24 août 2020

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Alerte envoyée au référent- 12:07

    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* show the history of actions for the user */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuserServices.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(s.progress !== 100) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{s.title}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {s.title}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    Envoyer jusqu'au jour

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    14/07/2020
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Vendredi, 22 août 2020

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    E-mail envoyé - 10:56

    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* show the history of actions for the user */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tuserServices.map((s, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(s.progress !== 100) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{s.title}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {s.title}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    Envoyer jusqu'au jour

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    14/07/2020
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t)\r\n}","import React, { useRef, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport { Profile } from './../../../_common/profile';\r\nimport { Personal } from './../../../_common/personal';\r\n\r\nexport const EditProfile = () => {\r\n\tconst user = useSelector(state => state.user);\r\n\tconst [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n\tconst [credentials, setCredentials] = useState({\r\n\t\temail: !R.isNil(user.user) && !R.isNil(user.user.email) ? user.user.email : '',\r\n\t\tpassword: '',\r\n\t\tconfirmPassword: ''\r\n\t});\r\n\tconst credentialsForm = useRef(null);\r\n\tconst [wasValidated, setWasValidated] = useState(false);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Edit User

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Modifier données personnelles
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t)\r\n}","import React, { useState } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport * as Loadings from \"../../../constants/loadings/user\";\r\nimport * as R from \"ramda\";\r\nimport { DownloadPrintFile } from \"../../../actions/backoffice/user\";\r\n\r\nexport const PrintModal = ({ validatedletterSections, user, isLoading }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst userId = user.id;\r\n\tconst [facultatives, setFacultatives] = useState([\r\n\t\t{ isChecked: false, name: \"Demande d'acte de naissance\", file: \"GUIDE:Demandes acte de naissance pour PDR.pdf\" },\r\n\t\t{ isChecked: false, name: \"Demande concernant la carte grise\", file: \"GUIDE:CarteGrise.pdf\" },\r\n\t\t{ isChecked: false, name: \"Demande de réversion en ligne regime de base salarié\", file: \"GUIDE:ReversionEnLigne.pdf\" },\r\n\t\t{ isChecked: false, name: \"Formulaire de demande de capital décès\", file: \"GUIDE:AIDE - CPAM - Demande de Capital Deces.pdf\" },\r\n\t\t{ isChecked: false, name: \"Dossier des pièces à joindre lors d'une succession avec notaire (succession de + 5000 €)\", file: \"GUIDE:NOTAIRE - Dossier Succession.pdf\" },\r\n\t\t{ isChecked: false, name: \"Attestation porte-fort (sans notaire)\", file: \"GUIDE:SANS NOTAIRE - Attestation porte-fort.pdf\" },\r\n\t\t{ isChecked: false, name: \"Attestation sur l'honneur des héritiers (sans notaire)\", file: \"GUIDE:SANS NOTAIRE - Attestation sur lhonneur des heritiers.pdf\" },\r\n\t\t{ isChecked: false, name: \"Demande FICOBA (sans notaire)\", file: \"GUIDE:SANS NOTAIRE - FICOBA.pdf\" },\r\n\t\t{ isChecked: false, name: \"Demande FICOVIE (sans notaire)\", file: \"GUIDE:SANS NOTAIRE - FICOVIE.pdf\" },\r\n\t]);\r\n\tconst sortedFacultatives = R.sortBy(R.prop(\"name\"), facultatives);\r\n\tconst sortedValidatedletterSections = R.sortBy(R.prop(\"title\"), validatedletterSections);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Prints

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tImpressions\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    Guides disponibles:

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{sortedFacultatives.map((letter, index) => (\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\tsetFacultatives(facultatives.map((item, idx) => (item.name === letter.name ? { ...item, isChecked: event.target.checked } : item)));\r\n\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    Lettres validées (à inclure dans le fichier d'impression):

    \r\n\t\t\t\t\t\t{validatedletterSections.length === 0 ?

    Aucune lettre validée

    :

    {sortedValidatedletterSections.map((l) => l.title).join(\", \")}

    }\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{validatedletterSections.length === 0 ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\t\t\t\t\tDownloadPrintFile(\r\n\t\t\t\t\t\t\t\t\t\t\tuserId,\r\n\t\t\t\t\t\t\t\t\t\t\tfacultatives.filter((f) => f.isChecked)\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tGénérer\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n","import React, { useState, useEffect, useMemo } from 'react';\r\nimport { convertConnectionTypesToServiceType } from '../../../constants/utils/connectionTypes';\r\nimport * as R from \"ramda\";\r\n\r\n\r\nexport const DossiersCard = ({ srv, index, setServiceDataLetters, setSelectedServices, setSelectedUserService, setServiceLetter, userState }) => {\r\n\r\n\tlet noneLetter = [\"Traité\", \"Non rempli\", \"Lettres générées\"];\r\n\tlet greenStatus = [\"Lettres validées\", \"Lettres imprimées\", \"Lettres postées\", \"Lettres distribuées\", \"Traité\", \"En livraison\"];\r\n let blueStatus = [\"Lettres non selectionnées\", \"Lettres générées\", \"Rempli\"];\r\n function getSomeLettersEqualTo(userLetters, property) { return userLetters.some(letter => letter.letterProgressStage === property); };\r\n\tfunction allLetterHaveStatus(userLetters, status) {\r\n if(R.isEmpty(userLetters)){\r\n return false;\r\n }\r\n return userLetters.every(letter => letter.letterProgressStage === status); \r\n };\r\n\r\n\r\n let progress = 100;\r\n let chosenServiceData = userState.serviceDatas.filter(s => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType));\r\n let userLettersFiltered = userState.userLetters.filter(ul => chosenServiceData.some(sd => sd.id === ul.userServiceId));\r\n let validUserLetters = userLettersFiltered.filter(letter => letter.letterProgressStage !== \"Abandonned\");\r\n let status;\r\n if (!R.isEmpty(chosenServiceData)) {\r\n\r\n status = \"Rempli\";\r\n\r\n const userLettersCreated = R.isEmpty(userLettersFiltered) ? false : userLettersFiltered.every(letter => letter.letterProgressStage === \"Created\");\r\n const userLettersValidated = getSomeLettersEqualTo(userLettersFiltered, \"Validated\");\r\n const userLettersPrinted = getSomeLettersEqualTo(userLettersFiltered, \"Printed\");\r\n const userLettersSentPost = getSomeLettersEqualTo(userLettersFiltered, \"SentToPost\");\r\n const userLettersInDelivery = getSomeLettersEqualTo(userLettersFiltered, \"InDelivery\");\r\n const userLettersDelivered = getSomeLettersEqualTo(userLettersFiltered, \"Delivered\");\r\n const userLettersAbandonned = allLetterHaveStatus(userLettersFiltered, \"Abandonned\")\r\n\r\n if (userLettersCreated) {\r\n\r\n status = \"Lettres générées\";\r\n\r\n } else if (userLettersAbandonned){\r\n status = \"Traité\";\r\n\r\n }else if (userLettersValidated) {\r\n\r\n status = \"Lettres validées\";\r\n\r\n } else if (userLettersPrinted) {\r\n\r\n status = \"Lettres imprimées\";\r\n\r\n } else if (userLettersSentPost) {\r\n\r\n status = \"Lettres postées\";\r\n } else if (userLettersInDelivery) {\r\n\r\n status = \"En livraison\";\r\n } else if (userLettersDelivered) {\r\n\r\n status = \"Lettres distribuées\";\r\n }\r\n\r\n\r\n } else {\r\n\r\n status = \"Non rempli\";\r\n\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n
    {\r\n setServiceDataLetters(validUserLetters);\r\n setSelectedServices(chosenServiceData);\r\n setSelectedUserService(!R.isEmpty(chosenServiceData) ? chosenServiceData[0] : []);\r\n setServiceLetter([]);\r\n }}>\r\n {srv.title}\r\n

    {srv.title}

    \r\n

    Envoyer jusqu'au jour

    \r\n
    \r\n
    \r\n
    {status}
    \r\n
    \r\n
    \r\n {/*

    Dernière mise à jour: 17/08/2020

    */}\r\n\r\n
    \r\n
    \r\n );\r\n}","import React, { createRef, useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\nimport { Document, Page, pdfjs } from 'react-pdf';\r\nimport { getLetterInformationByLetterId } from '../../../actions/facilita-api';\r\nimport { FrenchTypes, PensionProfessionalCategoryMapping } from '../../../constants/utils/connectionTypes';\r\nimport * as urls from '../../../constants/webapi/facilita';\r\n\r\npdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;\r\n\r\nexport const PreviewDoc = ({ setSelectedUserLetter, serviceDataLetters, documentUrl, selectedServices, serviceLetter, setServiceLetter, setSelectedUserService, selectedUserService, selectedUserLetter }) => {\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n };\r\n\r\n\r\n\r\n const [numPages, setNumPages] = useState(0);\r\n const [elementOnFocus, setElementOnFocus] = useState(0);\r\n const [elRefs, setElRefs] = useState([]);\r\n const [allLetterToDisplay, setAllLetterToDisplay] = useState([]);\r\n\r\n // useEffect(() => {\r\n // // setServiceLetter(lettersOfChosenService);\r\n // // setServiceLetter()\r\n\r\n // if (!R.isNil(selectedServices)) {\r\n\r\n // let lettersOfChosenService = serviceDataLetters.filter(srvData => srvData.userServiceId === selectedUserService.id);\r\n\r\n // let promises = [];\r\n // lettersOfChosenService.forEach((l) => {\r\n // promises.push(getLetterInformationByLetterId(l.letterId));\r\n // });\r\n\r\n // Promise.all(promises)\r\n // .then((letters) => {\r\n\r\n // lettersOfChosenService = lettersOfChosenService.map(letterService => {\r\n // let letter = letters.find(l => letterService.letterId === l.id);\r\n // if (!R.isNil(letter)) {\r\n // letterService.name = letter.name;\r\n // }\r\n // return letterService;\r\n // });\r\n\r\n // setServiceLetter(lettersOfChosenService);\r\n // setSelectedUserLetter(lettersOfChosenService[0]);\r\n // });\r\n\r\n\r\n // setElRefs(elRefs => (\r\n // selectedServices.map((_, i) => createRef())\r\n // ));\r\n\r\n // }\r\n\r\n // }, [selectedUserService, selectedServices]);\r\n\r\n useEffect(() => {\r\n // setServiceLetter(lettersOfChosenService);\r\n // setServiceLetter()\r\n\r\n if (!R.isNil(selectedServices)) {\r\n\r\n let lettersOfChosenService = serviceDataLetters.filter(srvData => srvData.userServiceId === selectedUserService.id);\r\n\r\n let allLetters = [];\r\n lettersOfChosenService.forEach(l => {\r\n allLetters.push({\r\n url: urls.letterContentUrlByletterId(l.id),\r\n httpHeaders: {\r\n \"Authorization\": \"Bearer \" + sessionStorage.getItem(\"access_token\")\r\n }\r\n });\r\n });\r\n\r\n setAllLetterToDisplay(allLetters);\r\n\r\n // setDocumentUrl({\r\n // url: urls.letterContentUrlByletterId(selectedUserLetter.id),\r\n // httpHeaders: {\r\n // \"Authorization\": \"Bearer \" + sessionStorage.getItem(\"access_token\")\r\n // }\r\n // });\r\n\r\n setElRefs(elRefs => (\r\n selectedServices.map((_, i) => createRef())\r\n ));\r\n\r\n }\r\n\r\n }, [selectedUserService, selectedServices]);\r\n\r\n\r\n function renderDocs() {\r\n\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    Validation
    \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n\r\n
    \r\n {/* {!R.isNil(service.serviceDatas) && service.serviceDatas.length > 1 && (elementOnFocus > 0) ? */}\r\n {!R.isNil(selectedServices) && selectedServices.length > 1 && (elementOnFocus > 0) ?\r\n \r\n : ''\r\n }\r\n
    \r\n \r\n
    \r\n {/* {\r\n serviceLetter.map((sl, index) => ())\r\n } */}\r\n {/* {!R.isNil(service.serviceDatas) && service.serviceDatas.length > 1 ? */}\r\n {!R.isNil(selectedServices) && selectedServices.length > 1 && elementOnFocus < selectedServices.length - 1 ?\r\n \r\n : ''\r\n }\r\n
    \r\n\r\n
    \r\n {\r\n\r\n\r\n !R.isEmpty(allLetterToDisplay) && allLetterToDisplay.map((docUrl, index) => (\r\n\r\n setNumPages(numPages)}>\r\n {Array.apply(null, Array(numPages))\r\n .map((x, i) => i + 1)\r\n .map(page => )}\r\n \r\n\r\n\r\n ))\r\n\r\n\r\n }\r\n\r\n\r\n\r\n
    \r\n\r\n {/*
    \r\n
    \r\n {serviceLetter.map((sl, index) => ())}\r\n
    \r\n
    */}\r\n\r\n\r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n );\r\n};","import React, { createRef, useEffect, useRef, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\nimport { Document, Page, pdfjs } from 'react-pdf';\r\nimport { getLetterInformationByLetterId } from '../../../actions/facilita-api';\r\nimport { FrenchTypes, PensionProfessionalCategoryMapping } from '../../../constants/utils/connectionTypes';\r\nimport { LetterProgressStage } from '../../../constants/utils/letterProgressStage';\r\n\r\npdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;\r\n\r\nexport const PreviewDocLetter = ({ setSelectedUserLetter, serviceDataLetters, documentUrl, selectedServices, serviceLetter, setServiceLetter, setSelectedUserService, selectedUserService, selectedUserLetter }) => {\r\n const hideModal = () => {\r\n $('.modal').modal(\"hide\");\r\n };\r\n\r\n\r\n const [numPages, setNumPages] = useState(0);\r\n const [elementOnFocus, setElementOnFocus] = useState(0);\r\n const [elRefs, setElRefs] = useState([]);\r\n\r\n useEffect(() => {\r\n // setServiceLetter(lettersOfChosenService);\r\n // setServiceLetter()\r\n\r\n if (!R.isNil(selectedServices)) {\r\n\r\n let lettersOfChosenService = serviceDataLetters.filter(srvData => srvData.userServiceId === selectedUserService.id);\r\n\r\n let promises = [];\r\n lettersOfChosenService.forEach((l) => {\r\n promises.push(getLetterInformationByLetterId(l.letterId));\r\n });\r\n\r\n Promise.all(promises)\r\n .then((letters) => {\r\n\r\n lettersOfChosenService = lettersOfChosenService.map(letterService => {\r\n let letter = letters.find(l => letterService.letterId === l.id);\r\n if (!R.isNil(letter)) {\r\n letterService.name = letter.name.split(\"-\").slice(1).join();\r\n }\r\n return letterService;\r\n });\r\n\r\n setServiceLetter(lettersOfChosenService);\r\n setSelectedUserLetter(lettersOfChosenService[0]);\r\n });\r\n\r\n\r\n setElRefs(elRefs => (\r\n selectedServices.map((_, i) => createRef())\r\n ));\r\n\r\n }\r\n\r\n }, [selectedUserService, selectedServices]);\r\n\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    Validation des documents
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    Chargement...

    }\r\n onLoadSuccess={({ numPages }) => setNumPages(numPages)}>\r\n {Array.apply(null, Array(numPages))\r\n .map((x, i) => i + 1)\r\n .map(page =>

    Chargement...

    } key={\"pdfviewer_page_\" + page} className={\"card paper-shadow mb-2 mx-auto align-items-center\"} />)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {!R.isNil(selectedServices) && selectedServices.length > 1 && (elementOnFocus > 0) ?\r\n \r\n : ''\r\n }\r\n
    \r\n \r\n
    \r\n {!R.isNil(selectedServices) && selectedServices.length > 1 && elementOnFocus < selectedServices.length - 1 ?\r\n \r\n : ''\r\n }\r\n
    \r\n\r\n {\r\n false ?\r\n

    CHARGEMENT

    \r\n :\r\n ''\r\n }\r\n\r\n\r\n {\r\n serviceLetter.map((letter, index) => {\r\n return (\r\n
    setSelectedUserLetter(letter)}>\r\n
    \r\n
    \r\n

    \r\n \r\n {letter.name}\r\n

    \r\n {/* */}\r\n
    \r\n
    \r\n\r\n\r\n
    \r\n
    \r\n
    \r\n
    Chronologie
    \r\n {\r\n R.isNil(letter.postId) ? \r\n ''\r\n :\r\n

    Numéro suivi postal:
    {letter.postId}

    \r\n }\r\n \r\n
    \r\n
    \r\n {/*

    history.date.substring

    */}\r\n {letter.letterHistory.map((history, index) => {\r\n return (

    {history.date.substring(0, 10)}: {LetterProgressStage[history.letterProgressStage]} {!R.isNil(history.details) && history.details !== \"\" ? `(${history.details})` : ''}

    );\r\n })}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n })\r\n }\r\n\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n );\r\n};","import React, { useEffect, useMemo, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport Emptylustration from './../../../assets/images/svg//057-contract-1.svg';\r\n\r\nexport const PaySummary = ({ invoices, partner, etablissement }) => {\r\n\r\n\t// const invoices = [1, 2, 3];\r\n\tconst [linesToDisplay, setLinesToDisplay] = useState([]);\r\n\tconst [collapse, setCollapse] = useState(true);\r\n\tconst [filters, setFilters] = useState({\r\n\t\torder: {\r\n\t\t\tcolumn: \"number\",\r\n\t\t\tasc: true\r\n\t\t},\r\n\r\n\t});\r\n\r\n\tconst invoiceSum = useMemo(() => !R.isNil(invoices) ? invoices.reduce((acc, line) => { acc += line.amount; return acc; }, 0) : 0, [invoices]);\r\n\tconst options = { style: 'currency', currency: 'EUR' };\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!R.isNil(invoices)) {\r\n\r\n\t\t\tlet temp = invoices.filter(i => i.totalPrice !== 0);\r\n\r\n\t\t\tif (filters.order.asc) {\r\n\r\n\t\t\t\ttemp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\ttemp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsetLinesToDisplay(temp);\r\n\t\t}\r\n\r\n\r\n\t}, [filters, invoices]);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Payment summary

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Information du paiement
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{!R.isNil(partner) ?
    Partenaire: {partner.name} Établissement: {!R.isNil(etablissement) ? etablissement.name : \"--\"}
    : null}\r\n\t\t\t\t\t\t{!R.isEmpty(invoices) ?\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    A Payer

    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tinvoices?.map(invoice => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    {invoice.number}
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    {new Intl.DateTimeFormat('fr-FR').format(invoice.created)}
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    {new Intl.NumberFormat('fr-FR', options).format(invoice.amount)}
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinvoice.paid ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPayé\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA Payer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t))\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    22/12/2021
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    69
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t

    Total

    \r\n\t\t\t\t\t\t\t\t\t\t

    {new Intl.NumberFormat('fr-FR', options).format(invoiceSum)}

    \r\n\t\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    On dirait

    qu'il est vide.

    \r\n\t\t\t\t\t\t\t\t\t

    Il n'y a pas de facture.

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useState, useEffect, useMemo } from \"react\";\r\nimport { Link, NavLink } from \"react-router-dom\";\r\nimport $ from \"jquery\";\r\nimport * as R from \"ramda\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\n\r\nimport PrinterDoc from \"./../../_common/printerDoc\";\r\nimport { UploadArea } from \"./../../_common/upload-area\";\r\n\r\nimport { AlertProfile } from \"./../_common/alertProfile\";\r\nimport { ProcessDeces } from \"./../_common/processDeces\";\r\nimport { DonnesProfile } from \"./../_common/donnesProfile\";\r\nimport { CloseProfile } from \"./../_common/closeProfile\";\r\nimport { HistoriqueProfile } from \"./../_common/historiqueProfile\";\r\nimport { EditProfile } from \"./../_common/EditProfile\";\r\nimport { PrintModal } from \"./../_common/printModal\";\r\nimport { DossiersCard } from \"./card\";\r\n\r\nimport { fetchUserById, fetchUserInvoicesById, getDeathDeclaration, getDocuments, GetEtablissementById, getLettersForUserId, GetPartnerById, getUserServiceData, getUserServices, resetDetailUser } from \"../../../actions/backoffice/user\";\r\nimport * as Loadings from \"../../../constants/loadings/user\";\r\nimport * as LoadingsFacilita from \"../../../constants/loadings/facilita/deathDeclaration\";\r\nimport * as urls from \"../../../constants/webapi/facilita\";\r\n\r\nimport Emptylustration from \"./../../../assets/images/svg/057-contract-1.svg\";\r\nimport previewPdf from \"./../../../assets/images/placeholder/pdf-placeholder.jpg\";\r\n\r\nimport notaire from \"./../../../assets/images/svg/004-A-notaire.png\";\r\nimport securitesociale from \"./../../../assets/images/svg/004-A-securitesocial.png\";\r\nimport banque from \"./../../../assets/images/svg/004-A-banque.svg\";\r\nimport mutuelle from \"./../../../assets/images/svg/004-A-mutuelle.svg\";\r\nimport assurance from \"./../../../assets/images/svg/100-assurance.svg\";\r\nimport fournisseureau from \"./../../../assets/images/svg/004-A-fournisseureau.svg\";\r\nimport fournisseurelectricite from \"./../../../assets/images/svg/004-A-fournisseurelectricite.svg\";\r\nimport telephonemobile from \"./../../../assets/images/svg/004-A-telephonemobile.svg\";\r\nimport centreimpots from \"./../../../assets/images/svg/004-A-dgfip.png\";\r\n\r\nimport sport from \"./../../../assets/images/svg/004-B-sport.svg\";\r\nimport internet from \"./../../../assets/images/svg/004-B-internet.svg\";\r\nimport loisirs from \"./../../../assets/images/svg/004-B-loisirs.svg\";\r\nimport voitures from \"./../../../assets/images/svg/004-B-voiture.svg\";\r\nimport transport from \"./../../../assets/images/svg/004-B-transport.svg\";\r\nimport entretienmaison from \"./../../../assets/images/svg/004-B-entretienmaison.svg\";\r\nimport securite from \"./../../../assets/images/svg/004-B-securite.svg\";\r\nimport soinesthetique from \"./../../../assets/images/svg/004-B-soinesthetique.svg\";\r\nimport domicile from \"./../../../assets/images/svg/004-B-domicile.svg\";\r\nimport musique from \"./../../../assets/images/svg/004-B-musique.svg\";\r\nimport cartepaiment from \"./../../../assets/images/svg/004-B-cartepaiment.svg\";\r\nimport multimedia from \"./../../../assets/images/svg/004-B-multimedia.svg\";\r\nimport tech from \"./../../../assets/images/svg/004-B-tech.svg\";\r\nimport tv from \"./../../../assets/images/svg/004-B-tv.svg\";\r\nimport solidaire from \"./../../../assets/images/svg/004-B-solidaire.svg\";\r\nimport autres from \"./../../../assets/images/svg/004-B-autres.svg\";\r\n\r\nimport reseauxsociaux from \"./../../../assets/images/svg/104-social-media.svg\";\r\nimport loisir from \"./../../../assets/images/svg/029-football-ball.svg\";\r\nimport pet from \"./../../../assets/images/svg/028-pet-food.svg\";\r\nimport mobile from \"./../../../assets/images/svg/024-furniture.svg\";\r\nimport personnes from \"./../../../assets/images/svg/024-account.svg\";\r\nimport duo from \"./../../../assets/images/svg/088-duo.svg\";\r\nimport { LoadingState } from \"../../../_common/loadingState\";\r\n//import { getDocuments, getLettersForUserId, getUserConnections, getUserRepresentativesForUserId, getUserServiceData } from '../../../actions/facilita-api';\r\nimport { AuxiliarOptions, CommonServices, ConnectionTypes, convertConnectionTypesToServiceType, isInsurance, isSocialNetwork, OtherService, PersonalServices } from \"../../../constants/utils/connectionTypes\";\r\nimport { getUserAddress, getUserMessage, getUserRepresentatives, getUserConnections } from \"../../../actions/backoffice/user\";\r\nimport { fetchAllServiceData } from \"../../../actions/services-api\";\r\nimport { FrenchTypes } from \"../../../constants/utils/connectionTypes\";\r\nimport { PreviewDoc } from \"../_common/previewDoc\";\r\nimport { PreviewDocLetter } from \"../_common/previewDocLetter\";\r\nimport { resetPassword } from \"../../../actions/auth-api\";\r\nimport { PaySummary } from \"../_common/paySummary\";\r\n\r\nexport const DossiersDetail = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst params = useParams();\r\n\tconst userId = params.user;\r\n\tconst userState = useSelector((state) => state.userBackOfficeDetailReducer);\r\n\r\n\tconst [serviceDataLetters, setServiceDataLetters] = useState([]);\r\n\tconst [userDocuments, setUserDocuments] = useState({ items: [doc(\"démarches\", \"communes\", 0, 0), doc(\"démarches\", \"personnalisées\", 0, 0)] });\r\n\tconst [selectedServices, setSelectedServices] = useState(undefined);\r\n\tconst [selectedUserLetter, setSelectedUserLetter] = useState(undefined);\r\n\tconst [selectedUserService, setSelectedUserService] = useState({});\r\n\tconst [documentUrl, setDocumentUrl] = useState(undefined);\r\n\tconst [serviceLetter, setServiceLetter] = useState([]);\r\n\tconst [validatedletterSections, setValidatedletterSections] = useState([]);\r\n\tconst [lettersChoice, setLettersChoice] = useState({});\r\n\tconst currentDate = new Date();\r\n\r\n\t// const statusOptions = { notAccepted: \"N'a pas accepté\", ongoing: \"En cours\", finished: \"Complété\", yearAndMore: \"Contrat d'un an\", sending: 'A envoyer', overtime: \"Dépassé la limite\", closed: \"Clôture\" };\r\n\tconst statusOptions = { notAccepted: \"N'a pas accepté\", ongoing: \"En cours\", finished: \"Complété\", yearAndMore: \"Contrat d'un an\", sending: \"A envoyer\", closed: \"Clôture\" };\r\n\tlet noneLetter = [\"Rempli\", \"Non rempli\", \"Lettres générées\"];\r\n\tlet greenStatus = [\"Lettres validées\", \"Lettres imprimées\", \"Lettres postées\", \"Lettres distribuées\", \"Traité\"];\r\n\tlet blueStatus = [\"Rempli\", \"Lettres générées\", \"En traitement...\"];\r\n\r\n\tconst mainRepresentative = useMemo(() => userState.referents.find((u) => u.isMainRepresentative), [userState.referents]);\r\n\tconst representatives = useMemo(() => userState.referents.filter((u) => !u.isMainRepresentative), [userState.referents]);\r\n\r\n\tfunction doc(firstTitle, secondTitle, num, actions) {\r\n\t\treturn { firstTitle: firstTitle, secondTitle: secondTitle, num: num, actions: actions };\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n\t\tdispatch(fetchUserById(userId));\r\n\r\n\t\treturn () => dispatch(resetDetailUser());\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(userState.user)) {\r\n\t\t\tdispatch(getUserServices(userState.user));\r\n\t\t\tdispatch(getUserAddress(userState.user.id));\r\n\t\t\tdispatch(getUserRepresentatives(userState.user.id));\r\n\t\t\tdispatch(getUserServiceData(userState.user.id, undefined));\r\n\t\t\tdispatch(getLettersForUserId(userState.user.id));\r\n\t\t\tdispatch(getDocuments({ id: userState.user.id }));\r\n\t\t\tdispatch(fetchUserInvoicesById(userState.user.id));\r\n\r\n\t\t\tif (userState.user.isDeceased) {\r\n\t\t\t\tdispatch(getDeathDeclaration(userState.user.id, undefined));\r\n\t\t\t}\r\n\t\t\t//dispatch(getUserConnections(userState.user.id));\r\n\t\t}\r\n\t\t// eslint-disable-next-line\r\n\t}, [userState.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet userCommunServices = Object.values(CommonServices)\r\n\t\t\t.filter((u) => userState.services.some((i) => i.connectionType === u.connectionType))\r\n\t\t\t.map((srv) => {\r\n\t\t\t\tlet progress = userState.serviceDatas.some((s) => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\treturn progress === 100 ? 0 : 1;\r\n\t\t\t});\r\n\r\n\t\tlet userPersonnalServices = Object.values(PersonalServices)\r\n\t\t\t.concat(Object.values(AuxiliarOptions))\r\n\t\t\t.concat(Object.values(OtherService))\r\n\t\t\t.filter((u) => userState.services.some((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)))\r\n\t\t\t.map((srv) => {\r\n\t\t\t\tlet progress = userState.serviceDatas.some((s) => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType)) ? 100 : 0;\r\n\t\t\t\treturn progress === 100 ? 0 : 1;\r\n\t\t\t});\r\n\r\n\t\tlet demarchesCommuneDocuments = userDocuments.items.find((d) => d.secondTitle === \"communes\");\r\n\t\tdemarchesCommuneDocuments.num = userCommunServices.length;\r\n\t\tdemarchesCommuneDocuments.actions = userCommunServices.reduce((a, b) => a + b, 0);\r\n\t\tdemarchesCommuneDocuments.done = demarchesCommuneDocuments.num - demarchesCommuneDocuments.actions;\r\n\t\tdemarchesCommuneDocuments.percent = (demarchesCommuneDocuments.done * 100) / demarchesCommuneDocuments.num;\r\n\r\n\t\tlet demarchesPersonnaliseeDocuments = userDocuments.items.find((d) => d.secondTitle === \"personnalisées\");\r\n\t\tdemarchesPersonnaliseeDocuments.num = userPersonnalServices.length;\r\n\t\tdemarchesPersonnaliseeDocuments.actions = userPersonnalServices.reduce((a, b) => a + b, 0);\r\n\t\tdemarchesPersonnaliseeDocuments.done = demarchesPersonnaliseeDocuments.num - demarchesPersonnaliseeDocuments.actions;\r\n\t\tdemarchesPersonnaliseeDocuments.percent = (demarchesPersonnaliseeDocuments.done * 100) / demarchesPersonnaliseeDocuments.num;\r\n\r\n\t\tsetUserDocuments({ ...userDocuments, items: [demarchesCommuneDocuments, demarchesPersonnaliseeDocuments] });\r\n\r\n\t\tlet _validatedletterSections = [\r\n\t\t\t...Object.values(CommonServices).filter((u) => userState.services.some((i) => i.connectionType === u.connectionType)),\r\n\t\t\t...Object.values(PersonalServices)\r\n\t\t\t\t.concat(Object.values(AuxiliarOptions))\r\n\t\t\t\t.filter((u) => userState.services.some((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType))),\r\n\t\t\t...Object.values(OtherService).filter((u) => userState.services.some((i) => i.connectionType === u.connectionType)),\r\n\t\t].filter((srv) => {\r\n\t\t\tconst chosenServiceData = userState.serviceDatas.filter((s) => s.serviceType === convertConnectionTypesToServiceType(srv.connectionType));\r\n\t\t\tconst userLettersFiltered = userState.userLetters.filter((ul) => chosenServiceData.some((sd) => sd.id === ul.userServiceId));\r\n\t\t\treturn userLettersFiltered.some((letter) => letter.letterProgressStage === \"Validated\");\r\n\t\t});\r\n\t\tsetValidatedletterSections(_validatedletterSections);\r\n\t}, [userState]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(selectedUserLetter)) {\r\n\t\t\tsetDocumentUrl({\r\n\t\t\t\turl: urls.letterContentUrlByletterId(selectedUserLetter.id),\r\n\t\t\t\thttpHeaders: {\r\n\t\t\t\t\tAuthorization: \"Bearer \" + sessionStorage.getItem(\"access_token\"),\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t}\r\n\t}, [selectedUserLetter]);\r\n\r\n\tfunction handleGetPartnerAndEtablissement() {\r\n\t\tif (!R.isNil(userState.user.partnerId)) {\r\n\t\t\tdispatch(GetPartnerById(userState.user.partnerId));\r\n\t\t}\r\n\t\tif (!R.isNil(userState.user.etablissementId)) {\r\n\t\t\tdispatch(GetEtablissementById(userState.user.partnerId, userState.user.etablissementId));\r\n\t\t}\r\n\t}\r\n\r\n\tif (userState.isLoading.includes(Loadings.FETCH_USER)) {\r\n\t\treturn ;\r\n\t}\r\n\tif (R.isNil(userState.user)) {\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t{userState.user.firstName} {userState.user.lastName}\r\n\t\t\t\t\t\t\t\t

    \r\n\r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tDate d'inscription: \r\n\t\t\t\t\t\t\t\t\t\t{new Intl.DateTimeFormat('fr-FR').format(userState.user.setupCompletedDate)}\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t| */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\tDate de naissance: \r\n\t\t\t\t\t\t\t\t\t\t{new Intl.DateTimeFormat(\"fr-FR\").format(userState.user.birthDate)}\r\n\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{userState.deathDate && (\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\tDate de décès: \r\n\t\t\t\t\t\t\t\t\t\t\t\t{new Intl.DateTimeFormat(\"fr-FR\").format(userState.deathDate)}\r\n\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t{/*

    Date de naissance: {new Intl.DateTimeFormat('fr-FR').format(userState.user.birthDate)}

    */}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Création de dossier
    \r\n\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat(\"fr-FR\").format(userState.user.creationDate)}

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Date activation
    \r\n\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat(\"fr-FR\").format(userState.user.onBoardingCompletedDate)}

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    {userState.user.isDeceased ? \"Date de paiement du dossier\" : \"Prochaine date de paiement du dossier\"}
    \r\n\t\t\t\t\t\t\t\t{userState.user.billedByPartner ? (\r\n\t\t\t\t\t\t\t\t\tuserState.user.isDeceased ? (\r\n\t\t\t\t\t\t\t\t\t\t

    {new Intl.DateTimeFormat(\"fr-FR\").format(userState.user.creationDate)}

    \r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t

    {R.isNil(userState.user.onBoardingCompletedDate) ? \"\" : new Intl.DateTimeFormat(\"fr-FR\").format(new Date(currentDate.getFullYear(), userState.user.onBoardingCompletedDate.getMonth(), userState.user.onBoardingCompletedDate.getDate()))}

    \r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t) : userState.user.onBoardingCompletedDate ? (\r\n\t\t\t\t\t\t\t\t\t

    {R.isNil(userState.user.onBoardingCompletedDate) ? \"\" : new Intl.DateTimeFormat(\"fr-FR\").format(userState.user.onBoardingCompletedDate)}

    \r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t

    --

    \r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\thandleGetPartnerAndEtablissement();\r\n\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t{statusOptions[userState.user.status]}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Numéro de processus
    \r\n\t\t\t\t\t\t\t\t

    {userState.user.processNumber}

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{userDocuments.items.map((doc, index) => (\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    D. {doc.secondTitle}
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{doc.done}/{doc.num}\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t
    D. Communes
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    9/12
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    D. Personnalisées
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    pas ajouté
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Référent Principal
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{userState.isLoading.includes(Loadings.FETCH_REPRESENTATIVES) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\tLoading...\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t) : mainRepresentative ? (\r\n\t\t\t\t\t\t\t\t\t\t\t`${mainRepresentative?.firstName} ${mainRepresentative?.lastName}`\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{(userState.isLoading.includes(Loadings.FETCH_SERVICES) || userState.isLoading.includes(LoadingsFacilita.FETCHING_USER_SERVICES_DATA)) && R.isEmpty(userState.serviceDatas) ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tLoading...\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t) : R.isEmpty(userState.services) ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Il n'y a pas de services.

    \r\n\t\t\t\t\t\t\t\t\t

    L'utilisateur veuillez ajouter un nouvel service.

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(CommonServices).filter((u) => userState.services.some((i) => i.connectionType === u.connectionType))).map((srv, index) => {\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(\r\n\t\t\t\t\t\t\t\t\tObject.values(PersonalServices)\r\n\t\t\t\t\t\t\t\t\t\t.concat(Object.values(AuxiliarOptions))\r\n\t\t\t\t\t\t\t\t\t\t.filter((u) => userState.services.some((i) => (isSocialNetwork(i.connectionType) ? ConnectionTypes.socialNetworks === u.connectionType : isInsurance(i.connectionType) ? ConnectionTypes.insurance === u.connectionType : i.connectionType === u.connectionType)))\r\n\t\t\t\t\t\t\t\t).map((srv, index) => {\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\r\n\t\t\t\t\t\t\t\t{R.sortWith([R.ascend(R.prop(\"title\"))])(Object.values(OtherService).filter((u) => userState.services.some((i) => i.connectionType === u.connectionType))).map((srv, index) => {\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t{/* {Preview doc modal} */}\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n","import React, { useEffect, useState, useRef } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useLocation, useHistory } from \"react-router-dom\";\r\nimport * as R from \"ramda\";\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport { DossiersMain } from './main';\r\nimport { fetchAllPartners, fetchUsersByRole } from '../../actions/backoffice/dossiers';\r\nimport { GetPartners, GetPartnersDefaultState } from '../../actions/backoffice/partners';\r\nimport { DossiersDetail } from './detail';\r\nimport { LoadingState } from '../../_common/loadingState';\r\nimport * as Loadings from '../../constants/loadings/backoffice/dossiers';\r\n\r\n\r\nexport const Dossiers = ({ dossierState }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tconst searchQuery = useLocation();\r\n\tconst partnersReducer = useSelector(state => state.partnersReducer);\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet type = pageQuery.get('type');\r\n\tlet partner = pageQuery.get('partner');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpartner = R.isNil(partner) ? '' : partner;\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? '' : search;\r\n\ttype = R.isNil(type) ? '' : type;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst renderRef = useRef(false);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/backoffice/dossiers\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdispatch(fetchUsersByRole(\"user\", page, search, partner, type, sortBy, sortDesc));\r\n\t\tdispatch(GetPartnersDefaultState());\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/dossiers?page=${1}${type !== \"\" ? \"&type=\" + type : \"\"}${partner !== \"\" ? \"&partner=\" + partner : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"\" ? \"\" : sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(fetchUsersByRole(\"user\", page, pageSearch, partner, type, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line\r\n\t}, [pageSearch]);\r\n\r\n\r\n\r\n\tif (dossierState.isLoading.includes(Loadings.FETCHING_USERS_DOSSIERS) && R.isNil(dossierState.dossiers)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\tif (R.isNil(dossierState.dossiers)) {\r\n\t\treturn '';\r\n\t}\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\ttype,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tpartner,\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n\r\n};\r\n\r\n\r\n","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { deleteClient } from '../../actions/backoffice/clients';\r\n\r\n\r\nexport const DeleteUser = ({ selectedUser, deleteUser }) => {\r\n\r\n\tconst user = useSelector(state => state.user);\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.profilePicture)) {\r\n\t\t\tlet i = new Image();\r\n\t\t\ti.onload = function () {\r\n\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t};\r\n\t\t\ti.src = user.profilePicture;\r\n\t\t}\r\n\t}, [user.profilePicture]);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Delete user

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Supprimer l'utilisateur
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    Etes-vous sûr(e) de vouloir supprimer le compte {selectedUser.firstName} {selectedUser.lastName}?
    \r\n\t\t\t\t\t\t
    Cette action est irréversible.
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\nimport { DeleteUser } from './../../_common/deleteUser';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport { isValidPhoneNumber } from 'libphonenumber-js';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/clients';\r\nimport { deleteClient, resetPassword, updateClient, updateClientSecurity } from '../../../actions/backoffice/clients';\r\nimport { isValidEmail } from '../../../utils/misc';\r\n\r\n\r\nexport const ClientsMain = ({ clientsState, pageNumber, setPageSearch, pageSearch, routerQuery }) => {\r\n\tconst user = useSelector(state => state.user);\r\n\r\n\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst updateClientAccount = useRef();\r\n\tconst buttonRef = useRef();\r\n\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [usersToDisplay, setUsersToDisplay] = useState(clientsState.clients);\r\n\tconst [selectedClient, setSelectedClient] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\" });\r\n\tconst [selectedClientCopy, setSelectedClientCopy] = useState({});\r\n\tconst statusOptions = { user: \"Utilisateur\", admin: \"Administrateur\", partner: \"Partenaire\", representative: \"Référent\", etablissement: \"Etablissement\" };\r\n\tconst [saveNumber, setsaveNumber] = useState(\"\");\r\n\tconst searchRef = useRef();\r\n\r\n\tconst [filters, setFilters] = useState({\r\n\t\torder: {\r\n\t\t\tcolumn: \"lastName\",\r\n\t\t\tasc: false\r\n\t\t},\r\n\t\trole: undefined,\r\n\t\tsearch: \"\",\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!R.isNil(searchRef.current) && pageSearch !== \"\") {\r\n\t\t\tsearchRef.current.focus();\r\n\t\t}\r\n\r\n\t}, [pageSearch]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n\r\n\t\tlet temp = clientsState.clients.filter(c => c.id !== user.user.id);\r\n\r\n\t\t// if (!R.isNil(clientsState.globalFilters.role)) {\r\n\t\t// \ttemp = temp.filter(user => user.roles.some(r => r === clientsState.globalFilters.role));\r\n\r\n\t\t// }\r\n\r\n\t\t// if (clientsState.globalFilters.order.asc) {\r\n\t\t// \ttemp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\t\t// }\r\n\r\n\t\t// if (!R.isEmpty(filters.search)) {\r\n\t\t// \t//temp = temp.filter(user => user.firstName?.toLowerCase().includes(filters.search.toLowerCase()) || user.lastName?.toLowerCase().includes(filters.search.toLowerCase()));\r\n\t\t// }\r\n\r\n\r\n\t\tsetUsersToDisplay(temp);\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [filters, clientsState]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tconst filterForm = document.querySelector(\"#filterForm\");\r\n\t\tconst handleClick = (e) => {\r\n\t\t\tif (e.target.type === \"button\") {\r\n\t\t\t\te.target.parentElement.classList.remove(\"show\");\r\n\t\t\t}\r\n\t\t};\r\n\t\tconst filterFormEvent = filterForm.addEventListener(\"click\", handleClick);\r\n\r\n\t\treturn () => filterForm.removeEventListener(\"click\", handleClick);\r\n\t}, []);\r\n\r\n\tfunction handleUpdateClientAccount(e) {\r\n\t\te.preventDefault();\r\n\r\n\r\n\r\n\t\tupdateClientAccount.current.classList.add(\"was-validated\");\r\n\r\n\t\tif (updateClientAccount.current.checkValidity()) {\r\n\r\n\t\t\tconst phoneNumber = selectedClient.phoneNumber?.includes(\"+\") ? \"+\" + selectedClient.countryCode + parsePhoneNumber(selectedClient.phoneNumber).nationalNumber.replace(/ /g, '') : \"+\" + selectedClient.countryCode + selectedClient.phoneNumber?.replace(/ /g, '');\r\n\r\n\r\n\t\t\tif (selectedClientCopy.isEnabled !== selectedClient.isEnabled) {\r\n\t\t\t\tconst clientUpdateInfo = {\r\n\t\t\t\t\tid: selectedClient.id,\r\n\t\t\t\t\tgender: selectedClient.gender,\r\n\t\t\t\t\tisEnabled: selectedClient.isEnabled,\r\n\t\t\t\t\tfirstName: selectedClient.firstName,\r\n\t\t\t\t\tlastName: selectedClient.lastName,\r\n\t\t\t\t\tbirthDate: selectedClient.birthDate,\r\n\t\t\t\t\tbirthPlace: selectedClient.birthPlace,\r\n\t\t\t\t\tdepartmentNumber: selectedClient.departmentNumber,\r\n\t\t\t\t\tcountry: selectedClient.country,\r\n\t\t\t\t\tcivilStatus: selectedClient.civilStatus,\r\n\t\t\t\t\thasChildren: selectedClient.hasChildren,\r\n\t\t\t\t\tprofessionalSituation: selectedClient.professionalSituation.toString(),\r\n\t\t\t\t\tonBoardingStep: selectedClient.onBoardingStep,\r\n\r\n\t\t\t\t};\r\n\r\n\t\t\t\tdispatch(updateClient(selectedClient.id, clientUpdateInfo));\r\n\t\t\t}\r\n\r\n\t\t\tif (selectedClientCopy.phoneNumber !== selectedClient.phoneNumber) {\r\n\t\t\t\tdispatch(updateClientSecurity(selectedClient.id, { newPhoneNumber: phoneNumber }));\r\n\t\t\t}\r\n\r\n\t\t\tif (selectedClientCopy.email !== selectedClient.email) {\r\n\t\t\t\tdispatch(updateClientSecurity(selectedClient.id, { newEmail: selectedClient.email }));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tbuttonRef.current.setAttribute(\"data-dismiss\", \"modal\");\r\n\t\t\tbuttonRef.current.click();\r\n\r\n\r\n\t\t}\r\n\t\tbuttonRef.current.removeAttribute(\"data-dismiss\");\r\n\t}\r\n\r\n\r\n\tfunction handleDeleteUser(client) {\r\n\t\tdispatch(deleteClient(client));\r\n\t}\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{clientsState.isLoading.includes(Loadings.FETCHING_CLIENTS) ? (\r\n\t\t\t\t\t\r\n\t\t\t\t) : (\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{!R.isEmpty(usersToDisplay) ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{usersToDisplay.map((client) => {\r\n\t\t\t\t\t\t\t\t\tlet phone = null;\r\n\t\t\t\t\t\t\t\t\tif (!R.isNil(client.phoneNumber)) {\r\n\t\t\t\t\t\t\t\t\t\tphone = parsePhoneNumber(client.phoneNumber);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{client.firstName} {client.lastName}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{/* {client.roles.includes(\"partner\") &&

    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Partner client\">} */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{client.roles.map((role, i) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{statusOptions[role.toLowerCase()]}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\tStatut: \r\n\t\t\t\t\t\t\t\t\t\t\t\t{client.isEnabled ? Actif : Desactivé(e)}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedClient({ ...client, countryCode: R.isNil(phone) ? null : parseInt(phone.countryCallingCode), phoneCountry: R.isNil(phone) ? null : phone.country });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedClientCopy(client);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Agent - Empty
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tOn dirait
    \r\n\t\t\t\t\t\t\t\t\t\tqu'il est vide.\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Malheureusement, nous ne parvenons pas à trouver le contenu que vous recherchez.

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t)}\r\n\t\t\t\r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    User Account Donnes

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tDonnées du compte utilisateur\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\tConsultez et modifiez ci-dessous les détails du compte{\" \"}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{selectedClient.firstName} {selectedClient.lastName}\r\n\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\ten conséquence.\r\n\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet pc = countryTelData.allCountryCodes[event.target.value][0].toUpperCase();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedClient({ ...selectedClient, countryCode: event.target.value, phoneCountry: pc });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(contriesList.getData()).map((country, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet dialCode = countryTelData.allCountries[countryTelData.iso2Lookup[country.toLowerCase()]].dialCode;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst phoneInput = document.getElementById(\"phone\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst parsedPhoneNumber = parsePhoneNumber(\"+\" + selectedClient.countryCode + e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (R.isNil(parsedPhoneNumber) || !isValidPhoneNumber(parsedPhoneNumber.number)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tphoneInput.setCustomValidity(\"Numéro de télephone invalide.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tphoneInput.setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSelectedClient({ ...selectedClient, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t{/* setSelectedClient({ ...selectedClient, phoneNumber: e.target.value })} /> */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tValider votre numéro de téléphone\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tNous utiliserons ce numéro pour assurer la sécurité de votre compte.\r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t setSelectedClient({ ...selectedClient, email: e.target.value })} required pattern=\"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\" />\r\n\t\t\t\t\t\t\t\t\t\t
    Champs invalide
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport * as R from \"ramda\";\r\nimport { useDispatch } from 'react-redux';\r\nimport { Route, Switch, Redirect, useLocation, useHistory } from 'react-router';\r\n\r\n\r\nimport { fetchAllClients } from '../../actions/backoffice/clients';\r\nimport { LoadingState } from '../../_common/loadingState';\r\nimport * as Loadings from '../../constants/loadings/backoffice/clients';\r\n\r\n\r\nimport { ClientsMain } from './main';\r\n// import { ClientsDetail } from './detail';\r\n\r\nexport const Clients = ({ clientsState }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet roles = pageQuery.get('roles');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\troles = R.isNil(roles) ? \"\" : roles;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst renderRef = useRef(false);\r\n\tconst history = useHistory();\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/backoffice/clients\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//pageNumber, searchTerm,roles, sortByTerm, sortDesc\r\n\t\tdispatch(fetchAllClients(page, search, roles, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/clients?page=${1}${roles !== \"\" ? \"&roles=\" + roles : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${routerQuery.sortDesc !== \"\" ? \"&sortDesc=\" + routerQuery.sortDesc : \"\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(fetchAllClients(page, pageSearch, roles, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\r\n\tif (clientsState.isLoading.includes(Loadings.FETCHING_CLIENTS) && R.isNil(clientsState.clients)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\r\n\tif (R.isNil(clientsState.clients)) {\r\n\t\treturn '';\r\n\t}\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\troles,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t};\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{/* */}\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n\r\n};\r\n\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { fetchAllClientsData } from '../../../actions/backoffice/clients';\r\nimport * as R from 'ramda';\r\nimport { GetPartnersDefault } from '../../../actions/backoffice/partners';\r\n\r\nexport const PartnersHeader = ({ user, partners, isLoading, partnerState }) => {\r\n\r\n\r\n\tconst [totalUsers, setTotalUsers] = useState(0);\r\n\tconst [totalPartners, setTotalPartners] = useState(0);\r\n\tuseEffect(() => {\r\n\t\tasync function fetchAllUsers() {\r\n\t\t\tconst allUsers = await fetchAllClientsData();\r\n\t\t\tconst total = allUsers.items.filter(u => !R.isNil(u.partnerId)).length;\r\n\t\t\tsetTotalUsers(total);\r\n\t\t}\r\n\t\tfetchAllUsers();\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function fetchAllPartner() {\r\n\t\t\tconst allPartners = await GetPartnersDefault();\r\n\t\t\tsetTotalPartners(allPartners.items.length);\r\n\t\t}\r\n\t\tfetchAllPartner();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Nombre total

    \r\n\t\t\t\t\t\t\t

    {totalPartners} partenaires

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Nombre total

    \r\n\t\t\t\t\t\t\t

    {totalUsers} utilisateurs

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Export
    partenaire
    activité

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    ajouter un
    nouveau
    partenaire

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect } from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\nexport const PartnersMainTableHeader = ({ filters, setFilters, partnerState, routerQuery }) => {\r\n\r\n return (\r\n \r\n );\r\n};","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\n\r\nexport const PartnersMainTableRow = ({partner, setSelectedPartner}) => {\r\n\r\n return(\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {partner.name}
    \r\n
    \r\n
    \r\n
    {partner.id}
    \r\n
    \r\n
    \r\n
    {partner.numberOfDossiers}
    \r\n
    \r\n {/*
    \r\n
    Dernier dossier créé
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n { $('[data-toggle=\"tooltip\"]').tooltip(\"hide\");; }} >\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n\r\n}","import React, { useRef, useState, useEffect } from 'react';\r\nimport * as R from 'ramda';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport Address from '../../../constants/models/address';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/partners';\r\nimport { CreatePartner, UpdatePartner, UploadPartnerLogo, DownloadPartnerLogo } from '../../../actions/backoffice/partners';\r\nimport { useDispatch } from 'react-redux';\r\nimport $ from 'jquery';\r\nimport { humanFileSize } from '../../../utils/misc';\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\nexport const AddPartner = ({ isLoading, partner }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst formRef = useRef();\r\n\tconst inputFile = useRef(null);\r\n\r\n\r\n\r\n\tfunction resetForm() {\r\n\t\tformRef.current.classList.remove('was-validated');\r\n\t\tif (R.isNil(partner)) {\r\n\t\t\tsetPartnerInfo({\r\n\t\t\t\tname: '',\r\n\t\t\t\tfullyQualifiedName: '',\r\n\t\t\t\tvatNumber: '',\r\n\t\t\t\tsiret: '',\r\n\t\t\t\tisEnabled: true,\r\n\t\t\t\tbillingFrequencyInMonths: 1,\r\n\t\t\t\tpersonalization: undefined,\r\n\t\t\t\tsetupFee: 0,\r\n\t\t\t\tpartnerInitialReduction: 0,\r\n\t\t\t\tpartnerInitialPercentage: 0,\r\n\t\t\t\tpartnerRecurentReduction: 0,\r\n\t\t\t\tpartnerRecurentPercentage: 0,\r\n\t\t\t\tplateformInitialReduction: 0,\r\n\t\t\t\tplateformInitialPercentage: 0,\r\n\t\t\t\tplateformRecurentReduction: 0,\r\n\t\t\t\tplateformRecurentPercentage: 0,\r\n\t\t\t\taddressDataTransferObject: new Address(),\r\n\t\t\t\tcolor: '',\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetPartnerInfo({ ...partner });\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tlet initPartnerFormValues = {\r\n\t\tname: '',\r\n\t\tfullyQualifiedName: '',\r\n\t\tvatNumber: '',\r\n\t\tsiret: '',\r\n\t\tisEnabled: true,\r\n\t\tbillingFrequencyInMonths: 1,\r\n\t\tpersonalization: undefined,\r\n\t\tsetupFee: 0,\r\n\t\tpartnerInitialReduction: 0,\r\n\t\tpartnerInitialPercentage: 0,\r\n\t\tpartnerRecurentReduction: 0,\r\n\t\tpartnerRecurentPercentage: 0,\r\n\t\tplateformInitialReduction: 0,\r\n\t\tplateformInitialPercentage: 0,\r\n\t\tplateformRecurentReduction: 0,\r\n\t\tplateformRecurentPercentage: 0,\r\n\t\taddressDataTransferObject: new Address(),\r\n\t\tcolor: '',\r\n\t};\r\n\r\n\tif (!R.isNil(partner)) {\r\n\t\tinitPartnerFormValues = { ...partner };\r\n\t}\r\n\r\n\tconst [logo, setLogo] = useState(undefined);\r\n\tconst [partnerInfo, setPartnerInfo] = useState(initPartnerFormValues);\r\n\r\n\tconst [showDroits, setShowDroits] = useState(partnerInfo.setupFee === 0 ? false : true);\r\n\tconst [widthIsBigger, setWidthIsBigger] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(partnerInfo.profilePicture)) {\r\n\t\t\tlet i = new Image();\r\n\t\t\ti.onload = function () {\r\n\t\t\t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t\t};\r\n\t\t\ti.src = partnerInfo.profilePicture;\r\n\t\t}\r\n\t}, [partnerInfo.profilePicture]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst logoPreview = document.getElementById(\"logo-preview\");\r\n\t\tif (!R.isNil(partner) && !R.isNil(logoPreview)) {\r\n\t\t\tsetPartnerInfo({ ...partner });\r\n\t\t\tif (partner.hasLogo) {\r\n\t\t\t\tDownloadPartnerLogo(partner.id)\r\n\t\t\t\t\t.then((file) => {\r\n\t\t\t\t\t\tsetLogo(file);\r\n\t\t\t\t\t\tlogoPreview.src = URL.createObjectURL(file);\r\n\t\t\t\t\t\tlogoPreview.classList.remove(\"d-none\");\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// if (!R.isNil(partnerInfo.profilePicture)) {\r\n\t\t// \tlet i = new Image();\r\n\t\t// \ti.onload = function () {\r\n\t\t// \t\tsetWidthIsBigger(i.width > i.height);\r\n\t\t// \t};\r\n\t\t// \ti.src = partnerInfo.profilePicture;\r\n\t\t// }\r\n\t}, [partner]);\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{R.isNil(partnerInfo.id) || partnerInfo.id === \"\" ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Add partner

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tajouter un nouveau Partenaire\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Edit partner

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tParamètres du Partenaire\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Partenaire *

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, email: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, addressDataTransferObject: { ...partnerInfo.addressDataTransferObject, addressLine1: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, addressDataTransferObject: { ...partnerInfo.addressDataTransferObject, addressLine2: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, addressDataTransferObject: { ...partnerInfo.addressDataTransferObject, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcountry={partnerInfo.addressDataTransferObject.country}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, addressDataTransferObject: { ...partnerInfo.addressDataTransferObject, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, addressDataTransferObject: { ...partnerInfo.addressDataTransferObject, city: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, fullyQualifiedName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, vatNumber: e.target.value })} pattern={RegexFields.vatNumbers} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, siret: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    Réductions et commissions
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Paiements directement au partenaire
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, partnerInitialReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, partnerInitialPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, partnerRecurentReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, partnerRecurentPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Paiements via la plateforme
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, plateformInitialReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, plateformInitialPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, plateformRecurentReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, plateformRecurentPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    Personnalisation
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/*

    Activer ou désactiver l'utilisateur de ce partenaire

    */}\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, personalization: true })} className=\"custom-control-input\" defaultChecked={partnerInfo.personalization === true} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPartnerInfo({ ...partnerInfo, personalization: false, color: undefined });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetLogo(undefined);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdefaultChecked={partnerInfo.personalization === false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{partnerInfo.personalization ? (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Définissez ci-dessous le logo de votre entreprise et les couleurs visibles par vos clients

    \r\n\t\t\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCliquez ci-dessous pour ajouter le logo.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    inputFile.current.click()}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetLogo(e.target.files[0]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"logo-preview\").src = URL.createObjectURL(e.target.files[0]);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"logo-preview\").classList.remove(\"d-none\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"avatar\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{R.isNil(logo) ? : \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* {!R.isNil(partnerInfo.profilePicture) ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"avatar\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!R.isNil(logo) ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{logo.name}{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetLogo(undefined);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"logo-preview\").classList.add(\"d-none\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    {humanFileSize(logo.size)}

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    Aucun fichier ajouté
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t

    0 kbs

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVeuillez renseigner la couleur au format HEX.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t#\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetPartnerInfo({ ...partnerInfo, color: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    DROITS D’ENTRÉE
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t setShowDroits(true)} onChange={() => {}} className=\"custom-control-input\" defaultChecked={showDroits === true} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t setShowDroits(false)} onChange={() => {}} className=\"custom-control-input\" defaultChecked={showDroits === false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{showDroits ? (\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setPartnerInfo({ ...partnerInfo, setupFee: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t€\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t

    Données d'Admin *

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading.includes(Loadings.CREATING_PARTNER) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(partnerInfo.id) || partnerInfo.id === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(CreatePartner(partnerInfo))\r\n\t\t\t\t\t\t\t\t\t\t\t\t.then((partner) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(logo)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(UploadPartnerLogo(partner.id, logo));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPromise.resolve();\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t.then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$(\".modal\").modal(\"hide\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tresetForm();\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(UpdatePartner(partnerInfo))\r\n\t\t\t\t\t\t\t\t\t\t\t\t.then((partner) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!R.isNil(logo)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdispatch(UploadPartnerLogo(partner.id, logo));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tPromise.resolve();\r\n\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t.then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$(\".modal\").modal(\"hide\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tresetForm();\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useRef } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport $ from 'jquery';\r\n\r\nimport { PartnersMainTable } from './index';\r\nimport { AddPartner } from './../../_common/AddPartner';\r\n\r\nexport const PartnersFilters = ({ filters, setFilters, pageSearch, setPageSearch, routerQuery }) => {\r\n\r\n\r\n\tconst inputRef = useRef();\r\n\tuseEffect(() => {\r\n\t\tif (routerQuery.search) {\r\n\t\t\tinputRef.current.focus();\r\n\t\t}\r\n\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nimport { PartnersMainTableHeader } from './header';\r\nimport { PartnersMainTableRow } from './row';\r\nimport { PartnersFilters } from './filters';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport Emptylustration from './../../../../assets/images/svg/057-contract-1.svg';\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\nexport const PartnersMainTable = ({ partners, setSelectedPartner, partnerState, pageSearch, setPageSearch, routerQuery }) => {\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"id\",\r\n asc: true\r\n },\r\n search: \"\",\r\n });\r\n\r\n const [displayableElements, setDisplayableElements] = useState(undefined);\r\n\r\n useEffect(() => {\r\n let temp = partners;\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(d => d.id.search(filters.search) > -1 || d.name.search(filters.search) > -1);\r\n // }\r\n\r\n // setDisplayableElements(filters.order.asc ? R.sort(R.ascend(R.prop(filters.order.column)), temp) : R.sort(R.descend(R.prop(filters.order.column)), temp));\r\n\r\n setDisplayableElements(temp);\r\n\r\n }, [filters, partners]);\r\n\r\n\r\n\r\n\r\n return (\r\n \r\n \r\n
    \r\n\r\n {\r\n partnerState.isLoading.includes(Loadings.FETCHING_PARTNERS) ?\r\n
    Loading...
    \r\n :\r\n \r\n
    \r\n {R.isNil(partners) || R.isEmpty(displayableElements) ?\r\n
    \r\n \"Assist@\"\r\n
    \r\n

    Aucune partenaire trouvée!

    \r\n

    Malheureusement, nous ne parvenons pas à trouver le contenu que vous recherchez.

    \r\n
    \r\n
    \r\n :\r\n
    \r\n \r\n {\r\n R.isNil(displayableElements) ?\r\n null\r\n :\r\n displayableElements.map((partner) => {\r\n return (\r\n \r\n );\r\n })\r\n }\r\n
    \r\n }\r\n
    \r\n
    \r\n }\r\n\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n\r\n};","import React, { useRef, useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport {downloadReport} from '../../../actions/backoffice/partners'\r\nimport { DateWithModal } from './../../../_common/dateWithModal';\r\nimport {ToasterConfigurations} from '../../../constants/toasterText/configurations';\r\nimport { toast } from 'react-toastify';\r\n\r\nexport const ExportPartner = ({ partners }) => {\r\n\tconst formRef = useRef();\r\n\tconst partnerTemp = [{id: '00000000-0000-0000-0000-000000000000', name: 'Tous'}, ...partners];\r\n\tconst [exportParameters, setExportParameters] = useState({partnerId: R.isEmpty(partners) ? null : partnerTemp[0].id, fromDate: undefined, toDate: undefined, isLoading: false});\r\n\tfunction getStartDate(date) { setExportParameters({ ...exportParameters, fromDate: date }); }\r\n\tfunction getEndDate(date) { setExportParameters({ ...exportParameters, toDate: date }); }\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Exporter partenaire
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Exporter les données du partenaire
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tAdresse e-mail invalide\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t {setExportParameters({ ...exportParameters, fromDate: d})}} />\r\n\t\t\t\t\t\t\t\t\t
    -
    \r\n\t\t\t\t\t\t\t\t\t setExportParameters({ ...exportParameters, toDate: d})} />\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\texportParameters.isLoading ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as Loadings from './../../../constants/loadings/backoffice/partners';\r\nimport * as R from 'ramda';\r\nimport {DeletePartner} from '../../../actions/backoffice/partners';\r\nimport { useDispatch } from 'react-redux';\r\nimport $ from 'jquery';\r\n\r\nexport const DeletePartnerModal = ({isLoading, selectedPartner}) => {\r\n\tconst dispatch = useDispatch();\r\n\tif(R.isNil(selectedPartner)){\r\n\t\treturn '';\r\n\t}\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Supprimer Partenaires
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Supprimer un partenaire
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    Supprimer {R.isNil(selectedPartner) ? 'Partenaire' : selectedPartner.name}?
    \r\n\t\t\t\t\t\t
    Ce partenaire est sur le point d'être supprimé. Veuillez confirmer cette action.
    \r\n\t\t\t\t\t\t
    AVERTISSEMENT: cette action est irréversible.
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(Loadings.DELETING_PARTNER) ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n}","import React, { useEffect, useState, useRef } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from 'ramda';\r\n\r\nimport { PartnersHeader } from './header';\r\nimport { PartnersMainTable } from './table/index';\r\nimport { AddPartner } from './../_common/AddPartner';\r\nimport { ExportPartner } from './../_common/ExportPartner';\r\nimport { DeletePartnerModal } from './../_common/DeletePartner';\r\nimport { useHistory, useLocation } from 'react-router';\r\nimport { useDispatch } from 'react-redux';\r\nimport { GetPartners } from '../../../actions/backoffice/partners';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/partners';\r\n\r\n\r\nexport const PartnersMain = ({ partners, isLoading, partnerState }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\tsortBy = R.isNil(sortBy) ? \"name\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"false\" : sortDesc;\r\n\r\n\tconst [selectedPartner, setSelectedPartner] = useState(undefined);\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst renderRef = useRef(false);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"backoffice/partners\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//pageNumber, searchTerm, sortByTerm, sortDesc\r\n\t\tdispatch(GetPartners(page, search, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/partners?page=${1}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetPartners(page, pageSearch, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\r\n\tif ((R.isNil(partnerState.partners) || R.isEmpty(partnerState.partners)) && partnerState.isLoading.includes(Loadings.FETCHING_PARTNERS)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\tif (R.isNil(partnerState.partners)) {\r\n\t\treturn '';\r\n\t}\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t};\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport { AddPartner } from './../../_common/AddPartner';\r\n\r\nexport const DetailNav = ({ partner, isLoading }) => {\r\n\r\n\tconst [selectedPartner, setSelectedPartner] = useState(partner);\r\n\tuseEffect(() => {\r\n\t\tsetSelectedPartner(partner);\r\n\t}, [partner]);\r\n\r\n\t// const initValue = !R.isNil(partner) ? partner : {\r\n\t// \tname: 'Partenaires paramètres'\r\n\t// }\r\n\t// const [partnerInfo, setPartnerInfo] = useState(initValue);\r\n\r\n\t// useEffect(() => {\r\n\t// \tif (R.isNil(partner)) {\r\n\t// \t\tsetPartnerInfo(initValue);\r\n\t// \t} else {\r\n\t// \t\tsetPartnerInfo({ ...partner });\r\n\t// \t}\r\n\t// }, [partner]);\r\n\r\n\t// useEffect(() => {\r\n\t// \t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t// \t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t// }, []);\r\n\treturn (\r\n\t\t\r\n\t);\r\n};","import React, { useEffect, useState, useRef } from 'react';\r\nimport * as R from 'ramda';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\nimport { CreateUserByPartnerId, UpdateUserByPartnerId } from '../../../../actions/backoffice/partners';\r\n\r\nexport const AddPartnerUser = ({ partnerId, selectedUser, etablissements, isLoading }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\tconst formRef = useRef();\r\n\r\n\tconst initValue = !R.isNil(selectedUser) ? { ...selectedUser } : {\r\n\t\tfirstName: '',\r\n\t\tlastName: '',\r\n\t\temail: '',\r\n\t\tphoneNumber: '',\r\n\t\tcountryCode: '33',\r\n\t\tphoneCountry: 'FR',\r\n\t\tisEnabled: undefined,\r\n\t\tpartnerId: partnerId,\r\n\t\tetablissementId: undefined,\r\n\t\tdaysOfTraining: 0,\r\n\r\n\t};\r\n\tif (!R.isNil(selectedUser)) {\r\n\t\tconst phone = parsePhoneNumber(selectedUser.phoneNumber, selectedUser.countryCode);\r\n\t\tif (!R.isNil(phone)) {\r\n\t\t\tinitValue.phoneNumber = phone.nationalNumber;\r\n\t\t\tinitValue.countryCode = phone.countryCallingCode;\r\n\t\t\tinitValue.phoneCountry = phone.country;\r\n\t\t}\r\n\t}\r\n\r\n\tconst [userInfo, setUserInfo] = useState(initValue);\r\n\tconst [showFormation, setShowFormation] = useState(R.isNil(userInfo) ? false : userInfo.daysOfTraining > 0);\r\n\r\n\tfunction resetForm() {\r\n\t\tformRef.current.classList.remove('was-validated');\r\n\t\tsetUserInfo(initValue);\r\n\t\tsetShowFormation(undefined);\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(selectedUser)) {\r\n\t\t\tresetForm();\r\n\t\t} else {\r\n\t\t\tconst user = { ...selectedUser };\r\n\t\t\tconst phone = parsePhoneNumber(selectedUser.phoneNumber, selectedUser.countryCode);\r\n\t\t\tif (!R.isNil(phone)) {\r\n\t\t\t\tuser.phoneNumber = phone.nationalNumber;\r\n\t\t\t\tuser.countryCode = phone.countryCallingCode;\r\n\t\t\t\tuser.phoneCountry = phone.country;\r\n\t\t\t}\r\n\r\n\t\t\tsetUserInfo(user);\r\n\t\t\tsetShowFormation(selectedUser.daysOfTraining > 0);\r\n\t\t}\r\n\r\n\t}, [selectedUser]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif(showFormation === false){\r\n\t\t\tsetUserInfo({ ...userInfo, daysOfTraining: 0 });\r\n\t\t}\r\n\t}, [showFormation])\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Add partner user

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    ajouter un nouvel utilisateur
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{/*

    Vous pouvez ajouter un nouvel utilisateur à ce partenaire. Remplissez les champs ci-dessous et ajoutez les données du nouvel utilisateur.

    */}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, firstName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, lastName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, email: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetUserInfo({ ...userInfo, phoneNumber: e.target.value });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tR.isNil(userInfo.etablissementId) ?\r\n\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Onglet Paiement
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*

    Activer ou désactiver l'utilisateur de ce partenaire

    */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, isEtablissementAdmin: true })} className=\"custom-control-input\" checked={userInfo.isEtablissementAdmin === true} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, isEtablissementAdmin: false })} className=\"custom-control-input\" checked={userInfo.isEtablissementAdmin === false} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Formation
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setShowFormation(true)} onChange={() => { }} className=\"custom-control-input\" checked={showFormation === true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setShowFormation(false)} onChange={() => { }} className=\"custom-control-input\" checked={showFormation === false} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tshowFormation ?\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, daysOfTraining: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Actif
    \r\n\t\t\t\t\t\t\t\t\t{/*

    Activer ou désactiver l'utilisateur de ce partenaire

    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, isEnabled: true })} onChange={() => { }} className=\"custom-control-input\" checked={userInfo.isEnabled === true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setUserInfo({ ...userInfo, isEnabled: false })} onChange={() => { }} className=\"custom-control-input\" checked={userInfo.isEnabled === false} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(Loadings.CREATING_USER) || isLoading.includes(Loadings.UPDATING_USER) ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport * as R from 'ramda';\r\nimport {DeleteUserByPartnerId} from '../../../../actions/backoffice/partners';\r\nimport { useDispatch } from 'react-redux';\r\nimport $ from 'jquery';\r\n\r\nexport const DeletePartnerUser = ({ selectedUser, isLoading }) => {\r\n\tconst dispatch = useDispatch();\r\n\tif(R.isNil(selectedUser)){\r\n\t\treturn '';\r\n\t}\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Supprimer utilisateur
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Supprimer l'utilisateur
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    Supprimer {selectedUser.firstName} {selectedUser.lastName}?
    \r\n\t\t\t\t\t\t
    Cet utilisateur est sur le point d'être supprimé. Veuillez confirmer cette action.
    \r\n\t\t\t\t\t\t
    AVERTISSEMENT: cette action est irréversible.
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(Loadings.DELETING_USER) ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n}","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const UsersTableHeader = ({ filters, setFilters, partnerState, routerQuery }) => {\r\n return (\r\n \r\n );\r\n return (\r\n \r\n );\r\n\r\n};","import React from 'react';\r\nimport * as R from 'ramda';\r\nimport { SendUserActivationEmailByPartnerId } from '../../../../../actions/backoffice/partners';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nexport const UsersTableRow = ({ user, etablissements, setSelectedUser }) => {\r\n const dispatch = useDispatch();\r\n const etablissementName = R.isNil(etablissements) ? \"\" : R.isNil(user.etablissementId) ? \"\" : etablissements.find(e => e.id === user.etablissementId)?.name;\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {user.firstName} {user.lastName}
    \r\n
    \r\n
    \r\n
    {user.phoneNumber}
    \r\n
    \r\n
    \r\n
    {R.isNil(user.etablissementId) || user.etablissementId === \"00000000-0000-0000-0000-000000000000\" ? \"Administrateur\" : \"Etablissement\"}
    \r\n
    \r\n
    \r\n
    {etablissementName}
    \r\n
    \r\n
    \r\n
    {user.daysOfTraining > 0 ? \"Oui\" : \"Non\"}
    \r\n
    \r\n
    \r\n
    {user.isEnabled ? \"Actif\" : \"Désactivé\"}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n\r\n};","import React, { useState } from 'react';\r\nimport * as R from 'ramda';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const UsersTableNav = ({ filters, setFilters, pageSearch, setPageSearch, routerQuery, partnerState }) => {\r\n\r\n\r\n return (\r\n \r\n );\r\n\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nimport { UsersTableHeader } from './header';\r\nimport { UsersTableRow } from './row';\r\nimport { UsersTableNav } from './nav';\r\n\r\nimport Emptylustration from './../../../../../assets/images/svg/057-contract-1.svg';\r\nimport * as Loadings from '../../../../../constants/loadings/backoffice/partners';\r\nimport { LoadingState } from '../../../../../_common/loadingState';\r\n\r\n\r\nexport const UsersTable = ({ users, setSelectedUser, etablissements, partnerState, partner, pageSearch, setPageSearch, routerQuery }) => {\r\n\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"name\",\r\n asc: true\r\n },\r\n search: \"\",\r\n status: \"all\",\r\n role: \"all\",\r\n });\r\n\r\n const [displayableElements, setDisplayableElements] = useState(undefined);\r\n\r\n useEffect(() => {\r\n let temp = users;\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(d => d.firstName.search(filters.search) > -1 || d.lastName.search(filters.search) > -1 || d.phoneNumber.search(filters.search) > -1);\r\n // }\r\n // if (filters.status === \"active\") {\r\n // temp = temp.filter(d => d.isEnabled);\r\n // }\r\n // if (filters.status === \"inactive\") {\r\n // temp = temp.filter(d => !d.isEnabled);\r\n // }\r\n // if (filters.role === \"administrator\") {\r\n // temp = temp.filter(d => R.isNil(d.etablissementId));\r\n // }\r\n // if (filters.role === \"etablissement\") {\r\n // temp = temp.filter(d => !R.isNil(d.etablissementId));\r\n // }\r\n\r\n\r\n // setDisplayableElements(filters.order.asc ? R.sort(R.ascend(R.prop(filters.order.column)), temp) : R.sort(R.descend(R.prop(filters.order.column)), temp));\r\n setDisplayableElements(temp);\r\n\r\n }, [filters, users]);\r\n\r\n\r\n return (\r\n
    \r\n \r\n {\r\n partnerState.isLoading.includes(Loadings.FETCHING_USERS) ?\r\n \r\n :\r\n
    \r\n

    Utilisateurs

    \r\n\r\n {R.isNil(displayableElements) || displayableElements <= 0 ?\r\n
    \r\n \"Assist@\"\r\n
    \r\n

    Il n'y a pas d'utilisateurs.

    \r\n

    Veuillez ajouter un nouvel utilisateur.

    \r\n
    \r\n
    \r\n :\r\n \r\n \r\n {displayableElements.map((user) => {\r\n return (\r\n \r\n );\r\n })\r\n }\r\n\r\n \r\n }\r\n\r\n
    \r\n }\r\n
    \r\n );\r\n\r\n};","export default __webpack_public_path__ + \"static/media/112-person.30c59f0d.svg\";","import React, { useEffect, useRef, useState } from 'react';\r\nimport { Link, NavLink, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport { AddPartnerUser } from './../_common/AddPartnerUser';\r\nimport { DeletePartnerUser } from './../_common/DeletePartnerUser';\r\nimport { UsersTable } from './table';\r\n\r\nimport anticipa from './../../../../assets/images/svg/112-person.svg';\r\nimport facilita from './../../../../assets/images/svg/113-funeral.svg';\r\nimport usersIcon from './../../../../assets/images/svg/114-users.svg';\r\nimport Emptylustration from './../../../../assets/images/svg/057-contract-1.svg';\r\nimport * as urls from '../../../../constants/webapi/backoffice/dossiers';\r\nimport { getAuthenticationUrl } from '../../../../constants/webapi/auth';\r\nimport axios from 'axios';\r\nimport { useDispatch } from 'react-redux';\r\nimport { GetUsersByPartnerId, GetUsersByPartnerIdDefault } from '../../../../actions/backoffice/partners';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport BackofficeUser from '../../../../constants/models/backofficeUser';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\n\r\n\r\nexport const PartnersUsers = ({ partner, isLoading, partnerState }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet role = pageQuery.get('role');\r\n\tlet status = pageQuery.get('status');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\trole = R.isNil(role) ? \"\" : role;\r\n\tstatus = R.isNil(status) ? \"\" : status;\r\n\tsortBy = R.isNil(sortBy) ? \"firstName\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"false\" : sortDesc;\r\n\r\n\tconst [selectedUser, setSelectedUser] = useState(undefined);\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [usersStats, setUsersStats] = useState({ anticipa: 0, facilita: 0, total: 0 });\r\n\tconst renderRef = useRef(false);\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function getUsersDefault() {\r\n\t\t\ttry {\r\n\t\t\t\tconst allUsers = await GetUsersByPartnerIdDefault(partner.id);\r\n\t\t\t\tconst totalStatusAmount = allUsers.items.reduce((acc, user) => {\r\n\t\t\t\t\tuser.createdByRepresentative ? acc.facilita++ : acc.anticipa++;\r\n\t\t\t\t\treturn acc;\r\n\r\n\t\t\t\t}, { anticipa: 0, facilita: 0 });\r\n\r\n\t\t\t\tsetUsersStats({ ...totalStatusAmount, total: allUsers.items.length });\r\n\r\n\t\t\t} catch (error) {\r\n\t\t\t\tthrow \"Error on loading all the Users \";\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\tgetUsersDefault();\r\n\t}, [partner.users]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(`backoffice/partners/${partner.id}/users`);\r\n\t\t\treturn;\r\n\r\n\t\t}\r\n\r\n\t\t//partnerId, pageNumber, searchTerm, sortByTerm, sortDesc\r\n\t\tdispatch(GetUsersByPartnerId(partner.id, page, search, role, status, sortBy, sortDesc));\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\t// if (pageSearch) {\r\n\t\t// \thistory.push(`/backoffice/partners/${partner.id}/users?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${role !== \"\" ? \"&role=\" + role : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t// \treturn;\r\n\r\n\t\t// } else {\r\n\t\t// \thistory.push(`/backoffice/partners/${partner.id}/users?page=${1}${role !== \"\" ? \"&role=\" + role : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/partners/${partner.id}/users?page=${1}${role !== \"\" ? \"&role=\" + role : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetUsersByPartnerId(partner.id, page, pageSearch, role, status, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\trole,\r\n\t\tstatus,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t};\r\n\r\n\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n\tif (partnerState.isLoading.includes(Loadings.FETCHING_USERS) && R.isNil(partner.users)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\tif (R.isNil(partner.users)) {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t\"Assist@\"\r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Il n'y a pas d'utilisateurs.

    \r\n\t\t\t\t\t

    Veuillez ajouter un nouvel utilisateur.

    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t);\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Partner utilisateurs

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\"Anticipa\"\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Anticipa

    \r\n\t\t\t\t\t\t\t\t\t\t

    {usersStats.anticipa}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\"Facilita\"\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Facilita

    \r\n\t\t\t\t\t\t\t\t\t\t

    {usersStats.facilita}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\"users\"\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Nombre total

    \r\n\t\t\t\t\t\t\t\t\t\t

    {usersStats.total} utilisateurs

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    setSelectedUser(undefined)}>\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    ajouter un
    nouvel
    utilisateur

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{/* {\r\n\t\t\t\t\tR.isNil(partner.users) || R.isEmpty(partner.users) ?\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Il n'y a pas d'utilisateurs.

    \r\n\t\t\t\t\t\t\t\t

    Veuillez ajouter un nouvel utilisateur.

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} */}\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const EtablissementsTableHeader = ({ filters, setFilters, routerQuery, partnerState }) => {\r\n\r\n return (\r\n \r\n );\r\n\r\n};","import React from 'react';\r\n\r\n\r\n\r\nexport const EtablissementsTableRow = ({etablissement, setSelectedEtablissement, numberOfUsers}) => {\r\n\r\n const dateParts = etablissement.creationDate.substring(0, 10).split('-');\r\n return(\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {etablissement.siret}
    \r\n
    \r\n
    \r\n
    {etablissement.name}
    \r\n
    \r\n
    \r\n
    {dateParts[2]}/{dateParts[1]}/{dateParts[0]}
    \r\n
    \r\n
    \r\n
    {numberOfUsers}
    \r\n
    \r\n
    \r\n
    {etablissement.isEnabled ? \"Actif\" : \"Désactivé\"}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n\r\n}","import React, { useEffect, useRef } from 'react';\r\nimport * as R from 'ramda';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const EtablissementsTableNav = ({ filters, setFilters, pageSearch, setPageSearch, routerQuery, partnerState }) => {\r\n\r\n const inputRef = useRef();\r\n useEffect(() => {\r\n if (routerQuery.search) {\r\n inputRef.current.focus();\r\n }\r\n\r\n }, []);\r\n\r\n useEffect(() => {\r\n const filterForm = document.querySelector(\"#filterForm\");\r\n const handleClick = (e) => {\r\n if (e.target.type === \"button\") {\r\n e.target.parentElement.classList.remove(\"show\");\r\n }\r\n };\r\n\r\n const filterFormEvent = filterForm.addEventListener(\"click\", handleClick);\r\n return () => filterForm.removeEventListener(\"click\", handleClick);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n\r\n};","import React, { useEffect, useState } from 'react';\r\nimport * as R from 'ramda';\r\n\r\nimport { EtablissementsTableHeader } from './header';\r\nimport { EtablissementsTableRow } from './row';\r\nimport { EtablissementsTableNav } from './nav';\r\n\r\nimport Emptylustration from './../../../../../assets/images/svg/057-contract-1.svg';\r\nimport { LoadingState } from '../../../../../_common/loadingState';\r\nimport * as Loadings from '../../../../../constants/loadings/backoffice/partners';\r\n\r\n\r\nexport const EtablissementsTable = ({ etablissements, users, setSelectedEtablissement, pageSearch, setPageSearch, routerQuery, partnerState }) => {\r\n\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"name\",\r\n asc: true\r\n },\r\n search: \"\",\r\n status: \"all\",\r\n });\r\n\r\n const [displayableElements, setDisplayableElements] = useState(undefined);\r\n\r\n useEffect(() => {\r\n let temp = etablissements;\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(d => d.siret.search(filters.search) > -1 || d.name.search(filters.search) > -1);\r\n // }\r\n // if (filters.status === \"active\") {\r\n // temp = temp.filter(d => d.isEnabled);\r\n // }\r\n // if (filters.status === \"inactive\") {\r\n // temp = temp.filter(d => !d.isEnabled);\r\n // }\r\n\r\n\r\n // setDisplayableElements(filters.order.asc ? R.sort(R.ascend(R.prop(filters.order.column)), temp) : R.sort(R.descend(R.prop(filters.order.column)), temp));\r\n setDisplayableElements(temp);\r\n\r\n }, [filters, etablissements]);\r\n\r\n // if (partnerState.isLoading.includes(Loadings.FETCHING_ETABLISSEMENTS)) {\r\n // \treturn ;\r\n // }\r\n\r\n return (\r\n
    \r\n \r\n {\r\n partnerState.isLoading.includes(Loadings.FETCHING_ETABLISSEMENTS) ?\r\n \r\n :\r\n
    \r\n

    Établissement

    \r\n\r\n {R.isNil(displayableElements) || displayableElements <= 0 ?\r\n
    \r\n \"Assist@\"\r\n
    \r\n

    Il n'y a pas d'établissements.

    \r\n

    Veuillez ajouter un nouvel établissement.

    \r\n
    \r\n
    \r\n :\r\n \r\n \r\n {displayableElements.map((etablissement) => {\r\n return (\r\n \r\n\r\n );\r\n })}\r\n \r\n }\r\n
    \r\n }\r\n
    \r\n );\r\n\r\n};","import React, { useEffect, useRef, useState } from 'react';\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport { RegexFields } from '../../../../constants/utils/regexFields';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport Address from '../../../../constants/models/address';\r\nimport { PostalCityInput } from \"../../../../_common/postalCityInput\";\r\n\r\nimport { CreateEtablissementsByPartnerId, UpdateEtablissementsByPartnerId } from '../../../../actions/backoffice/partners';\r\n\r\nexport const AddPartnerEstablishment = ({ partnerId, isLoading, selectedEtablissement }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst formRef = useRef();\r\n\r\n\tconst initValue = !R.isNil(selectedEtablissement) ? selectedEtablissement : {\r\n\t\tname: '',\r\n\t\tfullyQualifiedName: '',\r\n\t\tvatNumber: '',\r\n\t\tsiret: '',\r\n\t\tisEnabled: undefined,\r\n\t\tisRh: undefined,\r\n\t\tpartnerDocumentSendingType: undefined,\r\n\t\tbillingFrequencyInMonths: 1,\r\n\t\tpersonalization: undefined,\r\n\t\tsetupFee: 0,\r\n\t\tpartnerInitialReduction: 0,\r\n\t\tpartnerInitialPercentage: 0,\r\n\t\tpartnerRecurentReduction: 0,\r\n\t\tpartnerRecurentPercentage: 0,\r\n\t\tplateformInitialReduction: 0,\r\n\t\tplateformInitialPercentage: 0,\r\n\t\tplateformRecurentReduction: 0,\r\n\t\tplateformRecurentPercentage: 0,\r\n\t\taddressDataTransferObject: new Address(),\r\n\t\trhActivationLink: undefined\r\n\t};\r\n\r\n\tfunction resetForm() {\r\n\t\tformRef.current.classList.remove('was-validated');\r\n\t\tsetEtablissementInfo(initValue);\r\n\t}\r\n\tconst [etablissementInfo, setEtablissementInfo] = useState(initValue);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (R.isNil(selectedEtablissement)) {\r\n\t\t\tresetForm();\r\n\t\t} else {\r\n\t\t\tsetEtablissementInfo({ ...selectedEtablissement });\r\n\t\t}\r\n\r\n\t}, [selectedEtablissement]);\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{R.isNil(etablissementInfo.id) ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Add partner Establishment

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tajouter un nouvel Établissement\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Edit partner

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tModifier un Établissement\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Établissement *

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, name: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, email: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, addressDataTransferObject: { ...etablissementInfo.addressDataTransferObject, addressLine1: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, addressDataTransferObject: { ...etablissementInfo.addressDataTransferObject, addressLine2: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, addressDataTransferObject: { ...etablissementInfo.addressDataTransferObject, postalCode: updatedAddress.postalCode, city: updatedAddress.city } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcountry={etablissementInfo.addressDataTransferObject?.country}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col-12 col-sm-6 col-lg\", postalCode: \"form-group col-12 col-sm-6 col-lg\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, addressDataTransferObject: { ...etablissementInfo.addressDataTransferObject, postalCode: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, addressDataTransferObject: { ...etablissementInfo.addressDataTransferObject, city: e.target.value } })}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, fullyQualifiedName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, vatNumber: e.target.value })} pattern={RegexFields.vatNumbers} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, siret: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Réduction et commissions
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    Paiements directement au partenaire
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerInitialReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerInitialPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerRecurentReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerRecurentPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    Paiements via la plateforme
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, plateformInitialReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, plateformInitialPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, plateformRecurentReduction: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, plateformRecurentPercentage: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Actif
    \r\n\t\t\t\t\t\t\t\t\t{/*

    Activer ou désactiver l'Établissement de ce Établissement

    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isEnabled: true })} onChange={() => {}} className=\"custom-control-input\" checked={etablissementInfo.isEnabled === true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isEnabled: false })} onChange={() => {}} className=\"custom-control-input\" checked={etablissementInfo.isEnabled === false} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Type d'envoi de courrier
    \r\n\t\t\t\t\t\t\t\t\t{/*

    Activer ou désactiver l'Établissement de ce Établissement

    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerDocumentSendingType: \"AlwaysSendByPost\" })}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={() => {}}\r\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\tchecked={etablissementInfo.partnerDocumentSendingType === \"AlwaysSendByPost\"}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerDocumentSendingType: \"NeverSendByPost\" })}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={() => {}}\r\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\tchecked={etablissementInfo.partnerDocumentSendingType === \"NeverSendByPost\"}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, partnerDocumentSendingType: \"DefineOnAccountCreation\" })}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={() => {}}\r\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\tchecked={etablissementInfo.partnerDocumentSendingType === \"DefineOnAccountCreation\"}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    RH
    \r\n\t\t\t\t\t\t\t\t\t{etablissementInfo.isRh ?

    Lien espace entreprise : {etablissementInfo.rhActivationLink || \"N/D\"}

    : \"\"}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isRh: true })} onChange={() => {}} className=\"custom-control-input\" checked={etablissementInfo.isRh === true} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isRh: false })} onChange={() => {}} className=\"custom-control-input\" checked={etablissementInfo.isRh === false} />\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Serenita
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/*
    */}\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isSerenita: true })}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={() => {}}\r\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\tchecked={etablissementInfo.isSerenita === true}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t setEtablissementInfo({ ...etablissementInfo, isSerenita: false })}\r\n\t\t\t\t\t\t\t\t\t\t\tonChange={() => {}}\r\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"custom-control-input\"\r\n\t\t\t\t\t\t\t\t\t\t\tchecked={etablissementInfo.isSerenita === false}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{isLoading.includes(Loadings.CREATING_ETABLISSEMENT) || isLoading.includes(Loadings.UPDATING_ETABLISSEMENT) ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t\t\tif (formRef.current.checkValidity()) {\r\n\t\t\t\t\t\t\t\t\t\tif (R.isNil(etablissementInfo.id)) {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(CreateEtablissementsByPartnerId(etablissementInfo, partnerId)).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$(\".modal\").modal(\"hide\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tresetForm();\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tdispatch(UpdateEtablissementsByPartnerId(etablissementInfo, partnerId)).then(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$(\".modal\").modal(\"hide\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tresetForm();\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tformRef.current.classList.add(\"was-validated\");\r\n\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\tEnregistrer\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React from 'react';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport * as R from 'ramda';\r\nimport {DeleteEtablissementsByPartnerId} from '../../../../actions/backoffice/partners';\r\nimport { useDispatch } from 'react-redux';\r\nimport $ from 'jquery';\r\n\r\nexport const DeletePartnerEstablishment = ({isLoading, selectedEtablissement}) => {\r\n\tconst dispatch = useDispatch();\r\n\tif(R.isNil(selectedEtablissement)){\r\n\t\treturn '';\r\n\t}\r\n\t\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Supprimer établissements
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Supprimer le établissement
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    Supprimer le {selectedEtablissement.name}?
    \r\n\t\t\t\t\t\t
    Ce établissement est sur le point d'être supprimé. Veuillez confirmer cette action.
    \r\n\t\t\t\t\t\t
    AVERTISSEMENT: cette action est irréversible.
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tisLoading.includes(Loadings.DELETING_ETABLISSEMENT) ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n}","import React, { useState, useEffect, useRef } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { Link, NavLink, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from 'ramda';\r\nimport $ from 'jquery';\r\n\r\nimport { GetEtablissementsByPartnerId, GetEtablissementsByPartnerIdDefault } from '../../../../actions/backoffice/partners';\r\n\r\nimport { EtablissementsTable } from './table';\r\nimport { AddPartnerEstablishment } from '../_common/AddPartnerEstablishment';\r\nimport { DeletePartnerEstablishment } from '../_common/DeletePartnerEstablishment';\r\n\r\nimport Establishments from './../../../../assets/images/svg/115-bank.svg';\r\nimport Emptylustration from './../../../../assets/images/svg/057-contract-1.svg';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/partners';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\n\r\n\r\nexport const PartnersEstablishment = ({ partner, isLoading, partnerState }) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet status = pageQuery.get('status');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\tstatus = R.isNil(status) ? \"\" : status;\r\n\tsortBy = R.isNil(sortBy) ? \"creationDate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst renderRef = useRef(false);\r\n\tconst [selectedEtablissement, setSelectedEtablissement] = useState(undefined);\r\n\tconst [etablissementStats, setEtablissementStats] = useState({ active: 0, inactive: 0, total: 0 });\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function getEtablissementDefault() {\r\n\t\t\ttry {\r\n\t\t\t\tconst allEtablissement = await GetEtablissementsByPartnerIdDefault(partner.id);\r\n\t\t\t\tconst totalStatusAmount = allEtablissement.items.reduce((acc, etabliss) => {\r\n\t\t\t\t\tetabliss.isEnabled ? acc.active++ : acc.inactive++;\r\n\t\t\t\t\treturn acc;\r\n\r\n\t\t\t\t}, { active: 0, inactive: 0 });\r\n\r\n\t\t\t\tsetEtablissementStats({ ...totalStatusAmount, total: allEtablissement.items.length });\r\n\r\n\t\t\t} catch (error) {\r\n\t\t\t\tthrow \"Error on loading all the Etablissements \";\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\tgetEtablissementDefault();\r\n\t}, [partner.etablissements]);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(`backoffice/partners/${partner.id}/etablissements`);\r\n\t\t\treturn;\r\n\r\n\t\t}\r\n\r\n\t\t//partnerId, pageNumber, searchTerm, isEnabledSearch, sortByTerm, sortDesc\r\n\t\tdispatch(GetEtablissementsByPartnerId(partner.id, page, search, status, sortBy, sortDesc));\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\t// if (pageSearch) {\r\n\t\t// \thistory.push(`/backoffice/partners/${partner.id}/etablissements?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t// \treturn;\r\n\r\n\t\t// } else {\r\n\t\t// \thistory.push(`/backoffice/partners/${partner.id}/etablissements?page=${1}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/partners/${partner.id}/etablissements?page=${1}${status !== \"\" ? \"&status=\" + status : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(GetEtablissementsByPartnerId(partner.id, page, search, status, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tstatus,\r\n\t};\r\n\r\n\tif (partnerState.isLoading.includes(Loadings.FETCHING_ETABLISSEMENTS) && R.isNil(partner.etablissements)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\tif (R.isNil(partner.etablissements)) {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t\"Assist@\"\r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Il n'y a pas d'établissements.

    \r\n\t\t\t\t\t

    Veuillez ajouter un nouvel établissement.

    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Detail partner

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\"Establishments\"\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    Nombre total

    \r\n\t\t\t\t\t\t\t\t\t\t\t\t

    {etablissementStats.total} Établissement

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Actifs

    \r\n\t\t\t\t\t\t\t\t\t\t

    {etablissementStats.active}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Inactifs

    \r\n\t\t\t\t\t\t\t\t\t\t

    {etablissementStats.inactive}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    setSelectedEtablissement(undefined)}>\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    ajouter un
    nouvel
    établissement

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t{/* {R.isNil(partner.etablissements) || partner.etablissements <= 0 ?\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Il n'y a pas d'établissements.

    \r\n\t\t\t\t\t\t\t

    Veuillez ajouter un nouvel établissement.

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t:\r\n\t\t\t\t\t\r\n\t\t\t\t} */}\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Route, Switch, Redirect, useParams, useLocation } from 'react-router';\r\nimport { GetEtablissementsByPartnerId, GetPartner, GetUsersByPartnerId } from '../../../actions/backoffice/partners';\r\nimport * as R from 'ramda';\r\nimport { DetailNav } from './_common/nav';\r\n\r\nimport { PartnersUsers } from './users';\r\nimport { PartnersEstablishment } from './establishment';\r\nimport { useDispatch } from 'react-redux';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/partners';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\n\r\nexport const PartnersDetail = ({ user, isLoading, partnerState }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst { partnerId } = useParams();\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(GetPartner(partnerId));\r\n\t}, []);\r\n\r\n\r\n\r\n\tif (partnerState.isLoading.includes(Loadings.FETCHING_PARTNER)) {\r\n\t\treturn ;\r\n\t}\r\n\r\n\tif (R.isNil(partnerState.partner)) {\r\n\t\treturn '';\r\n\t}\r\n\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}} />\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};","import React, { Component, useEffect, useRef, useState } from 'react';\r\nimport { Route, Switch, Redirect, useLocation, useHistory } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { LoadingState } from '../../_common/loadingState';\r\nimport * as Loadings from '../../constants/loadings/backoffice/partners';\r\n\r\nimport * as R from 'ramda';\r\n\r\nimport { PartnersMain } from './main';\r\nimport { PartnersDetail } from './detail';\r\n\r\nimport { GetPartners } from '../../actions/backoffice/partners';\r\n\r\n\r\nexport const Partners = ({ user }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst partnersReducer = useSelector(state => state.partnersReducer);\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t {\r\n\t\t\t\treturn ;\r\n\t\t\t}} />\r\n\t\t\r\n\t);\r\n\r\n};","import { EndPoints } from '../../api-config';\r\nimport * as R from 'ramda';\r\nimport { pageLimit } from '../../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\n//&pagesize=${pageLimit}&pagenumber=${parseInt(page) - 1}\r\nexport const clientsInvoicesUrl = (pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/BackOffice/invoices/user?pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&search=' + searchTerm : \"\"}${status !== \"\" ? '&status=' + status : \"\"}${startDate !== \"\" ? '&from=' + startDate : \"\"}${endDate !== \"\" ? '&to=' + endDate : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`;\r\nexport const partnersInvoicesUrl = (pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/BackOffice/invoices/etablissement?pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&search=' + searchTerm : \"\"}${status !== \"\" ? '&status=' + status : \"\"}${startDate !== \"\" ? '&from=' + startDate : \"\"}${endDate !== \"\" ? '&to=' + endDate : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`;\r\n\r\nexport const allClientsInvoicesUrl = () => `${SERVER_ADDR_V1}/BackOffice/invoices/user`;\r\nexport const allPartnersInvoicesUrl = () => `${SERVER_ADDR_V1}/BackOffice/invoices/etablissement`;\r\n\r\nexport const partnersInvoicesLinesUrl = (invoiceId) => `${SERVER_ADDR_V1}/Invoices/${invoiceId}/lines`;\r\n\r\nexport const markpaidPartnersInvoicesUrl = (invoiceId) => `${SERVER_ADDR_V1}/BackOffice/invoices/${invoiceId}/invoices`;\r\n///BackOffice/invoices/{invoiceId}/invoices","import * as axios from 'axios';\r\nimport * as PaymentActionTypes from '../../constants/actiontypes/backoffice/payments';\r\nimport * as paymentUrl from '../../constants/webapi/backoffice/payments';\r\nimport { getAuthenticationUrl } from '../../constants/webapi/auth';\r\n\r\n\r\n\r\n\r\n// get Clients invoices\r\nexport function fetchClientsInvoices(pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc) {\r\n pageNumber -= 1;\r\n\r\n return (dispatch) => {\r\n dispatch({ type: PaymentActionTypes.FETCH_CLIENTS_INVOICES_REQUEST });\r\n return axios.get(paymentUrl.clientsInvoicesUrl(pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc))\r\n .then((response) => {\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_CLIENTS_INVOICES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_CLIENTS_INVOICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n// export function fetchAllClientsInvoices() {\r\n// return (dispatch) => {\r\n// dispatch({ type: PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_REQUEST });\r\n// return axios.get(paymentUrl.allClientsInvoicesUrl())\r\n// .then((response) => {\r\n// dispatch({\r\n// type: PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_SUCCESS,\r\n// data: response.data\r\n// });\r\n// })\r\n// .catch((error) => {\r\n\r\n// if (error.response !== undefined && error.response.status === 401) {\r\n// window.location = getAuthenticationUrl();\r\n// return;\r\n// }\r\n// dispatch({\r\n// type: PaymentActionTypes.FETCH_ALL_CLIENTS_INVOICES_FAILURE,\r\n// response: error.response\r\n// });\r\n// throw error.statusText;\r\n// });\r\n// };\r\n// }\r\nexport function fetchAllClientsInvoices() {\r\n\r\n return new Promise((resolve, reject) => {\r\n axios.get(paymentUrl.allClientsInvoicesUrl())\r\n .then((response) => {\r\n resolve(response.data);\r\n })\r\n .catch((error) => {\r\n reject(error);\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n\r\n throw error.statusText;\r\n });\r\n });\r\n\r\n}\r\n\r\nexport function fetchPartnersInvoices(pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc) {\r\n\r\n pageNumber -= 1;\r\n\r\n return (dispatch) => {\r\n dispatch({ type: PaymentActionTypes.FETCH_PARTNERS_INVOICES_REQUEST });\r\n return axios.get(paymentUrl.partnersInvoicesUrl(pageNumber, searchTerm, status, startDate, endDate, sortByTerm, sortDesc))\r\n .then((response) => {\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_PARTNERS_INVOICES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_PARTNERS_INVOICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n// export function fetchaAllPartnersInvoices() {\r\n// return (dispatch) => {\r\n// dispatch({ type: PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_REQUEST });\r\n// return axios.get(paymentUrl.allPartnersInvoicesUrl())\r\n// .then((response) => {\r\n// dispatch({\r\n// type: PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_SUCCESS,\r\n// data: response.data\r\n// });\r\n// })\r\n// .catch((error) => {\r\n\r\n// if (error.response !== undefined && error.response.status === 401) {\r\n// window.location = getAuthenticationUrl();\r\n// return;\r\n// }\r\n// dispatch({\r\n// type: PaymentActionTypes.FETCH_ALL_PARTNERS_INVOICES_FAILURE,\r\n// response: error.response\r\n// });\r\n// throw error.statusText;\r\n// });\r\n// };\r\n// }\r\nexport function fetchaAllPartnersInvoices() {\r\n\r\n return new Promise((resolve, reject) => {\r\n axios.get(paymentUrl.allPartnersInvoicesUrl())\r\n .then((response) => {\r\n resolve(response.data);\r\n })\r\n .catch((error) => {\r\n reject(error);\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n\r\n throw error.statusText;\r\n });\r\n });\r\n}\r\n\r\nexport function markPartnersInvoicesPaid(partner) {\r\n return (dispatch) => {\r\n dispatch({ type: PaymentActionTypes.MARKPAID_PARTNER_INVOICE_REQUEST });\r\n return axios.put(paymentUrl.markpaidPartnersInvoicesUrl(partner.id), { ...partner })\r\n .then((response) => {\r\n dispatch({\r\n type: PaymentActionTypes.MARKPAID_PARTNER_INVOICE_SUCCESS,\r\n data: response.data,\r\n partnerId: partner.id\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PaymentActionTypes.MARKPAID_PARTNER_INVOICE_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function fetchInvoiceLines(invoiceId) {\r\n return (dispatch) => {\r\n dispatch({ type: PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_REQUEST });\r\n return axios.get(paymentUrl.partnersInvoicesLinesUrl(invoiceId))\r\n .then((response) => {\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_SUCCESS,\r\n data: response.data\r\n });\r\n })\r\n .catch((error) => {\r\n\r\n if (error.response !== undefined && error.response.status === 401) {\r\n window.location = getAuthenticationUrl();\r\n return;\r\n }\r\n dispatch({\r\n type: PaymentActionTypes.FETCH_PARTNER_INVOICE_LINES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}","import React, { useEffect, useMemo, useState } from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\n\r\nimport money from './../../../assets/images/svg/109-money.svg';\r\nimport files from './../../../assets/images/svg/101-file.svg';\r\nimport { fetchaAllPartnersInvoices, fetchAllClientsInvoices } from '../../../actions/backoffice/payments';\r\n\r\nexport const PaiementHeader = ({ paymentState }) => {\r\n\r\n\tconst [totalClientToPay, setTotalClientToPay] = useState(0);\r\n\tconst [totalPartnersToPay, setTotalPartnersToPay] = useState(0);\r\n\tconst [totalClientAmount, setTotalClientAmount] = useState(0);\r\n\tconst [totalPartnersAmount, setTotalPartnersAmount] = useState(0);\r\n\tconst status = [\"new\", \"retry3\", \"retry7\", \"tobepaid\"];\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function fetchPartners() {\r\n\t\t\tconst allPartnerInvoices = await fetchaAllPartnersInvoices();\r\n\t\t\tconst partnersToPay = !R.isEmpty(allPartnerInvoices.items) ? allPartnerInvoices.items.reduce((a, i) => { a += status.includes(i.status) && i.amount > 0 ? 1 : 0; return a; }, 0) : 0;\r\n\t\t\tconst partnersAmount = !R.isEmpty(allPartnerInvoices.items) ? allPartnerInvoices.items.reduce((a, i) => { a += i.amount; return a; }, 0) : 0;\r\n\t\t\tsetTotalPartnersToPay(partnersToPay);\r\n\t\t\tsetTotalPartnersAmount(partnersAmount);\r\n\t\t}\r\n\t\tfetchPartners();\r\n\t}, [paymentState.partnersInvoices]);\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function fetchClients() {\r\n\t\t\tconst allClientsInvoices = await fetchAllClientsInvoices();\r\n\t\t\tconst clientsToPay = !R.isEmpty(allClientsInvoices.items) ? allClientsInvoices.items.reduce((a, i) => { a += status.includes(i.status) && i.amount > 0 ? 1 : 0; return a; }, 0) : 0;\r\n\t\t\tconst clientsAmount = !R.isEmpty(allClientsInvoices.items) ? allClientsInvoices.items.reduce((a, i) => { a += i.amount; return a; }, 0) : 0;;\r\n\t\t\tsetTotalClientToPay(clientsToPay);\r\n\t\t\tsetTotalClientAmount(clientsAmount);\r\n\t\t}\r\n\t\tfetchClients();\r\n\t}, [paymentState.clientsInvoices]);\r\n\r\n\r\n\r\n\t// const totalClientToPay = useMemo(() => paymentState.clients ? paymentState.clients.filter(i => i.paid).length : 0, [paymentState.clients]);\r\n\t// const totalClientAmount = useMemo(() => paymentState.clients ? paymentState.clients.reduce((a, i) => { a += i.amount; return a; }, 0) : 0, [paymentState.clients]);\r\n\r\n\t// const totalPartnersToPay = useMemo(() => paymentState.partners ? paymentState.partners.reduce((a, i) => { a += !i.paid && i.amount > 0 ? 1 : 0; return a; }, 0) : 0, [paymentState.partners]);\r\n\t// const totalPartnersAmount = useMemo(() => paymentState.partners ? paymentState.partners.reduce((a, i) => { a += i.amount; return a; }, 0) : 0, [paymentState.partners]);\r\n\r\n\tconst options = { style: 'currency', currency: 'EUR' };\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\"money\"\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    en Paiement

    \r\n\t\t\t\t\t\t\t\t

    {totalClientToPay + totalPartnersToPay} factures

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\"file\"\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Clients

    \r\n\t\t\t\t\t\t\t\t

    {new Intl.NumberFormat('fr-FR', options).format(totalClientAmount)}

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Partenaire

    \r\n\t\t\t\t\t\t\t\t

    {new Intl.NumberFormat('fr-FR', options).format(totalPartnersAmount)}

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useRef } from 'react';\r\nimport $ from 'jquery';\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport * as R from \"ramda\";\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\n\r\n\r\nexport const PaiementClientsTableFilter = ({ filters, setFilters, pageSearch, setPageSearch, date, setDate, routerQuery }) => {\r\n const statusOptions = { all: \"Tous les États\", paid: \"Payé\", toPay: \"En attente de Paiement\" };\r\n\r\n const inputRef = useRef();\r\n useEffect(() => {\r\n if (routerQuery.search) {\r\n inputRef.current.focus();\r\n }\r\n\r\n }, []);\r\n\r\n useEffect(() => {\r\n const filterForm = document.querySelector(\"#filterForm\");\r\n const handleClick = (e) => {\r\n if (e.target.type === \"button\") {\r\n e.target.parentElement.classList.remove(\"show\");\r\n }\r\n };\r\n\r\n const filterFormEvent = filterForm.addEventListener(\"click\", handleClick);\r\n return () => filterForm.removeEventListener(\"click\", handleClick);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n return (\r\n \r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\n\r\n\r\nexport const PaiementClientTableNav = ({ filters, setFilters, paymentState, routerQuery }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\n\r\n\r\n\r\nexport const PaiementClientTableRow = ({ invoice}) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    {invoice.number}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {invoice.recipientName}
    \r\n
    \r\n {/*
    \r\n
    type utilisateur
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n
    {new Intl.DateTimeFormat('fr-FR').format(invoice.created)}
    \r\n
    \r\n
    \r\n
    {new Intl.NumberFormat('fr-FR', { style: 'currency', currency: 'EUR' }).format(invoice.amount)}
    \r\n
    \r\n {/*
    \r\n
    Partenaire
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n { !invoice.paid ?\r\n
    \r\n {\r\n (() => {\r\n switch(invoice.status){\r\n case \"new\":\r\n case \"retry3\":\r\n case \"retry7\":\r\n return
    en Paiement
    ;\r\n\r\n case \"canceled\":\r\n return
    Annulé
    ;\r\n \r\n case \"unpaid\":\r\n return
    Echoué
    ;\r\n\r\n default:\r\n return
    Inconnu
    ;\r\n }\r\n\r\n })()\r\n }\r\n \r\n {/* \r\n \r\n */}\r\n {/* */}\r\n {/* */}\r\n {/* Voir la facture */}\r\n
    \r\n :\r\n
    \r\n
    Paiement effectué
    \r\n \r\n \r\n \r\n {/* \r\n */}\r\n
    \r\n }\r\n
    \r\n
    \r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\n\r\nimport Emptylustration from '../../../../assets/images/svg/057-contract-1.svg';\r\n\r\nimport { PaiementClientsTableFilter } from './filter';\r\nimport { PaiementClientTableNav } from './nav';\r\nimport { PaiementClientTableRow } from './row';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/payments';\r\n\r\n\r\n\r\nexport const PaiementClientTable = ({ paymentState, pageSearch, setPageSearch, date, setDate, routerQuery }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const [invoicesToDisplay, setinvoicesToDisplay] = useState(paymentState.clientsInvoices);\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"number\",\r\n asc: true\r\n },\r\n status: undefined,\r\n date: {\r\n startDate: undefined,\r\n endDate: undefined\r\n },\r\n search: \"\",\r\n });\r\n\r\n\r\n useEffect(() => {\r\n\r\n\r\n\r\n let temp = paymentState.clientsInvoices;\r\n\r\n // if (!R.isNil(filters.status)) {\r\n // temp = temp.filter(client => client.paid === filters.status);\r\n // }\r\n\r\n // if (filters.order.asc) {\r\n\r\n // temp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n // } else {\r\n\r\n // temp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n // }\r\n\r\n // if (!R.isNil(filters.date.startDate)) {\r\n // temp = temp.filter(invoice => invoice.created >= filters.date.startDate);\r\n // }\r\n\r\n // if (!R.isNil(filters.date.endDate)) {\r\n // temp = temp.filter(invoice => invoice.created <= filters.date.endDate);\r\n // }\r\n\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(invoice => invoice.number?.toLowerCase().includes(filters.search.toLowerCase()) || invoice.recipientName?.toLowerCase().includes(filters.search.toLowerCase()));\r\n // }\r\n\r\n\r\n setinvoicesToDisplay(temp);\r\n\r\n\r\n }, [filters, paymentState.clientsInvoices]);\r\n\r\n\r\n return (\r\n
    \r\n \r\n {\r\n paymentState.isLoading.includes(Loadings.FETCHING_CLIENTS_INVOICES) ?\r\n \r\n :\r\n
    \r\n {!R.isEmpty(invoicesToDisplay) ?\r\n <>\r\n \r\n {\r\n invoicesToDisplay.map(invoice => (\r\n \r\n ))\r\n }\r\n \r\n :\r\n
    \r\n \"Assist@\"\r\n
    \r\n

    Il n'y a pas de factures.

    \r\n
    \r\n
    \r\n }\r\n
    \r\n }\r\n\r\n
    \r\n );\r\n};","import React, { useEffect, useState, useRef } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from \"ramda\";\r\nimport $ from 'jquery';\r\n\r\nimport Emptylustration from '../../../assets/images/svg/057-contract-1.svg';\r\nimport { PaiementClientTable } from './table';\r\nimport { fetchClientsInvoices } from '../../../actions/backoffice/payments';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/payments';\r\n\r\n\r\nexport const PaiementClients = ({ paymentState }) => {\r\n\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet status = pageQuery.get('status');\r\n\tlet startDate = pageQuery.get('startDate');\r\n\tlet endDate = pageQuery.get('endDate');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\tstatus = R.isNil(status) ? \"\" : status;\r\n\tstartDate = R.isNil(startDate) ? \"\" : startDate;\r\n\tendDate = R.isNil(endDate) ? \"\" : endDate;\r\n\tsortBy = R.isNil(sortBy) ? \"creationdate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [date, setDate] = useState({\r\n\t\tstartDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n\t\tendDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n\t});\r\n\r\n\tconst renderRef = useRef(false);\r\n\tconst renderDateRef = useRef(false);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/backoffice/paiement\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//pageNumber, searchTerm, sortByTerm, sortDesc\r\n\t\tdispatch(fetchClientsInvoices(page, search, status, startDate, endDate, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/paiement?page=${1}${status !== \"\" ? \"&status=\" + status : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(fetchClientsInvoices(page, pageSearch, status, startDate, endDate, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderDateRef.current) {\r\n\t\t\trenderDateRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else {\r\n\t\t\thistory.push(`/backoffice/paiement?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}`);\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [date]);\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\tstatus,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tendDate,\r\n\t\tstartDate,\r\n\t\tdate\r\n\t};\r\n\r\n\r\n\r\n\tif (paymentState.isLoading.includes(Loadings.FETCHING_CLIENTS_INVOICES) && R.isNil(paymentState.clientsInvoices)) { return ; }\r\n\tif (R.isNil(paymentState.clientsInvoices)) {\r\n\t\treturn (
    \r\n\t\t\t\"Assist@\"\r\n\t\t\t
    \r\n\t\t\t\t

    Il n'y a pas de factures.

    \r\n\t\t\t
    \r\n\t\t
    );\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\n\r\nexport const PaySummaryHeader = ({ title, id, collapse, setCollapse }) => {\r\n\r\n\r\n\r\n return (\r\n
    \r\n

    {\"Paiement\"}

    \r\n \r\n
    \r\n );\r\n};","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\n\r\nexport const PaySummaryNav = ({ id, collapse, filters, setFilters }) => {\r\n\r\n\r\n\r\n return (\r\n \r\n );\r\n};","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\n\r\nexport const PaySummaryRow = ({ quantity, currentPrice, totalPrice, product }) => {\r\n\r\n const options = { style: 'currency', currency: 'EUR' };\r\n\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    {product}
    \r\n
    \r\n
    \r\n
    {quantity}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    {new Intl.NumberFormat('fr-FR', options).format(currentPrice)}
    \r\n
    \r\n {/*
    \r\n
    {new Intl.NumberFormat('fr-FR', options).format((commission * basePrice) / 100)}
    \r\n
    */}\r\n
    \r\n
    {new Intl.NumberFormat('fr-FR', options).format(totalPrice)}
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};","\r\nimport React, { useEffect, useMemo, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport { PaySummaryHeader } from './header';\r\nimport { PaySummaryNav } from './nav';\r\nimport { PaySummaryRow } from './row';\r\n\r\n\r\nexport const PaySummaryTable = ({ title, id, invoiceLines }) => {\r\n\r\n\r\n const [linesToDisplay, setLinesToDisplay] = useState([]);\r\n const [collapse, setCollapse] = useState(true);\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"number\",\r\n asc: true\r\n },\r\n\r\n });\r\n\r\n const invoiceSum = useMemo(() => invoiceLines.reduce((acc, line) => { acc += line.totalPrice; return acc; }, 0), [invoiceLines]);\r\n const options = { style: 'currency', currency: 'EUR' };\r\n useEffect(() => {\r\n\r\n\r\n let temp = invoiceLines.filter(i => i.totalPrice !== 0);\r\n\r\n if (filters.order.asc) {\r\n\r\n temp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n } else {\r\n\r\n temp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n }\r\n\r\n setLinesToDisplay(temp);\r\n\r\n\r\n }, [filters, invoiceLines]);\r\n\r\n\r\n\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n {\r\n linesToDisplay.map((line, i) => ())\r\n }\r\n
    \r\n
    \r\n
    \r\n

    Total

    \r\n

    {new Intl.NumberFormat('fr-FR', options).format(invoiceSum)}

    \r\n
    \r\n
    \r\n );\r\n};","\r\nimport React, { useEffect, useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\n\r\nimport * as PaymentLoadings from '../../../../constants/loadings/backoffice/payments';\r\nimport { PaySummaryTable } from './table';\r\n\r\n\r\nexport const PaySummary = ({ paymentState }) => {\r\n\r\n\tconst options = { style: 'currency', currency: 'EUR' };\r\n\t// const [invoiceLinesToPay, setinvoiceLinesToPay] = useState(paymentState.partnerInvoiceLines ? paymentState.partnerInvoiceLines.filter(line => line.billedByPartner === true) : []);\r\n\t// const [invoiceLinesToBill, setinvoiceLinesToBill] = useState(paymentState.partnerInvoiceLines ? paymentState.partnerInvoiceLines.filter(line => !line.billedByPartner) : []);\r\n\tconst [invoiceLinesToDisplay, setInvoiceLinesToDisplay] = useState(paymentState.partnerInvoiceLines ? paymentState.partnerInvoiceLines : []);\r\n\tconst [totalLinesAmount, setTotalLinesAmount] = useState(paymentState.partnerInvoiceLines ? paymentState.partnerInvoiceLines.reduce((acc, line) => { acc += line.totalPrice; return acc; }, 0) : 0);\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!R.isNil(paymentState.partnerInvoiceLines)) {\r\n\t\t\t// setinvoiceLinesToPay(paymentState.partnerInvoiceLines.filter(line => line.billedByPartner));\r\n\t\t\t// setinvoiceLinesToBill(paymentState.partnerInvoiceLines.filter(line => !line.billedByPartner));\r\n\t\t\tsetInvoiceLinesToDisplay(paymentState.partnerInvoiceLines);\r\n\t\t\tsetTotalLinesAmount(paymentState.partnerInvoiceLines.reduce((acc, line) => { acc += line.totalPrice; return acc; }, 0));\r\n\r\n\t\t}\r\n\t}, [paymentState.partnerInvoiceLines]);\r\n\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Payment summary

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Information du paiement
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    Ci-dessous les lignes associées à ce paiement.

    \r\n\t\t\t\t\t\t
    Partenaire: Nom du partneaireÉtablissement: Nom d'établissement
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    A Payer

    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Initial
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    9
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Recurrent
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    69
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Total

    \r\n\t\t\t\t\t\t\t\t\t

    266,33 €

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    A Facturer

    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Initial
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    9
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Recurrent
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    69
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    formatAmount(invoice.amount) €
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t

    Total

    \r\n\t\t\t\t\t\t\t\t\t

    266,33 €

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t{/* {!paymentState.isLoading.includes(PaymentLoadings.FETCHING_PARTNER_LINES) ?\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t{!R.isEmpty(invoiceLinesToPay) && }\r\n\t\t\t\t\t\t\t\t\t{!R.isEmpty(invoiceLinesToBill) && }\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Revelé

    \r\n\t\t\t\t\t\t\t\t\t\t

    {new Intl.NumberFormat('fr-FR', options).format(totalLinesAmount)}

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
    Loading...
    \r\n\t\t\t\t\t\t\t} */}\r\n\t\t\t\t\t\t\t{!paymentState.isLoading.includes(PaymentLoadings.FETCHING_PARTNER_LINES) ?\r\n\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t{}\r\n\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t

    Revelé

    \r\n\t\t\t\t\t\t\t\t\t\t

    {new Intl.NumberFormat('fr-FR', options).format(totalLinesAmount)}

    \r\n\t\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t
    Loading...
    \r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import React, { useEffect, useRef } from 'react';\r\nimport $ from 'jquery';\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport * as R from \"ramda\";\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\n\r\nexport const PaiementPartnersTableFilter = ({ filters, setFilters, pageSearch, setPageSearch, date, setDate, routerQuery }) => {\r\n\r\n\r\n\r\n const inputRef = useRef();\r\n useEffect(() => {\r\n if (routerQuery.search) {\r\n inputRef.current.focus();\r\n }\r\n\r\n }, []);\r\n\r\n useEffect(() => {\r\n const filterForm = document.querySelector(\"#filterForm\");\r\n const handleClick = (e) => {\r\n if (e.target.type === \"button\") {\r\n e.target.parentElement.classList.remove(\"show\");\r\n }\r\n };\r\n\r\n const filterFormEvent = filterForm.addEventListener(\"click\", handleClick);\r\n return () => filterForm.removeEventListener(\"click\", handleClick);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n function getStartDate(dateCalendar) { setDate({ ...date, startDate: dateCalendar }); }\r\n function getEndDate(dateCalendar) { setDate({ ...date, endDate: dateCalendar }); }\r\n\r\n return (\r\n \r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport { Link } from 'react-router-dom';\r\n\r\n\r\n\r\nexport const PaiementPartnersTableNav = ({ filters, setFilters, paymentState, routerQuery }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n return (\r\n \r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\n\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { fetchInvoiceLines, markPartnersInvoicesPaid } from '../../../../actions/backoffice/payments';\r\nimport { useDispatch } from 'react-redux';\r\n\r\n\r\n\r\nexport const PaiementPartnersTableRow = ({ amount, created, recipientType, paid, invoiceId, partnerName, etablissementName, pdfUrl, issuerId, isDueToAssista }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const dispatch = useDispatch();\r\n const options = { style: 'currency', currency: 'EUR' };\r\n\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    {partnerName}
    \r\n
    \r\n
    \r\n {/*
    {recipientType === \"Etablissement\" ? etablissementName : \"\"}
    */}\r\n
    {!R.isNil(etablissementName) ? etablissementName : \"\"}
    \r\n
    \r\n
    \r\n
    {new Intl.DateTimeFormat('fr-FR').format(created)}
    \r\n
    \r\n
    \r\n
    {isDueToAssista ? \"\" : new Intl.NumberFormat('fr-FR', options).format(amount / 1.2)}
    \r\n
    \r\n
    \r\n
    {isDueToAssista ? new Intl.NumberFormat('fr-FR', options).format(amount) : \"\"}
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {paid ?\r\n
    \r\n
    Paiement effectué
    \r\n \r\n
    \r\n \r\n
    \r\n {/* */}\r\n {/*
    */}\r\n Voir la facture\r\n
    \r\n
    \r\n
    \r\n :\r\n
    \r\n
    Impayé
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n {/*
    */}\r\n Voir la facture\r\n
    \r\n
    \r\n
    \r\n }\r\n
    \r\n
    \r\n\r\n\r\n );\r\n};\r\n\r\n\r\n\r\n\r\n\r\n{/*
    \r\n
    \r\n
    \r\n
    Résidentiel Euro
    \r\n
    \r\n
    \r\n
    Résidentiel Euro
    \r\n
    \r\n
    \r\n
    08/2021
    \r\n
    \r\n
    \r\n
    formatAmount(invoice.amount) €
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    Impayé
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Résidentiel Euro
    \r\n//
    \r\n//
    \r\n//
    Paris
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Impayé
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Résidentiel Euro
    \r\n//
    \r\n//
    \r\n//
    Lion
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Impayé
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Agences Funéraires
    \r\n//
    \r\n//
    \r\n//
    Agences Funéraires
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n// {true ?\r\n//
    \r\n//
    Paiement effectué
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n// :\r\n//
    \r\n//
    Impayé
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n// }\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Agences Funéraires
    \r\n//
    \r\n//
    \r\n//
    Paris
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Impayé
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Agences Funéraires
    \r\n//
    \r\n//
    \r\n//
    Lion
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Impayé
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Agences Funéraires
    \r\n//
    \r\n//
    \r\n//
    Nice
    \r\n//
    \r\n//
    \r\n//
    08/2021
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    formatAmount(invoice.amount) €
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    Paiement effectué
    \r\n// \r\n//
    \r\n// \r\n//
    \r\n// \r\n// {/*
    */}\r\n// Voir la facture\r\n//
    \r\n//
    \r\n//
    \r\n//
    \r\n//
    */}","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\n\r\nimport Emptylustration from '../../../../assets/images/svg/057-contract-1.svg';\r\n\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { PaiementPartnersTableFilter } from './filter';\r\nimport { PaiementPartnersTableNav } from './nav';\r\nimport { PaiementPartnersTableRow } from './row';\r\nimport { LoadingState } from '../../../../_common/loadingState';\r\nimport * as Loadings from '../../../../constants/loadings/backoffice/payments';\r\n\r\n\r\n\r\nexport const PaiementPartnersTable = ({ paymentState, pageSearch, setPageSearch, date, setDate, routerQuery }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n const [invoicesToDisplay, setinvoicesToDisplay] = useState(paymentState.partnersInvoices);\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"number\",\r\n asc: true\r\n },\r\n status: undefined,\r\n date: {\r\n startDate: undefined,\r\n endDate: undefined\r\n },\r\n search: \"\",\r\n });\r\n\r\n\r\n useEffect(() => {\r\n\r\n\r\n\r\n let temp = paymentState.partnersInvoices.filter(i => i.amount !== 0);\r\n // let temp = paymentState.partnersInvoices;\r\n\r\n // if (!R.isNil(filters.status)) {\r\n // temp = temp.filter(partner => partner.paid === filters.status);\r\n // }\r\n\r\n // if (filters.order.asc) {\r\n\r\n // temp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n // } else {\r\n\r\n // temp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n // }\r\n\r\n // if (!R.isNil(filters.date.startDate)) {\r\n // temp = temp.filter(invoice => invoice.created >= filters.date.startDate);\r\n // }\r\n\r\n // if (!R.isNil(filters.date.endDate)) {\r\n // temp = temp.filter(invoice => invoice.created <= filters.date.endDate);\r\n // }\r\n\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(invoice => invoice.partnerName?.toLowerCase().includes(filters.search.toLowerCase()) || invoice.etablissementName?.toLowerCase().includes(filters.search.toLowerCase()));\r\n // }\r\n\r\n\r\n setinvoicesToDisplay(temp);\r\n\r\n\r\n }, [filters, paymentState.partnersInvoices]);\r\n\r\n return (\r\n
    \r\n \r\n {\r\n paymentState.isLoading.includes(Loadings.FETCHING_PARTNERS_INVOICES) ?\r\n \r\n :\r\n
    \r\n {!R.isEmpty(invoicesToDisplay) ?\r\n <>\r\n \r\n {invoicesToDisplay.map(invoice => (\r\n \r\n ))}\r\n \r\n :\r\n
    \r\n \"Assist@\"\r\n
    \r\n

    Il n'y a pas de factures.

    \r\n
    \r\n
    \r\n }\r\n
    }\r\n
    \r\n );\r\n};","import React, { useEffect, useState, useRef } from 'react';\r\nimport { Link, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from \"ramda\";\r\nimport $ from 'jquery';\r\n\r\nimport { PaySummary } from './../_common/paySummary';\r\nimport Emptylustration from '../../../assets/images/svg/057-contract-1.svg';\r\n\r\nimport { PaiementPartnersTable } from './table';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/payments';\r\nimport { useDispatch } from 'react-redux';\r\nimport { fetchPartnersInvoices } from '../../../actions/backoffice/payments';\r\n\r\n\r\nexport const PaiementPartners = ({ paymentState }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst searchQuery = useLocation();\r\n\tconst history = useHistory();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet page = pageQuery.get('page');\r\n\tlet search = pageQuery.get('search');\r\n\tlet status = pageQuery.get('status');\r\n\tlet startDate = pageQuery.get('startDate');\r\n\tlet endDate = pageQuery.get('endDate');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsearch = R.isNil(search) ? \"\" : search;\r\n\tstatus = R.isNil(status) ? \"\" : status;\r\n\tstartDate = R.isNil(startDate) ? \"\" : startDate;\r\n\tendDate = R.isNil(endDate) ? \"\" : endDate;\r\n\tsortBy = R.isNil(sortBy) ? \"creationdate\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"true\" : sortDesc;\r\n\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst [date, setDate] = useState({\r\n\t\tstartDate: !R.isEmpty(startDate) ? new Date(startDate) : undefined,\r\n\t\tendDate: !R.isEmpty(endDate) ? new Date(endDate) : undefined\r\n\t});\r\n\r\n\tconst renderRef = useRef(false);\r\n\tconst renderDateRef = useRef(false);\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/backoffice/paiement/partners\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//pageNumber, searchTerm, sortByTerm, sortDesc\r\n\t\tdispatch(fetchPartnersInvoices(page, search, status, startDate, endDate, sortBy, sortDesc));\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/paiement/partners?page=${1}${status !== \"\" ? \"&status=\" + status : \"\"}${startDate !== \"\" ? \"&startDate=\" + startDate : \"\"}${endDate !== \"\" ? \"&endDate=\" + endDate : \"\"}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(fetchPartnersInvoices(page, pageSearch, status, startDate, endDate, sortBy, sortDesc));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderDateRef.current) {\r\n\t\t\trenderDateRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (!R.isEmpty(date.startDate) && !R.isNil(date.startDate) && !R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement/partners?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isEmpty(date.startDate) && !R.isNil(date.startDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement/partners?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&startDate=\" + (date.startDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else if (!R.isNil(date.endDate) && !R.isEmpty(date.endDate)) {\r\n\t\t\thistory.push(`/backoffice/paiement/partners?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}${\"&endDate=\" + (date.endDate.toISOString().slice(0, 10))}${sortBy !== \"\" ? \"&sortBy=\" + sortBy : \"\"}${sortDesc === \"false\" ? \"&sortDesc=false\" : \"&sortDesc=true\"}`);\r\n\t\t\treturn;\r\n\r\n\t\t} else {\r\n\t\t\thistory.push(`/backoffice/paiement/partners?page=${1}${pageSearch !== \"\" ? \"&search=\" + pageSearch : \"\"}${status !== \"\" ? \"&status=\" + status : \"\"}`);\r\n\t\t}\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [date]);\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\tstatus,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tendDate,\r\n\t\tstartDate,\r\n\t\tdate\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\r\n\tif (paymentState.isLoading.includes(Loadings.FETCHING_PARTNERS_INVOICES) && R.isNil(paymentState.partnersInvoices)) { return ; }\r\n\tif (R.isNil(paymentState.partnersInvoices)) {\r\n\t\treturn (
    \r\n\t\t\t\"Assist@\"\r\n\t\t\t
    \r\n\t\t\t\t

    Il n'y a pas de factures.

    \r\n\t\t\t
    \r\n\t\t
    );\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { Component, useEffect, useRef, useState } from 'react';\r\nimport { connect } from 'react-redux';\r\nimport * as R from \"ramda\";\r\nimport { Route, Switch, Redirect, useLocation } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport { fetchaAllPartnersInvoices, fetchAllClientsInvoices, fetchClientsInvoices, fetchPartnersInvoices } from '../../actions/backoffice/payments';\r\nimport * as Loadings from '../../constants/loadings/backoffice/payments';\r\nimport { LoadingState } from '../../_common/loadingState';\r\n\r\nimport { PaiementHeader } from './_common/header';\r\nimport { PaiementClients } from './clients';\r\nimport { PaiementPartners } from './partners';\r\n\r\nexport const Paiement = () => {\r\n\r\n\tconst paymentState = useSelector(state => state.paymentReducer);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}} />\r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n\r\n};\r\n\r\n","import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nclass addUser extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Add user

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    ajouter un nouveau utilisateur
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Vous pouvez ajouter un nouvel utilisateur à n'importe quel fichier Facilita. Choisissez le dossier et ajoutez les données du nouveau référent.

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(addUser);","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as R from 'ramda';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\n\r\n\r\nimport { RegexFields } from '../../../constants/utils/regexFields';\r\nimport * as Loadings from '../../../constants/loadings/auth';\r\nimport { registerUser, resetAuth, sendOTPCode, verifyOTPCode } from '../../../actions/auth-api';\r\nimport { resetUser, updateUserSecurity, changePhoneNumber, updateUser, deleteUser } from '../../../actions/user-api';\r\n\r\nimport { Header } from './../_common/header';\r\nimport { Profile } from './../../../_common/profile';\r\nimport { LoadingState } from '../../../_common/loadingState';\r\nimport { DeleteUser } from '../../_common/deleteUser';\r\n\r\n\r\nexport const SettingsProfil = ({ roles }) => {\r\n var countries = require(\"i18n-iso-countries\");\r\n countries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n const user = useSelector(state => state.user);\r\n const auth = useSelector(state => state.auth);\r\n const dispatch = useDispatch();\r\n\r\n //phone\r\n const [modifyNumber, setModifyNumber] = useState(false);\r\n const [ignoreTmp, setIgnoreTmp] = useState(false);\r\n const [isOnFocus, setIsOnFocus] = useState(false);\r\n const [tmpPhoneConfirmed, setTmpPhoneConfirmed] = useState(false);\r\n const [wasSendOnce, setWasSendOnce] = useState(false);\r\n\r\n //email\r\n const [passwordRequirements, setPasswordRequirements] = useState({ hasLower: false, hasUpper: false, hasDigits: false });\r\n const [wasValidated, setWasValidated] = useState(false);\r\n const [showCurrentPassword, setShowCurrentPassword] = useState(false);\r\n const [passwordsMatch, setPasswordsMatch] = useState(false);\r\n const [showConfPassword, setShowConfPassword] = useState(false);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n\r\n const codeRef = useRef(null);\r\n const formInfoRef = useRef(null);\r\n const credentialsForm = useRef(null);\r\n const securityForm = useRef(null);\r\n\r\n let parsedPhoneNumber = undefined;\r\n if (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber)) {\r\n parsedPhoneNumber = parsePhoneNumber(user.user.phoneNumber);\r\n }\r\n\r\n\r\n const [credentials, setCredentials] = useState({\r\n email: !R.isNil(user.user) && !R.isNil(user.user.email) ? user.user.email : '',\r\n currentPassword: '',\r\n password: '',\r\n confirmPassword: '',\r\n phoneNumber: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.nationalNumber,\r\n countryCode: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.countryCallingCode,\r\n phoneCountry: R.isNil(parsedPhoneNumber) ? '' : parsedPhoneNumber.country,\r\n });\r\n\r\n\r\n\r\n const [personalData, setPersonalData] = useState({\r\n gender: !R.isNil(user.user) && !R.isNil(user.user.gender) ? user.user.gender : undefined,\r\n firstName: !R.isNil(user.user) && !R.isNil(user.user.firstName) ? user.user.firstName : '',\r\n lastName: !R.isNil(user.user) && !R.isNil(user.user.lastName) ? user.user.lastName : '',\r\n birthDate: !R.isNil(user.user) && !R.isNil(user.user.birthDate) ? user.user.birthDate : undefined,\r\n birthPlace: !R.isNil(user.user) && !R.isNil(user.user.birthPlace) ? user.user.birthPlace : '',\r\n depNumber: !R.isNil(user.user) && !R.isNil(user.user.departmentNumber) ? user.user.departmentNumber : '',\r\n country: !R.isNil(user.user) && !R.isNil(user.user.country) && user.user.country !== '' ? user.user.country : 'FR'\r\n });\r\n\r\n const gender = { male: 'Male', female: 'Female' };\r\n const registerPage = false;\r\n let loggedIn = !R.isNil(user) && !R.isNil(user.user) && !R.isNil(user.user.phoneNumber) && user.user.phoneNumber !== '';\r\n let updatingNumber = loggedIn && modifyNumber === true;\r\n let phoneIsConfirmed = loggedIn ? (ignoreTmp ? auth.phoneConfirmed : true) : auth.phoneConfirmed === true;\r\n let numberIsSame = !(R.isNil(user.user) || R.isNil(user.user.phoneNumber) || (\"+\" + credentials.countryCode + credentials.phoneNumber.replace(/ /g, '')) !== user.user.phoneNumber);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(user.user) && !R.isNil(user.user.phoneNumber)) {\r\n setTmpPhoneConfirmed(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user.user]);\r\n\r\n useEffect(() => {\r\n if (auth.SMSWasSent === true && !R.isNil(codeRef) && !R.isNil(codeRef.current)) {\r\n setWasSendOnce(true);\r\n codeRef.current.focus();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [auth.SMSWasSent]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials)) {\r\n if (passwordsMatch === true && credentials.password !== credentials.confirmPassword) {\r\n setPasswordsMatch(false);\r\n }\r\n else if (passwordsMatch === false && credentials.password === credentials.confirmPassword) {\r\n setPasswordsMatch(true);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials]);\r\n\r\n useEffect(() => {\r\n if (!R.isNil(credentials) && !R.isNil(credentials.password)) {\r\n let hasUpper = !R.isNil(credentials.password.match(RegexFields.hasUpperCase));\r\n let hasLower = !R.isNil(credentials.password.match(RegexFields.hasLowerCase));\r\n let hasDigits = !R.isNil(credentials.password.match(RegexFields.hasDigits));\r\n setPasswordRequirements({ ...passwordRequirements, hasDigits: hasDigits, hasLower: hasLower, hasUpper: hasUpper });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [credentials]);\r\n\r\n\r\n\r\n function handleEnvoyerCode(e) {\r\n\r\n e.preventDefault();\r\n securityForm.current.classList.add('was-validated');\r\n\r\n const internationalPhoneNumber = parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry);\r\n if (!internationalPhoneNumber.isValid()) {\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"Le numéro de téléphone n'est pas valide.\");\r\n return;\r\n }\r\n\r\n if (!R.isNil(user.user) && !R.isNil(user.user.id)) {\r\n let userToUpdate = {\r\n id: user.user.id,\r\n newPhoneNumber: internationalPhoneNumber.number\r\n };\r\n dispatch(changePhoneNumber(userToUpdate));\r\n }\r\n else {\r\n dispatch(sendOTPCode(internationalPhoneNumber.number));\r\n }\r\n\r\n if (ignoreTmp === false) {\r\n setIgnoreTmp(true);\r\n }\r\n setModifyNumber(false);\r\n }\r\n\r\n\r\n function handleInfoForm(e) {\r\n e.preventDefault();\r\n const firstFormInputs = document.querySelectorAll(\"#firstForm input\");\r\n firstFormInputs.forEach(input => {\r\n input.removeAttribute('id', \"input-hide-icon\");\r\n });\r\n\r\n formInfoRef.current.classList.add('was-validated');\r\n\r\n let userToUpdateData = {\r\n id: user.user.id,\r\n gender: personalData.gender,\r\n firstName: personalData.firstName,\r\n lastName: personalData.lastName,\r\n birthDate: user.user.birthDate,\r\n birthPlace: user.user.birthPlace,\r\n departmentNumber: user.user.depNumber,\r\n country: user.user.country,\r\n civilStatus: user.user.civilStatus,\r\n hasChildren: user.user.hasChildren,\r\n professionalSituation: user.user.professionalSituation.join(','),\r\n // phoneNumber: asset.mobile,\r\n //processNumber: user.user.processNumber\r\n };\r\n\r\n if (formInfoRef.current.checkValidity() && (credentials.password !== '' && credentials.confirmPassword !== '' && passwordsMatch === true)) {\r\n\r\n let userToUpdateSecurity = {\r\n id: user.user.id,\r\n currentPassword: null,\r\n newPassword: null,\r\n newEmail: null,\r\n newPhoneNumber: null,\r\n otpCode: null\r\n };\r\n\r\n if (credentials.email !== user.user.email) {\r\n userToUpdateSecurity.newEmail = credentials.email;\r\n }\r\n\r\n if (credentials.password !== '' && credentials.password === credentials.confirmPassword) {\r\n userToUpdateSecurity.currentPassword = credentials.currentPassword;\r\n userToUpdateSecurity.newPassword = credentials.password;\r\n }\r\n\r\n dispatch(updateUserSecurity(userToUpdateSecurity));\r\n dispatch(updateUser(userToUpdateData));\r\n\r\n // setTimeout(() => {\r\n // formInfoRef.current.classList.remove('was-validated');\r\n // }, 5000);\r\n return;\r\n\r\n\r\n\r\n\r\n }\r\n if (formInfoRef.current.checkValidity()) {\r\n\r\n firstFormInputs.forEach(input => {\r\n input.setAttribute('id', \"input-hide-icon\");\r\n });\r\n\r\n dispatch(updateUser(userToUpdateData));\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n function handleDeleteUser(user) {\r\n //dispatch(deleteUser(user));\r\n console.log(user);\r\n }\r\n\r\n\r\n return (\r\n
    \r\n {/*
    */}\r\n
    \r\n
    \r\n {/* */}\r\n\r\n {\r\n\r\n
    \r\n
    Données du compte
    \r\n
    \r\n \r\n
    \r\n
    \r\n }\r\n\r\n
    e.preventDefault()}>\r\n {\r\n (((auth.SMSWasSent === false && wasSendOnce === false) || modifyNumber === true) && !auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER)) && (loggedIn ? updatingNumber : true) ?\r\n
    \r\n\r\n \r\n
    \r\n \r\n\r\n {\r\n e.preventDefault();\r\n document.getElementById(\"phoneNumberInput\").setCustomValidity(\"\");\r\n setCredentials({ ...credentials, phoneNumber: e.target.value });\r\n }} />\r\n
    \r\n \r\n \r\n \r\n {/*
    \r\n Champs invalide\r\n
    */}\r\n
    \r\n \r\n Valider votre numéro de téléphone\r\n
    \r\n
    \r\n {\r\n !R.isNil(auth.authError) && auth.authError === \"PhoneNumberTaken\" ?\r\n
    \r\n \r\n Ce numéro de téléphone est déjà utilisé.\r\n
    \r\n :\r\n

    Nous utiliserons ce numéro pour assurer la sécurité de votre compte.

    \r\n }\r\n\r\n
    \r\n :\r\n\r\n auth.phoneConfirmed === false && (loggedIn && ignoreTmp === false ? tmpPhoneConfirmed === false : true) ?\r\n
    \r\n \r\n\r\n
    \r\n {\r\n setCredentials({ ...credentials, otpCode: e.target.value });\r\n }} onFocus={() => {\r\n if (isOnFocus === false) {\r\n setIsOnFocus(true);\r\n }\r\n }} onBlur={() => {\r\n setIsOnFocus(false);\r\n }} />\r\n \r\n \r\n \r\n \r\n {isOnFocus === false && !auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER) ?\r\n
    \r\n \r\n Le code n'est pas valide. Veuillez réssayer.\r\n
    \r\n : ''\r\n }\r\n
    \r\n {\r\n auth.isLoading.includes(Loadings.SEND_PHONE_NUMBER) || auth.isLoading.includes(Loadings.VERIFYING_NUMBER) ?\r\n \r\n :\r\n ''\r\n }\r\n {auth.SMSWasSent === true ?\r\n

    Vous ne l'avez pas reçu ? {\r\n e.preventDefault();\r\n setModifyNumber(true);\r\n setCredentials({ ...credentials, otpCode: '' });\r\n codeRef.current.focus();\r\n }}>En recevoir un nouveau

    \r\n : ''\r\n }\r\n
    \r\n : ''\r\n\r\n\r\n }\r\n {(auth.phoneConfirmed && modifyNumber === false) || (loggedIn && (updatingNumber === false && numberIsSame && (tmpPhoneConfirmed && ignoreTmp === false))) ?\r\n
    \r\n
    \r\n \r\n +{credentials.countryCode} {parsePhoneNumber(credentials.phoneNumber, credentials.phoneCountry).formatNational()}\r\n Validé\r\n
    \r\n
    \r\n \r\n Le numéro de téléphone a été activé avec succès.\r\n
    \r\n {registerPage === false ?

    Les codes de validation sont envoyés par SMS.

    : ''}\r\n {\r\n registerPage === false ?\r\n \r\n :\r\n ''\r\n }\r\n\r\n
    \r\n : ''\r\n }\r\n
    \r\n\r\n {loggedIn || ((modifyNumber || auth.phoneConfirmed) && registerPage) ?\r\n
    handleInfoForm(e)} ref={formInfoRef} noValidate>\r\n
    \r\n
    \r\n
    {\r\n event.preventDefault();\r\n // if (registerPage === true) {\r\n // formSubmitRegister(event);\r\n // }\r\n // else {\r\n // formSubmit(event);\r\n // }\r\n }}>\r\n
    \r\n \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, email: event.target.value });\r\n }} pattern={RegexFields.email} />\r\n
    \r\n Champs invalide\r\n
    \r\n
    \r\n {\r\n registerPage === true && (R.isNil(user.user) || R.isNil(user.user.id)) ? '' :\r\n
    \r\n \r\n
    \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, currentPassword: event.target.value });\r\n }} />\r\n
    \r\n
    \r\n { setShowCurrentPassword(!showCurrentPassword); }}>\r\n
    \r\n
    \r\n
    \r\n Champs invalide\r\n
    \r\n
    \r\n
    \r\n }\r\n\r\n
    \r\n
    \r\n \r\n
    \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, password: event.target.value });\r\n }} />\r\n
    \r\n
    \r\n { setShowPassword(!showPassword); }}>\r\n
    \r\n
    \r\n
    \r\n Champs invalide\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n {\r\n event.preventDefault();\r\n setCredentials({ ...credentials, confirmPassword: event.target.value });\r\n }} />\r\n
    \r\n
    \r\n { setShowConfPassword(!showConfPassword); }}>\r\n
    \r\n
    \r\n
    \r\n Champs invalide\r\n
    \r\n
    \r\n
    \r\n
    \r\n Les mots de passe ne sont pas identiques\r\n
    \r\n
    \r\n {auth.error === 'email' ? 'Il y a déjà un utilisateur avec cet e-mail.' : ''}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    Pour un mot de passe plus sûr
    \r\n

    Pour atteindre le niveau de sécurité requis, votre mot de passe doit comporter entre 8 et 32 caractères et inclure au moins 3 des types de caractères suivants:

    \r\n
    \r\n \r\n une lettre majuscule (A-Z)\r\n
    \r\n
    \r\n \r\n une lettre minuscule (a-z)\r\n
    \r\n
    \r\n \r\n un chiffre (0-9)\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {/* another form */}\r\n\r\n
    \r\n
    \r\n
    \r\n

    Mes données

    \r\n
    \r\n

    ETAT CIVIL

    \r\n
    \r\n
    \r\n {\r\n setPersonalData({ ...personalData, gender: gender.female });\r\n }} />\r\n \r\n
    \r\n
    \r\n {\r\n setPersonalData({ ...personalData, gender: gender.male });\r\n }} />\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, firstName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
    \r\n
    \r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, lastName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n : ''\r\n }\r\n\r\n {/*
    \r\n

    Mes données

    \r\n
    \r\n

    ETAT CIVIL

    \r\n
    \r\n
    \r\n {\r\n setPersonalData({ ...personalData, gender: gender.female });\r\n }} />\r\n \r\n
    \r\n
    \r\n {\r\n setPersonalData({ ...personalData, gender: gender.male });\r\n }} />\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, firstName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
    \r\n
    \r\n \r\n {\r\n e.preventDefault();\r\n setPersonalData({ ...personalData, lastName: e.target.value });\r\n }} pattern={RegexFields.nameWithoutNumbers} />\r\n
    */}\r\n {/* Show only if admin or super admin */}\r\n {/*
    \r\n \r\n \r\n
    */}\r\n {/*
    \r\n
    \r\n
    */}\r\n
    \r\n
    \r\n
    \r\n \r\n
    * champs obligatoires
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n );\r\n};","import React, { Component } from 'react';\r\nimport { connect } from 'react-redux';\r\n\r\nclass EditUser extends Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t

    Edit user

    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    Modifier utilisateur
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Remplissez le formulaire ci-dessous en conséquence pour modifier les informations associées à un utilisateur au sein du backoffice.

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t)\r\n\t}\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n\texample: state.example,\r\n});\r\nconst mapDispatchToProps = {\r\n\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EditUser);","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\n\r\nimport { SettingsProfil } from './profile';\r\nimport { SettingsNotifications } from './notifications';\r\nimport { SettingsUsers } from './users';\r\n\r\nexport const Settings = ({ roles }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n {/* \r\n */}\r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n );\r\n};","\r\nimport { EndPoints } from '../../api-config';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const postalNumberUrl = () => `${SERVER_ADDR_V1}/BackOffice/postalnumber`;\r\n\r\nexport const productsPricesUrl = () => `${SERVER_ADDR_V1}/BackOffice/products`;\r\nexport const productUrl = (productName) => `${SERVER_ADDR_V1}/BackOffice/products/${productName}`;","import * as axios from 'axios';\r\nimport * as ActionTypesService from '../../constants/actiontypes/services';\r\nimport * as ActionTypesConfig from '../../constants/actiontypes/backoffice/configuration';\r\nimport * as urls from '../../constants/webapi/services';\r\nimport * as urlsConfig from '../../constants/webapi/backoffice/configuration';\r\nimport { convertConnectionTypesToServiceType } from '../../constants/utils/connectionTypes';\r\n\r\nexport function resetServices() {\r\n return {\r\n type: ActionTypesService.RESET_SERVICES,\r\n };\r\n}\r\nexport function fetchServices(serviceType, pageNumber, searchTerm, sortByTerm, sortDesc, lifeEvent) {\r\n\tlet frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\tpageNumber -= 1;\r\n\r\n\treturn (dispatch) => {\r\n\t\tdispatch({ type: ActionTypesService.FETCH_SERVICES_REQUEST, serviceType: serviceType });\r\n\t\treturn axios\r\n\t\t\t.get(urls.serviceByServiceTypeSearchUrl(frenchServiceType, pageNumber, searchTerm, sortByTerm, sortDesc, lifeEvent))\r\n\t\t\t.then((response) => {\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesService.FETCH_SERVICES_SUCCESS,\r\n\t\t\t\t\tdata: response.data,\r\n\t\t\t\t\tserviceType: serviceType,\r\n\t\t\t\t});\r\n\t\t\t\treturn response.data;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tif (error.response.status === 404) {\r\n\t\t\t\t\tdispatch({\r\n\t\t\t\t\t\ttype: ActionTypesService.FETCH_SERVICES_FAILURE,\r\n\t\t\t\t\t\tserviceType: serviceType,\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tdispatch({\r\n\t\t\t\t\ttype: ActionTypesService.FETCH_SERVICES_FAILURE,\r\n\t\t\t\t\tresponse: error.response,\r\n\t\t\t\t});\r\n\t\t\t\tthrow error.statusText;\r\n\t\t\t});\r\n\t};\r\n}\r\n\r\nexport function createService(service, serviceType) {\r\n\r\n //let frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesService.CREATE_SERVICES_REQUEST });\r\n return axios.post(urls.serviceUrl(), service)\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesService.CREATE_SERVICES_SUCCESS,\r\n data: response.data,\r\n serviceType: serviceType\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: ActionTypesService.CREATE_SERVICES_FAILURE,\r\n\r\n });\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesService.CREATE_SERVICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function updateService(id, serviceType, service) {\r\n\r\n //let frenchServiceType = convertConnectionTypesToServiceType(serviceType);\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesService.UPDATE_SERVICES_REQUEST });\r\n return axios.put(urls.serviceByIdUrl(id), service)\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesService.UPDATE_SERVICES_SUCCESS,\r\n data: response.data,\r\n serviceType: serviceType\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: ActionTypesService.UPDATE_SERVICES_FAILURE,\r\n\r\n });\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesService.UPDATE_SERVICES_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\nexport function deleteService(service) {\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesService.DELETE_SERVICE_BY_ID_REQUEST });\r\n return axios.delete(urls.serviceByIdUrl(service.id))\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesService.DELETE_SERVICE_BY_ID_SUCCESS,\r\n data: response.data,\r\n service: service\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: ActionTypesService.DELETE_SERVICE_BY_ID_FAILURE,\r\n service: service\r\n\r\n });\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesService.DELETE_SERVICE_BY_ID_FAILURE,\r\n response: error.response,\r\n service: service\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function createPostalNumber(postalNumber) {\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesConfig.CREATE_POSTAL_NUMBER_REQUEST });\r\n return axios.post(urlsConfig.postalNumberUrl(), postalNumber)\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesConfig.CREATE_POSTAL_NUMBER_SUCCESS,\r\n data: response.data,\r\n\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n if (error.response.status === 404) {\r\n dispatch({\r\n type: ActionTypesConfig.CREATE_POSTAL_NUMBER_FAILURE,\r\n });\r\n return;\r\n }\r\n dispatch({\r\n type: ActionTypesConfig.CREATE_POSTAL_NUMBER_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\nexport function getProductsPrices() {\r\n\r\n return (dispatch) => {\r\n dispatch({ type: ActionTypesConfig.FETCH_PRICE_REQUEST });\r\n return axios.get(urlsConfig.productsPricesUrl())\r\n .then((response) => {\r\n dispatch({\r\n type: ActionTypesConfig.FETCH_PRICE_SUCCESS,\r\n data: response.data,\r\n\r\n });\r\n return response.data;\r\n })\r\n .catch((error) => {\r\n\r\n dispatch({\r\n type: ActionTypesConfig.FETCH_PRICE_FAILURE,\r\n response: error.response\r\n });\r\n throw error.statusText;\r\n });\r\n };\r\n}\r\n\r\n\r\n// export function updateProductPrice(product) {\r\n\r\n// return (dispatch) => {\r\n// dispatch({ type: ActionTypesConfig.UPDATE_PRICE_REQUEST });\r\n// return axios.patch(urlsConfig.productUrl(product.product), product)\r\n// .then((response) => {\r\n// dispatch({\r\n// type: ActionTypesConfig.UPDATE_PRICE_SUCCESS,\r\n// data: product,\r\n\r\n// });\r\n// return response.data;\r\n// })\r\n// .catch((error) => {\r\n// if (error.response.status === 404) {\r\n// dispatch({\r\n// type: ActionTypesConfig.UPDATE_PRICE_FAILURE,\r\n// });\r\n// return;\r\n// }\r\n// dispatch({\r\n// type: ActionTypesConfig.UPDATE_PRICE_FAILURE,\r\n// response: error.response\r\n// });\r\n// throw error.statusText;\r\n// });\r\n// };\r\n// }\r\n\r\nexport function updateProductPrice(product) {\r\n\r\n return new Promise((resolve, reject) => {\r\n axios.patch(urlsConfig.productUrl(product.product), product)\r\n .then((response) => {\r\n\r\n resolve(response.data);\r\n })\r\n .catch((error) => {\r\n\r\n reject(error);\r\n });\r\n });\r\n};\r\n","import React, { useEffect } from 'react';\r\nimport { NavLink } from 'react-router-dom';\r\nimport $ from 'jquery';\r\nimport { useDispatch } from 'react-redux';\r\nimport { resetServices } from '../../../actions/backoffice/configuration';\r\n\r\nexport const ConfigurationHeader = ({ paymentState }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n};","import { createStore, applyMiddleware } from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport logger from 'redux-logger';\r\nimport createRootReducer from '../reducers';\r\nimport { routerMiddleware } from 'connected-react-router';\r\nimport {EndPoints} from '../constants/api-config';\r\n\r\nexport default function configureStore(initialState, browserHistory) {\r\n const store = createStore(\r\n createRootReducer(browserHistory),\r\n initialState,\r\n (EndPoints.environment !== 'production') ? applyMiddleware(thunk, logger, routerMiddleware(browserHistory))\r\n : applyMiddleware(thunk, routerMiddleware(browserHistory))\r\n );\r\n\r\n return store;\r\n}","import React, { useEffect, useRef, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as Loadings from '../../../constants/loadings/backoffice/configuration';\r\nimport { toast } from 'react-toastify';\r\nimport * as R from \"ramda\";\r\nimport $ from 'jquery';\r\n\r\nimport { ConfigurationClientTable } from './table';\r\nimport { createPostalNumber, getProductsPrices, updateProductPrice } from '../../../actions/backoffice/configuration';\r\n\r\nexport const ConfigurationGeneral = ({ configState, pageNumber }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst impressionFormRef = useRef(null);\r\n\tconst pricesFormRef = useRef(null);\r\n\tconst buttonImpressionRef = useRef(null);\r\n\tconst buttonPriceRef = useRef(null);\r\n\tconst [isLoading, setIsLoading] = useState(false);\r\n\tconst toastConf = { position: toast.POSITION.TOP_RIGHT, autoClose: 3000 };\r\n\r\n\tconst [impression, setImpression] = useState({ start: \"\", end: \"\" });\r\n\t// const [facilita, setFacilia] = useState({ facilita: !R.isNil(configState.prices) ? configState.prices.facilita : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\t// const [partner, setParnter] = useState({ partner: !R.isNil(configState.prices) ? configState.prices.trainingday : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\t// const [anticipa, setAnticipa] = useState({ anticipa: !R.isNil(configState.prices) ? configState.prices.setupfee1 : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\t// const [anticipa1, setAnticipa1] = useState({ anticipa4: !R.isNil(configState.prices) ? configState.prices.setupfee4 : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\t// const [anticipa4, setAnticipa4] = useState({ anticipa6: !R.isNil(configState.prices) ? configState.prices.setupfee6 : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\t// const [anticipa6, setAnticipa6] = useState({ annual: !R.isNil(configState.prices) ? configState.prices.annual : { product: \"\", id: \"\", basePrice: \"\" } });\r\n\r\n\tconst [formPrice, setFormPrice] = useState({\r\n\t\tfacilita: !R.isNil(configState.prices) ? configState.prices.facilita : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tfacilita4: !R.isNil(configState.prices) ? configState.prices.facilita4 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tpartner: !R.isNil(configState.prices) ? configState.prices.trainingday : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tanticipa: !R.isNil(configState.prices) ? configState.prices.setupfee1 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tanticipaMinus65: !R.isNil(configState.prices) ? configState.prices.anticipaMinus65 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tanticipa4: !R.isNil(configState.prices) ? configState.prices.setupfee4 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tanticipa6: !R.isNil(configState.prices) ? configState.prices.setupfee6 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tanticipaMonthly: !R.isNil(configState.prices) ? configState.prices.anticipaMonthly : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\tannual: !R.isNil(configState.prices) ? configState.prices.annual : { product: \"\", id: \"\", basePrice: \"\" },\r\n\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tsetFormPrice({\r\n\t\t\tfacilita: !R.isNil(configState.prices) ? configState.prices.facilita : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tfacilita4: !R.isNil(configState.prices) ? configState.prices.facilita4 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tpartner: !R.isNil(configState.prices) ? configState.prices.trainingday : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tanticipa: !R.isNil(configState.prices) ? configState.prices.setupfee1 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tanticipaMinus65: !R.isNil(configState.prices) ? configState.prices.setupfee1minus65 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tanticipa4: !R.isNil(configState.prices) ? configState.prices.setupfee4 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tanticipa6: !R.isNil(configState.prices) ? configState.prices.setupfee6 : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tanticipaMonthly: !R.isNil(configState.prices) ? configState.prices.setupmonthly : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t\tannual: !R.isNil(configState.prices) ? configState.prices.annual : { product: \"\", id: \"\", basePrice: \"\" },\r\n\t\t});\r\n\r\n\t}, [configState.prices]);\r\n\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\r\n\tfunction handleSubmitImpressionForm(e) {\r\n\r\n\t\te.preventDefault();\r\n\t\tif (R.isEmpty(impression.start) && R.isEmpty(impression.end)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\timpressionFormRef.current.classList.add(\"was-validated\");\r\n\r\n\t\tif (impressionFormRef.current.checkValidity()) {\r\n\t\t\tconst start = parseInt(impression.start);\r\n\t\t\tconst end = parseInt(impression.end);\r\n\r\n\r\n\t\t\tdispatch(createPostalNumber({ start, end }));\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tfunction handleSubmitPriceForm(e) {\r\n\t\te.preventDefault();\r\n\t\tconst facilitaPrice = parseFloat(formPrice.facilita.basePrice);\r\n\t\tconst anticipaPrice = parseFloat(formPrice.anticipa.basePrice);\r\n\t\tconst anticipa4Price = parseFloat(formPrice.anticipa4.basePrice);\r\n\t\tconst anticipa6Price = parseFloat(formPrice.anticipa6.basePrice);\r\n\t\tconst partnerPrice = parseFloat(formPrice.partner.basePrice);\r\n\t\tconst annualPrice = parseFloat(formPrice.annual.basePrice);\r\n\r\n\r\n\t\tif (facilitaPrice === configState.prices.facilita.basePrice &&\r\n\t\t\tanticipaPrice === configState.prices.setupfee1.basePrice &&\r\n\t\t\tanticipa4Price === configState.prices.setupfee4.basePrice &&\r\n\t\t\tanticipa6Price === configState.prices.setupfee6.basePrice &&\r\n\t\t\tpartnerPrice === configState.prices.trainingday.basePrice &&\r\n\t\t\tannualPrice === configState.prices.annual.basePrice\r\n\t\t) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpricesFormRef.current.classList.add(\"was-validated\");\r\n\r\n\t\tif (pricesFormRef.current.checkValidity()) {\r\n\t\t\tsetIsLoading(true);\r\n\t\t\tlet productsNewPrices = [];\r\n\t\t\tlet oldProducts = formPrice;\r\n\r\n\t\t\tif (facilitaPrice !== configState.prices.facilita.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.facilita, basePrice: facilitaPrice });\r\n\t\t\t}\r\n\t\t\tif (anticipaPrice !== configState.prices.setupfee1.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.anticipa, basePrice: anticipaPrice });\r\n\t\t\t}\r\n\t\t\tif (anticipa4Price !== configState.prices.setupfee4.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.anticipa4, basePrice: anticipa4Price });\r\n\t\t\t}\r\n\t\t\tif (anticipa6Price !== configState.prices.setupfee6.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.anticipa6, basePrice: anticipa6Price });\r\n\t\t\t}\r\n\t\t\tif (partnerPrice !== configState.prices.trainingday.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.partner, basePrice: partnerPrice });\r\n\t\t\t}\r\n\t\t\tif (annualPrice !== configState.prices.annual.basePrice) {\r\n\t\t\t\tproductsNewPrices.push({ ...formPrice.annual, basePrice: annualPrice });\r\n\t\t\t}\r\n\r\n\r\n\t\t\tlet productPromises = [];\r\n\t\t\tproductsNewPrices.forEach(product => {\r\n\t\t\t\tproductPromises.push(updateProductPrice(product));\r\n\t\t\t});\r\n\r\n\t\t\tPromise.all(productPromises).then(response => {\r\n\t\t\t\tsetIsLoading(false);\r\n\t\t\t\ttoast.success(\"submitted\", toastConf);\r\n\t\t\t}).catch(error => {\r\n\t\t\t\tsetIsLoading(false);\r\n\t\t\t\ttoast.error(error.message, toastConf);\r\n\t\t\t});\r\n\r\n\t\t\t//dispatch(updateProductPrice(product))\r\n\t\t}\r\n\r\n\r\n\t}\r\n\r\n\t// if (paymentState.isLoading.includes(Loadings.FETCHING_CLIENTS_INVOICES)) { return ; }\r\n\t// if (R.isNil(paymentState.clientsInvoices)) { return ''; }\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Impression préférences
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Impressions préférences
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Plage de numéros de recommandés

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t{/* setImpression({ ...impression, start: e.target.value })} /> */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t setImpression({ ...impression, start: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t setImpression({ ...impression, end: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    Tarifs préférences
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Tarifs préférences
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Facilita

    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, facilita: { ...formPrice.facilita, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    Champs invalide
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, facilita4: { ...formPrice.facilita4, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    Champs invalide
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Partenaire

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, partner: { ...formPrice.partner, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    Champs invalide
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Anticipa

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, anticipa: { ...formPrice.anticipa, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, anticipaMinus65: { ...formPrice.anticipaMinus65, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, anticipa4: { ...formPrice.anticipa4, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, anticipa6: { ...formPrice.anticipa6, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, anticipaMonthly: { ...formPrice.anticipaMonthly, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t setFormPrice({ ...formPrice, annual: { ...formPrice.annual, basePrice: e.target.value } })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t{isLoading ?\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t
    * champs obligatoires
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useRef, useState } from 'react';\r\nimport * as R from \"ramda\";\r\nimport Guid from 'guid';\r\n\r\n\r\nimport contriesList from 'iso-3166-1-alpha-2';\r\nimport countryTelData from 'country-telephone-data';\r\nimport parsePhoneNumber from 'libphonenumber-js';\r\nimport { isValidPhoneNumber } from 'libphonenumber-js';\r\nimport { AssuranceOptions, AssuranceOptionsBO, AuxiliarOptions, CommonServices, ConnectionTypes, convertConnectionTypesToServiceType, isInsurance, isSocialNetwork, OtherService, PersonalServices } from '../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport { createService } from '../../../actions/backoffice/configuration';\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\nexport const ServiceModal = ({ allServices, serviceType }) => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst serviceModal = useRef();\r\n\tconst buttonRef = useRef();\r\n\tconst [selectedProfile, setSelectedProfile] = useState({ email: \"\", phoneNumber: \"\", countryCode: \"\" });\r\n\tconst [serviceForm, setServiceForm] = useState({\r\n\t\tserviceType: \"\",\r\n\t\tserviceName: \"\",\r\n\t\torganizationName: \"\",\r\n\t\taddressLine1: \"\",\r\n\t\taddressLine2: \"\",\r\n\t\taddressLine3: \"\",\r\n\t\tpostalCode: \"\",\r\n\t\tcity: \"\",\r\n\t\tcountry: \"FR\",\r\n\t\turl: [{\r\n\t\t\tname: \"\",\r\n\t\t\taddress: \"\"\r\n\t\t}]\r\n\r\n\t});\r\n\r\n\tconst socialNetwork = {\r\n\t\tEN: \"SocialNetwork\",\r\n\t\tFR: convertConnectionTypesToServiceType(\"SocialNetwork\")\r\n\t};\r\n\r\n\tfunction handleSubmit(e) {\r\n\t\te.preventDefault();\r\n\t\tserviceModal.current.classList.add(\"was-validated\");\r\n\r\n\r\n\r\n\t\tif (serviceModal.current.checkValidity()) {\r\n\r\n\r\n\t\t\tconst newService = {\r\n\t\t\t\tid: Guid.raw(),\r\n\t\t\t\ttype: convertConnectionTypesToServiceType(serviceForm.serviceType),\r\n\t\t\t\torganizationName: serviceForm.organizationName,\r\n\t\t\t\tname: serviceForm.serviceName,\r\n\t\t\t\tdescription: \"\",\r\n\t\t\t\temail: \"\",\r\n\t\t\t\taddress: {\r\n\t\t\t\t\tstreetAddress: serviceForm.addressLine1,\r\n\t\t\t\t\tstreetAddress2: serviceForm.addressLine2,\r\n\t\t\t\t\tstreetAddress3: serviceForm.addressLine3,\r\n\t\t\t\t\tpostalCode: serviceForm.postalCode,\r\n\t\t\t\t\taddressLocality: serviceForm.city,\r\n\t\t\t\t\taddressCountry: serviceForm.country\r\n\t\t\t\t},\r\n\t\t\t\turls: serviceForm.url.filter(u => u.address !== \"\")\r\n\r\n\t\t\t};\r\n\r\n\t\t\tconst deathService = { ...newService, lifeEvent: 0 }\r\n\t\t\tconst relocationService = { ...newService, lifeEvent: 1 }\r\n\r\n\t\t\tdispatch(createService(deathService, serviceForm.serviceType));\r\n\t\t\t// dispatch(createService(relocationService, serviceForm.serviceType));\r\n\t\t\tbuttonRef.current.setAttribute(\"data-dismiss\", \"modal\");\r\n\t\t\tbuttonRef.current.click();\r\n\t\t}\r\n\t\tbuttonRef.current.removeAttribute(\"data-dismiss\");\r\n\t}\r\n\r\n\tfunction handleAddUrl() {\r\n\r\n\t\tsetServiceForm({\r\n\t\t\t...serviceForm,\r\n\t\t\turl: [\r\n\t\t\t\t...serviceForm.url,\r\n\t\t\t\t{\r\n\t\t\t\t\tname: \"\",\r\n\t\t\t\t\taddress: \"\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t});\r\n\t}\r\n\r\n\tfunction handleDeleteUrl(index) {\r\n\t\tsetServiceForm({\r\n\t\t\t...serviceForm,\r\n\t\t\turl: serviceForm.url.filter((u, i) => i !== index)\r\n\t\t});\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Service Assist@

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tDonnées du services\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\tConsultez et modifiez ci-dessous les détails du compte Nom du service en conséquence.\r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"La branche de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, organizationName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, serviceName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine1: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine2: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine3: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, postalCode: updatedAddress.postalCode, city: updatedAddress.city })}\r\n\t\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcountry={serviceForm.country}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t{serviceForm.country === null || serviceForm.country === \"FR\" || serviceForm.country === \"GF\" || serviceForm.country === \"PF\" || serviceForm.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, postalCode: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, postalCode: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, city: e.target.value })} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    */}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, url: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{serviceForm.url.map((url, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetServiceForm({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...serviceForm,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: serviceForm.url.map((u, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i === index) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tu.name = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetServiceForm({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...serviceForm,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: serviceForm.url.map((u, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i === index) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tu.address = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{index !== 0 && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t handleDeleteUrl(index)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect } from 'react';\r\nimport * as R from \"ramda\";\r\nimport $ from 'jquery';\r\nimport { AssuranceOptions, AssuranceOptionsBO, CommonServices, ConnectionTypes, convertConnectionTypesToServiceType, OtherService, PersonalServices, SocialNetworksOptions } from '../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\nimport { fetchServices, resetServices } from '../../../../actions/backoffice/configuration';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport {LifeEvents, FrenchLifeEvents} from \"../../../../constants/utils/lifeEvents\";\r\n\r\n\r\nexport const ServiceTableFilter = ({ filters, setFilters, setPageSearch, pageSearch, configState, serviceType, routerQuery, allServices, lifeEvent }) => {\r\n\tconst dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst filterForm = document.querySelector(\"#filterForm\");\r\n\t\tconst handleClick = (e) => {\r\n\t\t\tif (e.target.type === \"button\") {\r\n\t\t\t\te.target.parentElement.classList.remove(\"show\");\r\n\t\t\t}\r\n\t\t};\r\n\t\tfilterForm.addEventListener(\"click\", handleClick);\r\n\r\n\t\treturn () => filterForm.removeEventListener(\"click\", handleClick);\r\n\t}, []);\r\n\r\n\tconst socialNetwork = {\r\n\t\tEN: \"SocialNetwork\",\r\n\t\tFR: convertConnectionTypesToServiceType(\"SocialNetwork\"),\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};\r\n\r\n","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport { useHistory } from 'react-router';\r\n\r\n\r\n\r\nexport const ServiceTableNav = ({ filters, setFilters, routerQuery, configState }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const history = useHistory();\r\n\r\n return (\r\n \r\n );\r\n};","import React, { useEffect } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\n\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { fetchInvoiceLines, markPartnersInvoicesPaid } from '../../../../actions/backoffice/payments';\r\nimport { AssuranceOptions, AssuranceOptionsBO, CommonServices, ConnectionTypes, convertConnectionTypesToServiceType, OtherService, PersonalServices, SocialNetworksOptions } from '../../../../constants/utils/connectionTypes';\r\nimport { useDispatch } from 'react-redux';\r\n\r\n\r\n\r\nexport const ServiceTableRow = ({ serviceType, organizationName, name, address, urls, service, setSelectedService }) => {\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const dispatch = useDispatch();\r\n const options = { style: 'currency', currency: 'EUR' };\r\n\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n
    {serviceType?.title.toUpperCase()}
    \r\n
    \r\n
    \r\n {/*
    {recipientType === \"Etablissement\" ? etablissementName : \"\"}
    */}\r\n
    {organizationName} {/*!R.isEmpty(urls) && */}
    \r\n
    \r\n
    \r\n
    {name}
    \r\n
    \r\n
    \r\n
    \r\n {!R.isEmpty(urls) && !R.isNil(urls) ?\r\n urls.map((url, i) => (\r\n {url.address}
    \r\n ))\r\n :\r\n ''\r\n }\r\n
    \r\n {(R.isEmpty(urls) || R.isNil(urls)) ?
    {address?.streetAddress} {address?.streetAddress2} {address?.streetAddress3} {address?.postalCode} {address?.addressLocality} {address?.addressCountry}
    : \"\"}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport $ from 'jquery';\r\nimport * as R from \"ramda\";\r\nimport { Link } from 'react-router-dom';\r\nimport * as Loadings from '../../../../constants/loadings/service';\r\n\r\nimport Emptylustration from '../../../../assets/images/svg/057-contract-1.svg';\r\n// import Emptylustration from './../../../../assets/images/svg/047-ticket.svg';\r\n\r\nimport { DateWithModal } from '../../../../_common/dateWithModal';\r\nimport { ServiceTableFilter } from './filter';\r\nimport { ServiceTableNav } from './nav';\r\nimport { ServiceTableRow } from './row';\r\nimport { AssuranceOptionsBO, AuxiliarOptions, CommonServices, ConnectionTypes, FrenchTypes, OtherService, PersonalServices } from '../../../../constants/utils/connectionTypes';\r\n\r\n\r\n\r\nexport const ServiceTable = ({ configState, setSelectedService, setPageSearch, pageSearch, routerQuery, allServices }) => {\r\n\r\n const [servicesToDisplay, setServicesToDisplay] = useState(configState.services ? configState.services : []);\r\n const [serviceType, setServiceType] = useState(allServices.find(s => s.connectionType === configState.serviceType));\r\n const [lifeEvent, setLifeevent] = useState(configState.lifeEvent || \"Death\");\r\n\r\n useEffect(() => {\r\n\r\n setServiceType(allServices.find(s => s.connectionType === configState.serviceType));\r\n\r\n }, [configState]);\r\n\r\n const [filters, setFilters] = useState({\r\n order: {\r\n column: \"name\",\r\n asc: true\r\n },\r\n status: undefined,\r\n date: {\r\n startDate: undefined,\r\n endDate: undefined\r\n },\r\n search: \"\"\r\n });\r\n\r\n useEffect(() => {\r\n $('[data-toggle=\"tooltip\"]').tooltip();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n useEffect(() => {\r\n if (!R.isNil(configState.services)) {\r\n let temp = configState.services;\r\n\r\n\r\n if (!R.isNil(filters.status)) {\r\n // temp = temp.filter(user => user.status === filters.status);\r\n }\r\n\r\n\r\n // if (filters.order.asc) {\r\n\r\n // temp = R.sort(R.ascend(R.prop(filters.order.column)), temp);\r\n\r\n // } else {\r\n\r\n // temp = R.sort(R.descend(R.prop(filters.order.column)), temp);\r\n\r\n // }\r\n\r\n\r\n // if (!R.isEmpty(filters.search)) {\r\n // temp = temp.filter(service => service.organizationName?.toLowerCase().includes(filters.search.toLowerCase()) || service.name?.toLowerCase().includes(filters.search.toLowerCase()));\r\n // }\r\n\r\n\r\n\r\n\r\n setServicesToDisplay(temp);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [filters, configState.services]);\r\n\r\n\r\n return (\r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t{R.isEmpty(servicesToDisplay) ? (\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\"Assist@\"\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Trouvez un service.

    \r\n\t\t\t\t\t\t\t

    Veuillez sélectionner ci-dessus un type de service pour commencer.

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t) : (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t{configState.isLoading.includes(Loadings.FETCHING_SERVICES) ? (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tLoading...\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{servicesToDisplay.map((service) => {\r\n\t\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t
    \r\n\t\t);\r\n};","import React, { useEffect, useRef, useState } from \"react\";\r\nimport * as R from \"ramda\";\r\n\r\nimport contriesList from \"iso-3166-1-alpha-2\";\r\nimport countryTelData from \"country-telephone-data\";\r\nimport parsePhoneNumber from \"libphonenumber-js\";\r\nimport { isValidPhoneNumber } from \"libphonenumber-js\";\r\nimport { AssuranceOptions, AssuranceOptionsBO, AuxiliarOptions, CommonServices, ConnectionTypes, convertConnectionTypesToServiceType, isInsurance, isSocialNetwork, OtherService, PersonalServices } from \"../../../constants/utils/connectionTypes\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { createService, updateService } from \"../../../actions/backoffice/configuration\";\r\nimport { FrenchLifeEvents, LifeEvents } from \"../../../constants/utils/lifeEvents\";\r\nimport { PostalCityInput } from \"../../../_common/postalCityInput\";\r\n\r\n\r\nexport const EditServiceModal = ({ selectedService, configState, allServices }) => {\r\n\tconst dispatch = useDispatch();\r\n\tvar countries = require(\"i18n-iso-countries\");\r\n\tcountries.registerLocale(require(\"i18n-iso-countries/langs/fr.json\"));\r\n\r\n\tconst editServiceModal = useRef();\r\n\tconst buttonRef = useRef();\r\n\tconst [serviceForm, setServiceForm] = useState({\r\n\t\tid: !R.isEmpty(selectedService) ? selectedService.id : \"\",\r\n\t\tdefaultId: !R.isEmpty(selectedService) ? selectedService.defaultId : \"\",\r\n\t\tserviceType: configState.serviceType,\r\n\t\tlifeEvent: !R.isEmpty(selectedService) && !R.isNil(selectedService.lifeEvent) ? selectedService.lifeEvent : 0,\r\n\t\torganizationName: !R.isEmpty(selectedService) && !R.isNil(selectedService.organizationName) ? selectedService.organizationName : \"\",\r\n\t\tserviceName: !R.isEmpty(selectedService) && !R.isNil(selectedService.name) ? selectedService.name : \"\",\r\n\t\taddressLine1: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress) ? selectedService.address?.streetAddress : \"\",\r\n\t\taddressLine2: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress2) ? selectedService.address?.streetAddress2 : \"\",\r\n\t\taddressLine3: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress3) ? selectedService.address?.streetAddress3 : \"\",\r\n\t\tpostalCode: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.postalCode) ? selectedService.address?.postalCode : \"\",\r\n\t\tcity: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.postalCode) ? selectedService.address?.addressLocality : \"\",\r\n\t\tcountry: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.addressCountry) ? selectedService.address?.addressCountry : \"FR\",\r\n\t\turl: !R.isEmpty(selectedService) && !R.isNil(selectedService.url) ? selectedService.url : [{ name: \"\", address: \"\" }],\r\n\t});\r\n\r\n\tuseEffect(() => {\r\n\t\tsetServiceForm({\r\n\t\t\tid: !R.isEmpty(selectedService) ? selectedService.id : \"\",\r\n\t\t\tdefaultId: !R.isEmpty(selectedService) ? selectedService.defaultId : \"\",\r\n\t\t\tserviceType: configState.serviceType,\r\n\t\t\tlifeEvent: !R.isEmpty(selectedService) && !R.isNil(selectedService.lifeEvent) ? selectedService.lifeEvent : 0,\r\n\t\t\torganizationName: !R.isEmpty(selectedService) && !R.isNil(selectedService.organizationName) ? selectedService.organizationName : \"\",\r\n\t\t\tserviceName: !R.isEmpty(selectedService) && !R.isNil(selectedService.name) ? selectedService.name : \"\",\r\n\t\t\taddressLine1: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress) ? selectedService.address?.streetAddress : \"\",\r\n\t\t\taddressLine2: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress2) ? selectedService.address?.streetAddress2 : \"\",\r\n\t\t\taddressLine3: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.streetAddress3) ? selectedService.address?.streetAddress3 : \"\",\r\n\t\t\tpostalCode: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.postalCode) ? selectedService.address?.postalCode : \"\",\r\n\t\t\tcity: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.postalCode) ? selectedService.address?.addressLocality : \"\",\r\n\t\t\tcountry: !R.isEmpty(selectedService) && !R.isNil(selectedService.address?.addressCountry) ? selectedService.address?.addressCountry : \"FR\",\r\n\t\t\turl: !R.isEmpty(selectedService) && !R.isNil(selectedService.urls) && !R.isEmpty(selectedService.urls) ? selectedService.urls : [{ name: \"\", address: \"\" }],\r\n\t\t});\r\n\r\n\t}, [selectedService]);\r\n\r\n\tconst socialNetwork = {\r\n\t\tEN: \"SocialNetwork\",\r\n\t\tFR: convertConnectionTypesToServiceType(\"SocialNetwork\"),\r\n\t};\r\n\r\n\tfunction handleSubmit(e) {\r\n\t\te.preventDefault();\r\n\t\teditServiceModal.current.classList.add(\"was-validated\");\r\n\r\n\t\tif (editServiceModal.current.checkValidity()) {\r\n\t\t\tconst newService = {\r\n\t\t\t\tType: convertConnectionTypesToServiceType(serviceForm.serviceType),\r\n\t\t\t\tlifeEvent: LifeEvents[serviceForm.lifeEvent],\r\n\t\t\t\torganizationName: serviceForm.organizationName,\r\n\t\t\t\tname: serviceForm.serviceName,\r\n\t\t\t\tdescription: \"\",\r\n\t\t\t\temail: \"\",\r\n\t\t\t\taddress: {\r\n\t\t\t\t\tstreetAddress: serviceForm.addressLine1,\r\n\t\t\t\t\tstreetAddress2: serviceForm.addressLine2,\r\n\t\t\t\t\tstreetAddress3: serviceForm.addressLine3,\r\n\t\t\t\t\tpostalCode: serviceForm.postalCode,\r\n\t\t\t\t\taddressLocality: serviceForm.city,\r\n\t\t\t\t\taddressCountry: serviceForm.country,\r\n\t\t\t\t},\r\n\t\t\t\turls: serviceForm.url.filter((u) => u.address !== \"\"),\r\n\t\t\t};\r\n\r\n\t\t\tdispatch(updateService(selectedService.id, serviceForm.serviceType, newService));\r\n\t\t\tbuttonRef.current.setAttribute(\"data-dismiss\", \"modal\");\r\n\t\t\tbuttonRef.current.click();\r\n\t\t}\r\n\t\tbuttonRef.current.removeAttribute(\"data-dismiss\");\r\n\t}\r\n\r\n\tfunction handleAddUrl() {\r\n\t\tsetServiceForm({\r\n\t\t\t...serviceForm,\r\n\t\t\turl: [\r\n\t\t\t\t...serviceForm.url,\r\n\t\t\t\t{\r\n\t\t\t\t\tname: \"\",\r\n\t\t\t\t\taddress: \"\",\r\n\t\t\t\t},\r\n\t\t\t],\r\n\t\t});\r\n\t}\r\n\r\n\tfunction handleDeleteUrl(index) {\r\n\t\tsetServiceForm({\r\n\t\t\t...serviceForm,\r\n\t\t\turl: serviceForm.url.filter((u, i) => i !== index),\r\n\t\t});\r\n\t}\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Service Assist@

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\tDonnées du services\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\tConsultez et modifiez ci-dessous les détails du compte{\" \"}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{selectedService?.organizationName} {`(${FrenchLifeEvents(LifeEvents[selectedService.lifeEvent])})`}\r\n\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\ten conséquence.\r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"La branche de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, organizationName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Le nom de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, serviceName: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"L'adresse de l'organisme est nécessaire afin de pouvoir le contacter et d'effectuer les démarches.\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine1: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine2: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, addressLine3: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t{/* setServiceForm({ ...serviceForm, postalCode: updatedAddress.postalCode, city: updatedAddress.city })}\r\n\t\t\t\t\t\t\t\t\t\t\t\thasWrapper={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcountry={serviceForm.country}\r\n\t\t\t\t\t\t\t\t\t\t\t\tcustomClasses={{ city: \"form-group col\", postalCode: \"form-group col\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t/> */}\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{serviceForm.country === null || serviceForm.country === \"FR\" || serviceForm.country === \"GF\" || serviceForm.country === \"PF\" || serviceForm.country === \"TF\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, postalCode: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, postalCode: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, city: e.target.value })} />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est requis\r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{/*
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t setServiceForm({ ...serviceForm, url: e.target.value })} />\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\tChamps invalide\r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    */}\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t{serviceForm.url.map((url, index) => {\r\n\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetServiceForm({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...serviceForm,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: serviceForm.url.map((u, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i === index) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tu.name = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetServiceForm({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...serviceForm,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: serviceForm.url.map((u, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (i === index) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tu.address = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn u;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCe champ est invalide\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{index !== 0 && (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t handleDeleteUrl(index)}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n","import React from 'react';\r\n\r\nexport const DeleteServiceModal = ({ selectedService, deleteService }) => {\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t

    Delete service

    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    Supprimer le service
    \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \t\t\t\t\t\t\r\n\t\t\t\t\t\t
    Etes-vous sûr(e) de vouloir supprimer le service {selectedService.name}?
    \r\n\t\t\t\t\t\t
    Cette action est irréversible.
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState, useRef } from 'react';\r\nimport { Link, useLocation, useHistory } from 'react-router-dom';\r\nimport * as R from \"ramda\";\r\nimport $ from 'jquery';\r\n\r\nimport { ServiceModal } from './serviceModal';\r\nimport { ServiceTable } from './table';\r\nimport { useDispatch } from 'react-redux';\r\nimport { resetServices, fetchServices, deleteService } from '../../../actions/backoffice/configuration';\r\nimport { EditServiceModal } from './editServiceModal';\r\nimport { DeleteServiceModal } from './deleteServiceModal';\r\n\r\nimport { AssuranceOptionsBO, AuxiliarOptions, CommonServices, ConnectionTypes, FrenchTypes, OtherService, PersonalServices } from '../../../constants/utils/connectionTypes';\r\n\r\n\r\nexport const ConfigurationServices = ({ configState }) => {\r\n\r\n\tlet dispatch = useDispatch();\r\n\tconst history = useHistory();\r\n\tconst searchQuery = useLocation();\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\r\n\tlet search = pageQuery.get('search');\r\n\tlet page = pageQuery.get('page');\r\n\tlet serviceType = pageQuery.get('serviceType');\r\n\tlet sortBy = pageQuery.get('sortBy');\r\n\tlet sortDesc = pageQuery.get('sortDesc');\r\n\tlet lifeEvent = pageQuery.get(\"lifeEvent\");\r\n\r\n\tsearch = R.isNil(search) ? '' : search;\r\n\tpage = R.isNil(page) ? 1 : parseInt(page);\r\n\tsortBy = R.isNil(sortBy) ? \"\" : sortBy;\r\n\tsortDesc = R.isNil(sortDesc) ? \"false\" : sortDesc;\r\n\tserviceType = R.isNil(serviceType) ? configState.serviceType : serviceType;\r\n\tlifeEvent = R.isNil(lifeEvent) ? \"Death\" : lifeEvent;\r\n\r\n\tconst [selectedService, setSelectedService] = useState({});\r\n\tconst [pageSearch, setPageSearch] = useState(search);\r\n\tconst renderRef = useRef(false);\r\n\r\n\r\n\tconst handleDeleteService = (service)=>{\r\n\t\tdispatch(deleteService(service));\r\n\t\tdispatch(fetchServices(serviceType, page, search, sortBy, sortDesc, lifeEvent));\r\n\t}\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isNaN(page) || page === 0) {\r\n\t\t\thistory.push(\"/backoffice/configuration/services\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (R.isNil(serviceType) || R.isEmpty(serviceType)) {\r\n\t\t\tdispatch(resetServices());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//servicetype, pageNumber, searchTerm, sortByTerm, sortDesc, lifeEvent\r\n\t\tdispatch(fetchServices(serviceType, page, search, sortBy, sortDesc, lifeEvent));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [searchQuery.search, history.location]);\r\n\r\n\r\n\tlet timer = null;\r\n\tuseEffect(() => {\r\n\r\n\t\tif (!renderRef.current) {\r\n\t\t\trenderRef.current = true;\r\n\t\t\treturn;\r\n\t\t};\r\n\r\n\t\tif (R.isEmpty(pageSearch)) {\r\n\t\t\thistory.push(`/backoffice/configuration/services?page=${1}${serviceType !== \"\" ? \"&serviceType=\" + serviceType : \"\"}${lifeEvent && lifeEvent !== \"\" ? \"&lifeEvent=\" + lifeEvent : \"\"}`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclearTimeout(timer);\r\n\t\ttimer = setTimeout(() => {\r\n\t\t\tdispatch(fetchServices(serviceType, page, pageSearch, sortBy, sortDesc, lifeEvent));\r\n\t\t}, 1000);\r\n\r\n\r\n\t\treturn () => clearTimeout(timer);\r\n\r\n\t\t// eslint-disable-next-line \r\n\t}, [pageSearch]);\r\n\r\n\r\n\tconst routerQuery = {\r\n\t\tpage,\r\n\t\tsearch,\r\n\t\tsortBy,\r\n\t\tsortDesc,\r\n\t\tserviceType,\r\n\t\tlifeEvent\r\n\t};\r\n\r\n\tconst servicesToDelete = [ConnectionTypes.locataire, ConnectionTypes.ehpad, ConnectionTypes.activity, ConnectionTypes.otherActivity, ConnectionTypes.pension, ConnectionTypes.etudiant];\r\n\tlet allServices = [...Object.values(PersonalServices), ...Object.values(CommonServices), ...Object.values(OtherService), ...Object.values(AssuranceOptionsBO), { connectionType: \"SocialNetwork\", title: \"Reseaux Sociaux\" }];\r\n\tallServices = allServices.map(s => ({ ...s, normalizedTitle: s.title.normalize('NFD').replace(/[\\u0300-\\u036f]/g, \"\").toLocaleLowerCase() }))\r\n\t\t.filter(srv => !servicesToDelete.includes(srv.connectionType));\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t{\r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{configState.currentPage > 1 ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t{configState.currentPage > 1 ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t{configState.currentPage < configState.totalPages ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t{configState.currentPage < configState.totalPages ? (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t}\r\n\t\t
    \r\n\t);\r\n};","import React, { Component, useEffect, useRef, useState } from 'react';\r\nimport { connect } from 'react-redux';\r\nimport * as R from \"ramda\";\r\nimport { Route, Switch, Redirect, useLocation } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport { fetchaAllPartnersInvoices, fetchAllClientsInvoices, fetchClientsInvoices, fetchPartnersInvoices } from '../../actions/backoffice/payments';\r\nimport * as LoadingsUser from '../../constants/loadings/user';\r\nimport * as LoadingsFacilita from '../../constants/loadings/facilita/deathDeclaration';\r\nimport { LoadingState } from '../../_common/loadingState';\r\nimport { ConfigurationHeader } from './_common/header';\r\n\r\nimport { ConfigurationGeneral } from './general';\r\nimport { ConfigurationServices } from './services';\r\nimport { getUserServiceData, getUserServiceDataDetails, getUserServices } from '../../actions/user-api';\r\nimport { getProductsPrices } from '../../actions/backoffice/configuration';\r\n\r\nexport const Configuration = () => {\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst userState = useSelector(state => state.user);\r\n\tconst configState = useSelector(state => state.configurationReducer);\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tdispatch(getProductsPrices());\r\n\r\n\t}, []);\r\n\r\n\r\n\tif (userState.isLoading.includes(LoadingsFacilita.FETCHING_USER_SERVICES_DATA || LoadingsUser.FETCH_SERVICES)) { return ; }\r\n\t//if (R.isNil(configState.services)) { return ''; }\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t {\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}} />\r\n\t\t\t\r\n\t\t
    \r\n\t);\r\n\r\n};\r\n\r\n","import React from 'react';\r\nimport ReactDOM from \"react-dom\";\r\nimport { ConnectedRouter } from 'connected-react-router';\r\nimport { Provider } from 'react-redux';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport configureStore from './utils/configureStore';\r\n\r\n// Vendors\r\n// ==========================================\r\n// Vendors: Stylesheets\r\nimport './assets/vendors/normalize.scss';\r\nimport './assets/vendors/datepicker.scss';\r\nimport './assets/vendors/eva-icons.scss';\r\nimport './assets/vendors/circularProgressBar.scss';\r\nimport './assets/vendors/bootstrap.scss';\r\nimport \"./assets/vendors/react-toastify.scss\";\r\n\r\n// Vendors: Scripts\r\n// import './assets/vendors/init.js';\r\nimport 'jquery/dist/jquery.min.js';\r\nimport 'bootstrap/dist/js/bootstrap.min.js';\r\n\r\n\r\n// Global\r\n// ==========================================\r\n// Global: Common\r\nimport './assets/stylesheets/agesma.scss';\r\nimport history from './utils/history';\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\n// Global: Views\r\nimport { Landing } from './landing';\r\nimport { Legal } from './legal';\r\nimport { Faqs } from \"./faqs\";\r\nimport Auth from './auth';\r\nimport { App } from './app';\r\nimport { Partner } from './partner';\r\nimport { Backoffice } from './backoffice';\r\n\r\nconst store = configureStore({}, history);\r\n\r\n\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useSelector } from 'react-redux';\r\n\r\n// Legal\r\n// ==========================================\r\n// Legal: Common\r\nimport './legal.scss';\r\nimport Navbar from './_common/navbar';\r\nimport Footer from './_common/footer';\r\n\r\n// Legal: Views\r\nimport {Privacy} from './privacy';\r\nimport {Terms} from './terms';\r\n\r\nexport const Legal = () => {\r\n const router = useSelector(state => state.router);\r\n\r\n return (\r\n\t\t
    \r\n

    Assist@

    \r\n\t\t\t\r\n \r\n \r\n \r\n\r\n {\r\n return \r\n }} />\r\n \r\n
    \r\n\t\t
    \r\n )\r\n}","import React from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useSelector } from 'react-redux';\r\n\r\n// Faqs\r\n// ==========================================\r\n// Faqs: Common\r\nimport './faqs.scss';\r\nimport Navbar from './_common/navbar';\r\nimport Footer from './_common/footer';\r\n\r\n// Faqs: Views\r\nimport {Faq} from './faq';\r\n\r\nexport const Faqs = () => {\r\n\r\n return (\r\n\t\t
    \r\n

    Assist@

    \r\n\t\t\t\r\n \r\n
    \r\n\t\t
    \r\n )\r\n}","import React, { useEffect } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { ToastContainer } from 'react-toastify';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport * as axios from 'axios';\r\nimport * as R from 'ramda';\r\n\r\nimport { Anticipa } from './anticipa';\r\nimport { Facilita } from './facilita';\r\n\r\nimport { EndPoints } from '../constants/api-config';\r\n\r\n\r\nexport const App = () => {\r\n // useEffect(() => {\r\n // let authToken = sessionStorage.getItem(\"access_token\");\r\n // if (!R.isNil(authToken)) {\r\n // axios.defaults.headers.common['Authorization'] = \"Bearer \" + authToken;\r\n // }\r\n // }, []);\r\n\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n\r\n {\r\n return ;\r\n }} />\r\n \r\n \r\n );\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Route, Switch, Redirect, useLocation } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { fetchUserById, getDocuments, getProfilePicture } from './../actions/user-api';\r\nimport { GetPartnerById, GetEtablissementById, GetEtablissementsByPartnerId, GetUsersByPartnerIdAndEtablissementIdDefaultAnticipa, GetUsersByPartnerIdAndEtablissementIdDefaultFacilita, GetUsersByPartnerIdAndEtablissementIdDefaultSerenita } from './../actions/partner/partner';\r\nimport * as R from 'ramda';\r\nimport JwtDecode from 'jwt-decode';\r\nimport * as axios from 'axios';\r\nimport { ToastContainer } from 'react-toastify';\r\n\r\n// Partner\r\n// ==========================================\r\n// Partner: Common\r\nimport { Navbar } from './_common/navbar';\r\nimport { AjouterDossier } from './_common/ajouterDossier/index';\r\n\r\n// Partner: Views\r\nimport { Dashboard } from './dashboard';\r\nimport { Facilita } from './facilita';\r\nimport {Serenita} from './serenita'\r\nimport { Anticipa } from './anticipa';\r\nimport { Settings } from './settings';\r\nimport { Payment } from './paiement';\r\nimport { getUserRepresentatives } from '../actions/backoffice/partners';\r\nimport { FileTypes } from '../constants/utils/fileTypes';\r\n\r\nexport const Partner = () => {\r\n\tconst searchQuery = useLocation();\r\n\tconst router = useSelector(state => state.router);\r\n\tconst dispatch = useDispatch();\r\n\tconst userReducer = useSelector(state => state.user);\r\n\tconst partnerReducer = useSelector(state => state.partnerReducer);\r\n\tconst [hasLoadedInit, setHasLoadedInit] = useState(false);\r\n\tconst [anticipaUsers, setAnticipaUsers] = useState(undefined);\r\n\tconst [facilitaUsers, setFacilitaUsers] = useState(undefined);\r\n\tconst [serenitaUsers, setSerenitaUsers] = useState(undefined);\r\n\tconst [isPartner, setIsPartner] = useState(false);\r\n\tconst [showSerenita, setShowSerenita] = useState(false);\r\n\r\n\tconst pageQuery = new URLSearchParams(searchQuery.search);\r\n\tlet page = pageQuery.get('page');\r\n\r\n\tuseEffect(() => {\r\n\t\tvar accessToken = sessionStorage.getItem(\"access_token\");\r\n\r\n\r\n\t\tif (!R.isNil(accessToken)) {\r\n\t\t\taxios.defaults.headers.common['Authorization'] = \"Bearer \" + accessToken;\r\n\t\t\tvar decoded = JwtDecode(accessToken);\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n\t\t\t\tdispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n\t\t\t}\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"PartnerId\"])) {\r\n\t\t\t\tdispatch(GetPartnerById(decoded[\"PartnerId\"])).then(() => {\r\n\t\t\t\t\tif (R.isNil(decoded[\"EtablissementId\"])) {\r\n\t\t\t\t\t\tdispatch(GetEtablissementsByPartnerId(decoded[\"PartnerId\"]))\r\n\t\t\t\t\t\t.then(() => setHasLoadedInit(true));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tif (!R.isNil(decoded[\"EtablissementId\"])) {\r\n\t\t\t\t\tdispatch(GetEtablissementById(decoded[\"PartnerId\"], decoded[\"EtablissementId\"])).then(() => {\r\n\t\t\t\t\t\tsetHasLoadedInit(true);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet rolesFromToken = decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"];\r\n\t\t\t\tlet roles = Array.isArray(rolesFromToken) ? rolesFromToken : [rolesFromToken];\r\n\t\t\t\tsetIsPartner(roles.includes(\"PARTNER\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (hasLoadedInit && !R.isNil(partnerReducer.partner)) {\r\n\t\t\t//page, pageSearch, status, startDate, endDate, sortBy, sortDesc\r\n\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementIdDefaultAnticipa(partnerReducer.partner.id, !R.isNil(partnerReducer.etablissement) ? partnerReducer.etablissement.id : null, \"anticipa\", 50));\r\n\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementIdDefaultFacilita(partnerReducer.partner.id, !R.isNil(partnerReducer.etablissement) ? partnerReducer.etablissement.id : null, \"facilita\", 50));\r\n\t\t\tif(\r\n\t\t\t\t(!R.isNil(partnerReducer.etablissement) && partnerReducer.etablissement.isSerenita) ||\r\n\t\t\t\t!R.isNil(partnerReducer.etablissementList.items.find(item => item.isSerenita))\r\n\t\t\t){\r\n\t\t\t\tsetShowSerenita(true);\r\n\t\t\t\tdispatch(GetUsersByPartnerIdAndEtablissementIdDefaultSerenita(partnerReducer.partner.id, !R.isNil(partnerReducer.etablissement) ? partnerReducer.etablissement.id : null, \"serenita\", 50));\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}, [hasLoadedInit, partnerReducer.partner, partnerReducer.etablissement, partnerReducer.etablissementList.items]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(userReducer.user)) {\r\n\t\t\tdispatch(getDocuments(userReducer.user));\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [userReducer.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst profilePicture = userReducer.documents.find(d => d.fileType === FileTypes.ProfilePicture);\r\n\t\tif (!R.isNil(profilePicture))\r\n\t\t\tdispatch(getProfilePicture(userReducer.user.id, profilePicture.fileName));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [userReducer.documents]);\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\t// fetch all representatives by user id\r\n\t\tasync function getAllDossiers(anticipa, facilita, serenita) {\r\n\r\n\t\t\tconst userPromises = [];\r\n\r\n\t\t\tconst dossiers = anticipa.concat(facilita, serenita);\r\n\t\t\tdossiers.forEach(user => {\r\n\t\t\t\tuserPromises.push(getUserRepresentatives(user.id));\r\n\t\t\t});\r\n\r\n\t\t\tlet representatives = await Promise.all(userPromises);\r\n\t\t\trepresentatives = representatives.filter(u => !R.isEmpty(u)).map(userRepresent => userRepresent.filter(r => r.isMainRepresentative)[0]);\r\n\r\n\t\t\tlet users = dossiers.map(u => {\r\n\t\t\t\tlet representative = representatives.find(r => r.userId === u.id);\r\n\t\t\t\tif (!R.isNil(representative)) {\r\n\r\n\t\t\t\t\tu.mainRepresentative = {\r\n\t\t\t\t\t\tid: representative.id,\r\n\t\t\t\t\t\tfirstName: representative.firstName,\r\n\t\t\t\t\t\tlastName: representative.lastName\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t}\r\n\t\t\t\treturn u;\r\n\t\t\t});\r\n\t\t\tconst usersAnticipa = users.filter(u => !u.createdByRepresentative)\r\n\t\t\tsetAnticipaUsers(usersAnticipa);\r\n\r\n\t\t\tconst usersFacilita = users.filter(u => u.createdByRepresentative && !u.isSerenita)\r\n\t\t\tsetFacilitaUsers(usersFacilita);\r\n\r\n\t\t\tconst usersSerenita = users.filter(u => u.createdByRepresentative && u.isSerenita)\r\n\t\t\tsetSerenitaUsers(usersSerenita);\r\n\r\n\t\t};\r\n\t\tif (!R.isNil(partnerReducer.allDossiers.anticipa) || !R.isNil(partnerReducer.allDossiers.facilita) || !R.isNil(partnerReducer.allDossiers.serenita)) {\r\n\t\t\tgetAllDossiers(\r\n\t\t\t\t!R.isNil(partnerReducer.allDossiers.anticipa) ? partnerReducer.allDossiers.anticipa : [], \r\n\t\t\t\t!R.isNil(partnerReducer.allDossiers.facilita) ? partnerReducer.allDossiers.facilita : [], \r\n\t\t\t\t!R.isNil(partnerReducer.allDossiers.serenita) ? partnerReducer.allDossiers.serenita : []);\r\n\t\t}\r\n\r\n\r\n\t}, [partnerReducer.allDossiers]);\r\n\r\n\r\n\r\n\tif (R.isNil(partnerReducer.partner))\r\n\t\treturn '';\r\n\t// if (R.isNil(partnerReducer.etablissement))\r\n\t// \treturn '';\r\n\r\n\tif (R.isNil(userReducer.user))\r\n\t\treturn '';\r\n\r\n\tif (R.isNil(partnerReducer.allDossiers.anticipa) || R.isNil(partnerReducer.allDossiers.facilita))\r\n\t\treturn '';\r\n\r\n\tif (R.isNil(facilitaUsers) || R.isNil(anticipaUsers)){\r\n\t\treturn '';\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t
    \r\n\t\t\t\t

    Assist@

    \r\n\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Assist@: Main

    \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};","import React, { useEffect, useState } from 'react';\r\nimport { Route, Switch, Redirect } from 'react-router';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { getDocuments, getProfilePicture, fetchUserById } from './../actions/user-api';\r\nimport * as Loadings from '../constants/loadings/user';\r\nimport logo from './../assets/images/brand/assista.svg';\r\nimport { ToastContainer } from 'react-toastify';\r\nimport axios from 'axios';\r\nimport * as R from 'ramda';\r\nimport JwtDecode from 'jwt-decode';\r\n\r\n// Backoffice\r\n// ==========================================\r\n// Backoffice: Common\r\nimport { Navbar } from './_common/navbar';\r\n\r\n// Backoffice: Views\r\n// import {Dashboard} from './dashboard';\r\nimport { Impression } from './impression';\r\nimport { Dossiers } from './dossiers';\r\nimport { Clients } from './clients';\r\nimport { Partners } from './partners';\r\nimport { Paiement } from './paiement';\r\nimport { Settings } from './settings';\r\nimport { Configuration } from './configuration';\r\nimport { FileTypes } from '../constants/utils/fileTypes';\r\nimport { LoadingState } from '../_common/loadingState';\r\n\r\n\r\nexport const Backoffice = () => {\r\n\tconst router = useSelector(state => state.router);\r\n\tconst dispatch = useDispatch();\r\n\tconst user = useSelector(state => state.user);\r\n\tconst impressionReducer = useSelector(state => state.impressionReducer);\r\n\tconst dossiersReducer = useSelector(state => state.dossiersReducer);\r\n\tconst clientsReducer = useSelector(state => state.clientsReducer);\r\n\tconst [roles, setRoles] = useState([]);\r\n\r\n\tuseEffect(() => {\r\n\t\tvar accessToken = sessionStorage.getItem(\"access_token\");\r\n\t\tif (!R.isNil(accessToken)) {\r\n\t\t\taxios.defaults.headers.common['Authorization'] = \"Bearer \" + accessToken;\r\n\t\t\tvar decoded = JwtDecode(accessToken);\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"])) {\r\n\t\t\t\tdispatch(fetchUserById(decoded[\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier\"]));\r\n\t\t\t}\r\n\t\t\tif (!R.isNil(decoded) && !R.isNil(decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"])) {\r\n\t\t\t\tsetRoles(decoded[\"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, []);\r\n\r\n\r\n\r\n\tuseEffect(() => {\r\n\t\tif (!R.isNil(user.user)) {\r\n\t\t\tdispatch(getDocuments(user.user));\r\n\t\t}\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.user]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst profilePicture = user.documents.find(d => d.fileType === FileTypes.ProfilePicture);\r\n\t\tif (!R.isNil(profilePicture))\r\n\t\t\tdispatch(getProfilePicture(user.user.id, profilePicture.fileName));\r\n\r\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\r\n\t}, [user.documents]);\r\n\r\n\r\n\r\n\t// if (R.isNil(user.user) && user.isLoading.includes(Loadings.FETCH_USER)) {\r\n\t// \treturn (
    \r\n\t// \t\t
    \r\n\t// \t\t\t\r\n\t// \t\t
    \r\n\t// \t
    );\r\n\t// }\r\n\r\n\tif (R.isNil(user.user) || (!roles.includes(\"ADMIN\") && !roles.includes(\"DISTRIBUTER\"))) {\r\n\t\treturn '';\r\n\t}\r\n\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t
    \r\n\t\t\t\t

    Assist@

    \r\n\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t\t

    Assist@: Backoffice

    \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\tif (roles.includes(\"ADMIN\")) {\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}} />\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\r\n\t\t
    \r\n\t);\r\n};","function AddressInfo(data) {\r\n let address = data || {};\r\n this.streetAddress = address.streetAddress;\r\n this.streetAddress2 = address.streetAddress2;\r\n this.streetAddress3 = address.streetAddress3;\r\n this.postalCode = address.postalCode;\r\n this.addressLocality = address.addressLocality;\r\n this.addressCountry = address.addressCountry;\r\n}\r\nmodule.exports = AddressInfo;","/**\r\n * Format bytes as human-readable text.\r\n *\r\n * @param bytes Number of bytes.\r\n * @param si True to use metric (SI) units, aka powers of 1000. False to use\r\n * binary (IEC), aka powers of 1024.\r\n * @param dp Number of decimal places to display.\r\n *\r\n * @return Formatted string.\r\n */\r\nexport function humanFileSize(bytes, si = false, dp = 1) {\r\n\tconst thresh = si ? 1000 : 1024;\r\n\r\n\tif (Math.abs(bytes) < thresh) {\r\n\t\treturn bytes + \" B\";\r\n\t}\r\n\r\n\tconst units = si ? [\"kB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"] : [\"KiB\", \"MiB\", \"GiB\", \"TiB\", \"PiB\", \"EiB\", \"ZiB\", \"YiB\"];\r\n\tlet u = -1;\r\n\tconst r = 10 ** dp;\r\n\r\n\tdo {\r\n\t\tbytes /= thresh;\r\n\t\t++u;\r\n\t} while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);\r\n\r\n\treturn bytes.toFixed(dp) + \" \" + units[u];\r\n}\r\n\r\nexport function addressContractToInt(addressContract) {\r\n\treturn addressContract === \"Owner\" ? 1 : addressContract === \"Tenant\" ? 2 : 3;\r\n}\r\n\r\nexport function addressTypeToInt(addressType) {\r\n\treturn addressType === \"Apartment\" ? 1 : addressType === \"House\" ? 2 : addressType === \"Castle\" ? 3 : addressType === \"Hotel\" ? 4 : addressType === \"Houseboat\" ? 5 : 6;\r\n}\r\n\r\n/**\r\n * Convert date to European human readable format (dd-MM-yyyy)\r\n *\r\n * @param date javascript Date variable.\r\n *\r\n * @return string formated with dd-MM-yyyy.\r\n */\r\nexport function dateToString(date) {\r\n\tif (!(date instanceof Date)) {\r\n\t\treturn date.toString();\r\n\t}\r\n\treturn date.toLocaleDateString(\"fr-FR\", { day: \"numeric\", month: \"numeric\", year: \"numeric\" }).replace(/\\//g, \"-\");\r\n}\r\n/**\r\n * Convert a float to a currency string format\r\n *\r\n * @param amount amount as a float\r\n *\r\n * @return string amout in the format XX,CC.\r\n */\r\nexport function formatAmount(amount) {\r\n\tif (amount === \"\") {\r\n\t\treturn amount;\r\n\t}\r\n\treturn amount.toFixed(2).replace(/\\./g, \",\");\r\n}\r\n\r\nexport function isValidURL(string) {\r\n\tconst urlPattern = new RegExp(\r\n\t\t\"^(https?:\\\\/\\\\/)?\" + // protocol\r\n\t\t\t\"(([a-zA-Z0-9-]+\\\\.)+[a-zA-Z]{2,}|\" + // domain name\r\n\t\t\t\"((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))\" + // OR IP (v4) address\r\n\t\t\t\"(\\\\:\\\\d+)?(\\\\/[-a-zA-Z0-9@:%_+.~#?&/=]*)?\" + // port and path\r\n\t\t\t\"(\\\\?[;&a-zA-Z0-9@:%_+.~#?&/=]*)?\" + // query string\r\n\t\t\t\"(\\\\#[-a-zA-Z0-9_]*)?$\", // fragment locator\r\n\t\t\"i\" // case-insensitive\r\n\t);\r\n\r\n\treturn urlPattern.test(string);\r\n}\r\n\r\n\r\nexport function isValidEmail(string) {\r\n\tconst emailRegex = new RegExp(\"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+[.]+(?:.[a-zA-Z0-9-]+)*$\");\r\n\r\n\treturn emailRegex.test(string);\r\n}\r\n\r\nexport function isMobile() {\r\n\treturn /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);\r\n}\r\n\r\n","import { EndPoints } from '../api-config';\r\nimport { pageLimit } from '../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const searchServiceUrl = (serviceType, pos, name) => `${SERVER_ADDR_V1}/services/legacy/${serviceType}${pos !== undefined ? '?page=' + pos : ''}${name !== undefined && name !== '' ? '&name=' + name : ''}`;\r\n// export const searchServiceUrl = (serviceType, pos, name) => `${SERVER_ADDR_V1}/services/search/${serviceType}${pos !== undefined ? '?page=' + pos : ''}${name !== undefined && name !== '' ? '&name=' + name : ''}`;\r\nexport const serviceByIdUrl = (id) => `${SERVER_ADDR_V1}/services/${id}`;\r\nexport const serviceByServiceTypeUrl = (servicetype) => `${SERVER_ADDR_V1}/services/servicetype/${servicetype}`;\r\nexport const serviceByServiceTypeSearchUrl = (servicetype, pageNumber, searchTerm, sortByTerm, sortDesc, lifeEvent) =>\r\n\t`${SERVER_ADDR_V1}/services/search/${servicetype}?pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? \"&textSearch=\" + searchTerm : \"\"}${sortByTerm !== \"\" ? \"&sortBy=\" + sortByTerm : \"\"}${sortDesc === \"true\" ? \"&sortDesc=true\" : \"&sortDesc=false\"}${\r\n\t\tlifeEvent && lifeEvent !== \"\" ? \"&lifeEvent=\" + lifeEvent : \"\"\r\n\t}`;\r\nexport const serviceUrl = () => `${SERVER_ADDR_V1}/services`;\r\nexport const getServiceByIdUrl = (serviceType, serviceId) => `${SERVER_ADDR_V1}/services/legacy/${serviceType}/${serviceId}`;\r\n\r\nexport const getServiceTypeByIdUrl = (serviceType) => `${SERVER_ADDR_V1}/services/serviceType/${serviceType}`;\r\nexport const getServiceDetailByIdUrl = (serviceId) => `${SERVER_ADDR_V1}/services/serviceDetail/${serviceId}`;\r\n\r\nexport const getServiceDataUrl = (lifeEvent) => `${SERVER_ADDR_V1}/servicesdata${lifeEvent && lifeEvent !== \"\" ? \"?lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const getServiceDataByTypeUrl = (serviceType, lifeEvent) => `${SERVER_ADDR_V1}/servicesdata?serviceType=${serviceType}${lifeEvent && lifeEvent !== \"\" ? \"&lifeEvent=\" + lifeEvent : \"\"}`;\r\nexport const getServiceDataByIdUrl = (serviceDataId) => `${SERVER_ADDR_V1}/servicesdata/${serviceDataId}`;","import { EndPoints } from '../../api-config';\r\nimport * as R from 'ramda';\r\nimport { pageLimit } from '../../paginations/paginationLimit';\r\nlet SERVER_ADDR_V1 = EndPoints.backendHost;\r\n\r\nexport const partnersByUrl = () => `${SERVER_ADDR_V1}/partners`;\r\nexport const partnerByIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}`;\r\nexport const partnerLogoByIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/logo`;\r\nexport const etablissementByPartnerIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/etablissements`;\r\nexport const etablissementByIdAndPartnerIdUrl = (partnerId, etablissementId) => `${SERVER_ADDR_V1}/partners/${partnerId}/etablissements/${etablissementId}`;\r\nexport const usersByPartnerIdUrl = (partnerId, etablissementId, pageNumber, searchTerm, type, startDate, endDate, sortByTerm, sortDesc) => `${SERVER_ADDR_V1}/partners/${partnerId}/users?roles=USER${!R.isNil(etablissementId) ? \"&etablissementId=\" + etablissementId : ''}&pageSize=${pageLimit}&pageNumber=${pageNumber}${searchTerm !== \"\" ? '&textSearch=' + searchTerm : \"\"}${type !== \"\" ? '&typeSearch=' + type : \"\"}${startDate !== \"\" ? '&from=' + startDate : \"\"}${endDate !== \"\" ? '&to=' + endDate : \"\"}${sortByTerm !== \"\" ? '&sortBy=' + sortByTerm : \"\"}${sortDesc === \"true\" ? '&sortDesc=true' : '&sortDesc=false'}`;\r\nexport const usersByPartnerIdUrlDefault = (partnerId, etablissementId, type, pageSize) => `${SERVER_ADDR_V1}/partners/${partnerId}/users?roles=USER${!R.isNil(etablissementId) ? \"&etablissementId=\" + etablissementId : ''}${!R.isNil(pageSize) ? \"&pageSize=\" + (pageSize) + \"&pageNumber=0\" : \"\"}${type !== \"\" ? '&typeSearch=' + type : \"\"}&sortBy=creationDate&sortDesc=true`;\r\nexport const createUserByPartnerIdUrl = (partnerId) => `${SERVER_ADDR_V1}/partners/${partnerId}/users?role=USER`;\r\nexport const createUserAddressByIdWithIdUrl = (userId) => `${SERVER_ADDR_V1}/user/${userId}/address`;\r\nexport const userAddressByIdUrl = (userId) => `${SERVER_ADDR_V1}/user/${userId}/address`;\r\nexport const userRepresentativesUrl = () => `${SERVER_ADDR_V1}/UserRepresentative`;\r\nexport const userSendActivationEmailByIdPartnerIdUrl = (partnerId, userId, role) => `${SERVER_ADDR_V1}/partners/${partnerId}/users/${userId}/sendactivation` + (!R.isNil(role) ? `?role=${role}` : '');\r\nexport const partnerInvoicesToPay = (partnerId) => `${SERVER_ADDR_V1}/invoices/recipient/${partnerId}/PARTNER`;\r\nexport const partnerInvoicesToBill = (partnerId) => `${SERVER_ADDR_V1}/invoices/issuer/${partnerId}/PARTNER`;\r\nexport const etablissementInvoicesToPay = (etablissementId) => `${SERVER_ADDR_V1}/invoices/recipient/${etablissementId}/ETABLISSEMENT`;\r\nexport const etablissementInvoicesToBill = (etablissementId) => `${SERVER_ADDR_V1}/invoices/issuer/${etablissementId}/ETABLISSEMENT`;\r\n\r\n\r\nexport const invoiceLinesByInvoiceId = (invoiceId) => `${SERVER_ADDR_V1}/invoices/${invoiceId}/lines`;\r\nexport const payInvoiceByIdUrl = (invoiceId) => `${SERVER_ADDR_V1}/Invoices/${invoiceId}/pay`;","function DocumentFile(data){\r\n let doc = data || {};\r\n this.fileName = doc.fileName;\r\n this.description = doc.description;\r\n this.fileType = doc.fileType;\r\n}\r\nmodule.exports = DocumentFile;","export const pageLimit = 50","function Service(data){\r\n let service = data || {};\r\n this.connectionType = service.connectionType;\r\n this.id = service.id;\r\n this.lifeEvent = service.lifeEvent;\r\n}\r\nmodule.exports = Service;","export const FETCH_USER_REQUEST = 'FETCH_USER_REQUEST';\r\nexport const FETCH_USER_SUCCESS = 'FETCH_USER_SUCCESS';\r\nexport const FETCH_USER_FAILURE = 'FETCH_USER_FAILURE';\r\n\r\nexport const FETCH_USER_ADDRESSES_REQUEST = 'FETCH_USER_ADDRESSES_REQUEST';\r\nexport const FETCH_USER_ADDRESSES_SUCCESS = 'FETCH_USER_ADDRESSES_SUCCESS';\r\nexport const FETCH_USER_ADDRESSES_FAILURE = 'FETCH_USER_ADDRESSES_FAILURE';\r\n\r\nexport const UPDATE_USER_REQUEST = 'UPDATE_USER_REQUEST';\r\nexport const UPDATE_USER_SUCCESS = 'UPDATE_USER_SUCCESS';\r\nexport const UPDATE_USER_FAILURE = 'UPDATE_USER_FAILURE';\r\n\r\nexport const DELETE_USER_REQUEST = 'DELETE_USER_REQUEST';\r\nexport const DELETE_USER_SUCCESS = 'DELETE_USER_SUCCESS';\r\nexport const DELETE_USER_FAILURE = 'DELETE_USER_FAILURE';\r\n\r\nexport const ADD_USER_ADDRESS_REQUEST = 'ADD_USER_ADDRESS_REQUEST';\r\nexport const ADD_USER_ADDRESS_SUCCESS = 'ADD_USER_ADDRESS_SUCCESS';\r\nexport const ADD_USER_ADDRESS_FAILURE = 'ADD_USER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_USER_ADDRESS_REQUEST = 'UPDATE_USER_ADDRESS_REQUEST';\r\nexport const UPDATE_USER_ADDRESS_SUCCESS = 'UPDATE_USER_ADDRESS_SUCCESS';\r\nexport const UPDATE_USER_ADDRESS_FAILURE = 'UPDATE_USER_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_USER_SECURITY_REQUEST = 'UPDATE_USER_SECURITY_REQUEST';\r\nexport const UPDATE_USER_SECURITY_SUCCESS = 'UPDATE_USER_SECURITY_SUCCESS';\r\nexport const UPDATE_USER_SECURITY_FAILURE = 'UPDATE_USER_SECURITY_FAILURE';\r\n\r\nexport const CHANGE_PHONENUMBER_REQUEST = 'CHANGE_PHONENUMBER_REQUEST';\r\nexport const CHANGE_PHONENUMBER_SUCCESS = 'CHANGE_PHONENUMBER_SUCCESS';\r\nexport const CHANGE_PHONENUMBER_FAILURE = 'CHANGE_PHONENUMBER_FAILURE';\r\n\r\nexport const FETCH_USER_ADDRESS_REQUEST = 'FETCH_USER_ADDRESS_REQUEST';\r\nexport const FETCH_USER_ADDRESS_SUCCESS = 'FETCH_USER_ADDRESS_SUCCESS';\r\nexport const FETCH_USER_ADDRESS_FAILURE = 'FETCH_USER_ADDRESS_FAILURE';\r\n\r\nexport const FETCH_USER_SERVICES_REQUEST = 'FETCH_USER_SERVICES_REQUEST';\r\nexport const FETCH_USER_SERVICES_SUCCESS = 'FETCH_USER_SERVICES_SUCCESS';\r\nexport const FETCH_USER_SERVICES_FAILURE = 'FETCH_USER_SERVICES_FAILURE';\r\n\r\nexport const ADD_USER_SERVICE_REQUEST = 'ADD_USER_SERVICE_REQUEST';\r\nexport const ADD_USER_SERVICE_SUCCESS = 'ADD_USER_SERVICE_SUCCESS';\r\nexport const ADD_USER_SERVICE_FAILURE = 'ADD_USER_SERVICE_FAILURE';\r\n\r\nexport const UPDATE_USER_SERVICE_REQUEST = 'UPDATE_USER_SERVICE_REQUEST';\r\nexport const UPDATE_USER_SERVICE_SUCCESS = 'UPDATE_USER_SERVICE_SUCCESS';\r\nexport const UPDATE_USER_SERVICE_FAILURE = 'UPDATE_USER_SERVICE_FAILURE';\r\n\r\nexport const ADD_SERVICES_BATCH_REQUEST = 'ADD_SERVICES_BATCH_REQUEST';\r\nexport const ADD_SERVICES_BATCH_SUCCESS = 'ADD_SERVICES_BATCH_SUCCESS';\r\nexport const ADD_SERVICES_BATCH_FAILURE = 'ADD_SERVICES_BATCH_FAILURE';\r\n\r\nexport const DELETE_USER_SERVICE_REQUEST = 'DELETE_USER_SERVICE_REQUEST';\r\nexport const DELETE_USER_SERVICE_SUCCESS = 'DELETE_USER_SERVICE_SUCCESS';\r\nexport const DELETE_USER_SERVICE_FAILURE = 'DELETE_USER_SERVICE_FAILURE';\r\n\r\nexport const FETCH_REPRESENTATIVES_REQUEST = 'FETCH_REPRESENTATIVES_REQUEST';\r\nexport const FETCH_REPRESENTATIVES_SUCCESS = 'FETCH_REPRESENTATIVES_SUCCESS';\r\nexport const FETCH_REPRESENTATIVES_FAILURE = 'FETCH_REPRESENTATIVES_FAILURE';\r\n\r\nexport const ADD_REPRESENTATIVE_REQUEST = 'ADD_REPRESENTATIVE_REQUEST';\r\nexport const ADD_REPRESENTATIVE_SUCCESS = 'ADD_REPRESENTATIVE_SUCCESS';\r\nexport const ADD_REPRESENTATIVE_FAILURE = 'ADD_REPRESENTATIVE_FAILURE';\r\n\r\nexport const UPDATE_REPRESENTATIVE_REQUEST = 'UPDATE_REPRESENTATIVE_REQUEST';\r\nexport const UPDATE_REPRESENTATIVE_SUCCESS = 'UPDATE_REPRESENTATIVE_SUCCESS';\r\nexport const UPDATE_REPRESENTATIVE_FAILURE = 'UPDATE_REPRESENTATIVE_FAILURE';\r\n\r\nexport const FETCH_REPRESENTATIVES_ADDRESS_REQUEST = 'FETCH_REPRESENTATIVES_ADDRESS_REQUEST';\r\nexport const FETCH_REPRESENTATIVES_ADDRESS_SUCCESS = 'FETCH_REPRESENTATIVES_ADDRESS_SUCCESS';\r\nexport const FETCH_REPRESENTATIVES_ADDRESS_FAILURE = 'FETCH_REPRESENTATIVES_ADDRESS_FAILURE';\r\n\r\nexport const ADD_REPRESENTATIVE_ADDRESS_REQUEST = 'ADD_REPRESENTATIVE_ADDRESS_REQUEST';\r\nexport const ADD_REPRESENTATIVE_ADDRESS_SUCCESS = 'ADD_REPRESENTATIVE_ADDRESS_SUCCESS';\r\nexport const ADD_REPRESENTATIVE_ADDRESS_FAILURE = 'ADD_REPRESENTATIVE_ADDRESS_FAILURE';\r\n\r\nexport const UPDATE_REPRESENTATIVE_ADDRESS_REQUEST = 'UPDATE_REPRESENTATIVE_ADDRESS_REQUEST';\r\nexport const UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS = 'UPDATE_REPRESENTATIVE_ADDRESS_SUCCESS';\r\nexport const UPDATE_REPRESENTATIVE_ADDRESS_FAILURE = 'UPDATE_REPRESENTATIVE_ADDRESS_FAILURE';\r\n\r\nexport const DELETE_REPRESENTATIVE_REQUEST = 'DELETE_REPRESENTATIVE_REQUEST';\r\nexport const DELETE_REPRESENTATIVE_SUCCESS = 'DELETE_REPRESENTATIVE_SUCCESS';\r\nexport const DELETE_REPRESENTATIVE_FAILURE = 'DELETE_REPRESENTATIVE_FAILURE';\r\n\r\nexport const RESET_USER_STATE = 'RESET_USER_STATE';\r\n\r\nexport const UPLOAD_DOCUMENT_REQUEST = 'UPLOAD_DOCUMENT_REQUEST';\r\nexport const UPLOAD_DOCUMENT_SUCCESS = 'UPLOAD_DOCUMENT_SUCCESS';\r\nexport const UPLOAD_DOCUMENT_FAILURE = 'UPLOAD_DOCUMENT_FAILURE';\r\n\r\nexport const FETCH_DOCUMENTS_REQUEST = 'FETCH_DOCUMENTS_REQUEST';\r\nexport const FETCH_DOCUMENTS_SUCCESS = 'FETCH_DOCUMENTS_SUCCESS';\r\nexport const FETCH_DOCUMENTS_FAILURE = 'FETCH_DOCUMENTS_FAILURE';\r\n\r\nexport const DOWNLOAD_DOCUMENT_REQUEST = 'DOWNLOAD_DOCUMENT_REQUEST';\r\nexport const DOWNLOAD_DOCUMENT_SUCCESS = 'DOWNLOAD_DOCUMENT_SUCCESS';\r\nexport const DOWNLOAD_DOCUMENT_FAILURE = 'DOWNLOAD_DOCUMENT_FAILURE';\r\n\r\nexport const DELETE_DOCUMENT_REQUEST = 'DELETE_DOCUMENT_REQUEST';\r\nexport const DELETE_DOCUMENT_SUCCESS = 'DELETE_DOCUMENT_SUCCESS';\r\nexport const DELETE_DOCUMENT_FAILURE = 'DELETE_DOCUMENT_FAILURE';\r\n\r\nexport const EDIT_DOCUMENT_REQUEST = 'EDIT_DOCUMENT_REQUEST';\r\nexport const EDIT_DOCUMENT_SUCCESS = 'EDIT_DOCUMENT_SUCCESS';\r\nexport const EDIT_DOCUMENT_FAILURE = 'EDIT_DOCUMENT_FAILURE';\r\n\r\nexport const UPDATE_MESSAGE_REQUEST = 'UPDATE_MESSAGE_REQUEST';\r\nexport const UPDATE_MESSAGE_SUCCESS = 'UPDATE_MESSAGE_SUCCESS';\r\nexport const UPDATE_MESSAGE_FAILURE = 'UPDATE_MESSAGE_FAILURE';\r\n\r\nexport const FETCH_MESSAGE_REQUEST = 'FETCH_MESSAGE_REQUEST';\r\nexport const FETCH_MESSAGE_SUCCESS = 'FETCH_MESSAGE_SUCCESS';\r\nexport const FETCH_MESSAGE_FAILURE = 'FETCH_MESSAGE_FAILURE';\r\n\r\nexport const GET_PROFILEPIC_REQUEST = 'GET_PROFILEPIC_REQUEST';\r\nexport const GET_PROFILEPIC_SUCCESS = 'GET_PROFILEPIC_SUCCESS';\r\nexport const GET_PROFILEPIC_FAILURE = 'GET_PROFILEPIC_FAILURE';\r\n\r\nexport const DELETE_PROFILEPIC_REQUEST = 'DELETE_PROFILEPIC_REQUEST';\r\nexport const DELETE_PROFILEPIC_SUCCESS = 'DELETE_PROFILEPIC_SUCCESS';\r\nexport const DELETE_PROFILEPIC_FAILURE = 'DELETE_PROFILEPIC_FAILURE';\r\n\r\nexport const UPLOAD_PROFILEPIC_REQUEST = 'UPLOAD_PROFILEPIC_REQUEST';\r\nexport const UPLOAD_PROFILEPIC_SUCCESS = 'UPLOAD_PROFILEPIC_SUCCESS';\r\nexport const UPLOAD_PROFILEPIC_FAILURE = 'UPLOAD_PROFILEPIC_FAILURE';\r\n\r\nexport const SEARCH_SERVICE_REQUEST = 'SEARCH_SERVICE_REQUEST';\r\nexport const SEARCH_SERVICE_SUCCESS = 'SEARCH_SERVICE_SUCCESS';\r\nexport const SEARCH_SERVICE_FAILURE = 'SEARCH_SERVICE_FAILURE';\r\n\r\nexport const UPDATE_ONBOARDINGSTEP_REQUEST = 'UPDATE_ONBOARDINGSTEP_REQUEST';\r\nexport const UPDATE_ONBOARDINGSTEP_SUCCESS = 'UPDATE_ONBOARDINGSTEP_SUCCESS';\r\nexport const UPDATE_ONBOARDINGSTEP_FAILURE = 'UPDATE_ONBOARDINGSTEP_FAILURE';\r\n\r\nexport const SET_COMPLETE_REQUEST = 'SET_COMPLETE_REQUEST';\r\nexport const SET_COMPLETE_SUCCESS = 'SET_COMPLETE_SUCCESS';\r\nexport const SET_COMPLETE_FAILURE = 'SET_COMPLETE_FAILURE';\r\n\r\nexport const ADD_PAYMENTMETHOD_REQUEST = 'ADD_PAYMENTMETHOD_REQUEST';\r\nexport const ADD_PAYMENTMETHOD_SUCCESS = 'ADD_PAYMENTMETHOD_SUCCESS';\r\nexport const ADD_PAYMENTMETHOD_FAILURE = 'ADD_PAYMENTMETHOD_FAILURE';\r\n\r\nexport const REMOVE_PAYMENTMETHOD_REQUEST = 'REMOVE_PAYMENTMETHOD_REQUEST';\r\nexport const REMOVE_PAYMENTMETHOD_SUCCESS = 'REMOVE_PAYMENTMETHOD_SUCCESS';\r\nexport const REMOVE_PAYMENTMETHOD_FAILURE = 'REMOVE_PAYMENTMETHOD_FAILURE';\r\n\r\nexport const PROCESS_PAYMENT_REQUEST = 'PROCESS_PAYMENT_REQUEST';\r\nexport const PROCESS_PAYMENT_SUCCESS = 'PROCESS_PAYMENT_SUCCESS';\r\nexport const PROCESS_PAYMENT_FAILURE = 'PROCESS_PAYMENT_FAILURE';\r\n\r\nexport const GET_SETUPINTENT_REQUEST = 'GET_SETUPINTENT_REQUEST';\r\nexport const GET_SETUPINTENT_SUCCESS = 'GET_SETUPINTENT_SUCCESS';\r\nexport const GET_SETUPINTENT_FAILURE = 'GET_SETUPINTENT_FAILURE';\r\n\r\nexport const FETCH_INVOICES_REQUEST = 'FETCH_INVOICES_REQUEST';\r\nexport const FETCH_INVOICES_SUCCESS = 'FETCH_INVOICES_SUCCESS';\r\nexport const FETCH_INVOICES_FAILURE = 'FETCH_INVOICES_FAILURE';\r\n\r\nexport const FETCH_USERREPRESENTING_REQUEST = 'FETCH_USERREPRESENTING_REQUEST';\r\nexport const FETCH_USERREPRESENTING_SUCCESS = 'FETCH_USERREPRESENTING_SUCCESS';\r\nexport const FETCH_USERREPRESENTING_FAILURE = 'FETCH_USERREPRESENTING_FAILURE';\r\n\r\nexport const AUTHENTICATE_FACILITA_REQUEST = 'AUTHENTICATE_FACILITA_REQUEST';\r\nexport const AUTHENTICATE_FACILITA_SUCCESS = 'AUTHENTICATE_FACILITA_SUCCESS';\r\nexport const AUTHENTICATE_FACILITA_FAILURE = 'AUTHENTICATE_FACILITA_FAILURE';\r\n\r\nexport const GET_BILLINGCUSTOMERID_REQUEST = 'GET_BILLINGCUSTOMERID_REQUEST';\r\nexport const GET_BILLINGCUSTOMERID_SUCCESS = 'GET_BILLINGCUSTOMERID_SUCCESS';\r\nexport const GET_BILLINGCUSTOMERID_FAILURE = 'GET_BILLINGCUSTOMERID_FAILURE';\r\n\r\n\r\nexport const FETCH_PARTNER_CUSTOMIZATION_REQUEST = \"FETCH_PARTNER_CUSTOMIZATION_REQUEST\";\r\nexport const FETCH_PARTNER_CUSTOMIZATION_SUCCESS = \"FETCH_PARTNER_CUSTOMIZATION_SUCCESS\";\r\nexport const FETCH_PARTNER_CUSTOMIZATION_DEFAULT_SUCCESS = \"FETCH_PARTNER_CUSTOMIZATION_DEFAULT_SUCCESS\";\r\nexport const FETCH_PARTNER_CUSTOMIZATION_FAILURE = \"FETCH_PARTNER_CUSTOMIZATION_FAILURE\";\r\n\r\n\r\nexport const FETCH_LIFEEVENTS_REQUEST = 'FETCH_LIFEEVENTS_REQUEST';\r\nexport const FETCH_LIFEEVENTS_SUCCESS = 'FETCH_LIFEEVENTS_SUCCESS';\r\nexport const FETCH_LIFEEVENTS_FAILURE = 'FETCH_LIFEEVENTS_FAILURE';"],"sourceRoot":""}